]>
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. | |
81f90336 | 4 | # Generated by GNU Autoconf 2.59 for wxWidgets 2.5.4. |
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' | |
81f90336 MW |
273 | PACKAGE_VERSION='2.5.4' |
274 | PACKAGE_STRING='wxWidgets 2.5.4' | |
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" | |
dae87f93 | 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS GSTREAMER_CFLAGS GSTREAMER_LIBS GST_INSPECT 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 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 ac_ct_AR ac_ct_STRIP 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 AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_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_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_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_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_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_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 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_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_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_PLUGINS_0 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_XRC_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 WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_EXTRALIBS WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS GCC_PRAGMA_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL CPPUNIT_CONFIG LIBOBJS LTLIBOBJS' |
a848cd7e SC |
317 | ac_subst_files='' |
318 | ||
319 | # Initialize some variables set by options. | |
320 | ac_init_help= | |
321 | ac_init_version=false | |
322 | # The variables have the same names as the options, with | |
323 | # dashes changed to underlines. | |
324 | cache_file=/dev/null | |
325 | exec_prefix=NONE | |
326 | no_create= | |
327 | no_recursion= | |
328 | prefix=NONE | |
329 | program_prefix=NONE | |
330 | program_suffix=NONE | |
331 | program_transform_name=s,x,x, | |
332 | silent= | |
333 | site= | |
334 | srcdir= | |
335 | verbose= | |
336 | x_includes=NONE | |
337 | x_libraries=NONE | |
338 | ||
339 | # Installation directory options. | |
340 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
341 | # and all the variables that are supposed to be based on exec_prefix | |
342 | # by default will actually change. | |
343 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
344 | bindir='${exec_prefix}/bin' | |
345 | sbindir='${exec_prefix}/sbin' | |
346 | libexecdir='${exec_prefix}/libexec' | |
347 | datadir='${prefix}/share' | |
348 | sysconfdir='${prefix}/etc' | |
349 | sharedstatedir='${prefix}/com' | |
350 | localstatedir='${prefix}/var' | |
351 | libdir='${exec_prefix}/lib' | |
352 | includedir='${prefix}/include' | |
353 | oldincludedir='/usr/include' | |
354 | infodir='${prefix}/info' | |
355 | mandir='${prefix}/man' | |
356 | ||
357 | ac_prev= | |
358 | for ac_option | |
359 | do | |
360 | # If the previous option needs an argument, assign it. | |
361 | if test -n "$ac_prev"; then | |
362 | eval "$ac_prev=\$ac_option" | |
363 | ac_prev= | |
364 | continue | |
365 | fi | |
366 | ||
367 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | |
368 | ||
369 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
370 | ||
371 | case $ac_option in | |
372 | ||
373 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
374 | ac_prev=bindir ;; | |
375 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
376 | bindir=$ac_optarg ;; | |
377 | ||
378 | -build | --build | --buil | --bui | --bu) | |
379 | ac_prev=build_alias ;; | |
380 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
381 | build_alias=$ac_optarg ;; | |
382 | ||
383 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
384 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
385 | ac_prev=cache_file ;; | |
386 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
387 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
388 | cache_file=$ac_optarg ;; | |
389 | ||
390 | --config-cache | -C) | |
391 | cache_file=config.cache ;; | |
392 | ||
393 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
394 | ac_prev=datadir ;; | |
395 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
396 | | --da=*) | |
397 | datadir=$ac_optarg ;; | |
398 | ||
399 | -disable-* | --disable-*) | |
400 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
401 | # Reject names that are not valid shell variable names. | |
402 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
403 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
404 | { (exit 1); exit 1; }; } | |
405 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
406 | eval "enable_$ac_feature=no" ;; | |
407 | ||
408 | -enable-* | --enable-*) | |
409 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
410 | # Reject names that are not valid shell variable names. | |
411 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
412 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
413 | { (exit 1); exit 1; }; } | |
414 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
415 | case $ac_option in | |
416 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
417 | *) ac_optarg=yes ;; | |
418 | esac | |
419 | eval "enable_$ac_feature='$ac_optarg'" ;; | |
420 | ||
421 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
422 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
423 | | --exec | --exe | --ex) | |
424 | ac_prev=exec_prefix ;; | |
425 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
426 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
427 | | --exec=* | --exe=* | --ex=*) | |
428 | exec_prefix=$ac_optarg ;; | |
429 | ||
430 | -gas | --gas | --ga | --g) | |
431 | # Obsolete; use --with-gas. | |
432 | with_gas=yes ;; | |
433 | ||
434 | -help | --help | --hel | --he | -h) | |
435 | ac_init_help=long ;; | |
436 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
437 | ac_init_help=recursive ;; | |
438 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
439 | ac_init_help=short ;; | |
440 | ||
441 | -host | --host | --hos | --ho) | |
442 | ac_prev=host_alias ;; | |
443 | -host=* | --host=* | --hos=* | --ho=*) | |
444 | host_alias=$ac_optarg ;; | |
445 | ||
446 | -includedir | --includedir | --includedi | --included | --include \ | |
447 | | --includ | --inclu | --incl | --inc) | |
448 | ac_prev=includedir ;; | |
449 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
450 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
451 | includedir=$ac_optarg ;; | |
452 | ||
453 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
454 | ac_prev=infodir ;; | |
455 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
456 | infodir=$ac_optarg ;; | |
457 | ||
458 | -libdir | --libdir | --libdi | --libd) | |
459 | ac_prev=libdir ;; | |
460 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
461 | libdir=$ac_optarg ;; | |
462 | ||
463 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
464 | | --libexe | --libex | --libe) | |
465 | ac_prev=libexecdir ;; | |
466 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
467 | | --libexe=* | --libex=* | --libe=*) | |
468 | libexecdir=$ac_optarg ;; | |
469 | ||
470 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
471 | | --localstate | --localstat | --localsta | --localst \ | |
472 | | --locals | --local | --loca | --loc | --lo) | |
473 | ac_prev=localstatedir ;; | |
474 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
475 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
476 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
477 | localstatedir=$ac_optarg ;; | |
478 | ||
479 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
480 | ac_prev=mandir ;; | |
481 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
482 | mandir=$ac_optarg ;; | |
483 | ||
484 | -nfp | --nfp | --nf) | |
485 | # Obsolete; use --without-fp. | |
486 | with_fp=no ;; | |
487 | ||
488 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
489 | | --no-cr | --no-c | -n) | |
490 | no_create=yes ;; | |
491 | ||
492 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
493 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
494 | no_recursion=yes ;; | |
495 | ||
496 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
497 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
498 | | --oldin | --oldi | --old | --ol | --o) | |
499 | ac_prev=oldincludedir ;; | |
500 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
501 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
502 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
503 | oldincludedir=$ac_optarg ;; | |
504 | ||
505 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
506 | ac_prev=prefix ;; | |
507 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
508 | prefix=$ac_optarg ;; | |
509 | ||
510 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
511 | | --program-pre | --program-pr | --program-p) | |
512 | ac_prev=program_prefix ;; | |
513 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
514 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
515 | program_prefix=$ac_optarg ;; | |
516 | ||
517 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
518 | | --program-suf | --program-su | --program-s) | |
519 | ac_prev=program_suffix ;; | |
520 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
521 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
522 | program_suffix=$ac_optarg ;; | |
523 | ||
524 | -program-transform-name | --program-transform-name \ | |
525 | | --program-transform-nam | --program-transform-na \ | |
526 | | --program-transform-n | --program-transform- \ | |
527 | | --program-transform | --program-transfor \ | |
528 | | --program-transfo | --program-transf \ | |
529 | | --program-trans | --program-tran \ | |
530 | | --progr-tra | --program-tr | --program-t) | |
531 | ac_prev=program_transform_name ;; | |
532 | -program-transform-name=* | --program-transform-name=* \ | |
533 | | --program-transform-nam=* | --program-transform-na=* \ | |
534 | | --program-transform-n=* | --program-transform-=* \ | |
535 | | --program-transform=* | --program-transfor=* \ | |
536 | | --program-transfo=* | --program-transf=* \ | |
537 | | --program-trans=* | --program-tran=* \ | |
538 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
539 | program_transform_name=$ac_optarg ;; | |
540 | ||
541 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
542 | | -silent | --silent | --silen | --sile | --sil) | |
543 | silent=yes ;; | |
544 | ||
545 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
546 | ac_prev=sbindir ;; | |
547 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
548 | | --sbi=* | --sb=*) | |
549 | sbindir=$ac_optarg ;; | |
550 | ||
551 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
552 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
553 | | --sharedst | --shareds | --shared | --share | --shar \ | |
554 | | --sha | --sh) | |
555 | ac_prev=sharedstatedir ;; | |
556 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
557 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
558 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
559 | | --sha=* | --sh=*) | |
560 | sharedstatedir=$ac_optarg ;; | |
561 | ||
562 | -site | --site | --sit) | |
563 | ac_prev=site ;; | |
564 | -site=* | --site=* | --sit=*) | |
565 | site=$ac_optarg ;; | |
566 | ||
567 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
568 | ac_prev=srcdir ;; | |
569 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
570 | srcdir=$ac_optarg ;; | |
571 | ||
572 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
573 | | --syscon | --sysco | --sysc | --sys | --sy) | |
574 | ac_prev=sysconfdir ;; | |
575 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
576 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
577 | sysconfdir=$ac_optarg ;; | |
578 | ||
579 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
580 | ac_prev=target_alias ;; | |
581 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
582 | target_alias=$ac_optarg ;; | |
583 | ||
584 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
585 | verbose=yes ;; | |
586 | ||
587 | -version | --version | --versio | --versi | --vers | -V) | |
588 | ac_init_version=: ;; | |
589 | ||
590 | -with-* | --with-*) | |
591 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
592 | # Reject names that are not valid shell variable names. | |
593 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
594 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
595 | { (exit 1); exit 1; }; } | |
596 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
597 | case $ac_option in | |
598 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
599 | *) ac_optarg=yes ;; | |
600 | esac | |
601 | eval "with_$ac_package='$ac_optarg'" ;; | |
602 | ||
603 | -without-* | --without-*) | |
604 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
605 | # Reject names that are not valid shell variable names. | |
606 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
607 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
608 | { (exit 1); exit 1; }; } | |
609 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
610 | eval "with_$ac_package=no" ;; | |
611 | ||
612 | --x) | |
613 | # Obsolete; use --with-x. | |
614 | with_x=yes ;; | |
615 | ||
616 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
617 | | --x-incl | --x-inc | --x-in | --x-i) | |
618 | ac_prev=x_includes ;; | |
619 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
620 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
621 | x_includes=$ac_optarg ;; | |
622 | ||
623 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
624 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
625 | ac_prev=x_libraries ;; | |
626 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
627 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
628 | x_libraries=$ac_optarg ;; | |
629 | ||
630 | -*) { echo "$as_me: error: unrecognized option: $ac_option | |
631 | Try \`$0 --help' for more information." >&2 | |
632 | { (exit 1); exit 1; }; } | |
633 | ;; | |
634 | ||
635 | *=*) | |
636 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
637 | # Reject names that are not valid shell variable names. | |
638 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
639 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
640 | { (exit 1); exit 1; }; } | |
641 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
642 | eval "$ac_envvar='$ac_optarg'" | |
643 | export $ac_envvar ;; | |
644 | ||
645 | *) | |
646 | # FIXME: should be removed in autoconf 3.0. | |
647 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
648 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
649 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
650 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
651 | ;; | |
652 | ||
653 | esac | |
654 | done | |
655 | ||
656 | if test -n "$ac_prev"; then | |
657 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
658 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
659 | { (exit 1); exit 1; }; } | |
660 | fi | |
661 | ||
662 | # Be sure to have absolute paths. | |
663 | for ac_var in exec_prefix prefix | |
664 | do | |
665 | eval ac_val=$`echo $ac_var` | |
666 | case $ac_val in | |
667 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
668 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
669 | { (exit 1); exit 1; }; };; | |
670 | esac | |
671 | done | |
672 | ||
673 | # Be sure to have absolute paths. | |
674 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
ac1cb8d3 | 675 | localstatedir libdir includedir oldincludedir infodir mandir |
a848cd7e SC |
676 | do |
677 | eval ac_val=$`echo $ac_var` | |
678 | case $ac_val in | |
679 | [\\/$]* | ?:[\\/]* ) ;; | |
680 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
681 | { (exit 1); exit 1; }; };; | |
682 | esac | |
683 | done | |
684 | ||
685 | # There might be people who depend on the old broken behavior: `$host' | |
686 | # used to hold the argument of --host etc. | |
687 | # FIXME: To remove some day. | |
688 | build=$build_alias | |
689 | host=$host_alias | |
690 | target=$target_alias | |
691 | ||
692 | # FIXME: To remove some day. | |
693 | if test "x$host_alias" != x; then | |
694 | if test "x$build_alias" = x; then | |
695 | cross_compiling=maybe | |
696 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
697 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
698 | elif test "x$build_alias" != "x$host_alias"; then | |
699 | cross_compiling=yes | |
700 | fi | |
701 | fi | |
702 | ||
703 | ac_tool_prefix= | |
704 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
705 | ||
706 | test "$silent" = yes && exec 6>/dev/null | |
707 | ||
708 | ||
709 | # Find the source files, if location was not specified. | |
710 | if test -z "$srcdir"; then | |
711 | ac_srcdir_defaulted=yes | |
712 | # Try the directory containing this script, then its parent. | |
713 | ac_confdir=`(dirname "$0") 2>/dev/null || | |
714 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
715 | X"$0" : 'X\(//\)[^/]' \| \ |
716 | X"$0" : 'X\(//\)$' \| \ | |
717 | X"$0" : 'X\(/\)' \| \ | |
718 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
719 | echo X"$0" | |
720 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
721 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
722 | /^X\(\/\/\)$/{ s//\1/; q; } | |
723 | /^X\(\/\).*/{ s//\1/; q; } | |
724 | s/.*/./; q'` | |
725 | srcdir=$ac_confdir | |
726 | if test ! -r $srcdir/$ac_unique_file; then | |
727 | srcdir=.. | |
728 | fi | |
729 | else | |
730 | ac_srcdir_defaulted=no | |
731 | fi | |
732 | if test ! -r $srcdir/$ac_unique_file; then | |
733 | if test "$ac_srcdir_defaulted" = yes; then | |
734 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | |
735 | { (exit 1); exit 1; }; } | |
736 | else | |
737 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
738 | { (exit 1); exit 1; }; } | |
739 | fi | |
740 | fi | |
741 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || | |
742 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
743 | { (exit 1); exit 1; }; } | |
744 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
745 | ac_env_build_alias_set=${build_alias+set} | |
746 | ac_env_build_alias_value=$build_alias | |
747 | ac_cv_env_build_alias_set=${build_alias+set} | |
748 | ac_cv_env_build_alias_value=$build_alias | |
749 | ac_env_host_alias_set=${host_alias+set} | |
750 | ac_env_host_alias_value=$host_alias | |
751 | ac_cv_env_host_alias_set=${host_alias+set} | |
752 | ac_cv_env_host_alias_value=$host_alias | |
753 | ac_env_target_alias_set=${target_alias+set} | |
754 | ac_env_target_alias_value=$target_alias | |
755 | ac_cv_env_target_alias_set=${target_alias+set} | |
756 | ac_cv_env_target_alias_value=$target_alias | |
757 | ac_env_CC_set=${CC+set} | |
758 | ac_env_CC_value=$CC | |
759 | ac_cv_env_CC_set=${CC+set} | |
760 | ac_cv_env_CC_value=$CC | |
761 | ac_env_CFLAGS_set=${CFLAGS+set} | |
762 | ac_env_CFLAGS_value=$CFLAGS | |
763 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
764 | ac_cv_env_CFLAGS_value=$CFLAGS | |
765 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
766 | ac_env_LDFLAGS_value=$LDFLAGS | |
767 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
768 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
769 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
770 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
771 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
772 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
773 | ac_env_CPP_set=${CPP+set} | |
774 | ac_env_CPP_value=$CPP | |
775 | ac_cv_env_CPP_set=${CPP+set} | |
776 | ac_cv_env_CPP_value=$CPP | |
777 | ac_env_CXX_set=${CXX+set} | |
778 | ac_env_CXX_value=$CXX | |
779 | ac_cv_env_CXX_set=${CXX+set} | |
780 | ac_cv_env_CXX_value=$CXX | |
781 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} | |
782 | ac_env_CXXFLAGS_value=$CXXFLAGS | |
783 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} | |
784 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS | |
785 | ac_env_CXXCPP_set=${CXXCPP+set} | |
786 | ac_env_CXXCPP_value=$CXXCPP | |
787 | ac_cv_env_CXXCPP_set=${CXXCPP+set} | |
788 | ac_cv_env_CXXCPP_value=$CXXCPP | |
789 | ||
790 | # | |
791 | # Report the --help message. | |
792 | # | |
793 | if test "$ac_init_help" = "long"; then | |
794 | # Omit some internal or obsolete options to make the list less imposing. | |
795 | # This message is too long to be a string in the A/UX 3.1 sh. | |
796 | cat <<_ACEOF | |
81f90336 | 797 | \`configure' configures wxWidgets 2.5.4 to adapt to many kinds of systems. |
a848cd7e SC |
798 | |
799 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
800 | ||
801 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
802 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
803 | ||
804 | Defaults for the options are specified in brackets. | |
805 | ||
806 | Configuration: | |
807 | -h, --help display this help and exit | |
808 | --help=short display options specific to this package | |
809 | --help=recursive display the short help of all the included packages | |
810 | -V, --version display version information and exit | |
811 | -q, --quiet, --silent do not print \`checking...' messages | |
812 | --cache-file=FILE cache test results in FILE [disabled] | |
813 | -C, --config-cache alias for \`--cache-file=config.cache' | |
814 | -n, --no-create do not create output files | |
815 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
816 | ||
817 | _ACEOF | |
818 | ||
819 | cat <<_ACEOF | |
820 | Installation directories: | |
821 | --prefix=PREFIX install architecture-independent files in PREFIX | |
ac1cb8d3 | 822 | [$ac_default_prefix] |
a848cd7e | 823 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
ac1cb8d3 | 824 | [PREFIX] |
a848cd7e SC |
825 | |
826 | By default, \`make install' will install all the files in | |
827 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
828 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
829 | for instance \`--prefix=\$HOME'. | |
830 | ||
831 | For better control, use the options below. | |
832 | ||
833 | Fine tuning of the installation directories: | |
834 | --bindir=DIR user executables [EPREFIX/bin] | |
835 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
836 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
837 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
838 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
839 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
840 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
841 | --libdir=DIR object code libraries [EPREFIX/lib] | |
842 | --includedir=DIR C header files [PREFIX/include] | |
843 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
844 | --infodir=DIR info documentation [PREFIX/info] | |
845 | --mandir=DIR man documentation [PREFIX/man] | |
846 | _ACEOF | |
847 | ||
848 | cat <<\_ACEOF | |
849 | ||
850 | X features: | |
851 | --x-includes=DIR X include files are in DIR | |
852 | --x-libraries=DIR X library files are in DIR | |
853 | ||
854 | System types: | |
855 | --build=BUILD configure for building on BUILD [guessed] | |
856 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
857 | --target=TARGET configure for building compilers for TARGET [HOST] | |
858 | _ACEOF | |
859 | fi | |
860 | ||
861 | if test -n "$ac_init_help"; then | |
862 | case $ac_init_help in | |
81f90336 | 863 | short | recursive ) echo "Configuration of wxWidgets 2.5.4:";; |
a848cd7e SC |
864 | esac |
865 | cat <<\_ACEOF | |
866 | ||
867 | Optional Features: | |
868 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
869 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
870 | --enable-gui use GUI classes | |
77ffb593 JS |
871 | --enable-monolithic build wxWidgets as single library |
872 | --enable-plugins build parts of wxWidgets as loadable components | |
873 | --enable-universal use wxWidgets GUI controls instead of native ones | |
a848cd7e | 874 | --enable-nanox use NanoX |
9f45f08e | 875 | --disable-gtk2 use GTK+ 1.2 instead of 2.0 |
a848cd7e SC |
876 | --enable-gpe use GNOME PDA Environment features if possible |
877 | --enable-shared create shared library code | |
878 | --enable-optimise create optimised code | |
879 | --enable-debug same as debug_flag and debug_info | |
880 | --enable-stl use STL for containers | |
881 | --enable-omf use OMF object format | |
882 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!) | |
883 | --enable-debug_info create code with debugging information | |
884 | --enable-debug_gdb create code with extra GDB debugging information | |
885 | --enable-debug_cntxt use wxDebugContext | |
886 | --enable-mem_tracing create code with memory tracing | |
887 | --enable-profile create code with profiling information | |
888 | --enable-no_rtti create code without RTTI information | |
889 | --enable-no_exceptions create code without C++ exceptions handling | |
890 | --enable-permissive compile code disregarding strict ANSI | |
891 | --enable-no_deps create code without dependency information | |
77ffb593 JS |
892 | --enable-compat22 enable wxWidgets 2.2 compatibility |
893 | --disable-compat24 disable wxWidgets 2.4 compatibility | |
ffa0583f | 894 | --disable-rpath disable use of rpath for uninstalled builds |
a848cd7e SC |
895 | --enable-intl use internationalization system |
896 | --enable-config use wxConfig (and derived) classes | |
897 | --enable-protocols use wxProtocol and derived classes | |
898 | --enable-ftp use wxFTP (requires wxProtocol | |
899 | --enable-http use wxHTTP (requires wxProtocol | |
900 | --enable-fileproto use wxFileProto class (requires wxProtocol | |
901 | --enable-sockets use socket/network classes | |
902 | --enable-ole use OLE classes (Win32 only) | |
903 | --enable-dataobj use data object classes | |
904 | --enable-ipc use interprocess communication (wxSocket etc.) | |
905 | --enable-apple_ieee use the Apple IEEE codec | |
81f90336 | 906 | --enable-arcstream use wxArchive streams |
a848cd7e | 907 | --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only) |
eaff0f0d | 908 | --enable-backtrace use wxStackWalker class for getting backtraces |
a848cd7e SC |
909 | --enable-cmdline use wxCmdLineParser class |
910 | --enable-datetime use wxDateTime class | |
911 | --enable-dialupman use dialup network classes | |
912 | --enable-dynlib use wxLibrary class for DLL loading | |
913 | --enable-dynamicloader use (new) wxDynamicLibrary class | |
914 | --enable-exceptions build exception-safe library | |
915 | --enable-ffile use wxFFile class | |
916 | --enable-file use wxFile class | |
917 | --enable-filesystem use virtual file systems classes | |
918 | --enable-fontmap use font encodings conversion classes | |
919 | --enable-fs_inet use virtual HTTP/FTP filesystems | |
920 | --enable-fs_zip use virtual ZIP filesystems | |
921 | --enable-geometry use geometry class | |
922 | --enable-log use logging system | |
923 | --enable-longlong use wxLongLong class | |
924 | --enable-mimetype use wxMimeTypesManager | |
925 | --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only) | |
926 | --enable-snglinst use wxSingleInstanceChecker class | |
927 | --enable-streams use wxStream etc classes | |
928 | --enable-std_iostreams use standard C++ stream classes | |
929 | --enable-stopwatch use wxStopWatch class | |
930 | --enable-sysoptions use wxSystemOptions | |
931 | --enable-textbuf use wxTextBuffer class | |
932 | --enable-textfile use wxTextFile class | |
933 | --enable-timer use wxTimer class | |
934 | --enable-unicode compile wxString with Unicode support | |
935 | --enable-sound use wxSound class | |
3b57de8b | 936 | --enable-mediactrl use wxMediaCtrl class |
77ffb593 | 937 | --enable-wxprintfv use wxWidgets implementation of vprintf() |
81f90336 | 938 | --enable-zipstream use wxZip streams |
a848cd7e SC |
939 | --enable-url use wxURL class |
940 | --enable-protocol use wxProtocol class | |
941 | --enable-protocol-http HTTP support in wxProtocol | |
942 | --enable-protocol-ftp FTP support in wxProtocol | |
943 | --enable-protocol-file FILE support in wxProtocol | |
944 | --enable-threads use threads | |
945 | --enable-docview use document view architecture | |
946 | --enable-help use help subsystem | |
947 | --enable-mshtmlhelp use MS HTML Help (win32) | |
948 | --enable-html use wxHTML sub-library | |
949 | --enable-htmlhelp use wxHTML-based help | |
9a8f0513 | 950 | --enable-xrc use XRC resources sub-library |
a848cd7e SC |
951 | --enable-constraints use layout-constraints system |
952 | --enable-printarch use printing architecture | |
953 | --enable-mdi use multiple document interface architecture | |
8a7b1113 | 954 | --enable-mdidoc use docview architecture with MDI |
a848cd7e SC |
955 | --enable-loggui use standard GUI logger |
956 | --enable-logwin use wxLogWindow | |
957 | --enable-logdialog use wxLogDialog | |
646b6ec1 | 958 | --enable-webkit use wxWebKitCtrl (Mac) |
a848cd7e SC |
959 | --enable-postscript use wxPostscriptDC device context (default for gtk+) |
960 | --enable-prologio not available; see contrib | |
961 | --enable-resources not available; see contrib | |
962 | --enable-clipboard use wxClipboard class | |
963 | --enable-dnd use Drag'n'Drop classes | |
964 | --enable-metafile use win32 metafiles | |
965 | --enable-controls use all usual controls | |
966 | --enable-accel use accelerators | |
967 | --enable-button use wxButton class | |
968 | --enable-bmpbutton use wxBitmapButton class | |
969 | --enable-calendar use wxCalendarCtrl class | |
970 | --enable-caret use wxCaret class | |
971 | --enable-checkbox use wxCheckBox class | |
972 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class | |
973 | --enable-choice use wxChoice class | |
92bbdbcd | 974 | --enable-choicebook use wxChoicebook class |
a848cd7e | 975 | --enable-combobox use wxComboBox class |
da98e9be | 976 | --enable-datepick use wxDatePickerCtrl class |
a848cd7e SC |
977 | --enable-display use wxDisplay class |
978 | --enable-gauge use wxGauge class | |
979 | --enable-grid use wxGrid class | |
980 | --enable-imaglist use wxImageList class | |
981 | --enable-listbook use wxListbook class | |
982 | --enable-listbox use wxListBox class | |
983 | --enable-listctrl use wxListCtrl class | |
984 | --enable-notebook use wxNotebook class | |
985 | --enable-radiobox use wxRadioBox class | |
986 | --enable-radiobtn use wxRadioButton class | |
987 | --enable-sash use wxSashWindow class | |
988 | --enable-scrollbar use wxScrollBar class and scrollable windows | |
989 | --enable-slider use wxSlider class | |
990 | --enable-spinbtn use wxSpinButton class | |
991 | --enable-spinctrl use wxSpinCtrl class | |
992 | --enable-splitter use wxSplitterWindow class | |
993 | --enable-statbmp use wxStaticBitmap class | |
994 | --enable-statbox use wxStaticBox class | |
995 | --enable-statline use wxStaticLine class | |
996 | --enable-stattext use wxStaticText class | |
997 | --enable-statusbar use wxStatusBar class | |
998 | --enable-tabdialog use wxTabControl class | |
999 | --enable-textctrl use wxTextCtrl class | |
1000 | --enable-togglebtn use wxToggleButton class | |
1001 | --enable-toolbar use wxToolBar class | |
1002 | --enable-tbarnative use native wxToolBar class | |
1003 | --enable-tbarsmpl use wxToolBarSimple class | |
1004 | --enable-treectrl use wxTreeCtrl class | |
1005 | --enable-tipwindow use wxTipWindow class | |
1006 | --enable-popupwin use wxPopUpWindow class | |
1007 | --enable-commondlg use all common dialogs | |
1008 | --enable-choicedlg use wxChoiceDialog | |
1009 | --enable-coldlg use wxColourDialog | |
1010 | --enable-filedlg use wxFileDialog | |
1011 | --enable-finddlg use wxFindReplaceDialog | |
1012 | --enable-fontdlg use wxFontDialog | |
1013 | --enable-dirdlg use wxDirDialog | |
1014 | --enable-msgdlg use wxMessageDialog | |
1015 | --enable-numberdlg use wxNumberEntryDialog | |
1016 | --enable-splash use wxSplashScreen | |
1017 | --enable-textdlg use wxTextDialog | |
1018 | --enable-tipdlg use startup tips | |
1019 | --enable-progressdlg use wxProgressDialog | |
1020 | --enable-wizarddlg use wxWizard | |
1021 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes | |
1022 | --enable-miniframe use wxMiniFrame class | |
1023 | --enable-tooltips use wxToolTip class | |
1024 | --enable-splines use spline drawing code | |
1025 | --enable-validators use wxValidator and derived classes | |
1026 | --enable-busyinfo use wxBusyInfo | |
4cb1d3da | 1027 | --enable-joystick use wxJoystick |
a848cd7e SC |
1028 | --enable-metafiles use wxMetaFile (Windows only) |
1029 | --enable-dragimage use wxDragImage | |
1030 | --enable-accessibility enable accessibility support | |
1031 | --enable-palette use wxPalette class | |
1032 | --enable-image use wxImage class | |
1033 | --enable-gif use gif images (GIF file format) | |
1034 | --enable-pcx use pcx images (PCX file format) | |
1035 | --enable-iff use iff images (IFF file format) | |
1036 | --enable-pnm use pnm images (PNM file format) | |
1037 | --enable-xpm use xpm images (XPM file format) | |
1038 | --enable-icocur use Windows ICO and CUR formats | |
77ffb593 | 1039 | --enable-official_build official build of wxWidgets (win32 DLL only) |
a848cd7e SC |
1040 | --enable-vendor=VENDOR vendor name (win32 DLL only) |
1041 | --disable-largefile omit support for large files | |
1042 | --disable-gtktest do not try to compile and run a test GTK+ program | |
1043 | --disable-gtktest Do not try to compile and run a test GTK program | |
1044 | --disable-sdltest Do not try to compile and run a test SDL program | |
1045 | --enable-omf use OMF object format (OS/2) | |
ebee3cd0 VS |
1046 | --disable-precomp-headers |
1047 | don't use precompiled headers even if compiler can | |
a848cd7e SC |
1048 | |
1049 | Optional Packages: | |
1050 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1051 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1052 | --with-gtk use GTK+ | |
1053 | --with-motif use Motif/Lesstif | |
1054 | --with-mac use Mac OS X | |
1055 | --with-cocoa use Cocoa | |
1056 | --with-wine use Wine | |
1057 | --with-msw use MS-Windows | |
1058 | --with-pm use OS/2 Presentation Manager | |
1059 | --with-mgl use SciTech MGL | |
1060 | --with-microwin use MicroWindows | |
1061 | --with-x11 use X11 | |
1062 | --with-libpng use libpng (PNG image format) | |
1063 | --with-libjpeg use libjpeg (JPEG file format) | |
1064 | --with-libtiff use libtiff (TIFF file format) | |
1065 | --with-libxpm use libxpm (XPM file format) | |
1066 | --with-libmspack use libmspack (CHM help files loading) | |
1067 | --with-sdl use SDL for audio on Unix | |
d51253e8 | 1068 | --with-gnomeprint use GNOME print for printing under Unix |
a848cd7e SC |
1069 | --with-opengl use OpenGL (or Mesa) |
1070 | --with-dmalloc use dmalloc library (http://dmalloc.com/) | |
1071 | --with-regex enable support for wxRegEx class | |
1072 | --with-zlib use zlib for LZW compression | |
1073 | --with-odbc use the IODBC and wxODBC classes | |
1074 | --with-expat enable XML support using expat parser | |
ceec2216 | 1075 | --with-flavour=NAME specify a name to identify this build |
a848cd7e SC |
1076 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) |
1077 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) | |
1078 | --with-x use the X Window System | |
1079 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib | |
1080 | --with-sdl-prefix=PFX Prefix where SDL is installed (optional) | |
1081 | --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) | |
1082 | --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional) | |
1083 | --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional) | |
1084 | ||
1085 | Some influential environment variables: | |
dcc1b6ad VS |
1086 | CC C compiler command |
1087 | CFLAGS C compiler flags | |
1088 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1089 | nonstandard directory <lib dir> | |
1090 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1091 | headers in a nonstandard directory <include dir> | |
1092 | CPP C preprocessor | |
1093 | CXX C++ compiler command | |
1094 | CXXFLAGS C++ compiler flags | |
1095 | CXXCPP C++ preprocessor | |
a848cd7e SC |
1096 | |
1097 | Use these variables to override the choices made by `configure' or to help | |
1098 | it to find libraries and programs with nonstandard names/locations. | |
1099 | ||
77ffb593 | 1100 | Report bugs to <wx-dev@lists.wxwidgets.org>. |
a848cd7e SC |
1101 | _ACEOF |
1102 | fi | |
1103 | ||
1104 | if test "$ac_init_help" = "recursive"; then | |
1105 | # If there are subdirs, report their specific --help. | |
1106 | ac_popdir=`pwd` | |
1107 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1108 | test -d $ac_dir || continue | |
1109 | ac_builddir=. | |
1110 | ||
1111 | if test "$ac_dir" != .; then | |
1112 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1113 | # A "../" for each directory in $ac_dir_suffix. | |
1114 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1115 | else | |
1116 | ac_dir_suffix= ac_top_builddir= | |
1117 | fi | |
1118 | ||
1119 | case $srcdir in | |
1120 | .) # No --srcdir option. We are building in place. | |
1121 | ac_srcdir=. | |
1122 | if test -z "$ac_top_builddir"; then | |
1123 | ac_top_srcdir=. | |
1124 | else | |
1125 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1126 | fi ;; | |
1127 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1128 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1129 | ac_top_srcdir=$srcdir ;; | |
1130 | *) # Relative path. | |
1131 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1132 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1133 | esac | |
ac1cb8d3 VS |
1134 | |
1135 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
1136 | # the directories may not exist. | |
1137 | case `pwd` in | |
1138 | .) ac_abs_builddir="$ac_dir";; | |
1139 | *) | |
1140 | case "$ac_dir" in | |
1141 | .) ac_abs_builddir=`pwd`;; | |
1142 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
1143 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
1144 | esac;; | |
1145 | esac | |
1146 | case $ac_abs_builddir in | |
1147 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1148 | *) | |
1149 | case ${ac_top_builddir}. in | |
1150 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
1151 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1152 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
1153 | esac;; | |
1154 | esac | |
1155 | case $ac_abs_builddir in | |
1156 | .) ac_abs_srcdir=$ac_srcdir;; | |
1157 | *) | |
1158 | case $ac_srcdir in | |
1159 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
1160 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
1161 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
1162 | esac;; | |
1163 | esac | |
1164 | case $ac_abs_builddir in | |
1165 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1166 | *) | |
1167 | case $ac_top_srcdir in | |
1168 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
1169 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1170 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
1171 | esac;; | |
1172 | esac | |
a848cd7e SC |
1173 | |
1174 | cd $ac_dir | |
1175 | # Check for guested configure; otherwise get Cygnus style configure. | |
1176 | if test -f $ac_srcdir/configure.gnu; then | |
1177 | echo | |
1178 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1179 | elif test -f $ac_srcdir/configure; then | |
1180 | echo | |
1181 | $SHELL $ac_srcdir/configure --help=recursive | |
1182 | elif test -f $ac_srcdir/configure.ac || | |
ac1cb8d3 | 1183 | test -f $ac_srcdir/configure.in; then |
a848cd7e SC |
1184 | echo |
1185 | $ac_configure --help | |
1186 | else | |
1187 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1188 | fi | |
89be85c2 | 1189 | cd $ac_popdir |
a848cd7e SC |
1190 | done |
1191 | fi | |
1192 | ||
1193 | test -n "$ac_init_help" && exit 0 | |
1194 | if $ac_init_version; then | |
1195 | cat <<\_ACEOF | |
81f90336 | 1196 | wxWidgets configure 2.5.4 |
ac1cb8d3 | 1197 | generated by GNU Autoconf 2.59 |
a848cd7e | 1198 | |
ac1cb8d3 | 1199 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
1200 | This configure script is free software; the Free Software Foundation |
1201 | gives unlimited permission to copy, distribute and modify it. | |
1202 | _ACEOF | |
1203 | exit 0 | |
1204 | fi | |
1205 | exec 5>config.log | |
1206 | cat >&5 <<_ACEOF | |
1207 | This file contains any messages produced by compilers while | |
1208 | running configure, to aid debugging if configure makes a mistake. | |
1209 | ||
81f90336 | 1210 | It was created by wxWidgets $as_me 2.5.4, which was |
ac1cb8d3 | 1211 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
1212 | |
1213 | $ $0 $@ | |
1214 | ||
1215 | _ACEOF | |
1216 | { | |
1217 | cat <<_ASUNAME | |
1218 | ## --------- ## | |
1219 | ## Platform. ## | |
1220 | ## --------- ## | |
1221 | ||
1222 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1223 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1224 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1225 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1226 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1227 | ||
1228 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1229 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1230 | ||
1231 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1232 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1233 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1234 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1235 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1236 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1237 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1238 | ||
1239 | _ASUNAME | |
1240 | ||
1241 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1242 | for as_dir in $PATH | |
1243 | do | |
1244 | IFS=$as_save_IFS | |
1245 | test -z "$as_dir" && as_dir=. | |
1246 | echo "PATH: $as_dir" | |
1247 | done | |
1248 | ||
1249 | } >&5 | |
1250 | ||
1251 | cat >&5 <<_ACEOF | |
1252 | ||
1253 | ||
1254 | ## ----------- ## | |
1255 | ## Core tests. ## | |
1256 | ## ----------- ## | |
1257 | ||
1258 | _ACEOF | |
1259 | ||
1260 | ||
1261 | # Keep a trace of the command line. | |
1262 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1263 | # Strip out --silent because we don't want to record it for future runs. | |
1264 | # Also quote any args containing shell meta-characters. | |
1265 | # Make two passes to allow for proper duplicate-argument suppression. | |
1266 | ac_configure_args= | |
1267 | ac_configure_args0= | |
1268 | ac_configure_args1= | |
1269 | ac_sep= | |
1270 | ac_must_keep_next=false | |
1271 | for ac_pass in 1 2 | |
1272 | do | |
1273 | for ac_arg | |
1274 | do | |
1275 | case $ac_arg in | |
1276 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1277 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1278 | | -silent | --silent | --silen | --sile | --sil) | |
1279 | continue ;; | |
1280 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1281 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1282 | esac | |
1283 | case $ac_pass in | |
1284 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1285 | 2) | |
1286 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1287 | if test $ac_must_keep_next = true; then | |
ac1cb8d3 | 1288 | ac_must_keep_next=false # Got value, back to normal. |
a848cd7e | 1289 | else |
ac1cb8d3 VS |
1290 | case $ac_arg in |
1291 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1292 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1293 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1294 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1295 | case "$ac_configure_args0 " in | |
1296 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1297 | esac | |
1298 | ;; | |
1299 | -* ) ac_must_keep_next=true ;; | |
1300 | esac | |
a848cd7e SC |
1301 | fi |
1302 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1303 | # Get rid of the leading space. | |
1304 | ac_sep=" " | |
1305 | ;; | |
1306 | esac | |
1307 | done | |
1308 | done | |
1309 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1310 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1311 | ||
1312 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1313 | # config.log. We remove comments because anyway the quotes in there | |
1314 | # would cause problems or look ugly. | |
1315 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1316 | # such as our DU 5.0 friend, will then `close' the trap. | |
1317 | trap 'exit_status=$? | |
1318 | # Save into config.log some information that might help in debugging. | |
1319 | { | |
1320 | echo | |
1321 | ||
1322 | cat <<\_ASBOX | |
1323 | ## ---------------- ## | |
1324 | ## Cache variables. ## | |
1325 | ## ---------------- ## | |
1326 | _ASBOX | |
1327 | echo | |
1328 | # The following way of writing the cache mishandles newlines in values, | |
1329 | { | |
1330 | (set) 2>&1 | | |
1331 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1332 | *ac_space=\ *) | |
1333 | sed -n \ | |
ac1cb8d3 VS |
1334 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1335 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
a848cd7e SC |
1336 | ;; |
1337 | *) | |
1338 | sed -n \ | |
ac1cb8d3 | 1339 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
1340 | ;; |
1341 | esac; | |
1342 | } | |
1343 | echo | |
1344 | ||
1345 | cat <<\_ASBOX | |
1346 | ## ----------------- ## | |
1347 | ## Output variables. ## | |
1348 | ## ----------------- ## | |
1349 | _ASBOX | |
1350 | echo | |
1351 | for ac_var in $ac_subst_vars | |
1352 | do | |
1353 | eval ac_val=$`echo $ac_var` | |
1354 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1355 | done | sort | |
1356 | echo | |
1357 | ||
1358 | if test -n "$ac_subst_files"; then | |
1359 | cat <<\_ASBOX | |
1360 | ## ------------- ## | |
1361 | ## Output files. ## | |
1362 | ## ------------- ## | |
1363 | _ASBOX | |
1364 | echo | |
1365 | for ac_var in $ac_subst_files | |
1366 | do | |
1367 | eval ac_val=$`echo $ac_var` | |
ac1cb8d3 | 1368 | echo "$ac_var='"'"'$ac_val'"'"'" |
a848cd7e SC |
1369 | done | sort |
1370 | echo | |
1371 | fi | |
1372 | ||
1373 | if test -s confdefs.h; then | |
1374 | cat <<\_ASBOX | |
1375 | ## ----------- ## | |
1376 | ## confdefs.h. ## | |
1377 | ## ----------- ## | |
1378 | _ASBOX | |
1379 | echo | |
1380 | sed "/^$/d" confdefs.h | sort | |
1381 | echo | |
1382 | fi | |
1383 | test "$ac_signal" != 0 && | |
1384 | echo "$as_me: caught signal $ac_signal" | |
1385 | echo "$as_me: exit $exit_status" | |
1386 | } >&5 | |
ac1cb8d3 | 1387 | rm -f core *.core && |
a848cd7e SC |
1388 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1389 | exit $exit_status | |
1390 | ' 0 | |
1391 | for ac_signal in 1 2 13 15; do | |
1392 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1393 | done | |
1394 | ac_signal=0 | |
1395 | ||
1396 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1397 | rm -rf conftest* confdefs.h | |
1398 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1399 | echo >confdefs.h | |
1400 | ||
1401 | # Predefined preprocessor variables. | |
1402 | ||
1403 | cat >>confdefs.h <<_ACEOF | |
1404 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1405 | _ACEOF | |
1406 | ||
1407 | ||
1408 | cat >>confdefs.h <<_ACEOF | |
1409 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1410 | _ACEOF | |
1411 | ||
1412 | ||
1413 | cat >>confdefs.h <<_ACEOF | |
1414 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1415 | _ACEOF | |
1416 | ||
1417 | ||
1418 | cat >>confdefs.h <<_ACEOF | |
1419 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1420 | _ACEOF | |
1421 | ||
1422 | ||
1423 | cat >>confdefs.h <<_ACEOF | |
1424 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1425 | _ACEOF | |
1426 | ||
1427 | ||
1428 | # Let the site file select an alternate cache file if it wants to. | |
1429 | # Prefer explicitly selected file to automatically selected ones. | |
1430 | if test -z "$CONFIG_SITE"; then | |
1431 | if test "x$prefix" != xNONE; then | |
1432 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1433 | else | |
1434 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1435 | fi | |
1436 | fi | |
1437 | for ac_site_file in $CONFIG_SITE; do | |
1438 | if test -r "$ac_site_file"; then | |
1439 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1440 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1441 | sed 's/^/| /' "$ac_site_file" >&5 | |
1442 | . "$ac_site_file" | |
1443 | fi | |
1444 | done | |
1445 | ||
1446 | if test -r "$cache_file"; then | |
1447 | # Some versions of bash will fail to source /dev/null (special | |
1448 | # files actually), so we avoid doing that. | |
1449 | if test -f "$cache_file"; then | |
1450 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1451 | echo "$as_me: loading cache $cache_file" >&6;} | |
1452 | case $cache_file in | |
1453 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1454 | *) . ./$cache_file;; | |
1455 | esac | |
1456 | fi | |
1457 | else | |
1458 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1459 | echo "$as_me: creating cache $cache_file" >&6;} | |
1460 | >$cache_file | |
1461 | fi | |
1462 | ||
1463 | # Check that the precious variables saved in the cache have kept the same | |
1464 | # value. | |
1465 | ac_cache_corrupted=false | |
1466 | for ac_var in `(set) 2>&1 | | |
ac1cb8d3 | 1467 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
a848cd7e SC |
1468 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1469 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1470 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1471 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1472 | case $ac_old_set,$ac_new_set in | |
1473 | set,) | |
1474 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1475 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1476 | ac_cache_corrupted=: ;; | |
1477 | ,set) | |
1478 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1479 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1480 | ac_cache_corrupted=: ;; | |
1481 | ,);; | |
1482 | *) | |
1483 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
ac1cb8d3 | 1484 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
a848cd7e | 1485 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
ac1cb8d3 | 1486 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
a848cd7e | 1487 | echo "$as_me: former value: $ac_old_val" >&2;} |
ac1cb8d3 | 1488 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
a848cd7e | 1489 | echo "$as_me: current value: $ac_new_val" >&2;} |
ac1cb8d3 | 1490 | ac_cache_corrupted=: |
a848cd7e SC |
1491 | fi;; |
1492 | esac | |
1493 | # Pass precious variables to config.status. | |
1494 | if test "$ac_new_set" = set; then | |
1495 | case $ac_new_val in | |
1496 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1497 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1498 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1499 | esac | |
1500 | case " $ac_configure_args " in | |
1501 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1502 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1503 | esac | |
1504 | fi | |
1505 | done | |
1506 | if $ac_cache_corrupted; then | |
1507 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1508 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1509 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1510 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1511 | { (exit 1); exit 1; }; } | |
1512 | fi | |
1513 | ||
1514 | ac_ext=c | |
1515 | ac_cpp='$CPP $CPPFLAGS' | |
1516 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1517 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1518 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1519 | ||
1520 | ||
1521 | ||
1522 | ||
1523 | ||
1524 | ||
1525 | ||
1526 | ||
1527 | ||
1528 | ||
1529 | ||
1530 | ||
1531 | ||
1532 | ||
1533 | ||
1534 | ||
1535 | ||
1536 | ||
1537 | ||
1538 | ||
1539 | ||
1540 | ||
1541 | ||
1542 | ||
1543 | ||
1544 | ||
1545 | ||
1546 | ||
1547 | ||
1548 | ||
1549 | ac_aux_dir= | |
1550 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1551 | if test -f $ac_dir/install-sh; then | |
1552 | ac_aux_dir=$ac_dir | |
1553 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1554 | break | |
1555 | elif test -f $ac_dir/install.sh; then | |
1556 | ac_aux_dir=$ac_dir | |
1557 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1558 | break | |
1559 | elif test -f $ac_dir/shtool; then | |
1560 | ac_aux_dir=$ac_dir | |
1561 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1562 | break | |
1563 | fi | |
1564 | done | |
1565 | if test -z "$ac_aux_dir"; then | |
1566 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1567 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1568 | { (exit 1); exit 1; }; } | |
1569 | fi | |
1570 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1571 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1572 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1573 | ||
1574 | # Make sure we can run config.sub. | |
1575 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1576 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1577 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1578 | { (exit 1); exit 1; }; } | |
1579 | ||
1580 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1581 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1582 | if test "${ac_cv_build+set}" = set; then | |
1583 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1584 | else | |
1585 | ac_cv_build_alias=$build_alias | |
1586 | test -z "$ac_cv_build_alias" && | |
1587 | ac_cv_build_alias=`$ac_config_guess` | |
1588 | test -z "$ac_cv_build_alias" && | |
1589 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1590 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1591 | { (exit 1); exit 1; }; } | |
1592 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1593 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1594 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1595 | { (exit 1); exit 1; }; } | |
1596 | ||
1597 | fi | |
1598 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1599 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1600 | build=$ac_cv_build | |
1601 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1602 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1603 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1604 | ||
1605 | ||
1606 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1607 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1608 | if test "${ac_cv_host+set}" = set; then | |
1609 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1610 | else | |
1611 | ac_cv_host_alias=$host_alias | |
1612 | test -z "$ac_cv_host_alias" && | |
1613 | ac_cv_host_alias=$ac_cv_build_alias | |
1614 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1615 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1616 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1617 | { (exit 1); exit 1; }; } | |
1618 | ||
1619 | fi | |
1620 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1621 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1622 | host=$ac_cv_host | |
1623 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1624 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1625 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1626 | ||
1627 | ||
1628 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1629 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1630 | if test "${ac_cv_target+set}" = set; then | |
1631 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1632 | else | |
1633 | ac_cv_target_alias=$target_alias | |
1634 | test "x$ac_cv_target_alias" = "x" && | |
1635 | ac_cv_target_alias=$ac_cv_host_alias | |
1636 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1637 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1638 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1639 | { (exit 1); exit 1; }; } | |
1640 | ||
1641 | fi | |
1642 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1643 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1644 | target=$ac_cv_target | |
1645 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1646 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1647 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1648 | ||
1649 | ||
1650 | # The aliases save the names the user supplied, while $host etc. | |
1651 | # will get canonicalized. | |
1652 | test -n "$target_alias" && | |
1653 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1654 | NONENONEs,x,x, && | |
1655 | program_prefix=${target_alias}- | |
1656 | ||
1657 | ||
1658 | ||
ceec2216 RL |
1659 | wx_major_version_number=2 |
1660 | wx_minor_version_number=5 | |
e41c39d6 RD |
1661 | wx_release_number=4 |
1662 | wx_subrelease_number=0 | |
a848cd7e | 1663 | |
ceec2216 RL |
1664 | WX_RELEASE=$wx_major_version_number.$wx_minor_version_number |
1665 | WX_VERSION=$WX_RELEASE.$wx_release_number | |
1666 | WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number | |
a848cd7e | 1667 | |
ceec2216 | 1668 | WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number |
a848cd7e | 1669 | |
e41c39d6 | 1670 | WX_CURRENT=4 |
a848cd7e | 1671 | WX_REVISION=0 |
e41c39d6 | 1672 | WX_AGE=4 |
a848cd7e SC |
1673 | |
1674 | ||
1675 | ||
1676 | USE_UNIX=1 | |
1677 | USE_OS2=0 | |
1678 | USE_WIN32=0 | |
1679 | USE_DOS=0 | |
1680 | USE_BEOS=0 | |
1681 | USE_MAC=0 | |
1682 | ||
1683 | USE_AIX= | |
1684 | USE_BSD= USE_DARWIN= USE_FREEBSD= | |
1685 | USE_GNU= USE_HPUX= | |
1686 | USE_LINUX= | |
1687 | USE_NETBSD= | |
1688 | USE_OPENBSD= | |
1689 | USE_OSF= USE_SGI= | |
1690 | USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS= | |
1691 | USE_ULTRIX= | |
1692 | USE_UNIXWARE= | |
1693 | ||
1694 | USE_ALPHA= | |
1695 | ||
1696 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 | |
1697 | ||
1698 | ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11" | |
1699 | ||
1700 | DEFAULT_wxUSE_COCOA=0 | |
1701 | DEFAULT_wxUSE_GTK=0 | |
1702 | DEFAULT_wxUSE_MAC=0 | |
1703 | DEFAULT_wxUSE_MGL=0 | |
1704 | DEFAULT_wxUSE_MICROWIN=0 | |
1705 | DEFAULT_wxUSE_MOTIF=0 | |
1706 | DEFAULT_wxUSE_MSW=0 | |
1707 | DEFAULT_wxUSE_PM=0 | |
1708 | DEFAULT_wxUSE_X11=0 | |
1709 | ||
1710 | DEFAULT_DEFAULT_wxUSE_COCOA=0 | |
1711 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1712 | DEFAULT_DEFAULT_wxUSE_MAC=0 | |
1713 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1714 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 | |
1715 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
1716 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
1717 | DEFAULT_DEFAULT_wxUSE_PM=0 | |
1718 | DEFAULT_DEFAULT_wxUSE_X11=0 | |
1719 | ||
1720 | PROGRAM_EXT= | |
1721 | SO_SUFFIX=so | |
1722 | SAMPLES_RPATH_FLAG= | |
1723 | SAMPLES_RPATH_POSTLINK= | |
1724 | ||
1725 | case "${host}" in | |
1726 | *-hp-hpux* ) | |
1727 | USE_HPUX=1 | |
1728 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1729 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1730 | SO_SUFFIX=sl | |
1731 | cat >>confdefs.h <<\_ACEOF | |
1732 | #define __HPUX__ 1 | |
1733 | _ACEOF | |
1734 | ||
1735 | ;; | |
1736 | *-*-linux* ) | |
1737 | USE_LINUX=1 | |
1738 | cat >>confdefs.h <<\_ACEOF | |
1739 | #define __LINUX__ 1 | |
1740 | _ACEOF | |
1741 | ||
1742 | TMP=`uname -m` | |
1743 | if test "x$TMP" = "xalpha"; then | |
1744 | USE_ALPHA=1 | |
1745 | cat >>confdefs.h <<\_ACEOF | |
1746 | #define __ALPHA__ 1 | |
1747 | _ACEOF | |
1748 | ||
1749 | fi | |
1750 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1751 | ;; | |
1752 | *-*-gnu* | *-*-k*bsd*-gnu ) | |
1753 | USE_GNU=1 | |
1754 | TMP=`uname -m` | |
1755 | if test "x$TMP" = "xalpha"; then | |
1756 | USE_ALPHA=1 | |
1757 | cat >>confdefs.h <<\_ACEOF | |
1758 | #define __ALPHA__ 1 | |
1759 | _ACEOF | |
1760 | ||
1761 | fi | |
1762 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1763 | ;; | |
1764 | *-*-irix5* | *-*-irix6* ) | |
1765 | USE_SGI=1 | |
1766 | USE_SVR4=1 | |
1767 | cat >>confdefs.h <<\_ACEOF | |
1768 | #define __SGI__ 1 | |
1769 | _ACEOF | |
1770 | ||
1771 | cat >>confdefs.h <<\_ACEOF | |
1772 | #define __SVR4__ 1 | |
1773 | _ACEOF | |
1774 | ||
1775 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1776 | ;; | |
1777 | *-*-solaris2* ) | |
1778 | USE_SUN=1 | |
1779 | USE_SOLARIS=1 | |
1780 | USE_SVR4=1 | |
1781 | cat >>confdefs.h <<\_ACEOF | |
1782 | #define __SUN__ 1 | |
1783 | _ACEOF | |
1784 | ||
1785 | cat >>confdefs.h <<\_ACEOF | |
1786 | #define __SOLARIS__ 1 | |
1787 | _ACEOF | |
1788 | ||
1789 | cat >>confdefs.h <<\_ACEOF | |
1790 | #define __SVR4__ 1 | |
1791 | _ACEOF | |
1792 | ||
1793 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1794 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1795 | ;; | |
1796 | *-*-sunos4* ) | |
1797 | USE_SUN=1 | |
1798 | USE_SUNOS=1 | |
1799 | USE_BSD=1 | |
1800 | cat >>confdefs.h <<\_ACEOF | |
1801 | #define __SUN__ 1 | |
1802 | _ACEOF | |
1803 | ||
1804 | cat >>confdefs.h <<\_ACEOF | |
1805 | #define __SUNOS__ 1 | |
1806 | _ACEOF | |
1807 | ||
1808 | cat >>confdefs.h <<\_ACEOF | |
1809 | #define __BSD__ 1 | |
1810 | _ACEOF | |
1811 | ||
1812 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1813 | ;; | |
1814 | *-*-freebsd*) | |
1815 | USE_BSD=1 | |
1816 | USE_FREEBSD=1 | |
1817 | cat >>confdefs.h <<\_ACEOF | |
1818 | #define __FREEBSD__ 1 | |
1819 | _ACEOF | |
1820 | ||
1821 | cat >>confdefs.h <<\_ACEOF | |
1822 | #define __BSD__ 1 | |
1823 | _ACEOF | |
1824 | ||
1825 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1826 | ;; | |
1827 | *-*-openbsd*) | |
1828 | USE_BSD=1 | |
1829 | USE_OPENBSD=1 | |
1830 | cat >>confdefs.h <<\_ACEOF | |
1831 | #define __OPENBSD__ 1 | |
1832 | _ACEOF | |
1833 | ||
1834 | cat >>confdefs.h <<\_ACEOF | |
1835 | #define __BSD__ 1 | |
1836 | _ACEOF | |
1837 | ||
1838 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1839 | ;; | |
1840 | *-*-netbsd*) | |
1841 | USE_BSD=1 | |
1842 | USE_NETBSD=1 | |
1843 | cat >>confdefs.h <<\_ACEOF | |
1844 | #define __NETBSD__ 1 | |
1845 | _ACEOF | |
1846 | ||
1847 | cat >>confdefs.h <<\_ACEOF | |
1848 | #define __BSD__ 1 | |
1849 | _ACEOF | |
1850 | ||
1851 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1852 | ;; | |
1853 | *-*-osf* ) | |
1854 | USE_ALPHA=1 | |
1855 | USE_OSF=1 | |
1856 | cat >>confdefs.h <<\_ACEOF | |
1857 | #define __ALPHA__ 1 | |
1858 | _ACEOF | |
1859 | ||
1860 | cat >>confdefs.h <<\_ACEOF | |
1861 | #define __OSF__ 1 | |
1862 | _ACEOF | |
1863 | ||
1864 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1865 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1866 | ;; | |
1867 | *-*-dgux5* ) | |
1868 | USE_ALPHA=1 | |
1869 | USE_SVR4=1 | |
1870 | cat >>confdefs.h <<\_ACEOF | |
1871 | #define __ALPHA__ 1 | |
1872 | _ACEOF | |
1873 | ||
1874 | cat >>confdefs.h <<\_ACEOF | |
1875 | #define __SVR4__ 1 | |
1876 | _ACEOF | |
1877 | ||
1878 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1879 | ;; | |
1880 | *-*-sysv5* ) | |
1881 | USE_SYSV=1 | |
1882 | USE_SVR4=1 | |
1883 | cat >>confdefs.h <<\_ACEOF | |
1884 | #define __SYSV__ 1 | |
1885 | _ACEOF | |
1886 | ||
1887 | cat >>confdefs.h <<\_ACEOF | |
1888 | #define __SVR4__ 1 | |
1889 | _ACEOF | |
1890 | ||
1891 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1892 | ;; | |
1893 | *-*-aix* ) | |
1894 | USE_AIX=1 | |
1895 | USE_SYSV=1 | |
1896 | USE_SVR4=1 | |
1897 | SO_SUFFIX=a | |
1898 | cat >>confdefs.h <<\_ACEOF | |
1899 | #define __AIX__ 1 | |
1900 | _ACEOF | |
1901 | ||
1902 | cat >>confdefs.h <<\_ACEOF | |
1903 | #define __SYSV__ 1 | |
1904 | _ACEOF | |
1905 | ||
1906 | cat >>confdefs.h <<\_ACEOF | |
1907 | #define __SVR4__ 1 | |
1908 | _ACEOF | |
1909 | ||
1910 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1911 | ;; | |
1912 | ||
1913 | *-*-*UnixWare*) | |
1914 | USE_SYSV=1 | |
1915 | USE_SVR4=1 | |
1916 | USE_UNIXWARE=1 | |
1917 | cat >>confdefs.h <<\_ACEOF | |
1918 | #define __UNIXWARE__ 1 | |
1919 | _ACEOF | |
1920 | ||
1921 | ;; | |
1922 | ||
1923 | *-*-cygwin* | *-*-mingw32* ) | |
1924 | SO_SUFFIX=dll | |
1925 | PROGRAM_EXT=".exe" | |
1926 | RESCOMP=windres | |
1927 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
1928 | ;; | |
1929 | ||
1930 | *-pc-msdosdjgpp ) | |
1931 | USE_UNIX=0 | |
1932 | USE_DOS=1 | |
1933 | cat >>confdefs.h <<\_ACEOF | |
1934 | #define __DOS__ 1 | |
1935 | _ACEOF | |
1936 | ||
1937 | PROGRAM_EXT=".exe" | |
1938 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
1939 | LIBS="$LIBS -lstdc++" | |
1940 | ;; | |
1941 | ||
1942 | *-pc-os2_emx | *-pc-os2-emx ) | |
1943 | cat >>confdefs.h <<\_ACEOF | |
1944 | #define __EMX__ 1 | |
1945 | _ACEOF | |
1946 | ||
1947 | USE_OS2=1 | |
1948 | cat >>confdefs.h <<\_ACEOF | |
1949 | #define __OS2__ 1 | |
1950 | _ACEOF | |
1951 | ||
1952 | PROGRAM_EXT=".exe" | |
1953 | DEFAULT_DEFAULT_wxUSE_PM=1 | |
1954 | CXX=gcc | |
1955 | LDFLAGS="$LDFLAGS -Zcrtdll" | |
1956 | ac_executable_extensions=".exe" | |
1957 | export ac_executable_extensions | |
1958 | ac_save_IFS="$IFS" | |
1959 | IFS='\\' | |
1960 | ac_TEMP_PATH= | |
1961 | for ac_dir in $PATH; do | |
1962 | IFS=$ac_save_IFS | |
1963 | if test -z "$ac_TEMP_PATH"; then | |
1964 | ac_TEMP_PATH="$ac_dir" | |
1965 | else | |
1966 | ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir" | |
1967 | fi | |
1968 | done | |
1969 | export PATH="$ac_TEMP_PATH" | |
1970 | unset ac_TEMP_PATH | |
1971 | ;; | |
1972 | ||
1973 | powerpc-*-darwin* ) | |
1974 | USE_BSD=1 | |
1975 | USE_DARWIN=1 | |
1976 | SO_SUFFIX=dylib | |
1977 | cat >>confdefs.h <<\_ACEOF | |
1978 | #define __BSD__ 1 | |
1979 | _ACEOF | |
1980 | ||
1981 | cat >>confdefs.h <<\_ACEOF | |
1982 | #define __DARWIN__ 1 | |
a848cd7e SC |
1983 | _ACEOF |
1984 | ||
1985 | cat >>confdefs.h <<\_ACEOF | |
1986 | #define TARGET_CARBON 1 | |
1987 | _ACEOF | |
1988 | ||
1989 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1990 | ;; | |
1e9e8aba DE |
1991 | powerpc-apple-macos* ) |
1992 | USE_UNIX=0 | |
1993 | ac_cv_c_bigendian=yes | |
1994 | SO_SUFFIX=shlib | |
1995 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1996 | ;; | |
a848cd7e SC |
1997 | |
1998 | *-*-beos* ) | |
1999 | USE_BEOS=1 | |
2000 | cat >>confdefs.h <<\_ACEOF | |
2001 | #define __BEOS__ 1 | |
2002 | _ACEOF | |
2003 | ||
2004 | ;; | |
2005 | ||
2006 | *) | |
2007 | { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5 | |
2008 | echo "$as_me: error: unknown system type ${host}." >&2;} | |
2009 | { (exit 1); exit 1; }; } | |
2010 | esac | |
2011 | ||
2012 | ||
2013 | ||
2014 | ||
2015 | wx_arg_cache_file="configarg.cache" | |
2016 | echo "loading argument cache $wx_arg_cache_file" | |
2017 | rm -f ${wx_arg_cache_file}.tmp | |
2018 | touch ${wx_arg_cache_file}.tmp | |
2019 | touch ${wx_arg_cache_file} | |
2020 | ||
2021 | ||
2022 | DEBUG_CONFIGURE=0 | |
2023 | if test $DEBUG_CONFIGURE = 1; then | |
2024 | DEFAULT_wxUSE_UNIVERSAL=no | |
2025 | DEFAULT_wxUSE_STL=no | |
2026 | ||
2027 | DEFAULT_wxUSE_NANOX=no | |
2028 | ||
2029 | DEFAULT_wxUSE_THREADS=yes | |
2030 | ||
2031 | DEFAULT_wxUSE_SHARED=yes | |
2032 | DEFAULT_wxUSE_OPTIMISE=no | |
2033 | DEFAULT_wxUSE_PROFILE=no | |
2034 | DEFAULT_wxUSE_NO_DEPS=no | |
2035 | DEFAULT_wxUSE_NO_RTTI=no | |
2036 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
ffa0583f | 2037 | DEFAULT_wxUSE_RPATH=yes |
a848cd7e SC |
2038 | DEFAULT_wxUSE_PERMISSIVE=no |
2039 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2040 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2041 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
2042 | DEFAULT_wxUSE_MEM_TRACING=no | |
2043 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2044 | DEFAULT_wxUSE_DMALLOC=no | |
2045 | DEFAULT_wxUSE_APPLE_IEEE=no | |
2046 | ||
2047 | DEFAULT_wxUSE_EXCEPTIONS=no | |
2048 | DEFAULT_wxUSE_LOG=yes | |
2049 | DEFAULT_wxUSE_LOGWINDOW=no | |
2050 | DEFAULT_wxUSE_LOGGUI=no | |
2051 | DEFAULT_wxUSE_LOGDIALOG=no | |
2052 | ||
2053 | DEFAULT_wxUSE_GUI=yes | |
2054 | DEFAULT_wxUSE_CONTROLS=no | |
2055 | ||
2056 | DEFAULT_wxUSE_REGEX=no | |
2057 | DEFAULT_wxUSE_XML=no | |
2058 | DEFAULT_wxUSE_EXPAT=no | |
2059 | DEFAULT_wxUSE_ZLIB=no | |
2060 | DEFAULT_wxUSE_LIBPNG=no | |
2061 | DEFAULT_wxUSE_LIBJPEG=no | |
2062 | DEFAULT_wxUSE_LIBTIFF=no | |
2063 | DEFAULT_wxUSE_LIBXPM=no | |
2064 | DEFAULT_wxUSE_LIBMSPACK=no | |
2065 | DEFAULT_wxUSE_LIBSDL=no | |
d1c38808 | 2066 | DEFAULT_wxUSE_LIBGNOMEPRINT=no |
a848cd7e SC |
2067 | DEFAULT_wxUSE_ODBC=no |
2068 | DEFAULT_wxUSE_OPENGL=no | |
2069 | ||
2070 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no | |
eaff0f0d | 2071 | DEFAULT_wxUSE_STACKWALKER=no |
a848cd7e SC |
2072 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
2073 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
2074 | DEFAULT_wxUSE_CMDLINE_PARSER=no | |
2075 | DEFAULT_wxUSE_DATETIME=no | |
2076 | DEFAULT_wxUSE_TIMER=no | |
2077 | DEFAULT_wxUSE_STOPWATCH=no | |
2078 | DEFAULT_wxUSE_FILE=no | |
2079 | DEFAULT_wxUSE_FFILE=no | |
2080 | DEFAULT_wxUSE_TEXTBUFFER=no | |
2081 | DEFAULT_wxUSE_TEXTFILE=no | |
2082 | DEFAULT_wxUSE_SOUND=no | |
3b57de8b RL |
2083 | DEFAULT_wxUSE_MEDIACTRL=no |
2084 | DEFAULT_wxUSE_DIRECTSHOW=no | |
a848cd7e SC |
2085 | DEFAULT_wxUSE_INTL=no |
2086 | DEFAULT_wxUSE_CONFIG=no | |
2087 | DEFAULT_wxUSE_FONTMAP=no | |
2088 | DEFAULT_wxUSE_STREAMS=no | |
2089 | DEFAULT_wxUSE_SOCKETS=no | |
2090 | DEFAULT_wxUSE_OLE=no | |
2091 | DEFAULT_wxUSE_DATAOBJ=no | |
2092 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
2093 | DEFAULT_wxUSE_JOYSTICK=no | |
2094 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
2095 | DEFAULT_wxUSE_DYNAMIC_LOADER=no | |
2096 | DEFAULT_wxUSE_LONGLONG=no | |
2097 | DEFAULT_wxUSE_GEOMETRY=no | |
2098 | ||
2099 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
2100 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
2101 | DEFAULT_wxUSE_POSTSCRIPT=no | |
2102 | ||
2103 | DEFAULT_wxUSE_CLIPBOARD=no | |
2104 | DEFAULT_wxUSE_TOOLTIPS=no | |
2105 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
2106 | DEFAULT_wxUSE_DRAGIMAGE=no | |
2107 | DEFAULT_wxUSE_SPLINES=no | |
2108 | ||
8a7b1113 | 2109 | DEFAULT_wxUSE_MDI=no |
a848cd7e SC |
2110 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no |
2111 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
2112 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
2113 | ||
2114 | DEFAULT_wxUSE_RESOURCES=no | |
2115 | DEFAULT_wxUSE_CONSTRAINTS=no | |
2116 | DEFAULT_wxUSE_IPC=no | |
2117 | DEFAULT_wxUSE_HELP=no | |
2118 | DEFAULT_wxUSE_MS_HTML_HELP=no | |
2119 | DEFAULT_wxUSE_WXHTML_HELP=no | |
2120 | DEFAULT_wxUSE_TREELAYOUT=no | |
2121 | DEFAULT_wxUSE_METAFILE=no | |
2122 | DEFAULT_wxUSE_MIMETYPE=no | |
2123 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no | |
2124 | DEFAULT_wxUSE_PROTOCOL=no | |
2125 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
2126 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
2127 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
2128 | DEFAULT_wxUSE_URL=no | |
2129 | ||
2130 | DEFAULT_wxUSE_COMMONDLGS=no | |
2131 | DEFAULT_wxUSE_CHOICEDLG=no | |
2132 | DEFAULT_wxUSE_COLOURDLG=no | |
2133 | DEFAULT_wxUSE_DIRDLG=no | |
2134 | DEFAULT_wxUSE_FILEDLG=no | |
2135 | DEFAULT_wxUSE_FINDREPLDLG=no | |
2136 | DEFAULT_wxUSE_FONTDLG=no | |
2137 | DEFAULT_wxUSE_MSGDLG=no | |
2138 | DEFAULT_wxUSE_NUMBERDLG=no | |
2139 | DEFAULT_wxUSE_TEXTDLG=no | |
2140 | DEFAULT_wxUSE_SPLASH=no | |
2141 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
2142 | DEFAULT_wxUSE_PROGRESSDLG=no | |
2143 | DEFAULT_wxUSE_WIZARDDLG=no | |
2144 | ||
2145 | DEFAULT_wxUSE_MENUS=no | |
2146 | DEFAULT_wxUSE_MINIFRAME=no | |
2147 | DEFAULT_wxUSE_HTML=no | |
9a8f0513 | 2148 | DEFAULT_wxUSE_XRC=no |
646b6ec1 | 2149 | DEFAULT_wxUSE_WEBKIT=no |
a848cd7e SC |
2150 | DEFAULT_wxUSE_FILESYSTEM=no |
2151 | DEFAULT_wxUSE_FS_INET=no | |
2152 | DEFAULT_wxUSE_FS_ZIP=no | |
2153 | DEFAULT_wxUSE_BUSYINFO=no | |
9e8e867f | 2154 | DEFAULT_wxUSE_ARCHIVE_STREAMS=no |
a848cd7e | 2155 | DEFAULT_wxUSE_ZIPSTREAM=no |
a848cd7e SC |
2156 | DEFAULT_wxUSE_VALIDATORS=no |
2157 | ||
2158 | DEFAULT_wxUSE_ACCEL=no | |
2159 | DEFAULT_wxUSE_BUTTON=no | |
2160 | DEFAULT_wxUSE_BMPBUTTON=no | |
2161 | DEFAULT_wxUSE_CALCTRL=no | |
2162 | DEFAULT_wxUSE_CARET=no | |
2163 | DEFAULT_wxUSE_CHECKBOX=no | |
2164 | DEFAULT_wxUSE_CHECKLST=no | |
2165 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 2166 | DEFAULT_wxUSE_CHOICEBOOK=no |
a848cd7e | 2167 | DEFAULT_wxUSE_COMBOBOX=no |
da98e9be | 2168 | DEFAULT_wxUSE_DATEPICKCTRL=no |
a848cd7e SC |
2169 | DEFAULT_wxUSE_DISPLAY=no |
2170 | DEFAULT_wxUSE_GAUGE=no | |
2171 | DEFAULT_wxUSE_GRID=no | |
2172 | DEFAULT_wxUSE_IMAGLIST=no | |
2173 | DEFAULT_wxUSE_LISTBOOK=no | |
2174 | DEFAULT_wxUSE_LISTBOX=no | |
2175 | DEFAULT_wxUSE_LISTCTRL=no | |
2176 | DEFAULT_wxUSE_NOTEBOOK=no | |
2177 | DEFAULT_wxUSE_RADIOBOX=no | |
2178 | DEFAULT_wxUSE_RADIOBTN=no | |
2179 | DEFAULT_wxUSE_SASH=no | |
2180 | DEFAULT_wxUSE_SCROLLBAR=no | |
2181 | DEFAULT_wxUSE_SLIDER=no | |
2182 | DEFAULT_wxUSE_SPINBTN=no | |
2183 | DEFAULT_wxUSE_SPINCTRL=no | |
2184 | DEFAULT_wxUSE_SPLITTER=no | |
2185 | DEFAULT_wxUSE_STATBMP=no | |
2186 | DEFAULT_wxUSE_STATBOX=no | |
2187 | DEFAULT_wxUSE_STATLINE=no | |
2188 | DEFAULT_wxUSE_STATTEXT=no | |
2189 | DEFAULT_wxUSE_STATUSBAR=yes | |
2190 | DEFAULT_wxUSE_TABDIALOG=no | |
2191 | DEFAULT_wxUSE_TEXTCTRL=no | |
2192 | DEFAULT_wxUSE_TOGGLEBTN=no | |
2193 | DEFAULT_wxUSE_TOOLBAR=no | |
2194 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
2195 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
2196 | DEFAULT_wxUSE_TREECTRL=no | |
2197 | DEFAULT_wxUSE_POPUPWIN=no | |
2198 | DEFAULT_wxUSE_TIPWINDOW=no | |
2199 | ||
2200 | DEFAULT_wxUSE_UNICODE=no | |
2201 | DEFAULT_wxUSE_UNICODE_MSLU=no | |
2202 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2203 | ||
2204 | DEFAULT_wxUSE_PALETTE=no | |
2205 | DEFAULT_wxUSE_IMAGE=no | |
2206 | DEFAULT_wxUSE_GIF=no | |
2207 | DEFAULT_wxUSE_PCX=no | |
2208 | DEFAULT_wxUSE_PNM=no | |
2209 | DEFAULT_wxUSE_IFF=no | |
2210 | DEFAULT_wxUSE_XPM=no | |
2211 | DEFAULT_wxUSE_ICO_CUR=no | |
2212 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2213 | ||
2214 | DEFAULT_wxUSE_MONOLITHIC=no | |
2215 | DEFAULT_wxUSE_PLUGINS=no | |
2216 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
2217 | else | |
2218 | DEFAULT_wxUSE_UNIVERSAL=no | |
2219 | DEFAULT_wxUSE_STL=no | |
2220 | ||
2221 | DEFAULT_wxUSE_NANOX=no | |
2222 | ||
2223 | DEFAULT_wxUSE_THREADS=yes | |
2224 | ||
2225 | DEFAULT_wxUSE_SHARED=yes | |
2226 | DEFAULT_wxUSE_OPTIMISE=yes | |
2227 | DEFAULT_wxUSE_PROFILE=no | |
2228 | DEFAULT_wxUSE_NO_DEPS=no | |
2229 | DEFAULT_wxUSE_NO_RTTI=no | |
2230 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
ffa0583f | 2231 | DEFAULT_wxUSE_RPATH=yes |
a848cd7e SC |
2232 | DEFAULT_wxUSE_PERMISSIVE=no |
2233 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2234 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2235 | DEFAULT_wxUSE_DEBUG_GDB=no | |
2236 | DEFAULT_wxUSE_MEM_TRACING=no | |
2237 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2238 | DEFAULT_wxUSE_DMALLOC=no | |
2239 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
2240 | ||
2241 | DEFAULT_wxUSE_EXCEPTIONS=yes | |
2242 | DEFAULT_wxUSE_LOG=yes | |
2243 | DEFAULT_wxUSE_LOGWINDOW=yes | |
2244 | DEFAULT_wxUSE_LOGGUI=yes | |
2245 | DEFAULT_wxUSE_LOGDIALOG=yes | |
2246 | ||
2247 | DEFAULT_wxUSE_GUI=yes | |
2248 | ||
2249 | DEFAULT_wxUSE_REGEX=yes | |
2250 | DEFAULT_wxUSE_XML=yes | |
2251 | DEFAULT_wxUSE_EXPAT=yes | |
2252 | DEFAULT_wxUSE_ZLIB=yes | |
2253 | DEFAULT_wxUSE_LIBPNG=yes | |
2254 | DEFAULT_wxUSE_LIBJPEG=yes | |
2255 | DEFAULT_wxUSE_LIBTIFF=yes | |
2256 | DEFAULT_wxUSE_LIBXPM=yes | |
2257 | DEFAULT_wxUSE_LIBMSPACK=yes | |
2258 | DEFAULT_wxUSE_LIBSDL=no | |
d1c38808 | 2259 | DEFAULT_wxUSE_LIBGNOMEPRINT=no |
a848cd7e SC |
2260 | DEFAULT_wxUSE_ODBC=no |
2261 | DEFAULT_wxUSE_OPENGL=no | |
2262 | ||
2263 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes | |
eaff0f0d | 2264 | DEFAULT_wxUSE_STACKWALKER=yes |
a848cd7e SC |
2265 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
2266 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
2267 | DEFAULT_wxUSE_CMDLINE_PARSER=yes | |
2268 | DEFAULT_wxUSE_DATETIME=yes | |
2269 | DEFAULT_wxUSE_TIMER=yes | |
2270 | DEFAULT_wxUSE_STOPWATCH=yes | |
2271 | DEFAULT_wxUSE_FILE=yes | |
2272 | DEFAULT_wxUSE_FFILE=yes | |
2273 | DEFAULT_wxUSE_TEXTBUFFER=yes | |
2274 | DEFAULT_wxUSE_TEXTFILE=yes | |
2275 | DEFAULT_wxUSE_SOUND=yes | |
3b57de8b RL |
2276 | DEFAULT_wxUSE_MEDIACTRL=no |
2277 | DEFAULT_wxUSE_DIRECTSHOW=no | |
a848cd7e SC |
2278 | DEFAULT_wxUSE_INTL=yes |
2279 | DEFAULT_wxUSE_CONFIG=yes | |
2280 | DEFAULT_wxUSE_FONTMAP=yes | |
2281 | DEFAULT_wxUSE_STREAMS=yes | |
2282 | DEFAULT_wxUSE_SOCKETS=yes | |
2283 | DEFAULT_wxUSE_OLE=yes | |
2284 | DEFAULT_wxUSE_DATAOBJ=yes | |
2285 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
2286 | DEFAULT_wxUSE_JOYSTICK=yes | |
2287 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
2288 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes | |
2289 | DEFAULT_wxUSE_LONGLONG=yes | |
2290 | DEFAULT_wxUSE_GEOMETRY=yes | |
2291 | ||
2292 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
2293 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
2294 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
2295 | ||
2296 | DEFAULT_wxUSE_CLIPBOARD=yes | |
2297 | DEFAULT_wxUSE_TOOLTIPS=yes | |
2298 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
2299 | DEFAULT_wxUSE_DRAGIMAGE=yes | |
2300 | DEFAULT_wxUSE_SPLINES=yes | |
2301 | ||
8a7b1113 | 2302 | DEFAULT_wxUSE_MDI=yes |
a848cd7e SC |
2303 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes |
2304 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
2305 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
2306 | ||
2307 | DEFAULT_wxUSE_RESOURCES=no | |
2308 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
2309 | DEFAULT_wxUSE_IPC=yes | |
2310 | DEFAULT_wxUSE_HELP=yes | |
2311 | DEFAULT_wxUSE_MS_HTML_HELP=yes | |
2312 | DEFAULT_wxUSE_WXHTML_HELP=yes | |
2313 | DEFAULT_wxUSE_TREELAYOUT=yes | |
2314 | DEFAULT_wxUSE_METAFILE=yes | |
2315 | DEFAULT_wxUSE_MIMETYPE=yes | |
2316 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes | |
2317 | DEFAULT_wxUSE_PROTOCOL=yes | |
2318 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
2319 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
2320 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
2321 | DEFAULT_wxUSE_URL=yes | |
2322 | ||
2323 | DEFAULT_wxUSE_COMMONDLGS=yes | |
2324 | DEFAULT_wxUSE_CHOICEDLG=yes | |
2325 | DEFAULT_wxUSE_COLOURDLG=yes | |
2326 | DEFAULT_wxUSE_DIRDLG=yes | |
2327 | DEFAULT_wxUSE_FILEDLG=yes | |
2328 | DEFAULT_wxUSE_FINDREPLDLG=yes | |
2329 | DEFAULT_wxUSE_FONTDLG=yes | |
2330 | DEFAULT_wxUSE_MSGDLG=yes | |
2331 | DEFAULT_wxUSE_NUMBERDLG=yes | |
2332 | DEFAULT_wxUSE_TEXTDLG=yes | |
2333 | DEFAULT_wxUSE_SPLASH=yes | |
2334 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
2335 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
2336 | DEFAULT_wxUSE_WIZARDDLG=yes | |
2337 | ||
2338 | DEFAULT_wxUSE_MENUS=yes | |
2339 | DEFAULT_wxUSE_MINIFRAME=yes | |
2340 | DEFAULT_wxUSE_HTML=yes | |
9a8f0513 | 2341 | DEFAULT_wxUSE_XRC=yes |
646b6ec1 | 2342 | DEFAULT_wxUSE_WEBKIT=yes |
a848cd7e SC |
2343 | DEFAULT_wxUSE_FILESYSTEM=yes |
2344 | DEFAULT_wxUSE_FS_INET=yes | |
2345 | DEFAULT_wxUSE_FS_ZIP=yes | |
2346 | DEFAULT_wxUSE_BUSYINFO=yes | |
9e8e867f | 2347 | DEFAULT_wxUSE_ARCHIVE_STREAMS=yes |
a848cd7e | 2348 | DEFAULT_wxUSE_ZIPSTREAM=yes |
a848cd7e SC |
2349 | DEFAULT_wxUSE_VALIDATORS=yes |
2350 | ||
2351 | DEFAULT_wxUSE_ACCEL=yes | |
2352 | DEFAULT_wxUSE_BUTTON=yes | |
2353 | DEFAULT_wxUSE_BMPBUTTON=yes | |
2354 | DEFAULT_wxUSE_CALCTRL=yes | |
2355 | DEFAULT_wxUSE_CARET=yes | |
2356 | DEFAULT_wxUSE_CHECKBOX=yes | |
2357 | DEFAULT_wxUSE_CHECKLST=yes | |
2358 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 2359 | DEFAULT_wxUSE_CHOICEBOOK=yes |
a848cd7e | 2360 | DEFAULT_wxUSE_COMBOBOX=yes |
da98e9be | 2361 | DEFAULT_wxUSE_DATEPICKCTRL=yes |
a848cd7e SC |
2362 | DEFAULT_wxUSE_DISPLAY=yes |
2363 | DEFAULT_wxUSE_GAUGE=yes | |
2364 | DEFAULT_wxUSE_GRID=yes | |
2365 | DEFAULT_wxUSE_IMAGLIST=yes | |
2366 | DEFAULT_wxUSE_LISTBOOK=yes | |
2367 | DEFAULT_wxUSE_LISTBOX=yes | |
2368 | DEFAULT_wxUSE_LISTCTRL=yes | |
2369 | DEFAULT_wxUSE_NOTEBOOK=yes | |
2370 | DEFAULT_wxUSE_RADIOBOX=yes | |
2371 | DEFAULT_wxUSE_RADIOBTN=yes | |
2372 | DEFAULT_wxUSE_SASH=yes | |
2373 | DEFAULT_wxUSE_SCROLLBAR=yes | |
2374 | DEFAULT_wxUSE_SLIDER=yes | |
2375 | DEFAULT_wxUSE_SPINBTN=yes | |
2376 | DEFAULT_wxUSE_SPINCTRL=yes | |
2377 | DEFAULT_wxUSE_SPLITTER=yes | |
2378 | DEFAULT_wxUSE_STATBMP=yes | |
2379 | DEFAULT_wxUSE_STATBOX=yes | |
2380 | DEFAULT_wxUSE_STATLINE=yes | |
2381 | DEFAULT_wxUSE_STATTEXT=yes | |
2382 | DEFAULT_wxUSE_STATUSBAR=yes | |
2383 | DEFAULT_wxUSE_TABDIALOG=no | |
2384 | DEFAULT_wxUSE_TEXTCTRL=yes | |
2385 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
2386 | DEFAULT_wxUSE_TOOLBAR=yes | |
2387 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
2388 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
2389 | DEFAULT_wxUSE_TREECTRL=yes | |
2390 | DEFAULT_wxUSE_POPUPWIN=yes | |
2391 | DEFAULT_wxUSE_TIPWINDOW=yes | |
2392 | ||
2393 | DEFAULT_wxUSE_UNICODE=no | |
2394 | DEFAULT_wxUSE_UNICODE_MSLU=yes | |
2395 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2396 | ||
2397 | DEFAULT_wxUSE_PALETTE=yes | |
2398 | DEFAULT_wxUSE_IMAGE=yes | |
2399 | DEFAULT_wxUSE_GIF=yes | |
2400 | DEFAULT_wxUSE_PCX=yes | |
2401 | DEFAULT_wxUSE_IFF=no | |
2402 | DEFAULT_wxUSE_PNM=yes | |
2403 | DEFAULT_wxUSE_XPM=yes | |
2404 | DEFAULT_wxUSE_ICO_CUR=yes | |
2405 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2406 | ||
2407 | DEFAULT_wxUSE_MONOLITHIC=no | |
2408 | DEFAULT_wxUSE_PLUGINS=no | |
2409 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
9f45f08e VS |
2410 | |
2411 | DEFAULT_wxUSE_GTK2=yes | |
a848cd7e SC |
2412 | fi |
2413 | ||
2414 | ||
2415 | ||
2416 | for toolkit in `echo $ALL_TOOLKITS`; do | |
2417 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` | |
2418 | if test "x$LINE" != "x" ; then | |
2419 | has_toolkit_in_cache=1 | |
2420 | eval "DEFAULT_$LINE" | |
2421 | eval "CACHE_$toolkit=1" | |
2422 | fi | |
2423 | done | |
2424 | ||
2425 | ||
2426 | ||
2427 | enablestring= | |
2428 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5 | |
2429 | echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6 | |
2430 | no_cache=0 | |
2431 | # Check whether --enable-gui or --disable-gui was given. | |
2432 | if test "${enable_gui+set}" = set; then | |
2433 | enableval="$enable_gui" | |
2434 | ||
2435 | if test "$enableval" = yes; then | |
2436 | ac_cv_use_gui='wxUSE_GUI=yes' | |
2437 | else | |
2438 | ac_cv_use_gui='wxUSE_GUI=no' | |
2439 | fi | |
2440 | ||
2441 | else | |
2442 | ||
2443 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` | |
2444 | if test "x$LINE" != x ; then | |
2445 | eval "DEFAULT_$LINE" | |
2446 | else | |
2447 | no_cache=1 | |
2448 | fi | |
2449 | ||
2450 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
2451 | ||
2452 | fi; | |
2453 | ||
2454 | eval "$ac_cv_use_gui" | |
2455 | if test "$no_cache" != 1; then | |
2456 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
2457 | fi | |
2458 | ||
2459 | if test "$wxUSE_GUI" = yes; then | |
2460 | echo "$as_me:$LINENO: result: yes" >&5 | |
2461 | echo "${ECHO_T}yes" >&6 | |
2462 | else | |
2463 | echo "$as_me:$LINENO: result: no" >&5 | |
2464 | echo "${ECHO_T}no" >&6 | |
2465 | fi | |
2466 | ||
2467 | ||
2468 | enablestring= | |
2469 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5 | |
2470 | echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6 | |
2471 | no_cache=0 | |
2472 | # Check whether --enable-monolithic or --disable-monolithic was given. | |
2473 | if test "${enable_monolithic+set}" = set; then | |
2474 | enableval="$enable_monolithic" | |
2475 | ||
2476 | if test "$enableval" = yes; then | |
2477 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes' | |
2478 | else | |
2479 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=no' | |
2480 | fi | |
2481 | ||
2482 | else | |
2483 | ||
2484 | LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}` | |
2485 | if test "x$LINE" != x ; then | |
2486 | eval "DEFAULT_$LINE" | |
2487 | else | |
2488 | no_cache=1 | |
2489 | fi | |
2490 | ||
2491 | ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC | |
2492 | ||
2493 | fi; | |
2494 | ||
2495 | eval "$ac_cv_use_monolithic" | |
2496 | if test "$no_cache" != 1; then | |
2497 | echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp | |
2498 | fi | |
2499 | ||
2500 | if test "$wxUSE_MONOLITHIC" = yes; then | |
2501 | echo "$as_me:$LINENO: result: yes" >&5 | |
2502 | echo "${ECHO_T}yes" >&6 | |
2503 | else | |
2504 | echo "$as_me:$LINENO: result: no" >&5 | |
2505 | echo "${ECHO_T}no" >&6 | |
2506 | fi | |
2507 | ||
2508 | ||
2509 | enablestring= | |
2510 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5 | |
2511 | echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6 | |
2512 | no_cache=0 | |
2513 | # Check whether --enable-plugins or --disable-plugins was given. | |
2514 | if test "${enable_plugins+set}" = set; then | |
2515 | enableval="$enable_plugins" | |
2516 | ||
2517 | if test "$enableval" = yes; then | |
2518 | ac_cv_use_plugins='wxUSE_PLUGINS=yes' | |
2519 | else | |
2520 | ac_cv_use_plugins='wxUSE_PLUGINS=no' | |
2521 | fi | |
2522 | ||
2523 | else | |
2524 | ||
2525 | LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}` | |
2526 | if test "x$LINE" != x ; then | |
2527 | eval "DEFAULT_$LINE" | |
2528 | else | |
2529 | no_cache=1 | |
2530 | fi | |
2531 | ||
2532 | ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS | |
2533 | ||
2534 | fi; | |
2535 | ||
2536 | eval "$ac_cv_use_plugins" | |
2537 | if test "$no_cache" != 1; then | |
2538 | echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp | |
2539 | fi | |
2540 | ||
2541 | if test "$wxUSE_PLUGINS" = yes; then | |
2542 | echo "$as_me:$LINENO: result: yes" >&5 | |
2543 | echo "${ECHO_T}yes" >&6 | |
2544 | else | |
2545 | echo "$as_me:$LINENO: result: no" >&5 | |
2546 | echo "${ECHO_T}no" >&6 | |
2547 | fi | |
2548 | ||
2549 | ||
2550 | if test "$wxUSE_GUI" = "yes"; then | |
2551 | ||
2552 | ||
2553 | enablestring= | |
2554 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5 | |
2555 | echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6 | |
2556 | no_cache=0 | |
2557 | # Check whether --enable-universal or --disable-universal was given. | |
2558 | if test "${enable_universal+set}" = set; then | |
2559 | enableval="$enable_universal" | |
2560 | ||
2561 | if test "$enableval" = yes; then | |
2562 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
2563 | else | |
2564 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
2565 | fi | |
2566 | ||
2567 | else | |
2568 | ||
2569 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
2570 | if test "x$LINE" != x ; then | |
2571 | eval "DEFAULT_$LINE" | |
2572 | else | |
2573 | no_cache=1 | |
2574 | fi | |
2575 | ||
2576 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
2577 | ||
2578 | fi; | |
2579 | ||
2580 | eval "$ac_cv_use_universal" | |
2581 | if test "$no_cache" != 1; then | |
2582 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
2583 | fi | |
2584 | ||
2585 | if test "$wxUSE_UNIVERSAL" = yes; then | |
2586 | echo "$as_me:$LINENO: result: yes" >&5 | |
2587 | echo "${ECHO_T}yes" >&6 | |
2588 | else | |
2589 | echo "$as_me:$LINENO: result: no" >&5 | |
2590 | echo "${ECHO_T}no" >&6 | |
2591 | fi | |
2592 | ||
2593 | ||
2594 | # Check whether --with-gtk or --without-gtk was given. | |
2595 | if test "${with_gtk+set}" = set; then | |
2596 | withval="$with_gtk" | |
2597 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
2598 | fi; | |
2599 | ||
2600 | # Check whether --with-motif or --without-motif was given. | |
2601 | if test "${with_motif+set}" = set; then | |
2602 | withval="$with_motif" | |
2603 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
2604 | fi; | |
2605 | ||
2606 | # Check whether --with-mac or --without-mac was given. | |
2607 | if test "${with_mac+set}" = set; then | |
2608 | withval="$with_mac" | |
c228d3a4 | 2609 | wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1 |
a848cd7e SC |
2610 | fi; |
2611 | ||
2612 | # Check whether --with-cocoa or --without-cocoa was given. | |
2613 | if test "${with_cocoa+set}" = set; then | |
2614 | withval="$with_cocoa" | |
c228d3a4 | 2615 | wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1 |
a848cd7e SC |
2616 | fi; |
2617 | ||
2618 | # Check whether --with-wine or --without-wine was given. | |
2619 | if test "${with_wine+set}" = set; then | |
2620 | withval="$with_wine" | |
2621 | wxUSE_WINE="$withval" CACHE_WINE=1 | |
2622 | fi; | |
2623 | ||
2624 | # Check whether --with-msw or --without-msw was given. | |
2625 | if test "${with_msw+set}" = set; then | |
2626 | withval="$with_msw" | |
2627 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 | |
2628 | fi; | |
2629 | ||
2630 | # Check whether --with-pm or --without-pm was given. | |
2631 | if test "${with_pm+set}" = set; then | |
2632 | withval="$with_pm" | |
2633 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
2634 | fi; | |
2635 | ||
2636 | # Check whether --with-mgl or --without-mgl was given. | |
2637 | if test "${with_mgl+set}" = set; then | |
2638 | withval="$with_mgl" | |
2639 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
2640 | fi; | |
2641 | ||
2642 | # Check whether --with-microwin or --without-microwin was given. | |
2643 | if test "${with_microwin+set}" = set; then | |
2644 | withval="$with_microwin" | |
2645 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
2646 | fi; | |
2647 | ||
2648 | # Check whether --with-x11 or --without-x11 was given. | |
2649 | if test "${with_x11+set}" = set; then | |
2650 | withval="$with_x11" | |
2651 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 | |
2652 | fi; | |
2653 | ||
2654 | enablestring= | |
2655 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5 | |
2656 | echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6 | |
2657 | no_cache=0 | |
2658 | # Check whether --enable-nanox or --disable-nanox was given. | |
2659 | if test "${enable_nanox+set}" = set; then | |
2660 | enableval="$enable_nanox" | |
2661 | ||
2662 | if test "$enableval" = yes; then | |
2663 | ac_cv_use_nanox='wxUSE_NANOX=yes' | |
2664 | else | |
2665 | ac_cv_use_nanox='wxUSE_NANOX=no' | |
2666 | fi | |
2667 | ||
2668 | else | |
2669 | ||
2670 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` | |
2671 | if test "x$LINE" != x ; then | |
2672 | eval "DEFAULT_$LINE" | |
2673 | else | |
2674 | no_cache=1 | |
2675 | fi | |
2676 | ||
2677 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX | |
2678 | ||
2679 | fi; | |
2680 | ||
2681 | eval "$ac_cv_use_nanox" | |
2682 | if test "$no_cache" != 1; then | |
2683 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp | |
2684 | fi | |
2685 | ||
2686 | if test "$wxUSE_NANOX" = yes; then | |
2687 | echo "$as_me:$LINENO: result: yes" >&5 | |
2688 | echo "${ECHO_T}yes" >&6 | |
2689 | else | |
2690 | echo "$as_me:$LINENO: result: no" >&5 | |
2691 | echo "${ECHO_T}no" >&6 | |
2692 | fi | |
2693 | ||
2694 | ||
2695 | ||
2696 | enablestring= | |
2697 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5 | |
2698 | echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6 | |
2699 | no_cache=0 | |
2700 | # Check whether --enable-gtk2 or --disable-gtk2 was given. | |
2701 | if test "${enable_gtk2+set}" = set; then | |
2702 | enableval="$enable_gtk2" | |
2703 | ||
2704 | if test "$enableval" = yes; then | |
2705 | ac_cv_use_gtk2='wxUSE_GTK2=yes' | |
2706 | else | |
2707 | ac_cv_use_gtk2='wxUSE_GTK2=no' | |
2708 | fi | |
2709 | ||
2710 | else | |
2711 | ||
2712 | LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}` | |
2713 | if test "x$LINE" != x ; then | |
2714 | eval "DEFAULT_$LINE" | |
2715 | else | |
2716 | no_cache=1 | |
2717 | fi | |
2718 | ||
2719 | ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2 | |
2720 | ||
2721 | fi; | |
2722 | ||
2723 | eval "$ac_cv_use_gtk2" | |
2724 | if test "$no_cache" != 1; then | |
2725 | echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp | |
2726 | fi | |
2727 | ||
2728 | if test "$wxUSE_GTK2" = yes; then | |
2729 | echo "$as_me:$LINENO: result: yes" >&5 | |
2730 | echo "${ECHO_T}yes" >&6 | |
2731 | else | |
2732 | echo "$as_me:$LINENO: result: no" >&5 | |
2733 | echo "${ECHO_T}no" >&6 | |
2734 | fi | |
2735 | ||
2736 | ||
2737 | enablestring= | |
2738 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5 | |
2739 | echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6 | |
2740 | no_cache=0 | |
2741 | # Check whether --enable-gpe or --disable-gpe was given. | |
2742 | if test "${enable_gpe+set}" = set; then | |
2743 | enableval="$enable_gpe" | |
2744 | ||
2745 | if test "$enableval" = yes; then | |
2746 | ac_cv_use_gpe='wxUSE_GPE=yes' | |
2747 | else | |
2748 | ac_cv_use_gpe='wxUSE_GPE=no' | |
2749 | fi | |
2750 | ||
2751 | else | |
2752 | ||
2753 | LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}` | |
2754 | if test "x$LINE" != x ; then | |
2755 | eval "DEFAULT_$LINE" | |
2756 | else | |
2757 | no_cache=1 | |
2758 | fi | |
2759 | ||
2760 | ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE | |
2761 | ||
2762 | fi; | |
2763 | ||
2764 | eval "$ac_cv_use_gpe" | |
2765 | if test "$no_cache" != 1; then | |
2766 | echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp | |
2767 | fi | |
2768 | ||
2769 | if test "$wxUSE_GPE" = yes; then | |
2770 | echo "$as_me:$LINENO: result: yes" >&5 | |
2771 | echo "${ECHO_T}yes" >&6 | |
2772 | else | |
2773 | echo "$as_me:$LINENO: result: no" >&5 | |
2774 | echo "${ECHO_T}no" >&6 | |
2775 | fi | |
2776 | ||
2777 | ||
2778 | ||
2779 | echo "$as_me:$LINENO: checking for --with-libpng" >&5 | |
2780 | echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6 | |
2781 | no_cache=0 | |
2782 | ||
2783 | # Check whether --with-libpng or --without-libpng was given. | |
2784 | if test "${with_libpng+set}" = set; then | |
2785 | withval="$with_libpng" | |
2786 | ||
2787 | if test "$withval" = yes; then | |
2788 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' | |
2789 | elif test "$withval" = no; then | |
2790 | ac_cv_use_libpng='wxUSE_LIBPNG=no' | |
2791 | elif test "$withval" = sys; then | |
2792 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
2793 | elif test "$withval" = builtin; then | |
2794 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
2795 | else | |
2796 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2797 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2798 | { (exit 1); exit 1; }; } | |
2799 | fi | |
2800 | ||
2801 | else | |
2802 | ||
2803 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` | |
2804 | if test "x$LINE" != x ; then | |
2805 | eval "DEFAULT_$LINE" | |
2806 | else | |
2807 | no_cache=1 | |
2808 | fi | |
2809 | ||
2810 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG | |
2811 | ||
2812 | fi; | |
2813 | ||
2814 | eval "$ac_cv_use_libpng" | |
2815 | if test "$no_cache" != 1; then | |
2816 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp | |
2817 | fi | |
2818 | ||
2819 | if test "$wxUSE_LIBPNG" = yes; then | |
2820 | echo "$as_me:$LINENO: result: yes" >&5 | |
2821 | echo "${ECHO_T}yes" >&6 | |
2822 | elif test "$wxUSE_LIBPNG" = no; then | |
2823 | echo "$as_me:$LINENO: result: no" >&5 | |
2824 | echo "${ECHO_T}no" >&6 | |
2825 | elif test "$wxUSE_LIBPNG" = sys; then | |
2826 | echo "$as_me:$LINENO: result: system version" >&5 | |
2827 | echo "${ECHO_T}system version" >&6 | |
2828 | elif test "$wxUSE_LIBPNG" = builtin; then | |
2829 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2830 | echo "${ECHO_T}builtin version" >&6 | |
2831 | else | |
2832 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2833 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2834 | { (exit 1); exit 1; }; } | |
2835 | fi | |
2836 | ||
2837 | ||
2838 | echo "$as_me:$LINENO: checking for --with-libjpeg" >&5 | |
2839 | echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6 | |
2840 | no_cache=0 | |
2841 | ||
2842 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
2843 | if test "${with_libjpeg+set}" = set; then | |
2844 | withval="$with_libjpeg" | |
2845 | ||
2846 | if test "$withval" = yes; then | |
2847 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' | |
2848 | elif test "$withval" = no; then | |
2849 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' | |
2850 | elif test "$withval" = sys; then | |
2851 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
2852 | elif test "$withval" = builtin; then | |
2853 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
2854 | else | |
2855 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2856 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2857 | { (exit 1); exit 1; }; } | |
2858 | fi | |
2859 | ||
2860 | else | |
2861 | ||
2862 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` | |
2863 | if test "x$LINE" != x ; then | |
2864 | eval "DEFAULT_$LINE" | |
2865 | else | |
2866 | no_cache=1 | |
2867 | fi | |
2868 | ||
2869 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG | |
2870 | ||
2871 | fi; | |
2872 | ||
2873 | eval "$ac_cv_use_libjpeg" | |
2874 | if test "$no_cache" != 1; then | |
2875 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp | |
2876 | fi | |
2877 | ||
2878 | if test "$wxUSE_LIBJPEG" = yes; then | |
2879 | echo "$as_me:$LINENO: result: yes" >&5 | |
2880 | echo "${ECHO_T}yes" >&6 | |
2881 | elif test "$wxUSE_LIBJPEG" = no; then | |
2882 | echo "$as_me:$LINENO: result: no" >&5 | |
2883 | echo "${ECHO_T}no" >&6 | |
2884 | elif test "$wxUSE_LIBJPEG" = sys; then | |
2885 | echo "$as_me:$LINENO: result: system version" >&5 | |
2886 | echo "${ECHO_T}system version" >&6 | |
2887 | elif test "$wxUSE_LIBJPEG" = builtin; then | |
2888 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2889 | echo "${ECHO_T}builtin version" >&6 | |
2890 | else | |
2891 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2892 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2893 | { (exit 1); exit 1; }; } | |
2894 | fi | |
2895 | ||
2896 | ||
2897 | echo "$as_me:$LINENO: checking for --with-libtiff" >&5 | |
2898 | echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6 | |
2899 | no_cache=0 | |
2900 | ||
2901 | # Check whether --with-libtiff or --without-libtiff was given. | |
2902 | if test "${with_libtiff+set}" = set; then | |
2903 | withval="$with_libtiff" | |
2904 | ||
2905 | if test "$withval" = yes; then | |
2906 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' | |
2907 | elif test "$withval" = no; then | |
2908 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' | |
2909 | elif test "$withval" = sys; then | |
2910 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
2911 | elif test "$withval" = builtin; then | |
2912 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
2913 | else | |
2914 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2915 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2916 | { (exit 1); exit 1; }; } | |
2917 | fi | |
2918 | ||
2919 | else | |
2920 | ||
2921 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` | |
2922 | if test "x$LINE" != x ; then | |
2923 | eval "DEFAULT_$LINE" | |
2924 | else | |
2925 | no_cache=1 | |
2926 | fi | |
2927 | ||
2928 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF | |
2929 | ||
2930 | fi; | |
2931 | ||
2932 | eval "$ac_cv_use_libtiff" | |
2933 | if test "$no_cache" != 1; then | |
2934 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp | |
2935 | fi | |
2936 | ||
2937 | if test "$wxUSE_LIBTIFF" = yes; then | |
2938 | echo "$as_me:$LINENO: result: yes" >&5 | |
2939 | echo "${ECHO_T}yes" >&6 | |
2940 | elif test "$wxUSE_LIBTIFF" = no; then | |
2941 | echo "$as_me:$LINENO: result: no" >&5 | |
2942 | echo "${ECHO_T}no" >&6 | |
2943 | elif test "$wxUSE_LIBTIFF" = sys; then | |
2944 | echo "$as_me:$LINENO: result: system version" >&5 | |
2945 | echo "${ECHO_T}system version" >&6 | |
2946 | elif test "$wxUSE_LIBTIFF" = builtin; then | |
2947 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2948 | echo "${ECHO_T}builtin version" >&6 | |
2949 | else | |
2950 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2951 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2952 | { (exit 1); exit 1; }; } | |
2953 | fi | |
2954 | ||
2955 | ||
2956 | echo "$as_me:$LINENO: checking for --with-libxpm" >&5 | |
2957 | echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6 | |
2958 | no_cache=0 | |
2959 | ||
2960 | # Check whether --with-libxpm or --without-libxpm was given. | |
2961 | if test "${with_libxpm+set}" = set; then | |
2962 | withval="$with_libxpm" | |
2963 | ||
2964 | if test "$withval" = yes; then | |
2965 | ac_cv_use_libxpm='wxUSE_LIBXPM=yes' | |
2966 | elif test "$withval" = no; then | |
2967 | ac_cv_use_libxpm='wxUSE_LIBXPM=no' | |
2968 | elif test "$withval" = sys; then | |
2969 | ac_cv_use_libxpm='wxUSE_LIBXPM=sys' | |
2970 | elif test "$withval" = builtin; then | |
2971 | ac_cv_use_libxpm='wxUSE_LIBXPM=builtin' | |
2972 | else | |
2973 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
2974 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
2975 | { (exit 1); exit 1; }; } | |
2976 | fi | |
2977 | ||
2978 | else | |
2979 | ||
2980 | LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}` | |
2981 | if test "x$LINE" != x ; then | |
2982 | eval "DEFAULT_$LINE" | |
2983 | else | |
2984 | no_cache=1 | |
2985 | fi | |
2986 | ||
2987 | ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM | |
2988 | ||
2989 | fi; | |
2990 | ||
2991 | eval "$ac_cv_use_libxpm" | |
2992 | if test "$no_cache" != 1; then | |
2993 | echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp | |
2994 | fi | |
2995 | ||
2996 | if test "$wxUSE_LIBXPM" = yes; then | |
2997 | echo "$as_me:$LINENO: result: yes" >&5 | |
2998 | echo "${ECHO_T}yes" >&6 | |
2999 | elif test "$wxUSE_LIBXPM" = no; then | |
3000 | echo "$as_me:$LINENO: result: no" >&5 | |
3001 | echo "${ECHO_T}no" >&6 | |
3002 | elif test "$wxUSE_LIBXPM" = sys; then | |
3003 | echo "$as_me:$LINENO: result: system version" >&5 | |
3004 | echo "${ECHO_T}system version" >&6 | |
3005 | elif test "$wxUSE_LIBXPM" = builtin; then | |
3006 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3007 | echo "${ECHO_T}builtin version" >&6 | |
3008 | else | |
3009 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
3010 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
3011 | { (exit 1); exit 1; }; } | |
3012 | fi | |
3013 | ||
3014 | ||
3015 | echo "$as_me:$LINENO: checking for --with-libmspack" >&5 | |
3016 | echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6 | |
3017 | no_cache=0 | |
3018 | ||
3019 | # Check whether --with-libmspack or --without-libmspack was given. | |
3020 | if test "${with_libmspack+set}" = set; then | |
3021 | withval="$with_libmspack" | |
3022 | ||
3023 | if test "$withval" = yes; then | |
3024 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes' | |
3025 | else | |
3026 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=no' | |
3027 | fi | |
3028 | ||
3029 | else | |
3030 | ||
3031 | LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}` | |
3032 | if test "x$LINE" != x ; then | |
3033 | eval "DEFAULT_$LINE" | |
3034 | else | |
3035 | no_cache=1 | |
3036 | fi | |
3037 | ||
3038 | ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK | |
3039 | ||
3040 | fi; | |
3041 | ||
3042 | eval "$ac_cv_use_libmspack" | |
3043 | if test "$no_cache" != 1; then | |
3044 | echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp | |
3045 | fi | |
3046 | ||
3047 | if test "$wxUSE_LIBMSPACK" = yes; then | |
3048 | echo "$as_me:$LINENO: result: yes" >&5 | |
3049 | echo "${ECHO_T}yes" >&6 | |
3050 | else | |
3051 | echo "$as_me:$LINENO: result: no" >&5 | |
3052 | echo "${ECHO_T}no" >&6 | |
3053 | fi | |
3054 | ||
3055 | ||
3056 | echo "$as_me:$LINENO: checking for --with-sdl" >&5 | |
3057 | echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6 | |
3058 | no_cache=0 | |
3059 | ||
3060 | # Check whether --with-sdl or --without-sdl was given. | |
3061 | if test "${with_sdl+set}" = set; then | |
3062 | withval="$with_sdl" | |
3063 | ||
3064 | if test "$withval" = yes; then | |
3065 | ac_cv_use_sdl='wxUSE_LIBSDL=yes' | |
3066 | else | |
3067 | ac_cv_use_sdl='wxUSE_LIBSDL=no' | |
3068 | fi | |
3069 | ||
3070 | else | |
3071 | ||
3072 | LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}` | |
3073 | if test "x$LINE" != x ; then | |
3074 | eval "DEFAULT_$LINE" | |
3075 | else | |
3076 | no_cache=1 | |
3077 | fi | |
3078 | ||
3079 | ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL | |
3080 | ||
3081 | fi; | |
3082 | ||
3083 | eval "$ac_cv_use_sdl" | |
3084 | if test "$no_cache" != 1; then | |
3085 | echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp | |
3086 | fi | |
3087 | ||
3088 | if test "$wxUSE_LIBSDL" = yes; then | |
3089 | echo "$as_me:$LINENO: result: yes" >&5 | |
3090 | echo "${ECHO_T}yes" >&6 | |
3091 | else | |
3092 | echo "$as_me:$LINENO: result: no" >&5 | |
3093 | echo "${ECHO_T}no" >&6 | |
3094 | fi | |
3095 | ||
3096 | ||
d1c38808 VZ |
3097 | echo "$as_me:$LINENO: checking for --with-gnomeprint" >&5 |
3098 | echo $ECHO_N "checking for --with-gnomeprint... $ECHO_C" >&6 | |
3099 | no_cache=0 | |
3100 | ||
3101 | # Check whether --with-gnomeprint or --without-gnomeprint was given. | |
3102 | if test "${with_gnomeprint+set}" = set; then | |
3103 | withval="$with_gnomeprint" | |
3104 | ||
3105 | if test "$withval" = yes; then | |
3106 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes' | |
3107 | else | |
3108 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no' | |
3109 | fi | |
3110 | ||
3111 | else | |
3112 | ||
3113 | LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}` | |
3114 | if test "x$LINE" != x ; then | |
3115 | eval "DEFAULT_$LINE" | |
3116 | else | |
3117 | no_cache=1 | |
3118 | fi | |
3119 | ||
3120 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT | |
3121 | ||
3122 | fi; | |
3123 | ||
3124 | eval "$ac_cv_use_gnomeprint" | |
3125 | if test "$no_cache" != 1; then | |
3126 | echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp | |
3127 | fi | |
3128 | ||
3129 | if test "$wxUSE_LIBGNOMEPRINT" = yes; then | |
3130 | echo "$as_me:$LINENO: result: yes" >&5 | |
3131 | echo "${ECHO_T}yes" >&6 | |
3132 | else | |
3133 | echo "$as_me:$LINENO: result: no" >&5 | |
3134 | echo "${ECHO_T}no" >&6 | |
3135 | fi | |
3136 | ||
3137 | ||
a848cd7e SC |
3138 | echo "$as_me:$LINENO: checking for --with-opengl" >&5 |
3139 | echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6 | |
3140 | no_cache=0 | |
3141 | ||
3142 | # Check whether --with-opengl or --without-opengl was given. | |
3143 | if test "${with_opengl+set}" = set; then | |
3144 | withval="$with_opengl" | |
3145 | ||
3146 | if test "$withval" = yes; then | |
3147 | ac_cv_use_opengl='wxUSE_OPENGL=yes' | |
3148 | else | |
3149 | ac_cv_use_opengl='wxUSE_OPENGL=no' | |
3150 | fi | |
3151 | ||
3152 | else | |
3153 | ||
3154 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` | |
3155 | if test "x$LINE" != x ; then | |
3156 | eval "DEFAULT_$LINE" | |
3157 | else | |
3158 | no_cache=1 | |
3159 | fi | |
3160 | ||
3161 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL | |
3162 | ||
3163 | fi; | |
3164 | ||
3165 | eval "$ac_cv_use_opengl" | |
3166 | if test "$no_cache" != 1; then | |
3167 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp | |
3168 | fi | |
3169 | ||
3170 | if test "$wxUSE_OPENGL" = yes; then | |
3171 | echo "$as_me:$LINENO: result: yes" >&5 | |
3172 | echo "${ECHO_T}yes" >&6 | |
3173 | else | |
3174 | echo "$as_me:$LINENO: result: no" >&5 | |
3175 | echo "${ECHO_T}no" >&6 | |
3176 | fi | |
3177 | ||
3178 | ||
3179 | fi | |
3180 | ||
3181 | ||
3182 | echo "$as_me:$LINENO: checking for --with-dmalloc" >&5 | |
3183 | echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6 | |
3184 | no_cache=0 | |
3185 | ||
3186 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
3187 | if test "${with_dmalloc+set}" = set; then | |
3188 | withval="$with_dmalloc" | |
3189 | ||
3190 | if test "$withval" = yes; then | |
3191 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' | |
3192 | else | |
3193 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' | |
3194 | fi | |
3195 | ||
3196 | else | |
3197 | ||
3198 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` | |
3199 | if test "x$LINE" != x ; then | |
3200 | eval "DEFAULT_$LINE" | |
3201 | else | |
3202 | no_cache=1 | |
3203 | fi | |
3204 | ||
3205 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC | |
3206 | ||
3207 | fi; | |
3208 | ||
3209 | eval "$ac_cv_use_dmalloc" | |
3210 | if test "$no_cache" != 1; then | |
3211 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp | |
3212 | fi | |
3213 | ||
3214 | if test "$wxUSE_DMALLOC" = yes; then | |
3215 | echo "$as_me:$LINENO: result: yes" >&5 | |
3216 | echo "${ECHO_T}yes" >&6 | |
3217 | else | |
3218 | echo "$as_me:$LINENO: result: no" >&5 | |
3219 | echo "${ECHO_T}no" >&6 | |
3220 | fi | |
3221 | ||
3222 | ||
3223 | echo "$as_me:$LINENO: checking for --with-regex" >&5 | |
3224 | echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6 | |
3225 | no_cache=0 | |
3226 | ||
3227 | # Check whether --with-regex or --without-regex was given. | |
3228 | if test "${with_regex+set}" = set; then | |
3229 | withval="$with_regex" | |
3230 | ||
3231 | if test "$withval" = yes; then | |
3232 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
3233 | elif test "$withval" = no; then | |
3234 | ac_cv_use_regex='wxUSE_REGEX=no' | |
3235 | elif test "$withval" = sys; then | |
3236 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
3237 | elif test "$withval" = builtin; then | |
3238 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3239 | else | |
3240 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3241 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3242 | { (exit 1); exit 1; }; } | |
3243 | fi | |
3244 | ||
3245 | else | |
3246 | ||
3247 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
3248 | if test "x$LINE" != x ; then | |
3249 | eval "DEFAULT_$LINE" | |
3250 | else | |
3251 | no_cache=1 | |
3252 | fi | |
3253 | ||
3254 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
3255 | ||
3256 | fi; | |
3257 | ||
3258 | eval "$ac_cv_use_regex" | |
3259 | if test "$no_cache" != 1; then | |
3260 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
3261 | fi | |
3262 | ||
3263 | if test "$wxUSE_REGEX" = yes; then | |
3264 | echo "$as_me:$LINENO: result: yes" >&5 | |
3265 | echo "${ECHO_T}yes" >&6 | |
3266 | elif test "$wxUSE_REGEX" = no; then | |
3267 | echo "$as_me:$LINENO: result: no" >&5 | |
3268 | echo "${ECHO_T}no" >&6 | |
3269 | elif test "$wxUSE_REGEX" = sys; then | |
3270 | echo "$as_me:$LINENO: result: system version" >&5 | |
3271 | echo "${ECHO_T}system version" >&6 | |
3272 | elif test "$wxUSE_REGEX" = builtin; then | |
3273 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3274 | echo "${ECHO_T}builtin version" >&6 | |
3275 | else | |
3276 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3277 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3278 | { (exit 1); exit 1; }; } | |
3279 | fi | |
3280 | ||
3281 | ||
3282 | echo "$as_me:$LINENO: checking for --with-zlib" >&5 | |
3283 | echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6 | |
3284 | no_cache=0 | |
3285 | ||
3286 | # Check whether --with-zlib or --without-zlib was given. | |
3287 | if test "${with_zlib+set}" = set; then | |
3288 | withval="$with_zlib" | |
3289 | ||
3290 | if test "$withval" = yes; then | |
3291 | ac_cv_use_zlib='wxUSE_ZLIB=yes' | |
3292 | elif test "$withval" = no; then | |
3293 | ac_cv_use_zlib='wxUSE_ZLIB=no' | |
3294 | elif test "$withval" = sys; then | |
3295 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
3296 | elif test "$withval" = builtin; then | |
3297 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
3298 | else | |
3299 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3300 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3301 | { (exit 1); exit 1; }; } | |
3302 | fi | |
3303 | ||
3304 | else | |
3305 | ||
3306 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` | |
3307 | if test "x$LINE" != x ; then | |
3308 | eval "DEFAULT_$LINE" | |
3309 | else | |
3310 | no_cache=1 | |
3311 | fi | |
3312 | ||
3313 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB | |
3314 | ||
3315 | fi; | |
3316 | ||
3317 | eval "$ac_cv_use_zlib" | |
3318 | if test "$no_cache" != 1; then | |
3319 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp | |
3320 | fi | |
3321 | ||
3322 | if test "$wxUSE_ZLIB" = yes; then | |
3323 | echo "$as_me:$LINENO: result: yes" >&5 | |
3324 | echo "${ECHO_T}yes" >&6 | |
3325 | elif test "$wxUSE_ZLIB" = no; then | |
3326 | echo "$as_me:$LINENO: result: no" >&5 | |
3327 | echo "${ECHO_T}no" >&6 | |
3328 | elif test "$wxUSE_ZLIB" = sys; then | |
3329 | echo "$as_me:$LINENO: result: system version" >&5 | |
3330 | echo "${ECHO_T}system version" >&6 | |
3331 | elif test "$wxUSE_ZLIB" = builtin; then | |
3332 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3333 | echo "${ECHO_T}builtin version" >&6 | |
3334 | else | |
3335 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3336 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3337 | { (exit 1); exit 1; }; } | |
3338 | fi | |
3339 | ||
3340 | ||
3341 | echo "$as_me:$LINENO: checking for --with-odbc" >&5 | |
3342 | echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6 | |
3343 | no_cache=0 | |
3344 | ||
3345 | # Check whether --with-odbc or --without-odbc was given. | |
3346 | if test "${with_odbc+set}" = set; then | |
3347 | withval="$with_odbc" | |
3348 | ||
3349 | if test "$withval" = yes; then | |
3350 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
3351 | elif test "$withval" = no; then | |
3352 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
3353 | elif test "$withval" = sys; then | |
3354 | ac_cv_use_odbc='wxUSE_ODBC=sys' | |
3355 | elif test "$withval" = builtin; then | |
3356 | ac_cv_use_odbc='wxUSE_ODBC=builtin' | |
3357 | else | |
3358 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3359 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3360 | { (exit 1); exit 1; }; } | |
3361 | fi | |
3362 | ||
3363 | else | |
3364 | ||
3365 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` | |
3366 | if test "x$LINE" != x ; then | |
3367 | eval "DEFAULT_$LINE" | |
3368 | else | |
3369 | no_cache=1 | |
3370 | fi | |
3371 | ||
3372 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
3373 | ||
3374 | fi; | |
3375 | ||
3376 | eval "$ac_cv_use_odbc" | |
3377 | if test "$no_cache" != 1; then | |
3378 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
3379 | fi | |
3380 | ||
3381 | if test "$wxUSE_ODBC" = yes; then | |
3382 | echo "$as_me:$LINENO: result: yes" >&5 | |
3383 | echo "${ECHO_T}yes" >&6 | |
3384 | elif test "$wxUSE_ODBC" = no; then | |
3385 | echo "$as_me:$LINENO: result: no" >&5 | |
3386 | echo "${ECHO_T}no" >&6 | |
3387 | elif test "$wxUSE_ODBC" = sys; then | |
3388 | echo "$as_me:$LINENO: result: system version" >&5 | |
3389 | echo "${ECHO_T}system version" >&6 | |
3390 | elif test "$wxUSE_ODBC" = builtin; then | |
3391 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3392 | echo "${ECHO_T}builtin version" >&6 | |
3393 | else | |
3394 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3395 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3396 | { (exit 1); exit 1; }; } | |
3397 | fi | |
3398 | ||
3399 | ||
3400 | echo "$as_me:$LINENO: checking for --with-expat" >&5 | |
3401 | echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6 | |
3402 | no_cache=0 | |
3403 | ||
3404 | # Check whether --with-expat or --without-expat was given. | |
3405 | if test "${with_expat+set}" = set; then | |
3406 | withval="$with_expat" | |
3407 | ||
3408 | if test "$withval" = yes; then | |
3409 | ac_cv_use_expat='wxUSE_EXPAT=yes' | |
3410 | elif test "$withval" = no; then | |
3411 | ac_cv_use_expat='wxUSE_EXPAT=no' | |
3412 | elif test "$withval" = sys; then | |
3413 | ac_cv_use_expat='wxUSE_EXPAT=sys' | |
3414 | elif test "$withval" = builtin; then | |
3415 | ac_cv_use_expat='wxUSE_EXPAT=builtin' | |
3416 | else | |
3417 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3418 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3419 | { (exit 1); exit 1; }; } | |
3420 | fi | |
3421 | ||
3422 | else | |
3423 | ||
3424 | LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}` | |
3425 | if test "x$LINE" != x ; then | |
3426 | eval "DEFAULT_$LINE" | |
3427 | else | |
3428 | no_cache=1 | |
3429 | fi | |
3430 | ||
3431 | ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT | |
3432 | ||
3433 | fi; | |
3434 | ||
3435 | eval "$ac_cv_use_expat" | |
3436 | if test "$no_cache" != 1; then | |
3437 | echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp | |
3438 | fi | |
3439 | ||
3440 | if test "$wxUSE_EXPAT" = yes; then | |
3441 | echo "$as_me:$LINENO: result: yes" >&5 | |
3442 | echo "${ECHO_T}yes" >&6 | |
3443 | elif test "$wxUSE_EXPAT" = no; then | |
3444 | echo "$as_me:$LINENO: result: no" >&5 | |
3445 | echo "${ECHO_T}no" >&6 | |
3446 | elif test "$wxUSE_EXPAT" = sys; then | |
3447 | echo "$as_me:$LINENO: result: system version" >&5 | |
3448 | echo "${ECHO_T}system version" >&6 | |
3449 | elif test "$wxUSE_EXPAT" = builtin; then | |
3450 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3451 | echo "${ECHO_T}builtin version" >&6 | |
3452 | else | |
3453 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3454 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3455 | { (exit 1); exit 1; }; } | |
3456 | fi | |
3457 | ||
3458 | ||
3459 | ||
3460 | ||
3461 | enablestring= | |
3462 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5 | |
3463 | echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6 | |
3464 | no_cache=0 | |
3465 | # Check whether --enable-shared or --disable-shared was given. | |
3466 | if test "${enable_shared+set}" = set; then | |
3467 | enableval="$enable_shared" | |
3468 | ||
3469 | if test "$enableval" = yes; then | |
3470 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
3471 | else | |
3472 | ac_cv_use_shared='wxUSE_SHARED=no' | |
3473 | fi | |
3474 | ||
3475 | else | |
3476 | ||
3477 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` | |
3478 | if test "x$LINE" != x ; then | |
3479 | eval "DEFAULT_$LINE" | |
3480 | else | |
3481 | no_cache=1 | |
3482 | fi | |
3483 | ||
3484 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
3485 | ||
3486 | fi; | |
3487 | ||
3488 | eval "$ac_cv_use_shared" | |
3489 | if test "$no_cache" != 1; then | |
3490 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
3491 | fi | |
3492 | ||
3493 | if test "$wxUSE_SHARED" = yes; then | |
3494 | echo "$as_me:$LINENO: result: yes" >&5 | |
3495 | echo "${ECHO_T}yes" >&6 | |
3496 | else | |
3497 | echo "$as_me:$LINENO: result: no" >&5 | |
3498 | echo "${ECHO_T}no" >&6 | |
3499 | fi | |
3500 | ||
3501 | ||
3502 | enablestring= | |
3503 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5 | |
3504 | echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6 | |
3505 | no_cache=0 | |
3506 | # Check whether --enable-optimise or --disable-optimise was given. | |
3507 | if test "${enable_optimise+set}" = set; then | |
3508 | enableval="$enable_optimise" | |
3509 | ||
3510 | if test "$enableval" = yes; then | |
3511 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
3512 | else | |
3513 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
3514 | fi | |
3515 | ||
3516 | else | |
3517 | ||
3518 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` | |
3519 | if test "x$LINE" != x ; then | |
3520 | eval "DEFAULT_$LINE" | |
3521 | else | |
3522 | no_cache=1 | |
3523 | fi | |
3524 | ||
3525 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
3526 | ||
3527 | fi; | |
3528 | ||
3529 | eval "$ac_cv_use_optimise" | |
3530 | if test "$no_cache" != 1; then | |
3531 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
3532 | fi | |
3533 | ||
3534 | if test "$wxUSE_OPTIMISE" = yes; then | |
3535 | echo "$as_me:$LINENO: result: yes" >&5 | |
3536 | echo "${ECHO_T}yes" >&6 | |
3537 | else | |
3538 | echo "$as_me:$LINENO: result: no" >&5 | |
3539 | echo "${ECHO_T}no" >&6 | |
3540 | fi | |
3541 | ||
3542 | ||
3543 | enablestring= | |
3544 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5 | |
3545 | echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6 | |
3546 | no_cache=0 | |
3547 | # Check whether --enable-debug or --disable-debug was given. | |
3548 | if test "${enable_debug+set}" = set; then | |
3549 | enableval="$enable_debug" | |
3550 | ||
3551 | if test "$enableval" = yes; then | |
3552 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
3553 | else | |
3554 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
3555 | fi | |
3556 | ||
3557 | else | |
3558 | ||
3559 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` | |
3560 | if test "x$LINE" != x ; then | |
3561 | eval "DEFAULT_$LINE" | |
3562 | else | |
3563 | no_cache=1 | |
3564 | fi | |
3565 | ||
3566 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
3567 | ||
3568 | fi; | |
3569 | ||
3570 | eval "$ac_cv_use_debug" | |
3571 | if test "$no_cache" != 1; then | |
3572 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
3573 | fi | |
3574 | ||
3575 | if test "$wxUSE_DEBUG" = yes; then | |
3576 | echo "$as_me:$LINENO: result: yes" >&5 | |
3577 | echo "${ECHO_T}yes" >&6 | |
3578 | else | |
3579 | echo "$as_me:$LINENO: result: no" >&5 | |
3580 | echo "${ECHO_T}no" >&6 | |
3581 | fi | |
3582 | ||
3583 | ||
3584 | enablestring= | |
3585 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5 | |
3586 | echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6 | |
3587 | no_cache=0 | |
3588 | # Check whether --enable-stl or --disable-stl was given. | |
3589 | if test "${enable_stl+set}" = set; then | |
3590 | enableval="$enable_stl" | |
3591 | ||
3592 | if test "$enableval" = yes; then | |
3593 | ac_cv_use_stl='wxUSE_STL=yes' | |
3594 | else | |
3595 | ac_cv_use_stl='wxUSE_STL=no' | |
3596 | fi | |
3597 | ||
3598 | else | |
3599 | ||
3600 | LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}` | |
3601 | if test "x$LINE" != x ; then | |
3602 | eval "DEFAULT_$LINE" | |
3603 | else | |
3604 | no_cache=1 | |
3605 | fi | |
3606 | ||
3607 | ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL | |
3608 | ||
3609 | fi; | |
3610 | ||
3611 | eval "$ac_cv_use_stl" | |
3612 | if test "$no_cache" != 1; then | |
3613 | echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp | |
3614 | fi | |
3615 | ||
3616 | if test "$wxUSE_STL" = yes; then | |
3617 | echo "$as_me:$LINENO: result: yes" >&5 | |
3618 | echo "${ECHO_T}yes" >&6 | |
3619 | else | |
3620 | echo "$as_me:$LINENO: result: no" >&5 | |
3621 | echo "${ECHO_T}no" >&6 | |
3622 | fi | |
3623 | ||
3624 | if test "$USE_OS2" = "1"; then | |
3625 | ||
3626 | enablestring= | |
3627 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5 | |
3628 | echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6 | |
3629 | no_cache=0 | |
3630 | # Check whether --enable-omf or --disable-omf was given. | |
3631 | if test "${enable_omf+set}" = set; then | |
3632 | enableval="$enable_omf" | |
3633 | ||
3634 | if test "$enableval" = yes; then | |
3635 | ac_cv_use_omf='wxUSE_OMF=yes' | |
3636 | else | |
3637 | ac_cv_use_omf='wxUSE_OMF=no' | |
3638 | fi | |
3639 | ||
3640 | else | |
3641 | ||
3642 | LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}` | |
3643 | if test "x$LINE" != x ; then | |
3644 | eval "DEFAULT_$LINE" | |
3645 | else | |
3646 | no_cache=1 | |
3647 | fi | |
3648 | ||
3649 | ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF | |
3650 | ||
3651 | fi; | |
3652 | ||
3653 | eval "$ac_cv_use_omf" | |
3654 | if test "$no_cache" != 1; then | |
3655 | echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp | |
3656 | fi | |
3657 | ||
3658 | if test "$wxUSE_OMF" = yes; then | |
3659 | echo "$as_me:$LINENO: result: yes" >&5 | |
3660 | echo "${ECHO_T}yes" >&6 | |
3661 | else | |
3662 | echo "$as_me:$LINENO: result: no" >&5 | |
3663 | echo "${ECHO_T}no" >&6 | |
3664 | fi | |
3665 | ||
3666 | fi | |
3667 | ||
3668 | if test "$wxUSE_DEBUG" = "yes"; then | |
3669 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
3670 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
3671 | BUILD=debug | |
3672 | elif test "$wxUSE_DEBUG" = "no"; then | |
3673 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
3674 | DEFAULT_wxUSE_DEBUG_INFO=no | |
3675 | BUILD=release | |
3676 | fi | |
3677 | ||
3678 | ||
3679 | enablestring= | |
3680 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5 | |
3681 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6 | |
3682 | no_cache=0 | |
3683 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
3684 | if test "${enable_debug_flag+set}" = set; then | |
3685 | enableval="$enable_debug_flag" | |
3686 | ||
3687 | if test "$enableval" = yes; then | |
3688 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
3689 | else | |
3690 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
3691 | fi | |
3692 | ||
3693 | else | |
3694 | ||
3695 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` | |
3696 | if test "x$LINE" != x ; then | |
3697 | eval "DEFAULT_$LINE" | |
3698 | else | |
3699 | no_cache=1 | |
3700 | fi | |
3701 | ||
3702 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
3703 | ||
3704 | fi; | |
3705 | ||
3706 | eval "$ac_cv_use_debug_flag" | |
3707 | if test "$no_cache" != 1; then | |
3708 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
3709 | fi | |
3710 | ||
3711 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
3712 | echo "$as_me:$LINENO: result: yes" >&5 | |
3713 | echo "${ECHO_T}yes" >&6 | |
3714 | else | |
3715 | echo "$as_me:$LINENO: result: no" >&5 | |
3716 | echo "${ECHO_T}no" >&6 | |
3717 | fi | |
3718 | ||
3719 | ||
3720 | enablestring= | |
3721 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5 | |
3722 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6 | |
3723 | no_cache=0 | |
3724 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
3725 | if test "${enable_debug_info+set}" = set; then | |
3726 | enableval="$enable_debug_info" | |
3727 | ||
3728 | if test "$enableval" = yes; then | |
3729 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
3730 | else | |
3731 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
3732 | fi | |
3733 | ||
3734 | else | |
3735 | ||
3736 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` | |
3737 | if test "x$LINE" != x ; then | |
3738 | eval "DEFAULT_$LINE" | |
3739 | else | |
3740 | no_cache=1 | |
3741 | fi | |
3742 | ||
3743 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
3744 | ||
3745 | fi; | |
3746 | ||
3747 | eval "$ac_cv_use_debug_info" | |
3748 | if test "$no_cache" != 1; then | |
3749 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
3750 | fi | |
3751 | ||
3752 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
3753 | echo "$as_me:$LINENO: result: yes" >&5 | |
3754 | echo "${ECHO_T}yes" >&6 | |
3755 | else | |
3756 | echo "$as_me:$LINENO: result: no" >&5 | |
3757 | echo "${ECHO_T}no" >&6 | |
3758 | fi | |
3759 | ||
3760 | ||
3761 | enablestring= | |
3762 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5 | |
3763 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6 | |
3764 | no_cache=0 | |
3765 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
3766 | if test "${enable_debug_gdb+set}" = set; then | |
3767 | enableval="$enable_debug_gdb" | |
3768 | ||
3769 | if test "$enableval" = yes; then | |
3770 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
3771 | else | |
3772 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
3773 | fi | |
3774 | ||
3775 | else | |
3776 | ||
3777 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` | |
3778 | if test "x$LINE" != x ; then | |
3779 | eval "DEFAULT_$LINE" | |
3780 | else | |
3781 | no_cache=1 | |
3782 | fi | |
3783 | ||
3784 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
3785 | ||
3786 | fi; | |
3787 | ||
3788 | eval "$ac_cv_use_debug_gdb" | |
3789 | if test "$no_cache" != 1; then | |
3790 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
3791 | fi | |
3792 | ||
3793 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
3794 | echo "$as_me:$LINENO: result: yes" >&5 | |
3795 | echo "${ECHO_T}yes" >&6 | |
3796 | else | |
3797 | echo "$as_me:$LINENO: result: no" >&5 | |
3798 | echo "${ECHO_T}no" >&6 | |
3799 | fi | |
3800 | ||
3801 | ||
3802 | enablestring= | |
3803 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5 | |
3804 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6 | |
3805 | no_cache=0 | |
3806 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
3807 | if test "${enable_debug_cntxt+set}" = set; then | |
3808 | enableval="$enable_debug_cntxt" | |
3809 | ||
3810 | if test "$enableval" = yes; then | |
3811 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
3812 | else | |
3813 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
3814 | fi | |
3815 | ||
3816 | else | |
3817 | ||
3818 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` | |
3819 | if test "x$LINE" != x ; then | |
3820 | eval "DEFAULT_$LINE" | |
3821 | else | |
3822 | no_cache=1 | |
3823 | fi | |
3824 | ||
3825 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
3826 | ||
3827 | fi; | |
3828 | ||
3829 | eval "$ac_cv_use_debug_cntxt" | |
3830 | if test "$no_cache" != 1; then | |
3831 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
3832 | fi | |
3833 | ||
3834 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
3835 | echo "$as_me:$LINENO: result: yes" >&5 | |
3836 | echo "${ECHO_T}yes" >&6 | |
3837 | else | |
3838 | echo "$as_me:$LINENO: result: no" >&5 | |
3839 | echo "${ECHO_T}no" >&6 | |
3840 | fi | |
3841 | ||
3842 | ||
3843 | enablestring= | |
3844 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5 | |
3845 | echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6 | |
3846 | no_cache=0 | |
3847 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
3848 | if test "${enable_mem_tracing+set}" = set; then | |
3849 | enableval="$enable_mem_tracing" | |
3850 | ||
3851 | if test "$enableval" = yes; then | |
3852 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
3853 | else | |
3854 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
3855 | fi | |
3856 | ||
3857 | else | |
3858 | ||
3859 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` | |
3860 | if test "x$LINE" != x ; then | |
3861 | eval "DEFAULT_$LINE" | |
3862 | else | |
3863 | no_cache=1 | |
3864 | fi | |
3865 | ||
3866 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
3867 | ||
3868 | fi; | |
3869 | ||
3870 | eval "$ac_cv_use_mem_tracing" | |
3871 | if test "$no_cache" != 1; then | |
3872 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
3873 | fi | |
3874 | ||
3875 | if test "$wxUSE_MEM_TRACING" = yes; then | |
3876 | echo "$as_me:$LINENO: result: yes" >&5 | |
3877 | echo "${ECHO_T}yes" >&6 | |
3878 | else | |
3879 | echo "$as_me:$LINENO: result: no" >&5 | |
3880 | echo "${ECHO_T}no" >&6 | |
3881 | fi | |
3882 | ||
3883 | ||
3884 | enablestring= | |
3885 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5 | |
3886 | echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6 | |
3887 | no_cache=0 | |
3888 | # Check whether --enable-profile or --disable-profile was given. | |
3889 | if test "${enable_profile+set}" = set; then | |
3890 | enableval="$enable_profile" | |
3891 | ||
3892 | if test "$enableval" = yes; then | |
3893 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
3894 | else | |
3895 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
3896 | fi | |
3897 | ||
3898 | else | |
3899 | ||
3900 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` | |
3901 | if test "x$LINE" != x ; then | |
3902 | eval "DEFAULT_$LINE" | |
3903 | else | |
3904 | no_cache=1 | |
3905 | fi | |
3906 | ||
3907 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
3908 | ||
3909 | fi; | |
3910 | ||
3911 | eval "$ac_cv_use_profile" | |
3912 | if test "$no_cache" != 1; then | |
3913 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
3914 | fi | |
3915 | ||
3916 | if test "$wxUSE_PROFILE" = yes; then | |
3917 | echo "$as_me:$LINENO: result: yes" >&5 | |
3918 | echo "${ECHO_T}yes" >&6 | |
3919 | else | |
3920 | echo "$as_me:$LINENO: result: no" >&5 | |
3921 | echo "${ECHO_T}no" >&6 | |
3922 | fi | |
3923 | ||
3924 | ||
3925 | enablestring= | |
3926 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5 | |
3927 | echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6 | |
3928 | no_cache=0 | |
3929 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
3930 | if test "${enable_no_rtti+set}" = set; then | |
3931 | enableval="$enable_no_rtti" | |
3932 | ||
3933 | if test "$enableval" = yes; then | |
3934 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
3935 | else | |
3936 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
3937 | fi | |
3938 | ||
3939 | else | |
3940 | ||
3941 | LINE=`grep "wxUSE_NO_RTTI" ${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_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
3949 | ||
3950 | fi; | |
3951 | ||
3952 | eval "$ac_cv_use_no_rtti" | |
3953 | if test "$no_cache" != 1; then | |
3954 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
3955 | fi | |
3956 | ||
3957 | if test "$wxUSE_NO_RTTI" = 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 | ||
3966 | enablestring= | |
3967 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5 | |
3968 | echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6 | |
3969 | no_cache=0 | |
3970 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
3971 | if test "${enable_no_exceptions+set}" = set; then | |
3972 | enableval="$enable_no_exceptions" | |
3973 | ||
3974 | if test "$enableval" = yes; then | |
3975 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
3976 | else | |
3977 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
3978 | fi | |
3979 | ||
3980 | else | |
3981 | ||
3982 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` | |
3983 | if test "x$LINE" != x ; then | |
3984 | eval "DEFAULT_$LINE" | |
3985 | else | |
3986 | no_cache=1 | |
3987 | fi | |
3988 | ||
3989 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
3990 | ||
3991 | fi; | |
3992 | ||
3993 | eval "$ac_cv_use_no_exceptions" | |
3994 | if test "$no_cache" != 1; then | |
3995 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
3996 | fi | |
3997 | ||
3998 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
3999 | echo "$as_me:$LINENO: result: yes" >&5 | |
4000 | echo "${ECHO_T}yes" >&6 | |
4001 | else | |
4002 | echo "$as_me:$LINENO: result: no" >&5 | |
4003 | echo "${ECHO_T}no" >&6 | |
4004 | fi | |
4005 | ||
4006 | ||
4007 | enablestring= | |
4008 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5 | |
4009 | echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6 | |
4010 | no_cache=0 | |
4011 | # Check whether --enable-permissive or --disable-permissive was given. | |
4012 | if test "${enable_permissive+set}" = set; then | |
4013 | enableval="$enable_permissive" | |
4014 | ||
4015 | if test "$enableval" = yes; then | |
4016 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
4017 | else | |
4018 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
4019 | fi | |
4020 | ||
4021 | else | |
4022 | ||
4023 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` | |
4024 | if test "x$LINE" != x ; then | |
4025 | eval "DEFAULT_$LINE" | |
4026 | else | |
4027 | no_cache=1 | |
4028 | fi | |
4029 | ||
4030 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
4031 | ||
4032 | fi; | |
4033 | ||
4034 | eval "$ac_cv_use_permissive" | |
4035 | if test "$no_cache" != 1; then | |
4036 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
4037 | fi | |
4038 | ||
4039 | if test "$wxUSE_PERMISSIVE" = yes; then | |
4040 | echo "$as_me:$LINENO: result: yes" >&5 | |
4041 | echo "${ECHO_T}yes" >&6 | |
4042 | else | |
4043 | echo "$as_me:$LINENO: result: no" >&5 | |
4044 | echo "${ECHO_T}no" >&6 | |
4045 | fi | |
4046 | ||
4047 | ||
4048 | enablestring= | |
4049 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5 | |
4050 | echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6 | |
4051 | no_cache=0 | |
4052 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
4053 | if test "${enable_no_deps+set}" = set; then | |
4054 | enableval="$enable_no_deps" | |
4055 | ||
4056 | if test "$enableval" = yes; then | |
4057 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
4058 | else | |
4059 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
4060 | fi | |
4061 | ||
4062 | else | |
4063 | ||
4064 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` | |
4065 | if test "x$LINE" != x ; then | |
4066 | eval "DEFAULT_$LINE" | |
4067 | else | |
4068 | no_cache=1 | |
4069 | fi | |
4070 | ||
4071 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
4072 | ||
4073 | fi; | |
4074 | ||
4075 | eval "$ac_cv_use_no_deps" | |
4076 | if test "$no_cache" != 1; then | |
4077 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
4078 | fi | |
4079 | ||
4080 | if test "$wxUSE_NO_DEPS" = yes; then | |
4081 | echo "$as_me:$LINENO: result: yes" >&5 | |
4082 | echo "${ECHO_T}yes" >&6 | |
4083 | else | |
4084 | echo "$as_me:$LINENO: result: no" >&5 | |
4085 | echo "${ECHO_T}no" >&6 | |
4086 | fi | |
4087 | ||
4088 | ||
4089 | ||
4090 | enablestring= | |
4091 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5 | |
4092 | echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6 | |
4093 | no_cache=0 | |
4094 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
4095 | if test "${enable_compat22+set}" = set; then | |
4096 | enableval="$enable_compat22" | |
4097 | ||
4098 | if test "$enableval" = yes; then | |
4099 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
4100 | else | |
4101 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
4102 | fi | |
4103 | ||
4104 | else | |
4105 | ||
4106 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` | |
4107 | if test "x$LINE" != x ; then | |
4108 | eval "DEFAULT_$LINE" | |
4109 | else | |
4110 | no_cache=1 | |
4111 | fi | |
4112 | ||
4113 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
4114 | ||
4115 | fi; | |
4116 | ||
4117 | eval "$ac_cv_use_compat22" | |
4118 | if test "$no_cache" != 1; then | |
4119 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
4120 | fi | |
4121 | ||
4122 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
4123 | echo "$as_me:$LINENO: result: yes" >&5 | |
4124 | echo "${ECHO_T}yes" >&6 | |
4125 | else | |
4126 | echo "$as_me:$LINENO: result: no" >&5 | |
4127 | echo "${ECHO_T}no" >&6 | |
4128 | fi | |
4129 | ||
4130 | ||
4131 | enablestring=disable | |
4132 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5 | |
4133 | echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6 | |
4134 | no_cache=0 | |
4135 | # Check whether --enable-compat24 or --disable-compat24 was given. | |
4136 | if test "${enable_compat24+set}" = set; then | |
4137 | enableval="$enable_compat24" | |
4138 | ||
4139 | if test "$enableval" = yes; then | |
4140 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes' | |
4141 | else | |
4142 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no' | |
4143 | fi | |
4144 | ||
4145 | else | |
4146 | ||
4147 | LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}` | |
4148 | if test "x$LINE" != x ; then | |
4149 | eval "DEFAULT_$LINE" | |
4150 | else | |
4151 | no_cache=1 | |
4152 | fi | |
4153 | ||
4154 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4 | |
4155 | ||
4156 | fi; | |
4157 | ||
4158 | eval "$ac_cv_use_compat24" | |
4159 | if test "$no_cache" != 1; then | |
4160 | echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp | |
4161 | fi | |
4162 | ||
4163 | if test "$WXWIN_COMPATIBILITY_2_4" = yes; then | |
4164 | echo "$as_me:$LINENO: result: yes" >&5 | |
4165 | echo "${ECHO_T}yes" >&6 | |
4166 | else | |
4167 | echo "$as_me:$LINENO: result: no" >&5 | |
4168 | echo "${ECHO_T}no" >&6 | |
4169 | fi | |
4170 | ||
4171 | ||
ffa0583f RL |
4172 | |
4173 | enablestring= | |
4174 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5 | |
4175 | echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6 | |
4176 | no_cache=0 | |
4177 | # Check whether --enable-rpath or --disable-rpath was given. | |
a848cd7e SC |
4178 | if test "${enable_rpath+set}" = set; then |
4179 | enableval="$enable_rpath" | |
ffa0583f RL |
4180 | |
4181 | if test "$enableval" = yes; then | |
4182 | ac_cv_use_rpath='wxUSE_RPATH=yes' | |
4183 | else | |
4184 | ac_cv_use_rpath='wxUSE_RPATH=no' | |
4185 | fi | |
4186 | ||
4187 | else | |
4188 | ||
4189 | LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}` | |
4190 | if test "x$LINE" != x ; then | |
4191 | eval "DEFAULT_$LINE" | |
4192 | else | |
4193 | no_cache=1 | |
4194 | fi | |
4195 | ||
4196 | ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH | |
4197 | ||
a848cd7e SC |
4198 | fi; |
4199 | ||
ffa0583f RL |
4200 | eval "$ac_cv_use_rpath" |
4201 | if test "$no_cache" != 1; then | |
4202 | echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp | |
4203 | fi | |
4204 | ||
4205 | if test "$wxUSE_RPATH" = yes; then | |
4206 | echo "$as_me:$LINENO: result: yes" >&5 | |
4207 | echo "${ECHO_T}yes" >&6 | |
4208 | else | |
4209 | echo "$as_me:$LINENO: result: no" >&5 | |
4210 | echo "${ECHO_T}no" >&6 | |
4211 | fi | |
4212 | ||
a848cd7e SC |
4213 | |
4214 | ||
4215 | ||
4216 | ||
4217 | enablestring= | |
4218 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5 | |
4219 | echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6 | |
4220 | no_cache=0 | |
4221 | # Check whether --enable-intl or --disable-intl was given. | |
4222 | if test "${enable_intl+set}" = set; then | |
4223 | enableval="$enable_intl" | |
4224 | ||
4225 | if test "$enableval" = yes; then | |
4226 | ac_cv_use_intl='wxUSE_INTL=yes' | |
4227 | else | |
4228 | ac_cv_use_intl='wxUSE_INTL=no' | |
4229 | fi | |
4230 | ||
4231 | else | |
4232 | ||
4233 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` | |
4234 | if test "x$LINE" != x ; then | |
4235 | eval "DEFAULT_$LINE" | |
4236 | else | |
4237 | no_cache=1 | |
4238 | fi | |
4239 | ||
4240 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
4241 | ||
4242 | fi; | |
4243 | ||
4244 | eval "$ac_cv_use_intl" | |
4245 | if test "$no_cache" != 1; then | |
4246 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
4247 | fi | |
4248 | ||
4249 | if test "$wxUSE_INTL" = yes; then | |
4250 | echo "$as_me:$LINENO: result: yes" >&5 | |
4251 | echo "${ECHO_T}yes" >&6 | |
4252 | else | |
4253 | echo "$as_me:$LINENO: result: no" >&5 | |
4254 | echo "${ECHO_T}no" >&6 | |
4255 | fi | |
4256 | ||
4257 | ||
4258 | enablestring= | |
4259 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5 | |
4260 | echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6 | |
4261 | no_cache=0 | |
4262 | # Check whether --enable-config or --disable-config was given. | |
4263 | if test "${enable_config+set}" = set; then | |
4264 | enableval="$enable_config" | |
4265 | ||
4266 | if test "$enableval" = yes; then | |
4267 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
4268 | else | |
4269 | ac_cv_use_config='wxUSE_CONFIG=no' | |
4270 | fi | |
4271 | ||
4272 | else | |
4273 | ||
4274 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` | |
4275 | if test "x$LINE" != x ; then | |
4276 | eval "DEFAULT_$LINE" | |
4277 | else | |
4278 | no_cache=1 | |
4279 | fi | |
4280 | ||
4281 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
4282 | ||
4283 | fi; | |
4284 | ||
4285 | eval "$ac_cv_use_config" | |
4286 | if test "$no_cache" != 1; then | |
4287 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
4288 | fi | |
4289 | ||
4290 | if test "$wxUSE_CONFIG" = yes; then | |
4291 | echo "$as_me:$LINENO: result: yes" >&5 | |
4292 | echo "${ECHO_T}yes" >&6 | |
4293 | else | |
4294 | echo "$as_me:$LINENO: result: no" >&5 | |
4295 | echo "${ECHO_T}no" >&6 | |
4296 | fi | |
4297 | ||
4298 | ||
4299 | ||
4300 | enablestring= | |
4301 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5 | |
4302 | echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6 | |
4303 | no_cache=0 | |
4304 | # Check whether --enable-protocols or --disable-protocols was given. | |
4305 | if test "${enable_protocols+set}" = set; then | |
4306 | enableval="$enable_protocols" | |
4307 | ||
4308 | if test "$enableval" = yes; then | |
4309 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
4310 | else | |
4311 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
4312 | fi | |
4313 | ||
4314 | else | |
4315 | ||
4316 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
4317 | if test "x$LINE" != x ; then | |
4318 | eval "DEFAULT_$LINE" | |
4319 | else | |
4320 | no_cache=1 | |
4321 | fi | |
4322 | ||
4323 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4324 | ||
4325 | fi; | |
4326 | ||
4327 | eval "$ac_cv_use_protocols" | |
4328 | if test "$no_cache" != 1; then | |
4329 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
4330 | fi | |
4331 | ||
4332 | if test "$wxUSE_PROTOCOL" = yes; then | |
4333 | echo "$as_me:$LINENO: result: yes" >&5 | |
4334 | echo "${ECHO_T}yes" >&6 | |
4335 | else | |
4336 | echo "$as_me:$LINENO: result: no" >&5 | |
4337 | echo "${ECHO_T}no" >&6 | |
4338 | fi | |
4339 | ||
4340 | ||
4341 | enablestring= | |
4342 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5 | |
4343 | echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6 | |
4344 | no_cache=0 | |
4345 | # Check whether --enable-ftp or --disable-ftp was given. | |
4346 | if test "${enable_ftp+set}" = set; then | |
4347 | enableval="$enable_ftp" | |
4348 | ||
4349 | if test "$enableval" = yes; then | |
4350 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4351 | else | |
4352 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
4353 | fi | |
4354 | ||
4355 | else | |
4356 | ||
4357 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
4358 | if test "x$LINE" != x ; then | |
4359 | eval "DEFAULT_$LINE" | |
4360 | else | |
4361 | no_cache=1 | |
4362 | fi | |
4363 | ||
4364 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4365 | ||
4366 | fi; | |
4367 | ||
4368 | eval "$ac_cv_use_ftp" | |
4369 | if test "$no_cache" != 1; then | |
4370 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
4371 | fi | |
4372 | ||
4373 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
4374 | echo "$as_me:$LINENO: result: yes" >&5 | |
4375 | echo "${ECHO_T}yes" >&6 | |
4376 | else | |
4377 | echo "$as_me:$LINENO: result: no" >&5 | |
4378 | echo "${ECHO_T}no" >&6 | |
4379 | fi | |
4380 | ||
4381 | ||
4382 | enablestring= | |
4383 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5 | |
4384 | echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6 | |
4385 | no_cache=0 | |
4386 | # Check whether --enable-http or --disable-http was given. | |
4387 | if test "${enable_http+set}" = set; then | |
4388 | enableval="$enable_http" | |
4389 | ||
4390 | if test "$enableval" = yes; then | |
4391 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
4392 | else | |
4393 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
4394 | fi | |
4395 | ||
4396 | else | |
4397 | ||
4398 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
4399 | if test "x$LINE" != x ; then | |
4400 | eval "DEFAULT_$LINE" | |
4401 | else | |
4402 | no_cache=1 | |
4403 | fi | |
4404 | ||
4405 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4406 | ||
4407 | fi; | |
4408 | ||
4409 | eval "$ac_cv_use_http" | |
4410 | if test "$no_cache" != 1; then | |
4411 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
4412 | fi | |
4413 | ||
4414 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
4415 | echo "$as_me:$LINENO: result: yes" >&5 | |
4416 | echo "${ECHO_T}yes" >&6 | |
4417 | else | |
4418 | echo "$as_me:$LINENO: result: no" >&5 | |
4419 | echo "${ECHO_T}no" >&6 | |
4420 | fi | |
4421 | ||
4422 | ||
4423 | enablestring= | |
4424 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5 | |
4425 | echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6 | |
4426 | no_cache=0 | |
4427 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
4428 | if test "${enable_fileproto+set}" = set; then | |
4429 | enableval="$enable_fileproto" | |
4430 | ||
4431 | if test "$enableval" = yes; then | |
4432 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
4433 | else | |
4434 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
4435 | fi | |
4436 | ||
4437 | else | |
4438 | ||
4439 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
4440 | if test "x$LINE" != x ; then | |
4441 | eval "DEFAULT_$LINE" | |
4442 | else | |
4443 | no_cache=1 | |
4444 | fi | |
4445 | ||
4446 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4447 | ||
4448 | fi; | |
4449 | ||
4450 | eval "$ac_cv_use_fileproto" | |
4451 | if test "$no_cache" != 1; then | |
4452 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
4453 | fi | |
4454 | ||
4455 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
4456 | echo "$as_me:$LINENO: result: yes" >&5 | |
4457 | echo "${ECHO_T}yes" >&6 | |
4458 | else | |
4459 | echo "$as_me:$LINENO: result: no" >&5 | |
4460 | echo "${ECHO_T}no" >&6 | |
4461 | fi | |
4462 | ||
4463 | ||
4464 | enablestring= | |
4465 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5 | |
4466 | echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6 | |
4467 | no_cache=0 | |
4468 | # Check whether --enable-sockets or --disable-sockets was given. | |
4469 | if test "${enable_sockets+set}" = set; then | |
4470 | enableval="$enable_sockets" | |
4471 | ||
4472 | if test "$enableval" = yes; then | |
4473 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
4474 | else | |
4475 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
4476 | fi | |
4477 | ||
4478 | else | |
4479 | ||
4480 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` | |
4481 | if test "x$LINE" != x ; then | |
4482 | eval "DEFAULT_$LINE" | |
4483 | else | |
4484 | no_cache=1 | |
4485 | fi | |
4486 | ||
4487 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
4488 | ||
4489 | fi; | |
4490 | ||
4491 | eval "$ac_cv_use_sockets" | |
4492 | if test "$no_cache" != 1; then | |
4493 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
4494 | fi | |
4495 | ||
4496 | if test "$wxUSE_SOCKETS" = yes; then | |
4497 | echo "$as_me:$LINENO: result: yes" >&5 | |
4498 | echo "${ECHO_T}yes" >&6 | |
4499 | else | |
4500 | echo "$as_me:$LINENO: result: no" >&5 | |
4501 | echo "${ECHO_T}no" >&6 | |
4502 | fi | |
4503 | ||
4504 | ||
4505 | enablestring= | |
4506 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5 | |
4507 | echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6 | |
4508 | no_cache=0 | |
4509 | # Check whether --enable-ole or --disable-ole was given. | |
4510 | if test "${enable_ole+set}" = set; then | |
4511 | enableval="$enable_ole" | |
4512 | ||
4513 | if test "$enableval" = yes; then | |
4514 | ac_cv_use_ole='wxUSE_OLE=yes' | |
4515 | else | |
4516 | ac_cv_use_ole='wxUSE_OLE=no' | |
4517 | fi | |
4518 | ||
4519 | else | |
4520 | ||
4521 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` | |
4522 | if test "x$LINE" != x ; then | |
4523 | eval "DEFAULT_$LINE" | |
4524 | else | |
4525 | no_cache=1 | |
4526 | fi | |
4527 | ||
4528 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
4529 | ||
4530 | fi; | |
4531 | ||
4532 | eval "$ac_cv_use_ole" | |
4533 | if test "$no_cache" != 1; then | |
4534 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
4535 | fi | |
4536 | ||
4537 | if test "$wxUSE_OLE" = yes; then | |
4538 | echo "$as_me:$LINENO: result: yes" >&5 | |
4539 | echo "${ECHO_T}yes" >&6 | |
4540 | else | |
4541 | echo "$as_me:$LINENO: result: no" >&5 | |
4542 | echo "${ECHO_T}no" >&6 | |
4543 | fi | |
4544 | ||
4545 | ||
4546 | enablestring= | |
4547 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5 | |
4548 | echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6 | |
4549 | no_cache=0 | |
4550 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
4551 | if test "${enable_dataobj+set}" = set; then | |
4552 | enableval="$enable_dataobj" | |
4553 | ||
4554 | if test "$enableval" = yes; then | |
4555 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
4556 | else | |
4557 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
4558 | fi | |
4559 | ||
4560 | else | |
4561 | ||
4562 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` | |
4563 | if test "x$LINE" != x ; then | |
4564 | eval "DEFAULT_$LINE" | |
4565 | else | |
4566 | no_cache=1 | |
4567 | fi | |
4568 | ||
4569 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
4570 | ||
4571 | fi; | |
4572 | ||
4573 | eval "$ac_cv_use_dataobj" | |
4574 | if test "$no_cache" != 1; then | |
4575 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
4576 | fi | |
4577 | ||
4578 | if test "$wxUSE_DATAOBJ" = yes; then | |
4579 | echo "$as_me:$LINENO: result: yes" >&5 | |
4580 | echo "${ECHO_T}yes" >&6 | |
4581 | else | |
4582 | echo "$as_me:$LINENO: result: no" >&5 | |
4583 | echo "${ECHO_T}no" >&6 | |
4584 | fi | |
4585 | ||
4586 | ||
4587 | ||
4588 | enablestring= | |
4589 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5 | |
4590 | echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6 | |
4591 | no_cache=0 | |
4592 | # Check whether --enable-ipc or --disable-ipc was given. | |
4593 | if test "${enable_ipc+set}" = set; then | |
4594 | enableval="$enable_ipc" | |
4595 | ||
4596 | if test "$enableval" = yes; then | |
4597 | ac_cv_use_ipc='wxUSE_IPC=yes' | |
4598 | else | |
4599 | ac_cv_use_ipc='wxUSE_IPC=no' | |
4600 | fi | |
4601 | ||
4602 | else | |
4603 | ||
4604 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` | |
4605 | if test "x$LINE" != x ; then | |
4606 | eval "DEFAULT_$LINE" | |
4607 | else | |
4608 | no_cache=1 | |
4609 | fi | |
4610 | ||
4611 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC | |
4612 | ||
4613 | fi; | |
4614 | ||
4615 | eval "$ac_cv_use_ipc" | |
4616 | if test "$no_cache" != 1; then | |
4617 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp | |
4618 | fi | |
4619 | ||
4620 | if test "$wxUSE_IPC" = yes; then | |
4621 | echo "$as_me:$LINENO: result: yes" >&5 | |
4622 | echo "${ECHO_T}yes" >&6 | |
4623 | else | |
4624 | echo "$as_me:$LINENO: result: no" >&5 | |
4625 | echo "${ECHO_T}no" >&6 | |
4626 | fi | |
4627 | ||
4628 | ||
4629 | ||
4630 | enablestring= | |
4631 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5 | |
4632 | echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6 | |
4633 | no_cache=0 | |
4634 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
4635 | if test "${enable_apple_ieee+set}" = set; then | |
4636 | enableval="$enable_apple_ieee" | |
4637 | ||
4638 | if test "$enableval" = yes; then | |
4639 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
4640 | else | |
4641 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
4642 | fi | |
4643 | ||
4644 | else | |
4645 | ||
4646 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` | |
4647 | if test "x$LINE" != x ; then | |
4648 | eval "DEFAULT_$LINE" | |
4649 | else | |
4650 | no_cache=1 | |
4651 | fi | |
4652 | ||
4653 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
4654 | ||
4655 | fi; | |
4656 | ||
4657 | eval "$ac_cv_use_apple_ieee" | |
4658 | if test "$no_cache" != 1; then | |
4659 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
4660 | fi | |
4661 | ||
4662 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
4663 | echo "$as_me:$LINENO: result: yes" >&5 | |
4664 | echo "${ECHO_T}yes" >&6 | |
4665 | else | |
4666 | echo "$as_me:$LINENO: result: no" >&5 | |
4667 | echo "${ECHO_T}no" >&6 | |
4668 | fi | |
4669 | ||
4670 | ||
81f90336 MW |
4671 | enablestring= |
4672 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5 | |
4673 | echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6 | |
4674 | no_cache=0 | |
4675 | # Check whether --enable-arcstream or --disable-arcstream was given. | |
4676 | if test "${enable_arcstream+set}" = set; then | |
4677 | enableval="$enable_arcstream" | |
4678 | ||
4679 | if test "$enableval" = yes; then | |
9e8e867f | 4680 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes' |
81f90336 | 4681 | else |
9e8e867f | 4682 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no' |
81f90336 MW |
4683 | fi |
4684 | ||
4685 | else | |
4686 | ||
9e8e867f | 4687 | LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}` |
81f90336 MW |
4688 | if test "x$LINE" != x ; then |
4689 | eval "DEFAULT_$LINE" | |
4690 | else | |
4691 | no_cache=1 | |
4692 | fi | |
4693 | ||
9e8e867f | 4694 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS |
81f90336 MW |
4695 | |
4696 | fi; | |
4697 | ||
4698 | eval "$ac_cv_use_arcstream" | |
4699 | if test "$no_cache" != 1; then | |
4700 | echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp | |
4701 | fi | |
4702 | ||
9e8e867f | 4703 | if test "$wxUSE_ARCHIVE_STREAMS" = yes; then |
81f90336 MW |
4704 | echo "$as_me:$LINENO: result: yes" >&5 |
4705 | echo "${ECHO_T}yes" >&6 | |
4706 | else | |
4707 | echo "$as_me:$LINENO: result: no" >&5 | |
4708 | echo "${ECHO_T}no" >&6 | |
4709 | fi | |
4710 | ||
4711 | ||
a848cd7e SC |
4712 | enablestring= |
4713 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5 | |
4714 | echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6 | |
4715 | no_cache=0 | |
4716 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4717 | if test "${enable_catch_segvs+set}" = set; then | |
4718 | enableval="$enable_catch_segvs" | |
4719 | ||
4720 | if test "$enableval" = yes; then | |
4721 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4722 | else | |
4723 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4724 | fi | |
4725 | ||
4726 | else | |
4727 | ||
4728 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` | |
4729 | if test "x$LINE" != x ; then | |
4730 | eval "DEFAULT_$LINE" | |
4731 | else | |
4732 | no_cache=1 | |
4733 | fi | |
4734 | ||
4735 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
4736 | ||
4737 | fi; | |
4738 | ||
4739 | eval "$ac_cv_use_catch_segvs" | |
4740 | if test "$no_cache" != 1; then | |
4741 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4742 | fi | |
4743 | ||
4744 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
4745 | echo "$as_me:$LINENO: result: yes" >&5 | |
4746 | echo "${ECHO_T}yes" >&6 | |
4747 | else | |
4748 | echo "$as_me:$LINENO: result: no" >&5 | |
4749 | echo "${ECHO_T}no" >&6 | |
4750 | fi | |
4751 | ||
4752 | ||
eaff0f0d VZ |
4753 | enablestring= |
4754 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5 | |
4755 | echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6 | |
4756 | no_cache=0 | |
4757 | # Check whether --enable-backtrace or --disable-backtrace was given. | |
4758 | if test "${enable_backtrace+set}" = set; then | |
4759 | enableval="$enable_backtrace" | |
4760 | ||
4761 | if test "$enableval" = yes; then | |
4762 | ac_cv_use_backtrace='wxUSE_STACKWALKER=yes' | |
4763 | else | |
4764 | ac_cv_use_backtrace='wxUSE_STACKWALKER=no' | |
4765 | fi | |
4766 | ||
4767 | else | |
4768 | ||
4769 | LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}` | |
4770 | if test "x$LINE" != x ; then | |
4771 | eval "DEFAULT_$LINE" | |
4772 | else | |
4773 | no_cache=1 | |
4774 | fi | |
4775 | ||
4776 | ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER | |
4777 | ||
4778 | fi; | |
4779 | ||
4780 | eval "$ac_cv_use_backtrace" | |
4781 | if test "$no_cache" != 1; then | |
4782 | echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp | |
4783 | fi | |
4784 | ||
4785 | if test "$wxUSE_STACKWALKER" = yes; then | |
4786 | echo "$as_me:$LINENO: result: yes" >&5 | |
4787 | echo "${ECHO_T}yes" >&6 | |
4788 | else | |
4789 | echo "$as_me:$LINENO: result: no" >&5 | |
4790 | echo "${ECHO_T}no" >&6 | |
4791 | fi | |
4792 | ||
4793 | ||
a848cd7e SC |
4794 | enablestring= |
4795 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5 | |
4796 | echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6 | |
4797 | no_cache=0 | |
4798 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
4799 | if test "${enable_cmdline+set}" = set; then | |
4800 | enableval="$enable_cmdline" | |
4801 | ||
4802 | if test "$enableval" = yes; then | |
4803 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
4804 | else | |
4805 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
4806 | fi | |
4807 | ||
4808 | else | |
4809 | ||
4810 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
4811 | if test "x$LINE" != x ; then | |
4812 | eval "DEFAULT_$LINE" | |
4813 | else | |
4814 | no_cache=1 | |
4815 | fi | |
4816 | ||
4817 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
4818 | ||
4819 | fi; | |
4820 | ||
4821 | eval "$ac_cv_use_cmdline" | |
4822 | if test "$no_cache" != 1; then | |
4823 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
4824 | fi | |
4825 | ||
4826 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
4827 | echo "$as_me:$LINENO: result: yes" >&5 | |
4828 | echo "${ECHO_T}yes" >&6 | |
4829 | else | |
4830 | echo "$as_me:$LINENO: result: no" >&5 | |
4831 | echo "${ECHO_T}no" >&6 | |
4832 | fi | |
4833 | ||
4834 | ||
4835 | enablestring= | |
4836 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5 | |
4837 | echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6 | |
4838 | no_cache=0 | |
4839 | # Check whether --enable-datetime or --disable-datetime was given. | |
4840 | if test "${enable_datetime+set}" = set; then | |
4841 | enableval="$enable_datetime" | |
4842 | ||
4843 | if test "$enableval" = yes; then | |
4844 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
4845 | else | |
4846 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
4847 | fi | |
4848 | ||
4849 | else | |
4850 | ||
4851 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
4852 | if test "x$LINE" != x ; then | |
4853 | eval "DEFAULT_$LINE" | |
4854 | else | |
4855 | no_cache=1 | |
4856 | fi | |
4857 | ||
4858 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
4859 | ||
4860 | fi; | |
4861 | ||
4862 | eval "$ac_cv_use_datetime" | |
4863 | if test "$no_cache" != 1; then | |
4864 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
4865 | fi | |
4866 | ||
4867 | if test "$wxUSE_DATETIME" = yes; then | |
4868 | echo "$as_me:$LINENO: result: yes" >&5 | |
4869 | echo "${ECHO_T}yes" >&6 | |
4870 | else | |
4871 | echo "$as_me:$LINENO: result: no" >&5 | |
4872 | echo "${ECHO_T}no" >&6 | |
4873 | fi | |
4874 | ||
4875 | ||
4876 | enablestring= | |
4877 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5 | |
4878 | echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6 | |
4879 | no_cache=0 | |
4880 | # Check whether --enable-dialupman or --disable-dialupman was given. | |
4881 | if test "${enable_dialupman+set}" = set; then | |
4882 | enableval="$enable_dialupman" | |
4883 | ||
4884 | if test "$enableval" = yes; then | |
4885 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' | |
4886 | else | |
4887 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' | |
4888 | fi | |
4889 | ||
4890 | else | |
4891 | ||
4892 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` | |
4893 | if test "x$LINE" != x ; then | |
4894 | eval "DEFAULT_$LINE" | |
4895 | else | |
4896 | no_cache=1 | |
4897 | fi | |
4898 | ||
4899 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER | |
4900 | ||
4901 | fi; | |
4902 | ||
4903 | eval "$ac_cv_use_dialupman" | |
4904 | if test "$no_cache" != 1; then | |
4905 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp | |
4906 | fi | |
4907 | ||
4908 | if test "$wxUSE_DIALUP_MANAGER" = yes; then | |
4909 | echo "$as_me:$LINENO: result: yes" >&5 | |
4910 | echo "${ECHO_T}yes" >&6 | |
4911 | else | |
4912 | echo "$as_me:$LINENO: result: no" >&5 | |
4913 | echo "${ECHO_T}no" >&6 | |
4914 | fi | |
4915 | ||
4916 | ||
4917 | enablestring= | |
4918 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5 | |
4919 | echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6 | |
4920 | no_cache=0 | |
4921 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
4922 | if test "${enable_dynlib+set}" = set; then | |
4923 | enableval="$enable_dynlib" | |
4924 | ||
4925 | if test "$enableval" = yes; then | |
4926 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
4927 | else | |
4928 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
4929 | fi | |
4930 | ||
4931 | else | |
4932 | ||
4933 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` | |
4934 | if test "x$LINE" != x ; then | |
4935 | eval "DEFAULT_$LINE" | |
4936 | else | |
4937 | no_cache=1 | |
4938 | fi | |
4939 | ||
4940 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
4941 | ||
4942 | fi; | |
4943 | ||
4944 | eval "$ac_cv_use_dynlib" | |
4945 | if test "$no_cache" != 1; then | |
4946 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
4947 | fi | |
4948 | ||
4949 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
4950 | echo "$as_me:$LINENO: result: yes" >&5 | |
4951 | echo "${ECHO_T}yes" >&6 | |
4952 | else | |
4953 | echo "$as_me:$LINENO: result: no" >&5 | |
4954 | echo "${ECHO_T}no" >&6 | |
4955 | fi | |
4956 | ||
4957 | ||
4958 | enablestring= | |
4959 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5 | |
4960 | echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6 | |
4961 | no_cache=0 | |
4962 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
4963 | if test "${enable_dynamicloader+set}" = set; then | |
4964 | enableval="$enable_dynamicloader" | |
4965 | ||
4966 | if test "$enableval" = yes; then | |
4967 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
4968 | else | |
4969 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
4970 | fi | |
4971 | ||
4972 | else | |
4973 | ||
4974 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` | |
4975 | if test "x$LINE" != x ; then | |
4976 | eval "DEFAULT_$LINE" | |
4977 | else | |
4978 | no_cache=1 | |
4979 | fi | |
4980 | ||
4981 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
4982 | ||
4983 | fi; | |
4984 | ||
4985 | eval "$ac_cv_use_dynamicloader" | |
4986 | if test "$no_cache" != 1; then | |
4987 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
4988 | fi | |
4989 | ||
4990 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
4991 | echo "$as_me:$LINENO: result: yes" >&5 | |
4992 | echo "${ECHO_T}yes" >&6 | |
4993 | else | |
4994 | echo "$as_me:$LINENO: result: no" >&5 | |
4995 | echo "${ECHO_T}no" >&6 | |
4996 | fi | |
4997 | ||
4998 | ||
4999 | enablestring= | |
5000 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5 | |
5001 | echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6 | |
5002 | no_cache=0 | |
5003 | # Check whether --enable-exceptions or --disable-exceptions was given. | |
5004 | if test "${enable_exceptions+set}" = set; then | |
5005 | enableval="$enable_exceptions" | |
5006 | ||
5007 | if test "$enableval" = yes; then | |
5008 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes' | |
5009 | else | |
5010 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no' | |
5011 | fi | |
5012 | ||
5013 | else | |
5014 | ||
5015 | LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}` | |
5016 | if test "x$LINE" != x ; then | |
5017 | eval "DEFAULT_$LINE" | |
5018 | else | |
5019 | no_cache=1 | |
5020 | fi | |
5021 | ||
5022 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS | |
5023 | ||
5024 | fi; | |
5025 | ||
5026 | eval "$ac_cv_use_exceptions" | |
5027 | if test "$no_cache" != 1; then | |
5028 | echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp | |
5029 | fi | |
5030 | ||
5031 | if test "$wxUSE_EXCEPTIONS" = yes; then | |
5032 | echo "$as_me:$LINENO: result: yes" >&5 | |
5033 | echo "${ECHO_T}yes" >&6 | |
5034 | else | |
5035 | echo "$as_me:$LINENO: result: no" >&5 | |
5036 | echo "${ECHO_T}no" >&6 | |
5037 | fi | |
5038 | ||
5039 | ||
5040 | enablestring= | |
5041 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5 | |
5042 | echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6 | |
5043 | no_cache=0 | |
5044 | # Check whether --enable-ffile or --disable-ffile was given. | |
5045 | if test "${enable_ffile+set}" = set; then | |
5046 | enableval="$enable_ffile" | |
5047 | ||
5048 | if test "$enableval" = yes; then | |
5049 | ac_cv_use_ffile='wxUSE_FFILE=yes' | |
5050 | else | |
5051 | ac_cv_use_ffile='wxUSE_FFILE=no' | |
5052 | fi | |
5053 | ||
5054 | else | |
5055 | ||
5056 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` | |
5057 | if test "x$LINE" != x ; then | |
5058 | eval "DEFAULT_$LINE" | |
5059 | else | |
5060 | no_cache=1 | |
5061 | fi | |
5062 | ||
5063 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE | |
5064 | ||
5065 | fi; | |
5066 | ||
5067 | eval "$ac_cv_use_ffile" | |
5068 | if test "$no_cache" != 1; then | |
5069 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp | |
5070 | fi | |
5071 | ||
5072 | if test "$wxUSE_FFILE" = yes; then | |
5073 | echo "$as_me:$LINENO: result: yes" >&5 | |
5074 | echo "${ECHO_T}yes" >&6 | |
5075 | else | |
5076 | echo "$as_me:$LINENO: result: no" >&5 | |
5077 | echo "${ECHO_T}no" >&6 | |
5078 | fi | |
5079 | ||
5080 | ||
5081 | enablestring= | |
5082 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5 | |
5083 | echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6 | |
5084 | no_cache=0 | |
5085 | # Check whether --enable-file or --disable-file was given. | |
5086 | if test "${enable_file+set}" = set; then | |
5087 | enableval="$enable_file" | |
5088 | ||
5089 | if test "$enableval" = yes; then | |
5090 | ac_cv_use_file='wxUSE_FILE=yes' | |
5091 | else | |
5092 | ac_cv_use_file='wxUSE_FILE=no' | |
5093 | fi | |
5094 | ||
5095 | else | |
5096 | ||
5097 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` | |
5098 | if test "x$LINE" != x ; then | |
5099 | eval "DEFAULT_$LINE" | |
5100 | else | |
5101 | no_cache=1 | |
5102 | fi | |
5103 | ||
5104 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
5105 | ||
5106 | fi; | |
5107 | ||
5108 | eval "$ac_cv_use_file" | |
5109 | if test "$no_cache" != 1; then | |
5110 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
5111 | fi | |
5112 | ||
5113 | if test "$wxUSE_FILE" = yes; then | |
5114 | echo "$as_me:$LINENO: result: yes" >&5 | |
5115 | echo "${ECHO_T}yes" >&6 | |
5116 | else | |
5117 | echo "$as_me:$LINENO: result: no" >&5 | |
5118 | echo "${ECHO_T}no" >&6 | |
5119 | fi | |
5120 | ||
5121 | ||
5122 | enablestring= | |
5123 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5 | |
5124 | echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6 | |
5125 | no_cache=0 | |
5126 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
5127 | if test "${enable_filesystem+set}" = set; then | |
5128 | enableval="$enable_filesystem" | |
5129 | ||
5130 | if test "$enableval" = yes; then | |
5131 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
5132 | else | |
5133 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
5134 | fi | |
5135 | ||
5136 | else | |
5137 | ||
5138 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` | |
5139 | if test "x$LINE" != x ; then | |
5140 | eval "DEFAULT_$LINE" | |
5141 | else | |
5142 | no_cache=1 | |
5143 | fi | |
5144 | ||
5145 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
5146 | ||
5147 | fi; | |
5148 | ||
5149 | eval "$ac_cv_use_filesystem" | |
5150 | if test "$no_cache" != 1; then | |
5151 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
5152 | fi | |
5153 | ||
5154 | if test "$wxUSE_FILESYSTEM" = yes; then | |
5155 | echo "$as_me:$LINENO: result: yes" >&5 | |
5156 | echo "${ECHO_T}yes" >&6 | |
5157 | else | |
5158 | echo "$as_me:$LINENO: result: no" >&5 | |
5159 | echo "${ECHO_T}no" >&6 | |
5160 | fi | |
5161 | ||
5162 | ||
5163 | enablestring= | |
5164 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5 | |
5165 | echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6 | |
5166 | no_cache=0 | |
5167 | # Check whether --enable-fontmap or --disable-fontmap was given. | |
5168 | if test "${enable_fontmap+set}" = set; then | |
5169 | enableval="$enable_fontmap" | |
5170 | ||
5171 | if test "$enableval" = yes; then | |
5172 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' | |
5173 | else | |
5174 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' | |
5175 | fi | |
5176 | ||
5177 | else | |
5178 | ||
5179 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` | |
5180 | if test "x$LINE" != x ; then | |
5181 | eval "DEFAULT_$LINE" | |
5182 | else | |
5183 | no_cache=1 | |
5184 | fi | |
5185 | ||
5186 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP | |
5187 | ||
5188 | fi; | |
5189 | ||
5190 | eval "$ac_cv_use_fontmap" | |
5191 | if test "$no_cache" != 1; then | |
5192 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp | |
5193 | fi | |
5194 | ||
5195 | if test "$wxUSE_FONTMAP" = yes; then | |
5196 | echo "$as_me:$LINENO: result: yes" >&5 | |
5197 | echo "${ECHO_T}yes" >&6 | |
5198 | else | |
5199 | echo "$as_me:$LINENO: result: no" >&5 | |
5200 | echo "${ECHO_T}no" >&6 | |
5201 | fi | |
5202 | ||
5203 | ||
5204 | enablestring= | |
5205 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5 | |
5206 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6 | |
5207 | no_cache=0 | |
5208 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
5209 | if test "${enable_fs_inet+set}" = set; then | |
5210 | enableval="$enable_fs_inet" | |
5211 | ||
5212 | if test "$enableval" = yes; then | |
5213 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
5214 | else | |
5215 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
5216 | fi | |
5217 | ||
5218 | else | |
5219 | ||
5220 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` | |
5221 | if test "x$LINE" != x ; then | |
5222 | eval "DEFAULT_$LINE" | |
5223 | else | |
5224 | no_cache=1 | |
5225 | fi | |
5226 | ||
5227 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
5228 | ||
5229 | fi; | |
5230 | ||
5231 | eval "$ac_cv_use_fs_inet" | |
5232 | if test "$no_cache" != 1; then | |
5233 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
5234 | fi | |
5235 | ||
5236 | if test "$wxUSE_FS_INET" = yes; then | |
5237 | echo "$as_me:$LINENO: result: yes" >&5 | |
5238 | echo "${ECHO_T}yes" >&6 | |
5239 | else | |
5240 | echo "$as_me:$LINENO: result: no" >&5 | |
5241 | echo "${ECHO_T}no" >&6 | |
5242 | fi | |
5243 | ||
5244 | ||
5245 | enablestring= | |
5246 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5 | |
5247 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6 | |
5248 | no_cache=0 | |
5249 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
5250 | if test "${enable_fs_zip+set}" = set; then | |
5251 | enableval="$enable_fs_zip" | |
5252 | ||
5253 | if test "$enableval" = yes; then | |
5254 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
5255 | else | |
5256 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
5257 | fi | |
5258 | ||
5259 | else | |
5260 | ||
5261 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` | |
5262 | if test "x$LINE" != x ; then | |
5263 | eval "DEFAULT_$LINE" | |
5264 | else | |
5265 | no_cache=1 | |
5266 | fi | |
5267 | ||
5268 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
5269 | ||
5270 | fi; | |
5271 | ||
5272 | eval "$ac_cv_use_fs_zip" | |
5273 | if test "$no_cache" != 1; then | |
5274 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
5275 | fi | |
5276 | ||
5277 | if test "$wxUSE_FS_ZIP" = yes; then | |
5278 | echo "$as_me:$LINENO: result: yes" >&5 | |
5279 | echo "${ECHO_T}yes" >&6 | |
5280 | else | |
5281 | echo "$as_me:$LINENO: result: no" >&5 | |
5282 | echo "${ECHO_T}no" >&6 | |
5283 | fi | |
5284 | ||
5285 | ||
5286 | enablestring= | |
5287 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5 | |
5288 | echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6 | |
5289 | no_cache=0 | |
5290 | # Check whether --enable-geometry or --disable-geometry was given. | |
5291 | if test "${enable_geometry+set}" = set; then | |
5292 | enableval="$enable_geometry" | |
5293 | ||
5294 | if test "$enableval" = yes; then | |
5295 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
5296 | else | |
5297 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
5298 | fi | |
5299 | ||
5300 | else | |
5301 | ||
5302 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` | |
5303 | if test "x$LINE" != x ; then | |
5304 | eval "DEFAULT_$LINE" | |
5305 | else | |
5306 | no_cache=1 | |
5307 | fi | |
5308 | ||
5309 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
5310 | ||
5311 | fi; | |
5312 | ||
5313 | eval "$ac_cv_use_geometry" | |
5314 | if test "$no_cache" != 1; then | |
5315 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
5316 | fi | |
5317 | ||
5318 | if test "$wxUSE_GEOMETRY" = yes; then | |
5319 | echo "$as_me:$LINENO: result: yes" >&5 | |
5320 | echo "${ECHO_T}yes" >&6 | |
5321 | else | |
5322 | echo "$as_me:$LINENO: result: no" >&5 | |
5323 | echo "${ECHO_T}no" >&6 | |
5324 | fi | |
5325 | ||
5326 | ||
5327 | enablestring= | |
5328 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5 | |
5329 | echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6 | |
5330 | no_cache=0 | |
5331 | # Check whether --enable-log or --disable-log was given. | |
5332 | if test "${enable_log+set}" = set; then | |
5333 | enableval="$enable_log" | |
5334 | ||
5335 | if test "$enableval" = yes; then | |
5336 | ac_cv_use_log='wxUSE_LOG=yes' | |
5337 | else | |
5338 | ac_cv_use_log='wxUSE_LOG=no' | |
5339 | fi | |
5340 | ||
5341 | else | |
5342 | ||
5343 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` | |
5344 | if test "x$LINE" != x ; then | |
5345 | eval "DEFAULT_$LINE" | |
5346 | else | |
5347 | no_cache=1 | |
5348 | fi | |
5349 | ||
5350 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
5351 | ||
5352 | fi; | |
5353 | ||
5354 | eval "$ac_cv_use_log" | |
5355 | if test "$no_cache" != 1; then | |
5356 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
5357 | fi | |
5358 | ||
5359 | if test "$wxUSE_LOG" = yes; then | |
5360 | echo "$as_me:$LINENO: result: yes" >&5 | |
5361 | echo "${ECHO_T}yes" >&6 | |
5362 | else | |
5363 | echo "$as_me:$LINENO: result: no" >&5 | |
5364 | echo "${ECHO_T}no" >&6 | |
5365 | fi | |
5366 | ||
5367 | ||
5368 | enablestring= | |
5369 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5 | |
5370 | echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6 | |
5371 | no_cache=0 | |
5372 | # Check whether --enable-longlong or --disable-longlong was given. | |
5373 | if test "${enable_longlong+set}" = set; then | |
5374 | enableval="$enable_longlong" | |
5375 | ||
5376 | if test "$enableval" = yes; then | |
5377 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
5378 | else | |
5379 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
5380 | fi | |
5381 | ||
5382 | else | |
5383 | ||
5384 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` | |
5385 | if test "x$LINE" != x ; then | |
5386 | eval "DEFAULT_$LINE" | |
5387 | else | |
5388 | no_cache=1 | |
5389 | fi | |
5390 | ||
5391 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
5392 | ||
5393 | fi; | |
5394 | ||
5395 | eval "$ac_cv_use_longlong" | |
5396 | if test "$no_cache" != 1; then | |
5397 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
5398 | fi | |
5399 | ||
5400 | if test "$wxUSE_LONGLONG" = yes; then | |
5401 | echo "$as_me:$LINENO: result: yes" >&5 | |
5402 | echo "${ECHO_T}yes" >&6 | |
5403 | else | |
5404 | echo "$as_me:$LINENO: result: no" >&5 | |
5405 | echo "${ECHO_T}no" >&6 | |
5406 | fi | |
5407 | ||
5408 | ||
5409 | enablestring= | |
5410 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5 | |
5411 | echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6 | |
5412 | no_cache=0 | |
5413 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
5414 | if test "${enable_mimetype+set}" = set; then | |
5415 | enableval="$enable_mimetype" | |
5416 | ||
5417 | if test "$enableval" = yes; then | |
5418 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
5419 | else | |
5420 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
5421 | fi | |
5422 | ||
5423 | else | |
5424 | ||
5425 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
5426 | if test "x$LINE" != x ; then | |
5427 | eval "DEFAULT_$LINE" | |
5428 | else | |
5429 | no_cache=1 | |
5430 | fi | |
5431 | ||
5432 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
5433 | ||
5434 | fi; | |
5435 | ||
5436 | eval "$ac_cv_use_mimetype" | |
5437 | if test "$no_cache" != 1; then | |
5438 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
5439 | fi | |
5440 | ||
5441 | if test "$wxUSE_MIMETYPE" = yes; then | |
5442 | echo "$as_me:$LINENO: result: yes" >&5 | |
5443 | echo "${ECHO_T}yes" >&6 | |
5444 | else | |
5445 | echo "$as_me:$LINENO: result: no" >&5 | |
5446 | echo "${ECHO_T}no" >&6 | |
5447 | fi | |
5448 | ||
5449 | ||
5450 | enablestring= | |
5451 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5 | |
5452 | echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6 | |
5453 | no_cache=0 | |
5454 | # Check whether --enable-mslu or --disable-mslu was given. | |
5455 | if test "${enable_mslu+set}" = set; then | |
5456 | enableval="$enable_mslu" | |
5457 | ||
5458 | if test "$enableval" = yes; then | |
5459 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
5460 | else | |
5461 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
5462 | fi | |
5463 | ||
5464 | else | |
5465 | ||
5466 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` | |
5467 | if test "x$LINE" != x ; then | |
5468 | eval "DEFAULT_$LINE" | |
5469 | else | |
5470 | no_cache=1 | |
5471 | fi | |
5472 | ||
5473 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
5474 | ||
5475 | fi; | |
5476 | ||
5477 | eval "$ac_cv_use_mslu" | |
5478 | if test "$no_cache" != 1; then | |
5479 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
5480 | fi | |
5481 | ||
5482 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
5483 | echo "$as_me:$LINENO: result: yes" >&5 | |
5484 | echo "${ECHO_T}yes" >&6 | |
5485 | else | |
5486 | echo "$as_me:$LINENO: result: no" >&5 | |
5487 | echo "${ECHO_T}no" >&6 | |
5488 | fi | |
5489 | ||
5490 | ||
5491 | enablestring= | |
5492 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5 | |
5493 | echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6 | |
5494 | no_cache=0 | |
5495 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
5496 | if test "${enable_snglinst+set}" = set; then | |
5497 | enableval="$enable_snglinst" | |
5498 | ||
5499 | if test "$enableval" = yes; then | |
5500 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
5501 | else | |
5502 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
5503 | fi | |
5504 | ||
5505 | else | |
5506 | ||
5507 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` | |
5508 | if test "x$LINE" != x ; then | |
5509 | eval "DEFAULT_$LINE" | |
5510 | else | |
5511 | no_cache=1 | |
5512 | fi | |
5513 | ||
5514 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
5515 | ||
5516 | fi; | |
5517 | ||
5518 | eval "$ac_cv_use_snglinst" | |
5519 | if test "$no_cache" != 1; then | |
5520 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
5521 | fi | |
5522 | ||
5523 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
5524 | echo "$as_me:$LINENO: result: yes" >&5 | |
5525 | echo "${ECHO_T}yes" >&6 | |
5526 | else | |
5527 | echo "$as_me:$LINENO: result: no" >&5 | |
5528 | echo "${ECHO_T}no" >&6 | |
5529 | fi | |
5530 | ||
5531 | ||
5532 | enablestring= | |
5533 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5 | |
5534 | echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6 | |
5535 | no_cache=0 | |
5536 | # Check whether --enable-streams or --disable-streams was given. | |
5537 | if test "${enable_streams+set}" = set; then | |
5538 | enableval="$enable_streams" | |
5539 | ||
5540 | if test "$enableval" = yes; then | |
5541 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
5542 | else | |
5543 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
5544 | fi | |
5545 | ||
5546 | else | |
5547 | ||
5548 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
5549 | if test "x$LINE" != x ; then | |
5550 | eval "DEFAULT_$LINE" | |
5551 | else | |
5552 | no_cache=1 | |
5553 | fi | |
5554 | ||
5555 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
5556 | ||
5557 | fi; | |
5558 | ||
5559 | eval "$ac_cv_use_streams" | |
5560 | if test "$no_cache" != 1; then | |
5561 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
5562 | fi | |
5563 | ||
5564 | if test "$wxUSE_STREAMS" = yes; then | |
5565 | echo "$as_me:$LINENO: result: yes" >&5 | |
5566 | echo "${ECHO_T}yes" >&6 | |
5567 | else | |
5568 | echo "$as_me:$LINENO: result: no" >&5 | |
5569 | echo "${ECHO_T}no" >&6 | |
5570 | fi | |
5571 | ||
5572 | ||
5573 | enablestring= | |
5574 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5 | |
5575 | echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6 | |
5576 | no_cache=0 | |
5577 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
5578 | if test "${enable_std_iostreams+set}" = set; then | |
5579 | enableval="$enable_std_iostreams" | |
5580 | ||
5581 | if test "$enableval" = yes; then | |
5582 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
5583 | else | |
5584 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
5585 | fi | |
5586 | ||
5587 | else | |
5588 | ||
5589 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` | |
5590 | if test "x$LINE" != x ; then | |
5591 | eval "DEFAULT_$LINE" | |
5592 | else | |
5593 | no_cache=1 | |
5594 | fi | |
5595 | ||
5596 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
5597 | ||
5598 | fi; | |
5599 | ||
5600 | eval "$ac_cv_use_std_iostreams" | |
5601 | if test "$no_cache" != 1; then | |
5602 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
5603 | fi | |
5604 | ||
5605 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
5606 | echo "$as_me:$LINENO: result: yes" >&5 | |
5607 | echo "${ECHO_T}yes" >&6 | |
5608 | else | |
5609 | echo "$as_me:$LINENO: result: no" >&5 | |
5610 | echo "${ECHO_T}no" >&6 | |
5611 | fi | |
5612 | ||
5613 | ||
5614 | enablestring= | |
5615 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5 | |
5616 | echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6 | |
5617 | no_cache=0 | |
5618 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
5619 | if test "${enable_stopwatch+set}" = set; then | |
5620 | enableval="$enable_stopwatch" | |
5621 | ||
5622 | if test "$enableval" = yes; then | |
5623 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
5624 | else | |
5625 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
5626 | fi | |
5627 | ||
5628 | else | |
5629 | ||
5630 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
5631 | if test "x$LINE" != x ; then | |
5632 | eval "DEFAULT_$LINE" | |
5633 | else | |
5634 | no_cache=1 | |
5635 | fi | |
5636 | ||
5637 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
5638 | ||
5639 | fi; | |
5640 | ||
5641 | eval "$ac_cv_use_stopwatch" | |
5642 | if test "$no_cache" != 1; then | |
5643 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
5644 | fi | |
5645 | ||
5646 | if test "$wxUSE_STOPWATCH" = yes; then | |
5647 | echo "$as_me:$LINENO: result: yes" >&5 | |
5648 | echo "${ECHO_T}yes" >&6 | |
5649 | else | |
5650 | echo "$as_me:$LINENO: result: no" >&5 | |
5651 | echo "${ECHO_T}no" >&6 | |
5652 | fi | |
5653 | ||
5654 | ||
5655 | enablestring= | |
5656 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5 | |
5657 | echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6 | |
5658 | no_cache=0 | |
5659 | # Check whether --enable-system_options or --disable-system_options was given. | |
5660 | if test "${enable_system_options+set}" = set; then | |
5661 | enableval="$enable_system_options" | |
5662 | ||
5663 | if test "$enableval" = yes; then | |
5664 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
5665 | else | |
5666 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
5667 | fi | |
5668 | ||
5669 | else | |
5670 | ||
5671 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
5672 | if test "x$LINE" != x ; then | |
5673 | eval "DEFAULT_$LINE" | |
5674 | else | |
5675 | no_cache=1 | |
5676 | fi | |
5677 | ||
5678 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
5679 | ||
5680 | fi; | |
5681 | ||
5682 | eval "$ac_cv_use_system_options" | |
5683 | if test "$no_cache" != 1; then | |
5684 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
5685 | fi | |
5686 | ||
5687 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
5688 | echo "$as_me:$LINENO: result: yes" >&5 | |
5689 | echo "${ECHO_T}yes" >&6 | |
5690 | else | |
5691 | echo "$as_me:$LINENO: result: no" >&5 | |
5692 | echo "${ECHO_T}no" >&6 | |
5693 | fi | |
5694 | ||
5695 | ||
5696 | enablestring= | |
5697 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5 | |
5698 | echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6 | |
5699 | no_cache=0 | |
5700 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
5701 | if test "${enable_textbuf+set}" = set; then | |
5702 | enableval="$enable_textbuf" | |
5703 | ||
5704 | if test "$enableval" = yes; then | |
5705 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
5706 | else | |
5707 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
5708 | fi | |
5709 | ||
5710 | else | |
5711 | ||
5712 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` | |
5713 | if test "x$LINE" != x ; then | |
5714 | eval "DEFAULT_$LINE" | |
5715 | else | |
5716 | no_cache=1 | |
5717 | fi | |
5718 | ||
5719 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
5720 | ||
5721 | fi; | |
5722 | ||
5723 | eval "$ac_cv_use_textbuf" | |
5724 | if test "$no_cache" != 1; then | |
5725 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
5726 | fi | |
5727 | ||
5728 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
5729 | echo "$as_me:$LINENO: result: yes" >&5 | |
5730 | echo "${ECHO_T}yes" >&6 | |
5731 | else | |
5732 | echo "$as_me:$LINENO: result: no" >&5 | |
5733 | echo "${ECHO_T}no" >&6 | |
5734 | fi | |
5735 | ||
5736 | ||
5737 | enablestring= | |
5738 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5 | |
5739 | echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6 | |
5740 | no_cache=0 | |
5741 | # Check whether --enable-textfile or --disable-textfile was given. | |
5742 | if test "${enable_textfile+set}" = set; then | |
5743 | enableval="$enable_textfile" | |
5744 | ||
5745 | if test "$enableval" = yes; then | |
5746 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' | |
5747 | else | |
5748 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' | |
5749 | fi | |
5750 | ||
5751 | else | |
5752 | ||
5753 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` | |
5754 | if test "x$LINE" != x ; then | |
5755 | eval "DEFAULT_$LINE" | |
5756 | else | |
5757 | no_cache=1 | |
5758 | fi | |
5759 | ||
5760 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE | |
5761 | ||
5762 | fi; | |
5763 | ||
5764 | eval "$ac_cv_use_textfile" | |
5765 | if test "$no_cache" != 1; then | |
5766 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp | |
5767 | fi | |
5768 | ||
5769 | if test "$wxUSE_TEXTFILE" = yes; then | |
5770 | echo "$as_me:$LINENO: result: yes" >&5 | |
5771 | echo "${ECHO_T}yes" >&6 | |
5772 | else | |
5773 | echo "$as_me:$LINENO: result: no" >&5 | |
5774 | echo "${ECHO_T}no" >&6 | |
5775 | fi | |
5776 | ||
5777 | ||
5778 | enablestring= | |
5779 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5 | |
5780 | echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6 | |
5781 | no_cache=0 | |
5782 | # Check whether --enable-timer or --disable-timer was given. | |
5783 | if test "${enable_timer+set}" = set; then | |
5784 | enableval="$enable_timer" | |
5785 | ||
5786 | if test "$enableval" = yes; then | |
5787 | ac_cv_use_timer='wxUSE_TIMER=yes' | |
5788 | else | |
5789 | ac_cv_use_timer='wxUSE_TIMER=no' | |
5790 | fi | |
5791 | ||
5792 | else | |
5793 | ||
5794 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` | |
5795 | if test "x$LINE" != x ; then | |
5796 | eval "DEFAULT_$LINE" | |
5797 | else | |
5798 | no_cache=1 | |
5799 | fi | |
5800 | ||
5801 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER | |
5802 | ||
5803 | fi; | |
5804 | ||
5805 | eval "$ac_cv_use_timer" | |
5806 | if test "$no_cache" != 1; then | |
5807 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp | |
5808 | fi | |
5809 | ||
5810 | if test "$wxUSE_TIMER" = yes; then | |
5811 | echo "$as_me:$LINENO: result: yes" >&5 | |
5812 | echo "${ECHO_T}yes" >&6 | |
5813 | else | |
5814 | echo "$as_me:$LINENO: result: no" >&5 | |
5815 | echo "${ECHO_T}no" >&6 | |
5816 | fi | |
5817 | ||
5818 | ||
5819 | enablestring= | |
5820 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5 | |
5821 | echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6 | |
5822 | no_cache=0 | |
5823 | # Check whether --enable-unicode or --disable-unicode was given. | |
5824 | if test "${enable_unicode+set}" = set; then | |
5825 | enableval="$enable_unicode" | |
5826 | ||
5827 | if test "$enableval" = yes; then | |
5828 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
5829 | else | |
5830 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
5831 | fi | |
5832 | ||
5833 | else | |
5834 | ||
5835 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
5836 | if test "x$LINE" != x ; then | |
5837 | eval "DEFAULT_$LINE" | |
5838 | else | |
5839 | no_cache=1 | |
5840 | fi | |
5841 | ||
5842 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
5843 | ||
5844 | fi; | |
5845 | ||
5846 | eval "$ac_cv_use_unicode" | |
5847 | if test "$no_cache" != 1; then | |
5848 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
5849 | fi | |
5850 | ||
5851 | if test "$wxUSE_UNICODE" = yes; then | |
5852 | echo "$as_me:$LINENO: result: yes" >&5 | |
5853 | echo "${ECHO_T}yes" >&6 | |
5854 | else | |
5855 | echo "$as_me:$LINENO: result: no" >&5 | |
5856 | echo "${ECHO_T}no" >&6 | |
5857 | fi | |
5858 | ||
5859 | ||
5860 | enablestring= | |
5861 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5 | |
5862 | echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6 | |
5863 | no_cache=0 | |
5864 | # Check whether --enable-sound or --disable-sound was given. | |
5865 | if test "${enable_sound+set}" = set; then | |
5866 | enableval="$enable_sound" | |
5867 | ||
5868 | if test "$enableval" = yes; then | |
5869 | ac_cv_use_sound='wxUSE_SOUND=yes' | |
5870 | else | |
5871 | ac_cv_use_sound='wxUSE_SOUND=no' | |
5872 | fi | |
5873 | ||
5874 | else | |
5875 | ||
5876 | LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}` | |
5877 | if test "x$LINE" != x ; then | |
5878 | eval "DEFAULT_$LINE" | |
5879 | else | |
5880 | no_cache=1 | |
5881 | fi | |
5882 | ||
5883 | ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND | |
5884 | ||
5885 | fi; | |
5886 | ||
5887 | eval "$ac_cv_use_sound" | |
5888 | if test "$no_cache" != 1; then | |
5889 | echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp | |
5890 | fi | |
5891 | ||
5892 | if test "$wxUSE_SOUND" = yes; then | |
5893 | echo "$as_me:$LINENO: result: yes" >&5 | |
5894 | echo "${ECHO_T}yes" >&6 | |
5895 | else | |
5896 | echo "$as_me:$LINENO: result: no" >&5 | |
5897 | echo "${ECHO_T}no" >&6 | |
5898 | fi | |
5899 | ||
5900 | ||
3b57de8b RL |
5901 | enablestring= |
5902 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5 | |
5903 | echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6 | |
5904 | no_cache=0 | |
5905 | # Check whether --enable-mediactrl or --disable-mediactrl was given. | |
5906 | if test "${enable_mediactrl+set}" = set; then | |
5907 | enableval="$enable_mediactrl" | |
5908 | ||
5909 | if test "$enableval" = yes; then | |
5910 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes' | |
5911 | else | |
5912 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no' | |
5913 | fi | |
5914 | ||
5915 | else | |
5916 | ||
5917 | LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}` | |
5918 | if test "x$LINE" != x ; then | |
5919 | eval "DEFAULT_$LINE" | |
5920 | else | |
5921 | no_cache=1 | |
5922 | fi | |
5923 | ||
5924 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL | |
5925 | ||
5926 | fi; | |
5927 | ||
5928 | eval "$ac_cv_use_mediactrl" | |
5929 | if test "$no_cache" != 1; then | |
5930 | echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp | |
5931 | fi | |
5932 | ||
5933 | if test "$wxUSE_MEDIACTRL" = yes; then | |
5934 | echo "$as_me:$LINENO: result: yes" >&5 | |
5935 | echo "${ECHO_T}yes" >&6 | |
5936 | else | |
5937 | echo "$as_me:$LINENO: result: no" >&5 | |
5938 | echo "${ECHO_T}no" >&6 | |
5939 | fi | |
5940 | ||
5941 | ||
a848cd7e SC |
5942 | enablestring= |
5943 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5 | |
5944 | echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6 | |
5945 | no_cache=0 | |
5946 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
5947 | if test "${enable_wxprintfv+set}" = set; then | |
5948 | enableval="$enable_wxprintfv" | |
5949 | ||
5950 | if test "$enableval" = yes; then | |
5951 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' | |
5952 | else | |
5953 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
5954 | fi | |
5955 | ||
5956 | else | |
5957 | ||
5958 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` | |
5959 | if test "x$LINE" != x ; then | |
5960 | eval "DEFAULT_$LINE" | |
5961 | else | |
5962 | no_cache=1 | |
5963 | fi | |
5964 | ||
5965 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
5966 | ||
5967 | fi; | |
5968 | ||
5969 | eval "$ac_cv_use_wxprintfv" | |
5970 | if test "$no_cache" != 1; then | |
5971 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
5972 | fi | |
5973 | ||
5974 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
5975 | echo "$as_me:$LINENO: result: yes" >&5 | |
5976 | echo "${ECHO_T}yes" >&6 | |
5977 | else | |
5978 | echo "$as_me:$LINENO: result: no" >&5 | |
5979 | echo "${ECHO_T}no" >&6 | |
5980 | fi | |
5981 | ||
5982 | ||
5983 | enablestring= | |
5984 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5 | |
5985 | echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6 | |
5986 | no_cache=0 | |
5987 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
5988 | if test "${enable_zipstream+set}" = set; then | |
5989 | enableval="$enable_zipstream" | |
5990 | ||
5991 | if test "$enableval" = yes; then | |
5992 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
5993 | else | |
5994 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
5995 | fi | |
5996 | ||
5997 | else | |
5998 | ||
5999 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` | |
6000 | if test "x$LINE" != x ; then | |
6001 | eval "DEFAULT_$LINE" | |
6002 | else | |
6003 | no_cache=1 | |
6004 | fi | |
6005 | ||
6006 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
6007 | ||
6008 | fi; | |
6009 | ||
6010 | eval "$ac_cv_use_zipstream" | |
6011 | if test "$no_cache" != 1; then | |
6012 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
6013 | fi | |
6014 | ||
6015 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
6016 | echo "$as_me:$LINENO: result: yes" >&5 | |
6017 | echo "${ECHO_T}yes" >&6 | |
6018 | else | |
6019 | echo "$as_me:$LINENO: result: no" >&5 | |
6020 | echo "${ECHO_T}no" >&6 | |
6021 | fi | |
6022 | ||
6023 | ||
a848cd7e SC |
6024 | |
6025 | enablestring= | |
6026 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5 | |
6027 | echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6 | |
6028 | no_cache=0 | |
6029 | # Check whether --enable-url or --disable-url was given. | |
6030 | if test "${enable_url+set}" = set; then | |
6031 | enableval="$enable_url" | |
6032 | ||
6033 | if test "$enableval" = yes; then | |
6034 | ac_cv_use_url='wxUSE_URL=yes' | |
6035 | else | |
6036 | ac_cv_use_url='wxUSE_URL=no' | |
6037 | fi | |
6038 | ||
6039 | else | |
6040 | ||
6041 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` | |
6042 | if test "x$LINE" != x ; then | |
6043 | eval "DEFAULT_$LINE" | |
6044 | else | |
6045 | no_cache=1 | |
6046 | fi | |
6047 | ||
6048 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
6049 | ||
6050 | fi; | |
6051 | ||
6052 | eval "$ac_cv_use_url" | |
6053 | if test "$no_cache" != 1; then | |
6054 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
6055 | fi | |
6056 | ||
6057 | if test "$wxUSE_URL" = yes; then | |
6058 | echo "$as_me:$LINENO: result: yes" >&5 | |
6059 | echo "${ECHO_T}yes" >&6 | |
6060 | else | |
6061 | echo "$as_me:$LINENO: result: no" >&5 | |
6062 | echo "${ECHO_T}no" >&6 | |
6063 | fi | |
6064 | ||
6065 | ||
6066 | enablestring= | |
6067 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5 | |
6068 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6 | |
6069 | no_cache=0 | |
6070 | # Check whether --enable-protocol or --disable-protocol was given. | |
6071 | if test "${enable_protocol+set}" = set; then | |
6072 | enableval="$enable_protocol" | |
6073 | ||
6074 | if test "$enableval" = yes; then | |
6075 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
6076 | else | |
6077 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
6078 | fi | |
6079 | ||
6080 | else | |
6081 | ||
6082 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
6083 | if test "x$LINE" != x ; then | |
6084 | eval "DEFAULT_$LINE" | |
6085 | else | |
6086 | no_cache=1 | |
6087 | fi | |
6088 | ||
6089 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
6090 | ||
6091 | fi; | |
6092 | ||
6093 | eval "$ac_cv_use_protocol" | |
6094 | if test "$no_cache" != 1; then | |
6095 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
6096 | fi | |
6097 | ||
6098 | if test "$wxUSE_PROTOCOL" = yes; then | |
6099 | echo "$as_me:$LINENO: result: yes" >&5 | |
6100 | echo "${ECHO_T}yes" >&6 | |
6101 | else | |
6102 | echo "$as_me:$LINENO: result: no" >&5 | |
6103 | echo "${ECHO_T}no" >&6 | |
6104 | fi | |
6105 | ||
6106 | ||
6107 | enablestring= | |
6108 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5 | |
6109 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6 | |
6110 | no_cache=0 | |
6111 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
6112 | if test "${enable_protocol_http+set}" = set; then | |
6113 | enableval="$enable_protocol_http" | |
6114 | ||
6115 | if test "$enableval" = yes; then | |
6116 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
6117 | else | |
6118 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
6119 | fi | |
6120 | ||
6121 | else | |
6122 | ||
6123 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
6124 | if test "x$LINE" != x ; then | |
6125 | eval "DEFAULT_$LINE" | |
6126 | else | |
6127 | no_cache=1 | |
6128 | fi | |
6129 | ||
6130 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
6131 | ||
6132 | fi; | |
6133 | ||
6134 | eval "$ac_cv_use_protocol_http" | |
6135 | if test "$no_cache" != 1; then | |
6136 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
6137 | fi | |
6138 | ||
6139 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
6140 | echo "$as_me:$LINENO: result: yes" >&5 | |
6141 | echo "${ECHO_T}yes" >&6 | |
6142 | else | |
6143 | echo "$as_me:$LINENO: result: no" >&5 | |
6144 | echo "${ECHO_T}no" >&6 | |
6145 | fi | |
6146 | ||
6147 | ||
6148 | enablestring= | |
6149 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5 | |
6150 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6 | |
6151 | no_cache=0 | |
6152 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
6153 | if test "${enable_protocol_ftp+set}" = set; then | |
6154 | enableval="$enable_protocol_ftp" | |
6155 | ||
6156 | if test "$enableval" = yes; then | |
6157 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
6158 | else | |
6159 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
6160 | fi | |
6161 | ||
6162 | else | |
6163 | ||
6164 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
6165 | if test "x$LINE" != x ; then | |
6166 | eval "DEFAULT_$LINE" | |
6167 | else | |
6168 | no_cache=1 | |
6169 | fi | |
6170 | ||
6171 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
6172 | ||
6173 | fi; | |
6174 | ||
6175 | eval "$ac_cv_use_protocol_ftp" | |
6176 | if test "$no_cache" != 1; then | |
6177 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
6178 | fi | |
6179 | ||
6180 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
6181 | echo "$as_me:$LINENO: result: yes" >&5 | |
6182 | echo "${ECHO_T}yes" >&6 | |
6183 | else | |
6184 | echo "$as_me:$LINENO: result: no" >&5 | |
6185 | echo "${ECHO_T}no" >&6 | |
6186 | fi | |
6187 | ||
6188 | ||
6189 | enablestring= | |
6190 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5 | |
6191 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6 | |
6192 | no_cache=0 | |
6193 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
6194 | if test "${enable_protocol_file+set}" = set; then | |
6195 | enableval="$enable_protocol_file" | |
6196 | ||
6197 | if test "$enableval" = yes; then | |
6198 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
6199 | else | |
6200 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
6201 | fi | |
6202 | ||
6203 | else | |
6204 | ||
6205 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
6206 | if test "x$LINE" != x ; then | |
6207 | eval "DEFAULT_$LINE" | |
6208 | else | |
6209 | no_cache=1 | |
6210 | fi | |
6211 | ||
6212 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
6213 | ||
6214 | fi; | |
6215 | ||
6216 | eval "$ac_cv_use_protocol_file" | |
6217 | if test "$no_cache" != 1; then | |
6218 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
6219 | fi | |
6220 | ||
6221 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
6222 | echo "$as_me:$LINENO: result: yes" >&5 | |
6223 | echo "${ECHO_T}yes" >&6 | |
6224 | else | |
6225 | echo "$as_me:$LINENO: result: no" >&5 | |
6226 | echo "${ECHO_T}no" >&6 | |
6227 | fi | |
6228 | ||
6229 | ||
6230 | ||
6231 | ||
6232 | ||
6233 | enablestring= | |
6234 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5 | |
6235 | echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6 | |
6236 | no_cache=0 | |
6237 | # Check whether --enable-threads or --disable-threads was given. | |
6238 | if test "${enable_threads+set}" = set; then | |
6239 | enableval="$enable_threads" | |
6240 | ||
6241 | if test "$enableval" = yes; then | |
6242 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
6243 | else | |
6244 | ac_cv_use_threads='wxUSE_THREADS=no' | |
6245 | fi | |
6246 | ||
6247 | else | |
6248 | ||
6249 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` | |
6250 | if test "x$LINE" != x ; then | |
6251 | eval "DEFAULT_$LINE" | |
6252 | else | |
6253 | no_cache=1 | |
6254 | fi | |
6255 | ||
6256 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
6257 | ||
6258 | fi; | |
6259 | ||
6260 | eval "$ac_cv_use_threads" | |
6261 | if test "$no_cache" != 1; then | |
6262 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
6263 | fi | |
6264 | ||
6265 | if test "$wxUSE_THREADS" = yes; then | |
6266 | echo "$as_me:$LINENO: result: yes" >&5 | |
6267 | echo "${ECHO_T}yes" >&6 | |
6268 | else | |
6269 | echo "$as_me:$LINENO: result: no" >&5 | |
6270 | echo "${ECHO_T}no" >&6 | |
6271 | fi | |
6272 | ||
6273 | ||
6274 | if test "$wxUSE_GUI" = "yes"; then | |
6275 | ||
6276 | ||
6277 | ||
6278 | enablestring= | |
6279 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5 | |
6280 | echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6 | |
6281 | no_cache=0 | |
6282 | # Check whether --enable-docview or --disable-docview was given. | |
6283 | if test "${enable_docview+set}" = set; then | |
6284 | enableval="$enable_docview" | |
6285 | ||
6286 | if test "$enableval" = yes; then | |
6287 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
6288 | else | |
6289 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
6290 | fi | |
6291 | ||
6292 | else | |
6293 | ||
6294 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` | |
6295 | if test "x$LINE" != x ; then | |
6296 | eval "DEFAULT_$LINE" | |
6297 | else | |
6298 | no_cache=1 | |
6299 | fi | |
6300 | ||
6301 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
6302 | ||
6303 | fi; | |
6304 | ||
6305 | eval "$ac_cv_use_docview" | |
6306 | if test "$no_cache" != 1; then | |
6307 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
6308 | fi | |
6309 | ||
6310 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
6311 | echo "$as_me:$LINENO: result: yes" >&5 | |
6312 | echo "${ECHO_T}yes" >&6 | |
6313 | else | |
6314 | echo "$as_me:$LINENO: result: no" >&5 | |
6315 | echo "${ECHO_T}no" >&6 | |
6316 | fi | |
6317 | ||
6318 | ||
6319 | enablestring= | |
6320 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5 | |
6321 | echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6 | |
6322 | no_cache=0 | |
6323 | # Check whether --enable-help or --disable-help was given. | |
6324 | if test "${enable_help+set}" = set; then | |
6325 | enableval="$enable_help" | |
6326 | ||
6327 | if test "$enableval" = yes; then | |
6328 | ac_cv_use_help='wxUSE_HELP=yes' | |
6329 | else | |
6330 | ac_cv_use_help='wxUSE_HELP=no' | |
6331 | fi | |
6332 | ||
6333 | else | |
6334 | ||
6335 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` | |
6336 | if test "x$LINE" != x ; then | |
6337 | eval "DEFAULT_$LINE" | |
6338 | else | |
6339 | no_cache=1 | |
6340 | fi | |
6341 | ||
6342 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
6343 | ||
6344 | fi; | |
6345 | ||
6346 | eval "$ac_cv_use_help" | |
6347 | if test "$no_cache" != 1; then | |
6348 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
6349 | fi | |
6350 | ||
6351 | if test "$wxUSE_HELP" = yes; then | |
6352 | echo "$as_me:$LINENO: result: yes" >&5 | |
6353 | echo "${ECHO_T}yes" >&6 | |
6354 | else | |
6355 | echo "$as_me:$LINENO: result: no" >&5 | |
6356 | echo "${ECHO_T}no" >&6 | |
6357 | fi | |
6358 | ||
6359 | ||
6360 | enablestring= | |
6361 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5 | |
6362 | echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6 | |
6363 | no_cache=0 | |
6364 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
6365 | if test "${enable_mshtmlhelp+set}" = set; then | |
6366 | enableval="$enable_mshtmlhelp" | |
6367 | ||
6368 | if test "$enableval" = yes; then | |
6369 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
6370 | else | |
6371 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
6372 | fi | |
6373 | ||
6374 | else | |
6375 | ||
6376 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
6377 | if test "x$LINE" != x ; then | |
6378 | eval "DEFAULT_$LINE" | |
6379 | else | |
6380 | no_cache=1 | |
6381 | fi | |
6382 | ||
6383 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
6384 | ||
6385 | fi; | |
6386 | ||
6387 | eval "$ac_cv_use_mshtmlhelp" | |
6388 | if test "$no_cache" != 1; then | |
6389 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
6390 | fi | |
6391 | ||
6392 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
6393 | echo "$as_me:$LINENO: result: yes" >&5 | |
6394 | echo "${ECHO_T}yes" >&6 | |
6395 | else | |
6396 | echo "$as_me:$LINENO: result: no" >&5 | |
6397 | echo "${ECHO_T}no" >&6 | |
6398 | fi | |
6399 | ||
6400 | ||
6401 | enablestring= | |
6402 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5 | |
6403 | echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6 | |
6404 | no_cache=0 | |
6405 | # Check whether --enable-html or --disable-html was given. | |
6406 | if test "${enable_html+set}" = set; then | |
6407 | enableval="$enable_html" | |
6408 | ||
6409 | if test "$enableval" = yes; then | |
6410 | ac_cv_use_html='wxUSE_HTML=yes' | |
6411 | else | |
6412 | ac_cv_use_html='wxUSE_HTML=no' | |
6413 | fi | |
6414 | ||
6415 | else | |
6416 | ||
6417 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
6418 | if test "x$LINE" != x ; then | |
6419 | eval "DEFAULT_$LINE" | |
6420 | else | |
6421 | no_cache=1 | |
6422 | fi | |
6423 | ||
6424 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
6425 | ||
6426 | fi; | |
6427 | ||
6428 | eval "$ac_cv_use_html" | |
6429 | if test "$no_cache" != 1; then | |
6430 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
6431 | fi | |
6432 | ||
6433 | if test "$wxUSE_HTML" = yes; then | |
6434 | echo "$as_me:$LINENO: result: yes" >&5 | |
6435 | echo "${ECHO_T}yes" >&6 | |
6436 | else | |
6437 | echo "$as_me:$LINENO: result: no" >&5 | |
6438 | echo "${ECHO_T}no" >&6 | |
6439 | fi | |
6440 | ||
6441 | ||
6442 | enablestring= | |
6443 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5 | |
6444 | echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6 | |
6445 | no_cache=0 | |
6446 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
6447 | if test "${enable_htmlhelp+set}" = set; then | |
6448 | enableval="$enable_htmlhelp" | |
6449 | ||
6450 | if test "$enableval" = yes; then | |
6451 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
6452 | else | |
6453 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
6454 | fi | |
6455 | ||
6456 | else | |
6457 | ||
6458 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
6459 | if test "x$LINE" != x ; then | |
6460 | eval "DEFAULT_$LINE" | |
6461 | else | |
6462 | no_cache=1 | |
6463 | fi | |
6464 | ||
6465 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
6466 | ||
6467 | fi; | |
6468 | ||
6469 | eval "$ac_cv_use_htmlhelp" | |
6470 | if test "$no_cache" != 1; then | |
6471 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
6472 | fi | |
6473 | ||
6474 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
6475 | echo "$as_me:$LINENO: result: yes" >&5 | |
6476 | echo "${ECHO_T}yes" >&6 | |
6477 | else | |
6478 | echo "$as_me:$LINENO: result: no" >&5 | |
6479 | echo "${ECHO_T}no" >&6 | |
6480 | fi | |
6481 | ||
6482 | ||
9a8f0513 VS |
6483 | enablestring= |
6484 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5 | |
6485 | echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6 | |
6486 | no_cache=0 | |
6487 | # Check whether --enable-xrc or --disable-xrc was given. | |
6488 | if test "${enable_xrc+set}" = set; then | |
6489 | enableval="$enable_xrc" | |
6490 | ||
6491 | if test "$enableval" = yes; then | |
6492 | ac_cv_use_xrc='wxUSE_XRC=yes' | |
6493 | else | |
6494 | ac_cv_use_xrc='wxUSE_XRC=no' | |
6495 | fi | |
6496 | ||
6497 | else | |
6498 | ||
6499 | LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}` | |
6500 | if test "x$LINE" != x ; then | |
6501 | eval "DEFAULT_$LINE" | |
6502 | else | |
6503 | no_cache=1 | |
6504 | fi | |
6505 | ||
6506 | ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC | |
6507 | ||
6508 | fi; | |
6509 | ||
6510 | eval "$ac_cv_use_xrc" | |
6511 | if test "$no_cache" != 1; then | |
6512 | echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp | |
6513 | fi | |
6514 | ||
6515 | if test "$wxUSE_XRC" = yes; then | |
6516 | echo "$as_me:$LINENO: result: yes" >&5 | |
6517 | echo "${ECHO_T}yes" >&6 | |
6518 | else | |
6519 | echo "$as_me:$LINENO: result: no" >&5 | |
6520 | echo "${ECHO_T}no" >&6 | |
6521 | fi | |
6522 | ||
6523 | ||
a848cd7e SC |
6524 | enablestring= |
6525 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5 | |
6526 | echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6 | |
6527 | no_cache=0 | |
6528 | # Check whether --enable-constraints or --disable-constraints was given. | |
6529 | if test "${enable_constraints+set}" = set; then | |
6530 | enableval="$enable_constraints" | |
6531 | ||
6532 | if test "$enableval" = yes; then | |
6533 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
6534 | else | |
6535 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
6536 | fi | |
6537 | ||
6538 | else | |
6539 | ||
6540 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` | |
6541 | if test "x$LINE" != x ; then | |
6542 | eval "DEFAULT_$LINE" | |
6543 | else | |
6544 | no_cache=1 | |
6545 | fi | |
6546 | ||
6547 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
6548 | ||
6549 | fi; | |
6550 | ||
6551 | eval "$ac_cv_use_constraints" | |
6552 | if test "$no_cache" != 1; then | |
6553 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
6554 | fi | |
6555 | ||
6556 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
6557 | echo "$as_me:$LINENO: result: yes" >&5 | |
6558 | echo "${ECHO_T}yes" >&6 | |
6559 | else | |
6560 | echo "$as_me:$LINENO: result: no" >&5 | |
6561 | echo "${ECHO_T}no" >&6 | |
6562 | fi | |
6563 | ||
6564 | ||
6565 | enablestring= | |
6566 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5 | |
6567 | echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6 | |
6568 | no_cache=0 | |
6569 | # Check whether --enable-printarch or --disable-printarch was given. | |
6570 | if test "${enable_printarch+set}" = set; then | |
6571 | enableval="$enable_printarch" | |
6572 | ||
6573 | if test "$enableval" = yes; then | |
6574 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
6575 | else | |
6576 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
6577 | fi | |
6578 | ||
6579 | else | |
6580 | ||
6581 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` | |
6582 | if test "x$LINE" != x ; then | |
6583 | eval "DEFAULT_$LINE" | |
6584 | else | |
6585 | no_cache=1 | |
6586 | fi | |
6587 | ||
6588 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
6589 | ||
6590 | fi; | |
6591 | ||
6592 | eval "$ac_cv_use_printarch" | |
6593 | if test "$no_cache" != 1; then | |
6594 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
6595 | fi | |
6596 | ||
6597 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
6598 | echo "$as_me:$LINENO: result: yes" >&5 | |
6599 | echo "${ECHO_T}yes" >&6 | |
6600 | else | |
6601 | echo "$as_me:$LINENO: result: no" >&5 | |
6602 | echo "${ECHO_T}no" >&6 | |
6603 | fi | |
6604 | ||
6605 | ||
6606 | enablestring= | |
6607 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5 | |
6608 | echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6 | |
6609 | no_cache=0 | |
6610 | # Check whether --enable-mdi or --disable-mdi was given. | |
6611 | if test "${enable_mdi+set}" = set; then | |
6612 | enableval="$enable_mdi" | |
6613 | ||
6614 | if test "$enableval" = yes; then | |
8a7b1113 | 6615 | ac_cv_use_mdi='wxUSE_MDI=yes' |
a848cd7e | 6616 | else |
8a7b1113 | 6617 | ac_cv_use_mdi='wxUSE_MDI=no' |
a848cd7e SC |
6618 | fi |
6619 | ||
6620 | else | |
6621 | ||
8a7b1113 | 6622 | LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}` |
a848cd7e SC |
6623 | if test "x$LINE" != x ; then |
6624 | eval "DEFAULT_$LINE" | |
6625 | else | |
6626 | no_cache=1 | |
6627 | fi | |
6628 | ||
8a7b1113 | 6629 | ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI |
a848cd7e SC |
6630 | |
6631 | fi; | |
6632 | ||
6633 | eval "$ac_cv_use_mdi" | |
6634 | if test "$no_cache" != 1; then | |
6635 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
6636 | fi | |
6637 | ||
8a7b1113 VZ |
6638 | if test "$wxUSE_MDI" = yes; then |
6639 | echo "$as_me:$LINENO: result: yes" >&5 | |
6640 | echo "${ECHO_T}yes" >&6 | |
6641 | else | |
6642 | echo "$as_me:$LINENO: result: no" >&5 | |
6643 | echo "${ECHO_T}no" >&6 | |
6644 | fi | |
6645 | ||
6646 | ||
6647 | enablestring= | |
6648 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5 | |
6649 | echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6 | |
6650 | no_cache=0 | |
6651 | # Check whether --enable-mdidoc or --disable-mdidoc was given. | |
6652 | if test "${enable_mdidoc+set}" = set; then | |
6653 | enableval="$enable_mdidoc" | |
6654 | ||
6655 | if test "$enableval" = yes; then | |
6656 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes' | |
6657 | else | |
6658 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no' | |
6659 | fi | |
6660 | ||
6661 | else | |
6662 | ||
6663 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` | |
6664 | if test "x$LINE" != x ; then | |
6665 | eval "DEFAULT_$LINE" | |
6666 | else | |
6667 | no_cache=1 | |
6668 | fi | |
6669 | ||
6670 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
6671 | ||
6672 | fi; | |
6673 | ||
6674 | eval "$ac_cv_use_mdidoc" | |
6675 | if test "$no_cache" != 1; then | |
6676 | echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp | |
6677 | fi | |
6678 | ||
a848cd7e SC |
6679 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then |
6680 | echo "$as_me:$LINENO: result: yes" >&5 | |
6681 | echo "${ECHO_T}yes" >&6 | |
6682 | else | |
6683 | echo "$as_me:$LINENO: result: no" >&5 | |
6684 | echo "${ECHO_T}no" >&6 | |
6685 | fi | |
6686 | ||
6687 | ||
6688 | enablestring= | |
6689 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5 | |
6690 | echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6 | |
6691 | no_cache=0 | |
6692 | # Check whether --enable-loggui or --disable-loggui was given. | |
6693 | if test "${enable_loggui+set}" = set; then | |
6694 | enableval="$enable_loggui" | |
6695 | ||
6696 | if test "$enableval" = yes; then | |
6697 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
6698 | else | |
6699 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
6700 | fi | |
6701 | ||
6702 | else | |
6703 | ||
6704 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
6705 | if test "x$LINE" != x ; then | |
6706 | eval "DEFAULT_$LINE" | |
6707 | else | |
6708 | no_cache=1 | |
6709 | fi | |
6710 | ||
6711 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
6712 | ||
6713 | fi; | |
6714 | ||
6715 | eval "$ac_cv_use_loggui" | |
6716 | if test "$no_cache" != 1; then | |
6717 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
6718 | fi | |
6719 | ||
6720 | if test "$wxUSE_LOGGUI" = yes; then | |
6721 | echo "$as_me:$LINENO: result: yes" >&5 | |
6722 | echo "${ECHO_T}yes" >&6 | |
6723 | else | |
6724 | echo "$as_me:$LINENO: result: no" >&5 | |
6725 | echo "${ECHO_T}no" >&6 | |
6726 | fi | |
6727 | ||
6728 | ||
6729 | enablestring= | |
6730 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5 | |
6731 | echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6 | |
6732 | no_cache=0 | |
6733 | # Check whether --enable-logwin or --disable-logwin was given. | |
6734 | if test "${enable_logwin+set}" = set; then | |
6735 | enableval="$enable_logwin" | |
6736 | ||
6737 | if test "$enableval" = yes; then | |
6738 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
6739 | else | |
6740 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
6741 | fi | |
6742 | ||
6743 | else | |
6744 | ||
6745 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
6746 | if test "x$LINE" != x ; then | |
6747 | eval "DEFAULT_$LINE" | |
6748 | else | |
6749 | no_cache=1 | |
6750 | fi | |
6751 | ||
6752 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
6753 | ||
6754 | fi; | |
6755 | ||
6756 | eval "$ac_cv_use_logwin" | |
6757 | if test "$no_cache" != 1; then | |
6758 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
6759 | fi | |
6760 | ||
6761 | if test "$wxUSE_LOGWINDOW" = yes; then | |
6762 | echo "$as_me:$LINENO: result: yes" >&5 | |
6763 | echo "${ECHO_T}yes" >&6 | |
6764 | else | |
6765 | echo "$as_me:$LINENO: result: no" >&5 | |
6766 | echo "${ECHO_T}no" >&6 | |
6767 | fi | |
6768 | ||
6769 | ||
6770 | enablestring= | |
6771 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5 | |
6772 | echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6 | |
6773 | no_cache=0 | |
6774 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
6775 | if test "${enable_logdialog+set}" = set; then | |
6776 | enableval="$enable_logdialog" | |
6777 | ||
6778 | if test "$enableval" = yes; then | |
6779 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
6780 | else | |
6781 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
6782 | fi | |
6783 | ||
6784 | else | |
6785 | ||
6786 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` | |
6787 | if test "x$LINE" != x ; then | |
6788 | eval "DEFAULT_$LINE" | |
6789 | else | |
6790 | no_cache=1 | |
6791 | fi | |
6792 | ||
6793 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
6794 | ||
6795 | fi; | |
6796 | ||
6797 | eval "$ac_cv_use_logdialog" | |
6798 | if test "$no_cache" != 1; then | |
6799 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
6800 | fi | |
6801 | ||
6802 | if test "$wxUSE_LOGDIALOG" = yes; then | |
6803 | echo "$as_me:$LINENO: result: yes" >&5 | |
6804 | echo "${ECHO_T}yes" >&6 | |
6805 | else | |
6806 | echo "$as_me:$LINENO: result: no" >&5 | |
6807 | echo "${ECHO_T}no" >&6 | |
6808 | fi | |
6809 | ||
6810 | ||
646b6ec1 VS |
6811 | enablestring= |
6812 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5 | |
6813 | echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6 | |
6814 | no_cache=0 | |
6815 | # Check whether --enable-webkit or --disable-webkit was given. | |
6816 | if test "${enable_webkit+set}" = set; then | |
6817 | enableval="$enable_webkit" | |
6818 | ||
6819 | if test "$enableval" = yes; then | |
6820 | ac_cv_use_webkit='wxUSE_WEBKIT=yes' | |
6821 | else | |
6822 | ac_cv_use_webkit='wxUSE_WEBKIT=no' | |
6823 | fi | |
6824 | ||
6825 | else | |
6826 | ||
6827 | LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}` | |
6828 | if test "x$LINE" != x ; then | |
6829 | eval "DEFAULT_$LINE" | |
6830 | else | |
6831 | no_cache=1 | |
6832 | fi | |
6833 | ||
6834 | ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT | |
6835 | ||
6836 | fi; | |
6837 | ||
6838 | eval "$ac_cv_use_webkit" | |
6839 | if test "$no_cache" != 1; then | |
6840 | echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp | |
6841 | fi | |
6842 | ||
6843 | if test "$wxUSE_WEBKIT" = yes; then | |
6844 | echo "$as_me:$LINENO: result: yes" >&5 | |
6845 | echo "${ECHO_T}yes" >&6 | |
6846 | else | |
6847 | echo "$as_me:$LINENO: result: no" >&5 | |
6848 | echo "${ECHO_T}no" >&6 | |
6849 | fi | |
6850 | ||
6851 | ||
a848cd7e SC |
6852 | |
6853 | enablestring= | |
6854 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5 | |
6855 | echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6 | |
6856 | no_cache=0 | |
6857 | # Check whether --enable-postscript or --disable-postscript was given. | |
6858 | if test "${enable_postscript+set}" = set; then | |
6859 | enableval="$enable_postscript" | |
6860 | ||
6861 | if test "$enableval" = yes; then | |
6862 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
6863 | else | |
6864 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
6865 | fi | |
6866 | ||
6867 | else | |
6868 | ||
6869 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` | |
6870 | if test "x$LINE" != x ; then | |
6871 | eval "DEFAULT_$LINE" | |
6872 | else | |
6873 | no_cache=1 | |
6874 | fi | |
6875 | ||
6876 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
6877 | ||
6878 | fi; | |
6879 | ||
6880 | eval "$ac_cv_use_postscript" | |
6881 | if test "$no_cache" != 1; then | |
6882 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
6883 | fi | |
6884 | ||
6885 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
6886 | echo "$as_me:$LINENO: result: yes" >&5 | |
6887 | echo "${ECHO_T}yes" >&6 | |
6888 | else | |
6889 | echo "$as_me:$LINENO: result: no" >&5 | |
6890 | echo "${ECHO_T}no" >&6 | |
6891 | fi | |
6892 | ||
6893 | ||
6894 | ||
6895 | ||
6896 | ||
6897 | enablestring= | |
6898 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5 | |
6899 | echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6 | |
6900 | no_cache=0 | |
6901 | # Check whether --enable-prologio or --disable-prologio was given. | |
6902 | if test "${enable_prologio+set}" = set; then | |
6903 | enableval="$enable_prologio" | |
6904 | ||
6905 | if test "$enableval" = yes; then | |
6906 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
6907 | else | |
6908 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
6909 | fi | |
6910 | ||
6911 | else | |
6912 | ||
6913 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` | |
6914 | if test "x$LINE" != x ; then | |
6915 | eval "DEFAULT_$LINE" | |
6916 | else | |
6917 | no_cache=1 | |
6918 | fi | |
6919 | ||
6920 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
6921 | ||
6922 | fi; | |
6923 | ||
6924 | eval "$ac_cv_use_prologio" | |
6925 | if test "$no_cache" != 1; then | |
6926 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
6927 | fi | |
6928 | ||
6929 | if test "$wxUSE_PROLOGIO" = yes; then | |
6930 | echo "$as_me:$LINENO: result: yes" >&5 | |
6931 | echo "${ECHO_T}yes" >&6 | |
6932 | else | |
6933 | echo "$as_me:$LINENO: result: no" >&5 | |
6934 | echo "${ECHO_T}no" >&6 | |
6935 | fi | |
6936 | ||
6937 | ||
6938 | enablestring= | |
6939 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5 | |
6940 | echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6 | |
6941 | no_cache=0 | |
6942 | # Check whether --enable-resources or --disable-resources was given. | |
6943 | if test "${enable_resources+set}" = set; then | |
6944 | enableval="$enable_resources" | |
6945 | ||
6946 | if test "$enableval" = yes; then | |
6947 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
6948 | else | |
6949 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
6950 | fi | |
6951 | ||
6952 | else | |
6953 | ||
6954 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` | |
6955 | if test "x$LINE" != x ; then | |
6956 | eval "DEFAULT_$LINE" | |
6957 | else | |
6958 | no_cache=1 | |
6959 | fi | |
6960 | ||
6961 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
6962 | ||
6963 | fi; | |
6964 | ||
6965 | eval "$ac_cv_use_resources" | |
6966 | if test "$no_cache" != 1; then | |
6967 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
6968 | fi | |
6969 | ||
6970 | if test "$wxUSE_RESOURCES" = yes; then | |
6971 | echo "$as_me:$LINENO: result: yes" >&5 | |
6972 | echo "${ECHO_T}yes" >&6 | |
6973 | else | |
6974 | echo "$as_me:$LINENO: result: no" >&5 | |
6975 | echo "${ECHO_T}no" >&6 | |
6976 | fi | |
6977 | ||
6978 | ||
6979 | ||
6980 | ||
6981 | enablestring= | |
6982 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5 | |
6983 | echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6 | |
6984 | no_cache=0 | |
6985 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
6986 | if test "${enable_clipboard+set}" = set; then | |
6987 | enableval="$enable_clipboard" | |
6988 | ||
6989 | if test "$enableval" = yes; then | |
6990 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
6991 | else | |
6992 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
6993 | fi | |
6994 | ||
6995 | else | |
6996 | ||
6997 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` | |
6998 | if test "x$LINE" != x ; then | |
6999 | eval "DEFAULT_$LINE" | |
7000 | else | |
7001 | no_cache=1 | |
7002 | fi | |
7003 | ||
7004 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
7005 | ||
7006 | fi; | |
7007 | ||
7008 | eval "$ac_cv_use_clipboard" | |
7009 | if test "$no_cache" != 1; then | |
7010 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
7011 | fi | |
7012 | ||
7013 | if test "$wxUSE_CLIPBOARD" = yes; then | |
7014 | echo "$as_me:$LINENO: result: yes" >&5 | |
7015 | echo "${ECHO_T}yes" >&6 | |
7016 | else | |
7017 | echo "$as_me:$LINENO: result: no" >&5 | |
7018 | echo "${ECHO_T}no" >&6 | |
7019 | fi | |
7020 | ||
7021 | ||
7022 | enablestring= | |
7023 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5 | |
7024 | echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6 | |
7025 | no_cache=0 | |
7026 | # Check whether --enable-dnd or --disable-dnd was given. | |
7027 | if test "${enable_dnd+set}" = set; then | |
7028 | enableval="$enable_dnd" | |
7029 | ||
7030 | if test "$enableval" = yes; then | |
7031 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
7032 | else | |
7033 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
7034 | fi | |
7035 | ||
7036 | else | |
7037 | ||
7038 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` | |
7039 | if test "x$LINE" != x ; then | |
7040 | eval "DEFAULT_$LINE" | |
7041 | else | |
7042 | no_cache=1 | |
7043 | fi | |
7044 | ||
7045 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
7046 | ||
7047 | fi; | |
7048 | ||
7049 | eval "$ac_cv_use_dnd" | |
7050 | if test "$no_cache" != 1; then | |
7051 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
7052 | fi | |
7053 | ||
7054 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
7055 | echo "$as_me:$LINENO: result: yes" >&5 | |
7056 | echo "${ECHO_T}yes" >&6 | |
7057 | else | |
7058 | echo "$as_me:$LINENO: result: no" >&5 | |
7059 | echo "${ECHO_T}no" >&6 | |
7060 | fi | |
7061 | ||
7062 | ||
7063 | enablestring= | |
7064 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
7065 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
7066 | no_cache=0 | |
7067 | # Check whether --enable-metafile or --disable-metafile was given. | |
7068 | if test "${enable_metafile+set}" = set; then | |
7069 | enableval="$enable_metafile" | |
7070 | ||
7071 | if test "$enableval" = yes; then | |
7072 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
7073 | else | |
7074 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
7075 | fi | |
7076 | ||
7077 | else | |
7078 | ||
7079 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
7080 | if test "x$LINE" != x ; then | |
7081 | eval "DEFAULT_$LINE" | |
7082 | else | |
7083 | no_cache=1 | |
7084 | fi | |
7085 | ||
7086 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
7087 | ||
7088 | fi; | |
7089 | ||
7090 | eval "$ac_cv_use_metafile" | |
7091 | if test "$no_cache" != 1; then | |
7092 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
7093 | fi | |
7094 | ||
7095 | if test "$wxUSE_METAFILE" = yes; then | |
7096 | echo "$as_me:$LINENO: result: yes" >&5 | |
7097 | echo "${ECHO_T}yes" >&6 | |
7098 | else | |
7099 | echo "$as_me:$LINENO: result: no" >&5 | |
7100 | echo "${ECHO_T}no" >&6 | |
7101 | fi | |
7102 | ||
7103 | ||
7104 | ||
7105 | ||
7106 | ||
7107 | enablestring= | |
7108 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5 | |
7109 | echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6 | |
7110 | no_cache=0 | |
7111 | # Check whether --enable-controls or --disable-controls was given. | |
7112 | if test "${enable_controls+set}" = set; then | |
7113 | enableval="$enable_controls" | |
7114 | ||
7115 | if test "$enableval" = yes; then | |
7116 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
7117 | else | |
7118 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
7119 | fi | |
7120 | ||
7121 | else | |
7122 | ||
7123 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` | |
7124 | if test "x$LINE" != x ; then | |
7125 | eval "DEFAULT_$LINE" | |
7126 | else | |
7127 | no_cache=1 | |
7128 | fi | |
7129 | ||
7130 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
7131 | ||
7132 | fi; | |
7133 | ||
7134 | eval "$ac_cv_use_controls" | |
7135 | if test "$no_cache" != 1; then | |
7136 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
7137 | fi | |
7138 | ||
7139 | if test "$wxUSE_CONTROLS" = yes; then | |
7140 | echo "$as_me:$LINENO: result: yes" >&5 | |
7141 | echo "${ECHO_T}yes" >&6 | |
7142 | else | |
7143 | echo "$as_me:$LINENO: result: no" >&5 | |
7144 | echo "${ECHO_T}no" >&6 | |
7145 | fi | |
7146 | ||
7147 | ||
7148 | if test "$wxUSE_CONTROLS" = "yes"; then | |
7149 | DEFAULT_wxUSE_ACCEL=yes | |
7150 | DEFAULT_wxUSE_BMPBUTTON=yes | |
7151 | DEFAULT_wxUSE_BUTTON=yes | |
da98e9be | 7152 | DEFAULT_wxUSE_CALCTRL=yes |
a848cd7e SC |
7153 | DEFAULT_wxUSE_CARET=yes |
7154 | DEFAULT_wxUSE_COMBOBOX=yes | |
7155 | DEFAULT_wxUSE_CHECKBOX=yes | |
7156 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
7157 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 7158 | DEFAULT_wxUSE_CHOICEBOOK=yes |
da98e9be | 7159 | DEFAULT_wxUSE_DATEPICKCTRL=yes |
a848cd7e SC |
7160 | DEFAULT_wxUSE_GAUGE=yes |
7161 | DEFAULT_wxUSE_GRID=yes | |
7162 | DEFAULT_wxUSE_IMAGLIST=yes | |
7163 | DEFAULT_wxUSE_LISTBOOK=yes | |
7164 | DEFAULT_wxUSE_LISTBOX=yes | |
7165 | DEFAULT_wxUSE_LISTCTRL=yes | |
7166 | DEFAULT_wxUSE_NOTEBOOK=yes | |
7167 | DEFAULT_wxUSE_RADIOBOX=yes | |
7168 | DEFAULT_wxUSE_RADIOBTN=yes | |
7169 | DEFAULT_wxUSE_SASH=yes | |
7170 | DEFAULT_wxUSE_SCROLLBAR=yes | |
7171 | DEFAULT_wxUSE_SLIDER=yes | |
7172 | DEFAULT_wxUSE_SPINBTN=yes | |
7173 | DEFAULT_wxUSE_SPINCTRL=yes | |
7174 | DEFAULT_wxUSE_SPLITTER=yes | |
7175 | DEFAULT_wxUSE_STATBMP=yes | |
7176 | DEFAULT_wxUSE_STATBOX=yes | |
7177 | DEFAULT_wxUSE_STATLINE=yes | |
7178 | DEFAULT_wxUSE_STATUSBAR=yes | |
7179 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
7180 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
7181 | DEFAULT_wxUSE_TOOLBAR=yes | |
7182 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
7183 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
7184 | DEFAULT_wxUSE_TOOLTIPS=yes | |
7185 | DEFAULT_wxUSE_TREECTRL=yes | |
7186 | DEFAULT_wxUSE_POPUPWIN=yes | |
7187 | DEFAULT_wxUSE_TIPWINDOW=yes | |
7188 | elif test "$wxUSE_CONTROLS" = "no"; then | |
7189 | DEFAULT_wxUSE_ACCEL=no | |
7190 | DEFAULT_wxUSE_BMPBUTTON=no | |
7191 | DEFAULT_wxUSE_BUTTON=no | |
7192 | DEFAULT_wxUSE_CALCTRL=no | |
7193 | DEFAULT_wxUSE_CARET=no | |
7194 | DEFAULT_wxUSE_COMBOBOX=no | |
7195 | DEFAULT_wxUSE_CHECKBOX=no | |
7196 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
7197 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 7198 | DEFAULT_wxUSE_CHOICEBOOK=no |
da98e9be | 7199 | DEFAULT_wxUSE_DATEPICKCTRL=no |
a848cd7e SC |
7200 | DEFAULT_wxUSE_GAUGE=no |
7201 | DEFAULT_wxUSE_GRID=no | |
7202 | DEFAULT_wxUSE_IMAGLIST=no | |
7203 | DEFAULT_wxUSE_LISTBOOK=no | |
7204 | DEFAULT_wxUSE_LISTBOX=no | |
7205 | DEFAULT_wxUSE_LISTCTRL=no | |
7206 | DEFAULT_wxUSE_NOTEBOOK=no | |
7207 | DEFAULT_wxUSE_RADIOBOX=no | |
7208 | DEFAULT_wxUSE_RADIOBTN=no | |
7209 | DEFAULT_wxUSE_SASH=no | |
7210 | DEFAULT_wxUSE_SCROLLBAR=no | |
7211 | DEFAULT_wxUSE_SLIDER=no | |
7212 | DEFAULT_wxUSE_SPINBTN=no | |
7213 | DEFAULT_wxUSE_SPINCTRL=no | |
7214 | DEFAULT_wxUSE_SPLITTER=no | |
7215 | DEFAULT_wxUSE_STATBMP=no | |
7216 | DEFAULT_wxUSE_STATBOX=no | |
7217 | DEFAULT_wxUSE_STATLINE=no | |
7218 | DEFAULT_wxUSE_STATUSBAR=no | |
7219 | DEFAULT_wxUSE_TAB_DIALOG=no | |
7220 | DEFAULT_wxUSE_TOGGLEBTN=no | |
7221 | DEFAULT_wxUSE_TOOLBAR=no | |
7222 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
7223 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
7224 | DEFAULT_wxUSE_TOOLTIPS=no | |
7225 | DEFAULT_wxUSE_TREECTRL=no | |
7226 | DEFAULT_wxUSE_POPUPWIN=no | |
7227 | DEFAULT_wxUSE_TIPWINDOW=no | |
7228 | fi | |
7229 | ||
a848cd7e SC |
7230 | |
7231 | enablestring= | |
7232 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5 | |
7233 | echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6 | |
7234 | no_cache=0 | |
7235 | # Check whether --enable-accel or --disable-accel was given. | |
7236 | if test "${enable_accel+set}" = set; then | |
7237 | enableval="$enable_accel" | |
7238 | ||
7239 | if test "$enableval" = yes; then | |
7240 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
7241 | else | |
7242 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
7243 | fi | |
7244 | ||
7245 | else | |
7246 | ||
7247 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` | |
7248 | if test "x$LINE" != x ; then | |
7249 | eval "DEFAULT_$LINE" | |
7250 | else | |
7251 | no_cache=1 | |
7252 | fi | |
7253 | ||
7254 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
7255 | ||
7256 | fi; | |
7257 | ||
7258 | eval "$ac_cv_use_accel" | |
7259 | if test "$no_cache" != 1; then | |
7260 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
7261 | fi | |
7262 | ||
7263 | if test "$wxUSE_ACCEL" = yes; then | |
7264 | echo "$as_me:$LINENO: result: yes" >&5 | |
7265 | echo "${ECHO_T}yes" >&6 | |
7266 | else | |
7267 | echo "$as_me:$LINENO: result: no" >&5 | |
7268 | echo "${ECHO_T}no" >&6 | |
7269 | fi | |
7270 | ||
7271 | ||
7272 | enablestring= | |
7273 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5 | |
7274 | echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6 | |
7275 | no_cache=0 | |
7276 | # Check whether --enable-button or --disable-button was given. | |
7277 | if test "${enable_button+set}" = set; then | |
7278 | enableval="$enable_button" | |
7279 | ||
7280 | if test "$enableval" = yes; then | |
7281 | ac_cv_use_button='wxUSE_BUTTON=yes' | |
7282 | else | |
7283 | ac_cv_use_button='wxUSE_BUTTON=no' | |
7284 | fi | |
7285 | ||
7286 | else | |
7287 | ||
7288 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` | |
7289 | if test "x$LINE" != x ; then | |
7290 | eval "DEFAULT_$LINE" | |
7291 | else | |
7292 | no_cache=1 | |
7293 | fi | |
7294 | ||
7295 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON | |
7296 | ||
7297 | fi; | |
7298 | ||
7299 | eval "$ac_cv_use_button" | |
7300 | if test "$no_cache" != 1; then | |
7301 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp | |
7302 | fi | |
7303 | ||
7304 | if test "$wxUSE_BUTTON" = yes; then | |
7305 | echo "$as_me:$LINENO: result: yes" >&5 | |
7306 | echo "${ECHO_T}yes" >&6 | |
7307 | else | |
7308 | echo "$as_me:$LINENO: result: no" >&5 | |
7309 | echo "${ECHO_T}no" >&6 | |
7310 | fi | |
7311 | ||
7312 | ||
7313 | enablestring= | |
7314 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5 | |
7315 | echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6 | |
7316 | no_cache=0 | |
7317 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
7318 | if test "${enable_bmpbutton+set}" = set; then | |
7319 | enableval="$enable_bmpbutton" | |
7320 | ||
7321 | if test "$enableval" = yes; then | |
7322 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
7323 | else | |
7324 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
7325 | fi | |
7326 | ||
7327 | else | |
7328 | ||
7329 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` | |
7330 | if test "x$LINE" != x ; then | |
7331 | eval "DEFAULT_$LINE" | |
7332 | else | |
7333 | no_cache=1 | |
7334 | fi | |
7335 | ||
7336 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
7337 | ||
7338 | fi; | |
7339 | ||
7340 | eval "$ac_cv_use_bmpbutton" | |
7341 | if test "$no_cache" != 1; then | |
7342 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
7343 | fi | |
7344 | ||
7345 | if test "$wxUSE_BMPBUTTON" = yes; then | |
7346 | echo "$as_me:$LINENO: result: yes" >&5 | |
7347 | echo "${ECHO_T}yes" >&6 | |
7348 | else | |
7349 | echo "$as_me:$LINENO: result: no" >&5 | |
7350 | echo "${ECHO_T}no" >&6 | |
7351 | fi | |
7352 | ||
7353 | ||
7354 | enablestring= | |
7355 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5 | |
7356 | echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6 | |
7357 | no_cache=0 | |
7358 | # Check whether --enable-calendar or --disable-calendar was given. | |
7359 | if test "${enable_calendar+set}" = set; then | |
7360 | enableval="$enable_calendar" | |
7361 | ||
7362 | if test "$enableval" = yes; then | |
7363 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
7364 | else | |
7365 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
7366 | fi | |
7367 | ||
7368 | else | |
7369 | ||
7370 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
7371 | if test "x$LINE" != x ; then | |
7372 | eval "DEFAULT_$LINE" | |
7373 | else | |
7374 | no_cache=1 | |
7375 | fi | |
7376 | ||
7377 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
7378 | ||
7379 | fi; | |
7380 | ||
7381 | eval "$ac_cv_use_calendar" | |
7382 | if test "$no_cache" != 1; then | |
7383 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
7384 | fi | |
7385 | ||
7386 | if test "$wxUSE_CALCTRL" = yes; then | |
7387 | echo "$as_me:$LINENO: result: yes" >&5 | |
7388 | echo "${ECHO_T}yes" >&6 | |
7389 | else | |
7390 | echo "$as_me:$LINENO: result: no" >&5 | |
7391 | echo "${ECHO_T}no" >&6 | |
7392 | fi | |
7393 | ||
7394 | ||
7395 | enablestring= | |
7396 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5 | |
7397 | echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6 | |
7398 | no_cache=0 | |
7399 | # Check whether --enable-caret or --disable-caret was given. | |
7400 | if test "${enable_caret+set}" = set; then | |
7401 | enableval="$enable_caret" | |
7402 | ||
7403 | if test "$enableval" = yes; then | |
7404 | ac_cv_use_caret='wxUSE_CARET=yes' | |
7405 | else | |
7406 | ac_cv_use_caret='wxUSE_CARET=no' | |
7407 | fi | |
7408 | ||
7409 | else | |
7410 | ||
7411 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
7412 | if test "x$LINE" != x ; then | |
7413 | eval "DEFAULT_$LINE" | |
7414 | else | |
7415 | no_cache=1 | |
7416 | fi | |
7417 | ||
7418 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
7419 | ||
7420 | fi; | |
7421 | ||
7422 | eval "$ac_cv_use_caret" | |
7423 | if test "$no_cache" != 1; then | |
7424 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
7425 | fi | |
7426 | ||
7427 | if test "$wxUSE_CARET" = yes; then | |
7428 | echo "$as_me:$LINENO: result: yes" >&5 | |
7429 | echo "${ECHO_T}yes" >&6 | |
7430 | else | |
7431 | echo "$as_me:$LINENO: result: no" >&5 | |
7432 | echo "${ECHO_T}no" >&6 | |
7433 | fi | |
7434 | ||
7435 | ||
7436 | enablestring= | |
7437 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5 | |
7438 | echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6 | |
7439 | no_cache=0 | |
7440 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
7441 | if test "${enable_checkbox+set}" = set; then | |
7442 | enableval="$enable_checkbox" | |
7443 | ||
7444 | if test "$enableval" = yes; then | |
7445 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
7446 | else | |
7447 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
7448 | fi | |
7449 | ||
7450 | else | |
7451 | ||
7452 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` | |
7453 | if test "x$LINE" != x ; then | |
7454 | eval "DEFAULT_$LINE" | |
7455 | else | |
7456 | no_cache=1 | |
7457 | fi | |
7458 | ||
7459 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
7460 | ||
7461 | fi; | |
7462 | ||
7463 | eval "$ac_cv_use_checkbox" | |
7464 | if test "$no_cache" != 1; then | |
7465 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
7466 | fi | |
7467 | ||
7468 | if test "$wxUSE_CHECKBOX" = yes; then | |
7469 | echo "$as_me:$LINENO: result: yes" >&5 | |
7470 | echo "${ECHO_T}yes" >&6 | |
7471 | else | |
7472 | echo "$as_me:$LINENO: result: no" >&5 | |
7473 | echo "${ECHO_T}no" >&6 | |
7474 | fi | |
7475 | ||
7476 | ||
7477 | enablestring= | |
7478 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5 | |
7479 | echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6 | |
7480 | no_cache=0 | |
7481 | # Check whether --enable-checklst or --disable-checklst was given. | |
7482 | if test "${enable_checklst+set}" = set; then | |
7483 | enableval="$enable_checklst" | |
7484 | ||
7485 | if test "$enableval" = yes; then | |
7486 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
7487 | else | |
7488 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
7489 | fi | |
7490 | ||
7491 | else | |
7492 | ||
7493 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` | |
7494 | if test "x$LINE" != x ; then | |
7495 | eval "DEFAULT_$LINE" | |
7496 | else | |
7497 | no_cache=1 | |
7498 | fi | |
7499 | ||
7500 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
7501 | ||
7502 | fi; | |
7503 | ||
7504 | eval "$ac_cv_use_checklst" | |
7505 | if test "$no_cache" != 1; then | |
7506 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
7507 | fi | |
7508 | ||
7509 | if test "$wxUSE_CHECKLST" = yes; then | |
7510 | echo "$as_me:$LINENO: result: yes" >&5 | |
7511 | echo "${ECHO_T}yes" >&6 | |
7512 | else | |
7513 | echo "$as_me:$LINENO: result: no" >&5 | |
7514 | echo "${ECHO_T}no" >&6 | |
7515 | fi | |
7516 | ||
7517 | ||
7518 | enablestring= | |
7519 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5 | |
7520 | echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6 | |
7521 | no_cache=0 | |
7522 | # Check whether --enable-choice or --disable-choice was given. | |
7523 | if test "${enable_choice+set}" = set; then | |
7524 | enableval="$enable_choice" | |
7525 | ||
7526 | if test "$enableval" = yes; then | |
7527 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
7528 | else | |
7529 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
7530 | fi | |
7531 | ||
7532 | else | |
7533 | ||
7534 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` | |
7535 | if test "x$LINE" != x ; then | |
7536 | eval "DEFAULT_$LINE" | |
7537 | else | |
7538 | no_cache=1 | |
7539 | fi | |
7540 | ||
7541 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
7542 | ||
7543 | fi; | |
7544 | ||
7545 | eval "$ac_cv_use_choice" | |
7546 | if test "$no_cache" != 1; then | |
7547 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
7548 | fi | |
7549 | ||
7550 | if test "$wxUSE_CHOICE" = yes; then | |
7551 | echo "$as_me:$LINENO: result: yes" >&5 | |
7552 | echo "${ECHO_T}yes" >&6 | |
7553 | else | |
7554 | echo "$as_me:$LINENO: result: no" >&5 | |
7555 | echo "${ECHO_T}no" >&6 | |
7556 | fi | |
7557 | ||
7558 | ||
92bbdbcd WS |
7559 | enablestring= |
7560 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5 | |
7561 | echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6 | |
7562 | no_cache=0 | |
7563 | # Check whether --enable-choicebook or --disable-choicebook was given. | |
7564 | if test "${enable_choicebook+set}" = set; then | |
7565 | enableval="$enable_choicebook" | |
7566 | ||
7567 | if test "$enableval" = yes; then | |
7568 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes' | |
7569 | else | |
7570 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no' | |
7571 | fi | |
7572 | ||
7573 | else | |
7574 | ||
7575 | LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}` | |
7576 | if test "x$LINE" != x ; then | |
7577 | eval "DEFAULT_$LINE" | |
7578 | else | |
7579 | no_cache=1 | |
7580 | fi | |
7581 | ||
7582 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK | |
7583 | ||
7584 | fi; | |
7585 | ||
7586 | eval "$ac_cv_use_choicebook" | |
7587 | if test "$no_cache" != 1; then | |
7588 | echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp | |
7589 | fi | |
7590 | ||
7591 | if test "$wxUSE_CHOICEBOOK" = yes; then | |
7592 | echo "$as_me:$LINENO: result: yes" >&5 | |
7593 | echo "${ECHO_T}yes" >&6 | |
7594 | else | |
7595 | echo "$as_me:$LINENO: result: no" >&5 | |
7596 | echo "${ECHO_T}no" >&6 | |
7597 | fi | |
7598 | ||
7599 | ||
a848cd7e SC |
7600 | enablestring= |
7601 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5 | |
7602 | echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6 | |
7603 | no_cache=0 | |
7604 | # Check whether --enable-combobox or --disable-combobox was given. | |
7605 | if test "${enable_combobox+set}" = set; then | |
7606 | enableval="$enable_combobox" | |
7607 | ||
7608 | if test "$enableval" = yes; then | |
7609 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
7610 | else | |
7611 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
7612 | fi | |
7613 | ||
7614 | else | |
7615 | ||
7616 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` | |
7617 | if test "x$LINE" != x ; then | |
7618 | eval "DEFAULT_$LINE" | |
7619 | else | |
7620 | no_cache=1 | |
7621 | fi | |
7622 | ||
7623 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
7624 | ||
7625 | fi; | |
7626 | ||
7627 | eval "$ac_cv_use_combobox" | |
7628 | if test "$no_cache" != 1; then | |
7629 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
7630 | fi | |
7631 | ||
7632 | if test "$wxUSE_COMBOBOX" = yes; then | |
7633 | echo "$as_me:$LINENO: result: yes" >&5 | |
7634 | echo "${ECHO_T}yes" >&6 | |
7635 | else | |
7636 | echo "$as_me:$LINENO: result: no" >&5 | |
7637 | echo "${ECHO_T}no" >&6 | |
7638 | fi | |
7639 | ||
7640 | ||
da98e9be VZ |
7641 | enablestring= |
7642 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5 | |
7643 | echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6 | |
7644 | no_cache=0 | |
7645 | # Check whether --enable-datepick or --disable-datepick was given. | |
7646 | if test "${enable_datepick+set}" = set; then | |
7647 | enableval="$enable_datepick" | |
7648 | ||
7649 | if test "$enableval" = yes; then | |
7650 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes' | |
7651 | else | |
7652 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no' | |
7653 | fi | |
7654 | ||
7655 | else | |
7656 | ||
7657 | LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}` | |
7658 | if test "x$LINE" != x ; then | |
7659 | eval "DEFAULT_$LINE" | |
7660 | else | |
7661 | no_cache=1 | |
7662 | fi | |
7663 | ||
7664 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL | |
7665 | ||
7666 | fi; | |
7667 | ||
7668 | eval "$ac_cv_use_datepick" | |
7669 | if test "$no_cache" != 1; then | |
7670 | echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp | |
7671 | fi | |
7672 | ||
7673 | if test "$wxUSE_DATEPICKCTRL" = yes; then | |
7674 | echo "$as_me:$LINENO: result: yes" >&5 | |
7675 | echo "${ECHO_T}yes" >&6 | |
7676 | else | |
7677 | echo "$as_me:$LINENO: result: no" >&5 | |
7678 | echo "${ECHO_T}no" >&6 | |
7679 | fi | |
7680 | ||
7681 | ||
a848cd7e SC |
7682 | enablestring= |
7683 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5 | |
7684 | echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6 | |
7685 | no_cache=0 | |
7686 | # Check whether --enable-display or --disable-display was given. | |
7687 | if test "${enable_display+set}" = set; then | |
7688 | enableval="$enable_display" | |
7689 | ||
7690 | if test "$enableval" = yes; then | |
7691 | ac_cv_use_display='wxUSE_DISPLAY=yes' | |
7692 | else | |
7693 | ac_cv_use_display='wxUSE_DISPLAY=no' | |
7694 | fi | |
7695 | ||
7696 | else | |
7697 | ||
7698 | LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}` | |
7699 | if test "x$LINE" != x ; then | |
7700 | eval "DEFAULT_$LINE" | |
7701 | else | |
7702 | no_cache=1 | |
7703 | fi | |
7704 | ||
7705 | ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY | |
7706 | ||
7707 | fi; | |
7708 | ||
7709 | eval "$ac_cv_use_display" | |
7710 | if test "$no_cache" != 1; then | |
7711 | echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp | |
7712 | fi | |
7713 | ||
7714 | if test "$wxUSE_DISPLAY" = yes; then | |
7715 | echo "$as_me:$LINENO: result: yes" >&5 | |
7716 | echo "${ECHO_T}yes" >&6 | |
7717 | else | |
7718 | echo "$as_me:$LINENO: result: no" >&5 | |
7719 | echo "${ECHO_T}no" >&6 | |
7720 | fi | |
7721 | ||
7722 | ||
7723 | enablestring= | |
7724 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5 | |
7725 | echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6 | |
7726 | no_cache=0 | |
7727 | # Check whether --enable-gauge or --disable-gauge was given. | |
7728 | if test "${enable_gauge+set}" = set; then | |
7729 | enableval="$enable_gauge" | |
7730 | ||
7731 | if test "$enableval" = yes; then | |
7732 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
7733 | else | |
7734 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
7735 | fi | |
7736 | ||
7737 | else | |
7738 | ||
7739 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` | |
7740 | if test "x$LINE" != x ; then | |
7741 | eval "DEFAULT_$LINE" | |
7742 | else | |
7743 | no_cache=1 | |
7744 | fi | |
7745 | ||
7746 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
7747 | ||
7748 | fi; | |
7749 | ||
7750 | eval "$ac_cv_use_gauge" | |
7751 | if test "$no_cache" != 1; then | |
7752 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
7753 | fi | |
7754 | ||
7755 | if test "$wxUSE_GAUGE" = yes; then | |
7756 | echo "$as_me:$LINENO: result: yes" >&5 | |
7757 | echo "${ECHO_T}yes" >&6 | |
7758 | else | |
7759 | echo "$as_me:$LINENO: result: no" >&5 | |
7760 | echo "${ECHO_T}no" >&6 | |
7761 | fi | |
7762 | ||
7763 | ||
7764 | enablestring= | |
7765 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5 | |
7766 | echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6 | |
7767 | no_cache=0 | |
7768 | # Check whether --enable-grid or --disable-grid was given. | |
7769 | if test "${enable_grid+set}" = set; then | |
7770 | enableval="$enable_grid" | |
7771 | ||
7772 | if test "$enableval" = yes; then | |
7773 | ac_cv_use_grid='wxUSE_GRID=yes' | |
7774 | else | |
7775 | ac_cv_use_grid='wxUSE_GRID=no' | |
7776 | fi | |
7777 | ||
7778 | else | |
7779 | ||
7780 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` | |
7781 | if test "x$LINE" != x ; then | |
7782 | eval "DEFAULT_$LINE" | |
7783 | else | |
7784 | no_cache=1 | |
7785 | fi | |
7786 | ||
7787 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
7788 | ||
7789 | fi; | |
7790 | ||
7791 | eval "$ac_cv_use_grid" | |
7792 | if test "$no_cache" != 1; then | |
7793 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
7794 | fi | |
7795 | ||
7796 | if test "$wxUSE_GRID" = yes; then | |
7797 | echo "$as_me:$LINENO: result: yes" >&5 | |
7798 | echo "${ECHO_T}yes" >&6 | |
7799 | else | |
7800 | echo "$as_me:$LINENO: result: no" >&5 | |
7801 | echo "${ECHO_T}no" >&6 | |
7802 | fi | |
7803 | ||
7804 | ||
7805 | enablestring= | |
7806 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5 | |
7807 | echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6 | |
7808 | no_cache=0 | |
7809 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
7810 | if test "${enable_imaglist+set}" = set; then | |
7811 | enableval="$enable_imaglist" | |
7812 | ||
7813 | if test "$enableval" = yes; then | |
7814 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
7815 | else | |
7816 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
7817 | fi | |
7818 | ||
7819 | else | |
7820 | ||
7821 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` | |
7822 | if test "x$LINE" != x ; then | |
7823 | eval "DEFAULT_$LINE" | |
7824 | else | |
7825 | no_cache=1 | |
7826 | fi | |
7827 | ||
7828 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
7829 | ||
7830 | fi; | |
7831 | ||
7832 | eval "$ac_cv_use_imaglist" | |
7833 | if test "$no_cache" != 1; then | |
7834 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
7835 | fi | |
7836 | ||
7837 | if test "$wxUSE_IMAGLIST" = yes; then | |
7838 | echo "$as_me:$LINENO: result: yes" >&5 | |
7839 | echo "${ECHO_T}yes" >&6 | |
7840 | else | |
7841 | echo "$as_me:$LINENO: result: no" >&5 | |
7842 | echo "${ECHO_T}no" >&6 | |
7843 | fi | |
7844 | ||
7845 | ||
7846 | enablestring= | |
7847 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5 | |
7848 | echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6 | |
7849 | no_cache=0 | |
7850 | # Check whether --enable-listbook or --disable-listbook was given. | |
7851 | if test "${enable_listbook+set}" = set; then | |
7852 | enableval="$enable_listbook" | |
7853 | ||
7854 | if test "$enableval" = yes; then | |
7855 | ac_cv_use_listbook='wxUSE_LISTBOOK=yes' | |
7856 | else | |
7857 | ac_cv_use_listbook='wxUSE_LISTBOOK=no' | |
7858 | fi | |
7859 | ||
7860 | else | |
7861 | ||
7862 | LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}` | |
7863 | if test "x$LINE" != x ; then | |
7864 | eval "DEFAULT_$LINE" | |
7865 | else | |
7866 | no_cache=1 | |
7867 | fi | |
7868 | ||
7869 | ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK | |
7870 | ||
7871 | fi; | |
7872 | ||
7873 | eval "$ac_cv_use_listbook" | |
7874 | if test "$no_cache" != 1; then | |
7875 | echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp | |
7876 | fi | |
7877 | ||
7878 | if test "$wxUSE_LISTBOOK" = yes; then | |
7879 | echo "$as_me:$LINENO: result: yes" >&5 | |
7880 | echo "${ECHO_T}yes" >&6 | |
7881 | else | |
7882 | echo "$as_me:$LINENO: result: no" >&5 | |
7883 | echo "${ECHO_T}no" >&6 | |
7884 | fi | |
7885 | ||
7886 | ||
7887 | enablestring= | |
7888 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5 | |
7889 | echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6 | |
7890 | no_cache=0 | |
7891 | # Check whether --enable-listbox or --disable-listbox was given. | |
7892 | if test "${enable_listbox+set}" = set; then | |
7893 | enableval="$enable_listbox" | |
7894 | ||
7895 | if test "$enableval" = yes; then | |
7896 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
7897 | else | |
7898 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
7899 | fi | |
7900 | ||
7901 | else | |
7902 | ||
7903 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` | |
7904 | if test "x$LINE" != x ; then | |
7905 | eval "DEFAULT_$LINE" | |
7906 | else | |
7907 | no_cache=1 | |
7908 | fi | |
7909 | ||
7910 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
7911 | ||
7912 | fi; | |
7913 | ||
7914 | eval "$ac_cv_use_listbox" | |
7915 | if test "$no_cache" != 1; then | |
7916 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
7917 | fi | |
7918 | ||
7919 | if test "$wxUSE_LISTBOX" = yes; then | |
7920 | echo "$as_me:$LINENO: result: yes" >&5 | |
7921 | echo "${ECHO_T}yes" >&6 | |
7922 | else | |
7923 | echo "$as_me:$LINENO: result: no" >&5 | |
7924 | echo "${ECHO_T}no" >&6 | |
7925 | fi | |
7926 | ||
7927 | ||
7928 | enablestring= | |
7929 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5 | |
7930 | echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6 | |
7931 | no_cache=0 | |
7932 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
7933 | if test "${enable_listctrl+set}" = set; then | |
7934 | enableval="$enable_listctrl" | |
7935 | ||
7936 | if test "$enableval" = yes; then | |
7937 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
7938 | else | |
7939 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
7940 | fi | |
7941 | ||
7942 | else | |
7943 | ||
7944 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` | |
7945 | if test "x$LINE" != x ; then | |
7946 | eval "DEFAULT_$LINE" | |
7947 | else | |
7948 | no_cache=1 | |
7949 | fi | |
7950 | ||
7951 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
7952 | ||
7953 | fi; | |
7954 | ||
7955 | eval "$ac_cv_use_listctrl" | |
7956 | if test "$no_cache" != 1; then | |
7957 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
7958 | fi | |
7959 | ||
7960 | if test "$wxUSE_LISTCTRL" = yes; then | |
7961 | echo "$as_me:$LINENO: result: yes" >&5 | |
7962 | echo "${ECHO_T}yes" >&6 | |
7963 | else | |
7964 | echo "$as_me:$LINENO: result: no" >&5 | |
7965 | echo "${ECHO_T}no" >&6 | |
7966 | fi | |
7967 | ||
7968 | ||
7969 | enablestring= | |
7970 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5 | |
7971 | echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6 | |
7972 | no_cache=0 | |
7973 | # Check whether --enable-notebook or --disable-notebook was given. | |
7974 | if test "${enable_notebook+set}" = set; then | |
7975 | enableval="$enable_notebook" | |
7976 | ||
7977 | if test "$enableval" = yes; then | |
7978 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
7979 | else | |
7980 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
7981 | fi | |
7982 | ||
7983 | else | |
7984 | ||
7985 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` | |
7986 | if test "x$LINE" != x ; then | |
7987 | eval "DEFAULT_$LINE" | |
7988 | else | |
7989 | no_cache=1 | |
7990 | fi | |
7991 | ||
7992 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
7993 | ||
7994 | fi; | |
7995 | ||
7996 | eval "$ac_cv_use_notebook" | |
7997 | if test "$no_cache" != 1; then | |
7998 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
7999 | fi | |
8000 | ||
8001 | if test "$wxUSE_NOTEBOOK" = yes; then | |
8002 | echo "$as_me:$LINENO: result: yes" >&5 | |
8003 | echo "${ECHO_T}yes" >&6 | |
8004 | else | |
8005 | echo "$as_me:$LINENO: result: no" >&5 | |
8006 | echo "${ECHO_T}no" >&6 | |
8007 | fi | |
8008 | ||
8009 | ||
8010 | enablestring= | |
8011 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5 | |
8012 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6 | |
8013 | no_cache=0 | |
8014 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
8015 | if test "${enable_radiobox+set}" = set; then | |
8016 | enableval="$enable_radiobox" | |
8017 | ||
8018 | if test "$enableval" = yes; then | |
8019 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
8020 | else | |
8021 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
8022 | fi | |
8023 | ||
8024 | else | |
8025 | ||
8026 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` | |
8027 | if test "x$LINE" != x ; then | |
8028 | eval "DEFAULT_$LINE" | |
8029 | else | |
8030 | no_cache=1 | |
8031 | fi | |
8032 | ||
8033 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
8034 | ||
8035 | fi; | |
8036 | ||
8037 | eval "$ac_cv_use_radiobox" | |
8038 | if test "$no_cache" != 1; then | |
8039 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
8040 | fi | |
8041 | ||
8042 | if test "$wxUSE_RADIOBOX" = yes; then | |
8043 | echo "$as_me:$LINENO: result: yes" >&5 | |
8044 | echo "${ECHO_T}yes" >&6 | |
8045 | else | |
8046 | echo "$as_me:$LINENO: result: no" >&5 | |
8047 | echo "${ECHO_T}no" >&6 | |
8048 | fi | |
8049 | ||
8050 | ||
8051 | enablestring= | |
8052 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5 | |
8053 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6 | |
8054 | no_cache=0 | |
8055 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
8056 | if test "${enable_radiobtn+set}" = set; then | |
8057 | enableval="$enable_radiobtn" | |
8058 | ||
8059 | if test "$enableval" = yes; then | |
8060 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
8061 | else | |
8062 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
8063 | fi | |
8064 | ||
8065 | else | |
8066 | ||
8067 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` | |
8068 | if test "x$LINE" != x ; then | |
8069 | eval "DEFAULT_$LINE" | |
8070 | else | |
8071 | no_cache=1 | |
8072 | fi | |
8073 | ||
8074 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
8075 | ||
8076 | fi; | |
8077 | ||
8078 | eval "$ac_cv_use_radiobtn" | |
8079 | if test "$no_cache" != 1; then | |
8080 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
8081 | fi | |
8082 | ||
8083 | if test "$wxUSE_RADIOBTN" = yes; then | |
8084 | echo "$as_me:$LINENO: result: yes" >&5 | |
8085 | echo "${ECHO_T}yes" >&6 | |
8086 | else | |
8087 | echo "$as_me:$LINENO: result: no" >&5 | |
8088 | echo "${ECHO_T}no" >&6 | |
8089 | fi | |
8090 | ||
8091 | ||
8092 | enablestring= | |
8093 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5 | |
8094 | echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6 | |
8095 | no_cache=0 | |
8096 | # Check whether --enable-sash or --disable-sash was given. | |
8097 | if test "${enable_sash+set}" = set; then | |
8098 | enableval="$enable_sash" | |
8099 | ||
8100 | if test "$enableval" = yes; then | |
8101 | ac_cv_use_sash='wxUSE_SASH=yes' | |
8102 | else | |
8103 | ac_cv_use_sash='wxUSE_SASH=no' | |
8104 | fi | |
8105 | ||
8106 | else | |
8107 | ||
8108 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` | |
8109 | if test "x$LINE" != x ; then | |
8110 | eval "DEFAULT_$LINE" | |
8111 | else | |
8112 | no_cache=1 | |
8113 | fi | |
8114 | ||
8115 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
8116 | ||
8117 | fi; | |
8118 | ||
8119 | eval "$ac_cv_use_sash" | |
8120 | if test "$no_cache" != 1; then | |
8121 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
8122 | fi | |
8123 | ||
8124 | if test "$wxUSE_SASH" = yes; then | |
8125 | echo "$as_me:$LINENO: result: yes" >&5 | |
8126 | echo "${ECHO_T}yes" >&6 | |
8127 | else | |
8128 | echo "$as_me:$LINENO: result: no" >&5 | |
8129 | echo "${ECHO_T}no" >&6 | |
8130 | fi | |
8131 | ||
8132 | ||
8133 | enablestring= | |
8134 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5 | |
8135 | echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6 | |
8136 | no_cache=0 | |
8137 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
8138 | if test "${enable_scrollbar+set}" = set; then | |
8139 | enableval="$enable_scrollbar" | |
8140 | ||
8141 | if test "$enableval" = yes; then | |
8142 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
8143 | else | |
8144 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
8145 | fi | |
8146 | ||
8147 | else | |
8148 | ||
8149 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` | |
8150 | if test "x$LINE" != x ; then | |
8151 | eval "DEFAULT_$LINE" | |
8152 | else | |
8153 | no_cache=1 | |
8154 | fi | |
8155 | ||
8156 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
8157 | ||
8158 | fi; | |
8159 | ||
8160 | eval "$ac_cv_use_scrollbar" | |
8161 | if test "$no_cache" != 1; then | |
8162 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
8163 | fi | |
8164 | ||
8165 | if test "$wxUSE_SCROLLBAR" = yes; then | |
8166 | echo "$as_me:$LINENO: result: yes" >&5 | |
8167 | echo "${ECHO_T}yes" >&6 | |
8168 | else | |
8169 | echo "$as_me:$LINENO: result: no" >&5 | |
8170 | echo "${ECHO_T}no" >&6 | |
8171 | fi | |
8172 | ||
8173 | ||
8174 | enablestring= | |
8175 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5 | |
8176 | echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6 | |
8177 | no_cache=0 | |
8178 | # Check whether --enable-slider or --disable-slider was given. | |
8179 | if test "${enable_slider+set}" = set; then | |
8180 | enableval="$enable_slider" | |
8181 | ||
8182 | if test "$enableval" = yes; then | |
8183 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
8184 | else | |
8185 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
8186 | fi | |
8187 | ||
8188 | else | |
8189 | ||
8190 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` | |
8191 | if test "x$LINE" != x ; then | |
8192 | eval "DEFAULT_$LINE" | |
8193 | else | |
8194 | no_cache=1 | |
8195 | fi | |
8196 | ||
8197 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
8198 | ||
8199 | fi; | |
8200 | ||
8201 | eval "$ac_cv_use_slider" | |
8202 | if test "$no_cache" != 1; then | |
8203 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
8204 | fi | |
8205 | ||
8206 | if test "$wxUSE_SLIDER" = yes; then | |
8207 | echo "$as_me:$LINENO: result: yes" >&5 | |
8208 | echo "${ECHO_T}yes" >&6 | |
8209 | else | |
8210 | echo "$as_me:$LINENO: result: no" >&5 | |
8211 | echo "${ECHO_T}no" >&6 | |
8212 | fi | |
8213 | ||
8214 | ||
8215 | enablestring= | |
8216 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5 | |
8217 | echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6 | |
8218 | no_cache=0 | |
8219 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
8220 | if test "${enable_spinbtn+set}" = set; then | |
8221 | enableval="$enable_spinbtn" | |
8222 | ||
8223 | if test "$enableval" = yes; then | |
8224 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
8225 | else | |
8226 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
8227 | fi | |
8228 | ||
8229 | else | |
8230 | ||
8231 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` | |
8232 | if test "x$LINE" != x ; then | |
8233 | eval "DEFAULT_$LINE" | |
8234 | else | |
8235 | no_cache=1 | |
8236 | fi | |
8237 | ||
8238 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
8239 | ||
8240 | fi; | |
8241 | ||
8242 | eval "$ac_cv_use_spinbtn" | |
8243 | if test "$no_cache" != 1; then | |
8244 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
8245 | fi | |
8246 | ||
8247 | if test "$wxUSE_SPINBTN" = yes; then | |
8248 | echo "$as_me:$LINENO: result: yes" >&5 | |
8249 | echo "${ECHO_T}yes" >&6 | |
8250 | else | |
8251 | echo "$as_me:$LINENO: result: no" >&5 | |
8252 | echo "${ECHO_T}no" >&6 | |
8253 | fi | |
8254 | ||
8255 | ||
8256 | enablestring= | |
8257 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5 | |
8258 | echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6 | |
8259 | no_cache=0 | |
8260 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
8261 | if test "${enable_spinctrl+set}" = set; then | |
8262 | enableval="$enable_spinctrl" | |
8263 | ||
8264 | if test "$enableval" = yes; then | |
8265 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
8266 | else | |
8267 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
8268 | fi | |
8269 | ||
8270 | else | |
8271 | ||
8272 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` | |
8273 | if test "x$LINE" != x ; then | |
8274 | eval "DEFAULT_$LINE" | |
8275 | else | |
8276 | no_cache=1 | |
8277 | fi | |
8278 | ||
8279 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
8280 | ||
8281 | fi; | |
8282 | ||
8283 | eval "$ac_cv_use_spinctrl" | |
8284 | if test "$no_cache" != 1; then | |
8285 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
8286 | fi | |
8287 | ||
8288 | if test "$wxUSE_SPINCTRL" = yes; then | |
8289 | echo "$as_me:$LINENO: result: yes" >&5 | |
8290 | echo "${ECHO_T}yes" >&6 | |
8291 | else | |
8292 | echo "$as_me:$LINENO: result: no" >&5 | |
8293 | echo "${ECHO_T}no" >&6 | |
8294 | fi | |
8295 | ||
8296 | ||
8297 | enablestring= | |
8298 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5 | |
8299 | echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6 | |
8300 | no_cache=0 | |
8301 | # Check whether --enable-splitter or --disable-splitter was given. | |
8302 | if test "${enable_splitter+set}" = set; then | |
8303 | enableval="$enable_splitter" | |
8304 | ||
8305 | if test "$enableval" = yes; then | |
8306 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
8307 | else | |
8308 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
8309 | fi | |
8310 | ||
8311 | else | |
8312 | ||
8313 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` | |
8314 | if test "x$LINE" != x ; then | |
8315 | eval "DEFAULT_$LINE" | |
8316 | else | |
8317 | no_cache=1 | |
8318 | fi | |
8319 | ||
8320 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
8321 | ||
8322 | fi; | |
8323 | ||
8324 | eval "$ac_cv_use_splitter" | |
8325 | if test "$no_cache" != 1; then | |
8326 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
8327 | fi | |
8328 | ||
8329 | if test "$wxUSE_SPLITTER" = yes; then | |
8330 | echo "$as_me:$LINENO: result: yes" >&5 | |
8331 | echo "${ECHO_T}yes" >&6 | |
8332 | else | |
8333 | echo "$as_me:$LINENO: result: no" >&5 | |
8334 | echo "${ECHO_T}no" >&6 | |
8335 | fi | |
8336 | ||
8337 | ||
8338 | enablestring= | |
8339 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5 | |
8340 | echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6 | |
8341 | no_cache=0 | |
8342 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
8343 | if test "${enable_statbmp+set}" = set; then | |
8344 | enableval="$enable_statbmp" | |
8345 | ||
8346 | if test "$enableval" = yes; then | |
8347 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
8348 | else | |
8349 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
8350 | fi | |
8351 | ||
8352 | else | |
8353 | ||
8354 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` | |
8355 | if test "x$LINE" != x ; then | |
8356 | eval "DEFAULT_$LINE" | |
8357 | else | |
8358 | no_cache=1 | |
8359 | fi | |
8360 | ||
8361 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
8362 | ||
8363 | fi; | |
8364 | ||
8365 | eval "$ac_cv_use_statbmp" | |
8366 | if test "$no_cache" != 1; then | |
8367 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
8368 | fi | |
8369 | ||
8370 | if test "$wxUSE_STATBMP" = yes; then | |
8371 | echo "$as_me:$LINENO: result: yes" >&5 | |
8372 | echo "${ECHO_T}yes" >&6 | |
8373 | else | |
8374 | echo "$as_me:$LINENO: result: no" >&5 | |
8375 | echo "${ECHO_T}no" >&6 | |
8376 | fi | |
8377 | ||
8378 | ||
8379 | enablestring= | |
8380 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5 | |
8381 | echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6 | |
8382 | no_cache=0 | |
8383 | # Check whether --enable-statbox or --disable-statbox was given. | |
8384 | if test "${enable_statbox+set}" = set; then | |
8385 | enableval="$enable_statbox" | |
8386 | ||
8387 | if test "$enableval" = yes; then | |
8388 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
8389 | else | |
8390 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
8391 | fi | |
8392 | ||
8393 | else | |
8394 | ||
8395 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` | |
8396 | if test "x$LINE" != x ; then | |
8397 | eval "DEFAULT_$LINE" | |
8398 | else | |
8399 | no_cache=1 | |
8400 | fi | |
8401 | ||
8402 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
8403 | ||
8404 | fi; | |
8405 | ||
8406 | eval "$ac_cv_use_statbox" | |
8407 | if test "$no_cache" != 1; then | |
8408 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
8409 | fi | |
8410 | ||
8411 | if test "$wxUSE_STATBOX" = yes; then | |
8412 | echo "$as_me:$LINENO: result: yes" >&5 | |
8413 | echo "${ECHO_T}yes" >&6 | |
8414 | else | |
8415 | echo "$as_me:$LINENO: result: no" >&5 | |
8416 | echo "${ECHO_T}no" >&6 | |
8417 | fi | |
8418 | ||
8419 | ||
8420 | enablestring= | |
8421 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5 | |
8422 | echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6 | |
8423 | no_cache=0 | |
8424 | # Check whether --enable-statline or --disable-statline was given. | |
8425 | if test "${enable_statline+set}" = set; then | |
8426 | enableval="$enable_statline" | |
8427 | ||
8428 | if test "$enableval" = yes; then | |
8429 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
8430 | else | |
8431 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
8432 | fi | |
8433 | ||
8434 | else | |
8435 | ||
8436 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` | |
8437 | if test "x$LINE" != x ; then | |
8438 | eval "DEFAULT_$LINE" | |
8439 | else | |
8440 | no_cache=1 | |
8441 | fi | |
8442 | ||
8443 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
8444 | ||
8445 | fi; | |
8446 | ||
8447 | eval "$ac_cv_use_statline" | |
8448 | if test "$no_cache" != 1; then | |
8449 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
8450 | fi | |
8451 | ||
8452 | if test "$wxUSE_STATLINE" = yes; then | |
8453 | echo "$as_me:$LINENO: result: yes" >&5 | |
8454 | echo "${ECHO_T}yes" >&6 | |
8455 | else | |
8456 | echo "$as_me:$LINENO: result: no" >&5 | |
8457 | echo "${ECHO_T}no" >&6 | |
8458 | fi | |
8459 | ||
8460 | ||
8461 | enablestring= | |
8462 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5 | |
8463 | echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6 | |
8464 | no_cache=0 | |
8465 | # Check whether --enable-stattext or --disable-stattext was given. | |
8466 | if test "${enable_stattext+set}" = set; then | |
8467 | enableval="$enable_stattext" | |
8468 | ||
8469 | if test "$enableval" = yes; then | |
8470 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
8471 | else | |
8472 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
8473 | fi | |
8474 | ||
8475 | else | |
8476 | ||
8477 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
8478 | if test "x$LINE" != x ; then | |
8479 | eval "DEFAULT_$LINE" | |
8480 | else | |
8481 | no_cache=1 | |
8482 | fi | |
8483 | ||
8484 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
8485 | ||
8486 | fi; | |
8487 | ||
8488 | eval "$ac_cv_use_stattext" | |
8489 | if test "$no_cache" != 1; then | |
8490 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
8491 | fi | |
8492 | ||
8493 | if test "$wxUSE_STATTEXT" = yes; then | |
8494 | echo "$as_me:$LINENO: result: yes" >&5 | |
8495 | echo "${ECHO_T}yes" >&6 | |
8496 | else | |
8497 | echo "$as_me:$LINENO: result: no" >&5 | |
8498 | echo "${ECHO_T}no" >&6 | |
8499 | fi | |
8500 | ||
8501 | ||
8502 | enablestring= | |
8503 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5 | |
8504 | echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6 | |
8505 | no_cache=0 | |
8506 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
8507 | if test "${enable_statusbar+set}" = set; then | |
8508 | enableval="$enable_statusbar" | |
8509 | ||
8510 | if test "$enableval" = yes; then | |
8511 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
8512 | else | |
8513 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
8514 | fi | |
8515 | ||
8516 | else | |
8517 | ||
8518 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` | |
8519 | if test "x$LINE" != x ; then | |
8520 | eval "DEFAULT_$LINE" | |
8521 | else | |
8522 | no_cache=1 | |
8523 | fi | |
8524 | ||
8525 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
8526 | ||
8527 | fi; | |
8528 | ||
8529 | eval "$ac_cv_use_statusbar" | |
8530 | if test "$no_cache" != 1; then | |
8531 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
8532 | fi | |
8533 | ||
8534 | if test "$wxUSE_STATUSBAR" = yes; then | |
8535 | echo "$as_me:$LINENO: result: yes" >&5 | |
8536 | echo "${ECHO_T}yes" >&6 | |
8537 | else | |
8538 | echo "$as_me:$LINENO: result: no" >&5 | |
8539 | echo "${ECHO_T}no" >&6 | |
8540 | fi | |
8541 | ||
8542 | ||
8543 | enablestring= | |
8544 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5 | |
8545 | echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6 | |
8546 | no_cache=0 | |
8547 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
8548 | if test "${enable_tabdialog+set}" = set; then | |
8549 | enableval="$enable_tabdialog" | |
8550 | ||
8551 | if test "$enableval" = yes; then | |
8552 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
8553 | else | |
8554 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
8555 | fi | |
8556 | ||
8557 | else | |
8558 | ||
8559 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` | |
8560 | if test "x$LINE" != x ; then | |
8561 | eval "DEFAULT_$LINE" | |
8562 | else | |
8563 | no_cache=1 | |
8564 | fi | |
8565 | ||
8566 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
8567 | ||
8568 | fi; | |
8569 | ||
8570 | eval "$ac_cv_use_tabdialog" | |
8571 | if test "$no_cache" != 1; then | |
8572 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
8573 | fi | |
8574 | ||
8575 | if test "$wxUSE_TABDIALOG" = yes; then | |
8576 | echo "$as_me:$LINENO: result: yes" >&5 | |
8577 | echo "${ECHO_T}yes" >&6 | |
8578 | else | |
8579 | echo "$as_me:$LINENO: result: no" >&5 | |
8580 | echo "${ECHO_T}no" >&6 | |
8581 | fi | |
8582 | ||
8583 | ||
8584 | enablestring= | |
8585 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5 | |
8586 | echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6 | |
8587 | no_cache=0 | |
8588 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
8589 | if test "${enable_textctrl+set}" = set; then | |
8590 | enableval="$enable_textctrl" | |
8591 | ||
8592 | if test "$enableval" = yes; then | |
8593 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
8594 | else | |
8595 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
8596 | fi | |
8597 | ||
8598 | else | |
8599 | ||
8600 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
8601 | if test "x$LINE" != x ; then | |
8602 | eval "DEFAULT_$LINE" | |
8603 | else | |
8604 | no_cache=1 | |
8605 | fi | |
8606 | ||
8607 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
8608 | ||
8609 | fi; | |
8610 | ||
8611 | eval "$ac_cv_use_textctrl" | |
8612 | if test "$no_cache" != 1; then | |
8613 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
8614 | fi | |
8615 | ||
8616 | if test "$wxUSE_TEXTCTRL" = yes; then | |
8617 | echo "$as_me:$LINENO: result: yes" >&5 | |
8618 | echo "${ECHO_T}yes" >&6 | |
8619 | else | |
8620 | echo "$as_me:$LINENO: result: no" >&5 | |
8621 | echo "${ECHO_T}no" >&6 | |
8622 | fi | |
8623 | ||
8624 | ||
8625 | enablestring= | |
8626 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5 | |
8627 | echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6 | |
8628 | no_cache=0 | |
8629 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
8630 | if test "${enable_togglebtn+set}" = set; then | |
8631 | enableval="$enable_togglebtn" | |
8632 | ||
8633 | if test "$enableval" = yes; then | |
8634 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
8635 | else | |
8636 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
8637 | fi | |
8638 | ||
8639 | else | |
8640 | ||
8641 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` | |
8642 | if test "x$LINE" != x ; then | |
8643 | eval "DEFAULT_$LINE" | |
8644 | else | |
8645 | no_cache=1 | |
8646 | fi | |
8647 | ||
8648 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
8649 | ||
8650 | fi; | |
8651 | ||
8652 | eval "$ac_cv_use_togglebtn" | |
8653 | if test "$no_cache" != 1; then | |
8654 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
8655 | fi | |
8656 | ||
8657 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
8658 | echo "$as_me:$LINENO: result: yes" >&5 | |
8659 | echo "${ECHO_T}yes" >&6 | |
8660 | else | |
8661 | echo "$as_me:$LINENO: result: no" >&5 | |
8662 | echo "${ECHO_T}no" >&6 | |
8663 | fi | |
8664 | ||
8665 | ||
8666 | enablestring= | |
8667 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5 | |
8668 | echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6 | |
8669 | no_cache=0 | |
8670 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
8671 | if test "${enable_toolbar+set}" = set; then | |
8672 | enableval="$enable_toolbar" | |
8673 | ||
8674 | if test "$enableval" = yes; then | |
8675 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
8676 | else | |
8677 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
8678 | fi | |
8679 | ||
8680 | else | |
8681 | ||
8682 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` | |
8683 | if test "x$LINE" != x ; then | |
8684 | eval "DEFAULT_$LINE" | |
8685 | else | |
8686 | no_cache=1 | |
8687 | fi | |
8688 | ||
8689 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
8690 | ||
8691 | fi; | |
8692 | ||
8693 | eval "$ac_cv_use_toolbar" | |
8694 | if test "$no_cache" != 1; then | |
8695 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
8696 | fi | |
8697 | ||
8698 | if test "$wxUSE_TOOLBAR" = yes; then | |
8699 | echo "$as_me:$LINENO: result: yes" >&5 | |
8700 | echo "${ECHO_T}yes" >&6 | |
8701 | else | |
8702 | echo "$as_me:$LINENO: result: no" >&5 | |
8703 | echo "${ECHO_T}no" >&6 | |
8704 | fi | |
8705 | ||
8706 | ||
8707 | enablestring= | |
8708 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5 | |
8709 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6 | |
8710 | no_cache=0 | |
8711 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
8712 | if test "${enable_tbarnative+set}" = set; then | |
8713 | enableval="$enable_tbarnative" | |
8714 | ||
8715 | if test "$enableval" = yes; then | |
8716 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
8717 | else | |
8718 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
8719 | fi | |
8720 | ||
8721 | else | |
8722 | ||
8723 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` | |
8724 | if test "x$LINE" != x ; then | |
8725 | eval "DEFAULT_$LINE" | |
8726 | else | |
8727 | no_cache=1 | |
8728 | fi | |
8729 | ||
8730 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
8731 | ||
8732 | fi; | |
8733 | ||
8734 | eval "$ac_cv_use_tbarnative" | |
8735 | if test "$no_cache" != 1; then | |
8736 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
8737 | fi | |
8738 | ||
8739 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
8740 | echo "$as_me:$LINENO: result: yes" >&5 | |
8741 | echo "${ECHO_T}yes" >&6 | |
8742 | else | |
8743 | echo "$as_me:$LINENO: result: no" >&5 | |
8744 | echo "${ECHO_T}no" >&6 | |
8745 | fi | |
8746 | ||
8747 | ||
8748 | enablestring= | |
8749 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5 | |
8750 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6 | |
8751 | no_cache=0 | |
8752 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
8753 | if test "${enable_tbarsmpl+set}" = set; then | |
8754 | enableval="$enable_tbarsmpl" | |
8755 | ||
8756 | if test "$enableval" = yes; then | |
8757 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
8758 | else | |
8759 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
8760 | fi | |
8761 | ||
8762 | else | |
8763 | ||
8764 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` | |
8765 | if test "x$LINE" != x ; then | |
8766 | eval "DEFAULT_$LINE" | |
8767 | else | |
8768 | no_cache=1 | |
8769 | fi | |
8770 | ||
8771 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
8772 | ||
8773 | fi; | |
8774 | ||
8775 | eval "$ac_cv_use_tbarsmpl" | |
8776 | if test "$no_cache" != 1; then | |
8777 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
8778 | fi | |
8779 | ||
8780 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
8781 | echo "$as_me:$LINENO: result: yes" >&5 | |
8782 | echo "${ECHO_T}yes" >&6 | |
8783 | else | |
8784 | echo "$as_me:$LINENO: result: no" >&5 | |
8785 | echo "${ECHO_T}no" >&6 | |
8786 | fi | |
8787 | ||
8788 | ||
8789 | enablestring= | |
8790 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5 | |
8791 | echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6 | |
8792 | no_cache=0 | |
8793 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
8794 | if test "${enable_treectrl+set}" = set; then | |
8795 | enableval="$enable_treectrl" | |
8796 | ||
8797 | if test "$enableval" = yes; then | |
8798 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
8799 | else | |
8800 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
8801 | fi | |
8802 | ||
8803 | else | |
8804 | ||
8805 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` | |
8806 | if test "x$LINE" != x ; then | |
8807 | eval "DEFAULT_$LINE" | |
8808 | else | |
8809 | no_cache=1 | |
8810 | fi | |
8811 | ||
8812 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
8813 | ||
8814 | fi; | |
8815 | ||
8816 | eval "$ac_cv_use_treectrl" | |
8817 | if test "$no_cache" != 1; then | |
8818 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
8819 | fi | |
8820 | ||
8821 | if test "$wxUSE_TREECTRL" = yes; then | |
8822 | echo "$as_me:$LINENO: result: yes" >&5 | |
8823 | echo "${ECHO_T}yes" >&6 | |
8824 | else | |
8825 | echo "$as_me:$LINENO: result: no" >&5 | |
8826 | echo "${ECHO_T}no" >&6 | |
8827 | fi | |
8828 | ||
8829 | ||
8830 | enablestring= | |
8831 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5 | |
8832 | echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6 | |
8833 | no_cache=0 | |
8834 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
8835 | if test "${enable_tipwindow+set}" = set; then | |
8836 | enableval="$enable_tipwindow" | |
8837 | ||
8838 | if test "$enableval" = yes; then | |
8839 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
8840 | else | |
8841 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
8842 | fi | |
8843 | ||
8844 | else | |
8845 | ||
8846 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` | |
8847 | if test "x$LINE" != x ; then | |
8848 | eval "DEFAULT_$LINE" | |
8849 | else | |
8850 | no_cache=1 | |
8851 | fi | |
8852 | ||
8853 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
8854 | ||
8855 | fi; | |
8856 | ||
8857 | eval "$ac_cv_use_tipwindow" | |
8858 | if test "$no_cache" != 1; then | |
8859 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
8860 | fi | |
8861 | ||
8862 | if test "$wxUSE_TIPWINDOW" = yes; then | |
8863 | echo "$as_me:$LINENO: result: yes" >&5 | |
8864 | echo "${ECHO_T}yes" >&6 | |
8865 | else | |
8866 | echo "$as_me:$LINENO: result: no" >&5 | |
8867 | echo "${ECHO_T}no" >&6 | |
8868 | fi | |
8869 | ||
8870 | ||
8871 | enablestring= | |
8872 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5 | |
8873 | echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6 | |
8874 | no_cache=0 | |
8875 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
8876 | if test "${enable_popupwin+set}" = set; then | |
8877 | enableval="$enable_popupwin" | |
8878 | ||
8879 | if test "$enableval" = yes; then | |
8880 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
8881 | else | |
8882 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
8883 | fi | |
8884 | ||
8885 | else | |
8886 | ||
8887 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
8888 | if test "x$LINE" != x ; then | |
8889 | eval "DEFAULT_$LINE" | |
8890 | else | |
8891 | no_cache=1 | |
8892 | fi | |
8893 | ||
8894 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
8895 | ||
8896 | fi; | |
8897 | ||
8898 | eval "$ac_cv_use_popupwin" | |
8899 | if test "$no_cache" != 1; then | |
8900 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
8901 | fi | |
8902 | ||
8903 | if test "$wxUSE_POPUPWIN" = yes; then | |
8904 | echo "$as_me:$LINENO: result: yes" >&5 | |
8905 | echo "${ECHO_T}yes" >&6 | |
8906 | else | |
8907 | echo "$as_me:$LINENO: result: no" >&5 | |
8908 | echo "${ECHO_T}no" >&6 | |
8909 | fi | |
8910 | ||
8911 | ||
8912 | ||
8913 | ||
8914 | enablestring= | |
8915 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5 | |
8916 | echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6 | |
8917 | no_cache=0 | |
8918 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
8919 | if test "${enable_commondlg+set}" = set; then | |
8920 | enableval="$enable_commondlg" | |
8921 | ||
8922 | if test "$enableval" = yes; then | |
8923 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
8924 | else | |
8925 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
8926 | fi | |
8927 | ||
8928 | else | |
8929 | ||
8930 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
8931 | if test "x$LINE" != x ; then | |
8932 | eval "DEFAULT_$LINE" | |
8933 | else | |
8934 | no_cache=1 | |
8935 | fi | |
8936 | ||
8937 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
8938 | ||
8939 | fi; | |
8940 | ||
8941 | eval "$ac_cv_use_commondlg" | |
8942 | if test "$no_cache" != 1; then | |
8943 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
8944 | fi | |
8945 | ||
8946 | if test "$wxUSE_COMMONDLGS" = yes; then | |
8947 | echo "$as_me:$LINENO: result: yes" >&5 | |
8948 | echo "${ECHO_T}yes" >&6 | |
8949 | else | |
8950 | echo "$as_me:$LINENO: result: no" >&5 | |
8951 | echo "${ECHO_T}no" >&6 | |
8952 | fi | |
8953 | ||
8954 | ||
8955 | enablestring= | |
8956 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5 | |
8957 | echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6 | |
8958 | no_cache=0 | |
8959 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
8960 | if test "${enable_choicedlg+set}" = set; then | |
8961 | enableval="$enable_choicedlg" | |
8962 | ||
8963 | if test "$enableval" = yes; then | |
8964 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
8965 | else | |
8966 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
8967 | fi | |
8968 | ||
8969 | else | |
8970 | ||
8971 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
8972 | if test "x$LINE" != x ; then | |
8973 | eval "DEFAULT_$LINE" | |
8974 | else | |
8975 | no_cache=1 | |
8976 | fi | |
8977 | ||
8978 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
8979 | ||
8980 | fi; | |
8981 | ||
8982 | eval "$ac_cv_use_choicedlg" | |
8983 | if test "$no_cache" != 1; then | |
8984 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
8985 | fi | |
8986 | ||
8987 | if test "$wxUSE_CHOICEDLG" = yes; then | |
8988 | echo "$as_me:$LINENO: result: yes" >&5 | |
8989 | echo "${ECHO_T}yes" >&6 | |
8990 | else | |
8991 | echo "$as_me:$LINENO: result: no" >&5 | |
8992 | echo "${ECHO_T}no" >&6 | |
8993 | fi | |
8994 | ||
8995 | ||
8996 | enablestring= | |
8997 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5 | |
8998 | echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6 | |
8999 | no_cache=0 | |
9000 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
9001 | if test "${enable_coldlg+set}" = set; then | |
9002 | enableval="$enable_coldlg" | |
9003 | ||
9004 | if test "$enableval" = yes; then | |
9005 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
9006 | else | |
9007 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
9008 | fi | |
9009 | ||
9010 | else | |
9011 | ||
9012 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
9013 | if test "x$LINE" != x ; then | |
9014 | eval "DEFAULT_$LINE" | |
9015 | else | |
9016 | no_cache=1 | |
9017 | fi | |
9018 | ||
9019 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
9020 | ||
9021 | fi; | |
9022 | ||
9023 | eval "$ac_cv_use_coldlg" | |
9024 | if test "$no_cache" != 1; then | |
9025 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
9026 | fi | |
9027 | ||
9028 | if test "$wxUSE_COLOURDLG" = yes; then | |
9029 | echo "$as_me:$LINENO: result: yes" >&5 | |
9030 | echo "${ECHO_T}yes" >&6 | |
9031 | else | |
9032 | echo "$as_me:$LINENO: result: no" >&5 | |
9033 | echo "${ECHO_T}no" >&6 | |
9034 | fi | |
9035 | ||
9036 | ||
9037 | enablestring= | |
9038 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5 | |
9039 | echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6 | |
9040 | no_cache=0 | |
9041 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
9042 | if test "${enable_filedlg+set}" = set; then | |
9043 | enableval="$enable_filedlg" | |
9044 | ||
9045 | if test "$enableval" = yes; then | |
9046 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
9047 | else | |
9048 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
9049 | fi | |
9050 | ||
9051 | else | |
9052 | ||
9053 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
9054 | if test "x$LINE" != x ; then | |
9055 | eval "DEFAULT_$LINE" | |
9056 | else | |
9057 | no_cache=1 | |
9058 | fi | |
9059 | ||
9060 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
9061 | ||
9062 | fi; | |
9063 | ||
9064 | eval "$ac_cv_use_filedlg" | |
9065 | if test "$no_cache" != 1; then | |
9066 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
9067 | fi | |
9068 | ||
9069 | if test "$wxUSE_FILEDLG" = yes; then | |
9070 | echo "$as_me:$LINENO: result: yes" >&5 | |
9071 | echo "${ECHO_T}yes" >&6 | |
9072 | else | |
9073 | echo "$as_me:$LINENO: result: no" >&5 | |
9074 | echo "${ECHO_T}no" >&6 | |
9075 | fi | |
9076 | ||
9077 | ||
9078 | enablestring= | |
9079 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5 | |
9080 | echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6 | |
9081 | no_cache=0 | |
9082 | # Check whether --enable-finddlg or --disable-finddlg was given. | |
9083 | if test "${enable_finddlg+set}" = set; then | |
9084 | enableval="$enable_finddlg" | |
9085 | ||
9086 | if test "$enableval" = yes; then | |
9087 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' | |
9088 | else | |
9089 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' | |
9090 | fi | |
9091 | ||
9092 | else | |
9093 | ||
9094 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
9095 | if test "x$LINE" != x ; then | |
9096 | eval "DEFAULT_$LINE" | |
9097 | else | |
9098 | no_cache=1 | |
9099 | fi | |
9100 | ||
9101 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG | |
9102 | ||
9103 | fi; | |
9104 | ||
9105 | eval "$ac_cv_use_finddlg" | |
9106 | if test "$no_cache" != 1; then | |
9107 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp | |
9108 | fi | |
9109 | ||
9110 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
9111 | echo "$as_me:$LINENO: result: yes" >&5 | |
9112 | echo "${ECHO_T}yes" >&6 | |
9113 | else | |
9114 | echo "$as_me:$LINENO: result: no" >&5 | |
9115 | echo "${ECHO_T}no" >&6 | |
9116 | fi | |
9117 | ||
9118 | ||
9119 | enablestring= | |
9120 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5 | |
9121 | echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6 | |
9122 | no_cache=0 | |
9123 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
9124 | if test "${enable_fontdlg+set}" = set; then | |
9125 | enableval="$enable_fontdlg" | |
9126 | ||
9127 | if test "$enableval" = yes; then | |
9128 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
9129 | else | |
9130 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
9131 | fi | |
9132 | ||
9133 | else | |
9134 | ||
9135 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
9136 | if test "x$LINE" != x ; then | |
9137 | eval "DEFAULT_$LINE" | |
9138 | else | |
9139 | no_cache=1 | |
9140 | fi | |
9141 | ||
9142 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
9143 | ||
9144 | fi; | |
9145 | ||
9146 | eval "$ac_cv_use_fontdlg" | |
9147 | if test "$no_cache" != 1; then | |
9148 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
9149 | fi | |
9150 | ||
9151 | if test "$wxUSE_FONTDLG" = yes; then | |
9152 | echo "$as_me:$LINENO: result: yes" >&5 | |
9153 | echo "${ECHO_T}yes" >&6 | |
9154 | else | |
9155 | echo "$as_me:$LINENO: result: no" >&5 | |
9156 | echo "${ECHO_T}no" >&6 | |
9157 | fi | |
9158 | ||
9159 | ||
9160 | enablestring= | |
9161 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5 | |
9162 | echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6 | |
9163 | no_cache=0 | |
9164 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
9165 | if test "${enable_dirdlg+set}" = set; then | |
9166 | enableval="$enable_dirdlg" | |
9167 | ||
9168 | if test "$enableval" = yes; then | |
9169 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
9170 | else | |
9171 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
9172 | fi | |
9173 | ||
9174 | else | |
9175 | ||
9176 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
9177 | if test "x$LINE" != x ; then | |
9178 | eval "DEFAULT_$LINE" | |
9179 | else | |
9180 | no_cache=1 | |
9181 | fi | |
9182 | ||
9183 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
9184 | ||
9185 | fi; | |
9186 | ||
9187 | eval "$ac_cv_use_dirdlg" | |
9188 | if test "$no_cache" != 1; then | |
9189 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp | |
9190 | fi | |
9191 | ||
9192 | if test "$wxUSE_DIRDLG" = yes; then | |
9193 | echo "$as_me:$LINENO: result: yes" >&5 | |
9194 | echo "${ECHO_T}yes" >&6 | |
9195 | else | |
9196 | echo "$as_me:$LINENO: result: no" >&5 | |
9197 | echo "${ECHO_T}no" >&6 | |
9198 | fi | |
9199 | ||
9200 | ||
9201 | enablestring= | |
9202 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5 | |
9203 | echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6 | |
9204 | no_cache=0 | |
9205 | # Check whether --enable-msgdlg or --disable-msgdlg was given. | |
9206 | if test "${enable_msgdlg+set}" = set; then | |
9207 | enableval="$enable_msgdlg" | |
9208 | ||
9209 | if test "$enableval" = yes; then | |
9210 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' | |
9211 | else | |
9212 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' | |
9213 | fi | |
9214 | ||
9215 | else | |
9216 | ||
9217 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` | |
9218 | if test "x$LINE" != x ; then | |
9219 | eval "DEFAULT_$LINE" | |
9220 | else | |
9221 | no_cache=1 | |
9222 | fi | |
9223 | ||
9224 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG | |
9225 | ||
9226 | fi; | |
9227 | ||
9228 | eval "$ac_cv_use_msgdlg" | |
9229 | if test "$no_cache" != 1; then | |
9230 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp | |
9231 | fi | |
9232 | ||
9233 | if test "$wxUSE_MSGDLG" = yes; then | |
9234 | echo "$as_me:$LINENO: result: yes" >&5 | |
9235 | echo "${ECHO_T}yes" >&6 | |
9236 | else | |
9237 | echo "$as_me:$LINENO: result: no" >&5 | |
9238 | echo "${ECHO_T}no" >&6 | |
9239 | fi | |
9240 | ||
9241 | ||
9242 | enablestring= | |
9243 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5 | |
9244 | echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6 | |
9245 | no_cache=0 | |
9246 | # Check whether --enable-numberdlg or --disable-numberdlg was given. | |
9247 | if test "${enable_numberdlg+set}" = set; then | |
9248 | enableval="$enable_numberdlg" | |
9249 | ||
9250 | if test "$enableval" = yes; then | |
9251 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' | |
9252 | else | |
9253 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' | |
9254 | fi | |
9255 | ||
9256 | else | |
9257 | ||
9258 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` | |
9259 | if test "x$LINE" != x ; then | |
9260 | eval "DEFAULT_$LINE" | |
9261 | else | |
9262 | no_cache=1 | |
9263 | fi | |
9264 | ||
9265 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG | |
9266 | ||
9267 | fi; | |
9268 | ||
9269 | eval "$ac_cv_use_numberdlg" | |
9270 | if test "$no_cache" != 1; then | |
9271 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp | |
9272 | fi | |
9273 | ||
9274 | if test "$wxUSE_NUMBERDLG" = yes; then | |
9275 | echo "$as_me:$LINENO: result: yes" >&5 | |
9276 | echo "${ECHO_T}yes" >&6 | |
9277 | else | |
9278 | echo "$as_me:$LINENO: result: no" >&5 | |
9279 | echo "${ECHO_T}no" >&6 | |
9280 | fi | |
9281 | ||
9282 | ||
9283 | enablestring= | |
9284 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5 | |
9285 | echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6 | |
9286 | no_cache=0 | |
9287 | # Check whether --enable-splash or --disable-splash was given. | |
9288 | if test "${enable_splash+set}" = set; then | |
9289 | enableval="$enable_splash" | |
9290 | ||
9291 | if test "$enableval" = yes; then | |
9292 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
9293 | else | |
9294 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
9295 | fi | |
9296 | ||
9297 | else | |
9298 | ||
9299 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
9300 | if test "x$LINE" != x ; then | |
9301 | eval "DEFAULT_$LINE" | |
9302 | else | |
9303 | no_cache=1 | |
9304 | fi | |
9305 | ||
9306 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
9307 | ||
9308 | fi; | |
9309 | ||
9310 | eval "$ac_cv_use_splash" | |
9311 | if test "$no_cache" != 1; then | |
9312 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
9313 | fi | |
9314 | ||
9315 | if test "$wxUSE_SPLASH" = yes; then | |
9316 | echo "$as_me:$LINENO: result: yes" >&5 | |
9317 | echo "${ECHO_T}yes" >&6 | |
9318 | else | |
9319 | echo "$as_me:$LINENO: result: no" >&5 | |
9320 | echo "${ECHO_T}no" >&6 | |
9321 | fi | |
9322 | ||
9323 | ||
9324 | enablestring= | |
9325 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5 | |
9326 | echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6 | |
9327 | no_cache=0 | |
9328 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
9329 | if test "${enable_textdlg+set}" = set; then | |
9330 | enableval="$enable_textdlg" | |
9331 | ||
9332 | if test "$enableval" = yes; then | |
9333 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
9334 | else | |
9335 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
9336 | fi | |
9337 | ||
9338 | else | |
9339 | ||
9340 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` | |
9341 | if test "x$LINE" != x ; then | |
9342 | eval "DEFAULT_$LINE" | |
9343 | else | |
9344 | no_cache=1 | |
9345 | fi | |
9346 | ||
9347 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
9348 | ||
9349 | fi; | |
9350 | ||
9351 | eval "$ac_cv_use_textdlg" | |
9352 | if test "$no_cache" != 1; then | |
9353 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
9354 | fi | |
9355 | ||
9356 | if test "$wxUSE_TEXTDLG" = yes; then | |
9357 | echo "$as_me:$LINENO: result: yes" >&5 | |
9358 | echo "${ECHO_T}yes" >&6 | |
9359 | else | |
9360 | echo "$as_me:$LINENO: result: no" >&5 | |
9361 | echo "${ECHO_T}no" >&6 | |
9362 | fi | |
9363 | ||
9364 | ||
9365 | enablestring= | |
9366 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5 | |
9367 | echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6 | |
9368 | no_cache=0 | |
9369 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
9370 | if test "${enable_tipdlg+set}" = set; then | |
9371 | enableval="$enable_tipdlg" | |
9372 | ||
9373 | if test "$enableval" = yes; then | |
9374 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
9375 | else | |
9376 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
9377 | fi | |
9378 | ||
9379 | else | |
9380 | ||
9381 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` | |
9382 | if test "x$LINE" != x ; then | |
9383 | eval "DEFAULT_$LINE" | |
9384 | else | |
9385 | no_cache=1 | |
9386 | fi | |
9387 | ||
9388 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
9389 | ||
9390 | fi; | |
9391 | ||
9392 | eval "$ac_cv_use_tipdlg" | |
9393 | if test "$no_cache" != 1; then | |
9394 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
9395 | fi | |
9396 | ||
9397 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
9398 | echo "$as_me:$LINENO: result: yes" >&5 | |
9399 | echo "${ECHO_T}yes" >&6 | |
9400 | else | |
9401 | echo "$as_me:$LINENO: result: no" >&5 | |
9402 | echo "${ECHO_T}no" >&6 | |
9403 | fi | |
9404 | ||
9405 | ||
9406 | enablestring= | |
9407 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5 | |
9408 | echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6 | |
9409 | no_cache=0 | |
9410 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
9411 | if test "${enable_progressdlg+set}" = set; then | |
9412 | enableval="$enable_progressdlg" | |
9413 | ||
9414 | if test "$enableval" = yes; then | |
9415 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
9416 | else | |
9417 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
9418 | fi | |
9419 | ||
9420 | else | |
9421 | ||
9422 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` | |
9423 | if test "x$LINE" != x ; then | |
9424 | eval "DEFAULT_$LINE" | |
9425 | else | |
9426 | no_cache=1 | |
9427 | fi | |
9428 | ||
9429 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
9430 | ||
9431 | fi; | |
9432 | ||
9433 | eval "$ac_cv_use_progressdlg" | |
9434 | if test "$no_cache" != 1; then | |
9435 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
9436 | fi | |
9437 | ||
9438 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
9439 | echo "$as_me:$LINENO: result: yes" >&5 | |
9440 | echo "${ECHO_T}yes" >&6 | |
9441 | else | |
9442 | echo "$as_me:$LINENO: result: no" >&5 | |
9443 | echo "${ECHO_T}no" >&6 | |
9444 | fi | |
9445 | ||
9446 | ||
9447 | enablestring= | |
9448 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5 | |
9449 | echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6 | |
9450 | no_cache=0 | |
9451 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
9452 | if test "${enable_wizarddlg+set}" = set; then | |
9453 | enableval="$enable_wizarddlg" | |
9454 | ||
9455 | if test "$enableval" = yes; then | |
9456 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
9457 | else | |
9458 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
9459 | fi | |
9460 | ||
9461 | else | |
9462 | ||
9463 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
9464 | if test "x$LINE" != x ; then | |
9465 | eval "DEFAULT_$LINE" | |
9466 | else | |
9467 | no_cache=1 | |
9468 | fi | |
9469 | ||
9470 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
9471 | ||
9472 | fi; | |
9473 | ||
9474 | eval "$ac_cv_use_wizarddlg" | |
9475 | if test "$no_cache" != 1; then | |
9476 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
9477 | fi | |
9478 | ||
9479 | if test "$wxUSE_WIZARDDLG" = yes; then | |
9480 | echo "$as_me:$LINENO: result: yes" >&5 | |
9481 | echo "${ECHO_T}yes" >&6 | |
9482 | else | |
9483 | echo "$as_me:$LINENO: result: no" >&5 | |
9484 | echo "${ECHO_T}no" >&6 | |
9485 | fi | |
9486 | ||
9487 | ||
9488 | ||
9489 | ||
9490 | enablestring= | |
9491 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5 | |
9492 | echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6 | |
9493 | no_cache=0 | |
9494 | # Check whether --enable-menus or --disable-menus was given. | |
9495 | if test "${enable_menus+set}" = set; then | |
9496 | enableval="$enable_menus" | |
9497 | ||
9498 | if test "$enableval" = yes; then | |
9499 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
9500 | else | |
9501 | ac_cv_use_menus='wxUSE_MENUS=no' | |
9502 | fi | |
9503 | ||
9504 | else | |
9505 | ||
9506 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
9507 | if test "x$LINE" != x ; then | |
9508 | eval "DEFAULT_$LINE" | |
9509 | else | |
9510 | no_cache=1 | |
9511 | fi | |
9512 | ||
9513 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
9514 | ||
9515 | fi; | |
9516 | ||
9517 | eval "$ac_cv_use_menus" | |
9518 | if test "$no_cache" != 1; then | |
9519 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
9520 | fi | |
9521 | ||
9522 | if test "$wxUSE_MENUS" = yes; then | |
9523 | echo "$as_me:$LINENO: result: yes" >&5 | |
9524 | echo "${ECHO_T}yes" >&6 | |
9525 | else | |
9526 | echo "$as_me:$LINENO: result: no" >&5 | |
9527 | echo "${ECHO_T}no" >&6 | |
9528 | fi | |
9529 | ||
9530 | ||
9531 | enablestring= | |
9532 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5 | |
9533 | echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6 | |
9534 | no_cache=0 | |
9535 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
9536 | if test "${enable_miniframe+set}" = set; then | |
9537 | enableval="$enable_miniframe" | |
9538 | ||
9539 | if test "$enableval" = yes; then | |
9540 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
9541 | else | |
9542 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
9543 | fi | |
9544 | ||
9545 | else | |
9546 | ||
9547 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` | |
9548 | if test "x$LINE" != x ; then | |
9549 | eval "DEFAULT_$LINE" | |
9550 | else | |
9551 | no_cache=1 | |
9552 | fi | |
9553 | ||
9554 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
9555 | ||
9556 | fi; | |
9557 | ||
9558 | eval "$ac_cv_use_miniframe" | |
9559 | if test "$no_cache" != 1; then | |
9560 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
9561 | fi | |
9562 | ||
9563 | if test "$wxUSE_MINIFRAME" = yes; then | |
9564 | echo "$as_me:$LINENO: result: yes" >&5 | |
9565 | echo "${ECHO_T}yes" >&6 | |
9566 | else | |
9567 | echo "$as_me:$LINENO: result: no" >&5 | |
9568 | echo "${ECHO_T}no" >&6 | |
9569 | fi | |
9570 | ||
9571 | ||
9572 | enablestring= | |
9573 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5 | |
9574 | echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6 | |
9575 | no_cache=0 | |
9576 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
9577 | if test "${enable_tooltips+set}" = set; then | |
9578 | enableval="$enable_tooltips" | |
9579 | ||
9580 | if test "$enableval" = yes; then | |
9581 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
9582 | else | |
9583 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
9584 | fi | |
9585 | ||
9586 | else | |
9587 | ||
9588 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` | |
9589 | if test "x$LINE" != x ; then | |
9590 | eval "DEFAULT_$LINE" | |
9591 | else | |
9592 | no_cache=1 | |
9593 | fi | |
9594 | ||
9595 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
9596 | ||
9597 | fi; | |
9598 | ||
9599 | eval "$ac_cv_use_tooltips" | |
9600 | if test "$no_cache" != 1; then | |
9601 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
9602 | fi | |
9603 | ||
9604 | if test "$wxUSE_TOOLTIPS" = yes; then | |
9605 | echo "$as_me:$LINENO: result: yes" >&5 | |
9606 | echo "${ECHO_T}yes" >&6 | |
9607 | else | |
9608 | echo "$as_me:$LINENO: result: no" >&5 | |
9609 | echo "${ECHO_T}no" >&6 | |
9610 | fi | |
9611 | ||
9612 | ||
9613 | enablestring= | |
9614 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5 | |
9615 | echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6 | |
9616 | no_cache=0 | |
9617 | # Check whether --enable-splines or --disable-splines was given. | |
9618 | if test "${enable_splines+set}" = set; then | |
9619 | enableval="$enable_splines" | |
9620 | ||
9621 | if test "$enableval" = yes; then | |
9622 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
9623 | else | |
9624 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
9625 | fi | |
9626 | ||
9627 | else | |
9628 | ||
9629 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` | |
9630 | if test "x$LINE" != x ; then | |
9631 | eval "DEFAULT_$LINE" | |
9632 | else | |
9633 | no_cache=1 | |
9634 | fi | |
9635 | ||
9636 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
9637 | ||
9638 | fi; | |
9639 | ||
9640 | eval "$ac_cv_use_splines" | |
9641 | if test "$no_cache" != 1; then | |
9642 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
9643 | fi | |
9644 | ||
9645 | if test "$wxUSE_SPLINES" = yes; then | |
9646 | echo "$as_me:$LINENO: result: yes" >&5 | |
9647 | echo "${ECHO_T}yes" >&6 | |
9648 | else | |
9649 | echo "$as_me:$LINENO: result: no" >&5 | |
9650 | echo "${ECHO_T}no" >&6 | |
9651 | fi | |
9652 | ||
9653 | ||
9654 | enablestring= | |
9655 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5 | |
9656 | echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6 | |
9657 | no_cache=0 | |
9658 | # Check whether --enable-validators or --disable-validators was given. | |
9659 | if test "${enable_validators+set}" = set; then | |
9660 | enableval="$enable_validators" | |
9661 | ||
9662 | if test "$enableval" = yes; then | |
9663 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
9664 | else | |
9665 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
9666 | fi | |
9667 | ||
9668 | else | |
9669 | ||
9670 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` | |
9671 | if test "x$LINE" != x ; then | |
9672 | eval "DEFAULT_$LINE" | |
9673 | else | |
9674 | no_cache=1 | |
9675 | fi | |
9676 | ||
9677 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
9678 | ||
9679 | fi; | |
9680 | ||
9681 | eval "$ac_cv_use_validators" | |
9682 | if test "$no_cache" != 1; then | |
9683 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
9684 | fi | |
9685 | ||
9686 | if test "$wxUSE_VALIDATORS" = yes; then | |
9687 | echo "$as_me:$LINENO: result: yes" >&5 | |
9688 | echo "${ECHO_T}yes" >&6 | |
9689 | else | |
9690 | echo "$as_me:$LINENO: result: no" >&5 | |
9691 | echo "${ECHO_T}no" >&6 | |
9692 | fi | |
9693 | ||
9694 | ||
9695 | enablestring= | |
9696 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5 | |
9697 | echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6 | |
9698 | no_cache=0 | |
9699 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
9700 | if test "${enable_busyinfo+set}" = set; then | |
9701 | enableval="$enable_busyinfo" | |
9702 | ||
9703 | if test "$enableval" = yes; then | |
9704 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
9705 | else | |
9706 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
9707 | fi | |
9708 | ||
9709 | else | |
9710 | ||
9711 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` | |
9712 | if test "x$LINE" != x ; then | |
9713 | eval "DEFAULT_$LINE" | |
9714 | else | |
9715 | no_cache=1 | |
9716 | fi | |
9717 | ||
9718 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
9719 | ||
9720 | fi; | |
9721 | ||
9722 | eval "$ac_cv_use_busyinfo" | |
9723 | if test "$no_cache" != 1; then | |
9724 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
9725 | fi | |
9726 | ||
9727 | if test "$wxUSE_BUSYINFO" = yes; then | |
9728 | echo "$as_me:$LINENO: result: yes" >&5 | |
9729 | echo "${ECHO_T}yes" >&6 | |
9730 | else | |
9731 | echo "$as_me:$LINENO: result: no" >&5 | |
9732 | echo "${ECHO_T}no" >&6 | |
9733 | fi | |
9734 | ||
9735 | ||
9736 | enablestring= | |
9737 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5 | |
9738 | echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6 | |
9739 | no_cache=0 | |
9740 | # Check whether --enable-joystick or --disable-joystick was given. | |
9741 | if test "${enable_joystick+set}" = set; then | |
9742 | enableval="$enable_joystick" | |
9743 | ||
9744 | if test "$enableval" = yes; then | |
9745 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
9746 | else | |
9747 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
9748 | fi | |
9749 | ||
9750 | else | |
9751 | ||
9752 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` | |
9753 | if test "x$LINE" != x ; then | |
9754 | eval "DEFAULT_$LINE" | |
9755 | else | |
9756 | no_cache=1 | |
9757 | fi | |
9758 | ||
9759 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
9760 | ||
9761 | fi; | |
9762 | ||
9763 | eval "$ac_cv_use_joystick" | |
9764 | if test "$no_cache" != 1; then | |
9765 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
9766 | fi | |
9767 | ||
9768 | if test "$wxUSE_JOYSTICK" = yes; then | |
9769 | echo "$as_me:$LINENO: result: yes" >&5 | |
9770 | echo "${ECHO_T}yes" >&6 | |
9771 | else | |
9772 | echo "$as_me:$LINENO: result: no" >&5 | |
9773 | echo "${ECHO_T}no" >&6 | |
9774 | fi | |
9775 | ||
9776 | ||
9777 | enablestring= | |
9778 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
9779 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
9780 | no_cache=0 | |
9781 | # Check whether --enable-metafile or --disable-metafile was given. | |
9782 | if test "${enable_metafile+set}" = set; then | |
9783 | enableval="$enable_metafile" | |
9784 | ||
9785 | if test "$enableval" = yes; then | |
9786 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
9787 | else | |
9788 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
9789 | fi | |
9790 | ||
9791 | else | |
9792 | ||
9793 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
9794 | if test "x$LINE" != x ; then | |
9795 | eval "DEFAULT_$LINE" | |
9796 | else | |
9797 | no_cache=1 | |
9798 | fi | |
9799 | ||
9800 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
9801 | ||
9802 | fi; | |
9803 | ||
9804 | eval "$ac_cv_use_metafile" | |
9805 | if test "$no_cache" != 1; then | |
9806 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
9807 | fi | |
9808 | ||
9809 | if test "$wxUSE_METAFILE" = yes; then | |
9810 | echo "$as_me:$LINENO: result: yes" >&5 | |
9811 | echo "${ECHO_T}yes" >&6 | |
9812 | else | |
9813 | echo "$as_me:$LINENO: result: no" >&5 | |
9814 | echo "${ECHO_T}no" >&6 | |
9815 | fi | |
9816 | ||
9817 | ||
9818 | enablestring= | |
9819 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5 | |
9820 | echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6 | |
9821 | no_cache=0 | |
9822 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
9823 | if test "${enable_dragimage+set}" = set; then | |
9824 | enableval="$enable_dragimage" | |
9825 | ||
9826 | if test "$enableval" = yes; then | |
9827 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
9828 | else | |
9829 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
9830 | fi | |
9831 | ||
9832 | else | |
9833 | ||
9834 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
9835 | if test "x$LINE" != x ; then | |
9836 | eval "DEFAULT_$LINE" | |
9837 | else | |
9838 | no_cache=1 | |
9839 | fi | |
9840 | ||
9841 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
9842 | ||
9843 | fi; | |
9844 | ||
9845 | eval "$ac_cv_use_dragimage" | |
9846 | if test "$no_cache" != 1; then | |
9847 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
9848 | fi | |
9849 | ||
9850 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
9851 | echo "$as_me:$LINENO: result: yes" >&5 | |
9852 | echo "${ECHO_T}yes" >&6 | |
9853 | else | |
9854 | echo "$as_me:$LINENO: result: no" >&5 | |
9855 | echo "${ECHO_T}no" >&6 | |
9856 | fi | |
9857 | ||
9858 | ||
9859 | enablestring= | |
9860 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5 | |
9861 | echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6 | |
9862 | no_cache=0 | |
9863 | # Check whether --enable-accessibility or --disable-accessibility was given. | |
9864 | if test "${enable_accessibility+set}" = set; then | |
9865 | enableval="$enable_accessibility" | |
9866 | ||
9867 | if test "$enableval" = yes; then | |
9868 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes' | |
9869 | else | |
9870 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no' | |
9871 | fi | |
9872 | ||
9873 | else | |
9874 | ||
9875 | LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}` | |
9876 | if test "x$LINE" != x ; then | |
9877 | eval "DEFAULT_$LINE" | |
9878 | else | |
9879 | no_cache=1 | |
9880 | fi | |
9881 | ||
9882 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY | |
9883 | ||
9884 | fi; | |
9885 | ||
9886 | eval "$ac_cv_use_accessibility" | |
9887 | if test "$no_cache" != 1; then | |
9888 | echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp | |
9889 | fi | |
9890 | ||
9891 | if test "$wxUSE_ACCESSIBILITY" = yes; then | |
9892 | echo "$as_me:$LINENO: result: yes" >&5 | |
9893 | echo "${ECHO_T}yes" >&6 | |
9894 | else | |
9895 | echo "$as_me:$LINENO: result: no" >&5 | |
9896 | echo "${ECHO_T}no" >&6 | |
9897 | fi | |
9898 | ||
9899 | ||
9900 | ||
9901 | ||
9902 | enablestring= | |
9903 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5 | |
9904 | echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6 | |
9905 | no_cache=0 | |
9906 | # Check whether --enable-palette or --disable-palette was given. | |
9907 | if test "${enable_palette+set}" = set; then | |
9908 | enableval="$enable_palette" | |
9909 | ||
9910 | if test "$enableval" = yes; then | |
9911 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
9912 | else | |
9913 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
9914 | fi | |
9915 | ||
9916 | else | |
9917 | ||
9918 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
9919 | if test "x$LINE" != x ; then | |
9920 | eval "DEFAULT_$LINE" | |
9921 | else | |
9922 | no_cache=1 | |
9923 | fi | |
9924 | ||
9925 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
9926 | ||
9927 | fi; | |
9928 | ||
9929 | eval "$ac_cv_use_palette" | |
9930 | if test "$no_cache" != 1; then | |
9931 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
9932 | fi | |
9933 | ||
9934 | if test "$wxUSE_PALETTE" = yes; then | |
9935 | echo "$as_me:$LINENO: result: yes" >&5 | |
9936 | echo "${ECHO_T}yes" >&6 | |
9937 | else | |
9938 | echo "$as_me:$LINENO: result: no" >&5 | |
9939 | echo "${ECHO_T}no" >&6 | |
9940 | fi | |
9941 | ||
9942 | ||
9943 | enablestring= | |
9944 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5 | |
9945 | echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6 | |
9946 | no_cache=0 | |
9947 | # Check whether --enable-image or --disable-image was given. | |
9948 | if test "${enable_image+set}" = set; then | |
9949 | enableval="$enable_image" | |
9950 | ||
9951 | if test "$enableval" = yes; then | |
9952 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
9953 | else | |
9954 | ac_cv_use_image='wxUSE_IMAGE=no' | |
9955 | fi | |
9956 | ||
9957 | else | |
9958 | ||
9959 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` | |
9960 | if test "x$LINE" != x ; then | |
9961 | eval "DEFAULT_$LINE" | |
9962 | else | |
9963 | no_cache=1 | |
9964 | fi | |
9965 | ||
9966 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
9967 | ||
9968 | fi; | |
9969 | ||
9970 | eval "$ac_cv_use_image" | |
9971 | if test "$no_cache" != 1; then | |
9972 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
9973 | fi | |
9974 | ||
9975 | if test "$wxUSE_IMAGE" = yes; then | |
9976 | echo "$as_me:$LINENO: result: yes" >&5 | |
9977 | echo "${ECHO_T}yes" >&6 | |
9978 | else | |
9979 | echo "$as_me:$LINENO: result: no" >&5 | |
9980 | echo "${ECHO_T}no" >&6 | |
9981 | fi | |
9982 | ||
9983 | ||
9984 | enablestring= | |
9985 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5 | |
9986 | echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6 | |
9987 | no_cache=0 | |
9988 | # Check whether --enable-gif or --disable-gif was given. | |
9989 | if test "${enable_gif+set}" = set; then | |
9990 | enableval="$enable_gif" | |
9991 | ||
9992 | if test "$enableval" = yes; then | |
9993 | ac_cv_use_gif='wxUSE_GIF=yes' | |
9994 | else | |
9995 | ac_cv_use_gif='wxUSE_GIF=no' | |
9996 | fi | |
9997 | ||
9998 | else | |
9999 | ||
10000 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` | |
10001 | if test "x$LINE" != x ; then | |
10002 | eval "DEFAULT_$LINE" | |
10003 | else | |
10004 | no_cache=1 | |
10005 | fi | |
10006 | ||
10007 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
10008 | ||
10009 | fi; | |
10010 | ||
10011 | eval "$ac_cv_use_gif" | |
10012 | if test "$no_cache" != 1; then | |
10013 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
10014 | fi | |
10015 | ||
10016 | if test "$wxUSE_GIF" = yes; then | |
10017 | echo "$as_me:$LINENO: result: yes" >&5 | |
10018 | echo "${ECHO_T}yes" >&6 | |
10019 | else | |
10020 | echo "$as_me:$LINENO: result: no" >&5 | |
10021 | echo "${ECHO_T}no" >&6 | |
10022 | fi | |
10023 | ||
10024 | ||
10025 | enablestring= | |
10026 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5 | |
10027 | echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6 | |
10028 | no_cache=0 | |
10029 | # Check whether --enable-pcx or --disable-pcx was given. | |
10030 | if test "${enable_pcx+set}" = set; then | |
10031 | enableval="$enable_pcx" | |
10032 | ||
10033 | if test "$enableval" = yes; then | |
10034 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
10035 | else | |
10036 | ac_cv_use_pcx='wxUSE_PCX=no' | |
10037 | fi | |
10038 | ||
10039 | else | |
10040 | ||
10041 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` | |
10042 | if test "x$LINE" != x ; then | |
10043 | eval "DEFAULT_$LINE" | |
10044 | else | |
10045 | no_cache=1 | |
10046 | fi | |
10047 | ||
10048 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
10049 | ||
10050 | fi; | |
10051 | ||
10052 | eval "$ac_cv_use_pcx" | |
10053 | if test "$no_cache" != 1; then | |
10054 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
10055 | fi | |
10056 | ||
10057 | if test "$wxUSE_PCX" = yes; then | |
10058 | echo "$as_me:$LINENO: result: yes" >&5 | |
10059 | echo "${ECHO_T}yes" >&6 | |
10060 | else | |
10061 | echo "$as_me:$LINENO: result: no" >&5 | |
10062 | echo "${ECHO_T}no" >&6 | |
10063 | fi | |
10064 | ||
10065 | ||
10066 | enablestring= | |
10067 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5 | |
10068 | echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6 | |
10069 | no_cache=0 | |
10070 | # Check whether --enable-iff or --disable-iff was given. | |
10071 | if test "${enable_iff+set}" = set; then | |
10072 | enableval="$enable_iff" | |
10073 | ||
10074 | if test "$enableval" = yes; then | |
10075 | ac_cv_use_iff='wxUSE_IFF=yes' | |
10076 | else | |
10077 | ac_cv_use_iff='wxUSE_IFF=no' | |
10078 | fi | |
10079 | ||
10080 | else | |
10081 | ||
10082 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` | |
10083 | if test "x$LINE" != x ; then | |
10084 | eval "DEFAULT_$LINE" | |
10085 | else | |
10086 | no_cache=1 | |
10087 | fi | |
10088 | ||
10089 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
10090 | ||
10091 | fi; | |
10092 | ||
10093 | eval "$ac_cv_use_iff" | |
10094 | if test "$no_cache" != 1; then | |
10095 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
10096 | fi | |
10097 | ||
10098 | if test "$wxUSE_IFF" = yes; then | |
10099 | echo "$as_me:$LINENO: result: yes" >&5 | |
10100 | echo "${ECHO_T}yes" >&6 | |
10101 | else | |
10102 | echo "$as_me:$LINENO: result: no" >&5 | |
10103 | echo "${ECHO_T}no" >&6 | |
10104 | fi | |
10105 | ||
10106 | ||
10107 | enablestring= | |
10108 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5 | |
10109 | echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6 | |
10110 | no_cache=0 | |
10111 | # Check whether --enable-pnm or --disable-pnm was given. | |
10112 | if test "${enable_pnm+set}" = set; then | |
10113 | enableval="$enable_pnm" | |
10114 | ||
10115 | if test "$enableval" = yes; then | |
10116 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
10117 | else | |
10118 | ac_cv_use_pnm='wxUSE_PNM=no' | |
10119 | fi | |
10120 | ||
10121 | else | |
10122 | ||
10123 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` | |
10124 | if test "x$LINE" != x ; then | |
10125 | eval "DEFAULT_$LINE" | |
10126 | else | |
10127 | no_cache=1 | |
10128 | fi | |
10129 | ||
10130 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
10131 | ||
10132 | fi; | |
10133 | ||
10134 | eval "$ac_cv_use_pnm" | |
10135 | if test "$no_cache" != 1; then | |
10136 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
10137 | fi | |
10138 | ||
10139 | if test "$wxUSE_PNM" = yes; then | |
10140 | echo "$as_me:$LINENO: result: yes" >&5 | |
10141 | echo "${ECHO_T}yes" >&6 | |
10142 | else | |
10143 | echo "$as_me:$LINENO: result: no" >&5 | |
10144 | echo "${ECHO_T}no" >&6 | |
10145 | fi | |
10146 | ||
10147 | ||
10148 | enablestring= | |
10149 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5 | |
10150 | echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6 | |
10151 | no_cache=0 | |
10152 | # Check whether --enable-xpm or --disable-xpm was given. | |
10153 | if test "${enable_xpm+set}" = set; then | |
10154 | enableval="$enable_xpm" | |
10155 | ||
10156 | if test "$enableval" = yes; then | |
10157 | ac_cv_use_xpm='wxUSE_XPM=yes' | |
10158 | else | |
10159 | ac_cv_use_xpm='wxUSE_XPM=no' | |
10160 | fi | |
10161 | ||
10162 | else | |
10163 | ||
10164 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` | |
10165 | if test "x$LINE" != x ; then | |
10166 | eval "DEFAULT_$LINE" | |
10167 | else | |
10168 | no_cache=1 | |
10169 | fi | |
10170 | ||
10171 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM | |
10172 | ||
10173 | fi; | |
10174 | ||
10175 | eval "$ac_cv_use_xpm" | |
10176 | if test "$no_cache" != 1; then | |
10177 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp | |
10178 | fi | |
10179 | ||
10180 | if test "$wxUSE_XPM" = yes; then | |
10181 | echo "$as_me:$LINENO: result: yes" >&5 | |
10182 | echo "${ECHO_T}yes" >&6 | |
10183 | else | |
10184 | echo "$as_me:$LINENO: result: no" >&5 | |
10185 | echo "${ECHO_T}no" >&6 | |
10186 | fi | |
10187 | ||
10188 | ||
10189 | enablestring= | |
10190 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5 | |
10191 | echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6 | |
10192 | no_cache=0 | |
10193 | # Check whether --enable-ico_cur or --disable-ico_cur was given. | |
10194 | if test "${enable_ico_cur+set}" = set; then | |
10195 | enableval="$enable_ico_cur" | |
10196 | ||
10197 | if test "$enableval" = yes; then | |
10198 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' | |
10199 | else | |
10200 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' | |
10201 | fi | |
10202 | ||
10203 | else | |
10204 | ||
10205 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` | |
10206 | if test "x$LINE" != x ; then | |
10207 | eval "DEFAULT_$LINE" | |
10208 | else | |
10209 | no_cache=1 | |
10210 | fi | |
10211 | ||
10212 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR | |
10213 | ||
10214 | fi; | |
10215 | ||
10216 | eval "$ac_cv_use_ico_cur" | |
10217 | if test "$no_cache" != 1; then | |
10218 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp | |
10219 | fi | |
10220 | ||
10221 | if test "$wxUSE_ICO_CUR" = yes; then | |
10222 | echo "$as_me:$LINENO: result: yes" >&5 | |
10223 | echo "${ECHO_T}yes" >&6 | |
10224 | else | |
10225 | echo "$as_me:$LINENO: result: no" >&5 | |
10226 | echo "${ECHO_T}no" >&6 | |
10227 | fi | |
10228 | ||
10229 | ||
10230 | fi | |
10231 | ||
10232 | ||
10233 | ||
ceec2216 RL |
10234 | # Check whether --with-flavour or --without-flavour was given. |
10235 | if test "${with_flavour+set}" = set; then | |
10236 | withval="$with_flavour" | |
10237 | WX_FLAVOUR="$withval" | |
10238 | fi; | |
10239 | ||
10240 | ||
10241 | ||
a848cd7e SC |
10242 | enablestring= |
10243 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5 | |
10244 | echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6 | |
10245 | no_cache=0 | |
10246 | # Check whether --enable-official_build or --disable-official_build was given. | |
10247 | if test "${enable_official_build+set}" = set; then | |
10248 | enableval="$enable_official_build" | |
10249 | ||
10250 | if test "$enableval" = yes; then | |
10251 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes' | |
10252 | else | |
10253 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no' | |
10254 | fi | |
10255 | ||
10256 | else | |
10257 | ||
10258 | LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}` | |
10259 | if test "x$LINE" != x ; then | |
10260 | eval "DEFAULT_$LINE" | |
10261 | else | |
10262 | no_cache=1 | |
10263 | fi | |
10264 | ||
10265 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD | |
10266 | ||
10267 | fi; | |
10268 | ||
10269 | eval "$ac_cv_use_official_build" | |
10270 | if test "$no_cache" != 1; then | |
10271 | echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp | |
10272 | fi | |
10273 | ||
10274 | if test "$wxUSE_OFFICIAL_BUILD" = yes; then | |
10275 | echo "$as_me:$LINENO: result: yes" >&5 | |
10276 | echo "${ECHO_T}yes" >&6 | |
10277 | else | |
10278 | echo "$as_me:$LINENO: result: no" >&5 | |
10279 | echo "${ECHO_T}no" >&6 | |
10280 | fi | |
10281 | ||
10282 | # Check whether --enable-vendor or --disable-vendor was given. | |
10283 | if test "${enable_vendor+set}" = set; then | |
10284 | enableval="$enable_vendor" | |
10285 | VENDOR="$enableval" | |
10286 | fi; | |
10287 | if test "x$VENDOR" = "x"; then | |
10288 | VENDOR="custom" | |
10289 | fi | |
10290 | ||
a848cd7e SC |
10291 | |
10292 | ||
10293 | ||
10294 | echo "saving argument cache $wx_arg_cache_file" | |
10295 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
10296 | ||
10297 | ||
10298 | ||
10299 | echo "$as_me:$LINENO: checking for toolkit" >&5 | |
10300 | echo $ECHO_N "checking for toolkit... $ECHO_C" >&6 | |
10301 | ||
10302 | # In Wine, we need to default to MSW, not GTK or MOTIF | |
10303 | if test "$wxUSE_WINE" = "yes"; then | |
10304 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
10305 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
10306 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
10307 | wxUSE_SHARED=no | |
10308 | fi | |
10309 | ||
10310 | if test "$wxUSE_GUI" = "yes"; then | |
10311 | ||
10312 | if test "$USE_BEOS" = 1; then | |
10313 | { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5 | |
10314 | echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;} | |
10315 | { (exit 1); exit 1; }; } | |
10316 | fi | |
10317 | ||
10318 | if test "$TOOLKIT_GIVEN" = 1; then | |
10319 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10320 | var=wxUSE_$toolkit | |
10321 | eval "value=\$${var}" | |
10322 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
10323 | done | |
10324 | else | |
10325 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10326 | if test "$has_toolkit_in_cache" != 1; then | |
10327 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
10328 | else | |
10329 | var=DEFAULT_wxUSE_$toolkit | |
10330 | fi | |
10331 | eval "wxUSE_$toolkit=\$${var}" | |
10332 | done | |
10333 | fi | |
10334 | ||
10335 | NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \ | |
10336 | + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \ | |
10337 | + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}` | |
10338 | ||
10339 | case "${host}" in | |
10340 | *-pc-os2_emx | *-pc-os2-emx ) | |
10341 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
10342 | esac | |
10343 | ||
10344 | case "$NUM_TOOLKITS" in | |
10345 | 1) | |
10346 | ;; | |
10347 | 0) | |
10348 | { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5 | |
10349 | echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;} | |
10350 | { (exit 1); exit 1; }; } | |
10351 | ;; | |
10352 | *) | |
10353 | { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5 | |
10354 | echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;} | |
10355 | { (exit 1); exit 1; }; } | |
10356 | esac | |
10357 | ||
10358 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10359 | var=wxUSE_$toolkit | |
10360 | eval "value=\$${var}" | |
10361 | if test "x$value" != x; then | |
10362 | cache_var=CACHE_$toolkit | |
10363 | eval "cache=\$${cache_var}" | |
10364 | if test "$cache" = 1; then | |
10365 | echo "$var=$value" >> ${wx_arg_cache_file} | |
10366 | fi | |
10367 | if test "$value" = 1; then | |
10368 | toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"` | |
10369 | echo "$as_me:$LINENO: result: $toolkit_echo" >&5 | |
10370 | echo "${ECHO_T}$toolkit_echo" >&6 | |
10371 | fi | |
10372 | fi | |
10373 | done | |
10374 | else | |
10375 | if test "x$host_alias" != "x"; then | |
10376 | echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5 | |
10377 | echo "${ECHO_T}base ($host_alias hosted) only" >&6 | |
10378 | else | |
10379 | echo "$as_me:$LINENO: result: base only" >&5 | |
10380 | echo "${ECHO_T}base only" >&6 | |
10381 | fi | |
10382 | fi | |
10383 | ||
10384 | wants_win32=0 | |
10385 | doesnt_want_win32=0 | |
10386 | case "${host}" in | |
10387 | *-*-cygwin*) | |
10388 | if test "$wxUSE_MSW" = 1 ; then | |
10389 | wants_win32=1 | |
10390 | else | |
10391 | doesnt_want_win32=1 | |
10392 | fi | |
10393 | ;; | |
10394 | *-*-mingw*) | |
10395 | wants_win32=1 | |
10396 | ;; | |
10397 | esac | |
10398 | ||
10399 | if test "$wxUSE_WINE" = "yes"; then | |
10400 | wants_win32=1 | |
10401 | CC=winegcc | |
10402 | CXX=wineg++ | |
10403 | RESCOMP=wrc | |
10404 | LDFLAGS_GUI="-mwindows" | |
10405 | fi | |
10406 | ||
10407 | if test "$wants_win32" = 1 ; then | |
10408 | USE_UNIX=0 | |
10409 | USE_WIN32=1 | |
10410 | cat >>confdefs.h <<\_ACEOF | |
10411 | #define __WIN32__ 1 | |
10412 | _ACEOF | |
10413 | ||
10414 | cat >>confdefs.h <<\_ACEOF | |
10415 | #define __WIN95__ 1 | |
10416 | _ACEOF | |
10417 | ||
10418 | cat >>confdefs.h <<\_ACEOF | |
10419 | #define __WINDOWS__ 1 | |
10420 | _ACEOF | |
10421 | ||
10422 | cat >>confdefs.h <<\_ACEOF | |
10423 | #define __GNUWIN32__ 1 | |
10424 | _ACEOF | |
10425 | ||
10426 | cat >>confdefs.h <<\_ACEOF | |
10427 | #define STRICT 1 | |
10428 | _ACEOF | |
10429 | ||
10430 | cat >>confdefs.h <<\_ACEOF | |
10431 | #define WINVER 0x0400 | |
10432 | _ACEOF | |
10433 | ||
10434 | fi | |
10435 | if test "$doesnt_want_win32" = 1 ; then | |
10436 | USE_UNIX=1 | |
10437 | USE_WIN32=0 | |
10438 | fi | |
10439 | ||
10440 | if test "$USE_UNIX" = 1 ; then | |
10441 | wxUSE_UNIX=yes | |
10442 | cat >>confdefs.h <<\_ACEOF | |
10443 | #define __UNIX__ 1 | |
10444 | _ACEOF | |
10445 | ||
10446 | fi | |
10447 | ||
10448 | ||
10449 | cat >confcache <<\_ACEOF | |
10450 | # This file is a shell script that caches the results of configure | |
10451 | # tests run on this system so they can be shared between configure | |
10452 | # scripts and configure runs, see configure's option --config-cache. | |
10453 | # It is not useful on other systems. If it contains results you don't | |
10454 | # want to keep, you may remove or edit it. | |
10455 | # | |
10456 | # config.status only pays attention to the cache file if you give it | |
10457 | # the --recheck option to rerun configure. | |
10458 | # | |
10459 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
10460 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
10461 | # following values. | |
10462 | ||
10463 | _ACEOF | |
10464 | ||
10465 | # The following way of writing the cache mishandles newlines in values, | |
10466 | # but we know of no workaround that is simple, portable, and efficient. | |
10467 | # So, don't put newlines in cache variables' values. | |
10468 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
10469 | # and sets the high bit in the cache file unless we assign to the vars. | |
10470 | { | |
10471 | (set) 2>&1 | | |
10472 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
10473 | *ac_space=\ *) | |
10474 | # `set' does not quote correctly, so add quotes (double-quote | |
10475 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
10476 | sed -n \ | |
ac1cb8d3 VS |
10477 | "s/'/'\\\\''/g; |
10478 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
10479 | ;; |
10480 | *) | |
10481 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
10482 | sed -n \ | |
ac1cb8d3 | 10483 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
10484 | ;; |
10485 | esac; | |
10486 | } | | |
10487 | sed ' | |
10488 | t clear | |
10489 | : clear | |
10490 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
10491 | t end | |
10492 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
10493 | : end' >>confcache | |
10494 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
10495 | if test -w $cache_file; then | |
10496 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
10497 | cat confcache >$cache_file | |
10498 | else | |
10499 | echo "not updating unwritable cache $cache_file" | |
10500 | fi | |
10501 | fi | |
10502 | rm -f confcache | |
10503 | ||
10504 | if test "$build" != "$host" ; then | |
1e9e8aba | 10505 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX" = 1; then |
a848cd7e SC |
10506 | CC=$host_alias-gcc |
10507 | CXX=$host_alias-c++ | |
10508 | AR=$host_alias-ar | |
10509 | RANLIB=$host_alias-ranlib | |
10510 | DLLTOOL=$host_alias-dlltool | |
10511 | RESCOMP=$host_alias-windres | |
a848cd7e | 10512 | STRIP=$host_alias-strip |
1e9e8aba DE |
10513 | elif test "x$CC" '!=' "x"; then |
10514 | echo "You set CC, I assume you know what you are doing." | |
a848cd7e SC |
10515 | else |
10516 | { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5 | |
10517 | echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;} | |
10518 | { (exit 1); exit 1; }; } | |
10519 | fi | |
10520 | fi | |
10521 | ||
10522 | CFLAGS=${CFLAGS:=} | |
10523 | ac_ext=c | |
10524 | ac_cpp='$CPP $CPPFLAGS' | |
10525 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10526 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10527 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10528 | if test -n "$ac_tool_prefix"; then | |
10529 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
10530 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
10531 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10532 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10533 | if test "${ac_cv_prog_CC+set}" = set; then | |
10534 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10535 | else | |
10536 | if test -n "$CC"; then | |
10537 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10538 | else | |
10539 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10540 | for as_dir in $PATH | |
10541 | do | |
10542 | IFS=$as_save_IFS | |
10543 | test -z "$as_dir" && as_dir=. | |
10544 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10545 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10546 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
10547 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10548 | break 2 | |
10549 | fi | |
10550 | done | |
10551 | done | |
10552 | ||
10553 | fi | |
10554 | fi | |
10555 | CC=$ac_cv_prog_CC | |
10556 | if test -n "$CC"; then | |
10557 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10558 | echo "${ECHO_T}$CC" >&6 | |
10559 | else | |
10560 | echo "$as_me:$LINENO: result: no" >&5 | |
10561 | echo "${ECHO_T}no" >&6 | |
10562 | fi | |
10563 | ||
10564 | fi | |
10565 | if test -z "$ac_cv_prog_CC"; then | |
10566 | ac_ct_CC=$CC | |
10567 | # Extract the first word of "gcc", so it can be a program name with args. | |
10568 | set dummy gcc; ac_word=$2 | |
10569 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10570 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10571 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10572 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10573 | else | |
10574 | if test -n "$ac_ct_CC"; then | |
10575 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10576 | else | |
10577 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10578 | for as_dir in $PATH | |
10579 | do | |
10580 | IFS=$as_save_IFS | |
10581 | test -z "$as_dir" && as_dir=. | |
10582 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10583 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10584 | ac_cv_prog_ac_ct_CC="gcc" | |
10585 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10586 | break 2 | |
10587 | fi | |
10588 | done | |
10589 | done | |
10590 | ||
10591 | fi | |
10592 | fi | |
10593 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10594 | if test -n "$ac_ct_CC"; then | |
10595 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10596 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10597 | else | |
10598 | echo "$as_me:$LINENO: result: no" >&5 | |
10599 | echo "${ECHO_T}no" >&6 | |
10600 | fi | |
10601 | ||
10602 | CC=$ac_ct_CC | |
10603 | else | |
10604 | CC="$ac_cv_prog_CC" | |
10605 | fi | |
10606 | ||
10607 | if test -z "$CC"; then | |
10608 | if test -n "$ac_tool_prefix"; then | |
10609 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
10610 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
10611 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10612 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10613 | if test "${ac_cv_prog_CC+set}" = set; then | |
10614 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10615 | else | |
10616 | if test -n "$CC"; then | |
10617 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10618 | else | |
10619 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10620 | for as_dir in $PATH | |
10621 | do | |
10622 | IFS=$as_save_IFS | |
10623 | test -z "$as_dir" && as_dir=. | |
10624 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10625 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10626 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
10627 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10628 | break 2 | |
10629 | fi | |
10630 | done | |
10631 | done | |
10632 | ||
10633 | fi | |
10634 | fi | |
10635 | CC=$ac_cv_prog_CC | |
10636 | if test -n "$CC"; then | |
10637 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10638 | echo "${ECHO_T}$CC" >&6 | |
10639 | else | |
10640 | echo "$as_me:$LINENO: result: no" >&5 | |
10641 | echo "${ECHO_T}no" >&6 | |
10642 | fi | |
10643 | ||
10644 | fi | |
10645 | if test -z "$ac_cv_prog_CC"; then | |
10646 | ac_ct_CC=$CC | |
10647 | # Extract the first word of "cc", so it can be a program name with args. | |
10648 | set dummy cc; ac_word=$2 | |
10649 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10650 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10651 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10652 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10653 | else | |
10654 | if test -n "$ac_ct_CC"; then | |
10655 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10656 | else | |
10657 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10658 | for as_dir in $PATH | |
10659 | do | |
10660 | IFS=$as_save_IFS | |
10661 | test -z "$as_dir" && as_dir=. | |
10662 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10663 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10664 | ac_cv_prog_ac_ct_CC="cc" | |
10665 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10666 | break 2 | |
10667 | fi | |
10668 | done | |
10669 | done | |
10670 | ||
10671 | fi | |
10672 | fi | |
10673 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10674 | if test -n "$ac_ct_CC"; then | |
10675 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10676 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10677 | else | |
10678 | echo "$as_me:$LINENO: result: no" >&5 | |
10679 | echo "${ECHO_T}no" >&6 | |
10680 | fi | |
10681 | ||
10682 | CC=$ac_ct_CC | |
10683 | else | |
10684 | CC="$ac_cv_prog_CC" | |
10685 | fi | |
10686 | ||
10687 | fi | |
10688 | if test -z "$CC"; then | |
10689 | # Extract the first word of "cc", so it can be a program name with args. | |
10690 | set dummy cc; ac_word=$2 | |
10691 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10692 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10693 | if test "${ac_cv_prog_CC+set}" = set; then | |
10694 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10695 | else | |
10696 | if test -n "$CC"; then | |
10697 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10698 | else | |
10699 | ac_prog_rejected=no | |
10700 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10701 | for as_dir in $PATH | |
10702 | do | |
10703 | IFS=$as_save_IFS | |
10704 | test -z "$as_dir" && as_dir=. | |
10705 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10706 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10707 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
10708 | ac_prog_rejected=yes | |
10709 | continue | |
10710 | fi | |
10711 | ac_cv_prog_CC="cc" | |
10712 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10713 | break 2 | |
10714 | fi | |
10715 | done | |
10716 | done | |
10717 | ||
10718 | if test $ac_prog_rejected = yes; then | |
10719 | # We found a bogon in the path, so make sure we never use it. | |
10720 | set dummy $ac_cv_prog_CC | |
10721 | shift | |
10722 | if test $# != 0; then | |
10723 | # We chose a different compiler from the bogus one. | |
10724 | # However, it has the same basename, so the bogon will be chosen | |
10725 | # first if we set CC to just the basename; use the full file name. | |
10726 | shift | |
10727 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
10728 | fi | |
10729 | fi | |
10730 | fi | |
10731 | fi | |
10732 | CC=$ac_cv_prog_CC | |
10733 | if test -n "$CC"; then | |
10734 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10735 | echo "${ECHO_T}$CC" >&6 | |
10736 | else | |
10737 | echo "$as_me:$LINENO: result: no" >&5 | |
10738 | echo "${ECHO_T}no" >&6 | |
10739 | fi | |
10740 | ||
10741 | fi | |
10742 | if test -z "$CC"; then | |
10743 | if test -n "$ac_tool_prefix"; then | |
10744 | for ac_prog in cl | |
10745 | do | |
10746 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10747 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
10748 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10749 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10750 | if test "${ac_cv_prog_CC+set}" = set; then | |
10751 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10752 | else | |
10753 | if test -n "$CC"; then | |
10754 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10755 | else | |
10756 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10757 | for as_dir in $PATH | |
10758 | do | |
10759 | IFS=$as_save_IFS | |
10760 | test -z "$as_dir" && as_dir=. | |
10761 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10762 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10763 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
10764 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10765 | break 2 | |
10766 | fi | |
10767 | done | |
10768 | done | |
10769 | ||
10770 | fi | |
10771 | fi | |
10772 | CC=$ac_cv_prog_CC | |
10773 | if test -n "$CC"; then | |
10774 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10775 | echo "${ECHO_T}$CC" >&6 | |
10776 | else | |
10777 | echo "$as_me:$LINENO: result: no" >&5 | |
10778 | echo "${ECHO_T}no" >&6 | |
10779 | fi | |
10780 | ||
10781 | test -n "$CC" && break | |
10782 | done | |
10783 | fi | |
10784 | if test -z "$CC"; then | |
10785 | ac_ct_CC=$CC | |
10786 | for ac_prog in cl | |
10787 | do | |
10788 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10789 | set dummy $ac_prog; ac_word=$2 | |
10790 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10791 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10792 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10793 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10794 | else | |
10795 | if test -n "$ac_ct_CC"; then | |
10796 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10797 | else | |
10798 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10799 | for as_dir in $PATH | |
10800 | do | |
10801 | IFS=$as_save_IFS | |
10802 | test -z "$as_dir" && as_dir=. | |
10803 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10804 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10805 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
10806 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10807 | break 2 | |
10808 | fi | |
10809 | done | |
10810 | done | |
10811 | ||
10812 | fi | |
10813 | fi | |
10814 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10815 | if test -n "$ac_ct_CC"; then | |
10816 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10817 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10818 | else | |
10819 | echo "$as_me:$LINENO: result: no" >&5 | |
10820 | echo "${ECHO_T}no" >&6 | |
10821 | fi | |
10822 | ||
10823 | test -n "$ac_ct_CC" && break | |
10824 | done | |
10825 | ||
10826 | CC=$ac_ct_CC | |
10827 | fi | |
10828 | ||
10829 | fi | |
10830 | ||
10831 | ||
10832 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
10833 | See \`config.log' for more details." >&5 | |
10834 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
10835 | See \`config.log' for more details." >&2;} | |
10836 | { (exit 1); exit 1; }; } | |
10837 | ||
10838 | # Provide some information about the compiler. | |
10839 | echo "$as_me:$LINENO:" \ | |
10840 | "checking for C compiler version" >&5 | |
10841 | ac_compiler=`set X $ac_compile; echo $2` | |
10842 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
10843 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
10844 | ac_status=$? | |
10845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10846 | (exit $ac_status); } | |
10847 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
10848 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
10849 | ac_status=$? | |
10850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10851 | (exit $ac_status); } | |
10852 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
10853 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
10854 | ac_status=$? | |
10855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10856 | (exit $ac_status); } | |
10857 | ||
10858 | cat >conftest.$ac_ext <<_ACEOF | |
10859 | /* confdefs.h. */ | |
10860 | _ACEOF | |
10861 | cat confdefs.h >>conftest.$ac_ext | |
10862 | cat >>conftest.$ac_ext <<_ACEOF | |
10863 | /* end confdefs.h. */ | |
10864 | ||
10865 | int | |
10866 | main () | |
10867 | { | |
10868 | ||
10869 | ; | |
10870 | return 0; | |
10871 | } | |
10872 | _ACEOF | |
10873 | ac_clean_files_save=$ac_clean_files | |
10874 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
10875 | # Try to create an executable without -o first, disregard a.out. | |
10876 | # It will help us diagnose broken compilers, and finding out an intuition | |
10877 | # of exeext. | |
ac1cb8d3 VS |
10878 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
10879 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
a848cd7e SC |
10880 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
10881 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
10882 | (eval $ac_link_default) 2>&5 | |
10883 | ac_status=$? | |
10884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10885 | (exit $ac_status); }; then | |
10886 | # Find the output, starting from the most likely. This scheme is | |
10887 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
10888 | # resort. | |
10889 | ||
10890 | # Be careful to initialize this variable, since it used to be cached. | |
10891 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
10892 | ac_cv_exeext= | |
10893 | # b.out is created by i960 compilers. | |
10894 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
10895 | do | |
10896 | test -f "$ac_file" || continue | |
10897 | case $ac_file in | |
10898 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
ac1cb8d3 | 10899 | ;; |
a848cd7e | 10900 | conftest.$ac_ext ) |
ac1cb8d3 VS |
10901 | # This is the source file. |
10902 | ;; | |
a848cd7e | 10903 | [ab].out ) |
ac1cb8d3 VS |
10904 | # We found the default executable, but exeext='' is most |
10905 | # certainly right. | |
10906 | break;; | |
a848cd7e | 10907 | *.* ) |
ac1cb8d3 VS |
10908 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
10909 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
10910 | # but it would be cool to find out if it's true. Does anybody | |
10911 | # maintain Libtool? --akim. | |
10912 | export ac_cv_exeext | |
10913 | break;; | |
a848cd7e | 10914 | * ) |
ac1cb8d3 | 10915 | break;; |
a848cd7e SC |
10916 | esac |
10917 | done | |
10918 | else | |
10919 | echo "$as_me: failed program was:" >&5 | |
10920 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10921 | ||
10922 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
10923 | See \`config.log' for more details." >&5 | |
10924 | echo "$as_me: error: C compiler cannot create executables | |
10925 | See \`config.log' for more details." >&2;} | |
10926 | { (exit 77); exit 77; }; } | |
10927 | fi | |
10928 | ||
10929 | ac_exeext=$ac_cv_exeext | |
10930 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
10931 | echo "${ECHO_T}$ac_file" >&6 | |
10932 | ||
10933 | # Check the compiler produces executables we can run. If not, either | |
10934 | # the compiler is broken, or we cross compile. | |
10935 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
10936 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
10937 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
10938 | # If not cross compiling, check that we can run a simple program. | |
10939 | if test "$cross_compiling" != yes; then | |
10940 | if { ac_try='./$ac_file' | |
10941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10942 | (eval $ac_try) 2>&5 | |
10943 | ac_status=$? | |
10944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10945 | (exit $ac_status); }; }; then | |
10946 | cross_compiling=no | |
10947 | else | |
10948 | if test "$cross_compiling" = maybe; then | |
10949 | cross_compiling=yes | |
10950 | else | |
10951 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
10952 | If you meant to cross compile, use \`--host'. | |
10953 | See \`config.log' for more details." >&5 | |
10954 | echo "$as_me: error: cannot run C compiled programs. | |
10955 | If you meant to cross compile, use \`--host'. | |
10956 | See \`config.log' for more details." >&2;} | |
10957 | { (exit 1); exit 1; }; } | |
10958 | fi | |
10959 | fi | |
10960 | fi | |
10961 | echo "$as_me:$LINENO: result: yes" >&5 | |
10962 | echo "${ECHO_T}yes" >&6 | |
10963 | ||
10964 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
10965 | ac_clean_files=$ac_clean_files_save | |
10966 | # Check the compiler produces executables we can run. If not, either | |
10967 | # the compiler is broken, or we cross compile. | |
10968 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
10969 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
10970 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
10971 | echo "${ECHO_T}$cross_compiling" >&6 | |
10972 | ||
10973 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
10974 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
10975 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10976 | (eval $ac_link) 2>&5 | |
10977 | ac_status=$? | |
10978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10979 | (exit $ac_status); }; then | |
10980 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
10981 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
10982 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
10983 | # `rm'. | |
10984 | for ac_file in conftest.exe conftest conftest.*; do | |
10985 | test -f "$ac_file" || continue | |
10986 | case $ac_file in | |
10987 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
10988 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
ac1cb8d3 VS |
10989 | export ac_cv_exeext |
10990 | break;; | |
a848cd7e SC |
10991 | * ) break;; |
10992 | esac | |
10993 | done | |
10994 | else | |
10995 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
10996 | See \`config.log' for more details." >&5 | |
10997 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
10998 | See \`config.log' for more details." >&2;} | |
10999 | { (exit 1); exit 1; }; } | |
11000 | fi | |
11001 | ||
11002 | rm -f conftest$ac_cv_exeext | |
11003 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
11004 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
11005 | ||
11006 | rm -f conftest.$ac_ext | |
11007 | EXEEXT=$ac_cv_exeext | |
11008 | ac_exeext=$EXEEXT | |
11009 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
11010 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
11011 | if test "${ac_cv_objext+set}" = set; then | |
11012 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11013 | else | |
11014 | cat >conftest.$ac_ext <<_ACEOF | |
11015 | /* confdefs.h. */ | |
11016 | _ACEOF | |
11017 | cat confdefs.h >>conftest.$ac_ext | |
11018 | cat >>conftest.$ac_ext <<_ACEOF | |
11019 | /* end confdefs.h. */ | |
11020 | ||
11021 | int | |
11022 | main () | |
11023 | { | |
11024 | ||
11025 | ; | |
11026 | return 0; | |
11027 | } | |
11028 | _ACEOF | |
11029 | rm -f conftest.o conftest.obj | |
11030 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11031 | (eval $ac_compile) 2>&5 | |
11032 | ac_status=$? | |
11033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11034 | (exit $ac_status); }; then | |
11035 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
11036 | case $ac_file in | |
11037 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
11038 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
11039 | break;; | |
11040 | esac | |
11041 | done | |
11042 | else | |
11043 | echo "$as_me: failed program was:" >&5 | |
11044 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11045 | ||
11046 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
11047 | See \`config.log' for more details." >&5 | |
11048 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
11049 | See \`config.log' for more details." >&2;} | |
11050 | { (exit 1); exit 1; }; } | |
11051 | fi | |
11052 | ||
11053 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
11054 | fi | |
11055 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
11056 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
11057 | OBJEXT=$ac_cv_objext | |
11058 | ac_objext=$OBJEXT | |
11059 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
11060 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
11061 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
11062 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11063 | else | |
11064 | cat >conftest.$ac_ext <<_ACEOF | |
11065 | /* confdefs.h. */ | |
11066 | _ACEOF | |
11067 | cat confdefs.h >>conftest.$ac_ext | |
11068 | cat >>conftest.$ac_ext <<_ACEOF | |
11069 | /* end confdefs.h. */ | |
11070 | ||
11071 | int | |
11072 | main () | |
11073 | { | |
11074 | #ifndef __GNUC__ | |
11075 | choke me | |
11076 | #endif | |
11077 | ||
11078 | ; | |
11079 | return 0; | |
11080 | } | |
11081 | _ACEOF | |
11082 | rm -f conftest.$ac_objext | |
11083 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11084 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11085 | ac_status=$? |
ac1cb8d3 VS |
11086 | grep -v '^ *+' conftest.er1 >conftest.err |
11087 | rm -f conftest.er1 | |
11088 | cat conftest.err >&5 | |
a848cd7e SC |
11089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11090 | (exit $ac_status); } && | |
89be85c2 VS |
11091 | { ac_try='test -z "$ac_c_werror_flag" |
11092 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11094 | (eval $ac_try) 2>&5 | |
11095 | ac_status=$? | |
11096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11097 | (exit $ac_status); }; } && | |
11098 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11100 | (eval $ac_try) 2>&5 | |
11101 | ac_status=$? | |
11102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11103 | (exit $ac_status); }; }; then | |
11104 | ac_compiler_gnu=yes | |
11105 | else | |
11106 | echo "$as_me: failed program was:" >&5 | |
11107 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11108 | ||
11109 | ac_compiler_gnu=no | |
11110 | fi | |
ac1cb8d3 | 11111 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11112 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
11113 | ||
11114 | fi | |
11115 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
11116 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
11117 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
11118 | ac_test_CFLAGS=${CFLAGS+set} | |
11119 | ac_save_CFLAGS=$CFLAGS | |
11120 | CFLAGS="-g" | |
11121 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
11122 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
11123 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
11124 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11125 | else | |
11126 | cat >conftest.$ac_ext <<_ACEOF | |
11127 | /* confdefs.h. */ | |
11128 | _ACEOF | |
11129 | cat confdefs.h >>conftest.$ac_ext | |
11130 | cat >>conftest.$ac_ext <<_ACEOF | |
11131 | /* end confdefs.h. */ | |
11132 | ||
11133 | int | |
11134 | main () | |
11135 | { | |
11136 | ||
11137 | ; | |
11138 | return 0; | |
11139 | } | |
11140 | _ACEOF | |
11141 | rm -f conftest.$ac_objext | |
11142 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11143 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11144 | ac_status=$? |
ac1cb8d3 VS |
11145 | grep -v '^ *+' conftest.er1 >conftest.err |
11146 | rm -f conftest.er1 | |
11147 | cat conftest.err >&5 | |
a848cd7e SC |
11148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11149 | (exit $ac_status); } && | |
89be85c2 VS |
11150 | { ac_try='test -z "$ac_c_werror_flag" |
11151 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11153 | (eval $ac_try) 2>&5 | |
11154 | ac_status=$? | |
11155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11156 | (exit $ac_status); }; } && | |
11157 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11158 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11159 | (eval $ac_try) 2>&5 | |
11160 | ac_status=$? | |
11161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11162 | (exit $ac_status); }; }; then | |
11163 | ac_cv_prog_cc_g=yes | |
11164 | else | |
11165 | echo "$as_me: failed program was:" >&5 | |
11166 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11167 | ||
11168 | ac_cv_prog_cc_g=no | |
11169 | fi | |
ac1cb8d3 | 11170 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11171 | fi |
11172 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
11173 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
11174 | if test "$ac_test_CFLAGS" = set; then | |
11175 | CFLAGS=$ac_save_CFLAGS | |
11176 | elif test $ac_cv_prog_cc_g = yes; then | |
11177 | if test "$GCC" = yes; then | |
11178 | CFLAGS="-g -O2" | |
11179 | else | |
11180 | CFLAGS="-g" | |
11181 | fi | |
11182 | else | |
11183 | if test "$GCC" = yes; then | |
11184 | CFLAGS="-O2" | |
11185 | else | |
11186 | CFLAGS= | |
11187 | fi | |
11188 | fi | |
11189 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
11190 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
11191 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
11192 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11193 | else | |
11194 | ac_cv_prog_cc_stdc=no | |
11195 | ac_save_CC=$CC | |
11196 | cat >conftest.$ac_ext <<_ACEOF | |
11197 | /* confdefs.h. */ | |
11198 | _ACEOF | |
11199 | cat confdefs.h >>conftest.$ac_ext | |
11200 | cat >>conftest.$ac_ext <<_ACEOF | |
11201 | /* end confdefs.h. */ | |
11202 | #include <stdarg.h> | |
11203 | #include <stdio.h> | |
11204 | #include <sys/types.h> | |
11205 | #include <sys/stat.h> | |
11206 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
11207 | struct buf { int x; }; | |
11208 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
11209 | static char *e (p, i) | |
11210 | char **p; | |
11211 | int i; | |
11212 | { | |
11213 | return p[i]; | |
11214 | } | |
11215 | static char *f (char * (*g) (char **, int), char **p, ...) | |
11216 | { | |
11217 | char *s; | |
11218 | va_list v; | |
11219 | va_start (v,p); | |
11220 | s = g (p, va_arg (v,int)); | |
11221 | va_end (v); | |
11222 | return s; | |
11223 | } | |
ac1cb8d3 VS |
11224 | |
11225 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
11226 | function prototypes and stuff, but not '\xHH' hex character constants. | |
11227 | These don't provoke an error unfortunately, instead are silently treated | |
11228 | as 'x'. The following induces an error, until -std1 is added to get | |
11229 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
11230 | array size at least. It's necessary to write '\x00'==0 to get something | |
11231 | that's true only with -std1. */ | |
11232 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
11233 | ||
a848cd7e SC |
11234 | int test (int i, double x); |
11235 | struct s1 {int (*f) (int a);}; | |
11236 | struct s2 {int (*f) (double a);}; | |
11237 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
11238 | int argc; | |
11239 | char **argv; | |
11240 | int | |
11241 | main () | |
11242 | { | |
11243 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
11244 | ; | |
11245 | return 0; | |
11246 | } | |
11247 | _ACEOF | |
11248 | # Don't try gcc -ansi; that turns off useful extensions and | |
11249 | # breaks some systems' header files. | |
11250 | # AIX -qlanglvl=ansi | |
11251 | # Ultrix and OSF/1 -std1 | |
11252 | # HP-UX 10.20 and later -Ae | |
11253 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
11254 | # SVR4 -Xc -D__EXTENSIONS__ | |
11255 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
11256 | do | |
11257 | CC="$ac_save_CC $ac_arg" | |
11258 | rm -f conftest.$ac_objext | |
11259 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11260 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11261 | ac_status=$? |
ac1cb8d3 VS |
11262 | grep -v '^ *+' conftest.er1 >conftest.err |
11263 | rm -f conftest.er1 | |
11264 | cat conftest.err >&5 | |
a848cd7e SC |
11265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11266 | (exit $ac_status); } && | |
89be85c2 VS |
11267 | { ac_try='test -z "$ac_c_werror_flag" |
11268 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11270 | (eval $ac_try) 2>&5 | |
11271 | ac_status=$? | |
11272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11273 | (exit $ac_status); }; } && | |
11274 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11276 | (eval $ac_try) 2>&5 | |
11277 | ac_status=$? | |
11278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11279 | (exit $ac_status); }; }; then | |
11280 | ac_cv_prog_cc_stdc=$ac_arg | |
11281 | break | |
11282 | else | |
11283 | echo "$as_me: failed program was:" >&5 | |
11284 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11285 | ||
11286 | fi | |
ac1cb8d3 | 11287 | rm -f conftest.err conftest.$ac_objext |
a848cd7e SC |
11288 | done |
11289 | rm -f conftest.$ac_ext conftest.$ac_objext | |
11290 | CC=$ac_save_CC | |
11291 | ||
11292 | fi | |
11293 | ||
11294 | case "x$ac_cv_prog_cc_stdc" in | |
11295 | x|xno) | |
11296 | echo "$as_me:$LINENO: result: none needed" >&5 | |
11297 | echo "${ECHO_T}none needed" >&6 ;; | |
11298 | *) | |
11299 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
11300 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
11301 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
11302 | esac | |
11303 | ||
11304 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
11305 | # in C++ we need to declare it. In case someone uses the same compiler | |
11306 | # for both compiling C and C++ we need to have the C++ compiler decide | |
11307 | # the declaration of exit, since it's the most demanding environment. | |
11308 | cat >conftest.$ac_ext <<_ACEOF | |
11309 | #ifndef __cplusplus | |
11310 | choke me | |
11311 | #endif | |
11312 | _ACEOF | |
11313 | rm -f conftest.$ac_objext | |
11314 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11315 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11316 | ac_status=$? |
ac1cb8d3 VS |
11317 | grep -v '^ *+' conftest.er1 >conftest.err |
11318 | rm -f conftest.er1 | |
11319 | cat conftest.err >&5 | |
a848cd7e SC |
11320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11321 | (exit $ac_status); } && | |
89be85c2 VS |
11322 | { ac_try='test -z "$ac_c_werror_flag" |
11323 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11325 | (eval $ac_try) 2>&5 | |
11326 | ac_status=$? | |
11327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11328 | (exit $ac_status); }; } && | |
11329 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11331 | (eval $ac_try) 2>&5 | |
11332 | ac_status=$? | |
11333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11334 | (exit $ac_status); }; }; then | |
11335 | for ac_declaration in \ | |
ac1cb8d3 | 11336 | '' \ |
a848cd7e SC |
11337 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
11338 | 'extern "C" void std::exit (int); using std::exit;' \ | |
11339 | 'extern "C" void exit (int) throw ();' \ | |
11340 | 'extern "C" void exit (int);' \ | |
11341 | 'void exit (int);' | |
11342 | do | |
11343 | cat >conftest.$ac_ext <<_ACEOF | |
11344 | /* confdefs.h. */ | |
11345 | _ACEOF | |
11346 | cat confdefs.h >>conftest.$ac_ext | |
11347 | cat >>conftest.$ac_ext <<_ACEOF | |
11348 | /* end confdefs.h. */ | |
de59c161 | 11349 | $ac_declaration |
ac1cb8d3 | 11350 | #include <stdlib.h> |
a848cd7e SC |
11351 | int |
11352 | main () | |
11353 | { | |
11354 | exit (42); | |
11355 | ; | |
11356 | return 0; | |
11357 | } | |
11358 | _ACEOF | |
11359 | rm -f conftest.$ac_objext | |
11360 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11361 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11362 | ac_status=$? |
ac1cb8d3 VS |
11363 | grep -v '^ *+' conftest.er1 >conftest.err |
11364 | rm -f conftest.er1 | |
11365 | cat conftest.err >&5 | |
a848cd7e SC |
11366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11367 | (exit $ac_status); } && | |
89be85c2 VS |
11368 | { ac_try='test -z "$ac_c_werror_flag" |
11369 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11371 | (eval $ac_try) 2>&5 | |
11372 | ac_status=$? | |
11373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11374 | (exit $ac_status); }; } && | |
11375 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11377 | (eval $ac_try) 2>&5 | |
11378 | ac_status=$? | |
11379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11380 | (exit $ac_status); }; }; then | |
11381 | : | |
11382 | else | |
11383 | echo "$as_me: failed program was:" >&5 | |
11384 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11385 | ||
11386 | continue | |
11387 | fi | |
ac1cb8d3 | 11388 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11389 | cat >conftest.$ac_ext <<_ACEOF |
11390 | /* confdefs.h. */ | |
11391 | _ACEOF | |
11392 | cat confdefs.h >>conftest.$ac_ext | |
11393 | cat >>conftest.$ac_ext <<_ACEOF | |
11394 | /* end confdefs.h. */ | |
11395 | $ac_declaration | |
11396 | int | |
11397 | main () | |
11398 | { | |
11399 | exit (42); | |
11400 | ; | |
11401 | return 0; | |
11402 | } | |
11403 | _ACEOF | |
11404 | rm -f conftest.$ac_objext | |
11405 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11406 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11407 | ac_status=$? |
ac1cb8d3 VS |
11408 | grep -v '^ *+' conftest.er1 >conftest.err |
11409 | rm -f conftest.er1 | |
11410 | cat conftest.err >&5 | |
a848cd7e SC |
11411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11412 | (exit $ac_status); } && | |
89be85c2 VS |
11413 | { ac_try='test -z "$ac_c_werror_flag" |
11414 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11416 | (eval $ac_try) 2>&5 | |
11417 | ac_status=$? | |
11418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11419 | (exit $ac_status); }; } && | |
11420 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11422 | (eval $ac_try) 2>&5 | |
11423 | ac_status=$? | |
11424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11425 | (exit $ac_status); }; }; then | |
11426 | break | |
11427 | else | |
11428 | echo "$as_me: failed program was:" >&5 | |
11429 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11430 | ||
11431 | fi | |
ac1cb8d3 | 11432 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11433 | done |
11434 | rm -f conftest* | |
11435 | if test -n "$ac_declaration"; then | |
11436 | echo '#ifdef __cplusplus' >>confdefs.h | |
11437 | echo $ac_declaration >>confdefs.h | |
11438 | echo '#endif' >>confdefs.h | |
11439 | fi | |
11440 | ||
11441 | else | |
11442 | echo "$as_me: failed program was:" >&5 | |
11443 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11444 | ||
11445 | fi | |
ac1cb8d3 | 11446 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11447 | ac_ext=c |
11448 | ac_cpp='$CPP $CPPFLAGS' | |
11449 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11450 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11451 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11452 | ||
480ccd21 DE |
11453 | echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5 |
11454 | echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6 | |
11455 | if test "${wx_cv_c_exto+set}" = set; then | |
11456 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11457 | else | |
11458 | cat >conftest.$ac_ext <<_ACEOF | |
11459 | /* confdefs.h. */ | |
11460 | _ACEOF | |
11461 | cat confdefs.h >>conftest.$ac_ext | |
11462 | cat >>conftest.$ac_ext <<_ACEOF | |
11463 | /* end confdefs.h. */ | |
11464 | ||
11465 | int | |
11466 | main () | |
11467 | { | |
11468 | ||
11469 | ; | |
11470 | return 0; | |
11471 | } | |
11472 | _ACEOF | |
11473 | rm -f conftest.$ac_objext conftest.$ac_ext.o | |
11474 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11475 | (eval $ac_compile) 2>&5 | |
11476 | ac_status=$? | |
11477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11478 | (exit $ac_status); }; then | |
11479 | for ac_file in `(ls conftest.* 2>/dev/null)`; do | |
11480 | case $ac_file in | |
11481 | conftest.$ac_ext.o) | |
11482 | wx_cv_c_exto="-ext o" | |
11483 | ;; | |
11484 | *) | |
11485 | ;; | |
11486 | esac | |
11487 | done | |
11488 | else | |
11489 | { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile | |
11490 | See \`config.log' for more details." >&5 | |
11491 | echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile | |
11492 | See \`config.log' for more details." >&2;} | |
11493 | { (exit 1); exit 1; }; } | |
11494 | ||
11495 | fi | |
11496 | ||
11497 | rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext | |
11498 | ||
11499 | fi | |
11500 | echo "$as_me:$LINENO: result: $wx_cv_c_exto" >&5 | |
11501 | echo "${ECHO_T}$wx_cv_c_exto" >&6 | |
11502 | if test "x$wx_cv_c_exto" '!=' "x"; then | |
11503 | if test "c" = "c"; then | |
11504 | CFLAGS="$wx_cv_c_exto $CFLAGS" | |
11505 | fi | |
11506 | if test "c" = "cxx"; then | |
11507 | CXXFLAGS="$wx_cv_c_exto $CXXFLAGS" | |
11508 | fi | |
11509 | fi | |
11510 | ||
11511 | if test "x$wx_cv_c_exto" '!=' "x"; then | |
11512 | unset ac_cv_prog_cc_g | |
11513 | ac_test_CFLAGS=${CFLAGS+set} | |
11514 | ac_save_CFLAGS=$CFLAGS | |
11515 | CFLAGS="-g" | |
11516 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
11517 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
11518 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
11519 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11520 | else | |
11521 | cat >conftest.$ac_ext <<_ACEOF | |
11522 | /* confdefs.h. */ | |
11523 | _ACEOF | |
11524 | cat confdefs.h >>conftest.$ac_ext | |
11525 | cat >>conftest.$ac_ext <<_ACEOF | |
11526 | /* end confdefs.h. */ | |
11527 | ||
11528 | int | |
11529 | main () | |
11530 | { | |
11531 | ||
11532 | ; | |
11533 | return 0; | |
11534 | } | |
11535 | _ACEOF | |
11536 | rm -f conftest.$ac_objext | |
11537 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11538 | (eval $ac_compile) 2>conftest.er1 | |
11539 | ac_status=$? | |
11540 | grep -v '^ *+' conftest.er1 >conftest.err | |
11541 | rm -f conftest.er1 | |
11542 | cat conftest.err >&5 | |
11543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11544 | (exit $ac_status); } && | |
11545 | { ac_try='test -z "$ac_c_werror_flag" | |
11546 | || test ! -s conftest.err' | |
11547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11548 | (eval $ac_try) 2>&5 | |
11549 | ac_status=$? | |
11550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11551 | (exit $ac_status); }; } && | |
11552 | { ac_try='test -s conftest.$ac_objext' | |
11553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11554 | (eval $ac_try) 2>&5 | |
11555 | ac_status=$? | |
11556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11557 | (exit $ac_status); }; }; then | |
11558 | ac_cv_prog_cc_g=yes | |
11559 | else | |
11560 | echo "$as_me: failed program was:" >&5 | |
11561 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11562 | ||
11563 | ac_cv_prog_cc_g=no | |
11564 | fi | |
11565 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11566 | fi | |
11567 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
11568 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
11569 | if test "$ac_test_CFLAGS" = set; then | |
11570 | CFLAGS=$ac_save_CFLAGS | |
11571 | elif test $ac_cv_prog_cc_g = yes; then | |
11572 | if test "$GCC" = yes; then | |
11573 | CFLAGS="-g -O2" | |
11574 | else | |
11575 | CFLAGS="-g" | |
11576 | fi | |
11577 | else | |
11578 | if test "$GCC" = yes; then | |
11579 | CFLAGS="-O2" | |
11580 | else | |
11581 | CFLAGS= | |
11582 | fi | |
11583 | fi | |
11584 | fi | |
a848cd7e | 11585 | |
95986553 DE |
11586 | ac_ext=c |
11587 | ac_cpp='$CPP $CPPFLAGS' | |
11588 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11589 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11590 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11591 | ||
11592 | echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5 | |
11593 | echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6 | |
11594 | if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then | |
11595 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11596 | else | |
11597 | cat >conftest.$ac_ext <<_ACEOF | |
11598 | /* confdefs.h. */ | |
11599 | _ACEOF | |
11600 | cat confdefs.h >>conftest.$ac_ext | |
11601 | cat >>conftest.$ac_ext <<_ACEOF | |
11602 | /* end confdefs.h. */ | |
11603 | ||
11604 | int | |
11605 | main () | |
11606 | { | |
11607 | #ifndef __MWERKS__ | |
11608 | choke me | |
11609 | #endif | |
11610 | ||
11611 | ; | |
11612 | return 0; | |
11613 | } | |
11614 | _ACEOF | |
11615 | rm -f conftest.$ac_objext | |
11616 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11617 | (eval $ac_compile) 2>conftest.er1 | |
11618 | ac_status=$? | |
11619 | grep -v '^ *+' conftest.er1 >conftest.err | |
11620 | rm -f conftest.er1 | |
11621 | cat conftest.err >&5 | |
11622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11623 | (exit $ac_status); } && | |
89be85c2 VS |
11624 | { ac_try='test -z "$ac_c_werror_flag" |
11625 | || test ! -s conftest.err' | |
95986553 DE |
11626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11627 | (eval $ac_try) 2>&5 | |
11628 | ac_status=$? | |
11629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11630 | (exit $ac_status); }; } && | |
11631 | { ac_try='test -s conftest.$ac_objext' | |
11632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11633 | (eval $ac_try) 2>&5 | |
11634 | ac_status=$? | |
11635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11636 | (exit $ac_status); }; }; then | |
11637 | bakefile_compiler_mwerks=yes | |
11638 | else | |
11639 | echo "$as_me: failed program was:" >&5 | |
11640 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11641 | ||
11642 | bakefile_compiler_mwerks=no | |
11643 | fi | |
11644 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11645 | bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks | |
11646 | ||
11647 | fi | |
11648 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5 | |
11649 | echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6 | |
11650 | ||
11651 | MWCC=`test $bakefile_compiler_mwerks = yes && echo yes` | |
11652 | ac_ext=c | |
11653 | ac_cpp='$CPP $CPPFLAGS' | |
11654 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11655 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11656 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11657 | ||
11658 | ||
a848cd7e SC |
11659 | |
11660 | ac_ext=c | |
11661 | ac_cpp='$CPP $CPPFLAGS' | |
11662 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11663 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11664 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11665 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
11666 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
11667 | # On Suns, sometimes $CPP names a directory. | |
11668 | if test -n "$CPP" && test -d "$CPP"; then | |
11669 | CPP= | |
11670 | fi | |
11671 | if test -z "$CPP"; then | |
11672 | if test "${ac_cv_prog_CPP+set}" = set; then | |
11673 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11674 | else | |
11675 | # Double quotes because CPP needs to be expanded | |
11676 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
11677 | do | |
11678 | ac_preproc_ok=false | |
11679 | for ac_c_preproc_warn_flag in '' yes | |
11680 | do | |
11681 | # Use a header file that comes with gcc, so configuring glibc | |
11682 | # with a fresh cross-compiler works. | |
11683 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11684 | # <limits.h> exists even on freestanding compilers. | |
11685 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
11686 | # not just through cpp. "Syntax error" is here to catch this case. | |
11687 | cat >conftest.$ac_ext <<_ACEOF | |
11688 | /* confdefs.h. */ | |
11689 | _ACEOF | |
11690 | cat confdefs.h >>conftest.$ac_ext | |
11691 | cat >>conftest.$ac_ext <<_ACEOF | |
11692 | /* end confdefs.h. */ | |
11693 | #ifdef __STDC__ | |
11694 | # include <limits.h> | |
11695 | #else | |
11696 | # include <assert.h> | |
11697 | #endif | |
ac1cb8d3 | 11698 | Syntax error |
a848cd7e SC |
11699 | _ACEOF |
11700 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11701 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11702 | ac_status=$? | |
11703 | grep -v '^ *+' conftest.er1 >conftest.err | |
11704 | rm -f conftest.er1 | |
11705 | cat conftest.err >&5 | |
11706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11707 | (exit $ac_status); } >/dev/null; then | |
11708 | if test -s conftest.err; then | |
11709 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11710 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11711 | else |
11712 | ac_cpp_err= | |
11713 | fi | |
11714 | else | |
11715 | ac_cpp_err=yes | |
11716 | fi | |
11717 | if test -z "$ac_cpp_err"; then | |
11718 | : | |
11719 | else | |
11720 | echo "$as_me: failed program was:" >&5 | |
11721 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11722 | ||
11723 | # Broken: fails on valid input. | |
11724 | continue | |
11725 | fi | |
11726 | rm -f conftest.err conftest.$ac_ext | |
11727 | ||
11728 | # OK, works on sane cases. Now check whether non-existent headers | |
11729 | # can be detected and how. | |
11730 | cat >conftest.$ac_ext <<_ACEOF | |
11731 | /* confdefs.h. */ | |
11732 | _ACEOF | |
11733 | cat confdefs.h >>conftest.$ac_ext | |
11734 | cat >>conftest.$ac_ext <<_ACEOF | |
11735 | /* end confdefs.h. */ | |
11736 | #include <ac_nonexistent.h> | |
11737 | _ACEOF | |
11738 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11739 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11740 | ac_status=$? | |
11741 | grep -v '^ *+' conftest.er1 >conftest.err | |
11742 | rm -f conftest.er1 | |
11743 | cat conftest.err >&5 | |
11744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11745 | (exit $ac_status); } >/dev/null; then | |
11746 | if test -s conftest.err; then | |
11747 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11748 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11749 | else |
11750 | ac_cpp_err= | |
11751 | fi | |
11752 | else | |
11753 | ac_cpp_err=yes | |
11754 | fi | |
11755 | if test -z "$ac_cpp_err"; then | |
11756 | # Broken: success on invalid input. | |
11757 | continue | |
11758 | else | |
11759 | echo "$as_me: failed program was:" >&5 | |
11760 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11761 | ||
11762 | # Passes both tests. | |
11763 | ac_preproc_ok=: | |
11764 | break | |
11765 | fi | |
11766 | rm -f conftest.err conftest.$ac_ext | |
11767 | ||
11768 | done | |
11769 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
11770 | rm -f conftest.err conftest.$ac_ext | |
11771 | if $ac_preproc_ok; then | |
11772 | break | |
11773 | fi | |
11774 | ||
11775 | done | |
11776 | ac_cv_prog_CPP=$CPP | |
11777 | ||
11778 | fi | |
11779 | CPP=$ac_cv_prog_CPP | |
11780 | else | |
11781 | ac_cv_prog_CPP=$CPP | |
11782 | fi | |
11783 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
11784 | echo "${ECHO_T}$CPP" >&6 | |
11785 | ac_preproc_ok=false | |
11786 | for ac_c_preproc_warn_flag in '' yes | |
11787 | do | |
11788 | # Use a header file that comes with gcc, so configuring glibc | |
11789 | # with a fresh cross-compiler works. | |
11790 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11791 | # <limits.h> exists even on freestanding compilers. | |
11792 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
11793 | # not just through cpp. "Syntax error" is here to catch this case. | |
11794 | cat >conftest.$ac_ext <<_ACEOF | |
11795 | /* confdefs.h. */ | |
11796 | _ACEOF | |
11797 | cat confdefs.h >>conftest.$ac_ext | |
11798 | cat >>conftest.$ac_ext <<_ACEOF | |
11799 | /* end confdefs.h. */ | |
11800 | #ifdef __STDC__ | |
11801 | # include <limits.h> | |
11802 | #else | |
11803 | # include <assert.h> | |
11804 | #endif | |
ac1cb8d3 | 11805 | Syntax error |
a848cd7e SC |
11806 | _ACEOF |
11807 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11808 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11809 | ac_status=$? | |
11810 | grep -v '^ *+' conftest.er1 >conftest.err | |
11811 | rm -f conftest.er1 | |
11812 | cat conftest.err >&5 | |
11813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11814 | (exit $ac_status); } >/dev/null; then | |
11815 | if test -s conftest.err; then | |
11816 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11817 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11818 | else |
11819 | ac_cpp_err= | |
11820 | fi | |
11821 | else | |
11822 | ac_cpp_err=yes | |
11823 | fi | |
11824 | if test -z "$ac_cpp_err"; then | |
11825 | : | |
11826 | else | |
11827 | echo "$as_me: failed program was:" >&5 | |
11828 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11829 | ||
11830 | # Broken: fails on valid input. | |
11831 | continue | |
11832 | fi | |
11833 | rm -f conftest.err conftest.$ac_ext | |
11834 | ||
11835 | # OK, works on sane cases. Now check whether non-existent headers | |
11836 | # can be detected and how. | |
11837 | cat >conftest.$ac_ext <<_ACEOF | |
11838 | /* confdefs.h. */ | |
11839 | _ACEOF | |
11840 | cat confdefs.h >>conftest.$ac_ext | |
11841 | cat >>conftest.$ac_ext <<_ACEOF | |
11842 | /* end confdefs.h. */ | |
11843 | #include <ac_nonexistent.h> | |
11844 | _ACEOF | |
11845 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11846 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11847 | ac_status=$? | |
11848 | grep -v '^ *+' conftest.er1 >conftest.err | |
11849 | rm -f conftest.er1 | |
11850 | cat conftest.err >&5 | |
11851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11852 | (exit $ac_status); } >/dev/null; then | |
11853 | if test -s conftest.err; then | |
11854 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11855 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11856 | else |
11857 | ac_cpp_err= | |
11858 | fi | |
11859 | else | |
11860 | ac_cpp_err=yes | |
11861 | fi | |
11862 | if test -z "$ac_cpp_err"; then | |
11863 | # Broken: success on invalid input. | |
11864 | continue | |
11865 | else | |
11866 | echo "$as_me: failed program was:" >&5 | |
11867 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11868 | ||
11869 | # Passes both tests. | |
11870 | ac_preproc_ok=: | |
11871 | break | |
11872 | fi | |
11873 | rm -f conftest.err conftest.$ac_ext | |
11874 | ||
11875 | done | |
11876 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
11877 | rm -f conftest.err conftest.$ac_ext | |
11878 | if $ac_preproc_ok; then | |
11879 | : | |
11880 | else | |
11881 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
11882 | See \`config.log' for more details." >&5 | |
11883 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
11884 | See \`config.log' for more details." >&2;} | |
11885 | { (exit 1); exit 1; }; } | |
11886 | fi | |
11887 | ||
11888 | ac_ext=c | |
11889 | ac_cpp='$CPP $CPPFLAGS' | |
11890 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11891 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11892 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11893 | ||
11894 | ||
11895 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
11896 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
11897 | if test "${ac_cv_prog_egrep+set}" = set; then | |
11898 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11899 | else | |
11900 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
11901 | then ac_cv_prog_egrep='grep -E' | |
11902 | else ac_cv_prog_egrep='egrep' | |
11903 | fi | |
11904 | fi | |
11905 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
11906 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
11907 | EGREP=$ac_cv_prog_egrep | |
11908 | ||
11909 | ||
11910 | if test $ac_cv_c_compiler_gnu = yes; then | |
11911 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
11912 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
11913 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
11914 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11915 | else | |
11916 | ac_pattern="Autoconf.*'x'" | |
11917 | cat >conftest.$ac_ext <<_ACEOF | |
11918 | /* confdefs.h. */ | |
11919 | _ACEOF | |
11920 | cat confdefs.h >>conftest.$ac_ext | |
11921 | cat >>conftest.$ac_ext <<_ACEOF | |
11922 | /* end confdefs.h. */ | |
11923 | #include <sgtty.h> | |
11924 | Autoconf TIOCGETP | |
11925 | _ACEOF | |
11926 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11927 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
11928 | ac_cv_prog_gcc_traditional=yes | |
11929 | else | |
11930 | ac_cv_prog_gcc_traditional=no | |
11931 | fi | |
11932 | rm -f conftest* | |
11933 | ||
11934 | ||
11935 | if test $ac_cv_prog_gcc_traditional = no; then | |
11936 | cat >conftest.$ac_ext <<_ACEOF | |
11937 | /* confdefs.h. */ | |
11938 | _ACEOF | |
11939 | cat confdefs.h >>conftest.$ac_ext | |
11940 | cat >>conftest.$ac_ext <<_ACEOF | |
11941 | /* end confdefs.h. */ | |
11942 | #include <termio.h> | |
11943 | Autoconf TCGETA | |
11944 | _ACEOF | |
11945 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11946 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
11947 | ac_cv_prog_gcc_traditional=yes | |
11948 | fi | |
11949 | rm -f conftest* | |
11950 | ||
11951 | fi | |
11952 | fi | |
11953 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 | |
11954 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
11955 | if test $ac_cv_prog_gcc_traditional = yes; then | |
11956 | CC="$CC -traditional" | |
11957 | fi | |
11958 | fi | |
11959 | ||
11960 | ||
11961 | ||
11962 | ||
11963 | ac_ext=cc | |
11964 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11965 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11966 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11967 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11968 | ||
11969 | ||
11970 | CXXFLAGS=${CXXFLAGS:=} | |
11971 | ac_ext=cc | |
11972 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11973 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11974 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11975 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11976 | if test -n "$ac_tool_prefix"; then | |
11977 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
11978 | do | |
11979 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
11980 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
11981 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11982 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11983 | if test "${ac_cv_prog_CXX+set}" = set; then | |
11984 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11985 | else | |
11986 | if test -n "$CXX"; then | |
11987 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
11988 | else | |
11989 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11990 | for as_dir in $PATH | |
11991 | do | |
11992 | IFS=$as_save_IFS | |
11993 | test -z "$as_dir" && as_dir=. | |
11994 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11995 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11996 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
11997 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11998 | break 2 | |
11999 | fi | |
12000 | done | |
12001 | done | |
12002 | ||
12003 | fi | |
12004 | fi | |
12005 | CXX=$ac_cv_prog_CXX | |
12006 | if test -n "$CXX"; then | |
12007 | echo "$as_me:$LINENO: result: $CXX" >&5 | |
12008 | echo "${ECHO_T}$CXX" >&6 | |
12009 | else | |
12010 | echo "$as_me:$LINENO: result: no" >&5 | |
12011 | echo "${ECHO_T}no" >&6 | |
12012 | fi | |
12013 | ||
12014 | test -n "$CXX" && break | |
12015 | done | |
12016 | fi | |
12017 | if test -z "$CXX"; then | |
12018 | ac_ct_CXX=$CXX | |
12019 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
12020 | do | |
12021 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
12022 | set dummy $ac_prog; ac_word=$2 | |
12023 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12024 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12025 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
12026 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12027 | else | |
12028 | if test -n "$ac_ct_CXX"; then | |
12029 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
12030 | else | |
12031 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12032 | for as_dir in $PATH | |
12033 | do | |
12034 | IFS=$as_save_IFS | |
12035 | test -z "$as_dir" && as_dir=. | |
12036 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12037 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12038 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
12039 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12040 | break 2 | |
12041 | fi | |
12042 | done | |
12043 | done | |
12044 | ||
12045 | fi | |
12046 | fi | |
12047 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
12048 | if test -n "$ac_ct_CXX"; then | |
12049 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
12050 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
12051 | else | |
12052 | echo "$as_me:$LINENO: result: no" >&5 | |
12053 | echo "${ECHO_T}no" >&6 | |
12054 | fi | |
12055 | ||
12056 | test -n "$ac_ct_CXX" && break | |
12057 | done | |
12058 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
12059 | ||
12060 | CXX=$ac_ct_CXX | |
12061 | fi | |
12062 | ||
12063 | ||
12064 | # Provide some information about the compiler. | |
12065 | echo "$as_me:$LINENO:" \ | |
12066 | "checking for C++ compiler version" >&5 | |
12067 | ac_compiler=`set X $ac_compile; echo $2` | |
12068 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
12069 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
12070 | ac_status=$? | |
12071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12072 | (exit $ac_status); } | |
12073 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
12074 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
12075 | ac_status=$? | |
12076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12077 | (exit $ac_status); } | |
12078 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
12079 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
12080 | ac_status=$? | |
12081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12082 | (exit $ac_status); } | |
12083 | ||
12084 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
12085 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
12086 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
12087 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12088 | else | |
12089 | cat >conftest.$ac_ext <<_ACEOF | |
12090 | /* confdefs.h. */ | |
12091 | _ACEOF | |
12092 | cat confdefs.h >>conftest.$ac_ext | |
12093 | cat >>conftest.$ac_ext <<_ACEOF | |
12094 | /* end confdefs.h. */ | |
12095 | ||
12096 | int | |
12097 | main () | |
12098 | { | |
12099 | #ifndef __GNUC__ | |
12100 | choke me | |
12101 | #endif | |
12102 | ||
12103 | ; | |
12104 | return 0; | |
12105 | } | |
12106 | _ACEOF | |
12107 | rm -f conftest.$ac_objext | |
12108 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12109 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12110 | ac_status=$? |
ac1cb8d3 VS |
12111 | grep -v '^ *+' conftest.er1 >conftest.err |
12112 | rm -f conftest.er1 | |
12113 | cat conftest.err >&5 | |
a848cd7e SC |
12114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12115 | (exit $ac_status); } && | |
89be85c2 VS |
12116 | { ac_try='test -z "$ac_cxx_werror_flag" |
12117 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12119 | (eval $ac_try) 2>&5 | |
12120 | ac_status=$? | |
12121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12122 | (exit $ac_status); }; } && | |
12123 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12125 | (eval $ac_try) 2>&5 | |
12126 | ac_status=$? | |
12127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12128 | (exit $ac_status); }; }; then | |
12129 | ac_compiler_gnu=yes | |
12130 | else | |
12131 | echo "$as_me: failed program was:" >&5 | |
12132 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12133 | ||
12134 | ac_compiler_gnu=no | |
12135 | fi | |
ac1cb8d3 | 12136 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12137 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
12138 | ||
12139 | fi | |
12140 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
12141 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
12142 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
12143 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
12144 | ac_save_CXXFLAGS=$CXXFLAGS | |
12145 | CXXFLAGS="-g" | |
12146 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
12147 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
12148 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
12149 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12150 | else | |
12151 | cat >conftest.$ac_ext <<_ACEOF | |
12152 | /* confdefs.h. */ | |
12153 | _ACEOF | |
12154 | cat confdefs.h >>conftest.$ac_ext | |
12155 | cat >>conftest.$ac_ext <<_ACEOF | |
12156 | /* end confdefs.h. */ | |
12157 | ||
12158 | int | |
12159 | main () | |
12160 | { | |
12161 | ||
12162 | ; | |
12163 | return 0; | |
12164 | } | |
12165 | _ACEOF | |
12166 | rm -f conftest.$ac_objext | |
12167 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12168 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12169 | ac_status=$? |
ac1cb8d3 VS |
12170 | grep -v '^ *+' conftest.er1 >conftest.err |
12171 | rm -f conftest.er1 | |
12172 | cat conftest.err >&5 | |
a848cd7e SC |
12173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12174 | (exit $ac_status); } && | |
89be85c2 VS |
12175 | { ac_try='test -z "$ac_cxx_werror_flag" |
12176 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12178 | (eval $ac_try) 2>&5 | |
12179 | ac_status=$? | |
12180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12181 | (exit $ac_status); }; } && | |
12182 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12184 | (eval $ac_try) 2>&5 | |
12185 | ac_status=$? | |
12186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12187 | (exit $ac_status); }; }; then | |
12188 | ac_cv_prog_cxx_g=yes | |
12189 | else | |
12190 | echo "$as_me: failed program was:" >&5 | |
12191 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12192 | ||
12193 | ac_cv_prog_cxx_g=no | |
12194 | fi | |
ac1cb8d3 | 12195 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12196 | fi |
12197 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
12198 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
12199 | if test "$ac_test_CXXFLAGS" = set; then | |
12200 | CXXFLAGS=$ac_save_CXXFLAGS | |
12201 | elif test $ac_cv_prog_cxx_g = yes; then | |
12202 | if test "$GXX" = yes; then | |
12203 | CXXFLAGS="-g -O2" | |
12204 | else | |
12205 | CXXFLAGS="-g" | |
12206 | fi | |
12207 | else | |
12208 | if test "$GXX" = yes; then | |
12209 | CXXFLAGS="-O2" | |
12210 | else | |
12211 | CXXFLAGS= | |
12212 | fi | |
12213 | fi | |
12214 | for ac_declaration in \ | |
ac1cb8d3 | 12215 | '' \ |
a848cd7e SC |
12216 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
12217 | 'extern "C" void std::exit (int); using std::exit;' \ | |
12218 | 'extern "C" void exit (int) throw ();' \ | |
12219 | 'extern "C" void exit (int);' \ | |
12220 | 'void exit (int);' | |
12221 | do | |
12222 | cat >conftest.$ac_ext <<_ACEOF | |
12223 | /* confdefs.h. */ | |
12224 | _ACEOF | |
12225 | cat confdefs.h >>conftest.$ac_ext | |
12226 | cat >>conftest.$ac_ext <<_ACEOF | |
12227 | /* end confdefs.h. */ | |
de59c161 | 12228 | $ac_declaration |
ac1cb8d3 | 12229 | #include <stdlib.h> |
a848cd7e SC |
12230 | int |
12231 | main () | |
12232 | { | |
12233 | exit (42); | |
12234 | ; | |
12235 | return 0; | |
12236 | } | |
12237 | _ACEOF | |
12238 | rm -f conftest.$ac_objext | |
12239 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12240 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12241 | ac_status=$? |
ac1cb8d3 VS |
12242 | grep -v '^ *+' conftest.er1 >conftest.err |
12243 | rm -f conftest.er1 | |
12244 | cat conftest.err >&5 | |
a848cd7e SC |
12245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12246 | (exit $ac_status); } && | |
89be85c2 VS |
12247 | { ac_try='test -z "$ac_cxx_werror_flag" |
12248 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12250 | (eval $ac_try) 2>&5 | |
12251 | ac_status=$? | |
12252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12253 | (exit $ac_status); }; } && | |
12254 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12256 | (eval $ac_try) 2>&5 | |
12257 | ac_status=$? | |
12258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12259 | (exit $ac_status); }; }; then | |
12260 | : | |
12261 | else | |
12262 | echo "$as_me: failed program was:" >&5 | |
12263 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12264 | ||
12265 | continue | |
12266 | fi | |
ac1cb8d3 | 12267 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12268 | cat >conftest.$ac_ext <<_ACEOF |
12269 | /* confdefs.h. */ | |
12270 | _ACEOF | |
12271 | cat confdefs.h >>conftest.$ac_ext | |
12272 | cat >>conftest.$ac_ext <<_ACEOF | |
12273 | /* end confdefs.h. */ | |
12274 | $ac_declaration | |
12275 | int | |
12276 | main () | |
12277 | { | |
12278 | exit (42); | |
12279 | ; | |
12280 | return 0; | |
12281 | } | |
12282 | _ACEOF | |
12283 | rm -f conftest.$ac_objext | |
12284 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12285 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12286 | ac_status=$? |
ac1cb8d3 VS |
12287 | grep -v '^ *+' conftest.er1 >conftest.err |
12288 | rm -f conftest.er1 | |
12289 | cat conftest.err >&5 | |
a848cd7e SC |
12290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12291 | (exit $ac_status); } && | |
89be85c2 VS |
12292 | { ac_try='test -z "$ac_cxx_werror_flag" |
12293 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12295 | (eval $ac_try) 2>&5 | |
12296 | ac_status=$? | |
12297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12298 | (exit $ac_status); }; } && | |
12299 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12301 | (eval $ac_try) 2>&5 | |
12302 | ac_status=$? | |
12303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12304 | (exit $ac_status); }; }; then | |
12305 | break | |
12306 | else | |
12307 | echo "$as_me: failed program was:" >&5 | |
12308 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12309 | ||
12310 | fi | |
ac1cb8d3 | 12311 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12312 | done |
12313 | rm -f conftest* | |
12314 | if test -n "$ac_declaration"; then | |
12315 | echo '#ifdef __cplusplus' >>confdefs.h | |
12316 | echo $ac_declaration >>confdefs.h | |
12317 | echo '#endif' >>confdefs.h | |
12318 | fi | |
12319 | ||
12320 | ac_ext=cc | |
12321 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12322 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12323 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12324 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12325 | ||
480ccd21 DE |
12326 | echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5 |
12327 | echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6 | |
12328 | if test "${wx_cv_cxx_exto+set}" = set; then | |
12329 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12330 | else | |
12331 | cat >conftest.$ac_ext <<_ACEOF | |
12332 | /* confdefs.h. */ | |
12333 | _ACEOF | |
12334 | cat confdefs.h >>conftest.$ac_ext | |
12335 | cat >>conftest.$ac_ext <<_ACEOF | |
12336 | /* end confdefs.h. */ | |
12337 | ||
12338 | int | |
12339 | main () | |
12340 | { | |
12341 | ||
12342 | ; | |
12343 | return 0; | |
12344 | } | |
12345 | _ACEOF | |
12346 | rm -f conftest.$ac_objext conftest.$ac_ext.o | |
12347 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12348 | (eval $ac_compile) 2>&5 | |
12349 | ac_status=$? | |
12350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12351 | (exit $ac_status); }; then | |
12352 | for ac_file in `(ls conftest.* 2>/dev/null)`; do | |
12353 | case $ac_file in | |
12354 | conftest.$ac_ext.o) | |
12355 | wx_cv_cxx_exto="-ext o" | |
12356 | ;; | |
12357 | *) | |
12358 | ;; | |
12359 | esac | |
12360 | done | |
12361 | else | |
12362 | { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile | |
12363 | See \`config.log' for more details." >&5 | |
12364 | echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile | |
12365 | See \`config.log' for more details." >&2;} | |
12366 | { (exit 1); exit 1; }; } | |
12367 | ||
12368 | fi | |
12369 | ||
12370 | rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext | |
12371 | ||
12372 | fi | |
12373 | echo "$as_me:$LINENO: result: $wx_cv_cxx_exto" >&5 | |
12374 | echo "${ECHO_T}$wx_cv_cxx_exto" >&6 | |
12375 | if test "x$wx_cv_cxx_exto" '!=' "x"; then | |
12376 | if test "cxx" = "c"; then | |
12377 | CFLAGS="$wx_cv_cxx_exto $CFLAGS" | |
12378 | fi | |
12379 | if test "cxx" = "cxx"; then | |
12380 | CXXFLAGS="$wx_cv_cxx_exto $CXXFLAGS" | |
12381 | fi | |
12382 | fi | |
12383 | ||
12384 | if test "x$wx_cv_cxx_exto" '!=' "x"; then | |
12385 | unset ac_cv_prog_cxx_g | |
12386 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
12387 | ac_save_CXXFLAGS=$CXXFLAGS | |
12388 | CXXFLAGS="-g" | |
12389 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
12390 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
12391 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
12392 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12393 | else | |
12394 | cat >conftest.$ac_ext <<_ACEOF | |
12395 | /* confdefs.h. */ | |
12396 | _ACEOF | |
12397 | cat confdefs.h >>conftest.$ac_ext | |
12398 | cat >>conftest.$ac_ext <<_ACEOF | |
12399 | /* end confdefs.h. */ | |
12400 | ||
12401 | int | |
12402 | main () | |
12403 | { | |
12404 | ||
12405 | ; | |
12406 | return 0; | |
12407 | } | |
12408 | _ACEOF | |
12409 | rm -f conftest.$ac_objext | |
12410 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12411 | (eval $ac_compile) 2>conftest.er1 | |
12412 | ac_status=$? | |
12413 | grep -v '^ *+' conftest.er1 >conftest.err | |
12414 | rm -f conftest.er1 | |
12415 | cat conftest.err >&5 | |
12416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12417 | (exit $ac_status); } && | |
12418 | { ac_try='test -z "$ac_cxx_werror_flag" | |
12419 | || test ! -s conftest.err' | |
12420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12421 | (eval $ac_try) 2>&5 | |
12422 | ac_status=$? | |
12423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12424 | (exit $ac_status); }; } && | |
12425 | { ac_try='test -s conftest.$ac_objext' | |
12426 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12427 | (eval $ac_try) 2>&5 | |
12428 | ac_status=$? | |
12429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12430 | (exit $ac_status); }; }; then | |
12431 | ac_cv_prog_cxx_g=yes | |
12432 | else | |
12433 | echo "$as_me: failed program was:" >&5 | |
12434 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12435 | ||
12436 | ac_cv_prog_cxx_g=no | |
12437 | fi | |
12438 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12439 | fi | |
12440 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
12441 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
12442 | if test "$ac_test_CXXFLAGS" = set; then | |
12443 | CXXFLAGS=$ac_save_CXXFLAGS | |
12444 | elif test $ac_cv_prog_cxx_g = yes; then | |
12445 | if test "$GXX" = yes; then | |
12446 | CXXFLAGS="-g -O2" | |
12447 | else | |
12448 | CXXFLAGS="-g" | |
12449 | fi | |
12450 | else | |
12451 | if test "$GXX" = yes; then | |
12452 | CXXFLAGS="-O2" | |
12453 | else | |
12454 | CXXFLAGS= | |
12455 | fi | |
12456 | fi | |
12457 | fi | |
a848cd7e | 12458 | |
95986553 DE |
12459 | ac_ext=cc |
12460 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12461 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12462 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12463 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12464 | ||
12465 | echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5 | |
12466 | echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6 | |
12467 | if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then | |
12468 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12469 | else | |
12470 | cat >conftest.$ac_ext <<_ACEOF | |
12471 | /* confdefs.h. */ | |
12472 | _ACEOF | |
12473 | cat confdefs.h >>conftest.$ac_ext | |
12474 | cat >>conftest.$ac_ext <<_ACEOF | |
12475 | /* end confdefs.h. */ | |
12476 | ||
12477 | int | |
12478 | main () | |
12479 | { | |
12480 | #ifndef __MWERKS__ | |
12481 | choke me | |
12482 | #endif | |
12483 | ||
12484 | ; | |
12485 | return 0; | |
12486 | } | |
12487 | _ACEOF | |
12488 | rm -f conftest.$ac_objext | |
12489 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12490 | (eval $ac_compile) 2>conftest.er1 | |
12491 | ac_status=$? | |
12492 | grep -v '^ *+' conftest.er1 >conftest.err | |
12493 | rm -f conftest.er1 | |
12494 | cat conftest.err >&5 | |
12495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12496 | (exit $ac_status); } && | |
89be85c2 VS |
12497 | { ac_try='test -z "$ac_cxx_werror_flag" |
12498 | || test ! -s conftest.err' | |
95986553 DE |
12499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12500 | (eval $ac_try) 2>&5 | |
12501 | ac_status=$? | |
12502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12503 | (exit $ac_status); }; } && | |
12504 | { ac_try='test -s conftest.$ac_objext' | |
12505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12506 | (eval $ac_try) 2>&5 | |
12507 | ac_status=$? | |
12508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12509 | (exit $ac_status); }; }; then | |
12510 | bakefile_compiler_mwerks=yes | |
12511 | else | |
12512 | echo "$as_me: failed program was:" >&5 | |
12513 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12514 | ||
12515 | bakefile_compiler_mwerks=no | |
12516 | fi | |
12517 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12518 | bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks | |
12519 | ||
12520 | fi | |
12521 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5 | |
12522 | echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6 | |
12523 | ||
12524 | MWCXX=`test $bakefile_compiler_mwerks = yes && echo yes` | |
12525 | ac_ext=cc | |
12526 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12527 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12528 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12529 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12530 | ||
12531 | ||
12532 | ||
a848cd7e SC |
12533 | ac_ext=c |
12534 | ac_cpp='$CPP $CPPFLAGS' | |
12535 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12536 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12537 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12538 | ||
12539 | ||
a848cd7e SC |
12540 | if test -n "$ac_tool_prefix"; then |
12541 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
12542 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
12543 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12544 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12545 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
12546 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12547 | else | |
12548 | if test -n "$RANLIB"; then | |
12549 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
12550 | else | |
12551 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12552 | for as_dir in $PATH | |
12553 | do | |
12554 | IFS=$as_save_IFS | |
12555 | test -z "$as_dir" && as_dir=. | |
12556 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12557 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12558 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
12559 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12560 | break 2 | |
12561 | fi | |
12562 | done | |
12563 | done | |
12564 | ||
12565 | fi | |
12566 | fi | |
12567 | RANLIB=$ac_cv_prog_RANLIB | |
12568 | if test -n "$RANLIB"; then | |
12569 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
12570 | echo "${ECHO_T}$RANLIB" >&6 | |
12571 | else | |
12572 | echo "$as_me:$LINENO: result: no" >&5 | |
12573 | echo "${ECHO_T}no" >&6 | |
12574 | fi | |
12575 | ||
12576 | fi | |
12577 | if test -z "$ac_cv_prog_RANLIB"; then | |
12578 | ac_ct_RANLIB=$RANLIB | |
12579 | # Extract the first word of "ranlib", so it can be a program name with args. | |
12580 | set dummy ranlib; ac_word=$2 | |
12581 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12582 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12583 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
12584 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12585 | else | |
12586 | if test -n "$ac_ct_RANLIB"; then | |
12587 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
12588 | else | |
12589 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12590 | for as_dir in $PATH | |
12591 | do | |
12592 | IFS=$as_save_IFS | |
12593 | test -z "$as_dir" && as_dir=. | |
12594 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12595 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12596 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
12597 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12598 | break 2 | |
12599 | fi | |
12600 | done | |
12601 | done | |
12602 | ||
12603 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
12604 | fi | |
12605 | fi | |
12606 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
12607 | if test -n "$ac_ct_RANLIB"; then | |
12608 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
12609 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
12610 | else | |
12611 | echo "$as_me:$LINENO: result: no" >&5 | |
12612 | echo "${ECHO_T}no" >&6 | |
12613 | fi | |
12614 | ||
12615 | RANLIB=$ac_ct_RANLIB | |
12616 | else | |
12617 | RANLIB="$ac_cv_prog_RANLIB" | |
12618 | fi | |
12619 | ||
12620 | ||
12621 | # Extract the first word of "ar", so it can be a program name with args. | |
12622 | set dummy ar; ac_word=$2 | |
12623 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12624 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12625 | if test "${ac_cv_prog_AR+set}" = set; then | |
12626 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12627 | else | |
12628 | if test -n "$AR"; then | |
12629 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
12630 | else | |
12631 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12632 | for as_dir in $PATH | |
12633 | do | |
12634 | IFS=$as_save_IFS | |
12635 | test -z "$as_dir" && as_dir=. | |
12636 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12637 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12638 | ac_cv_prog_AR="ar" | |
12639 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12640 | break 2 | |
12641 | fi | |
12642 | done | |
12643 | done | |
12644 | ||
12645 | fi | |
12646 | fi | |
12647 | AR=$ac_cv_prog_AR | |
12648 | if test -n "$AR"; then | |
12649 | echo "$as_me:$LINENO: result: $AR" >&5 | |
12650 | echo "${ECHO_T}$AR" >&6 | |
12651 | else | |
12652 | echo "$as_me:$LINENO: result: no" >&5 | |
12653 | echo "${ECHO_T}no" >&6 | |
12654 | fi | |
12655 | ||
12656 | if test "x$AR" = "x" ; then | |
77ffb593 JS |
12657 | { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5 |
12658 | echo "$as_me: error: ar is needed to build wxWidgets" >&2;} | |
a848cd7e SC |
12659 | { (exit 1); exit 1; }; } |
12660 | fi | |
12661 | ||
12662 | # Find a good install program. We prefer a C program (faster), | |
12663 | # so one script is as good as another. But avoid the broken or | |
12664 | # incompatible versions: | |
12665 | # SysV /etc/install, /usr/sbin/install | |
12666 | # SunOS /usr/etc/install | |
12667 | # IRIX /sbin/install | |
12668 | # AIX /bin/install | |
12669 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
12670 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
12671 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
12672 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 12673 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
12674 | # ./install, which can be erroneously created by make from ./install.sh. |
12675 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
12676 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
12677 | if test -z "$INSTALL"; then | |
12678 | if test "${ac_cv_path_install+set}" = set; then | |
12679 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12680 | else | |
12681 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12682 | for as_dir in $PATH | |
12683 | do | |
12684 | IFS=$as_save_IFS | |
12685 | test -z "$as_dir" && as_dir=. | |
12686 | # Account for people who put trailing slashes in PATH elements. | |
12687 | case $as_dir/ in | |
12688 | ./ | .// | /cC/* | \ | |
12689 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 12690 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
12691 | /usr/ucb/* ) ;; |
12692 | *) | |
12693 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
12694 | # Don't use installbsd from OSF since it installs stuff as root | |
12695 | # by default. | |
12696 | for ac_prog in ginstall scoinst install; do | |
12697 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
12698 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
12699 | if test $ac_prog = install && | |
12700 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
12701 | # AIX install. It has an incompatible calling convention. | |
12702 | : | |
12703 | elif test $ac_prog = install && | |
12704 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
12705 | # program-specific install script used by HP pwplus--don't use. | |
12706 | : | |
12707 | else | |
12708 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
12709 | break 3 | |
12710 | fi | |
12711 | fi | |
a848cd7e SC |
12712 | done |
12713 | done | |
12714 | ;; | |
12715 | esac | |
12716 | done | |
12717 | ||
12718 | ||
12719 | fi | |
12720 | if test "${ac_cv_path_install+set}" = set; then | |
12721 | INSTALL=$ac_cv_path_install | |
12722 | else | |
12723 | # As a last resort, use the slow shell script. We don't cache a | |
12724 | # path for INSTALL within a source directory, because that will | |
12725 | # break other packages using the cache if that directory is | |
12726 | # removed, or if the path is relative. | |
12727 | INSTALL=$ac_install_sh | |
12728 | fi | |
12729 | fi | |
12730 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
12731 | echo "${ECHO_T}$INSTALL" >&6 | |
12732 | ||
12733 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
12734 | # It thinks the first close brace ends the variable substitution. | |
12735 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
12736 | ||
12737 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
12738 | ||
12739 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
12740 | ||
12741 | ||
12742 | case ${INSTALL} in | |
12743 | /* ) # Absolute | |
12744 | ;; | |
12745 | ?:* ) # Drive letter, considered as absolute. | |
12746 | ;; | |
12747 | *) | |
12748 | INSTALL=`pwd`/${INSTALL} ;; | |
12749 | esac | |
12750 | ||
a848cd7e SC |
12751 | |
12752 | case "${host}" in | |
12753 | ||
12754 | powerpc-*-darwin* ) | |
12755 | INSTALL_PROGRAM="cp -fp" | |
12756 | INSTALL_DATA="cp -fp" | |
12757 | ;; | |
12758 | *) | |
12759 | ;; | |
12760 | esac | |
12761 | ||
12762 | # Extract the first word of "strip", so it can be a program name with args. | |
12763 | set dummy strip; ac_word=$2 | |
12764 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12765 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12766 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
12767 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12768 | else | |
12769 | if test -n "$STRIP"; then | |
12770 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
12771 | else | |
12772 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12773 | for as_dir in $PATH | |
12774 | do | |
12775 | IFS=$as_save_IFS | |
12776 | test -z "$as_dir" && as_dir=. | |
12777 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12778 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12779 | ac_cv_prog_STRIP="strip" | |
12780 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12781 | break 2 | |
12782 | fi | |
12783 | done | |
12784 | done | |
12785 | ||
12786 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" | |
12787 | fi | |
12788 | fi | |
12789 | STRIP=$ac_cv_prog_STRIP | |
12790 | if test -n "$STRIP"; then | |
12791 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
12792 | echo "${ECHO_T}$STRIP" >&6 | |
12793 | else | |
12794 | echo "$as_me:$LINENO: result: no" >&5 | |
12795 | echo "${ECHO_T}no" >&6 | |
12796 | fi | |
12797 | ||
12798 | ||
12799 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
12800 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
12801 | if test "${wx_cv_prog_makeisgnu+set}" = set; then | |
12802 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12803 | else | |
12804 | ||
12805 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
12806 | egrep -s GNU > /dev/null); then | |
12807 | wx_cv_prog_makeisgnu="yes" | |
12808 | else | |
12809 | wx_cv_prog_makeisgnu="no" | |
12810 | fi | |
12811 | ||
12812 | fi | |
12813 | echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5 | |
12814 | echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6 | |
12815 | ||
12816 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
12817 | IF_GNU_MAKE="" | |
12818 | else | |
12819 | IF_GNU_MAKE="#" | |
12820 | fi | |
12821 | ||
12822 | ||
12823 | ||
12824 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then | |
12825 | echo "$as_me:$LINENO: checking if make supports VPATH" >&5 | |
12826 | echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6 | |
12827 | if test "${wx_cv_prog_makevpath+set}" = set; then | |
12828 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12829 | else | |
12830 | ||
12831 | cat - << EOF > confMake | |
12832 | check : file | |
12833 | cp \$? \$@ | |
12834 | cp \$? final_file | |
12835 | EOF | |
12836 | ||
12837 | if test ! -d sub ; then | |
12838 | mkdir sub | |
12839 | fi | |
12840 | echo dummy > sub/file | |
12841 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null | |
12842 | RESULT=$? | |
12843 | rm -f sub/file check final_file confMake | |
12844 | rmdir sub | |
12845 | if test "$RESULT" = 0; then | |
12846 | wx_cv_prog_makevpath="yes" | |
12847 | else | |
12848 | wx_cv_prog_makevpath="no" | |
12849 | fi | |
12850 | ||
12851 | fi | |
12852 | echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5 | |
12853 | echo "${ECHO_T}$wx_cv_prog_makevpath" >&6 | |
12854 | ||
12855 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
12856 | { { echo "$as_me:$LINENO: error: | |
12857 | You need a make-utility that is able to use the variable | |
12858 | VPATH correctly. | |
12859 | If your version of make does not support VPATH correctly, | |
12860 | please install GNU-make (possibly as gmake), and start | |
12861 | configure with the following command: | |
12862 | export MAKE=gmake; ./configure for sh-type shells | |
12863 | setenv MAKE gmake; ./configure for csh-type shells | |
12864 | Also please do remember to use gmake in this case every time | |
12865 | you are trying to compile. | |
12866 | " >&5 | |
12867 | echo "$as_me: error: | |
12868 | You need a make-utility that is able to use the variable | |
12869 | VPATH correctly. | |
12870 | If your version of make does not support VPATH correctly, | |
12871 | please install GNU-make (possibly as gmake), and start | |
12872 | configure with the following command: | |
12873 | export MAKE=gmake; ./configure for sh-type shells | |
12874 | setenv MAKE gmake; ./configure for csh-type shells | |
12875 | Also please do remember to use gmake in this case every time | |
12876 | you are trying to compile. | |
12877 | " >&2;} | |
12878 | { (exit 1); exit 1; }; } | |
12879 | fi fi | |
12880 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
12881 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
12882 | LN_S=$as_ln_s | |
12883 | if test "$LN_S" = "ln -s"; then | |
12884 | echo "$as_me:$LINENO: result: yes" >&5 | |
12885 | echo "${ECHO_T}yes" >&6 | |
12886 | else | |
12887 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
12888 | echo "${ECHO_T}no, using $LN_S" >&6 | |
12889 | fi | |
12890 | ||
12891 | ||
12892 | ||
4d7ec9f1 DE |
12893 | case "${host}" in |
12894 | powerpc-*-darwin* ) | |
12895 | echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5 | |
12896 | echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6 | |
12897 | cat >conftest.$ac_ext <<_ACEOF | |
12898 | /* confdefs.h. */ | |
12899 | _ACEOF | |
12900 | cat confdefs.h >>conftest.$ac_ext | |
12901 | cat >>conftest.$ac_ext <<_ACEOF | |
12902 | /* end confdefs.h. */ | |
12903 | ||
12904 | int | |
12905 | main () | |
12906 | { | |
12907 | #ifndef __POWERPC__ | |
12908 | choke me for lack of PowerPC | |
12909 | #endif | |
12910 | ||
12911 | ; | |
12912 | return 0; | |
12913 | } | |
12914 | _ACEOF | |
12915 | rm -f conftest.$ac_objext | |
12916 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12917 | (eval $ac_compile) 2>conftest.er1 | |
12918 | ac_status=$? | |
12919 | grep -v '^ *+' conftest.er1 >conftest.err | |
12920 | rm -f conftest.er1 | |
12921 | cat conftest.err >&5 | |
12922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12923 | (exit $ac_status); } && | |
12924 | { ac_try='test -z "$ac_c_werror_flag" | |
12925 | || test ! -s conftest.err' | |
12926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12927 | (eval $ac_try) 2>&5 | |
12928 | ac_status=$? | |
12929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12930 | (exit $ac_status); }; } && | |
12931 | { ac_try='test -s conftest.$ac_objext' | |
12932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12933 | (eval $ac_try) 2>&5 | |
12934 | ac_status=$? | |
12935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12936 | (exit $ac_status); }; }; then | |
12937 | echo "$as_me:$LINENO: result: yes" >&5 | |
12938 | echo "${ECHO_T}yes" >&6 | |
12939 | else | |
12940 | echo "$as_me: failed program was:" >&5 | |
12941 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12942 | ||
12943 | echo "$as_me:$LINENO: result: no" >&5 | |
12944 | echo "${ECHO_T}no" >&6 | |
12945 | cat >>confdefs.h <<\_ACEOF | |
12946 | #define __POWERPC__ 1 | |
12947 | _ACEOF | |
12948 | ||
12949 | ||
12950 | fi | |
12951 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12952 | echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5 | |
12953 | echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6 | |
12954 | cat >conftest.$ac_ext <<_ACEOF | |
12955 | /* confdefs.h. */ | |
12956 | _ACEOF | |
12957 | cat confdefs.h >>conftest.$ac_ext | |
12958 | cat >>conftest.$ac_ext <<_ACEOF | |
12959 | /* end confdefs.h. */ | |
12960 | #include <CoreFoundation/CFBase.h> | |
12961 | ||
12962 | int | |
12963 | main () | |
12964 | { | |
12965 | ||
12966 | ; | |
12967 | return 0; | |
12968 | } | |
12969 | _ACEOF | |
12970 | rm -f conftest.$ac_objext | |
12971 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12972 | (eval $ac_compile) 2>conftest.er1 | |
12973 | ac_status=$? | |
12974 | grep -v '^ *+' conftest.er1 >conftest.err | |
12975 | rm -f conftest.er1 | |
12976 | cat conftest.err >&5 | |
12977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12978 | (exit $ac_status); } && | |
12979 | { ac_try='test -z "$ac_c_werror_flag" | |
12980 | || test ! -s conftest.err' | |
12981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12982 | (eval $ac_try) 2>&5 | |
12983 | ac_status=$? | |
12984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12985 | (exit $ac_status); }; } && | |
12986 | { ac_try='test -s conftest.$ac_objext' | |
12987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12988 | (eval $ac_try) 2>&5 | |
12989 | ac_status=$? | |
12990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12991 | (exit $ac_status); }; }; then | |
12992 | echo "$as_me:$LINENO: result: yes" >&5 | |
12993 | echo "${ECHO_T}yes" >&6 | |
12994 | else | |
12995 | echo "$as_me: failed program was:" >&5 | |
12996 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12997 | ||
12998 | echo "$as_me:$LINENO: result: no" >&5 | |
12999 | echo "${ECHO_T}no" >&6 | |
13000 | echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5 | |
13001 | echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6 | |
13002 | cat >conftest.$ac_ext <<_ACEOF | |
13003 | /* confdefs.h. */ | |
13004 | _ACEOF | |
13005 | cat confdefs.h >>conftest.$ac_ext | |
13006 | cat >>conftest.$ac_ext <<_ACEOF | |
13007 | /* end confdefs.h. */ | |
13008 | #define __CF_USE_FRAMEWORK_INCLUDES__ | |
13009 | #include <CoreFoundation/CFBase.h> | |
13010 | ||
13011 | int | |
13012 | main () | |
13013 | { | |
13014 | ||
13015 | ; | |
13016 | return 0; | |
13017 | } | |
13018 | _ACEOF | |
13019 | rm -f conftest.$ac_objext | |
13020 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13021 | (eval $ac_compile) 2>conftest.er1 | |
13022 | ac_status=$? | |
13023 | grep -v '^ *+' conftest.er1 >conftest.err | |
13024 | rm -f conftest.er1 | |
13025 | cat conftest.err >&5 | |
13026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13027 | (exit $ac_status); } && | |
13028 | { ac_try='test -z "$ac_c_werror_flag" | |
13029 | || test ! -s conftest.err' | |
13030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13031 | (eval $ac_try) 2>&5 | |
13032 | ac_status=$? | |
13033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13034 | (exit $ac_status); }; } && | |
13035 | { ac_try='test -s conftest.$ac_objext' | |
13036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13037 | (eval $ac_try) 2>&5 | |
13038 | ac_status=$? | |
13039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13040 | (exit $ac_status); }; }; then | |
13041 | echo "$as_me:$LINENO: result: yes" >&5 | |
13042 | echo "${ECHO_T}yes" >&6 | |
13043 | CPPFLAGS="$CPPFLAGS -D__CF_USE_FRAMEWORK_INCLUDES__" | |
13044 | else | |
13045 | echo "$as_me: failed program was:" >&5 | |
13046 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13047 | ||
13048 | { { echo "$as_me:$LINENO: error: no. CoreFoundation not available. | |
13049 | See \`config.log' for more details." >&5 | |
13050 | echo "$as_me: error: no. CoreFoundation not available. | |
13051 | See \`config.log' for more details." >&2;} | |
13052 | { (exit 1); exit 1; }; } | |
13053 | ||
13054 | fi | |
13055 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13056 | ||
13057 | ||
13058 | fi | |
13059 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13060 | ;; | |
13061 | esac | |
13062 | ||
a848cd7e SC |
13063 | case "${host}" in |
13064 | *-pc-os2_emx | *-pc-os2-emx ) | |
13065 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then | |
13066 | echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5 | |
13067 | echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6 | |
13068 | if test "${ac_cv_lib_cExt_drand48+set}" = set; then | |
13069 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13070 | else | |
13071 | ac_check_lib_save_LIBS=$LIBS | |
13072 | LIBS="-lcExt $LIBS" | |
13073 | cat >conftest.$ac_ext <<_ACEOF | |
13074 | /* confdefs.h. */ | |
13075 | _ACEOF | |
13076 | cat confdefs.h >>conftest.$ac_ext | |
13077 | cat >>conftest.$ac_ext <<_ACEOF | |
13078 | /* end confdefs.h. */ | |
13079 | ||
13080 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13081 | #ifdef __cplusplus | |
13082 | extern "C" | |
13083 | #endif | |
13084 | /* We use char because int might match the return type of a gcc2 | |
13085 | builtin and then its argument prototype would still apply. */ | |
13086 | char drand48 (); | |
13087 | int | |
13088 | main () | |
13089 | { | |
13090 | drand48 (); | |
13091 | ; | |
13092 | return 0; | |
13093 | } | |
13094 | _ACEOF | |
13095 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13096 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 13097 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 13098 | ac_status=$? |
ac1cb8d3 VS |
13099 | grep -v '^ *+' conftest.er1 >conftest.err |
13100 | rm -f conftest.er1 | |
13101 | cat conftest.err >&5 | |
a848cd7e SC |
13102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13103 | (exit $ac_status); } && | |
89be85c2 VS |
13104 | { ac_try='test -z "$ac_c_werror_flag" |
13105 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13107 | (eval $ac_try) 2>&5 | |
13108 | ac_status=$? | |
13109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13110 | (exit $ac_status); }; } && | |
13111 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
13112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13113 | (eval $ac_try) 2>&5 | |
13114 | ac_status=$? | |
13115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13116 | (exit $ac_status); }; }; then | |
13117 | ac_cv_lib_cExt_drand48=yes | |
13118 | else | |
13119 | echo "$as_me: failed program was:" >&5 | |
13120 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13121 | ||
13122 | ac_cv_lib_cExt_drand48=no | |
13123 | fi | |
ac1cb8d3 VS |
13124 | rm -f conftest.err conftest.$ac_objext \ |
13125 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
13126 | LIBS=$ac_check_lib_save_LIBS |
13127 | fi | |
13128 | echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5 | |
13129 | echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6 | |
13130 | if test $ac_cv_lib_cExt_drand48 = yes; then | |
13131 | LIBS="$LIBS -lcExt" | |
13132 | fi | |
13133 | ||
13134 | else | |
13135 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
13136 | fi | |
391a765e | 13137 | echo "$as_me:$LINENO: checking for gcc version" >&5 |
a848cd7e SC |
13138 | echo $ECHO_N "checking for gcc version... $ECHO_C" >&6 |
13139 | if test "${wx_cv_gccversion+set}" = set; then | |
13140 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13141 | else | |
13142 | ||
391a765e VS |
13143 | if test "$cross_compiling" = yes; then |
13144 | wx_cv_gccversion="EMX2" | |
13145 | ||
13146 | else | |
13147 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
13148 | /* confdefs.h. */ |
13149 | _ACEOF | |
13150 | cat confdefs.h >>conftest.$ac_ext | |
13151 | cat >>conftest.$ac_ext <<_ACEOF | |
13152 | /* end confdefs.h. */ | |
13153 | ||
391a765e | 13154 | #include <stdio.h> |
a848cd7e | 13155 | |
391a765e VS |
13156 | int main() |
13157 | { | |
13158 | FILE *f=fopen("conftestval", "w"); | |
13159 | if (!f) exit(1); | |
13160 | fprintf(f, | |
a848cd7e | 13161 | #if (__GNUC__ < 3) |
391a765e VS |
13162 | "EMX2" |
13163 | #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2))) | |
13164 | "EMX3" | |
13165 | #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2) | |
13166 | "Innotek5" | |
13167 | #else | |
13168 | "Innotek6" | |
a848cd7e | 13169 | #endif |
391a765e VS |
13170 | ); |
13171 | exit(0); | |
13172 | } | |
a848cd7e | 13173 | |
a848cd7e | 13174 | _ACEOF |
391a765e VS |
13175 | rm -f conftest$ac_exeext |
13176 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13177 | (eval $ac_link) 2>&5 | |
ac1cb8d3 VS |
13178 | ac_status=$? |
13179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
391a765e | 13180 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
a848cd7e SC |
13181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13182 | (eval $ac_try) 2>&5 | |
13183 | ac_status=$? | |
13184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13185 | (exit $ac_status); }; }; then | |
391a765e | 13186 | wx_cv_gccversion=`cat conftestval` |
a848cd7e | 13187 | else |
391a765e VS |
13188 | echo "$as_me: program exited with status $ac_status" >&5 |
13189 | echo "$as_me: failed program was:" >&5 | |
a848cd7e SC |
13190 | sed 's/^/| /' conftest.$ac_ext >&5 |
13191 | ||
391a765e VS |
13192 | ( exit $ac_status ) |
13193 | wx_cv_gccversion="EMX2" | |
a848cd7e | 13194 | fi |
391a765e | 13195 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 13196 | fi |
a848cd7e SC |
13197 | |
13198 | fi | |
13199 | echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5 | |
13200 | echo "${ECHO_T}$wx_cv_gccversion" >&6 | |
391a765e | 13201 | if test "$wx_cv_gccversion" = "EMX2"; then |
a848cd7e SC |
13202 | LIBS="$LIBS -lstdcpp" |
13203 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
13204 | else | |
391a765e | 13205 | if test "$wx_cv_gccversion" = "EMX3"; then |
a848cd7e SC |
13206 | LIBS="$LIBS -lstdcxx" |
13207 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
13208 | else | |
13209 | LIBS="$LIBS -lstdc++" | |
13210 | fi | |
13211 | fi | |
94acd38e DE |
13212 | if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then |
13213 | { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5 | |
13214 | echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;} | |
13215 | wxUSE_OMF=yes | |
13216 | fi | |
a848cd7e | 13217 | if test "$wxUSE_OMF" = "yes"; then |
de59c161 | 13218 | LDFLAGS="$LDFLAGS -Zomf -Zlinker /PMTYPE:PM -Zlinker /EXEPACK" |
a848cd7e SC |
13219 | fi |
13220 | ;; | |
13221 | *) | |
13222 | ||
13223 | ||
13224 | ||
13225 | ac_ext=cc | |
13226 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13227 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13228 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13229 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13230 | ||
13231 | ||
95986553 | 13232 | echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5 |
a848cd7e SC |
13233 | echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6 |
13234 | if test "${ac_cv_string_strcasecmp+set}" = set; then | |
13235 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13236 | else | |
13237 | ||
13238 | cat >conftest.$ac_ext <<_ACEOF | |
13239 | /* confdefs.h. */ | |
13240 | _ACEOF | |
13241 | cat confdefs.h >>conftest.$ac_ext | |
13242 | cat >>conftest.$ac_ext <<_ACEOF | |
13243 | /* end confdefs.h. */ | |
13244 | ||
13245 | #include <string.h> | |
13246 | ||
13247 | int | |
13248 | main () | |
13249 | { | |
13250 | ||
13251 | strcasecmp("foo", "bar"); | |
13252 | ||
13253 | ; | |
13254 | return 0; | |
13255 | } | |
13256 | _ACEOF | |
13257 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13258 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 13259 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 13260 | ac_status=$? |
ac1cb8d3 VS |
13261 | grep -v '^ *+' conftest.er1 >conftest.err |
13262 | rm -f conftest.er1 | |
13263 | cat conftest.err >&5 | |
a848cd7e SC |
13264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13265 | (exit $ac_status); } && | |
89be85c2 VS |
13266 | { ac_try='test -z "$ac_cxx_werror_flag" |
13267 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13269 | (eval $ac_try) 2>&5 | |
13270 | ac_status=$? | |
13271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13272 | (exit $ac_status); }; } && | |
13273 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
13274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13275 | (eval $ac_try) 2>&5 | |
13276 | ac_status=$? | |
13277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13278 | (exit $ac_status); }; }; then | |
13279 | ac_cv_string_strcasecmp=yes | |
13280 | else | |
13281 | echo "$as_me: failed program was:" >&5 | |
13282 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13283 | ||
13284 | ac_cv_string_strcasecmp=no | |
13285 | ||
13286 | fi | |
ac1cb8d3 VS |
13287 | rm -f conftest.err conftest.$ac_objext \ |
13288 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
13289 | |
13290 | fi | |
13291 | echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5 | |
13292 | echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6 | |
13293 | ||
13294 | if test x"$ac_cv_string_strcasecmp" = "xyes"; then | |
13295 | cat >>confdefs.h <<\_ACEOF | |
13296 | #define HAVE_STRCASECMP_IN_STRING_H 1 | |
13297 | _ACEOF | |
13298 | ||
13299 | else | |
13300 | echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5 | |
13301 | echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6 | |
13302 | if test "${ac_cv_strings_strcasecmp+set}" = set; then | |
13303 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13304 | else | |
13305 | ||
13306 | cat >conftest.$ac_ext <<_ACEOF | |
13307 | /* confdefs.h. */ | |
13308 | _ACEOF | |
13309 | cat confdefs.h >>conftest.$ac_ext | |
13310 | cat >>conftest.$ac_ext <<_ACEOF | |
13311 | /* end confdefs.h. */ | |
13312 | ||
13313 | #include <strings.h> | |
13314 | ||
13315 | int | |
13316 | main () | |
13317 | { | |
13318 | ||
13319 | strcasecmp("foo", "bar"); | |
13320 | ||
13321 | ; | |
13322 | return 0; | |
13323 | } | |
13324 | _ACEOF | |
13325 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13326 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 13327 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 13328 | ac_status=$? |
ac1cb8d3 VS |
13329 | grep -v '^ *+' conftest.er1 >conftest.err |
13330 | rm -f conftest.er1 | |
13331 | cat conftest.err >&5 | |
a848cd7e SC |
13332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13333 | (exit $ac_status); } && | |
89be85c2 VS |
13334 | { ac_try='test -z "$ac_cxx_werror_flag" |
13335 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13337 | (eval $ac_try) 2>&5 | |
13338 | ac_status=$? | |
13339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13340 | (exit $ac_status); }; } && | |
13341 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
13342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13343 | (eval $ac_try) 2>&5 | |
13344 | ac_status=$? | |
13345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13346 | (exit $ac_status); }; }; then | |
13347 | ac_cv_strings_strcasecmp=yes | |
13348 | else | |
13349 | echo "$as_me: failed program was:" >&5 | |
13350 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13351 | ||
13352 | ac_cv_strings_strcasecmp=no | |
13353 | ||
13354 | fi | |
ac1cb8d3 VS |
13355 | rm -f conftest.err conftest.$ac_objext \ |
13356 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
13357 | |
13358 | fi | |
13359 | echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5 | |
13360 | echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6 | |
13361 | ||
0c3c69fc | 13362 | if test x"$ac_cv_strings_strcasecmp" = "xyes"; then |
a848cd7e SC |
13363 | cat >>confdefs.h <<\_ACEOF |
13364 | #define HAVE_STRCASECMP_IN_STRINGS_H 1 | |
13365 | _ACEOF | |
13366 | ||
13367 | else | |
13368 | { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5 | |
13369 | echo "$as_me: error: No case-insensitive string comparison function found." >&2;} | |
13370 | { (exit 1); exit 1; }; } | |
13371 | fi | |
13372 | fi | |
13373 | ||
13374 | ac_ext=c | |
13375 | ac_cpp='$CPP $CPPFLAGS' | |
13376 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13377 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13378 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13379 | ||
13380 | ;; | |
13381 | esac | |
13382 | ||
13383 | ||
13384 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
13385 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
13386 | if test "${ac_cv_header_stdc+set}" = set; then | |
13387 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13388 | else | |
13389 | cat >conftest.$ac_ext <<_ACEOF | |
13390 | /* confdefs.h. */ | |
13391 | _ACEOF | |
13392 | cat confdefs.h >>conftest.$ac_ext | |
13393 | cat >>conftest.$ac_ext <<_ACEOF | |
13394 | /* end confdefs.h. */ | |
13395 | #include <stdlib.h> | |
13396 | #include <stdarg.h> | |
13397 | #include <string.h> | |
13398 | #include <float.h> | |
13399 | ||
13400 | int | |
13401 | main () | |
13402 | { | |
13403 | ||
13404 | ; | |
13405 | return 0; | |
13406 | } | |
13407 | _ACEOF | |
13408 | rm -f conftest.$ac_objext | |
13409 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13410 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13411 | ac_status=$? |
ac1cb8d3 VS |
13412 | grep -v '^ *+' conftest.er1 >conftest.err |
13413 | rm -f conftest.er1 | |
13414 | cat conftest.err >&5 | |
a848cd7e SC |
13415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13416 | (exit $ac_status); } && | |
89be85c2 VS |
13417 | { ac_try='test -z "$ac_c_werror_flag" |
13418 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13420 | (eval $ac_try) 2>&5 | |
13421 | ac_status=$? | |
13422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13423 | (exit $ac_status); }; } && | |
13424 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13426 | (eval $ac_try) 2>&5 | |
13427 | ac_status=$? | |
13428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13429 | (exit $ac_status); }; }; then | |
13430 | ac_cv_header_stdc=yes | |
13431 | else | |
13432 | echo "$as_me: failed program was:" >&5 | |
13433 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13434 | ||
13435 | ac_cv_header_stdc=no | |
13436 | fi | |
ac1cb8d3 | 13437 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13438 | |
13439 | if test $ac_cv_header_stdc = yes; then | |
13440 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
13441 | cat >conftest.$ac_ext <<_ACEOF | |
13442 | /* confdefs.h. */ | |
13443 | _ACEOF | |
13444 | cat confdefs.h >>conftest.$ac_ext | |
13445 | cat >>conftest.$ac_ext <<_ACEOF | |
13446 | /* end confdefs.h. */ | |
13447 | #include <string.h> | |
13448 | ||
13449 | _ACEOF | |
13450 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13451 | $EGREP "memchr" >/dev/null 2>&1; then | |
13452 | : | |
13453 | else | |
13454 | ac_cv_header_stdc=no | |
13455 | fi | |
13456 | rm -f conftest* | |
13457 | ||
13458 | fi | |
13459 | ||
13460 | if test $ac_cv_header_stdc = yes; then | |
13461 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
13462 | cat >conftest.$ac_ext <<_ACEOF | |
13463 | /* confdefs.h. */ | |
13464 | _ACEOF | |
13465 | cat confdefs.h >>conftest.$ac_ext | |
13466 | cat >>conftest.$ac_ext <<_ACEOF | |
13467 | /* end confdefs.h. */ | |
13468 | #include <stdlib.h> | |
13469 | ||
13470 | _ACEOF | |
13471 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13472 | $EGREP "free" >/dev/null 2>&1; then | |
13473 | : | |
13474 | else | |
13475 | ac_cv_header_stdc=no | |
13476 | fi | |
13477 | rm -f conftest* | |
13478 | ||
13479 | fi | |
13480 | ||
13481 | if test $ac_cv_header_stdc = yes; then | |
13482 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
13483 | if test "$cross_compiling" = yes; then | |
13484 | : | |
13485 | else | |
13486 | cat >conftest.$ac_ext <<_ACEOF | |
13487 | /* confdefs.h. */ | |
13488 | _ACEOF | |
13489 | cat confdefs.h >>conftest.$ac_ext | |
13490 | cat >>conftest.$ac_ext <<_ACEOF | |
13491 | /* end confdefs.h. */ | |
13492 | #include <ctype.h> | |
13493 | #if ((' ' & 0x0FF) == 0x020) | |
13494 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
13495 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
13496 | #else | |
13497 | # define ISLOWER(c) \ | |
ac1cb8d3 VS |
13498 | (('a' <= (c) && (c) <= 'i') \ |
13499 | || ('j' <= (c) && (c) <= 'r') \ | |
13500 | || ('s' <= (c) && (c) <= 'z')) | |
a848cd7e SC |
13501 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
13502 | #endif | |
13503 | ||
13504 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
13505 | int | |
13506 | main () | |
13507 | { | |
13508 | int i; | |
13509 | for (i = 0; i < 256; i++) | |
13510 | if (XOR (islower (i), ISLOWER (i)) | |
ac1cb8d3 | 13511 | || toupper (i) != TOUPPER (i)) |
a848cd7e SC |
13512 | exit(2); |
13513 | exit (0); | |
13514 | } | |
13515 | _ACEOF | |
13516 | rm -f conftest$ac_exeext | |
13517 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13518 | (eval $ac_link) 2>&5 | |
13519 | ac_status=$? | |
13520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13521 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
13522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13523 | (eval $ac_try) 2>&5 | |
13524 | ac_status=$? | |
13525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13526 | (exit $ac_status); }; }; then | |
13527 | : | |
13528 | else | |
13529 | echo "$as_me: program exited with status $ac_status" >&5 | |
13530 | echo "$as_me: failed program was:" >&5 | |
13531 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13532 | ||
13533 | ( exit $ac_status ) | |
13534 | ac_cv_header_stdc=no | |
13535 | fi | |
ac1cb8d3 | 13536 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13537 | fi |
13538 | fi | |
13539 | fi | |
13540 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
13541 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
13542 | if test $ac_cv_header_stdc = yes; then | |
13543 | ||
13544 | cat >>confdefs.h <<\_ACEOF | |
13545 | #define STDC_HEADERS 1 | |
13546 | _ACEOF | |
13547 | ||
13548 | fi | |
13549 | ||
13550 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
13551 | ||
13552 | ||
13553 | ||
13554 | ||
13555 | ||
13556 | ||
13557 | ||
13558 | ||
13559 | ||
13560 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
ac1cb8d3 | 13561 | inttypes.h stdint.h unistd.h |
a848cd7e SC |
13562 | do |
13563 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13564 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13565 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13566 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13567 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13568 | else | |
13569 | cat >conftest.$ac_ext <<_ACEOF | |
13570 | /* confdefs.h. */ | |
13571 | _ACEOF | |
13572 | cat confdefs.h >>conftest.$ac_ext | |
13573 | cat >>conftest.$ac_ext <<_ACEOF | |
13574 | /* end confdefs.h. */ | |
13575 | $ac_includes_default | |
13576 | ||
13577 | #include <$ac_header> | |
13578 | _ACEOF | |
13579 | rm -f conftest.$ac_objext | |
13580 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13581 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13582 | ac_status=$? |
ac1cb8d3 VS |
13583 | grep -v '^ *+' conftest.er1 >conftest.err |
13584 | rm -f conftest.er1 | |
13585 | cat conftest.err >&5 | |
a848cd7e SC |
13586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13587 | (exit $ac_status); } && | |
89be85c2 VS |
13588 | { ac_try='test -z "$ac_c_werror_flag" |
13589 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13591 | (eval $ac_try) 2>&5 | |
13592 | ac_status=$? | |
13593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13594 | (exit $ac_status); }; } && | |
13595 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13597 | (eval $ac_try) 2>&5 | |
13598 | ac_status=$? | |
13599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13600 | (exit $ac_status); }; }; then | |
13601 | eval "$as_ac_Header=yes" | |
13602 | else | |
13603 | echo "$as_me: failed program was:" >&5 | |
13604 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13605 | ||
13606 | eval "$as_ac_Header=no" | |
13607 | fi | |
ac1cb8d3 | 13608 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13609 | fi |
13610 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13611 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13612 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13613 | cat >>confdefs.h <<_ACEOF | |
13614 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13615 | _ACEOF | |
13616 | ||
13617 | fi | |
13618 | ||
13619 | done | |
13620 | ||
13621 | ||
13622 | ||
13623 | for ac_header in stdlib.h | |
13624 | do | |
13625 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13626 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13627 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13628 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13629 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13630 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13631 | fi | |
13632 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13633 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13634 | else | |
13635 | # Is the header compilable? | |
13636 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13637 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13638 | cat >conftest.$ac_ext <<_ACEOF | |
13639 | /* confdefs.h. */ | |
13640 | _ACEOF | |
13641 | cat confdefs.h >>conftest.$ac_ext | |
13642 | cat >>conftest.$ac_ext <<_ACEOF | |
13643 | /* end confdefs.h. */ | |
13644 | $ac_includes_default | |
13645 | #include <$ac_header> | |
13646 | _ACEOF | |
13647 | rm -f conftest.$ac_objext | |
13648 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13649 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13650 | ac_status=$? |
ac1cb8d3 VS |
13651 | grep -v '^ *+' conftest.er1 >conftest.err |
13652 | rm -f conftest.er1 | |
13653 | cat conftest.err >&5 | |
a848cd7e SC |
13654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13655 | (exit $ac_status); } && | |
89be85c2 VS |
13656 | { ac_try='test -z "$ac_c_werror_flag" |
13657 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13659 | (eval $ac_try) 2>&5 | |
13660 | ac_status=$? | |
13661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13662 | (exit $ac_status); }; } && | |
13663 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13665 | (eval $ac_try) 2>&5 | |
13666 | ac_status=$? | |
13667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13668 | (exit $ac_status); }; }; then | |
13669 | ac_header_compiler=yes | |
13670 | else | |
13671 | echo "$as_me: failed program was:" >&5 | |
13672 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13673 | ||
13674 | ac_header_compiler=no | |
13675 | fi | |
ac1cb8d3 | 13676 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13677 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13678 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13679 | ||
13680 | # Is the header present? | |
13681 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13682 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13683 | cat >conftest.$ac_ext <<_ACEOF | |
13684 | /* confdefs.h. */ | |
13685 | _ACEOF | |
13686 | cat confdefs.h >>conftest.$ac_ext | |
13687 | cat >>conftest.$ac_ext <<_ACEOF | |
13688 | /* end confdefs.h. */ | |
13689 | #include <$ac_header> | |
13690 | _ACEOF | |
13691 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13692 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13693 | ac_status=$? | |
13694 | grep -v '^ *+' conftest.er1 >conftest.err | |
13695 | rm -f conftest.er1 | |
13696 | cat conftest.err >&5 | |
13697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13698 | (exit $ac_status); } >/dev/null; then | |
13699 | if test -s conftest.err; then | |
13700 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13701 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13702 | else |
13703 | ac_cpp_err= | |
13704 | fi | |
13705 | else | |
13706 | ac_cpp_err=yes | |
13707 | fi | |
13708 | if test -z "$ac_cpp_err"; then | |
13709 | ac_header_preproc=yes | |
13710 | else | |
13711 | echo "$as_me: failed program was:" >&5 | |
13712 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13713 | ||
13714 | ac_header_preproc=no | |
13715 | fi | |
13716 | rm -f conftest.err conftest.$ac_ext | |
13717 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13718 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13719 | ||
13720 | # So? What about this header? | |
ac1cb8d3 VS |
13721 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13722 | yes:no: ) | |
a848cd7e SC |
13723 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13724 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13725 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13726 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13727 | ac_header_preproc=yes | |
a848cd7e | 13728 | ;; |
ac1cb8d3 | 13729 | no:yes:* ) |
a848cd7e SC |
13730 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13731 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13732 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13733 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13734 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13735 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13736 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13737 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13738 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13739 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13740 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13741 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13742 | ( |
13743 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13744 | ## ----------------------------------------- ## |
13745 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13746 | ## ----------------------------------------- ## | |
a848cd7e SC |
13747 | _ASBOX |
13748 | ) | | |
13749 | sed "s/^/$as_me: WARNING: /" >&2 | |
13750 | ;; | |
13751 | esac | |
13752 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13753 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13754 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13755 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13756 | else | |
ac1cb8d3 | 13757 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13758 | fi |
13759 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13760 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13761 | ||
13762 | fi | |
13763 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13764 | cat >>confdefs.h <<_ACEOF | |
13765 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13766 | _ACEOF | |
13767 | ||
13768 | fi | |
13769 | ||
13770 | done | |
13771 | ||
13772 | ||
13773 | for ac_header in malloc.h | |
13774 | do | |
13775 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13776 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13777 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13778 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13779 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13780 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13781 | fi | |
13782 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13783 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13784 | else | |
13785 | # Is the header compilable? | |
13786 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13787 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13788 | cat >conftest.$ac_ext <<_ACEOF | |
13789 | /* confdefs.h. */ | |
13790 | _ACEOF | |
13791 | cat confdefs.h >>conftest.$ac_ext | |
13792 | cat >>conftest.$ac_ext <<_ACEOF | |
13793 | /* end confdefs.h. */ | |
13794 | $ac_includes_default | |
13795 | #include <$ac_header> | |
13796 | _ACEOF | |
13797 | rm -f conftest.$ac_objext | |
13798 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13799 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13800 | ac_status=$? |
ac1cb8d3 VS |
13801 | grep -v '^ *+' conftest.er1 >conftest.err |
13802 | rm -f conftest.er1 | |
13803 | cat conftest.err >&5 | |
a848cd7e SC |
13804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13805 | (exit $ac_status); } && | |
89be85c2 VS |
13806 | { ac_try='test -z "$ac_c_werror_flag" |
13807 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13809 | (eval $ac_try) 2>&5 | |
13810 | ac_status=$? | |
13811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13812 | (exit $ac_status); }; } && | |
13813 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13815 | (eval $ac_try) 2>&5 | |
13816 | ac_status=$? | |
13817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13818 | (exit $ac_status); }; }; then | |
13819 | ac_header_compiler=yes | |
13820 | else | |
13821 | echo "$as_me: failed program was:" >&5 | |
13822 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13823 | ||
13824 | ac_header_compiler=no | |
13825 | fi | |
ac1cb8d3 | 13826 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13827 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13828 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13829 | ||
13830 | # Is the header present? | |
13831 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13832 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
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 | #include <$ac_header> | |
13840 | _ACEOF | |
13841 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13842 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13843 | ac_status=$? | |
13844 | grep -v '^ *+' conftest.er1 >conftest.err | |
13845 | rm -f conftest.er1 | |
13846 | cat conftest.err >&5 | |
13847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13848 | (exit $ac_status); } >/dev/null; then | |
13849 | if test -s conftest.err; then | |
13850 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13851 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13852 | else |
13853 | ac_cpp_err= | |
13854 | fi | |
13855 | else | |
13856 | ac_cpp_err=yes | |
13857 | fi | |
13858 | if test -z "$ac_cpp_err"; then | |
13859 | ac_header_preproc=yes | |
13860 | else | |
13861 | echo "$as_me: failed program was:" >&5 | |
13862 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13863 | ||
13864 | ac_header_preproc=no | |
13865 | fi | |
13866 | rm -f conftest.err conftest.$ac_ext | |
13867 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13868 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13869 | ||
13870 | # So? What about this header? | |
ac1cb8d3 VS |
13871 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13872 | yes:no: ) | |
a848cd7e SC |
13873 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13874 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13875 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13876 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13877 | ac_header_preproc=yes | |
a848cd7e | 13878 | ;; |
ac1cb8d3 | 13879 | no:yes:* ) |
a848cd7e SC |
13880 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13881 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13882 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13883 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13884 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13885 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13886 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13887 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13888 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13889 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13890 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13891 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13892 | ( |
13893 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13894 | ## ----------------------------------------- ## |
13895 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13896 | ## ----------------------------------------- ## | |
a848cd7e SC |
13897 | _ASBOX |
13898 | ) | | |
13899 | sed "s/^/$as_me: WARNING: /" >&2 | |
13900 | ;; | |
13901 | esac | |
13902 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13903 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13904 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13905 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13906 | else | |
ac1cb8d3 | 13907 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13908 | fi |
13909 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13910 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13911 | ||
13912 | fi | |
13913 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13914 | cat >>confdefs.h <<_ACEOF | |
13915 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13916 | _ACEOF | |
13917 | ||
13918 | fi | |
13919 | ||
13920 | done | |
13921 | ||
13922 | ||
13923 | for ac_header in unistd.h | |
13924 | do | |
13925 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13926 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13927 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13928 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13929 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13930 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13931 | fi | |
13932 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13933 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13934 | else | |
13935 | # Is the header compilable? | |
13936 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13937 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13938 | cat >conftest.$ac_ext <<_ACEOF | |
13939 | /* confdefs.h. */ | |
13940 | _ACEOF | |
13941 | cat confdefs.h >>conftest.$ac_ext | |
13942 | cat >>conftest.$ac_ext <<_ACEOF | |
13943 | /* end confdefs.h. */ | |
13944 | $ac_includes_default | |
13945 | #include <$ac_header> | |
13946 | _ACEOF | |
13947 | rm -f conftest.$ac_objext | |
13948 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13949 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13950 | ac_status=$? |
ac1cb8d3 VS |
13951 | grep -v '^ *+' conftest.er1 >conftest.err |
13952 | rm -f conftest.er1 | |
13953 | cat conftest.err >&5 | |
a848cd7e SC |
13954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13955 | (exit $ac_status); } && | |
89be85c2 VS |
13956 | { ac_try='test -z "$ac_c_werror_flag" |
13957 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13959 | (eval $ac_try) 2>&5 | |
13960 | ac_status=$? | |
13961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13962 | (exit $ac_status); }; } && | |
13963 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13965 | (eval $ac_try) 2>&5 | |
13966 | ac_status=$? | |
13967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13968 | (exit $ac_status); }; }; then | |
13969 | ac_header_compiler=yes | |
13970 | else | |
13971 | echo "$as_me: failed program was:" >&5 | |
13972 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13973 | ||
13974 | ac_header_compiler=no | |
13975 | fi | |
ac1cb8d3 | 13976 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13977 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13978 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13979 | ||
13980 | # Is the header present? | |
13981 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13982 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13983 | cat >conftest.$ac_ext <<_ACEOF | |
13984 | /* confdefs.h. */ | |
13985 | _ACEOF | |
13986 | cat confdefs.h >>conftest.$ac_ext | |
13987 | cat >>conftest.$ac_ext <<_ACEOF | |
13988 | /* end confdefs.h. */ | |
13989 | #include <$ac_header> | |
13990 | _ACEOF | |
13991 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13992 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13993 | ac_status=$? | |
13994 | grep -v '^ *+' conftest.er1 >conftest.err | |
13995 | rm -f conftest.er1 | |
13996 | cat conftest.err >&5 | |
13997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13998 | (exit $ac_status); } >/dev/null; then | |
13999 | if test -s conftest.err; then | |
14000 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14001 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14002 | else |
14003 | ac_cpp_err= | |
14004 | fi | |
14005 | else | |
14006 | ac_cpp_err=yes | |
14007 | fi | |
14008 | if test -z "$ac_cpp_err"; then | |
14009 | ac_header_preproc=yes | |
14010 | else | |
14011 | echo "$as_me: failed program was:" >&5 | |
14012 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14013 | ||
14014 | ac_header_preproc=no | |
14015 | fi | |
14016 | rm -f conftest.err conftest.$ac_ext | |
14017 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14018 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14019 | ||
14020 | # So? What about this header? | |
ac1cb8d3 VS |
14021 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14022 | yes:no: ) | |
a848cd7e SC |
14023 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14024 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14025 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14026 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14027 | ac_header_preproc=yes | |
a848cd7e | 14028 | ;; |
ac1cb8d3 | 14029 | no:yes:* ) |
a848cd7e SC |
14030 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14031 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14032 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14033 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14034 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14035 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14036 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14037 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14038 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14039 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14040 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14041 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14042 | ( |
14043 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14044 | ## ----------------------------------------- ## |
14045 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14046 | ## ----------------------------------------- ## | |
a848cd7e SC |
14047 | _ASBOX |
14048 | ) | | |
14049 | sed "s/^/$as_me: WARNING: /" >&2 | |
14050 | ;; | |
14051 | esac | |
14052 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14053 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14054 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14055 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14056 | else | |
ac1cb8d3 | 14057 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14058 | fi |
14059 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14060 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14061 | ||
14062 | fi | |
14063 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14064 | cat >>confdefs.h <<_ACEOF | |
14065 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14066 | _ACEOF | |
14067 | ||
14068 | fi | |
14069 | ||
14070 | done | |
14071 | ||
14072 | ||
14073 | for ac_header in wchar.h | |
14074 | do | |
14075 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14076 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14077 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14078 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14079 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14080 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14081 | fi | |
14082 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14083 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14084 | else | |
14085 | # Is the header compilable? | |
14086 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14087 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14088 | cat >conftest.$ac_ext <<_ACEOF | |
14089 | /* confdefs.h. */ | |
14090 | _ACEOF | |
14091 | cat confdefs.h >>conftest.$ac_ext | |
14092 | cat >>conftest.$ac_ext <<_ACEOF | |
14093 | /* end confdefs.h. */ | |
14094 | $ac_includes_default | |
14095 | #include <$ac_header> | |
14096 | _ACEOF | |
14097 | rm -f conftest.$ac_objext | |
14098 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14099 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14100 | ac_status=$? |
ac1cb8d3 VS |
14101 | grep -v '^ *+' conftest.er1 >conftest.err |
14102 | rm -f conftest.er1 | |
14103 | cat conftest.err >&5 | |
a848cd7e SC |
14104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14105 | (exit $ac_status); } && | |
89be85c2 VS |
14106 | { ac_try='test -z "$ac_c_werror_flag" |
14107 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
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' | |
a848cd7e SC |
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 | ac_header_compiler=yes | |
14120 | else | |
14121 | echo "$as_me: failed program was:" >&5 | |
14122 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14123 | ||
14124 | ac_header_compiler=no | |
14125 | fi | |
ac1cb8d3 | 14126 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14127 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14128 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14129 | ||
14130 | # Is the header present? | |
14131 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14132 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14133 | cat >conftest.$ac_ext <<_ACEOF | |
14134 | /* confdefs.h. */ | |
14135 | _ACEOF | |
14136 | cat confdefs.h >>conftest.$ac_ext | |
14137 | cat >>conftest.$ac_ext <<_ACEOF | |
14138 | /* end confdefs.h. */ | |
14139 | #include <$ac_header> | |
14140 | _ACEOF | |
14141 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14142 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14143 | ac_status=$? | |
14144 | grep -v '^ *+' conftest.er1 >conftest.err | |
14145 | rm -f conftest.er1 | |
14146 | cat conftest.err >&5 | |
14147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14148 | (exit $ac_status); } >/dev/null; then | |
14149 | if test -s conftest.err; then | |
14150 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14151 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14152 | else |
14153 | ac_cpp_err= | |
14154 | fi | |
14155 | else | |
14156 | ac_cpp_err=yes | |
14157 | fi | |
14158 | if test -z "$ac_cpp_err"; then | |
14159 | ac_header_preproc=yes | |
14160 | else | |
14161 | echo "$as_me: failed program was:" >&5 | |
14162 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14163 | ||
14164 | ac_header_preproc=no | |
14165 | fi | |
14166 | rm -f conftest.err conftest.$ac_ext | |
14167 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14168 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14169 | ||
14170 | # So? What about this header? | |
ac1cb8d3 VS |
14171 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14172 | yes:no: ) | |
a848cd7e SC |
14173 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14174 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14175 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14176 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14177 | ac_header_preproc=yes | |
a848cd7e | 14178 | ;; |
ac1cb8d3 | 14179 | no:yes:* ) |
a848cd7e SC |
14180 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14181 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14182 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14183 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14184 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14185 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14186 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14187 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14188 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14189 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14190 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14191 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14192 | ( |
14193 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14194 | ## ----------------------------------------- ## |
14195 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14196 | ## ----------------------------------------- ## | |
a848cd7e SC |
14197 | _ASBOX |
14198 | ) | | |
14199 | sed "s/^/$as_me: WARNING: /" >&2 | |
14200 | ;; | |
14201 | esac | |
14202 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14203 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14204 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14205 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14206 | else | |
ac1cb8d3 | 14207 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14208 | fi |
14209 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14210 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14211 | ||
14212 | fi | |
14213 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14214 | cat >>confdefs.h <<_ACEOF | |
14215 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14216 | _ACEOF | |
14217 | ||
14218 | fi | |
14219 | ||
14220 | done | |
14221 | ||
14222 | ||
14223 | if test "$ac_cv_header_wchar_h" != "yes"; then | |
14224 | ||
14225 | for ac_header in wcstr.h | |
14226 | do | |
14227 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14228 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14229 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14230 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14231 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14232 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14233 | fi | |
14234 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14235 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14236 | else | |
14237 | # Is the header compilable? | |
14238 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14239 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14240 | cat >conftest.$ac_ext <<_ACEOF | |
14241 | /* confdefs.h. */ | |
14242 | _ACEOF | |
14243 | cat confdefs.h >>conftest.$ac_ext | |
14244 | cat >>conftest.$ac_ext <<_ACEOF | |
14245 | /* end confdefs.h. */ | |
14246 | $ac_includes_default | |
14247 | #include <$ac_header> | |
14248 | _ACEOF | |
14249 | rm -f conftest.$ac_objext | |
14250 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14251 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14252 | ac_status=$? |
ac1cb8d3 VS |
14253 | grep -v '^ *+' conftest.er1 >conftest.err |
14254 | rm -f conftest.er1 | |
14255 | cat conftest.err >&5 | |
a848cd7e SC |
14256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14257 | (exit $ac_status); } && | |
89be85c2 VS |
14258 | { ac_try='test -z "$ac_c_werror_flag" |
14259 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14261 | (eval $ac_try) 2>&5 | |
14262 | ac_status=$? | |
14263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14264 | (exit $ac_status); }; } && | |
14265 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14267 | (eval $ac_try) 2>&5 | |
14268 | ac_status=$? | |
14269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14270 | (exit $ac_status); }; }; then | |
14271 | ac_header_compiler=yes | |
14272 | else | |
14273 | echo "$as_me: failed program was:" >&5 | |
14274 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14275 | ||
14276 | ac_header_compiler=no | |
14277 | fi | |
ac1cb8d3 | 14278 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14279 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14280 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14281 | ||
14282 | # Is the header present? | |
14283 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14284 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14285 | cat >conftest.$ac_ext <<_ACEOF | |
14286 | /* confdefs.h. */ | |
14287 | _ACEOF | |
14288 | cat confdefs.h >>conftest.$ac_ext | |
14289 | cat >>conftest.$ac_ext <<_ACEOF | |
14290 | /* end confdefs.h. */ | |
14291 | #include <$ac_header> | |
14292 | _ACEOF | |
14293 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14294 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14295 | ac_status=$? | |
14296 | grep -v '^ *+' conftest.er1 >conftest.err | |
14297 | rm -f conftest.er1 | |
14298 | cat conftest.err >&5 | |
14299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14300 | (exit $ac_status); } >/dev/null; then | |
14301 | if test -s conftest.err; then | |
14302 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14303 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14304 | else |
14305 | ac_cpp_err= | |
14306 | fi | |
14307 | else | |
14308 | ac_cpp_err=yes | |
14309 | fi | |
14310 | if test -z "$ac_cpp_err"; then | |
14311 | ac_header_preproc=yes | |
14312 | else | |
14313 | echo "$as_me: failed program was:" >&5 | |
14314 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14315 | ||
14316 | ac_header_preproc=no | |
14317 | fi | |
14318 | rm -f conftest.err conftest.$ac_ext | |
14319 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14320 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14321 | ||
14322 | # So? What about this header? | |
ac1cb8d3 VS |
14323 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14324 | yes:no: ) | |
a848cd7e SC |
14325 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14326 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14327 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14328 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14329 | ac_header_preproc=yes | |
a848cd7e | 14330 | ;; |
ac1cb8d3 | 14331 | no:yes:* ) |
a848cd7e SC |
14332 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14333 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14334 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14335 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14336 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14337 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14338 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14339 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14340 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14341 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14342 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14343 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14344 | ( |
14345 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14346 | ## ----------------------------------------- ## |
14347 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14348 | ## ----------------------------------------- ## | |
a848cd7e SC |
14349 | _ASBOX |
14350 | ) | | |
14351 | sed "s/^/$as_me: WARNING: /" >&2 | |
14352 | ;; | |
14353 | esac | |
14354 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14355 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14356 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14357 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14358 | else | |
ac1cb8d3 | 14359 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14360 | fi |
14361 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14362 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14363 | ||
14364 | fi | |
14365 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14366 | cat >>confdefs.h <<_ACEOF | |
14367 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14368 | _ACEOF | |
14369 | ||
14370 | fi | |
14371 | ||
14372 | done | |
14373 | ||
14374 | fi | |
14375 | ||
14376 | ||
14377 | for ac_header in fnmatch.h | |
14378 | do | |
14379 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14380 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14381 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14382 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14383 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14384 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14385 | fi | |
14386 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14387 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14388 | else | |
14389 | # Is the header compilable? | |
14390 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14391 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14392 | cat >conftest.$ac_ext <<_ACEOF | |
14393 | /* confdefs.h. */ | |
14394 | _ACEOF | |
14395 | cat confdefs.h >>conftest.$ac_ext | |
14396 | cat >>conftest.$ac_ext <<_ACEOF | |
14397 | /* end confdefs.h. */ | |
14398 | $ac_includes_default | |
14399 | #include <$ac_header> | |
14400 | _ACEOF | |
14401 | rm -f conftest.$ac_objext | |
14402 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14403 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14404 | ac_status=$? |
ac1cb8d3 VS |
14405 | grep -v '^ *+' conftest.er1 >conftest.err |
14406 | rm -f conftest.er1 | |
14407 | cat conftest.err >&5 | |
a848cd7e SC |
14408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14409 | (exit $ac_status); } && | |
89be85c2 VS |
14410 | { ac_try='test -z "$ac_c_werror_flag" |
14411 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14413 | (eval $ac_try) 2>&5 | |
14414 | ac_status=$? | |
14415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14416 | (exit $ac_status); }; } && | |
14417 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14419 | (eval $ac_try) 2>&5 | |
14420 | ac_status=$? | |
14421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14422 | (exit $ac_status); }; }; then | |
14423 | ac_header_compiler=yes | |
14424 | else | |
14425 | echo "$as_me: failed program was:" >&5 | |
14426 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14427 | ||
14428 | ac_header_compiler=no | |
14429 | fi | |
ac1cb8d3 | 14430 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14431 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14432 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14433 | ||
14434 | # Is the header present? | |
14435 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14436 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14437 | cat >conftest.$ac_ext <<_ACEOF | |
14438 | /* confdefs.h. */ | |
14439 | _ACEOF | |
14440 | cat confdefs.h >>conftest.$ac_ext | |
14441 | cat >>conftest.$ac_ext <<_ACEOF | |
14442 | /* end confdefs.h. */ | |
14443 | #include <$ac_header> | |
14444 | _ACEOF | |
14445 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14446 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14447 | ac_status=$? | |
14448 | grep -v '^ *+' conftest.er1 >conftest.err | |
14449 | rm -f conftest.er1 | |
14450 | cat conftest.err >&5 | |
14451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14452 | (exit $ac_status); } >/dev/null; then | |
14453 | if test -s conftest.err; then | |
14454 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14455 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14456 | else |
14457 | ac_cpp_err= | |
14458 | fi | |
14459 | else | |
14460 | ac_cpp_err=yes | |
14461 | fi | |
14462 | if test -z "$ac_cpp_err"; then | |
14463 | ac_header_preproc=yes | |
14464 | else | |
14465 | echo "$as_me: failed program was:" >&5 | |
14466 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14467 | ||
14468 | ac_header_preproc=no | |
14469 | fi | |
14470 | rm -f conftest.err conftest.$ac_ext | |
14471 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14472 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14473 | ||
14474 | # So? What about this header? | |
ac1cb8d3 VS |
14475 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14476 | yes:no: ) | |
a848cd7e SC |
14477 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14478 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14479 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14480 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14481 | ac_header_preproc=yes | |
a848cd7e | 14482 | ;; |
ac1cb8d3 | 14483 | no:yes:* ) |
a848cd7e SC |
14484 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14485 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14486 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14487 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14488 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14489 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14490 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14491 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14492 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14493 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14494 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14495 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14496 | ( |
14497 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14498 | ## ----------------------------------------- ## |
14499 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14500 | ## ----------------------------------------- ## | |
a848cd7e SC |
14501 | _ASBOX |
14502 | ) | | |
14503 | sed "s/^/$as_me: WARNING: /" >&2 | |
14504 | ;; | |
14505 | esac | |
14506 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14507 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14508 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14509 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14510 | else | |
ac1cb8d3 | 14511 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14512 | fi |
14513 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14514 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14515 | ||
14516 | fi | |
14517 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14518 | cat >>confdefs.h <<_ACEOF | |
14519 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14520 | _ACEOF | |
14521 | ||
14522 | fi | |
14523 | ||
14524 | done | |
14525 | ||
14526 | ||
14527 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then | |
14528 | ||
14529 | for ac_func in fnmatch | |
14530 | do | |
14531 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
14532 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
14533 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
14534 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
14535 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14536 | else | |
14537 | cat >conftest.$ac_ext <<_ACEOF | |
14538 | /* confdefs.h. */ | |
14539 | _ACEOF | |
14540 | cat confdefs.h >>conftest.$ac_ext | |
14541 | cat >>conftest.$ac_ext <<_ACEOF | |
14542 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
14543 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
14544 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14545 | #define $ac_func innocuous_$ac_func | |
14546 | ||
a848cd7e SC |
14547 | /* System header to define __stub macros and hopefully few prototypes, |
14548 | which can conflict with char $ac_func (); below. | |
14549 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14550 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 14551 | |
a848cd7e SC |
14552 | #ifdef __STDC__ |
14553 | # include <limits.h> | |
14554 | #else | |
14555 | # include <assert.h> | |
14556 | #endif | |
ac1cb8d3 VS |
14557 | |
14558 | #undef $ac_func | |
14559 | ||
a848cd7e SC |
14560 | /* Override any gcc2 internal prototype to avoid an error. */ |
14561 | #ifdef __cplusplus | |
14562 | extern "C" | |
14563 | { | |
14564 | #endif | |
14565 | /* We use char because int might match the return type of a gcc2 | |
14566 | builtin and then its argument prototype would still apply. */ | |
14567 | char $ac_func (); | |
14568 | /* The GNU C library defines this for functions which it implements | |
14569 | to always fail with ENOSYS. Some functions are actually named | |
14570 | something starting with __ and the normal name is an alias. */ | |
14571 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14572 | choke me | |
14573 | #else | |
14574 | char (*f) () = $ac_func; | |
14575 | #endif | |
14576 | #ifdef __cplusplus | |
14577 | } | |
14578 | #endif | |
14579 | ||
14580 | int | |
14581 | main () | |
14582 | { | |
14583 | return f != $ac_func; | |
14584 | ; | |
14585 | return 0; | |
14586 | } | |
14587 | _ACEOF | |
14588 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14589 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 14590 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 14591 | ac_status=$? |
ac1cb8d3 VS |
14592 | grep -v '^ *+' conftest.er1 >conftest.err |
14593 | rm -f conftest.er1 | |
14594 | cat conftest.err >&5 | |
a848cd7e SC |
14595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14596 | (exit $ac_status); } && | |
89be85c2 VS |
14597 | { ac_try='test -z "$ac_c_werror_flag" |
14598 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14600 | (eval $ac_try) 2>&5 | |
14601 | ac_status=$? | |
14602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14603 | (exit $ac_status); }; } && | |
14604 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
14605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14606 | (eval $ac_try) 2>&5 | |
14607 | ac_status=$? | |
14608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14609 | (exit $ac_status); }; }; then | |
14610 | eval "$as_ac_var=yes" | |
14611 | else | |
14612 | echo "$as_me: failed program was:" >&5 | |
14613 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14614 | ||
14615 | eval "$as_ac_var=no" | |
14616 | fi | |
ac1cb8d3 VS |
14617 | rm -f conftest.err conftest.$ac_objext \ |
14618 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
14619 | fi |
14620 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
14621 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
14622 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
14623 | cat >>confdefs.h <<_ACEOF | |
14624 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
14625 | _ACEOF | |
14626 | ||
14627 | fi | |
14628 | done | |
14629 | ||
14630 | fi | |
14631 | ||
14632 | ||
14633 | for ac_header in langinfo.h | |
14634 | do | |
14635 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14636 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14637 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14638 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14639 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14640 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14641 | fi | |
14642 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14643 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14644 | else | |
14645 | # Is the header compilable? | |
14646 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14647 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14648 | cat >conftest.$ac_ext <<_ACEOF | |
14649 | /* confdefs.h. */ | |
14650 | _ACEOF | |
14651 | cat confdefs.h >>conftest.$ac_ext | |
14652 | cat >>conftest.$ac_ext <<_ACEOF | |
14653 | /* end confdefs.h. */ | |
14654 | $ac_includes_default | |
14655 | #include <$ac_header> | |
14656 | _ACEOF | |
14657 | rm -f conftest.$ac_objext | |
14658 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14659 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14660 | ac_status=$? |
ac1cb8d3 VS |
14661 | grep -v '^ *+' conftest.er1 >conftest.err |
14662 | rm -f conftest.er1 | |
14663 | cat conftest.err >&5 | |
a848cd7e SC |
14664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14665 | (exit $ac_status); } && | |
89be85c2 VS |
14666 | { ac_try='test -z "$ac_c_werror_flag" |
14667 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14669 | (eval $ac_try) 2>&5 | |
14670 | ac_status=$? | |
14671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14672 | (exit $ac_status); }; } && | |
14673 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14675 | (eval $ac_try) 2>&5 | |
14676 | ac_status=$? | |
14677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14678 | (exit $ac_status); }; }; then | |
14679 | ac_header_compiler=yes | |
14680 | else | |
14681 | echo "$as_me: failed program was:" >&5 | |
14682 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14683 | ||
14684 | ac_header_compiler=no | |
14685 | fi | |
ac1cb8d3 | 14686 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14687 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14688 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14689 | ||
14690 | # Is the header present? | |
14691 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14692 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14693 | cat >conftest.$ac_ext <<_ACEOF | |
14694 | /* confdefs.h. */ | |
14695 | _ACEOF | |
14696 | cat confdefs.h >>conftest.$ac_ext | |
14697 | cat >>conftest.$ac_ext <<_ACEOF | |
14698 | /* end confdefs.h. */ | |
14699 | #include <$ac_header> | |
14700 | _ACEOF | |
14701 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14702 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14703 | ac_status=$? | |
14704 | grep -v '^ *+' conftest.er1 >conftest.err | |
14705 | rm -f conftest.er1 | |
14706 | cat conftest.err >&5 | |
14707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14708 | (exit $ac_status); } >/dev/null; then | |
14709 | if test -s conftest.err; then | |
14710 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14711 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14712 | else |
14713 | ac_cpp_err= | |
14714 | fi | |
14715 | else | |
14716 | ac_cpp_err=yes | |
14717 | fi | |
14718 | if test -z "$ac_cpp_err"; then | |
14719 | ac_header_preproc=yes | |
14720 | else | |
14721 | echo "$as_me: failed program was:" >&5 | |
14722 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14723 | ||
14724 | ac_header_preproc=no | |
14725 | fi | |
14726 | rm -f conftest.err conftest.$ac_ext | |
14727 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14728 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14729 | ||
14730 | # So? What about this header? | |
ac1cb8d3 VS |
14731 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14732 | yes:no: ) | |
a848cd7e SC |
14733 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14734 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14735 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14736 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14737 | ac_header_preproc=yes | |
a848cd7e | 14738 | ;; |
ac1cb8d3 | 14739 | no:yes:* ) |
a848cd7e SC |
14740 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14741 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14742 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14743 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14744 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14745 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14746 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14747 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14748 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14749 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14750 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14751 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14752 | ( |
14753 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14754 | ## ----------------------------------------- ## |
14755 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14756 | ## ----------------------------------------- ## | |
a848cd7e SC |
14757 | _ASBOX |
14758 | ) | | |
14759 | sed "s/^/$as_me: WARNING: /" >&2 | |
14760 | ;; | |
14761 | esac | |
14762 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14763 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14764 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14765 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14766 | else | |
ac1cb8d3 | 14767 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14768 | fi |
14769 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14770 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14771 | ||
14772 | fi | |
14773 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14774 | cat >>confdefs.h <<_ACEOF | |
14775 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14776 | _ACEOF | |
14777 | ||
14778 | fi | |
14779 | ||
14780 | done | |
14781 | ||
14782 | ||
14783 | case "${host}" in | |
14784 | *-pc-os2_emx | *-pc-os2-emx ) | |
391a765e VS |
14785 | if test $ac_cv_header_langinfo_h = "yes" \ |
14786 | -a \( "$wx_cv_gccversion" = "EMX2" \ | |
14787 | -o "$wx_cv_gccversion" = "EMX3" \ | |
14788 | -o "$wx_cv_gccversion" = "Innotek5" \); then | |
a848cd7e SC |
14789 | LIBS="$LIBS -lintl" |
14790 | fi | |
14791 | ;; | |
14792 | esac | |
14793 | ||
14794 | if test "$wxUSE_GUI" = "yes"; then | |
14795 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then | |
14796 | ||
14797 | for ac_header in X11/Xlib.h | |
14798 | do | |
14799 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14800 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14801 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14802 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14803 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14804 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14805 | fi | |
14806 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14807 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14808 | else | |
14809 | # Is the header compilable? | |
14810 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14811 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14812 | cat >conftest.$ac_ext <<_ACEOF | |
14813 | /* confdefs.h. */ | |
14814 | _ACEOF | |
14815 | cat confdefs.h >>conftest.$ac_ext | |
14816 | cat >>conftest.$ac_ext <<_ACEOF | |
14817 | /* end confdefs.h. */ | |
14818 | $ac_includes_default | |
14819 | #include <$ac_header> | |
14820 | _ACEOF | |
14821 | rm -f conftest.$ac_objext | |
14822 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14823 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14824 | ac_status=$? |
ac1cb8d3 VS |
14825 | grep -v '^ *+' conftest.er1 >conftest.err |
14826 | rm -f conftest.er1 | |
14827 | cat conftest.err >&5 | |
a848cd7e SC |
14828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14829 | (exit $ac_status); } && | |
89be85c2 VS |
14830 | { ac_try='test -z "$ac_c_werror_flag" |
14831 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14833 | (eval $ac_try) 2>&5 | |
14834 | ac_status=$? | |
14835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14836 | (exit $ac_status); }; } && | |
14837 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14839 | (eval $ac_try) 2>&5 | |
14840 | ac_status=$? | |
14841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14842 | (exit $ac_status); }; }; then | |
14843 | ac_header_compiler=yes | |
14844 | else | |
14845 | echo "$as_me: failed program was:" >&5 | |
14846 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14847 | ||
14848 | ac_header_compiler=no | |
14849 | fi | |
ac1cb8d3 | 14850 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14851 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14852 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14853 | ||
14854 | # Is the header present? | |
14855 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14856 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14857 | cat >conftest.$ac_ext <<_ACEOF | |
14858 | /* confdefs.h. */ | |
14859 | _ACEOF | |
14860 | cat confdefs.h >>conftest.$ac_ext | |
14861 | cat >>conftest.$ac_ext <<_ACEOF | |
14862 | /* end confdefs.h. */ | |
14863 | #include <$ac_header> | |
14864 | _ACEOF | |
14865 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14866 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14867 | ac_status=$? | |
14868 | grep -v '^ *+' conftest.er1 >conftest.err | |
14869 | rm -f conftest.er1 | |
14870 | cat conftest.err >&5 | |
14871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14872 | (exit $ac_status); } >/dev/null; then | |
14873 | if test -s conftest.err; then | |
14874 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14875 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14876 | else |
14877 | ac_cpp_err= | |
14878 | fi | |
14879 | else | |
14880 | ac_cpp_err=yes | |
14881 | fi | |
14882 | if test -z "$ac_cpp_err"; then | |
14883 | ac_header_preproc=yes | |
14884 | else | |
14885 | echo "$as_me: failed program was:" >&5 | |
14886 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14887 | ||
14888 | ac_header_preproc=no | |
14889 | fi | |
14890 | rm -f conftest.err conftest.$ac_ext | |
14891 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14892 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14893 | ||
14894 | # So? What about this header? | |
ac1cb8d3 VS |
14895 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14896 | yes:no: ) | |
a848cd7e SC |
14897 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14898 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14899 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14900 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14901 | ac_header_preproc=yes | |
a848cd7e | 14902 | ;; |
ac1cb8d3 | 14903 | no:yes:* ) |
a848cd7e SC |
14904 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14905 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14906 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14907 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14908 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14909 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14910 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14911 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14912 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14913 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14914 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14915 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14916 | ( |
14917 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14918 | ## ----------------------------------------- ## |
14919 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14920 | ## ----------------------------------------- ## | |
a848cd7e SC |
14921 | _ASBOX |
14922 | ) | | |
14923 | sed "s/^/$as_me: WARNING: /" >&2 | |
14924 | ;; | |
14925 | esac | |
14926 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14927 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14928 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14929 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14930 | else | |
ac1cb8d3 | 14931 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14932 | fi |
14933 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14934 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14935 | ||
14936 | fi | |
14937 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14938 | cat >>confdefs.h <<_ACEOF | |
14939 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14940 | _ACEOF | |
14941 | ||
14942 | fi | |
14943 | ||
14944 | done | |
14945 | ||
14946 | ||
14947 | for ac_header in X11/XKBlib.h | |
14948 | do | |
14949 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14950 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14951 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14952 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14953 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14954 | else | |
14955 | cat >conftest.$ac_ext <<_ACEOF | |
14956 | /* confdefs.h. */ | |
14957 | _ACEOF | |
14958 | cat confdefs.h >>conftest.$ac_ext | |
14959 | cat >>conftest.$ac_ext <<_ACEOF | |
14960 | /* end confdefs.h. */ | |
14961 | ||
14962 | #if HAVE_X11_XLIB_H | |
14963 | #include <X11/Xlib.h> | |
14964 | #endif | |
14965 | ||
14966 | ||
14967 | #include <$ac_header> | |
14968 | _ACEOF | |
14969 | rm -f conftest.$ac_objext | |
14970 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14971 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14972 | ac_status=$? |
ac1cb8d3 VS |
14973 | grep -v '^ *+' conftest.er1 >conftest.err |
14974 | rm -f conftest.er1 | |
14975 | cat conftest.err >&5 | |
a848cd7e SC |
14976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14977 | (exit $ac_status); } && | |
89be85c2 VS |
14978 | { ac_try='test -z "$ac_c_werror_flag" |
14979 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14981 | (eval $ac_try) 2>&5 | |
14982 | ac_status=$? | |
14983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14984 | (exit $ac_status); }; } && | |
14985 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14987 | (eval $ac_try) 2>&5 | |
14988 | ac_status=$? | |
14989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14990 | (exit $ac_status); }; }; then | |
14991 | eval "$as_ac_Header=yes" | |
14992 | else | |
14993 | echo "$as_me: failed program was:" >&5 | |
14994 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14995 | ||
14996 | eval "$as_ac_Header=no" | |
14997 | fi | |
ac1cb8d3 | 14998 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14999 | fi |
15000 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15001 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15002 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15003 | cat >>confdefs.h <<_ACEOF | |
15004 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15005 | _ACEOF | |
15006 | ||
15007 | fi | |
15008 | ||
15009 | done | |
15010 | ||
15011 | fi | |
15012 | fi | |
15013 | ||
15014 | ||
15015 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
15016 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
15017 | if test "${ac_cv_c_const+set}" = set; then | |
15018 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15019 | else | |
15020 | cat >conftest.$ac_ext <<_ACEOF | |
15021 | /* confdefs.h. */ | |
15022 | _ACEOF | |
15023 | cat confdefs.h >>conftest.$ac_ext | |
15024 | cat >>conftest.$ac_ext <<_ACEOF | |
15025 | /* end confdefs.h. */ | |
15026 | ||
15027 | int | |
15028 | main () | |
15029 | { | |
15030 | /* FIXME: Include the comments suggested by Paul. */ | |
15031 | #ifndef __cplusplus | |
15032 | /* Ultrix mips cc rejects this. */ | |
15033 | typedef int charset[2]; | |
15034 | const charset x; | |
15035 | /* SunOS 4.1.1 cc rejects this. */ | |
15036 | char const *const *ccp; | |
15037 | char **p; | |
15038 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
15039 | struct point {int x, y;}; | |
15040 | static struct point const zero = {0,0}; | |
15041 | /* AIX XL C 1.02.0.0 rejects this. | |
15042 | It does not let you subtract one const X* pointer from another in | |
15043 | an arm of an if-expression whose if-part is not a constant | |
15044 | expression */ | |
15045 | const char *g = "string"; | |
15046 | ccp = &g + (g ? g-g : 0); | |
15047 | /* HPUX 7.0 cc rejects these. */ | |
15048 | ++ccp; | |
15049 | p = (char**) ccp; | |
15050 | ccp = (char const *const *) p; | |
15051 | { /* SCO 3.2v4 cc rejects this. */ | |
15052 | char *t; | |
15053 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
15054 | ||
15055 | *t++ = 0; | |
15056 | } | |
15057 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
15058 | int x[] = {25, 17}; | |
15059 | const int *foo = &x[0]; | |
15060 | ++foo; | |
15061 | } | |
15062 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
15063 | typedef const int *iptr; | |
15064 | iptr p = 0; | |
15065 | ++p; | |
15066 | } | |
15067 | { /* AIX XL C 1.02.0.0 rejects this saying | |
15068 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
15069 | struct s { int j; const int *ap[3]; }; | |
15070 | struct s *b; b->j = 5; | |
15071 | } | |
15072 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
15073 | const int foo = 10; | |
15074 | } | |
15075 | #endif | |
15076 | ||
15077 | ; | |
15078 | return 0; | |
15079 | } | |
15080 | _ACEOF | |
15081 | rm -f conftest.$ac_objext | |
15082 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15083 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15084 | ac_status=$? |
ac1cb8d3 VS |
15085 | grep -v '^ *+' conftest.er1 >conftest.err |
15086 | rm -f conftest.er1 | |
15087 | cat conftest.err >&5 | |
a848cd7e SC |
15088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15089 | (exit $ac_status); } && | |
89be85c2 VS |
15090 | { ac_try='test -z "$ac_c_werror_flag" |
15091 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15093 | (eval $ac_try) 2>&5 | |
15094 | ac_status=$? | |
15095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15096 | (exit $ac_status); }; } && | |
15097 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15099 | (eval $ac_try) 2>&5 | |
15100 | ac_status=$? | |
15101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15102 | (exit $ac_status); }; }; then | |
15103 | ac_cv_c_const=yes | |
15104 | else | |
15105 | echo "$as_me: failed program was:" >&5 | |
15106 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15107 | ||
15108 | ac_cv_c_const=no | |
15109 | fi | |
ac1cb8d3 | 15110 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15111 | fi |
15112 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
15113 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
15114 | if test $ac_cv_c_const = no; then | |
15115 | ||
15116 | cat >>confdefs.h <<\_ACEOF | |
15117 | #define const | |
15118 | _ACEOF | |
15119 | ||
15120 | fi | |
15121 | ||
15122 | echo "$as_me:$LINENO: checking for inline" >&5 | |
15123 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
15124 | if test "${ac_cv_c_inline+set}" = set; then | |
15125 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15126 | else | |
15127 | ac_cv_c_inline=no | |
15128 | for ac_kw in inline __inline__ __inline; do | |
15129 | cat >conftest.$ac_ext <<_ACEOF | |
15130 | /* confdefs.h. */ | |
15131 | _ACEOF | |
15132 | cat confdefs.h >>conftest.$ac_ext | |
15133 | cat >>conftest.$ac_ext <<_ACEOF | |
15134 | /* end confdefs.h. */ | |
15135 | #ifndef __cplusplus | |
15136 | typedef int foo_t; | |
15137 | static $ac_kw foo_t static_foo () {return 0; } | |
15138 | $ac_kw foo_t foo () {return 0; } | |
15139 | #endif | |
15140 | ||
15141 | _ACEOF | |
15142 | rm -f conftest.$ac_objext | |
15143 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15144 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15145 | ac_status=$? |
ac1cb8d3 VS |
15146 | grep -v '^ *+' conftest.er1 >conftest.err |
15147 | rm -f conftest.er1 | |
15148 | cat conftest.err >&5 | |
a848cd7e SC |
15149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15150 | (exit $ac_status); } && | |
89be85c2 VS |
15151 | { ac_try='test -z "$ac_c_werror_flag" |
15152 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15154 | (eval $ac_try) 2>&5 | |
15155 | ac_status=$? | |
15156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15157 | (exit $ac_status); }; } && | |
15158 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15160 | (eval $ac_try) 2>&5 | |
15161 | ac_status=$? | |
15162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15163 | (exit $ac_status); }; }; then | |
15164 | ac_cv_c_inline=$ac_kw; break | |
15165 | else | |
15166 | echo "$as_me: failed program was:" >&5 | |
15167 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15168 | ||
15169 | fi | |
ac1cb8d3 | 15170 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15171 | done |
15172 | ||
15173 | fi | |
15174 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
15175 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
ac1cb8d3 VS |
15176 | |
15177 | ||
a848cd7e SC |
15178 | case $ac_cv_c_inline in |
15179 | inline | yes) ;; | |
ac1cb8d3 VS |
15180 | *) |
15181 | case $ac_cv_c_inline in | |
15182 | no) ac_val=;; | |
15183 | *) ac_val=$ac_cv_c_inline;; | |
15184 | esac | |
15185 | cat >>confdefs.h <<_ACEOF | |
15186 | #ifndef __cplusplus | |
15187 | #define inline $ac_val | |
15188 | #endif | |
de59c161 | 15189 | _ACEOF |
ac1cb8d3 | 15190 | ;; |
a848cd7e SC |
15191 | esac |
15192 | ||
15193 | ||
15194 | echo "$as_me:$LINENO: checking for char" >&5 | |
15195 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
15196 | if test "${ac_cv_type_char+set}" = set; then | |
15197 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15198 | else | |
15199 | cat >conftest.$ac_ext <<_ACEOF | |
15200 | /* confdefs.h. */ | |
15201 | _ACEOF | |
15202 | cat confdefs.h >>conftest.$ac_ext | |
15203 | cat >>conftest.$ac_ext <<_ACEOF | |
15204 | /* end confdefs.h. */ | |
15205 | $ac_includes_default | |
15206 | int | |
15207 | main () | |
15208 | { | |
15209 | if ((char *) 0) | |
15210 | return 0; | |
15211 | if (sizeof (char)) | |
15212 | return 0; | |
15213 | ; | |
15214 | return 0; | |
15215 | } | |
15216 | _ACEOF | |
15217 | rm -f conftest.$ac_objext | |
15218 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15219 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15220 | ac_status=$? |
ac1cb8d3 VS |
15221 | grep -v '^ *+' conftest.er1 >conftest.err |
15222 | rm -f conftest.er1 | |
15223 | cat conftest.err >&5 | |
a848cd7e SC |
15224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15225 | (exit $ac_status); } && | |
89be85c2 VS |
15226 | { ac_try='test -z "$ac_c_werror_flag" |
15227 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15229 | (eval $ac_try) 2>&5 | |
15230 | ac_status=$? | |
15231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15232 | (exit $ac_status); }; } && | |
15233 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15235 | (eval $ac_try) 2>&5 | |
15236 | ac_status=$? | |
15237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15238 | (exit $ac_status); }; }; then | |
15239 | ac_cv_type_char=yes | |
15240 | else | |
15241 | echo "$as_me: failed program was:" >&5 | |
15242 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15243 | ||
15244 | ac_cv_type_char=no | |
15245 | fi | |
ac1cb8d3 | 15246 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15247 | fi |
15248 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
15249 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
15250 | ||
15251 | echo "$as_me:$LINENO: checking size of char" >&5 | |
15252 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
15253 | if test "${ac_cv_sizeof_char+set}" = set; then | |
15254 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15255 | else | |
15256 | if test "$ac_cv_type_char" = yes; then | |
15257 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15258 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15259 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15260 | # This bug is HP SR number 8606223364. | |
15261 | if test "$cross_compiling" = yes; then | |
15262 | # Depending upon the size, compute the lo and hi bounds. | |
15263 | cat >conftest.$ac_ext <<_ACEOF | |
15264 | /* confdefs.h. */ | |
15265 | _ACEOF | |
15266 | cat confdefs.h >>conftest.$ac_ext | |
15267 | cat >>conftest.$ac_ext <<_ACEOF | |
15268 | /* end confdefs.h. */ | |
15269 | $ac_includes_default | |
15270 | int | |
15271 | main () | |
15272 | { | |
15273 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | |
15274 | test_array [0] = 0 | |
15275 | ||
15276 | ; | |
15277 | return 0; | |
15278 | } | |
15279 | _ACEOF | |
15280 | rm -f conftest.$ac_objext | |
15281 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15282 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15283 | ac_status=$? |
ac1cb8d3 VS |
15284 | grep -v '^ *+' conftest.er1 >conftest.err |
15285 | rm -f conftest.er1 | |
15286 | cat conftest.err >&5 | |
a848cd7e SC |
15287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15288 | (exit $ac_status); } && | |
89be85c2 VS |
15289 | { ac_try='test -z "$ac_c_werror_flag" |
15290 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15292 | (eval $ac_try) 2>&5 | |
15293 | ac_status=$? | |
15294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15295 | (exit $ac_status); }; } && | |
15296 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15298 | (eval $ac_try) 2>&5 | |
15299 | ac_status=$? | |
15300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15301 | (exit $ac_status); }; }; then | |
15302 | ac_lo=0 ac_mid=0 | |
15303 | while :; do | |
15304 | cat >conftest.$ac_ext <<_ACEOF | |
15305 | /* confdefs.h. */ | |
15306 | _ACEOF | |
15307 | cat confdefs.h >>conftest.$ac_ext | |
15308 | cat >>conftest.$ac_ext <<_ACEOF | |
15309 | /* end confdefs.h. */ | |
15310 | $ac_includes_default | |
15311 | int | |
15312 | main () | |
15313 | { | |
15314 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
15315 | test_array [0] = 0 | |
15316 | ||
15317 | ; | |
15318 | return 0; | |
15319 | } | |
15320 | _ACEOF | |
15321 | rm -f conftest.$ac_objext | |
15322 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15323 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15324 | ac_status=$? |
ac1cb8d3 VS |
15325 | grep -v '^ *+' conftest.er1 >conftest.err |
15326 | rm -f conftest.er1 | |
15327 | cat conftest.err >&5 | |
a848cd7e SC |
15328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15329 | (exit $ac_status); } && | |
89be85c2 VS |
15330 | { ac_try='test -z "$ac_c_werror_flag" |
15331 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15333 | (eval $ac_try) 2>&5 | |
15334 | ac_status=$? | |
15335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15336 | (exit $ac_status); }; } && | |
15337 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15339 | (eval $ac_try) 2>&5 | |
15340 | ac_status=$? | |
15341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15342 | (exit $ac_status); }; }; then | |
15343 | ac_hi=$ac_mid; break | |
15344 | else | |
15345 | echo "$as_me: failed program was:" >&5 | |
15346 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15347 | ||
15348 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
15349 | if test $ac_lo -le $ac_mid; then |
15350 | ac_lo= ac_hi= | |
15351 | break | |
15352 | fi | |
15353 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 15354 | fi |
ac1cb8d3 | 15355 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15356 | done |
15357 | else | |
15358 | echo "$as_me: failed program was:" >&5 | |
15359 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15360 | ||
15361 | cat >conftest.$ac_ext <<_ACEOF | |
15362 | /* confdefs.h. */ | |
15363 | _ACEOF | |
15364 | cat confdefs.h >>conftest.$ac_ext | |
15365 | cat >>conftest.$ac_ext <<_ACEOF | |
15366 | /* end confdefs.h. */ | |
15367 | $ac_includes_default | |
15368 | int | |
15369 | main () | |
15370 | { | |
15371 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
15372 | test_array [0] = 0 | |
15373 | ||
15374 | ; | |
15375 | return 0; | |
15376 | } | |
15377 | _ACEOF | |
15378 | rm -f conftest.$ac_objext | |
15379 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15380 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15381 | ac_status=$? |
ac1cb8d3 VS |
15382 | grep -v '^ *+' conftest.er1 >conftest.err |
15383 | rm -f conftest.er1 | |
15384 | cat conftest.err >&5 | |
a848cd7e SC |
15385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15386 | (exit $ac_status); } && | |
89be85c2 VS |
15387 | { ac_try='test -z "$ac_c_werror_flag" |
15388 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15390 | (eval $ac_try) 2>&5 | |
15391 | ac_status=$? | |
15392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15393 | (exit $ac_status); }; } && | |
15394 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15396 | (eval $ac_try) 2>&5 | |
15397 | ac_status=$? | |
15398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15399 | (exit $ac_status); }; }; then | |
15400 | ac_hi=-1 ac_mid=-1 | |
15401 | while :; do | |
15402 | cat >conftest.$ac_ext <<_ACEOF | |
15403 | /* confdefs.h. */ | |
15404 | _ACEOF | |
15405 | cat confdefs.h >>conftest.$ac_ext | |
15406 | cat >>conftest.$ac_ext <<_ACEOF | |
15407 | /* end confdefs.h. */ | |
15408 | $ac_includes_default | |
15409 | int | |
15410 | main () | |
15411 | { | |
15412 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | |
15413 | test_array [0] = 0 | |
15414 | ||
15415 | ; | |
15416 | return 0; | |
15417 | } | |
15418 | _ACEOF | |
15419 | rm -f conftest.$ac_objext | |
15420 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15421 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15422 | ac_status=$? |
ac1cb8d3 VS |
15423 | grep -v '^ *+' conftest.er1 >conftest.err |
15424 | rm -f conftest.er1 | |
15425 | cat conftest.err >&5 | |
a848cd7e SC |
15426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15427 | (exit $ac_status); } && | |
89be85c2 VS |
15428 | { ac_try='test -z "$ac_c_werror_flag" |
15429 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15431 | (eval $ac_try) 2>&5 | |
15432 | ac_status=$? | |
15433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15434 | (exit $ac_status); }; } && | |
15435 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15437 | (eval $ac_try) 2>&5 | |
15438 | ac_status=$? | |
15439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15440 | (exit $ac_status); }; }; then | |
15441 | ac_lo=$ac_mid; break | |
15442 | else | |
15443 | echo "$as_me: failed program was:" >&5 | |
15444 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15445 | ||
15446 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
15447 | if test $ac_mid -le $ac_hi; then |
15448 | ac_lo= ac_hi= | |
15449 | break | |
15450 | fi | |
15451 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 15452 | fi |
ac1cb8d3 | 15453 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15454 | done |
15455 | else | |
15456 | echo "$as_me: failed program was:" >&5 | |
15457 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15458 | ||
15459 | ac_lo= ac_hi= | |
15460 | fi | |
ac1cb8d3 | 15461 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 15462 | fi |
ac1cb8d3 | 15463 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15464 | # Binary search between lo and hi bounds. |
15465 | while test "x$ac_lo" != "x$ac_hi"; do | |
15466 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15467 | cat >conftest.$ac_ext <<_ACEOF | |
15468 | /* confdefs.h. */ | |
15469 | _ACEOF | |
15470 | cat confdefs.h >>conftest.$ac_ext | |
15471 | cat >>conftest.$ac_ext <<_ACEOF | |
15472 | /* end confdefs.h. */ | |
15473 | $ac_includes_default | |
15474 | int | |
15475 | main () | |
15476 | { | |
15477 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
15478 | test_array [0] = 0 | |
15479 | ||
15480 | ; | |
15481 | return 0; | |
15482 | } | |
15483 | _ACEOF | |
15484 | rm -f conftest.$ac_objext | |
15485 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15486 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15487 | ac_status=$? |
ac1cb8d3 VS |
15488 | grep -v '^ *+' conftest.er1 >conftest.err |
15489 | rm -f conftest.er1 | |
15490 | cat conftest.err >&5 | |
a848cd7e SC |
15491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15492 | (exit $ac_status); } && | |
89be85c2 VS |
15493 | { ac_try='test -z "$ac_c_werror_flag" |
15494 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15496 | (eval $ac_try) 2>&5 | |
15497 | ac_status=$? | |
15498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15499 | (exit $ac_status); }; } && | |
15500 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15502 | (eval $ac_try) 2>&5 | |
15503 | ac_status=$? | |
15504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15505 | (exit $ac_status); }; }; then | |
15506 | ac_hi=$ac_mid | |
15507 | else | |
15508 | echo "$as_me: failed program was:" >&5 | |
15509 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15510 | ||
15511 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15512 | fi | |
ac1cb8d3 | 15513 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15514 | done |
15515 | case $ac_lo in | |
15516 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
15517 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
15518 | See \`config.log' for more details." >&5 | |
15519 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
15520 | See \`config.log' for more details." >&2;} | |
15521 | { (exit 1); exit 1; }; } ;; | |
15522 | esac | |
15523 | else | |
15524 | if test "$cross_compiling" = yes; then | |
89be85c2 VS |
15525 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
15526 | See \`config.log' for more details." >&5 | |
15527 | echo "$as_me: error: cannot run test program while cross compiling | |
15528 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
15529 | { (exit 1); exit 1; }; } |
15530 | else | |
15531 | cat >conftest.$ac_ext <<_ACEOF | |
15532 | /* confdefs.h. */ | |
15533 | _ACEOF | |
15534 | cat confdefs.h >>conftest.$ac_ext | |
15535 | cat >>conftest.$ac_ext <<_ACEOF | |
15536 | /* end confdefs.h. */ | |
15537 | $ac_includes_default | |
15538 | long longval () { return (long) (sizeof (char)); } | |
15539 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
15540 | #include <stdio.h> | |
15541 | #include <stdlib.h> | |
15542 | int | |
15543 | main () | |
15544 | { | |
15545 | ||
15546 | FILE *f = fopen ("conftest.val", "w"); | |
15547 | if (! f) | |
15548 | exit (1); | |
15549 | if (((long) (sizeof (char))) < 0) | |
15550 | { | |
15551 | long i = longval (); | |
15552 | if (i != ((long) (sizeof (char)))) | |
15553 | exit (1); | |
15554 | fprintf (f, "%ld\n", i); | |
15555 | } | |
15556 | else | |
15557 | { | |
15558 | unsigned long i = ulongval (); | |
15559 | if (i != ((long) (sizeof (char)))) | |
15560 | exit (1); | |
15561 | fprintf (f, "%lu\n", i); | |
15562 | } | |
15563 | exit (ferror (f) || fclose (f) != 0); | |
15564 | ||
15565 | ; | |
15566 | return 0; | |
15567 | } | |
15568 | _ACEOF | |
15569 | rm -f conftest$ac_exeext | |
15570 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15571 | (eval $ac_link) 2>&5 | |
15572 | ac_status=$? | |
15573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15574 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15576 | (eval $ac_try) 2>&5 | |
15577 | ac_status=$? | |
15578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15579 | (exit $ac_status); }; }; then | |
15580 | ac_cv_sizeof_char=`cat conftest.val` | |
15581 | else | |
15582 | echo "$as_me: program exited with status $ac_status" >&5 | |
15583 | echo "$as_me: failed program was:" >&5 | |
15584 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15585 | ||
15586 | ( exit $ac_status ) | |
15587 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
15588 | See \`config.log' for more details." >&5 | |
15589 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
15590 | See \`config.log' for more details." >&2;} | |
15591 | { (exit 1); exit 1; }; } | |
15592 | fi | |
ac1cb8d3 | 15593 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15594 | fi |
15595 | fi | |
15596 | rm -f conftest.val | |
15597 | else | |
15598 | ac_cv_sizeof_char=0 | |
15599 | fi | |
15600 | fi | |
15601 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | |
15602 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
15603 | cat >>confdefs.h <<_ACEOF | |
15604 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
15605 | _ACEOF | |
15606 | ||
15607 | ||
15608 | echo "$as_me:$LINENO: checking for short" >&5 | |
15609 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
15610 | if test "${ac_cv_type_short+set}" = set; then | |
15611 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15612 | else | |
15613 | cat >conftest.$ac_ext <<_ACEOF | |
15614 | /* confdefs.h. */ | |
15615 | _ACEOF | |
15616 | cat confdefs.h >>conftest.$ac_ext | |
15617 | cat >>conftest.$ac_ext <<_ACEOF | |
15618 | /* end confdefs.h. */ | |
15619 | $ac_includes_default | |
15620 | int | |
15621 | main () | |
15622 | { | |
15623 | if ((short *) 0) | |
15624 | return 0; | |
15625 | if (sizeof (short)) | |
15626 | return 0; | |
15627 | ; | |
15628 | return 0; | |
15629 | } | |
15630 | _ACEOF | |
15631 | rm -f conftest.$ac_objext | |
15632 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15633 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15634 | ac_status=$? |
ac1cb8d3 VS |
15635 | grep -v '^ *+' conftest.er1 >conftest.err |
15636 | rm -f conftest.er1 | |
15637 | cat conftest.err >&5 | |
a848cd7e SC |
15638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15639 | (exit $ac_status); } && | |
89be85c2 VS |
15640 | { ac_try='test -z "$ac_c_werror_flag" |
15641 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15643 | (eval $ac_try) 2>&5 | |
15644 | ac_status=$? | |
15645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15646 | (exit $ac_status); }; } && | |
15647 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15649 | (eval $ac_try) 2>&5 | |
15650 | ac_status=$? | |
15651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15652 | (exit $ac_status); }; }; then | |
15653 | ac_cv_type_short=yes | |
15654 | else | |
15655 | echo "$as_me: failed program was:" >&5 | |
15656 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15657 | ||
15658 | ac_cv_type_short=no | |
15659 | fi | |
ac1cb8d3 | 15660 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15661 | fi |
15662 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
15663 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
15664 | ||
15665 | echo "$as_me:$LINENO: checking size of short" >&5 | |
15666 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
15667 | if test "${ac_cv_sizeof_short+set}" = set; then | |
15668 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15669 | else | |
15670 | if test "$ac_cv_type_short" = yes; then | |
15671 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15672 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15673 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15674 | # This bug is HP SR number 8606223364. | |
15675 | if test "$cross_compiling" = yes; then | |
15676 | # Depending upon the size, compute the lo and hi bounds. | |
15677 | cat >conftest.$ac_ext <<_ACEOF | |
15678 | /* confdefs.h. */ | |
15679 | _ACEOF | |
15680 | cat confdefs.h >>conftest.$ac_ext | |
15681 | cat >>conftest.$ac_ext <<_ACEOF | |
15682 | /* end confdefs.h. */ | |
15683 | $ac_includes_default | |
15684 | int | |
15685 | main () | |
15686 | { | |
15687 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; | |
15688 | test_array [0] = 0 | |
15689 | ||
15690 | ; | |
15691 | return 0; | |
15692 | } | |
15693 | _ACEOF | |
15694 | rm -f conftest.$ac_objext | |
15695 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15696 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15697 | ac_status=$? |
ac1cb8d3 VS |
15698 | grep -v '^ *+' conftest.er1 >conftest.err |
15699 | rm -f conftest.er1 | |
15700 | cat conftest.err >&5 | |
a848cd7e SC |
15701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15702 | (exit $ac_status); } && | |
89be85c2 VS |
15703 | { ac_try='test -z "$ac_c_werror_flag" |
15704 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15706 | (eval $ac_try) 2>&5 | |
15707 | ac_status=$? | |
15708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15709 | (exit $ac_status); }; } && | |
15710 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15712 | (eval $ac_try) 2>&5 | |
15713 | ac_status=$? | |
15714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15715 | (exit $ac_status); }; }; then | |
15716 | ac_lo=0 ac_mid=0 | |
15717 | while :; do | |
15718 | cat >conftest.$ac_ext <<_ACEOF | |
15719 | /* confdefs.h. */ | |
15720 | _ACEOF | |
15721 | cat confdefs.h >>conftest.$ac_ext | |
15722 | cat >>conftest.$ac_ext <<_ACEOF | |
15723 | /* end confdefs.h. */ | |
15724 | $ac_includes_default | |
15725 | int | |
15726 | main () | |
15727 | { | |
15728 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
15729 | test_array [0] = 0 | |
15730 | ||
15731 | ; | |
15732 | return 0; | |
15733 | } | |
15734 | _ACEOF | |
15735 | rm -f conftest.$ac_objext | |
15736 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15737 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15738 | ac_status=$? |
ac1cb8d3 VS |
15739 | grep -v '^ *+' conftest.er1 >conftest.err |
15740 | rm -f conftest.er1 | |
15741 | cat conftest.err >&5 | |
a848cd7e SC |
15742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15743 | (exit $ac_status); } && | |
89be85c2 VS |
15744 | { ac_try='test -z "$ac_c_werror_flag" |
15745 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15747 | (eval $ac_try) 2>&5 | |
15748 | ac_status=$? | |
15749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15750 | (exit $ac_status); }; } && | |
15751 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15753 | (eval $ac_try) 2>&5 | |
15754 | ac_status=$? | |
15755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15756 | (exit $ac_status); }; }; then | |
15757 | ac_hi=$ac_mid; break | |
15758 | else | |
15759 | echo "$as_me: failed program was:" >&5 | |
15760 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15761 | ||
15762 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
15763 | if test $ac_lo -le $ac_mid; then |
15764 | ac_lo= ac_hi= | |
15765 | break | |
15766 | fi | |
15767 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 15768 | fi |
ac1cb8d3 | 15769 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15770 | done |
15771 | else | |
15772 | echo "$as_me: failed program was:" >&5 | |
15773 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15774 | ||
15775 | cat >conftest.$ac_ext <<_ACEOF | |
15776 | /* confdefs.h. */ | |
15777 | _ACEOF | |
15778 | cat confdefs.h >>conftest.$ac_ext | |
15779 | cat >>conftest.$ac_ext <<_ACEOF | |
15780 | /* end confdefs.h. */ | |
15781 | $ac_includes_default | |
15782 | int | |
15783 | main () | |
15784 | { | |
15785 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
15786 | test_array [0] = 0 | |
15787 | ||
15788 | ; | |
15789 | return 0; | |
15790 | } | |
15791 | _ACEOF | |
15792 | rm -f conftest.$ac_objext | |
15793 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15794 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15795 | ac_status=$? |
ac1cb8d3 VS |
15796 | grep -v '^ *+' conftest.er1 >conftest.err |
15797 | rm -f conftest.er1 | |
15798 | cat conftest.err >&5 | |
a848cd7e SC |
15799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15800 | (exit $ac_status); } && | |
89be85c2 VS |
15801 | { ac_try='test -z "$ac_c_werror_flag" |
15802 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15804 | (eval $ac_try) 2>&5 | |
15805 | ac_status=$? | |
15806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15807 | (exit $ac_status); }; } && | |
15808 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15810 | (eval $ac_try) 2>&5 | |
15811 | ac_status=$? | |
15812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15813 | (exit $ac_status); }; }; then | |
15814 | ac_hi=-1 ac_mid=-1 | |
15815 | while :; do | |
15816 | cat >conftest.$ac_ext <<_ACEOF | |
15817 | /* confdefs.h. */ | |
15818 | _ACEOF | |
15819 | cat confdefs.h >>conftest.$ac_ext | |
15820 | cat >>conftest.$ac_ext <<_ACEOF | |
15821 | /* end confdefs.h. */ | |
15822 | $ac_includes_default | |
15823 | int | |
15824 | main () | |
15825 | { | |
15826 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; | |
15827 | test_array [0] = 0 | |
15828 | ||
15829 | ; | |
15830 | return 0; | |
15831 | } | |
15832 | _ACEOF | |
15833 | rm -f conftest.$ac_objext | |
15834 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15835 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15836 | ac_status=$? |
ac1cb8d3 VS |
15837 | grep -v '^ *+' conftest.er1 >conftest.err |
15838 | rm -f conftest.er1 | |
15839 | cat conftest.err >&5 | |
a848cd7e SC |
15840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15841 | (exit $ac_status); } && | |
89be85c2 VS |
15842 | { ac_try='test -z "$ac_c_werror_flag" |
15843 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15845 | (eval $ac_try) 2>&5 | |
15846 | ac_status=$? | |
15847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15848 | (exit $ac_status); }; } && | |
15849 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15850 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15851 | (eval $ac_try) 2>&5 | |
15852 | ac_status=$? | |
15853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15854 | (exit $ac_status); }; }; then | |
15855 | ac_lo=$ac_mid; break | |
15856 | else | |
15857 | echo "$as_me: failed program was:" >&5 | |
15858 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15859 | ||
15860 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
15861 | if test $ac_mid -le $ac_hi; then |
15862 | ac_lo= ac_hi= | |
15863 | break | |
15864 | fi | |
15865 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 15866 | fi |
ac1cb8d3 | 15867 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15868 | done |
15869 | else | |
15870 | echo "$as_me: failed program was:" >&5 | |
15871 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15872 | ||
15873 | ac_lo= ac_hi= | |
15874 | fi | |
ac1cb8d3 | 15875 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 15876 | fi |
ac1cb8d3 | 15877 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15878 | # Binary search between lo and hi bounds. |
15879 | while test "x$ac_lo" != "x$ac_hi"; do | |
15880 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15881 | cat >conftest.$ac_ext <<_ACEOF | |
15882 | /* confdefs.h. */ | |
15883 | _ACEOF | |
15884 | cat confdefs.h >>conftest.$ac_ext | |
15885 | cat >>conftest.$ac_ext <<_ACEOF | |
15886 | /* end confdefs.h. */ | |
15887 | $ac_includes_default | |
15888 | int | |
15889 | main () | |
15890 | { | |
15891 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
15892 | test_array [0] = 0 | |
15893 | ||
15894 | ; | |
15895 | return 0; | |
15896 | } | |
15897 | _ACEOF | |
15898 | rm -f conftest.$ac_objext | |
15899 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15900 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15901 | ac_status=$? |
ac1cb8d3 VS |
15902 | grep -v '^ *+' conftest.er1 >conftest.err |
15903 | rm -f conftest.er1 | |
15904 | cat conftest.err >&5 | |
a848cd7e SC |
15905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15906 | (exit $ac_status); } && | |
89be85c2 VS |
15907 | { ac_try='test -z "$ac_c_werror_flag" |
15908 | || 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_objext' | |
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_hi=$ac_mid | |
15921 | else | |
15922 | echo "$as_me: failed program was:" >&5 | |
15923 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15924 | ||
15925 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15926 | fi | |
ac1cb8d3 | 15927 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15928 | done |
15929 | case $ac_lo in | |
15930 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
15931 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
15932 | See \`config.log' for more details." >&5 | |
15933 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
15934 | See \`config.log' for more details." >&2;} | |
15935 | { (exit 1); exit 1; }; } ;; | |
15936 | esac | |
15937 | else | |
15938 | if test "$cross_compiling" = yes; then | |
89be85c2 VS |
15939 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
15940 | See \`config.log' for more details." >&5 | |
15941 | echo "$as_me: error: cannot run test program while cross compiling | |
15942 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
15943 | { (exit 1); exit 1; }; } |
15944 | else | |
15945 | cat >conftest.$ac_ext <<_ACEOF | |
15946 | /* confdefs.h. */ | |
15947 | _ACEOF | |
15948 | cat confdefs.h >>conftest.$ac_ext | |
15949 | cat >>conftest.$ac_ext <<_ACEOF | |
15950 | /* end confdefs.h. */ | |
15951 | $ac_includes_default | |
15952 | long longval () { return (long) (sizeof (short)); } | |
15953 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
15954 | #include <stdio.h> | |
15955 | #include <stdlib.h> | |
15956 | int | |
15957 | main () | |
15958 | { | |
15959 | ||
15960 | FILE *f = fopen ("conftest.val", "w"); | |
15961 | if (! f) | |
15962 | exit (1); | |
15963 | if (((long) (sizeof (short))) < 0) | |
15964 | { | |
15965 | long i = longval (); | |
15966 | if (i != ((long) (sizeof (short)))) | |
15967 | exit (1); | |
15968 | fprintf (f, "%ld\n", i); | |
15969 | } | |
15970 | else | |
15971 | { | |
15972 | unsigned long i = ulongval (); | |
15973 | if (i != ((long) (sizeof (short)))) | |
15974 | exit (1); | |
15975 | fprintf (f, "%lu\n", i); | |
15976 | } | |
15977 | exit (ferror (f) || fclose (f) != 0); | |
15978 | ||
15979 | ; | |
15980 | return 0; | |
15981 | } | |
15982 | _ACEOF | |
15983 | rm -f conftest$ac_exeext | |
15984 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15985 | (eval $ac_link) 2>&5 | |
15986 | ac_status=$? | |
15987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15988 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15990 | (eval $ac_try) 2>&5 | |
15991 | ac_status=$? | |
15992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15993 | (exit $ac_status); }; }; then | |
15994 | ac_cv_sizeof_short=`cat conftest.val` | |
15995 | else | |
15996 | echo "$as_me: program exited with status $ac_status" >&5 | |
15997 | echo "$as_me: failed program was:" >&5 | |
15998 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15999 | ||
16000 | ( exit $ac_status ) | |
16001 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
16002 | See \`config.log' for more details." >&5 | |
16003 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
16004 | See \`config.log' for more details." >&2;} | |
16005 | { (exit 1); exit 1; }; } | |
16006 | fi | |
ac1cb8d3 | 16007 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16008 | fi |
16009 | fi | |
16010 | rm -f conftest.val | |
16011 | else | |
16012 | ac_cv_sizeof_short=0 | |
16013 | fi | |
16014 | fi | |
16015 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 | |
16016 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
16017 | cat >>confdefs.h <<_ACEOF | |
16018 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
16019 | _ACEOF | |
16020 | ||
16021 | ||
16022 | echo "$as_me:$LINENO: checking for void *" >&5 | |
16023 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
16024 | if test "${ac_cv_type_void_p+set}" = set; then | |
16025 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16026 | else | |
16027 | cat >conftest.$ac_ext <<_ACEOF | |
16028 | /* confdefs.h. */ | |
16029 | _ACEOF | |
16030 | cat confdefs.h >>conftest.$ac_ext | |
16031 | cat >>conftest.$ac_ext <<_ACEOF | |
16032 | /* end confdefs.h. */ | |
16033 | $ac_includes_default | |
16034 | int | |
16035 | main () | |
16036 | { | |
16037 | if ((void * *) 0) | |
16038 | return 0; | |
16039 | if (sizeof (void *)) | |
16040 | return 0; | |
16041 | ; | |
16042 | return 0; | |
16043 | } | |
16044 | _ACEOF | |
16045 | rm -f conftest.$ac_objext | |
16046 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16047 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16048 | ac_status=$? |
ac1cb8d3 VS |
16049 | grep -v '^ *+' conftest.er1 >conftest.err |
16050 | rm -f conftest.er1 | |
16051 | cat conftest.err >&5 | |
a848cd7e SC |
16052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16053 | (exit $ac_status); } && | |
89be85c2 VS |
16054 | { ac_try='test -z "$ac_c_werror_flag" |
16055 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16057 | (eval $ac_try) 2>&5 | |
16058 | ac_status=$? | |
16059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16060 | (exit $ac_status); }; } && | |
16061 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16063 | (eval $ac_try) 2>&5 | |
16064 | ac_status=$? | |
16065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16066 | (exit $ac_status); }; }; then | |
16067 | ac_cv_type_void_p=yes | |
16068 | else | |
16069 | echo "$as_me: failed program was:" >&5 | |
16070 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16071 | ||
16072 | ac_cv_type_void_p=no | |
16073 | fi | |
ac1cb8d3 | 16074 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16075 | fi |
16076 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
16077 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
16078 | ||
16079 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
16080 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
16081 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
16082 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16083 | else | |
16084 | if test "$ac_cv_type_void_p" = yes; then | |
16085 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16086 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16087 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16088 | # This bug is HP SR number 8606223364. | |
16089 | if test "$cross_compiling" = yes; then | |
16090 | # Depending upon the size, compute the lo and hi bounds. | |
16091 | cat >conftest.$ac_ext <<_ACEOF | |
16092 | /* confdefs.h. */ | |
16093 | _ACEOF | |
16094 | cat confdefs.h >>conftest.$ac_ext | |
16095 | cat >>conftest.$ac_ext <<_ACEOF | |
16096 | /* end confdefs.h. */ | |
16097 | $ac_includes_default | |
16098 | int | |
16099 | main () | |
16100 | { | |
16101 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
16102 | test_array [0] = 0 | |
16103 | ||
16104 | ; | |
16105 | return 0; | |
16106 | } | |
16107 | _ACEOF | |
16108 | rm -f conftest.$ac_objext | |
16109 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16110 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16111 | ac_status=$? |
ac1cb8d3 VS |
16112 | grep -v '^ *+' conftest.er1 >conftest.err |
16113 | rm -f conftest.er1 | |
16114 | cat conftest.err >&5 | |
a848cd7e SC |
16115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16116 | (exit $ac_status); } && | |
89be85c2 VS |
16117 | { ac_try='test -z "$ac_c_werror_flag" |
16118 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16120 | (eval $ac_try) 2>&5 | |
16121 | ac_status=$? | |
16122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16123 | (exit $ac_status); }; } && | |
16124 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16126 | (eval $ac_try) 2>&5 | |
16127 | ac_status=$? | |
16128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16129 | (exit $ac_status); }; }; then | |
16130 | ac_lo=0 ac_mid=0 | |
16131 | while :; do | |
16132 | cat >conftest.$ac_ext <<_ACEOF | |
16133 | /* confdefs.h. */ | |
16134 | _ACEOF | |
16135 | cat confdefs.h >>conftest.$ac_ext | |
16136 | cat >>conftest.$ac_ext <<_ACEOF | |
16137 | /* end confdefs.h. */ | |
16138 | $ac_includes_default | |
16139 | int | |
16140 | main () | |
16141 | { | |
16142 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
16143 | test_array [0] = 0 | |
16144 | ||
16145 | ; | |
16146 | return 0; | |
16147 | } | |
16148 | _ACEOF | |
16149 | rm -f conftest.$ac_objext | |
16150 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16151 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16152 | ac_status=$? |
ac1cb8d3 VS |
16153 | grep -v '^ *+' conftest.er1 >conftest.err |
16154 | rm -f conftest.er1 | |
16155 | cat conftest.err >&5 | |
a848cd7e SC |
16156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16157 | (exit $ac_status); } && | |
89be85c2 VS |
16158 | { ac_try='test -z "$ac_c_werror_flag" |
16159 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16161 | (eval $ac_try) 2>&5 | |
16162 | ac_status=$? | |
16163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16164 | (exit $ac_status); }; } && | |
16165 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16167 | (eval $ac_try) 2>&5 | |
16168 | ac_status=$? | |
16169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16170 | (exit $ac_status); }; }; then | |
16171 | ac_hi=$ac_mid; break | |
16172 | else | |
16173 | echo "$as_me: failed program was:" >&5 | |
16174 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16175 | ||
16176 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16177 | if test $ac_lo -le $ac_mid; then |
16178 | ac_lo= ac_hi= | |
16179 | break | |
16180 | fi | |
16181 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16182 | fi |
ac1cb8d3 | 16183 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16184 | done |
16185 | else | |
16186 | echo "$as_me: failed program was:" >&5 | |
16187 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16188 | ||
16189 | cat >conftest.$ac_ext <<_ACEOF | |
16190 | /* confdefs.h. */ | |
16191 | _ACEOF | |
16192 | cat confdefs.h >>conftest.$ac_ext | |
16193 | cat >>conftest.$ac_ext <<_ACEOF | |
16194 | /* end confdefs.h. */ | |
16195 | $ac_includes_default | |
16196 | int | |
16197 | main () | |
16198 | { | |
16199 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
16200 | test_array [0] = 0 | |
16201 | ||
16202 | ; | |
16203 | return 0; | |
16204 | } | |
16205 | _ACEOF | |
16206 | rm -f conftest.$ac_objext | |
16207 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16208 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16209 | ac_status=$? |
ac1cb8d3 VS |
16210 | grep -v '^ *+' conftest.er1 >conftest.err |
16211 | rm -f conftest.er1 | |
16212 | cat conftest.err >&5 | |
a848cd7e SC |
16213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16214 | (exit $ac_status); } && | |
89be85c2 VS |
16215 | { ac_try='test -z "$ac_c_werror_flag" |
16216 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16218 | (eval $ac_try) 2>&5 | |
16219 | ac_status=$? | |
16220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16221 | (exit $ac_status); }; } && | |
16222 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16224 | (eval $ac_try) 2>&5 | |
16225 | ac_status=$? | |
16226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16227 | (exit $ac_status); }; }; then | |
16228 | ac_hi=-1 ac_mid=-1 | |
16229 | while :; do | |
16230 | cat >conftest.$ac_ext <<_ACEOF | |
16231 | /* confdefs.h. */ | |
16232 | _ACEOF | |
16233 | cat confdefs.h >>conftest.$ac_ext | |
16234 | cat >>conftest.$ac_ext <<_ACEOF | |
16235 | /* end confdefs.h. */ | |
16236 | $ac_includes_default | |
16237 | int | |
16238 | main () | |
16239 | { | |
16240 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
16241 | test_array [0] = 0 | |
16242 | ||
16243 | ; | |
16244 | return 0; | |
16245 | } | |
16246 | _ACEOF | |
16247 | rm -f conftest.$ac_objext | |
16248 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16249 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16250 | ac_status=$? |
ac1cb8d3 VS |
16251 | grep -v '^ *+' conftest.er1 >conftest.err |
16252 | rm -f conftest.er1 | |
16253 | cat conftest.err >&5 | |
a848cd7e SC |
16254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16255 | (exit $ac_status); } && | |
89be85c2 VS |
16256 | { ac_try='test -z "$ac_c_werror_flag" |
16257 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16259 | (eval $ac_try) 2>&5 | |
16260 | ac_status=$? | |
16261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16262 | (exit $ac_status); }; } && | |
16263 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16265 | (eval $ac_try) 2>&5 | |
16266 | ac_status=$? | |
16267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16268 | (exit $ac_status); }; }; then | |
16269 | ac_lo=$ac_mid; break | |
16270 | else | |
16271 | echo "$as_me: failed program was:" >&5 | |
16272 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16273 | ||
16274 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
16275 | if test $ac_mid -le $ac_hi; then |
16276 | ac_lo= ac_hi= | |
16277 | break | |
16278 | fi | |
16279 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 16280 | fi |
ac1cb8d3 | 16281 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16282 | done |
16283 | else | |
16284 | echo "$as_me: failed program was:" >&5 | |
16285 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16286 | ||
16287 | ac_lo= ac_hi= | |
16288 | fi | |
ac1cb8d3 | 16289 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 16290 | fi |
ac1cb8d3 | 16291 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16292 | # Binary search between lo and hi bounds. |
16293 | while test "x$ac_lo" != "x$ac_hi"; do | |
16294 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16295 | cat >conftest.$ac_ext <<_ACEOF | |
16296 | /* confdefs.h. */ | |
16297 | _ACEOF | |
16298 | cat confdefs.h >>conftest.$ac_ext | |
16299 | cat >>conftest.$ac_ext <<_ACEOF | |
16300 | /* end confdefs.h. */ | |
16301 | $ac_includes_default | |
16302 | int | |
16303 | main () | |
16304 | { | |
16305 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
16306 | test_array [0] = 0 | |
16307 | ||
16308 | ; | |
16309 | return 0; | |
16310 | } | |
16311 | _ACEOF | |
16312 | rm -f conftest.$ac_objext | |
16313 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16314 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16315 | ac_status=$? |
ac1cb8d3 VS |
16316 | grep -v '^ *+' conftest.er1 >conftest.err |
16317 | rm -f conftest.er1 | |
16318 | cat conftest.err >&5 | |
a848cd7e SC |
16319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16320 | (exit $ac_status); } && | |
89be85c2 VS |
16321 | { ac_try='test -z "$ac_c_werror_flag" |
16322 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16324 | (eval $ac_try) 2>&5 | |
16325 | ac_status=$? | |
16326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16327 | (exit $ac_status); }; } && | |
16328 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16330 | (eval $ac_try) 2>&5 | |
16331 | ac_status=$? | |
16332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16333 | (exit $ac_status); }; }; then | |
16334 | ac_hi=$ac_mid | |
16335 | else | |
16336 | echo "$as_me: failed program was:" >&5 | |
16337 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16338 | ||
16339 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16340 | fi | |
ac1cb8d3 | 16341 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16342 | done |
16343 | case $ac_lo in | |
16344 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
16345 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
16346 | See \`config.log' for more details." >&5 | |
16347 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
16348 | See \`config.log' for more details." >&2;} | |
16349 | { (exit 1); exit 1; }; } ;; | |
16350 | esac | |
16351 | else | |
16352 | if test "$cross_compiling" = yes; then | |
89be85c2 VS |
16353 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
16354 | See \`config.log' for more details." >&5 | |
16355 | echo "$as_me: error: cannot run test program while cross compiling | |
16356 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
16357 | { (exit 1); exit 1; }; } |
16358 | else | |
16359 | cat >conftest.$ac_ext <<_ACEOF | |
16360 | /* confdefs.h. */ | |
16361 | _ACEOF | |
16362 | cat confdefs.h >>conftest.$ac_ext | |
16363 | cat >>conftest.$ac_ext <<_ACEOF | |
16364 | /* end confdefs.h. */ | |
16365 | $ac_includes_default | |
16366 | long longval () { return (long) (sizeof (void *)); } | |
16367 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
16368 | #include <stdio.h> | |
16369 | #include <stdlib.h> | |
16370 | int | |
16371 | main () | |
16372 | { | |
16373 | ||
16374 | FILE *f = fopen ("conftest.val", "w"); | |
16375 | if (! f) | |
16376 | exit (1); | |
16377 | if (((long) (sizeof (void *))) < 0) | |
16378 | { | |
16379 | long i = longval (); | |
16380 | if (i != ((long) (sizeof (void *)))) | |
16381 | exit (1); | |
16382 | fprintf (f, "%ld\n", i); | |
16383 | } | |
16384 | else | |
16385 | { | |
16386 | unsigned long i = ulongval (); | |
16387 | if (i != ((long) (sizeof (void *)))) | |
16388 | exit (1); | |
16389 | fprintf (f, "%lu\n", i); | |
16390 | } | |
16391 | exit (ferror (f) || fclose (f) != 0); | |
16392 | ||
16393 | ; | |
16394 | return 0; | |
16395 | } | |
16396 | _ACEOF | |
16397 | rm -f conftest$ac_exeext | |
16398 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16399 | (eval $ac_link) 2>&5 | |
16400 | ac_status=$? | |
16401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16402 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16404 | (eval $ac_try) 2>&5 | |
16405 | ac_status=$? | |
16406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16407 | (exit $ac_status); }; }; then | |
16408 | ac_cv_sizeof_void_p=`cat conftest.val` | |
16409 | else | |
16410 | echo "$as_me: program exited with status $ac_status" >&5 | |
16411 | echo "$as_me: failed program was:" >&5 | |
16412 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16413 | ||
16414 | ( exit $ac_status ) | |
16415 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
16416 | See \`config.log' for more details." >&5 | |
16417 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
16418 | See \`config.log' for more details." >&2;} | |
16419 | { (exit 1); exit 1; }; } | |
16420 | fi | |
ac1cb8d3 | 16421 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16422 | fi |
16423 | fi | |
16424 | rm -f conftest.val | |
16425 | else | |
16426 | ac_cv_sizeof_void_p=0 | |
16427 | fi | |
16428 | fi | |
16429 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 | |
16430 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
16431 | cat >>confdefs.h <<_ACEOF | |
16432 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
16433 | _ACEOF | |
16434 | ||
16435 | ||
16436 | echo "$as_me:$LINENO: checking for int" >&5 | |
16437 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
16438 | if test "${ac_cv_type_int+set}" = set; then | |
16439 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16440 | else | |
16441 | cat >conftest.$ac_ext <<_ACEOF | |
16442 | /* confdefs.h. */ | |
16443 | _ACEOF | |
16444 | cat confdefs.h >>conftest.$ac_ext | |
16445 | cat >>conftest.$ac_ext <<_ACEOF | |
16446 | /* end confdefs.h. */ | |
16447 | $ac_includes_default | |
16448 | int | |
16449 | main () | |
16450 | { | |
16451 | if ((int *) 0) | |
16452 | return 0; | |
16453 | if (sizeof (int)) | |
16454 | return 0; | |
16455 | ; | |
16456 | return 0; | |
16457 | } | |
16458 | _ACEOF | |
16459 | rm -f conftest.$ac_objext | |
16460 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16461 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16462 | ac_status=$? |
ac1cb8d3 VS |
16463 | grep -v '^ *+' conftest.er1 >conftest.err |
16464 | rm -f conftest.er1 | |
16465 | cat conftest.err >&5 | |
a848cd7e SC |
16466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16467 | (exit $ac_status); } && | |
89be85c2 VS |
16468 | { ac_try='test -z "$ac_c_werror_flag" |
16469 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16471 | (eval $ac_try) 2>&5 | |
16472 | ac_status=$? | |
16473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16474 | (exit $ac_status); }; } && | |
16475 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16477 | (eval $ac_try) 2>&5 | |
16478 | ac_status=$? | |
16479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16480 | (exit $ac_status); }; }; then | |
16481 | ac_cv_type_int=yes | |
16482 | else | |
16483 | echo "$as_me: failed program was:" >&5 | |
16484 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16485 | ||
16486 | ac_cv_type_int=no | |
16487 | fi | |
ac1cb8d3 | 16488 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16489 | fi |
16490 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
16491 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
16492 | ||
16493 | echo "$as_me:$LINENO: checking size of int" >&5 | |
16494 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
16495 | if test "${ac_cv_sizeof_int+set}" = set; then | |
16496 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16497 | else | |
16498 | if test "$ac_cv_type_int" = yes; then | |
16499 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16500 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16501 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16502 | # This bug is HP SR number 8606223364. | |
16503 | if test "$cross_compiling" = yes; then | |
16504 | # Depending upon the size, compute the lo and hi bounds. | |
16505 | cat >conftest.$ac_ext <<_ACEOF | |
16506 | /* confdefs.h. */ | |
16507 | _ACEOF | |
16508 | cat confdefs.h >>conftest.$ac_ext | |
16509 | cat >>conftest.$ac_ext <<_ACEOF | |
16510 | /* end confdefs.h. */ | |
16511 | $ac_includes_default | |
16512 | int | |
16513 | main () | |
16514 | { | |
16515 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
16516 | test_array [0] = 0 | |
16517 | ||
16518 | ; | |
16519 | return 0; | |
16520 | } | |
16521 | _ACEOF | |
16522 | rm -f conftest.$ac_objext | |
16523 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16524 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16525 | ac_status=$? |
ac1cb8d3 VS |
16526 | grep -v '^ *+' conftest.er1 >conftest.err |
16527 | rm -f conftest.er1 | |
16528 | cat conftest.err >&5 | |
a848cd7e SC |
16529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16530 | (exit $ac_status); } && | |
89be85c2 VS |
16531 | { ac_try='test -z "$ac_c_werror_flag" |
16532 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16534 | (eval $ac_try) 2>&5 | |
16535 | ac_status=$? | |
16536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16537 | (exit $ac_status); }; } && | |
16538 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16540 | (eval $ac_try) 2>&5 | |
16541 | ac_status=$? | |
16542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16543 | (exit $ac_status); }; }; then | |
16544 | ac_lo=0 ac_mid=0 | |
16545 | while :; do | |
16546 | cat >conftest.$ac_ext <<_ACEOF | |
16547 | /* confdefs.h. */ | |
16548 | _ACEOF | |
16549 | cat confdefs.h >>conftest.$ac_ext | |
16550 | cat >>conftest.$ac_ext <<_ACEOF | |
16551 | /* end confdefs.h. */ | |
16552 | $ac_includes_default | |
16553 | int | |
16554 | main () | |
16555 | { | |
16556 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
16557 | test_array [0] = 0 | |
16558 | ||
16559 | ; | |
16560 | return 0; | |
16561 | } | |
16562 | _ACEOF | |
16563 | rm -f conftest.$ac_objext | |
16564 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16565 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16566 | ac_status=$? |
ac1cb8d3 VS |
16567 | grep -v '^ *+' conftest.er1 >conftest.err |
16568 | rm -f conftest.er1 | |
16569 | cat conftest.err >&5 | |
a848cd7e SC |
16570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16571 | (exit $ac_status); } && | |
89be85c2 VS |
16572 | { ac_try='test -z "$ac_c_werror_flag" |
16573 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16575 | (eval $ac_try) 2>&5 | |
16576 | ac_status=$? | |
16577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16578 | (exit $ac_status); }; } && | |
16579 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16581 | (eval $ac_try) 2>&5 | |
16582 | ac_status=$? | |
16583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16584 | (exit $ac_status); }; }; then | |
16585 | ac_hi=$ac_mid; break | |
16586 | else | |
16587 | echo "$as_me: failed program was:" >&5 | |
16588 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16589 | ||
16590 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16591 | if test $ac_lo -le $ac_mid; then |
16592 | ac_lo= ac_hi= | |
16593 | break | |
16594 | fi | |
16595 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16596 | fi |
ac1cb8d3 | 16597 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16598 | done |
16599 | else | |
16600 | echo "$as_me: failed program was:" >&5 | |
16601 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16602 | ||
16603 | cat >conftest.$ac_ext <<_ACEOF | |
16604 | /* confdefs.h. */ | |
16605 | _ACEOF | |
16606 | cat confdefs.h >>conftest.$ac_ext | |
16607 | cat >>conftest.$ac_ext <<_ACEOF | |
16608 | /* end confdefs.h. */ | |
16609 | $ac_includes_default | |
16610 | int | |
16611 | main () | |
16612 | { | |
16613 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
16614 | test_array [0] = 0 | |
16615 | ||
16616 | ; | |
16617 | return 0; | |
16618 | } | |
16619 | _ACEOF | |
16620 | rm -f conftest.$ac_objext | |
16621 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16622 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16623 | ac_status=$? |
ac1cb8d3 VS |
16624 | grep -v '^ *+' conftest.er1 >conftest.err |
16625 | rm -f conftest.er1 | |
16626 | cat conftest.err >&5 | |
a848cd7e SC |
16627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16628 | (exit $ac_status); } && | |
89be85c2 VS |
16629 | { ac_try='test -z "$ac_c_werror_flag" |
16630 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16632 | (eval $ac_try) 2>&5 | |
16633 | ac_status=$? | |
16634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16635 | (exit $ac_status); }; } && | |
16636 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16638 | (eval $ac_try) 2>&5 | |
16639 | ac_status=$? | |
16640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16641 | (exit $ac_status); }; }; then | |
16642 | ac_hi=-1 ac_mid=-1 | |
16643 | while :; do | |
16644 | cat >conftest.$ac_ext <<_ACEOF | |
16645 | /* confdefs.h. */ | |
16646 | _ACEOF | |
16647 | cat confdefs.h >>conftest.$ac_ext | |
16648 | cat >>conftest.$ac_ext <<_ACEOF | |
16649 | /* end confdefs.h. */ | |
16650 | $ac_includes_default | |
16651 | int | |
16652 | main () | |
16653 | { | |
16654 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
16655 | test_array [0] = 0 | |
16656 | ||
16657 | ; | |
16658 | return 0; | |
16659 | } | |
16660 | _ACEOF | |
16661 | rm -f conftest.$ac_objext | |
16662 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16663 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16664 | ac_status=$? |
ac1cb8d3 VS |
16665 | grep -v '^ *+' conftest.er1 >conftest.err |
16666 | rm -f conftest.er1 | |
16667 | cat conftest.err >&5 | |
a848cd7e SC |
16668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16669 | (exit $ac_status); } && | |
89be85c2 VS |
16670 | { ac_try='test -z "$ac_c_werror_flag" |
16671 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16673 | (eval $ac_try) 2>&5 | |
16674 | ac_status=$? | |
16675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16676 | (exit $ac_status); }; } && | |
16677 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16679 | (eval $ac_try) 2>&5 | |
16680 | ac_status=$? | |
16681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16682 | (exit $ac_status); }; }; then | |
16683 | ac_lo=$ac_mid; break | |
16684 | else | |
16685 | echo "$as_me: failed program was:" >&5 | |
16686 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16687 | ||
16688 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
16689 | if test $ac_mid -le $ac_hi; then |
16690 | ac_lo= ac_hi= | |
16691 | break | |
16692 | fi | |
16693 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 16694 | fi |
ac1cb8d3 | 16695 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16696 | done |
16697 | else | |
16698 | echo "$as_me: failed program was:" >&5 | |
16699 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16700 | ||
16701 | ac_lo= ac_hi= | |
16702 | fi | |
ac1cb8d3 | 16703 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 16704 | fi |
ac1cb8d3 | 16705 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16706 | # Binary search between lo and hi bounds. |
16707 | while test "x$ac_lo" != "x$ac_hi"; do | |
16708 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16709 | cat >conftest.$ac_ext <<_ACEOF | |
16710 | /* confdefs.h. */ | |
16711 | _ACEOF | |
16712 | cat confdefs.h >>conftest.$ac_ext | |
16713 | cat >>conftest.$ac_ext <<_ACEOF | |
16714 | /* end confdefs.h. */ | |
16715 | $ac_includes_default | |
16716 | int | |
16717 | main () | |
16718 | { | |
16719 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
16720 | test_array [0] = 0 | |
16721 | ||
16722 | ; | |
16723 | return 0; | |
16724 | } | |
16725 | _ACEOF | |
16726 | rm -f conftest.$ac_objext | |
16727 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16728 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16729 | ac_status=$? |
ac1cb8d3 VS |
16730 | grep -v '^ *+' conftest.er1 >conftest.err |
16731 | rm -f conftest.er1 | |
16732 | cat conftest.err >&5 | |
a848cd7e SC |
16733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16734 | (exit $ac_status); } && | |
89be85c2 VS |
16735 | { ac_try='test -z "$ac_c_werror_flag" |
16736 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16738 | (eval $ac_try) 2>&5 | |
16739 | ac_status=$? | |
16740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16741 | (exit $ac_status); }; } && | |
16742 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16744 | (eval $ac_try) 2>&5 | |
16745 | ac_status=$? | |
16746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16747 | (exit $ac_status); }; }; then | |
16748 | ac_hi=$ac_mid | |
16749 | else | |
16750 | echo "$as_me: failed program was:" >&5 | |
16751 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16752 | ||
16753 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16754 | fi | |
ac1cb8d3 | 16755 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16756 | done |
16757 | case $ac_lo in | |
16758 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
16759 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
16760 | See \`config.log' for more details." >&5 | |
16761 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
16762 | See \`config.log' for more details." >&2;} | |
16763 | { (exit 1); exit 1; }; } ;; | |
16764 | esac | |
16765 | else | |
16766 | if test "$cross_compiling" = yes; then | |
89be85c2 VS |
16767 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
16768 | See \`config.log' for more details." >&5 | |
16769 | echo "$as_me: error: cannot run test program while cross compiling | |
16770 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
16771 | { (exit 1); exit 1; }; } |
16772 | else | |
16773 | cat >conftest.$ac_ext <<_ACEOF | |
16774 | /* confdefs.h. */ | |
16775 | _ACEOF | |
16776 | cat confdefs.h >>conftest.$ac_ext | |
16777 | cat >>conftest.$ac_ext <<_ACEOF | |
16778 | /* end confdefs.h. */ | |
16779 | $ac_includes_default | |
16780 | long longval () { return (long) (sizeof (int)); } | |
16781 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
16782 | #include <stdio.h> | |
16783 | #include <stdlib.h> | |
16784 | int | |
16785 | main () | |
16786 | { | |
16787 | ||
16788 | FILE *f = fopen ("conftest.val", "w"); | |
16789 | if (! f) | |
16790 | exit (1); | |
16791 | if (((long) (sizeof (int))) < 0) | |
16792 | { | |
16793 | long i = longval (); | |
16794 | if (i != ((long) (sizeof (int)))) | |
16795 | exit (1); | |
16796 | fprintf (f, "%ld\n", i); | |
16797 | } | |
16798 | else | |
16799 | { | |
16800 | unsigned long i = ulongval (); | |
16801 | if (i != ((long) (sizeof (int)))) | |
16802 | exit (1); | |
16803 | fprintf (f, "%lu\n", i); | |
16804 | } | |
16805 | exit (ferror (f) || fclose (f) != 0); | |
16806 | ||
16807 | ; | |
16808 | return 0; | |
16809 | } | |
16810 | _ACEOF | |
16811 | rm -f conftest$ac_exeext | |
16812 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16813 | (eval $ac_link) 2>&5 | |
16814 | ac_status=$? | |
16815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16816 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16818 | (eval $ac_try) 2>&5 | |
16819 | ac_status=$? | |
16820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16821 | (exit $ac_status); }; }; then | |
16822 | ac_cv_sizeof_int=`cat conftest.val` | |
16823 | else | |
16824 | echo "$as_me: program exited with status $ac_status" >&5 | |
16825 | echo "$as_me: failed program was:" >&5 | |
16826 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16827 | ||
16828 | ( exit $ac_status ) | |
16829 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
16830 | See \`config.log' for more details." >&5 | |
16831 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
16832 | See \`config.log' for more details." >&2;} | |
16833 | { (exit 1); exit 1; }; } | |
16834 | fi | |
ac1cb8d3 | 16835 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16836 | fi |
16837 | fi | |
16838 | rm -f conftest.val | |
16839 | else | |
16840 | ac_cv_sizeof_int=0 | |
16841 | fi | |
16842 | fi | |
16843 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | |
16844 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
16845 | cat >>confdefs.h <<_ACEOF | |
16846 | #define SIZEOF_INT $ac_cv_sizeof_int | |
16847 | _ACEOF | |
16848 | ||
16849 | ||
16850 | echo "$as_me:$LINENO: checking for long" >&5 | |
16851 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
16852 | if test "${ac_cv_type_long+set}" = set; then | |
16853 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16854 | else | |
16855 | cat >conftest.$ac_ext <<_ACEOF | |
16856 | /* confdefs.h. */ | |
16857 | _ACEOF | |
16858 | cat confdefs.h >>conftest.$ac_ext | |
16859 | cat >>conftest.$ac_ext <<_ACEOF | |
16860 | /* end confdefs.h. */ | |
16861 | $ac_includes_default | |
16862 | int | |
16863 | main () | |
16864 | { | |
16865 | if ((long *) 0) | |
16866 | return 0; | |
16867 | if (sizeof (long)) | |
16868 | return 0; | |
16869 | ; | |
16870 | return 0; | |
16871 | } | |
16872 | _ACEOF | |
16873 | rm -f conftest.$ac_objext | |
16874 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16875 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16876 | ac_status=$? |
ac1cb8d3 VS |
16877 | grep -v '^ *+' conftest.er1 >conftest.err |
16878 | rm -f conftest.er1 | |
16879 | cat conftest.err >&5 | |
a848cd7e SC |
16880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16881 | (exit $ac_status); } && | |
89be85c2 VS |
16882 | { ac_try='test -z "$ac_c_werror_flag" |
16883 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16885 | (eval $ac_try) 2>&5 | |
16886 | ac_status=$? | |
16887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16888 | (exit $ac_status); }; } && | |
16889 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16891 | (eval $ac_try) 2>&5 | |
16892 | ac_status=$? | |
16893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16894 | (exit $ac_status); }; }; then | |
16895 | ac_cv_type_long=yes | |
16896 | else | |
16897 | echo "$as_me: failed program was:" >&5 | |
16898 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16899 | ||
16900 | ac_cv_type_long=no | |
16901 | fi | |
ac1cb8d3 | 16902 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16903 | fi |
16904 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
16905 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
16906 | ||
16907 | echo "$as_me:$LINENO: checking size of long" >&5 | |
16908 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
16909 | if test "${ac_cv_sizeof_long+set}" = set; then | |
16910 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16911 | else | |
16912 | if test "$ac_cv_type_long" = yes; then | |
16913 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16914 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16915 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16916 | # This bug is HP SR number 8606223364. | |
16917 | if test "$cross_compiling" = yes; then | |
16918 | # Depending upon the size, compute the lo and hi bounds. | |
16919 | cat >conftest.$ac_ext <<_ACEOF | |
16920 | /* confdefs.h. */ | |
16921 | _ACEOF | |
16922 | cat confdefs.h >>conftest.$ac_ext | |
16923 | cat >>conftest.$ac_ext <<_ACEOF | |
16924 | /* end confdefs.h. */ | |
16925 | $ac_includes_default | |
16926 | int | |
16927 | main () | |
16928 | { | |
16929 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
16930 | test_array [0] = 0 | |
16931 | ||
16932 | ; | |
16933 | return 0; | |
16934 | } | |
16935 | _ACEOF | |
16936 | rm -f conftest.$ac_objext | |
16937 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16938 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16939 | ac_status=$? |
ac1cb8d3 VS |
16940 | grep -v '^ *+' conftest.er1 >conftest.err |
16941 | rm -f conftest.er1 | |
16942 | cat conftest.err >&5 | |
a848cd7e SC |
16943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16944 | (exit $ac_status); } && | |
89be85c2 VS |
16945 | { ac_try='test -z "$ac_c_werror_flag" |
16946 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16948 | (eval $ac_try) 2>&5 | |
16949 | ac_status=$? | |
16950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16951 | (exit $ac_status); }; } && | |
16952 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16954 | (eval $ac_try) 2>&5 | |
16955 | ac_status=$? | |
16956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16957 | (exit $ac_status); }; }; then | |
16958 | ac_lo=0 ac_mid=0 | |
16959 | while :; do | |
16960 | cat >conftest.$ac_ext <<_ACEOF | |
16961 | /* confdefs.h. */ | |
16962 | _ACEOF | |
16963 | cat confdefs.h >>conftest.$ac_ext | |
16964 | cat >>conftest.$ac_ext <<_ACEOF | |
16965 | /* end confdefs.h. */ | |
16966 | $ac_includes_default | |
16967 | int | |
16968 | main () | |
16969 | { | |
16970 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
16971 | test_array [0] = 0 | |
16972 | ||
16973 | ; | |
16974 | return 0; | |
16975 | } | |
16976 | _ACEOF | |
16977 | rm -f conftest.$ac_objext | |
16978 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16979 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16980 | ac_status=$? |
ac1cb8d3 VS |
16981 | grep -v '^ *+' conftest.er1 >conftest.err |
16982 | rm -f conftest.er1 | |
16983 | cat conftest.err >&5 | |
a848cd7e SC |
16984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16985 | (exit $ac_status); } && | |
89be85c2 VS |
16986 | { ac_try='test -z "$ac_c_werror_flag" |
16987 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16989 | (eval $ac_try) 2>&5 | |
16990 | ac_status=$? | |
16991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16992 | (exit $ac_status); }; } && | |
16993 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16995 | (eval $ac_try) 2>&5 | |
16996 | ac_status=$? | |
16997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16998 | (exit $ac_status); }; }; then | |
16999 | ac_hi=$ac_mid; break | |
17000 | else | |
17001 | echo "$as_me: failed program was:" >&5 | |
17002 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17003 | ||
17004 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17005 | if test $ac_lo -le $ac_mid; then |
17006 | ac_lo= ac_hi= | |
17007 | break | |
17008 | fi | |
17009 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17010 | fi |
ac1cb8d3 | 17011 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17012 | done |
17013 | else | |
17014 | echo "$as_me: failed program was:" >&5 | |
17015 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17016 | ||
17017 | cat >conftest.$ac_ext <<_ACEOF | |
17018 | /* confdefs.h. */ | |
17019 | _ACEOF | |
17020 | cat confdefs.h >>conftest.$ac_ext | |
17021 | cat >>conftest.$ac_ext <<_ACEOF | |
17022 | /* end confdefs.h. */ | |
17023 | $ac_includes_default | |
17024 | int | |
17025 | main () | |
17026 | { | |
17027 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
17028 | test_array [0] = 0 | |
17029 | ||
17030 | ; | |
17031 | return 0; | |
17032 | } | |
17033 | _ACEOF | |
17034 | rm -f conftest.$ac_objext | |
17035 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17036 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17037 | ac_status=$? |
ac1cb8d3 VS |
17038 | grep -v '^ *+' conftest.er1 >conftest.err |
17039 | rm -f conftest.er1 | |
17040 | cat conftest.err >&5 | |
a848cd7e SC |
17041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17042 | (exit $ac_status); } && | |
89be85c2 VS |
17043 | { ac_try='test -z "$ac_c_werror_flag" |
17044 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17046 | (eval $ac_try) 2>&5 | |
17047 | ac_status=$? | |
17048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17049 | (exit $ac_status); }; } && | |
17050 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17052 | (eval $ac_try) 2>&5 | |
17053 | ac_status=$? | |
17054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17055 | (exit $ac_status); }; }; then | |
17056 | ac_hi=-1 ac_mid=-1 | |
17057 | while :; do | |
17058 | cat >conftest.$ac_ext <<_ACEOF | |
17059 | /* confdefs.h. */ | |
17060 | _ACEOF | |
17061 | cat confdefs.h >>conftest.$ac_ext | |
17062 | cat >>conftest.$ac_ext <<_ACEOF | |
17063 | /* end confdefs.h. */ | |
17064 | $ac_includes_default | |
17065 | int | |
17066 | main () | |
17067 | { | |
17068 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
17069 | test_array [0] = 0 | |
17070 | ||
17071 | ; | |
17072 | return 0; | |
17073 | } | |
17074 | _ACEOF | |
17075 | rm -f conftest.$ac_objext | |
17076 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17077 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17078 | ac_status=$? |
ac1cb8d3 VS |
17079 | grep -v '^ *+' conftest.er1 >conftest.err |
17080 | rm -f conftest.er1 | |
17081 | cat conftest.err >&5 | |
a848cd7e SC |
17082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17083 | (exit $ac_status); } && | |
89be85c2 VS |
17084 | { ac_try='test -z "$ac_c_werror_flag" |
17085 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17087 | (eval $ac_try) 2>&5 | |
17088 | ac_status=$? | |
17089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17090 | (exit $ac_status); }; } && | |
17091 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17093 | (eval $ac_try) 2>&5 | |
17094 | ac_status=$? | |
17095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17096 | (exit $ac_status); }; }; then | |
17097 | ac_lo=$ac_mid; break | |
17098 | else | |
17099 | echo "$as_me: failed program was:" >&5 | |
17100 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17101 | ||
17102 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17103 | if test $ac_mid -le $ac_hi; then |
17104 | ac_lo= ac_hi= | |
17105 | break | |
17106 | fi | |
17107 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17108 | fi |
ac1cb8d3 | 17109 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17110 | done |
17111 | else | |
17112 | echo "$as_me: failed program was:" >&5 | |
17113 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17114 | ||
17115 | ac_lo= ac_hi= | |
17116 | fi | |
ac1cb8d3 | 17117 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17118 | fi |
ac1cb8d3 | 17119 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17120 | # Binary search between lo and hi bounds. |
17121 | while test "x$ac_lo" != "x$ac_hi"; do | |
17122 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17123 | cat >conftest.$ac_ext <<_ACEOF | |
17124 | /* confdefs.h. */ | |
17125 | _ACEOF | |
17126 | cat confdefs.h >>conftest.$ac_ext | |
17127 | cat >>conftest.$ac_ext <<_ACEOF | |
17128 | /* end confdefs.h. */ | |
17129 | $ac_includes_default | |
17130 | int | |
17131 | main () | |
17132 | { | |
17133 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
17134 | test_array [0] = 0 | |
17135 | ||
17136 | ; | |
17137 | return 0; | |
17138 | } | |
17139 | _ACEOF | |
17140 | rm -f conftest.$ac_objext | |
17141 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17142 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17143 | ac_status=$? |
ac1cb8d3 VS |
17144 | grep -v '^ *+' conftest.er1 >conftest.err |
17145 | rm -f conftest.er1 | |
17146 | cat conftest.err >&5 | |
a848cd7e SC |
17147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17148 | (exit $ac_status); } && | |
89be85c2 VS |
17149 | { ac_try='test -z "$ac_c_werror_flag" |
17150 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17152 | (eval $ac_try) 2>&5 | |
17153 | ac_status=$? | |
17154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17155 | (exit $ac_status); }; } && | |
17156 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17158 | (eval $ac_try) 2>&5 | |
17159 | ac_status=$? | |
17160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17161 | (exit $ac_status); }; }; then | |
17162 | ac_hi=$ac_mid | |
17163 | else | |
17164 | echo "$as_me: failed program was:" >&5 | |
17165 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17166 | ||
17167 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17168 | fi | |
ac1cb8d3 | 17169 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17170 | done |
17171 | case $ac_lo in | |
17172 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
17173 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
17174 | See \`config.log' for more details." >&5 | |
17175 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
17176 | See \`config.log' for more details." >&2;} | |
17177 | { (exit 1); exit 1; }; } ;; | |
17178 | esac | |
17179 | else | |
17180 | if test "$cross_compiling" = yes; then | |
89be85c2 VS |
17181 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
17182 | See \`config.log' for more details." >&5 | |
17183 | echo "$as_me: error: cannot run test program while cross compiling | |
17184 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
17185 | { (exit 1); exit 1; }; } |
17186 | else | |
17187 | cat >conftest.$ac_ext <<_ACEOF | |
17188 | /* confdefs.h. */ | |
17189 | _ACEOF | |
17190 | cat confdefs.h >>conftest.$ac_ext | |
17191 | cat >>conftest.$ac_ext <<_ACEOF | |
17192 | /* end confdefs.h. */ | |
17193 | $ac_includes_default | |
17194 | long longval () { return (long) (sizeof (long)); } | |
17195 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
17196 | #include <stdio.h> | |
17197 | #include <stdlib.h> | |
17198 | int | |
17199 | main () | |
17200 | { | |
17201 | ||
17202 | FILE *f = fopen ("conftest.val", "w"); | |
17203 | if (! f) | |
17204 | exit (1); | |
17205 | if (((long) (sizeof (long))) < 0) | |
17206 | { | |
17207 | long i = longval (); | |
17208 | if (i != ((long) (sizeof (long)))) | |
17209 | exit (1); | |
17210 | fprintf (f, "%ld\n", i); | |
17211 | } | |
17212 | else | |
17213 | { | |
17214 | unsigned long i = ulongval (); | |
17215 | if (i != ((long) (sizeof (long)))) | |
17216 | exit (1); | |
17217 | fprintf (f, "%lu\n", i); | |
17218 | } | |
17219 | exit (ferror (f) || fclose (f) != 0); | |
17220 | ||
17221 | ; | |
17222 | return 0; | |
17223 | } | |
17224 | _ACEOF | |
17225 | rm -f conftest$ac_exeext | |
17226 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17227 | (eval $ac_link) 2>&5 | |
17228 | ac_status=$? | |
17229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17230 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17232 | (eval $ac_try) 2>&5 | |
17233 | ac_status=$? | |
17234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17235 | (exit $ac_status); }; }; then | |
17236 | ac_cv_sizeof_long=`cat conftest.val` | |
17237 | else | |
17238 | echo "$as_me: program exited with status $ac_status" >&5 | |
17239 | echo "$as_me: failed program was:" >&5 | |
17240 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17241 | ||
17242 | ( exit $ac_status ) | |
17243 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
17244 | See \`config.log' for more details." >&5 | |
17245 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
17246 | See \`config.log' for more details." >&2;} | |
17247 | { (exit 1); exit 1; }; } | |
17248 | fi | |
ac1cb8d3 | 17249 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17250 | fi |
17251 | fi | |
17252 | rm -f conftest.val | |
17253 | else | |
17254 | ac_cv_sizeof_long=0 | |
17255 | fi | |
17256 | fi | |
17257 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
17258 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
17259 | cat >>confdefs.h <<_ACEOF | |
17260 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
17261 | _ACEOF | |
17262 | ||
17263 | ||
17264 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
17265 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
17266 | if test "${ac_cv_type_size_t+set}" = set; then | |
17267 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17268 | else | |
17269 | cat >conftest.$ac_ext <<_ACEOF | |
17270 | /* confdefs.h. */ | |
17271 | _ACEOF | |
17272 | cat confdefs.h >>conftest.$ac_ext | |
17273 | cat >>conftest.$ac_ext <<_ACEOF | |
17274 | /* end confdefs.h. */ | |
17275 | $ac_includes_default | |
17276 | int | |
17277 | main () | |
17278 | { | |
17279 | if ((size_t *) 0) | |
17280 | return 0; | |
17281 | if (sizeof (size_t)) | |
17282 | return 0; | |
17283 | ; | |
17284 | return 0; | |
17285 | } | |
17286 | _ACEOF | |
17287 | rm -f conftest.$ac_objext | |
17288 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17289 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17290 | ac_status=$? |
ac1cb8d3 VS |
17291 | grep -v '^ *+' conftest.er1 >conftest.err |
17292 | rm -f conftest.er1 | |
17293 | cat conftest.err >&5 | |
a848cd7e SC |
17294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17295 | (exit $ac_status); } && | |
89be85c2 VS |
17296 | { ac_try='test -z "$ac_c_werror_flag" |
17297 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17299 | (eval $ac_try) 2>&5 | |
17300 | ac_status=$? | |
17301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17302 | (exit $ac_status); }; } && | |
17303 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17305 | (eval $ac_try) 2>&5 | |
17306 | ac_status=$? | |
17307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17308 | (exit $ac_status); }; }; then | |
17309 | ac_cv_type_size_t=yes | |
17310 | else | |
17311 | echo "$as_me: failed program was:" >&5 | |
17312 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17313 | ||
17314 | ac_cv_type_size_t=no | |
17315 | fi | |
ac1cb8d3 | 17316 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17317 | fi |
17318 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
17319 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
17320 | ||
17321 | echo "$as_me:$LINENO: checking size of size_t" >&5 | |
17322 | echo $ECHO_N "checking size of size_t... $ECHO_C" >&6 | |
17323 | if test "${ac_cv_sizeof_size_t+set}" = set; then | |
17324 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17325 | else | |
17326 | if test "$ac_cv_type_size_t" = yes; then | |
17327 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17328 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17329 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17330 | # This bug is HP SR number 8606223364. | |
17331 | if test "$cross_compiling" = yes; then | |
17332 | # Depending upon the size, compute the lo and hi bounds. | |
17333 | cat >conftest.$ac_ext <<_ACEOF | |
17334 | /* confdefs.h. */ | |
17335 | _ACEOF | |
17336 | cat confdefs.h >>conftest.$ac_ext | |
17337 | cat >>conftest.$ac_ext <<_ACEOF | |
17338 | /* end confdefs.h. */ | |
17339 | $ac_includes_default | |
17340 | int | |
17341 | main () | |
17342 | { | |
17343 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)]; | |
17344 | test_array [0] = 0 | |
17345 | ||
17346 | ; | |
17347 | return 0; | |
17348 | } | |
17349 | _ACEOF | |
17350 | rm -f conftest.$ac_objext | |
17351 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17352 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17353 | ac_status=$? |
ac1cb8d3 VS |
17354 | grep -v '^ *+' conftest.er1 >conftest.err |
17355 | rm -f conftest.er1 | |
17356 | cat conftest.err >&5 | |
a848cd7e SC |
17357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17358 | (exit $ac_status); } && | |
89be85c2 VS |
17359 | { ac_try='test -z "$ac_c_werror_flag" |
17360 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17362 | (eval $ac_try) 2>&5 | |
17363 | ac_status=$? | |
17364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17365 | (exit $ac_status); }; } && | |
17366 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17368 | (eval $ac_try) 2>&5 | |
17369 | ac_status=$? | |
17370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17371 | (exit $ac_status); }; }; then | |
17372 | ac_lo=0 ac_mid=0 | |
17373 | while :; do | |
17374 | cat >conftest.$ac_ext <<_ACEOF | |
17375 | /* confdefs.h. */ | |
17376 | _ACEOF | |
17377 | cat confdefs.h >>conftest.$ac_ext | |
17378 | cat >>conftest.$ac_ext <<_ACEOF | |
17379 | /* end confdefs.h. */ | |
17380 | $ac_includes_default | |
17381 | int | |
17382 | main () | |
17383 | { | |
17384 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
17385 | test_array [0] = 0 | |
17386 | ||
17387 | ; | |
17388 | return 0; | |
17389 | } | |
17390 | _ACEOF | |
17391 | rm -f conftest.$ac_objext | |
17392 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17393 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17394 | ac_status=$? |
ac1cb8d3 VS |
17395 | grep -v '^ *+' conftest.er1 >conftest.err |
17396 | rm -f conftest.er1 | |
17397 | cat conftest.err >&5 | |
a848cd7e SC |
17398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17399 | (exit $ac_status); } && | |
89be85c2 VS |
17400 | { ac_try='test -z "$ac_c_werror_flag" |
17401 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17403 | (eval $ac_try) 2>&5 | |
17404 | ac_status=$? | |
17405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17406 | (exit $ac_status); }; } && | |
17407 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17409 | (eval $ac_try) 2>&5 | |
17410 | ac_status=$? | |
17411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17412 | (exit $ac_status); }; }; then | |
17413 | ac_hi=$ac_mid; break | |
17414 | else | |
17415 | echo "$as_me: failed program was:" >&5 | |
17416 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17417 | ||
17418 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17419 | if test $ac_lo -le $ac_mid; then |
17420 | ac_lo= ac_hi= | |
17421 | break | |
17422 | fi | |
17423 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17424 | fi |
ac1cb8d3 | 17425 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17426 | done |
17427 | else | |
17428 | echo "$as_me: failed program was:" >&5 | |
17429 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17430 | ||
17431 | cat >conftest.$ac_ext <<_ACEOF | |
17432 | /* confdefs.h. */ | |
17433 | _ACEOF | |
17434 | cat confdefs.h >>conftest.$ac_ext | |
17435 | cat >>conftest.$ac_ext <<_ACEOF | |
17436 | /* end confdefs.h. */ | |
17437 | $ac_includes_default | |
17438 | int | |
17439 | main () | |
17440 | { | |
17441 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)]; | |
17442 | test_array [0] = 0 | |
17443 | ||
17444 | ; | |
17445 | return 0; | |
17446 | } | |
17447 | _ACEOF | |
17448 | rm -f conftest.$ac_objext | |
17449 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17450 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17451 | ac_status=$? |
ac1cb8d3 VS |
17452 | grep -v '^ *+' conftest.er1 >conftest.err |
17453 | rm -f conftest.er1 | |
17454 | cat conftest.err >&5 | |
a848cd7e SC |
17455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17456 | (exit $ac_status); } && | |
89be85c2 VS |
17457 | { ac_try='test -z "$ac_c_werror_flag" |
17458 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17460 | (eval $ac_try) 2>&5 | |
17461 | ac_status=$? | |
17462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17463 | (exit $ac_status); }; } && | |
17464 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17466 | (eval $ac_try) 2>&5 | |
17467 | ac_status=$? | |
17468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17469 | (exit $ac_status); }; }; then | |
17470 | ac_hi=-1 ac_mid=-1 | |
17471 | while :; do | |
17472 | cat >conftest.$ac_ext <<_ACEOF | |
17473 | /* confdefs.h. */ | |
17474 | _ACEOF | |
17475 | cat confdefs.h >>conftest.$ac_ext | |
17476 | cat >>conftest.$ac_ext <<_ACEOF | |
17477 | /* end confdefs.h. */ | |
17478 | $ac_includes_default | |
17479 | int | |
17480 | main () | |
17481 | { | |
17482 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)]; | |
17483 | test_array [0] = 0 | |
17484 | ||
17485 | ; | |
17486 | return 0; | |
17487 | } | |
17488 | _ACEOF | |
17489 | rm -f conftest.$ac_objext | |
17490 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17491 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17492 | ac_status=$? |
ac1cb8d3 VS |
17493 | grep -v '^ *+' conftest.er1 >conftest.err |
17494 | rm -f conftest.er1 | |
17495 | cat conftest.err >&5 | |
a848cd7e SC |
17496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17497 | (exit $ac_status); } && | |
89be85c2 VS |
17498 | { ac_try='test -z "$ac_c_werror_flag" |
17499 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17501 | (eval $ac_try) 2>&5 | |
17502 | ac_status=$? | |
17503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17504 | (exit $ac_status); }; } && | |
17505 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17507 | (eval $ac_try) 2>&5 | |
17508 | ac_status=$? | |
17509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17510 | (exit $ac_status); }; }; then | |
17511 | ac_lo=$ac_mid; break | |
17512 | else | |
17513 | echo "$as_me: failed program was:" >&5 | |
17514 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17515 | ||
17516 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17517 | if test $ac_mid -le $ac_hi; then |
17518 | ac_lo= ac_hi= | |
17519 | break | |
17520 | fi | |
17521 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17522 | fi |
ac1cb8d3 | 17523 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17524 | done |
17525 | else | |
17526 | echo "$as_me: failed program was:" >&5 | |
17527 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17528 | ||
17529 | ac_lo= ac_hi= | |
17530 | fi | |
ac1cb8d3 | 17531 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17532 | fi |
ac1cb8d3 | 17533 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17534 | # Binary search between lo and hi bounds. |
17535 | while test "x$ac_lo" != "x$ac_hi"; do | |
17536 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17537 | cat >conftest.$ac_ext <<_ACEOF | |
17538 | /* confdefs.h. */ | |
17539 | _ACEOF | |
17540 | cat confdefs.h >>conftest.$ac_ext | |
17541 | cat >>conftest.$ac_ext <<_ACEOF | |
17542 | /* end confdefs.h. */ | |
17543 | $ac_includes_default | |
17544 | int | |
17545 | main () | |
17546 | { | |
17547 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
17548 | test_array [0] = 0 | |
17549 | ||
17550 | ; | |
17551 | return 0; | |
17552 | } | |
17553 | _ACEOF | |
17554 | rm -f conftest.$ac_objext | |
17555 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17556 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17557 | ac_status=$? |
ac1cb8d3 VS |
17558 | grep -v '^ *+' conftest.er1 >conftest.err |
17559 | rm -f conftest.er1 | |
17560 | cat conftest.err >&5 | |
a848cd7e SC |
17561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17562 | (exit $ac_status); } && | |
89be85c2 VS |
17563 | { ac_try='test -z "$ac_c_werror_flag" |
17564 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17566 | (eval $ac_try) 2>&5 | |
17567 | ac_status=$? | |
17568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17569 | (exit $ac_status); }; } && | |
17570 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17572 | (eval $ac_try) 2>&5 | |
17573 | ac_status=$? | |
17574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17575 | (exit $ac_status); }; }; then | |
17576 | ac_hi=$ac_mid | |
17577 | else | |
17578 | echo "$as_me: failed program was:" >&5 | |
17579 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17580 | ||
17581 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17582 | fi | |
ac1cb8d3 | 17583 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17584 | done |
17585 | case $ac_lo in | |
17586 | ?*) ac_cv_sizeof_size_t=$ac_lo;; | |
17587 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
17588 | See \`config.log' for more details." >&5 | |
17589 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
17590 | See \`config.log' for more details." >&2;} | |
17591 | { (exit 1); exit 1; }; } ;; | |
17592 | esac | |
17593 | else | |
17594 | if test "$cross_compiling" = yes; then | |
89be85c2 VS |
17595 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
17596 | See \`config.log' for more details." >&5 | |
17597 | echo "$as_me: error: cannot run test program while cross compiling | |
17598 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
17599 | { (exit 1); exit 1; }; } |
17600 | else | |
17601 | cat >conftest.$ac_ext <<_ACEOF | |
17602 | /* confdefs.h. */ | |
17603 | _ACEOF | |
17604 | cat confdefs.h >>conftest.$ac_ext | |
17605 | cat >>conftest.$ac_ext <<_ACEOF | |
17606 | /* end confdefs.h. */ | |
17607 | $ac_includes_default | |
17608 | long longval () { return (long) (sizeof (size_t)); } | |
17609 | unsigned long ulongval () { return (long) (sizeof (size_t)); } | |
17610 | #include <stdio.h> | |
17611 | #include <stdlib.h> | |
17612 | int | |
17613 | main () | |
17614 | { | |
17615 | ||
17616 | FILE *f = fopen ("conftest.val", "w"); | |
17617 | if (! f) | |
17618 | exit (1); | |
17619 | if (((long) (sizeof (size_t))) < 0) | |
17620 | { | |
17621 | long i = longval (); | |
17622 | if (i != ((long) (sizeof (size_t)))) | |
17623 | exit (1); | |
17624 | fprintf (f, "%ld\n", i); | |
17625 | } | |
17626 | else | |
17627 | { | |
17628 | unsigned long i = ulongval (); | |
17629 | if (i != ((long) (sizeof (size_t)))) | |
17630 | exit (1); | |
17631 | fprintf (f, "%lu\n", i); | |
17632 | } | |
17633 | exit (ferror (f) || fclose (f) != 0); | |
17634 | ||
17635 | ; | |
17636 | return 0; | |
17637 | } | |
17638 | _ACEOF | |
17639 | rm -f conftest$ac_exeext | |
17640 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17641 | (eval $ac_link) 2>&5 | |
17642 | ac_status=$? | |
17643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17644 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17646 | (eval $ac_try) 2>&5 | |
17647 | ac_status=$? | |
17648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17649 | (exit $ac_status); }; }; then | |
17650 | ac_cv_sizeof_size_t=`cat conftest.val` | |
17651 | else | |
17652 | echo "$as_me: program exited with status $ac_status" >&5 | |
17653 | echo "$as_me: failed program was:" >&5 | |
17654 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17655 | ||
17656 | ( exit $ac_status ) | |
17657 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
17658 | See \`config.log' for more details." >&5 | |
17659 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
17660 | See \`config.log' for more details." >&2;} | |
17661 | { (exit 1); exit 1; }; } | |
17662 | fi | |
ac1cb8d3 | 17663 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17664 | fi |
17665 | fi | |
17666 | rm -f conftest.val | |
17667 | else | |
17668 | ac_cv_sizeof_size_t=0 | |
17669 | fi | |
17670 | fi | |
17671 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 | |
17672 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6 | |
17673 | cat >>confdefs.h <<_ACEOF | |
17674 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | |
17675 | _ACEOF | |
17676 | ||
17677 | ||
17678 | ||
17679 | case "${host}" in | |
17680 | arm-*-linux* ) | |
17681 | echo "$as_me:$LINENO: checking for long long" >&5 | |
17682 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
17683 | if test "${ac_cv_type_long_long+set}" = set; then | |
17684 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17685 | else | |
17686 | cat >conftest.$ac_ext <<_ACEOF | |
17687 | /* confdefs.h. */ | |
17688 | _ACEOF | |
17689 | cat confdefs.h >>conftest.$ac_ext | |
17690 | cat >>conftest.$ac_ext <<_ACEOF | |
17691 | /* end confdefs.h. */ | |
17692 | $ac_includes_default | |
17693 | int | |
17694 | main () | |
17695 | { | |
17696 | if ((long long *) 0) | |
17697 | return 0; | |
17698 | if (sizeof (long long)) | |
17699 | return 0; | |
17700 | ; | |
17701 | return 0; | |
17702 | } | |
17703 | _ACEOF | |
17704 | rm -f conftest.$ac_objext | |
17705 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17706 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17707 | ac_status=$? |
ac1cb8d3 VS |
17708 | grep -v '^ *+' conftest.er1 >conftest.err |
17709 | rm -f conftest.er1 | |
17710 | cat conftest.err >&5 | |
a848cd7e SC |
17711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17712 | (exit $ac_status); } && | |
89be85c2 VS |
17713 | { ac_try='test -z "$ac_c_werror_flag" |
17714 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17716 | (eval $ac_try) 2>&5 | |
17717 | ac_status=$? | |
17718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17719 | (exit $ac_status); }; } && | |
17720 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17722 | (eval $ac_try) 2>&5 | |
17723 | ac_status=$? | |
17724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17725 | (exit $ac_status); }; }; then | |
17726 | ac_cv_type_long_long=yes | |
17727 | else | |
17728 | echo "$as_me: failed program was:" >&5 | |
17729 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17730 | ||
17731 | ac_cv_type_long_long=no | |
17732 | fi | |
ac1cb8d3 | 17733 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17734 | fi |
17735 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
17736 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
17737 | ||
17738 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
17739 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
17740 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
17741 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17742 | else | |
17743 | if test "$ac_cv_type_long_long" = yes; then | |
17744 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17745 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17746 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17747 | # This bug is HP SR number 8606223364. | |
17748 | if test "$cross_compiling" = yes; then | |
17749 | # Depending upon the size, compute the lo and hi bounds. | |
17750 | cat >conftest.$ac_ext <<_ACEOF | |
17751 | /* confdefs.h. */ | |
17752 | _ACEOF | |
17753 | cat confdefs.h >>conftest.$ac_ext | |
17754 | cat >>conftest.$ac_ext <<_ACEOF | |
17755 | /* end confdefs.h. */ | |
17756 | $ac_includes_default | |
17757 | int | |
17758 | main () | |
17759 | { | |
17760 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
17761 | test_array [0] = 0 | |
17762 | ||
17763 | ; | |
17764 | return 0; | |
17765 | } | |
17766 | _ACEOF | |
17767 | rm -f conftest.$ac_objext | |
17768 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17769 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17770 | ac_status=$? |
ac1cb8d3 VS |
17771 | grep -v '^ *+' conftest.er1 >conftest.err |
17772 | rm -f conftest.er1 | |
17773 | cat conftest.err >&5 | |
a848cd7e SC |
17774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17775 | (exit $ac_status); } && | |
89be85c2 VS |
17776 | { ac_try='test -z "$ac_c_werror_flag" |
17777 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17779 | (eval $ac_try) 2>&5 | |
17780 | ac_status=$? | |
17781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17782 | (exit $ac_status); }; } && | |
17783 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17785 | (eval $ac_try) 2>&5 | |
17786 | ac_status=$? | |
17787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17788 | (exit $ac_status); }; }; then | |
17789 | ac_lo=0 ac_mid=0 | |
17790 | while :; do | |
17791 | cat >conftest.$ac_ext <<_ACEOF | |
17792 | /* confdefs.h. */ | |
17793 | _ACEOF | |
17794 | cat confdefs.h >>conftest.$ac_ext | |
17795 | cat >>conftest.$ac_ext <<_ACEOF | |
17796 | /* end confdefs.h. */ | |
17797 | $ac_includes_default | |
17798 | int | |
17799 | main () | |
17800 | { | |
17801 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17802 | test_array [0] = 0 | |
17803 | ||
17804 | ; | |
17805 | return 0; | |
17806 | } | |
17807 | _ACEOF | |
17808 | rm -f conftest.$ac_objext | |
17809 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17810 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17811 | ac_status=$? |
ac1cb8d3 VS |
17812 | grep -v '^ *+' conftest.er1 >conftest.err |
17813 | rm -f conftest.er1 | |
17814 | cat conftest.err >&5 | |
a848cd7e SC |
17815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17816 | (exit $ac_status); } && | |
89be85c2 VS |
17817 | { ac_try='test -z "$ac_c_werror_flag" |
17818 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17820 | (eval $ac_try) 2>&5 | |
17821 | ac_status=$? | |
17822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17823 | (exit $ac_status); }; } && | |
17824 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17826 | (eval $ac_try) 2>&5 | |
17827 | ac_status=$? | |
17828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17829 | (exit $ac_status); }; }; then | |
17830 | ac_hi=$ac_mid; break | |
17831 | else | |
17832 | echo "$as_me: failed program was:" >&5 | |
17833 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17834 | ||
17835 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17836 | if test $ac_lo -le $ac_mid; then |
17837 | ac_lo= ac_hi= | |
17838 | break | |
17839 | fi | |
17840 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17841 | fi |
ac1cb8d3 | 17842 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17843 | done |
17844 | else | |
17845 | echo "$as_me: failed program was:" >&5 | |
17846 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17847 | ||
17848 | cat >conftest.$ac_ext <<_ACEOF | |
17849 | /* confdefs.h. */ | |
17850 | _ACEOF | |
17851 | cat confdefs.h >>conftest.$ac_ext | |
17852 | cat >>conftest.$ac_ext <<_ACEOF | |
17853 | /* end confdefs.h. */ | |
17854 | $ac_includes_default | |
17855 | int | |
17856 | main () | |
17857 | { | |
17858 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
17859 | test_array [0] = 0 | |
17860 | ||
17861 | ; | |
17862 | return 0; | |
17863 | } | |
17864 | _ACEOF | |
17865 | rm -f conftest.$ac_objext | |
17866 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17867 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17868 | ac_status=$? |
ac1cb8d3 VS |
17869 | grep -v '^ *+' conftest.er1 >conftest.err |
17870 | rm -f conftest.er1 | |
17871 | cat conftest.err >&5 | |
a848cd7e SC |
17872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17873 | (exit $ac_status); } && | |
89be85c2 VS |
17874 | { ac_try='test -z "$ac_c_werror_flag" |
17875 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17877 | (eval $ac_try) 2>&5 | |
17878 | ac_status=$? | |
17879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17880 | (exit $ac_status); }; } && | |
17881 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17883 | (eval $ac_try) 2>&5 | |
17884 | ac_status=$? | |
17885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17886 | (exit $ac_status); }; }; then | |
17887 | ac_hi=-1 ac_mid=-1 | |
17888 | while :; do | |
17889 | cat >conftest.$ac_ext <<_ACEOF | |
17890 | /* confdefs.h. */ | |
17891 | _ACEOF | |
17892 | cat confdefs.h >>conftest.$ac_ext | |
17893 | cat >>conftest.$ac_ext <<_ACEOF | |
17894 | /* end confdefs.h. */ | |
17895 | $ac_includes_default | |
17896 | int | |
17897 | main () | |
17898 | { | |
17899 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
17900 | test_array [0] = 0 | |
17901 | ||
17902 | ; | |
17903 | return 0; | |
17904 | } | |
17905 | _ACEOF | |
17906 | rm -f conftest.$ac_objext | |
17907 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17908 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17909 | ac_status=$? |
ac1cb8d3 VS |
17910 | grep -v '^ *+' conftest.er1 >conftest.err |
17911 | rm -f conftest.er1 | |
17912 | cat conftest.err >&5 | |
a848cd7e SC |
17913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17914 | (exit $ac_status); } && | |
89be85c2 VS |
17915 | { ac_try='test -z "$ac_c_werror_flag" |
17916 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17918 | (eval $ac_try) 2>&5 | |
17919 | ac_status=$? | |
17920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17921 | (exit $ac_status); }; } && | |
17922 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17924 | (eval $ac_try) 2>&5 | |
17925 | ac_status=$? | |
17926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17927 | (exit $ac_status); }; }; then | |
17928 | ac_lo=$ac_mid; break | |
17929 | else | |
17930 | echo "$as_me: failed program was:" >&5 | |
17931 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17932 | ||
17933 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17934 | if test $ac_mid -le $ac_hi; then |
17935 | ac_lo= ac_hi= | |
17936 | break | |
17937 | fi | |
17938 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17939 | fi |
ac1cb8d3 | 17940 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17941 | done |
17942 | else | |
17943 | echo "$as_me: failed program was:" >&5 | |
17944 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17945 | ||
17946 | ac_lo= ac_hi= | |
17947 | fi | |
ac1cb8d3 | 17948 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17949 | fi |
ac1cb8d3 | 17950 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17951 | # Binary search between lo and hi bounds. |
17952 | while test "x$ac_lo" != "x$ac_hi"; do | |
17953 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17954 | cat >conftest.$ac_ext <<_ACEOF | |
17955 | /* confdefs.h. */ | |
17956 | _ACEOF | |
17957 | cat confdefs.h >>conftest.$ac_ext | |
17958 | cat >>conftest.$ac_ext <<_ACEOF | |
17959 | /* end confdefs.h. */ | |
17960 | $ac_includes_default | |
17961 | int | |
17962 | main () | |
17963 | { | |
17964 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17965 | test_array [0] = 0 | |
17966 | ||
17967 | ; | |
17968 | return 0; | |
17969 | } | |
17970 | _ACEOF | |
17971 | rm -f conftest.$ac_objext | |
17972 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17973 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17974 | ac_status=$? |
ac1cb8d3 VS |
17975 | grep -v '^ *+' conftest.er1 >conftest.err |
17976 | rm -f conftest.er1 | |
17977 | cat conftest.err >&5 | |
a848cd7e SC |
17978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17979 | (exit $ac_status); } && | |
89be85c2 VS |
17980 | { ac_try='test -z "$ac_c_werror_flag" |
17981 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17983 | (eval $ac_try) 2>&5 | |
17984 | ac_status=$? | |
17985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17986 | (exit $ac_status); }; } && | |
17987 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17989 | (eval $ac_try) 2>&5 | |
17990 | ac_status=$? | |
17991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17992 | (exit $ac_status); }; }; then | |
17993 | ac_hi=$ac_mid | |
17994 | else | |
17995 | echo "$as_me: failed program was:" >&5 | |
17996 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17997 | ||
17998 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17999 | fi | |
ac1cb8d3 | 18000 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18001 | done |
18002 | case $ac_lo in | |
18003 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
18004 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18005 | See \`config.log' for more details." >&5 | |
18006 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18007 | See \`config.log' for more details." >&2;} | |
18008 | { (exit 1); exit 1; }; } ;; | |
18009 | esac | |
18010 | else | |
18011 | if test "$cross_compiling" = yes; then | |
89be85c2 VS |
18012 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
18013 | See \`config.log' for more details." >&5 | |
18014 | echo "$as_me: error: cannot run test program while cross compiling | |
18015 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
18016 | { (exit 1); exit 1; }; } |
18017 | else | |
18018 | cat >conftest.$ac_ext <<_ACEOF | |
18019 | /* confdefs.h. */ | |
18020 | _ACEOF | |
18021 | cat confdefs.h >>conftest.$ac_ext | |
18022 | cat >>conftest.$ac_ext <<_ACEOF | |
18023 | /* end confdefs.h. */ | |
18024 | $ac_includes_default | |
18025 | long longval () { return (long) (sizeof (long long)); } | |
18026 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
18027 | #include <stdio.h> | |
18028 | #include <stdlib.h> | |
18029 | int | |
18030 | main () | |
18031 | { | |
18032 | ||
18033 | FILE *f = fopen ("conftest.val", "w"); | |
18034 | if (! f) | |
18035 | exit (1); | |
18036 | if (((long) (sizeof (long long))) < 0) | |
18037 | { | |
18038 | long i = longval (); | |
18039 | if (i != ((long) (sizeof (long long)))) | |
18040 | exit (1); | |
18041 | fprintf (f, "%ld\n", i); | |
18042 | } | |
18043 | else | |
18044 | { | |
18045 | unsigned long i = ulongval (); | |
18046 | if (i != ((long) (sizeof (long long)))) | |
18047 | exit (1); | |
18048 | fprintf (f, "%lu\n", i); | |
18049 | } | |
18050 | exit (ferror (f) || fclose (f) != 0); | |
18051 | ||
18052 | ; | |
18053 | return 0; | |
18054 | } | |
18055 | _ACEOF | |
18056 | rm -f conftest$ac_exeext | |
18057 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18058 | (eval $ac_link) 2>&5 | |
18059 | ac_status=$? | |
18060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18061 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18063 | (eval $ac_try) 2>&5 | |
18064 | ac_status=$? | |
18065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18066 | (exit $ac_status); }; }; then | |
18067 | ac_cv_sizeof_long_long=`cat conftest.val` | |
18068 | else | |
18069 | echo "$as_me: program exited with status $ac_status" >&5 | |
18070 | echo "$as_me: failed program was:" >&5 | |
18071 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18072 | ||
18073 | ( exit $ac_status ) | |
18074 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18075 | See \`config.log' for more details." >&5 | |
18076 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18077 | See \`config.log' for more details." >&2;} | |
18078 | { (exit 1); exit 1; }; } | |
18079 | fi | |
ac1cb8d3 | 18080 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18081 | fi |
18082 | fi | |
18083 | rm -f conftest.val | |
18084 | else | |
18085 | ac_cv_sizeof_long_long=0 | |
18086 | fi | |
18087 | fi | |
18088 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
18089 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
18090 | cat >>confdefs.h <<_ACEOF | |
18091 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
18092 | _ACEOF | |
18093 | ||
18094 | ||
18095 | ;; | |
18096 | *-hp-hpux* ) | |
18097 | echo "$as_me:$LINENO: checking for long long" >&5 | |
18098 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
18099 | if test "${ac_cv_type_long_long+set}" = set; then | |
18100 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18101 | else | |
18102 | cat >conftest.$ac_ext <<_ACEOF | |
18103 | /* confdefs.h. */ | |
18104 | _ACEOF | |
18105 | cat confdefs.h >>conftest.$ac_ext | |
18106 | cat >>conftest.$ac_ext <<_ACEOF | |
18107 | /* end confdefs.h. */ | |
18108 | $ac_includes_default | |
18109 | int | |
18110 | main () | |
18111 | { | |
18112 | if ((long long *) 0) | |
18113 | return 0; | |
18114 | if (sizeof (long long)) | |
18115 | return 0; | |
18116 | ; | |
18117 | return 0; | |
18118 | } | |
18119 | _ACEOF | |
18120 | rm -f conftest.$ac_objext | |
18121 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18122 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18123 | ac_status=$? |
ac1cb8d3 VS |
18124 | grep -v '^ *+' conftest.er1 >conftest.err |
18125 | rm -f conftest.er1 | |
18126 | cat conftest.err >&5 | |
a848cd7e SC |
18127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18128 | (exit $ac_status); } && | |
89be85c2 VS |
18129 | { ac_try='test -z "$ac_c_werror_flag" |
18130 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18132 | (eval $ac_try) 2>&5 | |
18133 | ac_status=$? | |
18134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18135 | (exit $ac_status); }; } && | |
18136 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18138 | (eval $ac_try) 2>&5 | |
18139 | ac_status=$? | |
18140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18141 | (exit $ac_status); }; }; then | |
18142 | ac_cv_type_long_long=yes | |
18143 | else | |
18144 | echo "$as_me: failed program was:" >&5 | |
18145 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18146 | ||
18147 | ac_cv_type_long_long=no | |
18148 | fi | |
ac1cb8d3 | 18149 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18150 | fi |
18151 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
18152 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
18153 | ||
18154 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
18155 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
18156 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
18157 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18158 | else | |
18159 | if test "$ac_cv_type_long_long" = yes; then | |
18160 | # The cast to unsigned long works around a bug in the HP C Compiler | |
18161 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
18162 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18163 | # This bug is HP SR number 8606223364. | |
18164 | if test "$cross_compiling" = yes; then | |
18165 | # Depending upon the size, compute the lo and hi bounds. | |
18166 | cat >conftest.$ac_ext <<_ACEOF | |
18167 | /* confdefs.h. */ | |
18168 | _ACEOF | |
18169 | cat confdefs.h >>conftest.$ac_ext | |
18170 | cat >>conftest.$ac_ext <<_ACEOF | |
18171 | /* end confdefs.h. */ | |
18172 | $ac_includes_default | |
18173 | int | |
18174 | main () | |
18175 | { | |
18176 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
18177 | test_array [0] = 0 | |
18178 | ||
18179 | ; | |
18180 | return 0; | |
18181 | } | |
18182 | _ACEOF | |
18183 | rm -f conftest.$ac_objext | |
18184 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18185 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18186 | ac_status=$? |
ac1cb8d3 VS |
18187 | grep -v '^ *+' conftest.er1 >conftest.err |
18188 | rm -f conftest.er1 | |
18189 | cat conftest.err >&5 | |
a848cd7e SC |
18190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18191 | (exit $ac_status); } && | |
89be85c2 VS |
18192 | { ac_try='test -z "$ac_c_werror_flag" |
18193 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18195 | (eval $ac_try) 2>&5 | |
18196 | ac_status=$? | |
18197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18198 | (exit $ac_status); }; } && | |
18199 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18201 | (eval $ac_try) 2>&5 | |
18202 | ac_status=$? | |
18203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18204 | (exit $ac_status); }; }; then | |
18205 | ac_lo=0 ac_mid=0 | |
18206 | while :; do | |
18207 | cat >conftest.$ac_ext <<_ACEOF | |
18208 | /* confdefs.h. */ | |
18209 | _ACEOF | |
18210 | cat confdefs.h >>conftest.$ac_ext | |
18211 | cat >>conftest.$ac_ext <<_ACEOF | |
18212 | /* end confdefs.h. */ | |
18213 | $ac_includes_default | |
18214 | int | |
18215 | main () | |
18216 | { | |
18217 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
18218 | test_array [0] = 0 | |
18219 | ||
18220 | ; | |
18221 | return 0; | |
18222 | } | |
18223 | _ACEOF | |
18224 | rm -f conftest.$ac_objext | |
18225 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18226 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18227 | ac_status=$? |
ac1cb8d3 VS |
18228 | grep -v '^ *+' conftest.er1 >conftest.err |
18229 | rm -f conftest.er1 | |
18230 | cat conftest.err >&5 | |
a848cd7e SC |
18231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18232 | (exit $ac_status); } && | |
89be85c2 VS |
18233 | { ac_try='test -z "$ac_c_werror_flag" |
18234 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18236 | (eval $ac_try) 2>&5 | |
18237 | ac_status=$? | |
18238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18239 | (exit $ac_status); }; } && | |
18240 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18242 | (eval $ac_try) 2>&5 | |
18243 | ac_status=$? | |
18244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18245 | (exit $ac_status); }; }; then | |
18246 | ac_hi=$ac_mid; break | |
18247 | else | |
18248 | echo "$as_me: failed program was:" >&5 | |
18249 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18250 | ||
18251 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
18252 | if test $ac_lo -le $ac_mid; then |
18253 | ac_lo= ac_hi= | |
18254 | break | |
18255 | fi | |
18256 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 18257 | fi |
ac1cb8d3 | 18258 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18259 | done |
18260 | else | |
18261 | echo "$as_me: failed program was:" >&5 | |
18262 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18263 | ||
18264 | cat >conftest.$ac_ext <<_ACEOF | |
18265 | /* confdefs.h. */ | |
18266 | _ACEOF | |
18267 | cat confdefs.h >>conftest.$ac_ext | |
18268 | cat >>conftest.$ac_ext <<_ACEOF | |
18269 | /* end confdefs.h. */ | |
18270 | $ac_includes_default | |
18271 | int | |
18272 | main () | |
18273 | { | |
18274 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
18275 | test_array [0] = 0 | |
18276 | ||
18277 | ; | |
18278 | return 0; | |
18279 | } | |
18280 | _ACEOF | |
18281 | rm -f conftest.$ac_objext | |
18282 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18283 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18284 | ac_status=$? |
ac1cb8d3 VS |
18285 | grep -v '^ *+' conftest.er1 >conftest.err |
18286 | rm -f conftest.er1 | |
18287 | cat conftest.err >&5 | |
a848cd7e SC |
18288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18289 | (exit $ac_status); } && | |
89be85c2 VS |
18290 | { ac_try='test -z "$ac_c_werror_flag" |
18291 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18293 | (eval $ac_try) 2>&5 | |
18294 | ac_status=$? | |
18295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18296 | (exit $ac_status); }; } && | |
18297 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18299 | (eval $ac_try) 2>&5 | |
18300 | ac_status=$? | |
18301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18302 | (exit $ac_status); }; }; then | |
18303 | ac_hi=-1 ac_mid=-1 | |
18304 | while :; do | |
18305 | cat >conftest.$ac_ext <<_ACEOF | |
18306 | /* confdefs.h. */ | |
18307 | _ACEOF | |
18308 | cat confdefs.h >>conftest.$ac_ext | |
18309 | cat >>conftest.$ac_ext <<_ACEOF | |
18310 | /* end confdefs.h. */ | |
18311 | $ac_includes_default | |
18312 | int | |
18313 | main () | |
18314 | { | |
18315 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
18316 | test_array [0] = 0 | |
18317 | ||
18318 | ; | |
18319 | return 0; | |
18320 | } | |
18321 | _ACEOF | |
18322 | rm -f conftest.$ac_objext | |
18323 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18324 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18325 | ac_status=$? |
ac1cb8d3 VS |
18326 | grep -v '^ *+' conftest.er1 >conftest.err |
18327 | rm -f conftest.er1 | |
18328 | cat conftest.err >&5 | |
a848cd7e SC |
18329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18330 | (exit $ac_status); } && | |
89be85c2 VS |
18331 | { ac_try='test -z "$ac_c_werror_flag" |
18332 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18334 | (eval $ac_try) 2>&5 | |
18335 | ac_status=$? | |
18336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18337 | (exit $ac_status); }; } && | |
18338 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18340 | (eval $ac_try) 2>&5 | |
18341 | ac_status=$? | |
18342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18343 | (exit $ac_status); }; }; then | |
18344 | ac_lo=$ac_mid; break | |
18345 | else | |
18346 | echo "$as_me: failed program was:" >&5 | |
18347 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18348 | ||
18349 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
18350 | if test $ac_mid -le $ac_hi; then |
18351 | ac_lo= ac_hi= | |
18352 | break | |
18353 | fi | |
18354 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 18355 | fi |
ac1cb8d3 | 18356 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18357 | done |
18358 | else | |
18359 | echo "$as_me: failed program was:" >&5 | |
18360 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18361 | ||
18362 | ac_lo= ac_hi= | |
18363 | fi | |
ac1cb8d3 | 18364 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18365 | fi |
ac1cb8d3 | 18366 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18367 | # Binary search between lo and hi bounds. |
18368 | while test "x$ac_lo" != "x$ac_hi"; do | |
18369 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18370 | cat >conftest.$ac_ext <<_ACEOF | |
18371 | /* confdefs.h. */ | |
18372 | _ACEOF | |
18373 | cat confdefs.h >>conftest.$ac_ext | |
18374 | cat >>conftest.$ac_ext <<_ACEOF | |
18375 | /* end confdefs.h. */ | |
18376 | $ac_includes_default | |
18377 | int | |
18378 | main () | |
18379 | { | |
18380 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
18381 | test_array [0] = 0 | |
18382 | ||
18383 | ; | |
18384 | return 0; | |
18385 | } | |
18386 | _ACEOF | |
18387 | rm -f conftest.$ac_objext | |
18388 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18389 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18390 | ac_status=$? |
ac1cb8d3 VS |
18391 | grep -v '^ *+' conftest.er1 >conftest.err |
18392 | rm -f conftest.er1 | |
18393 | cat conftest.err >&5 | |
a848cd7e SC |
18394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18395 | (exit $ac_status); } && | |
89be85c2 VS |
18396 | { ac_try='test -z "$ac_c_werror_flag" |
18397 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18399 | (eval $ac_try) 2>&5 | |
18400 | ac_status=$? | |
18401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18402 | (exit $ac_status); }; } && | |
18403 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18405 | (eval $ac_try) 2>&5 | |
18406 | ac_status=$? | |
18407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18408 | (exit $ac_status); }; }; then | |
18409 | ac_hi=$ac_mid | |
18410 | else | |
18411 | echo "$as_me: failed program was:" >&5 | |
18412 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18413 | ||
18414 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18415 | fi | |
ac1cb8d3 | 18416 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18417 | done |
18418 | case $ac_lo in | |
18419 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
18420 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18421 | See \`config.log' for more details." >&5 | |
18422 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18423 | See \`config.log' for more details." >&2;} | |
18424 | { (exit 1); exit 1; }; } ;; | |
18425 | esac | |
18426 | else | |
18427 | if test "$cross_compiling" = yes; then | |
89be85c2 VS |
18428 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
18429 | See \`config.log' for more details." >&5 | |
18430 | echo "$as_me: error: cannot run test program while cross compiling | |
18431 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
18432 | { (exit 1); exit 1; }; } |
18433 | else | |
18434 | cat >conftest.$ac_ext <<_ACEOF | |
18435 | /* confdefs.h. */ | |
18436 | _ACEOF | |
18437 | cat confdefs.h >>conftest.$ac_ext | |
18438 | cat >>conftest.$ac_ext <<_ACEOF | |
18439 | /* end confdefs.h. */ | |
18440 | $ac_includes_default | |
18441 | long longval () { return (long) (sizeof (long long)); } | |
18442 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
18443 | #include <stdio.h> | |
18444 | #include <stdlib.h> | |
18445 | int | |
18446 | main () | |
18447 | { | |
18448 | ||
18449 | FILE *f = fopen ("conftest.val", "w"); | |
18450 | if (! f) | |
18451 | exit (1); | |
18452 | if (((long) (sizeof (long long))) < 0) | |
18453 | { | |
18454 | long i = longval (); | |
18455 | if (i != ((long) (sizeof (long long)))) | |
18456 | exit (1); | |
18457 | fprintf (f, "%ld\n", i); | |
18458 | } | |
18459 | else | |
18460 | { | |
18461 | unsigned long i = ulongval (); | |
18462 | if (i != ((long) (sizeof (long long)))) | |
18463 | exit (1); | |
18464 | fprintf (f, "%lu\n", i); | |
18465 | } | |
18466 | exit (ferror (f) || fclose (f) != 0); | |
18467 | ||
18468 | ; | |
18469 | return 0; | |
18470 | } | |
18471 | _ACEOF | |
18472 | rm -f conftest$ac_exeext | |
18473 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18474 | (eval $ac_link) 2>&5 | |
18475 | ac_status=$? | |
18476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18477 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
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_cv_sizeof_long_long=`cat conftest.val` | |
18484 | else | |
18485 | echo "$as_me: program exited with status $ac_status" >&5 | |
18486 | echo "$as_me: failed program was:" >&5 | |
18487 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18488 | ||
18489 | ( exit $ac_status ) | |
18490 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18491 | See \`config.log' for more details." >&5 | |
18492 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18493 | See \`config.log' for more details." >&2;} | |
18494 | { (exit 1); exit 1; }; } | |
18495 | fi | |
ac1cb8d3 | 18496 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18497 | fi |
18498 | fi | |
18499 | rm -f conftest.val | |
18500 | else | |
18501 | ac_cv_sizeof_long_long=0 | |
18502 | fi | |
18503 | fi | |
18504 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
18505 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
18506 | cat >>confdefs.h <<_ACEOF | |
18507 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
18508 | _ACEOF | |
18509 | ||
18510 | ||
18511 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
18512 | CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG" | |
18513 | fi | |
18514 | ;; | |
18515 | * ) | |
18516 | echo "$as_me:$LINENO: checking for long long" >&5 | |
18517 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
18518 | if test "${ac_cv_type_long_long+set}" = set; then | |
18519 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18520 | else | |
18521 | cat >conftest.$ac_ext <<_ACEOF | |
18522 | /* confdefs.h. */ | |
18523 | _ACEOF | |
18524 | cat confdefs.h >>conftest.$ac_ext | |
18525 | cat >>conftest.$ac_ext <<_ACEOF | |
18526 | /* end confdefs.h. */ | |
18527 | $ac_includes_default | |
18528 | int | |
18529 | main () | |
18530 | { | |
18531 | if ((long long *) 0) | |
18532 | return 0; | |
18533 | if (sizeof (long long)) | |
18534 | return 0; | |
18535 | ; | |
18536 | return 0; | |
18537 | } | |
18538 | _ACEOF | |
18539 | rm -f conftest.$ac_objext | |
18540 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18541 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18542 | ac_status=$? |
ac1cb8d3 VS |
18543 | grep -v '^ *+' conftest.er1 >conftest.err |
18544 | rm -f conftest.er1 | |
18545 | cat conftest.err >&5 | |
a848cd7e SC |
18546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18547 | (exit $ac_status); } && | |
89be85c2 VS |
18548 | { ac_try='test -z "$ac_c_werror_flag" |
18549 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18551 | (eval $ac_try) 2>&5 | |
18552 | ac_status=$? | |
18553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18554 | (exit $ac_status); }; } && | |
18555 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18557 | (eval $ac_try) 2>&5 | |
18558 | ac_status=$? | |
18559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18560 | (exit $ac_status); }; }; then | |
18561 | ac_cv_type_long_long=yes | |
18562 | else | |
18563 | echo "$as_me: failed program was:" >&5 | |
18564 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18565 | ||
18566 | ac_cv_type_long_long=no | |
18567 | fi | |
ac1cb8d3 | 18568 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18569 | fi |
18570 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
18571 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
18572 | ||
18573 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
18574 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
18575 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
18576 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18577 | else | |
18578 | if test "$ac_cv_type_long_long" = yes; then | |
18579 | # The cast to unsigned long works around a bug in the HP C Compiler | |
18580 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
18581 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18582 | # This bug is HP SR number 8606223364. | |
18583 | if test "$cross_compiling" = yes; then | |
18584 | # Depending upon the size, compute the lo and hi bounds. | |
18585 | cat >conftest.$ac_ext <<_ACEOF | |
18586 | /* confdefs.h. */ | |
18587 | _ACEOF | |
18588 | cat confdefs.h >>conftest.$ac_ext | |
18589 | cat >>conftest.$ac_ext <<_ACEOF | |
18590 | /* end confdefs.h. */ | |
18591 | $ac_includes_default | |
18592 | int | |
18593 | main () | |
18594 | { | |
18595 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
18596 | test_array [0] = 0 | |
18597 | ||
18598 | ; | |
18599 | return 0; | |
18600 | } | |
18601 | _ACEOF | |
18602 | rm -f conftest.$ac_objext | |
18603 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18604 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18605 | ac_status=$? |
ac1cb8d3 VS |
18606 | grep -v '^ *+' conftest.er1 >conftest.err |
18607 | rm -f conftest.er1 | |
18608 | cat conftest.err >&5 | |
a848cd7e SC |
18609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18610 | (exit $ac_status); } && | |
89be85c2 VS |
18611 | { ac_try='test -z "$ac_c_werror_flag" |
18612 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18614 | (eval $ac_try) 2>&5 | |
18615 | ac_status=$? | |
18616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18617 | (exit $ac_status); }; } && | |
18618 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18620 | (eval $ac_try) 2>&5 | |
18621 | ac_status=$? | |
18622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18623 | (exit $ac_status); }; }; then | |
18624 | ac_lo=0 ac_mid=0 | |
18625 | while :; do | |
18626 | cat >conftest.$ac_ext <<_ACEOF | |
18627 | /* confdefs.h. */ | |
18628 | _ACEOF | |
18629 | cat confdefs.h >>conftest.$ac_ext | |
18630 | cat >>conftest.$ac_ext <<_ACEOF | |
18631 | /* end confdefs.h. */ | |
18632 | $ac_includes_default | |
18633 | int | |
18634 | main () | |
18635 | { | |
18636 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
18637 | test_array [0] = 0 | |
18638 | ||
18639 | ; | |
18640 | return 0; | |
18641 | } | |
18642 | _ACEOF | |
18643 | rm -f conftest.$ac_objext | |
18644 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18645 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18646 | ac_status=$? |
ac1cb8d3 VS |
18647 | grep -v '^ *+' conftest.er1 >conftest.err |
18648 | rm -f conftest.er1 | |
18649 | cat conftest.err >&5 | |
a848cd7e SC |
18650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18651 | (exit $ac_status); } && | |
89be85c2 VS |
18652 | { ac_try='test -z "$ac_c_werror_flag" |
18653 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
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); }; } && | |
18659 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18661 | (eval $ac_try) 2>&5 | |
18662 | ac_status=$? | |
18663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18664 | (exit $ac_status); }; }; then | |
18665 | ac_hi=$ac_mid; break | |
18666 | else | |
18667 | echo "$as_me: failed program was:" >&5 | |
18668 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18669 | ||
18670 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
18671 | if test $ac_lo -le $ac_mid; then |
18672 | ac_lo= ac_hi= | |
18673 | break | |
18674 | fi | |
18675 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 18676 | fi |
ac1cb8d3 | 18677 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18678 | done |
18679 | else | |
18680 | echo "$as_me: failed program was:" >&5 | |
18681 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18682 | ||
18683 | cat >conftest.$ac_ext <<_ACEOF | |
18684 | /* confdefs.h. */ | |
18685 | _ACEOF | |
18686 | cat confdefs.h >>conftest.$ac_ext | |
18687 | cat >>conftest.$ac_ext <<_ACEOF | |
18688 | /* end confdefs.h. */ | |
18689 | $ac_includes_default | |
18690 | int | |
18691 | main () | |
18692 | { | |
18693 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
18694 | test_array [0] = 0 | |
18695 | ||
18696 | ; | |
18697 | return 0; | |
18698 | } | |
18699 | _ACEOF | |
18700 | rm -f conftest.$ac_objext | |
18701 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18702 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18703 | ac_status=$? |
ac1cb8d3 VS |
18704 | grep -v '^ *+' conftest.er1 >conftest.err |
18705 | rm -f conftest.er1 | |
18706 | cat conftest.err >&5 | |
a848cd7e SC |
18707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18708 | (exit $ac_status); } && | |
89be85c2 VS |
18709 | { ac_try='test -z "$ac_c_werror_flag" |
18710 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18712 | (eval $ac_try) 2>&5 | |
18713 | ac_status=$? | |
18714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18715 | (exit $ac_status); }; } && | |
18716 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18718 | (eval $ac_try) 2>&5 | |
18719 | ac_status=$? | |
18720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18721 | (exit $ac_status); }; }; then | |
18722 | ac_hi=-1 ac_mid=-1 | |
18723 | while :; do | |
18724 | cat >conftest.$ac_ext <<_ACEOF | |
18725 | /* confdefs.h. */ | |
18726 | _ACEOF | |
18727 | cat confdefs.h >>conftest.$ac_ext | |
18728 | cat >>conftest.$ac_ext <<_ACEOF | |
18729 | /* end confdefs.h. */ | |
18730 | $ac_includes_default | |
18731 | int | |
18732 | main () | |
18733 | { | |
18734 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
18735 | test_array [0] = 0 | |
18736 | ||
18737 | ; | |
18738 | return 0; | |
18739 | } | |
18740 | _ACEOF | |
18741 | rm -f conftest.$ac_objext | |
18742 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18743 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18744 | ac_status=$? |
ac1cb8d3 VS |
18745 | grep -v '^ *+' conftest.er1 >conftest.err |
18746 | rm -f conftest.er1 | |
18747 | cat conftest.err >&5 | |
a848cd7e SC |
18748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18749 | (exit $ac_status); } && | |
89be85c2 VS |
18750 | { ac_try='test -z "$ac_c_werror_flag" |
18751 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18753 | (eval $ac_try) 2>&5 | |
18754 | ac_status=$? | |
18755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18756 | (exit $ac_status); }; } && | |
18757 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18759 | (eval $ac_try) 2>&5 | |
18760 | ac_status=$? | |
18761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18762 | (exit $ac_status); }; }; then | |
18763 | ac_lo=$ac_mid; break | |
18764 | else | |
18765 | echo "$as_me: failed program was:" >&5 | |
18766 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18767 | ||
18768 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
18769 | if test $ac_mid -le $ac_hi; then |
18770 | ac_lo= ac_hi= | |
18771 | break | |
18772 | fi | |
18773 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 18774 | fi |
ac1cb8d3 | 18775 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18776 | done |
18777 | else | |
18778 | echo "$as_me: failed program was:" >&5 | |
18779 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18780 | ||
18781 | ac_lo= ac_hi= | |
18782 | fi | |
ac1cb8d3 | 18783 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18784 | fi |
ac1cb8d3 | 18785 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18786 | # Binary search between lo and hi bounds. |
18787 | while test "x$ac_lo" != "x$ac_hi"; do | |
18788 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18789 | cat >conftest.$ac_ext <<_ACEOF | |
18790 | /* confdefs.h. */ | |
18791 | _ACEOF | |
18792 | cat confdefs.h >>conftest.$ac_ext | |
18793 | cat >>conftest.$ac_ext <<_ACEOF | |
18794 | /* end confdefs.h. */ | |
18795 | $ac_includes_default | |
18796 | int | |
18797 | main () | |
18798 | { | |
18799 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
18800 | test_array [0] = 0 | |
18801 | ||
18802 | ; | |
18803 | return 0; | |
18804 | } | |
18805 | _ACEOF | |
18806 | rm -f conftest.$ac_objext | |
18807 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18808 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18809 | ac_status=$? |
ac1cb8d3 VS |
18810 | grep -v '^ *+' conftest.er1 >conftest.err |
18811 | rm -f conftest.er1 | |
18812 | cat conftest.err >&5 | |
a848cd7e SC |
18813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18814 | (exit $ac_status); } && | |
89be85c2 VS |
18815 | { ac_try='test -z "$ac_c_werror_flag" |
18816 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18818 | (eval $ac_try) 2>&5 | |
18819 | ac_status=$? | |
18820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18821 | (exit $ac_status); }; } && | |
18822 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18824 | (eval $ac_try) 2>&5 | |
18825 | ac_status=$? | |
18826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18827 | (exit $ac_status); }; }; then | |
18828 | ac_hi=$ac_mid | |
18829 | else | |
18830 | echo "$as_me: failed program was:" >&5 | |
18831 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18832 | ||
18833 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18834 | fi | |
ac1cb8d3 | 18835 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18836 | done |
18837 | case $ac_lo in | |
18838 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
18839 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18840 | See \`config.log' for more details." >&5 | |
18841 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18842 | See \`config.log' for more details." >&2;} | |
18843 | { (exit 1); exit 1; }; } ;; | |
18844 | esac | |
18845 | else | |
18846 | if test "$cross_compiling" = yes; then | |
89be85c2 VS |
18847 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
18848 | See \`config.log' for more details." >&5 | |
18849 | echo "$as_me: error: cannot run test program while cross compiling | |
18850 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
18851 | { (exit 1); exit 1; }; } |
18852 | else | |
18853 | cat >conftest.$ac_ext <<_ACEOF | |
18854 | /* confdefs.h. */ | |
18855 | _ACEOF | |
18856 | cat confdefs.h >>conftest.$ac_ext | |
18857 | cat >>conftest.$ac_ext <<_ACEOF | |
18858 | /* end confdefs.h. */ | |
18859 | $ac_includes_default | |
18860 | long longval () { return (long) (sizeof (long long)); } | |
18861 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
18862 | #include <stdio.h> | |
18863 | #include <stdlib.h> | |
18864 | int | |
18865 | main () | |
18866 | { | |
18867 | ||
18868 | FILE *f = fopen ("conftest.val", "w"); | |
18869 | if (! f) | |
18870 | exit (1); | |
18871 | if (((long) (sizeof (long long))) < 0) | |
18872 | { | |
18873 | long i = longval (); | |
18874 | if (i != ((long) (sizeof (long long)))) | |
18875 | exit (1); | |
18876 | fprintf (f, "%ld\n", i); | |
18877 | } | |
18878 | else | |
18879 | { | |
18880 | unsigned long i = ulongval (); | |
18881 | if (i != ((long) (sizeof (long long)))) | |
18882 | exit (1); | |
18883 | fprintf (f, "%lu\n", i); | |
18884 | } | |
18885 | exit (ferror (f) || fclose (f) != 0); | |
18886 | ||
18887 | ; | |
18888 | return 0; | |
18889 | } | |
18890 | _ACEOF | |
18891 | rm -f conftest$ac_exeext | |
18892 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18893 | (eval $ac_link) 2>&5 | |
18894 | ac_status=$? | |
18895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18896 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18898 | (eval $ac_try) 2>&5 | |
18899 | ac_status=$? | |
18900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18901 | (exit $ac_status); }; }; then | |
18902 | ac_cv_sizeof_long_long=`cat conftest.val` | |
18903 | else | |
18904 | echo "$as_me: program exited with status $ac_status" >&5 | |
18905 | echo "$as_me: failed program was:" >&5 | |
18906 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18907 | ||
18908 | ( exit $ac_status ) | |
18909 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18910 | See \`config.log' for more details." >&5 | |
18911 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18912 | See \`config.log' for more details." >&2;} | |
18913 | { (exit 1); exit 1; }; } | |
18914 | fi | |
ac1cb8d3 | 18915 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18916 | fi |
18917 | fi | |
18918 | rm -f conftest.val | |
18919 | else | |
18920 | ac_cv_sizeof_long_long=0 | |
18921 | fi | |
18922 | fi | |
18923 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
18924 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
18925 | cat >>confdefs.h <<_ACEOF | |
18926 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
18927 | _ACEOF | |
18928 | ||
18929 | ||
18930 | esac | |
18931 | ||
18932 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 | |
18933 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 | |
18934 | if test "${wx_cv_sizeof_wchar_t+set}" = set; then | |
18935 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18936 | else | |
18937 | ||
18938 | if test "$cross_compiling" = yes; then | |
18939 | ||
18940 | case "${host}" in | |
18941 | *-pc-msdosdjgpp ) | |
18942 | wx_cv_sizeof_wchar_t=0 | |
18943 | ;; | |
18944 | * ) | |
18945 | wx_cv_sizeof_wchar_t=4 | |
18946 | ;; | |
18947 | esac | |
18948 | ||
18949 | ||
18950 | else | |
18951 | cat >conftest.$ac_ext <<_ACEOF | |
18952 | /* confdefs.h. */ | |
18953 | _ACEOF | |
18954 | cat confdefs.h >>conftest.$ac_ext | |
18955 | cat >>conftest.$ac_ext <<_ACEOF | |
18956 | /* end confdefs.h. */ | |
18957 | ||
18958 | /* DJGPP only has fake wchar_t: */ | |
18959 | #ifdef __DJGPP__ | |
18960 | # error "fake wchar_t" | |
18961 | #endif | |
18962 | #ifdef HAVE_WCHAR_H | |
18963 | # ifdef __CYGWIN__ | |
18964 | # include <stddef.h> | |
18965 | # endif | |
18966 | # include <wchar.h> | |
18967 | #endif | |
18968 | #ifdef HAVE_STDLIB_H | |
18969 | # include <stdlib.h> | |
18970 | #endif | |
18971 | #include <stdio.h> | |
18972 | int main() | |
18973 | { | |
18974 | FILE *f=fopen("conftestval", "w"); | |
18975 | if (!f) exit(1); | |
18976 | fprintf(f, "%i", sizeof(wchar_t)); | |
18977 | exit(0); | |
18978 | } | |
18979 | ||
18980 | _ACEOF | |
18981 | rm -f conftest$ac_exeext | |
18982 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18983 | (eval $ac_link) 2>&5 | |
18984 | ac_status=$? | |
18985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18986 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18988 | (eval $ac_try) 2>&5 | |
18989 | ac_status=$? | |
18990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18991 | (exit $ac_status); }; }; then | |
18992 | wx_cv_sizeof_wchar_t=`cat conftestval` | |
18993 | else | |
18994 | echo "$as_me: program exited with status $ac_status" >&5 | |
18995 | echo "$as_me: failed program was:" >&5 | |
18996 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18997 | ||
18998 | ( exit $ac_status ) | |
18999 | wx_cv_sizeof_wchar_t=0 | |
19000 | fi | |
ac1cb8d3 | 19001 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19002 | fi |
19003 | ||
19004 | fi | |
19005 | echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5 | |
19006 | echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6 | |
19007 | ||
19008 | cat >>confdefs.h <<_ACEOF | |
19009 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t | |
19010 | _ACEOF | |
19011 | ||
19012 | ||
ba3d13e1 VZ |
19013 | echo "$as_me:$LINENO: checking for va_copy" >&5 |
19014 | echo $ECHO_N "checking for va_copy... $ECHO_C" >&6 | |
19015 | if test "${wx_cv_func_va_copy+set}" = set; then | |
19016 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19017 | else | |
19018 | ||
19019 | cat >conftest.$ac_ext <<_ACEOF | |
19020 | ||
19021 | #include <stdarg.h> | |
19022 | void foo(char *f, ...) | |
19023 | { | |
19024 | va_list ap1, ap2; | |
19025 | va_start(ap1, f); | |
19026 | va_copy(ap2, ap1); | |
19027 | va_end(ap2); | |
19028 | va_end(ap1); | |
19029 | } | |
5886b072 VZ |
19030 | int main() |
19031 | { | |
b902e639 VZ |
19032 | foo("hi", 17); |
19033 | return 0; | |
5886b072 | 19034 | } |
ba3d13e1 VZ |
19035 | _ACEOF |
19036 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19037 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19038 | (eval $ac_link) 2>conftest.er1 | |
19039 | ac_status=$? | |
19040 | grep -v '^ *+' conftest.er1 >conftest.err | |
19041 | rm -f conftest.er1 | |
19042 | cat conftest.err >&5 | |
19043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19044 | (exit $ac_status); } && | |
89be85c2 VS |
19045 | { ac_try='test -z "$ac_c_werror_flag" |
19046 | || test ! -s conftest.err' | |
ba3d13e1 VZ |
19047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19048 | (eval $ac_try) 2>&5 | |
19049 | ac_status=$? | |
19050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19051 | (exit $ac_status); }; } && | |
19052 | { ac_try='test -s conftest$ac_exeext' | |
19053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19054 | (eval $ac_try) 2>&5 | |
19055 | ac_status=$? | |
19056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19057 | (exit $ac_status); }; }; then | |
19058 | wx_cv_func_va_copy=yes | |
19059 | else | |
19060 | echo "$as_me: failed program was:" >&5 | |
19061 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19062 | ||
19063 | wx_cv_func_va_copy=no | |
19064 | ||
19065 | fi | |
19066 | rm -f conftest.err conftest.$ac_objext \ | |
19067 | conftest$ac_exeext conftest.$ac_ext | |
19068 | ||
19069 | ||
19070 | fi | |
19071 | echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5 | |
19072 | echo "${ECHO_T}$wx_cv_func_va_copy" >&6 | |
19073 | ||
19074 | if test $wx_cv_func_va_copy = "yes"; then | |
19075 | cat >>confdefs.h <<\_ACEOF | |
19076 | #define HAVE_VA_COPY 1 | |
19077 | _ACEOF | |
19078 | ||
19079 | else | |
19080 | echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5 | |
19081 | echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6 | |
19082 | if test "${wx_cv_type_va_list_lvalue+set}" = set; then | |
19083 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19084 | else | |
19085 | ||
19086 | if test "$cross_compiling" = yes; then | |
19087 | wx_cv_type_va_list_lvalue=yes | |
19088 | ||
19089 | else | |
19090 | cat >conftest.$ac_ext <<_ACEOF | |
19091 | ||
19092 | #include <stdarg.h> | |
19093 | int foo(char *f, ...) | |
19094 | { | |
19095 | va_list ap1, ap2; | |
19096 | va_start(ap1, f); | |
19097 | ap2 = ap1; | |
19098 | if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 ) | |
19099 | return 1; | |
19100 | va_end(ap2); | |
19101 | va_end(ap1); | |
19102 | return 0; | |
19103 | } | |
19104 | int main() | |
19105 | { | |
19106 | return foo("hi", 17); | |
19107 | } | |
19108 | _ACEOF | |
19109 | rm -f conftest$ac_exeext | |
19110 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19111 | (eval $ac_link) 2>&5 | |
19112 | ac_status=$? | |
19113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19114 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19116 | (eval $ac_try) 2>&5 | |
19117 | ac_status=$? | |
19118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19119 | (exit $ac_status); }; }; then | |
19120 | wx_cv_type_va_list_lvalue=yes | |
19121 | else | |
19122 | echo "$as_me: program exited with status $ac_status" >&5 | |
19123 | echo "$as_me: failed program was:" >&5 | |
19124 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19125 | ||
19126 | ( exit $ac_status ) | |
19127 | wx_cv_type_va_list_lvalue=no | |
19128 | fi | |
19129 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
19130 | fi | |
19131 | ||
19132 | ||
19133 | fi | |
19134 | echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5 | |
19135 | echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6 | |
19136 | ||
19137 | if test $wx_cv_type_va_list_lvalue != "yes"; then | |
19138 | cat >>confdefs.h <<\_ACEOF | |
19139 | #define VA_LIST_IS_ARRAY 1 | |
19140 | _ACEOF | |
19141 | ||
19142 | fi | |
19143 | fi | |
19144 | ||
a848cd7e SC |
19145 | # Check whether --enable-largefile or --disable-largefile was given. |
19146 | if test "${enable_largefile+set}" = set; then | |
19147 | enableval="$enable_largefile" | |
19148 | ||
19149 | fi; | |
19150 | if test "$enable_largefile" != no; then | |
19151 | wx_largefile=no | |
19152 | ||
19153 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
19154 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
19155 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
19156 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19157 | else | |
19158 | ||
19159 | cat >conftest.$ac_ext <<_ACEOF | |
19160 | /* confdefs.h. */ | |
19161 | _ACEOF | |
19162 | cat confdefs.h >>conftest.$ac_ext | |
19163 | cat >>conftest.$ac_ext <<_ACEOF | |
19164 | /* end confdefs.h. */ | |
19165 | #define _FILE_OFFSET_BITS 64 | |
19166 | #include <sys/types.h> | |
19167 | int | |
19168 | main () | |
19169 | { | |
19170 | typedef struct { | |
19171 | unsigned int field: sizeof(off_t) == 8; | |
19172 | } wxlf; | |
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); } && | |
89be85c2 VS |
19187 | { ac_try='test -z "$ac_c_werror_flag" |
19188 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19190 | (eval $ac_try) 2>&5 | |
19191 | ac_status=$? | |
19192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19193 | (exit $ac_status); }; } && | |
19194 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19196 | (eval $ac_try) 2>&5 | |
19197 | ac_status=$? | |
19198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19199 | (exit $ac_status); }; }; then | |
19200 | ac_cv_sys_file_offset_bits=64 | |
19201 | else | |
19202 | echo "$as_me: failed program was:" >&5 | |
19203 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19204 | ||
19205 | ac_cv_sys_file_offset_bits=no | |
19206 | fi | |
ac1cb8d3 | 19207 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19208 | |
19209 | ||
19210 | fi | |
19211 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
19212 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
19213 | ||
19214 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
19215 | wx_largefile=yes | |
19216 | cat >>confdefs.h <<_ACEOF | |
19217 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
19218 | _ACEOF | |
19219 | ||
19220 | fi | |
19221 | ||
19222 | if test "x$wx_largefile" != "xyes"; then | |
19223 | ||
19224 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
19225 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
19226 | if test "${ac_cv_sys_large_files+set}" = set; then | |
19227 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19228 | else | |
19229 | ||
19230 | cat >conftest.$ac_ext <<_ACEOF | |
19231 | /* confdefs.h. */ | |
19232 | _ACEOF | |
19233 | cat confdefs.h >>conftest.$ac_ext | |
19234 | cat >>conftest.$ac_ext <<_ACEOF | |
19235 | /* end confdefs.h. */ | |
19236 | #define _LARGE_FILES 1 | |
19237 | #include <sys/types.h> | |
19238 | int | |
19239 | main () | |
19240 | { | |
19241 | typedef struct { | |
19242 | unsigned int field: sizeof(off_t) == 8; | |
19243 | } wxlf; | |
19244 | ||
19245 | ; | |
19246 | return 0; | |
19247 | } | |
19248 | _ACEOF | |
19249 | rm -f conftest.$ac_objext | |
19250 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19251 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19252 | ac_status=$? |
ac1cb8d3 VS |
19253 | grep -v '^ *+' conftest.er1 >conftest.err |
19254 | rm -f conftest.er1 | |
19255 | cat conftest.err >&5 | |
a848cd7e SC |
19256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19257 | (exit $ac_status); } && | |
89be85c2 VS |
19258 | { ac_try='test -z "$ac_c_werror_flag" |
19259 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19261 | (eval $ac_try) 2>&5 | |
19262 | ac_status=$? | |
19263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19264 | (exit $ac_status); }; } && | |
19265 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19267 | (eval $ac_try) 2>&5 | |
19268 | ac_status=$? | |
19269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19270 | (exit $ac_status); }; }; then | |
19271 | ac_cv_sys_large_files=1 | |
19272 | else | |
19273 | echo "$as_me: failed program was:" >&5 | |
19274 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19275 | ||
19276 | ac_cv_sys_large_files=no | |
19277 | fi | |
ac1cb8d3 | 19278 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19279 | |
19280 | ||
19281 | fi | |
19282 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
19283 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
19284 | ||
19285 | if test "$ac_cv_sys_large_files" != no; then | |
19286 | wx_largefile=yes | |
19287 | cat >>confdefs.h <<_ACEOF | |
19288 | #define _LARGE_FILES $ac_cv_sys_large_files | |
19289 | _ACEOF | |
19290 | ||
19291 | fi | |
19292 | ||
19293 | fi | |
19294 | ||
19295 | echo "$as_me:$LINENO: checking if large file support is available" >&5 | |
19296 | echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6 | |
19297 | if test "x$wx_largefile" = "xyes"; then | |
19298 | cat >>confdefs.h <<\_ACEOF | |
19299 | #define HAVE_LARGEFILE_SUPPORT 1 | |
19300 | _ACEOF | |
19301 | ||
19302 | fi | |
19303 | echo "$as_me:$LINENO: result: $wx_largefile" >&5 | |
19304 | echo "${ECHO_T}$wx_largefile" >&6 | |
19305 | fi | |
19306 | ||
5b674b9d DE |
19307 | |
19308 | if test "x$wx_largefile" = "xyes"; then | |
19309 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then | |
19310 | WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" | |
19311 | else | |
19312 | WX_LARGEFILE_FLAGS="-D_LARGE_FILES" | |
19313 | fi | |
19314 | echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 | |
5294a27e VZ |
19315 | echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6 |
19316 | if test "${ac_cv_sys_largefile_source+set}" = set; then | |
19317 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19318 | else | |
19319 | while :; do | |
19320 | ac_cv_sys_largefile_source=no | |
19321 | cat >conftest.$ac_ext <<_ACEOF | |
19322 | /* confdefs.h. */ | |
19323 | _ACEOF | |
19324 | cat confdefs.h >>conftest.$ac_ext | |
19325 | cat >>conftest.$ac_ext <<_ACEOF | |
19326 | /* end confdefs.h. */ | |
19327 | #include <stdio.h> | |
19328 | int | |
19329 | main () | |
19330 | { | |
19331 | return !fseeko; | |
19332 | ; | |
19333 | return 0; | |
19334 | } | |
19335 | _ACEOF | |
19336 | rm -f conftest.$ac_objext | |
19337 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19338 | (eval $ac_compile) 2>conftest.er1 | |
19339 | ac_status=$? | |
19340 | grep -v '^ *+' conftest.er1 >conftest.err | |
19341 | rm -f conftest.er1 | |
19342 | cat conftest.err >&5 | |
19343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19344 | (exit $ac_status); } && | |
89be85c2 VS |
19345 | { ac_try='test -z "$ac_c_werror_flag" |
19346 | || test ! -s conftest.err' | |
5294a27e VZ |
19347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19348 | (eval $ac_try) 2>&5 | |
19349 | ac_status=$? | |
19350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19351 | (exit $ac_status); }; } && | |
19352 | { ac_try='test -s conftest.$ac_objext' | |
19353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19354 | (eval $ac_try) 2>&5 | |
19355 | ac_status=$? | |
19356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19357 | (exit $ac_status); }; }; then | |
19358 | break | |
19359 | else | |
19360 | echo "$as_me: failed program was:" >&5 | |
19361 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19362 | ||
19363 | fi | |
19364 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19365 | cat >conftest.$ac_ext <<_ACEOF | |
19366 | /* confdefs.h. */ | |
19367 | _ACEOF | |
19368 | cat confdefs.h >>conftest.$ac_ext | |
19369 | cat >>conftest.$ac_ext <<_ACEOF | |
19370 | /* end confdefs.h. */ | |
19371 | #define _LARGEFILE_SOURCE 1 | |
19372 | #include <stdio.h> | |
19373 | int | |
19374 | main () | |
19375 | { | |
19376 | return !fseeko; | |
19377 | ; | |
19378 | return 0; | |
19379 | } | |
19380 | _ACEOF | |
19381 | rm -f conftest.$ac_objext | |
19382 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19383 | (eval $ac_compile) 2>conftest.er1 | |
19384 | ac_status=$? | |
19385 | grep -v '^ *+' conftest.er1 >conftest.err | |
19386 | rm -f conftest.er1 | |
19387 | cat conftest.err >&5 | |
19388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19389 | (exit $ac_status); } && | |
89be85c2 VS |
19390 | { ac_try='test -z "$ac_c_werror_flag" |
19391 | || test ! -s conftest.err' | |
5294a27e VZ |
19392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19393 | (eval $ac_try) 2>&5 | |
19394 | ac_status=$? | |
19395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19396 | (exit $ac_status); }; } && | |
19397 | { ac_try='test -s conftest.$ac_objext' | |
19398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19399 | (eval $ac_try) 2>&5 | |
19400 | ac_status=$? | |
19401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19402 | (exit $ac_status); }; }; then | |
19403 | ac_cv_sys_largefile_source=1; break | |
19404 | else | |
19405 | echo "$as_me: failed program was:" >&5 | |
19406 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19407 | ||
19408 | fi | |
19409 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19410 | break | |
19411 | done | |
19412 | fi | |
19413 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 | |
19414 | echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6 | |
19415 | if test "$ac_cv_sys_largefile_source" != no; then | |
19416 | ||
19417 | cat >>confdefs.h <<_ACEOF | |
19418 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source | |
19419 | _ACEOF | |
19420 | ||
19421 | fi | |
19422 | rm -f conftest* | |
19423 | ||
19424 | # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug | |
19425 | # in glibc 2.1.3, but that breaks too many other things. | |
19426 | # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. | |
19427 | echo "$as_me:$LINENO: checking for fseeko" >&5 | |
19428 | echo $ECHO_N "checking for fseeko... $ECHO_C" >&6 | |
19429 | if test "${ac_cv_func_fseeko+set}" = set; then | |
19430 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19431 | else | |
19432 | cat >conftest.$ac_ext <<_ACEOF | |
19433 | /* confdefs.h. */ | |
19434 | _ACEOF | |
19435 | cat confdefs.h >>conftest.$ac_ext | |
19436 | cat >>conftest.$ac_ext <<_ACEOF | |
19437 | /* end confdefs.h. */ | |
19438 | #include <stdio.h> | |
19439 | int | |
19440 | main () | |
19441 | { | |
19442 | return fseeko && fseeko (stdin, 0, 0); | |
19443 | ; | |
19444 | return 0; | |
19445 | } | |
19446 | _ACEOF | |
19447 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19448 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19449 | (eval $ac_link) 2>conftest.er1 | |
19450 | ac_status=$? | |
19451 | grep -v '^ *+' conftest.er1 >conftest.err | |
19452 | rm -f conftest.er1 | |
19453 | cat conftest.err >&5 | |
19454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19455 | (exit $ac_status); } && | |
89be85c2 VS |
19456 | { ac_try='test -z "$ac_c_werror_flag" |
19457 | || test ! -s conftest.err' | |
5294a27e VZ |
19458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19459 | (eval $ac_try) 2>&5 | |
19460 | ac_status=$? | |
19461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19462 | (exit $ac_status); }; } && | |
19463 | { ac_try='test -s conftest$ac_exeext' | |
19464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19465 | (eval $ac_try) 2>&5 | |
19466 | ac_status=$? | |
19467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19468 | (exit $ac_status); }; }; then | |
19469 | ac_cv_func_fseeko=yes | |
19470 | else | |
19471 | echo "$as_me: failed program was:" >&5 | |
19472 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19473 | ||
19474 | ac_cv_func_fseeko=no | |
19475 | fi | |
19476 | rm -f conftest.err conftest.$ac_objext \ | |
19477 | conftest$ac_exeext conftest.$ac_ext | |
19478 | fi | |
19479 | echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5 | |
19480 | echo "${ECHO_T}$ac_cv_func_fseeko" >&6 | |
19481 | if test $ac_cv_func_fseeko = yes; then | |
19482 | ||
19483 | cat >>confdefs.h <<\_ACEOF | |
19484 | #define HAVE_FSEEKO 1 | |
19485 | _ACEOF | |
19486 | ||
19487 | fi | |
19488 | ||
5b674b9d DE |
19489 | if test "$ac_cv_sys_largefile_source" != no; then |
19490 | WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source" | |
a848cd7e SC |
19491 | fi |
19492 | CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS" | |
19493 | fi | |
19494 | ||
19495 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | |
19496 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
19497 | if test "${ac_cv_c_bigendian+set}" = set; then | |
19498 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19499 | else | |
19500 | ac_cv_c_bigendian=unknown | |
19501 | # See if sys/param.h defines the BYTE_ORDER macro. | |
19502 | cat >conftest.$ac_ext <<_ACEOF | |
19503 | /* confdefs.h. */ | |
19504 | _ACEOF | |
19505 | cat confdefs.h >>conftest.$ac_ext | |
19506 | cat >>conftest.$ac_ext <<_ACEOF | |
19507 | /* end confdefs.h. */ | |
19508 | #include <sys/types.h> | |
19509 | #include <sys/param.h> | |
19510 | int | |
19511 | main () | |
19512 | { | |
19513 | ||
19514 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
19515 | bogus endian macros | |
19516 | #endif | |
19517 | ; | |
19518 | return 0; | |
19519 | } | |
19520 | _ACEOF | |
19521 | rm -f conftest.$ac_objext | |
19522 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19523 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19524 | ac_status=$? |
ac1cb8d3 VS |
19525 | grep -v '^ *+' conftest.er1 >conftest.err |
19526 | rm -f conftest.er1 | |
19527 | cat conftest.err >&5 | |
a848cd7e SC |
19528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19529 | (exit $ac_status); } && | |
89be85c2 VS |
19530 | { ac_try='test -z "$ac_c_werror_flag" |
19531 | || 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 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
19544 | cat >conftest.$ac_ext <<_ACEOF | |
19545 | /* confdefs.h. */ | |
19546 | _ACEOF | |
19547 | cat confdefs.h >>conftest.$ac_ext | |
19548 | cat >>conftest.$ac_ext <<_ACEOF | |
19549 | /* end confdefs.h. */ | |
19550 | #include <sys/types.h> | |
19551 | #include <sys/param.h> | |
19552 | int | |
19553 | main () | |
19554 | { | |
19555 | ||
19556 | #if BYTE_ORDER != BIG_ENDIAN | |
19557 | not big endian | |
19558 | #endif | |
19559 | ; | |
19560 | return 0; | |
19561 | } | |
19562 | _ACEOF | |
19563 | rm -f conftest.$ac_objext | |
19564 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19565 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19566 | ac_status=$? |
ac1cb8d3 VS |
19567 | grep -v '^ *+' conftest.er1 >conftest.err |
19568 | rm -f conftest.er1 | |
19569 | cat conftest.err >&5 | |
a848cd7e SC |
19570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19571 | (exit $ac_status); } && | |
89be85c2 VS |
19572 | { ac_try='test -z "$ac_c_werror_flag" |
19573 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19575 | (eval $ac_try) 2>&5 | |
19576 | ac_status=$? | |
19577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19578 | (exit $ac_status); }; } && | |
19579 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19581 | (eval $ac_try) 2>&5 | |
19582 | ac_status=$? | |
19583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19584 | (exit $ac_status); }; }; then | |
19585 | ac_cv_c_bigendian=yes | |
19586 | else | |
19587 | echo "$as_me: failed program was:" >&5 | |
19588 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19589 | ||
19590 | ac_cv_c_bigendian=no | |
19591 | fi | |
ac1cb8d3 | 19592 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19593 | else |
19594 | echo "$as_me: failed program was:" >&5 | |
19595 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19596 | ||
19597 | fi | |
ac1cb8d3 | 19598 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19599 | if test $ac_cv_c_bigendian = unknown; then |
19600 | if test "$cross_compiling" = yes; then | |
19601 | ac_cv_c_bigendian=unknown | |
19602 | else | |
19603 | cat >conftest.$ac_ext <<_ACEOF | |
19604 | /* confdefs.h. */ | |
19605 | _ACEOF | |
19606 | cat confdefs.h >>conftest.$ac_ext | |
19607 | cat >>conftest.$ac_ext <<_ACEOF | |
19608 | /* end confdefs.h. */ | |
19609 | main () { | |
19610 | /* Are we little or big endian? From Harbison&Steele. */ | |
19611 | union | |
19612 | { | |
19613 | long l; | |
19614 | char c[sizeof (long)]; | |
19615 | } u; | |
19616 | u.l = 1; | |
19617 | exit (u.c[sizeof (long) - 1] == 1); | |
19618 | } | |
19619 | _ACEOF | |
19620 | rm -f conftest$ac_exeext | |
19621 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19622 | (eval $ac_link) 2>&5 | |
19623 | ac_status=$? | |
19624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19625 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19627 | (eval $ac_try) 2>&5 | |
19628 | ac_status=$? | |
19629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19630 | (exit $ac_status); }; }; then | |
19631 | ac_cv_c_bigendian=no | |
19632 | else | |
19633 | echo "$as_me: program exited with status $ac_status" >&5 | |
19634 | echo "$as_me: failed program was:" >&5 | |
19635 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19636 | ||
19637 | ( exit $ac_status ) | |
19638 | ac_cv_c_bigendian=yes | |
19639 | fi | |
ac1cb8d3 | 19640 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19641 | fi |
19642 | fi | |
19643 | fi | |
19644 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | |
19645 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
19646 | if test $ac_cv_c_bigendian = unknown; then | |
19647 | { 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 | |
19648 | 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;} | |
19649 | fi | |
19650 | if test $ac_cv_c_bigendian = yes; then | |
19651 | cat >>confdefs.h <<\_ACEOF | |
19652 | #define WORDS_BIGENDIAN 1 | |
19653 | _ACEOF | |
19654 | ||
19655 | fi | |
19656 | ||
19657 | ||
19658 | ac_ext=cc | |
19659 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19660 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19661 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19662 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19663 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
19664 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
19665 | if test -z "$CXXCPP"; then | |
19666 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
19667 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19668 | else | |
19669 | # Double quotes because CXXCPP needs to be expanded | |
19670 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
19671 | do | |
19672 | ac_preproc_ok=false | |
19673 | for ac_cxx_preproc_warn_flag in '' yes | |
19674 | do | |
19675 | # Use a header file that comes with gcc, so configuring glibc | |
19676 | # with a fresh cross-compiler works. | |
19677 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19678 | # <limits.h> exists even on freestanding compilers. | |
19679 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
19680 | # not just through cpp. "Syntax error" is here to catch this case. | |
19681 | cat >conftest.$ac_ext <<_ACEOF | |
19682 | /* confdefs.h. */ | |
19683 | _ACEOF | |
19684 | cat confdefs.h >>conftest.$ac_ext | |
19685 | cat >>conftest.$ac_ext <<_ACEOF | |
19686 | /* end confdefs.h. */ | |
19687 | #ifdef __STDC__ | |
19688 | # include <limits.h> | |
19689 | #else | |
19690 | # include <assert.h> | |
19691 | #endif | |
ac1cb8d3 | 19692 | Syntax error |
a848cd7e SC |
19693 | _ACEOF |
19694 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19695 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19696 | ac_status=$? | |
19697 | grep -v '^ *+' conftest.er1 >conftest.err | |
19698 | rm -f conftest.er1 | |
19699 | cat conftest.err >&5 | |
19700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19701 | (exit $ac_status); } >/dev/null; then | |
19702 | if test -s conftest.err; then | |
19703 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 19704 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
19705 | else |
19706 | ac_cpp_err= | |
19707 | fi | |
19708 | else | |
19709 | ac_cpp_err=yes | |
19710 | fi | |
19711 | if test -z "$ac_cpp_err"; then | |
19712 | : | |
19713 | else | |
19714 | echo "$as_me: failed program was:" >&5 | |
19715 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19716 | ||
19717 | # Broken: fails on valid input. | |
19718 | continue | |
19719 | fi | |
19720 | rm -f conftest.err conftest.$ac_ext | |
19721 | ||
19722 | # OK, works on sane cases. Now check whether non-existent headers | |
19723 | # can be detected and how. | |
19724 | cat >conftest.$ac_ext <<_ACEOF | |
19725 | /* confdefs.h. */ | |
19726 | _ACEOF | |
19727 | cat confdefs.h >>conftest.$ac_ext | |
19728 | cat >>conftest.$ac_ext <<_ACEOF | |
19729 | /* end confdefs.h. */ | |
19730 | #include <ac_nonexistent.h> | |
19731 | _ACEOF | |
19732 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19733 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19734 | ac_status=$? | |
19735 | grep -v '^ *+' conftest.er1 >conftest.err | |
19736 | rm -f conftest.er1 | |
19737 | cat conftest.err >&5 | |
19738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19739 | (exit $ac_status); } >/dev/null; then | |
19740 | if test -s conftest.err; then | |
19741 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 19742 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
19743 | else |
19744 | ac_cpp_err= | |
19745 | fi | |
19746 | else | |
19747 | ac_cpp_err=yes | |
19748 | fi | |
19749 | if test -z "$ac_cpp_err"; then | |
19750 | # Broken: success on invalid input. | |
19751 | continue | |
19752 | else | |
19753 | echo "$as_me: failed program was:" >&5 | |
19754 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19755 | ||
19756 | # Passes both tests. | |
19757 | ac_preproc_ok=: | |
19758 | break | |
19759 | fi | |
19760 | rm -f conftest.err conftest.$ac_ext | |
19761 | ||
19762 | done | |
19763 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
19764 | rm -f conftest.err conftest.$ac_ext | |
19765 | if $ac_preproc_ok; then | |
19766 | break | |
19767 | fi | |
19768 | ||
19769 | done | |
19770 | ac_cv_prog_CXXCPP=$CXXCPP | |
19771 | ||
19772 | fi | |
19773 | CXXCPP=$ac_cv_prog_CXXCPP | |
19774 | else | |
19775 | ac_cv_prog_CXXCPP=$CXXCPP | |
19776 | fi | |
19777 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
19778 | echo "${ECHO_T}$CXXCPP" >&6 | |
19779 | ac_preproc_ok=false | |
19780 | for ac_cxx_preproc_warn_flag in '' yes | |
19781 | do | |
19782 | # Use a header file that comes with gcc, so configuring glibc | |
19783 | # with a fresh cross-compiler works. | |
19784 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19785 | # <limits.h> exists even on freestanding compilers. | |
19786 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
19787 | # not just through cpp. "Syntax error" is here to catch this case. | |
19788 | cat >conftest.$ac_ext <<_ACEOF | |
19789 | /* confdefs.h. */ | |
19790 | _ACEOF | |
19791 | cat confdefs.h >>conftest.$ac_ext | |
19792 | cat >>conftest.$ac_ext <<_ACEOF | |
19793 | /* end confdefs.h. */ | |
19794 | #ifdef __STDC__ | |
19795 | # include <limits.h> | |
19796 | #else | |
19797 | # include <assert.h> | |
19798 | #endif | |
ac1cb8d3 | 19799 | Syntax error |
a848cd7e SC |
19800 | _ACEOF |
19801 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19802 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19803 | ac_status=$? | |
19804 | grep -v '^ *+' conftest.er1 >conftest.err | |
19805 | rm -f conftest.er1 | |
19806 | cat conftest.err >&5 | |
19807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19808 | (exit $ac_status); } >/dev/null; then | |
19809 | if test -s conftest.err; then | |
19810 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 19811 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
19812 | else |
19813 | ac_cpp_err= | |
19814 | fi | |
19815 | else | |
19816 | ac_cpp_err=yes | |
19817 | fi | |
19818 | if test -z "$ac_cpp_err"; then | |
19819 | : | |
19820 | else | |
19821 | echo "$as_me: failed program was:" >&5 | |
19822 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19823 | ||
19824 | # Broken: fails on valid input. | |
19825 | continue | |
19826 | fi | |
19827 | rm -f conftest.err conftest.$ac_ext | |
19828 | ||
19829 | # OK, works on sane cases. Now check whether non-existent headers | |
19830 | # can be detected and how. | |
19831 | cat >conftest.$ac_ext <<_ACEOF | |
19832 | /* confdefs.h. */ | |
19833 | _ACEOF | |
19834 | cat confdefs.h >>conftest.$ac_ext | |
19835 | cat >>conftest.$ac_ext <<_ACEOF | |
19836 | /* end confdefs.h. */ | |
19837 | #include <ac_nonexistent.h> | |
19838 | _ACEOF | |
19839 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19840 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19841 | ac_status=$? | |
19842 | grep -v '^ *+' conftest.er1 >conftest.err | |
19843 | rm -f conftest.er1 | |
19844 | cat conftest.err >&5 | |
19845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19846 | (exit $ac_status); } >/dev/null; then | |
19847 | if test -s conftest.err; then | |
19848 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 19849 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
19850 | else |
19851 | ac_cpp_err= | |
19852 | fi | |
19853 | else | |
19854 | ac_cpp_err=yes | |
19855 | fi | |
19856 | if test -z "$ac_cpp_err"; then | |
19857 | # Broken: success on invalid input. | |
19858 | continue | |
19859 | else | |
19860 | echo "$as_me: failed program was:" >&5 | |
19861 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19862 | ||
19863 | # Passes both tests. | |
19864 | ac_preproc_ok=: | |
19865 | break | |
19866 | fi | |
19867 | rm -f conftest.err conftest.$ac_ext | |
19868 | ||
19869 | done | |
19870 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
19871 | rm -f conftest.err conftest.$ac_ext | |
19872 | if $ac_preproc_ok; then | |
19873 | : | |
19874 | else | |
19875 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
19876 | See \`config.log' for more details." >&5 | |
19877 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
19878 | See \`config.log' for more details." >&2;} | |
19879 | { (exit 1); exit 1; }; } | |
19880 | fi | |
19881 | ||
19882 | ac_ext=cc | |
19883 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19884 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19885 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19886 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19887 | ||
19888 | ||
19889 | ||
19890 | ||
19891 | ||
19892 | ac_ext=cc | |
19893 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19894 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19895 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19896 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19897 | ||
19898 | ||
19899 | ||
19900 | for ac_header in iostream | |
19901 | do | |
19902 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
19903 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19904 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19905 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
19906 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19907 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19908 | fi | |
19909 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
19910 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
19911 | else | |
19912 | # Is the header compilable? | |
19913 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
19914 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
19915 | cat >conftest.$ac_ext <<_ACEOF | |
19916 | /* confdefs.h. */ | |
19917 | _ACEOF | |
19918 | cat confdefs.h >>conftest.$ac_ext | |
19919 | cat >>conftest.$ac_ext <<_ACEOF | |
19920 | /* end confdefs.h. */ | |
19921 | $ac_includes_default | |
19922 | #include <$ac_header> | |
19923 | _ACEOF | |
19924 | rm -f conftest.$ac_objext | |
19925 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19926 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19927 | ac_status=$? |
ac1cb8d3 VS |
19928 | grep -v '^ *+' conftest.er1 >conftest.err |
19929 | rm -f conftest.er1 | |
19930 | cat conftest.err >&5 | |
a848cd7e SC |
19931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19932 | (exit $ac_status); } && | |
89be85c2 VS |
19933 | { ac_try='test -z "$ac_cxx_werror_flag" |
19934 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19936 | (eval $ac_try) 2>&5 | |
19937 | ac_status=$? | |
19938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19939 | (exit $ac_status); }; } && | |
19940 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19942 | (eval $ac_try) 2>&5 | |
19943 | ac_status=$? | |
19944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19945 | (exit $ac_status); }; }; then | |
19946 | ac_header_compiler=yes | |
19947 | else | |
19948 | echo "$as_me: failed program was:" >&5 | |
19949 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19950 | ||
19951 | ac_header_compiler=no | |
19952 | fi | |
ac1cb8d3 | 19953 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19954 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19955 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19956 | ||
19957 | # Is the header present? | |
19958 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
19959 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
19960 | cat >conftest.$ac_ext <<_ACEOF | |
19961 | /* confdefs.h. */ | |
19962 | _ACEOF | |
19963 | cat confdefs.h >>conftest.$ac_ext | |
19964 | cat >>conftest.$ac_ext <<_ACEOF | |
19965 | /* end confdefs.h. */ | |
19966 | #include <$ac_header> | |
19967 | _ACEOF | |
19968 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19969 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19970 | ac_status=$? | |
19971 | grep -v '^ *+' conftest.er1 >conftest.err | |
19972 | rm -f conftest.er1 | |
19973 | cat conftest.err >&5 | |
19974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19975 | (exit $ac_status); } >/dev/null; then | |
19976 | if test -s conftest.err; then | |
19977 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 19978 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
19979 | else |
19980 | ac_cpp_err= | |
19981 | fi | |
19982 | else | |
19983 | ac_cpp_err=yes | |
19984 | fi | |
19985 | if test -z "$ac_cpp_err"; then | |
19986 | ac_header_preproc=yes | |
19987 | else | |
19988 | echo "$as_me: failed program was:" >&5 | |
19989 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19990 | ||
19991 | ac_header_preproc=no | |
19992 | fi | |
19993 | rm -f conftest.err conftest.$ac_ext | |
19994 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19995 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19996 | ||
19997 | # So? What about this header? | |
ac1cb8d3 VS |
19998 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
19999 | yes:no: ) | |
a848cd7e SC |
20000 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
20001 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
20002 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
20003 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
20004 | ac_header_preproc=yes | |
a848cd7e | 20005 | ;; |
ac1cb8d3 | 20006 | no:yes:* ) |
a848cd7e SC |
20007 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
20008 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
20009 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
20010 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
20011 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
20012 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
20013 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
20014 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
20015 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
20016 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
20017 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
20018 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
20019 | ( |
20020 | cat <<\_ASBOX | |
ac1cb8d3 VS |
20021 | ## ----------------------------------------- ## |
20022 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
20023 | ## ----------------------------------------- ## | |
a848cd7e SC |
20024 | _ASBOX |
20025 | ) | | |
20026 | sed "s/^/$as_me: WARNING: /" >&2 | |
20027 | ;; | |
20028 | esac | |
20029 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
20030 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
20031 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
20032 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20033 | else | |
ac1cb8d3 | 20034 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
20035 | fi |
20036 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
20037 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
20038 | ||
20039 | fi | |
20040 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
20041 | cat >>confdefs.h <<_ACEOF | |
20042 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
20043 | _ACEOF | |
20044 | ||
20045 | fi | |
20046 | ||
20047 | done | |
20048 | ||
20049 | ||
20050 | if test "$ac_cv_header_iostream" = "yes" ; then | |
20051 | : | |
20052 | else | |
20053 | cat >>confdefs.h <<\_ACEOF | |
20054 | #define wxUSE_IOSTREAMH 1 | |
20055 | _ACEOF | |
20056 | ||
20057 | fi | |
20058 | ||
20059 | ac_ext=c | |
20060 | ac_cpp='$CPP $CPPFLAGS' | |
20061 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20062 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20063 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20064 | ||
20065 | ||
20066 | ||
20067 | ||
20068 | echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5 | |
20069 | echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6 | |
20070 | if test "${wx_cv_cpp_bool+set}" = set; then | |
20071 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20072 | else | |
20073 | ||
20074 | ||
20075 | ||
20076 | ac_ext=cc | |
20077 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20078 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20079 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20080 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20081 | ||
20082 | ||
20083 | cat >conftest.$ac_ext <<_ACEOF | |
20084 | /* confdefs.h. */ | |
20085 | _ACEOF | |
20086 | cat confdefs.h >>conftest.$ac_ext | |
20087 | cat >>conftest.$ac_ext <<_ACEOF | |
20088 | /* end confdefs.h. */ | |
20089 | ||
20090 | ||
20091 | int | |
20092 | main () | |
20093 | { | |
20094 | ||
20095 | bool b = true; | |
20096 | ||
20097 | return 0; | |
20098 | ||
20099 | ; | |
20100 | return 0; | |
20101 | } | |
20102 | _ACEOF | |
20103 | rm -f conftest.$ac_objext | |
20104 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20105 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20106 | ac_status=$? |
ac1cb8d3 VS |
20107 | grep -v '^ *+' conftest.er1 >conftest.err |
20108 | rm -f conftest.er1 | |
20109 | cat conftest.err >&5 | |
a848cd7e SC |
20110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20111 | (exit $ac_status); } && | |
89be85c2 VS |
20112 | { ac_try='test -z "$ac_cxx_werror_flag" |
20113 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20115 | (eval $ac_try) 2>&5 | |
20116 | ac_status=$? | |
20117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20118 | (exit $ac_status); }; } && | |
20119 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20121 | (eval $ac_try) 2>&5 | |
20122 | ac_status=$? | |
20123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20124 | (exit $ac_status); }; }; then | |
20125 | ||
20126 | wx_cv_cpp_bool=yes | |
20127 | ||
20128 | else | |
20129 | echo "$as_me: failed program was:" >&5 | |
20130 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20131 | ||
20132 | ||
20133 | wx_cv_cpp_bool=no | |
20134 | ||
20135 | ||
20136 | fi | |
ac1cb8d3 | 20137 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20138 | |
20139 | ac_ext=c | |
20140 | ac_cpp='$CPP $CPPFLAGS' | |
20141 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20142 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20143 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20144 | ||
20145 | ||
20146 | fi | |
20147 | echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5 | |
20148 | echo "${ECHO_T}$wx_cv_cpp_bool" >&6 | |
20149 | ||
20150 | if test "$wx_cv_cpp_bool" = "yes"; then | |
20151 | cat >>confdefs.h <<\_ACEOF | |
20152 | #define HAVE_BOOL 1 | |
20153 | _ACEOF | |
20154 | ||
20155 | fi | |
20156 | ||
20157 | ||
20158 | ||
20159 | echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5 | |
20160 | echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6 | |
20161 | if test "${wx_cv_explicit+set}" = set; then | |
20162 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20163 | else | |
20164 | ||
20165 | ||
20166 | ||
20167 | ac_ext=cc | |
20168 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20169 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20170 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20171 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20172 | ||
20173 | ||
20174 | cat >conftest.$ac_ext <<_ACEOF | |
20175 | /* confdefs.h. */ | |
20176 | _ACEOF | |
20177 | cat confdefs.h >>conftest.$ac_ext | |
20178 | cat >>conftest.$ac_ext <<_ACEOF | |
20179 | /* end confdefs.h. */ | |
20180 | ||
20181 | class Foo { public: explicit Foo(int) {} }; | |
20182 | ||
20183 | int | |
20184 | main () | |
20185 | { | |
20186 | ||
20187 | return 0; | |
20188 | ||
20189 | ; | |
20190 | return 0; | |
20191 | } | |
20192 | _ACEOF | |
20193 | rm -f conftest.$ac_objext | |
20194 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20195 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20196 | ac_status=$? |
ac1cb8d3 VS |
20197 | grep -v '^ *+' conftest.er1 >conftest.err |
20198 | rm -f conftest.er1 | |
20199 | cat conftest.err >&5 | |
a848cd7e SC |
20200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20201 | (exit $ac_status); } && | |
89be85c2 VS |
20202 | { ac_try='test -z "$ac_cxx_werror_flag" |
20203 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20205 | (eval $ac_try) 2>&5 | |
20206 | ac_status=$? | |
20207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20208 | (exit $ac_status); }; } && | |
20209 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20211 | (eval $ac_try) 2>&5 | |
20212 | ac_status=$? | |
20213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20214 | (exit $ac_status); }; }; then | |
20215 | ||
20216 | cat >conftest.$ac_ext <<_ACEOF | |
20217 | /* confdefs.h. */ | |
20218 | _ACEOF | |
20219 | cat confdefs.h >>conftest.$ac_ext | |
20220 | cat >>conftest.$ac_ext <<_ACEOF | |
20221 | /* end confdefs.h. */ | |
20222 | ||
20223 | class Foo { public: explicit Foo(int) {} }; | |
20224 | static void TakeFoo(const Foo& foo) { } | |
20225 | ||
20226 | int | |
20227 | main () | |
20228 | { | |
20229 | ||
20230 | TakeFoo(17); | |
20231 | return 0; | |
20232 | ||
20233 | ; | |
20234 | return 0; | |
20235 | } | |
20236 | _ACEOF | |
20237 | rm -f conftest.$ac_objext | |
20238 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20239 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20240 | ac_status=$? |
ac1cb8d3 VS |
20241 | grep -v '^ *+' conftest.er1 >conftest.err |
20242 | rm -f conftest.er1 | |
20243 | cat conftest.err >&5 | |
a848cd7e SC |
20244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20245 | (exit $ac_status); } && | |
89be85c2 VS |
20246 | { ac_try='test -z "$ac_cxx_werror_flag" |
20247 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20249 | (eval $ac_try) 2>&5 | |
20250 | ac_status=$? | |
20251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20252 | (exit $ac_status); }; } && | |
20253 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20255 | (eval $ac_try) 2>&5 | |
20256 | ac_status=$? | |
20257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20258 | (exit $ac_status); }; }; then | |
20259 | wx_cv_explicit=no | |
20260 | else | |
20261 | echo "$as_me: failed program was:" >&5 | |
20262 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20263 | ||
20264 | wx_cv_explicit=yes | |
20265 | ||
20266 | fi | |
ac1cb8d3 | 20267 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20268 | |
20269 | else | |
20270 | echo "$as_me: failed program was:" >&5 | |
20271 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20272 | ||
20273 | wx_cv_explicit=no | |
20274 | ||
20275 | fi | |
ac1cb8d3 | 20276 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20277 | |
20278 | ac_ext=c | |
20279 | ac_cpp='$CPP $CPPFLAGS' | |
20280 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20281 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20282 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20283 | ||
20284 | ||
20285 | fi | |
20286 | echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5 | |
20287 | echo "${ECHO_T}$wx_cv_explicit" >&6 | |
20288 | ||
20289 | if test "$wx_cv_explicit" = "yes"; then | |
20290 | cat >>confdefs.h <<\_ACEOF | |
20291 | #define HAVE_EXPLICIT 1 | |
20292 | _ACEOF | |
20293 | ||
20294 | fi | |
20295 | ||
20296 | ||
20297 | echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5 | |
20298 | echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6 | |
20299 | if test "${ac_cv_cxx_const_cast+set}" = set; then | |
20300 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20301 | else | |
20302 | ||
20303 | ||
20304 | ac_ext=cc | |
20305 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20306 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20307 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20308 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20309 | ||
20310 | cat >conftest.$ac_ext <<_ACEOF | |
20311 | /* confdefs.h. */ | |
20312 | _ACEOF | |
20313 | cat confdefs.h >>conftest.$ac_ext | |
20314 | cat >>conftest.$ac_ext <<_ACEOF | |
20315 | /* end confdefs.h. */ | |
20316 | ||
20317 | int | |
20318 | main () | |
20319 | { | |
20320 | int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z; | |
20321 | ; | |
20322 | return 0; | |
20323 | } | |
20324 | _ACEOF | |
20325 | rm -f conftest.$ac_objext | |
20326 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20327 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20328 | ac_status=$? |
ac1cb8d3 VS |
20329 | grep -v '^ *+' conftest.er1 >conftest.err |
20330 | rm -f conftest.er1 | |
20331 | cat conftest.err >&5 | |
a848cd7e SC |
20332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20333 | (exit $ac_status); } && | |
89be85c2 VS |
20334 | { ac_try='test -z "$ac_cxx_werror_flag" |
20335 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20337 | (eval $ac_try) 2>&5 | |
20338 | ac_status=$? | |
20339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20340 | (exit $ac_status); }; } && | |
20341 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20343 | (eval $ac_try) 2>&5 | |
20344 | ac_status=$? | |
20345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20346 | (exit $ac_status); }; }; then | |
20347 | ac_cv_cxx_const_cast=yes | |
20348 | else | |
20349 | echo "$as_me: failed program was:" >&5 | |
20350 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20351 | ||
20352 | ac_cv_cxx_const_cast=no | |
20353 | fi | |
ac1cb8d3 | 20354 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20355 | ac_ext=c |
20356 | ac_cpp='$CPP $CPPFLAGS' | |
20357 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20358 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20359 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20360 | ||
20361 | ||
20362 | fi | |
20363 | echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5 | |
20364 | echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6 | |
20365 | if test "$ac_cv_cxx_const_cast" = yes; then | |
20366 | ||
20367 | cat >>confdefs.h <<\_ACEOF | |
20368 | #define HAVE_CONST_CAST | |
20369 | _ACEOF | |
20370 | ||
20371 | fi | |
20372 | ||
7714864e RL |
20373 | echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5 |
20374 | echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6 | |
20375 | if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then | |
20376 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20377 | else | |
20378 | ||
20379 | ||
20380 | ac_ext=cc | |
20381 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20382 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20383 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20384 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20385 | ||
20386 | cat >conftest.$ac_ext <<_ACEOF | |
20387 | /* confdefs.h. */ | |
20388 | _ACEOF | |
20389 | cat confdefs.h >>conftest.$ac_ext | |
20390 | cat >>conftest.$ac_ext <<_ACEOF | |
20391 | /* end confdefs.h. */ | |
20392 | #include <typeinfo> | |
20393 | class Base { public : Base () {} virtual void f () = 0;}; | |
20394 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
20395 | class Unrelated { public : Unrelated () {} }; | |
20396 | int g (Unrelated&) { return 0; } | |
20397 | int | |
20398 | main () | |
20399 | { | |
20400 | ||
20401 | Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e); | |
20402 | ; | |
20403 | return 0; | |
20404 | } | |
20405 | _ACEOF | |
20406 | rm -f conftest.$ac_objext | |
20407 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20408 | (eval $ac_compile) 2>conftest.er1 | |
20409 | ac_status=$? | |
20410 | grep -v '^ *+' conftest.er1 >conftest.err | |
20411 | rm -f conftest.er1 | |
20412 | cat conftest.err >&5 | |
20413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20414 | (exit $ac_status); } && | |
89be85c2 VS |
20415 | { ac_try='test -z "$ac_cxx_werror_flag" |
20416 | || test ! -s conftest.err' | |
7714864e RL |
20417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20418 | (eval $ac_try) 2>&5 | |
20419 | ac_status=$? | |
20420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20421 | (exit $ac_status); }; } && | |
20422 | { ac_try='test -s conftest.$ac_objext' | |
20423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20424 | (eval $ac_try) 2>&5 | |
20425 | ac_status=$? | |
20426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20427 | (exit $ac_status); }; }; then | |
20428 | ac_cv_cxx_reinterpret_cast=yes | |
20429 | else | |
20430 | echo "$as_me: failed program was:" >&5 | |
20431 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20432 | ||
20433 | ac_cv_cxx_reinterpret_cast=no | |
20434 | fi | |
20435 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20436 | ac_ext=c | |
20437 | ac_cpp='$CPP $CPPFLAGS' | |
20438 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20439 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20440 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20441 | ||
20442 | ||
20443 | fi | |
20444 | echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5 | |
20445 | echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6 | |
20446 | if test "$ac_cv_cxx_reinterpret_cast" = yes; then | |
20447 | ||
20448 | cat >>confdefs.h <<\_ACEOF | |
20449 | #define HAVE_REINTERPRET_CAST | |
20450 | _ACEOF | |
20451 | ||
20452 | fi | |
20453 | ||
a848cd7e SC |
20454 | echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5 |
20455 | echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6 | |
20456 | if test "${ac_cv_cxx_static_cast+set}" = set; then | |
20457 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20458 | else | |
20459 | ||
20460 | ||
20461 | ac_ext=cc | |
20462 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20463 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20464 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20465 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20466 | ||
20467 | cat >conftest.$ac_ext <<_ACEOF | |
20468 | /* confdefs.h. */ | |
20469 | _ACEOF | |
20470 | cat confdefs.h >>conftest.$ac_ext | |
20471 | cat >>conftest.$ac_ext <<_ACEOF | |
20472 | /* end confdefs.h. */ | |
20473 | #include <typeinfo> | |
20474 | class Base { public : Base () {} virtual void f () = 0; }; | |
20475 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
20476 | int g (Derived&) { return 0; } | |
20477 | int | |
20478 | main () | |
20479 | { | |
20480 | ||
20481 | Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s); | |
20482 | ; | |
20483 | return 0; | |
20484 | } | |
20485 | _ACEOF | |
20486 | rm -f conftest.$ac_objext | |
20487 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20488 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20489 | ac_status=$? |
ac1cb8d3 VS |
20490 | grep -v '^ *+' conftest.er1 >conftest.err |
20491 | rm -f conftest.er1 | |
20492 | cat conftest.err >&5 | |
a848cd7e SC |
20493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20494 | (exit $ac_status); } && | |
89be85c2 VS |
20495 | { ac_try='test -z "$ac_cxx_werror_flag" |
20496 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20498 | (eval $ac_try) 2>&5 | |
20499 | ac_status=$? | |
20500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20501 | (exit $ac_status); }; } && | |
20502 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20504 | (eval $ac_try) 2>&5 | |
20505 | ac_status=$? | |
20506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20507 | (exit $ac_status); }; }; then | |
20508 | ac_cv_cxx_static_cast=yes | |
20509 | else | |
20510 | echo "$as_me: failed program was:" >&5 | |
20511 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20512 | ||
20513 | ac_cv_cxx_static_cast=no | |
20514 | fi | |
ac1cb8d3 | 20515 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20516 | ac_ext=c |
20517 | ac_cpp='$CPP $CPPFLAGS' | |
20518 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20519 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20520 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20521 | ||
20522 | ||
20523 | fi | |
20524 | echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5 | |
20525 | echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6 | |
20526 | if test "$ac_cv_cxx_static_cast" = yes; then | |
20527 | ||
20528 | cat >>confdefs.h <<\_ACEOF | |
20529 | #define HAVE_STATIC_CAST | |
20530 | _ACEOF | |
20531 | ||
20532 | fi | |
20533 | ||
20534 | ||
20535 | if test "$wxUSE_STL" = "yes"; then | |
20536 | ac_ext=cc | |
20537 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20538 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20539 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20540 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20541 | ||
20542 | ||
20543 | echo "$as_me:$LINENO: checking for basic STL functionality" >&5 | |
20544 | echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6 | |
20545 | cat >conftest.$ac_ext <<_ACEOF | |
20546 | /* confdefs.h. */ | |
20547 | _ACEOF | |
20548 | cat confdefs.h >>conftest.$ac_ext | |
20549 | cat >>conftest.$ac_ext <<_ACEOF | |
20550 | /* end confdefs.h. */ | |
20551 | #include <string> | |
20552 | #include <functional> | |
20553 | #include <algorithm> | |
20554 | #include <vector> | |
20555 | #include <list> | |
20556 | int | |
20557 | main () | |
20558 | { | |
20559 | std::vector<int> moo; | |
20560 | std::list<int> foo; | |
20561 | std::vector<int>::iterator it = | |
20562 | std::find_if(moo.begin(), moo.end(), | |
20563 | std::bind2nd(std::less<int>(), 3)); | |
20564 | ; | |
20565 | return 0; | |
20566 | } | |
20567 | _ACEOF | |
20568 | rm -f conftest.$ac_objext | |
20569 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20570 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20571 | ac_status=$? |
ac1cb8d3 VS |
20572 | grep -v '^ *+' conftest.er1 >conftest.err |
20573 | rm -f conftest.er1 | |
20574 | cat conftest.err >&5 | |
a848cd7e SC |
20575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20576 | (exit $ac_status); } && | |
89be85c2 VS |
20577 | { ac_try='test -z "$ac_cxx_werror_flag" |
20578 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20580 | (eval $ac_try) 2>&5 | |
20581 | ac_status=$? | |
20582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20583 | (exit $ac_status); }; } && | |
20584 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20586 | (eval $ac_try) 2>&5 | |
20587 | ac_status=$? | |
20588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20589 | (exit $ac_status); }; }; then | |
20590 | echo "$as_me:$LINENO: result: yes" >&5 | |
20591 | echo "${ECHO_T}yes" >&6 | |
20592 | else | |
20593 | echo "$as_me: failed program was:" >&5 | |
20594 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20595 | ||
20596 | echo "$as_me:$LINENO: result: no" >&5 | |
20597 | echo "${ECHO_T}no" >&6 | |
20598 | { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5 | |
20599 | echo "$as_me: error: Basic STL functionality missing" >&2;} | |
20600 | { (exit 1); exit 1; }; } | |
20601 | fi | |
ac1cb8d3 | 20602 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20603 | |
20604 | echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5 | |
20605 | echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6 | |
20606 | cat >conftest.$ac_ext <<_ACEOF | |
20607 | /* confdefs.h. */ | |
20608 | _ACEOF | |
20609 | cat confdefs.h >>conftest.$ac_ext | |
20610 | cat >>conftest.$ac_ext <<_ACEOF | |
20611 | /* end confdefs.h. */ | |
20612 | #include <string> | |
20613 | int | |
20614 | main () | |
20615 | { | |
20616 | std::wstring foo; | |
20617 | ; | |
20618 | return 0; | |
20619 | } | |
20620 | _ACEOF | |
20621 | rm -f conftest.$ac_objext | |
20622 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20623 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20624 | ac_status=$? |
ac1cb8d3 VS |
20625 | grep -v '^ *+' conftest.er1 >conftest.err |
20626 | rm -f conftest.er1 | |
20627 | cat conftest.err >&5 | |
a848cd7e SC |
20628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20629 | (exit $ac_status); } && | |
89be85c2 VS |
20630 | { ac_try='test -z "$ac_cxx_werror_flag" |
20631 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20633 | (eval $ac_try) 2>&5 | |
20634 | ac_status=$? | |
20635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20636 | (exit $ac_status); }; } && | |
20637 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20638 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20639 | (eval $ac_try) 2>&5 | |
20640 | ac_status=$? | |
20641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20642 | (exit $ac_status); }; }; then | |
20643 | echo "$as_me:$LINENO: result: yes" >&5 | |
20644 | echo "${ECHO_T}yes" >&6 | |
20645 | cat >>confdefs.h <<\_ACEOF | |
20646 | #define HAVE_STD_WSTRING 1 | |
20647 | _ACEOF | |
20648 | ||
20649 | else | |
20650 | echo "$as_me: failed program was:" >&5 | |
20651 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20652 | ||
20653 | echo "$as_me:$LINENO: result: no" >&5 | |
20654 | echo "${ECHO_T}no" >&6 | |
20655 | fi | |
ac1cb8d3 | 20656 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20657 | |
20658 | echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5 | |
20659 | echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6 | |
20660 | cat >conftest.$ac_ext <<_ACEOF | |
20661 | /* confdefs.h. */ | |
20662 | _ACEOF | |
20663 | cat confdefs.h >>conftest.$ac_ext | |
20664 | cat >>conftest.$ac_ext <<_ACEOF | |
20665 | /* end confdefs.h. */ | |
20666 | #include <string> | |
20667 | int | |
20668 | main () | |
20669 | { | |
20670 | std::string foo, bar; | |
20671 | foo.compare(bar); | |
20672 | foo.compare(1, 1, bar); | |
20673 | foo.compare(1, 1, bar, 1, 1); | |
20674 | foo.compare(""); | |
20675 | foo.compare(1, 1, ""); | |
20676 | foo.compare(1, 1, "", 2); | |
20677 | ; | |
20678 | return 0; | |
20679 | } | |
20680 | _ACEOF | |
20681 | rm -f conftest.$ac_objext | |
20682 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20683 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20684 | ac_status=$? |
ac1cb8d3 VS |
20685 | grep -v '^ *+' conftest.er1 >conftest.err |
20686 | rm -f conftest.er1 | |
20687 | cat conftest.err >&5 | |
a848cd7e SC |
20688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20689 | (exit $ac_status); } && | |
89be85c2 VS |
20690 | { ac_try='test -z "$ac_cxx_werror_flag" |
20691 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20693 | (eval $ac_try) 2>&5 | |
20694 | ac_status=$? | |
20695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20696 | (exit $ac_status); }; } && | |
20697 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20699 | (eval $ac_try) 2>&5 | |
20700 | ac_status=$? | |
20701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20702 | (exit $ac_status); }; }; then | |
20703 | echo "$as_me:$LINENO: result: yes" >&5 | |
20704 | echo "${ECHO_T}yes" >&6 | |
20705 | cat >>confdefs.h <<\_ACEOF | |
20706 | #define HAVE_STD_STRING_COMPARE 1 | |
20707 | _ACEOF | |
20708 | ||
20709 | else | |
20710 | echo "$as_me: failed program was:" >&5 | |
20711 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20712 | ||
20713 | echo "$as_me:$LINENO: result: no" >&5 | |
20714 | echo "${ECHO_T}no" >&6 | |
20715 | fi | |
ac1cb8d3 | 20716 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
20717 | |
20718 | if test "${ac_cv_header_hash_map+set}" = set; then | |
20719 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
20720 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
20721 | if test "${ac_cv_header_hash_map+set}" = set; then | |
20722 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20723 | fi | |
20724 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
20725 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
20726 | else | |
20727 | # Is the header compilable? | |
20728 | echo "$as_me:$LINENO: checking hash_map usability" >&5 | |
20729 | echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6 | |
20730 | cat >conftest.$ac_ext <<_ACEOF | |
20731 | /* confdefs.h. */ | |
20732 | _ACEOF | |
20733 | cat confdefs.h >>conftest.$ac_ext | |
20734 | cat >>conftest.$ac_ext <<_ACEOF | |
20735 | /* end confdefs.h. */ | |
20736 | $ac_includes_default | |
20737 | #include <hash_map> | |
20738 | _ACEOF | |
20739 | rm -f conftest.$ac_objext | |
20740 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20741 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 20742 | ac_status=$? |
ac1cb8d3 VS |
20743 | grep -v '^ *+' conftest.er1 >conftest.err |
20744 | rm -f conftest.er1 | |
20745 | cat conftest.err >&5 | |
bdcade0a MB |
20746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20747 | (exit $ac_status); } && | |
89be85c2 VS |
20748 | { ac_try='test -z "$ac_cxx_werror_flag" |
20749 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20751 | (eval $ac_try) 2>&5 | |
20752 | ac_status=$? | |
20753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20754 | (exit $ac_status); }; } && | |
20755 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
20756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20757 | (eval $ac_try) 2>&5 | |
20758 | ac_status=$? | |
20759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20760 | (exit $ac_status); }; }; then | |
20761 | ac_header_compiler=yes | |
20762 | else | |
20763 | echo "$as_me: failed program was:" >&5 | |
20764 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20765 | ||
20766 | ac_header_compiler=no | |
20767 | fi | |
ac1cb8d3 | 20768 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
20769 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20770 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20771 | ||
20772 | # Is the header present? | |
20773 | echo "$as_me:$LINENO: checking hash_map presence" >&5 | |
20774 | echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6 | |
20775 | cat >conftest.$ac_ext <<_ACEOF | |
20776 | /* confdefs.h. */ | |
20777 | _ACEOF | |
20778 | cat confdefs.h >>conftest.$ac_ext | |
20779 | cat >>conftest.$ac_ext <<_ACEOF | |
20780 | /* end confdefs.h. */ | |
20781 | #include <hash_map> | |
20782 | _ACEOF | |
20783 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20784 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20785 | ac_status=$? | |
20786 | grep -v '^ *+' conftest.er1 >conftest.err | |
20787 | rm -f conftest.er1 | |
20788 | cat conftest.err >&5 | |
20789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20790 | (exit $ac_status); } >/dev/null; then | |
20791 | if test -s conftest.err; then | |
20792 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 20793 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
20794 | else |
20795 | ac_cpp_err= | |
20796 | fi | |
20797 | else | |
20798 | ac_cpp_err=yes | |
20799 | fi | |
20800 | if test -z "$ac_cpp_err"; then | |
20801 | ac_header_preproc=yes | |
20802 | else | |
20803 | echo "$as_me: failed program was:" >&5 | |
20804 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20805 | ||
20806 | ac_header_preproc=no | |
20807 | fi | |
20808 | rm -f conftest.err conftest.$ac_ext | |
20809 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20810 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20811 | ||
20812 | # So? What about this header? | |
ac1cb8d3 VS |
20813 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
20814 | yes:no: ) | |
bdcade0a MB |
20815 | { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
20816 | echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
20817 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5 |
20818 | echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;} | |
20819 | ac_header_preproc=yes | |
bdcade0a | 20820 | ;; |
ac1cb8d3 | 20821 | no:yes:* ) |
bdcade0a MB |
20822 | { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5 |
20823 | echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
20824 | { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5 |
20825 | echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;} | |
20826 | { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5 | |
20827 | echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;} | |
20828 | { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
20829 | echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
20830 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5 |
20831 | echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
20832 | { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5 |
20833 | echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
20834 | ( |
20835 | cat <<\_ASBOX | |
ac1cb8d3 VS |
20836 | ## ----------------------------------------- ## |
20837 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
20838 | ## ----------------------------------------- ## | |
bdcade0a MB |
20839 | _ASBOX |
20840 | ) | | |
20841 | sed "s/^/$as_me: WARNING: /" >&2 | |
20842 | ;; | |
20843 | esac | |
20844 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
20845 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
20846 | if test "${ac_cv_header_hash_map+set}" = set; then | |
20847 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20848 | else | |
20849 | ac_cv_header_hash_map=$ac_header_preproc | |
20850 | fi | |
20851 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
20852 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
20853 | ||
20854 | fi | |
20855 | if test $ac_cv_header_hash_map = yes; then | |
20856 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
20857 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
20858 | cat >conftest.$ac_ext <<_ACEOF | |
20859 | /* confdefs.h. */ | |
20860 | _ACEOF | |
20861 | cat confdefs.h >>conftest.$ac_ext | |
20862 | cat >>conftest.$ac_ext <<_ACEOF | |
20863 | /* end confdefs.h. */ | |
20864 | #include <hash_map> | |
20865 | #include <hash_set> | |
20866 | int | |
20867 | main () | |
20868 | { | |
20869 | std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1; | |
20870 | std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2; | |
20871 | ; | |
20872 | return 0; | |
20873 | } | |
20874 | _ACEOF | |
20875 | rm -f conftest.$ac_objext | |
20876 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20877 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 20878 | ac_status=$? |
ac1cb8d3 VS |
20879 | grep -v '^ *+' conftest.er1 >conftest.err |
20880 | rm -f conftest.er1 | |
20881 | cat conftest.err >&5 | |
bdcade0a MB |
20882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20883 | (exit $ac_status); } && | |
89be85c2 VS |
20884 | { ac_try='test -z "$ac_cxx_werror_flag" |
20885 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20887 | (eval $ac_try) 2>&5 | |
20888 | ac_status=$? | |
20889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20890 | (exit $ac_status); }; } && | |
20891 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
20892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20893 | (eval $ac_try) 2>&5 | |
20894 | ac_status=$? | |
20895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20896 | (exit $ac_status); }; }; then | |
20897 | echo "$as_me:$LINENO: result: yes" >&5 | |
20898 | echo "${ECHO_T}yes" >&6 | |
20899 | cat >>confdefs.h <<\_ACEOF | |
20900 | #define HAVE_HASH_MAP 1 | |
20901 | _ACEOF | |
20902 | ||
20903 | cat >>confdefs.h <<\_ACEOF | |
20904 | #define HAVE_STD_HASH_MAP 1 | |
20905 | _ACEOF | |
20906 | ||
20907 | else | |
20908 | echo "$as_me: failed program was:" >&5 | |
20909 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20910 | ||
20911 | echo "$as_me:$LINENO: result: no" >&5 | |
20912 | echo "${ECHO_T}no" >&6 | |
20913 | fi | |
ac1cb8d3 | 20914 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
20915 | |
20916 | fi | |
20917 | ||
20918 | ||
20919 | ||
20920 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
20921 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
20922 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
20923 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
20924 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20925 | fi | |
20926 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
20927 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
20928 | else | |
20929 | # Is the header compilable? | |
20930 | echo "$as_me:$LINENO: checking ext/hash_map usability" >&5 | |
20931 | echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6 | |
20932 | cat >conftest.$ac_ext <<_ACEOF | |
20933 | /* confdefs.h. */ | |
20934 | _ACEOF | |
20935 | cat confdefs.h >>conftest.$ac_ext | |
20936 | cat >>conftest.$ac_ext <<_ACEOF | |
20937 | /* end confdefs.h. */ | |
20938 | $ac_includes_default | |
20939 | #include <ext/hash_map> | |
20940 | _ACEOF | |
20941 | rm -f conftest.$ac_objext | |
20942 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20943 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 20944 | ac_status=$? |
ac1cb8d3 VS |
20945 | grep -v '^ *+' conftest.er1 >conftest.err |
20946 | rm -f conftest.er1 | |
20947 | cat conftest.err >&5 | |
bdcade0a MB |
20948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20949 | (exit $ac_status); } && | |
89be85c2 VS |
20950 | { ac_try='test -z "$ac_cxx_werror_flag" |
20951 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20953 | (eval $ac_try) 2>&5 | |
20954 | ac_status=$? | |
20955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20956 | (exit $ac_status); }; } && | |
20957 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
20958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20959 | (eval $ac_try) 2>&5 | |
20960 | ac_status=$? | |
20961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20962 | (exit $ac_status); }; }; then | |
20963 | ac_header_compiler=yes | |
20964 | else | |
20965 | echo "$as_me: failed program was:" >&5 | |
20966 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20967 | ||
20968 | ac_header_compiler=no | |
20969 | fi | |
ac1cb8d3 | 20970 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
20971 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20972 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20973 | ||
20974 | # Is the header present? | |
20975 | echo "$as_me:$LINENO: checking ext/hash_map presence" >&5 | |
20976 | echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6 | |
20977 | cat >conftest.$ac_ext <<_ACEOF | |
20978 | /* confdefs.h. */ | |
20979 | _ACEOF | |
20980 | cat confdefs.h >>conftest.$ac_ext | |
20981 | cat >>conftest.$ac_ext <<_ACEOF | |
20982 | /* end confdefs.h. */ | |
20983 | #include <ext/hash_map> | |
20984 | _ACEOF | |
20985 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20986 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20987 | ac_status=$? | |
20988 | grep -v '^ *+' conftest.er1 >conftest.err | |
20989 | rm -f conftest.er1 | |
20990 | cat conftest.err >&5 | |
20991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20992 | (exit $ac_status); } >/dev/null; then | |
20993 | if test -s conftest.err; then | |
20994 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 20995 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
20996 | else |
20997 | ac_cpp_err= | |
20998 | fi | |
20999 | else | |
21000 | ac_cpp_err=yes | |
21001 | fi | |
21002 | if test -z "$ac_cpp_err"; then | |
21003 | ac_header_preproc=yes | |
21004 | else | |
21005 | echo "$as_me: failed program was:" >&5 | |
21006 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21007 | ||
21008 | ac_header_preproc=no | |
21009 | fi | |
21010 | rm -f conftest.err conftest.$ac_ext | |
21011 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21012 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21013 | ||
21014 | # So? What about this header? | |
ac1cb8d3 VS |
21015 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
21016 | yes:no: ) | |
bdcade0a MB |
21017 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
21018 | echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21019 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5 |
21020 | echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;} | |
21021 | ac_header_preproc=yes | |
bdcade0a | 21022 | ;; |
ac1cb8d3 | 21023 | no:yes:* ) |
bdcade0a MB |
21024 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5 |
21025 | echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21026 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5 |
21027 | echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;} | |
21028 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5 | |
21029 | echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;} | |
21030 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
21031 | echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
21032 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5 |
21033 | echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21034 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5 |
21035 | echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
21036 | ( |
21037 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21038 | ## ----------------------------------------- ## |
21039 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21040 | ## ----------------------------------------- ## | |
bdcade0a MB |
21041 | _ASBOX |
21042 | ) | | |
21043 | sed "s/^/$as_me: WARNING: /" >&2 | |
21044 | ;; | |
21045 | esac | |
21046 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
21047 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
21048 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
21049 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21050 | else | |
21051 | ac_cv_header_ext_hash_map=$ac_header_preproc | |
21052 | fi | |
21053 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
21054 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
21055 | ||
21056 | fi | |
21057 | if test $ac_cv_header_ext_hash_map = yes; then | |
21058 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
21059 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
21060 | cat >conftest.$ac_ext <<_ACEOF | |
21061 | /* confdefs.h. */ | |
21062 | _ACEOF | |
21063 | cat confdefs.h >>conftest.$ac_ext | |
21064 | cat >>conftest.$ac_ext <<_ACEOF | |
21065 | /* end confdefs.h. */ | |
21066 | #include <ext/hash_map> | |
21067 | #include <ext/hash_set> | |
21068 | int | |
21069 | main () | |
21070 | { | |
21071 | __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1; | |
21072 | __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2; | |
21073 | ; | |
21074 | return 0; | |
21075 | } | |
21076 | _ACEOF | |
21077 | rm -f conftest.$ac_objext | |
21078 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21079 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 21080 | ac_status=$? |
ac1cb8d3 VS |
21081 | grep -v '^ *+' conftest.er1 >conftest.err |
21082 | rm -f conftest.er1 | |
21083 | cat conftest.err >&5 | |
bdcade0a MB |
21084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21085 | (exit $ac_status); } && | |
89be85c2 VS |
21086 | { ac_try='test -z "$ac_cxx_werror_flag" |
21087 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21089 | (eval $ac_try) 2>&5 | |
21090 | ac_status=$? | |
21091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21092 | (exit $ac_status); }; } && | |
21093 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
21094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21095 | (eval $ac_try) 2>&5 | |
21096 | ac_status=$? | |
21097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21098 | (exit $ac_status); }; }; then | |
21099 | echo "$as_me:$LINENO: result: yes" >&5 | |
21100 | echo "${ECHO_T}yes" >&6 | |
21101 | cat >>confdefs.h <<\_ACEOF | |
21102 | #define HAVE_EXT_HASH_MAP 1 | |
21103 | _ACEOF | |
21104 | ||
21105 | cat >>confdefs.h <<\_ACEOF | |
21106 | #define HAVE_GNU_CXX_HASH_MAP 1 | |
21107 | _ACEOF | |
21108 | ||
21109 | else | |
21110 | echo "$as_me: failed program was:" >&5 | |
21111 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21112 | ||
21113 | echo "$as_me:$LINENO: result: no" >&5 | |
21114 | echo "${ECHO_T}no" >&6 | |
21115 | fi | |
ac1cb8d3 | 21116 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
21117 | |
21118 | fi | |
21119 | ||
21120 | ||
a848cd7e SC |
21121 | |
21122 | ac_ext=c | |
21123 | ac_cpp='$CPP $CPPFLAGS' | |
21124 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21125 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21126 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21127 | ||
21128 | fi | |
21129 | ||
21130 | ||
21131 | SEARCH_INCLUDE="\ | |
21132 | /usr/local/include \ | |
21133 | \ | |
21134 | /usr/Motif-2.1/include \ | |
21135 | /usr/Motif-1.2/include \ | |
21136 | /usr/include/Motif1.2 \ | |
21137 | /opt/xpm/include/X11 \ | |
21138 | /opt/GBxpm/include/ \ | |
21139 | /opt/GBxpm/X11/include/ \ | |
21140 | \ | |
21141 | /usr/dt/include \ | |
21142 | /usr/openwin/include \ | |
21143 | \ | |
21144 | /usr/include/Xm \ | |
21145 | \ | |
21146 | /usr/X11R6/include \ | |
21147 | /usr/X11R6.4/include \ | |
21148 | /usr/X11R5/include \ | |
21149 | /usr/X11R4/include \ | |
21150 | \ | |
21151 | /usr/include/X11R6 \ | |
21152 | /usr/include/X11R5 \ | |
21153 | /usr/include/X11R4 \ | |
21154 | \ | |
21155 | /usr/local/X11R6/include \ | |
21156 | /usr/local/X11R5/include \ | |
21157 | /usr/local/X11R4/include \ | |
21158 | \ | |
21159 | /usr/local/include/X11R6 \ | |
21160 | /usr/local/include/X11R5 \ | |
21161 | /usr/local/include/X11R4 \ | |
21162 | \ | |
21163 | /usr/X11/include \ | |
21164 | /usr/include/X11 \ | |
21165 | /usr/local/X11/include \ | |
21166 | /usr/local/include/X11 \ | |
21167 | \ | |
21168 | /usr/X386/include \ | |
21169 | /usr/x386/include \ | |
21170 | /usr/XFree86/include/X11 \ | |
21171 | \ | |
21172 | X:/XFree86/include \ | |
21173 | X:/XFree86/include/X11 \ | |
21174 | \ | |
21175 | /usr/include/gtk \ | |
21176 | /usr/local/include/gtk \ | |
21177 | /usr/include/glib \ | |
21178 | /usr/local/include/glib \ | |
21179 | \ | |
21180 | /usr/include/qt \ | |
21181 | /usr/local/include/qt \ | |
21182 | \ | |
21183 | /usr/local/arm/3.3.2/include \ | |
21184 | \ | |
21185 | /usr/include/windows \ | |
21186 | /usr/include/wine \ | |
21187 | /usr/local/include/wine \ | |
21188 | \ | |
21189 | /usr/unsupported/include \ | |
21190 | /usr/athena/include \ | |
21191 | /usr/local/x11r5/include \ | |
21192 | /usr/lpp/Xamples/include \ | |
21193 | \ | |
21194 | /usr/openwin/share/include" | |
21195 | ||
21196 | SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64" | |
21197 | ||
21198 | ||
21199 | cat >confcache <<\_ACEOF | |
21200 | # This file is a shell script that caches the results of configure | |
21201 | # tests run on this system so they can be shared between configure | |
21202 | # scripts and configure runs, see configure's option --config-cache. | |
21203 | # It is not useful on other systems. If it contains results you don't | |
21204 | # want to keep, you may remove or edit it. | |
21205 | # | |
21206 | # config.status only pays attention to the cache file if you give it | |
21207 | # the --recheck option to rerun configure. | |
21208 | # | |
21209 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
21210 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
21211 | # following values. | |
21212 | ||
21213 | _ACEOF | |
21214 | ||
21215 | # The following way of writing the cache mishandles newlines in values, | |
21216 | # but we know of no workaround that is simple, portable, and efficient. | |
21217 | # So, don't put newlines in cache variables' values. | |
21218 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
21219 | # and sets the high bit in the cache file unless we assign to the vars. | |
21220 | { | |
21221 | (set) 2>&1 | | |
21222 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
21223 | *ac_space=\ *) | |
21224 | # `set' does not quote correctly, so add quotes (double-quote | |
21225 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
21226 | sed -n \ | |
ac1cb8d3 VS |
21227 | "s/'/'\\\\''/g; |
21228 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
21229 | ;; |
21230 | *) | |
21231 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
21232 | sed -n \ | |
ac1cb8d3 | 21233 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
21234 | ;; |
21235 | esac; | |
21236 | } | | |
21237 | sed ' | |
21238 | t clear | |
21239 | : clear | |
21240 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
21241 | t end | |
21242 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
21243 | : end' >>confcache | |
21244 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
21245 | if test -w $cache_file; then | |
21246 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
21247 | cat confcache >$cache_file | |
21248 | else | |
21249 | echo "not updating unwritable cache $cache_file" | |
21250 | fi | |
21251 | fi | |
21252 | rm -f confcache | |
21253 | ||
21254 | if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then | |
21255 | echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5 | |
21256 | echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6 | |
21257 | if test "${wx_cv_lib_glibc21+set}" = set; then | |
21258 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21259 | else | |
21260 | ||
21261 | cat >conftest.$ac_ext <<_ACEOF | |
21262 | /* confdefs.h. */ | |
21263 | _ACEOF | |
21264 | cat confdefs.h >>conftest.$ac_ext | |
21265 | cat >>conftest.$ac_ext <<_ACEOF | |
21266 | /* end confdefs.h. */ | |
21267 | #include <features.h> | |
21268 | int | |
21269 | main () | |
21270 | { | |
21271 | ||
21272 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) | |
21273 | #error not glibc2.1 | |
21274 | #endif | |
21275 | ||
21276 | ; | |
21277 | return 0; | |
21278 | } | |
21279 | _ACEOF | |
21280 | rm -f conftest.$ac_objext | |
21281 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21282 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21283 | ac_status=$? |
ac1cb8d3 VS |
21284 | grep -v '^ *+' conftest.er1 >conftest.err |
21285 | rm -f conftest.er1 | |
21286 | cat conftest.err >&5 | |
a848cd7e SC |
21287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21288 | (exit $ac_status); } && | |
89be85c2 VS |
21289 | { ac_try='test -z "$ac_c_werror_flag" |
21290 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21292 | (eval $ac_try) 2>&5 | |
21293 | ac_status=$? | |
21294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21295 | (exit $ac_status); }; } && | |
21296 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21298 | (eval $ac_try) 2>&5 | |
21299 | ac_status=$? | |
21300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21301 | (exit $ac_status); }; }; then | |
21302 | ||
21303 | wx_cv_lib_glibc21=yes | |
21304 | ||
21305 | else | |
21306 | echo "$as_me: failed program was:" >&5 | |
21307 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21308 | ||
21309 | ||
21310 | wx_cv_lib_glibc21=no | |
21311 | ||
21312 | ||
21313 | fi | |
ac1cb8d3 | 21314 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21315 | |
21316 | fi | |
21317 | echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5 | |
21318 | echo "${ECHO_T}$wx_cv_lib_glibc21" >&6 | |
21319 | if test "$wx_cv_lib_glibc21" = "yes"; then | |
21320 | cat >>confdefs.h <<\_ACEOF | |
21321 | #define wxHAVE_GLIBC2 1 | |
21322 | _ACEOF | |
21323 | ||
21324 | fi | |
21325 | fi | |
21326 | ||
21327 | if test "x$wx_cv_lib_glibc21" = "xyes"; then | |
21328 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
21329 | cat >>confdefs.h <<\_ACEOF | |
21330 | #define _GNU_SOURCE 1 | |
21331 | _ACEOF | |
21332 | ||
21333 | fi | |
21334 | fi | |
21335 | ||
21336 | ||
21337 | ||
21338 | if test "$wxUSE_REGEX" != "no"; then | |
21339 | cat >>confdefs.h <<\_ACEOF | |
21340 | #define wxUSE_REGEX 1 | |
21341 | _ACEOF | |
21342 | ||
21343 | ||
21344 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then | |
21345 | { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5 | |
21346 | echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;} | |
21347 | wxUSE_REGEX=builtin | |
21348 | fi | |
21349 | ||
21350 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then | |
21351 | if test "${ac_cv_header_regex_h+set}" = set; then | |
21352 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
21353 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
21354 | if test "${ac_cv_header_regex_h+set}" = set; then | |
21355 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21356 | fi | |
21357 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
21358 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
21359 | else | |
21360 | # Is the header compilable? | |
21361 | echo "$as_me:$LINENO: checking regex.h usability" >&5 | |
21362 | echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6 | |
21363 | cat >conftest.$ac_ext <<_ACEOF | |
21364 | /* confdefs.h. */ | |
21365 | _ACEOF | |
21366 | cat confdefs.h >>conftest.$ac_ext | |
21367 | cat >>conftest.$ac_ext <<_ACEOF | |
21368 | /* end confdefs.h. */ | |
21369 | $ac_includes_default | |
21370 | #include <regex.h> | |
21371 | _ACEOF | |
21372 | rm -f conftest.$ac_objext | |
21373 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21374 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21375 | ac_status=$? |
ac1cb8d3 VS |
21376 | grep -v '^ *+' conftest.er1 >conftest.err |
21377 | rm -f conftest.er1 | |
21378 | cat conftest.err >&5 | |
a848cd7e SC |
21379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21380 | (exit $ac_status); } && | |
89be85c2 VS |
21381 | { ac_try='test -z "$ac_c_werror_flag" |
21382 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21384 | (eval $ac_try) 2>&5 | |
21385 | ac_status=$? | |
21386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21387 | (exit $ac_status); }; } && | |
21388 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21390 | (eval $ac_try) 2>&5 | |
21391 | ac_status=$? | |
21392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21393 | (exit $ac_status); }; }; then | |
21394 | ac_header_compiler=yes | |
21395 | else | |
21396 | echo "$as_me: failed program was:" >&5 | |
21397 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21398 | ||
21399 | ac_header_compiler=no | |
21400 | fi | |
ac1cb8d3 | 21401 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21402 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21403 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21404 | ||
21405 | # Is the header present? | |
21406 | echo "$as_me:$LINENO: checking regex.h presence" >&5 | |
21407 | echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6 | |
21408 | cat >conftest.$ac_ext <<_ACEOF | |
21409 | /* confdefs.h. */ | |
21410 | _ACEOF | |
21411 | cat confdefs.h >>conftest.$ac_ext | |
21412 | cat >>conftest.$ac_ext <<_ACEOF | |
21413 | /* end confdefs.h. */ | |
21414 | #include <regex.h> | |
21415 | _ACEOF | |
21416 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21417 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21418 | ac_status=$? | |
21419 | grep -v '^ *+' conftest.er1 >conftest.err | |
21420 | rm -f conftest.er1 | |
21421 | cat conftest.err >&5 | |
21422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21423 | (exit $ac_status); } >/dev/null; then | |
21424 | if test -s conftest.err; then | |
21425 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 21426 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
21427 | else |
21428 | ac_cpp_err= | |
21429 | fi | |
21430 | else | |
21431 | ac_cpp_err=yes | |
21432 | fi | |
21433 | if test -z "$ac_cpp_err"; then | |
21434 | ac_header_preproc=yes | |
21435 | else | |
21436 | echo "$as_me: failed program was:" >&5 | |
21437 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21438 | ||
21439 | ac_header_preproc=no | |
21440 | fi | |
21441 | rm -f conftest.err conftest.$ac_ext | |
21442 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21443 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21444 | ||
21445 | # So? What about this header? | |
ac1cb8d3 VS |
21446 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21447 | yes:no: ) | |
a848cd7e SC |
21448 | { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
21449 | echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21450 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5 |
21451 | echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;} | |
21452 | ac_header_preproc=yes | |
a848cd7e | 21453 | ;; |
ac1cb8d3 | 21454 | no:yes:* ) |
a848cd7e SC |
21455 | { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5 |
21456 | echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21457 | { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5 |
21458 | echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;} | |
21459 | { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5 | |
21460 | echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;} | |
21461 | { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21462 | echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
21463 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 |
21464 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21465 | { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5 |
21466 | echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
21467 | ( |
21468 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21469 | ## ----------------------------------------- ## |
21470 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21471 | ## ----------------------------------------- ## | |
a848cd7e SC |
21472 | _ASBOX |
21473 | ) | | |
21474 | sed "s/^/$as_me: WARNING: /" >&2 | |
21475 | ;; | |
21476 | esac | |
21477 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
21478 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
21479 | if test "${ac_cv_header_regex_h+set}" = set; then | |
21480 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21481 | else | |
21482 | ac_cv_header_regex_h=$ac_header_preproc | |
21483 | fi | |
21484 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
21485 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
21486 | ||
21487 | fi | |
21488 | if test $ac_cv_header_regex_h = yes; then | |
21489 | ||
21490 | for ac_func in regcomp | |
21491 | do | |
21492 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
21493 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
21494 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
21495 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
21496 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21497 | else | |
21498 | cat >conftest.$ac_ext <<_ACEOF | |
21499 | /* confdefs.h. */ | |
21500 | _ACEOF | |
21501 | cat confdefs.h >>conftest.$ac_ext | |
21502 | cat >>conftest.$ac_ext <<_ACEOF | |
21503 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
21504 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
21505 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
21506 | #define $ac_func innocuous_$ac_func | |
21507 | ||
a848cd7e SC |
21508 | /* System header to define __stub macros and hopefully few prototypes, |
21509 | which can conflict with char $ac_func (); below. | |
21510 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21511 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 21512 | |
a848cd7e SC |
21513 | #ifdef __STDC__ |
21514 | # include <limits.h> | |
21515 | #else | |
21516 | # include <assert.h> | |
21517 | #endif | |
ac1cb8d3 VS |
21518 | |
21519 | #undef $ac_func | |
21520 | ||
a848cd7e SC |
21521 | /* Override any gcc2 internal prototype to avoid an error. */ |
21522 | #ifdef __cplusplus | |
21523 | extern "C" | |
21524 | { | |
21525 | #endif | |
21526 | /* We use char because int might match the return type of a gcc2 | |
21527 | builtin and then its argument prototype would still apply. */ | |
21528 | char $ac_func (); | |
21529 | /* The GNU C library defines this for functions which it implements | |
21530 | to always fail with ENOSYS. Some functions are actually named | |
21531 | something starting with __ and the normal name is an alias. */ | |
21532 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
21533 | choke me | |
21534 | #else | |
21535 | char (*f) () = $ac_func; | |
21536 | #endif | |
21537 | #ifdef __cplusplus | |
21538 | } | |
21539 | #endif | |
21540 | ||
21541 | int | |
21542 | main () | |
21543 | { | |
21544 | return f != $ac_func; | |
21545 | ; | |
21546 | return 0; | |
21547 | } | |
21548 | _ACEOF | |
21549 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21550 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 21551 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 21552 | ac_status=$? |
ac1cb8d3 VS |
21553 | grep -v '^ *+' conftest.er1 >conftest.err |
21554 | rm -f conftest.er1 | |
21555 | cat conftest.err >&5 | |
a848cd7e SC |
21556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21557 | (exit $ac_status); } && | |
89be85c2 VS |
21558 | { ac_try='test -z "$ac_c_werror_flag" |
21559 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21561 | (eval $ac_try) 2>&5 | |
21562 | ac_status=$? | |
21563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21564 | (exit $ac_status); }; } && | |
21565 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
21566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21567 | (eval $ac_try) 2>&5 | |
21568 | ac_status=$? | |
21569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21570 | (exit $ac_status); }; }; then | |
21571 | eval "$as_ac_var=yes" | |
21572 | else | |
21573 | echo "$as_me: failed program was:" >&5 | |
21574 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21575 | ||
21576 | eval "$as_ac_var=no" | |
21577 | fi | |
ac1cb8d3 VS |
21578 | rm -f conftest.err conftest.$ac_objext \ |
21579 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
21580 | fi |
21581 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
21582 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
21583 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
21584 | cat >>confdefs.h <<_ACEOF | |
21585 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
21586 | _ACEOF | |
21587 | ||
21588 | fi | |
21589 | done | |
21590 | ||
21591 | fi | |
21592 | ||
21593 | ||
21594 | ||
21595 | if test "x$ac_cv_func_regcomp" != "xyes"; then | |
21596 | if test "$wxUSE_REGEX" = "sys" ; then | |
21597 | { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5 | |
21598 | echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;} | |
21599 | { (exit 1); exit 1; }; } | |
21600 | else | |
21601 | { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5 | |
21602 | echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;} | |
21603 | wxUSE_REGEX=builtin | |
21604 | fi | |
21605 | else | |
21606 | wxUSE_REGEX=sys | |
21607 | cat >>confdefs.h <<\_ACEOF | |
21608 | #define WX_NO_REGEX_ADVANCED 1 | |
21609 | _ACEOF | |
21610 | ||
21611 | fi | |
21612 | fi | |
21613 | fi | |
21614 | ||
21615 | ||
21616 | ZLIB_LINK= | |
21617 | if test "$wxUSE_ZLIB" != "no" ; then | |
21618 | cat >>confdefs.h <<\_ACEOF | |
21619 | #define wxUSE_ZLIB 1 | |
21620 | _ACEOF | |
21621 | ||
21622 | ||
21623 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then | |
21624 | if test "$USE_DARWIN" = 1; then | |
21625 | system_zlib_h_ok="yes" | |
21626 | else | |
21627 | echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5 | |
21628 | echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6 | |
21629 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
21630 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21631 | else | |
21632 | if test "$cross_compiling" = yes; then | |
21633 | unset ac_cv_header_zlib_h | |
21634 | ||
21635 | else | |
21636 | cat >conftest.$ac_ext <<_ACEOF | |
21637 | /* confdefs.h. */ | |
21638 | _ACEOF | |
21639 | cat confdefs.h >>conftest.$ac_ext | |
21640 | cat >>conftest.$ac_ext <<_ACEOF | |
21641 | /* end confdefs.h. */ | |
21642 | ||
21643 | #include <zlib.h> | |
21644 | #include <stdio.h> | |
21645 | ||
21646 | int main() | |
21647 | { | |
21648 | FILE *f=fopen("conftestval", "w"); | |
21649 | if (!f) exit(1); | |
21650 | fprintf(f, "%s", | |
21651 | ZLIB_VERSION[0] == '1' && | |
21652 | (ZLIB_VERSION[2] > '1' || | |
21653 | (ZLIB_VERSION[2] == '1' && | |
21654 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
21655 | exit(0); | |
21656 | } | |
21657 | ||
21658 | _ACEOF | |
21659 | rm -f conftest$ac_exeext | |
21660 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21661 | (eval $ac_link) 2>&5 | |
21662 | ac_status=$? | |
21663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21664 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21666 | (eval $ac_try) 2>&5 | |
21667 | ac_status=$? | |
21668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21669 | (exit $ac_status); }; }; then | |
21670 | ac_cv_header_zlib_h=`cat conftestval` | |
21671 | else | |
21672 | echo "$as_me: program exited with status $ac_status" >&5 | |
21673 | echo "$as_me: failed program was:" >&5 | |
21674 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21675 | ||
21676 | ( exit $ac_status ) | |
21677 | ac_cv_header_zlib_h=no | |
21678 | fi | |
ac1cb8d3 | 21679 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21680 | fi |
21681 | ||
21682 | fi | |
21683 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
21684 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
21685 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
21686 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
21687 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
21688 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
21689 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21690 | fi | |
21691 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
21692 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
21693 | else | |
21694 | # Is the header compilable? | |
21695 | echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
21696 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 | |
21697 | cat >conftest.$ac_ext <<_ACEOF | |
21698 | /* confdefs.h. */ | |
21699 | _ACEOF | |
21700 | cat confdefs.h >>conftest.$ac_ext | |
21701 | cat >>conftest.$ac_ext <<_ACEOF | |
21702 | /* end confdefs.h. */ | |
21703 | $ac_includes_default | |
21704 | #include <zlib.h> | |
21705 | _ACEOF | |
21706 | rm -f conftest.$ac_objext | |
21707 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21708 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21709 | ac_status=$? |
ac1cb8d3 VS |
21710 | grep -v '^ *+' conftest.er1 >conftest.err |
21711 | rm -f conftest.er1 | |
21712 | cat conftest.err >&5 | |
a848cd7e SC |
21713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21714 | (exit $ac_status); } && | |
89be85c2 VS |
21715 | { ac_try='test -z "$ac_c_werror_flag" |
21716 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21718 | (eval $ac_try) 2>&5 | |
21719 | ac_status=$? | |
21720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21721 | (exit $ac_status); }; } && | |
21722 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21724 | (eval $ac_try) 2>&5 | |
21725 | ac_status=$? | |
21726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21727 | (exit $ac_status); }; }; then | |
21728 | ac_header_compiler=yes | |
21729 | else | |
21730 | echo "$as_me: failed program was:" >&5 | |
21731 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21732 | ||
21733 | ac_header_compiler=no | |
21734 | fi | |
ac1cb8d3 | 21735 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21736 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21737 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21738 | ||
21739 | # Is the header present? | |
21740 | echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
21741 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 | |
21742 | cat >conftest.$ac_ext <<_ACEOF | |
21743 | /* confdefs.h. */ | |
21744 | _ACEOF | |
21745 | cat confdefs.h >>conftest.$ac_ext | |
21746 | cat >>conftest.$ac_ext <<_ACEOF | |
21747 | /* end confdefs.h. */ | |
21748 | #include <zlib.h> | |
21749 | _ACEOF | |
21750 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21751 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21752 | ac_status=$? | |
21753 | grep -v '^ *+' conftest.er1 >conftest.err | |
21754 | rm -f conftest.er1 | |
21755 | cat conftest.err >&5 | |
21756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21757 | (exit $ac_status); } >/dev/null; then | |
21758 | if test -s conftest.err; then | |
21759 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 21760 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
21761 | else |
21762 | ac_cpp_err= | |
21763 | fi | |
21764 | else | |
21765 | ac_cpp_err=yes | |
21766 | fi | |
21767 | if test -z "$ac_cpp_err"; then | |
21768 | ac_header_preproc=yes | |
21769 | else | |
21770 | echo "$as_me: failed program was:" >&5 | |
21771 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21772 | ||
21773 | ac_header_preproc=no | |
21774 | fi | |
21775 | rm -f conftest.err conftest.$ac_ext | |
21776 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21777 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21778 | ||
21779 | # So? What about this header? | |
ac1cb8d3 VS |
21780 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21781 | yes:no: ) | |
a848cd7e SC |
21782 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
21783 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21784 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 |
21785 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | |
21786 | ac_header_preproc=yes | |
a848cd7e | 21787 | ;; |
ac1cb8d3 | 21788 | no:yes:* ) |
a848cd7e SC |
21789 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 |
21790 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21791 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 |
21792 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
21793 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | |
21794 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | |
21795 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21796 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
21797 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 |
21798 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21799 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 |
21800 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
21801 | ( |
21802 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21803 | ## ----------------------------------------- ## |
21804 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21805 | ## ----------------------------------------- ## | |
a848cd7e SC |
21806 | _ASBOX |
21807 | ) | | |
21808 | sed "s/^/$as_me: WARNING: /" >&2 | |
21809 | ;; | |
21810 | esac | |
21811 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
21812 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
21813 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
21814 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21815 | else | |
21816 | ac_cv_header_zlib_h=$ac_header_preproc | |
21817 | fi | |
21818 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
21819 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
21820 | ||
21821 | fi | |
21822 | ||
21823 | ||
21824 | ||
21825 | system_zlib_h_ok=$ac_cv_header_zlib_h | |
21826 | fi | |
21827 | ||
21828 | if test "$system_zlib_h_ok" = "yes"; then | |
21829 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 | |
21830 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | |
21831 | if test "${ac_cv_lib_z_deflate+set}" = set; then | |
21832 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21833 | else | |
21834 | ac_check_lib_save_LIBS=$LIBS | |
21835 | LIBS="-lz $LIBS" | |
21836 | cat >conftest.$ac_ext <<_ACEOF | |
21837 | /* confdefs.h. */ | |
21838 | _ACEOF | |
21839 | cat confdefs.h >>conftest.$ac_ext | |
21840 | cat >>conftest.$ac_ext <<_ACEOF | |
21841 | /* end confdefs.h. */ | |
21842 | ||
21843 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21844 | #ifdef __cplusplus | |
21845 | extern "C" | |
21846 | #endif | |
21847 | /* We use char because int might match the return type of a gcc2 | |
21848 | builtin and then its argument prototype would still apply. */ | |
21849 | char deflate (); | |
21850 | int | |
21851 | main () | |
21852 | { | |
21853 | deflate (); | |
21854 | ; | |
21855 | return 0; | |
21856 | } | |
21857 | _ACEOF | |
21858 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21859 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 21860 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 21861 | ac_status=$? |
ac1cb8d3 VS |
21862 | grep -v '^ *+' conftest.er1 >conftest.err |
21863 | rm -f conftest.er1 | |
21864 | cat conftest.err >&5 | |
a848cd7e SC |
21865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21866 | (exit $ac_status); } && | |
89be85c2 VS |
21867 | { ac_try='test -z "$ac_c_werror_flag" |
21868 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21870 | (eval $ac_try) 2>&5 | |
21871 | ac_status=$? | |
21872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21873 | (exit $ac_status); }; } && | |
21874 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
21875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21876 | (eval $ac_try) 2>&5 | |
21877 | ac_status=$? | |
21878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21879 | (exit $ac_status); }; }; then | |
21880 | ac_cv_lib_z_deflate=yes | |
21881 | else | |
21882 | echo "$as_me: failed program was:" >&5 | |
21883 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21884 | ||
21885 | ac_cv_lib_z_deflate=no | |
21886 | fi | |
ac1cb8d3 VS |
21887 | rm -f conftest.err conftest.$ac_objext \ |
21888 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
21889 | LIBS=$ac_check_lib_save_LIBS |
21890 | fi | |
21891 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | |
21892 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | |
21893 | if test $ac_cv_lib_z_deflate = yes; then | |
21894 | ZLIB_LINK=" -lz" | |
21895 | fi | |
21896 | ||
21897 | fi | |
21898 | ||
21899 | if test "x$ZLIB_LINK" = "x" ; then | |
21900 | if test "$wxUSE_ZLIB" = "sys" ; then | |
21901 | { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5 | |
21902 | echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;} | |
21903 | { (exit 1); exit 1; }; } | |
21904 | else | |
21905 | { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5 | |
21906 | echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;} | |
21907 | wxUSE_ZLIB=builtin | |
21908 | fi | |
21909 | else | |
21910 | wxUSE_ZLIB=sys | |
21911 | fi | |
21912 | fi | |
21913 | fi | |
21914 | ||
21915 | ||
21916 | PNG_LINK= | |
21917 | if test "$wxUSE_LIBPNG" != "no" ; then | |
21918 | cat >>confdefs.h <<\_ACEOF | |
21919 | #define wxUSE_LIBPNG 1 | |
21920 | _ACEOF | |
21921 | ||
21922 | ||
21923 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then | |
21924 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5 | |
21925 | echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;} | |
21926 | wxUSE_LIBPNG=sys | |
21927 | fi | |
21928 | ||
21929 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then | |
21930 | { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5 | |
21931 | echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;} | |
21932 | wxUSE_LIBPNG=builtin | |
21933 | fi | |
21934 | ||
21935 | if test "$wxUSE_MGL" != 1 ; then | |
21936 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
21937 | echo "$as_me:$LINENO: checking for png.h > 0.90" >&5 | |
21938 | echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6 | |
21939 | if test "${ac_cv_header_png_h+set}" = set; then | |
21940 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21941 | else | |
21942 | if test "$cross_compiling" = yes; then | |
21943 | unset ac_cv_header_png_h | |
21944 | ||
21945 | else | |
21946 | cat >conftest.$ac_ext <<_ACEOF | |
21947 | /* confdefs.h. */ | |
21948 | _ACEOF | |
21949 | cat confdefs.h >>conftest.$ac_ext | |
21950 | cat >>conftest.$ac_ext <<_ACEOF | |
21951 | /* end confdefs.h. */ | |
21952 | ||
21953 | #include <png.h> | |
21954 | #include <stdio.h> | |
21955 | ||
21956 | int main() | |
21957 | { | |
21958 | FILE *f=fopen("conftestval", "w"); | |
21959 | if (!f) exit(1); | |
21960 | fprintf(f, "%s", | |
21961 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
21962 | exit(0); | |
21963 | } | |
21964 | ||
21965 | _ACEOF | |
21966 | rm -f conftest$ac_exeext | |
21967 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21968 | (eval $ac_link) 2>&5 | |
21969 | ac_status=$? | |
21970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21971 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21973 | (eval $ac_try) 2>&5 | |
21974 | ac_status=$? | |
21975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21976 | (exit $ac_status); }; }; then | |
21977 | ac_cv_header_png_h=`cat conftestval` | |
21978 | else | |
21979 | echo "$as_me: program exited with status $ac_status" >&5 | |
21980 | echo "$as_me: failed program was:" >&5 | |
21981 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21982 | ||
21983 | ( exit $ac_status ) | |
21984 | ac_cv_header_png_h=no | |
21985 | fi | |
ac1cb8d3 | 21986 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21987 | fi |
21988 | ||
21989 | fi | |
21990 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
21991 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
21992 | if test "${ac_cv_header_png_h+set}" = set; then | |
21993 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
21994 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
21995 | if test "${ac_cv_header_png_h+set}" = set; then | |
21996 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21997 | fi | |
21998 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
21999 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
22000 | else | |
22001 | # Is the header compilable? | |
22002 | echo "$as_me:$LINENO: checking png.h usability" >&5 | |
22003 | echo $ECHO_N "checking png.h usability... $ECHO_C" >&6 | |
22004 | cat >conftest.$ac_ext <<_ACEOF | |
22005 | /* confdefs.h. */ | |
22006 | _ACEOF | |
22007 | cat confdefs.h >>conftest.$ac_ext | |
22008 | cat >>conftest.$ac_ext <<_ACEOF | |
22009 | /* end confdefs.h. */ | |
22010 | $ac_includes_default | |
22011 | #include <png.h> | |
22012 | _ACEOF | |
22013 | rm -f conftest.$ac_objext | |
22014 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22015 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22016 | ac_status=$? |
ac1cb8d3 VS |
22017 | grep -v '^ *+' conftest.er1 >conftest.err |
22018 | rm -f conftest.er1 | |
22019 | cat conftest.err >&5 | |
a848cd7e SC |
22020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22021 | (exit $ac_status); } && | |
89be85c2 VS |
22022 | { ac_try='test -z "$ac_c_werror_flag" |
22023 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22025 | (eval $ac_try) 2>&5 | |
22026 | ac_status=$? | |
22027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22028 | (exit $ac_status); }; } && | |
22029 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22031 | (eval $ac_try) 2>&5 | |
22032 | ac_status=$? | |
22033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22034 | (exit $ac_status); }; }; then | |
22035 | ac_header_compiler=yes | |
22036 | else | |
22037 | echo "$as_me: failed program was:" >&5 | |
22038 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22039 | ||
22040 | ac_header_compiler=no | |
22041 | fi | |
ac1cb8d3 | 22042 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22043 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22044 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22045 | ||
22046 | # Is the header present? | |
22047 | echo "$as_me:$LINENO: checking png.h presence" >&5 | |
22048 | echo $ECHO_N "checking png.h presence... $ECHO_C" >&6 | |
22049 | cat >conftest.$ac_ext <<_ACEOF | |
22050 | /* confdefs.h. */ | |
22051 | _ACEOF | |
22052 | cat confdefs.h >>conftest.$ac_ext | |
22053 | cat >>conftest.$ac_ext <<_ACEOF | |
22054 | /* end confdefs.h. */ | |
22055 | #include <png.h> | |
22056 | _ACEOF | |
22057 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22058 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22059 | ac_status=$? | |
22060 | grep -v '^ *+' conftest.er1 >conftest.err | |
22061 | rm -f conftest.er1 | |
22062 | cat conftest.err >&5 | |
22063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22064 | (exit $ac_status); } >/dev/null; then | |
22065 | if test -s conftest.err; then | |
22066 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 22067 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
22068 | else |
22069 | ac_cpp_err= | |
22070 | fi | |
22071 | else | |
22072 | ac_cpp_err=yes | |
22073 | fi | |
22074 | if test -z "$ac_cpp_err"; then | |
22075 | ac_header_preproc=yes | |
22076 | else | |
22077 | echo "$as_me: failed program was:" >&5 | |
22078 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22079 | ||
22080 | ac_header_preproc=no | |
22081 | fi | |
22082 | rm -f conftest.err conftest.$ac_ext | |
22083 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22084 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22085 | ||
22086 | # So? What about this header? | |
ac1cb8d3 VS |
22087 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22088 | yes:no: ) | |
a848cd7e SC |
22089 | { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
22090 | echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22091 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5 |
22092 | echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;} | |
22093 | ac_header_preproc=yes | |
a848cd7e | 22094 | ;; |
ac1cb8d3 | 22095 | no:yes:* ) |
a848cd7e SC |
22096 | { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5 |
22097 | echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22098 | { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5 |
22099 | echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;} | |
22100 | { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5 | |
22101 | echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;} | |
22102 | { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5 | |
22103 | echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22104 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 |
22105 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22106 | { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5 |
22107 | echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22108 | ( |
22109 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22110 | ## ----------------------------------------- ## |
22111 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22112 | ## ----------------------------------------- ## | |
a848cd7e SC |
22113 | _ASBOX |
22114 | ) | | |
22115 | sed "s/^/$as_me: WARNING: /" >&2 | |
22116 | ;; | |
22117 | esac | |
22118 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
22119 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
22120 | if test "${ac_cv_header_png_h+set}" = set; then | |
22121 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22122 | else | |
22123 | ac_cv_header_png_h=$ac_header_preproc | |
22124 | fi | |
22125 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
22126 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
22127 | ||
22128 | fi | |
22129 | ||
22130 | ||
22131 | ||
22132 | if test "$ac_cv_header_png_h" = "yes"; then | |
22133 | echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5 | |
22134 | echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6 | |
22135 | if test "${ac_cv_lib_png_png_check_sig+set}" = set; then | |
22136 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22137 | else | |
22138 | ac_check_lib_save_LIBS=$LIBS | |
22139 | LIBS="-lpng -lz -lm $LIBS" | |
22140 | cat >conftest.$ac_ext <<_ACEOF | |
22141 | /* confdefs.h. */ | |
22142 | _ACEOF | |
22143 | cat confdefs.h >>conftest.$ac_ext | |
22144 | cat >>conftest.$ac_ext <<_ACEOF | |
22145 | /* end confdefs.h. */ | |
22146 | ||
22147 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22148 | #ifdef __cplusplus | |
22149 | extern "C" | |
22150 | #endif | |
22151 | /* We use char because int might match the return type of a gcc2 | |
22152 | builtin and then its argument prototype would still apply. */ | |
22153 | char png_check_sig (); | |
22154 | int | |
22155 | main () | |
22156 | { | |
22157 | png_check_sig (); | |
22158 | ; | |
22159 | return 0; | |
22160 | } | |
22161 | _ACEOF | |
22162 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22163 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 22164 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 22165 | ac_status=$? |
ac1cb8d3 VS |
22166 | grep -v '^ *+' conftest.er1 >conftest.err |
22167 | rm -f conftest.er1 | |
22168 | cat conftest.err >&5 | |
a848cd7e SC |
22169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22170 | (exit $ac_status); } && | |
89be85c2 VS |
22171 | { ac_try='test -z "$ac_c_werror_flag" |
22172 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
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); }; } && | |
22178 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
22179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22180 | (eval $ac_try) 2>&5 | |
22181 | ac_status=$? | |
22182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22183 | (exit $ac_status); }; }; then | |
22184 | ac_cv_lib_png_png_check_sig=yes | |
22185 | else | |
22186 | echo "$as_me: failed program was:" >&5 | |
22187 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22188 | ||
22189 | ac_cv_lib_png_png_check_sig=no | |
22190 | fi | |
ac1cb8d3 VS |
22191 | rm -f conftest.err conftest.$ac_objext \ |
22192 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
22193 | LIBS=$ac_check_lib_save_LIBS |
22194 | fi | |
22195 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5 | |
22196 | echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6 | |
22197 | if test $ac_cv_lib_png_png_check_sig = yes; then | |
22198 | PNG_LINK=" -lpng -lz" | |
22199 | fi | |
22200 | ||
22201 | fi | |
22202 | ||
22203 | if test "x$PNG_LINK" = "x" ; then | |
22204 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
22205 | { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5 | |
22206 | echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;} | |
22207 | { (exit 1); exit 1; }; } | |
22208 | else | |
22209 | { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5 | |
22210 | echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;} | |
22211 | wxUSE_LIBPNG=builtin | |
22212 | fi | |
22213 | else | |
22214 | wxUSE_LIBPNG=sys | |
22215 | fi | |
22216 | fi | |
22217 | fi | |
22218 | ||
22219 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" | |
22220 | fi | |
22221 | ||
22222 | ||
22223 | JPEG_LINK= | |
22224 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
22225 | cat >>confdefs.h <<\_ACEOF | |
22226 | #define wxUSE_LIBJPEG 1 | |
22227 | _ACEOF | |
22228 | ||
22229 | ||
22230 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then | |
22231 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5 | |
22232 | echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;} | |
22233 | wxUSE_LIBJPEG=sys | |
22234 | fi | |
22235 | ||
22236 | if test "$wxUSE_MGL" != 1 ; then | |
22237 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
22238 | echo "$as_me:$LINENO: checking for jpeglib.h" >&5 | |
22239 | echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6 | |
22240 | if test "${ac_cv_header_jpeglib_h+set}" = set; then | |
22241 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22242 | else | |
22243 | cat >conftest.$ac_ext <<_ACEOF | |
22244 | /* confdefs.h. */ | |
22245 | _ACEOF | |
22246 | cat confdefs.h >>conftest.$ac_ext | |
22247 | cat >>conftest.$ac_ext <<_ACEOF | |
22248 | /* end confdefs.h. */ | |
22249 | ||
22250 | #undef HAVE_STDLIB_H | |
22251 | #include <stdio.h> | |
22252 | #include <jpeglib.h> | |
22253 | ||
22254 | int | |
22255 | main () | |
22256 | { | |
22257 | ||
22258 | ||
22259 | ; | |
22260 | return 0; | |
22261 | } | |
22262 | _ACEOF | |
22263 | rm -f conftest.$ac_objext | |
22264 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22265 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22266 | ac_status=$? |
ac1cb8d3 VS |
22267 | grep -v '^ *+' conftest.er1 >conftest.err |
22268 | rm -f conftest.er1 | |
22269 | cat conftest.err >&5 | |
a848cd7e SC |
22270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22271 | (exit $ac_status); } && | |
89be85c2 VS |
22272 | { ac_try='test -z "$ac_c_werror_flag" |
22273 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22275 | (eval $ac_try) 2>&5 | |
22276 | ac_status=$? | |
22277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22278 | (exit $ac_status); }; } && | |
22279 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22281 | (eval $ac_try) 2>&5 | |
22282 | ac_status=$? | |
22283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22284 | (exit $ac_status); }; }; then | |
22285 | ac_cv_header_jpeglib_h=yes | |
22286 | else | |
22287 | echo "$as_me: failed program was:" >&5 | |
22288 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22289 | ||
22290 | ac_cv_header_jpeglib_h=no | |
22291 | ||
22292 | fi | |
ac1cb8d3 | 22293 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22294 | |
22295 | fi | |
22296 | ||
22297 | echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5 | |
22298 | echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6 | |
22299 | ||
22300 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
22301 | echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5 | |
22302 | echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6 | |
22303 | if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then | |
22304 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22305 | else | |
22306 | ac_check_lib_save_LIBS=$LIBS | |
22307 | LIBS="-ljpeg $LIBS" | |
22308 | cat >conftest.$ac_ext <<_ACEOF | |
22309 | /* confdefs.h. */ | |
22310 | _ACEOF | |
22311 | cat confdefs.h >>conftest.$ac_ext | |
22312 | cat >>conftest.$ac_ext <<_ACEOF | |
22313 | /* end confdefs.h. */ | |
22314 | ||
22315 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22316 | #ifdef __cplusplus | |
22317 | extern "C" | |
22318 | #endif | |
22319 | /* We use char because int might match the return type of a gcc2 | |
22320 | builtin and then its argument prototype would still apply. */ | |
22321 | char jpeg_read_header (); | |
22322 | int | |
22323 | main () | |
22324 | { | |
22325 | jpeg_read_header (); | |
22326 | ; | |
22327 | return 0; | |
22328 | } | |
22329 | _ACEOF | |
22330 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22331 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 22332 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 22333 | ac_status=$? |
ac1cb8d3 VS |
22334 | grep -v '^ *+' conftest.er1 >conftest.err |
22335 | rm -f conftest.er1 | |
22336 | cat conftest.err >&5 | |
a848cd7e SC |
22337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22338 | (exit $ac_status); } && | |
89be85c2 VS |
22339 | { ac_try='test -z "$ac_c_werror_flag" |
22340 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22342 | (eval $ac_try) 2>&5 | |
22343 | ac_status=$? | |
22344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22345 | (exit $ac_status); }; } && | |
22346 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
22347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22348 | (eval $ac_try) 2>&5 | |
22349 | ac_status=$? | |
22350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22351 | (exit $ac_status); }; }; then | |
22352 | ac_cv_lib_jpeg_jpeg_read_header=yes | |
22353 | else | |
22354 | echo "$as_me: failed program was:" >&5 | |
22355 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22356 | ||
22357 | ac_cv_lib_jpeg_jpeg_read_header=no | |
22358 | fi | |
ac1cb8d3 VS |
22359 | rm -f conftest.err conftest.$ac_objext \ |
22360 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
22361 | LIBS=$ac_check_lib_save_LIBS |
22362 | fi | |
22363 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 | |
22364 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6 | |
22365 | if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then | |
22366 | JPEG_LINK=" -ljpeg" | |
22367 | fi | |
22368 | ||
22369 | fi | |
22370 | ||
22371 | if test "x$JPEG_LINK" = "x" ; then | |
22372 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
22373 | { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5 | |
22374 | echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;} | |
22375 | { (exit 1); exit 1; }; } | |
22376 | else | |
22377 | { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5 | |
22378 | echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;} | |
22379 | wxUSE_LIBJPEG=builtin | |
22380 | fi | |
22381 | else | |
22382 | wxUSE_LIBJPEG=sys | |
22383 | fi | |
22384 | fi | |
22385 | fi | |
22386 | fi | |
22387 | ||
22388 | ||
22389 | TIFF_LINK= | |
22390 | TIFF_PREREQ_LINKS=-lm | |
22391 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
22392 | cat >>confdefs.h <<\_ACEOF | |
22393 | #define wxUSE_LIBTIFF 1 | |
22394 | _ACEOF | |
22395 | ||
22396 | ||
22397 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
22398 | if test "$wxUSE_LIBJPEG" = "sys"; then | |
22399 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
22400 | fi | |
22401 | if test "$wxUSE_ZLIB" = "sys"; then | |
22402 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
22403 | fi | |
22404 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
22405 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
22406 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
22407 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
22408 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22409 | fi | |
22410 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
22411 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
22412 | else | |
22413 | # Is the header compilable? | |
22414 | echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
22415 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 | |
22416 | cat >conftest.$ac_ext <<_ACEOF | |
22417 | /* confdefs.h. */ | |
22418 | _ACEOF | |
22419 | cat confdefs.h >>conftest.$ac_ext | |
22420 | cat >>conftest.$ac_ext <<_ACEOF | |
22421 | /* end confdefs.h. */ | |
22422 | $ac_includes_default | |
22423 | #include <tiffio.h> | |
22424 | _ACEOF | |
22425 | rm -f conftest.$ac_objext | |
22426 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22427 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22428 | ac_status=$? |
ac1cb8d3 VS |
22429 | grep -v '^ *+' conftest.er1 >conftest.err |
22430 | rm -f conftest.er1 | |
22431 | cat conftest.err >&5 | |
a848cd7e SC |
22432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22433 | (exit $ac_status); } && | |
89be85c2 VS |
22434 | { ac_try='test -z "$ac_c_werror_flag" |
22435 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22437 | (eval $ac_try) 2>&5 | |
22438 | ac_status=$? | |
22439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22440 | (exit $ac_status); }; } && | |
22441 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22443 | (eval $ac_try) 2>&5 | |
22444 | ac_status=$? | |
22445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22446 | (exit $ac_status); }; }; then | |
22447 | ac_header_compiler=yes | |
22448 | else | |
22449 | echo "$as_me: failed program was:" >&5 | |
22450 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22451 | ||
22452 | ac_header_compiler=no | |
22453 | fi | |
ac1cb8d3 | 22454 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22455 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22456 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22457 | ||
22458 | # Is the header present? | |
22459 | echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
22460 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 | |
22461 | cat >conftest.$ac_ext <<_ACEOF | |
22462 | /* confdefs.h. */ | |
22463 | _ACEOF | |
22464 | cat confdefs.h >>conftest.$ac_ext | |
22465 | cat >>conftest.$ac_ext <<_ACEOF | |
22466 | /* end confdefs.h. */ | |
22467 | #include <tiffio.h> | |
22468 | _ACEOF | |
22469 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22470 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22471 | ac_status=$? | |
22472 | grep -v '^ *+' conftest.er1 >conftest.err | |
22473 | rm -f conftest.er1 | |
22474 | cat conftest.err >&5 | |
22475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22476 | (exit $ac_status); } >/dev/null; then | |
22477 | if test -s conftest.err; then | |
22478 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 22479 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
22480 | else |
22481 | ac_cpp_err= | |
22482 | fi | |
22483 | else | |
22484 | ac_cpp_err=yes | |
22485 | fi | |
22486 | if test -z "$ac_cpp_err"; then | |
22487 | ac_header_preproc=yes | |
22488 | else | |
22489 | echo "$as_me: failed program was:" >&5 | |
22490 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22491 | ||
22492 | ac_header_preproc=no | |
22493 | fi | |
22494 | rm -f conftest.err conftest.$ac_ext | |
22495 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22496 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22497 | ||
22498 | # So? What about this header? | |
ac1cb8d3 VS |
22499 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22500 | yes:no: ) | |
a848cd7e SC |
22501 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
22502 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22503 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5 |
22504 | echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;} | |
22505 | ac_header_preproc=yes | |
a848cd7e | 22506 | ;; |
ac1cb8d3 | 22507 | no:yes:* ) |
a848cd7e SC |
22508 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 |
22509 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22510 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 |
22511 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
22512 | { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5 | |
22513 | echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;} | |
22514 | { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5 | |
22515 | echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22516 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
22517 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22518 | { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5 |
22519 | echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22520 | ( |
22521 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22522 | ## ----------------------------------------- ## |
22523 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22524 | ## ----------------------------------------- ## | |
a848cd7e SC |
22525 | _ASBOX |
22526 | ) | | |
22527 | sed "s/^/$as_me: WARNING: /" >&2 | |
22528 | ;; | |
22529 | esac | |
22530 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
22531 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
22532 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
22533 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22534 | else | |
22535 | ac_cv_header_tiffio_h=$ac_header_preproc | |
22536 | fi | |
22537 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
22538 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
22539 | ||
22540 | fi | |
22541 | if test $ac_cv_header_tiffio_h = yes; then | |
22542 | ||
22543 | echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5 | |
22544 | echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6 | |
22545 | if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then | |
22546 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22547 | else | |
22548 | ac_check_lib_save_LIBS=$LIBS | |
22549 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" | |
22550 | cat >conftest.$ac_ext <<_ACEOF | |
22551 | /* confdefs.h. */ | |
22552 | _ACEOF | |
22553 | cat confdefs.h >>conftest.$ac_ext | |
22554 | cat >>conftest.$ac_ext <<_ACEOF | |
22555 | /* end confdefs.h. */ | |
22556 | ||
22557 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22558 | #ifdef __cplusplus | |
22559 | extern "C" | |
22560 | #endif | |
22561 | /* We use char because int might match the return type of a gcc2 | |
22562 | builtin and then its argument prototype would still apply. */ | |
22563 | char TIFFError (); | |
22564 | int | |
22565 | main () | |
22566 | { | |
22567 | TIFFError (); | |
22568 | ; | |
22569 | return 0; | |
22570 | } | |
22571 | _ACEOF | |
22572 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22573 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 22574 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 22575 | ac_status=$? |
ac1cb8d3 VS |
22576 | grep -v '^ *+' conftest.er1 >conftest.err |
22577 | rm -f conftest.er1 | |
22578 | cat conftest.err >&5 | |
a848cd7e SC |
22579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22580 | (exit $ac_status); } && | |
89be85c2 VS |
22581 | { ac_try='test -z "$ac_c_werror_flag" |
22582 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22584 | (eval $ac_try) 2>&5 | |
22585 | ac_status=$? | |
22586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22587 | (exit $ac_status); }; } && | |
22588 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
22589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22590 | (eval $ac_try) 2>&5 | |
22591 | ac_status=$? | |
22592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22593 | (exit $ac_status); }; }; then | |
22594 | ac_cv_lib_tiff_TIFFError=yes | |
22595 | else | |
22596 | echo "$as_me: failed program was:" >&5 | |
22597 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22598 | ||
22599 | ac_cv_lib_tiff_TIFFError=no | |
22600 | fi | |
ac1cb8d3 VS |
22601 | rm -f conftest.err conftest.$ac_objext \ |
22602 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
22603 | LIBS=$ac_check_lib_save_LIBS |
22604 | fi | |
22605 | echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5 | |
22606 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6 | |
22607 | if test $ac_cv_lib_tiff_TIFFError = yes; then | |
22608 | TIFF_LINK=" -ltiff" | |
22609 | fi | |
22610 | ||
22611 | ||
22612 | ||
22613 | fi | |
22614 | ||
22615 | ||
22616 | ||
22617 | if test "x$TIFF_LINK" = "x" ; then | |
22618 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
22619 | { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5 | |
22620 | echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;} | |
22621 | { (exit 1); exit 1; }; } | |
22622 | else | |
22623 | { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5 | |
22624 | echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;} | |
22625 | wxUSE_LIBTIFF=builtin | |
22626 | fi | |
22627 | else | |
22628 | wxUSE_LIBTIFF=sys | |
22629 | fi | |
22630 | fi | |
22631 | fi | |
22632 | ||
22633 | ||
22634 | if test "$wxUSE_EXPAT" != "no"; then | |
22635 | wxUSE_XML=yes | |
22636 | cat >>confdefs.h <<\_ACEOF | |
22637 | #define wxUSE_EXPAT 1 | |
22638 | _ACEOF | |
22639 | ||
22640 | cat >>confdefs.h <<\_ACEOF | |
22641 | #define wxUSE_XML 1 | |
22642 | _ACEOF | |
22643 | ||
22644 | ||
22645 | if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then | |
22646 | if test "${ac_cv_header_expat_h+set}" = set; then | |
22647 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
22648 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
22649 | if test "${ac_cv_header_expat_h+set}" = set; then | |
22650 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22651 | fi | |
22652 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
22653 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
22654 | else | |
22655 | # Is the header compilable? | |
22656 | echo "$as_me:$LINENO: checking expat.h usability" >&5 | |
22657 | echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6 | |
22658 | cat >conftest.$ac_ext <<_ACEOF | |
22659 | /* confdefs.h. */ | |
22660 | _ACEOF | |
22661 | cat confdefs.h >>conftest.$ac_ext | |
22662 | cat >>conftest.$ac_ext <<_ACEOF | |
22663 | /* end confdefs.h. */ | |
22664 | $ac_includes_default | |
22665 | #include <expat.h> | |
22666 | _ACEOF | |
22667 | rm -f conftest.$ac_objext | |
22668 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22669 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22670 | ac_status=$? |
ac1cb8d3 VS |
22671 | grep -v '^ *+' conftest.er1 >conftest.err |
22672 | rm -f conftest.er1 | |
22673 | cat conftest.err >&5 | |
a848cd7e SC |
22674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22675 | (exit $ac_status); } && | |
89be85c2 VS |
22676 | { ac_try='test -z "$ac_c_werror_flag" |
22677 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22679 | (eval $ac_try) 2>&5 | |
22680 | ac_status=$? | |
22681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22682 | (exit $ac_status); }; } && | |
22683 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22685 | (eval $ac_try) 2>&5 | |
22686 | ac_status=$? | |
22687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22688 | (exit $ac_status); }; }; then | |
22689 | ac_header_compiler=yes | |
22690 | else | |
22691 | echo "$as_me: failed program was:" >&5 | |
22692 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22693 | ||
22694 | ac_header_compiler=no | |
22695 | fi | |
ac1cb8d3 | 22696 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22697 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22698 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22699 | ||
22700 | # Is the header present? | |
22701 | echo "$as_me:$LINENO: checking expat.h presence" >&5 | |
22702 | echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6 | |
22703 | cat >conftest.$ac_ext <<_ACEOF | |
22704 | /* confdefs.h. */ | |
22705 | _ACEOF | |
22706 | cat confdefs.h >>conftest.$ac_ext | |
22707 | cat >>conftest.$ac_ext <<_ACEOF | |
22708 | /* end confdefs.h. */ | |
22709 | #include <expat.h> | |
22710 | _ACEOF | |
22711 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22712 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22713 | ac_status=$? | |
22714 | grep -v '^ *+' conftest.er1 >conftest.err | |
22715 | rm -f conftest.er1 | |
22716 | cat conftest.err >&5 | |
22717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22718 | (exit $ac_status); } >/dev/null; then | |
22719 | if test -s conftest.err; then | |
22720 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 22721 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
22722 | else |
22723 | ac_cpp_err= | |
22724 | fi | |
22725 | else | |
22726 | ac_cpp_err=yes | |
22727 | fi | |
22728 | if test -z "$ac_cpp_err"; then | |
22729 | ac_header_preproc=yes | |
22730 | else | |
22731 | echo "$as_me: failed program was:" >&5 | |
22732 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22733 | ||
22734 | ac_header_preproc=no | |
22735 | fi | |
22736 | rm -f conftest.err conftest.$ac_ext | |
22737 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22738 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22739 | ||
22740 | # So? What about this header? | |
ac1cb8d3 VS |
22741 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22742 | yes:no: ) | |
a848cd7e SC |
22743 | { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
22744 | echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22745 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5 |
22746 | echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;} | |
22747 | ac_header_preproc=yes | |
a848cd7e | 22748 | ;; |
ac1cb8d3 | 22749 | no:yes:* ) |
a848cd7e SC |
22750 | { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5 |
22751 | echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22752 | { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5 |
22753 | echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;} | |
22754 | { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5 | |
22755 | echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;} | |
22756 | { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5 | |
22757 | echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22758 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5 |
22759 | echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22760 | { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5 |
22761 | echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22762 | ( |
22763 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22764 | ## ----------------------------------------- ## |
22765 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22766 | ## ----------------------------------------- ## | |
a848cd7e SC |
22767 | _ASBOX |
22768 | ) | | |
22769 | sed "s/^/$as_me: WARNING: /" >&2 | |
22770 | ;; | |
22771 | esac | |
22772 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
22773 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
22774 | if test "${ac_cv_header_expat_h+set}" = set; then | |
22775 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22776 | else | |
22777 | ac_cv_header_expat_h=$ac_header_preproc | |
22778 | fi | |
22779 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
22780 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
22781 | ||
22782 | fi | |
22783 | if test $ac_cv_header_expat_h = yes; then | |
22784 | found_expat_h=1 | |
22785 | fi | |
22786 | ||
22787 | ||
22788 | if test "x$found_expat_h" = "x1"; then | |
22789 | echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5 | |
22790 | echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6 | |
22791 | if test "${wx_cv_expat_is_not_broken+set}" = set; then | |
22792 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22793 | else | |
22794 | ||
22795 | ||
22796 | ||
22797 | ac_ext=cc | |
22798 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22799 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22800 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22801 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22802 | ||
22803 | cat >conftest.$ac_ext <<_ACEOF | |
22804 | /* confdefs.h. */ | |
22805 | _ACEOF | |
22806 | cat confdefs.h >>conftest.$ac_ext | |
22807 | cat >>conftest.$ac_ext <<_ACEOF | |
22808 | /* end confdefs.h. */ | |
22809 | #include <expat.h> | |
22810 | int | |
22811 | main () | |
22812 | { | |
22813 | ||
22814 | ; | |
22815 | return 0; | |
22816 | } | |
22817 | _ACEOF | |
22818 | rm -f conftest.$ac_objext | |
22819 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22820 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22821 | ac_status=$? |
ac1cb8d3 VS |
22822 | grep -v '^ *+' conftest.er1 >conftest.err |
22823 | rm -f conftest.er1 | |
22824 | cat conftest.err >&5 | |
a848cd7e SC |
22825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22826 | (exit $ac_status); } && | |
89be85c2 VS |
22827 | { ac_try='test -z "$ac_cxx_werror_flag" |
22828 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22830 | (eval $ac_try) 2>&5 | |
22831 | ac_status=$? | |
22832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22833 | (exit $ac_status); }; } && | |
22834 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22836 | (eval $ac_try) 2>&5 | |
22837 | ac_status=$? | |
22838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22839 | (exit $ac_status); }; }; then | |
22840 | wx_cv_expat_is_not_broken=yes | |
22841 | else | |
22842 | echo "$as_me: failed program was:" >&5 | |
22843 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22844 | ||
22845 | wx_cv_expat_is_not_broken=no | |
22846 | ||
22847 | fi | |
ac1cb8d3 | 22848 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22849 | ac_ext=c |
22850 | ac_cpp='$CPP $CPPFLAGS' | |
22851 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22852 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22853 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
22854 | ||
22855 | ||
22856 | ||
22857 | fi | |
22858 | echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5 | |
22859 | echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6 | |
22860 | if test "$wx_cv_expat_is_not_broken" = "yes" ; then | |
22861 | echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5 | |
22862 | echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6 | |
22863 | if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then | |
22864 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22865 | else | |
22866 | ac_check_lib_save_LIBS=$LIBS | |
22867 | LIBS="-lexpat $LIBS" | |
22868 | cat >conftest.$ac_ext <<_ACEOF | |
22869 | /* confdefs.h. */ | |
22870 | _ACEOF | |
22871 | cat confdefs.h >>conftest.$ac_ext | |
22872 | cat >>conftest.$ac_ext <<_ACEOF | |
22873 | /* end confdefs.h. */ | |
22874 | ||
22875 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22876 | #ifdef __cplusplus | |
22877 | extern "C" | |
22878 | #endif | |
22879 | /* We use char because int might match the return type of a gcc2 | |
22880 | builtin and then its argument prototype would still apply. */ | |
22881 | char XML_ParserCreate (); | |
22882 | int | |
22883 | main () | |
22884 | { | |
22885 | XML_ParserCreate (); | |
22886 | ; | |
22887 | return 0; | |
22888 | } | |
22889 | _ACEOF | |
22890 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22891 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 22892 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 22893 | ac_status=$? |
ac1cb8d3 VS |
22894 | grep -v '^ *+' conftest.er1 >conftest.err |
22895 | rm -f conftest.er1 | |
22896 | cat conftest.err >&5 | |
a848cd7e SC |
22897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22898 | (exit $ac_status); } && | |
89be85c2 VS |
22899 | { ac_try='test -z "$ac_c_werror_flag" |
22900 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22902 | (eval $ac_try) 2>&5 | |
22903 | ac_status=$? | |
22904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22905 | (exit $ac_status); }; } && | |
22906 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
22907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22908 | (eval $ac_try) 2>&5 | |
22909 | ac_status=$? | |
22910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22911 | (exit $ac_status); }; }; then | |
22912 | ac_cv_lib_expat_XML_ParserCreate=yes | |
22913 | else | |
22914 | echo "$as_me: failed program was:" >&5 | |
22915 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22916 | ||
22917 | ac_cv_lib_expat_XML_ParserCreate=no | |
22918 | fi | |
ac1cb8d3 VS |
22919 | rm -f conftest.err conftest.$ac_objext \ |
22920 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
22921 | LIBS=$ac_check_lib_save_LIBS |
22922 | fi | |
22923 | echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5 | |
22924 | echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6 | |
22925 | if test $ac_cv_lib_expat_XML_ParserCreate = yes; then | |
22926 | EXPAT_LINK=" -lexpat" | |
22927 | fi | |
22928 | ||
22929 | fi | |
22930 | fi | |
22931 | if test "x$EXPAT_LINK" = "x" ; then | |
22932 | if test "$wxUSE_EXPAT" = "sys" ; then | |
22933 | { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5 | |
22934 | echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;} | |
22935 | { (exit 1); exit 1; }; } | |
22936 | else | |
22937 | { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5 | |
22938 | echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;} | |
22939 | wxUSE_EXPAT=builtin | |
22940 | fi | |
22941 | else | |
22942 | wxUSE_EXPAT=sys | |
22943 | fi | |
22944 | fi | |
22945 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
22946 | ||
22947 | ||
22948 | subdirs="$subdirs src/expat" | |
22949 | ||
22950 | fi | |
22951 | fi | |
22952 | ||
22953 | ||
22954 | ||
22955 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
a848cd7e SC |
22956 | if test "${ac_cv_header_mspack_h+set}" = set; then |
22957 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
22958 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
22959 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
22960 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22961 | fi | |
22962 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
22963 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
22964 | else | |
22965 | # Is the header compilable? | |
22966 | echo "$as_me:$LINENO: checking mspack.h usability" >&5 | |
22967 | echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6 | |
22968 | cat >conftest.$ac_ext <<_ACEOF | |
22969 | /* confdefs.h. */ | |
22970 | _ACEOF | |
22971 | cat confdefs.h >>conftest.$ac_ext | |
22972 | cat >>conftest.$ac_ext <<_ACEOF | |
22973 | /* end confdefs.h. */ | |
22974 | $ac_includes_default | |
22975 | #include <mspack.h> | |
22976 | _ACEOF | |
22977 | rm -f conftest.$ac_objext | |
22978 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22979 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22980 | ac_status=$? |
ac1cb8d3 VS |
22981 | grep -v '^ *+' conftest.er1 >conftest.err |
22982 | rm -f conftest.er1 | |
22983 | cat conftest.err >&5 | |
a848cd7e SC |
22984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22985 | (exit $ac_status); } && | |
89be85c2 VS |
22986 | { ac_try='test -z "$ac_c_werror_flag" |
22987 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22989 | (eval $ac_try) 2>&5 | |
22990 | ac_status=$? | |
22991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22992 | (exit $ac_status); }; } && | |
22993 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22995 | (eval $ac_try) 2>&5 | |
22996 | ac_status=$? | |
22997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22998 | (exit $ac_status); }; }; then | |
22999 | ac_header_compiler=yes | |
23000 | else | |
23001 | echo "$as_me: failed program was:" >&5 | |
23002 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23003 | ||
23004 | ac_header_compiler=no | |
23005 | fi | |
ac1cb8d3 | 23006 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23007 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23008 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23009 | ||
23010 | # Is the header present? | |
23011 | echo "$as_me:$LINENO: checking mspack.h presence" >&5 | |
23012 | echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6 | |
23013 | cat >conftest.$ac_ext <<_ACEOF | |
23014 | /* confdefs.h. */ | |
23015 | _ACEOF | |
23016 | cat confdefs.h >>conftest.$ac_ext | |
23017 | cat >>conftest.$ac_ext <<_ACEOF | |
23018 | /* end confdefs.h. */ | |
23019 | #include <mspack.h> | |
23020 | _ACEOF | |
23021 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23022 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23023 | ac_status=$? | |
23024 | grep -v '^ *+' conftest.er1 >conftest.err | |
23025 | rm -f conftest.er1 | |
23026 | cat conftest.err >&5 | |
23027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23028 | (exit $ac_status); } >/dev/null; then | |
23029 | if test -s conftest.err; then | |
23030 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 23031 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
23032 | else |
23033 | ac_cpp_err= | |
23034 | fi | |
23035 | else | |
23036 | ac_cpp_err=yes | |
23037 | fi | |
23038 | if test -z "$ac_cpp_err"; then | |
23039 | ac_header_preproc=yes | |
23040 | else | |
23041 | echo "$as_me: failed program was:" >&5 | |
23042 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23043 | ||
23044 | ac_header_preproc=no | |
23045 | fi | |
23046 | rm -f conftest.err conftest.$ac_ext | |
23047 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23048 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
23049 | ||
23050 | # So? What about this header? | |
ac1cb8d3 VS |
23051 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
23052 | yes:no: ) | |
a848cd7e SC |
23053 | { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
23054 | echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
23055 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5 |
23056 | echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;} | |
23057 | ac_header_preproc=yes | |
a848cd7e | 23058 | ;; |
ac1cb8d3 | 23059 | no:yes:* ) |
a848cd7e SC |
23060 | { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5 |
23061 | echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
23062 | { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5 |
23063 | echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;} | |
23064 | { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5 | |
23065 | echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;} | |
23066 | { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5 | |
23067 | echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
23068 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5 |
23069 | echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
23070 | { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5 |
23071 | echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
23072 | ( |
23073 | cat <<\_ASBOX | |
ac1cb8d3 VS |
23074 | ## ----------------------------------------- ## |
23075 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
23076 | ## ----------------------------------------- ## | |
a848cd7e SC |
23077 | _ASBOX |
23078 | ) | | |
23079 | sed "s/^/$as_me: WARNING: /" >&2 | |
23080 | ;; | |
23081 | esac | |
23082 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
23083 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
23084 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
23085 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23086 | else | |
23087 | ac_cv_header_mspack_h=$ac_header_preproc | |
23088 | fi | |
23089 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
23090 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
23091 | ||
23092 | fi | |
23093 | if test $ac_cv_header_mspack_h = yes; then | |
23094 | found_mspack_h=1 | |
23095 | fi | |
23096 | ||
23097 | ||
23098 | if test "x$found_mspack_h" = "x1"; then | |
23099 | echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5 | |
23100 | echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6 | |
23101 | if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then | |
23102 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23103 | else | |
23104 | ac_check_lib_save_LIBS=$LIBS | |
23105 | LIBS="-lmspack $LIBS" | |
23106 | cat >conftest.$ac_ext <<_ACEOF | |
23107 | /* confdefs.h. */ | |
23108 | _ACEOF | |
23109 | cat confdefs.h >>conftest.$ac_ext | |
23110 | cat >>conftest.$ac_ext <<_ACEOF | |
23111 | /* end confdefs.h. */ | |
23112 | ||
23113 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23114 | #ifdef __cplusplus | |
23115 | extern "C" | |
23116 | #endif | |
23117 | /* We use char because int might match the return type of a gcc2 | |
23118 | builtin and then its argument prototype would still apply. */ | |
23119 | char mspack_create_chm_decompressor (); | |
23120 | int | |
23121 | main () | |
23122 | { | |
23123 | mspack_create_chm_decompressor (); | |
23124 | ; | |
23125 | return 0; | |
23126 | } | |
23127 | _ACEOF | |
23128 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23129 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23130 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23131 | ac_status=$? |
ac1cb8d3 VS |
23132 | grep -v '^ *+' conftest.er1 >conftest.err |
23133 | rm -f conftest.er1 | |
23134 | cat conftest.err >&5 | |
a848cd7e SC |
23135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23136 | (exit $ac_status); } && | |
89be85c2 VS |
23137 | { ac_try='test -z "$ac_c_werror_flag" |
23138 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23140 | (eval $ac_try) 2>&5 | |
23141 | ac_status=$? | |
23142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23143 | (exit $ac_status); }; } && | |
23144 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23146 | (eval $ac_try) 2>&5 | |
23147 | ac_status=$? | |
23148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23149 | (exit $ac_status); }; }; then | |
23150 | ac_cv_lib_mspack_mspack_create_chm_decompressor=yes | |
23151 | else | |
23152 | echo "$as_me: failed program was:" >&5 | |
23153 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23154 | ||
23155 | ac_cv_lib_mspack_mspack_create_chm_decompressor=no | |
23156 | fi | |
ac1cb8d3 VS |
23157 | rm -f conftest.err conftest.$ac_objext \ |
23158 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23159 | LIBS=$ac_check_lib_save_LIBS |
23160 | fi | |
23161 | echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5 | |
23162 | echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6 | |
23163 | if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then | |
23164 | MSPACK_LINK=" -lmspack" | |
23165 | fi | |
23166 | ||
23167 | fi | |
23168 | if test "x$MSPACK_LINK" = "x" ; then | |
23169 | wxUSE_LIBMSPACK=no | |
dd3a2d96 VZ |
23170 | fi |
23171 | fi | |
23172 | ||
23173 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
23174 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
23175 | #define wxUSE_LIBMSPACK 1 |
23176 | _ACEOF | |
23177 | ||
a848cd7e SC |
23178 | fi |
23179 | ||
23180 | ||
23181 | ||
23182 | AFMINSTALL= | |
23183 | WIN32INSTALL= | |
23184 | ||
23185 | TOOLKIT= | |
23186 | TOOLKIT_INCLUDE= | |
23187 | WIDGET_SET= | |
23188 | ||
23189 | if test "$USE_WIN32" = 1 ; then | |
23190 | ||
23191 | for ac_header in w32api.h | |
23192 | do | |
23193 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
23194 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
23195 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
23196 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
23197 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
23198 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23199 | fi | |
23200 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
23201 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
23202 | else | |
23203 | # Is the header compilable? | |
23204 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
23205 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
23206 | cat >conftest.$ac_ext <<_ACEOF | |
23207 | /* confdefs.h. */ | |
23208 | _ACEOF | |
23209 | cat confdefs.h >>conftest.$ac_ext | |
23210 | cat >>conftest.$ac_ext <<_ACEOF | |
23211 | /* end confdefs.h. */ | |
23212 | $ac_includes_default | |
23213 | #include <$ac_header> | |
23214 | _ACEOF | |
23215 | rm -f conftest.$ac_objext | |
23216 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23217 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23218 | ac_status=$? |
ac1cb8d3 VS |
23219 | grep -v '^ *+' conftest.er1 >conftest.err |
23220 | rm -f conftest.er1 | |
23221 | cat conftest.err >&5 | |
a848cd7e SC |
23222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23223 | (exit $ac_status); } && | |
89be85c2 VS |
23224 | { ac_try='test -z "$ac_c_werror_flag" |
23225 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23227 | (eval $ac_try) 2>&5 | |
23228 | ac_status=$? | |
23229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23230 | (exit $ac_status); }; } && | |
23231 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23233 | (eval $ac_try) 2>&5 | |
23234 | ac_status=$? | |
23235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23236 | (exit $ac_status); }; }; then | |
23237 | ac_header_compiler=yes | |
23238 | else | |
23239 | echo "$as_me: failed program was:" >&5 | |
23240 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23241 | ||
23242 | ac_header_compiler=no | |
23243 | fi | |
ac1cb8d3 | 23244 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23245 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23246 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23247 | ||
23248 | # Is the header present? | |
23249 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
23250 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
23251 | cat >conftest.$ac_ext <<_ACEOF | |
23252 | /* confdefs.h. */ | |
23253 | _ACEOF | |
23254 | cat confdefs.h >>conftest.$ac_ext | |
23255 | cat >>conftest.$ac_ext <<_ACEOF | |
23256 | /* end confdefs.h. */ | |
23257 | #include <$ac_header> | |
23258 | _ACEOF | |
23259 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23260 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23261 | ac_status=$? | |
23262 | grep -v '^ *+' conftest.er1 >conftest.err | |
23263 | rm -f conftest.er1 | |
23264 | cat conftest.err >&5 | |
23265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23266 | (exit $ac_status); } >/dev/null; then | |
23267 | if test -s conftest.err; then | |
23268 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 23269 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
23270 | else |
23271 | ac_cpp_err= | |
23272 | fi | |
23273 | else | |
23274 | ac_cpp_err=yes | |
23275 | fi | |
23276 | if test -z "$ac_cpp_err"; then | |
23277 | ac_header_preproc=yes | |
23278 | else | |
23279 | echo "$as_me: failed program was:" >&5 | |
23280 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23281 | ||
23282 | ac_header_preproc=no | |
23283 | fi | |
23284 | rm -f conftest.err conftest.$ac_ext | |
23285 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23286 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
23287 | ||
23288 | # So? What about this header? | |
ac1cb8d3 VS |
23289 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
23290 | yes:no: ) | |
a848cd7e SC |
23291 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
23292 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
23293 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
23294 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
23295 | ac_header_preproc=yes | |
a848cd7e | 23296 | ;; |
ac1cb8d3 | 23297 | no:yes:* ) |
a848cd7e SC |
23298 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
23299 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
23300 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
23301 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
23302 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
23303 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
23304 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
23305 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
23306 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
23307 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
23308 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
23309 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
23310 | ( |
23311 | cat <<\_ASBOX | |
ac1cb8d3 VS |
23312 | ## ----------------------------------------- ## |
23313 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
23314 | ## ----------------------------------------- ## | |
a848cd7e SC |
23315 | _ASBOX |
23316 | ) | | |
23317 | sed "s/^/$as_me: WARNING: /" >&2 | |
23318 | ;; | |
23319 | esac | |
23320 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
23321 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
23322 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
23323 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23324 | else | |
ac1cb8d3 | 23325 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
23326 | fi |
23327 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
23328 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
23329 | ||
23330 | fi | |
23331 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
23332 | cat >>confdefs.h <<_ACEOF | |
23333 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
23334 | _ACEOF | |
23335 | ||
23336 | fi | |
23337 | ||
23338 | done | |
23339 | ||
23340 | if test "${ac_cv_header_windows_h+set}" = set; then | |
23341 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
23342 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
23343 | if test "${ac_cv_header_windows_h+set}" = set; then | |
23344 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23345 | fi | |
23346 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
23347 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
23348 | else | |
23349 | # Is the header compilable? | |
23350 | echo "$as_me:$LINENO: checking windows.h usability" >&5 | |
23351 | echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6 | |
23352 | cat >conftest.$ac_ext <<_ACEOF | |
23353 | /* confdefs.h. */ | |
23354 | _ACEOF | |
23355 | cat confdefs.h >>conftest.$ac_ext | |
23356 | cat >>conftest.$ac_ext <<_ACEOF | |
23357 | /* end confdefs.h. */ | |
23358 | $ac_includes_default | |
23359 | #include <windows.h> | |
23360 | _ACEOF | |
23361 | rm -f conftest.$ac_objext | |
23362 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23363 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23364 | ac_status=$? |
ac1cb8d3 VS |
23365 | grep -v '^ *+' conftest.er1 >conftest.err |
23366 | rm -f conftest.er1 | |
23367 | cat conftest.err >&5 | |
a848cd7e SC |
23368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23369 | (exit $ac_status); } && | |
89be85c2 VS |
23370 | { ac_try='test -z "$ac_c_werror_flag" |
23371 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
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); }; } && | |
23377 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23379 | (eval $ac_try) 2>&5 | |
23380 | ac_status=$? | |
23381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23382 | (exit $ac_status); }; }; then | |
23383 | ac_header_compiler=yes | |
23384 | else | |
23385 | echo "$as_me: failed program was:" >&5 | |
23386 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23387 | ||
23388 | ac_header_compiler=no | |
23389 | fi | |
ac1cb8d3 | 23390 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23391 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23392 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23393 | ||
23394 | # Is the header present? | |
23395 | echo "$as_me:$LINENO: checking windows.h presence" >&5 | |
23396 | echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6 | |
23397 | cat >conftest.$ac_ext <<_ACEOF | |
23398 | /* confdefs.h. */ | |
23399 | _ACEOF | |
23400 | cat confdefs.h >>conftest.$ac_ext | |
23401 | cat >>conftest.$ac_ext <<_ACEOF | |
23402 | /* end confdefs.h. */ | |
23403 | #include <windows.h> | |
23404 | _ACEOF | |
23405 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23406 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23407 | ac_status=$? | |
23408 | grep -v '^ *+' conftest.er1 >conftest.err | |
23409 | rm -f conftest.er1 | |
23410 | cat conftest.err >&5 | |
23411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23412 | (exit $ac_status); } >/dev/null; then | |
23413 | if test -s conftest.err; then | |
23414 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 23415 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
23416 | else |
23417 | ac_cpp_err= | |
23418 | fi | |
23419 | else | |
23420 | ac_cpp_err=yes | |
23421 | fi | |
23422 | if test -z "$ac_cpp_err"; then | |
23423 | ac_header_preproc=yes | |
23424 | else | |
23425 | echo "$as_me: failed program was:" >&5 | |
23426 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23427 | ||
23428 | ac_header_preproc=no | |
23429 | fi | |
23430 | rm -f conftest.err conftest.$ac_ext | |
23431 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23432 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
23433 | ||
23434 | # So? What about this header? | |
ac1cb8d3 VS |
23435 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
23436 | yes:no: ) | |
a848cd7e SC |
23437 | { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
23438 | echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
23439 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5 |
23440 | echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;} | |
23441 | ac_header_preproc=yes | |
a848cd7e | 23442 | ;; |
ac1cb8d3 | 23443 | no:yes:* ) |
a848cd7e SC |
23444 | { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5 |
23445 | echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
23446 | { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5 |
23447 | echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;} | |
23448 | { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5 | |
23449 | echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;} | |
23450 | { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5 | |
23451 | echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
23452 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 |
23453 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
23454 | { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5 |
23455 | echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
23456 | ( |
23457 | cat <<\_ASBOX | |
ac1cb8d3 VS |
23458 | ## ----------------------------------------- ## |
23459 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
23460 | ## ----------------------------------------- ## | |
a848cd7e SC |
23461 | _ASBOX |
23462 | ) | | |
23463 | sed "s/^/$as_me: WARNING: /" >&2 | |
23464 | ;; | |
23465 | esac | |
23466 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
23467 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
23468 | if test "${ac_cv_header_windows_h+set}" = set; then | |
23469 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23470 | else | |
23471 | ac_cv_header_windows_h=$ac_header_preproc | |
23472 | fi | |
23473 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
23474 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
23475 | ||
23476 | fi | |
23477 | if test $ac_cv_header_windows_h = yes; then | |
23478 | : | |
23479 | else | |
23480 | ||
23481 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5 | |
23482 | echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;} | |
23483 | { (exit 1); exit 1; }; } | |
23484 | ||
23485 | fi | |
23486 | ||
23487 | ||
23488 | ||
23489 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32" | |
23490 | ||
23491 | if test "$wxUSE_ACCESSIBILITY" = "yes" ; then | |
23492 | LIBS="$LIBS -loleacc" | |
23493 | fi | |
23494 | ||
23495 | case "${host}" in | |
23496 | *-*-cygwin* ) | |
23497 | LIBS="$LIBS -lkernel32 -luser32" | |
23498 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
23499 | esac | |
23500 | ||
23501 | if test "$wxUSE_ODBC" = "sys" ; then | |
23502 | wxUSE_ODBC = "yes" | |
23503 | fi | |
23504 | if test "$wxUSE_ODBC" = "yes" ; then | |
23505 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
23506 | cat >>confdefs.h <<\_ACEOF | |
23507 | #define wxUSE_ODBC 1 | |
23508 | _ACEOF | |
23509 | ||
23510 | fi | |
23511 | ||
23512 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" | |
23513 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
23514 | ||
23515 | WIN32INSTALL=win32install | |
23516 | fi | |
23517 | ||
23518 | if test "$wxUSE_GUI" = "yes"; then | |
23519 | USE_GUI=1 | |
23520 | ||
23521 | GUI_TK_LIBRARY= | |
23522 | ||
23523 | WXGTK12= | |
23524 | WXGTK127= | |
23525 | WXGTK20= | |
23526 | WXGPE= | |
23527 | ||
207bc66c RN |
23528 | if test "$wxUSE_COCOA" = 1 ; then |
23529 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then | |
23530 | { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5 | |
23531 | echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;} | |
23532 | wxUSE_PRINTING_ARCHITECTURE=no | |
23533 | fi | |
23534 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
23535 | { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5 | |
23536 | echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;} | |
23537 | wxUSE_DRAG_AND_DROP=no | |
23538 | fi | |
23539 | if test "$wxUSE_DRAGIMAGE" = "yes"; then | |
23540 | { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5 | |
23541 | echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;} | |
23542 | wxUSE_DRAGIMAGE=no | |
23543 | fi | |
23544 | fi | |
23545 | ||
a848cd7e SC |
23546 | if test "$wxUSE_MSW" = 1 ; then |
23547 | TOOLKIT=MSW | |
23548 | GUIDIST=MSW_DIST | |
23549 | ||
ceec2216 | 23550 | case "${host}" in |
a848cd7e SC |
23551 | *-*-mingw32* ) |
23552 | WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
23553 | esac | |
23554 | fi | |
23555 | ||
23556 | if test "$wxUSE_GTK" = 1; then | |
23557 | echo "$as_me:$LINENO: checking for GTK+ version" >&5 | |
23558 | echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6 | |
23559 | ||
23560 | gtk_version_cached=1 | |
23561 | if test "${wx_cv_lib_gtk+set}" = set; then | |
23562 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23563 | else | |
23564 | ||
23565 | gtk_version_cached=0 | |
23566 | echo "$as_me:$LINENO: result: " >&5 | |
23567 | echo "${ECHO_T}" >&6 | |
23568 | ||
23569 | GTK_MODULES= | |
23570 | if test "$wxUSE_THREADS" = "yes"; then | |
23571 | GTK_MODULES=gthread | |
23572 | fi | |
23573 | ||
23574 | wx_cv_lib_gtk= | |
23575 | if test "x$wxUSE_GTK2" = "xyes"; then | |
23576 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
23577 | if test "${enable_gtktest+set}" = set; then | |
23578 | enableval="$enable_gtktest" | |
23579 | ||
23580 | else | |
23581 | enable_gtktest=yes | |
23582 | fi; | |
23583 | ||
23584 | pkg_config_args=gtk+-2.0 | |
23585 | for module in . $GTK_MODULES | |
23586 | do | |
23587 | case "$module" in | |
23588 | gthread) | |
23589 | pkg_config_args="$pkg_config_args gthread-2.0" | |
23590 | ;; | |
23591 | esac | |
23592 | done | |
23593 | ||
23594 | no_gtk="" | |
23595 | ||
23596 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
23597 | set dummy pkg-config; ac_word=$2 | |
23598 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
23599 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
23600 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
23601 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23602 | else | |
23603 | case $PKG_CONFIG in | |
23604 | [\\/]* | ?:[\\/]*) | |
23605 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
23606 | ;; | |
23607 | *) | |
23608 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
23609 | for as_dir in $PATH | |
23610 | do | |
23611 | IFS=$as_save_IFS | |
23612 | test -z "$as_dir" && as_dir=. | |
23613 | for ac_exec_ext in '' $ac_executable_extensions; do | |
23614 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
23615 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
23616 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
23617 | break 2 | |
23618 | fi | |
23619 | done | |
23620 | done | |
23621 | ||
23622 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
23623 | ;; | |
23624 | esac | |
23625 | fi | |
23626 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
23627 | ||
23628 | if test -n "$PKG_CONFIG"; then | |
23629 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
23630 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
23631 | else | |
23632 | echo "$as_me:$LINENO: result: no" >&5 | |
23633 | echo "${ECHO_T}no" >&6 | |
23634 | fi | |
23635 | ||
23636 | ||
23637 | if test x$PKG_CONFIG != xno ; then | |
23638 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
23639 | : | |
23640 | else | |
c2218763 | 23641 | echo "*** pkg-config too old; version 0.7 or better required." |
a848cd7e SC |
23642 | no_gtk=yes |
23643 | PKG_CONFIG=no | |
23644 | fi | |
23645 | else | |
23646 | no_gtk=yes | |
23647 | fi | |
23648 | ||
23649 | min_gtk_version=2.0.0 | |
23650 | echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 | |
23651 | echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6 | |
23652 | ||
23653 | if test x$PKG_CONFIG != xno ; then | |
23654 | ## don't try to run the test against uninstalled libtool libs | |
23655 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
23656 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
23657 | enable_gtktest=no | |
23658 | fi | |
23659 | ||
23660 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then | |
23661 | : | |
23662 | else | |
23663 | no_gtk=yes | |
23664 | fi | |
23665 | fi | |
23666 | ||
23667 | if test x"$no_gtk" = x ; then | |
23668 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
23669 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
23670 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
23671 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
23672 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
23673 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
23674 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
23675 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
23676 | if test "x$enable_gtktest" = "xyes" ; then | |
23677 | ac_save_CFLAGS="$CFLAGS" | |
23678 | ac_save_LIBS="$LIBS" | |
23679 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23680 | LIBS="$GTK_LIBS $LIBS" | |
23681 | rm -f conf.gtktest | |
23682 | if test "$cross_compiling" = yes; then | |
23683 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
23684 | else | |
23685 | cat >conftest.$ac_ext <<_ACEOF | |
23686 | /* confdefs.h. */ | |
23687 | _ACEOF | |
23688 | cat confdefs.h >>conftest.$ac_ext | |
23689 | cat >>conftest.$ac_ext <<_ACEOF | |
23690 | /* end confdefs.h. */ | |
23691 | ||
23692 | #include <gtk/gtk.h> | |
23693 | #include <stdio.h> | |
23694 | #include <stdlib.h> | |
23695 | ||
23696 | int | |
23697 | main () | |
23698 | { | |
23699 | int major, minor, micro; | |
23700 | char *tmp_version; | |
23701 | ||
23702 | system ("touch conf.gtktest"); | |
23703 | ||
23704 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
23705 | tmp_version = g_strdup("$min_gtk_version"); | |
23706 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
23707 | printf("%s, bad version string\n", "$min_gtk_version"); | |
23708 | exit(1); | |
23709 | } | |
23710 | ||
23711 | if ((gtk_major_version != $gtk_config_major_version) || | |
23712 | (gtk_minor_version != $gtk_config_minor_version) || | |
23713 | (gtk_micro_version != $gtk_config_micro_version)) | |
23714 | { | |
23715 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
23716 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
23717 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23718 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
23719 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
23720 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
23721 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
23722 | printf("*** required on your system.\n"); | |
23723 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
23724 | printf("*** to point to the correct configuration files\n"); | |
23725 | } | |
23726 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
23727 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
23728 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
23729 | { | |
23730 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
23731 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
23732 | printf("*** library (version %d.%d.%d)\n", | |
23733 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23734 | } | |
23735 | else | |
23736 | { | |
23737 | if ((gtk_major_version > major) || | |
23738 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
23739 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
23740 | { | |
23741 | return 0; | |
23742 | } | |
23743 | else | |
23744 | { | |
23745 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
23746 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23747 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
23748 | major, minor, micro); | |
23749 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
23750 | printf("***\n"); | |
23751 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
23752 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
23753 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
23754 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
23755 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
23756 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
23757 | printf("*** so that the correct libraries are found at run-time))\n"); | |
23758 | } | |
23759 | } | |
23760 | return 1; | |
23761 | } | |
23762 | ||
23763 | _ACEOF | |
23764 | rm -f conftest$ac_exeext | |
23765 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23766 | (eval $ac_link) 2>&5 | |
23767 | ac_status=$? | |
23768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23769 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
23770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23771 | (eval $ac_try) 2>&5 | |
23772 | ac_status=$? | |
23773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23774 | (exit $ac_status); }; }; then | |
23775 | : | |
23776 | else | |
23777 | echo "$as_me: program exited with status $ac_status" >&5 | |
23778 | echo "$as_me: failed program was:" >&5 | |
23779 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23780 | ||
23781 | ( exit $ac_status ) | |
23782 | no_gtk=yes | |
23783 | fi | |
ac1cb8d3 | 23784 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23785 | fi |
23786 | CFLAGS="$ac_save_CFLAGS" | |
23787 | LIBS="$ac_save_LIBS" | |
23788 | fi | |
23789 | fi | |
23790 | if test "x$no_gtk" = x ; then | |
23791 | echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 | |
23792 | echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6 | |
23793 | wx_cv_lib_gtk=2.0 | |
23794 | else | |
23795 | echo "$as_me:$LINENO: result: no" >&5 | |
23796 | echo "${ECHO_T}no" >&6 | |
23797 | if test "$PKG_CONFIG" = "no" ; then | |
23798 | echo "*** A new enough version of pkg-config was not found." | |
23799 | echo "*** See http://pkgconfig.sourceforge.net" | |
23800 | else | |
23801 | if test -f conf.gtktest ; then | |
23802 | : | |
23803 | else | |
23804 | echo "*** Could not run GTK+ test program, checking why..." | |
23805 | ac_save_CFLAGS="$CFLAGS" | |
23806 | ac_save_LIBS="$LIBS" | |
23807 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23808 | LIBS="$LIBS $GTK_LIBS" | |
23809 | cat >conftest.$ac_ext <<_ACEOF | |
23810 | /* confdefs.h. */ | |
23811 | _ACEOF | |
23812 | cat confdefs.h >>conftest.$ac_ext | |
23813 | cat >>conftest.$ac_ext <<_ACEOF | |
23814 | /* end confdefs.h. */ | |
23815 | ||
23816 | #include <gtk/gtk.h> | |
23817 | #include <stdio.h> | |
23818 | ||
23819 | int | |
23820 | main () | |
23821 | { | |
23822 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
23823 | ; | |
23824 | return 0; | |
23825 | } | |
23826 | _ACEOF | |
23827 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23828 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23829 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23830 | ac_status=$? |
ac1cb8d3 VS |
23831 | grep -v '^ *+' conftest.er1 >conftest.err |
23832 | rm -f conftest.er1 | |
23833 | cat conftest.err >&5 | |
a848cd7e SC |
23834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23835 | (exit $ac_status); } && | |
89be85c2 VS |
23836 | { ac_try='test -z "$ac_c_werror_flag" |
23837 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
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); }; } && | |
23843 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23845 | (eval $ac_try) 2>&5 | |
23846 | ac_status=$? | |
23847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23848 | (exit $ac_status); }; }; then | |
23849 | echo "*** The test program compiled, but did not run. This usually means" | |
23850 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
23851 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
23852 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
23853 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
23854 | echo "*** is required on your system" | |
23855 | echo "***" | |
23856 | echo "*** If you have an old version installed, it is best to remove it, although" | |
23857 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
23858 | else | |
23859 | echo "$as_me: failed program was:" >&5 | |
23860 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23861 | ||
23862 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
23863 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." | |
23864 | fi | |
ac1cb8d3 VS |
23865 | rm -f conftest.err conftest.$ac_objext \ |
23866 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23867 | CFLAGS="$ac_save_CFLAGS" |
23868 | LIBS="$ac_save_LIBS" | |
23869 | fi | |
23870 | fi | |
23871 | GTK_CFLAGS="" | |
23872 | GTK_LIBS="" | |
23873 | : | |
23874 | fi | |
23875 | ||
23876 | ||
23877 | rm -f conf.gtktest | |
23878 | ||
23879 | else | |
23880 | ||
23881 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
23882 | if test "${with_gtk_prefix+set}" = set; then | |
23883 | withval="$with_gtk_prefix" | |
23884 | gtk_config_prefix="$withval" | |
23885 | else | |
23886 | gtk_config_prefix="" | |
23887 | fi; | |
23888 | ||
23889 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
23890 | if test "${with_gtk_exec_prefix+set}" = set; then | |
23891 | withval="$with_gtk_exec_prefix" | |
23892 | gtk_config_exec_prefix="$withval" | |
23893 | else | |
23894 | gtk_config_exec_prefix="" | |
23895 | fi; | |
23896 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
23897 | if test "${enable_gtktest+set}" = set; then | |
23898 | enableval="$enable_gtktest" | |
23899 | ||
23900 | else | |
23901 | enable_gtktest=yes | |
23902 | fi; | |
23903 | ||
23904 | for module in . $GTK_MODULES | |
23905 | do | |
23906 | case "$module" in | |
23907 | gthread) | |
23908 | gtk_config_args="$gtk_config_args gthread" | |
23909 | ;; | |
23910 | esac | |
23911 | done | |
23912 | ||
23913 | if test x$gtk_config_exec_prefix != x ; then | |
23914 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
23915 | if test x${GTK_CONFIG+set} != xset ; then | |
23916 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
23917 | fi | |
23918 | fi | |
23919 | if test x$gtk_config_prefix != x ; then | |
23920 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
23921 | if test x${GTK_CONFIG+set} != xset ; then | |
23922 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
23923 | fi | |
23924 | fi | |
23925 | ||
23926 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
23927 | set dummy gtk-config; ac_word=$2 | |
23928 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
23929 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
23930 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
23931 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23932 | else | |
23933 | case $GTK_CONFIG in | |
23934 | [\\/]* | ?:[\\/]*) | |
23935 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
23936 | ;; | |
23937 | *) | |
23938 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
23939 | for as_dir in $PATH | |
23940 | do | |
23941 | IFS=$as_save_IFS | |
23942 | test -z "$as_dir" && as_dir=. | |
23943 | for ac_exec_ext in '' $ac_executable_extensions; do | |
23944 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
23945 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
23946 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
23947 | break 2 | |
23948 | fi | |
23949 | done | |
23950 | done | |
23951 | ||
23952 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
23953 | ;; | |
23954 | esac | |
23955 | fi | |
23956 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
23957 | ||
23958 | if test -n "$GTK_CONFIG"; then | |
23959 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
23960 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
23961 | else | |
23962 | echo "$as_me:$LINENO: result: no" >&5 | |
23963 | echo "${ECHO_T}no" >&6 | |
23964 | fi | |
23965 | ||
23966 | min_gtk_version=1.2.7 | |
23967 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
23968 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
23969 | no_gtk="" | |
23970 | if test "$GTK_CONFIG" = "no" ; then | |
23971 | no_gtk=yes | |
23972 | else | |
23973 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
23974 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
23975 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
23976 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
23977 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
23978 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
23979 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
23980 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
23981 | if test "x$enable_gtktest" = "xyes" ; then | |
23982 | ac_save_CFLAGS="$CFLAGS" | |
23983 | ac_save_LIBS="$LIBS" | |
23984 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23985 | LIBS="$GTK_LIBS $LIBS" | |
23986 | rm -f conf.gtktest | |
23987 | if test "$cross_compiling" = yes; then | |
23988 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
23989 | else | |
23990 | cat >conftest.$ac_ext <<_ACEOF | |
23991 | /* confdefs.h. */ | |
23992 | _ACEOF | |
23993 | cat confdefs.h >>conftest.$ac_ext | |
23994 | cat >>conftest.$ac_ext <<_ACEOF | |
23995 | /* end confdefs.h. */ | |
23996 | ||
23997 | #include <gtk/gtk.h> | |
23998 | #include <stdio.h> | |
23999 | #include <stdlib.h> | |
24000 | ||
24001 | int | |
24002 | main () | |
24003 | { | |
24004 | int major, minor, micro; | |
24005 | char *tmp_version; | |
24006 | ||
24007 | system ("touch conf.gtktest"); | |
24008 | ||
24009 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
24010 | tmp_version = g_strdup("$min_gtk_version"); | |
24011 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
24012 | printf("%s, bad version string\n", "$min_gtk_version"); | |
24013 | exit(1); | |
24014 | } | |
24015 | ||
24016 | if ((gtk_major_version != $gtk_config_major_version) || | |
24017 | (gtk_minor_version != $gtk_config_minor_version) || | |
24018 | (gtk_micro_version != $gtk_config_micro_version)) | |
24019 | { | |
24020 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
24021 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
24022 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
24023 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
24024 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
24025 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
24026 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
24027 | printf("*** required on your system.\n"); | |
24028 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
24029 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
24030 | printf("*** before re-running configure\n"); | |
24031 | } | |
24032 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
24033 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
24034 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
24035 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
24036 | { | |
24037 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
24038 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
24039 | printf("*** library (version %d.%d.%d)\n", | |
24040 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
24041 | } | |
24042 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
24043 | else | |
24044 | { | |
24045 | if ((gtk_major_version > major) || | |
24046 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
24047 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
24048 | { | |
24049 | return 0; | |
24050 | } | |
24051 | else | |
24052 | { | |
24053 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
24054 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
24055 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
24056 | major, minor, micro); | |
24057 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
24058 | printf("***\n"); | |
24059 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
24060 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
24061 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
24062 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
24063 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
24064 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
24065 | printf("*** so that the correct libraries are found at run-time))\n"); | |
24066 | } | |
24067 | } | |
24068 | return 1; | |
24069 | } | |
24070 | ||
24071 | _ACEOF | |
24072 | rm -f conftest$ac_exeext | |
24073 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24074 | (eval $ac_link) 2>&5 | |
24075 | ac_status=$? | |
24076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24077 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
24078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24079 | (eval $ac_try) 2>&5 | |
24080 | ac_status=$? | |
24081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24082 | (exit $ac_status); }; }; then | |
24083 | : | |
24084 | else | |
24085 | echo "$as_me: program exited with status $ac_status" >&5 | |
24086 | echo "$as_me: failed program was:" >&5 | |
24087 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24088 | ||
24089 | ( exit $ac_status ) | |
24090 | no_gtk=yes | |
24091 | fi | |
ac1cb8d3 | 24092 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24093 | fi |
24094 | CFLAGS="$ac_save_CFLAGS" | |
24095 | LIBS="$ac_save_LIBS" | |
24096 | fi | |
24097 | fi | |
24098 | if test "x$no_gtk" = x ; then | |
24099 | echo "$as_me:$LINENO: result: yes" >&5 | |
24100 | echo "${ECHO_T}yes" >&6 | |
24101 | wx_cv_lib_gtk=1.2.7 | |
24102 | else | |
24103 | echo "$as_me:$LINENO: result: no" >&5 | |
24104 | echo "${ECHO_T}no" >&6 | |
24105 | if test "$GTK_CONFIG" = "no" ; then | |
24106 | echo "*** The gtk-config script installed by GTK could not be found" | |
24107 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
24108 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
24109 | echo "*** full path to gtk-config." | |
24110 | else | |
24111 | if test -f conf.gtktest ; then | |
24112 | : | |
24113 | else | |
24114 | echo "*** Could not run GTK test program, checking why..." | |
24115 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
24116 | LIBS="$LIBS $GTK_LIBS" | |
24117 | cat >conftest.$ac_ext <<_ACEOF | |
24118 | /* confdefs.h. */ | |
24119 | _ACEOF | |
24120 | cat confdefs.h >>conftest.$ac_ext | |
24121 | cat >>conftest.$ac_ext <<_ACEOF | |
24122 | /* end confdefs.h. */ | |
24123 | ||
24124 | #include <gtk/gtk.h> | |
24125 | #include <stdio.h> | |
24126 | ||
24127 | int | |
24128 | main () | |
24129 | { | |
24130 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
24131 | ; | |
24132 | return 0; | |
24133 | } | |
24134 | _ACEOF | |
24135 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24136 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24137 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24138 | ac_status=$? |
ac1cb8d3 VS |
24139 | grep -v '^ *+' conftest.er1 >conftest.err |
24140 | rm -f conftest.er1 | |
24141 | cat conftest.err >&5 | |
a848cd7e SC |
24142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24143 | (exit $ac_status); } && | |
89be85c2 VS |
24144 | { ac_try='test -z "$ac_c_werror_flag" |
24145 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24147 | (eval $ac_try) 2>&5 | |
24148 | ac_status=$? | |
24149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24150 | (exit $ac_status); }; } && | |
24151 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24153 | (eval $ac_try) 2>&5 | |
24154 | ac_status=$? | |
24155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24156 | (exit $ac_status); }; }; then | |
24157 | echo "*** The test program compiled, but did not run. This usually means" | |
24158 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
24159 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
24160 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
24161 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
24162 | echo "*** is required on your system" | |
24163 | echo "***" | |
24164 | echo "*** If you have an old version installed, it is best to remove it, although" | |
24165 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
24166 | echo "***" | |
24167 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
24168 | echo "*** came with the system with the command" | |
24169 | echo "***" | |
24170 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
24171 | else | |
24172 | echo "$as_me: failed program was:" >&5 | |
24173 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24174 | ||
24175 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
24176 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
24177 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
24178 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
24179 | fi | |
ac1cb8d3 VS |
24180 | rm -f conftest.err conftest.$ac_objext \ |
24181 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24182 | CFLAGS="$ac_save_CFLAGS" |
24183 | LIBS="$ac_save_LIBS" | |
24184 | fi | |
24185 | fi | |
24186 | GTK_CFLAGS="" | |
24187 | GTK_LIBS="" | |
24188 | : | |
24189 | fi | |
24190 | ||
24191 | ||
24192 | rm -f conf.gtktest | |
24193 | ||
24194 | ||
24195 | if test -z "$wx_cv_lib_gtk"; then | |
24196 | ||
24197 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
24198 | if test "${with_gtk_prefix+set}" = set; then | |
24199 | withval="$with_gtk_prefix" | |
24200 | gtk_config_prefix="$withval" | |
24201 | else | |
24202 | gtk_config_prefix="" | |
24203 | fi; | |
24204 | ||
24205 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
24206 | if test "${with_gtk_exec_prefix+set}" = set; then | |
24207 | withval="$with_gtk_exec_prefix" | |
24208 | gtk_config_exec_prefix="$withval" | |
24209 | else | |
24210 | gtk_config_exec_prefix="" | |
24211 | fi; | |
24212 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
24213 | if test "${enable_gtktest+set}" = set; then | |
24214 | enableval="$enable_gtktest" | |
24215 | ||
24216 | else | |
24217 | enable_gtktest=yes | |
24218 | fi; | |
24219 | ||
24220 | for module in . $GTK_MODULES | |
24221 | do | |
24222 | case "$module" in | |
24223 | gthread) | |
24224 | gtk_config_args="$gtk_config_args gthread" | |
24225 | ;; | |
24226 | esac | |
24227 | done | |
24228 | ||
24229 | if test x$gtk_config_exec_prefix != x ; then | |
24230 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
24231 | if test x${GTK_CONFIG+set} != xset ; then | |
24232 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
24233 | fi | |
24234 | fi | |
24235 | if test x$gtk_config_prefix != x ; then | |
24236 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
24237 | if test x${GTK_CONFIG+set} != xset ; then | |
24238 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
24239 | fi | |
24240 | fi | |
24241 | ||
24242 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
24243 | set dummy gtk-config; ac_word=$2 | |
24244 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
24245 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
24246 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
24247 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24248 | else | |
24249 | case $GTK_CONFIG in | |
24250 | [\\/]* | ?:[\\/]*) | |
24251 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
24252 | ;; | |
24253 | *) | |
24254 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
24255 | for as_dir in $PATH | |
24256 | do | |
24257 | IFS=$as_save_IFS | |
24258 | test -z "$as_dir" && as_dir=. | |
24259 | for ac_exec_ext in '' $ac_executable_extensions; do | |
24260 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
24261 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
24262 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
24263 | break 2 | |
24264 | fi | |
24265 | done | |
24266 | done | |
24267 | ||
24268 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
24269 | ;; | |
24270 | esac | |
24271 | fi | |
24272 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
24273 | ||
24274 | if test -n "$GTK_CONFIG"; then | |
24275 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
24276 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
24277 | else | |
24278 | echo "$as_me:$LINENO: result: no" >&5 | |
24279 | echo "${ECHO_T}no" >&6 | |
24280 | fi | |
24281 | ||
24282 | min_gtk_version=1.2.3 | |
24283 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
24284 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
24285 | no_gtk="" | |
24286 | if test "$GTK_CONFIG" = "no" ; then | |
24287 | no_gtk=yes | |
24288 | else | |
24289 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
24290 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
24291 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
24292 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
24293 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
24294 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
24295 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
24296 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
24297 | if test "x$enable_gtktest" = "xyes" ; then | |
24298 | ac_save_CFLAGS="$CFLAGS" | |
24299 | ac_save_LIBS="$LIBS" | |
24300 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
24301 | LIBS="$GTK_LIBS $LIBS" | |
24302 | rm -f conf.gtktest | |
24303 | if test "$cross_compiling" = yes; then | |
24304 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
24305 | else | |
24306 | cat >conftest.$ac_ext <<_ACEOF | |
24307 | /* confdefs.h. */ | |
24308 | _ACEOF | |
24309 | cat confdefs.h >>conftest.$ac_ext | |
24310 | cat >>conftest.$ac_ext <<_ACEOF | |
24311 | /* end confdefs.h. */ | |
24312 | ||
24313 | #include <gtk/gtk.h> | |
24314 | #include <stdio.h> | |
24315 | #include <stdlib.h> | |
24316 | ||
24317 | int | |
24318 | main () | |
24319 | { | |
24320 | int major, minor, micro; | |
24321 | char *tmp_version; | |
24322 | ||
24323 | system ("touch conf.gtktest"); | |
24324 | ||
24325 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
24326 | tmp_version = g_strdup("$min_gtk_version"); | |
24327 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
24328 | printf("%s, bad version string\n", "$min_gtk_version"); | |
24329 | exit(1); | |
24330 | } | |
24331 | ||
24332 | if ((gtk_major_version != $gtk_config_major_version) || | |
24333 | (gtk_minor_version != $gtk_config_minor_version) || | |
24334 | (gtk_micro_version != $gtk_config_micro_version)) | |
24335 | { | |
24336 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
24337 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
24338 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
24339 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
24340 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
24341 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
24342 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
24343 | printf("*** required on your system.\n"); | |
24344 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
24345 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
24346 | printf("*** before re-running configure\n"); | |
24347 | } | |
24348 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
24349 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
24350 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
24351 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
24352 | { | |
24353 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
24354 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
24355 | printf("*** library (version %d.%d.%d)\n", | |
24356 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
24357 | } | |
24358 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
24359 | else | |
24360 | { | |
24361 | if ((gtk_major_version > major) || | |
24362 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
24363 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
24364 | { | |
24365 | return 0; | |
24366 | } | |
24367 | else | |
24368 | { | |
24369 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
24370 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
24371 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
24372 | major, minor, micro); | |
24373 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
24374 | printf("***\n"); | |
24375 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
24376 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
24377 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
24378 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
24379 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
24380 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
24381 | printf("*** so that the correct libraries are found at run-time))\n"); | |
24382 | } | |
24383 | } | |
24384 | return 1; | |
24385 | } | |
24386 | ||
24387 | _ACEOF | |
24388 | rm -f conftest$ac_exeext | |
24389 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24390 | (eval $ac_link) 2>&5 | |
24391 | ac_status=$? | |
24392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24393 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
24394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24395 | (eval $ac_try) 2>&5 | |
24396 | ac_status=$? | |
24397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24398 | (exit $ac_status); }; }; then | |
24399 | : | |
24400 | else | |
24401 | echo "$as_me: program exited with status $ac_status" >&5 | |
24402 | echo "$as_me: failed program was:" >&5 | |
24403 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24404 | ||
24405 | ( exit $ac_status ) | |
24406 | no_gtk=yes | |
24407 | fi | |
ac1cb8d3 | 24408 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24409 | fi |
24410 | CFLAGS="$ac_save_CFLAGS" | |
24411 | LIBS="$ac_save_LIBS" | |
24412 | fi | |
24413 | fi | |
24414 | if test "x$no_gtk" = x ; then | |
24415 | echo "$as_me:$LINENO: result: yes" >&5 | |
24416 | echo "${ECHO_T}yes" >&6 | |
24417 | wx_cv_lib_gtk=1.2.3 | |
24418 | else | |
24419 | echo "$as_me:$LINENO: result: no" >&5 | |
24420 | echo "${ECHO_T}no" >&6 | |
24421 | if test "$GTK_CONFIG" = "no" ; then | |
24422 | echo "*** The gtk-config script installed by GTK could not be found" | |
24423 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
24424 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
24425 | echo "*** full path to gtk-config." | |
24426 | else | |
24427 | if test -f conf.gtktest ; then | |
24428 | : | |
24429 | else | |
24430 | echo "*** Could not run GTK test program, checking why..." | |
24431 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
24432 | LIBS="$LIBS $GTK_LIBS" | |
24433 | cat >conftest.$ac_ext <<_ACEOF | |
24434 | /* confdefs.h. */ | |
24435 | _ACEOF | |
24436 | cat confdefs.h >>conftest.$ac_ext | |
24437 | cat >>conftest.$ac_ext <<_ACEOF | |
24438 | /* end confdefs.h. */ | |
24439 | ||
24440 | #include <gtk/gtk.h> | |
24441 | #include <stdio.h> | |
24442 | ||
24443 | int | |
24444 | main () | |
24445 | { | |
24446 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
24447 | ; | |
24448 | return 0; | |
24449 | } | |
24450 | _ACEOF | |
24451 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24452 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24453 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24454 | ac_status=$? |
ac1cb8d3 VS |
24455 | grep -v '^ *+' conftest.er1 >conftest.err |
24456 | rm -f conftest.er1 | |
24457 | cat conftest.err >&5 | |
a848cd7e SC |
24458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24459 | (exit $ac_status); } && | |
89be85c2 VS |
24460 | { ac_try='test -z "$ac_c_werror_flag" |
24461 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24463 | (eval $ac_try) 2>&5 | |
24464 | ac_status=$? | |
24465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24466 | (exit $ac_status); }; } && | |
24467 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24469 | (eval $ac_try) 2>&5 | |
24470 | ac_status=$? | |
24471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24472 | (exit $ac_status); }; }; then | |
24473 | echo "*** The test program compiled, but did not run. This usually means" | |
24474 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
24475 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
24476 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
24477 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
24478 | echo "*** is required on your system" | |
24479 | echo "***" | |
24480 | echo "*** If you have an old version installed, it is best to remove it, although" | |
24481 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
24482 | echo "***" | |
24483 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
24484 | echo "*** came with the system with the command" | |
24485 | echo "***" | |
24486 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
24487 | else | |
24488 | echo "$as_me: failed program was:" >&5 | |
24489 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24490 | ||
24491 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
24492 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
24493 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
24494 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
24495 | fi | |
ac1cb8d3 VS |
24496 | rm -f conftest.err conftest.$ac_objext \ |
24497 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24498 | CFLAGS="$ac_save_CFLAGS" |
24499 | LIBS="$ac_save_LIBS" | |
24500 | fi | |
24501 | fi | |
24502 | GTK_CFLAGS="" | |
24503 | GTK_LIBS="" | |
24504 | : | |
24505 | fi | |
24506 | ||
24507 | ||
24508 | rm -f conf.gtktest | |
24509 | ||
24510 | fi | |
24511 | fi | |
24512 | ||
24513 | if test -z "$wx_cv_lib_gtk"; then | |
24514 | wx_cv_lib_gtk=none | |
24515 | else | |
24516 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
24517 | wx_cv_libs_gtk=$GTK_LIBS | |
24518 | fi | |
24519 | ||
24520 | ||
24521 | fi | |
24522 | ||
24523 | ||
24524 | if test "$gtk_version_cached" = 1; then | |
24525 | echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5 | |
24526 | echo "${ECHO_T}$wx_cv_lib_gtk" >&6 | |
24527 | fi | |
24528 | ||
24529 | case "$wx_cv_lib_gtk" in | |
24530 | 2.0) WXGTK20=1 | |
24531 | TOOLKIT_VERSION=2 | |
24532 | ;; | |
24533 | 1.2.7) WXGTK127=1 | |
24534 | WXGTK12=1 | |
24535 | ;; | |
24536 | 1.2.3) WXGTK12=1 | |
24537 | ;; | |
24538 | *) { { echo "$as_me:$LINENO: error: | |
24539 | Please check that gtk-config is in path, the directory | |
24540 | where GTK+ libraries are installed (returned by | |
24541 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
24542 | equivalent variable and GTK+ is version 1.2.3 or above. | |
24543 | " >&5 | |
24544 | echo "$as_me: error: | |
24545 | Please check that gtk-config is in path, the directory | |
24546 | where GTK+ libraries are installed (returned by | |
24547 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
24548 | equivalent variable and GTK+ is version 1.2.3 or above. | |
24549 | " >&2;} | |
24550 | { (exit 1); exit 1; }; } | |
24551 | ;; | |
24552 | esac | |
24553 | ||
24554 | if test "$WXGTK20" = 1; then | |
304205f1 VS |
24555 | save_CFLAGS="$CFLAGS" |
24556 | save_LIBS="$LIBS" | |
24557 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
24558 | LIBS="$LIBS $GTK_LIBS" | |
24559 | ||
9755e73b | 24560 | |
304205f1 VS |
24561 | for ac_func in pango_font_family_is_monospace |
24562 | do | |
24563 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
24564 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
24565 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
24566 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
24567 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24568 | else | |
24569 | cat >conftest.$ac_ext <<_ACEOF | |
24570 | /* confdefs.h. */ | |
24571 | _ACEOF | |
24572 | cat confdefs.h >>conftest.$ac_ext | |
24573 | cat >>conftest.$ac_ext <<_ACEOF | |
24574 | /* end confdefs.h. */ | |
24575 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
24576 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24577 | #define $ac_func innocuous_$ac_func | |
24578 | ||
24579 | /* System header to define __stub macros and hopefully few prototypes, | |
24580 | which can conflict with char $ac_func (); below. | |
24581 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24582 | <limits.h> exists even on freestanding compilers. */ | |
24583 | ||
24584 | #ifdef __STDC__ | |
24585 | # include <limits.h> | |
24586 | #else | |
24587 | # include <assert.h> | |
24588 | #endif | |
24589 | ||
24590 | #undef $ac_func | |
24591 | ||
24592 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24593 | #ifdef __cplusplus | |
24594 | extern "C" | |
24595 | { | |
24596 | #endif | |
24597 | /* We use char because int might match the return type of a gcc2 | |
24598 | builtin and then its argument prototype would still apply. */ | |
24599 | char $ac_func (); | |
24600 | /* The GNU C library defines this for functions which it implements | |
24601 | to always fail with ENOSYS. Some functions are actually named | |
24602 | something starting with __ and the normal name is an alias. */ | |
24603 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
24604 | choke me | |
24605 | #else | |
24606 | char (*f) () = $ac_func; | |
24607 | #endif | |
24608 | #ifdef __cplusplus | |
24609 | } | |
24610 | #endif | |
24611 | ||
24612 | int | |
24613 | main () | |
24614 | { | |
24615 | return f != $ac_func; | |
24616 | ; | |
24617 | return 0; | |
24618 | } | |
24619 | _ACEOF | |
24620 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24621 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24622 | (eval $ac_link) 2>conftest.er1 | |
24623 | ac_status=$? | |
24624 | grep -v '^ *+' conftest.er1 >conftest.err | |
24625 | rm -f conftest.er1 | |
24626 | cat conftest.err >&5 | |
24627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24628 | (exit $ac_status); } && | |
89be85c2 VS |
24629 | { ac_try='test -z "$ac_c_werror_flag" |
24630 | || test ! -s conftest.err' | |
304205f1 VS |
24631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24632 | (eval $ac_try) 2>&5 | |
24633 | ac_status=$? | |
24634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24635 | (exit $ac_status); }; } && | |
24636 | { ac_try='test -s conftest$ac_exeext' | |
24637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24638 | (eval $ac_try) 2>&5 | |
24639 | ac_status=$? | |
24640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24641 | (exit $ac_status); }; }; then | |
24642 | eval "$as_ac_var=yes" | |
24643 | else | |
24644 | echo "$as_me: failed program was:" >&5 | |
24645 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24646 | ||
24647 | eval "$as_ac_var=no" | |
24648 | fi | |
24649 | rm -f conftest.err conftest.$ac_objext \ | |
24650 | conftest$ac_exeext conftest.$ac_ext | |
24651 | fi | |
24652 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
24653 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
24654 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
24655 | cat >>confdefs.h <<_ACEOF | |
24656 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
24657 | _ACEOF | |
24658 | ||
24659 | fi | |
24660 | done | |
24661 | ||
9755e73b VS |
24662 | |
24663 | echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5 | |
24664 | echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6 | |
24665 | cat >conftest.$ac_ext <<_ACEOF | |
24666 | /* confdefs.h. */ | |
24667 | _ACEOF | |
24668 | cat confdefs.h >>conftest.$ac_ext | |
24669 | cat >>conftest.$ac_ext <<_ACEOF | |
24670 | /* end confdefs.h. */ | |
24671 | ||
24672 | #include <gtk/gtk.h> | |
24673 | ||
24674 | int | |
24675 | main () | |
24676 | { | |
24677 | ||
24678 | #if !GTK_CHECK_VERSION(2,4,0) | |
24679 | #error "Not GTK+ 2.4" | |
24680 | #endif | |
24681 | ||
24682 | ; | |
24683 | return 0; | |
24684 | } | |
24685 | _ACEOF | |
24686 | rm -f conftest.$ac_objext | |
24687 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24688 | (eval $ac_compile) 2>conftest.er1 | |
24689 | ac_status=$? | |
24690 | grep -v '^ *+' conftest.er1 >conftest.err | |
24691 | rm -f conftest.er1 | |
24692 | cat conftest.err >&5 | |
24693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24694 | (exit $ac_status); } && | |
89be85c2 VS |
24695 | { ac_try='test -z "$ac_c_werror_flag" |
24696 | || test ! -s conftest.err' | |
9755e73b VS |
24697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24698 | (eval $ac_try) 2>&5 | |
24699 | ac_status=$? | |
24700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24701 | (exit $ac_status); }; } && | |
24702 | { ac_try='test -s conftest.$ac_objext' | |
24703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24704 | (eval $ac_try) 2>&5 | |
24705 | ac_status=$? | |
24706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24707 | (exit $ac_status); }; }; then | |
24708 | ||
24709 | cat >>confdefs.h <<\_ACEOF | |
24710 | #define __WXGTK24__ 1 | |
24711 | _ACEOF | |
24712 | ||
24713 | echo "$as_me:$LINENO: result: yes" >&5 | |
24714 | echo "${ECHO_T}yes" >&6 | |
24715 | ||
24716 | else | |
24717 | echo "$as_me: failed program was:" >&5 | |
24718 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24719 | ||
24720 | ||
24721 | echo "$as_me:$LINENO: result: no" >&5 | |
24722 | echo "${ECHO_T}no" >&6 | |
24723 | ||
24724 | fi | |
24725 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
24726 | ||
304205f1 VS |
24727 | CFLAGS="$save_CFLAGS" |
24728 | LIBS="$save_LIBS" | |
a848cd7e SC |
24729 | else |
24730 | if test "$wxUSE_UNICODE" = "yes"; then | |
24731 | { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5 | |
24732 | echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;} | |
24733 | wxUSE_UNICODE=no | |
24734 | fi | |
24735 | fi | |
24736 | ||
24737 | if test "$USE_DARWIN" != 1; then | |
24738 | ||
24739 | for ac_func in poll | |
24740 | do | |
24741 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
24742 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
24743 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
24744 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
24745 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24746 | else | |
24747 | cat >conftest.$ac_ext <<_ACEOF | |
24748 | /* confdefs.h. */ | |
24749 | _ACEOF | |
24750 | cat confdefs.h >>conftest.$ac_ext | |
24751 | cat >>conftest.$ac_ext <<_ACEOF | |
24752 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
24753 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
24754 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24755 | #define $ac_func innocuous_$ac_func | |
24756 | ||
a848cd7e SC |
24757 | /* System header to define __stub macros and hopefully few prototypes, |
24758 | which can conflict with char $ac_func (); below. | |
24759 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24760 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 24761 | |
a848cd7e SC |
24762 | #ifdef __STDC__ |
24763 | # include <limits.h> | |
24764 | #else | |
24765 | # include <assert.h> | |
24766 | #endif | |
ac1cb8d3 VS |
24767 | |
24768 | #undef $ac_func | |
24769 | ||
a848cd7e SC |
24770 | /* Override any gcc2 internal prototype to avoid an error. */ |
24771 | #ifdef __cplusplus | |
24772 | extern "C" | |
24773 | { | |
24774 | #endif | |
24775 | /* We use char because int might match the return type of a gcc2 | |
24776 | builtin and then its argument prototype would still apply. */ | |
24777 | char $ac_func (); | |
24778 | /* The GNU C library defines this for functions which it implements | |
24779 | to always fail with ENOSYS. Some functions are actually named | |
24780 | something starting with __ and the normal name is an alias. */ | |
24781 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
24782 | choke me | |
24783 | #else | |
24784 | char (*f) () = $ac_func; | |
24785 | #endif | |
24786 | #ifdef __cplusplus | |
24787 | } | |
24788 | #endif | |
24789 | ||
24790 | int | |
24791 | main () | |
24792 | { | |
24793 | return f != $ac_func; | |
24794 | ; | |
24795 | return 0; | |
24796 | } | |
24797 | _ACEOF | |
24798 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24799 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24800 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24801 | ac_status=$? |
ac1cb8d3 VS |
24802 | grep -v '^ *+' conftest.er1 >conftest.err |
24803 | rm -f conftest.er1 | |
24804 | cat conftest.err >&5 | |
a848cd7e SC |
24805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24806 | (exit $ac_status); } && | |
89be85c2 VS |
24807 | { ac_try='test -z "$ac_c_werror_flag" |
24808 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24810 | (eval $ac_try) 2>&5 | |
24811 | ac_status=$? | |
24812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24813 | (exit $ac_status); }; } && | |
24814 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24816 | (eval $ac_try) 2>&5 | |
24817 | ac_status=$? | |
24818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24819 | (exit $ac_status); }; }; then | |
24820 | eval "$as_ac_var=yes" | |
24821 | else | |
24822 | echo "$as_me: failed program was:" >&5 | |
24823 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24824 | ||
24825 | eval "$as_ac_var=no" | |
24826 | fi | |
ac1cb8d3 VS |
24827 | rm -f conftest.err conftest.$ac_objext \ |
24828 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24829 | fi |
24830 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
24831 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
24832 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
24833 | cat >>confdefs.h <<_ACEOF | |
24834 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
24835 | _ACEOF | |
24836 | ||
24837 | fi | |
24838 | done | |
24839 | ||
24840 | fi | |
24841 | ||
24842 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" | |
24843 | GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY" | |
24844 | ||
24845 | AFMINSTALL=afminstall | |
24846 | TOOLKIT=GTK | |
24847 | GUIDIST=GTK_DIST | |
24848 | ||
24849 | echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5 | |
24850 | echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6 | |
24851 | if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then | |
24852 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24853 | else | |
24854 | ac_check_lib_save_LIBS=$LIBS | |
24855 | LIBS="-lgdk $LIBS" | |
24856 | cat >conftest.$ac_ext <<_ACEOF | |
24857 | /* confdefs.h. */ | |
24858 | _ACEOF | |
24859 | cat confdefs.h >>conftest.$ac_ext | |
24860 | cat >>conftest.$ac_ext <<_ACEOF | |
24861 | /* end confdefs.h. */ | |
24862 | ||
24863 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24864 | #ifdef __cplusplus | |
24865 | extern "C" | |
24866 | #endif | |
24867 | /* We use char because int might match the return type of a gcc2 | |
24868 | builtin and then its argument prototype would still apply. */ | |
24869 | char gdk_im_open (); | |
24870 | int | |
24871 | main () | |
24872 | { | |
24873 | gdk_im_open (); | |
24874 | ; | |
24875 | return 0; | |
24876 | } | |
24877 | _ACEOF | |
24878 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24879 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24880 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24881 | ac_status=$? |
ac1cb8d3 VS |
24882 | grep -v '^ *+' conftest.er1 >conftest.err |
24883 | rm -f conftest.er1 | |
24884 | cat conftest.err >&5 | |
a848cd7e SC |
24885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24886 | (exit $ac_status); } && | |
89be85c2 VS |
24887 | { ac_try='test -z "$ac_c_werror_flag" |
24888 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24890 | (eval $ac_try) 2>&5 | |
24891 | ac_status=$? | |
24892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24893 | (exit $ac_status); }; } && | |
24894 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24896 | (eval $ac_try) 2>&5 | |
24897 | ac_status=$? | |
24898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24899 | (exit $ac_status); }; }; then | |
24900 | ac_cv_lib_gdk_gdk_im_open=yes | |
24901 | else | |
24902 | echo "$as_me: failed program was:" >&5 | |
24903 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24904 | ||
24905 | ac_cv_lib_gdk_gdk_im_open=no | |
24906 | fi | |
ac1cb8d3 VS |
24907 | rm -f conftest.err conftest.$ac_objext \ |
24908 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24909 | LIBS=$ac_check_lib_save_LIBS |
24910 | fi | |
24911 | echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5 | |
24912 | echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6 | |
24913 | if test $ac_cv_lib_gdk_gdk_im_open = yes; then | |
24914 | cat >>confdefs.h <<\_ACEOF | |
24915 | #define HAVE_XIM 1 | |
24916 | _ACEOF | |
24917 | ||
24918 | fi | |
24919 | ||
24920 | ||
24921 | ||
24922 | if test "$wxUSE_GPE" = "yes"; then | |
24923 | echo "$as_me:$LINENO: checking for gpewidget library" >&5 | |
24924 | echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6 | |
24925 | ||
24926 | ac_find_libraries= | |
24927 | for ac_dir in $SEARCH_LIB /usr/lib; | |
24928 | do | |
24929 | for ac_extension in a so sl dylib; do | |
24930 | if test -f "$ac_dir/libgpewidget.$ac_extension"; then | |
24931 | ac_find_libraries=$ac_dir | |
24932 | break 2 | |
24933 | fi | |
24934 | done | |
24935 | done | |
24936 | ||
24937 | if test "$ac_find_libraries" != "" ; then | |
24938 | ||
24939 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
24940 | result=$? | |
24941 | if test $result = 0; then | |
24942 | ac_path_to_link="" | |
24943 | else | |
24944 | ac_path_to_link=" -L$ac_find_libraries" | |
24945 | fi | |
24946 | ||
24947 | GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY" | |
24948 | WXGPE=1 | |
24949 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
24950 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
24951 | else | |
24952 | echo "$as_me:$LINENO: result: not found" >&5 | |
24953 | echo "${ECHO_T}not found" >&6 | |
24954 | fi | |
24955 | ||
24956 | fi | |
24957 | fi | |
24958 | ||
24959 | if test "$wxUSE_MGL" = 1; then | |
24960 | echo "$as_me:$LINENO: checking for SciTech MGL library" >&5 | |
24961 | echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6 | |
24962 | if test "x$MGL_ROOT" = x ; then | |
24963 | echo "$as_me:$LINENO: result: not found" >&5 | |
24964 | echo "${ECHO_T}not found" >&6 | |
24965 | { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5 | |
24966 | echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;} | |
24967 | { (exit 1); exit 1; }; } | |
24968 | else | |
24969 | echo "$as_me:$LINENO: result: $MGL_ROOT" >&5 | |
24970 | echo "${ECHO_T}$MGL_ROOT" >&6 | |
24971 | fi | |
24972 | ||
24973 | echo "$as_me:$LINENO: checking for libmgl location" >&5 | |
24974 | echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6 | |
24975 | case "${host}" in | |
24976 | *-*-linux* ) | |
24977 | if test "x$wxUSE_SHARED" = xyes ; then | |
24978 | mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc" | |
24979 | else | |
24980 | mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so" | |
24981 | fi | |
24982 | ;; | |
24983 | *-pc-msdosdjgpp ) | |
24984 | mgl_os_candidates="dos32/dj2" | |
24985 | ;; | |
24986 | *) | |
24987 | { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5 | |
24988 | echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;} | |
24989 | { (exit 1); exit 1; }; } | |
24990 | esac | |
24991 | ||
24992 | mgl_lib_type="" | |
24993 | mgl_os="" | |
24994 | ||
24995 | for mgl_os_i in $mgl_os_candidates ; do | |
24996 | if test "x$mgl_os" = x ; then | |
24997 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
24998 | if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \ | |
24999 | -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then | |
25000 | mgl_lib_type=debug | |
25001 | mgl_os=$mgl_os_i | |
25002 | fi | |
25003 | fi | |
25004 | if test "x$mgl_lib_type" = x ; then | |
25005 | if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \ | |
25006 | -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then | |
25007 | mgl_lib_type=release | |
25008 | mgl_os=$mgl_os_i | |
25009 | fi | |
25010 | fi | |
25011 | fi | |
25012 | done | |
25013 | ||
25014 | if test "x$mgl_os" = x ; then | |
25015 | echo "$as_me:$LINENO: result: not found" >&5 | |
25016 | echo "${ECHO_T}not found" >&6 | |
25017 | { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5 | |
25018 | echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;} | |
25019 | { (exit 1); exit 1; }; } | |
25020 | fi | |
25021 | echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5 | |
25022 | echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6 | |
25023 | ||
25024 | wxUSE_UNIVERSAL="yes" | |
25025 | ||
25026 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
25027 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
25028 | ||
25029 | AFMINSTALL=afminstall | |
25030 | TOOLKIT=MGL | |
25031 | GUIDIST=MGL_DIST | |
25032 | fi | |
25033 | ||
25034 | if test "$wxUSE_MICROWIN" = 1; then | |
25035 | echo "$as_me:$LINENO: checking for MicroWindows" >&5 | |
25036 | echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6 | |
25037 | if test "x$MICROWINDOWS" = x ; then | |
25038 | echo "$as_me:$LINENO: result: not found" >&5 | |
25039 | echo "${ECHO_T}not found" >&6 | |
25040 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5 | |
25041 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;} | |
25042 | { (exit 1); exit 1; }; } | |
25043 | else | |
25044 | echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5 | |
25045 | echo "${ECHO_T}$MICROWINDOWS" >&6 | |
25046 | fi | |
25047 | ||
25048 | if test -f $MICROWINDOWS/lib/libmwin.a; then | |
25049 | echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5 | |
25050 | echo "${ECHO_T}MicroWindows' libraries found." >&6 | |
25051 | else | |
25052 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5 | |
25053 | echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;} | |
25054 | { (exit 1); exit 1; }; } | |
25055 | fi | |
25056 | ||
25057 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" | |
25058 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
25059 | ||
25060 | wxUSE_UNIVERSAL="yes" | |
25061 | ||
25062 | AFMINSTALL=afminstall | |
25063 | TOOLKIT=MICROWIN | |
25064 | GUIDIST=MICROWIN_DIST | |
25065 | ||
25066 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
25067 | fi | |
25068 | ||
74b84332 | 25069 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
89be85c2 | 25070 | echo "$as_me:$LINENO: checking for X" >&5 |
a848cd7e SC |
25071 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
25072 | ||
25073 | ||
25074 | # Check whether --with-x or --without-x was given. | |
25075 | if test "${with_x+set}" = set; then | |
25076 | withval="$with_x" | |
25077 | ||
25078 | fi; | |
25079 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
25080 | if test "x$with_x" = xno; then | |
25081 | # The user explicitly disabled X. | |
25082 | have_x=disabled | |
25083 | else | |
25084 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
25085 | # Both variables are already set. | |
25086 | have_x=yes | |
25087 | else | |
25088 | if test "${ac_cv_have_x+set}" = set; then | |
25089 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25090 | else | |
25091 | # One or both of the vars are not set, and there is no cached value. | |
25092 | ac_x_includes=no ac_x_libraries=no | |
25093 | rm -fr conftest.dir | |
25094 | if mkdir conftest.dir; then | |
25095 | cd conftest.dir | |
25096 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
25097 | cat >Imakefile <<'_ACEOF' | |
25098 | acfindx: | |
25099 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
25100 | _ACEOF | |
25101 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
25102 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
25103 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
25104 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
25105 | for ac_extension in a so sl; do | |
25106 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
ac1cb8d3 VS |
25107 | test -f $ac_im_libdir/libX11.$ac_extension; then |
25108 | ac_im_usrlibdir=$ac_im_libdir; break | |
a848cd7e SC |
25109 | fi |
25110 | done | |
25111 | # Screen out bogus values from the imake configuration. They are | |
25112 | # bogus both because they are the default anyway, and because | |
25113 | # using them would break gcc on systems where it needs fixed includes. | |
25114 | case $ac_im_incroot in | |
25115 | /usr/include) ;; | |
25116 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | |
25117 | esac | |
25118 | case $ac_im_usrlibdir in | |
25119 | /usr/lib | /lib) ;; | |
25120 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | |
25121 | esac | |
25122 | fi | |
25123 | cd .. | |
25124 | rm -fr conftest.dir | |
25125 | fi | |
25126 | ||
25127 | # Standard set of common directories for X headers. | |
25128 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
25129 | ac_x_header_dirs=' | |
25130 | /usr/X11/include | |
25131 | /usr/X11R6/include | |
25132 | /usr/X11R5/include | |
25133 | /usr/X11R4/include | |
25134 | ||
25135 | /usr/include/X11 | |
25136 | /usr/include/X11R6 | |
25137 | /usr/include/X11R5 | |
25138 | /usr/include/X11R4 | |
25139 | ||
25140 | /usr/local/X11/include | |
25141 | /usr/local/X11R6/include | |
25142 | /usr/local/X11R5/include | |
25143 | /usr/local/X11R4/include | |
25144 | ||
25145 | /usr/local/include/X11 | |
25146 | /usr/local/include/X11R6 | |
25147 | /usr/local/include/X11R5 | |
25148 | /usr/local/include/X11R4 | |
25149 | ||
25150 | /usr/X386/include | |
25151 | /usr/x386/include | |
25152 | /usr/XFree86/include/X11 | |
25153 | ||
25154 | /usr/include | |
25155 | /usr/local/include | |
25156 | /usr/unsupported/include | |
25157 | /usr/athena/include | |
25158 | /usr/local/x11r5/include | |
25159 | /usr/lpp/Xamples/include | |
25160 | ||
25161 | /usr/openwin/include | |
25162 | /usr/openwin/share/include' | |
25163 | ||
25164 | if test "$ac_x_includes" = no; then | |
89be85c2 | 25165 | # Guess where to find include files, by looking for Intrinsic.h. |
a848cd7e SC |
25166 | # First, try using that file with no special directory specified. |
25167 | cat >conftest.$ac_ext <<_ACEOF | |
25168 | /* confdefs.h. */ | |
25169 | _ACEOF | |
25170 | cat confdefs.h >>conftest.$ac_ext | |
25171 | cat >>conftest.$ac_ext <<_ACEOF | |
25172 | /* end confdefs.h. */ | |
25173 | #include <X11/Intrinsic.h> | |
25174 | _ACEOF | |
25175 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
25176 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
25177 | ac_status=$? | |
25178 | grep -v '^ *+' conftest.er1 >conftest.err | |
25179 | rm -f conftest.er1 | |
25180 | cat conftest.err >&5 | |
25181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25182 | (exit $ac_status); } >/dev/null; then | |
25183 | if test -s conftest.err; then | |
25184 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 25185 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
25186 | else |
25187 | ac_cpp_err= | |
25188 | fi | |
25189 | else | |
25190 | ac_cpp_err=yes | |
25191 | fi | |
25192 | if test -z "$ac_cpp_err"; then | |
25193 | # We can compile using X headers with no special include directory. | |
25194 | ac_x_includes= | |
25195 | else | |
25196 | echo "$as_me: failed program was:" >&5 | |
25197 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25198 | ||
25199 | for ac_dir in $ac_x_header_dirs; do | |
25200 | if test -r "$ac_dir/X11/Intrinsic.h"; then | |
25201 | ac_x_includes=$ac_dir | |
25202 | break | |
25203 | fi | |
25204 | done | |
25205 | fi | |
25206 | rm -f conftest.err conftest.$ac_ext | |
25207 | fi # $ac_x_includes = no | |
25208 | ||
25209 | if test "$ac_x_libraries" = no; then | |
25210 | # Check for the libraries. | |
25211 | # See if we find them without any special options. | |
25212 | # Don't add to $LIBS permanently. | |
25213 | ac_save_LIBS=$LIBS | |
25214 | LIBS="-lXt $LIBS" | |
25215 | cat >conftest.$ac_ext <<_ACEOF | |
25216 | /* confdefs.h. */ | |
25217 | _ACEOF | |
25218 | cat confdefs.h >>conftest.$ac_ext | |
25219 | cat >>conftest.$ac_ext <<_ACEOF | |
25220 | /* end confdefs.h. */ | |
25221 | #include <X11/Intrinsic.h> | |
25222 | int | |
25223 | main () | |
25224 | { | |
25225 | XtMalloc (0) | |
25226 | ; | |
25227 | return 0; | |
25228 | } | |
25229 | _ACEOF | |
25230 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25231 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25232 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25233 | ac_status=$? |
ac1cb8d3 VS |
25234 | grep -v '^ *+' conftest.er1 >conftest.err |
25235 | rm -f conftest.er1 | |
25236 | cat conftest.err >&5 | |
a848cd7e SC |
25237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25238 | (exit $ac_status); } && | |
89be85c2 VS |
25239 | { ac_try='test -z "$ac_c_werror_flag" |
25240 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25242 | (eval $ac_try) 2>&5 | |
25243 | ac_status=$? | |
25244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25245 | (exit $ac_status); }; } && | |
25246 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25248 | (eval $ac_try) 2>&5 | |
25249 | ac_status=$? | |
25250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25251 | (exit $ac_status); }; }; then | |
25252 | LIBS=$ac_save_LIBS | |
25253 | # We can link X programs with no special library path. | |
25254 | ac_x_libraries= | |
25255 | else | |
25256 | echo "$as_me: failed program was:" >&5 | |
25257 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25258 | ||
25259 | LIBS=$ac_save_LIBS | |
25260 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
25261 | do | |
25262 | # Don't even attempt the hair of trying to link an X program! | |
25263 | for ac_extension in a so sl; do | |
25264 | if test -r $ac_dir/libXt.$ac_extension; then | |
25265 | ac_x_libraries=$ac_dir | |
25266 | break 2 | |
25267 | fi | |
25268 | done | |
25269 | done | |
25270 | fi | |
ac1cb8d3 VS |
25271 | rm -f conftest.err conftest.$ac_objext \ |
25272 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25273 | fi # $ac_x_libraries = no |
25274 | ||
25275 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then | |
25276 | # Didn't find X anywhere. Cache the known absence of X. | |
25277 | ac_cv_have_x="have_x=no" | |
25278 | else | |
25279 | # Record where we found X for the cache. | |
25280 | ac_cv_have_x="have_x=yes \ | |
ac1cb8d3 | 25281 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
a848cd7e SC |
25282 | fi |
25283 | fi | |
25284 | ||
25285 | fi | |
25286 | eval "$ac_cv_have_x" | |
25287 | fi # $with_x != no | |
25288 | ||
25289 | if test "$have_x" != yes; then | |
25290 | echo "$as_me:$LINENO: result: $have_x" >&5 | |
25291 | echo "${ECHO_T}$have_x" >&6 | |
25292 | no_x=yes | |
25293 | else | |
25294 | # If each of the values was on the command line, it overrides each guess. | |
25295 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
25296 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
25297 | # Update the cache value to reflect the command line values. | |
25298 | ac_cv_have_x="have_x=yes \ | |
25299 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
89be85c2 VS |
25300 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
25301 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 | |
a848cd7e SC |
25302 | fi |
25303 | ||
25304 | if test "$no_x" = yes; then | |
25305 | # Not all programs may use this symbol, but it does not hurt to define it. | |
25306 | ||
25307 | cat >>confdefs.h <<\_ACEOF | |
25308 | #define X_DISPLAY_MISSING 1 | |
25309 | _ACEOF | |
25310 | ||
25311 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
25312 | else | |
25313 | if test -n "$x_includes"; then | |
25314 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
25315 | fi | |
25316 | ||
25317 | # It would also be nice to do this for all -L options, not just this one. | |
25318 | if test -n "$x_libraries"; then | |
25319 | X_LIBS="$X_LIBS -L$x_libraries" | |
25320 | # For Solaris; some versions of Sun CC require a space after -R and | |
25321 | # others require no space. Words are not sufficient . . . . | |
25322 | case `(uname -sr) 2>/dev/null` in | |
25323 | "SunOS 5"*) | |
25324 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 | |
25325 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
25326 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
25327 | cat >conftest.$ac_ext <<_ACEOF | |
25328 | /* confdefs.h. */ | |
25329 | _ACEOF | |
25330 | cat confdefs.h >>conftest.$ac_ext | |
25331 | cat >>conftest.$ac_ext <<_ACEOF | |
25332 | /* end confdefs.h. */ | |
25333 | ||
25334 | int | |
25335 | main () | |
25336 | { | |
25337 | ||
25338 | ; | |
25339 | return 0; | |
25340 | } | |
25341 | _ACEOF | |
25342 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25343 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25344 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25345 | ac_status=$? |
ac1cb8d3 VS |
25346 | grep -v '^ *+' conftest.er1 >conftest.err |
25347 | rm -f conftest.er1 | |
25348 | cat conftest.err >&5 | |
a848cd7e SC |
25349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25350 | (exit $ac_status); } && | |
89be85c2 VS |
25351 | { ac_try='test -z "$ac_c_werror_flag" |
25352 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25354 | (eval $ac_try) 2>&5 | |
25355 | ac_status=$? | |
25356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25357 | (exit $ac_status); }; } && | |
25358 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25360 | (eval $ac_try) 2>&5 | |
25361 | ac_status=$? | |
25362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25363 | (exit $ac_status); }; }; then | |
25364 | ac_R_nospace=yes | |
25365 | else | |
25366 | echo "$as_me: failed program was:" >&5 | |
25367 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25368 | ||
25369 | ac_R_nospace=no | |
25370 | fi | |
ac1cb8d3 VS |
25371 | rm -f conftest.err conftest.$ac_objext \ |
25372 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25373 | if test $ac_R_nospace = yes; then |
25374 | echo "$as_me:$LINENO: result: no" >&5 | |
25375 | echo "${ECHO_T}no" >&6 | |
25376 | X_LIBS="$X_LIBS -R$x_libraries" | |
25377 | else | |
25378 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
25379 | cat >conftest.$ac_ext <<_ACEOF | |
25380 | /* confdefs.h. */ | |
25381 | _ACEOF | |
25382 | cat confdefs.h >>conftest.$ac_ext | |
25383 | cat >>conftest.$ac_ext <<_ACEOF | |
25384 | /* end confdefs.h. */ | |
25385 | ||
25386 | int | |
25387 | main () | |
25388 | { | |
25389 | ||
25390 | ; | |
25391 | return 0; | |
25392 | } | |
25393 | _ACEOF | |
25394 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25395 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25396 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25397 | ac_status=$? |
ac1cb8d3 VS |
25398 | grep -v '^ *+' conftest.er1 >conftest.err |
25399 | rm -f conftest.er1 | |
25400 | cat conftest.err >&5 | |
a848cd7e SC |
25401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25402 | (exit $ac_status); } && | |
89be85c2 VS |
25403 | { ac_try='test -z "$ac_c_werror_flag" |
25404 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25406 | (eval $ac_try) 2>&5 | |
25407 | ac_status=$? | |
25408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25409 | (exit $ac_status); }; } && | |
25410 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25412 | (eval $ac_try) 2>&5 | |
25413 | ac_status=$? | |
25414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25415 | (exit $ac_status); }; }; then | |
25416 | ac_R_space=yes | |
25417 | else | |
25418 | echo "$as_me: failed program was:" >&5 | |
25419 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25420 | ||
25421 | ac_R_space=no | |
25422 | fi | |
ac1cb8d3 VS |
25423 | rm -f conftest.err conftest.$ac_objext \ |
25424 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25425 | if test $ac_R_space = yes; then |
25426 | echo "$as_me:$LINENO: result: yes" >&5 | |
25427 | echo "${ECHO_T}yes" >&6 | |
25428 | X_LIBS="$X_LIBS -R $x_libraries" | |
25429 | else | |
25430 | echo "$as_me:$LINENO: result: neither works" >&5 | |
25431 | echo "${ECHO_T}neither works" >&6 | |
25432 | fi | |
25433 | fi | |
25434 | LIBS=$ac_xsave_LIBS | |
25435 | esac | |
25436 | fi | |
25437 | ||
25438 | # Check for system-dependent libraries X programs must link with. | |
25439 | # Do this before checking for the system-independent R6 libraries | |
25440 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
25441 | ||
25442 | if test "$ISC" = yes; then | |
25443 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
25444 | else | |
25445 | # Martyn Johnson says this is needed for Ultrix, if the X | |
25446 | # libraries were built with DECnet support. And Karl Berry says | |
25447 | # the Alpha needs dnet_stub (dnet does not exist). | |
25448 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" | |
25449 | cat >conftest.$ac_ext <<_ACEOF | |
25450 | /* confdefs.h. */ | |
25451 | _ACEOF | |
25452 | cat confdefs.h >>conftest.$ac_ext | |
25453 | cat >>conftest.$ac_ext <<_ACEOF | |
25454 | /* end confdefs.h. */ | |
25455 | ||
25456 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25457 | #ifdef __cplusplus | |
25458 | extern "C" | |
25459 | #endif | |
25460 | /* We use char because int might match the return type of a gcc2 | |
25461 | builtin and then its argument prototype would still apply. */ | |
25462 | char XOpenDisplay (); | |
25463 | int | |
25464 | main () | |
25465 | { | |
25466 | XOpenDisplay (); | |
25467 | ; | |
25468 | return 0; | |
25469 | } | |
25470 | _ACEOF | |
25471 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25472 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25473 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25474 | ac_status=$? |
ac1cb8d3 VS |
25475 | grep -v '^ *+' conftest.er1 >conftest.err |
25476 | rm -f conftest.er1 | |
25477 | cat conftest.err >&5 | |
a848cd7e SC |
25478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25479 | (exit $ac_status); } && | |
89be85c2 VS |
25480 | { ac_try='test -z "$ac_c_werror_flag" |
25481 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25483 | (eval $ac_try) 2>&5 | |
25484 | ac_status=$? | |
25485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25486 | (exit $ac_status); }; } && | |
25487 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25489 | (eval $ac_try) 2>&5 | |
25490 | ac_status=$? | |
25491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25492 | (exit $ac_status); }; }; then | |
25493 | : | |
25494 | else | |
25495 | echo "$as_me: failed program was:" >&5 | |
25496 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25497 | ||
25498 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 | |
25499 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
25500 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
25501 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25502 | else | |
25503 | ac_check_lib_save_LIBS=$LIBS | |
25504 | LIBS="-ldnet $LIBS" | |
25505 | cat >conftest.$ac_ext <<_ACEOF | |
25506 | /* confdefs.h. */ | |
25507 | _ACEOF | |
25508 | cat confdefs.h >>conftest.$ac_ext | |
25509 | cat >>conftest.$ac_ext <<_ACEOF | |
25510 | /* end confdefs.h. */ | |
25511 | ||
25512 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25513 | #ifdef __cplusplus | |
25514 | extern "C" | |
25515 | #endif | |
25516 | /* We use char because int might match the return type of a gcc2 | |
25517 | builtin and then its argument prototype would still apply. */ | |
25518 | char dnet_ntoa (); | |
25519 | int | |
25520 | main () | |
25521 | { | |
25522 | dnet_ntoa (); | |
25523 | ; | |
25524 | return 0; | |
25525 | } | |
25526 | _ACEOF | |
25527 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25528 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25529 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25530 | ac_status=$? |
ac1cb8d3 VS |
25531 | grep -v '^ *+' conftest.er1 >conftest.err |
25532 | rm -f conftest.er1 | |
25533 | cat conftest.err >&5 | |
a848cd7e SC |
25534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25535 | (exit $ac_status); } && | |
89be85c2 VS |
25536 | { ac_try='test -z "$ac_c_werror_flag" |
25537 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25539 | (eval $ac_try) 2>&5 | |
25540 | ac_status=$? | |
25541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25542 | (exit $ac_status); }; } && | |
25543 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25545 | (eval $ac_try) 2>&5 | |
25546 | ac_status=$? | |
25547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25548 | (exit $ac_status); }; }; then | |
25549 | ac_cv_lib_dnet_dnet_ntoa=yes | |
25550 | else | |
25551 | echo "$as_me: failed program was:" >&5 | |
25552 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25553 | ||
25554 | ac_cv_lib_dnet_dnet_ntoa=no | |
25555 | fi | |
ac1cb8d3 VS |
25556 | rm -f conftest.err conftest.$ac_objext \ |
25557 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25558 | LIBS=$ac_check_lib_save_LIBS |
25559 | fi | |
25560 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
25561 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
25562 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
25563 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
25564 | fi | |
25565 | ||
25566 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
25567 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 | |
25568 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
25569 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
25570 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25571 | else | |
25572 | ac_check_lib_save_LIBS=$LIBS | |
25573 | LIBS="-ldnet_stub $LIBS" | |
25574 | cat >conftest.$ac_ext <<_ACEOF | |
25575 | /* confdefs.h. */ | |
25576 | _ACEOF | |
25577 | cat confdefs.h >>conftest.$ac_ext | |
25578 | cat >>conftest.$ac_ext <<_ACEOF | |
25579 | /* end confdefs.h. */ | |
25580 | ||
25581 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25582 | #ifdef __cplusplus | |
25583 | extern "C" | |
25584 | #endif | |
25585 | /* We use char because int might match the return type of a gcc2 | |
25586 | builtin and then its argument prototype would still apply. */ | |
25587 | char dnet_ntoa (); | |
25588 | int | |
25589 | main () | |
25590 | { | |
25591 | dnet_ntoa (); | |
25592 | ; | |
25593 | return 0; | |
25594 | } | |
25595 | _ACEOF | |
25596 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25597 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25598 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25599 | ac_status=$? |
ac1cb8d3 VS |
25600 | grep -v '^ *+' conftest.er1 >conftest.err |
25601 | rm -f conftest.er1 | |
25602 | cat conftest.err >&5 | |
a848cd7e SC |
25603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25604 | (exit $ac_status); } && | |
89be85c2 VS |
25605 | { ac_try='test -z "$ac_c_werror_flag" |
25606 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25608 | (eval $ac_try) 2>&5 | |
25609 | ac_status=$? | |
25610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25611 | (exit $ac_status); }; } && | |
25612 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25614 | (eval $ac_try) 2>&5 | |
25615 | ac_status=$? | |
25616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25617 | (exit $ac_status); }; }; then | |
25618 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
25619 | else | |
25620 | echo "$as_me: failed program was:" >&5 | |
25621 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25622 | ||
25623 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
25624 | fi | |
ac1cb8d3 VS |
25625 | rm -f conftest.err conftest.$ac_objext \ |
25626 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25627 | LIBS=$ac_check_lib_save_LIBS |
25628 | fi | |
25629 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
25630 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
25631 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
25632 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
25633 | fi | |
25634 | ||
25635 | fi | |
25636 | fi | |
ac1cb8d3 VS |
25637 | rm -f conftest.err conftest.$ac_objext \ |
25638 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25639 | LIBS="$ac_xsave_LIBS" |
25640 | ||
25641 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
25642 | # to get the SysV transport functions. | |
25643 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) | |
25644 | # needs -lnsl. | |
25645 | # The nsl library prevents programs from opening the X display | |
25646 | # on Irix 5.2, according to T.E. Dickey. | |
25647 | # The functions gethostbyname, getservbyname, and inet_addr are | |
25648 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
25649 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
25650 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
25651 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
25652 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25653 | else | |
25654 | cat >conftest.$ac_ext <<_ACEOF | |
25655 | /* confdefs.h. */ | |
25656 | _ACEOF | |
25657 | cat confdefs.h >>conftest.$ac_ext | |
25658 | cat >>conftest.$ac_ext <<_ACEOF | |
25659 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
25660 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
25661 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25662 | #define gethostbyname innocuous_gethostbyname | |
25663 | ||
a848cd7e SC |
25664 | /* System header to define __stub macros and hopefully few prototypes, |
25665 | which can conflict with char gethostbyname (); below. | |
25666 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25667 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 25668 | |
a848cd7e SC |
25669 | #ifdef __STDC__ |
25670 | # include <limits.h> | |
25671 | #else | |
25672 | # include <assert.h> | |
25673 | #endif | |
ac1cb8d3 VS |
25674 | |
25675 | #undef gethostbyname | |
25676 | ||
a848cd7e SC |
25677 | /* Override any gcc2 internal prototype to avoid an error. */ |
25678 | #ifdef __cplusplus | |
25679 | extern "C" | |
25680 | { | |
25681 | #endif | |
25682 | /* We use char because int might match the return type of a gcc2 | |
25683 | builtin and then its argument prototype would still apply. */ | |
25684 | char gethostbyname (); | |
25685 | /* The GNU C library defines this for functions which it implements | |
25686 | to always fail with ENOSYS. Some functions are actually named | |
25687 | something starting with __ and the normal name is an alias. */ | |
25688 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
25689 | choke me | |
25690 | #else | |
25691 | char (*f) () = gethostbyname; | |
25692 | #endif | |
25693 | #ifdef __cplusplus | |
25694 | } | |
25695 | #endif | |
25696 | ||
25697 | int | |
25698 | main () | |
25699 | { | |
25700 | return f != gethostbyname; | |
25701 | ; | |
25702 | return 0; | |
25703 | } | |
25704 | _ACEOF | |
25705 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25706 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25707 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25708 | ac_status=$? |
ac1cb8d3 VS |
25709 | grep -v '^ *+' conftest.er1 >conftest.err |
25710 | rm -f conftest.er1 | |
25711 | cat conftest.err >&5 | |
a848cd7e SC |
25712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25713 | (exit $ac_status); } && | |
89be85c2 VS |
25714 | { ac_try='test -z "$ac_c_werror_flag" |
25715 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25717 | (eval $ac_try) 2>&5 | |
25718 | ac_status=$? | |
25719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25720 | (exit $ac_status); }; } && | |
25721 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25723 | (eval $ac_try) 2>&5 | |
25724 | ac_status=$? | |
25725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25726 | (exit $ac_status); }; }; then | |
25727 | ac_cv_func_gethostbyname=yes | |
25728 | else | |
25729 | echo "$as_me: failed program was:" >&5 | |
25730 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25731 | ||
25732 | ac_cv_func_gethostbyname=no | |
25733 | fi | |
ac1cb8d3 VS |
25734 | rm -f conftest.err conftest.$ac_objext \ |
25735 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25736 | fi |
25737 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
25738 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
25739 | ||
25740 | if test $ac_cv_func_gethostbyname = no; then | |
25741 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 | |
25742 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
25743 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
25744 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25745 | else | |
25746 | ac_check_lib_save_LIBS=$LIBS | |
25747 | LIBS="-lnsl $LIBS" | |
25748 | cat >conftest.$ac_ext <<_ACEOF | |
25749 | /* confdefs.h. */ | |
25750 | _ACEOF | |
25751 | cat confdefs.h >>conftest.$ac_ext | |
25752 | cat >>conftest.$ac_ext <<_ACEOF | |
25753 | /* end confdefs.h. */ | |
25754 | ||
25755 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25756 | #ifdef __cplusplus | |
25757 | extern "C" | |
25758 | #endif | |
25759 | /* We use char because int might match the return type of a gcc2 | |
25760 | builtin and then its argument prototype would still apply. */ | |
25761 | char gethostbyname (); | |
25762 | int | |
25763 | main () | |
25764 | { | |
25765 | gethostbyname (); | |
25766 | ; | |
25767 | return 0; | |
25768 | } | |
25769 | _ACEOF | |
25770 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25771 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 VS |
25772 | (eval $ac_link) 2>conftest.er1 |
25773 | ac_status=$? | |
25774 | grep -v '^ *+' conftest.er1 >conftest.err | |
25775 | rm -f conftest.er1 | |
25776 | cat conftest.err >&5 | |
25777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25778 | (exit $ac_status); } && | |
89be85c2 VS |
25779 | { ac_try='test -z "$ac_c_werror_flag" |
25780 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25782 | (eval $ac_try) 2>&5 | |
25783 | ac_status=$? | |
25784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25785 | (exit $ac_status); }; } && | |
25786 | { ac_try='test -s conftest$ac_exeext' | |
25787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25788 | (eval $ac_try) 2>&5 | |
25789 | ac_status=$? | |
25790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25791 | (exit $ac_status); }; }; then | |
25792 | ac_cv_lib_nsl_gethostbyname=yes | |
25793 | else | |
25794 | echo "$as_me: failed program was:" >&5 | |
25795 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25796 | ||
25797 | ac_cv_lib_nsl_gethostbyname=no | |
25798 | fi | |
25799 | rm -f conftest.err conftest.$ac_objext \ | |
25800 | conftest$ac_exeext conftest.$ac_ext | |
25801 | LIBS=$ac_check_lib_save_LIBS | |
25802 | fi | |
25803 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
25804 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
25805 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
25806 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
25807 | fi | |
25808 | ||
25809 | if test $ac_cv_lib_nsl_gethostbyname = no; then | |
25810 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 | |
25811 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 | |
25812 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
25813 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25814 | else | |
25815 | ac_check_lib_save_LIBS=$LIBS | |
25816 | LIBS="-lbsd $LIBS" | |
25817 | cat >conftest.$ac_ext <<_ACEOF | |
25818 | /* confdefs.h. */ | |
25819 | _ACEOF | |
25820 | cat confdefs.h >>conftest.$ac_ext | |
25821 | cat >>conftest.$ac_ext <<_ACEOF | |
25822 | /* end confdefs.h. */ | |
25823 | ||
25824 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25825 | #ifdef __cplusplus | |
25826 | extern "C" | |
25827 | #endif | |
25828 | /* We use char because int might match the return type of a gcc2 | |
25829 | builtin and then its argument prototype would still apply. */ | |
25830 | char gethostbyname (); | |
25831 | int | |
25832 | main () | |
25833 | { | |
25834 | gethostbyname (); | |
25835 | ; | |
25836 | return 0; | |
25837 | } | |
25838 | _ACEOF | |
25839 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25840 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25841 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 25842 | ac_status=$? |
ac1cb8d3 VS |
25843 | grep -v '^ *+' conftest.er1 >conftest.err |
25844 | rm -f conftest.er1 | |
25845 | cat conftest.err >&5 | |
a848cd7e SC |
25846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25847 | (exit $ac_status); } && | |
89be85c2 VS |
25848 | { ac_try='test -z "$ac_c_werror_flag" |
25849 | || test ! -s conftest.err' | |
a848cd7e SC |
25850 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25851 | (eval $ac_try) 2>&5 | |
25852 | ac_status=$? | |
25853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
ac1cb8d3 VS |
25854 | (exit $ac_status); }; } && |
25855 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25857 | (eval $ac_try) 2>&5 | |
25858 | ac_status=$? | |
25859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25860 | (exit $ac_status); }; }; then | |
25861 | ac_cv_lib_bsd_gethostbyname=yes | |
25862 | else | |
25863 | echo "$as_me: failed program was:" >&5 | |
25864 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25865 | ||
25866 | ac_cv_lib_bsd_gethostbyname=no | |
25867 | fi | |
ac1cb8d3 VS |
25868 | rm -f conftest.err conftest.$ac_objext \ |
25869 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25870 | LIBS=$ac_check_lib_save_LIBS |
25871 | fi | |
25872 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
25873 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
25874 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
25875 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
25876 | fi | |
25877 | ||
25878 | fi | |
25879 | fi | |
25880 | ||
25881 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
25882 | # socket/setsockopt and other routines are undefined under SCO ODT | |
25883 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
25884 | # on later versions), says Simon Leinen: it contains gethostby* | |
25885 | # variants that don't use the name server (or something). -lsocket | |
25886 | # must be given before -lnsl if both are needed. We assume that | |
25887 | # if connect needs -lnsl, so does gethostbyname. | |
25888 | echo "$as_me:$LINENO: checking for connect" >&5 | |
25889 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
25890 | if test "${ac_cv_func_connect+set}" = set; then | |
25891 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25892 | else | |
25893 | cat >conftest.$ac_ext <<_ACEOF | |
25894 | /* confdefs.h. */ | |
25895 | _ACEOF | |
25896 | cat confdefs.h >>conftest.$ac_ext | |
25897 | cat >>conftest.$ac_ext <<_ACEOF | |
25898 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
25899 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
25900 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25901 | #define connect innocuous_connect | |
25902 | ||
a848cd7e SC |
25903 | /* System header to define __stub macros and hopefully few prototypes, |
25904 | which can conflict with char connect (); below. | |
25905 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25906 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 25907 | |
a848cd7e SC |
25908 | #ifdef __STDC__ |
25909 | # include <limits.h> | |
25910 | #else | |
25911 | # include <assert.h> | |
25912 | #endif | |
ac1cb8d3 VS |
25913 | |
25914 | #undef connect | |
25915 | ||
a848cd7e SC |
25916 | /* Override any gcc2 internal prototype to avoid an error. */ |
25917 | #ifdef __cplusplus | |
25918 | extern "C" | |
25919 | { | |
25920 | #endif | |
25921 | /* We use char because int might match the return type of a gcc2 | |
25922 | builtin and then its argument prototype would still apply. */ | |
25923 | char connect (); | |
25924 | /* The GNU C library defines this for functions which it implements | |
25925 | to always fail with ENOSYS. Some functions are actually named | |
25926 | something starting with __ and the normal name is an alias. */ | |
25927 | #if defined (__stub_connect) || defined (__stub___connect) | |
25928 | choke me | |
25929 | #else | |
25930 | char (*f) () = connect; | |
25931 | #endif | |
25932 | #ifdef __cplusplus | |
25933 | } | |
25934 | #endif | |
25935 | ||
25936 | int | |
25937 | main () | |
25938 | { | |
25939 | return f != connect; | |
25940 | ; | |
25941 | return 0; | |
25942 | } | |
25943 | _ACEOF | |
25944 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25945 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25946 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25947 | ac_status=$? |
ac1cb8d3 VS |
25948 | grep -v '^ *+' conftest.er1 >conftest.err |
25949 | rm -f conftest.er1 | |
25950 | cat conftest.err >&5 | |
a848cd7e SC |
25951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25952 | (exit $ac_status); } && | |
89be85c2 VS |
25953 | { ac_try='test -z "$ac_c_werror_flag" |
25954 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25956 | (eval $ac_try) 2>&5 | |
25957 | ac_status=$? | |
25958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25959 | (exit $ac_status); }; } && | |
25960 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25962 | (eval $ac_try) 2>&5 | |
25963 | ac_status=$? | |
25964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25965 | (exit $ac_status); }; }; then | |
25966 | ac_cv_func_connect=yes | |
25967 | else | |
25968 | echo "$as_me: failed program was:" >&5 | |
25969 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25970 | ||
25971 | ac_cv_func_connect=no | |
25972 | fi | |
ac1cb8d3 VS |
25973 | rm -f conftest.err conftest.$ac_objext \ |
25974 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25975 | fi |
25976 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
25977 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
25978 | ||
25979 | if test $ac_cv_func_connect = no; then | |
25980 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 | |
25981 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
25982 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
25983 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25984 | else | |
25985 | ac_check_lib_save_LIBS=$LIBS | |
25986 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
25987 | cat >conftest.$ac_ext <<_ACEOF | |
25988 | /* confdefs.h. */ | |
25989 | _ACEOF | |
25990 | cat confdefs.h >>conftest.$ac_ext | |
25991 | cat >>conftest.$ac_ext <<_ACEOF | |
25992 | /* end confdefs.h. */ | |
25993 | ||
25994 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25995 | #ifdef __cplusplus | |
25996 | extern "C" | |
25997 | #endif | |
25998 | /* We use char because int might match the return type of a gcc2 | |
25999 | builtin and then its argument prototype would still apply. */ | |
26000 | char connect (); | |
26001 | int | |
26002 | main () | |
26003 | { | |
26004 | connect (); | |
26005 | ; | |
26006 | return 0; | |
26007 | } | |
26008 | _ACEOF | |
26009 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26010 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26011 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26012 | ac_status=$? |
ac1cb8d3 VS |
26013 | grep -v '^ *+' conftest.er1 >conftest.err |
26014 | rm -f conftest.er1 | |
26015 | cat conftest.err >&5 | |
a848cd7e SC |
26016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26017 | (exit $ac_status); } && | |
89be85c2 VS |
26018 | { ac_try='test -z "$ac_c_werror_flag" |
26019 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26021 | (eval $ac_try) 2>&5 | |
26022 | ac_status=$? | |
26023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26024 | (exit $ac_status); }; } && | |
26025 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26027 | (eval $ac_try) 2>&5 | |
26028 | ac_status=$? | |
26029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26030 | (exit $ac_status); }; }; then | |
26031 | ac_cv_lib_socket_connect=yes | |
26032 | else | |
26033 | echo "$as_me: failed program was:" >&5 | |
26034 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26035 | ||
26036 | ac_cv_lib_socket_connect=no | |
26037 | fi | |
ac1cb8d3 VS |
26038 | rm -f conftest.err conftest.$ac_objext \ |
26039 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26040 | LIBS=$ac_check_lib_save_LIBS |
26041 | fi | |
26042 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
26043 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
26044 | if test $ac_cv_lib_socket_connect = yes; then | |
26045 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
26046 | fi | |
26047 | ||
26048 | fi | |
26049 | ||
26050 | # Guillermo Gomez says -lposix is necessary on A/UX. | |
26051 | echo "$as_me:$LINENO: checking for remove" >&5 | |
26052 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
26053 | if test "${ac_cv_func_remove+set}" = set; then | |
26054 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26055 | else | |
26056 | cat >conftest.$ac_ext <<_ACEOF | |
26057 | /* confdefs.h. */ | |
26058 | _ACEOF | |
26059 | cat confdefs.h >>conftest.$ac_ext | |
26060 | cat >>conftest.$ac_ext <<_ACEOF | |
26061 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
26062 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
26063 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
26064 | #define remove innocuous_remove | |
26065 | ||
a848cd7e SC |
26066 | /* System header to define __stub macros and hopefully few prototypes, |
26067 | which can conflict with char remove (); below. | |
26068 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26069 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 26070 | |
a848cd7e SC |
26071 | #ifdef __STDC__ |
26072 | # include <limits.h> | |
26073 | #else | |
26074 | # include <assert.h> | |
26075 | #endif | |
ac1cb8d3 VS |
26076 | |
26077 | #undef remove | |
26078 | ||
a848cd7e SC |
26079 | /* Override any gcc2 internal prototype to avoid an error. */ |
26080 | #ifdef __cplusplus | |
26081 | extern "C" | |
26082 | { | |
26083 | #endif | |
26084 | /* We use char because int might match the return type of a gcc2 | |
26085 | builtin and then its argument prototype would still apply. */ | |
26086 | char remove (); | |
26087 | /* The GNU C library defines this for functions which it implements | |
26088 | to always fail with ENOSYS. Some functions are actually named | |
26089 | something starting with __ and the normal name is an alias. */ | |
26090 | #if defined (__stub_remove) || defined (__stub___remove) | |
26091 | choke me | |
26092 | #else | |
26093 | char (*f) () = remove; | |
26094 | #endif | |
26095 | #ifdef __cplusplus | |
26096 | } | |
26097 | #endif | |
26098 | ||
26099 | int | |
26100 | main () | |
26101 | { | |
26102 | return f != remove; | |
26103 | ; | |
26104 | return 0; | |
26105 | } | |
26106 | _ACEOF | |
26107 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26108 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26109 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26110 | ac_status=$? |
ac1cb8d3 VS |
26111 | grep -v '^ *+' conftest.er1 >conftest.err |
26112 | rm -f conftest.er1 | |
26113 | cat conftest.err >&5 | |
a848cd7e SC |
26114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26115 | (exit $ac_status); } && | |
89be85c2 VS |
26116 | { ac_try='test -z "$ac_c_werror_flag" |
26117 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26119 | (eval $ac_try) 2>&5 | |
26120 | ac_status=$? | |
26121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26122 | (exit $ac_status); }; } && | |
26123 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26125 | (eval $ac_try) 2>&5 | |
26126 | ac_status=$? | |
26127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26128 | (exit $ac_status); }; }; then | |
26129 | ac_cv_func_remove=yes | |
26130 | else | |
26131 | echo "$as_me: failed program was:" >&5 | |
26132 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26133 | ||
26134 | ac_cv_func_remove=no | |
26135 | fi | |
ac1cb8d3 VS |
26136 | rm -f conftest.err conftest.$ac_objext \ |
26137 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26138 | fi |
26139 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
26140 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
26141 | ||
26142 | if test $ac_cv_func_remove = no; then | |
26143 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 | |
26144 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
26145 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
26146 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26147 | else | |
26148 | ac_check_lib_save_LIBS=$LIBS | |
26149 | LIBS="-lposix $LIBS" | |
26150 | cat >conftest.$ac_ext <<_ACEOF | |
26151 | /* confdefs.h. */ | |
26152 | _ACEOF | |
26153 | cat confdefs.h >>conftest.$ac_ext | |
26154 | cat >>conftest.$ac_ext <<_ACEOF | |
26155 | /* end confdefs.h. */ | |
26156 | ||
26157 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26158 | #ifdef __cplusplus | |
26159 | extern "C" | |
26160 | #endif | |
26161 | /* We use char because int might match the return type of a gcc2 | |
26162 | builtin and then its argument prototype would still apply. */ | |
26163 | char remove (); | |
26164 | int | |
26165 | main () | |
26166 | { | |
26167 | remove (); | |
26168 | ; | |
26169 | return 0; | |
26170 | } | |
26171 | _ACEOF | |
26172 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26173 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26174 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26175 | ac_status=$? |
ac1cb8d3 VS |
26176 | grep -v '^ *+' conftest.er1 >conftest.err |
26177 | rm -f conftest.er1 | |
26178 | cat conftest.err >&5 | |
a848cd7e SC |
26179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26180 | (exit $ac_status); } && | |
89be85c2 VS |
26181 | { ac_try='test -z "$ac_c_werror_flag" |
26182 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26184 | (eval $ac_try) 2>&5 | |
26185 | ac_status=$? | |
26186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26187 | (exit $ac_status); }; } && | |
26188 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26190 | (eval $ac_try) 2>&5 | |
26191 | ac_status=$? | |
26192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26193 | (exit $ac_status); }; }; then | |
26194 | ac_cv_lib_posix_remove=yes | |
26195 | else | |
26196 | echo "$as_me: failed program was:" >&5 | |
26197 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26198 | ||
26199 | ac_cv_lib_posix_remove=no | |
26200 | fi | |
ac1cb8d3 VS |
26201 | rm -f conftest.err conftest.$ac_objext \ |
26202 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26203 | LIBS=$ac_check_lib_save_LIBS |
26204 | fi | |
26205 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
26206 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
26207 | if test $ac_cv_lib_posix_remove = yes; then | |
26208 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
26209 | fi | |
26210 | ||
26211 | fi | |
26212 | ||
26213 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
26214 | echo "$as_me:$LINENO: checking for shmat" >&5 | |
26215 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
26216 | if test "${ac_cv_func_shmat+set}" = set; then | |
26217 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26218 | else | |
26219 | cat >conftest.$ac_ext <<_ACEOF | |
26220 | /* confdefs.h. */ | |
26221 | _ACEOF | |
26222 | cat confdefs.h >>conftest.$ac_ext | |
26223 | cat >>conftest.$ac_ext <<_ACEOF | |
26224 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
26225 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
26226 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
26227 | #define shmat innocuous_shmat | |
26228 | ||
a848cd7e SC |
26229 | /* System header to define __stub macros and hopefully few prototypes, |
26230 | which can conflict with char shmat (); below. | |
26231 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26232 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 26233 | |
a848cd7e SC |
26234 | #ifdef __STDC__ |
26235 | # include <limits.h> | |
26236 | #else | |
26237 | # include <assert.h> | |
26238 | #endif | |
ac1cb8d3 VS |
26239 | |
26240 | #undef shmat | |
26241 | ||
a848cd7e SC |
26242 | /* Override any gcc2 internal prototype to avoid an error. */ |
26243 | #ifdef __cplusplus | |
26244 | extern "C" | |
26245 | { | |
26246 | #endif | |
26247 | /* We use char because int might match the return type of a gcc2 | |
26248 | builtin and then its argument prototype would still apply. */ | |
26249 | char shmat (); | |
26250 | /* The GNU C library defines this for functions which it implements | |
26251 | to always fail with ENOSYS. Some functions are actually named | |
26252 | something starting with __ and the normal name is an alias. */ | |
26253 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
26254 | choke me | |
26255 | #else | |
26256 | char (*f) () = shmat; | |
26257 | #endif | |
26258 | #ifdef __cplusplus | |
26259 | } | |
26260 | #endif | |
26261 | ||
26262 | int | |
26263 | main () | |
26264 | { | |
26265 | return f != shmat; | |
26266 | ; | |
26267 | return 0; | |
26268 | } | |
26269 | _ACEOF | |
26270 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26271 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26272 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26273 | ac_status=$? |
ac1cb8d3 VS |
26274 | grep -v '^ *+' conftest.er1 >conftest.err |
26275 | rm -f conftest.er1 | |
26276 | cat conftest.err >&5 | |
a848cd7e SC |
26277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26278 | (exit $ac_status); } && | |
89be85c2 VS |
26279 | { ac_try='test -z "$ac_c_werror_flag" |
26280 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26282 | (eval $ac_try) 2>&5 | |
26283 | ac_status=$? | |
26284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26285 | (exit $ac_status); }; } && | |
26286 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26287 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26288 | (eval $ac_try) 2>&5 | |
26289 | ac_status=$? | |
26290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26291 | (exit $ac_status); }; }; then | |
26292 | ac_cv_func_shmat=yes | |
26293 | else | |
26294 | echo "$as_me: failed program was:" >&5 | |
26295 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26296 | ||
26297 | ac_cv_func_shmat=no | |
26298 | fi | |
ac1cb8d3 VS |
26299 | rm -f conftest.err conftest.$ac_objext \ |
26300 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26301 | fi |
26302 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
26303 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
26304 | ||
26305 | if test $ac_cv_func_shmat = no; then | |
26306 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 | |
26307 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
26308 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
26309 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26310 | else | |
26311 | ac_check_lib_save_LIBS=$LIBS | |
26312 | LIBS="-lipc $LIBS" | |
26313 | cat >conftest.$ac_ext <<_ACEOF | |
26314 | /* confdefs.h. */ | |
26315 | _ACEOF | |
26316 | cat confdefs.h >>conftest.$ac_ext | |
26317 | cat >>conftest.$ac_ext <<_ACEOF | |
26318 | /* end confdefs.h. */ | |
26319 | ||
26320 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26321 | #ifdef __cplusplus | |
26322 | extern "C" | |
26323 | #endif | |
26324 | /* We use char because int might match the return type of a gcc2 | |
26325 | builtin and then its argument prototype would still apply. */ | |
26326 | char shmat (); | |
26327 | int | |
26328 | main () | |
26329 | { | |
26330 | shmat (); | |
26331 | ; | |
26332 | return 0; | |
26333 | } | |
26334 | _ACEOF | |
26335 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26336 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26337 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26338 | ac_status=$? |
ac1cb8d3 VS |
26339 | grep -v '^ *+' conftest.er1 >conftest.err |
26340 | rm -f conftest.er1 | |
26341 | cat conftest.err >&5 | |
a848cd7e SC |
26342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26343 | (exit $ac_status); } && | |
89be85c2 VS |
26344 | { ac_try='test -z "$ac_c_werror_flag" |
26345 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26347 | (eval $ac_try) 2>&5 | |
26348 | ac_status=$? | |
26349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26350 | (exit $ac_status); }; } && | |
26351 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26353 | (eval $ac_try) 2>&5 | |
26354 | ac_status=$? | |
26355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26356 | (exit $ac_status); }; }; then | |
26357 | ac_cv_lib_ipc_shmat=yes | |
26358 | else | |
26359 | echo "$as_me: failed program was:" >&5 | |
26360 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26361 | ||
26362 | ac_cv_lib_ipc_shmat=no | |
26363 | fi | |
ac1cb8d3 VS |
26364 | rm -f conftest.err conftest.$ac_objext \ |
26365 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26366 | LIBS=$ac_check_lib_save_LIBS |
26367 | fi | |
26368 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
26369 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
26370 | if test $ac_cv_lib_ipc_shmat = yes; then | |
26371 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
26372 | fi | |
26373 | ||
26374 | fi | |
26375 | fi | |
26376 | ||
26377 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
26378 | ac_save_LDFLAGS=$LDFLAGS | |
26379 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
26380 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
26381 | # check for ICE first), but we must link in the order -lSM -lICE or | |
26382 | # we get undefined symbols. So assume we have SM if we have ICE. | |
26383 | # These have to be linked with before -lX11, unlike the other | |
26384 | # libraries we check for below, so use a different variable. | |
26385 | # John Interrante, Karl Berry | |
26386 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
26387 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
26388 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
26389 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26390 | else | |
26391 | ac_check_lib_save_LIBS=$LIBS | |
26392 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
26393 | cat >conftest.$ac_ext <<_ACEOF | |
26394 | /* confdefs.h. */ | |
26395 | _ACEOF | |
26396 | cat confdefs.h >>conftest.$ac_ext | |
26397 | cat >>conftest.$ac_ext <<_ACEOF | |
26398 | /* end confdefs.h. */ | |
26399 | ||
26400 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26401 | #ifdef __cplusplus | |
26402 | extern "C" | |
26403 | #endif | |
26404 | /* We use char because int might match the return type of a gcc2 | |
26405 | builtin and then its argument prototype would still apply. */ | |
26406 | char IceConnectionNumber (); | |
26407 | int | |
26408 | main () | |
26409 | { | |
26410 | IceConnectionNumber (); | |
26411 | ; | |
26412 | return 0; | |
26413 | } | |
26414 | _ACEOF | |
26415 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26416 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26417 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26418 | ac_status=$? |
ac1cb8d3 VS |
26419 | grep -v '^ *+' conftest.er1 >conftest.err |
26420 | rm -f conftest.er1 | |
26421 | cat conftest.err >&5 | |
a848cd7e SC |
26422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26423 | (exit $ac_status); } && | |
89be85c2 VS |
26424 | { ac_try='test -z "$ac_c_werror_flag" |
26425 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26426 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26427 | (eval $ac_try) 2>&5 | |
26428 | ac_status=$? | |
26429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26430 | (exit $ac_status); }; } && | |
26431 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26433 | (eval $ac_try) 2>&5 | |
26434 | ac_status=$? | |
26435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26436 | (exit $ac_status); }; }; then | |
26437 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
26438 | else | |
26439 | echo "$as_me: failed program was:" >&5 | |
26440 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26441 | ||
26442 | ac_cv_lib_ICE_IceConnectionNumber=no | |
26443 | fi | |
ac1cb8d3 VS |
26444 | rm -f conftest.err conftest.$ac_objext \ |
26445 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26446 | LIBS=$ac_check_lib_save_LIBS |
26447 | fi | |
26448 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
26449 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
26450 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
26451 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
26452 | fi | |
26453 | ||
26454 | LDFLAGS=$ac_save_LDFLAGS | |
26455 | ||
26456 | fi | |
26457 | ||
26458 | ||
26459 | if test "$no_x" = "yes"; then | |
26460 | { { echo "$as_me:$LINENO: error: X11 not found" >&5 | |
26461 | echo "$as_me: error: X11 not found" >&2;} | |
26462 | { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; } | |
26463 | fi | |
26464 | ||
74b84332 VS |
26465 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'` |
26466 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
a848cd7e SC |
26467 | AFMINSTALL=afminstall |
26468 | COMPILED_X_PROGRAM=0 | |
26469 | ||
74b84332 VS |
26470 | fi |
26471 | ||
26472 | if test "$wxUSE_X11" = 1; then | |
a848cd7e SC |
26473 | if test "$wxUSE_NANOX" = "yes"; then |
26474 | echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5 | |
26475 | echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6 | |
26476 | if test "x$MICROWIN" = x ; then | |
26477 | echo "$as_me:$LINENO: result: not found" >&5 | |
26478 | echo "${ECHO_T}not found" >&6 | |
26479 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5 | |
26480 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;} | |
26481 | { (exit 1); exit 1; }; } | |
26482 | else | |
26483 | echo "$as_me:$LINENO: result: $MICROWIN" >&5 | |
26484 | echo "${ECHO_T}$MICROWIN" >&6 | |
26485 | cat >>confdefs.h <<\_ACEOF | |
26486 | #define wxUSE_NANOX 1 | |
26487 | _ACEOF | |
26488 | ||
26489 | fi | |
26490 | fi | |
26491 | ||
26492 | if test "$wxUSE_UNICODE" = "yes"; then | |
26493 | ||
26494 | succeeded=no | |
26495 | ||
26496 | if test -z "$PKG_CONFIG"; then | |
26497 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
26498 | set dummy pkg-config; ac_word=$2 | |
26499 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
26500 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
26501 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
26502 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26503 | else | |
26504 | case $PKG_CONFIG in | |
26505 | [\\/]* | ?:[\\/]*) | |
26506 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
26507 | ;; | |
26508 | *) | |
26509 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
26510 | for as_dir in $PATH | |
26511 | do | |
26512 | IFS=$as_save_IFS | |
26513 | test -z "$as_dir" && as_dir=. | |
26514 | for ac_exec_ext in '' $ac_executable_extensions; do | |
26515 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
26516 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
26517 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
26518 | break 2 | |
26519 | fi | |
26520 | done | |
26521 | done | |
26522 | ||
26523 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
26524 | ;; | |
26525 | esac | |
26526 | fi | |
26527 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
26528 | ||
26529 | if test -n "$PKG_CONFIG"; then | |
26530 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
26531 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
26532 | else | |
26533 | echo "$as_me:$LINENO: result: no" >&5 | |
26534 | echo "${ECHO_T}no" >&6 | |
26535 | fi | |
26536 | ||
26537 | fi | |
26538 | ||
26539 | if test "$PKG_CONFIG" = "no" ; then | |
26540 | echo "*** The pkg-config script could not be found. Make sure it is" | |
26541 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
26542 | echo "*** to the full path to pkg-config." | |
26543 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
26544 | else | |
26545 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
26546 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
26547 | echo "$as_me:$LINENO: checking for pangox" >&5 | |
26548 | echo $ECHO_N "checking for pangox... $ECHO_C" >&6 | |
26549 | ||
26550 | if $PKG_CONFIG --exists "pangox" ; then | |
26551 | echo "$as_me:$LINENO: result: yes" >&5 | |
26552 | echo "${ECHO_T}yes" >&6 | |
26553 | succeeded=yes | |
26554 | ||
26555 | echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5 | |
26556 | echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6 | |
26557 | PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"` | |
26558 | echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5 | |
26559 | echo "${ECHO_T}$PANGOX_CFLAGS" >&6 | |
26560 | ||
26561 | echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5 | |
26562 | echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6 | |
26563 | PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"` | |
26564 | echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5 | |
26565 | echo "${ECHO_T}$PANGOX_LIBS" >&6 | |
26566 | else | |
26567 | PANGOX_CFLAGS="" | |
26568 | PANGOX_LIBS="" | |
26569 | ## If we have a custom action on failure, don't print errors, but | |
26570 | ## do set a variable so people can do so. | |
26571 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
26572 | ||
26573 | fi | |
26574 | ||
26575 | ||
26576 | ||
26577 | else | |
26578 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
26579 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
26580 | fi | |
26581 | fi | |
26582 | ||
26583 | if test $succeeded = yes; then | |
26584 | ||
26585 | CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS" | |
26586 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS" | |
26587 | ||
26588 | else | |
26589 | ||
26590 | { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5 | |
26591 | echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;} | |
26592 | { (exit 1); exit 1; }; } | |
26593 | ||
26594 | ||
26595 | fi | |
26596 | ||
26597 | ||
26598 | succeeded=no | |
26599 | ||
26600 | if test -z "$PKG_CONFIG"; then | |
26601 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
26602 | set dummy pkg-config; ac_word=$2 | |
26603 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
26604 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
26605 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
26606 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26607 | else | |
26608 | case $PKG_CONFIG in | |
26609 | [\\/]* | ?:[\\/]*) | |
26610 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
26611 | ;; | |
26612 | *) | |
26613 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
26614 | for as_dir in $PATH | |
26615 | do | |
26616 | IFS=$as_save_IFS | |
26617 | test -z "$as_dir" && as_dir=. | |
26618 | for ac_exec_ext in '' $ac_executable_extensions; do | |
26619 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
26620 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
26621 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
26622 | break 2 | |
26623 | fi | |
26624 | done | |
26625 | done | |
26626 | ||
26627 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
26628 | ;; | |
26629 | esac | |
26630 | fi | |
26631 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
26632 | ||
26633 | if test -n "$PKG_CONFIG"; then | |
26634 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
26635 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
26636 | else | |
26637 | echo "$as_me:$LINENO: result: no" >&5 | |
26638 | echo "${ECHO_T}no" >&6 | |
26639 | fi | |
26640 | ||
26641 | fi | |
26642 | ||
26643 | if test "$PKG_CONFIG" = "no" ; then | |
26644 | echo "*** The pkg-config script could not be found. Make sure it is" | |
26645 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
26646 | echo "*** to the full path to pkg-config." | |
26647 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
26648 | else | |
26649 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
26650 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
26651 | echo "$as_me:$LINENO: checking for pangoft2" >&5 | |
26652 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
26653 | ||
26654 | if $PKG_CONFIG --exists "pangoft2" ; then | |
26655 | echo "$as_me:$LINENO: result: yes" >&5 | |
26656 | echo "${ECHO_T}yes" >&6 | |
26657 | succeeded=yes | |
26658 | ||
26659 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 | |
26660 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
26661 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` | |
26662 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 | |
26663 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
26664 | ||
26665 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 | |
26666 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
26667 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` | |
26668 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 | |
26669 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
26670 | else | |
26671 | PANGOFT2_CFLAGS="" | |
26672 | PANGOFT2_LIBS="" | |
26673 | ## If we have a custom action on failure, don't print errors, but | |
26674 | ## do set a variable so people can do so. | |
26675 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
26676 | ||
26677 | fi | |
26678 | ||
26679 | ||
26680 | ||
26681 | else | |
26682 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
26683 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
26684 | fi | |
26685 | fi | |
26686 | ||
26687 | if test $succeeded = yes; then | |
26688 | ||
26689 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" | |
26690 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" | |
26691 | ||
26692 | else | |
26693 | ||
26694 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
26695 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
26696 | wxUSE_PRINTING_ARCHITECTURE="no" | |
26697 | ||
26698 | ||
26699 | fi | |
26700 | ||
26701 | ||
26702 | succeeded=no | |
26703 | ||
26704 | if test -z "$PKG_CONFIG"; then | |
26705 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
26706 | set dummy pkg-config; ac_word=$2 | |
26707 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
26708 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
26709 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
26710 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26711 | else | |
26712 | case $PKG_CONFIG in | |
26713 | [\\/]* | ?:[\\/]*) | |
26714 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
26715 | ;; | |
26716 | *) | |
26717 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
26718 | for as_dir in $PATH | |
26719 | do | |
26720 | IFS=$as_save_IFS | |
26721 | test -z "$as_dir" && as_dir=. | |
26722 | for ac_exec_ext in '' $ac_executable_extensions; do | |
26723 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
26724 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
26725 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
26726 | break 2 | |
26727 | fi | |
26728 | done | |
26729 | done | |
26730 | ||
26731 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
26732 | ;; | |
26733 | esac | |
26734 | fi | |
26735 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
26736 | ||
26737 | if test -n "$PKG_CONFIG"; then | |
26738 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
26739 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
26740 | else | |
26741 | echo "$as_me:$LINENO: result: no" >&5 | |
26742 | echo "${ECHO_T}no" >&6 | |
26743 | fi | |
26744 | ||
26745 | fi | |
26746 | ||
26747 | if test "$PKG_CONFIG" = "no" ; then | |
26748 | echo "*** The pkg-config script could not be found. Make sure it is" | |
26749 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
26750 | echo "*** to the full path to pkg-config." | |
26751 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
26752 | else | |
26753 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
26754 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
26755 | echo "$as_me:$LINENO: checking for pangoxft" >&5 | |
26756 | echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6 | |
26757 | ||
26758 | if $PKG_CONFIG --exists "pangoxft" ; then | |
26759 | echo "$as_me:$LINENO: result: yes" >&5 | |
26760 | echo "${ECHO_T}yes" >&6 | |
26761 | succeeded=yes | |
26762 | ||
26763 | echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5 | |
26764 | echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6 | |
26765 | PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"` | |
26766 | echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5 | |
26767 | echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6 | |
26768 | ||
26769 | echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5 | |
26770 | echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6 | |
26771 | PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"` | |
26772 | echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5 | |
26773 | echo "${ECHO_T}$PANGOXFT_LIBS" >&6 | |
26774 | else | |
26775 | PANGOXFT_CFLAGS="" | |
26776 | PANGOXFT_LIBS="" | |
26777 | ## If we have a custom action on failure, don't print errors, but | |
26778 | ## do set a variable so people can do so. | |
26779 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
26780 | ||
26781 | fi | |
26782 | ||
26783 | ||
26784 | ||
26785 | else | |
26786 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
26787 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
26788 | fi | |
26789 | fi | |
26790 | ||
26791 | if test $succeeded = yes; then | |
26792 | ||
4ae1af05 MB |
26793 | cat >>confdefs.h <<\_ACEOF |
26794 | #define HAVE_PANGO_XFT 1 | |
26795 | _ACEOF | |
26796 | ||
a848cd7e SC |
26797 | CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS" |
26798 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS" | |
26799 | ||
26800 | else | |
26801 | ||
26802 | { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5 | |
26803 | echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;} | |
26804 | ||
26805 | ||
26806 | fi | |
26807 | ||
304205f1 VS |
26808 | save_CFLAGS="$CFLAGS" |
26809 | save_LIBS="$LIBS" | |
26810 | CFLAGS="$CFLAGS $PANGOX_CFLAGS" | |
26811 | LIBS="$LIBS $PANGOX_LIBS" | |
26812 | ||
26813 | for ac_func in pango_font_family_is_monospace | |
26814 | do | |
26815 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
26816 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
26817 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
26818 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
26819 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26820 | else | |
26821 | cat >conftest.$ac_ext <<_ACEOF | |
26822 | /* confdefs.h. */ | |
26823 | _ACEOF | |
26824 | cat confdefs.h >>conftest.$ac_ext | |
26825 | cat >>conftest.$ac_ext <<_ACEOF | |
26826 | /* end confdefs.h. */ | |
26827 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
26828 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
26829 | #define $ac_func innocuous_$ac_func | |
26830 | ||
26831 | /* System header to define __stub macros and hopefully few prototypes, | |
26832 | which can conflict with char $ac_func (); below. | |
26833 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26834 | <limits.h> exists even on freestanding compilers. */ | |
26835 | ||
26836 | #ifdef __STDC__ | |
26837 | # include <limits.h> | |
26838 | #else | |
26839 | # include <assert.h> | |
26840 | #endif | |
26841 | ||
26842 | #undef $ac_func | |
26843 | ||
26844 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26845 | #ifdef __cplusplus | |
26846 | extern "C" | |
26847 | { | |
26848 | #endif | |
26849 | /* We use char because int might match the return type of a gcc2 | |
26850 | builtin and then its argument prototype would still apply. */ | |
26851 | char $ac_func (); | |
26852 | /* The GNU C library defines this for functions which it implements | |
26853 | to always fail with ENOSYS. Some functions are actually named | |
26854 | something starting with __ and the normal name is an alias. */ | |
26855 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
26856 | choke me | |
26857 | #else | |
26858 | char (*f) () = $ac_func; | |
26859 | #endif | |
26860 | #ifdef __cplusplus | |
26861 | } | |
26862 | #endif | |
26863 | ||
26864 | int | |
26865 | main () | |
26866 | { | |
26867 | return f != $ac_func; | |
26868 | ; | |
26869 | return 0; | |
26870 | } | |
26871 | _ACEOF | |
26872 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26873 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26874 | (eval $ac_link) 2>conftest.er1 | |
26875 | ac_status=$? | |
26876 | grep -v '^ *+' conftest.er1 >conftest.err | |
26877 | rm -f conftest.er1 | |
26878 | cat conftest.err >&5 | |
26879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26880 | (exit $ac_status); } && | |
89be85c2 VS |
26881 | { ac_try='test -z "$ac_c_werror_flag" |
26882 | || test ! -s conftest.err' | |
304205f1 VS |
26883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26884 | (eval $ac_try) 2>&5 | |
26885 | ac_status=$? | |
26886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26887 | (exit $ac_status); }; } && | |
26888 | { ac_try='test -s conftest$ac_exeext' | |
26889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26890 | (eval $ac_try) 2>&5 | |
26891 | ac_status=$? | |
26892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26893 | (exit $ac_status); }; }; then | |
26894 | eval "$as_ac_var=yes" | |
26895 | else | |
26896 | echo "$as_me: failed program was:" >&5 | |
26897 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26898 | ||
26899 | eval "$as_ac_var=no" | |
26900 | fi | |
26901 | rm -f conftest.err conftest.$ac_objext \ | |
26902 | conftest$ac_exeext conftest.$ac_ext | |
26903 | fi | |
26904 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
26905 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
26906 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
26907 | cat >>confdefs.h <<_ACEOF | |
26908 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
26909 | _ACEOF | |
26910 | ||
26911 | fi | |
26912 | done | |
26913 | ||
26914 | CFLAGS="$save_CFLAGS" | |
26915 | LIBS="$save_LIBS" | |
a848cd7e SC |
26916 | fi |
26917 | ||
26918 | wxUSE_UNIVERSAL="yes" | |
26919 | ||
26920 | if test "$wxUSE_NANOX" = "yes"; then | |
26921 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
26922 | 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" | |
26923 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
26924 | else | |
26925 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11" | |
26926 | fi | |
26927 | ||
a848cd7e SC |
26928 | TOOLKIT=X11 |
26929 | GUIDIST=X11_DIST | |
26930 | fi | |
26931 | ||
26932 | if test "$wxUSE_MOTIF" = 1; then | |
74b84332 VS |
26933 | echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5 |
26934 | echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6 | |
a848cd7e | 26935 | |
74b84332 VS |
26936 | ac_find_includes= |
26937 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
26938 | do | |
26939 | if test -f "$ac_dir/Xm/Xm.h"; then | |
26940 | ac_find_includes=$ac_dir | |
26941 | break | |
26942 | fi | |
26943 | done | |
a848cd7e | 26944 | |
74b84332 VS |
26945 | if test "$ac_find_includes" != "" ; then |
26946 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
26947 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
26948 | ||
26949 | if test "x$ac_find_includes" = "x/usr/include"; then | |
26950 | ac_path_to_include="" | |
26951 | else | |
26952 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
26953 | result=$? | |
26954 | if test $result = 0; then | |
26955 | ac_path_to_include="" | |
26956 | else | |
26957 | ac_path_to_include=" -I$ac_find_includes" | |
26958 | fi | |
a848cd7e SC |
26959 | fi |
26960 | ||
74b84332 VS |
26961 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" |
26962 | else | |
26963 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
26964 | /* confdefs.h. */ |
26965 | _ACEOF | |
26966 | cat confdefs.h >>conftest.$ac_ext | |
26967 | cat >>conftest.$ac_ext <<_ACEOF | |
26968 | /* end confdefs.h. */ | |
26969 | ||
74b84332 VS |
26970 | #include <Xm/Xm.h> |
26971 | ||
a848cd7e SC |
26972 | int |
26973 | main () | |
26974 | { | |
26975 | ||
74b84332 VS |
26976 | int version; |
26977 | version = xmUseVersion; | |
26978 | ||
a848cd7e SC |
26979 | ; |
26980 | return 0; | |
26981 | } | |
26982 | _ACEOF | |
74b84332 VS |
26983 | rm -f conftest.$ac_objext |
26984 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26985 | (eval $ac_compile) 2>conftest.er1 | |
a848cd7e | 26986 | ac_status=$? |
ac1cb8d3 VS |
26987 | grep -v '^ *+' conftest.er1 >conftest.err |
26988 | rm -f conftest.er1 | |
26989 | cat conftest.err >&5 | |
a848cd7e SC |
26990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26991 | (exit $ac_status); } && | |
89be85c2 VS |
26992 | { ac_try='test -z "$ac_c_werror_flag" |
26993 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26995 | (eval $ac_try) 2>&5 | |
26996 | ac_status=$? | |
26997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26998 | (exit $ac_status); }; } && | |
74b84332 | 26999 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
27000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27001 | (eval $ac_try) 2>&5 | |
27002 | ac_status=$? | |
27003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27004 | (exit $ac_status); }; }; then | |
74b84332 VS |
27005 | |
27006 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
27007 | echo "${ECHO_T}found in default search path" >&6 | |
27008 | COMPILED_X_PROGRAM=1 | |
27009 | ||
a848cd7e SC |
27010 | else |
27011 | echo "$as_me: failed program was:" >&5 | |
27012 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27013 | ||
a848cd7e | 27014 | |
74b84332 VS |
27015 | echo "$as_me:$LINENO: result: no" >&5 |
27016 | echo "${ECHO_T}no" >&6 | |
27017 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5 | |
27018 | echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;} | |
27019 | { (exit 1); exit 1; }; } | |
a848cd7e | 27020 | |
a848cd7e | 27021 | |
a848cd7e | 27022 | fi |
74b84332 VS |
27023 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
27024 | fi | |
27025 | ||
27026 | if test "$COMPILED_X_PROGRAM" = 0; then | |
27027 | echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5 | |
27028 | echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6 | |
27029 | ||
27030 | ac_find_libraries= | |
27031 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27032 | do | |
27033 | for ac_extension in a so sl dylib; do | |
27034 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
27035 | ac_find_libraries=$ac_dir | |
27036 | break 2 | |
a848cd7e | 27037 | fi |
74b84332 VS |
27038 | done |
27039 | done | |
a848cd7e | 27040 | |
74b84332 VS |
27041 | if test "$ac_find_libraries" != "" ; then |
27042 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
27043 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
a848cd7e | 27044 | |
74b84332 VS |
27045 | |
27046 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
27047 | result=$? | |
27048 | if test $result = 0; then | |
27049 | ac_path_to_link="" | |
a848cd7e | 27050 | else |
74b84332 VS |
27051 | ac_path_to_link=" -L$ac_find_libraries" |
27052 | fi | |
27053 | ||
27054 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
27055 | else | |
27056 | save_CFLAGS=$CFLAGS | |
27057 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
27058 | ||
27059 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
27060 | /* confdefs.h. */ |
27061 | _ACEOF | |
27062 | cat confdefs.h >>conftest.$ac_ext | |
27063 | cat >>conftest.$ac_ext <<_ACEOF | |
27064 | /* end confdefs.h. */ | |
27065 | ||
74b84332 VS |
27066 | #include <Xm/Xm.h> |
27067 | ||
a848cd7e SC |
27068 | int |
27069 | main () | |
27070 | { | |
74b84332 VS |
27071 | |
27072 | int version; | |
27073 | version = xmUseVersion; | |
27074 | ||
a848cd7e SC |
27075 | ; |
27076 | return 0; | |
27077 | } | |
27078 | _ACEOF | |
74b84332 VS |
27079 | rm -f conftest.$ac_objext |
27080 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27081 | (eval $ac_compile) 2>conftest.er1 | |
a848cd7e | 27082 | ac_status=$? |
ac1cb8d3 VS |
27083 | grep -v '^ *+' conftest.er1 >conftest.err |
27084 | rm -f conftest.er1 | |
27085 | cat conftest.err >&5 | |
a848cd7e SC |
27086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27087 | (exit $ac_status); } && | |
89be85c2 VS |
27088 | { ac_try='test -z "$ac_c_werror_flag" |
27089 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27091 | (eval $ac_try) 2>&5 | |
27092 | ac_status=$? | |
27093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27094 | (exit $ac_status); }; } && | |
74b84332 | 27095 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
27096 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27097 | (eval $ac_try) 2>&5 | |
27098 | ac_status=$? | |
27099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27100 | (exit $ac_status); }; }; then | |
74b84332 VS |
27101 | |
27102 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
27103 | echo "${ECHO_T}found in default search path" >&6 | |
27104 | COMPILED_X_PROGRAM=1 | |
27105 | ||
a848cd7e SC |
27106 | else |
27107 | echo "$as_me: failed program was:" >&5 | |
27108 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27109 | ||
74b84332 VS |
27110 | |
27111 | echo "$as_me:$LINENO: result: no" >&5 | |
27112 | echo "${ECHO_T}no" >&6 | |
27113 | { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5 | |
27114 | echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;} | |
27115 | { (exit 1); exit 1; }; } | |
27116 | ||
27117 | ||
27118 | fi | |
27119 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
27120 | ||
27121 | CFLAGS=$save_CFLAGS | |
27122 | fi | |
27123 | fi | |
27124 | ||
27125 | echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5 | |
27126 | echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6 | |
27127 | libp_link="" | |
27128 | libsm_ice_link="" | |
27129 | libs_found=0 | |
27130 | for libp in "" " -lXp"; do | |
27131 | if test "$libs_found" = "0"; then | |
27132 | for libsm_ice in "" " -lSM -lICE"; do | |
27133 | if test "$libs_found" = "0"; then | |
27134 | save_LIBS="$LIBS" | |
27135 | LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
27136 | save_CFLAGS=$CFLAGS | |
27137 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
27138 | ||
27139 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
27140 | /* confdefs.h. */ |
27141 | _ACEOF | |
27142 | cat confdefs.h >>conftest.$ac_ext | |
27143 | cat >>conftest.$ac_ext <<_ACEOF | |
27144 | /* end confdefs.h. */ | |
27145 | ||
74b84332 VS |
27146 | #include <Xm/Xm.h> |
27147 | #include <Xm/List.h> | |
27148 | ||
a848cd7e SC |
27149 | int |
27150 | main () | |
27151 | { | |
74b84332 VS |
27152 | |
27153 | XmString string = NULL; | |
27154 | Widget w = NULL; | |
27155 | int position = 0; | |
27156 | XmListAddItem(w, string, position); | |
27157 | ||
a848cd7e SC |
27158 | ; |
27159 | return 0; | |
27160 | } | |
27161 | _ACEOF | |
27162 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27163 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27164 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27165 | ac_status=$? |
ac1cb8d3 VS |
27166 | grep -v '^ *+' conftest.er1 >conftest.err |
27167 | rm -f conftest.er1 | |
27168 | cat conftest.err >&5 | |
a848cd7e SC |
27169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27170 | (exit $ac_status); } && | |
89be85c2 VS |
27171 | { ac_try='test -z "$ac_c_werror_flag" |
27172 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27174 | (eval $ac_try) 2>&5 | |
27175 | ac_status=$? | |
27176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27177 | (exit $ac_status); }; } && | |
27178 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27180 | (eval $ac_try) 2>&5 | |
27181 | ac_status=$? | |
27182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27183 | (exit $ac_status); }; }; then | |
27184 | ||
27185 | libp_link="$libp" | |
27186 | libsm_ice_link="$libsm_ice" | |
27187 | echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5 | |
27188 | echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6 | |
27189 | libs_found=1 | |
27190 | ||
27191 | else | |
27192 | echo "$as_me: failed program was:" >&5 | |
27193 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27194 | ||
27195 | ||
27196 | ||
27197 | fi | |
ac1cb8d3 VS |
27198 | rm -f conftest.err conftest.$ac_objext \ |
27199 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27200 | |
27201 | LIBS="$save_LIBS" | |
27202 | CFLAGS=$save_CFLAGS | |
27203 | fi | |
27204 | done | |
27205 | fi | |
27206 | done | |
27207 | ||
27208 | if test "$libs_found" = "0"; then | |
27209 | echo "$as_me:$LINENO: result: can't find the right libraries" >&5 | |
27210 | echo "${ECHO_T}can't find the right libraries" >&6 | |
27211 | { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5 | |
27212 | echo "$as_me: error: can't link a simple motif program" >&2;} | |
27213 | { (exit 1); exit 1; }; } | |
27214 | fi | |
27215 | ||
27216 | save_CFLAGS=$CFLAGS | |
27217 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
27218 | echo "$as_me:$LINENO: checking for Motif 2" >&5 | |
27219 | echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6 | |
27220 | cat >conftest.$ac_ext <<_ACEOF | |
27221 | /* confdefs.h. */ | |
27222 | _ACEOF | |
27223 | cat confdefs.h >>conftest.$ac_ext | |
27224 | cat >>conftest.$ac_ext <<_ACEOF | |
27225 | /* end confdefs.h. */ | |
27226 | ||
27227 | #include <Xm/Xm.h> | |
27228 | ||
27229 | int | |
27230 | main () | |
27231 | { | |
27232 | ||
27233 | #if XmVersion < 2000 | |
27234 | #error "Not Motif 2" | |
27235 | #endif | |
27236 | ||
27237 | ; | |
27238 | return 0; | |
27239 | } | |
27240 | _ACEOF | |
27241 | rm -f conftest.$ac_objext | |
27242 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27243 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 27244 | ac_status=$? |
ac1cb8d3 VS |
27245 | grep -v '^ *+' conftest.er1 >conftest.err |
27246 | rm -f conftest.er1 | |
27247 | cat conftest.err >&5 | |
a848cd7e SC |
27248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27249 | (exit $ac_status); } && | |
89be85c2 VS |
27250 | { ac_try='test -z "$ac_c_werror_flag" |
27251 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27253 | (eval $ac_try) 2>&5 | |
27254 | ac_status=$? | |
27255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27256 | (exit $ac_status); }; } && | |
27257 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
27263 | ||
27264 | cat >>confdefs.h <<\_ACEOF | |
27265 | #define __WXMOTIF20__ 1 | |
27266 | _ACEOF | |
27267 | ||
27268 | echo "$as_me:$LINENO: result: found" >&5 | |
27269 | echo "${ECHO_T}found" >&6 | |
27270 | ||
27271 | else | |
27272 | echo "$as_me: failed program was:" >&5 | |
27273 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27274 | ||
27275 | ||
27276 | cat >>confdefs.h <<\_ACEOF | |
27277 | #define __WXMOTIF20__ 0 | |
27278 | _ACEOF | |
27279 | ||
27280 | echo "$as_me:$LINENO: result: not found" >&5 | |
27281 | echo "${ECHO_T}not found" >&6 | |
27282 | ||
27283 | fi | |
ac1cb8d3 | 27284 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27285 | CFLAGS=$save_CFLAGS |
27286 | ||
27287 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" | |
a848cd7e SC |
27288 | TOOLKIT=MOTIF |
27289 | GUIDIST=MOTIF_DIST | |
27290 | fi | |
27291 | ||
74b84332 | 27292 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
a848cd7e SC |
27293 | if test "$wxUSE_LIBXPM" = "sys"; then |
27294 | echo "$as_me:$LINENO: checking for Xpm library" >&5 | |
27295 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
27296 | ||
27297 | ac_find_libraries= | |
27298 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27299 | do | |
27300 | for ac_extension in a so sl dylib; do | |
27301 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
27302 | ac_find_libraries=$ac_dir | |
27303 | break 2 | |
27304 | fi | |
27305 | done | |
27306 | done | |
27307 | ||
27308 | if test "$ac_find_libraries" != "" ; then | |
27309 | ||
27310 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
27311 | result=$? | |
27312 | if test $result = 0; then | |
27313 | ac_path_to_link="" | |
27314 | else | |
27315 | ac_path_to_link=" -L$ac_find_libraries" | |
27316 | fi | |
27317 | ||
27318 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
27319 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
27320 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
27321 | ||
27322 | echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
27323 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 | |
27324 | if test "${wx_cv_x11_xpm_h+set}" = set; then | |
27325 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27326 | else | |
27327 | ||
27328 | save_CFLAGS=$CFLAGS | |
27329 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
27330 | ||
27331 | cat >conftest.$ac_ext <<_ACEOF | |
27332 | /* confdefs.h. */ | |
27333 | _ACEOF | |
27334 | cat confdefs.h >>conftest.$ac_ext | |
27335 | cat >>conftest.$ac_ext <<_ACEOF | |
27336 | /* end confdefs.h. */ | |
27337 | ||
27338 | #include <X11/xpm.h> | |
27339 | ||
27340 | int | |
27341 | main () | |
27342 | { | |
27343 | ||
27344 | int version; | |
27345 | version = XpmLibraryVersion(); | |
27346 | ||
27347 | ; | |
27348 | return 0; | |
27349 | } | |
27350 | _ACEOF | |
27351 | rm -f conftest.$ac_objext | |
27352 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27353 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 27354 | ac_status=$? |
ac1cb8d3 VS |
27355 | grep -v '^ *+' conftest.er1 >conftest.err |
27356 | rm -f conftest.er1 | |
27357 | cat conftest.err >&5 | |
a848cd7e SC |
27358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27359 | (exit $ac_status); } && | |
89be85c2 VS |
27360 | { ac_try='test -z "$ac_c_werror_flag" |
27361 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27363 | (eval $ac_try) 2>&5 | |
27364 | ac_status=$? | |
27365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27366 | (exit $ac_status); }; } && | |
27367 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
27368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27369 | (eval $ac_try) 2>&5 | |
27370 | ac_status=$? | |
27371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27372 | (exit $ac_status); }; }; then | |
27373 | wx_cv_x11_xpm_h=yes | |
27374 | else | |
27375 | echo "$as_me: failed program was:" >&5 | |
27376 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27377 | ||
27378 | wx_cv_x11_xpm_h=no | |
27379 | ||
27380 | fi | |
ac1cb8d3 | 27381 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27382 | |
27383 | CFLAGS=$save_CFLAGS | |
27384 | ||
27385 | ||
27386 | fi | |
27387 | echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5 | |
27388 | echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6 | |
27389 | ||
27390 | if test $wx_cv_x11_xpm_h = "yes"; then | |
27391 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm" | |
27392 | cat >>confdefs.h <<\_ACEOF | |
27393 | #define wxHAVE_LIB_XPM 1 | |
27394 | _ACEOF | |
27395 | ||
27396 | else | |
27397 | { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5 | |
27398 | echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;} | |
27399 | fi | |
27400 | fi | |
27401 | ||
27402 | fi | |
27403 | ||
27404 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 | |
27405 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 | |
27406 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
27407 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27408 | else | |
27409 | ac_check_lib_save_LIBS=$LIBS | |
27410 | LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS" | |
27411 | cat >conftest.$ac_ext <<_ACEOF | |
27412 | /* confdefs.h. */ | |
27413 | _ACEOF | |
27414 | cat confdefs.h >>conftest.$ac_ext | |
27415 | cat >>conftest.$ac_ext <<_ACEOF | |
27416 | /* end confdefs.h. */ | |
27417 | ||
27418 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27419 | #ifdef __cplusplus | |
27420 | extern "C" | |
27421 | #endif | |
27422 | /* We use char because int might match the return type of a gcc2 | |
27423 | builtin and then its argument prototype would still apply. */ | |
27424 | char XShapeQueryExtension (); | |
27425 | int | |
27426 | main () | |
27427 | { | |
27428 | XShapeQueryExtension (); | |
27429 | ; | |
27430 | return 0; | |
27431 | } | |
27432 | _ACEOF | |
27433 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27434 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27435 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27436 | ac_status=$? |
ac1cb8d3 VS |
27437 | grep -v '^ *+' conftest.er1 >conftest.err |
27438 | rm -f conftest.er1 | |
27439 | cat conftest.err >&5 | |
a848cd7e SC |
27440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27441 | (exit $ac_status); } && | |
89be85c2 VS |
27442 | { ac_try='test -z "$ac_c_werror_flag" |
27443 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27445 | (eval $ac_try) 2>&5 | |
27446 | ac_status=$? | |
27447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27448 | (exit $ac_status); }; } && | |
27449 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27451 | (eval $ac_try) 2>&5 | |
27452 | ac_status=$? | |
27453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27454 | (exit $ac_status); }; }; then | |
27455 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
27456 | else | |
27457 | echo "$as_me: failed program was:" >&5 | |
27458 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27459 | ||
27460 | ac_cv_lib_Xext_XShapeQueryExtension=no | |
27461 | fi | |
ac1cb8d3 VS |
27462 | rm -f conftest.err conftest.$ac_objext \ |
27463 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27464 | LIBS=$ac_check_lib_save_LIBS |
27465 | fi | |
27466 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 | |
27467 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 | |
27468 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
27469 | ||
27470 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext" | |
27471 | wxHAVE_XEXT_LIB=1 | |
27472 | ||
27473 | fi | |
27474 | ||
27475 | ||
27476 | if test "$wxHAVE_XEXT_LIB" = 1; then | |
27477 | save_CFLAGS="$CFLAGS" | |
27478 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
27479 | ||
27480 | echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5 | |
27481 | echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6 | |
27482 | cat >conftest.$ac_ext <<_ACEOF | |
27483 | /* confdefs.h. */ | |
27484 | _ACEOF | |
27485 | cat confdefs.h >>conftest.$ac_ext | |
27486 | cat >>conftest.$ac_ext <<_ACEOF | |
27487 | /* end confdefs.h. */ | |
27488 | ||
27489 | #include <X11/Xlib.h> | |
27490 | #include <X11/extensions/shape.h> | |
27491 | ||
27492 | int | |
27493 | main () | |
27494 | { | |
27495 | ||
27496 | int dummy1, dummy2; | |
27497 | XShapeQueryExtension((Display*)NULL, | |
27498 | (int*)NULL, (int*)NULL); | |
27499 | ||
27500 | ; | |
27501 | return 0; | |
27502 | } | |
27503 | _ACEOF | |
27504 | rm -f conftest.$ac_objext | |
27505 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27506 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 27507 | ac_status=$? |
ac1cb8d3 VS |
27508 | grep -v '^ *+' conftest.er1 >conftest.err |
27509 | rm -f conftest.er1 | |
27510 | cat conftest.err >&5 | |
a848cd7e SC |
27511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27512 | (exit $ac_status); } && | |
89be85c2 VS |
27513 | { ac_try='test -z "$ac_c_werror_flag" |
27514 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27516 | (eval $ac_try) 2>&5 | |
27517 | ac_status=$? | |
27518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27519 | (exit $ac_status); }; } && | |
27520 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
27521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27522 | (eval $ac_try) 2>&5 | |
27523 | ac_status=$? | |
27524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27525 | (exit $ac_status); }; }; then | |
27526 | ||
27527 | cat >>confdefs.h <<\_ACEOF | |
27528 | #define HAVE_XSHAPE 1 | |
27529 | _ACEOF | |
27530 | ||
27531 | echo "$as_me:$LINENO: result: found" >&5 | |
27532 | echo "${ECHO_T}found" >&6 | |
27533 | ||
27534 | else | |
27535 | echo "$as_me: failed program was:" >&5 | |
27536 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27537 | ||
27538 | ||
27539 | echo "$as_me:$LINENO: result: not found" >&5 | |
27540 | echo "${ECHO_T}not found" >&6 | |
27541 | ||
27542 | fi | |
ac1cb8d3 | 27543 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27544 | CFLAGS="$save_CFLAGS" |
27545 | ||
27546 | fi | |
27547 | fi | |
27548 | ||
27549 | if test "$wxUSE_MAC" = 1; then | |
27550 | echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5 | |
27551 | echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6 | |
27552 | if test "$GCC" = yes; then | |
27553 | echo "$as_me:$LINENO: result: gcc" >&5 | |
27554 | echo "${ECHO_T}gcc" >&6 | |
27555 | CPPFLAGS_PASCAL="-fpascal-strings" | |
27556 | elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then | |
27557 | echo "$as_me:$LINENO: result: xlc" >&5 | |
27558 | echo "${ECHO_T}xlc" >&6 | |
27559 | CPPFLAGS_PASCAL="-qmacpstr" | |
27560 | else | |
27561 | echo "$as_me:$LINENO: result: none" >&5 | |
27562 | echo "${ECHO_T}none" >&6 | |
27563 | fi | |
27564 | ||
1e9e8aba DE |
27565 | if test "x$wxUSE_UNIX" = "xyes"; then |
27566 | CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon" | |
27567 | else | |
27568 | CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON" | |
27569 | fi | |
a848cd7e | 27570 | |
a848cd7e SC |
27571 | TOOLKIT=MAC |
27572 | GUIDIST=MACX_DIST | |
dd21ced8 | 27573 | WXBASEPORT="_carbon" |
a848cd7e SC |
27574 | fi |
27575 | ||
27576 | if test "$wxUSE_COCOA" = 1; then | |
a848cd7e SC |
27577 | TOOLKIT=COCOA |
27578 | GUIDIST=COCOA_DIST | |
27579 | fi | |
27580 | ||
27581 | if test "$wxUSE_PM" = 1; then | |
27582 | TOOLKIT=PM | |
de59c161 RD |
27583 | GUIDIST=PM_DIST |
27584 | echo "$as_me:$LINENO: checking for type SPBCDATA" >&5 | |
27585 | echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6 | |
27586 | if test "${wx_cv_spbcdata+set}" = set; then | |
27587 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27588 | else | |
27589 | ||
27590 | cat >conftest.$ac_ext <<_ACEOF | |
de59c161 RD |
27591 | /* confdefs.h. */ |
27592 | _ACEOF | |
27593 | cat confdefs.h >>conftest.$ac_ext | |
27594 | cat >>conftest.$ac_ext <<_ACEOF | |
27595 | /* end confdefs.h. */ | |
27596 | ||
27597 | #define INCL_PM | |
27598 | #include <os2.h> | |
27599 | ||
27600 | int | |
27601 | main () | |
27602 | { | |
27603 | ||
27604 | SPBCDATA test; | |
27605 | ||
27606 | ; | |
27607 | return 0; | |
27608 | } | |
27609 | _ACEOF | |
27610 | rm -f conftest.$ac_objext | |
27611 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27612 | (eval $ac_compile) 2>conftest.er1 |
de59c161 | 27613 | ac_status=$? |
ac1cb8d3 VS |
27614 | grep -v '^ *+' conftest.er1 >conftest.err |
27615 | rm -f conftest.er1 | |
27616 | cat conftest.err >&5 | |
de59c161 RD |
27617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27618 | (exit $ac_status); } && | |
89be85c2 VS |
27619 | { ac_try='test -z "$ac_c_werror_flag" |
27620 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27622 | (eval $ac_try) 2>&5 | |
27623 | ac_status=$? | |
27624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27625 | (exit $ac_status); }; } && | |
27626 | { ac_try='test -s conftest.$ac_objext' | |
de59c161 RD |
27627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27628 | (eval $ac_try) 2>&5 | |
27629 | ac_status=$? | |
27630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27631 | (exit $ac_status); }; }; then | |
27632 | wx_cv_spbcdata=yes | |
27633 | else | |
27634 | echo "$as_me: failed program was:" >&5 | |
27635 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27636 | ||
27637 | wx_cv_spbcdata=no | |
27638 | ||
27639 | fi | |
ac1cb8d3 | 27640 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
de59c161 RD |
27641 | |
27642 | ||
27643 | fi | |
27644 | echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5 | |
27645 | echo "${ECHO_T}$wx_cv_spbcdata" >&6 | |
27646 | ||
27647 | if test $wx_cv_spbcdata = "yes"; then | |
27648 | cat >>confdefs.h <<\_ACEOF | |
27649 | #define HAVE_SPBCDATA 1 | |
27650 | _ACEOF | |
27651 | ||
27652 | fi | |
a848cd7e SC |
27653 | fi |
27654 | ||
27655 | if test "$TOOLKIT" = "PM" ; then | |
27656 | TOOLKIT_DIR="os2" | |
27657 | else | |
27658 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
27659 | fi | |
27660 | ||
a848cd7e | 27661 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
a848cd7e SC |
27662 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" |
27663 | WIDGET_SET=univ | |
a848cd7e SC |
27664 | fi |
27665 | ||
27666 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
27667 | DISTDIR="wx\$(TOOLKIT)" | |
27668 | else | |
27669 | USE_GUI=0 | |
27670 | ||
27671 | TOOLKIT_DIR="base" | |
27672 | ||
27673 | if test "$USE_WIN32" = 1 ; then | |
a848cd7e | 27674 | TOOLKIT="MSW" |
a848cd7e SC |
27675 | fi |
27676 | ||
a848cd7e SC |
27677 | GUIDIST="BASE_DIST" |
27678 | DISTDIR="wxBase" | |
27679 | fi | |
27680 | ||
27681 | ||
27682 | ||
27683 | ||
27684 | IODBC_C_SRC="" | |
27685 | ||
27686 | ||
27687 | if test "$TOOLKIT" != "MSW" ; then | |
27688 | ||
27689 | if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then | |
27690 | ||
27691 | if test "${ac_cv_header_sql_h+set}" = set; then | |
27692 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
27693 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
27694 | if test "${ac_cv_header_sql_h+set}" = set; then | |
27695 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27696 | fi | |
27697 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
27698 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
27699 | else | |
27700 | # Is the header compilable? | |
27701 | echo "$as_me:$LINENO: checking sql.h usability" >&5 | |
27702 | echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6 | |
27703 | cat >conftest.$ac_ext <<_ACEOF | |
27704 | /* confdefs.h. */ | |
27705 | _ACEOF | |
27706 | cat confdefs.h >>conftest.$ac_ext | |
27707 | cat >>conftest.$ac_ext <<_ACEOF | |
27708 | /* end confdefs.h. */ | |
27709 | $ac_includes_default | |
27710 | #include <sql.h> | |
27711 | _ACEOF | |
27712 | rm -f conftest.$ac_objext | |
27713 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27714 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 27715 | ac_status=$? |
ac1cb8d3 VS |
27716 | grep -v '^ *+' conftest.er1 >conftest.err |
27717 | rm -f conftest.er1 | |
27718 | cat conftest.err >&5 | |
a848cd7e SC |
27719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27720 | (exit $ac_status); } && | |
89be85c2 VS |
27721 | { ac_try='test -z "$ac_c_werror_flag" |
27722 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27724 | (eval $ac_try) 2>&5 | |
27725 | ac_status=$? | |
27726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27727 | (exit $ac_status); }; } && | |
27728 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
27729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27730 | (eval $ac_try) 2>&5 | |
27731 | ac_status=$? | |
27732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27733 | (exit $ac_status); }; }; then | |
27734 | ac_header_compiler=yes | |
27735 | else | |
27736 | echo "$as_me: failed program was:" >&5 | |
27737 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27738 | ||
27739 | ac_header_compiler=no | |
27740 | fi | |
ac1cb8d3 | 27741 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27742 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
27743 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
27744 | ||
27745 | # Is the header present? | |
27746 | echo "$as_me:$LINENO: checking sql.h presence" >&5 | |
27747 | echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6 | |
27748 | cat >conftest.$ac_ext <<_ACEOF | |
27749 | /* confdefs.h. */ | |
27750 | _ACEOF | |
27751 | cat confdefs.h >>conftest.$ac_ext | |
27752 | cat >>conftest.$ac_ext <<_ACEOF | |
27753 | /* end confdefs.h. */ | |
27754 | #include <sql.h> | |
27755 | _ACEOF | |
27756 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
27757 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
27758 | ac_status=$? | |
27759 | grep -v '^ *+' conftest.er1 >conftest.err | |
27760 | rm -f conftest.er1 | |
27761 | cat conftest.err >&5 | |
27762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27763 | (exit $ac_status); } >/dev/null; then | |
27764 | if test -s conftest.err; then | |
27765 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 27766 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
27767 | else |
27768 | ac_cpp_err= | |
27769 | fi | |
27770 | else | |
27771 | ac_cpp_err=yes | |
27772 | fi | |
27773 | if test -z "$ac_cpp_err"; then | |
27774 | ac_header_preproc=yes | |
27775 | else | |
27776 | echo "$as_me: failed program was:" >&5 | |
27777 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27778 | ||
27779 | ac_header_preproc=no | |
27780 | fi | |
27781 | rm -f conftest.err conftest.$ac_ext | |
27782 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
27783 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
27784 | ||
27785 | # So? What about this header? | |
ac1cb8d3 VS |
27786 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
27787 | yes:no: ) | |
a848cd7e SC |
27788 | { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
27789 | echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
27790 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5 |
27791 | echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;} | |
27792 | ac_header_preproc=yes | |
a848cd7e | 27793 | ;; |
ac1cb8d3 | 27794 | no:yes:* ) |
a848cd7e SC |
27795 | { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5 |
27796 | echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
27797 | { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5 |
27798 | echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;} | |
27799 | { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5 | |
27800 | echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;} | |
27801 | { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5 | |
27802 | echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
27803 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 |
27804 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
27805 | { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5 |
27806 | echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
27807 | ( |
27808 | cat <<\_ASBOX | |
ac1cb8d3 VS |
27809 | ## ----------------------------------------- ## |
27810 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
27811 | ## ----------------------------------------- ## | |
a848cd7e SC |
27812 | _ASBOX |
27813 | ) | | |
27814 | sed "s/^/$as_me: WARNING: /" >&2 | |
27815 | ;; | |
27816 | esac | |
27817 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
27818 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
27819 | if test "${ac_cv_header_sql_h+set}" = set; then | |
27820 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27821 | else | |
27822 | ac_cv_header_sql_h=$ac_header_preproc | |
27823 | fi | |
27824 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
27825 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
27826 | ||
27827 | fi | |
27828 | if test $ac_cv_header_sql_h = yes; then | |
27829 | found_sql_h=1 | |
27830 | fi | |
27831 | ||
27832 | ||
27833 | if test "x$found_sql_h" = "x1" ; then | |
27834 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5 | |
27835 | echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6 | |
27836 | if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then | |
27837 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27838 | else | |
27839 | ac_check_lib_save_LIBS=$LIBS | |
27840 | LIBS="-liodbc $LIBS" | |
27841 | cat >conftest.$ac_ext <<_ACEOF | |
27842 | /* confdefs.h. */ | |
27843 | _ACEOF | |
27844 | cat confdefs.h >>conftest.$ac_ext | |
27845 | cat >>conftest.$ac_ext <<_ACEOF | |
27846 | /* end confdefs.h. */ | |
27847 | ||
27848 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27849 | #ifdef __cplusplus | |
27850 | extern "C" | |
27851 | #endif | |
27852 | /* We use char because int might match the return type of a gcc2 | |
27853 | builtin and then its argument prototype would still apply. */ | |
27854 | char SQLAllocEnv (); | |
27855 | int | |
27856 | main () | |
27857 | { | |
27858 | SQLAllocEnv (); | |
27859 | ; | |
27860 | return 0; | |
27861 | } | |
27862 | _ACEOF | |
27863 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27864 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27865 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27866 | ac_status=$? |
ac1cb8d3 VS |
27867 | grep -v '^ *+' conftest.er1 >conftest.err |
27868 | rm -f conftest.er1 | |
27869 | cat conftest.err >&5 | |
a848cd7e SC |
27870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27871 | (exit $ac_status); } && | |
89be85c2 VS |
27872 | { ac_try='test -z "$ac_c_werror_flag" |
27873 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27875 | (eval $ac_try) 2>&5 | |
27876 | ac_status=$? | |
27877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27878 | (exit $ac_status); }; } && | |
27879 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27881 | (eval $ac_try) 2>&5 | |
27882 | ac_status=$? | |
27883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27884 | (exit $ac_status); }; }; then | |
27885 | ac_cv_lib_iodbc_SQLAllocEnv=yes | |
27886 | else | |
27887 | echo "$as_me: failed program was:" >&5 | |
27888 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27889 | ||
27890 | ac_cv_lib_iodbc_SQLAllocEnv=no | |
27891 | fi | |
ac1cb8d3 VS |
27892 | rm -f conftest.err conftest.$ac_objext \ |
27893 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27894 | LIBS=$ac_check_lib_save_LIBS |
27895 | fi | |
27896 | echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5 | |
27897 | echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6 | |
27898 | if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then | |
27899 | ODBC_LINK=" -liodbc" | |
27900 | else | |
27901 | ||
27902 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5 | |
27903 | echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6 | |
27904 | if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then | |
27905 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27906 | else | |
27907 | ac_check_lib_save_LIBS=$LIBS | |
27908 | LIBS="-lunixodbc $LIBS" | |
27909 | cat >conftest.$ac_ext <<_ACEOF | |
27910 | /* confdefs.h. */ | |
27911 | _ACEOF | |
27912 | cat confdefs.h >>conftest.$ac_ext | |
27913 | cat >>conftest.$ac_ext <<_ACEOF | |
27914 | /* end confdefs.h. */ | |
27915 | ||
27916 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27917 | #ifdef __cplusplus | |
27918 | extern "C" | |
27919 | #endif | |
27920 | /* We use char because int might match the return type of a gcc2 | |
27921 | builtin and then its argument prototype would still apply. */ | |
27922 | char SQLAllocEnv (); | |
27923 | int | |
27924 | main () | |
27925 | { | |
27926 | SQLAllocEnv (); | |
27927 | ; | |
27928 | return 0; | |
27929 | } | |
27930 | _ACEOF | |
27931 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27932 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27933 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27934 | ac_status=$? |
ac1cb8d3 VS |
27935 | grep -v '^ *+' conftest.er1 >conftest.err |
27936 | rm -f conftest.er1 | |
27937 | cat conftest.err >&5 | |
a848cd7e SC |
27938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27939 | (exit $ac_status); } && | |
89be85c2 VS |
27940 | { ac_try='test -z "$ac_c_werror_flag" |
27941 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27943 | (eval $ac_try) 2>&5 | |
27944 | ac_status=$? | |
27945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27946 | (exit $ac_status); }; } && | |
27947 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27949 | (eval $ac_try) 2>&5 | |
27950 | ac_status=$? | |
27951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27952 | (exit $ac_status); }; }; then | |
27953 | ac_cv_lib_unixodbc_SQLAllocEnv=yes | |
27954 | else | |
27955 | echo "$as_me: failed program was:" >&5 | |
27956 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27957 | ||
27958 | ac_cv_lib_unixodbc_SQLAllocEnv=no | |
27959 | fi | |
ac1cb8d3 VS |
27960 | rm -f conftest.err conftest.$ac_objext \ |
27961 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27962 | LIBS=$ac_check_lib_save_LIBS |
27963 | fi | |
27964 | echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5 | |
27965 | echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6 | |
27966 | if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then | |
27967 | ODBC_LINK=" -lunixodbc" | |
27968 | else | |
27969 | ||
27970 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5 | |
27971 | echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6 | |
27972 | if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then | |
27973 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27974 | else | |
27975 | ac_check_lib_save_LIBS=$LIBS | |
27976 | LIBS="-lodbc $LIBS" | |
27977 | cat >conftest.$ac_ext <<_ACEOF | |
27978 | /* confdefs.h. */ | |
27979 | _ACEOF | |
27980 | cat confdefs.h >>conftest.$ac_ext | |
27981 | cat >>conftest.$ac_ext <<_ACEOF | |
27982 | /* end confdefs.h. */ | |
27983 | ||
27984 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27985 | #ifdef __cplusplus | |
27986 | extern "C" | |
27987 | #endif | |
27988 | /* We use char because int might match the return type of a gcc2 | |
27989 | builtin and then its argument prototype would still apply. */ | |
27990 | char SQLAllocEnv (); | |
27991 | int | |
27992 | main () | |
27993 | { | |
27994 | SQLAllocEnv (); | |
27995 | ; | |
27996 | return 0; | |
27997 | } | |
27998 | _ACEOF | |
27999 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28000 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28001 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28002 | ac_status=$? |
ac1cb8d3 VS |
28003 | grep -v '^ *+' conftest.er1 >conftest.err |
28004 | rm -f conftest.er1 | |
28005 | cat conftest.err >&5 | |
a848cd7e SC |
28006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28007 | (exit $ac_status); } && | |
89be85c2 VS |
28008 | { ac_try='test -z "$ac_c_werror_flag" |
28009 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28011 | (eval $ac_try) 2>&5 | |
28012 | ac_status=$? | |
28013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28014 | (exit $ac_status); }; } && | |
28015 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28017 | (eval $ac_try) 2>&5 | |
28018 | ac_status=$? | |
28019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28020 | (exit $ac_status); }; }; then | |
28021 | ac_cv_lib_odbc_SQLAllocEnv=yes | |
28022 | else | |
28023 | echo "$as_me: failed program was:" >&5 | |
28024 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28025 | ||
28026 | ac_cv_lib_odbc_SQLAllocEnv=no | |
28027 | fi | |
ac1cb8d3 VS |
28028 | rm -f conftest.err conftest.$ac_objext \ |
28029 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28030 | LIBS=$ac_check_lib_save_LIBS |
28031 | fi | |
28032 | echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5 | |
28033 | echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6 | |
28034 | if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then | |
28035 | ODBC_LINK=" -lodbc" | |
28036 | fi | |
28037 | ||
28038 | ||
28039 | fi | |
28040 | ||
28041 | ||
28042 | fi | |
28043 | ||
28044 | fi | |
28045 | if test "x$ODBC_LINK" = "x" ; then | |
28046 | if test "$wxUSE_ODBC" = "sys" ; then | |
28047 | { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5 | |
28048 | echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;} | |
28049 | { (exit 1); exit 1; }; } | |
28050 | else | |
28051 | { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5 | |
28052 | echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;} | |
28053 | wxUSE_ODBC=builtin | |
28054 | fi | |
28055 | else | |
28056 | wxUSE_ODBC=sys | |
28057 | fi | |
28058 | fi | |
28059 | if test "$wxUSE_ODBC" != "no" ; then | |
28060 | cat >>confdefs.h <<\_ACEOF | |
28061 | #define wxUSE_ODBC 1 | |
28062 | _ACEOF | |
28063 | ||
28064 | if test "$wxUSE_ODBC" = "builtin" ; then | |
28065 | cat >>confdefs.h <<\_ACEOF | |
28066 | #define wxUSE_BUILTIN_IODBC 1 | |
28067 | _ACEOF | |
28068 | ||
28069 | fi | |
28070 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
28071 | ||
28072 | WXODBCFLAG="-D_IODBC_" | |
28073 | fi | |
28074 | fi | |
28075 | ||
a848cd7e | 28076 | |
01cb68df | 28077 | |
a848cd7e | 28078 | if test "$wxUSE_DISPLAY" = "yes"; then |
2a5d7a98 | 28079 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then |
a848cd7e SC |
28080 | echo "$as_me:$LINENO: checking for Xinerama" >&5 |
28081 | echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6 | |
28082 | ||
28083 | ac_find_libraries= | |
28084 | for ac_dir in $SEARCH_LIB /usr/lib; | |
28085 | do | |
28086 | for ac_extension in a so sl dylib; do | |
28087 | if test -f "$ac_dir/libXinerama.$ac_extension"; then | |
28088 | ac_find_libraries=$ac_dir | |
28089 | break 2 | |
28090 | fi | |
28091 | done | |
28092 | done | |
28093 | ||
28094 | if test "$ac_find_libraries" != "" ; then | |
28095 | ||
28096 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
28097 | result=$? | |
28098 | if test $result = 0; then | |
28099 | ac_path_to_link="" | |
28100 | else | |
28101 | ac_path_to_link=" -L$ac_find_libraries" | |
28102 | fi | |
28103 | ||
28104 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
28105 | LDFLAGS="$LDFLAGS $ac_path_to_link" | |
28106 | fi | |
28107 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama" | |
28108 | echo "$as_me:$LINENO: result: yes" >&5 | |
28109 | echo "${ECHO_T}yes" >&6 | |
28110 | ||
28111 | echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5 | |
28112 | echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6 | |
28113 | ||
28114 | ac_find_libraries= | |
28115 | for ac_dir in $SEARCH_LIB /usr/lib; | |
28116 | do | |
28117 | for ac_extension in a so sl dylib; do | |
28118 | if test -f "$ac_dir/libXxf86vm.$ac_extension"; then | |
28119 | ac_find_libraries=$ac_dir | |
28120 | break 2 | |
28121 | fi | |
28122 | done | |
28123 | done | |
28124 | ||
28125 | if test "$ac_find_libraries" != "" ; then | |
28126 | echo "$as_me:$LINENO: result: yes" >&5 | |
28127 | echo "${ECHO_T}yes" >&6 | |
28128 | ||
28129 | for ac_header in X11/extensions/xf86vmode.h | |
28130 | do | |
28131 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
28132 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
28133 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
28134 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
28135 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28136 | else | |
28137 | cat >conftest.$ac_ext <<_ACEOF | |
28138 | /* confdefs.h. */ | |
28139 | _ACEOF | |
28140 | cat confdefs.h >>conftest.$ac_ext | |
28141 | cat >>conftest.$ac_ext <<_ACEOF | |
28142 | /* end confdefs.h. */ | |
28143 | ||
28144 | #if HAVE_X11_XLIB_H | |
28145 | #include <X11/Xlib.h> | |
28146 | #endif | |
28147 | ||
28148 | ||
28149 | #include <$ac_header> | |
28150 | _ACEOF | |
28151 | rm -f conftest.$ac_objext | |
28152 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28153 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28154 | ac_status=$? |
ac1cb8d3 VS |
28155 | grep -v '^ *+' conftest.er1 >conftest.err |
28156 | rm -f conftest.er1 | |
28157 | cat conftest.err >&5 | |
a848cd7e SC |
28158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28159 | (exit $ac_status); } && | |
89be85c2 VS |
28160 | { ac_try='test -z "$ac_c_werror_flag" |
28161 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28163 | (eval $ac_try) 2>&5 | |
28164 | ac_status=$? | |
28165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28166 | (exit $ac_status); }; } && | |
28167 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28169 | (eval $ac_try) 2>&5 | |
28170 | ac_status=$? | |
28171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28172 | (exit $ac_status); }; }; then | |
28173 | eval "$as_ac_Header=yes" | |
28174 | else | |
28175 | echo "$as_me: failed program was:" >&5 | |
28176 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28177 | ||
28178 | eval "$as_ac_Header=no" | |
28179 | fi | |
ac1cb8d3 | 28180 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28181 | fi |
28182 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
28183 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
28184 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
28185 | cat >>confdefs.h <<_ACEOF | |
28186 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
28187 | _ACEOF | |
28188 | ||
28189 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm" | |
28190 | ||
28191 | fi | |
28192 | ||
28193 | done | |
28194 | ||
28195 | else | |
28196 | echo "$as_me:$LINENO: result: no" >&5 | |
28197 | echo "${ECHO_T}no" >&6 | |
28198 | fi | |
28199 | ||
28200 | else | |
28201 | echo "$as_me:$LINENO: result: no" >&5 | |
28202 | echo "${ECHO_T}no" >&6 | |
dcc1b6ad VS |
28203 | { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5 |
28204 | echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;} | |
a848cd7e SC |
28205 | wxUSE_DISPLAY="no" |
28206 | fi | |
01cb68df RG |
28207 | elif test "$wxUSE_MSW" = 1; then |
28208 | ||
28209 | ||
28210 | for ac_header in multimon.h ddraw.h | |
28211 | do | |
28212 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5294a27e | 28213 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
01cb68df RG |
28214 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
28215 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
28216 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
01cb68df | 28217 | else |
5294a27e | 28218 | cat >conftest.$ac_ext <<_ACEOF |
01cb68df RG |
28219 | /* confdefs.h. */ |
28220 | _ACEOF | |
28221 | cat confdefs.h >>conftest.$ac_ext | |
28222 | cat >>conftest.$ac_ext <<_ACEOF | |
28223 | /* end confdefs.h. */ | |
5294a27e VZ |
28224 | #include <windows.h> |
28225 | ||
01cb68df RG |
28226 | #include <$ac_header> |
28227 | _ACEOF | |
28228 | rm -f conftest.$ac_objext | |
28229 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28230 | (eval $ac_compile) 2>conftest.er1 |
01cb68df | 28231 | ac_status=$? |
ac1cb8d3 VS |
28232 | grep -v '^ *+' conftest.er1 >conftest.err |
28233 | rm -f conftest.er1 | |
28234 | cat conftest.err >&5 | |
01cb68df RG |
28235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28236 | (exit $ac_status); } && | |
89be85c2 VS |
28237 | { ac_try='test -z "$ac_c_werror_flag" |
28238 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28240 | (eval $ac_try) 2>&5 | |
28241 | ac_status=$? | |
28242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28243 | (exit $ac_status); }; } && | |
28244 | { ac_try='test -s conftest.$ac_objext' | |
01cb68df RG |
28245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28246 | (eval $ac_try) 2>&5 | |
28247 | ac_status=$? | |
28248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28249 | (exit $ac_status); }; }; then | |
5294a27e | 28250 | eval "$as_ac_Header=yes" |
01cb68df RG |
28251 | else |
28252 | echo "$as_me: failed program was:" >&5 | |
28253 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28254 | ||
5294a27e | 28255 | eval "$as_ac_Header=no" |
01cb68df | 28256 | fi |
ac1cb8d3 | 28257 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
01cb68df RG |
28258 | fi |
28259 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
28260 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
01cb68df RG |
28261 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
28262 | cat >>confdefs.h <<_ACEOF | |
28263 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
28264 | _ACEOF | |
28265 | ||
28266 | else | |
28267 | ||
5294a27e VZ |
28268 | wxUSE_DISPLAY="no" |
28269 | { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5 | |
dcc1b6ad | 28270 | echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;} |
01cb68df RG |
28271 | |
28272 | fi | |
28273 | ||
28274 | done | |
28275 | ||
a848cd7e SC |
28276 | fi |
28277 | fi | |
28278 | ||
28279 | ||
28280 | USE_OPENGL=0 | |
28281 | if test "$wxUSE_OPENGL" = "yes"; then | |
28282 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then | |
28283 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
28284 | elif test "$wxUSE_MSW" = 1; then | |
28285 | OPENGL_LIBS="-lopengl32 -lglu32" | |
28286 | else | |
28287 | ||
28288 | ||
28289 | ac_find_includes= | |
28290 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
28291 | do | |
28292 | if test -f "$ac_dir/GL/gl.h"; then | |
28293 | ac_find_includes=$ac_dir | |
28294 | break | |
28295 | fi | |
28296 | done | |
28297 | ||
28298 | if test "$ac_find_includes" != "" ; then | |
28299 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
28300 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
28301 | ||
28302 | if test "x$ac_find_includes" = "x/usr/include"; then | |
28303 | ac_path_to_include="" | |
28304 | else | |
28305 | echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null | |
28306 | result=$? | |
28307 | if test $result = 0; then | |
28308 | ac_path_to_include="" | |
28309 | else | |
28310 | ac_path_to_include=" -I$ac_find_includes" | |
28311 | fi | |
28312 | fi | |
28313 | ||
28314 | CPPFLAGS="$CPPFLAGS$ac_path_to_include" | |
28315 | fi | |
28316 | ||
28317 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
28318 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
28319 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
28320 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
28321 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28322 | fi | |
28323 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
28324 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
28325 | else | |
28326 | # Is the header compilable? | |
28327 | echo "$as_me:$LINENO: checking GL/gl.h usability" >&5 | |
28328 | echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6 | |
28329 | cat >conftest.$ac_ext <<_ACEOF | |
28330 | /* confdefs.h. */ | |
28331 | _ACEOF | |
28332 | cat confdefs.h >>conftest.$ac_ext | |
28333 | cat >>conftest.$ac_ext <<_ACEOF | |
28334 | /* end confdefs.h. */ | |
28335 | $ac_includes_default | |
28336 | #include <GL/gl.h> | |
28337 | _ACEOF | |
28338 | rm -f conftest.$ac_objext | |
28339 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28340 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28341 | ac_status=$? |
ac1cb8d3 VS |
28342 | grep -v '^ *+' conftest.er1 >conftest.err |
28343 | rm -f conftest.er1 | |
28344 | cat conftest.err >&5 | |
a848cd7e SC |
28345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28346 | (exit $ac_status); } && | |
89be85c2 VS |
28347 | { ac_try='test -z "$ac_c_werror_flag" |
28348 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
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); }; } && | |
28354 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28356 | (eval $ac_try) 2>&5 | |
28357 | ac_status=$? | |
28358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28359 | (exit $ac_status); }; }; then | |
28360 | ac_header_compiler=yes | |
28361 | else | |
28362 | echo "$as_me: failed program was:" >&5 | |
28363 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28364 | ||
28365 | ac_header_compiler=no | |
28366 | fi | |
ac1cb8d3 | 28367 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28368 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
28369 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
28370 | ||
28371 | # Is the header present? | |
28372 | echo "$as_me:$LINENO: checking GL/gl.h presence" >&5 | |
28373 | echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6 | |
28374 | cat >conftest.$ac_ext <<_ACEOF | |
28375 | /* confdefs.h. */ | |
28376 | _ACEOF | |
28377 | cat confdefs.h >>conftest.$ac_ext | |
28378 | cat >>conftest.$ac_ext <<_ACEOF | |
28379 | /* end confdefs.h. */ | |
28380 | #include <GL/gl.h> | |
28381 | _ACEOF | |
28382 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
28383 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
28384 | ac_status=$? | |
28385 | grep -v '^ *+' conftest.er1 >conftest.err | |
28386 | rm -f conftest.er1 | |
28387 | cat conftest.err >&5 | |
28388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28389 | (exit $ac_status); } >/dev/null; then | |
28390 | if test -s conftest.err; then | |
28391 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 28392 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
28393 | else |
28394 | ac_cpp_err= | |
28395 | fi | |
28396 | else | |
28397 | ac_cpp_err=yes | |
28398 | fi | |
28399 | if test -z "$ac_cpp_err"; then | |
28400 | ac_header_preproc=yes | |
28401 | else | |
28402 | echo "$as_me: failed program was:" >&5 | |
28403 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28404 | ||
28405 | ac_header_preproc=no | |
28406 | fi | |
28407 | rm -f conftest.err conftest.$ac_ext | |
28408 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
28409 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
28410 | ||
28411 | # So? What about this header? | |
ac1cb8d3 VS |
28412 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
28413 | yes:no: ) | |
a848cd7e SC |
28414 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
28415 | echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
28416 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5 |
28417 | echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;} | |
28418 | ac_header_preproc=yes | |
a848cd7e | 28419 | ;; |
ac1cb8d3 | 28420 | no:yes:* ) |
a848cd7e SC |
28421 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5 |
28422 | echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
28423 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5 |
28424 | echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;} | |
28425 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5 | |
28426 | echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;} | |
28427 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
28428 | echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
28429 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 |
28430 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
28431 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5 |
28432 | echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
28433 | ( |
28434 | cat <<\_ASBOX | |
ac1cb8d3 VS |
28435 | ## ----------------------------------------- ## |
28436 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
28437 | ## ----------------------------------------- ## | |
a848cd7e SC |
28438 | _ASBOX |
28439 | ) | | |
28440 | sed "s/^/$as_me: WARNING: /" >&2 | |
28441 | ;; | |
28442 | esac | |
28443 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
28444 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
28445 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
28446 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28447 | else | |
28448 | ac_cv_header_GL_gl_h=$ac_header_preproc | |
28449 | fi | |
28450 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
28451 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
28452 | ||
28453 | fi | |
28454 | if test $ac_cv_header_GL_gl_h = yes; then | |
28455 | ||
28456 | found_gl=0 | |
28457 | ||
28458 | echo "$as_me:$LINENO: checking for -lGL" >&5 | |
28459 | echo $ECHO_N "checking for -lGL... $ECHO_C" >&6 | |
28460 | ||
28461 | ac_find_libraries= | |
28462 | for ac_dir in $SEARCH_LIB /usr/lib; | |
28463 | do | |
28464 | for ac_extension in a so sl dylib; do | |
28465 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
28466 | ac_find_libraries=$ac_dir | |
28467 | break 2 | |
28468 | fi | |
28469 | done | |
28470 | done | |
28471 | ||
28472 | if test "$ac_find_libraries" != "" ; then | |
28473 | ||
28474 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
28475 | result=$? | |
28476 | if test $result = 0; then | |
28477 | ac_path_to_link="" | |
28478 | else | |
28479 | ac_path_to_link=" -L$ac_find_libraries" | |
28480 | fi | |
28481 | ||
28482 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
28483 | LDFLAGS_GL="$ac_path_to_link" | |
28484 | fi | |
28485 | ||
28486 | ||
28487 | ac_find_libraries= | |
28488 | for ac_dir in $SEARCH_LIB /usr/lib; | |
28489 | do | |
28490 | for ac_extension in a so sl dylib; do | |
28491 | if test -f "$ac_dir/libGLU.$ac_extension"; then | |
28492 | ac_find_libraries=$ac_dir | |
28493 | break 2 | |
28494 | fi | |
28495 | done | |
28496 | done | |
28497 | ||
28498 | if test "$ac_find_libraries" != "" ; then | |
28499 | ||
28500 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
28501 | result=$? | |
28502 | if test $result = 0; then | |
28503 | ac_path_to_link="" | |
28504 | else | |
28505 | ac_path_to_link=" -L$ac_find_libraries" | |
28506 | fi | |
28507 | ||
28508 | if test "$ac_path_to_link" != " -L/usr/lib" -a \ | |
28509 | "$ac_path_to_link" != "$LDFLAGS_GL"; then | |
28510 | LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link" | |
28511 | fi | |
28512 | ||
28513 | found_gl=1 | |
28514 | OPENGL_LIBS="-lGL -lGLU" | |
28515 | echo "$as_me:$LINENO: result: yes" >&5 | |
28516 | echo "${ECHO_T}yes" >&6 | |
28517 | fi | |
28518 | fi | |
28519 | ||
28520 | if test "$found_gl" != 1; then | |
28521 | echo "$as_me:$LINENO: result: no" >&5 | |
28522 | echo "${ECHO_T}no" >&6 | |
28523 | echo "$as_me:$LINENO: checking for -lMesaGL" >&5 | |
28524 | echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6 | |
28525 | ||
28526 | ac_find_libraries= | |
28527 | for ac_dir in $SEARCH_LIB /usr/lib; | |
28528 | do | |
28529 | for ac_extension in a so sl dylib; do | |
28530 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
28531 | ac_find_libraries=$ac_dir | |
28532 | break 2 | |
28533 | fi | |
28534 | done | |
28535 | done | |
28536 | ||
28537 | if test "$ac_find_libraries" != "" ; then | |
28538 | ||
28539 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
28540 | result=$? | |
28541 | if test $result = 0; then | |
28542 | ac_path_to_link="" | |
28543 | else | |
28544 | ac_path_to_link=" -L$ac_find_libraries" | |
28545 | fi | |
28546 | ||
28547 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
28548 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
28549 | echo "$as_me:$LINENO: result: yes" >&5 | |
28550 | echo "${ECHO_T}yes" >&6 | |
28551 | else | |
28552 | echo "$as_me:$LINENO: result: no" >&5 | |
28553 | echo "${ECHO_T}no" >&6 | |
28554 | fi | |
28555 | fi | |
28556 | ||
28557 | fi | |
28558 | ||
28559 | ||
28560 | ||
28561 | if test "x$OPENGL_LIBS" = "x"; then | |
28562 | { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5 | |
28563 | echo "$as_me: error: OpenGL libraries not available" >&2;} | |
28564 | { (exit 1); exit 1; }; } | |
28565 | fi | |
28566 | fi | |
28567 | ||
28568 | if test "$wxUSE_OPENGL" = "yes"; then | |
28569 | USE_OPENGL=1 | |
28570 | cat >>confdefs.h <<\_ACEOF | |
28571 | #define wxUSE_OPENGL 1 | |
28572 | _ACEOF | |
28573 | ||
28574 | cat >>confdefs.h <<\_ACEOF | |
28575 | #define wxUSE_GLCANVAS 1 | |
28576 | _ACEOF | |
28577 | ||
28578 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf" | |
28579 | fi | |
28580 | fi | |
28581 | ||
a848cd7e SC |
28582 | |
28583 | if test -n "$TOOLKIT" ; then | |
28584 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
28585 | fi | |
28586 | ||
a848cd7e SC |
28587 | |
28588 | ||
28589 | if test "$wxUSE_SHARED" = "yes"; then | |
28590 | case "${host}" in | |
28591 | *-pc-msdosdjgpp ) | |
28592 | wxUSE_SHARED=no | |
28593 | { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5 | |
28594 | echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;} | |
28595 | ;; | |
28596 | esac | |
28597 | fi | |
28598 | ||
a848cd7e | 28599 | if test "$wxUSE_SHARED" = "yes"; then |
a848cd7e SC |
28600 | |
28601 | ||
28602 | found_versioning=no | |
28603 | ||
28604 | ||
28605 | if test $found_versioning = no ; then | |
28606 | echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5 | |
28607 | echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6 | |
28608 | if test "${wx_cv_version_script+set}" = set; then | |
28609 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28610 | else | |
28611 | ||
28612 | echo "VER_1 { *; };" >conftest.sym | |
28613 | echo "int main() { return 0; }" >conftest.cpp | |
28614 | ||
28615 | if { ac_try=' | |
28616 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
28617 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr' | |
28618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28619 | (eval $ac_try) 2>&5 | |
28620 | ac_status=$? | |
28621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28622 | (exit $ac_status); }; } ; then | |
28623 | if test -s conftest.stderr ; then | |
28624 | wx_cv_version_script=no | |
28625 | else | |
28626 | wx_cv_version_script=yes | |
28627 | fi | |
28628 | else | |
28629 | wx_cv_version_script=no | |
28630 | fi | |
28631 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp | |
28632 | ||
28633 | fi | |
28634 | echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5 | |
28635 | echo "${ECHO_T}$wx_cv_version_script" >&6 | |
28636 | if test $wx_cv_version_script = yes ; then | |
28637 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script" | |
28638 | fi | |
28639 | fi | |
28640 | ||
28641 | ||
28642 | case "${host}" in | |
28643 | *-*-linux* | *-*-gnu* ) | |
28644 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
ffa0583f | 28645 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" |
a848cd7e SC |
28646 | ;; |
28647 | ||
28648 | *-*-solaris2* ) | |
28649 | if test "$GCC" = yes ; then | |
28650 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
28651 | ||
28652 | saveLdflags="$LDFLAGS" | |
28653 | LDFLAGS="$saveLdflags -Wl,-rpath,/" | |
28654 | echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5 | |
28655 | echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6 | |
28656 | cat >conftest.$ac_ext <<_ACEOF | |
28657 | /* confdefs.h. */ | |
28658 | _ACEOF | |
28659 | cat confdefs.h >>conftest.$ac_ext | |
28660 | cat >>conftest.$ac_ext <<_ACEOF | |
28661 | /* end confdefs.h. */ | |
28662 | ||
28663 | int | |
28664 | main () | |
28665 | { | |
28666 | ||
28667 | ; | |
28668 | return 0; | |
28669 | } | |
28670 | _ACEOF | |
28671 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28672 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28673 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28674 | ac_status=$? |
ac1cb8d3 VS |
28675 | grep -v '^ *+' conftest.er1 >conftest.err |
28676 | rm -f conftest.er1 | |
28677 | cat conftest.err >&5 | |
a848cd7e SC |
28678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28679 | (exit $ac_status); } && | |
89be85c2 VS |
28680 | { ac_try='test -z "$ac_c_werror_flag" |
28681 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28683 | (eval $ac_try) 2>&5 | |
28684 | ac_status=$? | |
28685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28686 | (exit $ac_status); }; } && | |
28687 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28689 | (eval $ac_try) 2>&5 | |
28690 | ac_status=$? | |
28691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28692 | (exit $ac_status); }; }; then | |
28693 | ||
28694 | echo "$as_me:$LINENO: result: yes" >&5 | |
28695 | echo "${ECHO_T}yes" >&6 | |
28696 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
ffa0583f | 28697 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" |
a848cd7e SC |
28698 | |
28699 | else | |
28700 | echo "$as_me: failed program was:" >&5 | |
28701 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28702 | ||
28703 | ||
28704 | echo "$as_me:$LINENO: result: no" >&5 | |
28705 | echo "${ECHO_T}no" >&6 | |
28706 | echo "$as_me:$LINENO: checking if the linker accepts -R" >&5 | |
28707 | echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6 | |
28708 | LDFLAGS="$saveLdflags -Wl,-R,/" | |
28709 | cat >conftest.$ac_ext <<_ACEOF | |
28710 | /* confdefs.h. */ | |
28711 | _ACEOF | |
28712 | cat confdefs.h >>conftest.$ac_ext | |
28713 | cat >>conftest.$ac_ext <<_ACEOF | |
28714 | /* end confdefs.h. */ | |
28715 | ||
28716 | int | |
28717 | main () | |
28718 | { | |
28719 | ||
28720 | ; | |
28721 | return 0; | |
28722 | } | |
28723 | _ACEOF | |
28724 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28725 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28726 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28727 | ac_status=$? |
ac1cb8d3 VS |
28728 | grep -v '^ *+' conftest.er1 >conftest.err |
28729 | rm -f conftest.er1 | |
28730 | cat conftest.err >&5 | |
a848cd7e SC |
28731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28732 | (exit $ac_status); } && | |
89be85c2 VS |
28733 | { ac_try='test -z "$ac_c_werror_flag" |
28734 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28736 | (eval $ac_try) 2>&5 | |
28737 | ac_status=$? | |
28738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28739 | (exit $ac_status); }; } && | |
28740 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28742 | (eval $ac_try) 2>&5 | |
28743 | ac_status=$? | |
28744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28745 | (exit $ac_status); }; }; then | |
28746 | ||
ffa0583f | 28747 | echo "$as_me:$LINENO: result: yes" >&5 |
a848cd7e | 28748 | echo "${ECHO_T}yes" >&6 |
ffa0583f RL |
28749 | SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib" |
28750 | WXCONFIG_RPATH="-Wl,-R,\$libdir" | |
28751 | ||
a848cd7e SC |
28752 | else |
28753 | echo "$as_me: failed program was:" >&5 | |
28754 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28755 | ||
28756 | ||
28757 | echo "$as_me:$LINENO: result: no" >&5 | |
28758 | echo "${ECHO_T}no" >&6 | |
28759 | ||
28760 | fi | |
ac1cb8d3 VS |
28761 | rm -f conftest.err conftest.$ac_objext \ |
28762 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28763 | |
28764 | fi | |
ac1cb8d3 VS |
28765 | rm -f conftest.err conftest.$ac_objext \ |
28766 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28767 | LDFLAGS="$saveLdflags" |
28768 | else | |
a848cd7e | 28769 | SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib" |
ffa0583f | 28770 | WXCONFIG_RPATH="-R\$libdir" |
a848cd7e SC |
28771 | fi |
28772 | ;; | |
28773 | ||
28774 | powerpc-*-darwin* ) | |
28775 | SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@" | |
28776 | cat <<EOF >change-install-names | |
28777 | #!/bin/sh | |
28778 | libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\` | |
28779 | inst_cmd="install_name_tool " | |
28780 | for i in \${libnames} ; do | |
28781 | inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}" | |
28782 | done | |
28783 | \${inst_cmd} \${3} | |
28784 | EOF | |
28785 | chmod +x change-install-names | |
28786 | ;; | |
28787 | ||
28788 | *-*-cygwin* | *-*-mingw32* ) | |
28789 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" | |
28790 | ;; | |
28791 | ||
81f90336 MW |
28792 | *-*-hpux* ) |
28793 | SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib" | |
28794 | WXCONFIG_RPATH="-Wl,+b,\$libdir" | |
28795 | ;; | |
28796 | ||
a848cd7e | 28797 | esac |
ceec2216 | 28798 | |
ffa0583f RL |
28799 | if test $wxUSE_RPATH = "no"; then |
28800 | SAMPLES_RPATH_FLAG='' | |
28801 | SAMPLES_RPATH_POSTLINK='' | |
28802 | WXCONFIG_RPATH='' | |
28803 | fi | |
28804 | ||
28805 | SHARED=1 | |
28806 | ||
28807 | else | |
28808 | ||
ceec2216 RL |
28809 | config_linkage_component="-static" |
28810 | SHARED=0 | |
ffa0583f | 28811 | |
ceec2216 | 28812 | fi |
a848cd7e | 28813 | |
a848cd7e | 28814 | |
ceec2216 RL |
28815 | UNICODE=0 |
28816 | lib_unicode_suffix= | |
28817 | WX_CHARTYPE="ansi" | |
28818 | if test "$wxUSE_UNICODE" = "yes"; then | |
28819 | lib_unicode_suffix=u | |
28820 | WX_CHARTYPE="unicode" | |
28821 | UNICODE=1 | |
a848cd7e SC |
28822 | fi |
28823 | ||
ceec2216 RL |
28824 | lib_debug_suffix= |
28825 | WX_DEBUGTYPE="release" | |
28826 | DEBUG_FLAG=0 | |
28827 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
28828 | lib_debug_suffix=d | |
28829 | WX_DEBUGTYPE="debug" | |
28830 | DEBUG_FLAG=1 | |
28831 | fi | |
a848cd7e | 28832 | |
ceec2216 RL |
28833 | WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR} |
28834 | WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'` | |
a848cd7e | 28835 | |
ceec2216 RL |
28836 | DEBUG_INFO=0 |
28837 | if test "$wxUSE_DEBUG_INFO" = "yes"; then | |
28838 | DEBUG_INFO=1 | |
28839 | fi | |
a848cd7e | 28840 | |
ceec2216 | 28841 | WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` |
a848cd7e | 28842 | |
ceec2216 | 28843 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}" |
a848cd7e | 28844 | |
ceec2216 | 28845 | TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}" |
a848cd7e | 28846 | |
ceec2216 RL |
28847 | if test "$cross_compiling" = "yes"; then |
28848 | HOST_SUFFIX="-$host_alias" | |
28849 | TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX" | |
28850 | TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME" | |
a848cd7e SC |
28851 | fi |
28852 | ||
dd21ced8 | 28853 | WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" |
ceec2216 RL |
28854 | WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" |
28855 | ||
28856 | ||
28857 | ||
a848cd7e | 28858 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then |
abb9aae7 VZ |
28859 | WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r" |
28860 | WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc" | |
ceec2216 | 28861 | |
a848cd7e | 28862 | LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}" |
a848cd7e SC |
28863 | |
28864 | # Extract the first word of "Rez", so it can be a program name with args. | |
28865 | set dummy Rez; ac_word=$2 | |
28866 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
28867 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
28868 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
28869 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28870 | else | |
28871 | if test -n "$RESCOMP"; then | |
28872 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
28873 | else | |
28874 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
28875 | for as_dir in $PATH | |
28876 | do | |
28877 | IFS=$as_save_IFS | |
28878 | test -z "$as_dir" && as_dir=. | |
28879 | for ac_exec_ext in '' $ac_executable_extensions; do | |
28880 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
28881 | ac_cv_prog_RESCOMP="Rez" | |
28882 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
28883 | break 2 | |
28884 | fi | |
28885 | done | |
28886 | done | |
28887 | ||
28888 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
28889 | fi | |
28890 | fi | |
28891 | RESCOMP=$ac_cv_prog_RESCOMP | |
28892 | if test -n "$RESCOMP"; then | |
28893 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
28894 | echo "${ECHO_T}$RESCOMP" >&6 | |
28895 | else | |
28896 | echo "$as_me:$LINENO: result: no" >&5 | |
28897 | echo "${ECHO_T}no" >&6 | |
28898 | fi | |
28899 | ||
28900 | # Extract the first word of "DeRez", so it can be a program name with args. | |
28901 | set dummy DeRez; ac_word=$2 | |
28902 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
28903 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
28904 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
28905 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28906 | else | |
28907 | if test -n "$DEREZ"; then | |
28908 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
28909 | else | |
28910 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
28911 | for as_dir in $PATH | |
28912 | do | |
28913 | IFS=$as_save_IFS | |
28914 | test -z "$as_dir" && as_dir=. | |
28915 | for ac_exec_ext in '' $ac_executable_extensions; do | |
28916 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
28917 | ac_cv_prog_DEREZ="DeRez" | |
28918 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
28919 | break 2 | |
28920 | fi | |
28921 | done | |
28922 | done | |
28923 | ||
28924 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" | |
28925 | fi | |
28926 | fi | |
28927 | DEREZ=$ac_cv_prog_DEREZ | |
28928 | if test -n "$DEREZ"; then | |
28929 | echo "$as_me:$LINENO: result: $DEREZ" >&5 | |
28930 | echo "${ECHO_T}$DEREZ" >&6 | |
28931 | else | |
28932 | echo "$as_me:$LINENO: result: no" >&5 | |
28933 | echo "${ECHO_T}no" >&6 | |
28934 | fi | |
28935 | ||
28936 | # Extract the first word of "SetFile", so it can be a program name with args. | |
28937 | set dummy SetFile; ac_word=$2 | |
28938 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
28939 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
28940 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
28941 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28942 | else | |
28943 | if test -n "$SETFILE"; then | |
28944 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
28945 | else | |
28946 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
28947 | for as_dir in $PATH | |
28948 | do | |
28949 | IFS=$as_save_IFS | |
28950 | test -z "$as_dir" && as_dir=. | |
28951 | for ac_exec_ext in '' $ac_executable_extensions; do | |
28952 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
28953 | ac_cv_prog_SETFILE="SetFile" | |
28954 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
28955 | break 2 | |
28956 | fi | |
28957 | done | |
28958 | done | |
28959 | ||
28960 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
28961 | fi | |
28962 | fi | |
28963 | SETFILE=$ac_cv_prog_SETFILE | |
28964 | if test -n "$SETFILE"; then | |
28965 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
28966 | echo "${ECHO_T}$SETFILE" >&6 | |
28967 | else | |
28968 | echo "$as_me:$LINENO: result: no" >&5 | |
28969 | echo "${ECHO_T}no" >&6 | |
28970 | fi | |
28971 | ||
28972 | ||
28973 | MACSETFILE="\$(SETFILE)" | |
28974 | ||
28975 | if test "$wxUSE_MAC" = 1; then | |
28976 | MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o" | |
28977 | ||
28978 | MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
28979 | else | |
28980 | MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o" | |
28981 | MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
28982 | fi | |
28983 | else | |
ffa0583f RL |
28984 | MACSETFILE="@true" |
28985 | MACRESWXCONFIG="@true" | |
a848cd7e SC |
28986 | |
28987 | if test "$wxUSE_PM" = 1; then | |
28988 | MACRESCOMP="emxbind -ep" | |
28989 | else | |
ffa0583f | 28990 | MACRESCOMP="@true" |
a848cd7e SC |
28991 | fi |
28992 | fi | |
28993 | ||
28994 | ||
28995 | ||
28996 | echo "$as_me:$LINENO: checking for mode_t" >&5 | |
28997 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
28998 | if test "${ac_cv_type_mode_t+set}" = set; then | |
28999 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29000 | else | |
29001 | cat >conftest.$ac_ext <<_ACEOF | |
29002 | /* confdefs.h. */ | |
29003 | _ACEOF | |
29004 | cat confdefs.h >>conftest.$ac_ext | |
29005 | cat >>conftest.$ac_ext <<_ACEOF | |
29006 | /* end confdefs.h. */ | |
29007 | $ac_includes_default | |
29008 | int | |
29009 | main () | |
29010 | { | |
29011 | if ((mode_t *) 0) | |
29012 | return 0; | |
29013 | if (sizeof (mode_t)) | |
29014 | return 0; | |
29015 | ; | |
29016 | return 0; | |
29017 | } | |
29018 | _ACEOF | |
29019 | rm -f conftest.$ac_objext | |
29020 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29021 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29022 | ac_status=$? |
ac1cb8d3 VS |
29023 | grep -v '^ *+' conftest.er1 >conftest.err |
29024 | rm -f conftest.er1 | |
29025 | cat conftest.err >&5 | |
a848cd7e SC |
29026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29027 | (exit $ac_status); } && | |
89be85c2 VS |
29028 | { ac_try='test -z "$ac_c_werror_flag" |
29029 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29031 | (eval $ac_try) 2>&5 | |
29032 | ac_status=$? | |
29033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29034 | (exit $ac_status); }; } && | |
29035 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29037 | (eval $ac_try) 2>&5 | |
29038 | ac_status=$? | |
29039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29040 | (exit $ac_status); }; }; then | |
29041 | ac_cv_type_mode_t=yes | |
29042 | else | |
29043 | echo "$as_me: failed program was:" >&5 | |
29044 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29045 | ||
29046 | ac_cv_type_mode_t=no | |
29047 | fi | |
ac1cb8d3 | 29048 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29049 | fi |
29050 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 | |
29051 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
29052 | if test $ac_cv_type_mode_t = yes; then | |
29053 | : | |
29054 | else | |
29055 | ||
29056 | cat >>confdefs.h <<_ACEOF | |
29057 | #define mode_t int | |
29058 | _ACEOF | |
29059 | ||
29060 | fi | |
29061 | ||
29062 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
29063 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
29064 | if test "${ac_cv_type_off_t+set}" = set; then | |
29065 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29066 | else | |
29067 | cat >conftest.$ac_ext <<_ACEOF | |
29068 | /* confdefs.h. */ | |
29069 | _ACEOF | |
29070 | cat confdefs.h >>conftest.$ac_ext | |
29071 | cat >>conftest.$ac_ext <<_ACEOF | |
29072 | /* end confdefs.h. */ | |
29073 | $ac_includes_default | |
29074 | int | |
29075 | main () | |
29076 | { | |
29077 | if ((off_t *) 0) | |
29078 | return 0; | |
29079 | if (sizeof (off_t)) | |
29080 | return 0; | |
29081 | ; | |
29082 | return 0; | |
29083 | } | |
29084 | _ACEOF | |
29085 | rm -f conftest.$ac_objext | |
29086 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29087 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29088 | ac_status=$? |
ac1cb8d3 VS |
29089 | grep -v '^ *+' conftest.er1 >conftest.err |
29090 | rm -f conftest.er1 | |
29091 | cat conftest.err >&5 | |
a848cd7e SC |
29092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29093 | (exit $ac_status); } && | |
89be85c2 VS |
29094 | { ac_try='test -z "$ac_c_werror_flag" |
29095 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29096 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29097 | (eval $ac_try) 2>&5 | |
29098 | ac_status=$? | |
29099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29100 | (exit $ac_status); }; } && | |
29101 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29103 | (eval $ac_try) 2>&5 | |
29104 | ac_status=$? | |
29105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29106 | (exit $ac_status); }; }; then | |
29107 | ac_cv_type_off_t=yes | |
29108 | else | |
29109 | echo "$as_me: failed program was:" >&5 | |
29110 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29111 | ||
29112 | ac_cv_type_off_t=no | |
29113 | fi | |
ac1cb8d3 | 29114 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29115 | fi |
29116 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
29117 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
29118 | if test $ac_cv_type_off_t = yes; then | |
29119 | : | |
29120 | else | |
29121 | ||
29122 | cat >>confdefs.h <<_ACEOF | |
29123 | #define off_t long | |
29124 | _ACEOF | |
29125 | ||
29126 | fi | |
29127 | ||
29128 | echo "$as_me:$LINENO: checking for pid_t" >&5 | |
29129 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
29130 | if test "${ac_cv_type_pid_t+set}" = set; then | |
29131 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29132 | else | |
29133 | cat >conftest.$ac_ext <<_ACEOF | |
29134 | /* confdefs.h. */ | |
29135 | _ACEOF | |
29136 | cat confdefs.h >>conftest.$ac_ext | |
29137 | cat >>conftest.$ac_ext <<_ACEOF | |
29138 | /* end confdefs.h. */ | |
29139 | $ac_includes_default | |
29140 | int | |
29141 | main () | |
29142 | { | |
29143 | if ((pid_t *) 0) | |
29144 | return 0; | |
29145 | if (sizeof (pid_t)) | |
29146 | return 0; | |
29147 | ; | |
29148 | return 0; | |
29149 | } | |
29150 | _ACEOF | |
29151 | rm -f conftest.$ac_objext | |
29152 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29153 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29154 | ac_status=$? |
ac1cb8d3 VS |
29155 | grep -v '^ *+' conftest.er1 >conftest.err |
29156 | rm -f conftest.er1 | |
29157 | cat conftest.err >&5 | |
a848cd7e SC |
29158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29159 | (exit $ac_status); } && | |
89be85c2 VS |
29160 | { ac_try='test -z "$ac_c_werror_flag" |
29161 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29163 | (eval $ac_try) 2>&5 | |
29164 | ac_status=$? | |
29165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29166 | (exit $ac_status); }; } && | |
29167 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29169 | (eval $ac_try) 2>&5 | |
29170 | ac_status=$? | |
29171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29172 | (exit $ac_status); }; }; then | |
29173 | ac_cv_type_pid_t=yes | |
29174 | else | |
29175 | echo "$as_me: failed program was:" >&5 | |
29176 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29177 | ||
29178 | ac_cv_type_pid_t=no | |
29179 | fi | |
ac1cb8d3 | 29180 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29181 | fi |
29182 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | |
29183 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
29184 | if test $ac_cv_type_pid_t = yes; then | |
29185 | : | |
29186 | else | |
29187 | ||
29188 | cat >>confdefs.h <<_ACEOF | |
29189 | #define pid_t int | |
29190 | _ACEOF | |
29191 | ||
29192 | fi | |
29193 | ||
29194 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
29195 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
29196 | if test "${ac_cv_type_size_t+set}" = set; then | |
29197 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29198 | else | |
29199 | cat >conftest.$ac_ext <<_ACEOF | |
29200 | /* confdefs.h. */ | |
29201 | _ACEOF | |
29202 | cat confdefs.h >>conftest.$ac_ext | |
29203 | cat >>conftest.$ac_ext <<_ACEOF | |
29204 | /* end confdefs.h. */ | |
29205 | $ac_includes_default | |
29206 | int | |
29207 | main () | |
29208 | { | |
29209 | if ((size_t *) 0) | |
29210 | return 0; | |
29211 | if (sizeof (size_t)) | |
29212 | return 0; | |
29213 | ; | |
29214 | return 0; | |
29215 | } | |
29216 | _ACEOF | |
29217 | rm -f conftest.$ac_objext | |
29218 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29219 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29220 | ac_status=$? |
ac1cb8d3 VS |
29221 | grep -v '^ *+' conftest.er1 >conftest.err |
29222 | rm -f conftest.er1 | |
29223 | cat conftest.err >&5 | |
a848cd7e SC |
29224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29225 | (exit $ac_status); } && | |
89be85c2 VS |
29226 | { ac_try='test -z "$ac_c_werror_flag" |
29227 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29229 | (eval $ac_try) 2>&5 | |
29230 | ac_status=$? | |
29231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29232 | (exit $ac_status); }; } && | |
29233 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29235 | (eval $ac_try) 2>&5 | |
29236 | ac_status=$? | |
29237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29238 | (exit $ac_status); }; }; then | |
29239 | ac_cv_type_size_t=yes | |
29240 | else | |
29241 | echo "$as_me: failed program was:" >&5 | |
29242 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29243 | ||
29244 | ac_cv_type_size_t=no | |
29245 | fi | |
ac1cb8d3 | 29246 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29247 | fi |
29248 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
29249 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
29250 | if test $ac_cv_type_size_t = yes; then | |
29251 | : | |
29252 | else | |
29253 | ||
29254 | cat >>confdefs.h <<_ACEOF | |
29255 | #define size_t unsigned | |
29256 | _ACEOF | |
29257 | ||
29258 | fi | |
29259 | ||
29260 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 | |
29261 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 | |
29262 | if test "${ac_cv_type_uid_t+set}" = set; then | |
29263 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29264 | else | |
29265 | cat >conftest.$ac_ext <<_ACEOF | |
29266 | /* confdefs.h. */ | |
29267 | _ACEOF | |
29268 | cat confdefs.h >>conftest.$ac_ext | |
29269 | cat >>conftest.$ac_ext <<_ACEOF | |
29270 | /* end confdefs.h. */ | |
29271 | #include <sys/types.h> | |
29272 | ||
29273 | _ACEOF | |
29274 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
29275 | $EGREP "uid_t" >/dev/null 2>&1; then | |
29276 | ac_cv_type_uid_t=yes | |
29277 | else | |
29278 | ac_cv_type_uid_t=no | |
29279 | fi | |
29280 | rm -f conftest* | |
29281 | ||
29282 | fi | |
29283 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 | |
29284 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 | |
29285 | if test $ac_cv_type_uid_t = no; then | |
29286 | ||
29287 | cat >>confdefs.h <<\_ACEOF | |
29288 | #define uid_t int | |
29289 | _ACEOF | |
29290 | ||
29291 | ||
29292 | cat >>confdefs.h <<\_ACEOF | |
29293 | #define gid_t int | |
29294 | _ACEOF | |
29295 | ||
29296 | fi | |
29297 | ||
29298 | ||
d51253e8 RL |
29299 | echo "$as_me:$LINENO: checking for ssize_t" >&5 |
29300 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 | |
29301 | if test "${ac_cv_type_ssize_t+set}" = set; then | |
29302 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29303 | else | |
29304 | cat >conftest.$ac_ext <<_ACEOF | |
29305 | /* confdefs.h. */ | |
29306 | _ACEOF | |
29307 | cat confdefs.h >>conftest.$ac_ext | |
29308 | cat >>conftest.$ac_ext <<_ACEOF | |
29309 | /* end confdefs.h. */ | |
29310 | $ac_includes_default | |
29311 | int | |
29312 | main () | |
29313 | { | |
29314 | if ((ssize_t *) 0) | |
29315 | return 0; | |
29316 | if (sizeof (ssize_t)) | |
29317 | return 0; | |
29318 | ; | |
29319 | return 0; | |
29320 | } | |
29321 | _ACEOF | |
29322 | rm -f conftest.$ac_objext | |
29323 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29324 | (eval $ac_compile) 2>conftest.er1 | |
29325 | ac_status=$? | |
29326 | grep -v '^ *+' conftest.er1 >conftest.err | |
29327 | rm -f conftest.er1 | |
29328 | cat conftest.err >&5 | |
29329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29330 | (exit $ac_status); } && | |
89be85c2 VS |
29331 | { ac_try='test -z "$ac_c_werror_flag" |
29332 | || test ! -s conftest.err' | |
d51253e8 RL |
29333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29334 | (eval $ac_try) 2>&5 | |
29335 | ac_status=$? | |
29336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29337 | (exit $ac_status); }; } && | |
29338 | { ac_try='test -s conftest.$ac_objext' | |
29339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29340 | (eval $ac_try) 2>&5 | |
29341 | ac_status=$? | |
29342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29343 | (exit $ac_status); }; }; then | |
29344 | ac_cv_type_ssize_t=yes | |
29345 | else | |
29346 | echo "$as_me: failed program was:" >&5 | |
29347 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29348 | ||
29349 | ac_cv_type_ssize_t=no | |
29350 | fi | |
29351 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
29352 | fi | |
29353 | echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 | |
29354 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 | |
29355 | if test $ac_cv_type_ssize_t = yes; then | |
29356 | ||
29357 | cat >>confdefs.h <<_ACEOF | |
29358 | #define HAVE_SSIZE_T 1 | |
29359 | _ACEOF | |
29360 | ||
29361 | ||
29362 | fi | |
29363 | ||
29364 | ||
a848cd7e SC |
29365 | |
29366 | ||
29367 | ac_ext=cc | |
29368 | ac_cpp='$CXXCPP $CPPFLAGS' | |
29369 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29370 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29371 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
29372 | ||
29373 | echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5 | |
29374 | echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6 | |
29375 | if test "${wx_cv_size_t_is_uint+set}" = set; then | |
29376 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29377 | else | |
29378 | ||
29379 | cat >conftest.$ac_ext <<_ACEOF | |
29380 | /* confdefs.h. */ | |
29381 | _ACEOF | |
29382 | cat confdefs.h >>conftest.$ac_ext | |
29383 | cat >>conftest.$ac_ext <<_ACEOF | |
29384 | /* end confdefs.h. */ | |
29385 | #include <stddef.h> | |
29386 | int | |
29387 | main () | |
29388 | { | |
29389 | ||
29390 | return 0; } | |
29391 | ||
29392 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
29393 | ||
29394 | int bar() { | |
29395 | ||
29396 | ; | |
29397 | return 0; | |
29398 | } | |
29399 | _ACEOF | |
29400 | rm -f conftest.$ac_objext | |
29401 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29402 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29403 | ac_status=$? |
ac1cb8d3 VS |
29404 | grep -v '^ *+' conftest.er1 >conftest.err |
29405 | rm -f conftest.er1 | |
29406 | cat conftest.err >&5 | |
a848cd7e SC |
29407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29408 | (exit $ac_status); } && | |
89be85c2 VS |
29409 | { ac_try='test -z "$ac_cxx_werror_flag" |
29410 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29412 | (eval $ac_try) 2>&5 | |
29413 | ac_status=$? | |
29414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29415 | (exit $ac_status); }; } && | |
29416 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29418 | (eval $ac_try) 2>&5 | |
29419 | ac_status=$? | |
29420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29421 | (exit $ac_status); }; }; then | |
29422 | wx_cv_size_t_is_uint=no | |
29423 | else | |
29424 | echo "$as_me: failed program was:" >&5 | |
29425 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29426 | ||
29427 | wx_cv_size_t_is_uint=yes | |
29428 | ||
29429 | fi | |
ac1cb8d3 | 29430 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29431 | |
29432 | ||
29433 | fi | |
29434 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5 | |
29435 | echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6 | |
29436 | ||
29437 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
29438 | cat >>confdefs.h <<\_ACEOF | |
29439 | #define wxSIZE_T_IS_UINT 1 | |
29440 | _ACEOF | |
29441 | ||
29442 | else | |
29443 | echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5 | |
29444 | echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6 | |
29445 | if test "${wx_cv_size_t_is_ulong+set}" = set; then | |
29446 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29447 | else | |
29448 | cat >conftest.$ac_ext <<_ACEOF | |
29449 | /* confdefs.h. */ | |
29450 | _ACEOF | |
29451 | cat confdefs.h >>conftest.$ac_ext | |
29452 | cat >>conftest.$ac_ext <<_ACEOF | |
29453 | /* end confdefs.h. */ | |
29454 | #include <stddef.h> | |
29455 | int | |
29456 | main () | |
29457 | { | |
29458 | ||
29459 | return 0; } | |
29460 | ||
29461 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
29462 | ||
29463 | int bar() { | |
29464 | ||
29465 | ; | |
29466 | return 0; | |
29467 | } | |
29468 | _ACEOF | |
29469 | rm -f conftest.$ac_objext | |
29470 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29471 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29472 | ac_status=$? |
ac1cb8d3 VS |
29473 | grep -v '^ *+' conftest.er1 >conftest.err |
29474 | rm -f conftest.er1 | |
29475 | cat conftest.err >&5 | |
a848cd7e SC |
29476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29477 | (exit $ac_status); } && | |
89be85c2 VS |
29478 | { ac_try='test -z "$ac_cxx_werror_flag" |
29479 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29481 | (eval $ac_try) 2>&5 | |
29482 | ac_status=$? | |
29483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29484 | (exit $ac_status); }; } && | |
29485 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29487 | (eval $ac_try) 2>&5 | |
29488 | ac_status=$? | |
29489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29490 | (exit $ac_status); }; }; then | |
29491 | wx_cv_size_t_is_ulong=no | |
29492 | else | |
29493 | echo "$as_me: failed program was:" >&5 | |
29494 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29495 | ||
29496 | wx_cv_size_t_is_ulong=yes | |
29497 | ||
29498 | fi | |
ac1cb8d3 | 29499 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29500 | |
29501 | fi | |
29502 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5 | |
29503 | echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6 | |
29504 | ||
29505 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
29506 | cat >>confdefs.h <<\_ACEOF | |
29507 | #define wxSIZE_T_IS_ULONG 1 | |
29508 | _ACEOF | |
29509 | ||
29510 | fi | |
29511 | fi | |
29512 | ||
29513 | ac_ext=c | |
29514 | ac_cpp='$CPP $CPPFLAGS' | |
29515 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29516 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29517 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
29518 | ||
29519 | ||
29520 | ||
29521 | echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5 | |
29522 | echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6 | |
29523 | if test "${wx_cv_struct_pw_gecos+set}" = set; then | |
29524 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29525 | else | |
29526 | ||
29527 | cat >conftest.$ac_ext <<_ACEOF | |
29528 | /* confdefs.h. */ | |
29529 | _ACEOF | |
29530 | cat confdefs.h >>conftest.$ac_ext | |
29531 | cat >>conftest.$ac_ext <<_ACEOF | |
29532 | /* end confdefs.h. */ | |
29533 | #include <pwd.h> | |
29534 | int | |
29535 | main () | |
29536 | { | |
29537 | ||
29538 | char *p; | |
29539 | struct passwd *pw; | |
29540 | p = pw->pw_gecos; | |
29541 | ||
29542 | ; | |
29543 | return 0; | |
29544 | } | |
29545 | _ACEOF | |
29546 | rm -f conftest.$ac_objext | |
29547 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29548 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29549 | ac_status=$? |
ac1cb8d3 VS |
29550 | grep -v '^ *+' conftest.er1 >conftest.err |
29551 | rm -f conftest.er1 | |
29552 | cat conftest.err >&5 | |
a848cd7e SC |
29553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29554 | (exit $ac_status); } && | |
89be85c2 VS |
29555 | { ac_try='test -z "$ac_c_werror_flag" |
29556 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29558 | (eval $ac_try) 2>&5 | |
29559 | ac_status=$? | |
29560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29561 | (exit $ac_status); }; } && | |
29562 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
29568 | ||
29569 | wx_cv_struct_pw_gecos=yes | |
29570 | ||
29571 | else | |
29572 | echo "$as_me: failed program was:" >&5 | |
29573 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29574 | ||
29575 | ||
29576 | wx_cv_struct_pw_gecos=no | |
29577 | ||
29578 | ||
29579 | fi | |
ac1cb8d3 | 29580 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29581 | |
29582 | ||
29583 | fi | |
29584 | echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5 | |
29585 | echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6 | |
29586 | ||
29587 | if test "$wx_cv_struct_pw_gecos" = "yes"; then | |
29588 | cat >>confdefs.h <<\_ACEOF | |
29589 | #define HAVE_PW_GECOS 1 | |
29590 | _ACEOF | |
29591 | ||
29592 | fi | |
29593 | ||
29594 | ||
29595 | if test "$wx_cv_sizeof_wchar_t" != "0"; then | |
29596 | cat >>confdefs.h <<\_ACEOF | |
29597 | #define wxUSE_WCHAR_T 1 | |
29598 | _ACEOF | |
29599 | ||
29600 | ||
29601 | WCSLEN_FOUND=0 | |
29602 | WCHAR_LINK= | |
29603 | ||
29604 | for ac_func in wcslen | |
29605 | do | |
29606 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29607 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29608 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29609 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29610 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29611 | else | |
29612 | cat >conftest.$ac_ext <<_ACEOF | |
29613 | /* confdefs.h. */ | |
29614 | _ACEOF | |
29615 | cat confdefs.h >>conftest.$ac_ext | |
29616 | cat >>conftest.$ac_ext <<_ACEOF | |
29617 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29618 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29619 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29620 | #define $ac_func innocuous_$ac_func | |
29621 | ||
a848cd7e SC |
29622 | /* System header to define __stub macros and hopefully few prototypes, |
29623 | which can conflict with char $ac_func (); below. | |
29624 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29625 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29626 | |
a848cd7e SC |
29627 | #ifdef __STDC__ |
29628 | # include <limits.h> | |
29629 | #else | |
29630 | # include <assert.h> | |
29631 | #endif | |
ac1cb8d3 VS |
29632 | |
29633 | #undef $ac_func | |
29634 | ||
a848cd7e SC |
29635 | /* Override any gcc2 internal prototype to avoid an error. */ |
29636 | #ifdef __cplusplus | |
29637 | extern "C" | |
29638 | { | |
29639 | #endif | |
29640 | /* We use char because int might match the return type of a gcc2 | |
29641 | builtin and then its argument prototype would still apply. */ | |
29642 | char $ac_func (); | |
29643 | /* The GNU C library defines this for functions which it implements | |
29644 | to always fail with ENOSYS. Some functions are actually named | |
29645 | something starting with __ and the normal name is an alias. */ | |
29646 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29647 | choke me | |
29648 | #else | |
29649 | char (*f) () = $ac_func; | |
29650 | #endif | |
29651 | #ifdef __cplusplus | |
29652 | } | |
29653 | #endif | |
29654 | ||
29655 | int | |
29656 | main () | |
29657 | { | |
29658 | return f != $ac_func; | |
29659 | ; | |
29660 | return 0; | |
29661 | } | |
29662 | _ACEOF | |
29663 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29664 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29665 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29666 | ac_status=$? |
ac1cb8d3 VS |
29667 | grep -v '^ *+' conftest.er1 >conftest.err |
29668 | rm -f conftest.er1 | |
29669 | cat conftest.err >&5 | |
a848cd7e SC |
29670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29671 | (exit $ac_status); } && | |
89be85c2 VS |
29672 | { ac_try='test -z "$ac_c_werror_flag" |
29673 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29675 | (eval $ac_try) 2>&5 | |
29676 | ac_status=$? | |
29677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29678 | (exit $ac_status); }; } && | |
29679 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29681 | (eval $ac_try) 2>&5 | |
29682 | ac_status=$? | |
29683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29684 | (exit $ac_status); }; }; then | |
29685 | eval "$as_ac_var=yes" | |
29686 | else | |
29687 | echo "$as_me: failed program was:" >&5 | |
29688 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29689 | ||
29690 | eval "$as_ac_var=no" | |
29691 | fi | |
ac1cb8d3 VS |
29692 | rm -f conftest.err conftest.$ac_objext \ |
29693 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29694 | fi |
29695 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29696 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29697 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29698 | cat >>confdefs.h <<_ACEOF | |
29699 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29700 | _ACEOF | |
29701 | WCSLEN_FOUND=1 | |
29702 | fi | |
29703 | done | |
29704 | ||
29705 | ||
29706 | if test "$WCSLEN_FOUND" = 0; then | |
29707 | if test "$TOOLKIT" = "MSW"; then | |
29708 | echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5 | |
29709 | echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6 | |
29710 | if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then | |
29711 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29712 | else | |
29713 | ac_check_lib_save_LIBS=$LIBS | |
29714 | LIBS="-lmsvcrt $LIBS" | |
29715 | cat >conftest.$ac_ext <<_ACEOF | |
29716 | /* confdefs.h. */ | |
29717 | _ACEOF | |
29718 | cat confdefs.h >>conftest.$ac_ext | |
29719 | cat >>conftest.$ac_ext <<_ACEOF | |
29720 | /* end confdefs.h. */ | |
29721 | ||
29722 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29723 | #ifdef __cplusplus | |
29724 | extern "C" | |
29725 | #endif | |
29726 | /* We use char because int might match the return type of a gcc2 | |
29727 | builtin and then its argument prototype would still apply. */ | |
29728 | char wcslen (); | |
29729 | int | |
29730 | main () | |
29731 | { | |
29732 | wcslen (); | |
29733 | ; | |
29734 | return 0; | |
29735 | } | |
29736 | _ACEOF | |
29737 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29738 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29739 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29740 | ac_status=$? |
ac1cb8d3 VS |
29741 | grep -v '^ *+' conftest.er1 >conftest.err |
29742 | rm -f conftest.er1 | |
29743 | cat conftest.err >&5 | |
a848cd7e SC |
29744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29745 | (exit $ac_status); } && | |
89be85c2 VS |
29746 | { ac_try='test -z "$ac_c_werror_flag" |
29747 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29749 | (eval $ac_try) 2>&5 | |
29750 | ac_status=$? | |
29751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29752 | (exit $ac_status); }; } && | |
29753 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29755 | (eval $ac_try) 2>&5 | |
29756 | ac_status=$? | |
29757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29758 | (exit $ac_status); }; }; then | |
29759 | ac_cv_lib_msvcrt_wcslen=yes | |
29760 | else | |
29761 | echo "$as_me: failed program was:" >&5 | |
29762 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29763 | ||
29764 | ac_cv_lib_msvcrt_wcslen=no | |
29765 | fi | |
ac1cb8d3 VS |
29766 | rm -f conftest.err conftest.$ac_objext \ |
29767 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29768 | LIBS=$ac_check_lib_save_LIBS |
29769 | fi | |
29770 | echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5 | |
29771 | echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6 | |
29772 | if test $ac_cv_lib_msvcrt_wcslen = yes; then | |
29773 | WCHAR_OK=1 | |
29774 | fi | |
29775 | ||
29776 | else | |
29777 | echo "$as_me:$LINENO: checking for wcslen in -lw" >&5 | |
29778 | echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6 | |
29779 | if test "${ac_cv_lib_w_wcslen+set}" = set; then | |
29780 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29781 | else | |
29782 | ac_check_lib_save_LIBS=$LIBS | |
29783 | LIBS="-lw $LIBS" | |
29784 | cat >conftest.$ac_ext <<_ACEOF | |
29785 | /* confdefs.h. */ | |
29786 | _ACEOF | |
29787 | cat confdefs.h >>conftest.$ac_ext | |
29788 | cat >>conftest.$ac_ext <<_ACEOF | |
29789 | /* end confdefs.h. */ | |
29790 | ||
29791 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29792 | #ifdef __cplusplus | |
29793 | extern "C" | |
29794 | #endif | |
29795 | /* We use char because int might match the return type of a gcc2 | |
29796 | builtin and then its argument prototype would still apply. */ | |
29797 | char wcslen (); | |
29798 | int | |
29799 | main () | |
29800 | { | |
29801 | wcslen (); | |
29802 | ; | |
29803 | return 0; | |
29804 | } | |
29805 | _ACEOF | |
29806 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29807 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29808 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29809 | ac_status=$? |
ac1cb8d3 VS |
29810 | grep -v '^ *+' conftest.er1 >conftest.err |
29811 | rm -f conftest.er1 | |
29812 | cat conftest.err >&5 | |
a848cd7e SC |
29813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29814 | (exit $ac_status); } && | |
89be85c2 VS |
29815 | { ac_try='test -z "$ac_c_werror_flag" |
29816 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29818 | (eval $ac_try) 2>&5 | |
29819 | ac_status=$? | |
29820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29821 | (exit $ac_status); }; } && | |
29822 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29824 | (eval $ac_try) 2>&5 | |
29825 | ac_status=$? | |
29826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29827 | (exit $ac_status); }; }; then | |
29828 | ac_cv_lib_w_wcslen=yes | |
29829 | else | |
29830 | echo "$as_me: failed program was:" >&5 | |
29831 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29832 | ||
29833 | ac_cv_lib_w_wcslen=no | |
29834 | fi | |
ac1cb8d3 VS |
29835 | rm -f conftest.err conftest.$ac_objext \ |
29836 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29837 | LIBS=$ac_check_lib_save_LIBS |
29838 | fi | |
29839 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5 | |
29840 | echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6 | |
29841 | if test $ac_cv_lib_w_wcslen = yes; then | |
29842 | ||
29843 | WCHAR_LINK=" -lw" | |
29844 | WCSLEN_FOUND=1 | |
29845 | ||
29846 | fi | |
29847 | ||
29848 | fi | |
29849 | fi | |
29850 | ||
29851 | if test "$WCSLEN_FOUND" = 1; then | |
29852 | cat >>confdefs.h <<\_ACEOF | |
29853 | #define HAVE_WCSLEN 1 | |
29854 | _ACEOF | |
29855 | ||
29856 | fi | |
29857 | ||
81f90336 | 29858 | if test "$USE_HPUX" = 1; then |
473276a9 VS |
29859 | CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE " |
29860 | fi | |
29861 | ||
a848cd7e SC |
29862 | |
29863 | for ac_func in wcsrtombs | |
29864 | do | |
29865 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29866 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29867 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29868 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29869 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29870 | else | |
29871 | cat >conftest.$ac_ext <<_ACEOF | |
29872 | /* confdefs.h. */ | |
29873 | _ACEOF | |
29874 | cat confdefs.h >>conftest.$ac_ext | |
29875 | cat >>conftest.$ac_ext <<_ACEOF | |
29876 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29877 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29878 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29879 | #define $ac_func innocuous_$ac_func | |
29880 | ||
a848cd7e SC |
29881 | /* System header to define __stub macros and hopefully few prototypes, |
29882 | which can conflict with char $ac_func (); below. | |
29883 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29884 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29885 | |
a848cd7e SC |
29886 | #ifdef __STDC__ |
29887 | # include <limits.h> | |
29888 | #else | |
29889 | # include <assert.h> | |
29890 | #endif | |
ac1cb8d3 VS |
29891 | |
29892 | #undef $ac_func | |
29893 | ||
a848cd7e SC |
29894 | /* Override any gcc2 internal prototype to avoid an error. */ |
29895 | #ifdef __cplusplus | |
29896 | extern "C" | |
29897 | { | |
29898 | #endif | |
29899 | /* We use char because int might match the return type of a gcc2 | |
29900 | builtin and then its argument prototype would still apply. */ | |
29901 | char $ac_func (); | |
29902 | /* The GNU C library defines this for functions which it implements | |
29903 | to always fail with ENOSYS. Some functions are actually named | |
29904 | something starting with __ and the normal name is an alias. */ | |
29905 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29906 | choke me | |
29907 | #else | |
29908 | char (*f) () = $ac_func; | |
29909 | #endif | |
29910 | #ifdef __cplusplus | |
29911 | } | |
29912 | #endif | |
29913 | ||
29914 | int | |
29915 | main () | |
29916 | { | |
29917 | return f != $ac_func; | |
29918 | ; | |
29919 | return 0; | |
29920 | } | |
29921 | _ACEOF | |
29922 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29923 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29924 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29925 | ac_status=$? |
ac1cb8d3 VS |
29926 | grep -v '^ *+' conftest.er1 >conftest.err |
29927 | rm -f conftest.er1 | |
29928 | cat conftest.err >&5 | |
a848cd7e SC |
29929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29930 | (exit $ac_status); } && | |
89be85c2 VS |
29931 | { ac_try='test -z "$ac_c_werror_flag" |
29932 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29934 | (eval $ac_try) 2>&5 | |
29935 | ac_status=$? | |
29936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29937 | (exit $ac_status); }; } && | |
29938 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29940 | (eval $ac_try) 2>&5 | |
29941 | ac_status=$? | |
29942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29943 | (exit $ac_status); }; }; then | |
29944 | eval "$as_ac_var=yes" | |
29945 | else | |
29946 | echo "$as_me: failed program was:" >&5 | |
29947 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29948 | ||
29949 | eval "$as_ac_var=no" | |
29950 | fi | |
ac1cb8d3 VS |
29951 | rm -f conftest.err conftest.$ac_objext \ |
29952 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29953 | fi |
29954 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29955 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29956 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29957 | cat >>confdefs.h <<_ACEOF | |
29958 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29959 | _ACEOF | |
29960 | ||
29961 | fi | |
29962 | done | |
29963 | ||
29964 | else | |
29965 | { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5 | |
29966 | echo "$as_me: WARNING: Wide character support is unavailable" >&2;} | |
29967 | fi | |
29968 | ||
29969 | ||
29970 | ||
29971 | ac_ext=cc | |
29972 | ac_cpp='$CXXCPP $CPPFLAGS' | |
29973 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29974 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29975 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
29976 | ||
29977 | ||
29978 | ||
29979 | for ac_func in vsnprintf | |
29980 | do | |
29981 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29982 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29983 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29984 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29985 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29986 | else | |
29987 | cat >conftest.$ac_ext <<_ACEOF | |
29988 | /* confdefs.h. */ | |
29989 | _ACEOF | |
29990 | cat confdefs.h >>conftest.$ac_ext | |
29991 | cat >>conftest.$ac_ext <<_ACEOF | |
29992 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29993 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29994 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29995 | #define $ac_func innocuous_$ac_func | |
29996 | ||
a848cd7e SC |
29997 | /* System header to define __stub macros and hopefully few prototypes, |
29998 | which can conflict with char $ac_func (); below. | |
29999 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30000 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30001 | |
a848cd7e SC |
30002 | #ifdef __STDC__ |
30003 | # include <limits.h> | |
30004 | #else | |
30005 | # include <assert.h> | |
30006 | #endif | |
ac1cb8d3 VS |
30007 | |
30008 | #undef $ac_func | |
30009 | ||
a848cd7e SC |
30010 | /* Override any gcc2 internal prototype to avoid an error. */ |
30011 | #ifdef __cplusplus | |
30012 | extern "C" | |
30013 | { | |
30014 | #endif | |
30015 | /* We use char because int might match the return type of a gcc2 | |
30016 | builtin and then its argument prototype would still apply. */ | |
30017 | char $ac_func (); | |
30018 | /* The GNU C library defines this for functions which it implements | |
30019 | to always fail with ENOSYS. Some functions are actually named | |
30020 | something starting with __ and the normal name is an alias. */ | |
30021 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30022 | choke me | |
30023 | #else | |
30024 | char (*f) () = $ac_func; | |
30025 | #endif | |
30026 | #ifdef __cplusplus | |
30027 | } | |
30028 | #endif | |
30029 | ||
30030 | int | |
30031 | main () | |
30032 | { | |
30033 | return f != $ac_func; | |
30034 | ; | |
30035 | return 0; | |
30036 | } | |
30037 | _ACEOF | |
30038 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30039 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30040 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30041 | ac_status=$? |
ac1cb8d3 VS |
30042 | grep -v '^ *+' conftest.er1 >conftest.err |
30043 | rm -f conftest.er1 | |
30044 | cat conftest.err >&5 | |
a848cd7e SC |
30045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30046 | (exit $ac_status); } && | |
89be85c2 VS |
30047 | { ac_try='test -z "$ac_cxx_werror_flag" |
30048 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30050 | (eval $ac_try) 2>&5 | |
30051 | ac_status=$? | |
30052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30053 | (exit $ac_status); }; } && | |
30054 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30056 | (eval $ac_try) 2>&5 | |
30057 | ac_status=$? | |
30058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30059 | (exit $ac_status); }; }; then | |
30060 | eval "$as_ac_var=yes" | |
30061 | else | |
30062 | echo "$as_me: failed program was:" >&5 | |
30063 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30064 | ||
30065 | eval "$as_ac_var=no" | |
30066 | fi | |
ac1cb8d3 VS |
30067 | rm -f conftest.err conftest.$ac_objext \ |
30068 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30069 | fi |
30070 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30071 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30072 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30073 | cat >>confdefs.h <<_ACEOF | |
30074 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30075 | _ACEOF | |
30076 | ||
30077 | fi | |
30078 | done | |
30079 | ||
30080 | ||
30081 | if test "$ac_cv_func_vsnprintf" = "yes"; then | |
30082 | echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5 | |
30083 | echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6 | |
30084 | if test "${wx_cv_func_vsnprintf_decl+set}" = set; then | |
30085 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30086 | else | |
30087 | ||
30088 | cat >conftest.$ac_ext <<_ACEOF | |
30089 | /* confdefs.h. */ | |
30090 | _ACEOF | |
30091 | cat confdefs.h >>conftest.$ac_ext | |
30092 | cat >>conftest.$ac_ext <<_ACEOF | |
30093 | /* end confdefs.h. */ | |
30094 | ||
30095 | #include <stdio.h> | |
30096 | #include <stdarg.h> | |
30097 | ||
30098 | int | |
30099 | main () | |
30100 | { | |
30101 | ||
30102 | char *buf; | |
30103 | va_list ap; | |
30104 | vsnprintf(buf, 10u, "%s", ap); | |
30105 | ||
30106 | ; | |
30107 | return 0; | |
30108 | } | |
30109 | _ACEOF | |
30110 | rm -f conftest.$ac_objext | |
30111 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30112 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30113 | ac_status=$? |
ac1cb8d3 VS |
30114 | grep -v '^ *+' conftest.er1 >conftest.err |
30115 | rm -f conftest.er1 | |
30116 | cat conftest.err >&5 | |
a848cd7e SC |
30117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30118 | (exit $ac_status); } && | |
89be85c2 VS |
30119 | { ac_try='test -z "$ac_cxx_werror_flag" |
30120 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30122 | (eval $ac_try) 2>&5 | |
30123 | ac_status=$? | |
30124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30125 | (exit $ac_status); }; } && | |
30126 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30128 | (eval $ac_try) 2>&5 | |
30129 | ac_status=$? | |
30130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30131 | (exit $ac_status); }; }; then | |
30132 | wx_cv_func_vsnprintf_decl=yes | |
30133 | else | |
30134 | echo "$as_me: failed program was:" >&5 | |
30135 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30136 | ||
c122b164 DE |
30137 | |
30138 | cat >conftest.$ac_ext <<_ACEOF | |
30139 | /* confdefs.h. */ | |
30140 | _ACEOF | |
30141 | cat confdefs.h >>conftest.$ac_ext | |
30142 | cat >>conftest.$ac_ext <<_ACEOF | |
30143 | /* end confdefs.h. */ | |
30144 | ||
30145 | #include <stdio.h> | |
30146 | #include <stdarg.h> | |
30147 | using namespace std; | |
30148 | ||
30149 | int | |
30150 | main () | |
30151 | { | |
30152 | ||
30153 | char *buf; | |
30154 | va_list ap; | |
30155 | vsnprintf(buf, 10u, "%s", ap); | |
30156 | ||
30157 | ; | |
30158 | return 0; | |
30159 | } | |
30160 | _ACEOF | |
30161 | rm -f conftest.$ac_objext | |
30162 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30163 | (eval $ac_compile) 2>conftest.er1 | |
30164 | ac_status=$? | |
30165 | grep -v '^ *+' conftest.er1 >conftest.err | |
30166 | rm -f conftest.er1 | |
30167 | cat conftest.err >&5 | |
30168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30169 | (exit $ac_status); } && | |
89be85c2 VS |
30170 | { ac_try='test -z "$ac_cxx_werror_flag" |
30171 | || test ! -s conftest.err' | |
c122b164 DE |
30172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30173 | (eval $ac_try) 2>&5 | |
30174 | ac_status=$? | |
30175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30176 | (exit $ac_status); }; } && | |
30177 | { ac_try='test -s conftest.$ac_objext' | |
30178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30179 | (eval $ac_try) 2>&5 | |
30180 | ac_status=$? | |
30181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30182 | (exit $ac_status); }; }; then | |
30183 | wx_cv_func_vsnprintf_decl=yes | |
30184 | else | |
30185 | echo "$as_me: failed program was:" >&5 | |
30186 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30187 | ||
a848cd7e SC |
30188 | wx_cv_func_vsnprintf_decl=no |
30189 | ||
30190 | fi | |
ac1cb8d3 | 30191 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30192 | |
30193 | ||
c122b164 DE |
30194 | fi |
30195 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
30196 | ||
30197 | ||
a848cd7e SC |
30198 | fi |
30199 | echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5 | |
30200 | echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6 | |
30201 | ||
30202 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
30203 | cat >>confdefs.h <<\_ACEOF | |
30204 | #define HAVE_VSNPRINTF_DECL 1 | |
30205 | _ACEOF | |
30206 | ||
30207 | fi | |
30208 | fi | |
30209 | ||
30210 | if test "$wxUSE_UNICODE" = yes; then | |
30211 | ||
30212 | ||
30213 | ||
fbe47c7b VS |
30214 | |
30215 | ||
30216 | ||
30217 | for ac_func in wputc wputchar putws fputws wprintf vswprintf | |
a848cd7e SC |
30218 | do |
30219 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30220 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30221 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30222 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30223 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30224 | else | |
30225 | cat >conftest.$ac_ext <<_ACEOF | |
30226 | /* confdefs.h. */ | |
30227 | _ACEOF | |
30228 | cat confdefs.h >>conftest.$ac_ext | |
30229 | cat >>conftest.$ac_ext <<_ACEOF | |
30230 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30231 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30232 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30233 | #define $ac_func innocuous_$ac_func | |
30234 | ||
a848cd7e SC |
30235 | /* System header to define __stub macros and hopefully few prototypes, |
30236 | which can conflict with char $ac_func (); below. | |
30237 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30238 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30239 | |
a848cd7e SC |
30240 | #ifdef __STDC__ |
30241 | # include <limits.h> | |
30242 | #else | |
30243 | # include <assert.h> | |
30244 | #endif | |
ac1cb8d3 VS |
30245 | |
30246 | #undef $ac_func | |
30247 | ||
a848cd7e SC |
30248 | /* Override any gcc2 internal prototype to avoid an error. */ |
30249 | #ifdef __cplusplus | |
30250 | extern "C" | |
30251 | { | |
30252 | #endif | |
30253 | /* We use char because int might match the return type of a gcc2 | |
30254 | builtin and then its argument prototype would still apply. */ | |
30255 | char $ac_func (); | |
30256 | /* The GNU C library defines this for functions which it implements | |
30257 | to always fail with ENOSYS. Some functions are actually named | |
30258 | something starting with __ and the normal name is an alias. */ | |
30259 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30260 | choke me | |
30261 | #else | |
30262 | char (*f) () = $ac_func; | |
30263 | #endif | |
30264 | #ifdef __cplusplus | |
30265 | } | |
30266 | #endif | |
30267 | ||
30268 | int | |
30269 | main () | |
30270 | { | |
30271 | return f != $ac_func; | |
30272 | ; | |
30273 | return 0; | |
30274 | } | |
30275 | _ACEOF | |
30276 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30277 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30278 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30279 | ac_status=$? |
ac1cb8d3 VS |
30280 | grep -v '^ *+' conftest.er1 >conftest.err |
30281 | rm -f conftest.er1 | |
30282 | cat conftest.err >&5 | |
a848cd7e SC |
30283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30284 | (exit $ac_status); } && | |
89be85c2 VS |
30285 | { ac_try='test -z "$ac_cxx_werror_flag" |
30286 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30287 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30288 | (eval $ac_try) 2>&5 | |
30289 | ac_status=$? | |
30290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30291 | (exit $ac_status); }; } && | |
30292 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30293 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30294 | (eval $ac_try) 2>&5 | |
30295 | ac_status=$? | |
30296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30297 | (exit $ac_status); }; }; then | |
30298 | eval "$as_ac_var=yes" | |
30299 | else | |
30300 | echo "$as_me: failed program was:" >&5 | |
30301 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30302 | ||
30303 | eval "$as_ac_var=no" | |
30304 | fi | |
ac1cb8d3 VS |
30305 | rm -f conftest.err conftest.$ac_objext \ |
30306 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30307 | fi |
30308 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30309 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30310 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30311 | cat >>confdefs.h <<_ACEOF | |
30312 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30313 | _ACEOF | |
30314 | ||
30315 | fi | |
30316 | done | |
30317 | ||
30318 | ||
30319 | echo "$as_me:$LINENO: checking for _vsnwprintf" >&5 | |
30320 | echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6 | |
30321 | cat >conftest.$ac_ext <<_ACEOF | |
30322 | /* confdefs.h. */ | |
30323 | _ACEOF | |
30324 | cat confdefs.h >>conftest.$ac_ext | |
30325 | cat >>conftest.$ac_ext <<_ACEOF | |
30326 | /* end confdefs.h. */ | |
30327 | #include <wchar.h> | |
30328 | int | |
30329 | main () | |
30330 | { | |
30331 | &_vsnwprintf; | |
30332 | ; | |
30333 | return 0; | |
30334 | } | |
30335 | _ACEOF | |
30336 | rm -f conftest.$ac_objext | |
30337 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30338 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30339 | ac_status=$? |
ac1cb8d3 VS |
30340 | grep -v '^ *+' conftest.er1 >conftest.err |
30341 | rm -f conftest.er1 | |
30342 | cat conftest.err >&5 | |
a848cd7e SC |
30343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30344 | (exit $ac_status); } && | |
89be85c2 VS |
30345 | { ac_try='test -z "$ac_cxx_werror_flag" |
30346 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30348 | (eval $ac_try) 2>&5 | |
30349 | ac_status=$? | |
30350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30351 | (exit $ac_status); }; } && | |
30352 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30354 | (eval $ac_try) 2>&5 | |
30355 | ac_status=$? | |
30356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30357 | (exit $ac_status); }; }; then | |
30358 | echo "$as_me:$LINENO: result: yes" >&5 | |
30359 | echo "${ECHO_T}yes" >&6 | |
30360 | cat >>confdefs.h <<\_ACEOF | |
30361 | #define HAVE__VSNWPRINTF 1 | |
30362 | _ACEOF | |
30363 | ||
30364 | else | |
30365 | echo "$as_me: failed program was:" >&5 | |
30366 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30367 | ||
30368 | echo "$as_me:$LINENO: result: no" >&5 | |
30369 | echo "${ECHO_T}no" >&6 | |
30370 | fi | |
ac1cb8d3 | 30371 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext; |
a848cd7e SC |
30372 | fi |
30373 | ||
30374 | ac_ext=c | |
30375 | ac_cpp='$CPP $CPPFLAGS' | |
30376 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30377 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30378 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
30379 | ||
30380 | ||
30381 | ||
30382 | ||
30383 | if test "$TOOLKIT" != "MSW"; then | |
30384 | ||
30385 | ||
30386 | ||
30387 | ||
30388 | ac_ext=cc | |
30389 | ac_cpp='$CXXCPP $CPPFLAGS' | |
30390 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30391 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30392 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
30393 | ||
30394 | ||
30395 | ||
30396 | ||
30397 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
30398 | if test "${with_libiconv_prefix+set}" = set; then | |
30399 | withval="$with_libiconv_prefix" | |
30400 | ||
30401 | for dir in `echo "$withval" | tr : ' '`; do | |
30402 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
30403 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
30404 | done | |
30405 | ||
30406 | fi; | |
30407 | ||
30408 | echo "$as_me:$LINENO: checking for iconv" >&5 | |
30409 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
30410 | if test "${am_cv_func_iconv+set}" = set; then | |
30411 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30412 | else | |
30413 | ||
30414 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
30415 | am_cv_lib_iconv=no | |
30416 | cat >conftest.$ac_ext <<_ACEOF | |
30417 | /* confdefs.h. */ | |
30418 | _ACEOF | |
30419 | cat confdefs.h >>conftest.$ac_ext | |
30420 | cat >>conftest.$ac_ext <<_ACEOF | |
30421 | /* end confdefs.h. */ | |
30422 | #include <stdlib.h> | |
30423 | #include <iconv.h> | |
30424 | int | |
30425 | main () | |
30426 | { | |
30427 | iconv_t cd = iconv_open("",""); | |
30428 | iconv(cd,NULL,NULL,NULL,NULL); | |
30429 | iconv_close(cd); | |
30430 | ; | |
30431 | return 0; | |
30432 | } | |
30433 | _ACEOF | |
30434 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30435 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30436 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30437 | ac_status=$? |
ac1cb8d3 VS |
30438 | grep -v '^ *+' conftest.er1 >conftest.err |
30439 | rm -f conftest.er1 | |
30440 | cat conftest.err >&5 | |
a848cd7e SC |
30441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30442 | (exit $ac_status); } && | |
89be85c2 VS |
30443 | { ac_try='test -z "$ac_cxx_werror_flag" |
30444 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30446 | (eval $ac_try) 2>&5 | |
30447 | ac_status=$? | |
30448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30449 | (exit $ac_status); }; } && | |
30450 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30452 | (eval $ac_try) 2>&5 | |
30453 | ac_status=$? | |
30454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30455 | (exit $ac_status); }; }; then | |
30456 | am_cv_func_iconv=yes | |
30457 | else | |
30458 | echo "$as_me: failed program was:" >&5 | |
30459 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30460 | ||
30461 | fi | |
ac1cb8d3 VS |
30462 | rm -f conftest.err conftest.$ac_objext \ |
30463 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30464 | if test "$am_cv_func_iconv" != yes; then |
30465 | am_save_LIBS="$LIBS" | |
30466 | LIBS="$LIBS -liconv" | |
30467 | cat >conftest.$ac_ext <<_ACEOF | |
30468 | /* confdefs.h. */ | |
30469 | _ACEOF | |
30470 | cat confdefs.h >>conftest.$ac_ext | |
30471 | cat >>conftest.$ac_ext <<_ACEOF | |
30472 | /* end confdefs.h. */ | |
30473 | #include <stdlib.h> | |
30474 | #include <iconv.h> | |
30475 | int | |
30476 | main () | |
30477 | { | |
30478 | iconv_t cd = iconv_open("",""); | |
30479 | iconv(cd,NULL,NULL,NULL,NULL); | |
30480 | iconv_close(cd); | |
30481 | ; | |
30482 | return 0; | |
30483 | } | |
30484 | _ACEOF | |
30485 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30486 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30487 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30488 | ac_status=$? |
ac1cb8d3 VS |
30489 | grep -v '^ *+' conftest.er1 >conftest.err |
30490 | rm -f conftest.er1 | |
30491 | cat conftest.err >&5 | |
a848cd7e SC |
30492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30493 | (exit $ac_status); } && | |
89be85c2 VS |
30494 | { ac_try='test -z "$ac_cxx_werror_flag" |
30495 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30497 | (eval $ac_try) 2>&5 | |
30498 | ac_status=$? | |
30499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30500 | (exit $ac_status); }; } && | |
30501 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30503 | (eval $ac_try) 2>&5 | |
30504 | ac_status=$? | |
30505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30506 | (exit $ac_status); }; }; then | |
30507 | am_cv_lib_iconv=yes | |
30508 | am_cv_func_iconv=yes | |
30509 | else | |
30510 | echo "$as_me: failed program was:" >&5 | |
30511 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30512 | ||
30513 | fi | |
ac1cb8d3 VS |
30514 | rm -f conftest.err conftest.$ac_objext \ |
30515 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30516 | LIBS="$am_save_LIBS" |
30517 | fi | |
30518 | ||
30519 | fi | |
30520 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
30521 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
30522 | if test "$am_cv_func_iconv" = yes; then | |
30523 | ||
30524 | cat >>confdefs.h <<\_ACEOF | |
30525 | #define HAVE_ICONV 1 | |
30526 | _ACEOF | |
30527 | ||
30528 | echo "$as_me:$LINENO: checking if iconv needs const" >&5 | |
30529 | echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6 | |
30530 | if test "${wx_cv_func_iconv_const+set}" = set; then | |
30531 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30532 | else | |
30533 | cat >conftest.$ac_ext <<_ACEOF | |
30534 | /* confdefs.h. */ | |
30535 | _ACEOF | |
30536 | cat confdefs.h >>conftest.$ac_ext | |
30537 | cat >>conftest.$ac_ext <<_ACEOF | |
30538 | /* end confdefs.h. */ | |
30539 | ||
30540 | #include <stdlib.h> | |
30541 | #include <iconv.h> | |
30542 | extern | |
30543 | #ifdef __cplusplus | |
30544 | "C" | |
30545 | #endif | |
30546 | #if defined(__STDC__) || defined(__cplusplus) | |
30547 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
30548 | #else | |
30549 | size_t iconv(); | |
30550 | #endif | |
30551 | ||
30552 | int | |
30553 | main () | |
30554 | { | |
30555 | ||
30556 | ; | |
30557 | return 0; | |
30558 | } | |
30559 | _ACEOF | |
30560 | rm -f conftest.$ac_objext | |
30561 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30562 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30563 | ac_status=$? |
ac1cb8d3 VS |
30564 | grep -v '^ *+' conftest.er1 >conftest.err |
30565 | rm -f conftest.er1 | |
30566 | cat conftest.err >&5 | |
a848cd7e SC |
30567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30568 | (exit $ac_status); } && | |
89be85c2 VS |
30569 | { ac_try='test -z "$ac_cxx_werror_flag" |
30570 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30572 | (eval $ac_try) 2>&5 | |
30573 | ac_status=$? | |
30574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30575 | (exit $ac_status); }; } && | |
30576 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30578 | (eval $ac_try) 2>&5 | |
30579 | ac_status=$? | |
30580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30581 | (exit $ac_status); }; }; then | |
30582 | wx_cv_func_iconv_const="no" | |
30583 | else | |
30584 | echo "$as_me: failed program was:" >&5 | |
30585 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30586 | ||
30587 | wx_cv_func_iconv_const="yes" | |
30588 | ||
30589 | fi | |
ac1cb8d3 | 30590 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30591 | |
30592 | fi | |
30593 | echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5 | |
30594 | echo "${ECHO_T}$wx_cv_func_iconv_const" >&6 | |
30595 | ||
30596 | iconv_const= | |
30597 | if test "x$wx_cv_func_iconv_const" = "xyes"; then | |
30598 | iconv_const="const" | |
30599 | fi | |
30600 | ||
30601 | ||
30602 | cat >>confdefs.h <<_ACEOF | |
30603 | #define ICONV_CONST $iconv_const | |
30604 | _ACEOF | |
30605 | ||
30606 | fi | |
30607 | LIBICONV= | |
30608 | if test "$am_cv_lib_iconv" = yes; then | |
30609 | LIBICONV="-liconv" | |
30610 | fi | |
30611 | ||
30612 | ||
30613 | LIBS="$LIBICONV $LIBS" | |
30614 | ac_ext=c | |
30615 | ac_cpp='$CPP $CPPFLAGS' | |
30616 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30617 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30618 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
30619 | ||
30620 | ||
30621 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then | |
30622 | ||
30623 | for ac_func in sigaction | |
30624 | do | |
30625 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30626 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30627 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30628 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30629 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30630 | else | |
30631 | cat >conftest.$ac_ext <<_ACEOF | |
30632 | /* confdefs.h. */ | |
30633 | _ACEOF | |
30634 | cat confdefs.h >>conftest.$ac_ext | |
30635 | cat >>conftest.$ac_ext <<_ACEOF | |
30636 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30637 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30638 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30639 | #define $ac_func innocuous_$ac_func | |
30640 | ||
a848cd7e SC |
30641 | /* System header to define __stub macros and hopefully few prototypes, |
30642 | which can conflict with char $ac_func (); below. | |
30643 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30644 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30645 | |
a848cd7e SC |
30646 | #ifdef __STDC__ |
30647 | # include <limits.h> | |
30648 | #else | |
30649 | # include <assert.h> | |
30650 | #endif | |
ac1cb8d3 VS |
30651 | |
30652 | #undef $ac_func | |
30653 | ||
a848cd7e SC |
30654 | /* Override any gcc2 internal prototype to avoid an error. */ |
30655 | #ifdef __cplusplus | |
30656 | extern "C" | |
30657 | { | |
30658 | #endif | |
30659 | /* We use char because int might match the return type of a gcc2 | |
30660 | builtin and then its argument prototype would still apply. */ | |
30661 | char $ac_func (); | |
30662 | /* The GNU C library defines this for functions which it implements | |
30663 | to always fail with ENOSYS. Some functions are actually named | |
30664 | something starting with __ and the normal name is an alias. */ | |
30665 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30666 | choke me | |
30667 | #else | |
30668 | char (*f) () = $ac_func; | |
30669 | #endif | |
30670 | #ifdef __cplusplus | |
30671 | } | |
30672 | #endif | |
30673 | ||
30674 | int | |
30675 | main () | |
30676 | { | |
30677 | return f != $ac_func; | |
30678 | ; | |
30679 | return 0; | |
30680 | } | |
30681 | _ACEOF | |
30682 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30683 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30684 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30685 | ac_status=$? |
ac1cb8d3 VS |
30686 | grep -v '^ *+' conftest.er1 >conftest.err |
30687 | rm -f conftest.er1 | |
30688 | cat conftest.err >&5 | |
a848cd7e SC |
30689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30690 | (exit $ac_status); } && | |
89be85c2 VS |
30691 | { ac_try='test -z "$ac_c_werror_flag" |
30692 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30694 | (eval $ac_try) 2>&5 | |
30695 | ac_status=$? | |
30696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30697 | (exit $ac_status); }; } && | |
30698 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30700 | (eval $ac_try) 2>&5 | |
30701 | ac_status=$? | |
30702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30703 | (exit $ac_status); }; }; then | |
30704 | eval "$as_ac_var=yes" | |
30705 | else | |
30706 | echo "$as_me: failed program was:" >&5 | |
30707 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30708 | ||
30709 | eval "$as_ac_var=no" | |
30710 | fi | |
ac1cb8d3 VS |
30711 | rm -f conftest.err conftest.$ac_objext \ |
30712 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30713 | fi |
30714 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30715 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30716 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30717 | cat >>confdefs.h <<_ACEOF | |
30718 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30719 | _ACEOF | |
30720 | ||
30721 | fi | |
30722 | done | |
30723 | ||
30724 | ||
30725 | if test "$ac_cv_func_sigaction" = "no"; then | |
30726 | { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5 | |
30727 | echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;} | |
30728 | wxUSE_ON_FATAL_EXCEPTION=no | |
30729 | fi | |
30730 | ||
30731 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
30732 | ||
30733 | ||
30734 | ac_ext=cc | |
30735 | ac_cpp='$CXXCPP $CPPFLAGS' | |
30736 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30737 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30738 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
30739 | ||
30740 | ||
30741 | echo "$as_me:$LINENO: checking for sa_handler type" >&5 | |
30742 | echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6 | |
30743 | if test "${wx_cv_type_sa_handler+set}" = set; then | |
30744 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30745 | else | |
30746 | ||
30747 | cat >conftest.$ac_ext <<_ACEOF | |
30748 | /* confdefs.h. */ | |
30749 | _ACEOF | |
30750 | cat confdefs.h >>conftest.$ac_ext | |
30751 | cat >>conftest.$ac_ext <<_ACEOF | |
30752 | /* end confdefs.h. */ | |
30753 | #include <signal.h> | |
30754 | int | |
30755 | main () | |
30756 | { | |
30757 | ||
30758 | extern void testSigHandler(int); | |
30759 | ||
30760 | struct sigaction sa; | |
30761 | sa.sa_handler = testSigHandler; | |
30762 | ||
30763 | ; | |
30764 | return 0; | |
30765 | } | |
30766 | _ACEOF | |
30767 | rm -f conftest.$ac_objext | |
30768 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30769 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30770 | ac_status=$? |
ac1cb8d3 VS |
30771 | grep -v '^ *+' conftest.er1 >conftest.err |
30772 | rm -f conftest.er1 | |
30773 | cat conftest.err >&5 | |
a848cd7e SC |
30774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30775 | (exit $ac_status); } && | |
89be85c2 VS |
30776 | { ac_try='test -z "$ac_cxx_werror_flag" |
30777 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30779 | (eval $ac_try) 2>&5 | |
30780 | ac_status=$? | |
30781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30782 | (exit $ac_status); }; } && | |
30783 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30785 | (eval $ac_try) 2>&5 | |
30786 | ac_status=$? | |
30787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30788 | (exit $ac_status); }; }; then | |
30789 | ||
30790 | wx_cv_type_sa_handler=int | |
30791 | ||
30792 | else | |
30793 | echo "$as_me: failed program was:" >&5 | |
30794 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30795 | ||
30796 | ||
30797 | wx_cv_type_sa_handler=void | |
30798 | ||
30799 | fi | |
ac1cb8d3 | 30800 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30801 | |
30802 | fi | |
30803 | echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5 | |
30804 | echo "${ECHO_T}$wx_cv_type_sa_handler" >&6 | |
30805 | ||
30806 | ac_ext=c | |
30807 | ac_cpp='$CPP $CPPFLAGS' | |
30808 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30809 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30810 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
30811 | ||
30812 | ||
30813 | cat >>confdefs.h <<_ACEOF | |
30814 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
30815 | _ACEOF | |
30816 | ||
30817 | fi | |
30818 | fi | |
30819 | ||
eaff0f0d VZ |
30820 | if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
30821 | ||
30822 | ||
30823 | ac_ext=cc | |
30824 | ac_cpp='$CXXCPP $CPPFLAGS' | |
30825 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30826 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30827 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
30828 | ||
30829 | ||
30830 | echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5 | |
30831 | echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6 | |
30832 | if test "${wx_cv_func_backtrace+set}" = set; then | |
30833 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30834 | else | |
30835 | ||
30836 | cat >conftest.$ac_ext <<_ACEOF | |
30837 | /* confdefs.h. */ | |
30838 | _ACEOF | |
30839 | cat confdefs.h >>conftest.$ac_ext | |
30840 | cat >>conftest.$ac_ext <<_ACEOF | |
30841 | /* end confdefs.h. */ | |
30842 | #include <execinfo.h> | |
30843 | int | |
30844 | main () | |
30845 | { | |
30846 | ||
30847 | void *trace[1]; | |
30848 | char **messages; | |
30849 | ||
30850 | backtrace(trace, 1); | |
30851 | messages = backtrace_symbols(trace, 1); | |
30852 | ||
30853 | ; | |
30854 | return 0; | |
30855 | } | |
30856 | _ACEOF | |
30857 | rm -f conftest.$ac_objext | |
30858 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30859 | (eval $ac_compile) 2>conftest.er1 | |
30860 | ac_status=$? | |
30861 | grep -v '^ *+' conftest.er1 >conftest.err | |
30862 | rm -f conftest.er1 | |
30863 | cat conftest.err >&5 | |
30864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30865 | (exit $ac_status); } && | |
89be85c2 VS |
30866 | { ac_try='test -z "$ac_cxx_werror_flag" |
30867 | || test ! -s conftest.err' | |
eaff0f0d VZ |
30868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30869 | (eval $ac_try) 2>&5 | |
30870 | ac_status=$? | |
30871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30872 | (exit $ac_status); }; } && | |
30873 | { ac_try='test -s conftest.$ac_objext' | |
30874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30875 | (eval $ac_try) 2>&5 | |
30876 | ac_status=$? | |
30877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30878 | (exit $ac_status); }; }; then | |
30879 | wx_cv_func_backtrace=yes | |
30880 | else | |
30881 | echo "$as_me: failed program was:" >&5 | |
30882 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30883 | ||
30884 | wx_cv_func_backtrace=no | |
30885 | ||
30886 | fi | |
30887 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
30888 | ||
30889 | ||
30890 | fi | |
30891 | echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5 | |
30892 | echo "${ECHO_T}$wx_cv_func_backtrace" >&6 | |
30893 | ||
30894 | ||
30895 | if test "$wx_cv_func_backtrace" = "no"; then | |
30896 | { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5 | |
30897 | echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;} | |
30898 | wxUSE_STACKWALKER=no | |
30899 | else | |
30900 | echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5 | |
30901 | echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6 | |
30902 | if test "${wx_cv_func_cxa_demangle+set}" = set; then | |
30903 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30904 | else | |
30905 | ||
30906 | cat >conftest.$ac_ext <<_ACEOF | |
30907 | /* confdefs.h. */ | |
30908 | _ACEOF | |
30909 | cat confdefs.h >>conftest.$ac_ext | |
30910 | cat >>conftest.$ac_ext <<_ACEOF | |
30911 | /* end confdefs.h. */ | |
30912 | #include <cxxabi.h> | |
30913 | int | |
30914 | main () | |
30915 | { | |
30916 | ||
30917 | int rc; | |
30918 | __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc); | |
30919 | ||
30920 | ; | |
30921 | return 0; | |
30922 | } | |
30923 | _ACEOF | |
30924 | rm -f conftest.$ac_objext | |
30925 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30926 | (eval $ac_compile) 2>conftest.er1 | |
30927 | ac_status=$? | |
30928 | grep -v '^ *+' conftest.er1 >conftest.err | |
30929 | rm -f conftest.er1 | |
30930 | cat conftest.err >&5 | |
30931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30932 | (exit $ac_status); } && | |
89be85c2 VS |
30933 | { ac_try='test -z "$ac_cxx_werror_flag" |
30934 | || test ! -s conftest.err' | |
eaff0f0d VZ |
30935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30936 | (eval $ac_try) 2>&5 | |
30937 | ac_status=$? | |
30938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30939 | (exit $ac_status); }; } && | |
30940 | { ac_try='test -s conftest.$ac_objext' | |
30941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30942 | (eval $ac_try) 2>&5 | |
30943 | ac_status=$? | |
30944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30945 | (exit $ac_status); }; }; then | |
30946 | wx_cv_func_cxa_demangle=yes | |
30947 | else | |
30948 | echo "$as_me: failed program was:" >&5 | |
30949 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30950 | ||
30951 | wx_cv_func_cxa_demangle=no | |
30952 | ||
30953 | fi | |
30954 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
30955 | ||
30956 | ||
30957 | fi | |
30958 | echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5 | |
30959 | echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6 | |
30960 | ||
30961 | if test "$wx_cv_func_cxa_demangle" = "yes"; then | |
30962 | cat >>confdefs.h <<\_ACEOF | |
30963 | #define HAVE_CXA_DEMANGLE 1 | |
30964 | _ACEOF | |
30965 | ||
30966 | fi | |
30967 | fi | |
30968 | ||
30969 | ac_ext=c | |
30970 | ac_cpp='$CPP $CPPFLAGS' | |
30971 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30972 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30973 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
30974 | ||
30975 | fi | |
30976 | ||
a848cd7e SC |
30977 | |
30978 | ||
30979 | for ac_func in mkstemp mktemp | |
30980 | do | |
30981 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30982 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30983 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30984 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30985 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30986 | else | |
30987 | cat >conftest.$ac_ext <<_ACEOF | |
30988 | /* confdefs.h. */ | |
30989 | _ACEOF | |
30990 | cat confdefs.h >>conftest.$ac_ext | |
30991 | cat >>conftest.$ac_ext <<_ACEOF | |
30992 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30993 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30994 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30995 | #define $ac_func innocuous_$ac_func | |
30996 | ||
a848cd7e SC |
30997 | /* System header to define __stub macros and hopefully few prototypes, |
30998 | which can conflict with char $ac_func (); below. | |
30999 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31000 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31001 | |
a848cd7e SC |
31002 | #ifdef __STDC__ |
31003 | # include <limits.h> | |
31004 | #else | |
31005 | # include <assert.h> | |
31006 | #endif | |
ac1cb8d3 VS |
31007 | |
31008 | #undef $ac_func | |
31009 | ||
a848cd7e SC |
31010 | /* Override any gcc2 internal prototype to avoid an error. */ |
31011 | #ifdef __cplusplus | |
31012 | extern "C" | |
31013 | { | |
31014 | #endif | |
31015 | /* We use char because int might match the return type of a gcc2 | |
31016 | builtin and then its argument prototype would still apply. */ | |
31017 | char $ac_func (); | |
31018 | /* The GNU C library defines this for functions which it implements | |
31019 | to always fail with ENOSYS. Some functions are actually named | |
31020 | something starting with __ and the normal name is an alias. */ | |
31021 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31022 | choke me | |
31023 | #else | |
31024 | char (*f) () = $ac_func; | |
31025 | #endif | |
31026 | #ifdef __cplusplus | |
31027 | } | |
31028 | #endif | |
31029 | ||
31030 | int | |
31031 | main () | |
31032 | { | |
31033 | return f != $ac_func; | |
31034 | ; | |
31035 | return 0; | |
31036 | } | |
31037 | _ACEOF | |
31038 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31039 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31040 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31041 | ac_status=$? |
ac1cb8d3 VS |
31042 | grep -v '^ *+' conftest.er1 >conftest.err |
31043 | rm -f conftest.er1 | |
31044 | cat conftest.err >&5 | |
a848cd7e SC |
31045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31046 | (exit $ac_status); } && | |
89be85c2 VS |
31047 | { ac_try='test -z "$ac_c_werror_flag" |
31048 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31050 | (eval $ac_try) 2>&5 | |
31051 | ac_status=$? | |
31052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31053 | (exit $ac_status); }; } && | |
31054 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31056 | (eval $ac_try) 2>&5 | |
31057 | ac_status=$? | |
31058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31059 | (exit $ac_status); }; }; then | |
31060 | eval "$as_ac_var=yes" | |
31061 | else | |
31062 | echo "$as_me: failed program was:" >&5 | |
31063 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31064 | ||
31065 | eval "$as_ac_var=no" | |
31066 | fi | |
ac1cb8d3 VS |
31067 | rm -f conftest.err conftest.$ac_objext \ |
31068 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31069 | fi |
31070 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31071 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31072 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31073 | cat >>confdefs.h <<_ACEOF | |
31074 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31075 | _ACEOF | |
31076 | break | |
31077 | fi | |
31078 | done | |
31079 | ||
31080 | ||
31081 | echo "$as_me:$LINENO: checking for statfs" >&5 | |
31082 | echo $ECHO_N "checking for statfs... $ECHO_C" >&6 | |
31083 | if test "${wx_cv_func_statfs+set}" = set; then | |
31084 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31085 | else | |
31086 | cat >conftest.$ac_ext <<_ACEOF | |
31087 | /* confdefs.h. */ | |
31088 | _ACEOF | |
31089 | cat confdefs.h >>conftest.$ac_ext | |
31090 | cat >>conftest.$ac_ext <<_ACEOF | |
31091 | /* end confdefs.h. */ | |
31092 | ||
31093 | #if defined(__BSD__) | |
31094 | #include <sys/param.h> | |
31095 | #include <sys/mount.h> | |
31096 | #else | |
31097 | #include <sys/vfs.h> | |
31098 | #endif | |
31099 | ||
31100 | int | |
31101 | main () | |
31102 | { | |
31103 | ||
31104 | long l; | |
31105 | struct statfs fs; | |
31106 | statfs("/", &fs); | |
31107 | l = fs.f_bsize; | |
31108 | l += fs.f_blocks; | |
31109 | l += fs.f_bavail; | |
31110 | ||
31111 | ; | |
31112 | return 0; | |
31113 | } | |
31114 | _ACEOF | |
31115 | rm -f conftest.$ac_objext | |
31116 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31117 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31118 | ac_status=$? |
ac1cb8d3 VS |
31119 | grep -v '^ *+' conftest.er1 >conftest.err |
31120 | rm -f conftest.er1 | |
31121 | cat conftest.err >&5 | |
a848cd7e SC |
31122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31123 | (exit $ac_status); } && | |
89be85c2 VS |
31124 | { ac_try='test -z "$ac_c_werror_flag" |
31125 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31127 | (eval $ac_try) 2>&5 | |
31128 | ac_status=$? | |
31129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31130 | (exit $ac_status); }; } && | |
31131 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31133 | (eval $ac_try) 2>&5 | |
31134 | ac_status=$? | |
31135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31136 | (exit $ac_status); }; }; then | |
31137 | ||
31138 | wx_cv_func_statfs=yes | |
31139 | ||
31140 | else | |
31141 | echo "$as_me: failed program was:" >&5 | |
31142 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31143 | ||
31144 | ||
31145 | wx_cv_func_statfs=no | |
31146 | ||
31147 | ||
31148 | fi | |
ac1cb8d3 | 31149 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31150 | |
31151 | fi | |
31152 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5 | |
31153 | echo "${ECHO_T}$wx_cv_func_statfs" >&6 | |
31154 | ||
31155 | if test "$wx_cv_func_statfs" = "yes"; then | |
31156 | wx_cv_type_statvfs_t="struct statfs" | |
31157 | cat >>confdefs.h <<\_ACEOF | |
31158 | #define HAVE_STATFS 1 | |
31159 | _ACEOF | |
31160 | ||
31161 | else | |
31162 | echo "$as_me:$LINENO: checking for statvfs" >&5 | |
31163 | echo $ECHO_N "checking for statvfs... $ECHO_C" >&6 | |
31164 | if test "${wx_cv_func_statvfs+set}" = set; then | |
31165 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31166 | else | |
31167 | cat >conftest.$ac_ext <<_ACEOF | |
31168 | /* confdefs.h. */ | |
31169 | _ACEOF | |
31170 | cat confdefs.h >>conftest.$ac_ext | |
31171 | cat >>conftest.$ac_ext <<_ACEOF | |
31172 | /* end confdefs.h. */ | |
31173 | ||
31174 | #include <stddef.h> | |
31175 | #include <sys/statvfs.h> | |
31176 | ||
31177 | int | |
31178 | main () | |
31179 | { | |
31180 | ||
31181 | statvfs("/", NULL); | |
31182 | ||
31183 | ; | |
31184 | return 0; | |
31185 | } | |
31186 | _ACEOF | |
31187 | rm -f conftest.$ac_objext | |
31188 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31189 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31190 | ac_status=$? |
ac1cb8d3 VS |
31191 | grep -v '^ *+' conftest.er1 >conftest.err |
31192 | rm -f conftest.er1 | |
31193 | cat conftest.err >&5 | |
a848cd7e SC |
31194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31195 | (exit $ac_status); } && | |
89be85c2 VS |
31196 | { ac_try='test -z "$ac_c_werror_flag" |
31197 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31199 | (eval $ac_try) 2>&5 | |
31200 | ac_status=$? | |
31201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31202 | (exit $ac_status); }; } && | |
31203 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31205 | (eval $ac_try) 2>&5 | |
31206 | ac_status=$? | |
31207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31208 | (exit $ac_status); }; }; then | |
31209 | wx_cv_func_statvfs=yes | |
31210 | else | |
31211 | echo "$as_me: failed program was:" >&5 | |
31212 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31213 | ||
31214 | wx_cv_func_statvfs=no | |
31215 | ||
31216 | fi | |
ac1cb8d3 | 31217 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31218 | |
31219 | fi | |
31220 | echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5 | |
31221 | echo "${ECHO_T}$wx_cv_func_statvfs" >&6 | |
31222 | ||
31223 | if test "$wx_cv_func_statvfs" = "yes"; then | |
31224 | ||
31225 | ||
31226 | ac_ext=cc | |
31227 | ac_cpp='$CXXCPP $CPPFLAGS' | |
31228 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31229 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31230 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
31231 | ||
31232 | ||
31233 | echo "$as_me:$LINENO: checking for statvfs argument type" >&5 | |
31234 | echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6 | |
31235 | if test "${wx_cv_type_statvfs_t+set}" = set; then | |
31236 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31237 | else | |
31238 | cat >conftest.$ac_ext <<_ACEOF | |
31239 | /* confdefs.h. */ | |
31240 | _ACEOF | |
31241 | cat confdefs.h >>conftest.$ac_ext | |
31242 | cat >>conftest.$ac_ext <<_ACEOF | |
31243 | /* end confdefs.h. */ | |
31244 | ||
31245 | #include <sys/statvfs.h> | |
31246 | ||
31247 | int | |
31248 | main () | |
31249 | { | |
31250 | ||
31251 | long l; | |
31252 | statvfs_t fs; | |
31253 | statvfs("/", &fs); | |
31254 | l = fs.f_bsize; | |
31255 | l += fs.f_blocks; | |
31256 | l += fs.f_bavail; | |
31257 | ||
31258 | ; | |
31259 | return 0; | |
31260 | } | |
31261 | _ACEOF | |
31262 | rm -f conftest.$ac_objext | |
31263 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31264 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31265 | ac_status=$? |
ac1cb8d3 VS |
31266 | grep -v '^ *+' conftest.er1 >conftest.err |
31267 | rm -f conftest.er1 | |
31268 | cat conftest.err >&5 | |
a848cd7e SC |
31269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31270 | (exit $ac_status); } && | |
89be85c2 VS |
31271 | { ac_try='test -z "$ac_cxx_werror_flag" |
31272 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31274 | (eval $ac_try) 2>&5 | |
31275 | ac_status=$? | |
31276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31277 | (exit $ac_status); }; } && | |
31278 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31280 | (eval $ac_try) 2>&5 | |
31281 | ac_status=$? | |
31282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31283 | (exit $ac_status); }; }; then | |
31284 | wx_cv_type_statvfs_t=statvfs_t | |
31285 | else | |
31286 | echo "$as_me: failed program was:" >&5 | |
31287 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31288 | ||
31289 | ||
31290 | cat >conftest.$ac_ext <<_ACEOF | |
31291 | /* confdefs.h. */ | |
31292 | _ACEOF | |
31293 | cat confdefs.h >>conftest.$ac_ext | |
31294 | cat >>conftest.$ac_ext <<_ACEOF | |
31295 | /* end confdefs.h. */ | |
31296 | ||
31297 | #include <sys/statvfs.h> | |
31298 | ||
31299 | int | |
31300 | main () | |
31301 | { | |
31302 | ||
31303 | long l; | |
31304 | struct statvfs fs; | |
31305 | statvfs("/", &fs); | |
31306 | l = fs.f_bsize; | |
31307 | l += fs.f_blocks; | |
31308 | l += fs.f_bavail; | |
31309 | ||
31310 | ; | |
31311 | return 0; | |
31312 | } | |
31313 | _ACEOF | |
31314 | rm -f conftest.$ac_objext | |
31315 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31316 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31317 | ac_status=$? |
ac1cb8d3 VS |
31318 | grep -v '^ *+' conftest.er1 >conftest.err |
31319 | rm -f conftest.er1 | |
31320 | cat conftest.err >&5 | |
a848cd7e SC |
31321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31322 | (exit $ac_status); } && | |
89be85c2 VS |
31323 | { ac_try='test -z "$ac_cxx_werror_flag" |
31324 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31326 | (eval $ac_try) 2>&5 | |
31327 | ac_status=$? | |
31328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31329 | (exit $ac_status); }; } && | |
31330 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31332 | (eval $ac_try) 2>&5 | |
31333 | ac_status=$? | |
31334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31335 | (exit $ac_status); }; }; then | |
31336 | wx_cv_type_statvfs_t="struct statvfs" | |
31337 | else | |
31338 | echo "$as_me: failed program was:" >&5 | |
31339 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31340 | ||
31341 | wx_cv_type_statvfs_t="unknown" | |
31342 | ||
31343 | fi | |
ac1cb8d3 | 31344 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31345 | |
31346 | ||
31347 | fi | |
ac1cb8d3 | 31348 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31349 | |
31350 | fi | |
31351 | echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5 | |
31352 | echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6 | |
31353 | ||
31354 | ac_ext=c | |
31355 | ac_cpp='$CPP $CPPFLAGS' | |
31356 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31357 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31358 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
31359 | ||
31360 | ||
31361 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
31362 | cat >>confdefs.h <<\_ACEOF | |
31363 | #define HAVE_STATVFS 1 | |
31364 | _ACEOF | |
31365 | ||
31366 | fi | |
31367 | else | |
31368 | wx_cv_type_statvfs_t="unknown" | |
31369 | fi | |
31370 | fi | |
31371 | ||
31372 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
31373 | cat >>confdefs.h <<_ACEOF | |
31374 | #define WX_STATFS_T $wx_cv_type_statvfs_t | |
31375 | _ACEOF | |
31376 | ||
31377 | else | |
31378 | { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5 | |
31379 | echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;} | |
31380 | fi | |
31381 | ||
31382 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
31383 | ||
31384 | ||
31385 | for ac_func in fcntl flock | |
31386 | do | |
31387 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31388 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31389 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31390 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31391 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31392 | else | |
31393 | cat >conftest.$ac_ext <<_ACEOF | |
31394 | /* confdefs.h. */ | |
31395 | _ACEOF | |
31396 | cat confdefs.h >>conftest.$ac_ext | |
31397 | cat >>conftest.$ac_ext <<_ACEOF | |
31398 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31399 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31400 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31401 | #define $ac_func innocuous_$ac_func | |
31402 | ||
a848cd7e SC |
31403 | /* System header to define __stub macros and hopefully few prototypes, |
31404 | which can conflict with char $ac_func (); below. | |
31405 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31406 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31407 | |
a848cd7e SC |
31408 | #ifdef __STDC__ |
31409 | # include <limits.h> | |
31410 | #else | |
31411 | # include <assert.h> | |
31412 | #endif | |
ac1cb8d3 VS |
31413 | |
31414 | #undef $ac_func | |
31415 | ||
a848cd7e SC |
31416 | /* Override any gcc2 internal prototype to avoid an error. */ |
31417 | #ifdef __cplusplus | |
31418 | extern "C" | |
31419 | { | |
31420 | #endif | |
31421 | /* We use char because int might match the return type of a gcc2 | |
31422 | builtin and then its argument prototype would still apply. */ | |
31423 | char $ac_func (); | |
31424 | /* The GNU C library defines this for functions which it implements | |
31425 | to always fail with ENOSYS. Some functions are actually named | |
31426 | something starting with __ and the normal name is an alias. */ | |
31427 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31428 | choke me | |
31429 | #else | |
31430 | char (*f) () = $ac_func; | |
31431 | #endif | |
31432 | #ifdef __cplusplus | |
31433 | } | |
31434 | #endif | |
31435 | ||
31436 | int | |
31437 | main () | |
31438 | { | |
31439 | return f != $ac_func; | |
31440 | ; | |
31441 | return 0; | |
31442 | } | |
31443 | _ACEOF | |
31444 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31445 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31446 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31447 | ac_status=$? |
ac1cb8d3 VS |
31448 | grep -v '^ *+' conftest.er1 >conftest.err |
31449 | rm -f conftest.er1 | |
31450 | cat conftest.err >&5 | |
a848cd7e SC |
31451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31452 | (exit $ac_status); } && | |
89be85c2 VS |
31453 | { ac_try='test -z "$ac_c_werror_flag" |
31454 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31456 | (eval $ac_try) 2>&5 | |
31457 | ac_status=$? | |
31458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31459 | (exit $ac_status); }; } && | |
31460 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31462 | (eval $ac_try) 2>&5 | |
31463 | ac_status=$? | |
31464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31465 | (exit $ac_status); }; }; then | |
31466 | eval "$as_ac_var=yes" | |
31467 | else | |
31468 | echo "$as_me: failed program was:" >&5 | |
31469 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31470 | ||
31471 | eval "$as_ac_var=no" | |
31472 | fi | |
ac1cb8d3 VS |
31473 | rm -f conftest.err conftest.$ac_objext \ |
31474 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31475 | fi |
31476 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31477 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31478 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31479 | cat >>confdefs.h <<_ACEOF | |
31480 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31481 | _ACEOF | |
31482 | break | |
31483 | fi | |
31484 | done | |
31485 | ||
31486 | ||
31487 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then | |
31488 | { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5 | |
31489 | echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;} | |
31490 | wxUSE_SNGLINST_CHECKER=no | |
31491 | fi | |
31492 | fi | |
31493 | ||
31494 | ||
31495 | for ac_func in timegm | |
31496 | do | |
31497 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31498 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31499 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31500 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31501 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31502 | else | |
31503 | cat >conftest.$ac_ext <<_ACEOF | |
31504 | /* confdefs.h. */ | |
31505 | _ACEOF | |
31506 | cat confdefs.h >>conftest.$ac_ext | |
31507 | cat >>conftest.$ac_ext <<_ACEOF | |
31508 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31509 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31510 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31511 | #define $ac_func innocuous_$ac_func | |
31512 | ||
a848cd7e SC |
31513 | /* System header to define __stub macros and hopefully few prototypes, |
31514 | which can conflict with char $ac_func (); below. | |
31515 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31516 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31517 | |
a848cd7e SC |
31518 | #ifdef __STDC__ |
31519 | # include <limits.h> | |
31520 | #else | |
31521 | # include <assert.h> | |
31522 | #endif | |
ac1cb8d3 VS |
31523 | |
31524 | #undef $ac_func | |
31525 | ||
a848cd7e SC |
31526 | /* Override any gcc2 internal prototype to avoid an error. */ |
31527 | #ifdef __cplusplus | |
31528 | extern "C" | |
31529 | { | |
31530 | #endif | |
31531 | /* We use char because int might match the return type of a gcc2 | |
31532 | builtin and then its argument prototype would still apply. */ | |
31533 | char $ac_func (); | |
31534 | /* The GNU C library defines this for functions which it implements | |
31535 | to always fail with ENOSYS. Some functions are actually named | |
31536 | something starting with __ and the normal name is an alias. */ | |
31537 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31538 | choke me | |
31539 | #else | |
31540 | char (*f) () = $ac_func; | |
31541 | #endif | |
31542 | #ifdef __cplusplus | |
31543 | } | |
31544 | #endif | |
31545 | ||
31546 | int | |
31547 | main () | |
31548 | { | |
31549 | return f != $ac_func; | |
31550 | ; | |
31551 | return 0; | |
31552 | } | |
31553 | _ACEOF | |
31554 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31555 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31556 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31557 | ac_status=$? |
ac1cb8d3 VS |
31558 | grep -v '^ *+' conftest.er1 >conftest.err |
31559 | rm -f conftest.er1 | |
31560 | cat conftest.err >&5 | |
a848cd7e SC |
31561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31562 | (exit $ac_status); } && | |
89be85c2 VS |
31563 | { ac_try='test -z "$ac_c_werror_flag" |
31564 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31566 | (eval $ac_try) 2>&5 | |
31567 | ac_status=$? | |
31568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31569 | (exit $ac_status); }; } && | |
31570 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31572 | (eval $ac_try) 2>&5 | |
31573 | ac_status=$? | |
31574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31575 | (exit $ac_status); }; }; then | |
31576 | eval "$as_ac_var=yes" | |
31577 | else | |
31578 | echo "$as_me: failed program was:" >&5 | |
31579 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31580 | ||
31581 | eval "$as_ac_var=no" | |
31582 | fi | |
ac1cb8d3 VS |
31583 | rm -f conftest.err conftest.$ac_objext \ |
31584 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31585 | fi |
31586 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31587 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31588 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31589 | cat >>confdefs.h <<_ACEOF | |
31590 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31591 | _ACEOF | |
31592 | ||
31593 | fi | |
31594 | done | |
31595 | ||
31596 | ||
31597 | ||
31598 | ||
31599 | for ac_func in putenv setenv | |
31600 | do | |
31601 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31602 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31603 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31604 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31605 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31606 | else | |
31607 | cat >conftest.$ac_ext <<_ACEOF | |
31608 | /* confdefs.h. */ | |
31609 | _ACEOF | |
31610 | cat confdefs.h >>conftest.$ac_ext | |
31611 | cat >>conftest.$ac_ext <<_ACEOF | |
31612 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31613 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31614 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31615 | #define $ac_func innocuous_$ac_func | |
31616 | ||
a848cd7e SC |
31617 | /* System header to define __stub macros and hopefully few prototypes, |
31618 | which can conflict with char $ac_func (); below. | |
31619 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31620 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31621 | |
a848cd7e SC |
31622 | #ifdef __STDC__ |
31623 | # include <limits.h> | |
31624 | #else | |
31625 | # include <assert.h> | |
31626 | #endif | |
ac1cb8d3 VS |
31627 | |
31628 | #undef $ac_func | |
31629 | ||
a848cd7e SC |
31630 | /* Override any gcc2 internal prototype to avoid an error. */ |
31631 | #ifdef __cplusplus | |
31632 | extern "C" | |
31633 | { | |
31634 | #endif | |
31635 | /* We use char because int might match the return type of a gcc2 | |
31636 | builtin and then its argument prototype would still apply. */ | |
31637 | char $ac_func (); | |
31638 | /* The GNU C library defines this for functions which it implements | |
31639 | to always fail with ENOSYS. Some functions are actually named | |
31640 | something starting with __ and the normal name is an alias. */ | |
31641 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31642 | choke me | |
31643 | #else | |
31644 | char (*f) () = $ac_func; | |
31645 | #endif | |
31646 | #ifdef __cplusplus | |
31647 | } | |
31648 | #endif | |
31649 | ||
31650 | int | |
31651 | main () | |
31652 | { | |
31653 | return f != $ac_func; | |
31654 | ; | |
31655 | return 0; | |
31656 | } | |
31657 | _ACEOF | |
31658 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31659 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31660 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31661 | ac_status=$? |
ac1cb8d3 VS |
31662 | grep -v '^ *+' conftest.er1 >conftest.err |
31663 | rm -f conftest.er1 | |
31664 | cat conftest.err >&5 | |
a848cd7e SC |
31665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31666 | (exit $ac_status); } && | |
89be85c2 VS |
31667 | { ac_try='test -z "$ac_c_werror_flag" |
31668 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31670 | (eval $ac_try) 2>&5 | |
31671 | ac_status=$? | |
31672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31673 | (exit $ac_status); }; } && | |
31674 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31676 | (eval $ac_try) 2>&5 | |
31677 | ac_status=$? | |
31678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31679 | (exit $ac_status); }; }; then | |
31680 | eval "$as_ac_var=yes" | |
31681 | else | |
31682 | echo "$as_me: failed program was:" >&5 | |
31683 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31684 | ||
31685 | eval "$as_ac_var=no" | |
31686 | fi | |
ac1cb8d3 VS |
31687 | rm -f conftest.err conftest.$ac_objext \ |
31688 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31689 | fi |
31690 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31691 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31692 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31693 | cat >>confdefs.h <<_ACEOF | |
31694 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31695 | _ACEOF | |
31696 | break | |
31697 | fi | |
31698 | done | |
31699 | ||
31700 | ||
31701 | HAVE_SOME_SLEEP_FUNC=0 | |
31702 | if test "$USE_BEOS" = 1; then | |
31703 | cat >>confdefs.h <<\_ACEOF | |
31704 | #define HAVE_SLEEP 1 | |
31705 | _ACEOF | |
31706 | ||
31707 | HAVE_SOME_SLEEP_FUNC=1 | |
31708 | fi | |
31709 | ||
31710 | if test "$USE_DARWIN" = 1; then | |
31711 | cat >>confdefs.h <<\_ACEOF | |
31712 | #define HAVE_USLEEP 1 | |
31713 | _ACEOF | |
31714 | ||
31715 | HAVE_SOME_SLEEP_FUNC=1 | |
31716 | fi | |
31717 | ||
31718 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then | |
31719 | POSIX4_LINK= | |
31720 | ||
31721 | for ac_func in nanosleep | |
31722 | do | |
31723 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31724 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31725 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31726 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31727 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31728 | else | |
31729 | cat >conftest.$ac_ext <<_ACEOF | |
31730 | /* confdefs.h. */ | |
31731 | _ACEOF | |
31732 | cat confdefs.h >>conftest.$ac_ext | |
31733 | cat >>conftest.$ac_ext <<_ACEOF | |
31734 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31735 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31736 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31737 | #define $ac_func innocuous_$ac_func | |
31738 | ||
a848cd7e SC |
31739 | /* System header to define __stub macros and hopefully few prototypes, |
31740 | which can conflict with char $ac_func (); below. | |
31741 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31742 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31743 | |
a848cd7e SC |
31744 | #ifdef __STDC__ |
31745 | # include <limits.h> | |
31746 | #else | |
31747 | # include <assert.h> | |
31748 | #endif | |
ac1cb8d3 VS |
31749 | |
31750 | #undef $ac_func | |
31751 | ||
a848cd7e SC |
31752 | /* Override any gcc2 internal prototype to avoid an error. */ |
31753 | #ifdef __cplusplus | |
31754 | extern "C" | |
31755 | { | |
31756 | #endif | |
31757 | /* We use char because int might match the return type of a gcc2 | |
31758 | builtin and then its argument prototype would still apply. */ | |
31759 | char $ac_func (); | |
31760 | /* The GNU C library defines this for functions which it implements | |
31761 | to always fail with ENOSYS. Some functions are actually named | |
31762 | something starting with __ and the normal name is an alias. */ | |
31763 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31764 | choke me | |
31765 | #else | |
31766 | char (*f) () = $ac_func; | |
31767 | #endif | |
31768 | #ifdef __cplusplus | |
31769 | } | |
31770 | #endif | |
31771 | ||
31772 | int | |
31773 | main () | |
31774 | { | |
31775 | return f != $ac_func; | |
31776 | ; | |
31777 | return 0; | |
31778 | } | |
31779 | _ACEOF | |
31780 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31781 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31782 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31783 | ac_status=$? |
ac1cb8d3 VS |
31784 | grep -v '^ *+' conftest.er1 >conftest.err |
31785 | rm -f conftest.er1 | |
31786 | cat conftest.err >&5 | |
a848cd7e SC |
31787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31788 | (exit $ac_status); } && | |
89be85c2 VS |
31789 | { ac_try='test -z "$ac_c_werror_flag" |
31790 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31792 | (eval $ac_try) 2>&5 | |
31793 | ac_status=$? | |
31794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31795 | (exit $ac_status); }; } && | |
31796 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31798 | (eval $ac_try) 2>&5 | |
31799 | ac_status=$? | |
31800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31801 | (exit $ac_status); }; }; then | |
31802 | eval "$as_ac_var=yes" | |
31803 | else | |
31804 | echo "$as_me: failed program was:" >&5 | |
31805 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31806 | ||
31807 | eval "$as_ac_var=no" | |
31808 | fi | |
ac1cb8d3 VS |
31809 | rm -f conftest.err conftest.$ac_objext \ |
31810 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31811 | fi |
31812 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31813 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31814 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31815 | cat >>confdefs.h <<_ACEOF | |
31816 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31817 | _ACEOF | |
31818 | cat >>confdefs.h <<\_ACEOF | |
31819 | #define HAVE_NANOSLEEP 1 | |
31820 | _ACEOF | |
31821 | ||
31822 | else | |
31823 | ||
31824 | echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5 | |
31825 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6 | |
31826 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then | |
31827 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31828 | else | |
31829 | ac_check_lib_save_LIBS=$LIBS | |
31830 | LIBS="-lposix4 $LIBS" | |
31831 | cat >conftest.$ac_ext <<_ACEOF | |
31832 | /* confdefs.h. */ | |
31833 | _ACEOF | |
31834 | cat confdefs.h >>conftest.$ac_ext | |
31835 | cat >>conftest.$ac_ext <<_ACEOF | |
31836 | /* end confdefs.h. */ | |
31837 | ||
31838 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31839 | #ifdef __cplusplus | |
31840 | extern "C" | |
31841 | #endif | |
31842 | /* We use char because int might match the return type of a gcc2 | |
31843 | builtin and then its argument prototype would still apply. */ | |
31844 | char nanosleep (); | |
31845 | int | |
31846 | main () | |
31847 | { | |
31848 | nanosleep (); | |
31849 | ; | |
31850 | return 0; | |
31851 | } | |
31852 | _ACEOF | |
31853 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31854 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31855 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31856 | ac_status=$? |
ac1cb8d3 VS |
31857 | grep -v '^ *+' conftest.er1 >conftest.err |
31858 | rm -f conftest.er1 | |
31859 | cat conftest.err >&5 | |
a848cd7e SC |
31860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31861 | (exit $ac_status); } && | |
89be85c2 VS |
31862 | { ac_try='test -z "$ac_c_werror_flag" |
31863 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31865 | (eval $ac_try) 2>&5 | |
31866 | ac_status=$? | |
31867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31868 | (exit $ac_status); }; } && | |
31869 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31871 | (eval $ac_try) 2>&5 | |
31872 | ac_status=$? | |
31873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31874 | (exit $ac_status); }; }; then | |
31875 | ac_cv_lib_posix4_nanosleep=yes | |
31876 | else | |
31877 | echo "$as_me: failed program was:" >&5 | |
31878 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31879 | ||
31880 | ac_cv_lib_posix4_nanosleep=no | |
31881 | fi | |
ac1cb8d3 VS |
31882 | rm -f conftest.err conftest.$ac_objext \ |
31883 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31884 | LIBS=$ac_check_lib_save_LIBS |
31885 | fi | |
31886 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5 | |
31887 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6 | |
31888 | if test $ac_cv_lib_posix4_nanosleep = yes; then | |
31889 | ||
31890 | cat >>confdefs.h <<\_ACEOF | |
31891 | #define HAVE_NANOSLEEP 1 | |
31892 | _ACEOF | |
31893 | ||
31894 | POSIX4_LINK=" -lposix4" | |
31895 | ||
31896 | else | |
31897 | ||
31898 | ||
31899 | for ac_func in usleep | |
31900 | do | |
31901 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31902 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31903 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31904 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31905 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31906 | else | |
31907 | cat >conftest.$ac_ext <<_ACEOF | |
31908 | /* confdefs.h. */ | |
31909 | _ACEOF | |
31910 | cat confdefs.h >>conftest.$ac_ext | |
31911 | cat >>conftest.$ac_ext <<_ACEOF | |
31912 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31913 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31914 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31915 | #define $ac_func innocuous_$ac_func | |
31916 | ||
a848cd7e SC |
31917 | /* System header to define __stub macros and hopefully few prototypes, |
31918 | which can conflict with char $ac_func (); below. | |
31919 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31920 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31921 | |
a848cd7e SC |
31922 | #ifdef __STDC__ |
31923 | # include <limits.h> | |
31924 | #else | |
31925 | # include <assert.h> | |
31926 | #endif | |
ac1cb8d3 VS |
31927 | |
31928 | #undef $ac_func | |
31929 | ||
a848cd7e SC |
31930 | /* Override any gcc2 internal prototype to avoid an error. */ |
31931 | #ifdef __cplusplus | |
31932 | extern "C" | |
31933 | { | |
31934 | #endif | |
31935 | /* We use char because int might match the return type of a gcc2 | |
31936 | builtin and then its argument prototype would still apply. */ | |
31937 | char $ac_func (); | |
31938 | /* The GNU C library defines this for functions which it implements | |
31939 | to always fail with ENOSYS. Some functions are actually named | |
31940 | something starting with __ and the normal name is an alias. */ | |
31941 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31942 | choke me | |
31943 | #else | |
31944 | char (*f) () = $ac_func; | |
31945 | #endif | |
31946 | #ifdef __cplusplus | |
31947 | } | |
31948 | #endif | |
31949 | ||
31950 | int | |
31951 | main () | |
31952 | { | |
31953 | return f != $ac_func; | |
31954 | ; | |
31955 | return 0; | |
31956 | } | |
31957 | _ACEOF | |
31958 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31959 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31960 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31961 | ac_status=$? |
ac1cb8d3 VS |
31962 | grep -v '^ *+' conftest.er1 >conftest.err |
31963 | rm -f conftest.er1 | |
31964 | cat conftest.err >&5 | |
a848cd7e SC |
31965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31966 | (exit $ac_status); } && | |
89be85c2 VS |
31967 | { ac_try='test -z "$ac_c_werror_flag" |
31968 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31970 | (eval $ac_try) 2>&5 | |
31971 | ac_status=$? | |
31972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31973 | (exit $ac_status); }; } && | |
31974 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31976 | (eval $ac_try) 2>&5 | |
31977 | ac_status=$? | |
31978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31979 | (exit $ac_status); }; }; then | |
31980 | eval "$as_ac_var=yes" | |
31981 | else | |
31982 | echo "$as_me: failed program was:" >&5 | |
31983 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31984 | ||
31985 | eval "$as_ac_var=no" | |
31986 | fi | |
ac1cb8d3 VS |
31987 | rm -f conftest.err conftest.$ac_objext \ |
31988 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31989 | fi |
31990 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31991 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31992 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31993 | cat >>confdefs.h <<_ACEOF | |
31994 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31995 | _ACEOF | |
31996 | cat >>confdefs.h <<\_ACEOF | |
31997 | #define HAVE_USLEEP 1 | |
31998 | _ACEOF | |
31999 | ||
32000 | else | |
32001 | { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5 | |
32002 | echo "$as_me: WARNING: wxSleep() function will not work" >&2;} | |
32003 | ||
32004 | fi | |
32005 | done | |
32006 | ||
32007 | ||
32008 | ||
32009 | fi | |
32010 | ||
32011 | ||
32012 | ||
32013 | fi | |
32014 | done | |
32015 | ||
32016 | fi | |
32017 | ||
32018 | ||
32019 | ||
32020 | for ac_func in uname gethostname | |
32021 | do | |
32022 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32023 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32024 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32025 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32026 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32027 | else | |
32028 | cat >conftest.$ac_ext <<_ACEOF | |
32029 | /* confdefs.h. */ | |
32030 | _ACEOF | |
32031 | cat confdefs.h >>conftest.$ac_ext | |
32032 | cat >>conftest.$ac_ext <<_ACEOF | |
32033 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32034 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32035 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32036 | #define $ac_func innocuous_$ac_func | |
32037 | ||
a848cd7e SC |
32038 | /* System header to define __stub macros and hopefully few prototypes, |
32039 | which can conflict with char $ac_func (); below. | |
32040 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32041 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32042 | |
a848cd7e SC |
32043 | #ifdef __STDC__ |
32044 | # include <limits.h> | |
32045 | #else | |
32046 | # include <assert.h> | |
32047 | #endif | |
ac1cb8d3 VS |
32048 | |
32049 | #undef $ac_func | |
32050 | ||
a848cd7e SC |
32051 | /* Override any gcc2 internal prototype to avoid an error. */ |
32052 | #ifdef __cplusplus | |
32053 | extern "C" | |
32054 | { | |
32055 | #endif | |
32056 | /* We use char because int might match the return type of a gcc2 | |
32057 | builtin and then its argument prototype would still apply. */ | |
32058 | char $ac_func (); | |
32059 | /* The GNU C library defines this for functions which it implements | |
32060 | to always fail with ENOSYS. Some functions are actually named | |
32061 | something starting with __ and the normal name is an alias. */ | |
32062 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32063 | choke me | |
32064 | #else | |
32065 | char (*f) () = $ac_func; | |
32066 | #endif | |
32067 | #ifdef __cplusplus | |
32068 | } | |
32069 | #endif | |
32070 | ||
32071 | int | |
32072 | main () | |
32073 | { | |
32074 | return f != $ac_func; | |
32075 | ; | |
32076 | return 0; | |
32077 | } | |
32078 | _ACEOF | |
32079 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32080 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32081 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32082 | ac_status=$? |
ac1cb8d3 VS |
32083 | grep -v '^ *+' conftest.er1 >conftest.err |
32084 | rm -f conftest.er1 | |
32085 | cat conftest.err >&5 | |
a848cd7e SC |
32086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32087 | (exit $ac_status); } && | |
89be85c2 VS |
32088 | { ac_try='test -z "$ac_c_werror_flag" |
32089 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32091 | (eval $ac_try) 2>&5 | |
32092 | ac_status=$? | |
32093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32094 | (exit $ac_status); }; } && | |
32095 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32096 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32097 | (eval $ac_try) 2>&5 | |
32098 | ac_status=$? | |
32099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32100 | (exit $ac_status); }; }; then | |
32101 | eval "$as_ac_var=yes" | |
32102 | else | |
32103 | echo "$as_me: failed program was:" >&5 | |
32104 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32105 | ||
32106 | eval "$as_ac_var=no" | |
32107 | fi | |
ac1cb8d3 VS |
32108 | rm -f conftest.err conftest.$ac_objext \ |
32109 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32110 | fi |
32111 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32112 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32113 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32114 | cat >>confdefs.h <<_ACEOF | |
32115 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32116 | _ACEOF | |
32117 | break | |
32118 | fi | |
32119 | done | |
32120 | ||
32121 | ||
32122 | ||
32123 | ||
32124 | ac_ext=cc | |
32125 | ac_cpp='$CXXCPP $CPPFLAGS' | |
32126 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32127 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32128 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
32129 | ||
32130 | ||
32131 | ||
32132 | for ac_func in strtok_r | |
32133 | do | |
32134 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32135 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32136 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32137 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32138 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32139 | else | |
32140 | cat >conftest.$ac_ext <<_ACEOF | |
32141 | /* confdefs.h. */ | |
32142 | _ACEOF | |
32143 | cat confdefs.h >>conftest.$ac_ext | |
32144 | cat >>conftest.$ac_ext <<_ACEOF | |
32145 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32146 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32147 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32148 | #define $ac_func innocuous_$ac_func | |
32149 | ||
a848cd7e SC |
32150 | /* System header to define __stub macros and hopefully few prototypes, |
32151 | which can conflict with char $ac_func (); below. | |
32152 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32153 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32154 | |
a848cd7e SC |
32155 | #ifdef __STDC__ |
32156 | # include <limits.h> | |
32157 | #else | |
32158 | # include <assert.h> | |
32159 | #endif | |
ac1cb8d3 VS |
32160 | |
32161 | #undef $ac_func | |
32162 | ||
a848cd7e SC |
32163 | /* Override any gcc2 internal prototype to avoid an error. */ |
32164 | #ifdef __cplusplus | |
32165 | extern "C" | |
32166 | { | |
32167 | #endif | |
32168 | /* We use char because int might match the return type of a gcc2 | |
32169 | builtin and then its argument prototype would still apply. */ | |
32170 | char $ac_func (); | |
32171 | /* The GNU C library defines this for functions which it implements | |
32172 | to always fail with ENOSYS. Some functions are actually named | |
32173 | something starting with __ and the normal name is an alias. */ | |
32174 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32175 | choke me | |
32176 | #else | |
32177 | char (*f) () = $ac_func; | |
32178 | #endif | |
32179 | #ifdef __cplusplus | |
32180 | } | |
32181 | #endif | |
32182 | ||
32183 | int | |
32184 | main () | |
32185 | { | |
32186 | return f != $ac_func; | |
32187 | ; | |
32188 | return 0; | |
32189 | } | |
32190 | _ACEOF | |
32191 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32192 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32193 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32194 | ac_status=$? |
ac1cb8d3 VS |
32195 | grep -v '^ *+' conftest.er1 >conftest.err |
32196 | rm -f conftest.er1 | |
32197 | cat conftest.err >&5 | |
a848cd7e SC |
32198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32199 | (exit $ac_status); } && | |
89be85c2 VS |
32200 | { ac_try='test -z "$ac_cxx_werror_flag" |
32201 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32203 | (eval $ac_try) 2>&5 | |
32204 | ac_status=$? | |
32205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32206 | (exit $ac_status); }; } && | |
32207 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32209 | (eval $ac_try) 2>&5 | |
32210 | ac_status=$? | |
32211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32212 | (exit $ac_status); }; }; then | |
32213 | eval "$as_ac_var=yes" | |
32214 | else | |
32215 | echo "$as_me: failed program was:" >&5 | |
32216 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32217 | ||
32218 | eval "$as_ac_var=no" | |
32219 | fi | |
ac1cb8d3 VS |
32220 | rm -f conftest.err conftest.$ac_objext \ |
32221 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32222 | fi |
32223 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32224 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32225 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32226 | cat >>confdefs.h <<_ACEOF | |
32227 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32228 | _ACEOF | |
32229 | ||
32230 | fi | |
32231 | done | |
32232 | ||
32233 | ||
32234 | ac_ext=c | |
32235 | ac_cpp='$CPP $CPPFLAGS' | |
32236 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32237 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32238 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
32239 | ||
32240 | ||
32241 | INET_LINK= | |
32242 | ||
32243 | for ac_func in inet_addr | |
32244 | do | |
32245 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32246 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32247 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32248 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32249 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32250 | else | |
32251 | cat >conftest.$ac_ext <<_ACEOF | |
32252 | /* confdefs.h. */ | |
32253 | _ACEOF | |
32254 | cat confdefs.h >>conftest.$ac_ext | |
32255 | cat >>conftest.$ac_ext <<_ACEOF | |
32256 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32257 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32258 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32259 | #define $ac_func innocuous_$ac_func | |
32260 | ||
a848cd7e SC |
32261 | /* System header to define __stub macros and hopefully few prototypes, |
32262 | which can conflict with char $ac_func (); below. | |
32263 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32264 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32265 | |
a848cd7e SC |
32266 | #ifdef __STDC__ |
32267 | # include <limits.h> | |
32268 | #else | |
32269 | # include <assert.h> | |
32270 | #endif | |
ac1cb8d3 VS |
32271 | |
32272 | #undef $ac_func | |
32273 | ||
a848cd7e SC |
32274 | /* Override any gcc2 internal prototype to avoid an error. */ |
32275 | #ifdef __cplusplus | |
32276 | extern "C" | |
32277 | { | |
32278 | #endif | |
32279 | /* We use char because int might match the return type of a gcc2 | |
32280 | builtin and then its argument prototype would still apply. */ | |
32281 | char $ac_func (); | |
32282 | /* The GNU C library defines this for functions which it implements | |
32283 | to always fail with ENOSYS. Some functions are actually named | |
32284 | something starting with __ and the normal name is an alias. */ | |
32285 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32286 | choke me | |
32287 | #else | |
32288 | char (*f) () = $ac_func; | |
32289 | #endif | |
32290 | #ifdef __cplusplus | |
32291 | } | |
32292 | #endif | |
32293 | ||
32294 | int | |
32295 | main () | |
32296 | { | |
32297 | return f != $ac_func; | |
32298 | ; | |
32299 | return 0; | |
32300 | } | |
32301 | _ACEOF | |
32302 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32303 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32304 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32305 | ac_status=$? |
ac1cb8d3 VS |
32306 | grep -v '^ *+' conftest.er1 >conftest.err |
32307 | rm -f conftest.er1 | |
32308 | cat conftest.err >&5 | |
a848cd7e SC |
32309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32310 | (exit $ac_status); } && | |
89be85c2 VS |
32311 | { ac_try='test -z "$ac_c_werror_flag" |
32312 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32314 | (eval $ac_try) 2>&5 | |
32315 | ac_status=$? | |
32316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32317 | (exit $ac_status); }; } && | |
32318 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32320 | (eval $ac_try) 2>&5 | |
32321 | ac_status=$? | |
32322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32323 | (exit $ac_status); }; }; then | |
32324 | eval "$as_ac_var=yes" | |
32325 | else | |
32326 | echo "$as_me: failed program was:" >&5 | |
32327 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32328 | ||
32329 | eval "$as_ac_var=no" | |
32330 | fi | |
ac1cb8d3 VS |
32331 | rm -f conftest.err conftest.$ac_objext \ |
32332 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32333 | fi |
32334 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32335 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32336 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32337 | cat >>confdefs.h <<_ACEOF | |
32338 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32339 | _ACEOF | |
32340 | cat >>confdefs.h <<\_ACEOF | |
32341 | #define HAVE_INET_ADDR 1 | |
32342 | _ACEOF | |
32343 | ||
32344 | else | |
32345 | ||
32346 | echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5 | |
32347 | echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6 | |
32348 | if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then | |
32349 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32350 | else | |
32351 | ac_check_lib_save_LIBS=$LIBS | |
32352 | LIBS="-lnsl $LIBS" | |
32353 | cat >conftest.$ac_ext <<_ACEOF | |
32354 | /* confdefs.h. */ | |
32355 | _ACEOF | |
32356 | cat confdefs.h >>conftest.$ac_ext | |
32357 | cat >>conftest.$ac_ext <<_ACEOF | |
32358 | /* end confdefs.h. */ | |
32359 | ||
32360 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32361 | #ifdef __cplusplus | |
32362 | extern "C" | |
32363 | #endif | |
32364 | /* We use char because int might match the return type of a gcc2 | |
32365 | builtin and then its argument prototype would still apply. */ | |
32366 | char inet_addr (); | |
32367 | int | |
32368 | main () | |
32369 | { | |
32370 | inet_addr (); | |
32371 | ; | |
32372 | return 0; | |
32373 | } | |
32374 | _ACEOF | |
32375 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32376 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32377 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32378 | ac_status=$? |
ac1cb8d3 VS |
32379 | grep -v '^ *+' conftest.er1 >conftest.err |
32380 | rm -f conftest.er1 | |
32381 | cat conftest.err >&5 | |
a848cd7e SC |
32382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32383 | (exit $ac_status); } && | |
89be85c2 VS |
32384 | { ac_try='test -z "$ac_c_werror_flag" |
32385 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32387 | (eval $ac_try) 2>&5 | |
32388 | ac_status=$? | |
32389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32390 | (exit $ac_status); }; } && | |
32391 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32393 | (eval $ac_try) 2>&5 | |
32394 | ac_status=$? | |
32395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32396 | (exit $ac_status); }; }; then | |
32397 | ac_cv_lib_nsl_inet_addr=yes | |
32398 | else | |
32399 | echo "$as_me: failed program was:" >&5 | |
32400 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32401 | ||
32402 | ac_cv_lib_nsl_inet_addr=no | |
32403 | fi | |
ac1cb8d3 VS |
32404 | rm -f conftest.err conftest.$ac_objext \ |
32405 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32406 | LIBS=$ac_check_lib_save_LIBS |
32407 | fi | |
32408 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5 | |
32409 | echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6 | |
32410 | if test $ac_cv_lib_nsl_inet_addr = yes; then | |
32411 | INET_LINK="nsl" | |
32412 | else | |
32413 | ||
32414 | echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5 | |
32415 | echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6 | |
32416 | if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then | |
32417 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32418 | else | |
32419 | ac_check_lib_save_LIBS=$LIBS | |
32420 | LIBS="-lresolv $LIBS" | |
32421 | cat >conftest.$ac_ext <<_ACEOF | |
32422 | /* confdefs.h. */ | |
32423 | _ACEOF | |
32424 | cat confdefs.h >>conftest.$ac_ext | |
32425 | cat >>conftest.$ac_ext <<_ACEOF | |
32426 | /* end confdefs.h. */ | |
32427 | ||
32428 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32429 | #ifdef __cplusplus | |
32430 | extern "C" | |
32431 | #endif | |
32432 | /* We use char because int might match the return type of a gcc2 | |
32433 | builtin and then its argument prototype would still apply. */ | |
32434 | char inet_addr (); | |
32435 | int | |
32436 | main () | |
32437 | { | |
32438 | inet_addr (); | |
32439 | ; | |
32440 | return 0; | |
32441 | } | |
32442 | _ACEOF | |
32443 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32444 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32445 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32446 | ac_status=$? |
ac1cb8d3 VS |
32447 | grep -v '^ *+' conftest.er1 >conftest.err |
32448 | rm -f conftest.er1 | |
32449 | cat conftest.err >&5 | |
a848cd7e SC |
32450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32451 | (exit $ac_status); } && | |
89be85c2 VS |
32452 | { ac_try='test -z "$ac_c_werror_flag" |
32453 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32455 | (eval $ac_try) 2>&5 | |
32456 | ac_status=$? | |
32457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32458 | (exit $ac_status); }; } && | |
32459 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32461 | (eval $ac_try) 2>&5 | |
32462 | ac_status=$? | |
32463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32464 | (exit $ac_status); }; }; then | |
32465 | ac_cv_lib_resolv_inet_addr=yes | |
32466 | else | |
32467 | echo "$as_me: failed program was:" >&5 | |
32468 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32469 | ||
32470 | ac_cv_lib_resolv_inet_addr=no | |
32471 | fi | |
ac1cb8d3 VS |
32472 | rm -f conftest.err conftest.$ac_objext \ |
32473 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32474 | LIBS=$ac_check_lib_save_LIBS |
32475 | fi | |
32476 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5 | |
32477 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6 | |
32478 | if test $ac_cv_lib_resolv_inet_addr = yes; then | |
32479 | INET_LINK="resolv" | |
32480 | else | |
32481 | ||
32482 | echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5 | |
32483 | echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6 | |
32484 | if test "${ac_cv_lib_socket_inet_addr+set}" = set; then | |
32485 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32486 | else | |
32487 | ac_check_lib_save_LIBS=$LIBS | |
32488 | LIBS="-lsocket $LIBS" | |
32489 | cat >conftest.$ac_ext <<_ACEOF | |
32490 | /* confdefs.h. */ | |
32491 | _ACEOF | |
32492 | cat confdefs.h >>conftest.$ac_ext | |
32493 | cat >>conftest.$ac_ext <<_ACEOF | |
32494 | /* end confdefs.h. */ | |
32495 | ||
32496 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32497 | #ifdef __cplusplus | |
32498 | extern "C" | |
32499 | #endif | |
32500 | /* We use char because int might match the return type of a gcc2 | |
32501 | builtin and then its argument prototype would still apply. */ | |
32502 | char inet_addr (); | |
32503 | int | |
32504 | main () | |
32505 | { | |
32506 | inet_addr (); | |
32507 | ; | |
32508 | return 0; | |
32509 | } | |
32510 | _ACEOF | |
32511 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32512 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32513 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32514 | ac_status=$? |
ac1cb8d3 VS |
32515 | grep -v '^ *+' conftest.er1 >conftest.err |
32516 | rm -f conftest.er1 | |
32517 | cat conftest.err >&5 | |
a848cd7e SC |
32518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32519 | (exit $ac_status); } && | |
89be85c2 VS |
32520 | { ac_try='test -z "$ac_c_werror_flag" |
32521 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32523 | (eval $ac_try) 2>&5 | |
32524 | ac_status=$? | |
32525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32526 | (exit $ac_status); }; } && | |
32527 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32529 | (eval $ac_try) 2>&5 | |
32530 | ac_status=$? | |
32531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32532 | (exit $ac_status); }; }; then | |
32533 | ac_cv_lib_socket_inet_addr=yes | |
32534 | else | |
32535 | echo "$as_me: failed program was:" >&5 | |
32536 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32537 | ||
32538 | ac_cv_lib_socket_inet_addr=no | |
32539 | fi | |
ac1cb8d3 VS |
32540 | rm -f conftest.err conftest.$ac_objext \ |
32541 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32542 | LIBS=$ac_check_lib_save_LIBS |
32543 | fi | |
32544 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5 | |
32545 | echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6 | |
32546 | if test $ac_cv_lib_socket_inet_addr = yes; then | |
32547 | INET_LINK="socket" | |
32548 | ||
32549 | fi | |
32550 | ||
32551 | ||
32552 | ||
32553 | fi | |
32554 | ||
32555 | ||
32556 | ||
32557 | fi | |
32558 | ||
32559 | ||
32560 | ||
32561 | fi | |
32562 | done | |
32563 | ||
32564 | ||
32565 | ||
32566 | for ac_func in inet_aton | |
32567 | do | |
32568 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32569 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32570 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32571 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32572 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32573 | else | |
32574 | cat >conftest.$ac_ext <<_ACEOF | |
32575 | /* confdefs.h. */ | |
32576 | _ACEOF | |
32577 | cat confdefs.h >>conftest.$ac_ext | |
32578 | cat >>conftest.$ac_ext <<_ACEOF | |
32579 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32580 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32581 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32582 | #define $ac_func innocuous_$ac_func | |
32583 | ||
a848cd7e SC |
32584 | /* System header to define __stub macros and hopefully few prototypes, |
32585 | which can conflict with char $ac_func (); below. | |
32586 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32587 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32588 | |
a848cd7e SC |
32589 | #ifdef __STDC__ |
32590 | # include <limits.h> | |
32591 | #else | |
32592 | # include <assert.h> | |
32593 | #endif | |
ac1cb8d3 VS |
32594 | |
32595 | #undef $ac_func | |
32596 | ||
a848cd7e SC |
32597 | /* Override any gcc2 internal prototype to avoid an error. */ |
32598 | #ifdef __cplusplus | |
32599 | extern "C" | |
32600 | { | |
32601 | #endif | |
32602 | /* We use char because int might match the return type of a gcc2 | |
32603 | builtin and then its argument prototype would still apply. */ | |
32604 | char $ac_func (); | |
32605 | /* The GNU C library defines this for functions which it implements | |
32606 | to always fail with ENOSYS. Some functions are actually named | |
32607 | something starting with __ and the normal name is an alias. */ | |
32608 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32609 | choke me | |
32610 | #else | |
32611 | char (*f) () = $ac_func; | |
32612 | #endif | |
32613 | #ifdef __cplusplus | |
32614 | } | |
32615 | #endif | |
32616 | ||
32617 | int | |
32618 | main () | |
32619 | { | |
32620 | return f != $ac_func; | |
32621 | ; | |
32622 | return 0; | |
32623 | } | |
32624 | _ACEOF | |
32625 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32626 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32627 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32628 | ac_status=$? |
ac1cb8d3 VS |
32629 | grep -v '^ *+' conftest.er1 >conftest.err |
32630 | rm -f conftest.er1 | |
32631 | cat conftest.err >&5 | |
a848cd7e SC |
32632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32633 | (exit $ac_status); } && | |
89be85c2 VS |
32634 | { ac_try='test -z "$ac_c_werror_flag" |
32635 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32637 | (eval $ac_try) 2>&5 | |
32638 | ac_status=$? | |
32639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32640 | (exit $ac_status); }; } && | |
32641 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32643 | (eval $ac_try) 2>&5 | |
32644 | ac_status=$? | |
32645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32646 | (exit $ac_status); }; }; then | |
32647 | eval "$as_ac_var=yes" | |
32648 | else | |
32649 | echo "$as_me: failed program was:" >&5 | |
32650 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32651 | ||
32652 | eval "$as_ac_var=no" | |
32653 | fi | |
ac1cb8d3 VS |
32654 | rm -f conftest.err conftest.$ac_objext \ |
32655 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32656 | fi |
32657 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32658 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32659 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32660 | cat >>confdefs.h <<_ACEOF | |
32661 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32662 | _ACEOF | |
32663 | cat >>confdefs.h <<\_ACEOF | |
32664 | #define HAVE_INET_ATON 1 | |
32665 | _ACEOF | |
32666 | ||
32667 | else | |
32668 | ||
32669 | as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh` | |
32670 | echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5 | |
32671 | echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6 | |
32672 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then | |
32673 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32674 | else | |
32675 | ac_check_lib_save_LIBS=$LIBS | |
32676 | LIBS="-l$INET_LINK $LIBS" | |
32677 | cat >conftest.$ac_ext <<_ACEOF | |
32678 | /* confdefs.h. */ | |
32679 | _ACEOF | |
32680 | cat confdefs.h >>conftest.$ac_ext | |
32681 | cat >>conftest.$ac_ext <<_ACEOF | |
32682 | /* end confdefs.h. */ | |
32683 | ||
32684 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32685 | #ifdef __cplusplus | |
32686 | extern "C" | |
32687 | #endif | |
32688 | /* We use char because int might match the return type of a gcc2 | |
32689 | builtin and then its argument prototype would still apply. */ | |
32690 | char inet_aton (); | |
32691 | int | |
32692 | main () | |
32693 | { | |
32694 | inet_aton (); | |
32695 | ; | |
32696 | return 0; | |
32697 | } | |
32698 | _ACEOF | |
32699 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32700 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32701 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32702 | ac_status=$? |
ac1cb8d3 VS |
32703 | grep -v '^ *+' conftest.er1 >conftest.err |
32704 | rm -f conftest.er1 | |
32705 | cat conftest.err >&5 | |
a848cd7e SC |
32706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32707 | (exit $ac_status); } && | |
89be85c2 VS |
32708 | { ac_try='test -z "$ac_c_werror_flag" |
32709 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32711 | (eval $ac_try) 2>&5 | |
32712 | ac_status=$? | |
32713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32714 | (exit $ac_status); }; } && | |
32715 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32717 | (eval $ac_try) 2>&5 | |
32718 | ac_status=$? | |
32719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32720 | (exit $ac_status); }; }; then | |
32721 | eval "$as_ac_Lib=yes" | |
32722 | else | |
32723 | echo "$as_me: failed program was:" >&5 | |
32724 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32725 | ||
32726 | eval "$as_ac_Lib=no" | |
32727 | fi | |
ac1cb8d3 VS |
32728 | rm -f conftest.err conftest.$ac_objext \ |
32729 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32730 | LIBS=$ac_check_lib_save_LIBS |
32731 | fi | |
32732 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 | |
32733 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 | |
32734 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then | |
32735 | cat >>confdefs.h <<\_ACEOF | |
32736 | #define HAVE_INET_ATON 1 | |
32737 | _ACEOF | |
32738 | ||
32739 | fi | |
32740 | ||
32741 | ||
32742 | fi | |
32743 | done | |
32744 | ||
32745 | ||
32746 | if test "x$INET_LINK" != "x"; then | |
32747 | cat >>confdefs.h <<\_ACEOF | |
32748 | #define HAVE_INET_ADDR 1 | |
32749 | _ACEOF | |
32750 | ||
32751 | INET_LINK=" -l$INET_LINK" | |
32752 | fi | |
32753 | ||
32754 | fi | |
32755 | ||
32756 | ||
32757 | ||
32758 | EXTRALIBS_ESD= | |
32759 | echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5 | |
32760 | echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6 | |
32761 | if test "${ac_cv_lib_esd_esd_close+set}" = set; then | |
32762 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32763 | else | |
32764 | ac_check_lib_save_LIBS=$LIBS | |
32765 | LIBS="-lesd $LIBS" | |
32766 | cat >conftest.$ac_ext <<_ACEOF | |
32767 | /* confdefs.h. */ | |
32768 | _ACEOF | |
32769 | cat confdefs.h >>conftest.$ac_ext | |
32770 | cat >>conftest.$ac_ext <<_ACEOF | |
32771 | /* end confdefs.h. */ | |
32772 | ||
32773 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32774 | #ifdef __cplusplus | |
32775 | extern "C" | |
32776 | #endif | |
32777 | /* We use char because int might match the return type of a gcc2 | |
32778 | builtin and then its argument prototype would still apply. */ | |
32779 | char esd_close (); | |
32780 | int | |
32781 | main () | |
32782 | { | |
32783 | esd_close (); | |
32784 | ; | |
32785 | return 0; | |
32786 | } | |
32787 | _ACEOF | |
32788 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32789 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32790 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32791 | ac_status=$? |
ac1cb8d3 VS |
32792 | grep -v '^ *+' conftest.er1 >conftest.err |
32793 | rm -f conftest.er1 | |
32794 | cat conftest.err >&5 | |
a848cd7e SC |
32795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32796 | (exit $ac_status); } && | |
89be85c2 VS |
32797 | { ac_try='test -z "$ac_c_werror_flag" |
32798 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32800 | (eval $ac_try) 2>&5 | |
32801 | ac_status=$? | |
32802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32803 | (exit $ac_status); }; } && | |
32804 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32806 | (eval $ac_try) 2>&5 | |
32807 | ac_status=$? | |
32808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32809 | (exit $ac_status); }; }; then | |
32810 | ac_cv_lib_esd_esd_close=yes | |
32811 | else | |
32812 | echo "$as_me: failed program was:" >&5 | |
32813 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32814 | ||
32815 | ac_cv_lib_esd_esd_close=no | |
32816 | fi | |
ac1cb8d3 VS |
32817 | rm -f conftest.err conftest.$ac_objext \ |
32818 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32819 | LIBS=$ac_check_lib_save_LIBS |
32820 | fi | |
32821 | echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5 | |
32822 | echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6 | |
32823 | if test $ac_cv_lib_esd_esd_close = yes; then | |
32824 | ||
32825 | ||
32826 | for ac_header in esd.h | |
32827 | do | |
32828 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
32829 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32830 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
32831 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
32832 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32833 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32834 | fi | |
32835 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
32836 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
32837 | else | |
32838 | # Is the header compilable? | |
32839 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
32840 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
32841 | cat >conftest.$ac_ext <<_ACEOF | |
32842 | /* confdefs.h. */ | |
32843 | _ACEOF | |
32844 | cat confdefs.h >>conftest.$ac_ext | |
32845 | cat >>conftest.$ac_ext <<_ACEOF | |
32846 | /* end confdefs.h. */ | |
32847 | $ac_includes_default | |
32848 | #include <$ac_header> | |
32849 | _ACEOF | |
32850 | rm -f conftest.$ac_objext | |
32851 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32852 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32853 | ac_status=$? |
ac1cb8d3 VS |
32854 | grep -v '^ *+' conftest.er1 >conftest.err |
32855 | rm -f conftest.er1 | |
32856 | cat conftest.err >&5 | |
a848cd7e SC |
32857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32858 | (exit $ac_status); } && | |
89be85c2 VS |
32859 | { ac_try='test -z "$ac_c_werror_flag" |
32860 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32862 | (eval $ac_try) 2>&5 | |
32863 | ac_status=$? | |
32864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32865 | (exit $ac_status); }; } && | |
32866 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32868 | (eval $ac_try) 2>&5 | |
32869 | ac_status=$? | |
32870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32871 | (exit $ac_status); }; }; then | |
32872 | ac_header_compiler=yes | |
32873 | else | |
32874 | echo "$as_me: failed program was:" >&5 | |
32875 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32876 | ||
32877 | ac_header_compiler=no | |
32878 | fi | |
ac1cb8d3 | 32879 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32880 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
32881 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
32882 | ||
32883 | # Is the header present? | |
32884 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
32885 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
32886 | cat >conftest.$ac_ext <<_ACEOF | |
32887 | /* confdefs.h. */ | |
32888 | _ACEOF | |
32889 | cat confdefs.h >>conftest.$ac_ext | |
32890 | cat >>conftest.$ac_ext <<_ACEOF | |
32891 | /* end confdefs.h. */ | |
32892 | #include <$ac_header> | |
32893 | _ACEOF | |
32894 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
32895 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
32896 | ac_status=$? | |
32897 | grep -v '^ *+' conftest.er1 >conftest.err | |
32898 | rm -f conftest.er1 | |
32899 | cat conftest.err >&5 | |
32900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32901 | (exit $ac_status); } >/dev/null; then | |
32902 | if test -s conftest.err; then | |
32903 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 32904 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
32905 | else |
32906 | ac_cpp_err= | |
32907 | fi | |
32908 | else | |
32909 | ac_cpp_err=yes | |
32910 | fi | |
32911 | if test -z "$ac_cpp_err"; then | |
32912 | ac_header_preproc=yes | |
32913 | else | |
32914 | echo "$as_me: failed program was:" >&5 | |
32915 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32916 | ||
32917 | ac_header_preproc=no | |
32918 | fi | |
32919 | rm -f conftest.err conftest.$ac_ext | |
32920 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
32921 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
32922 | ||
32923 | # So? What about this header? | |
ac1cb8d3 VS |
32924 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
32925 | yes:no: ) | |
a848cd7e SC |
32926 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
32927 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
32928 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
32929 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
32930 | ac_header_preproc=yes | |
a848cd7e | 32931 | ;; |
ac1cb8d3 | 32932 | no:yes:* ) |
a848cd7e SC |
32933 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
32934 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
32935 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
32936 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
32937 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
32938 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
32939 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
32940 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
32941 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
32942 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
32943 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
32944 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
32945 | ( |
32946 | cat <<\_ASBOX | |
ac1cb8d3 VS |
32947 | ## ----------------------------------------- ## |
32948 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
32949 | ## ----------------------------------------- ## | |
a848cd7e SC |
32950 | _ASBOX |
32951 | ) | | |
32952 | sed "s/^/$as_me: WARNING: /" >&2 | |
32953 | ;; | |
32954 | esac | |
32955 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
32956 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
32957 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32958 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32959 | else | |
ac1cb8d3 | 32960 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
32961 | fi |
32962 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
32963 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
32964 | ||
32965 | fi | |
32966 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
32967 | cat >>confdefs.h <<_ACEOF | |
32968 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
32969 | _ACEOF | |
32970 | ||
32971 | EXTRALIBS_ESD="-lesd" | |
32972 | ||
32973 | fi | |
32974 | ||
32975 | done | |
32976 | ||
32977 | ||
32978 | fi | |
32979 | ||
32980 | ||
32981 | ||
32982 | echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5 | |
32983 | echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6 | |
32984 | cat >conftest.$ac_ext <<_ACEOF | |
32985 | /* confdefs.h. */ | |
32986 | _ACEOF | |
32987 | cat confdefs.h >>conftest.$ac_ext | |
32988 | cat >>conftest.$ac_ext <<_ACEOF | |
32989 | /* end confdefs.h. */ | |
32990 | #ifdef __linux__ | |
32991 | #include <linux/cdrom.h> | |
32992 | #else | |
32993 | /* For Solaris */ | |
32994 | #include <sys/cdio.h> | |
32995 | #endif | |
32996 | ||
32997 | int | |
32998 | main () | |
32999 | { | |
33000 | struct cdrom_tocentry entry, old_entry; | |
33001 | ; | |
33002 | return 0; | |
33003 | } | |
33004 | _ACEOF | |
33005 | rm -f conftest.$ac_objext | |
33006 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33007 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33008 | ac_status=$? |
ac1cb8d3 VS |
33009 | grep -v '^ *+' conftest.er1 >conftest.err |
33010 | rm -f conftest.er1 | |
33011 | cat conftest.err >&5 | |
a848cd7e SC |
33012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33013 | (exit $ac_status); } && | |
89be85c2 VS |
33014 | { ac_try='test -z "$ac_c_werror_flag" |
33015 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33017 | (eval $ac_try) 2>&5 | |
33018 | ac_status=$? | |
33019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33020 | (exit $ac_status); }; } && | |
33021 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33023 | (eval $ac_try) 2>&5 | |
33024 | ac_status=$? | |
33025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33026 | (exit $ac_status); }; }; then | |
33027 | echo "$as_me:$LINENO: result: yes" >&5 | |
33028 | echo "${ECHO_T}yes" >&6 | |
33029 | cat >>confdefs.h <<\_ACEOF | |
33030 | #define HAVE_KNOWN_CDROM_INTERFACE 1 | |
33031 | _ACEOF | |
33032 | ||
33033 | else | |
33034 | echo "$as_me: failed program was:" >&5 | |
33035 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33036 | ||
33037 | echo "$as_me:$LINENO: result: no" >&5 | |
33038 | echo "${ECHO_T}no" >&6 | |
33039 | fi | |
ac1cb8d3 | 33040 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33041 | |
33042 | ||
33043 | cat >confcache <<\_ACEOF | |
33044 | # This file is a shell script that caches the results of configure | |
33045 | # tests run on this system so they can be shared between configure | |
33046 | # scripts and configure runs, see configure's option --config-cache. | |
33047 | # It is not useful on other systems. If it contains results you don't | |
33048 | # want to keep, you may remove or edit it. | |
33049 | # | |
33050 | # config.status only pays attention to the cache file if you give it | |
33051 | # the --recheck option to rerun configure. | |
33052 | # | |
33053 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
33054 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
33055 | # following values. | |
33056 | ||
33057 | _ACEOF | |
33058 | ||
33059 | # The following way of writing the cache mishandles newlines in values, | |
33060 | # but we know of no workaround that is simple, portable, and efficient. | |
33061 | # So, don't put newlines in cache variables' values. | |
33062 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
33063 | # and sets the high bit in the cache file unless we assign to the vars. | |
33064 | { | |
33065 | (set) 2>&1 | | |
33066 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
33067 | *ac_space=\ *) | |
33068 | # `set' does not quote correctly, so add quotes (double-quote | |
33069 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
33070 | sed -n \ | |
ac1cb8d3 VS |
33071 | "s/'/'\\\\''/g; |
33072 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
33073 | ;; |
33074 | *) | |
33075 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
33076 | sed -n \ | |
ac1cb8d3 | 33077 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
33078 | ;; |
33079 | esac; | |
33080 | } | | |
33081 | sed ' | |
33082 | t clear | |
33083 | : clear | |
33084 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
33085 | t end | |
33086 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
33087 | : end' >>confcache | |
33088 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
33089 | if test -w $cache_file; then | |
33090 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
33091 | cat confcache >$cache_file | |
33092 | else | |
33093 | echo "not updating unwritable cache $cache_file" | |
33094 | fi | |
33095 | fi | |
33096 | rm -f confcache | |
33097 | ||
33098 | ||
33099 | CPP_MT_FLAG= | |
33100 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
33101 | ||
33102 | ||
33103 | THREADS_LINK= | |
33104 | THREADS_CFLAGS= | |
33105 | ||
33106 | if test "$wxUSE_THREADS" = "yes" ; then | |
33107 | if test "$USE_BEOS" = 1; then | |
33108 | { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5 | |
33109 | echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;} | |
33110 | wxUSE_THREADS="no" | |
33111 | fi | |
33112 | fi | |
33113 | ||
33114 | if test "$wxUSE_THREADS" = "yes" ; then | |
33115 | ||
33116 | ||
33117 | THREAD_OPTS="-pthread" | |
33118 | case "${host}" in | |
33119 | *-*-solaris2* | *-*-sunos4* ) | |
33120 | if test "x$GCC" = "xyes"; then | |
33121 | THREAD_OPTS="-pthreads $THREAD_OPTS" | |
33122 | else | |
33123 | THREAD_OPTS="-mt $THREAD_OPTS" | |
33124 | fi | |
33125 | ;; | |
33126 | *-*-freebsd*) | |
33127 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
33128 | ;; | |
33129 | *-*-darwin* | *-*-cygwin* ) | |
33130 | THREAD_OPTS="" | |
33131 | ;; | |
33132 | *-*-aix*) | |
33133 | THREAD_OPTS="pthreads" | |
33134 | ;; | |
33135 | *-hp-hpux* ) | |
33136 | if test "x$GCC" != "xyes"; then | |
33137 | THREAD_OPTS="" | |
33138 | fi | |
33139 | ;; | |
33140 | ||
33141 | *-*-irix* ) | |
33142 | if test "x$GCC" = "xyes"; then | |
33143 | THREAD_OPTS="" | |
33144 | fi | |
33145 | ;; | |
33146 | ||
33147 | *-*-*UnixWare*) | |
33148 | if test "x$GCC" != "xyes"; then | |
33149 | THREAD_OPTS="-Ethread" | |
33150 | fi | |
33151 | ;; | |
33152 | esac | |
33153 | ||
33154 | THREAD_OPTS="$THREAD_OPTS pthread none" | |
33155 | ||
33156 | THREADS_OK=no | |
33157 | for flag in $THREAD_OPTS; do | |
33158 | case $flag in | |
33159 | none) | |
33160 | echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 | |
33161 | echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6 | |
33162 | ;; | |
33163 | ||
33164 | -*) | |
33165 | echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 | |
33166 | echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6 | |
33167 | THREADS_CFLAGS="$flag" | |
33168 | ;; | |
33169 | ||
33170 | *) | |
33171 | echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 | |
33172 | echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6 | |
33173 | THREADS_LINK="-l$flag" | |
33174 | ;; | |
33175 | esac | |
33176 | ||
33177 | save_LIBS="$LIBS" | |
33178 | save_CFLAGS="$CFLAGS" | |
33179 | LIBS="$THREADS_LINK $LIBS" | |
33180 | CFLAGS="$THREADS_CFLAGS $CFLAGS" | |
33181 | ||
33182 | cat >conftest.$ac_ext <<_ACEOF | |
33183 | /* confdefs.h. */ | |
33184 | _ACEOF | |
33185 | cat confdefs.h >>conftest.$ac_ext | |
33186 | cat >>conftest.$ac_ext <<_ACEOF | |
33187 | /* end confdefs.h. */ | |
33188 | #include <pthread.h> | |
33189 | int | |
33190 | main () | |
33191 | { | |
33192 | pthread_create(0,0,0,0); | |
33193 | ; | |
33194 | return 0; | |
33195 | } | |
33196 | _ACEOF | |
33197 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33198 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33199 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33200 | ac_status=$? |
ac1cb8d3 VS |
33201 | grep -v '^ *+' conftest.er1 >conftest.err |
33202 | rm -f conftest.er1 | |
33203 | cat conftest.err >&5 | |
a848cd7e SC |
33204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33205 | (exit $ac_status); } && | |
89be85c2 VS |
33206 | { ac_try='test -z "$ac_c_werror_flag" |
33207 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33209 | (eval $ac_try) 2>&5 | |
33210 | ac_status=$? | |
33211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33212 | (exit $ac_status); }; } && | |
33213 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33215 | (eval $ac_try) 2>&5 | |
33216 | ac_status=$? | |
33217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33218 | (exit $ac_status); }; }; then | |
33219 | THREADS_OK=yes | |
33220 | else | |
33221 | echo "$as_me: failed program was:" >&5 | |
33222 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33223 | ||
33224 | fi | |
ac1cb8d3 VS |
33225 | rm -f conftest.err conftest.$ac_objext \ |
33226 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33227 | |
33228 | LIBS="$save_LIBS" | |
33229 | CFLAGS="$save_CFLAGS" | |
33230 | ||
33231 | echo "$as_me:$LINENO: result: $THREADS_OK" >&5 | |
33232 | echo "${ECHO_T}$THREADS_OK" >&6 | |
33233 | if test "x$THREADS_OK" = "xyes"; then | |
33234 | break; | |
33235 | fi | |
33236 | ||
33237 | THREADS_LINK="" | |
33238 | THREADS_CFLAGS="" | |
33239 | done | |
33240 | ||
33241 | if test "x$THREADS_OK" != "xyes"; then | |
33242 | wxUSE_THREADS=no | |
33243 | { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5 | |
33244 | echo "$as_me: WARNING: No thread support on this system... disabled" >&2;} | |
33245 | else | |
33246 | LDFLAGS="$THREADS_CFLAGS $LDFLAGS" | |
33247 | LIBS="$THREADS_LINK $LIBS" | |
33248 | ||
33249 | echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 | |
33250 | echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6 | |
33251 | flag=no | |
33252 | case "${host}" in | |
33253 | *-aix*) | |
33254 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
33255 | flag="-D_THREAD_SAFE" | |
33256 | ;; | |
33257 | *-freebsd*) | |
33258 | flag="-D_THREAD_SAFE" | |
33259 | ;; | |
33260 | *-hp-hpux* ) | |
33261 | flag="-D_REENTRANT" | |
33262 | if test "x$GCC" != "xyes"; then | |
33263 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
33264 | fi | |
33265 | ;; | |
33266 | *solaris* | alpha*-osf*) | |
33267 | flag="-D_REENTRANT" | |
33268 | ;; | |
33269 | esac | |
33270 | echo "$as_me:$LINENO: result: ${flag}" >&5 | |
33271 | echo "${ECHO_T}${flag}" >&6 | |
33272 | if test "x$flag" != xno; then | |
33273 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" | |
33274 | fi | |
33275 | ||
33276 | if test "x$THREADS_CFLAGS" != "x"; then | |
33277 | CFLAGS="$CFLAGS $THREADS_CFLAGS" | |
33278 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" | |
33279 | fi | |
33280 | fi | |
33281 | fi | |
33282 | ||
33283 | if test "$wxUSE_THREADS" = "yes" ; then | |
33284 | ||
33285 | for ac_func in thr_setconcurrency | |
33286 | do | |
33287 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33288 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33289 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33290 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33291 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33292 | else | |
33293 | cat >conftest.$ac_ext <<_ACEOF | |
33294 | /* confdefs.h. */ | |
33295 | _ACEOF | |
33296 | cat confdefs.h >>conftest.$ac_ext | |
33297 | cat >>conftest.$ac_ext <<_ACEOF | |
33298 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33299 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33300 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33301 | #define $ac_func innocuous_$ac_func | |
33302 | ||
a848cd7e SC |
33303 | /* System header to define __stub macros and hopefully few prototypes, |
33304 | which can conflict with char $ac_func (); below. | |
33305 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33306 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33307 | |
a848cd7e SC |
33308 | #ifdef __STDC__ |
33309 | # include <limits.h> | |
33310 | #else | |
33311 | # include <assert.h> | |
33312 | #endif | |
ac1cb8d3 VS |
33313 | |
33314 | #undef $ac_func | |
33315 | ||
a848cd7e SC |
33316 | /* Override any gcc2 internal prototype to avoid an error. */ |
33317 | #ifdef __cplusplus | |
33318 | extern "C" | |
33319 | { | |
33320 | #endif | |
33321 | /* We use char because int might match the return type of a gcc2 | |
33322 | builtin and then its argument prototype would still apply. */ | |
33323 | char $ac_func (); | |
33324 | /* The GNU C library defines this for functions which it implements | |
33325 | to always fail with ENOSYS. Some functions are actually named | |
33326 | something starting with __ and the normal name is an alias. */ | |
33327 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33328 | choke me | |
33329 | #else | |
33330 | char (*f) () = $ac_func; | |
33331 | #endif | |
33332 | #ifdef __cplusplus | |
33333 | } | |
33334 | #endif | |
33335 | ||
33336 | int | |
33337 | main () | |
33338 | { | |
33339 | return f != $ac_func; | |
33340 | ; | |
33341 | return 0; | |
33342 | } | |
33343 | _ACEOF | |
33344 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33345 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33346 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33347 | ac_status=$? |
ac1cb8d3 VS |
33348 | grep -v '^ *+' conftest.er1 >conftest.err |
33349 | rm -f conftest.er1 | |
33350 | cat conftest.err >&5 | |
a848cd7e SC |
33351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33352 | (exit $ac_status); } && | |
89be85c2 VS |
33353 | { ac_try='test -z "$ac_c_werror_flag" |
33354 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33356 | (eval $ac_try) 2>&5 | |
33357 | ac_status=$? | |
33358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33359 | (exit $ac_status); }; } && | |
33360 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33362 | (eval $ac_try) 2>&5 | |
33363 | ac_status=$? | |
33364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33365 | (exit $ac_status); }; }; then | |
33366 | eval "$as_ac_var=yes" | |
33367 | else | |
33368 | echo "$as_me: failed program was:" >&5 | |
33369 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33370 | ||
33371 | eval "$as_ac_var=no" | |
33372 | fi | |
ac1cb8d3 VS |
33373 | rm -f conftest.err conftest.$ac_objext \ |
33374 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33375 | fi |
33376 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33377 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33378 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33379 | cat >>confdefs.h <<_ACEOF | |
33380 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33381 | _ACEOF | |
33382 | ||
33383 | fi | |
33384 | done | |
33385 | ||
33386 | ||
33387 | ||
33388 | for ac_header in sched.h | |
33389 | do | |
33390 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
33391 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
33392 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
33393 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
33394 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
33395 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33396 | fi | |
33397 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
33398 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
33399 | else | |
33400 | # Is the header compilable? | |
33401 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
33402 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
33403 | cat >conftest.$ac_ext <<_ACEOF | |
33404 | /* confdefs.h. */ | |
33405 | _ACEOF | |
33406 | cat confdefs.h >>conftest.$ac_ext | |
33407 | cat >>conftest.$ac_ext <<_ACEOF | |
33408 | /* end confdefs.h. */ | |
33409 | $ac_includes_default | |
33410 | #include <$ac_header> | |
33411 | _ACEOF | |
33412 | rm -f conftest.$ac_objext | |
33413 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33414 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33415 | ac_status=$? |
ac1cb8d3 VS |
33416 | grep -v '^ *+' conftest.er1 >conftest.err |
33417 | rm -f conftest.er1 | |
33418 | cat conftest.err >&5 | |
a848cd7e SC |
33419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33420 | (exit $ac_status); } && | |
89be85c2 VS |
33421 | { ac_try='test -z "$ac_c_werror_flag" |
33422 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33424 | (eval $ac_try) 2>&5 | |
33425 | ac_status=$? | |
33426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33427 | (exit $ac_status); }; } && | |
33428 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33430 | (eval $ac_try) 2>&5 | |
33431 | ac_status=$? | |
33432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33433 | (exit $ac_status); }; }; then | |
33434 | ac_header_compiler=yes | |
33435 | else | |
33436 | echo "$as_me: failed program was:" >&5 | |
33437 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33438 | ||
33439 | ac_header_compiler=no | |
33440 | fi | |
ac1cb8d3 | 33441 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33442 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
33443 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
33444 | ||
33445 | # Is the header present? | |
33446 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
33447 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
33448 | cat >conftest.$ac_ext <<_ACEOF | |
33449 | /* confdefs.h. */ | |
33450 | _ACEOF | |
33451 | cat confdefs.h >>conftest.$ac_ext | |
33452 | cat >>conftest.$ac_ext <<_ACEOF | |
33453 | /* end confdefs.h. */ | |
33454 | #include <$ac_header> | |
33455 | _ACEOF | |
33456 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
33457 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
33458 | ac_status=$? | |
33459 | grep -v '^ *+' conftest.er1 >conftest.err | |
33460 | rm -f conftest.er1 | |
33461 | cat conftest.err >&5 | |
33462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33463 | (exit $ac_status); } >/dev/null; then | |
33464 | if test -s conftest.err; then | |
33465 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 33466 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
33467 | else |
33468 | ac_cpp_err= | |
33469 | fi | |
33470 | else | |
33471 | ac_cpp_err=yes | |
33472 | fi | |
33473 | if test -z "$ac_cpp_err"; then | |
33474 | ac_header_preproc=yes | |
33475 | else | |
33476 | echo "$as_me: failed program was:" >&5 | |
33477 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33478 | ||
33479 | ac_header_preproc=no | |
33480 | fi | |
33481 | rm -f conftest.err conftest.$ac_ext | |
33482 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
33483 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
33484 | ||
33485 | # So? What about this header? | |
ac1cb8d3 VS |
33486 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
33487 | yes:no: ) | |
a848cd7e SC |
33488 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
33489 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
33490 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
33491 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
33492 | ac_header_preproc=yes | |
a848cd7e | 33493 | ;; |
ac1cb8d3 | 33494 | no:yes:* ) |
a848cd7e SC |
33495 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
33496 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
33497 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
33498 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
33499 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
33500 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
33501 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
33502 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
33503 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
33504 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
33505 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
33506 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
33507 | ( |
33508 | cat <<\_ASBOX | |
ac1cb8d3 VS |
33509 | ## ----------------------------------------- ## |
33510 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
33511 | ## ----------------------------------------- ## | |
a848cd7e SC |
33512 | _ASBOX |
33513 | ) | | |
33514 | sed "s/^/$as_me: WARNING: /" >&2 | |
33515 | ;; | |
33516 | esac | |
33517 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
33518 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
33519 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
33520 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33521 | else | |
ac1cb8d3 | 33522 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
33523 | fi |
33524 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
33525 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
33526 | ||
33527 | fi | |
33528 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
33529 | cat >>confdefs.h <<_ACEOF | |
33530 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
33531 | _ACEOF | |
33532 | ||
33533 | fi | |
33534 | ||
33535 | done | |
33536 | ||
33537 | if test "$ac_cv_header_sched_h" = "yes"; then | |
33538 | echo "$as_me:$LINENO: checking for sched_yield" >&5 | |
33539 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 | |
33540 | if test "${ac_cv_func_sched_yield+set}" = set; then | |
33541 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33542 | else | |
33543 | cat >conftest.$ac_ext <<_ACEOF | |
33544 | /* confdefs.h. */ | |
33545 | _ACEOF | |
33546 | cat confdefs.h >>conftest.$ac_ext | |
33547 | cat >>conftest.$ac_ext <<_ACEOF | |
33548 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33549 | /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield. |
33550 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33551 | #define sched_yield innocuous_sched_yield | |
33552 | ||
a848cd7e SC |
33553 | /* System header to define __stub macros and hopefully few prototypes, |
33554 | which can conflict with char sched_yield (); below. | |
33555 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33556 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33557 | |
a848cd7e SC |
33558 | #ifdef __STDC__ |
33559 | # include <limits.h> | |
33560 | #else | |
33561 | # include <assert.h> | |
33562 | #endif | |
ac1cb8d3 VS |
33563 | |
33564 | #undef sched_yield | |
33565 | ||
a848cd7e SC |
33566 | /* Override any gcc2 internal prototype to avoid an error. */ |
33567 | #ifdef __cplusplus | |
33568 | extern "C" | |
33569 | { | |
33570 | #endif | |
33571 | /* We use char because int might match the return type of a gcc2 | |
33572 | builtin and then its argument prototype would still apply. */ | |
33573 | char sched_yield (); | |
33574 | /* The GNU C library defines this for functions which it implements | |
33575 | to always fail with ENOSYS. Some functions are actually named | |
33576 | something starting with __ and the normal name is an alias. */ | |
33577 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
33578 | choke me | |
33579 | #else | |
33580 | char (*f) () = sched_yield; | |
33581 | #endif | |
33582 | #ifdef __cplusplus | |
33583 | } | |
33584 | #endif | |
33585 | ||
33586 | int | |
33587 | main () | |
33588 | { | |
33589 | return f != sched_yield; | |
33590 | ; | |
33591 | return 0; | |
33592 | } | |
33593 | _ACEOF | |
33594 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33595 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33596 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33597 | ac_status=$? |
ac1cb8d3 VS |
33598 | grep -v '^ *+' conftest.er1 >conftest.err |
33599 | rm -f conftest.er1 | |
33600 | cat conftest.err >&5 | |
a848cd7e SC |
33601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33602 | (exit $ac_status); } && | |
89be85c2 VS |
33603 | { ac_try='test -z "$ac_c_werror_flag" |
33604 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33606 | (eval $ac_try) 2>&5 | |
33607 | ac_status=$? | |
33608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33609 | (exit $ac_status); }; } && | |
33610 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33612 | (eval $ac_try) 2>&5 | |
33613 | ac_status=$? | |
33614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33615 | (exit $ac_status); }; }; then | |
33616 | ac_cv_func_sched_yield=yes | |
33617 | else | |
33618 | echo "$as_me: failed program was:" >&5 | |
33619 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33620 | ||
33621 | ac_cv_func_sched_yield=no | |
33622 | fi | |
ac1cb8d3 VS |
33623 | rm -f conftest.err conftest.$ac_objext \ |
33624 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33625 | fi |
33626 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 | |
33627 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 | |
33628 | if test $ac_cv_func_sched_yield = yes; then | |
33629 | cat >>confdefs.h <<\_ACEOF | |
33630 | #define HAVE_SCHED_YIELD 1 | |
33631 | _ACEOF | |
33632 | ||
33633 | else | |
33634 | ||
33635 | echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5 | |
33636 | echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6 | |
33637 | if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then | |
33638 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33639 | else | |
33640 | ac_check_lib_save_LIBS=$LIBS | |
33641 | LIBS="-lposix4 $LIBS" | |
33642 | cat >conftest.$ac_ext <<_ACEOF | |
33643 | /* confdefs.h. */ | |
33644 | _ACEOF | |
33645 | cat confdefs.h >>conftest.$ac_ext | |
33646 | cat >>conftest.$ac_ext <<_ACEOF | |
33647 | /* end confdefs.h. */ | |
33648 | ||
33649 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33650 | #ifdef __cplusplus | |
33651 | extern "C" | |
33652 | #endif | |
33653 | /* We use char because int might match the return type of a gcc2 | |
33654 | builtin and then its argument prototype would still apply. */ | |
33655 | char sched_yield (); | |
33656 | int | |
33657 | main () | |
33658 | { | |
33659 | sched_yield (); | |
33660 | ; | |
33661 | return 0; | |
33662 | } | |
33663 | _ACEOF | |
33664 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33665 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33666 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33667 | ac_status=$? |
ac1cb8d3 VS |
33668 | grep -v '^ *+' conftest.er1 >conftest.err |
33669 | rm -f conftest.er1 | |
33670 | cat conftest.err >&5 | |
a848cd7e SC |
33671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33672 | (exit $ac_status); } && | |
89be85c2 VS |
33673 | { ac_try='test -z "$ac_c_werror_flag" |
33674 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33676 | (eval $ac_try) 2>&5 | |
33677 | ac_status=$? | |
33678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33679 | (exit $ac_status); }; } && | |
33680 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33682 | (eval $ac_try) 2>&5 | |
33683 | ac_status=$? | |
33684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33685 | (exit $ac_status); }; }; then | |
33686 | ac_cv_lib_posix4_sched_yield=yes | |
33687 | else | |
33688 | echo "$as_me: failed program was:" >&5 | |
33689 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33690 | ||
33691 | ac_cv_lib_posix4_sched_yield=no | |
33692 | fi | |
ac1cb8d3 VS |
33693 | rm -f conftest.err conftest.$ac_objext \ |
33694 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33695 | LIBS=$ac_check_lib_save_LIBS |
33696 | fi | |
33697 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5 | |
33698 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6 | |
33699 | if test $ac_cv_lib_posix4_sched_yield = yes; then | |
33700 | cat >>confdefs.h <<\_ACEOF | |
33701 | #define HAVE_SCHED_YIELD 1 | |
33702 | _ACEOF | |
33703 | POSIX4_LINK=" -lposix4" | |
33704 | else | |
33705 | { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5 | |
33706 | echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;} | |
33707 | ||
33708 | fi | |
33709 | ||
33710 | ||
33711 | ||
33712 | fi | |
33713 | ||
33714 | fi | |
33715 | ||
33716 | HAVE_PRIOR_FUNCS=0 | |
33717 | echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5 | |
33718 | echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6 | |
33719 | if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then | |
33720 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33721 | else | |
33722 | cat >conftest.$ac_ext <<_ACEOF | |
33723 | /* confdefs.h. */ | |
33724 | _ACEOF | |
33725 | cat confdefs.h >>conftest.$ac_ext | |
33726 | cat >>conftest.$ac_ext <<_ACEOF | |
33727 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33728 | /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy. |
33729 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33730 | #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy | |
33731 | ||
a848cd7e SC |
33732 | /* System header to define __stub macros and hopefully few prototypes, |
33733 | which can conflict with char pthread_attr_getschedpolicy (); below. | |
33734 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33735 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33736 | |
a848cd7e SC |
33737 | #ifdef __STDC__ |
33738 | # include <limits.h> | |
33739 | #else | |
33740 | # include <assert.h> | |
33741 | #endif | |
ac1cb8d3 VS |
33742 | |
33743 | #undef pthread_attr_getschedpolicy | |
33744 | ||
a848cd7e SC |
33745 | /* Override any gcc2 internal prototype to avoid an error. */ |
33746 | #ifdef __cplusplus | |
33747 | extern "C" | |
33748 | { | |
33749 | #endif | |
33750 | /* We use char because int might match the return type of a gcc2 | |
33751 | builtin and then its argument prototype would still apply. */ | |
33752 | char pthread_attr_getschedpolicy (); | |
33753 | /* The GNU C library defines this for functions which it implements | |
33754 | to always fail with ENOSYS. Some functions are actually named | |
33755 | something starting with __ and the normal name is an alias. */ | |
33756 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
33757 | choke me | |
33758 | #else | |
33759 | char (*f) () = pthread_attr_getschedpolicy; | |
33760 | #endif | |
33761 | #ifdef __cplusplus | |
33762 | } | |
33763 | #endif | |
33764 | ||
33765 | int | |
33766 | main () | |
33767 | { | |
33768 | return f != pthread_attr_getschedpolicy; | |
33769 | ; | |
33770 | return 0; | |
33771 | } | |
33772 | _ACEOF | |
33773 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33774 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33775 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33776 | ac_status=$? |
ac1cb8d3 VS |
33777 | grep -v '^ *+' conftest.er1 >conftest.err |
33778 | rm -f conftest.er1 | |
33779 | cat conftest.err >&5 | |
a848cd7e SC |
33780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33781 | (exit $ac_status); } && | |
89be85c2 VS |
33782 | { ac_try='test -z "$ac_c_werror_flag" |
33783 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33785 | (eval $ac_try) 2>&5 | |
33786 | ac_status=$? | |
33787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33788 | (exit $ac_status); }; } && | |
33789 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33791 | (eval $ac_try) 2>&5 | |
33792 | ac_status=$? | |
33793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33794 | (exit $ac_status); }; }; then | |
33795 | ac_cv_func_pthread_attr_getschedpolicy=yes | |
33796 | else | |
33797 | echo "$as_me: failed program was:" >&5 | |
33798 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33799 | ||
33800 | ac_cv_func_pthread_attr_getschedpolicy=no | |
33801 | fi | |
ac1cb8d3 VS |
33802 | rm -f conftest.err conftest.$ac_objext \ |
33803 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33804 | fi |
33805 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5 | |
33806 | echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6 | |
33807 | if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then | |
33808 | echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5 | |
33809 | echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6 | |
33810 | if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then | |
33811 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33812 | else | |
33813 | cat >conftest.$ac_ext <<_ACEOF | |
33814 | /* confdefs.h. */ | |
33815 | _ACEOF | |
33816 | cat confdefs.h >>conftest.$ac_ext | |
33817 | cat >>conftest.$ac_ext <<_ACEOF | |
33818 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33819 | /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam. |
33820 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33821 | #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam | |
33822 | ||
a848cd7e SC |
33823 | /* System header to define __stub macros and hopefully few prototypes, |
33824 | which can conflict with char pthread_attr_setschedparam (); below. | |
33825 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33826 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33827 | |
a848cd7e SC |
33828 | #ifdef __STDC__ |
33829 | # include <limits.h> | |
33830 | #else | |
33831 | # include <assert.h> | |
33832 | #endif | |
ac1cb8d3 VS |
33833 | |
33834 | #undef pthread_attr_setschedparam | |
33835 | ||
a848cd7e SC |
33836 | /* Override any gcc2 internal prototype to avoid an error. */ |
33837 | #ifdef __cplusplus | |
33838 | extern "C" | |
33839 | { | |
33840 | #endif | |
33841 | /* We use char because int might match the return type of a gcc2 | |
33842 | builtin and then its argument prototype would still apply. */ | |
33843 | char pthread_attr_setschedparam (); | |
33844 | /* The GNU C library defines this for functions which it implements | |
33845 | to always fail with ENOSYS. Some functions are actually named | |
33846 | something starting with __ and the normal name is an alias. */ | |
33847 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
33848 | choke me | |
33849 | #else | |
33850 | char (*f) () = pthread_attr_setschedparam; | |
33851 | #endif | |
33852 | #ifdef __cplusplus | |
33853 | } | |
33854 | #endif | |
33855 | ||
33856 | int | |
33857 | main () | |
33858 | { | |
33859 | return f != pthread_attr_setschedparam; | |
33860 | ; | |
33861 | return 0; | |
33862 | } | |
33863 | _ACEOF | |
33864 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33865 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33866 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33867 | ac_status=$? |
ac1cb8d3 VS |
33868 | grep -v '^ *+' conftest.er1 >conftest.err |
33869 | rm -f conftest.er1 | |
33870 | cat conftest.err >&5 | |
a848cd7e SC |
33871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33872 | (exit $ac_status); } && | |
89be85c2 VS |
33873 | { ac_try='test -z "$ac_c_werror_flag" |
33874 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33876 | (eval $ac_try) 2>&5 | |
33877 | ac_status=$? | |
33878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33879 | (exit $ac_status); }; } && | |
33880 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33882 | (eval $ac_try) 2>&5 | |
33883 | ac_status=$? | |
33884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33885 | (exit $ac_status); }; }; then | |
33886 | ac_cv_func_pthread_attr_setschedparam=yes | |
33887 | else | |
33888 | echo "$as_me: failed program was:" >&5 | |
33889 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33890 | ||
33891 | ac_cv_func_pthread_attr_setschedparam=no | |
33892 | fi | |
ac1cb8d3 VS |
33893 | rm -f conftest.err conftest.$ac_objext \ |
33894 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33895 | fi |
33896 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5 | |
33897 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6 | |
33898 | if test $ac_cv_func_pthread_attr_setschedparam = yes; then | |
33899 | echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5 | |
33900 | echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6 | |
33901 | if test "${ac_cv_func_sched_get_priority_max+set}" = set; then | |
33902 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33903 | else | |
33904 | cat >conftest.$ac_ext <<_ACEOF | |
33905 | /* confdefs.h. */ | |
33906 | _ACEOF | |
33907 | cat confdefs.h >>conftest.$ac_ext | |
33908 | cat >>conftest.$ac_ext <<_ACEOF | |
33909 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33910 | /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max. |
33911 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33912 | #define sched_get_priority_max innocuous_sched_get_priority_max | |
33913 | ||
a848cd7e SC |
33914 | /* System header to define __stub macros and hopefully few prototypes, |
33915 | which can conflict with char sched_get_priority_max (); below. | |
33916 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33917 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33918 | |
a848cd7e SC |
33919 | #ifdef __STDC__ |
33920 | # include <limits.h> | |
33921 | #else | |
33922 | # include <assert.h> | |
33923 | #endif | |
ac1cb8d3 VS |
33924 | |
33925 | #undef sched_get_priority_max | |
33926 | ||
a848cd7e SC |
33927 | /* Override any gcc2 internal prototype to avoid an error. */ |
33928 | #ifdef __cplusplus | |
33929 | extern "C" | |
33930 | { | |
33931 | #endif | |
33932 | /* We use char because int might match the return type of a gcc2 | |
33933 | builtin and then its argument prototype would still apply. */ | |
33934 | char sched_get_priority_max (); | |
33935 | /* The GNU C library defines this for functions which it implements | |
33936 | to always fail with ENOSYS. Some functions are actually named | |
33937 | something starting with __ and the normal name is an alias. */ | |
33938 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
33939 | choke me | |
33940 | #else | |
33941 | char (*f) () = sched_get_priority_max; | |
33942 | #endif | |
33943 | #ifdef __cplusplus | |
33944 | } | |
33945 | #endif | |
33946 | ||
33947 | int | |
33948 | main () | |
33949 | { | |
33950 | return f != sched_get_priority_max; | |
33951 | ; | |
33952 | return 0; | |
33953 | } | |
33954 | _ACEOF | |
33955 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33956 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33957 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33958 | ac_status=$? |
ac1cb8d3 VS |
33959 | grep -v '^ *+' conftest.er1 >conftest.err |
33960 | rm -f conftest.er1 | |
33961 | cat conftest.err >&5 | |
a848cd7e SC |
33962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33963 | (exit $ac_status); } && | |
89be85c2 VS |
33964 | { ac_try='test -z "$ac_c_werror_flag" |
33965 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33967 | (eval $ac_try) 2>&5 | |
33968 | ac_status=$? | |
33969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33970 | (exit $ac_status); }; } && | |
33971 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33973 | (eval $ac_try) 2>&5 | |
33974 | ac_status=$? | |
33975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33976 | (exit $ac_status); }; }; then | |
33977 | ac_cv_func_sched_get_priority_max=yes | |
33978 | else | |
33979 | echo "$as_me: failed program was:" >&5 | |
33980 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33981 | ||
33982 | ac_cv_func_sched_get_priority_max=no | |
33983 | fi | |
ac1cb8d3 VS |
33984 | rm -f conftest.err conftest.$ac_objext \ |
33985 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33986 | fi |
33987 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5 | |
33988 | echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6 | |
33989 | if test $ac_cv_func_sched_get_priority_max = yes; then | |
33990 | HAVE_PRIOR_FUNCS=1 | |
33991 | else | |
33992 | echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5 | |
33993 | echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6 | |
33994 | if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then | |
33995 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33996 | else | |
33997 | ac_check_lib_save_LIBS=$LIBS | |
33998 | LIBS="-lposix4 $LIBS" | |
33999 | cat >conftest.$ac_ext <<_ACEOF | |
34000 | /* confdefs.h. */ | |
34001 | _ACEOF | |
34002 | cat confdefs.h >>conftest.$ac_ext | |
34003 | cat >>conftest.$ac_ext <<_ACEOF | |
34004 | /* end confdefs.h. */ | |
34005 | ||
34006 | /* Override any gcc2 internal prototype to avoid an error. */ | |
34007 | #ifdef __cplusplus | |
34008 | extern "C" | |
34009 | #endif | |
34010 | /* We use char because int might match the return type of a gcc2 | |
34011 | builtin and then its argument prototype would still apply. */ | |
34012 | char sched_get_priority_max (); | |
34013 | int | |
34014 | main () | |
34015 | { | |
34016 | sched_get_priority_max (); | |
34017 | ; | |
34018 | return 0; | |
34019 | } | |
34020 | _ACEOF | |
34021 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34022 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34023 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34024 | ac_status=$? |
ac1cb8d3 VS |
34025 | grep -v '^ *+' conftest.er1 >conftest.err |
34026 | rm -f conftest.er1 | |
34027 | cat conftest.err >&5 | |
a848cd7e SC |
34028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34029 | (exit $ac_status); } && | |
89be85c2 VS |
34030 | { ac_try='test -z "$ac_c_werror_flag" |
34031 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
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); }; } && | |
34037 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34039 | (eval $ac_try) 2>&5 | |
34040 | ac_status=$? | |
34041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34042 | (exit $ac_status); }; }; then | |
34043 | ac_cv_lib_posix4_sched_get_priority_max=yes | |
34044 | else | |
34045 | echo "$as_me: failed program was:" >&5 | |
34046 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34047 | ||
34048 | ac_cv_lib_posix4_sched_get_priority_max=no | |
34049 | fi | |
ac1cb8d3 VS |
34050 | rm -f conftest.err conftest.$ac_objext \ |
34051 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34052 | LIBS=$ac_check_lib_save_LIBS |
34053 | fi | |
34054 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5 | |
34055 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6 | |
34056 | if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then | |
34057 | ||
34058 | HAVE_PRIOR_FUNCS=1 | |
34059 | POSIX4_LINK=" -lposix4" | |
34060 | ||
34061 | fi | |
34062 | ||
34063 | ||
34064 | fi | |
34065 | ||
34066 | ||
34067 | fi | |
34068 | ||
34069 | ||
34070 | fi | |
34071 | ||
34072 | ||
34073 | if test "$HAVE_PRIOR_FUNCS" = 1; then | |
34074 | cat >>confdefs.h <<\_ACEOF | |
34075 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
34076 | _ACEOF | |
34077 | ||
34078 | else | |
34079 | { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5 | |
34080 | echo "$as_me: WARNING: Setting thread priority will not work" >&2;} | |
34081 | fi | |
34082 | ||
34083 | echo "$as_me:$LINENO: checking for pthread_cancel" >&5 | |
34084 | echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6 | |
34085 | if test "${ac_cv_func_pthread_cancel+set}" = set; then | |
34086 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34087 | else | |
34088 | cat >conftest.$ac_ext <<_ACEOF | |
34089 | /* confdefs.h. */ | |
34090 | _ACEOF | |
34091 | cat confdefs.h >>conftest.$ac_ext | |
34092 | cat >>conftest.$ac_ext <<_ACEOF | |
34093 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34094 | /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel. |
34095 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34096 | #define pthread_cancel innocuous_pthread_cancel | |
34097 | ||
a848cd7e SC |
34098 | /* System header to define __stub macros and hopefully few prototypes, |
34099 | which can conflict with char pthread_cancel (); below. | |
34100 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34101 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34102 | |
a848cd7e SC |
34103 | #ifdef __STDC__ |
34104 | # include <limits.h> | |
34105 | #else | |
34106 | # include <assert.h> | |
34107 | #endif | |
ac1cb8d3 VS |
34108 | |
34109 | #undef pthread_cancel | |
34110 | ||
a848cd7e SC |
34111 | /* Override any gcc2 internal prototype to avoid an error. */ |
34112 | #ifdef __cplusplus | |
34113 | extern "C" | |
34114 | { | |
34115 | #endif | |
34116 | /* We use char because int might match the return type of a gcc2 | |
34117 | builtin and then its argument prototype would still apply. */ | |
34118 | char pthread_cancel (); | |
34119 | /* The GNU C library defines this for functions which it implements | |
34120 | to always fail with ENOSYS. Some functions are actually named | |
34121 | something starting with __ and the normal name is an alias. */ | |
34122 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
34123 | choke me | |
34124 | #else | |
34125 | char (*f) () = pthread_cancel; | |
34126 | #endif | |
34127 | #ifdef __cplusplus | |
34128 | } | |
34129 | #endif | |
34130 | ||
34131 | int | |
34132 | main () | |
34133 | { | |
34134 | return f != pthread_cancel; | |
34135 | ; | |
34136 | return 0; | |
34137 | } | |
34138 | _ACEOF | |
34139 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34140 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34141 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34142 | ac_status=$? |
ac1cb8d3 VS |
34143 | grep -v '^ *+' conftest.er1 >conftest.err |
34144 | rm -f conftest.er1 | |
34145 | cat conftest.err >&5 | |
a848cd7e SC |
34146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34147 | (exit $ac_status); } && | |
89be85c2 VS |
34148 | { ac_try='test -z "$ac_c_werror_flag" |
34149 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34151 | (eval $ac_try) 2>&5 | |
34152 | ac_status=$? | |
34153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34154 | (exit $ac_status); }; } && | |
34155 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34157 | (eval $ac_try) 2>&5 | |
34158 | ac_status=$? | |
34159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34160 | (exit $ac_status); }; }; then | |
34161 | ac_cv_func_pthread_cancel=yes | |
34162 | else | |
34163 | echo "$as_me: failed program was:" >&5 | |
34164 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34165 | ||
34166 | ac_cv_func_pthread_cancel=no | |
34167 | fi | |
ac1cb8d3 VS |
34168 | rm -f conftest.err conftest.$ac_objext \ |
34169 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34170 | fi |
34171 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5 | |
34172 | echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6 | |
34173 | if test $ac_cv_func_pthread_cancel = yes; then | |
34174 | cat >>confdefs.h <<\_ACEOF | |
34175 | #define HAVE_PTHREAD_CANCEL 1 | |
34176 | _ACEOF | |
34177 | ||
34178 | else | |
34179 | { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5 | |
34180 | echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;} | |
34181 | fi | |
34182 | ||
34183 | ||
34184 | ||
34185 | ||
34186 | echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5 | |
34187 | echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6 | |
34188 | if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then | |
34189 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34190 | else | |
34191 | ||
34192 | cat >conftest.$ac_ext <<_ACEOF | |
34193 | /* confdefs.h. */ | |
34194 | _ACEOF | |
34195 | cat confdefs.h >>conftest.$ac_ext | |
34196 | cat >>conftest.$ac_ext <<_ACEOF | |
34197 | /* end confdefs.h. */ | |
34198 | #include <pthread.h> | |
34199 | int | |
34200 | main () | |
34201 | { | |
34202 | ||
34203 | pthread_mutexattr_t attr; | |
34204 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
34205 | ||
34206 | ; | |
34207 | return 0; | |
34208 | } | |
34209 | _ACEOF | |
34210 | rm -f conftest.$ac_objext | |
34211 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34212 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34213 | ac_status=$? |
ac1cb8d3 VS |
34214 | grep -v '^ *+' conftest.er1 >conftest.err |
34215 | rm -f conftest.er1 | |
34216 | cat conftest.err >&5 | |
a848cd7e SC |
34217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34218 | (exit $ac_status); } && | |
89be85c2 VS |
34219 | { ac_try='test -z "$ac_c_werror_flag" |
34220 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34222 | (eval $ac_try) 2>&5 | |
34223 | ac_status=$? | |
34224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34225 | (exit $ac_status); }; } && | |
34226 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34228 | (eval $ac_try) 2>&5 | |
34229 | ac_status=$? | |
34230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34231 | (exit $ac_status); }; }; then | |
34232 | ||
34233 | wx_cv_type_pthread_mutexattr_t=yes | |
34234 | ||
34235 | else | |
34236 | echo "$as_me: failed program was:" >&5 | |
34237 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34238 | ||
34239 | ||
34240 | wx_cv_type_pthread_mutexattr_t=no | |
34241 | ||
34242 | ||
34243 | fi | |
ac1cb8d3 | 34244 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34245 | |
34246 | fi | |
34247 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5 | |
34248 | echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6 | |
34249 | ||
34250 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
34251 | cat >>confdefs.h <<\_ACEOF | |
34252 | #define HAVE_PTHREAD_MUTEXATTR_T 1 | |
34253 | _ACEOF | |
34254 | ||
34255 | else | |
34256 | echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 | |
34257 | echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6 | |
34258 | if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then | |
34259 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34260 | else | |
34261 | ||
34262 | cat >conftest.$ac_ext <<_ACEOF | |
34263 | /* confdefs.h. */ | |
34264 | _ACEOF | |
34265 | cat confdefs.h >>conftest.$ac_ext | |
34266 | cat >>conftest.$ac_ext <<_ACEOF | |
34267 | /* end confdefs.h. */ | |
34268 | #include <pthread.h> | |
34269 | int | |
34270 | main () | |
34271 | { | |
34272 | ||
34273 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
34274 | ||
34275 | ; | |
34276 | return 0; | |
34277 | } | |
34278 | _ACEOF | |
34279 | rm -f conftest.$ac_objext | |
34280 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34281 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34282 | ac_status=$? |
ac1cb8d3 VS |
34283 | grep -v '^ *+' conftest.er1 >conftest.err |
34284 | rm -f conftest.er1 | |
34285 | cat conftest.err >&5 | |
a848cd7e SC |
34286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34287 | (exit $ac_status); } && | |
89be85c2 VS |
34288 | { ac_try='test -z "$ac_c_werror_flag" |
34289 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34291 | (eval $ac_try) 2>&5 | |
34292 | ac_status=$? | |
34293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34294 | (exit $ac_status); }; } && | |
34295 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34297 | (eval $ac_try) 2>&5 | |
34298 | ac_status=$? | |
34299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34300 | (exit $ac_status); }; }; then | |
34301 | ||
34302 | wx_cv_type_pthread_rec_mutex_init=yes | |
34303 | ||
34304 | else | |
34305 | echo "$as_me: failed program was:" >&5 | |
34306 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34307 | ||
34308 | ||
34309 | wx_cv_type_pthread_rec_mutex_init=no | |
34310 | ||
34311 | ||
34312 | fi | |
ac1cb8d3 | 34313 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34314 | |
34315 | fi | |
34316 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5 | |
34317 | echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6 | |
34318 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then | |
34319 | cat >>confdefs.h <<\_ACEOF | |
34320 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 | |
34321 | _ACEOF | |
34322 | ||
34323 | else | |
34324 | { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5 | |
34325 | echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;} | |
34326 | fi | |
34327 | fi | |
34328 | fi | |
34329 | ||
34330 | else | |
34331 | if test "$wxUSE_THREADS" = "yes" ; then | |
34332 | case "${host}" in | |
34333 | *-*-mingw32* ) | |
34334 | echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5 | |
34335 | echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6 | |
34336 | if test "${wx_cv_cflags_mthread+set}" = set; then | |
34337 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34338 | else | |
34339 | ||
34340 | CFLAGS_OLD="$CFLAGS" | |
34341 | CFLAGS="$CFLAGS -mthreads" | |
34342 | cat >conftest.$ac_ext <<_ACEOF | |
34343 | /* confdefs.h. */ | |
34344 | _ACEOF | |
34345 | cat confdefs.h >>conftest.$ac_ext | |
34346 | cat >>conftest.$ac_ext <<_ACEOF | |
34347 | /* end confdefs.h. */ | |
34348 | ||
34349 | int | |
34350 | main () | |
34351 | { | |
34352 | ||
34353 | ; | |
34354 | return 0; | |
34355 | } | |
34356 | _ACEOF | |
34357 | rm -f conftest.$ac_objext | |
34358 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34359 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34360 | ac_status=$? |
ac1cb8d3 VS |
34361 | grep -v '^ *+' conftest.er1 >conftest.err |
34362 | rm -f conftest.er1 | |
34363 | cat conftest.err >&5 | |
a848cd7e SC |
34364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34365 | (exit $ac_status); } && | |
89be85c2 VS |
34366 | { ac_try='test -z "$ac_c_werror_flag" |
34367 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34369 | (eval $ac_try) 2>&5 | |
34370 | ac_status=$? | |
34371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34372 | (exit $ac_status); }; } && | |
34373 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34375 | (eval $ac_try) 2>&5 | |
34376 | ac_status=$? | |
34377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34378 | (exit $ac_status); }; }; then | |
34379 | wx_cv_cflags_mthread=yes | |
34380 | else | |
34381 | echo "$as_me: failed program was:" >&5 | |
34382 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34383 | ||
34384 | wx_cv_cflags_mthread=no | |
34385 | ||
34386 | fi | |
ac1cb8d3 | 34387 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34388 | |
34389 | ||
34390 | fi | |
34391 | echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5 | |
34392 | echo "${ECHO_T}$wx_cv_cflags_mthread" >&6 | |
34393 | ||
34394 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
34395 | CXXFLAGS="$CXXFLAGS -mthreads" | |
34396 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads" | |
34397 | LDFLAGS="$LDFLAGS -mthreads" | |
34398 | else | |
34399 | CFLAGS="$CFLAGS_OLD" | |
34400 | fi | |
34401 | ;; | |
34402 | *-pc-os2*emx ) | |
34403 | CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__" | |
34404 | CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__" | |
34405 | LDFLAGS="$LDFLAGS -Zmt" | |
34406 | ;; | |
34407 | esac | |
34408 | fi | |
34409 | fi | |
34410 | ||
34411 | if test "$wxUSE_THREADS" = "yes"; then | |
34412 | cat >>confdefs.h <<\_ACEOF | |
34413 | #define wxUSE_THREADS 1 | |
34414 | _ACEOF | |
34415 | ||
34416 | ||
34417 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
34418 | else | |
34419 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
34420 | echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5 | |
34421 | echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6 | |
34422 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then | |
34423 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
34424 | echo "$as_me:$LINENO: result: yes" >&5 | |
34425 | echo "${ECHO_T}yes" >&6 | |
34426 | else | |
34427 | echo "$as_me:$LINENO: result: no" >&5 | |
34428 | echo "${ECHO_T}no" >&6 | |
34429 | fi | |
34430 | fi | |
34431 | fi | |
34432 | ||
34433 | if test "$WXGTK20" = 1 ; then | |
34434 | cat >>confdefs.h <<_ACEOF | |
34435 | #define __WXGTK20__ $WXGTK20 | |
34436 | _ACEOF | |
34437 | ||
34438 | WXGTK12=1 | |
34439 | fi | |
34440 | ||
34441 | if test "$WXGTK12" = 1 ; then | |
34442 | cat >>confdefs.h <<_ACEOF | |
34443 | #define __WXGTK12__ $WXGTK12 | |
34444 | _ACEOF | |
34445 | ||
34446 | fi | |
34447 | ||
34448 | if test "$WXGTK127" = 1 ; then | |
34449 | cat >>confdefs.h <<_ACEOF | |
34450 | #define __WXGTK127__ $WXGTK127 | |
34451 | _ACEOF | |
34452 | ||
34453 | fi | |
34454 | ||
34455 | if test "$WXGPE" = 1 ; then | |
34456 | cat >>confdefs.h <<_ACEOF | |
34457 | #define __WXGPE__ $WXGPE | |
34458 | _ACEOF | |
34459 | ||
34460 | fi | |
34461 | ||
34462 | WXDEBUG= | |
34463 | ||
34464 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
34465 | WXDEBUG="-g" | |
34466 | wxUSE_OPTIMISE=no | |
34467 | fi | |
34468 | ||
34469 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
34470 | wxUSE_DEBUG_INFO=yes | |
34471 | WXDEBUG="-ggdb" | |
34472 | fi | |
34473 | ||
34474 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
34475 | cat >>confdefs.h <<\_ACEOF | |
34476 | #define WXDEBUG 1 | |
34477 | _ACEOF | |
34478 | ||
34479 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
34480 | else | |
34481 | if test "$wxUSE_GTK" = 1 ; then | |
34482 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
34483 | fi | |
34484 | fi | |
34485 | ||
34486 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
34487 | cat >>confdefs.h <<\_ACEOF | |
34488 | #define wxUSE_MEMORY_TRACING 1 | |
34489 | _ACEOF | |
34490 | ||
34491 | cat >>confdefs.h <<\_ACEOF | |
34492 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
34493 | _ACEOF | |
34494 | ||
34495 | cat >>confdefs.h <<\_ACEOF | |
34496 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
34497 | _ACEOF | |
34498 | ||
34499 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
34500 | fi | |
34501 | ||
34502 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
34503 | DMALLOC_LIBS="-ldmalloc" | |
34504 | fi | |
34505 | ||
34506 | PROFILE= | |
34507 | if test "$wxUSE_PROFILE" = "yes" ; then | |
34508 | PROFILE=" -pg" | |
34509 | fi | |
34510 | ||
34511 | CODE_GEN_FLAGS= | |
34512 | CODE_GEN_FLAGS_CXX= | |
34513 | if test "$GCC" = "yes" ; then | |
34514 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
34515 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
34516 | fi | |
34517 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
34518 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
34519 | fi | |
34520 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
34521 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
34522 | fi | |
34523 | ||
34524 | case "${host}" in | |
34525 | powerpc*-*-aix* ) | |
34526 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
34527 | ;; | |
34528 | *-hppa* ) | |
34529 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections" | |
34530 | ;; | |
34531 | esac | |
34532 | fi | |
34533 | ||
34534 | OPTIMISE= | |
34535 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
34536 | if test "$GCC" = yes ; then | |
34537 | OPTIMISE="-O0" | |
34538 | fi | |
34539 | else | |
34540 | if test "$GCC" = yes ; then | |
34541 | OPTIMISE="-O2" | |
34542 | ||
34543 | case "${host}" in | |
34544 | i586-*-*|i686-*-* ) | |
34545 | OPTIMISE="${OPTIMISE} " | |
34546 | ;; | |
34547 | esac | |
34548 | else | |
34549 | OPTIMISE="-O" | |
34550 | fi | |
34551 | fi | |
34552 | ||
34553 | ||
34554 | if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then | |
34555 | cat >>confdefs.h <<\_ACEOF | |
34556 | #define WXWIN_COMPATIBILITY_2_2 1 | |
34557 | _ACEOF | |
34558 | ||
34559 | ||
34560 | WXWIN_COMPATIBILITY_2_4="yes" | |
34561 | fi | |
34562 | ||
34563 | if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then | |
34564 | cat >>confdefs.h <<\_ACEOF | |
34565 | #define WXWIN_COMPATIBILITY_2_4 1 | |
34566 | _ACEOF | |
34567 | ||
34568 | fi | |
34569 | ||
34570 | ||
34571 | if test "$wxUSE_GUI" = "yes"; then | |
881bfcd6 | 34572 | cat >>confdefs.h <<\_ACEOF |
a848cd7e SC |
34573 | #define wxUSE_GUI 1 |
34574 | _ACEOF | |
34575 | ||
34576 | ||
370fd4c2 | 34577 | fi |
a848cd7e SC |
34578 | |
34579 | ||
34580 | if test "$wxUSE_UNIX" = "yes"; then | |
34581 | cat >>confdefs.h <<\_ACEOF | |
34582 | #define wxUSE_UNIX 1 | |
34583 | _ACEOF | |
34584 | ||
34585 | fi | |
34586 | ||
34587 | ||
34588 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
34589 | ||
34590 | HAVE_DL_FUNCS=0 | |
34591 | HAVE_SHL_FUNCS=0 | |
34592 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
34593 | if test "$USE_DARWIN" = 1; then | |
34594 | HAVE_DL_FUNCS=1 | |
34595 | else | |
34596 | ||
34597 | for ac_func in dlopen | |
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); } && | |
89be85c2 VS |
34665 | { ac_try='test -z "$ac_c_werror_flag" |
34666 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34668 | (eval $ac_try) 2>&5 | |
34669 | ac_status=$? | |
34670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34671 | (exit $ac_status); }; } && | |
34672 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34674 | (eval $ac_try) 2>&5 | |
34675 | ac_status=$? | |
34676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34677 | (exit $ac_status); }; }; then | |
34678 | eval "$as_ac_var=yes" | |
34679 | else | |
34680 | echo "$as_me: failed program was:" >&5 | |
34681 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34682 | ||
34683 | eval "$as_ac_var=no" | |
34684 | fi | |
ac1cb8d3 VS |
34685 | rm -f conftest.err conftest.$ac_objext \ |
34686 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34687 | fi |
34688 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34689 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34690 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34691 | cat >>confdefs.h <<_ACEOF | |
34692 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34693 | _ACEOF | |
34694 | ||
34695 | cat >>confdefs.h <<\_ACEOF | |
34696 | #define HAVE_DLOPEN 1 | |
34697 | _ACEOF | |
34698 | ||
34699 | HAVE_DL_FUNCS=1 | |
34700 | ||
34701 | else | |
34702 | ||
34703 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
34704 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
34705 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
34706 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34707 | else | |
34708 | ac_check_lib_save_LIBS=$LIBS | |
34709 | LIBS="-ldl $LIBS" | |
34710 | cat >conftest.$ac_ext <<_ACEOF | |
34711 | /* confdefs.h. */ | |
34712 | _ACEOF | |
34713 | cat confdefs.h >>conftest.$ac_ext | |
34714 | cat >>conftest.$ac_ext <<_ACEOF | |
34715 | /* end confdefs.h. */ | |
34716 | ||
34717 | /* Override any gcc2 internal prototype to avoid an error. */ | |
34718 | #ifdef __cplusplus | |
34719 | extern "C" | |
34720 | #endif | |
34721 | /* We use char because int might match the return type of a gcc2 | |
34722 | builtin and then its argument prototype would still apply. */ | |
34723 | char dlopen (); | |
34724 | int | |
34725 | main () | |
34726 | { | |
34727 | dlopen (); | |
34728 | ; | |
34729 | return 0; | |
34730 | } | |
34731 | _ACEOF | |
34732 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34733 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34734 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34735 | ac_status=$? |
ac1cb8d3 VS |
34736 | grep -v '^ *+' conftest.er1 >conftest.err |
34737 | rm -f conftest.er1 | |
34738 | cat conftest.err >&5 | |
a848cd7e SC |
34739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34740 | (exit $ac_status); } && | |
89be85c2 VS |
34741 | { ac_try='test -z "$ac_c_werror_flag" |
34742 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34744 | (eval $ac_try) 2>&5 | |
34745 | ac_status=$? | |
34746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34747 | (exit $ac_status); }; } && | |
34748 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34750 | (eval $ac_try) 2>&5 | |
34751 | ac_status=$? | |
34752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34753 | (exit $ac_status); }; }; then | |
34754 | ac_cv_lib_dl_dlopen=yes | |
34755 | else | |
34756 | echo "$as_me: failed program was:" >&5 | |
34757 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34758 | ||
34759 | ac_cv_lib_dl_dlopen=no | |
34760 | fi | |
ac1cb8d3 VS |
34761 | rm -f conftest.err conftest.$ac_objext \ |
34762 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34763 | LIBS=$ac_check_lib_save_LIBS |
34764 | fi | |
34765 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
34766 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
34767 | if test $ac_cv_lib_dl_dlopen = yes; then | |
34768 | ||
34769 | cat >>confdefs.h <<\_ACEOF | |
34770 | #define HAVE_DLOPEN 1 | |
34771 | _ACEOF | |
34772 | ||
34773 | HAVE_DL_FUNCS=1 | |
34774 | DL_LINK=" -ldl$DL_LINK" | |
34775 | ||
34776 | else | |
34777 | ||
34778 | ||
34779 | for ac_func in shl_load | |
34780 | do | |
34781 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34782 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34783 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34784 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34785 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34786 | else | |
34787 | cat >conftest.$ac_ext <<_ACEOF | |
34788 | /* confdefs.h. */ | |
34789 | _ACEOF | |
34790 | cat confdefs.h >>conftest.$ac_ext | |
34791 | cat >>conftest.$ac_ext <<_ACEOF | |
34792 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34793 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34794 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34795 | #define $ac_func innocuous_$ac_func | |
34796 | ||
a848cd7e SC |
34797 | /* System header to define __stub macros and hopefully few prototypes, |
34798 | which can conflict with char $ac_func (); below. | |
34799 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34800 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34801 | |
a848cd7e SC |
34802 | #ifdef __STDC__ |
34803 | # include <limits.h> | |
34804 | #else | |
34805 | # include <assert.h> | |
34806 | #endif | |
ac1cb8d3 VS |
34807 | |
34808 | #undef $ac_func | |
34809 | ||
a848cd7e SC |
34810 | /* Override any gcc2 internal prototype to avoid an error. */ |
34811 | #ifdef __cplusplus | |
34812 | extern "C" | |
34813 | { | |
34814 | #endif | |
34815 | /* We use char because int might match the return type of a gcc2 | |
34816 | builtin and then its argument prototype would still apply. */ | |
34817 | char $ac_func (); | |
34818 | /* The GNU C library defines this for functions which it implements | |
34819 | to always fail with ENOSYS. Some functions are actually named | |
34820 | something starting with __ and the normal name is an alias. */ | |
34821 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34822 | choke me | |
34823 | #else | |
34824 | char (*f) () = $ac_func; | |
34825 | #endif | |
34826 | #ifdef __cplusplus | |
34827 | } | |
34828 | #endif | |
34829 | ||
34830 | int | |
34831 | main () | |
34832 | { | |
34833 | return f != $ac_func; | |
34834 | ; | |
34835 | return 0; | |
34836 | } | |
34837 | _ACEOF | |
34838 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34839 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34840 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34841 | ac_status=$? |
ac1cb8d3 VS |
34842 | grep -v '^ *+' conftest.er1 >conftest.err |
34843 | rm -f conftest.er1 | |
34844 | cat conftest.err >&5 | |
a848cd7e SC |
34845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34846 | (exit $ac_status); } && | |
89be85c2 VS |
34847 | { ac_try='test -z "$ac_c_werror_flag" |
34848 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34850 | (eval $ac_try) 2>&5 | |
34851 | ac_status=$? | |
34852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34853 | (exit $ac_status); }; } && | |
34854 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34856 | (eval $ac_try) 2>&5 | |
34857 | ac_status=$? | |
34858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34859 | (exit $ac_status); }; }; then | |
34860 | eval "$as_ac_var=yes" | |
34861 | else | |
34862 | echo "$as_me: failed program was:" >&5 | |
34863 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34864 | ||
34865 | eval "$as_ac_var=no" | |
34866 | fi | |
ac1cb8d3 VS |
34867 | rm -f conftest.err conftest.$ac_objext \ |
34868 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34869 | fi |
34870 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34871 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34872 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34873 | cat >>confdefs.h <<_ACEOF | |
34874 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34875 | _ACEOF | |
34876 | ||
34877 | cat >>confdefs.h <<\_ACEOF | |
34878 | #define HAVE_SHL_LOAD 1 | |
34879 | _ACEOF | |
34880 | ||
34881 | HAVE_SHL_FUNCS=1 | |
34882 | ||
34883 | else | |
34884 | ||
34885 | echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5 | |
34886 | echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6 | |
34887 | if test "${ac_cv_lib_shl_load_dld+set}" = set; then | |
34888 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34889 | else | |
34890 | ac_check_lib_save_LIBS=$LIBS | |
34891 | LIBS="-lshl_load $LIBS" | |
34892 | cat >conftest.$ac_ext <<_ACEOF | |
34893 | /* confdefs.h. */ | |
34894 | _ACEOF | |
34895 | cat confdefs.h >>conftest.$ac_ext | |
34896 | cat >>conftest.$ac_ext <<_ACEOF | |
34897 | /* end confdefs.h. */ | |
34898 | ||
34899 | /* Override any gcc2 internal prototype to avoid an error. */ | |
34900 | #ifdef __cplusplus | |
34901 | extern "C" | |
34902 | #endif | |
34903 | /* We use char because int might match the return type of a gcc2 | |
34904 | builtin and then its argument prototype would still apply. */ | |
34905 | char dld (); | |
34906 | int | |
34907 | main () | |
34908 | { | |
34909 | dld (); | |
34910 | ; | |
34911 | return 0; | |
34912 | } | |
34913 | _ACEOF | |
34914 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34915 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34916 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34917 | ac_status=$? |
ac1cb8d3 VS |
34918 | grep -v '^ *+' conftest.er1 >conftest.err |
34919 | rm -f conftest.er1 | |
34920 | cat conftest.err >&5 | |
a848cd7e SC |
34921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34922 | (exit $ac_status); } && | |
89be85c2 VS |
34923 | { ac_try='test -z "$ac_c_werror_flag" |
34924 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34926 | (eval $ac_try) 2>&5 | |
34927 | ac_status=$? | |
34928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34929 | (exit $ac_status); }; } && | |
34930 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34932 | (eval $ac_try) 2>&5 | |
34933 | ac_status=$? | |
34934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34935 | (exit $ac_status); }; }; then | |
34936 | ac_cv_lib_shl_load_dld=yes | |
34937 | else | |
34938 | echo "$as_me: failed program was:" >&5 | |
34939 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34940 | ||
34941 | ac_cv_lib_shl_load_dld=no | |
34942 | fi | |
ac1cb8d3 VS |
34943 | rm -f conftest.err conftest.$ac_objext \ |
34944 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34945 | LIBS=$ac_check_lib_save_LIBS |
34946 | fi | |
34947 | echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5 | |
34948 | echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6 | |
34949 | if test $ac_cv_lib_shl_load_dld = yes; then | |
34950 | ||
34951 | HAVE_SHL_FUNCS=1 | |
34952 | DL_LINK=" -ldld$DL_LINK" | |
34953 | ||
34954 | fi | |
34955 | ||
34956 | ||
34957 | fi | |
34958 | done | |
34959 | ||
34960 | ||
34961 | fi | |
34962 | ||
34963 | ||
34964 | fi | |
34965 | done | |
34966 | ||
34967 | ||
34968 | if test "$HAVE_DL_FUNCS" = 1; then | |
34969 | ||
34970 | for ac_func in dlerror | |
34971 | do | |
34972 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34973 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34974 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34975 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34976 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34977 | else | |
34978 | cat >conftest.$ac_ext <<_ACEOF | |
34979 | /* confdefs.h. */ | |
34980 | _ACEOF | |
34981 | cat confdefs.h >>conftest.$ac_ext | |
34982 | cat >>conftest.$ac_ext <<_ACEOF | |
34983 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34984 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34985 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34986 | #define $ac_func innocuous_$ac_func | |
34987 | ||
a848cd7e SC |
34988 | /* System header to define __stub macros and hopefully few prototypes, |
34989 | which can conflict with char $ac_func (); below. | |
34990 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34991 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34992 | |
a848cd7e SC |
34993 | #ifdef __STDC__ |
34994 | # include <limits.h> | |
34995 | #else | |
34996 | # include <assert.h> | |
34997 | #endif | |
ac1cb8d3 VS |
34998 | |
34999 | #undef $ac_func | |
35000 | ||
a848cd7e SC |
35001 | /* Override any gcc2 internal prototype to avoid an error. */ |
35002 | #ifdef __cplusplus | |
35003 | extern "C" | |
35004 | { | |
35005 | #endif | |
35006 | /* We use char because int might match the return type of a gcc2 | |
35007 | builtin and then its argument prototype would still apply. */ | |
35008 | char $ac_func (); | |
35009 | /* The GNU C library defines this for functions which it implements | |
35010 | to always fail with ENOSYS. Some functions are actually named | |
35011 | something starting with __ and the normal name is an alias. */ | |
35012 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35013 | choke me | |
35014 | #else | |
35015 | char (*f) () = $ac_func; | |
35016 | #endif | |
35017 | #ifdef __cplusplus | |
35018 | } | |
35019 | #endif | |
35020 | ||
35021 | int | |
35022 | main () | |
35023 | { | |
35024 | return f != $ac_func; | |
35025 | ; | |
35026 | return 0; | |
35027 | } | |
35028 | _ACEOF | |
35029 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35030 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35031 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35032 | ac_status=$? |
ac1cb8d3 VS |
35033 | grep -v '^ *+' conftest.er1 >conftest.err |
35034 | rm -f conftest.er1 | |
35035 | cat conftest.err >&5 | |
a848cd7e SC |
35036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35037 | (exit $ac_status); } && | |
89be85c2 VS |
35038 | { ac_try='test -z "$ac_c_werror_flag" |
35039 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35041 | (eval $ac_try) 2>&5 | |
35042 | ac_status=$? | |
35043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35044 | (exit $ac_status); }; } && | |
35045 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35047 | (eval $ac_try) 2>&5 | |
35048 | ac_status=$? | |
35049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35050 | (exit $ac_status); }; }; then | |
35051 | eval "$as_ac_var=yes" | |
35052 | else | |
35053 | echo "$as_me: failed program was:" >&5 | |
35054 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35055 | ||
35056 | eval "$as_ac_var=no" | |
35057 | fi | |
ac1cb8d3 VS |
35058 | rm -f conftest.err conftest.$ac_objext \ |
35059 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35060 | fi |
35061 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35062 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35063 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35064 | cat >>confdefs.h <<_ACEOF | |
35065 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35066 | _ACEOF | |
35067 | cat >>confdefs.h <<\_ACEOF | |
35068 | #define HAVE_DLERROR 1 | |
35069 | _ACEOF | |
35070 | ||
35071 | else | |
35072 | ||
35073 | echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5 | |
35074 | echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6 | |
35075 | if test "${ac_cv_lib_dl_dlerror+set}" = set; then | |
35076 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35077 | else | |
35078 | ac_check_lib_save_LIBS=$LIBS | |
35079 | LIBS="-ldl $LIBS" | |
35080 | cat >conftest.$ac_ext <<_ACEOF | |
35081 | /* confdefs.h. */ | |
35082 | _ACEOF | |
35083 | cat confdefs.h >>conftest.$ac_ext | |
35084 | cat >>conftest.$ac_ext <<_ACEOF | |
35085 | /* end confdefs.h. */ | |
35086 | ||
35087 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35088 | #ifdef __cplusplus | |
35089 | extern "C" | |
35090 | #endif | |
35091 | /* We use char because int might match the return type of a gcc2 | |
35092 | builtin and then its argument prototype would still apply. */ | |
35093 | char dlerror (); | |
35094 | int | |
35095 | main () | |
35096 | { | |
35097 | dlerror (); | |
35098 | ; | |
35099 | return 0; | |
35100 | } | |
35101 | _ACEOF | |
35102 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35103 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35104 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35105 | ac_status=$? |
ac1cb8d3 VS |
35106 | grep -v '^ *+' conftest.er1 >conftest.err |
35107 | rm -f conftest.er1 | |
35108 | cat conftest.err >&5 | |
a848cd7e SC |
35109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35110 | (exit $ac_status); } && | |
89be85c2 VS |
35111 | { ac_try='test -z "$ac_c_werror_flag" |
35112 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35114 | (eval $ac_try) 2>&5 | |
35115 | ac_status=$? | |
35116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35117 | (exit $ac_status); }; } && | |
35118 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35120 | (eval $ac_try) 2>&5 | |
35121 | ac_status=$? | |
35122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35123 | (exit $ac_status); }; }; then | |
35124 | ac_cv_lib_dl_dlerror=yes | |
35125 | else | |
35126 | echo "$as_me: failed program was:" >&5 | |
35127 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35128 | ||
35129 | ac_cv_lib_dl_dlerror=no | |
35130 | fi | |
ac1cb8d3 VS |
35131 | rm -f conftest.err conftest.$ac_objext \ |
35132 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35133 | LIBS=$ac_check_lib_save_LIBS |
35134 | fi | |
35135 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5 | |
35136 | echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6 | |
35137 | if test $ac_cv_lib_dl_dlerror = yes; then | |
35138 | cat >>confdefs.h <<\_ACEOF | |
35139 | #define HAVE_DLERROR 1 | |
35140 | _ACEOF | |
35141 | ||
35142 | fi | |
35143 | ||
35144 | ||
35145 | ||
35146 | fi | |
35147 | done | |
35148 | ||
35149 | fi | |
35150 | fi | |
35151 | ||
35152 | if test "$HAVE_DL_FUNCS" = 0; then | |
35153 | if test "$HAVE_SHL_FUNCS" = 0; then | |
35154 | if test "$USE_UNIX" = 1; then | |
35155 | { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5 | |
35156 | echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;} | |
35157 | wxUSE_DYNAMIC_LOADER=no | |
35158 | wxUSE_DYNLIB_CLASS=no | |
35159 | else | |
35160 | { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5 | |
35161 | echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;} | |
35162 | fi | |
35163 | fi | |
35164 | fi | |
35165 | fi | |
35166 | fi | |
35167 | ||
35168 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then | |
35169 | cat >>confdefs.h <<\_ACEOF | |
35170 | #define wxUSE_DYNAMIC_LOADER 1 | |
35171 | _ACEOF | |
35172 | ||
35173 | fi | |
35174 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
35175 | cat >>confdefs.h <<\_ACEOF | |
35176 | #define wxUSE_DYNLIB_CLASS 1 | |
35177 | _ACEOF | |
35178 | ||
35179 | fi | |
35180 | ||
35181 | ||
35182 | ||
35183 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
35184 | if test "$wxUSE_SHARED" = "no" ; then | |
35185 | { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5 | |
35186 | echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;} | |
35187 | wxUSE_PLUGINS=no | |
35188 | fi | |
35189 | if test "$wxUSE_MONOLITHIC" = "yes" ; then | |
35190 | { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5 | |
35191 | echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;} | |
35192 | wxUSE_PLUGINS=no | |
35193 | fi | |
35194 | if test "$wxUSE_DYNLIB_CLASS" = "no" ; then | |
35195 | { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5 | |
35196 | echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;} | |
35197 | wxUSE_PLUGINS=no | |
35198 | fi | |
35199 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
35200 | cat >>confdefs.h <<\_ACEOF | |
35201 | #define wxUSE_PLUGINS 1 | |
35202 | _ACEOF | |
35203 | ||
35204 | fi | |
35205 | fi | |
35206 | ||
35207 | ||
35208 | if test "$wxUSE_STL" = "yes"; then | |
35209 | cat >>confdefs.h <<\_ACEOF | |
35210 | #define wxUSE_STL 1 | |
35211 | _ACEOF | |
35212 | ||
35213 | fi | |
35214 | ||
35215 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
35216 | cat >>confdefs.h <<\_ACEOF | |
35217 | #define wxUSE_APPLE_IEEE 1 | |
35218 | _ACEOF | |
35219 | ||
35220 | fi | |
35221 | ||
35222 | if test "$wxUSE_TIMER" = "yes"; then | |
35223 | cat >>confdefs.h <<\_ACEOF | |
35224 | #define wxUSE_TIMER 1 | |
35225 | _ACEOF | |
35226 | ||
35227 | fi | |
35228 | ||
35229 | WITH_PLUGIN_SDL=0 | |
35230 | if test "$wxUSE_SOUND" = "yes"; then | |
35231 | if test "$USE_UNIX" = "1" ; then | |
35232 | ||
35233 | for ac_header in sys/soundcard.h | |
35234 | do | |
35235 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
35236 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35237 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
35238 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
35239 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35240 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35241 | fi | |
35242 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
35243 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
35244 | else | |
35245 | # Is the header compilable? | |
35246 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
35247 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
35248 | cat >conftest.$ac_ext <<_ACEOF | |
35249 | /* confdefs.h. */ | |
35250 | _ACEOF | |
35251 | cat confdefs.h >>conftest.$ac_ext | |
35252 | cat >>conftest.$ac_ext <<_ACEOF | |
35253 | /* end confdefs.h. */ | |
35254 | $ac_includes_default | |
35255 | #include <$ac_header> | |
35256 | _ACEOF | |
35257 | rm -f conftest.$ac_objext | |
35258 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35259 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35260 | ac_status=$? |
ac1cb8d3 VS |
35261 | grep -v '^ *+' conftest.er1 >conftest.err |
35262 | rm -f conftest.er1 | |
35263 | cat conftest.err >&5 | |
a848cd7e SC |
35264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35265 | (exit $ac_status); } && | |
89be85c2 VS |
35266 | { ac_try='test -z "$ac_c_werror_flag" |
35267 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35269 | (eval $ac_try) 2>&5 | |
35270 | ac_status=$? | |
35271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35272 | (exit $ac_status); }; } && | |
35273 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35275 | (eval $ac_try) 2>&5 | |
35276 | ac_status=$? | |
35277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35278 | (exit $ac_status); }; }; then | |
35279 | ac_header_compiler=yes | |
35280 | else | |
35281 | echo "$as_me: failed program was:" >&5 | |
35282 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35283 | ||
35284 | ac_header_compiler=no | |
35285 | fi | |
ac1cb8d3 | 35286 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35287 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
35288 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
35289 | ||
35290 | # Is the header present? | |
35291 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
35292 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
35293 | cat >conftest.$ac_ext <<_ACEOF | |
35294 | /* confdefs.h. */ | |
35295 | _ACEOF | |
35296 | cat confdefs.h >>conftest.$ac_ext | |
35297 | cat >>conftest.$ac_ext <<_ACEOF | |
35298 | /* end confdefs.h. */ | |
35299 | #include <$ac_header> | |
35300 | _ACEOF | |
35301 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
35302 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
35303 | ac_status=$? | |
35304 | grep -v '^ *+' conftest.er1 >conftest.err | |
35305 | rm -f conftest.er1 | |
35306 | cat conftest.err >&5 | |
35307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35308 | (exit $ac_status); } >/dev/null; then | |
35309 | if test -s conftest.err; then | |
35310 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 35311 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
35312 | else |
35313 | ac_cpp_err= | |
35314 | fi | |
35315 | else | |
35316 | ac_cpp_err=yes | |
35317 | fi | |
35318 | if test -z "$ac_cpp_err"; then | |
35319 | ac_header_preproc=yes | |
35320 | else | |
35321 | echo "$as_me: failed program was:" >&5 | |
35322 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35323 | ||
35324 | ac_header_preproc=no | |
35325 | fi | |
35326 | rm -f conftest.err conftest.$ac_ext | |
35327 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
35328 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
35329 | ||
35330 | # So? What about this header? | |
ac1cb8d3 VS |
35331 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
35332 | yes:no: ) | |
a848cd7e SC |
35333 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
35334 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
35335 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
35336 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
35337 | ac_header_preproc=yes | |
a848cd7e | 35338 | ;; |
ac1cb8d3 | 35339 | no:yes:* ) |
a848cd7e SC |
35340 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
35341 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
35342 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
35343 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
35344 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
35345 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
35346 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
35347 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
35348 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
35349 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
35350 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
35351 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
35352 | ( |
35353 | cat <<\_ASBOX | |
ac1cb8d3 VS |
35354 | ## ----------------------------------------- ## |
35355 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
35356 | ## ----------------------------------------- ## | |
a848cd7e SC |
35357 | _ASBOX |
35358 | ) | | |
35359 | sed "s/^/$as_me: WARNING: /" >&2 | |
35360 | ;; | |
35361 | esac | |
35362 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
35363 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
35364 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35365 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35366 | else | |
ac1cb8d3 | 35367 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
35368 | fi |
35369 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
35370 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
35371 | ||
35372 | fi | |
35373 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
35374 | cat >>confdefs.h <<_ACEOF | |
35375 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
35376 | _ACEOF | |
35377 | ||
35378 | fi | |
35379 | ||
35380 | done | |
35381 | ||
35382 | ||
35383 | if test "$wxUSE_LIBSDL" != "no"; then | |
35384 | ||
35385 | # Check whether --with-sdl-prefix or --without-sdl-prefix was given. | |
35386 | if test "${with_sdl_prefix+set}" = set; then | |
35387 | withval="$with_sdl_prefix" | |
35388 | sdl_prefix="$withval" | |
35389 | else | |
35390 | sdl_prefix="" | |
35391 | fi; | |
35392 | ||
35393 | # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given. | |
35394 | if test "${with_sdl_exec_prefix+set}" = set; then | |
35395 | withval="$with_sdl_exec_prefix" | |
35396 | sdl_exec_prefix="$withval" | |
35397 | else | |
35398 | sdl_exec_prefix="" | |
35399 | fi; | |
35400 | # Check whether --enable-sdltest or --disable-sdltest was given. | |
35401 | if test "${enable_sdltest+set}" = set; then | |
35402 | enableval="$enable_sdltest" | |
35403 | ||
35404 | else | |
35405 | enable_sdltest=yes | |
35406 | fi; | |
35407 | ||
35408 | if test x$sdl_exec_prefix != x ; then | |
35409 | sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" | |
35410 | if test x${SDL_CONFIG+set} != xset ; then | |
35411 | SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config | |
35412 | fi | |
35413 | fi | |
35414 | if test x$sdl_prefix != x ; then | |
35415 | sdl_args="$sdl_args --prefix=$sdl_prefix" | |
35416 | if test x${SDL_CONFIG+set} != xset ; then | |
35417 | SDL_CONFIG=$sdl_prefix/bin/sdl-config | |
35418 | fi | |
35419 | fi | |
35420 | ||
35421 | ||
35422 | PATH="$prefix/bin:$prefix/usr/bin:$PATH" | |
35423 | # Extract the first word of "sdl-config", so it can be a program name with args. | |
35424 | set dummy sdl-config; ac_word=$2 | |
35425 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
35426 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
35427 | if test "${ac_cv_path_SDL_CONFIG+set}" = set; then | |
35428 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35429 | else | |
35430 | case $SDL_CONFIG in | |
35431 | [\\/]* | ?:[\\/]*) | |
35432 | ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. | |
35433 | ;; | |
35434 | *) | |
35435 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
35436 | for as_dir in $PATH | |
35437 | do | |
35438 | IFS=$as_save_IFS | |
35439 | test -z "$as_dir" && as_dir=. | |
35440 | for ac_exec_ext in '' $ac_executable_extensions; do | |
35441 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
35442 | ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
35443 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
35444 | break 2 | |
35445 | fi | |
35446 | done | |
35447 | done | |
35448 | ||
35449 | test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" | |
35450 | ;; | |
35451 | esac | |
35452 | fi | |
35453 | SDL_CONFIG=$ac_cv_path_SDL_CONFIG | |
35454 | ||
35455 | if test -n "$SDL_CONFIG"; then | |
35456 | echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5 | |
35457 | echo "${ECHO_T}$SDL_CONFIG" >&6 | |
35458 | else | |
35459 | echo "$as_me:$LINENO: result: no" >&5 | |
35460 | echo "${ECHO_T}no" >&6 | |
35461 | fi | |
35462 | ||
35463 | min_sdl_version=1.2.0 | |
35464 | echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5 | |
35465 | echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6 | |
35466 | no_sdl="" | |
35467 | if test "$SDL_CONFIG" = "no" ; then | |
35468 | no_sdl=yes | |
35469 | else | |
35470 | SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` | |
35471 | SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` | |
35472 | ||
35473 | sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ | |
35474 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
35475 | sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ | |
35476 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
35477 | sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ | |
35478 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
35479 | if test "x$enable_sdltest" = "xyes" ; then | |
35480 | ac_save_CFLAGS="$CFLAGS" | |
94acd38e | 35481 | ac_save_CXXFLAGS="$CXXFLAGS" |
a848cd7e SC |
35482 | ac_save_LIBS="$LIBS" |
35483 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
94acd38e | 35484 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
a848cd7e SC |
35485 | LIBS="$LIBS $SDL_LIBS" |
35486 | rm -f conf.sdltest | |
35487 | if test "$cross_compiling" = yes; then | |
35488 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
35489 | else | |
35490 | cat >conftest.$ac_ext <<_ACEOF | |
35491 | /* confdefs.h. */ | |
35492 | _ACEOF | |
35493 | cat confdefs.h >>conftest.$ac_ext | |
35494 | cat >>conftest.$ac_ext <<_ACEOF | |
35495 | /* end confdefs.h. */ | |
35496 | ||
35497 | #include <stdio.h> | |
35498 | #include <stdlib.h> | |
35499 | #include <string.h> | |
35500 | #include "SDL.h" | |
35501 | ||
35502 | char* | |
35503 | my_strdup (char *str) | |
35504 | { | |
35505 | char *new_str; | |
35506 | ||
35507 | if (str) | |
35508 | { | |
35509 | new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); | |
35510 | strcpy (new_str, str); | |
35511 | } | |
35512 | else | |
35513 | new_str = NULL; | |
35514 | ||
35515 | return new_str; | |
35516 | } | |
35517 | ||
35518 | int main (int argc, char *argv[]) | |
35519 | { | |
35520 | int major, minor, micro; | |
35521 | char *tmp_version; | |
35522 | ||
35523 | /* This hangs on some systems (?) | |
35524 | system ("touch conf.sdltest"); | |
35525 | */ | |
35526 | { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } | |
35527 | ||
35528 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
35529 | tmp_version = my_strdup("$min_sdl_version"); | |
35530 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
35531 | printf("%s, bad version string\n", "$min_sdl_version"); | |
35532 | exit(1); | |
35533 | } | |
35534 | ||
35535 | if (($sdl_major_version > major) || | |
35536 | (($sdl_major_version == major) && ($sdl_minor_version > minor)) || | |
35537 | (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) | |
35538 | { | |
35539 | return 0; | |
35540 | } | |
35541 | else | |
35542 | { | |
35543 | printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); | |
35544 | printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); | |
35545 | printf("*** best to upgrade to the required version.\n"); | |
35546 | printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); | |
35547 | printf("*** to point to the correct copy of sdl-config, and remove the file\n"); | |
35548 | printf("*** config.cache before re-running configure\n"); | |
35549 | return 1; | |
35550 | } | |
35551 | } | |
35552 | ||
35553 | ||
35554 | _ACEOF | |
35555 | rm -f conftest$ac_exeext | |
35556 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
35557 | (eval $ac_link) 2>&5 | |
35558 | ac_status=$? | |
35559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35560 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
35561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35562 | (eval $ac_try) 2>&5 | |
35563 | ac_status=$? | |
35564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35565 | (exit $ac_status); }; }; then | |
35566 | : | |
35567 | else | |
35568 | echo "$as_me: program exited with status $ac_status" >&5 | |
35569 | echo "$as_me: failed program was:" >&5 | |
35570 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35571 | ||
35572 | ( exit $ac_status ) | |
35573 | no_sdl=yes | |
35574 | fi | |
ac1cb8d3 | 35575 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35576 | fi |
35577 | CFLAGS="$ac_save_CFLAGS" | |
94acd38e | 35578 | CXXFLAGS="$ac_save_CXXFLAGS" |
a848cd7e SC |
35579 | LIBS="$ac_save_LIBS" |
35580 | fi | |
35581 | fi | |
35582 | if test "x$no_sdl" = x ; then | |
35583 | echo "$as_me:$LINENO: result: yes" >&5 | |
35584 | echo "${ECHO_T}yes" >&6 | |
35585 | ||
35586 | EXTRALIBS_SDL="$SDL_LIBS" | |
35587 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" | |
35588 | cat >>confdefs.h <<\_ACEOF | |
35589 | #define wxUSE_LIBSDL 1 | |
35590 | _ACEOF | |
35591 | ||
35592 | ||
35593 | else | |
35594 | echo "$as_me:$LINENO: result: no" >&5 | |
35595 | echo "${ECHO_T}no" >&6 | |
35596 | if test "$SDL_CONFIG" = "no" ; then | |
35597 | echo "*** The sdl-config script installed by SDL could not be found" | |
35598 | echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" | |
35599 | echo "*** your path, or set the SDL_CONFIG environment variable to the" | |
35600 | echo "*** full path to sdl-config." | |
35601 | else | |
35602 | if test -f conf.sdltest ; then | |
35603 | : | |
35604 | else | |
35605 | echo "*** Could not run SDL test program, checking why..." | |
35606 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
94acd38e | 35607 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
a848cd7e SC |
35608 | LIBS="$LIBS $SDL_LIBS" |
35609 | cat >conftest.$ac_ext <<_ACEOF | |
35610 | /* confdefs.h. */ | |
35611 | _ACEOF | |
35612 | cat confdefs.h >>conftest.$ac_ext | |
35613 | cat >>conftest.$ac_ext <<_ACEOF | |
35614 | /* end confdefs.h. */ | |
35615 | ||
35616 | #include <stdio.h> | |
35617 | #include "SDL.h" | |
35618 | ||
35619 | int main(int argc, char *argv[]) | |
35620 | { return 0; } | |
35621 | #undef main | |
35622 | #define main K_and_R_C_main | |
35623 | ||
35624 | int | |
35625 | main () | |
35626 | { | |
35627 | return 0; | |
35628 | ; | |
35629 | return 0; | |
35630 | } | |
35631 | _ACEOF | |
35632 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35633 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35634 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35635 | ac_status=$? |
ac1cb8d3 VS |
35636 | grep -v '^ *+' conftest.er1 >conftest.err |
35637 | rm -f conftest.er1 | |
35638 | cat conftest.err >&5 | |
a848cd7e SC |
35639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35640 | (exit $ac_status); } && | |
89be85c2 VS |
35641 | { ac_try='test -z "$ac_c_werror_flag" |
35642 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35644 | (eval $ac_try) 2>&5 | |
35645 | ac_status=$? | |
35646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35647 | (exit $ac_status); }; } && | |
35648 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35650 | (eval $ac_try) 2>&5 | |
35651 | ac_status=$? | |
35652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35653 | (exit $ac_status); }; }; then | |
35654 | echo "*** The test program compiled, but did not run. This usually means" | |
35655 | echo "*** that the run-time linker is not finding SDL or finding the wrong" | |
35656 | echo "*** version of SDL. If it is not finding SDL, you'll need to set your" | |
35657 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
35658 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
35659 | echo "*** is required on your system" | |
35660 | echo "***" | |
35661 | echo "*** If you have an old version installed, it is best to remove it, although" | |
35662 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
35663 | else | |
35664 | echo "$as_me: failed program was:" >&5 | |
35665 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35666 | ||
35667 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
35668 | echo "*** exact error that occured. This usually means SDL was incorrectly installed" | |
35669 | echo "*** or that you have moved SDL since it was installed. In the latter case, you" | |
35670 | echo "*** may want to edit the sdl-config script: $SDL_CONFIG" | |
35671 | fi | |
ac1cb8d3 VS |
35672 | rm -f conftest.err conftest.$ac_objext \ |
35673 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e | 35674 | CFLAGS="$ac_save_CFLAGS" |
94acd38e | 35675 | CXXFLAGS="$ac_save_CXXFLAGS" |
a848cd7e SC |
35676 | LIBS="$ac_save_LIBS" |
35677 | fi | |
35678 | fi | |
35679 | SDL_CFLAGS="" | |
35680 | SDL_LIBS="" | |
35681 | wxUSE_LIBSDL="no" | |
35682 | fi | |
35683 | ||
35684 | ||
35685 | rm -f conf.sdltest | |
35686 | ||
35687 | if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then | |
35688 | WITH_PLUGIN_SDL=1 | |
35689 | fi | |
35690 | fi | |
35691 | fi | |
35692 | ||
35693 | cat >>confdefs.h <<\_ACEOF | |
35694 | #define wxUSE_SOUND 1 | |
35695 | _ACEOF | |
35696 | ||
35697 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound" | |
35698 | fi | |
35699 | ||
d1c38808 VZ |
35700 | if test "$WXGTK20" = 1; then |
35701 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
35702 | if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then | |
35703 | ||
35704 | ||
35705 | succeeded=no | |
35706 | ||
35707 | if test -z "$PKG_CONFIG"; then | |
35708 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
35709 | set dummy pkg-config; ac_word=$2 | |
35710 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
35711 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
35712 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
35713 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35714 | else | |
35715 | case $PKG_CONFIG in | |
35716 | [\\/]* | ?:[\\/]*) | |
35717 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
35718 | ;; | |
35719 | *) | |
35720 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
35721 | for as_dir in $PATH | |
35722 | do | |
35723 | IFS=$as_save_IFS | |
35724 | test -z "$as_dir" && as_dir=. | |
35725 | for ac_exec_ext in '' $ac_executable_extensions; do | |
35726 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
35727 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
35728 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
35729 | break 2 | |
35730 | fi | |
35731 | done | |
35732 | done | |
35733 | ||
35734 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
35735 | ;; | |
35736 | esac | |
35737 | fi | |
35738 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
35739 | ||
35740 | if test -n "$PKG_CONFIG"; then | |
35741 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
35742 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
35743 | else | |
35744 | echo "$as_me:$LINENO: result: no" >&5 | |
35745 | echo "${ECHO_T}no" >&6 | |
35746 | fi | |
35747 | ||
35748 | fi | |
35749 | ||
35750 | if test "$PKG_CONFIG" = "no" ; then | |
35751 | echo "*** The pkg-config script could not be found. Make sure it is" | |
35752 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
35753 | echo "*** to the full path to pkg-config." | |
35754 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
35755 | else | |
35756 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
35757 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
ffa762ff VS |
35758 | echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5 |
35759 | echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6 | |
d1c38808 | 35760 | |
ffa762ff | 35761 | if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then |
d1c38808 VZ |
35762 | echo "$as_me:$LINENO: result: yes" >&5 |
35763 | echo "${ECHO_T}yes" >&6 | |
35764 | succeeded=yes | |
35765 | ||
35766 | echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5 | |
35767 | echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6 | |
ffa762ff | 35768 | LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
35769 | echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5 |
35770 | echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6 | |
35771 | ||
35772 | echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5 | |
35773 | echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6 | |
ffa762ff | 35774 | LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
35775 | echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5 |
35776 | echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6 | |
35777 | else | |
35778 | LIBGNOMEPRINTUI_CFLAGS="" | |
35779 | LIBGNOMEPRINTUI_LIBS="" | |
35780 | ## If we have a custom action on failure, don't print errors, but | |
35781 | ## do set a variable so people can do so. | |
ffa762ff | 35782 | LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
35783 | |
35784 | fi | |
35785 | ||
35786 | ||
35787 | ||
35788 | else | |
35789 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
35790 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
35791 | fi | |
35792 | fi | |
35793 | ||
35794 | if test $succeeded = yes; then | |
35795 | ||
d1c38808 VZ |
35796 | CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS" |
35797 | cat >>confdefs.h <<\_ACEOF | |
35798 | #define wxUSE_LIBGNOMEPRINT 1 | |
35799 | _ACEOF | |
35800 | ||
35801 | ||
35802 | else | |
35803 | ||
35804 | { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5 | |
35805 | echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;} | |
35806 | wxUSE_LIBGNOMEPRINT="no" | |
35807 | ||
35808 | ||
35809 | fi | |
35810 | ||
35811 | fi | |
35812 | fi | |
35813 | fi | |
35814 | ||
35815 | ||
a848cd7e SC |
35816 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
35817 | cat >>confdefs.h <<\_ACEOF | |
35818 | #define wxUSE_CMDLINE_PARSER 1 | |
35819 | _ACEOF | |
35820 | ||
35821 | fi | |
35822 | ||
35823 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
35824 | cat >>confdefs.h <<\_ACEOF | |
35825 | #define wxUSE_STOPWATCH 1 | |
35826 | _ACEOF | |
35827 | ||
35828 | fi | |
35829 | ||
35830 | if test "$wxUSE_DATETIME" = "yes"; then | |
35831 | cat >>confdefs.h <<\_ACEOF | |
35832 | #define wxUSE_DATETIME 1 | |
35833 | _ACEOF | |
35834 | ||
35835 | fi | |
35836 | ||
35837 | if test "$wxUSE_FILE" = "yes"; then | |
35838 | cat >>confdefs.h <<\_ACEOF | |
35839 | #define wxUSE_FILE 1 | |
35840 | _ACEOF | |
35841 | ||
35842 | fi | |
35843 | ||
35844 | if test "$wxUSE_FFILE" = "yes"; then | |
35845 | cat >>confdefs.h <<\_ACEOF | |
35846 | #define wxUSE_FFILE 1 | |
35847 | _ACEOF | |
35848 | ||
35849 | fi | |
35850 | ||
35851 | if test "$wxUSE_FILESYSTEM" = "yes"; then | |
35852 | cat >>confdefs.h <<\_ACEOF | |
35853 | #define wxUSE_FILESYSTEM 1 | |
35854 | _ACEOF | |
35855 | ||
35856 | fi | |
35857 | ||
35858 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
35859 | cat >>confdefs.h <<\_ACEOF | |
35860 | #define wxUSE_FS_ZIP 1 | |
35861 | _ACEOF | |
35862 | ||
35863 | fi | |
35864 | ||
9e8e867f | 35865 | if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then |
a848cd7e | 35866 | cat >>confdefs.h <<\_ACEOF |
9e8e867f | 35867 | #define wxUSE_ARCHIVE_STREAMS 1 |
81f90336 MW |
35868 | _ACEOF |
35869 | ||
35870 | fi | |
35871 | ||
35872 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
9e8e867f | 35873 | if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then |
81f90336 MW |
35874 | { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5 |
35875 | echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;} | |
35876 | elif test "$wxUSE_ZLIB" = "no"; then | |
35877 | { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5 | |
35878 | echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;} | |
35879 | else | |
35880 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
35881 | #define wxUSE_ZIPSTREAM 1 |
35882 | _ACEOF | |
35883 | ||
81f90336 | 35884 | fi |
a848cd7e SC |
35885 | fi |
35886 | ||
a848cd7e SC |
35887 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
35888 | cat >>confdefs.h <<\_ACEOF | |
35889 | #define wxUSE_ON_FATAL_EXCEPTION 1 | |
35890 | _ACEOF | |
35891 | ||
35892 | fi | |
35893 | ||
eaff0f0d VZ |
35894 | if test "$wxUSE_STACKWALKER" = "yes"; then |
35895 | cat >>confdefs.h <<\_ACEOF | |
35896 | #define wxUSE_STACKWALKER 1 | |
35897 | _ACEOF | |
35898 | ||
35899 | fi | |
35900 | ||
a848cd7e SC |
35901 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
35902 | cat >>confdefs.h <<\_ACEOF | |
35903 | #define wxUSE_SNGLINST_CHECKER 1 | |
35904 | _ACEOF | |
35905 | ||
35906 | fi | |
35907 | ||
35908 | if test "$wxUSE_BUSYINFO" = "yes"; then | |
35909 | cat >>confdefs.h <<\_ACEOF | |
35910 | #define wxUSE_BUSYINFO 1 | |
35911 | _ACEOF | |
35912 | ||
35913 | fi | |
35914 | ||
35915 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
35916 | cat >>confdefs.h <<\_ACEOF | |
35917 | #define wxUSE_STD_IOSTREAM 1 | |
35918 | _ACEOF | |
35919 | ||
35920 | fi | |
35921 | ||
35922 | if test "$wxUSE_TEXTBUFFER" = "yes"; then | |
35923 | cat >>confdefs.h <<\_ACEOF | |
35924 | #define wxUSE_TEXTBUFFER 1 | |
35925 | _ACEOF | |
35926 | ||
35927 | fi | |
35928 | ||
35929 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
35930 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then | |
35931 | { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5 | |
35932 | echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;} | |
35933 | else | |
35934 | cat >>confdefs.h <<\_ACEOF | |
35935 | #define wxUSE_TEXTFILE 1 | |
35936 | _ACEOF | |
35937 | ||
35938 | fi | |
35939 | fi | |
35940 | ||
35941 | if test "$wxUSE_CONFIG" = "yes" ; then | |
35942 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
35943 | { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5 | |
35944 | echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;} | |
35945 | else | |
35946 | cat >>confdefs.h <<\_ACEOF | |
35947 | #define wxUSE_CONFIG 1 | |
89be85c2 VS |
35948 | _ACEOF |
35949 | ||
35950 | cat >>confdefs.h <<\_ACEOF | |
35951 | #define wxUSE_CONFIG_NATIVE 1 | |
a848cd7e SC |
35952 | _ACEOF |
35953 | ||
35954 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
35955 | fi | |
35956 | fi | |
35957 | ||
35958 | if test "$wxUSE_INTL" = "yes" ; then | |
35959 | if test "$wxUSE_FILE" != "yes"; then | |
35960 | { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5 | |
35961 | echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;} | |
35962 | else | |
35963 | cat >>confdefs.h <<\_ACEOF | |
35964 | #define wxUSE_INTL 1 | |
35965 | _ACEOF | |
35966 | ||
35967 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
35968 | GUIDIST="$GUIDIST INTL_DIST" | |
35969 | fi | |
35970 | fi | |
35971 | ||
35972 | if test "$wxUSE_LOG" = "yes"; then | |
35973 | cat >>confdefs.h <<\_ACEOF | |
35974 | #define wxUSE_LOG 1 | |
35975 | _ACEOF | |
35976 | ||
35977 | ||
35978 | if test "$wxUSE_LOGGUI" = "yes"; then | |
35979 | cat >>confdefs.h <<\_ACEOF | |
35980 | #define wxUSE_LOGGUI 1 | |
35981 | _ACEOF | |
35982 | ||
35983 | fi | |
35984 | ||
35985 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
35986 | cat >>confdefs.h <<\_ACEOF | |
35987 | #define wxUSE_LOGWINDOW 1 | |
35988 | _ACEOF | |
35989 | ||
35990 | fi | |
35991 | ||
35992 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
35993 | cat >>confdefs.h <<\_ACEOF | |
35994 | #define wxUSE_LOG_DIALOG 1 | |
35995 | _ACEOF | |
35996 | ||
35997 | fi | |
35998 | fi | |
35999 | ||
36000 | if test "$wxUSE_LONGLONG" = "yes"; then | |
36001 | cat >>confdefs.h <<\_ACEOF | |
36002 | #define wxUSE_LONGLONG 1 | |
36003 | _ACEOF | |
36004 | ||
36005 | fi | |
36006 | ||
36007 | if test "$wxUSE_GEOMETRY" = "yes"; then | |
36008 | cat >>confdefs.h <<\_ACEOF | |
36009 | #define wxUSE_GEOMETRY 1 | |
36010 | _ACEOF | |
36011 | ||
36012 | fi | |
36013 | ||
a848cd7e SC |
36014 | if test "$wxUSE_STREAMS" = "yes" ; then |
36015 | cat >>confdefs.h <<\_ACEOF | |
36016 | #define wxUSE_STREAMS 1 | |
36017 | _ACEOF | |
36018 | ||
36019 | fi | |
36020 | ||
36021 | ||
36022 | if test "$wxUSE_DATETIME" = "yes"; then | |
36023 | ||
36024 | for ac_func in strptime | |
36025 | do | |
36026 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36027 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36028 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36029 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36030 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36031 | else | |
36032 | cat >conftest.$ac_ext <<_ACEOF | |
36033 | /* confdefs.h. */ | |
36034 | _ACEOF | |
36035 | cat confdefs.h >>conftest.$ac_ext | |
36036 | cat >>conftest.$ac_ext <<_ACEOF | |
36037 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36038 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36039 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36040 | #define $ac_func innocuous_$ac_func | |
36041 | ||
a848cd7e SC |
36042 | /* System header to define __stub macros and hopefully few prototypes, |
36043 | which can conflict with char $ac_func (); below. | |
36044 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36045 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36046 | |
a848cd7e SC |
36047 | #ifdef __STDC__ |
36048 | # include <limits.h> | |
36049 | #else | |
36050 | # include <assert.h> | |
36051 | #endif | |
ac1cb8d3 VS |
36052 | |
36053 | #undef $ac_func | |
36054 | ||
a848cd7e SC |
36055 | /* Override any gcc2 internal prototype to avoid an error. */ |
36056 | #ifdef __cplusplus | |
36057 | extern "C" | |
36058 | { | |
36059 | #endif | |
36060 | /* We use char because int might match the return type of a gcc2 | |
36061 | builtin and then its argument prototype would still apply. */ | |
36062 | char $ac_func (); | |
36063 | /* The GNU C library defines this for functions which it implements | |
36064 | to always fail with ENOSYS. Some functions are actually named | |
36065 | something starting with __ and the normal name is an alias. */ | |
36066 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36067 | choke me | |
36068 | #else | |
36069 | char (*f) () = $ac_func; | |
36070 | #endif | |
36071 | #ifdef __cplusplus | |
36072 | } | |
36073 | #endif | |
36074 | ||
36075 | int | |
36076 | main () | |
36077 | { | |
36078 | return f != $ac_func; | |
36079 | ; | |
36080 | return 0; | |
36081 | } | |
36082 | _ACEOF | |
36083 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36084 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36085 | (eval $ac_link) 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); } && | |
89be85c2 VS |
36092 | { ac_try='test -z "$ac_c_werror_flag" |
36093 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36095 | (eval $ac_try) 2>&5 | |
36096 | ac_status=$? | |
36097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36098 | (exit $ac_status); }; } && | |
36099 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36101 | (eval $ac_try) 2>&5 | |
36102 | ac_status=$? | |
36103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36104 | (exit $ac_status); }; }; then | |
36105 | eval "$as_ac_var=yes" | |
36106 | else | |
36107 | echo "$as_me: failed program was:" >&5 | |
36108 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36109 | ||
36110 | eval "$as_ac_var=no" | |
36111 | fi | |
ac1cb8d3 VS |
36112 | rm -f conftest.err conftest.$ac_objext \ |
36113 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36114 | fi |
36115 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36116 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36117 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36118 | cat >>confdefs.h <<_ACEOF | |
36119 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36120 | _ACEOF | |
36121 | ||
36122 | fi | |
36123 | done | |
36124 | ||
36125 | ||
36126 | echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5 | |
36127 | echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6 | |
36128 | if test "${wx_cv_var_timezone+set}" = set; then | |
36129 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36130 | else | |
36131 | ||
36132 | cat >conftest.$ac_ext <<_ACEOF | |
36133 | /* confdefs.h. */ | |
36134 | _ACEOF | |
36135 | cat confdefs.h >>conftest.$ac_ext | |
36136 | cat >>conftest.$ac_ext <<_ACEOF | |
36137 | /* end confdefs.h. */ | |
36138 | ||
36139 | #include <time.h> | |
36140 | ||
36141 | int | |
36142 | main () | |
36143 | { | |
36144 | ||
36145 | int tz; | |
36146 | tz = timezone; | |
36147 | ||
36148 | ; | |
36149 | return 0; | |
36150 | } | |
36151 | _ACEOF | |
36152 | rm -f conftest.$ac_objext | |
36153 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36154 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36155 | ac_status=$? |
ac1cb8d3 VS |
36156 | grep -v '^ *+' conftest.er1 >conftest.err |
36157 | rm -f conftest.er1 | |
36158 | cat conftest.err >&5 | |
a848cd7e SC |
36159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36160 | (exit $ac_status); } && | |
89be85c2 VS |
36161 | { ac_try='test -z "$ac_c_werror_flag" |
36162 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36164 | (eval $ac_try) 2>&5 | |
36165 | ac_status=$? | |
36166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36167 | (exit $ac_status); }; } && | |
36168 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36170 | (eval $ac_try) 2>&5 | |
36171 | ac_status=$? | |
36172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36173 | (exit $ac_status); }; }; then | |
36174 | ||
36175 | wx_cv_var_timezone=timezone | |
36176 | ||
36177 | else | |
36178 | echo "$as_me: failed program was:" >&5 | |
36179 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36180 | ||
36181 | ||
36182 | cat >conftest.$ac_ext <<_ACEOF | |
36183 | /* confdefs.h. */ | |
36184 | _ACEOF | |
36185 | cat confdefs.h >>conftest.$ac_ext | |
36186 | cat >>conftest.$ac_ext <<_ACEOF | |
36187 | /* end confdefs.h. */ | |
36188 | ||
36189 | #include <time.h> | |
36190 | ||
36191 | int | |
36192 | main () | |
36193 | { | |
36194 | ||
36195 | int tz; | |
36196 | tz = _timezone; | |
36197 | ||
36198 | ; | |
36199 | return 0; | |
36200 | } | |
36201 | _ACEOF | |
36202 | rm -f conftest.$ac_objext | |
36203 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36204 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36205 | ac_status=$? |
ac1cb8d3 VS |
36206 | grep -v '^ *+' conftest.er1 >conftest.err |
36207 | rm -f conftest.er1 | |
36208 | cat conftest.err >&5 | |
a848cd7e SC |
36209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36210 | (exit $ac_status); } && | |
89be85c2 VS |
36211 | { ac_try='test -z "$ac_c_werror_flag" |
36212 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36214 | (eval $ac_try) 2>&5 | |
36215 | ac_status=$? | |
36216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36217 | (exit $ac_status); }; } && | |
36218 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36220 | (eval $ac_try) 2>&5 | |
36221 | ac_status=$? | |
36222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36223 | (exit $ac_status); }; }; then | |
36224 | ||
36225 | wx_cv_var_timezone=_timezone | |
36226 | ||
36227 | else | |
36228 | echo "$as_me: failed program was:" >&5 | |
36229 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36230 | ||
36231 | ||
36232 | cat >conftest.$ac_ext <<_ACEOF | |
36233 | /* confdefs.h. */ | |
36234 | _ACEOF | |
36235 | cat confdefs.h >>conftest.$ac_ext | |
36236 | cat >>conftest.$ac_ext <<_ACEOF | |
36237 | /* end confdefs.h. */ | |
36238 | ||
36239 | #include <time.h> | |
36240 | ||
36241 | int | |
36242 | main () | |
36243 | { | |
36244 | ||
36245 | int tz; | |
36246 | tz = __timezone; | |
36247 | ||
36248 | ; | |
36249 | return 0; | |
36250 | } | |
36251 | _ACEOF | |
36252 | rm -f conftest.$ac_objext | |
36253 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36254 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36255 | ac_status=$? |
ac1cb8d3 VS |
36256 | grep -v '^ *+' conftest.er1 >conftest.err |
36257 | rm -f conftest.er1 | |
36258 | cat conftest.err >&5 | |
a848cd7e SC |
36259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36260 | (exit $ac_status); } && | |
89be85c2 VS |
36261 | { ac_try='test -z "$ac_c_werror_flag" |
36262 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36264 | (eval $ac_try) 2>&5 | |
36265 | ac_status=$? | |
36266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36267 | (exit $ac_status); }; } && | |
36268 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36270 | (eval $ac_try) 2>&5 | |
36271 | ac_status=$? | |
36272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36273 | (exit $ac_status); }; }; then | |
36274 | ||
36275 | wx_cv_var_timezone=__timezone | |
36276 | ||
36277 | else | |
36278 | echo "$as_me: failed program was:" >&5 | |
36279 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36280 | ||
36281 | ||
36282 | if test "$USE_DOS" = 0 ; then | |
36283 | { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5 | |
36284 | echo "$as_me: WARNING: no timezone variable" >&2;} | |
36285 | fi | |
36286 | ||
36287 | ||
36288 | fi | |
ac1cb8d3 | 36289 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36290 | |
36291 | ||
36292 | fi | |
ac1cb8d3 | 36293 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36294 | |
36295 | ||
36296 | fi | |
ac1cb8d3 | 36297 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36298 | |
36299 | ||
36300 | fi | |
36301 | echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5 | |
36302 | echo "${ECHO_T}$wx_cv_var_timezone" >&6 | |
36303 | ||
36304 | if test "x$wx_cv_var_timezone" != x ; then | |
36305 | cat >>confdefs.h <<_ACEOF | |
36306 | #define WX_TIMEZONE $wx_cv_var_timezone | |
36307 | _ACEOF | |
36308 | ||
36309 | fi | |
36310 | ||
36311 | ||
36312 | for ac_func in localtime | |
36313 | do | |
36314 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36315 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36316 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36317 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36318 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36319 | else | |
36320 | cat >conftest.$ac_ext <<_ACEOF | |
36321 | /* confdefs.h. */ | |
36322 | _ACEOF | |
36323 | cat confdefs.h >>conftest.$ac_ext | |
36324 | cat >>conftest.$ac_ext <<_ACEOF | |
36325 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36326 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36327 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36328 | #define $ac_func innocuous_$ac_func | |
36329 | ||
a848cd7e SC |
36330 | /* System header to define __stub macros and hopefully few prototypes, |
36331 | which can conflict with char $ac_func (); below. | |
36332 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36333 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36334 | |
a848cd7e SC |
36335 | #ifdef __STDC__ |
36336 | # include <limits.h> | |
36337 | #else | |
36338 | # include <assert.h> | |
36339 | #endif | |
ac1cb8d3 VS |
36340 | |
36341 | #undef $ac_func | |
36342 | ||
a848cd7e SC |
36343 | /* Override any gcc2 internal prototype to avoid an error. */ |
36344 | #ifdef __cplusplus | |
36345 | extern "C" | |
36346 | { | |
36347 | #endif | |
36348 | /* We use char because int might match the return type of a gcc2 | |
36349 | builtin and then its argument prototype would still apply. */ | |
36350 | char $ac_func (); | |
36351 | /* The GNU C library defines this for functions which it implements | |
36352 | to always fail with ENOSYS. Some functions are actually named | |
36353 | something starting with __ and the normal name is an alias. */ | |
36354 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36355 | choke me | |
36356 | #else | |
36357 | char (*f) () = $ac_func; | |
36358 | #endif | |
36359 | #ifdef __cplusplus | |
36360 | } | |
36361 | #endif | |
36362 | ||
36363 | int | |
36364 | main () | |
36365 | { | |
36366 | return f != $ac_func; | |
36367 | ; | |
36368 | return 0; | |
36369 | } | |
36370 | _ACEOF | |
36371 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36372 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36373 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36374 | ac_status=$? |
ac1cb8d3 VS |
36375 | grep -v '^ *+' conftest.er1 >conftest.err |
36376 | rm -f conftest.er1 | |
36377 | cat conftest.err >&5 | |
a848cd7e SC |
36378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36379 | (exit $ac_status); } && | |
89be85c2 VS |
36380 | { ac_try='test -z "$ac_c_werror_flag" |
36381 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36383 | (eval $ac_try) 2>&5 | |
36384 | ac_status=$? | |
36385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36386 | (exit $ac_status); }; } && | |
36387 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36389 | (eval $ac_try) 2>&5 | |
36390 | ac_status=$? | |
36391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36392 | (exit $ac_status); }; }; then | |
36393 | eval "$as_ac_var=yes" | |
36394 | else | |
36395 | echo "$as_me: failed program was:" >&5 | |
36396 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36397 | ||
36398 | eval "$as_ac_var=no" | |
36399 | fi | |
ac1cb8d3 VS |
36400 | rm -f conftest.err conftest.$ac_objext \ |
36401 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36402 | fi |
36403 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36404 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36405 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36406 | cat >>confdefs.h <<_ACEOF | |
36407 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36408 | _ACEOF | |
36409 | ||
36410 | fi | |
36411 | done | |
36412 | ||
36413 | ||
36414 | if test "$ac_cv_func_localtime" = "yes"; then | |
36415 | echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5 | |
36416 | echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 | |
36417 | if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then | |
36418 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36419 | else | |
36420 | ||
36421 | cat >conftest.$ac_ext <<_ACEOF | |
36422 | /* confdefs.h. */ | |
36423 | _ACEOF | |
36424 | cat confdefs.h >>conftest.$ac_ext | |
36425 | cat >>conftest.$ac_ext <<_ACEOF | |
36426 | /* end confdefs.h. */ | |
36427 | ||
36428 | #include <time.h> | |
36429 | ||
36430 | int | |
36431 | main () | |
36432 | { | |
36433 | ||
36434 | struct tm tm; | |
36435 | tm.tm_gmtoff++; | |
36436 | ||
36437 | ; | |
36438 | return 0; | |
36439 | } | |
36440 | _ACEOF | |
36441 | rm -f conftest.$ac_objext | |
36442 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36443 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36444 | ac_status=$? |
ac1cb8d3 VS |
36445 | grep -v '^ *+' conftest.er1 >conftest.err |
36446 | rm -f conftest.er1 | |
36447 | cat conftest.err >&5 | |
a848cd7e SC |
36448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36449 | (exit $ac_status); } && | |
89be85c2 VS |
36450 | { ac_try='test -z "$ac_c_werror_flag" |
36451 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36453 | (eval $ac_try) 2>&5 | |
36454 | ac_status=$? | |
36455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36456 | (exit $ac_status); }; } && | |
36457 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36459 | (eval $ac_try) 2>&5 | |
36460 | ac_status=$? | |
36461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36462 | (exit $ac_status); }; }; then | |
36463 | ||
36464 | wx_cv_struct_tm_has_gmtoff=yes | |
36465 | ||
36466 | else | |
36467 | echo "$as_me: failed program was:" >&5 | |
36468 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36469 | ||
36470 | wx_cv_struct_tm_has_gmtoff=no | |
36471 | ||
36472 | fi | |
ac1cb8d3 | 36473 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36474 | |
36475 | fi | |
36476 | echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5 | |
36477 | echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6 | |
36478 | fi | |
36479 | ||
36480 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
36481 | cat >>confdefs.h <<\_ACEOF | |
36482 | #define WX_GMTOFF_IN_TM 1 | |
36483 | _ACEOF | |
36484 | ||
36485 | fi | |
36486 | ||
36487 | ||
36488 | ||
36489 | for ac_func in gettimeofday ftime | |
36490 | do | |
36491 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36492 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36493 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36494 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36495 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36496 | else | |
36497 | cat >conftest.$ac_ext <<_ACEOF | |
36498 | /* confdefs.h. */ | |
36499 | _ACEOF | |
36500 | cat confdefs.h >>conftest.$ac_ext | |
36501 | cat >>conftest.$ac_ext <<_ACEOF | |
36502 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36503 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36504 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36505 | #define $ac_func innocuous_$ac_func | |
36506 | ||
a848cd7e SC |
36507 | /* System header to define __stub macros and hopefully few prototypes, |
36508 | which can conflict with char $ac_func (); below. | |
36509 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36510 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36511 | |
a848cd7e SC |
36512 | #ifdef __STDC__ |
36513 | # include <limits.h> | |
36514 | #else | |
36515 | # include <assert.h> | |
36516 | #endif | |
ac1cb8d3 VS |
36517 | |
36518 | #undef $ac_func | |
36519 | ||
a848cd7e SC |
36520 | /* Override any gcc2 internal prototype to avoid an error. */ |
36521 | #ifdef __cplusplus | |
36522 | extern "C" | |
36523 | { | |
36524 | #endif | |
36525 | /* We use char because int might match the return type of a gcc2 | |
36526 | builtin and then its argument prototype would still apply. */ | |
36527 | char $ac_func (); | |
36528 | /* The GNU C library defines this for functions which it implements | |
36529 | to always fail with ENOSYS. Some functions are actually named | |
36530 | something starting with __ and the normal name is an alias. */ | |
36531 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36532 | choke me | |
36533 | #else | |
36534 | char (*f) () = $ac_func; | |
36535 | #endif | |
36536 | #ifdef __cplusplus | |
36537 | } | |
36538 | #endif | |
36539 | ||
36540 | int | |
36541 | main () | |
36542 | { | |
36543 | return f != $ac_func; | |
36544 | ; | |
36545 | return 0; | |
36546 | } | |
36547 | _ACEOF | |
36548 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36549 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36550 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36551 | ac_status=$? |
ac1cb8d3 VS |
36552 | grep -v '^ *+' conftest.er1 >conftest.err |
36553 | rm -f conftest.er1 | |
36554 | cat conftest.err >&5 | |
a848cd7e SC |
36555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36556 | (exit $ac_status); } && | |
89be85c2 VS |
36557 | { ac_try='test -z "$ac_c_werror_flag" |
36558 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36560 | (eval $ac_try) 2>&5 | |
36561 | ac_status=$? | |
36562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36563 | (exit $ac_status); }; } && | |
36564 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36566 | (eval $ac_try) 2>&5 | |
36567 | ac_status=$? | |
36568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36569 | (exit $ac_status); }; }; then | |
36570 | eval "$as_ac_var=yes" | |
36571 | else | |
36572 | echo "$as_me: failed program was:" >&5 | |
36573 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36574 | ||
36575 | eval "$as_ac_var=no" | |
36576 | fi | |
ac1cb8d3 VS |
36577 | rm -f conftest.err conftest.$ac_objext \ |
36578 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36579 | fi |
36580 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36581 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36582 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36583 | cat >>confdefs.h <<_ACEOF | |
36584 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36585 | _ACEOF | |
36586 | break | |
36587 | fi | |
36588 | done | |
36589 | ||
36590 | ||
36591 | if test "$ac_cv_func_gettimeofday" = "yes"; then | |
36592 | echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5 | |
36593 | echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6 | |
36594 | if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then | |
36595 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36596 | else | |
36597 | ||
36598 | ||
36599 | ||
36600 | ac_ext=cc | |
36601 | ac_cpp='$CXXCPP $CPPFLAGS' | |
36602 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
36603 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
36604 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
36605 | ||
36606 | ||
36607 | cat >conftest.$ac_ext <<_ACEOF | |
36608 | /* confdefs.h. */ | |
36609 | _ACEOF | |
36610 | cat confdefs.h >>conftest.$ac_ext | |
36611 | cat >>conftest.$ac_ext <<_ACEOF | |
36612 | /* end confdefs.h. */ | |
36613 | ||
36614 | #include <sys/time.h> | |
36615 | #include <unistd.h> | |
36616 | ||
36617 | int | |
36618 | main () | |
36619 | { | |
36620 | ||
36621 | struct timeval tv; | |
36622 | gettimeofday(&tv, NULL); | |
36623 | ||
36624 | ; | |
36625 | return 0; | |
36626 | } | |
36627 | _ACEOF | |
36628 | rm -f conftest.$ac_objext | |
36629 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36630 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36631 | ac_status=$? |
ac1cb8d3 VS |
36632 | grep -v '^ *+' conftest.er1 >conftest.err |
36633 | rm -f conftest.er1 | |
36634 | cat conftest.err >&5 | |
a848cd7e SC |
36635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36636 | (exit $ac_status); } && | |
89be85c2 VS |
36637 | { ac_try='test -z "$ac_cxx_werror_flag" |
36638 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36640 | (eval $ac_try) 2>&5 | |
36641 | ac_status=$? | |
36642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36643 | (exit $ac_status); }; } && | |
36644 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36646 | (eval $ac_try) 2>&5 | |
36647 | ac_status=$? | |
36648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36649 | (exit $ac_status); }; }; then | |
36650 | wx_cv_func_gettimeofday_has_2_args=yes | |
36651 | else | |
36652 | echo "$as_me: failed program was:" >&5 | |
36653 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36654 | ||
36655 | cat >conftest.$ac_ext <<_ACEOF | |
36656 | /* confdefs.h. */ | |
36657 | _ACEOF | |
36658 | cat confdefs.h >>conftest.$ac_ext | |
36659 | cat >>conftest.$ac_ext <<_ACEOF | |
36660 | /* end confdefs.h. */ | |
36661 | ||
36662 | #include <sys/time.h> | |
36663 | #include <unistd.h> | |
36664 | ||
36665 | int | |
36666 | main () | |
36667 | { | |
36668 | ||
36669 | struct timeval tv; | |
36670 | gettimeofday(&tv); | |
36671 | ||
36672 | ; | |
36673 | return 0; | |
36674 | } | |
36675 | _ACEOF | |
36676 | rm -f conftest.$ac_objext | |
36677 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36678 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36679 | ac_status=$? |
ac1cb8d3 VS |
36680 | grep -v '^ *+' conftest.er1 >conftest.err |
36681 | rm -f conftest.er1 | |
36682 | cat conftest.err >&5 | |
a848cd7e SC |
36683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36684 | (exit $ac_status); } && | |
89be85c2 VS |
36685 | { ac_try='test -z "$ac_cxx_werror_flag" |
36686 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36688 | (eval $ac_try) 2>&5 | |
36689 | ac_status=$? | |
36690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36691 | (exit $ac_status); }; } && | |
36692 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36694 | (eval $ac_try) 2>&5 | |
36695 | ac_status=$? | |
36696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36697 | (exit $ac_status); }; }; then | |
36698 | wx_cv_func_gettimeofday_has_2_args=no | |
36699 | else | |
36700 | echo "$as_me: failed program was:" >&5 | |
36701 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36702 | ||
36703 | ||
36704 | { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5 | |
36705 | echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;} | |
36706 | wx_cv_func_gettimeofday_has_2_args=unknown | |
36707 | ||
36708 | ||
36709 | fi | |
ac1cb8d3 | 36710 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36711 | |
36712 | fi | |
ac1cb8d3 | 36713 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36714 | ac_ext=c |
36715 | ac_cpp='$CPP $CPPFLAGS' | |
36716 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
36717 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
36718 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
36719 | ||
36720 | ||
36721 | fi | |
36722 | echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5 | |
36723 | echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6 | |
36724 | ||
36725 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then | |
36726 | cat >>confdefs.h <<\_ACEOF | |
36727 | #define WX_GETTIMEOFDAY_NO_TZ 1 | |
36728 | _ACEOF | |
36729 | ||
36730 | fi | |
36731 | fi | |
36732 | ||
36733 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
36734 | fi | |
36735 | ||
36736 | ||
36737 | if test "$wxUSE_SOCKETS" = "yes"; then | |
36738 | if test "$wxUSE_MGL" = "1"; then | |
36739 | { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5 | |
36740 | echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;} | |
36741 | wxUSE_SOCKETS="no" | |
36742 | fi | |
36743 | fi | |
36744 | ||
36745 | if test "$wxUSE_SOCKETS" = "yes"; then | |
36746 | if test "$TOOLKIT" != "MSW"; then | |
36747 | echo "$as_me:$LINENO: checking for socket" >&5 | |
36748 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 | |
36749 | if test "${ac_cv_func_socket+set}" = set; then | |
36750 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36751 | else | |
36752 | cat >conftest.$ac_ext <<_ACEOF | |
36753 | /* confdefs.h. */ | |
36754 | _ACEOF | |
36755 | cat confdefs.h >>conftest.$ac_ext | |
36756 | cat >>conftest.$ac_ext <<_ACEOF | |
36757 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36758 | /* Define socket to an innocuous variant, in case <limits.h> declares socket. |
36759 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36760 | #define socket innocuous_socket | |
36761 | ||
a848cd7e SC |
36762 | /* System header to define __stub macros and hopefully few prototypes, |
36763 | which can conflict with char socket (); below. | |
36764 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36765 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36766 | |
a848cd7e SC |
36767 | #ifdef __STDC__ |
36768 | # include <limits.h> | |
36769 | #else | |
36770 | # include <assert.h> | |
36771 | #endif | |
ac1cb8d3 VS |
36772 | |
36773 | #undef socket | |
36774 | ||
a848cd7e SC |
36775 | /* Override any gcc2 internal prototype to avoid an error. */ |
36776 | #ifdef __cplusplus | |
36777 | extern "C" | |
36778 | { | |
36779 | #endif | |
36780 | /* We use char because int might match the return type of a gcc2 | |
36781 | builtin and then its argument prototype would still apply. */ | |
36782 | char socket (); | |
36783 | /* The GNU C library defines this for functions which it implements | |
36784 | to always fail with ENOSYS. Some functions are actually named | |
36785 | something starting with __ and the normal name is an alias. */ | |
36786 | #if defined (__stub_socket) || defined (__stub___socket) | |
36787 | choke me | |
36788 | #else | |
36789 | char (*f) () = socket; | |
36790 | #endif | |
36791 | #ifdef __cplusplus | |
36792 | } | |
36793 | #endif | |
36794 | ||
36795 | int | |
36796 | main () | |
36797 | { | |
36798 | return f != socket; | |
36799 | ; | |
36800 | return 0; | |
36801 | } | |
36802 | _ACEOF | |
36803 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36804 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36805 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36806 | ac_status=$? |
ac1cb8d3 VS |
36807 | grep -v '^ *+' conftest.er1 >conftest.err |
36808 | rm -f conftest.er1 | |
36809 | cat conftest.err >&5 | |
a848cd7e SC |
36810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36811 | (exit $ac_status); } && | |
89be85c2 VS |
36812 | { ac_try='test -z "$ac_c_werror_flag" |
36813 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36815 | (eval $ac_try) 2>&5 | |
36816 | ac_status=$? | |
36817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36818 | (exit $ac_status); }; } && | |
36819 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36821 | (eval $ac_try) 2>&5 | |
36822 | ac_status=$? | |
36823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36824 | (exit $ac_status); }; }; then | |
36825 | ac_cv_func_socket=yes | |
36826 | else | |
36827 | echo "$as_me: failed program was:" >&5 | |
36828 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36829 | ||
36830 | ac_cv_func_socket=no | |
36831 | fi | |
ac1cb8d3 VS |
36832 | rm -f conftest.err conftest.$ac_objext \ |
36833 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36834 | fi |
36835 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 | |
36836 | echo "${ECHO_T}$ac_cv_func_socket" >&6 | |
36837 | if test $ac_cv_func_socket = yes; then | |
36838 | : | |
36839 | else | |
36840 | ||
36841 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 | |
36842 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 | |
36843 | if test "${ac_cv_lib_socket_socket+set}" = set; then | |
36844 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36845 | else | |
36846 | ac_check_lib_save_LIBS=$LIBS | |
36847 | LIBS="-lsocket $LIBS" | |
36848 | cat >conftest.$ac_ext <<_ACEOF | |
36849 | /* confdefs.h. */ | |
36850 | _ACEOF | |
36851 | cat confdefs.h >>conftest.$ac_ext | |
36852 | cat >>conftest.$ac_ext <<_ACEOF | |
36853 | /* end confdefs.h. */ | |
36854 | ||
36855 | /* Override any gcc2 internal prototype to avoid an error. */ | |
36856 | #ifdef __cplusplus | |
36857 | extern "C" | |
36858 | #endif | |
36859 | /* We use char because int might match the return type of a gcc2 | |
36860 | builtin and then its argument prototype would still apply. */ | |
36861 | char socket (); | |
36862 | int | |
36863 | main () | |
36864 | { | |
36865 | socket (); | |
36866 | ; | |
36867 | return 0; | |
36868 | } | |
36869 | _ACEOF | |
36870 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36871 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36872 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36873 | ac_status=$? |
ac1cb8d3 VS |
36874 | grep -v '^ *+' conftest.er1 >conftest.err |
36875 | rm -f conftest.er1 | |
36876 | cat conftest.err >&5 | |
a848cd7e SC |
36877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36878 | (exit $ac_status); } && | |
89be85c2 VS |
36879 | { ac_try='test -z "$ac_c_werror_flag" |
36880 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36882 | (eval $ac_try) 2>&5 | |
36883 | ac_status=$? | |
36884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36885 | (exit $ac_status); }; } && | |
36886 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36888 | (eval $ac_try) 2>&5 | |
36889 | ac_status=$? | |
36890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36891 | (exit $ac_status); }; }; then | |
36892 | ac_cv_lib_socket_socket=yes | |
36893 | else | |
36894 | echo "$as_me: failed program was:" >&5 | |
36895 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36896 | ||
36897 | ac_cv_lib_socket_socket=no | |
36898 | fi | |
ac1cb8d3 VS |
36899 | rm -f conftest.err conftest.$ac_objext \ |
36900 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36901 | LIBS=$ac_check_lib_save_LIBS |
36902 | fi | |
36903 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 | |
36904 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 | |
36905 | if test $ac_cv_lib_socket_socket = yes; then | |
36906 | if test "$INET_LINK" != " -lsocket"; then | |
36907 | INET_LINK="$INET_LINK -lsocket" | |
36908 | fi | |
36909 | else | |
36910 | ||
36911 | { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5 | |
36912 | echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;} | |
36913 | wxUSE_SOCKETS=no | |
36914 | ||
36915 | ||
36916 | fi | |
36917 | ||
36918 | ||
36919 | ||
36920 | fi | |
36921 | ||
36922 | fi | |
36923 | fi | |
36924 | ||
36925 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
36926 | if test "$TOOLKIT" != "MSW"; then | |
4d4ff94c VZ |
36927 | ac_ext=cc |
36928 | ac_cpp='$CXXCPP $CPPFLAGS' | |
36929 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
36930 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
36931 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
36932 | ||
36933 | echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5 | |
a848cd7e SC |
36934 | echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6 |
36935 | if test "${wx_cv_type_getsockname3+set}" = set; then | |
36936 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36937 | else | |
36938 | ||
36939 | cat >conftest.$ac_ext <<_ACEOF | |
36940 | /* confdefs.h. */ | |
36941 | _ACEOF | |
36942 | cat confdefs.h >>conftest.$ac_ext | |
36943 | cat >>conftest.$ac_ext <<_ACEOF | |
36944 | /* end confdefs.h. */ | |
36945 | ||
36946 | #include <sys/types.h> | |
36947 | #include <sys/socket.h> | |
36948 | ||
36949 | int | |
36950 | main () | |
36951 | { | |
36952 | ||
36953 | socklen_t len; | |
36954 | getsockname(0, 0, &len); | |
36955 | ||
36956 | ; | |
36957 | return 0; | |
36958 | } | |
36959 | _ACEOF | |
36960 | rm -f conftest.$ac_objext | |
36961 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36962 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36963 | ac_status=$? |
ac1cb8d3 VS |
36964 | grep -v '^ *+' conftest.er1 >conftest.err |
36965 | rm -f conftest.er1 | |
36966 | cat conftest.err >&5 | |
a848cd7e SC |
36967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36968 | (exit $ac_status); } && | |
89be85c2 VS |
36969 | { ac_try='test -z "$ac_cxx_werror_flag" |
36970 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36971 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36972 | (eval $ac_try) 2>&5 | |
36973 | ac_status=$? | |
36974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36975 | (exit $ac_status); }; } && | |
36976 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36978 | (eval $ac_try) 2>&5 | |
36979 | ac_status=$? | |
36980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36981 | (exit $ac_status); }; }; then | |
36982 | wx_cv_type_getsockname3=socklen_t | |
36983 | else | |
36984 | echo "$as_me: failed program was:" >&5 | |
36985 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36986 | ||
36987 | ||
36988 | CFLAGS_OLD="$CFLAGS" | |
36989 | if test "$GCC" = yes ; then | |
36990 | CFLAGS="$CFLAGS -Werror" | |
36991 | fi | |
36992 | ||
36993 | cat >conftest.$ac_ext <<_ACEOF | |
36994 | /* confdefs.h. */ | |
36995 | _ACEOF | |
36996 | cat confdefs.h >>conftest.$ac_ext | |
36997 | cat >>conftest.$ac_ext <<_ACEOF | |
36998 | /* end confdefs.h. */ | |
36999 | ||
37000 | #include <sys/types.h> | |
37001 | #include <sys/socket.h> | |
37002 | ||
37003 | int | |
37004 | main () | |
37005 | { | |
37006 | ||
37007 | size_t len; | |
37008 | getsockname(0, 0, &len); | |
37009 | ||
37010 | ; | |
37011 | return 0; | |
37012 | } | |
37013 | _ACEOF | |
37014 | rm -f conftest.$ac_objext | |
37015 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37016 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37017 | ac_status=$? |
ac1cb8d3 VS |
37018 | grep -v '^ *+' conftest.er1 >conftest.err |
37019 | rm -f conftest.er1 | |
37020 | cat conftest.err >&5 | |
a848cd7e SC |
37021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37022 | (exit $ac_status); } && | |
89be85c2 VS |
37023 | { ac_try='test -z "$ac_cxx_werror_flag" |
37024 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37026 | (eval $ac_try) 2>&5 | |
37027 | ac_status=$? | |
37028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37029 | (exit $ac_status); }; } && | |
37030 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37032 | (eval $ac_try) 2>&5 | |
37033 | ac_status=$? | |
37034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37035 | (exit $ac_status); }; }; then | |
37036 | wx_cv_type_getsockname3=size_t | |
37037 | else | |
37038 | echo "$as_me: failed program was:" >&5 | |
37039 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37040 | ||
37041 | cat >conftest.$ac_ext <<_ACEOF | |
37042 | /* confdefs.h. */ | |
37043 | _ACEOF | |
37044 | cat confdefs.h >>conftest.$ac_ext | |
37045 | cat >>conftest.$ac_ext <<_ACEOF | |
37046 | /* end confdefs.h. */ | |
37047 | ||
37048 | #include <sys/types.h> | |
37049 | #include <sys/socket.h> | |
37050 | ||
37051 | int | |
37052 | main () | |
37053 | { | |
37054 | ||
37055 | int len; | |
37056 | getsockname(0, 0, &len); | |
37057 | ||
37058 | ; | |
37059 | return 0; | |
37060 | } | |
37061 | _ACEOF | |
37062 | rm -f conftest.$ac_objext | |
37063 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37064 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37065 | ac_status=$? |
ac1cb8d3 VS |
37066 | grep -v '^ *+' conftest.er1 >conftest.err |
37067 | rm -f conftest.er1 | |
37068 | cat conftest.err >&5 | |
a848cd7e SC |
37069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37070 | (exit $ac_status); } && | |
89be85c2 VS |
37071 | { ac_try='test -z "$ac_cxx_werror_flag" |
37072 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37074 | (eval $ac_try) 2>&5 | |
37075 | ac_status=$? | |
37076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37077 | (exit $ac_status); }; } && | |
37078 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37080 | (eval $ac_try) 2>&5 | |
37081 | ac_status=$? | |
37082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37083 | (exit $ac_status); }; }; then | |
37084 | wx_cv_type_getsockname3=int | |
37085 | else | |
37086 | echo "$as_me: failed program was:" >&5 | |
37087 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37088 | ||
37089 | wx_cv_type_getsockname3=unknown | |
37090 | ||
37091 | fi | |
ac1cb8d3 | 37092 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37093 | |
37094 | fi | |
ac1cb8d3 | 37095 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37096 | |
37097 | CFLAGS="$CFLAGS_OLD" | |
37098 | ||
37099 | ||
37100 | fi | |
ac1cb8d3 | 37101 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37102 | |
37103 | fi | |
37104 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5 | |
37105 | echo "${ECHO_T}$wx_cv_type_getsockname3" >&6 | |
37106 | ||
37107 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
37108 | wxUSE_SOCKETS=no | |
37109 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
37110 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
37111 | else | |
37112 | cat >>confdefs.h <<_ACEOF | |
37113 | #define SOCKLEN_T $wx_cv_type_getsockname3 | |
5b674b9d DE |
37114 | _ACEOF |
37115 | ||
37116 | fi | |
37117 | echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5 | |
37118 | echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6 | |
37119 | if test "${wx_cv_type_getsockopt5+set}" = set; then | |
37120 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37121 | else | |
37122 | ||
37123 | cat >conftest.$ac_ext <<_ACEOF | |
37124 | /* confdefs.h. */ | |
37125 | _ACEOF | |
37126 | cat confdefs.h >>conftest.$ac_ext | |
37127 | cat >>conftest.$ac_ext <<_ACEOF | |
37128 | /* end confdefs.h. */ | |
37129 | ||
37130 | #include <sys/types.h> | |
37131 | #include <sys/socket.h> | |
37132 | ||
37133 | int | |
37134 | main () | |
37135 | { | |
37136 | ||
37137 | socklen_t len; | |
37138 | getsockopt(0, 0, 0, 0, &len); | |
37139 | ||
37140 | ; | |
37141 | return 0; | |
37142 | } | |
37143 | _ACEOF | |
37144 | rm -f conftest.$ac_objext | |
37145 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
37146 | (eval $ac_compile) 2>conftest.er1 | |
37147 | ac_status=$? | |
37148 | grep -v '^ *+' conftest.er1 >conftest.err | |
37149 | rm -f conftest.er1 | |
37150 | cat conftest.err >&5 | |
37151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37152 | (exit $ac_status); } && | |
89be85c2 VS |
37153 | { ac_try='test -z "$ac_cxx_werror_flag" |
37154 | || test ! -s conftest.err' | |
5b674b9d DE |
37155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37156 | (eval $ac_try) 2>&5 | |
37157 | ac_status=$? | |
37158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37159 | (exit $ac_status); }; } && | |
37160 | { ac_try='test -s conftest.$ac_objext' | |
37161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
37162 | (eval $ac_try) 2>&5 | |
37163 | ac_status=$? | |
37164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37165 | (exit $ac_status); }; }; then | |
37166 | wx_cv_type_getsockopt5=socklen_t | |
37167 | else | |
37168 | echo "$as_me: failed program was:" >&5 | |
37169 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37170 | ||
37171 | ||
37172 | CFLAGS_OLD="$CFLAGS" | |
37173 | if test "$GCC" = yes ; then | |
37174 | CFLAGS="$CFLAGS -Werror" | |
37175 | fi | |
37176 | ||
37177 | cat >conftest.$ac_ext <<_ACEOF | |
37178 | /* confdefs.h. */ | |
37179 | _ACEOF | |
37180 | cat confdefs.h >>conftest.$ac_ext | |
37181 | cat >>conftest.$ac_ext <<_ACEOF | |
37182 | /* end confdefs.h. */ | |
37183 | ||
37184 | #include <sys/types.h> | |
37185 | #include <sys/socket.h> | |
37186 | ||
37187 | int | |
37188 | main () | |
37189 | { | |
37190 | ||
37191 | size_t len; | |
37192 | getsockopt(0, 0, 0, 0, &len); | |
37193 | ||
37194 | ; | |
37195 | return 0; | |
37196 | } | |
37197 | _ACEOF | |
37198 | rm -f conftest.$ac_objext | |
37199 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
37200 | (eval $ac_compile) 2>conftest.er1 | |
37201 | ac_status=$? | |
37202 | grep -v '^ *+' conftest.er1 >conftest.err | |
37203 | rm -f conftest.er1 | |
37204 | cat conftest.err >&5 | |
37205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37206 | (exit $ac_status); } && | |
89be85c2 VS |
37207 | { ac_try='test -z "$ac_cxx_werror_flag" |
37208 | || test ! -s conftest.err' | |
5b674b9d DE |
37209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37210 | (eval $ac_try) 2>&5 | |
37211 | ac_status=$? | |
37212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37213 | (exit $ac_status); }; } && | |
37214 | { ac_try='test -s conftest.$ac_objext' | |
37215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
37216 | (eval $ac_try) 2>&5 | |
37217 | ac_status=$? | |
37218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37219 | (exit $ac_status); }; }; then | |
37220 | wx_cv_type_getsockopt5=size_t | |
37221 | else | |
37222 | echo "$as_me: failed program was:" >&5 | |
37223 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37224 | ||
37225 | cat >conftest.$ac_ext <<_ACEOF | |
37226 | /* confdefs.h. */ | |
37227 | _ACEOF | |
37228 | cat confdefs.h >>conftest.$ac_ext | |
37229 | cat >>conftest.$ac_ext <<_ACEOF | |
37230 | /* end confdefs.h. */ | |
37231 | ||
37232 | #include <sys/types.h> | |
37233 | #include <sys/socket.h> | |
37234 | ||
37235 | int | |
37236 | main () | |
37237 | { | |
37238 | ||
37239 | int len; | |
37240 | getsockopt(0, 0, 0, 0, &len); | |
37241 | ||
37242 | ; | |
37243 | return 0; | |
37244 | } | |
37245 | _ACEOF | |
37246 | rm -f conftest.$ac_objext | |
37247 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
37248 | (eval $ac_compile) 2>conftest.er1 | |
37249 | ac_status=$? | |
37250 | grep -v '^ *+' conftest.er1 >conftest.err | |
37251 | rm -f conftest.er1 | |
37252 | cat conftest.err >&5 | |
37253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37254 | (exit $ac_status); } && | |
89be85c2 VS |
37255 | { ac_try='test -z "$ac_cxx_werror_flag" |
37256 | || test ! -s conftest.err' | |
5b674b9d DE |
37257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37258 | (eval $ac_try) 2>&5 | |
37259 | ac_status=$? | |
37260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37261 | (exit $ac_status); }; } && | |
37262 | { ac_try='test -s conftest.$ac_objext' | |
37263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
37264 | (eval $ac_try) 2>&5 | |
37265 | ac_status=$? | |
37266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37267 | (exit $ac_status); }; }; then | |
37268 | wx_cv_type_getsockopt5=int | |
37269 | else | |
37270 | echo "$as_me: failed program was:" >&5 | |
37271 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37272 | ||
37273 | wx_cv_type_getsockopt5=unknown | |
37274 | ||
37275 | fi | |
37276 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
37277 | ||
37278 | fi | |
37279 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
37280 | ||
37281 | CFLAGS="$CFLAGS_OLD" | |
37282 | ||
37283 | ||
37284 | fi | |
37285 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
37286 | ||
37287 | fi | |
37288 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5 | |
37289 | echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6 | |
37290 | ||
37291 | if test "$wx_cv_type_getsockopt5" = "unknown"; then | |
37292 | wxUSE_SOCKETS=no | |
37293 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
37294 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
37295 | else | |
37296 | cat >>confdefs.h <<_ACEOF | |
37297 | #define SOCKOPTLEN_T $wx_cv_type_getsockopt5 | |
a848cd7e SC |
37298 | _ACEOF |
37299 | ||
37300 | fi | |
4d4ff94c VZ |
37301 | ac_ext=c |
37302 | ac_cpp='$CPP $CPPFLAGS' | |
37303 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
37304 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
37305 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
37306 | ||
a848cd7e SC |
37307 | fi |
37308 | fi | |
37309 | ||
37310 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
37311 | cat >>confdefs.h <<\_ACEOF | |
37312 | #define wxUSE_SOCKETS 1 | |
37313 | _ACEOF | |
37314 | ||
37315 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" | |
37316 | fi | |
37317 | ||
37318 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
37319 | if test "$wxUSE_SOCKETS" != "yes"; then | |
37320 | { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5 | |
37321 | echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;} | |
37322 | wxUSE_PROTOCOL=no | |
37323 | fi | |
37324 | fi | |
37325 | ||
37326 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
37327 | cat >>confdefs.h <<\_ACEOF | |
37328 | #define wxUSE_PROTOCOL 1 | |
37329 | _ACEOF | |
37330 | ||
37331 | ||
37332 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then | |
37333 | cat >>confdefs.h <<\_ACEOF | |
37334 | #define wxUSE_PROTOCOL_HTTP 1 | |
37335 | _ACEOF | |
37336 | ||
37337 | fi | |
37338 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
37339 | cat >>confdefs.h <<\_ACEOF | |
37340 | #define wxUSE_PROTOCOL_FTP 1 | |
37341 | _ACEOF | |
37342 | ||
37343 | fi | |
37344 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
37345 | cat >>confdefs.h <<\_ACEOF | |
37346 | #define wxUSE_PROTOCOL_FILE 1 | |
37347 | _ACEOF | |
37348 | ||
37349 | fi | |
37350 | else | |
37351 | if test "$wxUSE_FS_INET" = "yes"; then | |
37352 | { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5 | |
37353 | echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;} | |
37354 | wxUSE_FS_INET="no" | |
37355 | fi | |
37356 | fi | |
37357 | ||
37358 | if test "$wxUSE_URL" = "yes"; then | |
37359 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
37360 | { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5 | |
37361 | echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;} | |
37362 | wxUSE_URL=no | |
37363 | fi | |
37364 | if test "$wxUSE_URL" = "yes"; then | |
37365 | cat >>confdefs.h <<\_ACEOF | |
37366 | #define wxUSE_URL 1 | |
37367 | _ACEOF | |
37368 | ||
37369 | fi | |
37370 | fi | |
37371 | ||
37372 | if test "$wxUSE_FS_INET" = "yes"; then | |
37373 | cat >>confdefs.h <<\_ACEOF | |
37374 | #define wxUSE_FS_INET 1 | |
37375 | _ACEOF | |
37376 | ||
37377 | fi | |
37378 | ||
37379 | ||
37380 | if test "$wxUSE_GUI" = "yes"; then | |
4cb1d3da | 37381 | if test "$wxUSE_JOYSTICK" = "yes"; then |
a848cd7e | 37382 | |
4cb1d3da | 37383 | if test "$TOOLKIT" != "MAC" -a "$TOOLKIT" != "COCOA" -a "$TOOLKIT" != "MSW"; then |
a848cd7e SC |
37384 | |
37385 | for ac_header in linux/joystick.h | |
37386 | do | |
37387 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
37388 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
37389 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
37390 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
37391 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
37392 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37393 | fi | |
37394 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
37395 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
37396 | else | |
37397 | # Is the header compilable? | |
37398 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
37399 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
37400 | cat >conftest.$ac_ext <<_ACEOF | |
37401 | /* confdefs.h. */ | |
37402 | _ACEOF | |
37403 | cat confdefs.h >>conftest.$ac_ext | |
37404 | cat >>conftest.$ac_ext <<_ACEOF | |
37405 | /* end confdefs.h. */ | |
37406 | $ac_includes_default | |
37407 | #include <$ac_header> | |
37408 | _ACEOF | |
37409 | rm -f conftest.$ac_objext | |
37410 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37411 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37412 | ac_status=$? |
ac1cb8d3 VS |
37413 | grep -v '^ *+' conftest.er1 >conftest.err |
37414 | rm -f conftest.er1 | |
37415 | cat conftest.err >&5 | |
a848cd7e SC |
37416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37417 | (exit $ac_status); } && | |
89be85c2 VS |
37418 | { ac_try='test -z "$ac_c_werror_flag" |
37419 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37421 | (eval $ac_try) 2>&5 | |
37422 | ac_status=$? | |
37423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37424 | (exit $ac_status); }; } && | |
37425 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37426 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37427 | (eval $ac_try) 2>&5 | |
37428 | ac_status=$? | |
37429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37430 | (exit $ac_status); }; }; then | |
37431 | ac_header_compiler=yes | |
37432 | else | |
37433 | echo "$as_me: failed program was:" >&5 | |
37434 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37435 | ||
37436 | ac_header_compiler=no | |
37437 | fi | |
ac1cb8d3 | 37438 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37439 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
37440 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
37441 | ||
37442 | # Is the header present? | |
37443 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
37444 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
37445 | cat >conftest.$ac_ext <<_ACEOF | |
37446 | /* confdefs.h. */ | |
37447 | _ACEOF | |
37448 | cat confdefs.h >>conftest.$ac_ext | |
37449 | cat >>conftest.$ac_ext <<_ACEOF | |
37450 | /* end confdefs.h. */ | |
37451 | #include <$ac_header> | |
37452 | _ACEOF | |
37453 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
37454 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
37455 | ac_status=$? | |
37456 | grep -v '^ *+' conftest.er1 >conftest.err | |
37457 | rm -f conftest.er1 | |
37458 | cat conftest.err >&5 | |
37459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37460 | (exit $ac_status); } >/dev/null; then | |
37461 | if test -s conftest.err; then | |
37462 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 37463 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
37464 | else |
37465 | ac_cpp_err= | |
37466 | fi | |
37467 | else | |
37468 | ac_cpp_err=yes | |
37469 | fi | |
37470 | if test -z "$ac_cpp_err"; then | |
37471 | ac_header_preproc=yes | |
37472 | else | |
37473 | echo "$as_me: failed program was:" >&5 | |
37474 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37475 | ||
37476 | ac_header_preproc=no | |
37477 | fi | |
37478 | rm -f conftest.err conftest.$ac_ext | |
37479 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
37480 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
37481 | ||
37482 | # So? What about this header? | |
ac1cb8d3 VS |
37483 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
37484 | yes:no: ) | |
a848cd7e SC |
37485 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
37486 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
37487 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
37488 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
37489 | ac_header_preproc=yes | |
a848cd7e | 37490 | ;; |
ac1cb8d3 | 37491 | no:yes:* ) |
a848cd7e SC |
37492 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
37493 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
37494 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
37495 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
37496 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
37497 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
37498 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
37499 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
37500 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
37501 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
37502 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
37503 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
37504 | ( |
37505 | cat <<\_ASBOX | |
ac1cb8d3 VS |
37506 | ## ----------------------------------------- ## |
37507 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
37508 | ## ----------------------------------------- ## | |
a848cd7e SC |
37509 | _ASBOX |
37510 | ) | | |
37511 | sed "s/^/$as_me: WARNING: /" >&2 | |
37512 | ;; | |
37513 | esac | |
37514 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
37515 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
37516 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
37517 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37518 | else | |
ac1cb8d3 | 37519 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
37520 | fi |
37521 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
37522 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
37523 | ||
37524 | fi | |
37525 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
37526 | cat >>confdefs.h <<_ACEOF | |
37527 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
37528 | _ACEOF | |
37529 | ||
37530 | fi | |
37531 | ||
37532 | done | |
37533 | ||
37534 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then | |
37535 | wxUSE_JOYSTICK=no | |
37536 | { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5 | |
37537 | echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;} | |
37538 | fi | |
4cb1d3da RN |
37539 | else |
37540 | if test "$USE_DARWIN" != 1 -a "$TOOLKIT" != "MSW"; then | |
37541 | wxUSE_JOYSTICK=no | |
37542 | { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5 | |
37543 | echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;} | |
37544 | fi | |
a848cd7e | 37545 | fi |
a848cd7e | 37546 | |
4cb1d3da RN |
37547 | |
37548 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
37549 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
37550 | #define wxUSE_JOYSTICK 1 |
37551 | _ACEOF | |
37552 | ||
4cb1d3da RN |
37553 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
37554 | fi | |
a848cd7e SC |
37555 | fi |
37556 | fi | |
37557 | ||
37558 | ||
37559 | ||
37560 | if test "$wxUSE_FONTMAP" = "yes" ; then | |
37561 | cat >>confdefs.h <<\_ACEOF | |
37562 | #define wxUSE_FONTMAP 1 | |
37563 | _ACEOF | |
37564 | ||
37565 | fi | |
37566 | ||
37567 | if test "$wxUSE_UNICODE" = "yes" ; then | |
37568 | cat >>confdefs.h <<\_ACEOF | |
37569 | #define wxUSE_UNICODE 1 | |
37570 | _ACEOF | |
37571 | ||
37572 | ||
37573 | if test "$USE_WIN32" != 1; then | |
37574 | wxUSE_UNICODE_MSLU=no | |
37575 | fi | |
37576 | ||
37577 | if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
37578 | echo "$as_me:$LINENO: checking for main in -lunicows" >&5 | |
37579 | echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6 | |
37580 | if test "${ac_cv_lib_unicows_main+set}" = set; then | |
37581 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37582 | else | |
37583 | ac_check_lib_save_LIBS=$LIBS | |
37584 | LIBS="-lunicows $LIBS" | |
37585 | cat >conftest.$ac_ext <<_ACEOF | |
37586 | /* confdefs.h. */ | |
37587 | _ACEOF | |
37588 | cat confdefs.h >>conftest.$ac_ext | |
37589 | cat >>conftest.$ac_ext <<_ACEOF | |
37590 | /* end confdefs.h. */ | |
37591 | ||
37592 | ||
37593 | int | |
37594 | main () | |
37595 | { | |
37596 | main (); | |
37597 | ; | |
37598 | return 0; | |
37599 | } | |
37600 | _ACEOF | |
37601 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37602 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37603 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37604 | ac_status=$? |
ac1cb8d3 VS |
37605 | grep -v '^ *+' conftest.er1 >conftest.err |
37606 | rm -f conftest.er1 | |
37607 | cat conftest.err >&5 | |
a848cd7e SC |
37608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37609 | (exit $ac_status); } && | |
89be85c2 VS |
37610 | { ac_try='test -z "$ac_c_werror_flag" |
37611 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37613 | (eval $ac_try) 2>&5 | |
37614 | ac_status=$? | |
37615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37616 | (exit $ac_status); }; } && | |
37617 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
37623 | ac_cv_lib_unicows_main=yes | |
37624 | else | |
37625 | echo "$as_me: failed program was:" >&5 | |
37626 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37627 | ||
37628 | ac_cv_lib_unicows_main=no | |
37629 | fi | |
ac1cb8d3 VS |
37630 | rm -f conftest.err conftest.$ac_objext \ |
37631 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37632 | LIBS=$ac_check_lib_save_LIBS |
37633 | fi | |
37634 | echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5 | |
37635 | echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6 | |
37636 | if test $ac_cv_lib_unicows_main = yes; then | |
37637 | ||
37638 | cat >>confdefs.h <<\_ACEOF | |
37639 | #define wxUSE_UNICODE_MSLU 1 | |
37640 | _ACEOF | |
37641 | ||
37642 | ||
37643 | else | |
37644 | ||
37645 | { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
37646 | Applications will only run on Windows NT/2000/XP!" >&5 | |
37647 | echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
37648 | Applications will only run on Windows NT/2000/XP!" >&2;} | |
37649 | wxUSE_UNICODE_MSLU=no | |
37650 | ||
37651 | fi | |
37652 | ||
37653 | fi | |
37654 | fi | |
37655 | ||
37656 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
37657 | cat >>confdefs.h <<\_ACEOF | |
37658 | #define wxUSE_EXPERIMENTAL_PRINTF 1 | |
37659 | _ACEOF | |
37660 | ||
37661 | fi | |
37662 | ||
37663 | ||
37664 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then | |
37665 | cat >>confdefs.h <<\_ACEOF | |
37666 | #define wxUSE_POSTSCRIPT 1 | |
37667 | _ACEOF | |
37668 | ||
37669 | fi | |
37670 | ||
37671 | cat >>confdefs.h <<\_ACEOF | |
37672 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 | |
37673 | _ACEOF | |
37674 | ||
37675 | ||
37676 | cat >>confdefs.h <<\_ACEOF | |
37677 | #define wxUSE_NORMALIZED_PS_FONTS 1 | |
37678 | _ACEOF | |
37679 | ||
37680 | ||
37681 | ||
37682 | if test "$wxUSE_CONSTRAINTS" = "yes"; then | |
37683 | cat >>confdefs.h <<\_ACEOF | |
37684 | #define wxUSE_CONSTRAINTS 1 | |
37685 | _ACEOF | |
37686 | ||
37687 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
37688 | fi | |
37689 | ||
8a7b1113 VZ |
37690 | if test "$wxUSE_MDI" = "yes"; then |
37691 | cat >>confdefs.h <<\_ACEOF | |
37692 | #define wxUSE_MDI 1 | |
37693 | _ACEOF | |
37694 | ||
37695 | ||
37696 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
37697 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
37698 | #define wxUSE_MDI_ARCHITECTURE 1 |
37699 | _ACEOF | |
37700 | ||
8a7b1113 VZ |
37701 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
37702 | fi | |
a848cd7e SC |
37703 | fi |
37704 | ||
37705 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
37706 | cat >>confdefs.h <<\_ACEOF | |
37707 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
37708 | _ACEOF | |
37709 | ||
37710 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
37711 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
37712 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
37713 | fi | |
37714 | fi | |
37715 | ||
37716 | if test "$wxUSE_HELP" = "yes"; then | |
37717 | cat >>confdefs.h <<\_ACEOF | |
37718 | #define wxUSE_HELP 1 | |
37719 | _ACEOF | |
37720 | ||
37721 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
37722 | ||
37723 | if test "$wxUSE_MSW" = 1; then | |
37724 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then | |
37725 | cat >>confdefs.h <<\_ACEOF | |
37726 | #define wxUSE_MS_HTML_HELP 1 | |
37727 | _ACEOF | |
37728 | ||
37729 | fi | |
37730 | fi | |
37731 | ||
37732 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
37733 | if test "$wxUSE_HTML" = "yes"; then | |
37734 | cat >>confdefs.h <<\_ACEOF | |
37735 | #define wxUSE_WXHTML_HELP 1 | |
37736 | _ACEOF | |
37737 | ||
37738 | else | |
37739 | { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5 | |
37740 | echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;} | |
37741 | wxUSE_WXHTML_HELP=no | |
37742 | fi | |
37743 | fi | |
37744 | fi | |
37745 | ||
37746 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
37747 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
37748 | { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5 | |
37749 | echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;} | |
37750 | else | |
37751 | cat >>confdefs.h <<\_ACEOF | |
37752 | #define wxUSE_PRINTING_ARCHITECTURE 1 | |
37753 | _ACEOF | |
37754 | ||
37755 | fi | |
37756 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
37757 | fi | |
37758 | ||
37759 | if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then | |
37760 | { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5 | |
37761 | echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;} | |
37762 | { (exit 1); exit 1; }; } | |
37763 | fi | |
37764 | ||
37765 | ||
37766 | if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ | |
37767 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
37768 | -o "$wxUSE_OLE" = "yes" \ | |
37769 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
37770 | ||
37771 | for ac_header in ole2.h | |
37772 | do | |
37773 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
37774 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
37775 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
37776 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
37777 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
37778 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37779 | fi | |
37780 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
37781 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
37782 | else | |
37783 | # Is the header compilable? | |
37784 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
37785 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
37786 | cat >conftest.$ac_ext <<_ACEOF | |
37787 | /* confdefs.h. */ | |
37788 | _ACEOF | |
37789 | cat confdefs.h >>conftest.$ac_ext | |
37790 | cat >>conftest.$ac_ext <<_ACEOF | |
37791 | /* end confdefs.h. */ | |
37792 | $ac_includes_default | |
37793 | #include <$ac_header> | |
37794 | _ACEOF | |
37795 | rm -f conftest.$ac_objext | |
37796 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37797 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37798 | ac_status=$? |
ac1cb8d3 VS |
37799 | grep -v '^ *+' conftest.er1 >conftest.err |
37800 | rm -f conftest.er1 | |
37801 | cat conftest.err >&5 | |
a848cd7e SC |
37802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37803 | (exit $ac_status); } && | |
89be85c2 VS |
37804 | { ac_try='test -z "$ac_c_werror_flag" |
37805 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37807 | (eval $ac_try) 2>&5 | |
37808 | ac_status=$? | |
37809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37810 | (exit $ac_status); }; } && | |
37811 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37813 | (eval $ac_try) 2>&5 | |
37814 | ac_status=$? | |
37815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37816 | (exit $ac_status); }; }; then | |
37817 | ac_header_compiler=yes | |
37818 | else | |
37819 | echo "$as_me: failed program was:" >&5 | |
37820 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37821 | ||
37822 | ac_header_compiler=no | |
37823 | fi | |
ac1cb8d3 | 37824 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37825 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
37826 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
37827 | ||
37828 | # Is the header present? | |
37829 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
37830 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
37831 | cat >conftest.$ac_ext <<_ACEOF | |
37832 | /* confdefs.h. */ | |
37833 | _ACEOF | |
37834 | cat confdefs.h >>conftest.$ac_ext | |
37835 | cat >>conftest.$ac_ext <<_ACEOF | |
37836 | /* end confdefs.h. */ | |
37837 | #include <$ac_header> | |
37838 | _ACEOF | |
37839 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
37840 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
37841 | ac_status=$? | |
37842 | grep -v '^ *+' conftest.er1 >conftest.err | |
37843 | rm -f conftest.er1 | |
37844 | cat conftest.err >&5 | |
37845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37846 | (exit $ac_status); } >/dev/null; then | |
37847 | if test -s conftest.err; then | |
37848 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 37849 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
37850 | else |
37851 | ac_cpp_err= | |
37852 | fi | |
37853 | else | |
37854 | ac_cpp_err=yes | |
37855 | fi | |
37856 | if test -z "$ac_cpp_err"; then | |
37857 | ac_header_preproc=yes | |
37858 | else | |
37859 | echo "$as_me: failed program was:" >&5 | |
37860 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37861 | ||
37862 | ac_header_preproc=no | |
37863 | fi | |
37864 | rm -f conftest.err conftest.$ac_ext | |
37865 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
37866 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
37867 | ||
37868 | # So? What about this header? | |
ac1cb8d3 VS |
37869 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
37870 | yes:no: ) | |
a848cd7e SC |
37871 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
37872 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
37873 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
37874 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
37875 | ac_header_preproc=yes | |
a848cd7e | 37876 | ;; |
ac1cb8d3 | 37877 | no:yes:* ) |
a848cd7e SC |
37878 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
37879 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
37880 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
37881 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
37882 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
37883 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
37884 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
37885 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
37886 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
37887 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
37888 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
37889 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
37890 | ( |
37891 | cat <<\_ASBOX | |
ac1cb8d3 VS |
37892 | ## ----------------------------------------- ## |
37893 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
37894 | ## ----------------------------------------- ## | |
a848cd7e SC |
37895 | _ASBOX |
37896 | ) | | |
37897 | sed "s/^/$as_me: WARNING: /" >&2 | |
37898 | ;; | |
37899 | esac | |
37900 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
37901 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
37902 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
37903 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37904 | else | |
ac1cb8d3 | 37905 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
37906 | fi |
37907 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
37908 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
37909 | ||
37910 | fi | |
37911 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
37912 | cat >>confdefs.h <<_ACEOF | |
37913 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
37914 | _ACEOF | |
37915 | ||
37916 | fi | |
37917 | ||
37918 | done | |
37919 | ||
37920 | ||
37921 | if test "$ac_cv_header_ole2_h" = "yes" ; then | |
37922 | if test "$GCC" = yes ; then | |
37923 | ||
37924 | ||
37925 | ac_ext=cc | |
37926 | ac_cpp='$CXXCPP $CPPFLAGS' | |
37927 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
37928 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
37929 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
37930 | ||
37931 | ||
37932 | echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5 | |
37933 | echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6 | |
37934 | cat >conftest.$ac_ext <<_ACEOF | |
37935 | /* confdefs.h. */ | |
37936 | _ACEOF | |
37937 | cat confdefs.h >>conftest.$ac_ext | |
37938 | cat >>conftest.$ac_ext <<_ACEOF | |
37939 | /* end confdefs.h. */ | |
37940 | #include <windows.h> | |
37941 | #include <ole2.h> | |
37942 | int | |
37943 | main () | |
37944 | { | |
37945 | ||
37946 | ; | |
37947 | return 0; | |
37948 | } | |
37949 | _ACEOF | |
37950 | rm -f conftest.$ac_objext | |
37951 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37952 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37953 | ac_status=$? |
ac1cb8d3 VS |
37954 | grep -v '^ *+' conftest.er1 >conftest.err |
37955 | rm -f conftest.er1 | |
37956 | cat conftest.err >&5 | |
a848cd7e SC |
37957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37958 | (exit $ac_status); } && | |
89be85c2 VS |
37959 | { ac_try='test -z "$ac_cxx_werror_flag" |
37960 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37962 | (eval $ac_try) 2>&5 | |
37963 | ac_status=$? | |
37964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37965 | (exit $ac_status); }; } && | |
37966 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37968 | (eval $ac_try) 2>&5 | |
37969 | ac_status=$? | |
37970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37971 | (exit $ac_status); }; }; then | |
37972 | echo "$as_me:$LINENO: result: no" >&5 | |
37973 | echo "${ECHO_T}no" >&6 | |
37974 | else | |
37975 | echo "$as_me: failed program was:" >&5 | |
37976 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37977 | ||
37978 | echo "$as_me:$LINENO: result: yes" >&5 | |
37979 | echo "${ECHO_T}yes" >&6 | |
37980 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" | |
37981 | fi | |
ac1cb8d3 | 37982 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37983 | ac_ext=c |
37984 | ac_cpp='$CPP $CPPFLAGS' | |
37985 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
37986 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
37987 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
37988 | ||
a848cd7e SC |
37989 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
37990 | if test "$wxUSE_OLE" = "yes" ; then | |
37991 | cat >>confdefs.h <<\_ACEOF | |
37992 | #define wxUSE_OLE 1 | |
37993 | _ACEOF | |
37994 | ||
37995 | fi | |
37996 | fi | |
37997 | ||
37998 | if test "$wxUSE_DATAOBJ" = "yes" ; then | |
37999 | cat >>confdefs.h <<\_ACEOF | |
38000 | #define wxUSE_DATAOBJ 1 | |
38001 | _ACEOF | |
38002 | ||
38003 | fi | |
38004 | else | |
38005 | { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5 | |
38006 | echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;} | |
38007 | ||
38008 | wxUSE_CLIPBOARD=no | |
38009 | wxUSE_DRAG_AND_DROP=no | |
38010 | wxUSE_DATAOBJ=no | |
38011 | wxUSE_OLE=no | |
38012 | fi | |
38013 | ||
38014 | if test "$wxUSE_METAFILE" = "yes"; then | |
38015 | cat >>confdefs.h <<\_ACEOF | |
38016 | #define wxUSE_METAFILE 1 | |
38017 | _ACEOF | |
38018 | ||
38019 | ||
38020 | cat >>confdefs.h <<\_ACEOF | |
38021 | #define wxUSE_ENH_METAFILE 1 | |
38022 | _ACEOF | |
38023 | ||
38024 | fi | |
38025 | fi | |
38026 | ||
38027 | if test "$wxUSE_IPC" = "yes"; then | |
38028 | if test "$wxUSE_SOCKETS" != "yes"; then | |
77ffb593 JS |
38029 | { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5 |
38030 | echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;} | |
a848cd7e SC |
38031 | fi |
38032 | ||
38033 | cat >>confdefs.h <<\_ACEOF | |
38034 | #define wxUSE_IPC 1 | |
38035 | _ACEOF | |
38036 | ||
38037 | fi | |
38038 | ||
38039 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
38040 | if test "$wxUSE_MGL" = 1; then | |
38041 | { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5 | |
38042 | echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;} | |
38043 | wxUSE_CLIPBOARD=no | |
38044 | fi | |
38045 | ||
38046 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
38047 | cat >>confdefs.h <<\_ACEOF | |
38048 | #define wxUSE_CLIPBOARD 1 | |
38049 | _ACEOF | |
38050 | ||
38051 | ||
38052 | cat >>confdefs.h <<\_ACEOF | |
38053 | #define wxUSE_DATAOBJ 1 | |
38054 | _ACEOF | |
38055 | ||
38056 | fi | |
38057 | fi | |
38058 | ||
38059 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
38060 | if test "$wxUSE_GTK" = 1; then | |
38061 | if test "$WXGTK12" != 1; then | |
38062 | { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5 | |
38063 | echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;} | |
38064 | wxUSE_DRAG_AND_DROP=no | |
38065 | fi | |
38066 | fi | |
38067 | ||
38068 | if test "$wxUSE_MOTIF" = 1; then | |
38069 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5 | |
38070 | echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;} | |
38071 | wxUSE_DRAG_AND_DROP=no | |
38072 | fi | |
38073 | ||
38074 | if test "$wxUSE_X11" = 1; then | |
38075 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5 | |
38076 | echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;} | |
38077 | wxUSE_DRAG_AND_DROP=no | |
38078 | fi | |
38079 | ||
38080 | if test "$wxUSE_MGL" = 1; then | |
38081 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5 | |
38082 | echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;} | |
38083 | wxUSE_DRAG_AND_DROP=no | |
38084 | fi | |
38085 | ||
38086 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
38087 | cat >>confdefs.h <<\_ACEOF | |
38088 | #define wxUSE_DRAG_AND_DROP 1 | |
38089 | _ACEOF | |
38090 | ||
38091 | fi | |
38092 | ||
38093 | fi | |
38094 | ||
38095 | if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then | |
38096 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
38097 | fi | |
38098 | ||
38099 | if test "$wxUSE_SPLINES" = "yes" ; then | |
38100 | cat >>confdefs.h <<\_ACEOF | |
38101 | #define wxUSE_SPLINES 1 | |
38102 | _ACEOF | |
38103 | ||
38104 | fi | |
38105 | ||
38106 | ||
38107 | USES_CONTROLS=0 | |
38108 | if test "$wxUSE_CONTROLS" = "yes"; then | |
38109 | USES_CONTROLS=1 | |
38110 | fi | |
38111 | ||
38112 | if test "$wxUSE_ACCEL" = "yes"; then | |
38113 | cat >>confdefs.h <<\_ACEOF | |
38114 | #define wxUSE_ACCEL 1 | |
38115 | _ACEOF | |
38116 | ||
38117 | USES_CONTROLS=1 | |
38118 | fi | |
38119 | ||
38120 | if test "$wxUSE_BUTTON" = "yes"; then | |
38121 | cat >>confdefs.h <<\_ACEOF | |
38122 | #define wxUSE_BUTTON 1 | |
38123 | _ACEOF | |
38124 | ||
38125 | USES_CONTROLS=1 | |
38126 | fi | |
38127 | ||
38128 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
38129 | cat >>confdefs.h <<\_ACEOF | |
38130 | #define wxUSE_BMPBUTTON 1 | |
38131 | _ACEOF | |
38132 | ||
38133 | USES_CONTROLS=1 | |
38134 | fi | |
38135 | ||
38136 | if test "$wxUSE_CALCTRL" = "yes"; then | |
38137 | cat >>confdefs.h <<\_ACEOF | |
38138 | #define wxUSE_CALENDARCTRL 1 | |
38139 | _ACEOF | |
38140 | ||
38141 | USES_CONTROLS=1 | |
38142 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
38143 | fi | |
38144 | ||
38145 | if test "$wxUSE_CARET" = "yes"; then | |
38146 | cat >>confdefs.h <<\_ACEOF | |
38147 | #define wxUSE_CARET 1 | |
38148 | _ACEOF | |
38149 | ||
38150 | USES_CONTROLS=1 | |
38151 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
38152 | fi | |
38153 | ||
38154 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
38155 | cat >>confdefs.h <<\_ACEOF | |
38156 | #define wxUSE_COMBOBOX 1 | |
38157 | _ACEOF | |
38158 | ||
38159 | USES_CONTROLS=1 | |
38160 | fi | |
38161 | ||
38162 | if test "$wxUSE_CHOICE" = "yes"; then | |
38163 | cat >>confdefs.h <<\_ACEOF | |
38164 | #define wxUSE_CHOICE 1 | |
38165 | _ACEOF | |
38166 | ||
38167 | USES_CONTROLS=1 | |
38168 | fi | |
38169 | ||
92bbdbcd WS |
38170 | if test "$wxUSE_CHOICEBOOK" = "yes"; then |
38171 | cat >>confdefs.h <<\_ACEOF | |
38172 | #define wxUSE_CHOICEBOOK 1 | |
38173 | _ACEOF | |
38174 | ||
38175 | USES_CONTROLS=1 | |
38176 | fi | |
38177 | ||
a848cd7e SC |
38178 | if test "$wxUSE_CHECKBOX" = "yes"; then |
38179 | cat >>confdefs.h <<\_ACEOF | |
38180 | #define wxUSE_CHECKBOX 1 | |
38181 | _ACEOF | |
38182 | ||
38183 | USES_CONTROLS=1 | |
38184 | fi | |
38185 | ||
38186 | if test "$wxUSE_CHECKLST" = "yes"; then | |
38187 | cat >>confdefs.h <<\_ACEOF | |
38188 | #define wxUSE_CHECKLISTBOX 1 | |
38189 | _ACEOF | |
38190 | ||
38191 | USES_CONTROLS=1 | |
38192 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" | |
38193 | fi | |
38194 | ||
da98e9be VZ |
38195 | if test "$wxUSE_DATEPICKCTRL" = "yes"; then |
38196 | cat >>confdefs.h <<\_ACEOF | |
38197 | #define wxUSE_DATEPICKCTRL 1 | |
38198 | _ACEOF | |
38199 | ||
38200 | USES_CONTROLS=1 | |
38201 | fi | |
38202 | ||
a848cd7e SC |
38203 | if test "$wxUSE_DISPLAY" = "yes"; then |
38204 | cat >>confdefs.h <<\_ACEOF | |
38205 | #define wxUSE_DISPLAY 1 | |
38206 | _ACEOF | |
38207 | ||
38208 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display" | |
38209 | fi | |
38210 | ||
38211 | if test "$wxUSE_GAUGE" = "yes"; then | |
38212 | cat >>confdefs.h <<\_ACEOF | |
38213 | #define wxUSE_GAUGE 1 | |
38214 | _ACEOF | |
38215 | ||
38216 | USES_CONTROLS=1 | |
38217 | fi | |
38218 | ||
38219 | if test "$wxUSE_GRID" = "yes"; then | |
38220 | cat >>confdefs.h <<\_ACEOF | |
38221 | #define wxUSE_GRID 1 | |
38222 | _ACEOF | |
38223 | ||
38224 | USES_CONTROLS=1 | |
38225 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" | |
38226 | fi | |
38227 | ||
38228 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
38229 | cat >>confdefs.h <<\_ACEOF | |
38230 | #define wxUSE_IMAGLIST 1 | |
38231 | _ACEOF | |
38232 | ||
38233 | fi | |
38234 | ||
38235 | if test "$wxUSE_LISTBOOK" = "yes"; then | |
38236 | cat >>confdefs.h <<\_ACEOF | |
38237 | #define wxUSE_LISTBOOK 1 | |
38238 | _ACEOF | |
38239 | ||
38240 | USES_CONTROLS=1 | |
38241 | fi | |
38242 | ||
38243 | if test "$wxUSE_LISTBOX" = "yes"; then | |
38244 | cat >>confdefs.h <<\_ACEOF | |
38245 | #define wxUSE_LISTBOX 1 | |
38246 | _ACEOF | |
38247 | ||
38248 | USES_CONTROLS=1 | |
38249 | fi | |
38250 | ||
38251 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
38252 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
38253 | cat >>confdefs.h <<\_ACEOF | |
38254 | #define wxUSE_LISTCTRL 1 | |
38255 | _ACEOF | |
38256 | ||
38257 | USES_CONTROLS=1 | |
38258 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
38259 | else | |
38260 | { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5 | |
38261 | echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;} | |
38262 | fi | |
38263 | fi | |
38264 | ||
38265 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
38266 | cat >>confdefs.h <<\_ACEOF | |
38267 | #define wxUSE_NOTEBOOK 1 | |
38268 | _ACEOF | |
38269 | ||
38270 | USES_CONTROLS=1 | |
38271 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
38272 | fi | |
38273 | ||
38274 | ||
38275 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
38276 | cat >>confdefs.h <<\_ACEOF | |
38277 | #define wxUSE_RADIOBOX 1 | |
38278 | _ACEOF | |
38279 | ||
38280 | USES_CONTROLS=1 | |
38281 | fi | |
38282 | ||
38283 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
38284 | cat >>confdefs.h <<\_ACEOF | |
38285 | #define wxUSE_RADIOBTN 1 | |
38286 | _ACEOF | |
38287 | ||
38288 | USES_CONTROLS=1 | |
38289 | fi | |
38290 | ||
38291 | if test "$wxUSE_SASH" = "yes"; then | |
38292 | cat >>confdefs.h <<\_ACEOF | |
38293 | #define wxUSE_SASH 1 | |
38294 | _ACEOF | |
38295 | ||
38296 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
38297 | fi | |
38298 | ||
38299 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
38300 | cat >>confdefs.h <<\_ACEOF | |
38301 | #define wxUSE_SCROLLBAR 1 | |
38302 | _ACEOF | |
38303 | ||
38304 | USES_CONTROLS=1 | |
38305 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" | |
38306 | fi | |
38307 | ||
38308 | if test "$wxUSE_SLIDER" = "yes"; then | |
38309 | cat >>confdefs.h <<\_ACEOF | |
38310 | #define wxUSE_SLIDER 1 | |
38311 | _ACEOF | |
38312 | ||
38313 | USES_CONTROLS=1 | |
38314 | fi | |
38315 | ||
38316 | if test "$wxUSE_SPINBTN" = "yes"; then | |
38317 | cat >>confdefs.h <<\_ACEOF | |
38318 | #define wxUSE_SPINBTN 1 | |
38319 | _ACEOF | |
38320 | ||
38321 | USES_CONTROLS=1 | |
38322 | fi | |
38323 | ||
38324 | if test "$wxUSE_SPINCTRL" = "yes"; then | |
38325 | cat >>confdefs.h <<\_ACEOF | |
38326 | #define wxUSE_SPINCTRL 1 | |
38327 | _ACEOF | |
38328 | ||
38329 | USES_CONTROLS=1 | |
38330 | fi | |
38331 | ||
38332 | if test "$wxUSE_SPLITTER" = "yes"; then | |
38333 | cat >>confdefs.h <<\_ACEOF | |
38334 | #define wxUSE_SPLITTER 1 | |
38335 | _ACEOF | |
38336 | ||
38337 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
38338 | fi | |
38339 | ||
38340 | if test "$wxUSE_STATBMP" = "yes"; then | |
38341 | cat >>confdefs.h <<\_ACEOF | |
38342 | #define wxUSE_STATBMP 1 | |
38343 | _ACEOF | |
38344 | ||
38345 | USES_CONTROLS=1 | |
38346 | fi | |
38347 | ||
38348 | if test "$wxUSE_STATBOX" = "yes"; then | |
38349 | cat >>confdefs.h <<\_ACEOF | |
38350 | #define wxUSE_STATBOX 1 | |
38351 | _ACEOF | |
38352 | ||
38353 | USES_CONTROLS=1 | |
38354 | fi | |
38355 | ||
38356 | if test "$wxUSE_STATTEXT" = "yes"; then | |
38357 | cat >>confdefs.h <<\_ACEOF | |
38358 | #define wxUSE_STATTEXT 1 | |
38359 | _ACEOF | |
38360 | ||
38361 | USES_CONTROLS=1 | |
38362 | fi | |
38363 | ||
38364 | if test "$wxUSE_STATLINE" = "yes"; then | |
38365 | cat >>confdefs.h <<\_ACEOF | |
38366 | #define wxUSE_STATLINE 1 | |
38367 | _ACEOF | |
38368 | ||
38369 | USES_CONTROLS=1 | |
38370 | fi | |
38371 | ||
38372 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
da4486fb VZ |
38373 | cat >>confdefs.h <<\_ACEOF |
38374 | #define wxUSE_NATIVE_STATUSBAR 1 | |
38375 | _ACEOF | |
38376 | ||
a848cd7e SC |
38377 | cat >>confdefs.h <<\_ACEOF |
38378 | #define wxUSE_STATUSBAR 1 | |
38379 | _ACEOF | |
38380 | ||
38381 | USES_CONTROLS=1 | |
38382 | ||
38383 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" | |
38384 | fi | |
38385 | ||
38386 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
38387 | cat >>confdefs.h <<\_ACEOF | |
38388 | #define wxUSE_TAB_DIALOG 1 | |
38389 | _ACEOF | |
38390 | ||
a848cd7e SC |
38391 | fi |
38392 | ||
38393 | if test "$wxUSE_TEXTCTRL" = "yes"; then | |
38394 | cat >>confdefs.h <<\_ACEOF | |
38395 | #define wxUSE_TEXTCTRL 1 | |
38396 | _ACEOF | |
38397 | ||
38398 | USES_CONTROLS=1 | |
38399 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
38400 | fi | |
38401 | ||
38402 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
38403 | if test "$wxUSE_COCOA" = 1 ; then | |
38404 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5 | |
38405 | echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;} | |
38406 | wxUSE_TOGGLEBTN=no | |
bdcade0a MB |
38407 | else |
38408 | if test "$wxUSE_PM" = 1; then | |
38409 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5 | |
38410 | echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;} | |
38411 | wxUSE_TOGGLEBTN=no | |
38412 | fi | |
a848cd7e SC |
38413 | fi |
38414 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
38415 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5 | |
38416 | echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;} | |
38417 | wxUSE_TOGGLEBTN=no | |
38418 | fi | |
38419 | ||
38420 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
38421 | cat >>confdefs.h <<\_ACEOF | |
38422 | #define wxUSE_TOGGLEBTN 1 | |
38423 | _ACEOF | |
38424 | ||
38425 | USES_CONTROLS=1 | |
38426 | fi | |
38427 | fi | |
38428 | ||
38429 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then | |
38430 | cat >>confdefs.h <<\_ACEOF | |
38431 | #define wxUSE_TOOLBAR_SIMPLE 1 | |
38432 | _ACEOF | |
38433 | ||
38434 | wxUSE_TOOLBAR="yes" | |
38435 | USES_CONTROLS=1 | |
38436 | fi | |
38437 | ||
38438 | if test "$wxUSE_TOOLBAR" = "yes"; then | |
38439 | cat >>confdefs.h <<\_ACEOF | |
38440 | #define wxUSE_TOOLBAR 1 | |
38441 | _ACEOF | |
38442 | ||
38443 | USES_CONTROLS=1 | |
38444 | ||
38445 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then | |
38446 | wxUSE_TOOLBAR_NATIVE="yes" | |
38447 | fi | |
38448 | ||
38449 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then | |
38450 | cat >>confdefs.h <<\_ACEOF | |
38451 | #define wxUSE_TOOLBAR_NATIVE 1 | |
38452 | _ACEOF | |
38453 | ||
38454 | USES_CONTROLS=1 | |
38455 | fi | |
38456 | ||
38457 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
38458 | fi | |
38459 | ||
38460 | if test "$wxUSE_TOOLTIPS" = "yes"; then | |
38461 | if test "$wxUSE_MOTIF" = 1; then | |
38462 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5 | |
38463 | echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;} | |
38464 | else | |
38465 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
38466 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5 | |
38467 | echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;} | |
38468 | else | |
38469 | cat >>confdefs.h <<\_ACEOF | |
38470 | #define wxUSE_TOOLTIPS 1 | |
38471 | _ACEOF | |
38472 | ||
38473 | fi | |
38474 | fi | |
38475 | fi | |
38476 | ||
38477 | if test "$wxUSE_TREECTRL" = "yes"; then | |
38478 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
38479 | cat >>confdefs.h <<\_ACEOF | |
38480 | #define wxUSE_TREECTRL 1 | |
38481 | _ACEOF | |
38482 | ||
38483 | USES_CONTROLS=1 | |
38484 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
38485 | else | |
38486 | { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5 | |
38487 | echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;} | |
38488 | fi | |
38489 | fi | |
38490 | ||
38491 | if test "$wxUSE_POPUPWIN" = "yes"; then | |
38492 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then | |
38493 | { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5 | |
38494 | echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;} | |
38495 | else | |
38496 | if test "$wxUSE_PM" = 1; then | |
38497 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5 | |
38498 | echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;} | |
38499 | else | |
38500 | cat >>confdefs.h <<\_ACEOF | |
38501 | #define wxUSE_POPUPWIN 1 | |
38502 | _ACEOF | |
38503 | ||
38504 | ||
38505 | USES_CONTROLS=1 | |
38506 | fi | |
38507 | fi | |
38508 | fi | |
38509 | ||
0dcd06dd | 38510 | if test "$wxUSE_DIALUP_MANAGER" = "yes"; then |
b843b628 MB |
38511 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
38512 | { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5 | |
38513 | echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;} | |
38514 | else | |
38515 | cat >>confdefs.h <<\_ACEOF | |
38516 | #define wxUSE_DIALUP_MANAGER 1 | |
38517 | _ACEOF | |
38518 | ||
38519 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" | |
38520 | fi | |
38521 | fi | |
38522 | ||
a848cd7e SC |
38523 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
38524 | if test "$wxUSE_PM" = 1; then | |
38525 | { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5 | |
38526 | echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;} | |
38527 | else | |
38528 | cat >>confdefs.h <<\_ACEOF | |
38529 | #define wxUSE_TIPWINDOW 1 | |
38530 | _ACEOF | |
38531 | ||
38532 | fi | |
38533 | fi | |
38534 | ||
38535 | if test "$USES_CONTROLS" = 1; then | |
38536 | cat >>confdefs.h <<\_ACEOF | |
38537 | #define wxUSE_CONTROLS 1 | |
38538 | _ACEOF | |
38539 | ||
38540 | fi | |
38541 | ||
38542 | ||
38543 | if test "$wxUSE_ACCESSIBILITY" = "yes"; then | |
38544 | cat >>confdefs.h <<\_ACEOF | |
38545 | #define wxUSE_ACCESSIBILITY 1 | |
38546 | _ACEOF | |
38547 | ||
38548 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access" | |
38549 | fi | |
38550 | ||
38551 | if test "$wxUSE_DRAGIMAGE" = "yes"; then | |
38552 | cat >>confdefs.h <<\_ACEOF | |
38553 | #define wxUSE_DRAGIMAGE 1 | |
38554 | _ACEOF | |
38555 | ||
38556 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
38557 | fi | |
38558 | ||
38559 | if test "$wxUSE_EXCEPTIONS" = "yes"; then | |
07bea8f0 VS |
38560 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
38561 | { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5 | |
38562 | echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;} | |
38563 | else | |
38564 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
38565 | #define wxUSE_EXCEPTIONS 1 |
38566 | _ACEOF | |
38567 | ||
07bea8f0 VS |
38568 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except" |
38569 | fi | |
a848cd7e SC |
38570 | fi |
38571 | ||
38572 | USE_HTML=0 | |
38573 | if test "$wxUSE_HTML" = "yes"; then | |
38574 | cat >>confdefs.h <<\_ACEOF | |
38575 | #define wxUSE_HTML 1 | |
38576 | _ACEOF | |
38577 | ||
38578 | USE_HTML=1 | |
38579 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox" | |
de59c161 RD |
38580 | if test "$wxUSE_MAC" = 1; then |
38581 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl" | |
38582 | fi | |
a848cd7e | 38583 | fi |
646b6ec1 | 38584 | if test "$wxUSE_WEBKIT" = "yes"; then |
1e9e8aba | 38585 | if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then |
07bea8f0 VS |
38586 | old_CPPFLAGS="$CPPFLAGS" |
38587 | CPPFLAGS="$CPPFLAGS -x objective-c++" | |
38588 | echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5 | |
38589 | echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6 | |
38590 | if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then | |
38591 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38592 | else | |
38593 | cat >conftest.$ac_ext <<_ACEOF | |
38594 | /* confdefs.h. */ | |
38595 | _ACEOF | |
38596 | cat confdefs.h >>conftest.$ac_ext | |
38597 | cat >>conftest.$ac_ext <<_ACEOF | |
38598 | /* end confdefs.h. */ | |
38599 | #include <Carbon/Carbon.h> | |
38600 | ||
38601 | #include <WebKit/HIWebView.h> | |
38602 | _ACEOF | |
38603 | rm -f conftest.$ac_objext | |
38604 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
38605 | (eval $ac_compile) 2>conftest.er1 | |
38606 | ac_status=$? | |
38607 | grep -v '^ *+' conftest.er1 >conftest.err | |
38608 | rm -f conftest.er1 | |
38609 | cat conftest.err >&5 | |
38610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38611 | (exit $ac_status); } && | |
89be85c2 VS |
38612 | { ac_try='test -z "$ac_c_werror_flag" |
38613 | || test ! -s conftest.err' | |
07bea8f0 VS |
38614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38615 | (eval $ac_try) 2>&5 | |
38616 | ac_status=$? | |
38617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38618 | (exit $ac_status); }; } && | |
38619 | { ac_try='test -s conftest.$ac_objext' | |
38620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38621 | (eval $ac_try) 2>&5 | |
38622 | ac_status=$? | |
38623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38624 | (exit $ac_status); }; }; then | |
38625 | ac_cv_header_WebKit_HIWebView_h=yes | |
38626 | else | |
38627 | echo "$as_me: failed program was:" >&5 | |
38628 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38629 | ||
38630 | ac_cv_header_WebKit_HIWebView_h=no | |
38631 | fi | |
38632 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
38633 | fi | |
38634 | echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5 | |
38635 | echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6 | |
38636 | if test $ac_cv_header_WebKit_HIWebView_h = yes; then | |
38637 | ||
38638 | cat >>confdefs.h <<\_ACEOF | |
646b6ec1 VS |
38639 | #define wxUSE_WEBKIT 1 |
38640 | _ACEOF | |
38641 | ||
07bea8f0 VS |
38642 | WEBKIT_LINK="-framework WebKit" |
38643 | ||
38644 | else | |
38645 | ||
38646 | { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5 | |
38647 | echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;} | |
38648 | wxUSE_WEBKIT=no | |
38649 | ||
646b6ec1 VS |
38650 | fi |
38651 | ||
07bea8f0 VS |
38652 | |
38653 | CPPFLAGS="$old_CPPFLAGS" | |
38654 | elif test "$wxUSE_COCOA" = 1; then | |
38655 | cat >>confdefs.h <<\_ACEOF | |
38656 | #define wxUSE_WEBKIT 1 | |
38657 | _ACEOF | |
38658 | ||
38659 | else | |
38660 | wxUSE_WEBKIT=no | |
38661 | fi | |
38662 | fi | |
38663 | ||
9a8f0513 VS |
38664 | USE_XRC=0 |
38665 | if test "$wxUSE_XRC" = "yes"; then | |
d2ebf0b7 VS |
38666 | if test "$wxUSE_XML" != "yes"; then |
38667 | { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5 | |
38668 | echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;} | |
38669 | wxUSE_XRC=no | |
38670 | else | |
38671 | cat >>confdefs.h <<\_ACEOF | |
9a8f0513 VS |
38672 | #define wxUSE_XRC 1 |
38673 | _ACEOF | |
38674 | ||
d2ebf0b7 VS |
38675 | USE_XRC=1 |
38676 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc" | |
38677 | fi | |
9a8f0513 | 38678 | fi |
07bea8f0 | 38679 | |
a848cd7e SC |
38680 | if test "$wxUSE_MENUS" = "yes"; then |
38681 | cat >>confdefs.h <<\_ACEOF | |
38682 | #define wxUSE_MENUS 1 | |
38683 | _ACEOF | |
38684 | ||
38685 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" | |
38686 | fi | |
38687 | ||
38688 | if test "$wxUSE_METAFILE" = "yes"; then | |
38689 | cat >>confdefs.h <<\_ACEOF | |
38690 | #define wxUSE_METAFILE 1 | |
38691 | _ACEOF | |
38692 | ||
38693 | fi | |
38694 | ||
38695 | if test "$wxUSE_MIMETYPE" = "yes"; then | |
38696 | cat >>confdefs.h <<\_ACEOF | |
38697 | #define wxUSE_MIMETYPE 1 | |
38698 | _ACEOF | |
38699 | ||
38700 | fi | |
38701 | ||
38702 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
38703 | cat >>confdefs.h <<\_ACEOF | |
38704 | #define wxUSE_MINIFRAME 1 | |
38705 | _ACEOF | |
38706 | ||
38707 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
38708 | fi | |
38709 | ||
38710 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then | |
38711 | cat >>confdefs.h <<\_ACEOF | |
38712 | #define wxUSE_SYSTEM_OPTIONS 1 | |
38713 | _ACEOF | |
38714 | ||
38715 | if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \ | |
a49baeab | 38716 | "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then |
a848cd7e SC |
38717 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" |
38718 | fi | |
38719 | fi | |
38720 | ||
38721 | ||
38722 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
38723 | cat >>confdefs.h <<\_ACEOF | |
38724 | #define wxUSE_VALIDATORS 1 | |
38725 | _ACEOF | |
38726 | ||
38727 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" | |
38728 | fi | |
38729 | ||
38730 | if test "$wxUSE_PALETTE" = "yes" ; then | |
38731 | cat >>confdefs.h <<\_ACEOF | |
38732 | #define wxUSE_PALETTE 1 | |
38733 | _ACEOF | |
38734 | ||
38735 | fi | |
38736 | ||
38737 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then | |
38738 | LIBS=" -lunicows $LIBS" | |
38739 | fi | |
38740 | ||
38741 | ||
38742 | if test "$wxUSE_IMAGE" = "yes" ; then | |
38743 | cat >>confdefs.h <<\_ACEOF | |
38744 | #define wxUSE_IMAGE 1 | |
38745 | _ACEOF | |
38746 | ||
38747 | ||
38748 | if test "$wxUSE_GIF" = "yes" ; then | |
38749 | cat >>confdefs.h <<\_ACEOF | |
38750 | #define wxUSE_GIF 1 | |
38751 | _ACEOF | |
38752 | ||
38753 | fi | |
38754 | ||
38755 | if test "$wxUSE_PCX" = "yes" ; then | |
38756 | cat >>confdefs.h <<\_ACEOF | |
38757 | #define wxUSE_PCX 1 | |
38758 | _ACEOF | |
38759 | ||
38760 | fi | |
38761 | ||
38762 | if test "$wxUSE_IFF" = "yes" ; then | |
38763 | cat >>confdefs.h <<\_ACEOF | |
38764 | #define wxUSE_IFF 1 | |
38765 | _ACEOF | |
38766 | ||
38767 | fi | |
38768 | ||
38769 | if test "$wxUSE_PNM" = "yes" ; then | |
38770 | cat >>confdefs.h <<\_ACEOF | |
38771 | #define wxUSE_PNM 1 | |
38772 | _ACEOF | |
38773 | ||
38774 | fi | |
38775 | ||
38776 | if test "$wxUSE_XPM" = "yes" ; then | |
38777 | cat >>confdefs.h <<\_ACEOF | |
38778 | #define wxUSE_XPM 1 | |
38779 | _ACEOF | |
38780 | ||
38781 | fi | |
38782 | ||
38783 | if test "$wxUSE_ICO_CUR" = "yes" ; then | |
38784 | cat >>confdefs.h <<\_ACEOF | |
38785 | #define wxUSE_ICO_CUR 1 | |
38786 | _ACEOF | |
38787 | ||
38788 | fi | |
38789 | fi | |
38790 | ||
38791 | ||
38792 | if test "$wxUSE_CHOICEDLG" = "yes"; then | |
38793 | cat >>confdefs.h <<\_ACEOF | |
38794 | #define wxUSE_CHOICEDLG 1 | |
38795 | _ACEOF | |
38796 | ||
38797 | fi | |
38798 | ||
38799 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
38800 | cat >>confdefs.h <<\_ACEOF | |
38801 | #define wxUSE_COLOURDLG 1 | |
38802 | _ACEOF | |
38803 | ||
38804 | fi | |
38805 | ||
38806 | if test "$wxUSE_FILEDLG" = "yes"; then | |
38807 | cat >>confdefs.h <<\_ACEOF | |
38808 | #define wxUSE_FILEDLG 1 | |
38809 | _ACEOF | |
38810 | ||
38811 | fi | |
38812 | ||
38813 | if test "$wxUSE_FINDREPLDLG" = "yes"; then | |
38814 | cat >>confdefs.h <<\_ACEOF | |
38815 | #define wxUSE_FINDREPLDLG 1 | |
38816 | _ACEOF | |
38817 | ||
38818 | fi | |
38819 | ||
38820 | if test "$wxUSE_FONTDLG" = "yes"; then | |
38821 | cat >>confdefs.h <<\_ACEOF | |
38822 | #define wxUSE_FONTDLG 1 | |
38823 | _ACEOF | |
38824 | ||
38825 | fi | |
38826 | ||
38827 | if test "$wxUSE_DIRDLG" = "yes"; then | |
38828 | if test "$wxUSE_TREECTRL" != "yes"; then | |
38829 | { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5 | |
38830 | echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;} | |
38831 | else | |
38832 | cat >>confdefs.h <<\_ACEOF | |
38833 | #define wxUSE_DIRDLG 1 | |
38834 | _ACEOF | |
38835 | ||
38836 | fi | |
38837 | fi | |
38838 | ||
38839 | if test "$wxUSE_MSGDLG" = "yes"; then | |
38840 | cat >>confdefs.h <<\_ACEOF | |
38841 | #define wxUSE_MSGDLG 1 | |
38842 | _ACEOF | |
38843 | ||
38844 | fi | |
38845 | ||
38846 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
38847 | cat >>confdefs.h <<\_ACEOF | |
38848 | #define wxUSE_NUMBERDLG 1 | |
38849 | _ACEOF | |
38850 | ||
38851 | fi | |
38852 | ||
38853 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
38854 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
38855 | { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5 | |
38856 | echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;} | |
38857 | else | |
38858 | cat >>confdefs.h <<\_ACEOF | |
38859 | #define wxUSE_PROGRESSDLG 1 | |
38860 | _ACEOF | |
38861 | ||
38862 | fi | |
38863 | fi | |
38864 | ||
38865 | if test "$wxUSE_SPLASH" = "yes"; then | |
38866 | cat >>confdefs.h <<\_ACEOF | |
38867 | #define wxUSE_SPLASH 1 | |
38868 | _ACEOF | |
38869 | ||
2057db16 | 38870 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash" |
a848cd7e SC |
38871 | fi |
38872 | ||
38873 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
38874 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
38875 | { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5 | |
38876 | echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;} | |
38877 | else | |
38878 | cat >>confdefs.h <<\_ACEOF | |
38879 | #define wxUSE_STARTUP_TIPS 1 | |
38880 | _ACEOF | |
38881 | ||
38882 | fi | |
38883 | fi | |
38884 | ||
38885 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
38886 | cat >>confdefs.h <<\_ACEOF | |
38887 | #define wxUSE_TEXTDLG 1 | |
38888 | _ACEOF | |
38889 | ||
38890 | fi | |
38891 | ||
38892 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
38893 | cat >>confdefs.h <<\_ACEOF | |
38894 | #define wxUSE_WIZARDDLG 1 | |
38895 | _ACEOF | |
38896 | ||
38897 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
38898 | fi | |
38899 | ||
38900 | ||
ce756cb0 RN |
38901 | if test "$wxUSE_MEDIACTRL" = "yes"; then |
38902 | if test "$wxUSE_MSW" = 1; then | |
38903 | wxUSE_DIRECTSHOW="yes" | |
38904 | ||
38905 | for ac_header in dshow.h | |
38906 | do | |
38907 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
38908 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
38909 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
38910 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
38911 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38912 | else | |
38913 | cat >conftest.$ac_ext <<_ACEOF | |
38914 | /* confdefs.h. */ | |
38915 | _ACEOF | |
38916 | cat confdefs.h >>conftest.$ac_ext | |
38917 | cat >>conftest.$ac_ext <<_ACEOF | |
38918 | /* end confdefs.h. */ | |
38919 | #include <windows.h> | |
38920 | ||
38921 | #include <$ac_header> | |
38922 | _ACEOF | |
38923 | rm -f conftest.$ac_objext | |
38924 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
38925 | (eval $ac_compile) 2>conftest.er1 | |
38926 | ac_status=$? | |
38927 | grep -v '^ *+' conftest.er1 >conftest.err | |
38928 | rm -f conftest.er1 | |
38929 | cat conftest.err >&5 | |
38930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38931 | (exit $ac_status); } && | |
38932 | { ac_try='test -z "$ac_c_werror_flag" | |
38933 | || test ! -s conftest.err' | |
38934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38935 | (eval $ac_try) 2>&5 | |
38936 | ac_status=$? | |
38937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38938 | (exit $ac_status); }; } && | |
38939 | { ac_try='test -s conftest.$ac_objext' | |
38940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38941 | (eval $ac_try) 2>&5 | |
38942 | ac_status=$? | |
38943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38944 | (exit $ac_status); }; }; then | |
38945 | eval "$as_ac_Header=yes" | |
38946 | else | |
38947 | echo "$as_me: failed program was:" >&5 | |
38948 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38949 | ||
38950 | eval "$as_ac_Header=no" | |
38951 | fi | |
38952 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
38953 | fi | |
38954 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
38955 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
38956 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
38957 | cat >>confdefs.h <<_ACEOF | |
38958 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
38959 | _ACEOF | |
38960 | ||
38961 | else | |
38962 | ||
38963 | wxUSE_DIRECTSHOW="no" | |
38964 | { echo "$as_me:$LINENO: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&5 | |
38965 | echo "$as_me: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&2;} | |
38966 | ||
38967 | fi | |
38968 | ||
38969 | done | |
38970 | ||
38971 | ||
38972 | if test "$wxUSE_DIRECTSHOW" = "yes"; then | |
38973 | cat >>confdefs.h <<\_ACEOF | |
38974 | #define wxUSE_DIRECTSHOW 1 | |
38975 | _ACEOF | |
38976 | ||
38977 | LIBS="$LIBS -lstrmiids" | |
38978 | fi | |
38979 | fi | |
38980 | ||
38981 | if test "$wxUSE_GTK" = 1; then | |
38982 | wxUSE_GSTREAMER="yes" | |
38983 | ||
ce756cb0 | 38984 | |
dae87f93 | 38985 | succeeded=no |
ce756cb0 | 38986 | |
dae87f93 RN |
38987 | if test -z "$PKG_CONFIG"; then |
38988 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
38989 | set dummy pkg-config; ac_word=$2 | |
38990 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38991 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38992 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
38993 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38994 | else | |
38995 | case $PKG_CONFIG in | |
38996 | [\\/]* | ?:[\\/]*) | |
38997 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
38998 | ;; | |
38999 | *) | |
39000 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39001 | for as_dir in $PATH | |
39002 | do | |
39003 | IFS=$as_save_IFS | |
39004 | test -z "$as_dir" && as_dir=. | |
39005 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39006 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39007 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
39008 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39009 | break 2 | |
39010 | fi | |
39011 | done | |
39012 | done | |
39013 | ||
39014 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
39015 | ;; | |
39016 | esac | |
39017 | fi | |
39018 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
39019 | ||
39020 | if test -n "$PKG_CONFIG"; then | |
39021 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
39022 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
39023 | else | |
39024 | echo "$as_me:$LINENO: result: no" >&5 | |
39025 | echo "${ECHO_T}no" >&6 | |
39026 | fi | |
39027 | ||
39028 | fi | |
39029 | ||
39030 | if test "$PKG_CONFIG" = "no" ; then | |
39031 | echo "*** The pkg-config script could not be found. Make sure it is" | |
39032 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
39033 | echo "*** to the full path to pkg-config." | |
39034 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
39035 | else | |
39036 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
39037 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
39038 | echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5 | |
39039 | echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6 | |
39040 | ||
39041 | if $PKG_CONFIG --exists "gstreamer-0.8" ; then | |
39042 | echo "$as_me:$LINENO: result: yes" >&5 | |
ce756cb0 | 39043 | echo "${ECHO_T}yes" >&6 |
dae87f93 | 39044 | succeeded=yes |
ce756cb0 | 39045 | |
dae87f93 RN |
39046 | echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5 |
39047 | echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6 | |
39048 | GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"` | |
39049 | echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5 | |
39050 | echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6 | |
39051 | ||
39052 | echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5 | |
39053 | echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6 | |
39054 | GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"` | |
39055 | echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5 | |
39056 | echo "${ECHO_T}$GSTREAMER_LIBS" >&6 | |
39057 | else | |
39058 | GSTREAMER_CFLAGS="" | |
39059 | GSTREAMER_LIBS="" | |
39060 | ## If we have a custom action on failure, don't print errors, but | |
39061 | ## do set a variable so people can do so. | |
39062 | GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"` | |
ce756cb0 | 39063 | |
dae87f93 RN |
39064 | fi |
39065 | ||
39066 | ||
39067 | ||
39068 | else | |
39069 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
39070 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
39071 | fi | |
39072 | fi | |
39073 | ||
39074 | if test $succeeded = yes; then | |
39075 | ||
39076 | CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS" | |
39077 | LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8" | |
ce756cb0 | 39078 | |
ce756cb0 | 39079 | else |
dae87f93 RN |
39080 | |
39081 | { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5 | |
39082 | echo "$as_me: WARNING: GStreamer installation not found" >&2;} | |
39083 | wxUSE_GSTREAMER="no" | |
39084 | ||
39085 | fi | |
39086 | ||
39087 | ||
39088 | ||
39089 | ||
39090 | ||
39091 | if test "x$GST_INSPECT" == "x"; then | |
39092 | # Extract the first word of "gst-inspect", so it can be a program name with args. | |
39093 | set dummy gst-inspect; ac_word=$2 | |
39094 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39095 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39096 | if test "${ac_cv_prog_GST_INSPECT+set}" = set; then | |
39097 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39098 | else | |
39099 | if test -n "$GST_INSPECT"; then | |
39100 | ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test. | |
39101 | else | |
39102 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39103 | for as_dir in $PATH | |
39104 | do | |
39105 | IFS=$as_save_IFS | |
39106 | test -z "$as_dir" && as_dir=. | |
39107 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39108 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39109 | ac_cv_prog_GST_INSPECT="gst-inspect" | |
39110 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39111 | break 2 | |
ce756cb0 | 39112 | fi |
dae87f93 RN |
39113 | done |
39114 | done | |
39115 | ||
39116 | fi | |
39117 | fi | |
39118 | GST_INSPECT=$ac_cv_prog_GST_INSPECT | |
39119 | if test -n "$GST_INSPECT"; then | |
39120 | echo "$as_me:$LINENO: result: $GST_INSPECT" >&5 | |
39121 | echo "${ECHO_T}$GST_INSPECT" >&6 | |
39122 | else | |
39123 | echo "$as_me:$LINENO: result: no" >&5 | |
39124 | echo "${ECHO_T}no" >&6 | |
39125 | fi | |
39126 | ||
39127 | fi | |
39128 | ||
39129 | if test "x$GST_INSPECT" != "x"; then | |
39130 | echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5 | |
39131 | echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6 | |
39132 | if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then | |
39133 | echo "$as_me:$LINENO: result: found." >&5 | |
39134 | echo "${ECHO_T}found." >&6 | |
ce756cb0 | 39135 | |
ce756cb0 | 39136 | else |
dae87f93 RN |
39137 | echo "$as_me:$LINENO: result: not found." >&5 |
39138 | echo "${ECHO_T}not found." >&6 | |
39139 | ||
39140 | wxUSE_GSTREAMER="no" | |
39141 | { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5 | |
39142 | echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;} | |
39143 | ||
39144 | fi | |
39145 | fi | |
39146 | ||
39147 | ||
39148 | echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5 | |
39149 | echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6 | |
39150 | if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then | |
39151 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39152 | else | |
39153 | cat >conftest.$ac_ext <<_ACEOF | |
ce756cb0 RN |
39154 | /* confdefs.h. */ |
39155 | _ACEOF | |
39156 | cat confdefs.h >>conftest.$ac_ext | |
39157 | cat >>conftest.$ac_ext <<_ACEOF | |
39158 | /* end confdefs.h. */ | |
dae87f93 | 39159 | #include <gst/gst.h> |
ce756cb0 | 39160 | |
dae87f93 | 39161 | #include <gst/xoverlay/xoverlay.h> |
ce756cb0 RN |
39162 | _ACEOF |
39163 | rm -f conftest.$ac_objext | |
39164 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39165 | (eval $ac_compile) 2>conftest.er1 | |
39166 | ac_status=$? | |
39167 | grep -v '^ *+' conftest.er1 >conftest.err | |
39168 | rm -f conftest.er1 | |
39169 | cat conftest.err >&5 | |
39170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39171 | (exit $ac_status); } && | |
39172 | { ac_try='test -z "$ac_c_werror_flag" | |
39173 | || test ! -s conftest.err' | |
39174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39175 | (eval $ac_try) 2>&5 | |
39176 | ac_status=$? | |
39177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39178 | (exit $ac_status); }; } && | |
39179 | { ac_try='test -s conftest.$ac_objext' | |
39180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39181 | (eval $ac_try) 2>&5 | |
39182 | ac_status=$? | |
39183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39184 | (exit $ac_status); }; }; then | |
dae87f93 | 39185 | ac_cv_header_gst_xoverlay_xoverlay_h=yes |
ce756cb0 RN |
39186 | else |
39187 | echo "$as_me: failed program was:" >&5 | |
39188 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39189 | ||
dae87f93 | 39190 | ac_cv_header_gst_xoverlay_xoverlay_h=no |
ce756cb0 RN |
39191 | fi |
39192 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
dae87f93 RN |
39193 | fi |
39194 | echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5 | |
39195 | echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6 | |
39196 | if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then | |
39197 | : | |
39198 | else | |
ce756cb0 | 39199 | |
dae87f93 RN |
39200 | wxUSE_GSTREAMER="no" |
39201 | { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5 | |
39202 | echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;} | |
ce756cb0 | 39203 | |
dae87f93 | 39204 | fi |
ce756cb0 | 39205 | |
dae87f93 RN |
39206 | |
39207 | ||
39208 | echo "$as_me:$LINENO: checking for gstplay 0.8" >&5 | |
ce756cb0 RN |
39209 | echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6 |
39210 | ||
39211 | ac_find_libraries= | |
39212 | for ac_dir in $SEARCH_LIB /usr/lib; | |
39213 | do | |
39214 | for ac_extension in a so sl dylib; do | |
39215 | if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then | |
39216 | ac_find_libraries=$ac_dir | |
39217 | break 2 | |
39218 | fi | |
39219 | done | |
39220 | done | |
39221 | ||
ce756cb0 | 39222 | |
dae87f93 RN |
39223 | if test "$ac_find_libraries" = "" ; then |
39224 | echo "$as_me:$LINENO: result: no" >&5 | |
39225 | echo "${ECHO_T}no" >&6 | |
39226 | wxUSE_GSTREAMER="no" | |
39227 | else | |
39228 | echo "$as_me:$LINENO: result: yes" >&5 | |
ce756cb0 | 39229 | echo "${ECHO_T}yes" >&6 |
dae87f93 | 39230 | fi |
ce756cb0 | 39231 | |
dae87f93 RN |
39232 | if test "$wxUSE_GSTREAMER" = "yes"; then |
39233 | cat >>confdefs.h <<\_ACEOF | |
ce756cb0 RN |
39234 | #define wxUSE_GSTREAMER 1 |
39235 | _ACEOF | |
39236 | ||
dae87f93 RN |
39237 | echo "$as_me:$LINENO: result: GStreamer detection successful" >&5 |
39238 | echo "${ECHO_T}GStreamer detection successful" >&6 | |
ce756cb0 RN |
39239 | fi |
39240 | fi | |
39241 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer" | |
39242 | cat >>confdefs.h <<\_ACEOF | |
39243 | #define wxUSE_MEDIACTRL 1 | |
39244 | _ACEOF | |
39245 | ||
39246 | fi | |
39247 | ||
39248 | ||
a848cd7e SC |
39249 | if test "$cross_compiling" = "yes"; then |
39250 | OSINFO="\"$host\"" | |
39251 | else | |
39252 | OSINFO=`uname -s -r -m` | |
39253 | OSINFO="\"$OSINFO\"" | |
39254 | fi | |
39255 | ||
39256 | cat >>confdefs.h <<_ACEOF | |
39257 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
39258 | _ACEOF | |
39259 | ||
39260 | ||
39261 | ||
39262 | if test "x$prefix" != "xNONE"; then | |
39263 | wxPREFIX=$prefix | |
39264 | else | |
39265 | wxPREFIX=$ac_default_prefix | |
39266 | fi | |
39267 | ||
39268 | cat >>confdefs.h <<_ACEOF | |
39269 | #define wxINSTALL_PREFIX "$wxPREFIX" | |
39270 | _ACEOF | |
39271 | ||
39272 | ||
a848cd7e SC |
39273 | |
39274 | ||
39275 | CORE_BASE_LIBS="net base" | |
39276 | CORE_GUI_LIBS="adv core" | |
39277 | ||
39278 | if test "$wxUSE_XML" = "yes" ; then | |
39279 | CORE_BASE_LIBS="xml $CORE_BASE_LIBS" | |
39280 | fi | |
39281 | if test "$wxUSE_ODBC" != "no" ; then | |
39282 | CORE_BASE_LIBS="odbc $CORE_BASE_LIBS" | |
39283 | CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS" | |
39284 | fi | |
39285 | if test "$wxUSE_HTML" = "yes" ; then | |
39286 | CORE_GUI_LIBS="html $CORE_GUI_LIBS" | |
39287 | fi | |
9a8f0513 VS |
39288 | if test "$wxUSE_XRC" = "yes" ; then |
39289 | CORE_GUI_LIBS="xrc $CORE_GUI_LIBS" | |
39290 | fi | |
a848cd7e SC |
39291 | |
39292 | if test "$wxUSE_GUI" != "yes"; then | |
39293 | CORE_GUI_LIBS="" | |
39294 | fi | |
39295 | ||
39296 | ||
39297 | ||
39298 | ||
39299 | ||
39300 | ||
39301 | ||
39302 | ||
39303 | if test "$wxUSE_MAC" = 1 ; then | |
a98bf0c0 | 39304 | if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then |
1e9e8aba DE |
39305 | if test "$USE_DARWIN" = 1; then |
39306 | LDFLAGS="$LDFLAGS -framework QuickTime" | |
39307 | else | |
39308 | LDFLAGS="$LDFLAGS -lQuickTimeLib" | |
39309 | fi | |
07bea8f0 | 39310 | fi |
5dcf30a0 | 39311 | if test "$USE_DARWIN" = 1; then |
1e9e8aba DE |
39312 | LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System" |
39313 | else | |
39314 | LDFLAGS="$LDFLAGS -lCarbonLib" | |
5dcf30a0 | 39315 | fi |
a848cd7e SC |
39316 | fi |
39317 | if test "$wxUSE_COCOA" = 1 ; then | |
4cb1d3da | 39318 | LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa" |
4fc81cbc RN |
39319 | if test "$wxUSE_MEDIACTRL" = "yes"; then |
39320 | LDFLAGS="$LDFLAGS -framework QuickTime" | |
39321 | fi | |
a848cd7e SC |
39322 | fi |
39323 | ||
39324 | ||
39325 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" | |
39326 | ||
39327 | have_cos=0 | |
39328 | have_floor=0 | |
39329 | ||
39330 | for ac_func in cos | |
39331 | do | |
39332 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
39333 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
39334 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
39335 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
39336 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39337 | else | |
39338 | cat >conftest.$ac_ext <<_ACEOF | |
39339 | /* confdefs.h. */ | |
39340 | _ACEOF | |
39341 | cat confdefs.h >>conftest.$ac_ext | |
39342 | cat >>conftest.$ac_ext <<_ACEOF | |
39343 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
39344 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
39345 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39346 | #define $ac_func innocuous_$ac_func | |
39347 | ||
a848cd7e SC |
39348 | /* System header to define __stub macros and hopefully few prototypes, |
39349 | which can conflict with char $ac_func (); below. | |
39350 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39351 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 39352 | |
a848cd7e SC |
39353 | #ifdef __STDC__ |
39354 | # include <limits.h> | |
39355 | #else | |
39356 | # include <assert.h> | |
39357 | #endif | |
ac1cb8d3 VS |
39358 | |
39359 | #undef $ac_func | |
39360 | ||
a848cd7e SC |
39361 | /* Override any gcc2 internal prototype to avoid an error. */ |
39362 | #ifdef __cplusplus | |
39363 | extern "C" | |
39364 | { | |
39365 | #endif | |
39366 | /* We use char because int might match the return type of a gcc2 | |
39367 | builtin and then its argument prototype would still apply. */ | |
39368 | char $ac_func (); | |
39369 | /* The GNU C library defines this for functions which it implements | |
39370 | to always fail with ENOSYS. Some functions are actually named | |
39371 | something starting with __ and the normal name is an alias. */ | |
39372 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
39373 | choke me | |
39374 | #else | |
39375 | char (*f) () = $ac_func; | |
39376 | #endif | |
39377 | #ifdef __cplusplus | |
39378 | } | |
39379 | #endif | |
39380 | ||
39381 | int | |
39382 | main () | |
39383 | { | |
39384 | return f != $ac_func; | |
39385 | ; | |
39386 | return 0; | |
39387 | } | |
39388 | _ACEOF | |
39389 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39390 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39391 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39392 | ac_status=$? |
ac1cb8d3 VS |
39393 | grep -v '^ *+' conftest.er1 >conftest.err |
39394 | rm -f conftest.er1 | |
39395 | cat conftest.err >&5 | |
a848cd7e SC |
39396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39397 | (exit $ac_status); } && | |
89be85c2 VS |
39398 | { ac_try='test -z "$ac_c_werror_flag" |
39399 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
39400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39401 | (eval $ac_try) 2>&5 | |
39402 | ac_status=$? | |
39403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39404 | (exit $ac_status); }; } && | |
39405 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39407 | (eval $ac_try) 2>&5 | |
39408 | ac_status=$? | |
39409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39410 | (exit $ac_status); }; }; then | |
39411 | eval "$as_ac_var=yes" | |
39412 | else | |
39413 | echo "$as_me: failed program was:" >&5 | |
39414 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39415 | ||
39416 | eval "$as_ac_var=no" | |
39417 | fi | |
ac1cb8d3 VS |
39418 | rm -f conftest.err conftest.$ac_objext \ |
39419 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39420 | fi |
39421 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
39422 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
39423 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
39424 | cat >>confdefs.h <<_ACEOF | |
39425 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
39426 | _ACEOF | |
39427 | have_cos=1 | |
39428 | fi | |
39429 | done | |
39430 | ||
39431 | ||
39432 | for ac_func in floor | |
39433 | do | |
39434 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
39435 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
39436 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
39437 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
39438 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39439 | else | |
39440 | cat >conftest.$ac_ext <<_ACEOF | |
39441 | /* confdefs.h. */ | |
39442 | _ACEOF | |
39443 | cat confdefs.h >>conftest.$ac_ext | |
39444 | cat >>conftest.$ac_ext <<_ACEOF | |
39445 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
39446 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
39447 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39448 | #define $ac_func innocuous_$ac_func | |
39449 | ||
a848cd7e SC |
39450 | /* System header to define __stub macros and hopefully few prototypes, |
39451 | which can conflict with char $ac_func (); below. | |
39452 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39453 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 39454 | |
a848cd7e SC |
39455 | #ifdef __STDC__ |
39456 | # include <limits.h> | |
39457 | #else | |
39458 | # include <assert.h> | |
39459 | #endif | |
ac1cb8d3 VS |
39460 | |
39461 | #undef $ac_func | |
39462 | ||
a848cd7e SC |
39463 | /* Override any gcc2 internal prototype to avoid an error. */ |
39464 | #ifdef __cplusplus | |
39465 | extern "C" | |
39466 | { | |
39467 | #endif | |
39468 | /* We use char because int might match the return type of a gcc2 | |
39469 | builtin and then its argument prototype would still apply. */ | |
39470 | char $ac_func (); | |
39471 | /* The GNU C library defines this for functions which it implements | |
39472 | to always fail with ENOSYS. Some functions are actually named | |
39473 | something starting with __ and the normal name is an alias. */ | |
39474 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
39475 | choke me | |
39476 | #else | |
39477 | char (*f) () = $ac_func; | |
39478 | #endif | |
39479 | #ifdef __cplusplus | |
39480 | } | |
39481 | #endif | |
39482 | ||
39483 | int | |
39484 | main () | |
39485 | { | |
39486 | return f != $ac_func; | |
39487 | ; | |
39488 | return 0; | |
39489 | } | |
39490 | _ACEOF | |
39491 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39492 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39493 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39494 | ac_status=$? |
ac1cb8d3 VS |
39495 | grep -v '^ *+' conftest.er1 >conftest.err |
39496 | rm -f conftest.er1 | |
39497 | cat conftest.err >&5 | |
a848cd7e SC |
39498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39499 | (exit $ac_status); } && | |
89be85c2 VS |
39500 | { ac_try='test -z "$ac_c_werror_flag" |
39501 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
39502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39503 | (eval $ac_try) 2>&5 | |
39504 | ac_status=$? | |
39505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39506 | (exit $ac_status); }; } && | |
39507 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39509 | (eval $ac_try) 2>&5 | |
39510 | ac_status=$? | |
39511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39512 | (exit $ac_status); }; }; then | |
39513 | eval "$as_ac_var=yes" | |
39514 | else | |
39515 | echo "$as_me: failed program was:" >&5 | |
39516 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39517 | ||
39518 | eval "$as_ac_var=no" | |
39519 | fi | |
ac1cb8d3 VS |
39520 | rm -f conftest.err conftest.$ac_objext \ |
39521 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39522 | fi |
39523 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
39524 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
39525 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
39526 | cat >>confdefs.h <<_ACEOF | |
39527 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
39528 | _ACEOF | |
39529 | have_floor=1 | |
39530 | fi | |
39531 | done | |
39532 | ||
39533 | echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5 | |
39534 | echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6 | |
39535 | if test "$have_cos" = 1 -a "$have_floor" = 1; then | |
39536 | echo "$as_me:$LINENO: result: yes" >&5 | |
39537 | echo "${ECHO_T}yes" >&6 | |
39538 | else | |
39539 | echo "$as_me:$LINENO: result: no" >&5 | |
39540 | echo "${ECHO_T}no" >&6 | |
39541 | LIBS="$LIBS -lm" | |
39542 | # use different functions to avoid configure caching | |
39543 | have_sin=0 | |
39544 | have_ceil=0 | |
39545 | ||
39546 | for ac_func in sin | |
39547 | do | |
39548 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
39549 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
39550 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
39551 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
39552 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39553 | else | |
39554 | cat >conftest.$ac_ext <<_ACEOF | |
39555 | /* confdefs.h. */ | |
39556 | _ACEOF | |
39557 | cat confdefs.h >>conftest.$ac_ext | |
39558 | cat >>conftest.$ac_ext <<_ACEOF | |
39559 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
39560 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
39561 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39562 | #define $ac_func innocuous_$ac_func | |
39563 | ||
a848cd7e SC |
39564 | /* System header to define __stub macros and hopefully few prototypes, |
39565 | which can conflict with char $ac_func (); below. | |
39566 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39567 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 39568 | |
a848cd7e SC |
39569 | #ifdef __STDC__ |
39570 | # include <limits.h> | |
39571 | #else | |
39572 | # include <assert.h> | |
39573 | #endif | |
ac1cb8d3 VS |
39574 | |
39575 | #undef $ac_func | |
39576 | ||
a848cd7e SC |
39577 | /* Override any gcc2 internal prototype to avoid an error. */ |
39578 | #ifdef __cplusplus | |
39579 | extern "C" | |
39580 | { | |
39581 | #endif | |
39582 | /* We use char because int might match the return type of a gcc2 | |
39583 | builtin and then its argument prototype would still apply. */ | |
39584 | char $ac_func (); | |
39585 | /* The GNU C library defines this for functions which it implements | |
39586 | to always fail with ENOSYS. Some functions are actually named | |
39587 | something starting with __ and the normal name is an alias. */ | |
39588 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
39589 | choke me | |
39590 | #else | |
39591 | char (*f) () = $ac_func; | |
39592 | #endif | |
39593 | #ifdef __cplusplus | |
39594 | } | |
39595 | #endif | |
39596 | ||
39597 | int | |
39598 | main () | |
39599 | { | |
39600 | return f != $ac_func; | |
39601 | ; | |
39602 | return 0; | |
39603 | } | |
39604 | _ACEOF | |
39605 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39606 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39607 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39608 | ac_status=$? |
ac1cb8d3 VS |
39609 | grep -v '^ *+' conftest.er1 >conftest.err |
39610 | rm -f conftest.er1 | |
39611 | cat conftest.err >&5 | |
a848cd7e SC |
39612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39613 | (exit $ac_status); } && | |
89be85c2 VS |
39614 | { ac_try='test -z "$ac_c_werror_flag" |
39615 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
39616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39617 | (eval $ac_try) 2>&5 | |
39618 | ac_status=$? | |
39619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39620 | (exit $ac_status); }; } && | |
39621 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39623 | (eval $ac_try) 2>&5 | |
39624 | ac_status=$? | |
39625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39626 | (exit $ac_status); }; }; then | |
39627 | eval "$as_ac_var=yes" | |
39628 | else | |
39629 | echo "$as_me: failed program was:" >&5 | |
39630 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39631 | ||
39632 | eval "$as_ac_var=no" | |
39633 | fi | |
ac1cb8d3 VS |
39634 | rm -f conftest.err conftest.$ac_objext \ |
39635 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39636 | fi |
39637 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
39638 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
39639 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
39640 | cat >>confdefs.h <<_ACEOF | |
39641 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
39642 | _ACEOF | |
39643 | have_sin=1 | |
39644 | fi | |
39645 | done | |
39646 | ||
39647 | ||
39648 | for ac_func in ceil | |
39649 | do | |
39650 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
39651 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
39652 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
39653 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
39654 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39655 | else | |
39656 | cat >conftest.$ac_ext <<_ACEOF | |
39657 | /* confdefs.h. */ | |
39658 | _ACEOF | |
39659 | cat confdefs.h >>conftest.$ac_ext | |
39660 | cat >>conftest.$ac_ext <<_ACEOF | |
39661 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
39662 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
39663 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39664 | #define $ac_func innocuous_$ac_func | |
39665 | ||
a848cd7e SC |
39666 | /* System header to define __stub macros and hopefully few prototypes, |
39667 | which can conflict with char $ac_func (); below. | |
39668 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39669 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 39670 | |
a848cd7e SC |
39671 | #ifdef __STDC__ |
39672 | # include <limits.h> | |
39673 | #else | |
39674 | # include <assert.h> | |
39675 | #endif | |
ac1cb8d3 VS |
39676 | |
39677 | #undef $ac_func | |
39678 | ||
a848cd7e SC |
39679 | /* Override any gcc2 internal prototype to avoid an error. */ |
39680 | #ifdef __cplusplus | |
39681 | extern "C" | |
39682 | { | |
39683 | #endif | |
39684 | /* We use char because int might match the return type of a gcc2 | |
39685 | builtin and then its argument prototype would still apply. */ | |
39686 | char $ac_func (); | |
39687 | /* The GNU C library defines this for functions which it implements | |
39688 | to always fail with ENOSYS. Some functions are actually named | |
39689 | something starting with __ and the normal name is an alias. */ | |
39690 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
39691 | choke me | |
39692 | #else | |
39693 | char (*f) () = $ac_func; | |
39694 | #endif | |
39695 | #ifdef __cplusplus | |
39696 | } | |
39697 | #endif | |
39698 | ||
39699 | int | |
39700 | main () | |
39701 | { | |
39702 | return f != $ac_func; | |
39703 | ; | |
39704 | return 0; | |
39705 | } | |
39706 | _ACEOF | |
39707 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39708 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39709 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39710 | ac_status=$? |
ac1cb8d3 VS |
39711 | grep -v '^ *+' conftest.er1 >conftest.err |
39712 | rm -f conftest.er1 | |
39713 | cat conftest.err >&5 | |
a848cd7e SC |
39714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39715 | (exit $ac_status); } && | |
89be85c2 VS |
39716 | { ac_try='test -z "$ac_c_werror_flag" |
39717 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
39718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39719 | (eval $ac_try) 2>&5 | |
39720 | ac_status=$? | |
39721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39722 | (exit $ac_status); }; } && | |
39723 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39725 | (eval $ac_try) 2>&5 | |
39726 | ac_status=$? | |
39727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39728 | (exit $ac_status); }; }; then | |
39729 | eval "$as_ac_var=yes" | |
39730 | else | |
39731 | echo "$as_me: failed program was:" >&5 | |
39732 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39733 | ||
39734 | eval "$as_ac_var=no" | |
39735 | fi | |
ac1cb8d3 VS |
39736 | rm -f conftest.err conftest.$ac_objext \ |
39737 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39738 | fi |
39739 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
39740 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
39741 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
39742 | cat >>confdefs.h <<_ACEOF | |
39743 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
39744 | _ACEOF | |
39745 | have_ceil=1 | |
39746 | fi | |
39747 | done | |
39748 | ||
39749 | echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5 | |
39750 | echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6 | |
39751 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then | |
39752 | echo "$as_me:$LINENO: result: yes" >&5 | |
39753 | echo "${ECHO_T}yes" >&6 | |
39754 | else | |
39755 | echo "$as_me:$LINENO: result: no" >&5 | |
39756 | echo "${ECHO_T}no" >&6 | |
39757 | # not sure we should warn the user, crash, etc. | |
39758 | fi | |
39759 | fi | |
39760 | ||
39761 | if test "$wxUSE_GUI" = "yes"; then | |
39762 | ||
39763 | ||
39764 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \ | |
39765 | drawing dynamic erase event exec font image \ | |
39766 | minimal propsize rotate shaped widgets render" | |
39767 | ||
39768 | if test "$wxUSE_MONOLITHIC" != "yes"; then | |
39769 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console" | |
39770 | fi | |
39771 | else | |
39772 | SAMPLES_SUBDIRS="console" | |
39773 | fi | |
39774 | ||
39775 | ||
ceec2216 | 39776 | INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \ |
a848cd7e SC |
39777 | -I\${top_srcdir}/include $TOOLKIT_INCLUDE" |
39778 | ||
39779 | if test "$GXX" = yes ; then | |
5294a27e VZ |
39780 | CWARNINGS="-Wall" |
39781 | CXXWARNINGS="$CWARNINGS -Wno-ctor-dtor-privacy" | |
a848cd7e SC |
39782 | fi |
39783 | ||
39784 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE" | |
39785 | ||
0c3c69fc | 39786 | CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS` |
5294a27e | 39787 | CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS` |
0c3c69fc | 39788 | CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS` |
a848cd7e | 39789 | |
95986553 DE |
39790 | if test "x$MWCC" = "xyes"; then |
39791 | ||
39792 | CC="$CC -cwd source -I-" | |
39793 | CXX="$CXX -cwd source -I-" | |
39794 | fi | |
39795 | ||
a848cd7e | 39796 | |
0c3c69fc | 39797 | LIBS=`echo $LIBS` |
a848cd7e SC |
39798 | EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS" |
39799 | EXTRALIBS_XML="$EXPAT_LINK" | |
39800 | EXTRALIBS_HTML="$MSPACK_LINK" | |
39801 | EXTRALIBS_ODBC="$ODBC_LINK" | |
39802 | if test "$wxUSE_GUI" = "yes"; then | |
2e350179 | 39803 | EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT` |
a848cd7e SC |
39804 | fi |
39805 | if test "$wxUSE_OPENGL" = "yes"; then | |
39806 | EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS" | |
39807 | fi | |
39808 | ||
39809 | LDFLAGS="$LDFLAGS $PROFILE" | |
39810 | ||
39811 | if test "$wxUSE_GTK" = 1; then | |
39812 | WXCONFIG_INCLUDE= | |
39813 | else | |
39814 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
39815 | fi | |
39816 | ||
39817 | WXCONFIG_EXTRALIBS="$LIBS" | |
39818 | ||
39819 | if test "$wxUSE_REGEX" = "builtin" ; then | |
39820 | wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}" | |
39821 | fi | |
39822 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
39823 | wxconfig_3rdparty="$wxconfig_3rdparty expat" | |
39824 | fi | |
39825 | if test "$wxUSE_ODBC" = "builtin" ; then | |
39826 | wxconfig_3rdparty="$wxconfig_3rdparty odbc" | |
39827 | fi | |
39828 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
39829 | wxconfig_3rdparty="$wxconfig_3rdparty tiff" | |
39830 | fi | |
39831 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
39832 | wxconfig_3rdparty="$wxconfig_3rdparty jpeg" | |
39833 | fi | |
39834 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
39835 | wxconfig_3rdparty="$wxconfig_3rdparty png" | |
39836 | fi | |
39837 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
39838 | wxconfig_3rdparty="$wxconfig_3rdparty zlib" | |
39839 | fi | |
39840 | if test "$wxUSE_ODBC" = "builtin" ; then | |
39841 | wxconfig_3rdparty="$wxconfig_3rdparty odbc" | |
39842 | fi | |
39843 | ||
39844 | for i in $wxconfig_3rdparty ; do | |
ceec2216 | 39845 | WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}" |
a848cd7e SC |
39846 | done |
39847 | ||
39848 | ||
39849 | if test "x$wxUSE_UNIVERSAL" = "xyes" ; then | |
39850 | WXUNIV=1 | |
39851 | else | |
39852 | WXUNIV=0 | |
39853 | fi | |
39854 | ||
39855 | ||
39856 | ||
39857 | ||
39858 | ||
39859 | ||
39860 | ||
39861 | ||
39862 | ||
39863 | if test $wxUSE_MONOLITHIC = "yes" ; then | |
39864 | MONOLITHIC=1 | |
39865 | else | |
39866 | MONOLITHIC=0 | |
39867 | fi | |
39868 | ||
39869 | if test $wxUSE_PLUGINS = "yes" ; then | |
39870 | USE_PLUGINS=1 | |
39871 | else | |
39872 | USE_PLUGINS=0 | |
39873 | fi | |
39874 | ||
39875 | if test $wxUSE_ODBC != "no" ; then | |
39876 | USE_ODBC=1 | |
39877 | else | |
39878 | USE_ODBC=0 | |
39879 | fi | |
39880 | ||
39881 | if test $wxUSE_OFFICIAL_BUILD = "yes" ; then | |
39882 | OFFICIAL_BUILD=1 | |
39883 | else | |
39884 | OFFICIAL_BUILD=0 | |
39885 | fi | |
39886 | ||
39887 | ||
39888 | ||
39889 | ||
39890 | ||
39891 | ||
39892 | ||
39893 | ||
39894 | ||
39895 | ||
39896 | ||
39897 | ||
39898 | ||
39899 | ||
39900 | ||
39901 | ||
39902 | ||
39903 | ||
39904 | ||
ceec2216 | 39905 | |
d1c38808 | 39906 | |
a848cd7e SC |
39907 | |
39908 | ||
39909 | TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"` | |
39910 | ||
39911 | ||
39912 | ||
39913 | ||
39914 | ||
39915 | ||
39916 | ||
39917 | ||
4d4ff94c VZ |
39918 | case "$TOOLKIT" in |
39919 | GTK) | |
39920 | TOOLKIT_USER="GTK+" | |
39921 | if test "$WXGTK20" = 1; then | |
39922 | TOOLKIT_USER="$TOOLKIT_USER 2" | |
39923 | fi | |
9a8f0513 | 39924 | ;; |
4d4ff94c VZ |
39925 | |
39926 | *) | |
39927 | TOOLKIT_USER=$TOOLKIT_LOWERCASE | |
9a8f0513 | 39928 | ;; |
4d4ff94c | 39929 | esac |
a848cd7e | 39930 | |
9a8f0513 | 39931 | |
1e9e8aba DE |
39932 | |
39933 | ||
a848cd7e SC |
39934 | if test "x$BAKEFILE_HOST" = "x"; then |
39935 | BAKEFILE_HOST="${host}" | |
39936 | fi | |
39937 | ||
39938 | if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then | |
39939 | ||
39940 | if test -n "$ac_tool_prefix"; then | |
39941 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
39942 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
39943 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39944 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39945 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
39946 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39947 | else | |
39948 | if test -n "$RANLIB"; then | |
39949 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
39950 | else | |
39951 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39952 | for as_dir in $PATH | |
39953 | do | |
39954 | IFS=$as_save_IFS | |
39955 | test -z "$as_dir" && as_dir=. | |
39956 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39957 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39958 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
39959 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39960 | break 2 | |
39961 | fi | |
39962 | done | |
39963 | done | |
39964 | ||
39965 | fi | |
39966 | fi | |
39967 | RANLIB=$ac_cv_prog_RANLIB | |
39968 | if test -n "$RANLIB"; then | |
39969 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
39970 | echo "${ECHO_T}$RANLIB" >&6 | |
39971 | else | |
39972 | echo "$as_me:$LINENO: result: no" >&5 | |
39973 | echo "${ECHO_T}no" >&6 | |
39974 | fi | |
39975 | ||
39976 | fi | |
39977 | if test -z "$ac_cv_prog_RANLIB"; then | |
39978 | ac_ct_RANLIB=$RANLIB | |
39979 | # Extract the first word of "ranlib", so it can be a program name with args. | |
39980 | set dummy ranlib; ac_word=$2 | |
39981 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39982 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39983 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
39984 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39985 | else | |
39986 | if test -n "$ac_ct_RANLIB"; then | |
39987 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
39988 | else | |
39989 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39990 | for as_dir in $PATH | |
39991 | do | |
39992 | IFS=$as_save_IFS | |
39993 | test -z "$as_dir" && as_dir=. | |
39994 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39995 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39996 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
39997 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39998 | break 2 | |
39999 | fi | |
40000 | done | |
40001 | done | |
40002 | ||
40003 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
40004 | fi | |
40005 | fi | |
40006 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
40007 | if test -n "$ac_ct_RANLIB"; then | |
40008 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
40009 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
40010 | else | |
40011 | echo "$as_me:$LINENO: result: no" >&5 | |
40012 | echo "${ECHO_T}no" >&6 | |
40013 | fi | |
40014 | ||
40015 | RANLIB=$ac_ct_RANLIB | |
40016 | else | |
40017 | RANLIB="$ac_cv_prog_RANLIB" | |
40018 | fi | |
40019 | ||
40020 | # Find a good install program. We prefer a C program (faster), | |
40021 | # so one script is as good as another. But avoid the broken or | |
40022 | # incompatible versions: | |
40023 | # SysV /etc/install, /usr/sbin/install | |
40024 | # SunOS /usr/etc/install | |
40025 | # IRIX /sbin/install | |
40026 | # AIX /bin/install | |
40027 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
40028 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
40029 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
40030 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 40031 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
40032 | # ./install, which can be erroneously created by make from ./install.sh. |
40033 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
40034 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
40035 | if test -z "$INSTALL"; then | |
40036 | if test "${ac_cv_path_install+set}" = set; then | |
40037 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40038 | else | |
40039 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40040 | for as_dir in $PATH | |
40041 | do | |
40042 | IFS=$as_save_IFS | |
40043 | test -z "$as_dir" && as_dir=. | |
40044 | # Account for people who put trailing slashes in PATH elements. | |
40045 | case $as_dir/ in | |
40046 | ./ | .// | /cC/* | \ | |
40047 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 40048 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
40049 | /usr/ucb/* ) ;; |
40050 | *) | |
40051 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
40052 | # Don't use installbsd from OSF since it installs stuff as root | |
40053 | # by default. | |
40054 | for ac_prog in ginstall scoinst install; do | |
40055 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
40056 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
40057 | if test $ac_prog = install && | |
40058 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
40059 | # AIX install. It has an incompatible calling convention. | |
40060 | : | |
40061 | elif test $ac_prog = install && | |
40062 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
40063 | # program-specific install script used by HP pwplus--don't use. | |
40064 | : | |
40065 | else | |
40066 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
40067 | break 3 | |
40068 | fi | |
40069 | fi | |
a848cd7e SC |
40070 | done |
40071 | done | |
40072 | ;; | |
40073 | esac | |
40074 | done | |
40075 | ||
40076 | ||
40077 | fi | |
40078 | if test "${ac_cv_path_install+set}" = set; then | |
40079 | INSTALL=$ac_cv_path_install | |
40080 | else | |
40081 | # As a last resort, use the slow shell script. We don't cache a | |
40082 | # path for INSTALL within a source directory, because that will | |
40083 | # break other packages using the cache if that directory is | |
40084 | # removed, or if the path is relative. | |
40085 | INSTALL=$ac_install_sh | |
40086 | fi | |
40087 | fi | |
40088 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
40089 | echo "${ECHO_T}$INSTALL" >&6 | |
40090 | ||
40091 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
40092 | # It thinks the first close brace ends the variable substitution. | |
40093 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
40094 | ||
40095 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
40096 | ||
40097 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
40098 | ||
40099 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
40100 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
40101 | LN_S=$as_ln_s | |
40102 | if test "$LN_S" = "ln -s"; then | |
40103 | echo "$as_me:$LINENO: result: yes" >&5 | |
40104 | echo "${ECHO_T}yes" >&6 | |
40105 | else | |
40106 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
40107 | echo "${ECHO_T}no, using $LN_S" >&6 | |
40108 | fi | |
40109 | ||
40110 | ||
40111 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
40112 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 40113 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
40114 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
40115 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40116 | else | |
40117 | cat >conftest.make <<\_ACEOF | |
40118 | all: | |
40119 | @echo 'ac_maketemp="$(MAKE)"' | |
40120 | _ACEOF | |
40121 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
40122 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
40123 | if test -n "$ac_maketemp"; then | |
40124 | eval ac_cv_prog_make_${ac_make}_set=yes | |
40125 | else | |
40126 | eval ac_cv_prog_make_${ac_make}_set=no | |
40127 | fi | |
40128 | rm -f conftest.make | |
40129 | fi | |
40130 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
40131 | echo "$as_me:$LINENO: result: yes" >&5 | |
40132 | echo "${ECHO_T}yes" >&6 | |
40133 | SET_MAKE= | |
40134 | else | |
40135 | echo "$as_me:$LINENO: result: no" >&5 | |
40136 | echo "${ECHO_T}no" >&6 | |
40137 | SET_MAKE="MAKE=${MAKE-make}" | |
40138 | fi | |
40139 | ||
40140 | ||
40141 | ||
40142 | if test -n "$ac_tool_prefix"; then | |
40143 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
40144 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
40145 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
40146 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
40147 | if test "${ac_cv_prog_AR+set}" = set; then | |
40148 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40149 | else | |
40150 | if test -n "$AR"; then | |
40151 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
40152 | else | |
40153 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40154 | for as_dir in $PATH | |
40155 | do | |
40156 | IFS=$as_save_IFS | |
40157 | test -z "$as_dir" && as_dir=. | |
40158 | for ac_exec_ext in '' $ac_executable_extensions; do | |
40159 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
40160 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
40161 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
40162 | break 2 | |
40163 | fi | |
40164 | done | |
40165 | done | |
40166 | ||
40167 | fi | |
40168 | fi | |
40169 | AR=$ac_cv_prog_AR | |
40170 | if test -n "$AR"; then | |
40171 | echo "$as_me:$LINENO: result: $AR" >&5 | |
40172 | echo "${ECHO_T}$AR" >&6 | |
40173 | else | |
40174 | echo "$as_me:$LINENO: result: no" >&5 | |
40175 | echo "${ECHO_T}no" >&6 | |
40176 | fi | |
40177 | ||
40178 | fi | |
40179 | if test -z "$ac_cv_prog_AR"; then | |
40180 | ac_ct_AR=$AR | |
40181 | # Extract the first word of "ar", so it can be a program name with args. | |
40182 | set dummy ar; ac_word=$2 | |
40183 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
40184 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
40185 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
40186 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40187 | else | |
40188 | if test -n "$ac_ct_AR"; then | |
40189 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
40190 | else | |
40191 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40192 | for as_dir in $PATH | |
40193 | do | |
40194 | IFS=$as_save_IFS | |
40195 | test -z "$as_dir" && as_dir=. | |
40196 | for ac_exec_ext in '' $ac_executable_extensions; do | |
40197 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
40198 | ac_cv_prog_ac_ct_AR="ar" | |
40199 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
40200 | break 2 | |
40201 | fi | |
40202 | done | |
40203 | done | |
40204 | ||
40205 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" | |
40206 | fi | |
40207 | fi | |
40208 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
40209 | if test -n "$ac_ct_AR"; then | |
40210 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
40211 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
40212 | else | |
40213 | echo "$as_me:$LINENO: result: no" >&5 | |
40214 | echo "${ECHO_T}no" >&6 | |
40215 | fi | |
40216 | ||
40217 | AR=$ac_ct_AR | |
40218 | else | |
40219 | AR="$ac_cv_prog_AR" | |
40220 | fi | |
40221 | ||
40222 | if test -n "$ac_tool_prefix"; then | |
40223 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
40224 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
40225 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
40226 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
40227 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
40228 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40229 | else | |
40230 | if test -n "$STRIP"; then | |
40231 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
40232 | else | |
40233 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40234 | for as_dir in $PATH | |
40235 | do | |
40236 | IFS=$as_save_IFS | |
40237 | test -z "$as_dir" && as_dir=. | |
40238 | for ac_exec_ext in '' $ac_executable_extensions; do | |
40239 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
40240 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
40241 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
40242 | break 2 | |
40243 | fi | |
40244 | done | |
40245 | done | |
40246 | ||
40247 | fi | |
40248 | fi | |
40249 | STRIP=$ac_cv_prog_STRIP | |
40250 | if test -n "$STRIP"; then | |
40251 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
40252 | echo "${ECHO_T}$STRIP" >&6 | |
40253 | else | |
40254 | echo "$as_me:$LINENO: result: no" >&5 | |
40255 | echo "${ECHO_T}no" >&6 | |
40256 | fi | |
40257 | ||
40258 | fi | |
40259 | if test -z "$ac_cv_prog_STRIP"; then | |
40260 | ac_ct_STRIP=$STRIP | |
40261 | # Extract the first word of "strip", so it can be a program name with args. | |
40262 | set dummy strip; ac_word=$2 | |
40263 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
40264 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
40265 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
40266 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40267 | else | |
40268 | if test -n "$ac_ct_STRIP"; then | |
40269 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
40270 | else | |
40271 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40272 | for as_dir in $PATH | |
40273 | do | |
40274 | IFS=$as_save_IFS | |
40275 | test -z "$as_dir" && as_dir=. | |
40276 | for ac_exec_ext in '' $ac_executable_extensions; do | |
40277 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
40278 | ac_cv_prog_ac_ct_STRIP="strip" | |
40279 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
40280 | break 2 | |
40281 | fi | |
40282 | done | |
40283 | done | |
40284 | ||
40285 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
40286 | fi | |
40287 | fi | |
40288 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
40289 | if test -n "$ac_ct_STRIP"; then | |
40290 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
40291 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
40292 | else | |
40293 | echo "$as_me:$LINENO: result: no" >&5 | |
40294 | echo "${ECHO_T}no" >&6 | |
40295 | fi | |
40296 | ||
40297 | STRIP=$ac_ct_STRIP | |
40298 | else | |
40299 | STRIP="$ac_cv_prog_STRIP" | |
40300 | fi | |
40301 | ||
40302 | if test -n "$ac_tool_prefix"; then | |
40303 | # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. | |
40304 | set dummy ${ac_tool_prefix}nm; ac_word=$2 | |
40305 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
40306 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
40307 | if test "${ac_cv_prog_NM+set}" = set; then | |
40308 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40309 | else | |
40310 | if test -n "$NM"; then | |
40311 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
40312 | else | |
40313 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40314 | for as_dir in $PATH | |
40315 | do | |
40316 | IFS=$as_save_IFS | |
40317 | test -z "$as_dir" && as_dir=. | |
40318 | for ac_exec_ext in '' $ac_executable_extensions; do | |
40319 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
40320 | ac_cv_prog_NM="${ac_tool_prefix}nm" | |
40321 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
40322 | break 2 | |
40323 | fi | |
40324 | done | |
40325 | done | |
40326 | ||
40327 | fi | |
40328 | fi | |
40329 | NM=$ac_cv_prog_NM | |
40330 | if test -n "$NM"; then | |
40331 | echo "$as_me:$LINENO: result: $NM" >&5 | |
40332 | echo "${ECHO_T}$NM" >&6 | |
40333 | else | |
40334 | echo "$as_me:$LINENO: result: no" >&5 | |
40335 | echo "${ECHO_T}no" >&6 | |
40336 | fi | |
40337 | ||
40338 | fi | |
40339 | if test -z "$ac_cv_prog_NM"; then | |
40340 | ac_ct_NM=$NM | |
40341 | # Extract the first word of "nm", so it can be a program name with args. | |
40342 | set dummy nm; ac_word=$2 | |
40343 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
40344 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
40345 | if test "${ac_cv_prog_ac_ct_NM+set}" = set; then | |
40346 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40347 | else | |
40348 | if test -n "$ac_ct_NM"; then | |
40349 | ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. | |
40350 | else | |
40351 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40352 | for as_dir in $PATH | |
40353 | do | |
40354 | IFS=$as_save_IFS | |
40355 | test -z "$as_dir" && as_dir=. | |
40356 | for ac_exec_ext in '' $ac_executable_extensions; do | |
40357 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
40358 | ac_cv_prog_ac_ct_NM="nm" | |
40359 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
40360 | break 2 | |
40361 | fi | |
40362 | done | |
40363 | done | |
40364 | ||
40365 | test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":" | |
40366 | fi | |
40367 | fi | |
40368 | ac_ct_NM=$ac_cv_prog_ac_ct_NM | |
40369 | if test -n "$ac_ct_NM"; then | |
40370 | echo "$as_me:$LINENO: result: $ac_ct_NM" >&5 | |
40371 | echo "${ECHO_T}$ac_ct_NM" >&6 | |
40372 | else | |
40373 | echo "$as_me:$LINENO: result: no" >&5 | |
40374 | echo "${ECHO_T}no" >&6 | |
40375 | fi | |
40376 | ||
40377 | NM=$ac_ct_NM | |
40378 | else | |
40379 | NM="$ac_cv_prog_NM" | |
40380 | fi | |
40381 | ||
40382 | ||
40383 | case ${BAKEFILE_HOST} in | |
40384 | *-hp-hpux* ) | |
1e9e8aba | 40385 | INSTALL_DIR="mkdir -p" |
a848cd7e SC |
40386 | ;; |
40387 | *) INSTALL_DIR="$INSTALL -d" | |
40388 | ;; | |
40389 | esac | |
40390 | ||
40391 | ||
40392 | LDFLAGS_GUI= | |
40393 | case ${BAKEFILE_HOST} in | |
40394 | *-*-cygwin* | *-*-mingw32* ) | |
40395 | LDFLAGS_GUI="-mwindows" | |
40396 | esac | |
40397 | ||
40398 | ||
40399 | fi | |
40400 | ||
40401 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
40402 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
40403 | if test "${bakefile_cv_prog_makeisgnu+set}" = set; then | |
40404 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40405 | else | |
40406 | ||
40407 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
40408 | egrep -s GNU > /dev/null); then | |
40409 | bakefile_cv_prog_makeisgnu="yes" | |
40410 | else | |
40411 | bakefile_cv_prog_makeisgnu="no" | |
40412 | fi | |
40413 | ||
40414 | fi | |
40415 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5 | |
40416 | echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6 | |
40417 | ||
40418 | if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then | |
40419 | IF_GNU_MAKE="" | |
40420 | else | |
40421 | IF_GNU_MAKE="#" | |
40422 | fi | |
40423 | ||
40424 | ||
40425 | ||
40426 | PLATFORM_UNIX=0 | |
40427 | PLATFORM_WIN32=0 | |
40428 | PLATFORM_MSDOS=0 | |
40429 | PLATFORM_MAC=0 | |
1e9e8aba | 40430 | PLATFORM_MACOS=0 |
a848cd7e SC |
40431 | PLATFORM_MACOSX=0 |
40432 | PLATFORM_OS2=0 | |
1e9e8aba | 40433 | PLATFORM_BEOS=0 |
a848cd7e SC |
40434 | |
40435 | if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then | |
40436 | case "${BAKEFILE_HOST}" in | |
40437 | *-*-cygwin* | *-*-mingw32* ) | |
40438 | PLATFORM_WIN32=1 | |
40439 | ;; | |
40440 | *-pc-msdosdjgpp ) | |
40441 | PLATFORM_MSDOS=1 | |
40442 | ;; | |
40443 | *-pc-os2_emx | *-pc-os2-emx ) | |
40444 | PLATFORM_OS2=1 | |
40445 | ;; | |
40446 | powerpc-*-darwin* ) | |
40447 | PLATFORM_MAC=1 | |
40448 | PLATFORM_MACOSX=1 | |
40449 | ;; | |
1e9e8aba DE |
40450 | *-*-beos* ) |
40451 | PLATFORM_BEOS=1 | |
40452 | ;; | |
40453 | powerpc-apple-macos* ) | |
40454 | PLATFORM_MAC=1 | |
40455 | PLATFORM_MACOS=1 | |
40456 | ;; | |
a848cd7e SC |
40457 | * ) |
40458 | PLATFORM_UNIX=1 | |
40459 | ;; | |
40460 | esac | |
40461 | else | |
40462 | case "$BAKEFILE_FORCE_PLATFORM" in | |
40463 | win32 ) | |
40464 | PLATFORM_WIN32=1 | |
40465 | ;; | |
40466 | msdos ) | |
40467 | PLATFORM_MSDOS=1 | |
40468 | ;; | |
40469 | os2 ) | |
40470 | PLATFORM_OS2=1 | |
40471 | ;; | |
40472 | darwin ) | |
40473 | PLATFORM_MAC=1 | |
40474 | PLATFORM_MACOSX=1 | |
40475 | ;; | |
40476 | unix ) | |
40477 | PLATFORM_UNIX=1 | |
40478 | ;; | |
1e9e8aba DE |
40479 | beos ) |
40480 | PLATFORM_BEOS=1 | |
40481 | ;; | |
a848cd7e SC |
40482 | * ) |
40483 | { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5 | |
40484 | echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;} | |
40485 | { (exit 1); exit 1; }; } | |
40486 | ;; | |
40487 | esac | |
40488 | fi | |
40489 | ||
40490 | ||
40491 | ||
40492 | ||
40493 | ||
40494 | ||
40495 | ||
40496 | ||
40497 | ||
1e9e8aba DE |
40498 | |
40499 | ||
a848cd7e SC |
40500 | # Check whether --enable-omf or --disable-omf was given. |
40501 | if test "${enable_omf+set}" = set; then | |
40502 | enableval="$enable_omf" | |
40503 | bk_os2_use_omf="$enableval" | |
40504 | fi; | |
40505 | ||
40506 | case "${BAKEFILE_HOST}" in | |
40507 | *-*-darwin* ) | |
40508 | CFLAGS="$CFLAGS -fno-common" | |
40509 | CXXFLAGS="$CXXFLAGS -fno-common" | |
40510 | ;; | |
40511 | ||
40512 | *-pc-os2_emx | *-pc-os2-emx ) | |
40513 | if test "x$bk_os2_use_omf" = "xyes" ; then | |
40514 | AR=emxomfar | |
40515 | RANLIB=: | |
40516 | LDFLAGS="-Zomf $LDFLAGS" | |
40517 | CFLAGS="-Zomf $CFLAGS" | |
40518 | CXXFLAGS="-Zomf $CXXFLAGS" | |
40519 | OS2_LIBEXT="lib" | |
40520 | else | |
40521 | OS2_LIBEXT="a" | |
40522 | fi | |
40523 | ;; | |
1e9e8aba DE |
40524 | |
40525 | i*86-*-beos* ) | |
40526 | LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS" | |
40527 | ;; | |
a848cd7e SC |
40528 | esac |
40529 | ||
40530 | ||
40531 | SO_SUFFIX="so" | |
40532 | SO_SUFFIX_MODULE="so" | |
40533 | EXEEXT="" | |
40534 | LIBPREFIX="lib" | |
40535 | LIBEXT=".a" | |
40536 | DLLPREFIX="lib" | |
40537 | DLLPREFIX_MODULE="" | |
40538 | DLLIMP_SUFFIX="" | |
40539 | ||
40540 | case "${BAKEFILE_HOST}" in | |
40541 | *-hp-hpux* ) | |
40542 | SO_SUFFIX="sl" | |
40543 | SO_SUFFIX_MODULE="sl" | |
40544 | ;; | |
40545 | *-*-aix* ) | |
40546 | SO_SUFFIX="a" | |
40547 | SO_SUFFIX_MODULE="a" | |
40548 | ;; | |
40549 | *-*-cygwin* | *-*-mingw32* ) | |
40550 | SO_SUFFIX="dll" | |
40551 | SO_SUFFIX_MODULE="dll" | |
40552 | DLLIMP_SUFFIX="dll.a" | |
40553 | EXEEXT=".exe" | |
40554 | DLLPREFIX="" | |
40555 | ;; | |
40556 | *-pc-msdosdjgpp ) | |
40557 | EXEEXT=".exe" | |
40558 | DLLPREFIX="" | |
40559 | ;; | |
40560 | *-pc-os2_emx | *-pc-os2-emx ) | |
40561 | SO_SUFFIX="dll" | |
40562 | SO_SUFFIX_MODULE="dll" | |
40563 | DLLIMP_SUFFIX=$OS2_LIBEXT | |
40564 | EXEEXT=".exe" | |
40565 | DLLPREFIX="" | |
40566 | LIBPREFIX="" | |
40567 | LIBEXT=".$OS2_LIBEXT" | |
40568 | ;; | |
40569 | powerpc-*-darwin* ) | |
40570 | SO_SUFFIX="dylib" | |
40571 | SO_SUFFIX_MODULE="bundle" | |
40572 | ;; | |
40573 | esac | |
40574 | ||
40575 | if test "x$DLLIMP_SUFFIX" = "x" ; then | |
40576 | DLLIMP_SUFFIX="$SO_SUFFIX" | |
40577 | fi | |
40578 | ||
40579 | ||
40580 | ||
40581 | ||
40582 | ||
40583 | ||
40584 | ||
40585 | ||
40586 | ||
40587 | ||
40588 | ||
1e9e8aba DE |
40589 | PIC_FLAG="" |
40590 | if test "x$GCC" = "xyes"; then | |
a848cd7e SC |
40591 | PIC_FLAG="-fPIC" |
40592 | fi | |
40593 | ||
1e9e8aba DE |
40594 | SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o" |
40595 | SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o" | |
40596 | ||
a848cd7e SC |
40597 | case "${BAKEFILE_HOST}" in |
40598 | *-hp-hpux* ) | |
1e9e8aba | 40599 | if test "x$GCC" != "xyes"; then |
a848cd7e SC |
40600 | LDFLAGS="$LDFLAGS -L/usr/lib" |
40601 | ||
40602 | SHARED_LD_CC="${CC} -b -o" | |
40603 | SHARED_LD_CXX="${CXX} -b -o" | |
40604 | PIC_FLAG="+Z" | |
40605 | fi | |
40606 | ;; | |
40607 | ||
40608 | *-*-linux* ) | |
40609 | if test "x$GCC" != "xyes"; then | |
40610 | echo "$as_me:$LINENO: checking for Intel compiler" >&5 | |
40611 | echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6 | |
40612 | if test "${bakefile_cv_prog_icc+set}" = set; then | |
40613 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40614 | else | |
40615 | ||
40616 | cat >conftest.$ac_ext <<_ACEOF | |
40617 | /* confdefs.h. */ | |
40618 | _ACEOF | |
40619 | cat confdefs.h >>conftest.$ac_ext | |
40620 | cat >>conftest.$ac_ext <<_ACEOF | |
40621 | /* end confdefs.h. */ | |
40622 | ||
40623 | int | |
40624 | main () | |
40625 | { | |
40626 | ||
40627 | #ifndef __INTEL_COMPILER | |
40628 | #error Not icc | |
40629 | #endif | |
40630 | ||
40631 | ; | |
40632 | return 0; | |
40633 | } | |
40634 | _ACEOF | |
40635 | rm -f conftest.$ac_objext | |
40636 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 40637 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 40638 | ac_status=$? |
ac1cb8d3 VS |
40639 | grep -v '^ *+' conftest.er1 >conftest.err |
40640 | rm -f conftest.er1 | |
40641 | cat conftest.err >&5 | |
a848cd7e SC |
40642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40643 | (exit $ac_status); } && | |
89be85c2 VS |
40644 | { ac_try='test -z "$ac_c_werror_flag" |
40645 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
40646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40647 | (eval $ac_try) 2>&5 | |
40648 | ac_status=$? | |
40649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40650 | (exit $ac_status); }; } && | |
40651 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
40652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40653 | (eval $ac_try) 2>&5 | |
40654 | ac_status=$? | |
40655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40656 | (exit $ac_status); }; }; then | |
40657 | bakefile_cv_prog_icc=yes | |
40658 | else | |
40659 | echo "$as_me: failed program was:" >&5 | |
40660 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40661 | ||
40662 | bakefile_cv_prog_icc=no | |
40663 | ||
40664 | fi | |
ac1cb8d3 | 40665 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
40666 | |
40667 | fi | |
40668 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5 | |
40669 | echo "${ECHO_T}$bakefile_cv_prog_icc" >&6 | |
40670 | if test "$bakefile_cv_prog_icc" = "yes"; then | |
40671 | PIC_FLAG="-KPIC" | |
40672 | fi | |
40673 | fi | |
40674 | ;; | |
40675 | ||
40676 | *-*-solaris2* ) | |
40677 | if test "x$GCC" != xyes ; then | |
40678 | SHARED_LD_CC="${CC} -G -o" | |
40679 | SHARED_LD_CXX="${CXX} -G -o" | |
40680 | PIC_FLAG="-KPIC" | |
40681 | fi | |
40682 | ;; | |
40683 | ||
40684 | *-*-darwin* ) | |
40685 | ||
40686 | echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5 | |
40687 | echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6 | |
40688 | if test "${wx_cv_gcc31+set}" = set; then | |
40689 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40690 | else | |
40691 | ||
40692 | cat >conftest.$ac_ext <<_ACEOF | |
40693 | /* confdefs.h. */ | |
40694 | _ACEOF | |
40695 | cat confdefs.h >>conftest.$ac_ext | |
40696 | cat >>conftest.$ac_ext <<_ACEOF | |
40697 | /* end confdefs.h. */ | |
40698 | ||
40699 | int | |
40700 | main () | |
40701 | { | |
40702 | ||
40703 | #if (__GNUC__ < 3) || \ | |
40704 | ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1)) | |
40705 | #error old gcc | |
40706 | #endif | |
40707 | ||
40708 | ; | |
40709 | return 0; | |
40710 | } | |
40711 | _ACEOF | |
40712 | rm -f conftest.$ac_objext | |
40713 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 40714 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 40715 | ac_status=$? |
ac1cb8d3 VS |
40716 | grep -v '^ *+' conftest.er1 >conftest.err |
40717 | rm -f conftest.er1 | |
40718 | cat conftest.err >&5 | |
a848cd7e SC |
40719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40720 | (exit $ac_status); } && | |
89be85c2 VS |
40721 | { ac_try='test -z "$ac_c_werror_flag" |
40722 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
40723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40724 | (eval $ac_try) 2>&5 | |
40725 | ac_status=$? | |
40726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40727 | (exit $ac_status); }; } && | |
40728 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
40729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40730 | (eval $ac_try) 2>&5 | |
40731 | ac_status=$? | |
40732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40733 | (exit $ac_status); }; }; then | |
40734 | ||
40735 | wx_cv_gcc31=yes | |
40736 | ||
40737 | else | |
40738 | echo "$as_me: failed program was:" >&5 | |
40739 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40740 | ||
40741 | ||
40742 | wx_cv_gcc31=no | |
40743 | ||
40744 | ||
40745 | fi | |
ac1cb8d3 | 40746 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
40747 | |
40748 | fi | |
40749 | echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5 | |
40750 | echo "${ECHO_T}$wx_cv_gcc31" >&6 | |
40751 | if test "$wx_cv_gcc31" = "no"; then | |
473276a9 VS |
40752 | |
40753 | D='$' | |
40754 | cat <<EOF >shared-ld-sh | |
a848cd7e SC |
40755 | #!/bin/sh |
40756 | #----------------------------------------------------------------------------- | |
40757 | #-- Name: distrib/mac/shared-ld-sh | |
40758 | #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X | |
40759 | #-- Author: Gilles Depeyrot | |
40760 | #-- Copyright: (c) 2002 Gilles Depeyrot | |
40761 | #-- Licence: any use permitted | |
40762 | #----------------------------------------------------------------------------- | |
40763 | ||
40764 | verbose=0 | |
40765 | args="" | |
40766 | objects="" | |
40767 | linking_flag="-dynamiclib" | |
40768 | ||
473276a9 VS |
40769 | while test ${D}# -gt 0; do |
40770 | case ${D}1 in | |
a848cd7e SC |
40771 | |
40772 | -v) | |
40773 | verbose=1 | |
40774 | ;; | |
40775 | ||
40776 | -o|-compatibility_version|-current_version|-framework|-undefined|-install_name) | |
40777 | # collect these options and values | |
473276a9 | 40778 | args="${D}{args} ${D}1 ${D}2" |
a848cd7e SC |
40779 | shift |
40780 | ;; | |
40781 | ||
40782 | -l*|-L*|-flat_namespace|-headerpad_max_install_names) | |
40783 | # collect these options | |
473276a9 | 40784 | args="${D}{args} ${D}1" |
a848cd7e SC |
40785 | ;; |
40786 | ||
40787 | -dynamiclib|-bundle) | |
473276a9 | 40788 | linking_flag="${D}1" |
a848cd7e SC |
40789 | ;; |
40790 | ||
40791 | -*) | |
473276a9 | 40792 | echo "shared-ld: unhandled option '${D}1'" |
a848cd7e SC |
40793 | exit 1 |
40794 | ;; | |
40795 | ||
40796 | *.o | *.a | *.dylib) | |
40797 | # collect object files | |
473276a9 | 40798 | objects="${D}{objects} ${D}1" |
a848cd7e SC |
40799 | ;; |
40800 | ||
40801 | *) | |
473276a9 | 40802 | echo "shared-ld: unhandled argument '${D}1'" |
a848cd7e SC |
40803 | exit 1 |
40804 | ;; | |
40805 | ||
40806 | esac | |
40807 | shift | |
40808 | done | |
40809 | ||
40810 | # | |
40811 | # Link one module containing all the others | |
40812 | # | |
473276a9 VS |
40813 | if test ${D}{verbose} = 1; then |
40814 | echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o" | |
a848cd7e | 40815 | fi |
473276a9 VS |
40816 | c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o |
40817 | status=${D}? | |
40818 | if test ${D}{status} != 0; then | |
40819 | exit ${D}{status} | |
a848cd7e SC |
40820 | fi |
40821 | ||
40822 | # | |
40823 | # Link the shared library from the single module created | |
40824 | # | |
473276a9 VS |
40825 | if test ${D}{verbose} = 1; then |
40826 | echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}" | |
a848cd7e | 40827 | fi |
473276a9 VS |
40828 | c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args} |
40829 | status=${D}? | |
40830 | if test ${D}{status} != 0; then | |
40831 | exit ${D}{status} | |
a848cd7e SC |
40832 | fi |
40833 | ||
40834 | # | |
40835 | # Remove intermediate module | |
40836 | # | |
473276a9 | 40837 | rm -f master.${D}${D}.o |
a848cd7e SC |
40838 | |
40839 | exit 0 | |
40840 | EOF | |
473276a9 | 40841 | |
a848cd7e SC |
40842 | chmod +x shared-ld-sh |
40843 | ||
40844 | SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o" | |
40845 | SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o" | |
40846 | SHARED_LD_CXX="$SHARED_LD_CC" | |
40847 | SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC" | |
40848 | else | |
40849 | SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o" | |
40850 | SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o" | |
40851 | SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o" | |
40852 | SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o" | |
40853 | fi | |
40854 | ||
40855 | PIC_FLAG="-dynamic -fPIC" | |
40856 | ;; | |
40857 | ||
40858 | *-*-aix* ) | |
40859 | if test "x$GCC" != "xyes"; then | |
40860 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
40861 | set dummy makeC++SharedLib; ac_word=$2 | |
40862 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
40863 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
40864 | if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then | |
40865 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40866 | else | |
40867 | if test -n "$AIX_CXX_LD"; then | |
40868 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
40869 | else | |
40870 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40871 | for as_dir in $PATH | |
40872 | do | |
40873 | IFS=$as_save_IFS | |
40874 | test -z "$as_dir" && as_dir=. | |
40875 | for ac_exec_ext in '' $ac_executable_extensions; do | |
40876 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
40877 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
40878 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
40879 | break 2 | |
40880 | fi | |
40881 | done | |
40882 | done | |
40883 | ||
40884 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" | |
40885 | fi | |
40886 | fi | |
40887 | AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD | |
40888 | if test -n "$AIX_CXX_LD"; then | |
40889 | echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5 | |
40890 | echo "${ECHO_T}$AIX_CXX_LD" >&6 | |
40891 | else | |
40892 | echo "$as_me:$LINENO: result: no" >&5 | |
40893 | echo "${ECHO_T}no" >&6 | |
40894 | fi | |
40895 | ||
40896 | SHARED_LD_CC="$AIX_CC_LD -p 0 -o" | |
40897 | SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o" | |
40898 | fi | |
40899 | ;; | |
40900 | ||
40901 | *-*-beos* ) | |
1e9e8aba DE |
40902 | SHARED_LD_CC="${LD} -nostart -o" |
40903 | SHARED_LD_CXX="${LD} -nostart -o" | |
a848cd7e SC |
40904 | ;; |
40905 | ||
40906 | *-*-irix* ) | |
40907 | if test "x$GCC" != "xyes"; then | |
40908 | PIC_FLAG="-KPIC" | |
40909 | fi | |
40910 | ;; | |
40911 | ||
40912 | *-*-cygwin* | *-*-mingw32* ) | |
40913 | PIC_FLAG="" | |
1e9e8aba DE |
40914 | SHARED_LD_CC="\$(CC) -shared -o" |
40915 | SHARED_LD_CXX="\$(CXX) -shared -o" | |
a848cd7e SC |
40916 | ;; |
40917 | ||
40918 | *-pc-os2_emx | *-pc-os2-emx ) | |
b1d22ded DE |
40919 | SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o" |
40920 | SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
a848cd7e | 40921 | PIC_FLAG="" |
473276a9 VS |
40922 | |
40923 | D='$' | |
40924 | cat <<EOF >dllar.sh | |
40925 | #!/bin/sh | |
40926 | # | |
40927 | # dllar - a tool to build both a .dll and an .a file | |
40928 | # from a set of object (.o) files for EMX/OS2. | |
40929 | # | |
40930 | # Written by Andrew Zabolotny, bit@freya.etu.ru | |
40931 | # Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de | |
40932 | # | |
40933 | # This script will accept a set of files on the command line. | |
40934 | # All the public symbols from the .o files will be exported into | |
40935 | # a .DEF file, then linker will be run (through gcc) against them to | |
40936 | # build a shared library consisting of all given .o files. All libraries | |
40937 | # (.a) will be first decompressed into component .o files then act as | |
40938 | # described above. You can optionally give a description (-d "description") | |
40939 | # which will be put into .DLL. To see the list of accepted options (as well | |
40940 | # as command-line format) simply run this program without options. The .DLL | |
40941 | # is built to be imported by name (there is no guarantee that new versions | |
40942 | # of the library you build will have same ordinals for same symbols). | |
40943 | # | |
40944 | # dllar is free software; you can redistribute it and/or modify | |
40945 | # it under the terms of the GNU General Public License as published by | |
40946 | # the Free Software Foundation; either version 2, or (at your option) | |
40947 | # any later version. | |
40948 | # | |
40949 | # dllar is distributed in the hope that it will be useful, | |
40950 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
40951 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
40952 | # GNU General Public License for more details. | |
40953 | # | |
40954 | # You should have received a copy of the GNU General Public License | |
40955 | # along with dllar; see the file COPYING. If not, write to the Free | |
40956 | # Software Foundation, 59 Temple Place - Suite 330, Boston, MA | |
40957 | # 02111-1307, USA. | |
40958 | ||
40959 | # To successfuly run this program you will need: | |
40960 | # - Current drive should have LFN support (HPFS, ext2, network, etc) | |
40961 | # (Sometimes dllar generates filenames which won't fit 8.3 scheme) | |
40962 | # - gcc | |
40963 | # (used to build the .dll) | |
40964 | # - emxexp | |
40965 | # (used to create .def file from .o files) | |
40966 | # - emximp | |
40967 | # (used to create .a file from .def file) | |
40968 | # - GNU text utilites (cat, sort, uniq) | |
40969 | # used to process emxexp output | |
40970 | # - GNU file utilities (mv, rm) | |
40971 | # - GNU sed | |
40972 | # - lxlite (optional, see flag below) | |
40973 | # (used for general .dll cleanup) | |
40974 | # | |
40975 | ||
40976 | flag_USE_LXLITE=1; | |
40977 | ||
40978 | # | |
40979 | # helper functions | |
40980 | # basnam, variant of basename, which does _not_ remove the path, _iff_ | |
40981 | # second argument (suffix to remove) is given | |
40982 | basnam(){ | |
40983 | case ${D}# in | |
40984 | 1) | |
1e9e8aba | 40985 | echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//' |
473276a9 VS |
40986 | ;; |
40987 | 2) | |
40988 | echo ${D}1 | sed 's/'${D}2'${D}//' | |
40989 | ;; | |
40990 | *) | |
40991 | echo "error in basnam ${D}*" | |
40992 | exit 8 | |
40993 | ;; | |
40994 | esac | |
40995 | } | |
40996 | ||
40997 | # Cleanup temporary files and output | |
40998 | CleanUp() { | |
40999 | cd ${D}curDir | |
41000 | for i in ${D}inputFiles ; do | |
41001 | case ${D}i in | |
41002 | *!) | |
41003 | rm -rf \`basnam ${D}i !\` | |
41004 | ;; | |
41005 | *) | |
41006 | ;; | |
41007 | esac | |
41008 | done | |
41009 | ||
41010 | # Kill result in case of failure as there is just to many stupid make/nmake | |
41011 | # things out there which doesn't do this. | |
1e9e8aba | 41012 | if [ ${D}# -eq 0 ]; then |
473276a9 VS |
41013 | rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile |
41014 | fi | |
41015 | } | |
41016 | ||
41017 | # Print usage and exit script with rc=1. | |
41018 | PrintHelp() { | |
b1d22ded DE |
41019 | echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]' |
41020 | echo ' [-name-mangler-script script.sh]' | |
41021 | echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]' | |
41022 | echo ' [-ord[inals]] -ex[clude] "symbol(s)"' | |
41023 | echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]' | |
1e9e8aba | 41024 | echo ' [*.o] [*.a]' |
473276a9 VS |
41025 | echo '*> "output_file" should have no extension.' |
41026 | echo ' If it has the .o, .a or .dll extension, it is automatically removed.' | |
41027 | echo ' The import library name is derived from this and is set to "name".a,' | |
41028 | echo ' unless overridden by -import' | |
41029 | echo '*> "importlib_name" should have no extension.' | |
41030 | echo ' If it has the .o, or .a extension, it is automatically removed.' | |
41031 | echo ' This name is used as the import library name and may be longer and' | |
41032 | echo ' more descriptive than the DLL name which has to follow the old ' | |
41033 | echo ' 8.3 convention of FAT.' | |
b1d22ded DE |
41034 | echo '*> "script.sh may be given to override the output_file name by a' |
41035 | echo ' different name. It is mainly useful if the regular make process' | |
41036 | echo ' of some package does not take into account OS/2 restriction of' | |
41037 | echo ' DLL name lengths. It takes the importlib name as input and is' | |
41038 | echo ' supposed to procude a shorter name as output. The script should' | |
41039 | echo ' expect to get importlib_name without extension and should produce' | |
41040 | echo ' a (max.) 8 letter name without extension.' | |
473276a9 VS |
41041 | echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)' |
41042 | echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)' | |
41043 | echo ' These flags will be put at the start of GCC command line.' | |
b1d22ded DE |
41044 | echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.' |
41045 | echo '*> -ex[clude] defines symbols which will not be exported. You can define' | |
473276a9 VS |
41046 | echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".' |
41047 | echo ' If the last character of a symbol is "*", all symbols beginning' | |
41048 | echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).' | |
b1d22ded | 41049 | echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or' |
473276a9 | 41050 | echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.' |
b1d22ded | 41051 | echo '*> -nocrt[dll] switch will disable linking the library against emx''s' |
473276a9 | 41052 | echo ' C runtime DLLs.' |
b1d22ded | 41053 | echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.' |
473276a9 VS |
41054 | echo '*> All other switches (for example -L./ or -lmylib) will be passed' |
41055 | echo ' unchanged to GCC at the end of command line.' | |
41056 | echo '*> If you create a DLL from a library and you do not specify -o,' | |
41057 | echo ' the basename for DLL and import library will be set to library name,' | |
41058 | echo ' the initial library will be renamed to 'name'_s.a (_s for static)' | |
41059 | echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial' | |
41060 | echo ' library will be renamed into gcc_s.a.' | |
41061 | echo '--------' | |
41062 | echo 'Example:' | |
41063 | echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord' | |
41064 | echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"' | |
41065 | CleanUp | |
41066 | exit 1 | |
41067 | } | |
41068 | ||
41069 | # Execute a command. | |
41070 | # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script. | |
41071 | # @Uses Whatever CleanUp() uses. | |
41072 | doCommand() { | |
41073 | echo "${D}*" | |
41074 | eval ${D}* | |
41075 | rcCmd=${D}? | |
41076 | ||
1e9e8aba | 41077 | if [ ${D}rcCmd -ne 0 ]; then |
473276a9 VS |
41078 | echo "command failed, exit code="${D}rcCmd |
41079 | CleanUp | |
41080 | exit ${D}rcCmd | |
41081 | fi | |
41082 | } | |
41083 | ||
41084 | # main routine | |
41085 | # setup globals | |
41086 | cmdLine=${D}* | |
41087 | outFile="" | |
41088 | outimpFile="" | |
41089 | inputFiles="" | |
b1d22ded | 41090 | renameScript="" |
473276a9 VS |
41091 | description="" |
41092 | CC=gcc.exe | |
41093 | CFLAGS="-s -Zcrtdll" | |
41094 | EXTRA_CFLAGS="" | |
41095 | EXPORT_BY_ORDINALS=0 | |
41096 | exclude_symbols="" | |
41097 | library_flags="" | |
41098 | curDir=\`pwd\` | |
41099 | curDirS=curDir | |
41100 | case ${D}curDirS in | |
41101 | */) | |
41102 | ;; | |
41103 | *) | |
41104 | curDirS=${D}{curDirS}"/" | |
41105 | ;; | |
41106 | esac | |
41107 | # Parse commandline | |
41108 | libsToLink=0 | |
b1d22ded | 41109 | omfLinking=0 |
1e9e8aba | 41110 | while [ ${D}1 ]; do |
473276a9 VS |
41111 | case ${D}1 in |
41112 | -ord*) | |
41113 | EXPORT_BY_ORDINALS=1; | |
41114 | ;; | |
41115 | -o*) | |
41116 | shift | |
41117 | outFile=${D}1 | |
41118 | ;; | |
41119 | -i*) | |
41120 | shift | |
41121 | outimpFile=${D}1 | |
41122 | ;; | |
b1d22ded DE |
41123 | -name-mangler-script) |
41124 | shift | |
41125 | renameScript=${D}1 | |
41126 | ;; | |
473276a9 VS |
41127 | -d*) |
41128 | shift | |
41129 | description=${D}1 | |
41130 | ;; | |
41131 | -f*) | |
41132 | shift | |
41133 | CFLAGS=${D}1 | |
41134 | ;; | |
41135 | -c*) | |
41136 | shift | |
41137 | CC=${D}1 | |
41138 | ;; | |
41139 | -h*) | |
41140 | PrintHelp | |
41141 | ;; | |
41142 | -ex*) | |
41143 | shift | |
41144 | exclude_symbols=${D}{exclude_symbols}${D}1" " | |
41145 | ;; | |
41146 | -libf*) | |
41147 | shift | |
41148 | library_flags=${D}{library_flags}${D}1" " | |
41149 | ;; | |
41150 | -nocrt*) | |
41151 | CFLAGS="-s" | |
41152 | ;; | |
41153 | -nolxl*) | |
41154 | flag_USE_LXLITE=0 | |
41155 | ;; | |
41156 | -* | /*) | |
41157 | case ${D}1 in | |
41158 | -L* | -l*) | |
41159 | libsToLink=1 | |
41160 | ;; | |
b1d22ded DE |
41161 | -Zomf) |
41162 | omfLinking=1 | |
41163 | ;; | |
473276a9 VS |
41164 | *) |
41165 | ;; | |
41166 | esac | |
41167 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 | |
41168 | ;; | |
b1d22ded DE |
41169 | *.dll) |
41170 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`" | |
41171 | if [ ${D}omfLinking -eq 1 ]; then | |
41172 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib" | |
41173 | else | |
41174 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a" | |
41175 | fi | |
41176 | ;; | |
473276a9 VS |
41177 | *) |
41178 | found=0; | |
1e9e8aba | 41179 | if [ ${D}libsToLink -ne 0 ]; then |
473276a9 VS |
41180 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 |
41181 | else | |
41182 | for file in ${D}1 ; do | |
1e9e8aba | 41183 | if [ -f ${D}file ]; then |
473276a9 VS |
41184 | inputFiles="${D}{inputFiles} ${D}file" |
41185 | found=1 | |
41186 | fi | |
41187 | done | |
1e9e8aba | 41188 | if [ ${D}found -eq 0 ]; then |
473276a9 VS |
41189 | echo "ERROR: No file(s) found: "${D}1 |
41190 | exit 8 | |
41191 | fi | |
41192 | fi | |
41193 | ;; | |
41194 | esac | |
41195 | shift | |
41196 | done # iterate cmdline words | |
41197 | ||
41198 | # | |
1e9e8aba | 41199 | if [ -z "${D}inputFiles" ]; then |
473276a9 VS |
41200 | echo "dllar: no input files" |
41201 | PrintHelp | |
41202 | fi | |
41203 | ||
41204 | # Now extract all .o files from .a files | |
41205 | newInputFiles="" | |
41206 | for file in ${D}inputFiles ; do | |
41207 | case ${D}file in | |
41208 | *.a | *.lib) | |
41209 | case ${D}file in | |
41210 | *.a) | |
41211 | suffix=".a" | |
41212 | AR="ar" | |
41213 | ;; | |
41214 | *.lib) | |
41215 | suffix=".lib" | |
41216 | AR="emxomfar" | |
41217 | EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf" | |
41218 | ;; | |
41219 | *) | |
41220 | ;; | |
41221 | esac | |
41222 | dirname=\`basnam ${D}file ${D}suffix\`"_%" | |
41223 | mkdir ${D}dirname | |
1e9e8aba | 41224 | if [ ${D}? -ne 0 ]; then |
473276a9 VS |
41225 | echo "Failed to create subdirectory ./${D}dirname" |
41226 | CleanUp | |
41227 | exit 8; | |
41228 | fi | |
41229 | # Append '!' to indicate archive | |
41230 | newInputFiles="${D}newInputFiles ${D}{dirname}!" | |
41231 | doCommand "cd ${D}dirname; ${D}AR x ../${D}file" | |
41232 | cd ${D}curDir | |
41233 | found=0; | |
41234 | for subfile in ${D}dirname/*.o* ; do | |
1e9e8aba | 41235 | if [ -f ${D}subfile ]; then |
473276a9 | 41236 | found=1 |
1e9e8aba | 41237 | if [ -s ${D}subfile ]; then |
473276a9 VS |
41238 | # FIXME: This should be: is file size > 32 byte, _not_ > 0! |
41239 | newInputFiles="${D}newInputFiles ${D}subfile" | |
41240 | fi | |
41241 | fi | |
41242 | done | |
1e9e8aba DE |
41243 | if [ ${D}found -eq 0 ]; then |
41244 | echo "WARNING: there are no files in archive \\'${D}file\\'" | |
473276a9 VS |
41245 | fi |
41246 | ;; | |
41247 | *) | |
41248 | newInputFiles="${D}{newInputFiles} ${D}file" | |
41249 | ;; | |
41250 | esac | |
41251 | done | |
41252 | inputFiles="${D}newInputFiles" | |
41253 | ||
41254 | # Output filename(s). | |
41255 | do_backup=0; | |
1e9e8aba | 41256 | if [ -z ${D}outFile ]; then |
473276a9 VS |
41257 | do_backup=1; |
41258 | set outFile ${D}inputFiles; outFile=${D}2 | |
41259 | fi | |
41260 | ||
41261 | # If it is an archive, remove the '!' and the '_%' suffixes | |
41262 | case ${D}outFile in | |
41263 | *_%!) | |
41264 | outFile=\`basnam ${D}outFile _%!\` | |
41265 | ;; | |
41266 | *) | |
41267 | ;; | |
41268 | esac | |
41269 | case ${D}outFile in | |
41270 | *.dll) | |
41271 | outFile=\`basnam ${D}outFile .dll\` | |
41272 | ;; | |
41273 | *.DLL) | |
41274 | outFile=\`basnam ${D}outFile .DLL\` | |
41275 | ;; | |
41276 | *.o) | |
41277 | outFile=\`basnam ${D}outFile .o\` | |
41278 | ;; | |
41279 | *.obj) | |
41280 | outFile=\`basnam ${D}outFile .obj\` | |
41281 | ;; | |
41282 | *.a) | |
41283 | outFile=\`basnam ${D}outFile .a\` | |
41284 | ;; | |
41285 | *.lib) | |
41286 | outFile=\`basnam ${D}outFile .lib\` | |
41287 | ;; | |
41288 | *) | |
41289 | ;; | |
41290 | esac | |
41291 | case ${D}outimpFile in | |
41292 | *.a) | |
41293 | outimpFile=\`basnam ${D}outimpFile .a\` | |
41294 | ;; | |
41295 | *.lib) | |
41296 | outimpFile=\`basnam ${D}outimpFile .lib\` | |
41297 | ;; | |
41298 | *) | |
41299 | ;; | |
41300 | esac | |
1e9e8aba | 41301 | if [ -z ${D}outimpFile ]; then |
473276a9 VS |
41302 | outimpFile=${D}outFile |
41303 | fi | |
41304 | defFile="${D}{outFile}.def" | |
41305 | arcFile="${D}{outimpFile}.a" | |
41306 | arcFile2="${D}{outimpFile}.lib" | |
b1d22ded DE |
41307 | |
41308 | #create ${D}dllFile as something matching 8.3 restrictions, | |
41309 | if [ -z ${D}renameScript ] ; then | |
41310 | dllFile="${D}outFile" | |
41311 | else | |
41312 | dllFile=\`${D}renameScript ${D}outimpFile\` | |
41313 | fi | |
473276a9 | 41314 | |
1e9e8aba DE |
41315 | if [ ${D}do_backup -ne 0 ] ; then |
41316 | if [ -f ${D}arcFile ] ; then | |
473276a9 VS |
41317 | doCommand "mv ${D}arcFile ${D}{outFile}_s.a" |
41318 | fi | |
1e9e8aba | 41319 | if [ -f ${D}arcFile2 ] ; then |
473276a9 VS |
41320 | doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib" |
41321 | fi | |
41322 | fi | |
41323 | ||
41324 | # Extract public symbols from all the object files. | |
41325 | tmpdefFile=${D}{defFile}_% | |
41326 | rm -f ${D}tmpdefFile | |
41327 | for file in ${D}inputFiles ; do | |
41328 | case ${D}file in | |
41329 | *!) | |
41330 | ;; | |
41331 | *) | |
41332 | doCommand "emxexp -u ${D}file >> ${D}tmpdefFile" | |
41333 | ;; | |
41334 | esac | |
41335 | done | |
41336 | ||
41337 | # Create the def file. | |
41338 | rm -f ${D}defFile | |
41339 | echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile | |
b1d22ded DE |
41340 | dllFile="${D}{dllFile}.dll" |
41341 | if [ ! -z ${D}description ]; then | |
1e9e8aba | 41342 | echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile |
473276a9 VS |
41343 | fi |
41344 | echo "EXPORTS" >> ${D}defFile | |
41345 | ||
41346 | doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%" | |
41347 | grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile | |
41348 | ||
41349 | # Checks if the export is ok or not. | |
41350 | for word in ${D}exclude_symbols; do | |
41351 | grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}% | |
41352 | mv ${D}{tmpdefFile}% ${D}tmpdefFile | |
41353 | done | |
41354 | ||
41355 | ||
1e9e8aba DE |
41356 | if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then |
41357 | sed "=" < ${D}tmpdefFile | \\ | |
473276a9 VS |
41358 | sed ' |
41359 | N | |
41360 | : loop | |
1e9e8aba | 41361 | s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/ |
473276a9 VS |
41362 | t loop |
41363 | ' > ${D}{tmpdefFile}% | |
41364 | grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile | |
41365 | else | |
41366 | rm -f ${D}{tmpdefFile}% | |
41367 | fi | |
41368 | cat ${D}tmpdefFile >> ${D}defFile | |
41369 | rm -f ${D}tmpdefFile | |
41370 | ||
41371 | # Do linking, create implib, and apply lxlite. | |
41372 | gccCmdl=""; | |
41373 | for file in ${D}inputFiles ; do | |
41374 | case ${D}file in | |
41375 | *!) | |
41376 | ;; | |
41377 | *) | |
41378 | gccCmdl="${D}gccCmdl ${D}file" | |
41379 | ;; | |
41380 | esac | |
41381 | done | |
41382 | doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS" | |
41383 | touch "${D}{outFile}.dll" | |
41384 | ||
41385 | doCommand "emximp -o ${D}arcFile ${D}defFile" | |
1e9e8aba | 41386 | if [ ${D}flag_USE_LXLITE -ne 0 ]; then |
473276a9 | 41387 | add_flags=""; |
1e9e8aba | 41388 | if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then |
473276a9 VS |
41389 | add_flags="-ynd" |
41390 | fi | |
41391 | doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile" | |
41392 | fi | |
41393 | doCommand "emxomf -s -l ${D}arcFile" | |
41394 | ||
41395 | # Successful exit. | |
41396 | CleanUp 1 | |
41397 | exit 0 | |
41398 | EOF | |
41399 | ||
41400 | chmod +x dllar.sh | |
a848cd7e SC |
41401 | ;; |
41402 | ||
1e9e8aba | 41403 | powerpc-apple-macos* | \ |
a848cd7e SC |
41404 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ |
41405 | *-*-sunos4* | \ | |
41406 | *-*-osf* | \ | |
41407 | *-*-dgux5* | \ | |
41408 | *-*-sysv5* ) | |
41409 | ;; | |
41410 | ||
41411 | *) | |
41412 | { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5 | |
41413 | echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;} | |
41414 | { (exit 1); exit 1; }; } | |
41415 | esac | |
41416 | ||
2057db16 VS |
41417 | if test "x$PIC_FLAG" != "x" ; then |
41418 | PIC_FLAG="$PIC_FLAG -DPIC" | |
41419 | fi | |
41420 | ||
a848cd7e SC |
41421 | if test "x$SHARED_LD_MODULE_CC" = "x" ; then |
41422 | SHARED_LD_MODULE_CC="$SHARED_LD_CC" | |
41423 | fi | |
41424 | if test "x$SHARED_LD_MODULE_CXX" = "x" ; then | |
41425 | SHARED_LD_MODULE_CXX="$SHARED_LD_CXX" | |
41426 | fi | |
41427 | ||
41428 | ||
41429 | ||
41430 | ||
41431 | ||
41432 | ||
41433 | ||
41434 | ||
41435 | USE_SOVERSION=0 | |
41436 | USE_SOVERLINUX=0 | |
41437 | USE_SOVERSOLARIS=0 | |
41438 | USE_SOSYMLINKS=0 | |
41439 | USE_MACVERSION=0 | |
41440 | SONAME_FLAG= | |
41441 | ||
41442 | case "${BAKEFILE_HOST}" in | |
b1d22ded | 41443 | *-*-linux* | *-*-freebsd* ) |
5f652d0d VS |
41444 | SONAME_FLAG="-Wl,-soname," |
41445 | USE_SOVERSION=1 | |
41446 | USE_SOVERLINUX=1 | |
41447 | USE_SOSYMLINKS=1 | |
41448 | ;; | |
41449 | ||
a848cd7e SC |
41450 | *-*-solaris2* ) |
41451 | SONAME_FLAG="-h " | |
41452 | USE_SOVERSION=1 | |
41453 | USE_SOVERSOLARIS=1 | |
41454 | USE_SOSYMLINKS=1 | |
41455 | ;; | |
41456 | ||
41457 | *-*-darwin* ) | |
41458 | USE_MACVERSION=1 | |
41459 | USE_SOVERSION=1 | |
41460 | USE_SOSYMLINKS=1 | |
41461 | ;; | |
41462 | esac | |
41463 | ||
41464 | ||
41465 | ||
41466 | ||
41467 | ||
41468 | ||
41469 | ||
41470 | ||
41471 | ||
41472 | echo "$as_me:$LINENO: checking for dependency tracking method" >&5 | |
41473 | echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6 | |
41474 | DEPS_TRACKING=0 | |
41475 | ||
41476 | if test "x$GCC" = "xyes"; then | |
41477 | DEPSMODE=gcc | |
41478 | DEPS_TRACKING=1 | |
41479 | case "${BAKEFILE_HOST}" in | |
41480 | powerpc-*-darwin* ) | |
41481 | DEPSFLAG_GCC="-no-cpp-precomp -MMD" | |
41482 | ;; | |
41483 | * ) | |
41484 | DEPSFLAG_GCC="-MMD" | |
41485 | ;; | |
41486 | esac | |
41487 | echo "$as_me:$LINENO: result: gcc" >&5 | |
41488 | echo "${ECHO_T}gcc" >&6 | |
b1d22ded | 41489 | elif test "x$MWCC" = "xyes"; then |
81f90336 | 41490 | DEPSMODE=mwcc |
b1d22ded | 41491 | DEPS_TRACKING=1 |
81f90336 | 41492 | DEPSFLAG_MWCC="-MM" |
b1d22ded DE |
41493 | echo "$as_me:$LINENO: result: mwcc" >&5 |
41494 | echo "${ECHO_T}mwcc" >&6 | |
a848cd7e SC |
41495 | else |
41496 | echo "$as_me:$LINENO: result: none" >&5 | |
41497 | echo "${ECHO_T}none" >&6 | |
41498 | fi | |
41499 | ||
41500 | if test $DEPS_TRACKING = 1 ; then | |
473276a9 VS |
41501 | |
41502 | D='$' | |
41503 | cat <<EOF >bk-deps | |
a848cd7e SC |
41504 | #!/bin/sh |
41505 | ||
41506 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
41507 | # script. It is used to track C/C++ files dependencies in portable way. | |
41508 | # | |
41509 | # Permission is given to use this file in any way. | |
41510 | ||
473276a9 | 41511 | DEPSMODE=${DEPSMODE} |
a848cd7e | 41512 | DEPSDIR=.deps |
473276a9 | 41513 | DEPSFLAG_GCC="${DEPSFLAG_GCC}" |
81f90336 | 41514 | DEPSFLAG_MWCC="${DEPSFLAG_MWCC}" |
a848cd7e | 41515 | |
473276a9 | 41516 | mkdir -p ${D}DEPSDIR |
a848cd7e | 41517 | |
473276a9 VS |
41518 | if test ${D}DEPSMODE = gcc ; then |
41519 | ${D}* ${D}{DEPSFLAG_GCC} | |
41520 | status=${D}? | |
41521 | if test ${D}{status} != 0 ; then | |
41522 | exit ${D}{status} | |
a848cd7e SC |
41523 | fi |
41524 | # move created file to the location we want it in: | |
473276a9 VS |
41525 | while test ${D}# -gt 0; do |
41526 | case "${D}1" in | |
a848cd7e SC |
41527 | -o ) |
41528 | shift | |
473276a9 | 41529 | objfile=${D}1 |
a848cd7e SC |
41530 | ;; |
41531 | -* ) | |
41532 | ;; | |
41533 | * ) | |
473276a9 | 41534 | srcfile=${D}1 |
a848cd7e SC |
41535 | ;; |
41536 | esac | |
41537 | shift | |
41538 | done | |
1e9e8aba DE |
41539 | depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\` |
41540 | depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\` | |
473276a9 VS |
41541 | if test -f ${D}depfile ; then |
41542 | sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
41543 | rm -f ${D}depfile | |
a848cd7e | 41544 | else |
1e9e8aba | 41545 | depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\` |
473276a9 VS |
41546 | if test -f ${D}depfile ; then |
41547 | sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
41548 | rm -f ${D}depfile | |
a848cd7e SC |
41549 | fi |
41550 | fi | |
41551 | exit 0 | |
81f90336 MW |
41552 | elif test ${D}DEPSMODE = mwcc ; then |
41553 | ${D}* | |
41554 | status=${D}? | |
41555 | if test ${D}{status} != 0 ; then | |
41556 | exit ${D}{status} | |
41557 | fi | |
41558 | # Run mwcc again with -MM and redirect into the dep file we want | |
41559 | # NOTE: We can't use shift here because we need ${D}* to be valid | |
41560 | prevarg= | |
41561 | for arg in ${D}* ; do | |
41562 | if test "${D}prevarg" = "-o"; then | |
41563 | objfile=${D}arg | |
41564 | else | |
41565 | case "${D}arg" in | |
41566 | -* ) | |
41567 | ;; | |
41568 | * ) | |
41569 | srcfile=${D}arg | |
41570 | ;; | |
41571 | esac | |
41572 | fi | |
41573 | prevarg="${D}arg" | |
41574 | done | |
41575 | ${D}* ${D}DEPSFLAG_MWCC >${D}{DEPSDIR}/${D}{objfile}.d | |
41576 | exit 0 | |
a848cd7e | 41577 | else |
473276a9 VS |
41578 | ${D}* |
41579 | exit ${D}? | |
a848cd7e SC |
41580 | fi |
41581 | EOF | |
473276a9 | 41582 | |
a848cd7e SC |
41583 | chmod +x bk-deps |
41584 | fi | |
41585 | ||
41586 | ||
41587 | ||
41588 | ||
41589 | RESCOMP= | |
41590 | SETFILE= | |
41591 | ||
41592 | case ${BAKEFILE_HOST} in | |
41593 | *-*-cygwin* | *-*-mingw32* ) | |
41594 | if test "$build" != "$host" ; then | |
41595 | RESCOMP=$host_alias-windres | |
41596 | else | |
41597 | # Extract the first word of "windres", so it can be a program name with args. | |
41598 | set dummy windres; ac_word=$2 | |
41599 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41600 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41601 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
41602 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41603 | else | |
41604 | if test -n "$RESCOMP"; then | |
41605 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
41606 | else | |
41607 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41608 | for as_dir in $PATH | |
41609 | do | |
41610 | IFS=$as_save_IFS | |
41611 | test -z "$as_dir" && as_dir=. | |
41612 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41613 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41614 | ac_cv_prog_RESCOMP="windres" | |
41615 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41616 | break 2 | |
41617 | fi | |
41618 | done | |
41619 | done | |
41620 | ||
41621 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres" | |
41622 | fi | |
41623 | fi | |
41624 | RESCOMP=$ac_cv_prog_RESCOMP | |
41625 | if test -n "$RESCOMP"; then | |
41626 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
41627 | echo "${ECHO_T}$RESCOMP" >&6 | |
41628 | else | |
41629 | echo "$as_me:$LINENO: result: no" >&5 | |
41630 | echo "${ECHO_T}no" >&6 | |
41631 | fi | |
41632 | ||
41633 | fi | |
41634 | ;; | |
41635 | ||
1e9e8aba | 41636 | *-*-darwin* | powerpc-apple-macos* ) |
a848cd7e SC |
41637 | # Extract the first word of "Rez", so it can be a program name with args. |
41638 | set dummy Rez; ac_word=$2 | |
41639 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41640 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41641 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
41642 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41643 | else | |
41644 | if test -n "$RESCOMP"; then | |
41645 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
41646 | else | |
41647 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41648 | for as_dir in $PATH | |
41649 | do | |
41650 | IFS=$as_save_IFS | |
41651 | test -z "$as_dir" && as_dir=. | |
41652 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41653 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41654 | ac_cv_prog_RESCOMP="Rez" | |
41655 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41656 | break 2 | |
41657 | fi | |
41658 | done | |
41659 | done | |
41660 | ||
41661 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
41662 | fi | |
41663 | fi | |
41664 | RESCOMP=$ac_cv_prog_RESCOMP | |
41665 | if test -n "$RESCOMP"; then | |
41666 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
41667 | echo "${ECHO_T}$RESCOMP" >&6 | |
41668 | else | |
41669 | echo "$as_me:$LINENO: result: no" >&5 | |
41670 | echo "${ECHO_T}no" >&6 | |
41671 | fi | |
41672 | ||
41673 | # Extract the first word of "SetFile", so it can be a program name with args. | |
41674 | set dummy SetFile; ac_word=$2 | |
41675 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41676 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41677 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
41678 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41679 | else | |
41680 | if test -n "$SETFILE"; then | |
41681 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
41682 | else | |
41683 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41684 | for as_dir in $PATH | |
41685 | do | |
41686 | IFS=$as_save_IFS | |
41687 | test -z "$as_dir" && as_dir=. | |
41688 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41689 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41690 | ac_cv_prog_SETFILE="SetFile" | |
41691 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41692 | break 2 | |
41693 | fi | |
41694 | done | |
41695 | done | |
41696 | ||
41697 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
41698 | fi | |
41699 | fi | |
41700 | SETFILE=$ac_cv_prog_SETFILE | |
41701 | if test -n "$SETFILE"; then | |
41702 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
41703 | echo "${ECHO_T}$SETFILE" >&6 | |
41704 | else | |
41705 | echo "$as_me:$LINENO: result: no" >&5 | |
41706 | echo "${ECHO_T}no" >&6 | |
41707 | fi | |
41708 | ||
41709 | ;; | |
41710 | esac | |
41711 | ||
41712 | ||
41713 | ||
41714 | ||
41715 | ||
94acd38e | 41716 | BAKEFILE_BAKEFILE_M4_VERSION="0.1.7" |
a848cd7e | 41717 | |
dcc1b6ad | 41718 | |
94acd38e | 41719 | BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.7" |
a848cd7e | 41720 | |
646b6ec1 | 41721 | |
74b84332 | 41722 | |
a848cd7e SC |
41723 | # Check whether --enable-precomp-headers or --disable-precomp-headers was given. |
41724 | if test "${enable_precomp_headers+set}" = set; then | |
41725 | enableval="$enable_precomp_headers" | |
41726 | bk_use_pch="$enableval" | |
41727 | fi; | |
41728 | ||
41729 | GCC_PCH=0 | |
41730 | ||
41731 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then | |
41732 | if test "x$GCC" = "xyes"; then | |
41733 | echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5 | |
41734 | echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6 | |
41735 | cat >conftest.$ac_ext <<_ACEOF | |
41736 | /* confdefs.h. */ | |
41737 | _ACEOF | |
41738 | cat confdefs.h >>conftest.$ac_ext | |
41739 | cat >>conftest.$ac_ext <<_ACEOF | |
41740 | /* end confdefs.h. */ | |
41741 | ||
41742 | int | |
41743 | main () | |
41744 | { | |
41745 | ||
41746 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) | |
41747 | #error "no pch support" | |
41748 | #endif | |
41749 | #if (__GNUC__ < 3) | |
41750 | #error "no pch support" | |
41751 | #endif | |
41752 | #if (__GNUC__ == 3) && \ | |
41753 | ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ | |
41754 | ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) | |
41755 | #error "no pch support" | |
41756 | #endif | |
41757 | ||
41758 | ; | |
41759 | return 0; | |
41760 | } | |
41761 | _ACEOF | |
41762 | rm -f conftest.$ac_objext | |
41763 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 41764 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 41765 | ac_status=$? |
ac1cb8d3 VS |
41766 | grep -v '^ *+' conftest.er1 >conftest.err |
41767 | rm -f conftest.er1 | |
41768 | cat conftest.err >&5 | |
a848cd7e SC |
41769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41770 | (exit $ac_status); } && | |
89be85c2 VS |
41771 | { ac_try='test -z "$ac_c_werror_flag" |
41772 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
41773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41774 | (eval $ac_try) 2>&5 | |
41775 | ac_status=$? | |
41776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41777 | (exit $ac_status); }; } && | |
41778 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
41779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41780 | (eval $ac_try) 2>&5 | |
41781 | ac_status=$? | |
41782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41783 | (exit $ac_status); }; }; then | |
41784 | ||
41785 | echo "$as_me:$LINENO: result: yes" >&5 | |
41786 | echo "${ECHO_T}yes" >&6 | |
a848cd7e SC |
41787 | GCC_PCH=1 |
41788 | ||
41789 | else | |
41790 | echo "$as_me: failed program was:" >&5 | |
41791 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41792 | ||
41793 | ||
41794 | echo "$as_me:$LINENO: result: no" >&5 | |
41795 | echo "${ECHO_T}no" >&6 | |
41796 | ||
41797 | fi | |
ac1cb8d3 | 41798 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 41799 | if test $GCC_PCH = 1 ; then |
1e9e8aba DE |
41800 | |
41801 | D='$' | |
41802 | cat <<EOF >bk-make-pch | |
a848cd7e SC |
41803 | #!/bin/sh |
41804 | ||
41805 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
41806 | # script. It is used to generated precompiled headers. | |
41807 | # | |
41808 | # Permission is given to use this file in any way. | |
41809 | ||
1e9e8aba DE |
41810 | outfile="${D}{1}" |
41811 | header="${D}{2}" | |
a848cd7e SC |
41812 | shift |
41813 | shift | |
41814 | ||
41815 | compiler= | |
41816 | headerfile= | |
1e9e8aba DE |
41817 | while test ${D}{#} -gt 0; do |
41818 | case "${D}{1}" in | |
a848cd7e | 41819 | -I* ) |
1e9e8aba DE |
41820 | incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\` |
41821 | if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then | |
41822 | headerfile="${D}{incdir}/${D}{header}" | |
a848cd7e SC |
41823 | fi |
41824 | ;; | |
41825 | esac | |
1e9e8aba | 41826 | compiler="${D}{compiler} ${D}{1}" |
a848cd7e SC |
41827 | shift |
41828 | done | |
41829 | ||
1e9e8aba DE |
41830 | if test "x${D}{headerfile}" = "x" ; then |
41831 | echo "error: can't find header ${D}{header} in include paths" >2 | |
a848cd7e | 41832 | else |
1e9e8aba DE |
41833 | if test -f ${D}{outfile} ; then |
41834 | rm -f ${D}{outfile} | |
a848cd7e | 41835 | else |
1e9e8aba | 41836 | mkdir -p \`dirname ${D}{outfile}\` |
a848cd7e | 41837 | fi |
1e9e8aba | 41838 | depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d" |
a848cd7e SC |
41839 | mkdir -p .deps |
41840 | # can do this because gcc is >= 3.4: | |
1e9e8aba DE |
41841 | ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}" |
41842 | exit ${D}{?} | |
a848cd7e SC |
41843 | fi |
41844 | EOF | |
1e9e8aba | 41845 | |
a848cd7e SC |
41846 | chmod +x bk-make-pch |
41847 | fi | |
41848 | fi | |
41849 | fi | |
41850 | ||
41851 | ||
41852 | ||
a848cd7e SC |
41853 | COND_BUILD_DEBUG="#" |
41854 | if test "x$BUILD" = "xdebug" ; then | |
41855 | COND_BUILD_DEBUG="" | |
41856 | fi | |
41857 | ||
41858 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" | |
41859 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
41860 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
41861 | fi | |
41862 | ||
41863 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
41864 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
41865 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
41866 | fi | |
41867 | ||
41868 | COND_BUILD_DEBUG_UNICODE_0="#" | |
41869 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then | |
41870 | COND_BUILD_DEBUG_UNICODE_0="" | |
41871 | fi | |
41872 | ||
41873 | COND_BUILD_DEBUG_UNICODE_1="#" | |
41874 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then | |
41875 | COND_BUILD_DEBUG_UNICODE_1="" | |
41876 | fi | |
41877 | ||
41878 | COND_BUILD_RELEASE="#" | |
41879 | if test "x$BUILD" = "xrelease" ; then | |
41880 | COND_BUILD_RELEASE="" | |
41881 | fi | |
41882 | ||
41883 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" | |
41884 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
41885 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
41886 | fi | |
41887 | ||
41888 | COND_BUILD_RELEASE_UNICODE_0="#" | |
41889 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then | |
41890 | COND_BUILD_RELEASE_UNICODE_0="" | |
41891 | fi | |
41892 | ||
41893 | COND_BUILD_RELEASE_UNICODE_1="#" | |
41894 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then | |
41895 | COND_BUILD_RELEASE_UNICODE_1="" | |
41896 | fi | |
41897 | ||
41898 | COND_DEBUG_FLAG_1="#" | |
41899 | if test "x$DEBUG_FLAG" = "x1" ; then | |
41900 | COND_DEBUG_FLAG_1="" | |
41901 | fi | |
41902 | ||
41903 | COND_DEBUG_INFO_0="#" | |
41904 | if test "x$DEBUG_INFO" = "x0" ; then | |
41905 | COND_DEBUG_INFO_0="" | |
41906 | fi | |
41907 | ||
41908 | COND_DEBUG_INFO_1="#" | |
41909 | if test "x$DEBUG_INFO" = "x1" ; then | |
41910 | COND_DEBUG_INFO_1="" | |
41911 | fi | |
41912 | ||
41913 | COND_DEPS_TRACKING_0="#" | |
41914 | if test "x$DEPS_TRACKING" = "x0" ; then | |
41915 | COND_DEPS_TRACKING_0="" | |
41916 | fi | |
41917 | ||
41918 | COND_DEPS_TRACKING_1="#" | |
41919 | if test "x$DEPS_TRACKING" = "x1" ; then | |
41920 | COND_DEPS_TRACKING_1="" | |
41921 | fi | |
41922 | ||
41923 | COND_GCC_PCH_1="#" | |
41924 | if test "x$GCC_PCH" = "x1" ; then | |
41925 | COND_GCC_PCH_1="" | |
41926 | fi | |
41927 | ||
41928 | COND_MONOLITHIC_0="#" | |
41929 | if test "x$MONOLITHIC" = "x0" ; then | |
41930 | COND_MONOLITHIC_0="" | |
41931 | fi | |
41932 | ||
41933 | COND_MONOLITHIC_0_SHARED_0="#" | |
41934 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
41935 | COND_MONOLITHIC_0_SHARED_0="" | |
41936 | fi | |
41937 | ||
41938 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" | |
41939 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
41940 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
41941 | fi | |
41942 | ||
90970d69 DE |
41943 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#" |
41944 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then | |
41945 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="" | |
41946 | fi | |
41947 | ||
a848cd7e SC |
41948 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#" |
41949 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
41950 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="" | |
41951 | fi | |
41952 | ||
a848cd7e SC |
41953 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#" |
41954 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
41955 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="" | |
41956 | fi | |
41957 | ||
ceec2216 RL |
41958 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#" |
41959 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then | |
41960 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="" | |
41961 | fi | |
41962 | ||
a848cd7e SC |
41963 | COND_MONOLITHIC_0_SHARED_1="#" |
41964 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
41965 | COND_MONOLITHIC_0_SHARED_1="" | |
41966 | fi | |
41967 | ||
41968 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" | |
41969 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
41970 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
41971 | fi | |
41972 | ||
90970d69 DE |
41973 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#" |
41974 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then | |
41975 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="" | |
41976 | fi | |
41977 | ||
a848cd7e SC |
41978 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#" |
41979 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
41980 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="" | |
41981 | fi | |
41982 | ||
a848cd7e SC |
41983 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#" |
41984 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
41985 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="" | |
41986 | fi | |
41987 | ||
ceec2216 RL |
41988 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#" |
41989 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then | |
41990 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="" | |
41991 | fi | |
41992 | ||
a848cd7e SC |
41993 | COND_MONOLITHIC_0_USE_ODBC_1="#" |
41994 | if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
41995 | COND_MONOLITHIC_0_USE_ODBC_1="" | |
41996 | fi | |
41997 | ||
41998 | COND_MONOLITHIC_1="#" | |
41999 | if test "x$MONOLITHIC" = "x1" ; then | |
42000 | COND_MONOLITHIC_1="" | |
42001 | fi | |
42002 | ||
42003 | COND_MONOLITHIC_1_SHARED_0="#" | |
42004 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
42005 | COND_MONOLITHIC_1_SHARED_0="" | |
42006 | fi | |
42007 | ||
42008 | COND_MONOLITHIC_1_SHARED_1="#" | |
42009 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
42010 | COND_MONOLITHIC_1_SHARED_1="" | |
42011 | fi | |
42012 | ||
42013 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" | |
42014 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
42015 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
42016 | fi | |
42017 | ||
42018 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
42019 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
42020 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
42021 | fi | |
42022 | ||
42023 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" | |
42024 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
42025 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
42026 | fi | |
42027 | ||
42028 | COND_PLATFORM_MACOSX_1="#" | |
42029 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
42030 | COND_PLATFORM_MACOSX_1="" | |
42031 | fi | |
42032 | ||
a30f955f VS |
42033 | COND_PLATFORM_MACOSX_1_TOOLKIT_="#" |
42034 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then | |
42035 | COND_PLATFORM_MACOSX_1_TOOLKIT_="" | |
42036 | fi | |
42037 | ||
a848cd7e SC |
42038 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" |
42039 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
42040 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
42041 | fi | |
42042 | ||
42043 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
42044 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
42045 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
42046 | fi | |
42047 | ||
42048 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
42049 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
42050 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
42051 | fi | |
42052 | ||
fc480dc1 DE |
42053 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#" |
42054 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
42055 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="" | |
42056 | fi | |
42057 | ||
1e9e8aba DE |
42058 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" |
42059 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
42060 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
42061 | fi | |
42062 | ||
ebee3cd0 VS |
42063 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#" |
42064 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then | |
42065 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="" | |
42066 | fi | |
42067 | ||
42068 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#" | |
42069 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then | |
42070 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="" | |
42071 | fi | |
42072 | ||
a848cd7e SC |
42073 | COND_PLATFORM_MACOSX_1_USE_GUI_1="#" |
42074 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
42075 | COND_PLATFORM_MACOSX_1_USE_GUI_1="" | |
42076 | fi | |
42077 | ||
42078 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" | |
42079 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
42080 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
42081 | fi | |
42082 | ||
b48a2016 DE |
42083 | COND_PLATFORM_MACOS_1="#" |
42084 | if test "x$PLATFORM_MACOS" = "x1" ; then | |
42085 | COND_PLATFORM_MACOS_1="" | |
42086 | fi | |
42087 | ||
a848cd7e SC |
42088 | COND_PLATFORM_MAC_1="#" |
42089 | if test "x$PLATFORM_MAC" = "x1" ; then | |
42090 | COND_PLATFORM_MAC_1="" | |
42091 | fi | |
42092 | ||
42093 | COND_PLATFORM_OS2_1="#" | |
42094 | if test "x$PLATFORM_OS2" = "x1" ; then | |
42095 | COND_PLATFORM_OS2_1="" | |
42096 | fi | |
42097 | ||
42098 | COND_PLATFORM_UNIX_0="#" | |
42099 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
42100 | COND_PLATFORM_UNIX_0="" | |
42101 | fi | |
42102 | ||
42103 | COND_PLATFORM_UNIX_1="#" | |
42104 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
42105 | COND_PLATFORM_UNIX_1="" | |
42106 | fi | |
42107 | ||
42108 | COND_PLATFORM_UNIX_1_USE_GUI_1="#" | |
42109 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
42110 | COND_PLATFORM_UNIX_1_USE_GUI_1="" | |
42111 | fi | |
42112 | ||
42113 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#" | |
42114 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then | |
42115 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="" | |
42116 | fi | |
42117 | ||
42118 | COND_PLATFORM_WIN32_0="#" | |
42119 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
42120 | COND_PLATFORM_WIN32_0="" | |
42121 | fi | |
42122 | ||
42123 | COND_PLATFORM_WIN32_1="#" | |
42124 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
42125 | COND_PLATFORM_WIN32_1="" | |
42126 | fi | |
42127 | ||
42128 | COND_SHARED_0="#" | |
42129 | if test "x$SHARED" = "x0" ; then | |
42130 | COND_SHARED_0="" | |
42131 | fi | |
42132 | ||
ceec2216 RL |
42133 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#" |
42134 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then | |
42135 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="" | |
42136 | fi | |
42137 | ||
42138 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#" | |
42139 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then | |
42140 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="" | |
42141 | fi | |
42142 | ||
42143 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#" | |
42144 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then | |
42145 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="" | |
42146 | fi | |
42147 | ||
a848cd7e SC |
42148 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" |
42149 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
42150 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
42151 | fi | |
42152 | ||
42153 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
42154 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
42155 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
42156 | fi | |
42157 | ||
42158 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
42159 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
42160 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
42161 | fi | |
42162 | ||
42163 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
42164 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
42165 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
42166 | fi | |
42167 | ||
42168 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#" | |
42169 | if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
42170 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="" | |
42171 | fi | |
42172 | ||
42173 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="#" | |
42174 | if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then | |
42175 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="" | |
42176 | fi | |
42177 | ||
42178 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="#" | |
42179 | if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then | |
42180 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="" | |
42181 | fi | |
42182 | ||
42183 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#" | |
42184 | if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
42185 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="" | |
42186 | fi | |
42187 | ||
42188 | COND_SHARED_1="#" | |
42189 | if test "x$SHARED" = "x1" ; then | |
42190 | COND_SHARED_1="" | |
42191 | fi | |
42192 | ||
42193 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" | |
42194 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
42195 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
42196 | fi | |
42197 | ||
a30f955f VS |
42198 | COND_TOOLKIT_="#" |
42199 | if test "x$TOOLKIT" = "x" ; then | |
42200 | COND_TOOLKIT_="" | |
42201 | fi | |
42202 | ||
a848cd7e SC |
42203 | COND_TOOLKIT_COCOA="#" |
42204 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
42205 | COND_TOOLKIT_COCOA="" | |
42206 | fi | |
42207 | ||
a49baeab DE |
42208 | COND_TOOLKIT_COCOA_USE_GUI_1="#" |
42209 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then | |
42210 | COND_TOOLKIT_COCOA_USE_GUI_1="" | |
42211 | fi | |
42212 | ||
a848cd7e SC |
42213 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" |
42214 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
42215 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
42216 | fi | |
42217 | ||
42218 | COND_TOOLKIT_GTK="#" | |
42219 | if test "x$TOOLKIT" = "xGTK" ; then | |
42220 | COND_TOOLKIT_GTK="" | |
42221 | fi | |
42222 | ||
42223 | COND_TOOLKIT_GTK_USE_GUI_1="#" | |
42224 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
42225 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
42226 | fi | |
42227 | ||
42228 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#" | |
42229 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
42230 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="" | |
42231 | fi | |
42232 | ||
42233 | COND_TOOLKIT_MAC="#" | |
42234 | if test "x$TOOLKIT" = "xMAC" ; then | |
42235 | COND_TOOLKIT_MAC="" | |
42236 | fi | |
42237 | ||
42238 | COND_TOOLKIT_MAC_USE_GUI_1="#" | |
42239 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
42240 | COND_TOOLKIT_MAC_USE_GUI_1="" | |
42241 | fi | |
42242 | ||
42243 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" | |
42244 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
42245 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
42246 | fi | |
42247 | ||
42248 | COND_TOOLKIT_MGL="#" | |
42249 | if test "x$TOOLKIT" = "xMGL" ; then | |
42250 | COND_TOOLKIT_MGL="" | |
42251 | fi | |
42252 | ||
42253 | COND_TOOLKIT_MGL_USE_GUI_1="#" | |
42254 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
42255 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
42256 | fi | |
42257 | ||
42258 | COND_TOOLKIT_MOTIF="#" | |
42259 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
42260 | COND_TOOLKIT_MOTIF="" | |
42261 | fi | |
42262 | ||
42263 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" | |
42264 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
42265 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
42266 | fi | |
42267 | ||
42268 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" | |
42269 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
42270 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
42271 | fi | |
42272 | ||
42273 | COND_TOOLKIT_MSW="#" | |
42274 | if test "x$TOOLKIT" = "xMSW" ; then | |
42275 | COND_TOOLKIT_MSW="" | |
42276 | fi | |
42277 | ||
42278 | COND_TOOLKIT_MSW_USE_GUI_1="#" | |
42279 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
42280 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
42281 | fi | |
42282 | ||
42283 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" | |
42284 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
42285 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
42286 | fi | |
42287 | ||
42288 | COND_TOOLKIT_PM="#" | |
42289 | if test "x$TOOLKIT" = "xPM" ; then | |
42290 | COND_TOOLKIT_PM="" | |
42291 | fi | |
42292 | ||
42293 | COND_TOOLKIT_PM_USE_GUI_1="#" | |
42294 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then | |
42295 | COND_TOOLKIT_PM_USE_GUI_1="" | |
42296 | fi | |
42297 | ||
42298 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#" | |
42299 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
42300 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="" | |
42301 | fi | |
42302 | ||
3fd9c298 DE |
42303 | COND_TOOLKIT_WINCE="#" |
42304 | if test "x$TOOLKIT" = "xWINCE" ; then | |
42305 | COND_TOOLKIT_WINCE="" | |
42306 | fi | |
42307 | ||
42308 | COND_TOOLKIT_WINCE_USE_GUI_1="#" | |
42309 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then | |
42310 | COND_TOOLKIT_WINCE_USE_GUI_1="" | |
42311 | fi | |
42312 | ||
42313 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#" | |
42314 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
42315 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="" | |
42316 | fi | |
42317 | ||
a848cd7e SC |
42318 | COND_TOOLKIT_X11="#" |
42319 | if test "x$TOOLKIT" = "xX11" ; then | |
42320 | COND_TOOLKIT_X11="" | |
42321 | fi | |
42322 | ||
42323 | COND_TOOLKIT_X11_USE_GUI_1="#" | |
42324 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
42325 | COND_TOOLKIT_X11_USE_GUI_1="" | |
42326 | fi | |
42327 | ||
42328 | COND_UNICODE_1="#" | |
42329 | if test "x$UNICODE" = "x1" ; then | |
42330 | COND_UNICODE_1="" | |
42331 | fi | |
42332 | ||
42333 | COND_USE_EXCEPTIONS_0="#" | |
42334 | if test "x$USE_EXCEPTIONS" = "x0" ; then | |
42335 | COND_USE_EXCEPTIONS_0="" | |
42336 | fi | |
42337 | ||
42338 | COND_USE_EXCEPTIONS_1="#" | |
42339 | if test "x$USE_EXCEPTIONS" = "x1" ; then | |
42340 | COND_USE_EXCEPTIONS_1="" | |
42341 | fi | |
42342 | ||
42343 | COND_USE_GUI_0="#" | |
42344 | if test "x$USE_GUI" = "x0" ; then | |
42345 | COND_USE_GUI_0="" | |
42346 | fi | |
42347 | ||
42348 | COND_USE_GUI_1="#" | |
42349 | if test "x$USE_GUI" = "x1" ; then | |
42350 | COND_USE_GUI_1="" | |
42351 | fi | |
42352 | ||
42353 | COND_USE_GUI_1_WXUNIV_0="#" | |
42354 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
42355 | COND_USE_GUI_1_WXUNIV_0="" | |
42356 | fi | |
42357 | ||
42358 | COND_USE_GUI_1_WXUNIV_1="#" | |
42359 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
42360 | COND_USE_GUI_1_WXUNIV_1="" | |
42361 | fi | |
42362 | ||
42363 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
42364 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
42365 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
42366 | fi | |
42367 | ||
42368 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
42369 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
42370 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
42371 | fi | |
42372 | ||
42373 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
42374 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
42375 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
42376 | fi | |
42377 | ||
ceec2216 RL |
42378 | COND_USE_ODBC_1="#" |
42379 | if test "x$USE_ODBC" = "x1" ; then | |
42380 | COND_USE_ODBC_1="" | |
42381 | fi | |
42382 | ||
ffa0583f RL |
42383 | COND_USE_OPENGL_1="#" |
42384 | if test "x$USE_OPENGL" = "x1" ; then | |
42385 | COND_USE_OPENGL_1="" | |
42386 | fi | |
42387 | ||
a848cd7e SC |
42388 | COND_USE_PLUGINS_0="#" |
42389 | if test "x$USE_PLUGINS" = "x0" ; then | |
42390 | COND_USE_PLUGINS_0="" | |
42391 | fi | |
42392 | ||
42393 | COND_USE_SOSYMLINKS_1="#" | |
42394 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
42395 | COND_USE_SOSYMLINKS_1="" | |
42396 | fi | |
42397 | ||
42398 | COND_USE_SOVERLINUX_1="#" | |
42399 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
42400 | COND_USE_SOVERLINUX_1="" | |
42401 | fi | |
42402 | ||
42403 | COND_USE_SOVERSION_0="#" | |
42404 | if test "x$USE_SOVERSION" = "x0" ; then | |
42405 | COND_USE_SOVERSION_0="" | |
42406 | fi | |
42407 | ||
42408 | COND_USE_SOVERSOLARIS_1="#" | |
42409 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
42410 | COND_USE_SOVERSOLARIS_1="" | |
42411 | fi | |
42412 | ||
a13a7f89 RL |
42413 | COND_USE_XRC_1="#" |
42414 | if test "x$USE_XRC" = "x1" ; then | |
42415 | COND_USE_XRC_1="" | |
42416 | fi | |
42417 | ||
a848cd7e SC |
42418 | COND_WITH_PLUGIN_SDL_1="#" |
42419 | if test "x$WITH_PLUGIN_SDL" = "x1" ; then | |
42420 | COND_WITH_PLUGIN_SDL_1="" | |
42421 | fi | |
42422 | ||
1e6eb025 VZ |
42423 | COND_WXUNIV_0="#" |
42424 | if test "x$WXUNIV" = "x0" ; then | |
42425 | COND_WXUNIV_0="" | |
42426 | fi | |
42427 | ||
a848cd7e SC |
42428 | COND_WXUNIV_1="#" |
42429 | if test "x$WXUNIV" = "x1" ; then | |
42430 | COND_WXUNIV_1="" | |
42431 | fi | |
42432 | ||
42433 | COND_WXUSE_EXPAT_BUILTIN="#" | |
42434 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
42435 | COND_WXUSE_EXPAT_BUILTIN="" | |
42436 | fi | |
42437 | ||
42438 | COND_WXUSE_LIBJPEG_BUILTIN="#" | |
42439 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
42440 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
42441 | fi | |
42442 | ||
42443 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
42444 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
42445 | COND_WXUSE_LIBPNG_BUILTIN="" | |
42446 | fi | |
42447 | ||
42448 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
42449 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
42450 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
42451 | fi | |
42452 | ||
42453 | COND_WXUSE_ODBC_BUILTIN="#" | |
42454 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
42455 | COND_WXUSE_ODBC_BUILTIN="" | |
42456 | fi | |
42457 | ||
42458 | COND_WXUSE_REGEX_BUILTIN="#" | |
42459 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
42460 | COND_WXUSE_REGEX_BUILTIN="" | |
42461 | fi | |
42462 | ||
42463 | COND_WXUSE_ZLIB_BUILTIN="#" | |
42464 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
42465 | COND_WXUSE_ZLIB_BUILTIN="" | |
42466 | fi | |
42467 | ||
42468 | ||
42469 | ||
2057db16 VS |
42470 | if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then |
42471 | { { 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 | |
42472 | 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;} | |
42473 | { (exit 1); exit 1; }; } | |
42474 | fi | |
42475 | ||
a848cd7e | 42476 | |
ceec2216 RL |
42477 | if test "$wxUSE_SHARED" = "yes"; then |
42478 | ||
42479 | sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'` | |
42480 | EXE_LINKER=`eval echo "$sanitised_bakefile_mess"` | |
42481 | ||
5b674b9d DE |
42482 | case "${host}" in |
42483 | *-pc-os2_emx | *-pc-os2-emx ) | |
42484 | SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
42485 | SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
42486 | cp -p ${srcdir}/src/os2/dllnames.sh . | |
42487 | cp -p ${srcdir}/src/os2/dllar.sh . | |
42488 | ;; | |
42489 | esac | |
ceec2216 RL |
42490 | else |
42491 | ||
42492 | EXE_LINKER="$CXX -o" | |
42493 | ||
42494 | fi | |
a848cd7e | 42495 | |
74b84332 | 42496 | GCC_PRAGMA_FLAGS="" |
c08ebc62 DE |
42497 | PCH_FLAGS="" |
42498 | if test $GCC_PCH = 1 ; then | |
42499 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" | |
42500 | PCH_FLAGS="-DWX_PRECOMP" | |
42501 | else | |
a848cd7e SC |
42502 | case "${host}" in |
42503 | powerpc-*-darwin* ) | |
74b84332 | 42504 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" |
a848cd7e | 42505 | ;; |
bea8e651 | 42506 | *-*-mingw32* ) |
1f344abf VS |
42507 | if test "$wxUSE_STL" = "yes" -o \ |
42508 | "$wxUSE_NO_EXCEPTIONS" != "yes" -o \ | |
42509 | "$wxUSE_NO_RTTI" != "yes"; then | |
42510 | echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5 | |
42511 | echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6 | |
bea8e651 MB |
42512 | cat >conftest.$ac_ext <<_ACEOF |
42513 | /* confdefs.h. */ | |
42514 | _ACEOF | |
42515 | cat confdefs.h >>conftest.$ac_ext | |
42516 | cat >>conftest.$ac_ext <<_ACEOF | |
42517 | /* end confdefs.h. */ | |
42518 | ||
3314e67b RR |
42519 | int |
42520 | main () | |
42521 | { | |
42522 | #if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)) | |
42523 | #error "Not GCC 3.2 or greater" | |
42524 | #endif | |
42525 | ||
42526 | ; | |
42527 | return 0; | |
42528 | } | |
42529 | _ACEOF | |
42530 | rm -f conftest.$ac_objext | |
42531 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
42532 | (eval $ac_compile) 2>conftest.er1 | |
42533 | ac_status=$? | |
42534 | grep -v '^ *+' conftest.er1 >conftest.err | |
42535 | rm -f conftest.er1 | |
42536 | cat conftest.err >&5 | |
42537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42538 | (exit $ac_status); } && | |
89be85c2 VS |
42539 | { ac_try='test -z "$ac_c_werror_flag" |
42540 | || test ! -s conftest.err' | |
3314e67b RR |
42541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42542 | (eval $ac_try) 2>&5 | |
42543 | ac_status=$? | |
42544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42545 | (exit $ac_status); }; } && | |
42546 | { ac_try='test -s conftest.$ac_objext' | |
42547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
42548 | (eval $ac_try) 2>&5 | |
42549 | ac_status=$? | |
42550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42551 | (exit $ac_status); }; }; then | |
42552 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" | |
42553 | echo "$as_me:$LINENO: result: yes" >&5 | |
42554 | echo "${ECHO_T}yes" >&6 | |
42555 | else | |
42556 | echo "$as_me: failed program was:" >&5 | |
42557 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42558 | ||
42559 | echo "$as_me:$LINENO: result: no" >&5 | |
42560 | echo "${ECHO_T}no" >&6 | |
42561 | fi | |
42562 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
42563 | fi | |
42564 | ;; | |
42565 | *-pc-os2_emx | *-pc-os2-emx ) | |
42566 | if test "$wxUSE_STL" = "yes"; then | |
42567 | echo "$as_me:$LINENO: checking if this gcc version needs -DNO_GCC_PRAGMA" >&5 | |
42568 | echo $ECHO_N "checking if this gcc version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6 | |
42569 | cat >conftest.$ac_ext <<_ACEOF | |
42570 | /* confdefs.h. */ | |
42571 | _ACEOF | |
42572 | cat confdefs.h >>conftest.$ac_ext | |
42573 | cat >>conftest.$ac_ext <<_ACEOF | |
42574 | /* end confdefs.h. */ | |
42575 | ||
bea8e651 MB |
42576 | int |
42577 | main () | |
42578 | { | |
1f344abf | 42579 | #if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)) |
bea8e651 MB |
42580 | #error "Not GCC 3.2 or greater" |
42581 | #endif | |
42582 | ||
42583 | ; | |
42584 | return 0; | |
42585 | } | |
42586 | _ACEOF | |
42587 | rm -f conftest.$ac_objext | |
42588 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 42589 | (eval $ac_compile) 2>conftest.er1 |
bea8e651 | 42590 | ac_status=$? |
ac1cb8d3 VS |
42591 | grep -v '^ *+' conftest.er1 >conftest.err |
42592 | rm -f conftest.er1 | |
42593 | cat conftest.err >&5 | |
bea8e651 MB |
42594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42595 | (exit $ac_status); } && | |
89be85c2 VS |
42596 | { ac_try='test -z "$ac_c_werror_flag" |
42597 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
42598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42599 | (eval $ac_try) 2>&5 | |
42600 | ac_status=$? | |
42601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42602 | (exit $ac_status); }; } && | |
42603 | { ac_try='test -s conftest.$ac_objext' | |
bea8e651 MB |
42604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42605 | (eval $ac_try) 2>&5 | |
42606 | ac_status=$? | |
42607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42608 | (exit $ac_status); }; }; then | |
74b84332 | 42609 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" |
bea8e651 MB |
42610 | echo "$as_me:$LINENO: result: yes" >&5 |
42611 | echo "${ECHO_T}yes" >&6 | |
42612 | else | |
42613 | echo "$as_me: failed program was:" >&5 | |
42614 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42615 | ||
42616 | echo "$as_me:$LINENO: result: no" >&5 | |
42617 | echo "${ECHO_T}no" >&6 | |
42618 | fi | |
ac1cb8d3 | 42619 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bea8e651 MB |
42620 | fi |
42621 | ;; | |
a848cd7e SC |
42622 | esac |
42623 | fi | |
d2083416 | 42624 | CPPFLAGS="$PCH_FLAGS $GCC_PRAGMA_FLAGS $CPPFLAGS" |
a848cd7e SC |
42625 | |
42626 | ||
42627 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
42628 | ||
42629 | ||
42630 | ||
42631 | ||
42632 | ||
42633 | ||
42634 | ||
42635 | ||
42636 | ||
42637 | ||
42638 | ||
42639 | ||
42640 | ||
42641 | ||
42642 | ||
42643 | ||
42644 | ||
42645 | ||
42646 | ||
42647 | ||
42648 | ||
42649 | ||
42650 | ||
42651 | ||
42652 | ||
42653 | ||
42654 | ||
42655 | ||
42656 | ||
42657 | ||
42658 | ||
42659 | ||
42660 | ||
42661 | ||
42662 | ||
42663 | ||
42664 | ||
42665 | ||
42666 | ||
42667 | ||
42668 | ||
42669 | ||
a848cd7e SC |
42670 | |
42671 | ||
42672 | ||
42673 | ||
42674 | ||
42675 | ||
42676 | ||
42677 | ||
42678 | ||
42679 | ||
42680 | ||
42681 | ||
42682 | ||
42683 | ||
42684 | ||
42685 | ||
42686 | ||
42687 | ||
74b84332 | 42688 | |
a848cd7e SC |
42689 | |
42690 | ||
42691 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
42692 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 42693 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
42694 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
42695 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42696 | else | |
42697 | cat >conftest.make <<\_ACEOF | |
42698 | all: | |
42699 | @echo 'ac_maketemp="$(MAKE)"' | |
42700 | _ACEOF | |
42701 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
42702 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
42703 | if test -n "$ac_maketemp"; then | |
42704 | eval ac_cv_prog_make_${ac_make}_set=yes | |
42705 | else | |
42706 | eval ac_cv_prog_make_${ac_make}_set=no | |
42707 | fi | |
42708 | rm -f conftest.make | |
42709 | fi | |
42710 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
42711 | echo "$as_me:$LINENO: result: yes" >&5 | |
42712 | echo "${ECHO_T}yes" >&6 | |
42713 | SET_MAKE= | |
42714 | else | |
42715 | echo "$as_me:$LINENO: result: no" >&5 | |
42716 | echo "${ECHO_T}no" >&6 | |
42717 | SET_MAKE="MAKE=${MAKE-make}" | |
42718 | fi | |
42719 | ||
42720 | ||
a848cd7e | 42721 | |
ceec2216 RL |
42722 | ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" |
42723 | ||
a848cd7e | 42724 | |
ceec2216 | 42725 | ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" |
a848cd7e | 42726 | |
a848cd7e | 42727 | |
ceec2216 | 42728 | ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" |
a848cd7e | 42729 | |
ceec2216 RL |
42730 | |
42731 | ac_config_files="$ac_config_files version-script Makefile" | |
42732 | ||
42733 | ||
42734 | ac_config_commands="$ac_config_commands wx-config | |
42735 | " | |
a848cd7e SC |
42736 | |
42737 | ||
9103d280 RL |
42738 | |
42739 | ||
a848cd7e SC |
42740 | if test "$wxUSE_GUI" = "yes"; then |
42741 | SUBDIRS="samples demos utils contrib" | |
42742 | else SUBDIRS="samples utils" | |
42743 | fi | |
42744 | ||
42745 | ||
42746 | ||
42747 | # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given. | |
42748 | if test "${with_cppunit_prefix+set}" = set; then | |
42749 | withval="$with_cppunit_prefix" | |
42750 | cppunit_config_prefix="$withval" | |
42751 | else | |
42752 | cppunit_config_prefix="" | |
42753 | fi; | |
42754 | ||
42755 | # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given. | |
42756 | if test "${with_cppunit_exec_prefix+set}" = set; then | |
42757 | withval="$with_cppunit_exec_prefix" | |
42758 | cppunit_config_exec_prefix="$withval" | |
42759 | else | |
42760 | cppunit_config_exec_prefix="" | |
42761 | fi; | |
42762 | ||
42763 | if test x$cppunit_config_exec_prefix != x ; then | |
42764 | cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix" | |
42765 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
42766 | CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config | |
42767 | fi | |
42768 | fi | |
42769 | if test x$cppunit_config_prefix != x ; then | |
42770 | cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix" | |
42771 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
42772 | CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config | |
42773 | fi | |
42774 | fi | |
42775 | ||
42776 | # Extract the first word of "cppunit-config", so it can be a program name with args. | |
42777 | set dummy cppunit-config; ac_word=$2 | |
42778 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
42779 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
42780 | if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then | |
42781 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42782 | else | |
42783 | case $CPPUNIT_CONFIG in | |
42784 | [\\/]* | ?:[\\/]*) | |
42785 | ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path. | |
42786 | ;; | |
42787 | *) | |
42788 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
42789 | for as_dir in $PATH | |
42790 | do | |
42791 | IFS=$as_save_IFS | |
42792 | test -z "$as_dir" && as_dir=. | |
42793 | for ac_exec_ext in '' $ac_executable_extensions; do | |
42794 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
42795 | ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
42796 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
42797 | break 2 | |
42798 | fi | |
42799 | done | |
42800 | done | |
42801 | ||
42802 | test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no" | |
42803 | ;; | |
42804 | esac | |
42805 | fi | |
42806 | CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG | |
42807 | ||
42808 | if test -n "$CPPUNIT_CONFIG"; then | |
42809 | echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5 | |
42810 | echo "${ECHO_T}$CPPUNIT_CONFIG" >&6 | |
42811 | else | |
42812 | echo "$as_me:$LINENO: result: no" >&5 | |
42813 | echo "${ECHO_T}no" >&6 | |
42814 | fi | |
42815 | ||
42816 | cppunit_version_min=1.8.0 | |
42817 | ||
42818 | echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5 | |
42819 | echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6 | |
42820 | no_cppunit="" | |
42821 | if test "$CPPUNIT_CONFIG" = "no" ; then | |
42822 | no_cppunit=yes | |
42823 | else | |
42824 | CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags` | |
42825 | CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs` | |
42826 | cppunit_version=`$CPPUNIT_CONFIG --version` | |
42827 | ||
42828 | cppunit_major_version=`echo $cppunit_version | \ | |
42829 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
42830 | cppunit_minor_version=`echo $cppunit_version | \ | |
42831 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
42832 | cppunit_micro_version=`echo $cppunit_version | \ | |
42833 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
42834 | ||
42835 | cppunit_major_min=`echo $cppunit_version_min | \ | |
42836 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
42837 | cppunit_minor_min=`echo $cppunit_version_min | \ | |
42838 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
42839 | cppunit_micro_min=`echo $cppunit_version_min | \ | |
42840 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
42841 | ||
42842 | cppunit_version_proper=`expr \ | |
42843 | $cppunit_major_version \> $cppunit_major_min \| \ | |
42844 | $cppunit_major_version \= $cppunit_major_min \& \ | |
42845 | $cppunit_minor_version \> $cppunit_minor_min \| \ | |
42846 | $cppunit_major_version \= $cppunit_major_min \& \ | |
42847 | $cppunit_minor_version \= $cppunit_minor_min \& \ | |
42848 | $cppunit_micro_version \>= $cppunit_micro_min ` | |
42849 | ||
42850 | if test "$cppunit_version_proper" = "1" ; then | |
42851 | echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5 | |
42852 | echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6 | |
42853 | else | |
42854 | echo "$as_me:$LINENO: result: no" >&5 | |
42855 | echo "${ECHO_T}no" >&6 | |
42856 | no_cppunit=yes | |
42857 | fi | |
42858 | fi | |
42859 | ||
42860 | if test "x$no_cppunit" = x ; then | |
c2218763 | 42861 | SUBDIRS="$SUBDIRS tests" |
a848cd7e SC |
42862 | else |
42863 | CPPUNIT_CFLAGS="" | |
42864 | CPPUNIT_LIBS="" | |
c2218763 | 42865 | : |
a848cd7e SC |
42866 | fi |
42867 | ||
42868 | ||
42869 | ||
42870 | ||
42871 | ||
42872 | for subdir in `echo $SUBDIRS`; do | |
42873 | if test -d ${srcdir}/${subdir} ; then | |
42874 | if test "$wxUSE_GUI" = "yes"; then | |
42875 | if test ${subdir} = "samples"; then | |
42876 | makefiles="samples/Makefile.in $makefiles" | |
42877 | for sample in `echo $SAMPLES_SUBDIRS`; do | |
42878 | if test -d $srcdir/samples/$sample; then | |
42879 | makefiles="samples/$sample/Makefile.in $makefiles" | |
42880 | fi | |
42881 | done | |
42882 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` | |
42883 | fi | |
42884 | else if test ${subdir} = "samples"; then | |
42885 | makefiles="samples/Makefile.in samples/console/Makefile.in" | |
42886 | elif test ${subdir} = "utils"; then | |
6537ccf8 VS |
42887 | makefiles="" |
42888 | for util in HelpGen tex2rtf ; do | |
42889 | if test -d $srcdir/utils/$util ; then | |
42890 | makefiles="utils/$util/Makefile.in \ | |
42891 | utils/$util/src/Makefile.in \ | |
42892 | $makefiles" | |
42893 | fi | |
42894 | done | |
a848cd7e SC |
42895 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` |
42896 | fi | |
42897 | fi | |
42898 | ||
42899 | for mkin in $makefiles ; do | |
42900 | mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'` | |
42901 | ac_config_files="$ac_config_files $mk" | |
42902 | ||
42903 | done | |
42904 | fi | |
42905 | done | |
42906 | ||
42907 | ||
42908 | cat >confcache <<\_ACEOF | |
42909 | # This file is a shell script that caches the results of configure | |
42910 | # tests run on this system so they can be shared between configure | |
42911 | # scripts and configure runs, see configure's option --config-cache. | |
42912 | # It is not useful on other systems. If it contains results you don't | |
42913 | # want to keep, you may remove or edit it. | |
42914 | # | |
42915 | # config.status only pays attention to the cache file if you give it | |
42916 | # the --recheck option to rerun configure. | |
42917 | # | |
42918 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
42919 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
42920 | # following values. | |
42921 | ||
42922 | _ACEOF | |
42923 | ||
42924 | # The following way of writing the cache mishandles newlines in values, | |
42925 | # but we know of no workaround that is simple, portable, and efficient. | |
42926 | # So, don't put newlines in cache variables' values. | |
42927 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
42928 | # and sets the high bit in the cache file unless we assign to the vars. | |
42929 | { | |
42930 | (set) 2>&1 | | |
42931 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
42932 | *ac_space=\ *) | |
42933 | # `set' does not quote correctly, so add quotes (double-quote | |
42934 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
42935 | sed -n \ | |
ac1cb8d3 VS |
42936 | "s/'/'\\\\''/g; |
42937 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
42938 | ;; |
42939 | *) | |
42940 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
42941 | sed -n \ | |
ac1cb8d3 | 42942 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
42943 | ;; |
42944 | esac; | |
42945 | } | | |
42946 | sed ' | |
42947 | t clear | |
42948 | : clear | |
42949 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
42950 | t end | |
42951 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
42952 | : end' >>confcache | |
42953 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
42954 | if test -w $cache_file; then | |
42955 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
42956 | cat confcache >$cache_file | |
42957 | else | |
42958 | echo "not updating unwritable cache $cache_file" | |
42959 | fi | |
42960 | fi | |
42961 | rm -f confcache | |
42962 | ||
42963 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
42964 | # Let make expand exec_prefix. | |
42965 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
42966 | ||
42967 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
42968 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
42969 | # trailing colons and then remove the whole line if VPATH becomes empty | |
42970 | # (actually we leave an empty line to preserve line numbers). | |
42971 | if test "x$srcdir" = x.; then | |
ac1cb8d3 | 42972 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
a848cd7e SC |
42973 | s/:*\$(srcdir):*/:/; |
42974 | s/:*\${srcdir}:*/:/; | |
42975 | s/:*@srcdir@:*/:/; | |
ac1cb8d3 | 42976 | s/^\([^=]*=[ ]*\):*/\1/; |
a848cd7e | 42977 | s/:*$//; |
ac1cb8d3 | 42978 | s/^[^=]*=[ ]*$//; |
a848cd7e SC |
42979 | }' |
42980 | fi | |
42981 | ||
42982 | DEFS=-DHAVE_CONFIG_H | |
42983 | ||
42984 | ac_libobjs= | |
42985 | ac_ltlibobjs= | |
42986 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
42987 | # 1. Remove the extension, and $U if already installed. | |
42988 | ac_i=`echo "$ac_i" | | |
ac1cb8d3 | 42989 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
a848cd7e SC |
42990 | # 2. Add them. |
42991 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
42992 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
42993 | done | |
42994 | LIBOBJS=$ac_libobjs | |
42995 | ||
42996 | LTLIBOBJS=$ac_ltlibobjs | |
42997 | ||
42998 | ||
42999 | ||
43000 | : ${CONFIG_STATUS=./config.status} | |
43001 | ac_clean_files_save=$ac_clean_files | |
43002 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
43003 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
43004 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
43005 | cat >$CONFIG_STATUS <<_ACEOF | |
43006 | #! $SHELL | |
43007 | # Generated by $as_me. | |
43008 | # Run this file to recreate the current configuration. | |
43009 | # Compiler output produced by configure, useful for debugging | |
43010 | # configure, is in config.log if it exists. | |
43011 | ||
43012 | debug=false | |
43013 | ac_cs_recheck=false | |
43014 | ac_cs_silent=false | |
43015 | SHELL=\${CONFIG_SHELL-$SHELL} | |
43016 | _ACEOF | |
43017 | ||
43018 | cat >>$CONFIG_STATUS <<\_ACEOF | |
43019 | ## --------------------- ## | |
43020 | ## M4sh Initialization. ## | |
43021 | ## --------------------- ## | |
43022 | ||
43023 | # Be Bourne compatible | |
43024 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
43025 | emulate sh | |
43026 | NULLCMD=: | |
43027 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
43028 | # is contrary to our usage. Disable this feature. | |
43029 | alias -g '${1+"$@"}'='"$@"' | |
43030 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
43031 | set -o posix | |
43032 | fi | |
ac1cb8d3 | 43033 | DUALCASE=1; export DUALCASE # for MKS sh |
a848cd7e SC |
43034 | |
43035 | # Support unset when possible. | |
ac1cb8d3 | 43036 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
a848cd7e SC |
43037 | as_unset=unset |
43038 | else | |
43039 | as_unset=false | |
43040 | fi | |
43041 | ||
43042 | ||
43043 | # Work around bugs in pre-3.0 UWIN ksh. | |
43044 | $as_unset ENV MAIL MAILPATH | |
43045 | PS1='$ ' | |
43046 | PS2='> ' | |
43047 | PS4='+ ' | |
43048 | ||
43049 | # NLS nuisances. | |
43050 | for as_var in \ | |
43051 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
43052 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
43053 | LC_TELEPHONE LC_TIME | |
43054 | do | |
ac1cb8d3 | 43055 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
a848cd7e SC |
43056 | eval $as_var=C; export $as_var |
43057 | else | |
43058 | $as_unset $as_var | |
43059 | fi | |
43060 | done | |
43061 | ||
43062 | # Required to use basename. | |
43063 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
43064 | as_expr=expr | |
43065 | else | |
43066 | as_expr=false | |
43067 | fi | |
43068 | ||
43069 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
43070 | as_basename=basename | |
43071 | else | |
43072 | as_basename=false | |
43073 | fi | |
43074 | ||
43075 | ||
43076 | # Name of the executable. | |
43077 | as_me=`$as_basename "$0" || | |
43078 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
43079 | X"$0" : 'X\(//\)$' \| \ | |
43080 | X"$0" : 'X\(/\)$' \| \ | |
43081 | . : '\(.\)' 2>/dev/null || | |
43082 | echo X/"$0" | | |
43083 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
43084 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
43085 | /^X\/\(\/\).*/{ s//\1/; q; } | |
43086 | s/.*/./; q'` | |
43087 | ||
43088 | ||
43089 | # PATH needs CR, and LINENO needs CR and PATH. | |
43090 | # Avoid depending upon Character Ranges. | |
43091 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
43092 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
43093 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
43094 | as_cr_digits='0123456789' | |
43095 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
43096 | ||
43097 | # The user is always right. | |
43098 | if test "${PATH_SEPARATOR+set}" != set; then | |
43099 | echo "#! /bin/sh" >conf$$.sh | |
43100 | echo "exit 0" >>conf$$.sh | |
43101 | chmod +x conf$$.sh | |
43102 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
43103 | PATH_SEPARATOR=';' | |
43104 | else | |
43105 | PATH_SEPARATOR=: | |
43106 | fi | |
43107 | rm -f conf$$.sh | |
43108 | fi | |
43109 | ||
43110 | ||
43111 | as_lineno_1=$LINENO | |
43112 | as_lineno_2=$LINENO | |
43113 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
43114 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
43115 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
43116 | # Find who we are. Look in the path if we contain no path at all | |
43117 | # relative or not. | |
43118 | case $0 in | |
43119 | *[\\/]* ) as_myself=$0 ;; | |
43120 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
43121 | for as_dir in $PATH | |
43122 | do | |
43123 | IFS=$as_save_IFS | |
43124 | test -z "$as_dir" && as_dir=. | |
43125 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
43126 | done | |
43127 | ||
43128 | ;; | |
43129 | esac | |
43130 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
43131 | # in which case we are not to be found in the path. | |
43132 | if test "x$as_myself" = x; then | |
43133 | as_myself=$0 | |
43134 | fi | |
43135 | if test ! -f "$as_myself"; then | |
43136 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
43137 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
43138 | { (exit 1); exit 1; }; } | |
43139 | fi | |
43140 | case $CONFIG_SHELL in | |
43141 | '') | |
43142 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
43143 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
43144 | do | |
43145 | IFS=$as_save_IFS | |
43146 | test -z "$as_dir" && as_dir=. | |
43147 | for as_base in sh bash ksh sh5; do | |
43148 | case $as_dir in | |
43149 | /*) | |
43150 | if ("$as_dir/$as_base" -c ' | |
43151 | as_lineno_1=$LINENO | |
43152 | as_lineno_2=$LINENO | |
43153 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
43154 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
43155 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
43156 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
43157 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
43158 | CONFIG_SHELL=$as_dir/$as_base | |
43159 | export CONFIG_SHELL | |
43160 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
43161 | fi;; | |
43162 | esac | |
43163 | done | |
43164 | done | |
43165 | ;; | |
43166 | esac | |
43167 | ||
43168 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
43169 | # uniformly replaced by the line number. The first 'sed' inserts a | |
43170 | # line-number line before each line; the second 'sed' does the real | |
43171 | # work. The second script uses 'N' to pair each line-number line | |
43172 | # with the numbered line, and appends trailing '-' during | |
43173 | # substitution so that $LINENO is not a special case at line end. | |
43174 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
43175 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
43176 | sed '=' <$as_myself | | |
43177 | sed ' | |
43178 | N | |
43179 | s,$,-, | |
43180 | : loop | |
43181 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
43182 | t loop | |
43183 | s,-$,, | |
43184 | s,^['$as_cr_digits']*\n,, | |
43185 | ' >$as_me.lineno && | |
43186 | chmod +x $as_me.lineno || | |
43187 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
43188 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
43189 | { (exit 1); exit 1; }; } | |
43190 | ||
43191 | # Don't try to exec as it changes $[0], causing all sort of problems | |
43192 | # (the dirname of $[0] is not the place where we might find the | |
43193 | # original and so on. Autoconf is especially sensible to this). | |
43194 | . ./$as_me.lineno | |
43195 | # Exit status is that of the last command. | |
43196 | exit | |
43197 | } | |
43198 | ||
43199 | ||
43200 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
43201 | *c*,-n*) ECHO_N= ECHO_C=' | |
43202 | ' ECHO_T=' ' ;; | |
43203 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
43204 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
43205 | esac | |
43206 | ||
43207 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
43208 | as_expr=expr | |
43209 | else | |
43210 | as_expr=false | |
43211 | fi | |
43212 | ||
43213 | rm -f conf$$ conf$$.exe conf$$.file | |
43214 | echo >conf$$.file | |
43215 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
43216 | # We could just check for DJGPP; but this test a) works b) is more generic | |
43217 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
43218 | if test -f conf$$.exe; then | |
43219 | # Don't use ln at all; we don't have any links | |
43220 | as_ln_s='cp -p' | |
43221 | else | |
43222 | as_ln_s='ln -s' | |
43223 | fi | |
43224 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
43225 | as_ln_s=ln | |
43226 | else | |
43227 | as_ln_s='cp -p' | |
43228 | fi | |
43229 | rm -f conf$$ conf$$.exe conf$$.file | |
43230 | ||
43231 | if mkdir -p . 2>/dev/null; then | |
43232 | as_mkdir_p=: | |
43233 | else | |
ac1cb8d3 | 43234 | test -d ./-p && rmdir ./-p |
a848cd7e SC |
43235 | as_mkdir_p=false |
43236 | fi | |
43237 | ||
43238 | as_executable_p="test -f" | |
43239 | ||
43240 | # Sed expression to map a string onto a valid CPP name. | |
ac1cb8d3 | 43241 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
43242 | |
43243 | # Sed expression to map a string onto a valid variable name. | |
ac1cb8d3 | 43244 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
43245 | |
43246 | ||
43247 | # IFS | |
43248 | # We need space, tab and new line, in precisely that order. | |
43249 | as_nl=' | |
43250 | ' | |
43251 | IFS=" $as_nl" | |
43252 | ||
43253 | # CDPATH. | |
43254 | $as_unset CDPATH | |
43255 | ||
43256 | exec 6>&1 | |
43257 | ||
43258 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
43259 | # report actual input values of CONFIG_FILES etc. instead of their | |
43260 | # values after options handling. Logging --version etc. is OK. | |
43261 | exec 5>>config.log | |
43262 | { | |
43263 | echo | |
43264 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
43265 | ## Running $as_me. ## | |
43266 | _ASBOX | |
43267 | } >&5 | |
43268 | cat >&5 <<_CSEOF | |
43269 | ||
81f90336 | 43270 | This file was extended by wxWidgets $as_me 2.5.4, which was |
ac1cb8d3 | 43271 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
43272 | |
43273 | CONFIG_FILES = $CONFIG_FILES | |
43274 | CONFIG_HEADERS = $CONFIG_HEADERS | |
43275 | CONFIG_LINKS = $CONFIG_LINKS | |
43276 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
43277 | $ $0 $@ | |
43278 | ||
43279 | _CSEOF | |
43280 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
43281 | echo >&5 | |
43282 | _ACEOF | |
43283 | ||
43284 | # Files that config.status was made for. | |
43285 | if test -n "$ac_config_files"; then | |
43286 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
43287 | fi | |
43288 | ||
43289 | if test -n "$ac_config_headers"; then | |
43290 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
43291 | fi | |
43292 | ||
43293 | if test -n "$ac_config_links"; then | |
43294 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
43295 | fi | |
43296 | ||
43297 | if test -n "$ac_config_commands"; then | |
43298 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
43299 | fi | |
43300 | ||
43301 | cat >>$CONFIG_STATUS <<\_ACEOF | |
43302 | ||
43303 | ac_cs_usage="\ | |
43304 | \`$as_me' instantiates files from templates according to the | |
43305 | current configuration. | |
43306 | ||
43307 | Usage: $0 [OPTIONS] [FILE]... | |
43308 | ||
43309 | -h, --help print this help, then exit | |
43310 | -V, --version print version number, then exit | |
43311 | -q, --quiet do not print progress messages | |
43312 | -d, --debug don't remove temporary files | |
43313 | --recheck update $as_me by reconfiguring in the same conditions | |
43314 | --file=FILE[:TEMPLATE] | |
ac1cb8d3 | 43315 | instantiate the configuration file FILE |
a848cd7e | 43316 | --header=FILE[:TEMPLATE] |
ac1cb8d3 | 43317 | instantiate the configuration header FILE |
a848cd7e SC |
43318 | |
43319 | Configuration files: | |
43320 | $config_files | |
43321 | ||
43322 | Configuration headers: | |
43323 | $config_headers | |
43324 | ||
43325 | Configuration commands: | |
43326 | $config_commands | |
43327 | ||
43328 | Report bugs to <bug-autoconf@gnu.org>." | |
43329 | _ACEOF | |
43330 | ||
43331 | cat >>$CONFIG_STATUS <<_ACEOF | |
43332 | ac_cs_version="\\ | |
81f90336 | 43333 | wxWidgets config.status 2.5.4 |
ac1cb8d3 | 43334 | configured by $0, generated by GNU Autoconf 2.59, |
a848cd7e SC |
43335 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
43336 | ||
ac1cb8d3 | 43337 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
43338 | This config.status script is free software; the Free Software Foundation |
43339 | gives unlimited permission to copy, distribute and modify it." | |
43340 | srcdir=$srcdir | |
43341 | INSTALL="$INSTALL" | |
43342 | _ACEOF | |
43343 | ||
43344 | cat >>$CONFIG_STATUS <<\_ACEOF | |
43345 | # If no file are specified by the user, then we need to provide default | |
43346 | # value. By we need to know if files were specified by the user. | |
43347 | ac_need_defaults=: | |
43348 | while test $# != 0 | |
43349 | do | |
43350 | case $1 in | |
43351 | --*=*) | |
43352 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
43353 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
43354 | ac_shift=: | |
43355 | ;; | |
43356 | -*) | |
43357 | ac_option=$1 | |
43358 | ac_optarg=$2 | |
43359 | ac_shift=shift | |
43360 | ;; | |
43361 | *) # This is not an option, so the user has probably given explicit | |
43362 | # arguments. | |
43363 | ac_option=$1 | |
43364 | ac_need_defaults=false;; | |
43365 | esac | |
43366 | ||
43367 | case $ac_option in | |
43368 | # Handling of the options. | |
43369 | _ACEOF | |
43370 | cat >>$CONFIG_STATUS <<\_ACEOF | |
43371 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
43372 | ac_cs_recheck=: ;; | |
43373 | --version | --vers* | -V ) | |
43374 | echo "$ac_cs_version"; exit 0 ;; | |
43375 | --he | --h) | |
43376 | # Conflict between --help and --header | |
43377 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
43378 | Try \`$0 --help' for more information." >&5 | |
43379 | echo "$as_me: error: ambiguous option: $1 | |
43380 | Try \`$0 --help' for more information." >&2;} | |
43381 | { (exit 1); exit 1; }; };; | |
43382 | --help | --hel | -h ) | |
43383 | echo "$ac_cs_usage"; exit 0 ;; | |
43384 | --debug | --d* | -d ) | |
43385 | debug=: ;; | |
43386 | --file | --fil | --fi | --f ) | |
43387 | $ac_shift | |
43388 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
43389 | ac_need_defaults=false;; | |
43390 | --header | --heade | --head | --hea ) | |
43391 | $ac_shift | |
43392 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
43393 | ac_need_defaults=false;; | |
43394 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
43395 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
43396 | ac_cs_silent=: ;; | |
43397 | ||
43398 | # This is an error. | |
43399 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
43400 | Try \`$0 --help' for more information." >&5 | |
43401 | echo "$as_me: error: unrecognized option: $1 | |
43402 | Try \`$0 --help' for more information." >&2;} | |
43403 | { (exit 1); exit 1; }; } ;; | |
43404 | ||
43405 | *) ac_config_targets="$ac_config_targets $1" ;; | |
43406 | ||
43407 | esac | |
43408 | shift | |
43409 | done | |
43410 | ||
43411 | ac_configure_extra_args= | |
43412 | ||
43413 | if $ac_cs_silent; then | |
43414 | exec 6>/dev/null | |
43415 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
43416 | fi | |
43417 | ||
43418 | _ACEOF | |
43419 | cat >>$CONFIG_STATUS <<_ACEOF | |
43420 | if \$ac_cs_recheck; then | |
43421 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
43422 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
43423 | fi | |
43424 | ||
43425 | _ACEOF | |
43426 | ||
43427 | cat >>$CONFIG_STATUS <<_ACEOF | |
43428 | # | |
43429 | # INIT-COMMANDS section. | |
43430 | # | |
43431 | ||
ceec2216 RL |
43432 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" |
43433 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
43434 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
43435 | LN_S="${LN_S}" | |
a848cd7e SC |
43436 | |
43437 | ||
43438 | _ACEOF | |
43439 | ||
43440 | ||
43441 | ||
43442 | cat >>$CONFIG_STATUS <<\_ACEOF | |
43443 | for ac_config_target in $ac_config_targets | |
43444 | do | |
43445 | case "$ac_config_target" in | |
43446 | # Handling of arguments. | |
ceec2216 RL |
43447 | "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;; |
43448 | "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;; | |
a848cd7e SC |
43449 | "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;; |
43450 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
43451 | "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;; | |
ceec2216 RL |
43452 | "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;; |
43453 | "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 |
43454 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
43455 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
43456 | { (exit 1); exit 1; }; };; | |
43457 | esac | |
43458 | done | |
43459 | ||
43460 | # If the user did not use the arguments to specify the items to instantiate, | |
43461 | # then the envvar interface is used. Set only those that are not. | |
43462 | # We use the long form for the default assignment because of an extremely | |
43463 | # bizarre bug on SunOS 4.1.3. | |
43464 | if $ac_need_defaults; then | |
43465 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
43466 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
43467 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
43468 | fi | |
43469 | ||
43470 | # Have a temporary directory for convenience. Make it in the build tree | |
43471 | # simply because there is no reason to put it here, and in addition, | |
43472 | # creating and moving files from /tmp can sometimes cause problems. | |
43473 | # Create a temporary directory, and hook for its removal unless debugging. | |
43474 | $debug || | |
43475 | { | |
43476 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
43477 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
43478 | } | |
43479 | ||
43480 | # Create a (secure) tmp directory for tmp files. | |
43481 | ||
43482 | { | |
43483 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
43484 | test -n "$tmp" && test -d "$tmp" | |
43485 | } || | |
43486 | { | |
43487 | tmp=./confstat$$-$RANDOM | |
43488 | (umask 077 && mkdir $tmp) | |
43489 | } || | |
43490 | { | |
43491 | echo "$me: cannot create a temporary directory in ." >&2 | |
43492 | { (exit 1); exit 1; } | |
43493 | } | |
43494 | ||
43495 | _ACEOF | |
43496 | ||
43497 | cat >>$CONFIG_STATUS <<_ACEOF | |
43498 | ||
43499 | # | |
43500 | # CONFIG_FILES section. | |
43501 | # | |
43502 | ||
43503 | # No need to generate the scripts if there are no CONFIG_FILES. | |
43504 | # This happens for instance when ./config.status config.h | |
43505 | if test -n "\$CONFIG_FILES"; then | |
43506 | # Protect against being on the right side of a sed subst in config.status. | |
43507 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
43508 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
43509 | s,@SHELL@,$SHELL,;t t | |
43510 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
43511 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
43512 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
43513 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
43514 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
43515 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
43516 | s,@exec_prefix@,$exec_prefix,;t t | |
43517 | s,@prefix@,$prefix,;t t | |
43518 | s,@program_transform_name@,$program_transform_name,;t t | |
43519 | s,@bindir@,$bindir,;t t | |
43520 | s,@sbindir@,$sbindir,;t t | |
43521 | s,@libexecdir@,$libexecdir,;t t | |
43522 | s,@datadir@,$datadir,;t t | |
43523 | s,@sysconfdir@,$sysconfdir,;t t | |
43524 | s,@sharedstatedir@,$sharedstatedir,;t t | |
43525 | s,@localstatedir@,$localstatedir,;t t | |
43526 | s,@libdir@,$libdir,;t t | |
43527 | s,@includedir@,$includedir,;t t | |
43528 | s,@oldincludedir@,$oldincludedir,;t t | |
43529 | s,@infodir@,$infodir,;t t | |
43530 | s,@mandir@,$mandir,;t t | |
43531 | s,@build_alias@,$build_alias,;t t | |
43532 | s,@host_alias@,$host_alias,;t t | |
43533 | s,@target_alias@,$target_alias,;t t | |
43534 | s,@DEFS@,$DEFS,;t t | |
43535 | s,@ECHO_C@,$ECHO_C,;t t | |
43536 | s,@ECHO_N@,$ECHO_N,;t t | |
43537 | s,@ECHO_T@,$ECHO_T,;t t | |
43538 | s,@LIBS@,$LIBS,;t t | |
43539 | s,@build@,$build,;t t | |
43540 | s,@build_cpu@,$build_cpu,;t t | |
43541 | s,@build_vendor@,$build_vendor,;t t | |
43542 | s,@build_os@,$build_os,;t t | |
43543 | s,@host@,$host,;t t | |
43544 | s,@host_cpu@,$host_cpu,;t t | |
43545 | s,@host_vendor@,$host_vendor,;t t | |
43546 | s,@host_os@,$host_os,;t t | |
43547 | s,@target@,$target,;t t | |
43548 | s,@target_cpu@,$target_cpu,;t t | |
43549 | s,@target_vendor@,$target_vendor,;t t | |
43550 | s,@target_os@,$target_os,;t t | |
43551 | s,@CC@,$CC,;t t | |
43552 | s,@CFLAGS@,$CFLAGS,;t t | |
43553 | s,@LDFLAGS@,$LDFLAGS,;t t | |
43554 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
43555 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
43556 | s,@EXEEXT@,$EXEEXT,;t t | |
43557 | s,@OBJEXT@,$OBJEXT,;t t | |
43558 | s,@CPP@,$CPP,;t t | |
43559 | s,@EGREP@,$EGREP,;t t | |
43560 | s,@CXX@,$CXX,;t t | |
43561 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
43562 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
43563 | s,@RANLIB@,$RANLIB,;t t | |
43564 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
43565 | s,@AR@,$AR,;t t | |
43566 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
43567 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
43568 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
43569 | s,@STRIP@,$STRIP,;t t | |
43570 | s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t | |
43571 | s,@LN_S@,$LN_S,;t t | |
43572 | s,@CXXCPP@,$CXXCPP,;t t | |
43573 | s,@subdirs@,$subdirs,;t t | |
43574 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t | |
43575 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
43576 | s,@GTK_LIBS@,$GTK_LIBS,;t t | |
43577 | s,@GTK_CONFIG@,$GTK_CONFIG,;t t | |
a848cd7e SC |
43578 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
43579 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t | |
43580 | s,@X_LIBS@,$X_LIBS,;t t | |
43581 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t | |
43582 | s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t | |
43583 | s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t | |
d1c38808 VZ |
43584 | s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t |
43585 | s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t | |
a848cd7e SC |
43586 | s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t |
43587 | s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t | |
43588 | s,@RESCOMP@,$RESCOMP,;t t | |
43589 | s,@DEREZ@,$DEREZ,;t t | |
43590 | s,@SETFILE@,$SETFILE,;t t | |
43591 | s,@LIBICONV@,$LIBICONV,;t t | |
43592 | s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t | |
43593 | s,@SDL_CONFIG@,$SDL_CONFIG,;t t | |
43594 | s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t | |
43595 | s,@SDL_LIBS@,$SDL_LIBS,;t t | |
d1c38808 VZ |
43596 | s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t |
43597 | s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t | |
dae87f93 RN |
43598 | s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t |
43599 | s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t | |
43600 | s,@GST_INSPECT@,$GST_INSPECT,;t t | |
a848cd7e SC |
43601 | s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t |
43602 | s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t | |
43603 | s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t | |
43604 | s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t | |
43605 | s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t | |
43606 | s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t | |
43607 | s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t | |
43608 | s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t | |
43609 | s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t | |
43610 | s,@VENDOR@,$VENDOR,;t t | |
43611 | s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t | |
ceec2216 RL |
43612 | s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t |
43613 | s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t | |
a848cd7e SC |
43614 | s,@WXUNIV@,$WXUNIV,;t t |
43615 | s,@MONOLITHIC@,$MONOLITHIC,;t t | |
43616 | s,@USE_PLUGINS@,$USE_PLUGINS,;t t | |
43617 | s,@EXTRALIBS@,$EXTRALIBS,;t t | |
43618 | s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t | |
43619 | s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t | |
43620 | s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t | |
43621 | s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t | |
43622 | s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t | |
43623 | s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t | |
43624 | s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t | |
d1c38808 | 43625 | s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t |
a848cd7e SC |
43626 | s,@UNICODE@,$UNICODE,;t t |
43627 | s,@BUILD@,$BUILD,;t t | |
43628 | s,@DEBUG_INFO@,$DEBUG_INFO,;t t | |
43629 | s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t | |
a848cd7e SC |
43630 | s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t |
43631 | s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t | |
43632 | s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t | |
43633 | s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t | |
43634 | s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t | |
43635 | s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t | |
43636 | s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t | |
43637 | s,@SET_MAKE@,$SET_MAKE,;t t | |
43638 | s,@MAKE_SET@,$MAKE_SET,;t t | |
43639 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
43640 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
43641 | s,@NM@,$NM,;t t | |
43642 | s,@ac_ct_NM@,$ac_ct_NM,;t t | |
43643 | s,@INSTALL_DIR@,$INSTALL_DIR,;t t | |
43644 | s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t | |
43645 | s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t | |
43646 | s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t | |
43647 | s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t | |
43648 | s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t | |
1e9e8aba | 43649 | s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t |
a848cd7e SC |
43650 | s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t |
43651 | s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t | |
1e9e8aba | 43652 | s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t |
a848cd7e SC |
43653 | s,@SO_SUFFIX@,$SO_SUFFIX,;t t |
43654 | s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t | |
43655 | s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t | |
43656 | s,@LIBPREFIX@,$LIBPREFIX,;t t | |
43657 | s,@LIBEXT@,$LIBEXT,;t t | |
43658 | s,@DLLPREFIX@,$DLLPREFIX,;t t | |
43659 | s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t | |
43660 | s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t | |
43661 | s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t | |
43662 | s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t | |
43663 | s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t | |
43664 | s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t | |
43665 | s,@PIC_FLAG@,$PIC_FLAG,;t t | |
43666 | s,@USE_SOVERSION@,$USE_SOVERSION,;t t | |
43667 | s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t | |
43668 | s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t | |
43669 | s,@USE_MACVERSION@,$USE_MACVERSION,;t t | |
43670 | s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t | |
43671 | s,@SONAME_FLAG@,$SONAME_FLAG,;t t | |
43672 | s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t | |
43673 | s,@GCC_PCH@,$GCC_PCH,;t t | |
43674 | s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t | |
43675 | s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t | |
43676 | s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t | |
43677 | s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t | |
43678 | s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t | |
43679 | s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t | |
43680 | s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t | |
43681 | s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t | |
43682 | s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t | |
43683 | s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t | |
43684 | s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t | |
43685 | s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t | |
43686 | s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t | |
43687 | s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t | |
43688 | s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t | |
43689 | s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t | |
43690 | s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t | |
43691 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t | |
90970d69 | 43692 | 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 |
a848cd7e | 43693 | 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 |
a848cd7e | 43694 | s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t |
ceec2216 | 43695 | s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t |
a848cd7e SC |
43696 | s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t |
43697 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t | |
90970d69 | 43698 | 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 |
a848cd7e | 43699 | 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 |
a848cd7e | 43700 | s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t |
ceec2216 | 43701 | s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t |
a848cd7e SC |
43702 | s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t |
43703 | s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t | |
43704 | s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t | |
43705 | s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t | |
43706 | s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t | |
43707 | s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t | |
43708 | s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t | |
43709 | s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t | |
a30f955f | 43710 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t |
a848cd7e SC |
43711 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t |
43712 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t | |
43713 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t | |
fc480dc1 | 43714 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t |
1e9e8aba | 43715 | 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 |
43716 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t |
43717 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t | |
a848cd7e SC |
43718 | s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t |
43719 | s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t | |
b48a2016 | 43720 | s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t |
a848cd7e SC |
43721 | s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t |
43722 | s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t | |
43723 | s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t | |
43724 | s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t | |
43725 | s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t | |
43726 | s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t | |
43727 | s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t | |
43728 | s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t | |
43729 | s,@COND_SHARED_0@,$COND_SHARED_0,;t t | |
ceec2216 RL |
43730 | s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t |
43731 | s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t | |
43732 | s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t | |
a848cd7e SC |
43733 | s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t |
43734 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
43735 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
43736 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
43737 | s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t | |
43738 | s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t | |
43739 | s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t | |
43740 | s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t | |
43741 | s,@COND_SHARED_1@,$COND_SHARED_1,;t t | |
43742 | s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t | |
a30f955f | 43743 | s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t |
a848cd7e | 43744 | s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t |
a49baeab | 43745 | s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t |
a848cd7e SC |
43746 | s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t |
43747 | s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t | |
43748 | s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t | |
43749 | s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t | |
43750 | s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t | |
43751 | s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t | |
43752 | s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t | |
43753 | s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t | |
43754 | s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t | |
43755 | s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t | |
43756 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t | |
43757 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t | |
43758 | s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t | |
43759 | s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t | |
43760 | s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t | |
43761 | s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t | |
43762 | s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t | |
43763 | s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t | |
3fd9c298 DE |
43764 | s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t |
43765 | s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t | |
43766 | s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t | |
a848cd7e SC |
43767 | s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t |
43768 | s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t | |
43769 | s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t | |
43770 | s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t | |
43771 | s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t | |
43772 | s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t | |
43773 | s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t | |
43774 | s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t | |
43775 | s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t | |
43776 | s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
43777 | s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
43778 | s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
ceec2216 | 43779 | s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t |
ffa0583f | 43780 | s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t |
a848cd7e SC |
43781 | s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t |
43782 | s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t | |
43783 | s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t | |
43784 | s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t | |
43785 | s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t | |
a13a7f89 | 43786 | s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t |
a848cd7e | 43787 | s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t |
1e6eb025 | 43788 | s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t |
a848cd7e SC |
43789 | s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t |
43790 | s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t | |
43791 | s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t | |
43792 | s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t | |
43793 | s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t | |
43794 | s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t | |
43795 | s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t | |
43796 | s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t | |
ceec2216 | 43797 | s,@SHARED@,$SHARED,;t t |
a848cd7e SC |
43798 | s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t |
43799 | s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t | |
a848cd7e SC |
43800 | s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t |
43801 | s,@USE_GUI@,$USE_GUI,;t t | |
43802 | s,@AFMINSTALL@,$AFMINSTALL,;t t | |
43803 | s,@WIN32INSTALL@,$WIN32INSTALL,;t t | |
43804 | s,@TOOLKIT@,$TOOLKIT,;t t | |
43805 | s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t | |
a848cd7e | 43806 | s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t |
ceec2216 | 43807 | s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t |
a848cd7e SC |
43808 | s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t |
43809 | s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t | |
a848cd7e | 43810 | s,@cross_compiling@,$cross_compiling,;t t |
ceec2216 RL |
43811 | s,@WIDGET_SET@,$WIDGET_SET,;t t |
43812 | s,@WX_RELEASE@,$WX_RELEASE,;t t | |
43813 | s,@WX_VERSION@,$WX_VERSION,;t t | |
43814 | s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t | |
43815 | s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t | |
43816 | s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t | |
a848cd7e | 43817 | s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t |
a848cd7e SC |
43818 | s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t |
43819 | s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t | |
43820 | s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t | |
43821 | s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t | |
74b84332 | 43822 | s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t |
a848cd7e SC |
43823 | s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t |
43824 | s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t | |
ceec2216 | 43825 | s,@EXE_LINKER@,$EXE_LINKER,;t t |
a848cd7e | 43826 | s,@GUIDIST@,$GUIDIST,;t t |
a848cd7e SC |
43827 | s,@DISTDIR@,$DISTDIR,;t t |
43828 | s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t | |
43829 | s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t | |
a848cd7e SC |
43830 | s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t |
43831 | s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t | |
43832 | s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t | |
43833 | s,@RESFLAGS@,$RESFLAGS,;t t | |
43834 | s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t | |
43835 | s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t | |
43836 | s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t | |
43837 | s,@LIBWXMACRES@,$LIBWXMACRES,;t t | |
43838 | s,@MACRESCOMP@,$MACRESCOMP,;t t | |
43839 | s,@MACSETFILE@,$MACSETFILE,;t t | |
43840 | s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t | |
43841 | s,@GCC@,$GCC,;t t | |
a848cd7e | 43842 | s,@DLLTOOL@,$DLLTOOL,;t t |
a848cd7e SC |
43843 | s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t |
43844 | s,@LIBOBJS@,$LIBOBJS,;t t | |
43845 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
43846 | CEOF | |
43847 | ||
43848 | _ACEOF | |
43849 | ||
43850 | cat >>$CONFIG_STATUS <<\_ACEOF | |
43851 | # Split the substitutions into bite-sized pieces for seds with | |
43852 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
43853 | ac_max_sed_lines=48 | |
43854 | ac_sed_frag=1 # Number of current file. | |
43855 | ac_beg=1 # First line for current file. | |
43856 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
43857 | ac_more_lines=: | |
43858 | ac_sed_cmds= | |
43859 | while $ac_more_lines; do | |
43860 | if test $ac_beg -gt 1; then | |
43861 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
43862 | else | |
43863 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
43864 | fi | |
43865 | if test ! -s $tmp/subs.frag; then | |
43866 | ac_more_lines=false | |
43867 | else | |
43868 | # The purpose of the label and of the branching condition is to | |
43869 | # speed up the sed processing (if there are no `@' at all, there | |
43870 | # is no need to browse any of the substitutions). | |
43871 | # These are the two extra sed commands mentioned above. | |
43872 | (echo ':t | |
43873 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
43874 | if test -z "$ac_sed_cmds"; then | |
ac1cb8d3 | 43875 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e | 43876 | else |
ac1cb8d3 | 43877 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e SC |
43878 | fi |
43879 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
43880 | ac_beg=$ac_end | |
43881 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
43882 | fi | |
43883 | done | |
43884 | if test -z "$ac_sed_cmds"; then | |
43885 | ac_sed_cmds=cat | |
43886 | fi | |
43887 | fi # test -n "$CONFIG_FILES" | |
43888 | ||
43889 | _ACEOF | |
43890 | cat >>$CONFIG_STATUS <<\_ACEOF | |
43891 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
43892 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
43893 | case $ac_file in | |
43894 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
43895 | cat >$tmp/stdin |
43896 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
43897 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 43898 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 43899 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
43900 | * ) ac_file_in=$ac_file.in ;; |
43901 | esac | |
43902 | ||
43903 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
43904 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
43905 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
43906 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
43907 | X"$ac_file" : 'X\(//\)$' \| \ | |
43908 | X"$ac_file" : 'X\(/\)' \| \ | |
43909 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
43910 | echo X"$ac_file" | |
43911 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
43912 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
43913 | /^X\(\/\/\)$/{ s//\1/; q; } | |
43914 | /^X\(\/\).*/{ s//\1/; q; } | |
43915 | s/.*/./; q'` | |
43916 | { if $as_mkdir_p; then | |
43917 | mkdir -p "$ac_dir" | |
43918 | else | |
43919 | as_dir="$ac_dir" | |
43920 | as_dirs= | |
43921 | while test ! -d "$as_dir"; do | |
43922 | as_dirs="$as_dir $as_dirs" | |
43923 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
43924 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
43925 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
43926 | X"$as_dir" : 'X\(//\)$' \| \ | |
43927 | X"$as_dir" : 'X\(/\)' \| \ | |
43928 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
43929 | echo X"$as_dir" | |
43930 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
43931 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
43932 | /^X\(\/\/\)$/{ s//\1/; q; } | |
43933 | /^X\(\/\).*/{ s//\1/; q; } | |
43934 | s/.*/./; q'` | |
43935 | done | |
43936 | test ! -n "$as_dirs" || mkdir $as_dirs | |
43937 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
43938 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
43939 | { (exit 1); exit 1; }; }; } | |
43940 | ||
43941 | ac_builddir=. | |
43942 | ||
43943 | if test "$ac_dir" != .; then | |
43944 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
43945 | # A "../" for each directory in $ac_dir_suffix. | |
43946 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
43947 | else | |
43948 | ac_dir_suffix= ac_top_builddir= | |
43949 | fi | |
43950 | ||
43951 | case $srcdir in | |
43952 | .) # No --srcdir option. We are building in place. | |
43953 | ac_srcdir=. | |
43954 | if test -z "$ac_top_builddir"; then | |
43955 | ac_top_srcdir=. | |
43956 | else | |
43957 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
43958 | fi ;; | |
43959 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
43960 | ac_srcdir=$srcdir$ac_dir_suffix; | |
43961 | ac_top_srcdir=$srcdir ;; | |
43962 | *) # Relative path. | |
43963 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
43964 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
43965 | esac | |
ac1cb8d3 VS |
43966 | |
43967 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
43968 | # the directories may not exist. | |
43969 | case `pwd` in | |
43970 | .) ac_abs_builddir="$ac_dir";; | |
43971 | *) | |
43972 | case "$ac_dir" in | |
43973 | .) ac_abs_builddir=`pwd`;; | |
43974 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
43975 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
43976 | esac;; | |
43977 | esac | |
43978 | case $ac_abs_builddir in | |
43979 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
43980 | *) | |
43981 | case ${ac_top_builddir}. in | |
43982 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
43983 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
43984 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
43985 | esac;; | |
43986 | esac | |
43987 | case $ac_abs_builddir in | |
43988 | .) ac_abs_srcdir=$ac_srcdir;; | |
43989 | *) | |
43990 | case $ac_srcdir in | |
43991 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
43992 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
43993 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
43994 | esac;; | |
43995 | esac | |
43996 | case $ac_abs_builddir in | |
43997 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
43998 | *) | |
43999 | case $ac_top_srcdir in | |
44000 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
44001 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
44002 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
44003 | esac;; | |
44004 | esac | |
a848cd7e SC |
44005 | |
44006 | ||
44007 | case $INSTALL in | |
44008 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
44009 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
44010 | esac | |
44011 | ||
89be85c2 VS |
44012 | if test x"$ac_file" != x-; then |
44013 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
44014 | echo "$as_me: creating $ac_file" >&6;} | |
44015 | rm -f "$ac_file" | |
44016 | fi | |
a848cd7e SC |
44017 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
44018 | # use $as_me), people would be surprised to read: | |
44019 | # /* config.h. Generated by config.status. */ | |
44020 | if test x"$ac_file" = x-; then | |
44021 | configure_input= | |
44022 | else | |
44023 | configure_input="$ac_file. " | |
44024 | fi | |
44025 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
ac1cb8d3 | 44026 | sed 's,.*/,,'` by configure." |
a848cd7e SC |
44027 | |
44028 | # First look for the input files in the build tree, otherwise in the | |
44029 | # src tree. | |
44030 | ac_file_inputs=`IFS=: | |
44031 | for f in $ac_file_in; do | |
44032 | case $f in | |
44033 | -) echo $tmp/stdin ;; | |
44034 | [\\/$]*) | |
ac1cb8d3 VS |
44035 | # Absolute (can't be DOS-style, as IFS=:) |
44036 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
44037 | echo "$as_me: error: cannot find input file: $f" >&2;} |
44038 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 44039 | echo "$f";; |
a848cd7e | 44040 | *) # Relative |
ac1cb8d3 VS |
44041 | if test -f "$f"; then |
44042 | # Build tree | |
44043 | echo "$f" | |
44044 | elif test -f "$srcdir/$f"; then | |
44045 | # Source tree | |
44046 | echo "$srcdir/$f" | |
44047 | else | |
44048 | # /dev/null tree | |
44049 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
44050 | echo "$as_me: error: cannot find input file: $f" >&2;} |
44051 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 44052 | fi;; |
a848cd7e SC |
44053 | esac |
44054 | done` || { (exit 1); exit 1; } | |
44055 | _ACEOF | |
44056 | cat >>$CONFIG_STATUS <<_ACEOF | |
44057 | sed "$ac_vpsub | |
44058 | $extrasub | |
44059 | _ACEOF | |
44060 | cat >>$CONFIG_STATUS <<\_ACEOF | |
44061 | :t | |
44062 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
44063 | s,@configure_input@,$configure_input,;t t | |
44064 | s,@srcdir@,$ac_srcdir,;t t | |
44065 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
44066 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
44067 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
44068 | s,@builddir@,$ac_builddir,;t t | |
44069 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
44070 | s,@top_builddir@,$ac_top_builddir,;t t | |
44071 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
44072 | s,@INSTALL@,$ac_INSTALL,;t t | |
44073 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
44074 | rm -f $tmp/stdin | |
44075 | if test x"$ac_file" != x-; then | |
44076 | mv $tmp/out $ac_file | |
44077 | else | |
44078 | cat $tmp/out | |
44079 | rm -f $tmp/out | |
44080 | fi | |
44081 | ||
ceec2216 RL |
44082 | # Run the commands associated with the file. |
44083 | case $ac_file in | |
44084 | lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;; | |
44085 | lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;; | |
44086 | esac | |
a848cd7e SC |
44087 | done |
44088 | _ACEOF | |
44089 | cat >>$CONFIG_STATUS <<\_ACEOF | |
44090 | ||
44091 | # | |
44092 | # CONFIG_HEADER section. | |
44093 | # | |
44094 | ||
44095 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
44096 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
44097 | # | |
44098 | # ac_d sets the value in "#define NAME VALUE" lines. | |
ac1cb8d3 VS |
44099 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
44100 | ac_dB='[ ].*$,\1#\2' | |
a848cd7e SC |
44101 | ac_dC=' ' |
44102 | ac_dD=',;t' | |
44103 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
ac1cb8d3 | 44104 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
a848cd7e SC |
44105 | ac_uB='$,\1#\2define\3' |
44106 | ac_uC=' ' | |
44107 | ac_uD=',;t' | |
44108 | ||
44109 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
44110 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
44111 | case $ac_file in | |
44112 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
44113 | cat >$tmp/stdin |
44114 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
44115 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 44116 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 44117 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
44118 | * ) ac_file_in=$ac_file.in ;; |
44119 | esac | |
44120 | ||
44121 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
44122 | echo "$as_me: creating $ac_file" >&6;} | |
44123 | ||
44124 | # First look for the input files in the build tree, otherwise in the | |
44125 | # src tree. | |
44126 | ac_file_inputs=`IFS=: | |
44127 | for f in $ac_file_in; do | |
44128 | case $f in | |
44129 | -) echo $tmp/stdin ;; | |
44130 | [\\/$]*) | |
ac1cb8d3 VS |
44131 | # Absolute (can't be DOS-style, as IFS=:) |
44132 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
44133 | echo "$as_me: error: cannot find input file: $f" >&2;} |
44134 | { (exit 1); exit 1; }; } | |
ac1cb8d3 VS |
44135 | # Do quote $f, to prevent DOS paths from being IFS'd. |
44136 | echo "$f";; | |
a848cd7e | 44137 | *) # Relative |
ac1cb8d3 VS |
44138 | if test -f "$f"; then |
44139 | # Build tree | |
44140 | echo "$f" | |
44141 | elif test -f "$srcdir/$f"; then | |
44142 | # Source tree | |
44143 | echo "$srcdir/$f" | |
44144 | else | |
44145 | # /dev/null tree | |
44146 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
44147 | echo "$as_me: error: cannot find input file: $f" >&2;} |
44148 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 44149 | fi;; |
a848cd7e SC |
44150 | esac |
44151 | done` || { (exit 1); exit 1; } | |
44152 | # Remove the trailing spaces. | |
ac1cb8d3 | 44153 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
a848cd7e SC |
44154 | |
44155 | _ACEOF | |
44156 | ||
44157 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
44158 | # `conftest.undefs', that substitutes the proper values into | |
44159 | # config.h.in to produce config.h. The first handles `#define' | |
44160 | # templates, and the second `#undef' templates. | |
44161 | # And first: Protect against being on the right side of a sed subst in | |
44162 | # config.status. Protect against being in an unquoted here document | |
44163 | # in config.status. | |
44164 | rm -f conftest.defines conftest.undefs | |
44165 | # Using a here document instead of a string reduces the quoting nightmare. | |
44166 | # Putting comments in sed scripts is not portable. | |
44167 | # | |
44168 | # `end' is used to avoid that the second main sed command (meant for | |
44169 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
44170 | # See the Autoconf documentation for `clear'. | |
44171 | cat >confdef2sed.sed <<\_ACEOF | |
44172 | s/[\\&,]/\\&/g | |
44173 | s,[\\$`],\\&,g | |
44174 | t clear | |
44175 | : clear | |
ac1cb8d3 | 44176 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
a848cd7e | 44177 | t end |
ac1cb8d3 | 44178 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
a848cd7e SC |
44179 | : end |
44180 | _ACEOF | |
44181 | # If some macros were called several times there might be several times | |
44182 | # the same #defines, which is useless. Nevertheless, we may not want to | |
44183 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
44184 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
44185 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
44186 | rm -f confdef2sed.sed | |
44187 | ||
44188 | # This sed command replaces #undef with comments. This is necessary, for | |
44189 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
44190 | # on some systems where configure will not decide to define it. | |
44191 | cat >>conftest.undefs <<\_ACEOF | |
ac1cb8d3 | 44192 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
a848cd7e SC |
44193 | _ACEOF |
44194 | ||
44195 | # Break up conftest.defines because some shells have a limit on the size | |
44196 | # of here documents, and old seds have small limits too (100 cmds). | |
44197 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
ac1cb8d3 | 44198 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
a848cd7e SC |
44199 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
44200 | echo ' :' >>$CONFIG_STATUS | |
44201 | rm -f conftest.tail | |
44202 | while grep . conftest.defines >/dev/null | |
44203 | do | |
44204 | # Write a limited-size here document to $tmp/defines.sed. | |
44205 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
44206 | # Speed up: don't consider the non `#define' lines. | |
ac1cb8d3 | 44207 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
a848cd7e SC |
44208 | # Work around the forget-to-reset-the-flag bug. |
44209 | echo 't clr' >>$CONFIG_STATUS | |
44210 | echo ': clr' >>$CONFIG_STATUS | |
44211 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
44212 | echo 'CEOF | |
44213 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
44214 | rm -f $tmp/in | |
44215 | mv $tmp/out $tmp/in | |
44216 | ' >>$CONFIG_STATUS | |
44217 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
44218 | rm -f conftest.defines | |
44219 | mv conftest.tail conftest.defines | |
44220 | done | |
44221 | rm -f conftest.defines | |
44222 | echo ' fi # grep' >>$CONFIG_STATUS | |
44223 | echo >>$CONFIG_STATUS | |
44224 | ||
44225 | # Break up conftest.undefs because some shells have a limit on the size | |
44226 | # of here documents, and old seds have small limits too (100 cmds). | |
44227 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
44228 | rm -f conftest.tail | |
44229 | while grep . conftest.undefs >/dev/null | |
44230 | do | |
44231 | # Write a limited-size here document to $tmp/undefs.sed. | |
44232 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
44233 | # Speed up: don't consider the non `#undef' | |
ac1cb8d3 | 44234 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
a848cd7e SC |
44235 | # Work around the forget-to-reset-the-flag bug. |
44236 | echo 't clr' >>$CONFIG_STATUS | |
44237 | echo ': clr' >>$CONFIG_STATUS | |
44238 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
44239 | echo 'CEOF | |
44240 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
44241 | rm -f $tmp/in | |
44242 | mv $tmp/out $tmp/in | |
44243 | ' >>$CONFIG_STATUS | |
44244 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
44245 | rm -f conftest.undefs | |
44246 | mv conftest.tail conftest.undefs | |
44247 | done | |
44248 | rm -f conftest.undefs | |
44249 | ||
44250 | cat >>$CONFIG_STATUS <<\_ACEOF | |
44251 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
44252 | # use $as_me), people would be surprised to read: | |
44253 | # /* config.h. Generated by config.status. */ | |
44254 | if test x"$ac_file" = x-; then | |
44255 | echo "/* Generated by configure. */" >$tmp/config.h | |
44256 | else | |
44257 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
44258 | fi | |
44259 | cat $tmp/in >>$tmp/config.h | |
44260 | rm -f $tmp/in | |
44261 | if test x"$ac_file" != x-; then | |
44262 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
44263 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
44264 | echo "$as_me: $ac_file is unchanged" >&6;} | |
44265 | else | |
44266 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
44267 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
44268 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
44269 | X"$ac_file" : 'X\(//\)$' \| \ | |
44270 | X"$ac_file" : 'X\(/\)' \| \ | |
44271 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
44272 | echo X"$ac_file" | |
44273 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
44274 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
44275 | /^X\(\/\/\)$/{ s//\1/; q; } | |
44276 | /^X\(\/\).*/{ s//\1/; q; } | |
44277 | s/.*/./; q'` | |
44278 | { if $as_mkdir_p; then | |
44279 | mkdir -p "$ac_dir" | |
44280 | else | |
44281 | as_dir="$ac_dir" | |
44282 | as_dirs= | |
44283 | while test ! -d "$as_dir"; do | |
44284 | as_dirs="$as_dir $as_dirs" | |
44285 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
44286 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
44287 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
44288 | X"$as_dir" : 'X\(//\)$' \| \ | |
44289 | X"$as_dir" : 'X\(/\)' \| \ | |
44290 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
44291 | echo X"$as_dir" | |
44292 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
44293 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
44294 | /^X\(\/\/\)$/{ s//\1/; q; } | |
44295 | /^X\(\/\).*/{ s//\1/; q; } | |
44296 | s/.*/./; q'` | |
44297 | done | |
44298 | test ! -n "$as_dirs" || mkdir $as_dirs | |
44299 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
44300 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
44301 | { (exit 1); exit 1; }; }; } | |
44302 | ||
44303 | rm -f $ac_file | |
44304 | mv $tmp/config.h $ac_file | |
44305 | fi | |
44306 | else | |
44307 | cat $tmp/config.h | |
44308 | rm -f $tmp/config.h | |
44309 | fi | |
44310 | done | |
44311 | _ACEOF | |
44312 | cat >>$CONFIG_STATUS <<\_ACEOF | |
44313 | ||
44314 | # | |
44315 | # CONFIG_COMMANDS section. | |
44316 | # | |
44317 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
44318 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
44319 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
44320 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
44321 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
44322 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
44323 | X"$ac_dest" : 'X\(//\)$' \| \ | |
44324 | X"$ac_dest" : 'X\(/\)' \| \ | |
44325 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
44326 | echo X"$ac_dest" | |
44327 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
44328 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
44329 | /^X\(\/\/\)$/{ s//\1/; q; } | |
44330 | /^X\(\/\).*/{ s//\1/; q; } | |
44331 | s/.*/./; q'` | |
ac1cb8d3 VS |
44332 | { if $as_mkdir_p; then |
44333 | mkdir -p "$ac_dir" | |
44334 | else | |
44335 | as_dir="$ac_dir" | |
44336 | as_dirs= | |
44337 | while test ! -d "$as_dir"; do | |
44338 | as_dirs="$as_dir $as_dirs" | |
44339 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
44340 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
44341 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
44342 | X"$as_dir" : 'X\(//\)$' \| \ | |
44343 | X"$as_dir" : 'X\(/\)' \| \ | |
44344 | . : '\(.\)' 2>/dev/null || | |
44345 | echo X"$as_dir" | | |
44346 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
44347 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
44348 | /^X\(\/\/\)$/{ s//\1/; q; } | |
44349 | /^X\(\/\).*/{ s//\1/; q; } | |
44350 | s/.*/./; q'` | |
44351 | done | |
44352 | test ! -n "$as_dirs" || mkdir $as_dirs | |
44353 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
44354 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
44355 | { (exit 1); exit 1; }; }; } | |
44356 | ||
a848cd7e SC |
44357 | ac_builddir=. |
44358 | ||
44359 | if test "$ac_dir" != .; then | |
44360 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
44361 | # A "../" for each directory in $ac_dir_suffix. | |
44362 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
44363 | else | |
44364 | ac_dir_suffix= ac_top_builddir= | |
44365 | fi | |
44366 | ||
44367 | case $srcdir in | |
44368 | .) # No --srcdir option. We are building in place. | |
44369 | ac_srcdir=. | |
44370 | if test -z "$ac_top_builddir"; then | |
44371 | ac_top_srcdir=. | |
44372 | else | |
44373 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
44374 | fi ;; | |
44375 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
44376 | ac_srcdir=$srcdir$ac_dir_suffix; | |
44377 | ac_top_srcdir=$srcdir ;; | |
44378 | *) # Relative path. | |
44379 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
44380 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
44381 | esac | |
ac1cb8d3 VS |
44382 | |
44383 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
44384 | # the directories may not exist. | |
44385 | case `pwd` in | |
44386 | .) ac_abs_builddir="$ac_dir";; | |
44387 | *) | |
44388 | case "$ac_dir" in | |
44389 | .) ac_abs_builddir=`pwd`;; | |
44390 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
44391 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
44392 | esac;; | |
44393 | esac | |
44394 | case $ac_abs_builddir in | |
44395 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
44396 | *) | |
44397 | case ${ac_top_builddir}. in | |
44398 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
44399 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
44400 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
44401 | esac;; | |
44402 | esac | |
44403 | case $ac_abs_builddir in | |
44404 | .) ac_abs_srcdir=$ac_srcdir;; | |
44405 | *) | |
44406 | case $ac_srcdir in | |
44407 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
44408 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
44409 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
44410 | esac;; | |
44411 | esac | |
44412 | case $ac_abs_builddir in | |
44413 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
44414 | *) | |
44415 | case $ac_top_srcdir in | |
44416 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
44417 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
44418 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
44419 | esac;; | |
44420 | esac | |
a848cd7e SC |
44421 | |
44422 | ||
44423 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
44424 | echo "$as_me: executing $ac_dest commands" >&6;} | |
44425 | case $ac_dest in | |
ceec2216 RL |
44426 | wx-config ) rm -f wx-config |
44427 | ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config | |
44428 | ;; | |
a848cd7e SC |
44429 | esac |
44430 | done | |
44431 | _ACEOF | |
44432 | ||
44433 | cat >>$CONFIG_STATUS <<\_ACEOF | |
44434 | ||
44435 | { (exit 0); exit 0; } | |
44436 | _ACEOF | |
44437 | chmod +x $CONFIG_STATUS | |
44438 | ac_clean_files=$ac_clean_files_save | |
44439 | ||
44440 | ||
44441 | # configure is writing to config.log, and then calls config.status. | |
44442 | # config.status does its own redirection, appending to config.log. | |
44443 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
44444 | # by configure, so config.status won't be able to write to it; its | |
44445 | # output is simply discarded. So we exec the FD to /dev/null, | |
44446 | # effectively closing config.log, so it can be properly (re)opened and | |
44447 | # appended to by config.status. When coming back to configure, we | |
44448 | # need to make the FD available again. | |
44449 | if test "$no_create" != yes; then | |
44450 | ac_cs_success=: | |
44451 | ac_config_status_args= | |
44452 | test "$silent" = yes && | |
44453 | ac_config_status_args="$ac_config_status_args --quiet" | |
44454 | exec 5>/dev/null | |
44455 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
44456 | exec 5>>config.log | |
44457 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
44458 | # would make configure fail if this is the last instruction. | |
44459 | $ac_cs_success || { (exit 1); exit 1; } | |
44460 | fi | |
44461 | ||
44462 | # | |
44463 | # CONFIG_SUBDIRS section. | |
44464 | # | |
44465 | if test "$no_recursion" != yes; then | |
44466 | ||
44467 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
44468 | ac_sub_configure_args= | |
44469 | ac_prev= | |
44470 | for ac_arg in $ac_configure_args; do | |
44471 | if test -n "$ac_prev"; then | |
44472 | ac_prev= | |
44473 | continue | |
44474 | fi | |
44475 | case $ac_arg in | |
44476 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
44477 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
44478 | ac_prev=cache_file ;; | |
44479 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
44480 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
44481 | | --c=*) | |
44482 | ;; | |
44483 | --config-cache | -C) | |
44484 | ;; | |
44485 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
44486 | ac_prev=srcdir ;; | |
44487 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
44488 | ;; | |
44489 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
44490 | ac_prev=prefix ;; | |
44491 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
44492 | ;; | |
44493 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
44494 | esac | |
44495 | done | |
44496 | ||
44497 | # Always prepend --prefix to ensure using the same prefix | |
44498 | # in subdir configurations. | |
44499 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
44500 | ||
44501 | ac_popdir=`pwd` | |
44502 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
44503 | ||
44504 | # Do not complain, so a configure script can configure whichever | |
44505 | # parts of a large source tree are present. | |
44506 | test -d $srcdir/$ac_dir || continue | |
44507 | ||
44508 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 | |
44509 | echo "$as_me: configuring in $ac_dir" >&6;} | |
44510 | { if $as_mkdir_p; then | |
44511 | mkdir -p "$ac_dir" | |
44512 | else | |
44513 | as_dir="$ac_dir" | |
44514 | as_dirs= | |
44515 | while test ! -d "$as_dir"; do | |
44516 | as_dirs="$as_dir $as_dirs" | |
44517 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
44518 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
44519 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
44520 | X"$as_dir" : 'X\(//\)$' \| \ | |
44521 | X"$as_dir" : 'X\(/\)' \| \ | |
44522 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
44523 | echo X"$as_dir" | |
44524 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
44525 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
44526 | /^X\(\/\/\)$/{ s//\1/; q; } | |
44527 | /^X\(\/\).*/{ s//\1/; q; } | |
44528 | s/.*/./; q'` | |
44529 | done | |
44530 | test ! -n "$as_dirs" || mkdir $as_dirs | |
44531 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
44532 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
44533 | { (exit 1); exit 1; }; }; } | |
44534 | ||
44535 | ac_builddir=. | |
44536 | ||
44537 | if test "$ac_dir" != .; then | |
44538 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
44539 | # A "../" for each directory in $ac_dir_suffix. | |
44540 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
44541 | else | |
44542 | ac_dir_suffix= ac_top_builddir= | |
44543 | fi | |
44544 | ||
44545 | case $srcdir in | |
44546 | .) # No --srcdir option. We are building in place. | |
44547 | ac_srcdir=. | |
44548 | if test -z "$ac_top_builddir"; then | |
44549 | ac_top_srcdir=. | |
44550 | else | |
44551 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
44552 | fi ;; | |
44553 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
44554 | ac_srcdir=$srcdir$ac_dir_suffix; | |
44555 | ac_top_srcdir=$srcdir ;; | |
44556 | *) # Relative path. | |
44557 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
44558 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
44559 | esac | |
ac1cb8d3 VS |
44560 | |
44561 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
44562 | # the directories may not exist. | |
44563 | case `pwd` in | |
44564 | .) ac_abs_builddir="$ac_dir";; | |
44565 | *) | |
44566 | case "$ac_dir" in | |
44567 | .) ac_abs_builddir=`pwd`;; | |
44568 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
44569 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
44570 | esac;; | |
44571 | esac | |
44572 | case $ac_abs_builddir in | |
44573 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
44574 | *) | |
44575 | case ${ac_top_builddir}. in | |
44576 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
44577 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
44578 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
44579 | esac;; | |
44580 | esac | |
44581 | case $ac_abs_builddir in | |
44582 | .) ac_abs_srcdir=$ac_srcdir;; | |
44583 | *) | |
44584 | case $ac_srcdir in | |
44585 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
44586 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
44587 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
44588 | esac;; | |
44589 | esac | |
44590 | case $ac_abs_builddir in | |
44591 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
44592 | *) | |
44593 | case $ac_top_srcdir in | |
44594 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
44595 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
44596 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
44597 | esac;; | |
44598 | esac | |
a848cd7e SC |
44599 | |
44600 | ||
44601 | cd $ac_dir | |
44602 | ||
44603 | # Check for guested configure; otherwise get Cygnus style configure. | |
44604 | if test -f $ac_srcdir/configure.gnu; then | |
44605 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
44606 | elif test -f $ac_srcdir/configure; then | |
44607 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
44608 | elif test -f $ac_srcdir/configure.in; then | |
44609 | ac_sub_configure=$ac_configure | |
44610 | else | |
44611 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | |
44612 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
44613 | ac_sub_configure= | |
44614 | fi | |
44615 | ||
44616 | # The recursion is here. | |
44617 | if test -n "$ac_sub_configure"; then | |
44618 | # Make the cache file name correct relative to the subdirectory. | |
44619 | case $cache_file in | |
44620 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
44621 | *) # Relative path. | |
ac1cb8d3 | 44622 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
a848cd7e SC |
44623 | esac |
44624 | ||
44625 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | |
44626 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
44627 | # The eval makes quoting arguments work. | |
44628 | eval $ac_sub_configure $ac_sub_configure_args \ | |
ac1cb8d3 VS |
44629 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || |
44630 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
a848cd7e SC |
44631 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
44632 | { (exit 1); exit 1; }; } | |
44633 | fi | |
44634 | ||
89be85c2 | 44635 | cd $ac_popdir |
a848cd7e SC |
44636 | done |
44637 | fi | |
44638 | ||
44639 | ||
44640 | echo | |
77ffb593 | 44641 | echo "Configured wxWidgets ${WX_VERSION} for \`${host}'" |
a848cd7e | 44642 | echo "" |
4d4ff94c | 44643 | echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}" |
77ffb593 | 44644 | echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}" |
a848cd7e | 44645 | |
77ffb593 JS |
44646 | echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}" |
44647 | echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}" | |
44648 | echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
a848cd7e | 44649 | |
77ffb593 JS |
44650 | echo " What level of wxWidgets compatibility should be enabled?" |
44651 | echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}" | |
44652 | echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}" | |
a848cd7e | 44653 | |
77ffb593 | 44654 | echo " Which libraries should wxWidgets use?" |
a848cd7e SC |
44655 | echo " jpeg ${wxUSE_LIBJPEG-none}" |
44656 | echo " png ${wxUSE_LIBPNG-none}" | |
44657 | echo " regex ${wxUSE_REGEX}" | |
44658 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
44659 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then | |
44660 | echo " xpm ${wxUSE_LIBXPM-none}" | |
44661 | fi | |
44662 | echo " zlib ${wxUSE_ZLIB}" | |
44663 | echo " odbc ${wxUSE_ODBC}" | |
44664 | echo " expat ${wxUSE_EXPAT}" | |
44665 | echo " libmspack ${wxUSE_LIBMSPACK}" | |
44666 | echo " sdl ${wxUSE_LIBSDL}" | |
6d1ce868 | 44667 | echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}" |
a848cd7e SC |
44668 | |
44669 | echo "" | |
44670 |