]>
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. | |
7714864e | 4 | # Generated by GNU Autoconf 2.59 for wxWidgets 2.5.3. |
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' | |
7714864e RL |
273 | PACKAGE_VERSION='2.5.3' |
274 | PACKAGE_STRING='wxWidgets 2.5.3' | |
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" | |
d1c38808 | 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 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_MACOSX PLATFORM_OS2 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_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_HTML_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_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_HTML_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_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_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 COND_TOOLKIT_MAC_WXUNIV_0 COND_TOOLKIT_MSW_WXUNIV_0 COND_TOOLKIT_PM_WXUNIV_0 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 | |
7714864e | 797 | \`configure' configures wxWidgets 2.5.3 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 | |
7714864e | 863 | short | recursive ) echo "Configuration of wxWidgets 2.5.3:";; |
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 | |
906 | --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only) | |
907 | --enable-cmdline use wxCmdLineParser class | |
908 | --enable-datetime use wxDateTime class | |
909 | --enable-dialupman use dialup network classes | |
910 | --enable-dynlib use wxLibrary class for DLL loading | |
911 | --enable-dynamicloader use (new) wxDynamicLibrary class | |
912 | --enable-exceptions build exception-safe library | |
913 | --enable-ffile use wxFFile class | |
914 | --enable-file use wxFile class | |
915 | --enable-filesystem use virtual file systems classes | |
916 | --enable-fontmap use font encodings conversion classes | |
917 | --enable-fs_inet use virtual HTTP/FTP filesystems | |
918 | --enable-fs_zip use virtual ZIP filesystems | |
919 | --enable-geometry use geometry class | |
920 | --enable-log use logging system | |
921 | --enable-longlong use wxLongLong class | |
922 | --enable-mimetype use wxMimeTypesManager | |
923 | --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only) | |
924 | --enable-snglinst use wxSingleInstanceChecker class | |
925 | --enable-streams use wxStream etc classes | |
926 | --enable-std_iostreams use standard C++ stream classes | |
927 | --enable-stopwatch use wxStopWatch class | |
928 | --enable-sysoptions use wxSystemOptions | |
929 | --enable-textbuf use wxTextBuffer class | |
930 | --enable-textfile use wxTextFile class | |
931 | --enable-timer use wxTimer class | |
932 | --enable-unicode compile wxString with Unicode support | |
933 | --enable-sound use wxSound class | |
3b57de8b | 934 | --enable-mediactrl use wxMediaCtrl class |
77ffb593 | 935 | --enable-wxprintfv use wxWidgets implementation of vprintf() |
a848cd7e | 936 | --enable-zipstream use wxZipInputStream |
a848cd7e SC |
937 | --enable-url use wxURL class |
938 | --enable-protocol use wxProtocol class | |
939 | --enable-protocol-http HTTP support in wxProtocol | |
940 | --enable-protocol-ftp FTP support in wxProtocol | |
941 | --enable-protocol-file FILE support in wxProtocol | |
942 | --enable-threads use threads | |
943 | --enable-docview use document view architecture | |
944 | --enable-help use help subsystem | |
945 | --enable-mshtmlhelp use MS HTML Help (win32) | |
946 | --enable-html use wxHTML sub-library | |
947 | --enable-htmlhelp use wxHTML-based help | |
9a8f0513 | 948 | --enable-xrc use XRC resources sub-library |
a848cd7e SC |
949 | --enable-constraints use layout-constraints system |
950 | --enable-printarch use printing architecture | |
951 | --enable-mdi use multiple document interface architecture | |
8a7b1113 | 952 | --enable-mdidoc use docview architecture with MDI |
a848cd7e SC |
953 | --enable-loggui use standard GUI logger |
954 | --enable-logwin use wxLogWindow | |
955 | --enable-logdialog use wxLogDialog | |
646b6ec1 | 956 | --enable-webkit use wxWebKitCtrl (Mac) |
a848cd7e SC |
957 | --enable-postscript use wxPostscriptDC device context (default for gtk+) |
958 | --enable-prologio not available; see contrib | |
959 | --enable-resources not available; see contrib | |
960 | --enable-clipboard use wxClipboard class | |
961 | --enable-dnd use Drag'n'Drop classes | |
962 | --enable-metafile use win32 metafiles | |
963 | --enable-controls use all usual controls | |
964 | --enable-accel use accelerators | |
965 | --enable-button use wxButton class | |
966 | --enable-bmpbutton use wxBitmapButton class | |
967 | --enable-calendar use wxCalendarCtrl class | |
968 | --enable-caret use wxCaret class | |
969 | --enable-checkbox use wxCheckBox class | |
970 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class | |
971 | --enable-choice use wxChoice class | |
92bbdbcd | 972 | --enable-choicebook use wxChoicebook class |
a848cd7e SC |
973 | --enable-combobox use wxComboBox class |
974 | --enable-display use wxDisplay class | |
975 | --enable-gauge use wxGauge class | |
976 | --enable-grid use wxGrid class | |
977 | --enable-imaglist use wxImageList class | |
978 | --enable-listbook use wxListbook class | |
979 | --enable-listbox use wxListBox class | |
980 | --enable-listctrl use wxListCtrl class | |
981 | --enable-notebook use wxNotebook class | |
982 | --enable-radiobox use wxRadioBox class | |
983 | --enable-radiobtn use wxRadioButton class | |
984 | --enable-sash use wxSashWindow class | |
985 | --enable-scrollbar use wxScrollBar class and scrollable windows | |
986 | --enable-slider use wxSlider class | |
987 | --enable-spinbtn use wxSpinButton class | |
988 | --enable-spinctrl use wxSpinCtrl class | |
989 | --enable-splitter use wxSplitterWindow class | |
990 | --enable-statbmp use wxStaticBitmap class | |
991 | --enable-statbox use wxStaticBox class | |
992 | --enable-statline use wxStaticLine class | |
993 | --enable-stattext use wxStaticText class | |
994 | --enable-statusbar use wxStatusBar class | |
995 | --enable-tabdialog use wxTabControl class | |
996 | --enable-textctrl use wxTextCtrl class | |
997 | --enable-togglebtn use wxToggleButton class | |
998 | --enable-toolbar use wxToolBar class | |
999 | --enable-tbarnative use native wxToolBar class | |
1000 | --enable-tbarsmpl use wxToolBarSimple class | |
1001 | --enable-treectrl use wxTreeCtrl class | |
1002 | --enable-tipwindow use wxTipWindow class | |
1003 | --enable-popupwin use wxPopUpWindow class | |
1004 | --enable-commondlg use all common dialogs | |
1005 | --enable-choicedlg use wxChoiceDialog | |
1006 | --enable-coldlg use wxColourDialog | |
1007 | --enable-filedlg use wxFileDialog | |
1008 | --enable-finddlg use wxFindReplaceDialog | |
1009 | --enable-fontdlg use wxFontDialog | |
1010 | --enable-dirdlg use wxDirDialog | |
1011 | --enable-msgdlg use wxMessageDialog | |
1012 | --enable-numberdlg use wxNumberEntryDialog | |
1013 | --enable-splash use wxSplashScreen | |
1014 | --enable-textdlg use wxTextDialog | |
1015 | --enable-tipdlg use startup tips | |
1016 | --enable-progressdlg use wxProgressDialog | |
1017 | --enable-wizarddlg use wxWizard | |
1018 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes | |
1019 | --enable-miniframe use wxMiniFrame class | |
1020 | --enable-tooltips use wxToolTip class | |
1021 | --enable-splines use spline drawing code | |
1022 | --enable-validators use wxValidator and derived classes | |
1023 | --enable-busyinfo use wxBusyInfo | |
1024 | --enable-joystick use wxJoystick (Linux only) | |
1025 | --enable-metafiles use wxMetaFile (Windows only) | |
1026 | --enable-dragimage use wxDragImage | |
1027 | --enable-accessibility enable accessibility support | |
1028 | --enable-palette use wxPalette class | |
1029 | --enable-image use wxImage class | |
1030 | --enable-gif use gif images (GIF file format) | |
1031 | --enable-pcx use pcx images (PCX file format) | |
1032 | --enable-iff use iff images (IFF file format) | |
1033 | --enable-pnm use pnm images (PNM file format) | |
1034 | --enable-xpm use xpm images (XPM file format) | |
1035 | --enable-icocur use Windows ICO and CUR formats | |
77ffb593 | 1036 | --enable-official_build official build of wxWidgets (win32 DLL only) |
a848cd7e SC |
1037 | --enable-vendor=VENDOR vendor name (win32 DLL only) |
1038 | --disable-largefile omit support for large files | |
1039 | --disable-gtktest do not try to compile and run a test GTK+ program | |
1040 | --disable-gtktest Do not try to compile and run a test GTK program | |
1041 | --disable-sdltest Do not try to compile and run a test SDL program | |
1042 | --enable-omf use OMF object format (OS/2) | |
ebee3cd0 VS |
1043 | --disable-precomp-headers |
1044 | don't use precompiled headers even if compiler can | |
a848cd7e SC |
1045 | |
1046 | Optional Packages: | |
1047 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1048 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1049 | --with-gtk use GTK+ | |
1050 | --with-motif use Motif/Lesstif | |
1051 | --with-mac use Mac OS X | |
1052 | --with-cocoa use Cocoa | |
1053 | --with-wine use Wine | |
1054 | --with-msw use MS-Windows | |
1055 | --with-pm use OS/2 Presentation Manager | |
1056 | --with-mgl use SciTech MGL | |
1057 | --with-microwin use MicroWindows | |
1058 | --with-x11 use X11 | |
1059 | --with-libpng use libpng (PNG image format) | |
1060 | --with-libjpeg use libjpeg (JPEG file format) | |
1061 | --with-libtiff use libtiff (TIFF file format) | |
1062 | --with-libxpm use libxpm (XPM file format) | |
1063 | --with-libmspack use libmspack (CHM help files loading) | |
1064 | --with-sdl use SDL for audio on Unix | |
d51253e8 | 1065 | --with-gnomeprint use GNOME print for printing under Unix |
a848cd7e SC |
1066 | --with-opengl use OpenGL (or Mesa) |
1067 | --with-dmalloc use dmalloc library (http://dmalloc.com/) | |
1068 | --with-regex enable support for wxRegEx class | |
1069 | --with-zlib use zlib for LZW compression | |
1070 | --with-odbc use the IODBC and wxODBC classes | |
1071 | --with-expat enable XML support using expat parser | |
ceec2216 | 1072 | --with-flavour=NAME specify a name to identify this build |
a848cd7e SC |
1073 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) |
1074 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) | |
1075 | --with-x use the X Window System | |
1076 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib | |
1077 | --with-sdl-prefix=PFX Prefix where SDL is installed (optional) | |
1078 | --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) | |
1079 | --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional) | |
1080 | --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional) | |
1081 | ||
1082 | Some influential environment variables: | |
dcc1b6ad VS |
1083 | CC C compiler command |
1084 | CFLAGS C compiler flags | |
1085 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1086 | nonstandard directory <lib dir> | |
1087 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1088 | headers in a nonstandard directory <include dir> | |
1089 | CPP C preprocessor | |
1090 | CXX C++ compiler command | |
1091 | CXXFLAGS C++ compiler flags | |
1092 | CXXCPP C++ preprocessor | |
a848cd7e SC |
1093 | |
1094 | Use these variables to override the choices made by `configure' or to help | |
1095 | it to find libraries and programs with nonstandard names/locations. | |
1096 | ||
77ffb593 | 1097 | Report bugs to <wx-dev@lists.wxwidgets.org>. |
a848cd7e SC |
1098 | _ACEOF |
1099 | fi | |
1100 | ||
1101 | if test "$ac_init_help" = "recursive"; then | |
1102 | # If there are subdirs, report their specific --help. | |
1103 | ac_popdir=`pwd` | |
1104 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1105 | test -d $ac_dir || continue | |
1106 | ac_builddir=. | |
1107 | ||
1108 | if test "$ac_dir" != .; then | |
1109 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1110 | # A "../" for each directory in $ac_dir_suffix. | |
1111 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1112 | else | |
1113 | ac_dir_suffix= ac_top_builddir= | |
1114 | fi | |
1115 | ||
1116 | case $srcdir in | |
1117 | .) # No --srcdir option. We are building in place. | |
1118 | ac_srcdir=. | |
1119 | if test -z "$ac_top_builddir"; then | |
1120 | ac_top_srcdir=. | |
1121 | else | |
1122 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1123 | fi ;; | |
1124 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1125 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1126 | ac_top_srcdir=$srcdir ;; | |
1127 | *) # Relative path. | |
1128 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1129 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1130 | esac | |
ac1cb8d3 VS |
1131 | |
1132 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
1133 | # the directories may not exist. | |
1134 | case `pwd` in | |
1135 | .) ac_abs_builddir="$ac_dir";; | |
1136 | *) | |
1137 | case "$ac_dir" in | |
1138 | .) ac_abs_builddir=`pwd`;; | |
1139 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
1140 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
1141 | esac;; | |
1142 | esac | |
1143 | case $ac_abs_builddir in | |
1144 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1145 | *) | |
1146 | case ${ac_top_builddir}. in | |
1147 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
1148 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1149 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
1150 | esac;; | |
1151 | esac | |
1152 | case $ac_abs_builddir in | |
1153 | .) ac_abs_srcdir=$ac_srcdir;; | |
1154 | *) | |
1155 | case $ac_srcdir in | |
1156 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
1157 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
1158 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
1159 | esac;; | |
1160 | esac | |
1161 | case $ac_abs_builddir in | |
1162 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1163 | *) | |
1164 | case $ac_top_srcdir in | |
1165 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
1166 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1167 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
1168 | esac;; | |
1169 | esac | |
a848cd7e SC |
1170 | |
1171 | cd $ac_dir | |
1172 | # Check for guested configure; otherwise get Cygnus style configure. | |
1173 | if test -f $ac_srcdir/configure.gnu; then | |
1174 | echo | |
1175 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1176 | elif test -f $ac_srcdir/configure; then | |
1177 | echo | |
1178 | $SHELL $ac_srcdir/configure --help=recursive | |
1179 | elif test -f $ac_srcdir/configure.ac || | |
ac1cb8d3 | 1180 | test -f $ac_srcdir/configure.in; then |
a848cd7e SC |
1181 | echo |
1182 | $ac_configure --help | |
1183 | else | |
1184 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1185 | fi | |
d51253e8 | 1186 | cd "$ac_popdir" |
a848cd7e SC |
1187 | done |
1188 | fi | |
1189 | ||
1190 | test -n "$ac_init_help" && exit 0 | |
1191 | if $ac_init_version; then | |
1192 | cat <<\_ACEOF | |
7714864e | 1193 | wxWidgets configure 2.5.3 |
ac1cb8d3 | 1194 | generated by GNU Autoconf 2.59 |
a848cd7e | 1195 | |
ac1cb8d3 | 1196 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
1197 | This configure script is free software; the Free Software Foundation |
1198 | gives unlimited permission to copy, distribute and modify it. | |
1199 | _ACEOF | |
1200 | exit 0 | |
1201 | fi | |
1202 | exec 5>config.log | |
1203 | cat >&5 <<_ACEOF | |
1204 | This file contains any messages produced by compilers while | |
1205 | running configure, to aid debugging if configure makes a mistake. | |
1206 | ||
7714864e | 1207 | It was created by wxWidgets $as_me 2.5.3, which was |
ac1cb8d3 | 1208 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
1209 | |
1210 | $ $0 $@ | |
1211 | ||
1212 | _ACEOF | |
1213 | { | |
1214 | cat <<_ASUNAME | |
1215 | ## --------- ## | |
1216 | ## Platform. ## | |
1217 | ## --------- ## | |
1218 | ||
1219 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1220 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1221 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1222 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1223 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1224 | ||
1225 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1226 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1227 | ||
1228 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1229 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1230 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1231 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1232 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1233 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1234 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1235 | ||
1236 | _ASUNAME | |
1237 | ||
1238 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1239 | for as_dir in $PATH | |
1240 | do | |
1241 | IFS=$as_save_IFS | |
1242 | test -z "$as_dir" && as_dir=. | |
1243 | echo "PATH: $as_dir" | |
1244 | done | |
1245 | ||
1246 | } >&5 | |
1247 | ||
1248 | cat >&5 <<_ACEOF | |
1249 | ||
1250 | ||
1251 | ## ----------- ## | |
1252 | ## Core tests. ## | |
1253 | ## ----------- ## | |
1254 | ||
1255 | _ACEOF | |
1256 | ||
1257 | ||
1258 | # Keep a trace of the command line. | |
1259 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1260 | # Strip out --silent because we don't want to record it for future runs. | |
1261 | # Also quote any args containing shell meta-characters. | |
1262 | # Make two passes to allow for proper duplicate-argument suppression. | |
1263 | ac_configure_args= | |
1264 | ac_configure_args0= | |
1265 | ac_configure_args1= | |
1266 | ac_sep= | |
1267 | ac_must_keep_next=false | |
1268 | for ac_pass in 1 2 | |
1269 | do | |
1270 | for ac_arg | |
1271 | do | |
1272 | case $ac_arg in | |
1273 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1274 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1275 | | -silent | --silent | --silen | --sile | --sil) | |
1276 | continue ;; | |
1277 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1278 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1279 | esac | |
1280 | case $ac_pass in | |
1281 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1282 | 2) | |
1283 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1284 | if test $ac_must_keep_next = true; then | |
ac1cb8d3 | 1285 | ac_must_keep_next=false # Got value, back to normal. |
a848cd7e | 1286 | else |
ac1cb8d3 VS |
1287 | case $ac_arg in |
1288 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1289 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1290 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1291 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1292 | case "$ac_configure_args0 " in | |
1293 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1294 | esac | |
1295 | ;; | |
1296 | -* ) ac_must_keep_next=true ;; | |
1297 | esac | |
a848cd7e SC |
1298 | fi |
1299 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1300 | # Get rid of the leading space. | |
1301 | ac_sep=" " | |
1302 | ;; | |
1303 | esac | |
1304 | done | |
1305 | done | |
1306 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1307 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1308 | ||
1309 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1310 | # config.log. We remove comments because anyway the quotes in there | |
1311 | # would cause problems or look ugly. | |
1312 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1313 | # such as our DU 5.0 friend, will then `close' the trap. | |
1314 | trap 'exit_status=$? | |
1315 | # Save into config.log some information that might help in debugging. | |
1316 | { | |
1317 | echo | |
1318 | ||
1319 | cat <<\_ASBOX | |
1320 | ## ---------------- ## | |
1321 | ## Cache variables. ## | |
1322 | ## ---------------- ## | |
1323 | _ASBOX | |
1324 | echo | |
1325 | # The following way of writing the cache mishandles newlines in values, | |
1326 | { | |
1327 | (set) 2>&1 | | |
1328 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1329 | *ac_space=\ *) | |
1330 | sed -n \ | |
ac1cb8d3 VS |
1331 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1332 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
a848cd7e SC |
1333 | ;; |
1334 | *) | |
1335 | sed -n \ | |
ac1cb8d3 | 1336 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
1337 | ;; |
1338 | esac; | |
1339 | } | |
1340 | echo | |
1341 | ||
1342 | cat <<\_ASBOX | |
1343 | ## ----------------- ## | |
1344 | ## Output variables. ## | |
1345 | ## ----------------- ## | |
1346 | _ASBOX | |
1347 | echo | |
1348 | for ac_var in $ac_subst_vars | |
1349 | do | |
1350 | eval ac_val=$`echo $ac_var` | |
1351 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1352 | done | sort | |
1353 | echo | |
1354 | ||
1355 | if test -n "$ac_subst_files"; then | |
1356 | cat <<\_ASBOX | |
1357 | ## ------------- ## | |
1358 | ## Output files. ## | |
1359 | ## ------------- ## | |
1360 | _ASBOX | |
1361 | echo | |
1362 | for ac_var in $ac_subst_files | |
1363 | do | |
1364 | eval ac_val=$`echo $ac_var` | |
ac1cb8d3 | 1365 | echo "$ac_var='"'"'$ac_val'"'"'" |
a848cd7e SC |
1366 | done | sort |
1367 | echo | |
1368 | fi | |
1369 | ||
1370 | if test -s confdefs.h; then | |
1371 | cat <<\_ASBOX | |
1372 | ## ----------- ## | |
1373 | ## confdefs.h. ## | |
1374 | ## ----------- ## | |
1375 | _ASBOX | |
1376 | echo | |
1377 | sed "/^$/d" confdefs.h | sort | |
1378 | echo | |
1379 | fi | |
1380 | test "$ac_signal" != 0 && | |
1381 | echo "$as_me: caught signal $ac_signal" | |
1382 | echo "$as_me: exit $exit_status" | |
1383 | } >&5 | |
ac1cb8d3 | 1384 | rm -f core *.core && |
a848cd7e SC |
1385 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1386 | exit $exit_status | |
1387 | ' 0 | |
1388 | for ac_signal in 1 2 13 15; do | |
1389 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1390 | done | |
1391 | ac_signal=0 | |
1392 | ||
1393 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1394 | rm -rf conftest* confdefs.h | |
1395 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1396 | echo >confdefs.h | |
1397 | ||
1398 | # Predefined preprocessor variables. | |
1399 | ||
1400 | cat >>confdefs.h <<_ACEOF | |
1401 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1402 | _ACEOF | |
1403 | ||
1404 | ||
1405 | cat >>confdefs.h <<_ACEOF | |
1406 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1407 | _ACEOF | |
1408 | ||
1409 | ||
1410 | cat >>confdefs.h <<_ACEOF | |
1411 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1412 | _ACEOF | |
1413 | ||
1414 | ||
1415 | cat >>confdefs.h <<_ACEOF | |
1416 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1417 | _ACEOF | |
1418 | ||
1419 | ||
1420 | cat >>confdefs.h <<_ACEOF | |
1421 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1422 | _ACEOF | |
1423 | ||
1424 | ||
1425 | # Let the site file select an alternate cache file if it wants to. | |
1426 | # Prefer explicitly selected file to automatically selected ones. | |
1427 | if test -z "$CONFIG_SITE"; then | |
1428 | if test "x$prefix" != xNONE; then | |
1429 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1430 | else | |
1431 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1432 | fi | |
1433 | fi | |
1434 | for ac_site_file in $CONFIG_SITE; do | |
1435 | if test -r "$ac_site_file"; then | |
1436 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1437 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1438 | sed 's/^/| /' "$ac_site_file" >&5 | |
1439 | . "$ac_site_file" | |
1440 | fi | |
1441 | done | |
1442 | ||
1443 | if test -r "$cache_file"; then | |
1444 | # Some versions of bash will fail to source /dev/null (special | |
1445 | # files actually), so we avoid doing that. | |
1446 | if test -f "$cache_file"; then | |
1447 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1448 | echo "$as_me: loading cache $cache_file" >&6;} | |
1449 | case $cache_file in | |
1450 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1451 | *) . ./$cache_file;; | |
1452 | esac | |
1453 | fi | |
1454 | else | |
1455 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1456 | echo "$as_me: creating cache $cache_file" >&6;} | |
1457 | >$cache_file | |
1458 | fi | |
1459 | ||
1460 | # Check that the precious variables saved in the cache have kept the same | |
1461 | # value. | |
1462 | ac_cache_corrupted=false | |
1463 | for ac_var in `(set) 2>&1 | | |
ac1cb8d3 | 1464 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
a848cd7e SC |
1465 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1466 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1467 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1468 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1469 | case $ac_old_set,$ac_new_set in | |
1470 | set,) | |
1471 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1472 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1473 | ac_cache_corrupted=: ;; | |
1474 | ,set) | |
1475 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1476 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1477 | ac_cache_corrupted=: ;; | |
1478 | ,);; | |
1479 | *) | |
1480 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
ac1cb8d3 | 1481 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
a848cd7e | 1482 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
ac1cb8d3 | 1483 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
a848cd7e | 1484 | echo "$as_me: former value: $ac_old_val" >&2;} |
ac1cb8d3 | 1485 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
a848cd7e | 1486 | echo "$as_me: current value: $ac_new_val" >&2;} |
ac1cb8d3 | 1487 | ac_cache_corrupted=: |
a848cd7e SC |
1488 | fi;; |
1489 | esac | |
1490 | # Pass precious variables to config.status. | |
1491 | if test "$ac_new_set" = set; then | |
1492 | case $ac_new_val in | |
1493 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1494 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1495 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1496 | esac | |
1497 | case " $ac_configure_args " in | |
1498 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1499 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1500 | esac | |
1501 | fi | |
1502 | done | |
1503 | if $ac_cache_corrupted; then | |
1504 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1505 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1506 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1507 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1508 | { (exit 1); exit 1; }; } | |
1509 | fi | |
1510 | ||
1511 | ac_ext=c | |
1512 | ac_cpp='$CPP $CPPFLAGS' | |
1513 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1514 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1515 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1516 | ||
1517 | ||
1518 | ||
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 | ac_aux_dir= | |
1547 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1548 | if test -f $ac_dir/install-sh; then | |
1549 | ac_aux_dir=$ac_dir | |
1550 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1551 | break | |
1552 | elif test -f $ac_dir/install.sh; then | |
1553 | ac_aux_dir=$ac_dir | |
1554 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1555 | break | |
1556 | elif test -f $ac_dir/shtool; then | |
1557 | ac_aux_dir=$ac_dir | |
1558 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1559 | break | |
1560 | fi | |
1561 | done | |
1562 | if test -z "$ac_aux_dir"; then | |
1563 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1564 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1565 | { (exit 1); exit 1; }; } | |
1566 | fi | |
1567 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1568 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1569 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1570 | ||
1571 | # Make sure we can run config.sub. | |
1572 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1573 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1574 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1575 | { (exit 1); exit 1; }; } | |
1576 | ||
1577 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1578 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1579 | if test "${ac_cv_build+set}" = set; then | |
1580 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1581 | else | |
1582 | ac_cv_build_alias=$build_alias | |
1583 | test -z "$ac_cv_build_alias" && | |
1584 | ac_cv_build_alias=`$ac_config_guess` | |
1585 | test -z "$ac_cv_build_alias" && | |
1586 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1587 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1588 | { (exit 1); exit 1; }; } | |
1589 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1590 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1591 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1592 | { (exit 1); exit 1; }; } | |
1593 | ||
1594 | fi | |
1595 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1596 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1597 | build=$ac_cv_build | |
1598 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1599 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1600 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1601 | ||
1602 | ||
1603 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1604 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1605 | if test "${ac_cv_host+set}" = set; then | |
1606 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1607 | else | |
1608 | ac_cv_host_alias=$host_alias | |
1609 | test -z "$ac_cv_host_alias" && | |
1610 | ac_cv_host_alias=$ac_cv_build_alias | |
1611 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1612 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1613 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1614 | { (exit 1); exit 1; }; } | |
1615 | ||
1616 | fi | |
1617 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1618 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1619 | host=$ac_cv_host | |
1620 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1621 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1622 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1623 | ||
1624 | ||
1625 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1626 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1627 | if test "${ac_cv_target+set}" = set; then | |
1628 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1629 | else | |
1630 | ac_cv_target_alias=$target_alias | |
1631 | test "x$ac_cv_target_alias" = "x" && | |
1632 | ac_cv_target_alias=$ac_cv_host_alias | |
1633 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1634 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1635 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1636 | { (exit 1); exit 1; }; } | |
1637 | ||
1638 | fi | |
1639 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1640 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1641 | target=$ac_cv_target | |
1642 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1643 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1644 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1645 | ||
1646 | ||
1647 | # The aliases save the names the user supplied, while $host etc. | |
1648 | # will get canonicalized. | |
1649 | test -n "$target_alias" && | |
1650 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1651 | NONENONEs,x,x, && | |
1652 | program_prefix=${target_alias}- | |
1653 | ||
1654 | ||
1655 | ||
ceec2216 RL |
1656 | wx_major_version_number=2 |
1657 | wx_minor_version_number=5 | |
7714864e | 1658 | wx_release_number=3 |
2cbbc68d | 1659 | wx_subrelease_number=2 |
a848cd7e | 1660 | |
ceec2216 RL |
1661 | WX_RELEASE=$wx_major_version_number.$wx_minor_version_number |
1662 | WX_VERSION=$WX_RELEASE.$wx_release_number | |
1663 | WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number | |
a848cd7e | 1664 | |
ceec2216 | 1665 | WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number |
a848cd7e | 1666 | |
78a9e10d | 1667 | WX_CURRENT=4 |
a848cd7e | 1668 | WX_REVISION=0 |
78a9e10d | 1669 | WX_AGE=1 |
a848cd7e SC |
1670 | |
1671 | ||
1672 | ||
1673 | USE_UNIX=1 | |
1674 | USE_OS2=0 | |
1675 | USE_WIN32=0 | |
1676 | USE_DOS=0 | |
1677 | USE_BEOS=0 | |
1678 | USE_MAC=0 | |
1679 | ||
1680 | USE_AIX= | |
1681 | USE_BSD= USE_DARWIN= USE_FREEBSD= | |
1682 | USE_GNU= USE_HPUX= | |
1683 | USE_LINUX= | |
1684 | USE_NETBSD= | |
1685 | USE_OPENBSD= | |
1686 | USE_OSF= USE_SGI= | |
1687 | USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS= | |
1688 | USE_ULTRIX= | |
1689 | USE_UNIXWARE= | |
1690 | ||
1691 | USE_ALPHA= | |
1692 | ||
1693 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 | |
1694 | ||
1695 | ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11" | |
1696 | ||
1697 | DEFAULT_wxUSE_COCOA=0 | |
1698 | DEFAULT_wxUSE_GTK=0 | |
1699 | DEFAULT_wxUSE_MAC=0 | |
1700 | DEFAULT_wxUSE_MGL=0 | |
1701 | DEFAULT_wxUSE_MICROWIN=0 | |
1702 | DEFAULT_wxUSE_MOTIF=0 | |
1703 | DEFAULT_wxUSE_MSW=0 | |
1704 | DEFAULT_wxUSE_PM=0 | |
1705 | DEFAULT_wxUSE_X11=0 | |
1706 | ||
1707 | DEFAULT_DEFAULT_wxUSE_COCOA=0 | |
1708 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1709 | DEFAULT_DEFAULT_wxUSE_MAC=0 | |
1710 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1711 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 | |
1712 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
1713 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
1714 | DEFAULT_DEFAULT_wxUSE_PM=0 | |
1715 | DEFAULT_DEFAULT_wxUSE_X11=0 | |
1716 | ||
1717 | PROGRAM_EXT= | |
1718 | SO_SUFFIX=so | |
1719 | SAMPLES_RPATH_FLAG= | |
1720 | SAMPLES_RPATH_POSTLINK= | |
1721 | ||
1722 | case "${host}" in | |
1723 | *-hp-hpux* ) | |
1724 | USE_HPUX=1 | |
1725 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1726 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1727 | SO_SUFFIX=sl | |
1728 | cat >>confdefs.h <<\_ACEOF | |
1729 | #define __HPUX__ 1 | |
1730 | _ACEOF | |
1731 | ||
1732 | ;; | |
1733 | *-*-linux* ) | |
1734 | USE_LINUX=1 | |
1735 | cat >>confdefs.h <<\_ACEOF | |
1736 | #define __LINUX__ 1 | |
1737 | _ACEOF | |
1738 | ||
1739 | TMP=`uname -m` | |
1740 | if test "x$TMP" = "xalpha"; then | |
1741 | USE_ALPHA=1 | |
1742 | cat >>confdefs.h <<\_ACEOF | |
1743 | #define __ALPHA__ 1 | |
1744 | _ACEOF | |
1745 | ||
1746 | fi | |
1747 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1748 | ;; | |
1749 | *-*-gnu* | *-*-k*bsd*-gnu ) | |
1750 | USE_GNU=1 | |
1751 | TMP=`uname -m` | |
1752 | if test "x$TMP" = "xalpha"; then | |
1753 | USE_ALPHA=1 | |
1754 | cat >>confdefs.h <<\_ACEOF | |
1755 | #define __ALPHA__ 1 | |
1756 | _ACEOF | |
1757 | ||
1758 | fi | |
1759 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1760 | ;; | |
1761 | *-*-irix5* | *-*-irix6* ) | |
1762 | USE_SGI=1 | |
1763 | USE_SVR4=1 | |
1764 | cat >>confdefs.h <<\_ACEOF | |
1765 | #define __SGI__ 1 | |
1766 | _ACEOF | |
1767 | ||
1768 | cat >>confdefs.h <<\_ACEOF | |
1769 | #define __SVR4__ 1 | |
1770 | _ACEOF | |
1771 | ||
1772 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1773 | ;; | |
1774 | *-*-solaris2* ) | |
1775 | USE_SUN=1 | |
1776 | USE_SOLARIS=1 | |
1777 | USE_SVR4=1 | |
1778 | cat >>confdefs.h <<\_ACEOF | |
1779 | #define __SUN__ 1 | |
1780 | _ACEOF | |
1781 | ||
1782 | cat >>confdefs.h <<\_ACEOF | |
1783 | #define __SOLARIS__ 1 | |
1784 | _ACEOF | |
1785 | ||
1786 | cat >>confdefs.h <<\_ACEOF | |
1787 | #define __SVR4__ 1 | |
1788 | _ACEOF | |
1789 | ||
1790 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1791 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1792 | ;; | |
1793 | *-*-sunos4* ) | |
1794 | USE_SUN=1 | |
1795 | USE_SUNOS=1 | |
1796 | USE_BSD=1 | |
1797 | cat >>confdefs.h <<\_ACEOF | |
1798 | #define __SUN__ 1 | |
1799 | _ACEOF | |
1800 | ||
1801 | cat >>confdefs.h <<\_ACEOF | |
1802 | #define __SUNOS__ 1 | |
1803 | _ACEOF | |
1804 | ||
1805 | cat >>confdefs.h <<\_ACEOF | |
1806 | #define __BSD__ 1 | |
1807 | _ACEOF | |
1808 | ||
1809 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1810 | ;; | |
1811 | *-*-freebsd*) | |
1812 | USE_BSD=1 | |
1813 | USE_FREEBSD=1 | |
1814 | cat >>confdefs.h <<\_ACEOF | |
1815 | #define __FREEBSD__ 1 | |
1816 | _ACEOF | |
1817 | ||
1818 | cat >>confdefs.h <<\_ACEOF | |
1819 | #define __BSD__ 1 | |
1820 | _ACEOF | |
1821 | ||
1822 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1823 | ;; | |
1824 | *-*-openbsd*) | |
1825 | USE_BSD=1 | |
1826 | USE_OPENBSD=1 | |
1827 | cat >>confdefs.h <<\_ACEOF | |
1828 | #define __OPENBSD__ 1 | |
1829 | _ACEOF | |
1830 | ||
1831 | cat >>confdefs.h <<\_ACEOF | |
1832 | #define __BSD__ 1 | |
1833 | _ACEOF | |
1834 | ||
1835 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1836 | ;; | |
1837 | *-*-netbsd*) | |
1838 | USE_BSD=1 | |
1839 | USE_NETBSD=1 | |
1840 | cat >>confdefs.h <<\_ACEOF | |
1841 | #define __NETBSD__ 1 | |
1842 | _ACEOF | |
1843 | ||
1844 | cat >>confdefs.h <<\_ACEOF | |
1845 | #define __BSD__ 1 | |
1846 | _ACEOF | |
1847 | ||
1848 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1849 | ;; | |
1850 | *-*-osf* ) | |
1851 | USE_ALPHA=1 | |
1852 | USE_OSF=1 | |
1853 | cat >>confdefs.h <<\_ACEOF | |
1854 | #define __ALPHA__ 1 | |
1855 | _ACEOF | |
1856 | ||
1857 | cat >>confdefs.h <<\_ACEOF | |
1858 | #define __OSF__ 1 | |
1859 | _ACEOF | |
1860 | ||
1861 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1862 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1863 | ;; | |
1864 | *-*-dgux5* ) | |
1865 | USE_ALPHA=1 | |
1866 | USE_SVR4=1 | |
1867 | cat >>confdefs.h <<\_ACEOF | |
1868 | #define __ALPHA__ 1 | |
1869 | _ACEOF | |
1870 | ||
1871 | cat >>confdefs.h <<\_ACEOF | |
1872 | #define __SVR4__ 1 | |
1873 | _ACEOF | |
1874 | ||
1875 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1876 | ;; | |
1877 | *-*-sysv5* ) | |
1878 | USE_SYSV=1 | |
1879 | USE_SVR4=1 | |
1880 | cat >>confdefs.h <<\_ACEOF | |
1881 | #define __SYSV__ 1 | |
1882 | _ACEOF | |
1883 | ||
1884 | cat >>confdefs.h <<\_ACEOF | |
1885 | #define __SVR4__ 1 | |
1886 | _ACEOF | |
1887 | ||
1888 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1889 | ;; | |
1890 | *-*-aix* ) | |
1891 | USE_AIX=1 | |
1892 | USE_SYSV=1 | |
1893 | USE_SVR4=1 | |
1894 | SO_SUFFIX=a | |
1895 | cat >>confdefs.h <<\_ACEOF | |
1896 | #define __AIX__ 1 | |
1897 | _ACEOF | |
1898 | ||
1899 | cat >>confdefs.h <<\_ACEOF | |
1900 | #define __SYSV__ 1 | |
1901 | _ACEOF | |
1902 | ||
1903 | cat >>confdefs.h <<\_ACEOF | |
1904 | #define __SVR4__ 1 | |
1905 | _ACEOF | |
1906 | ||
1907 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1908 | ;; | |
1909 | ||
1910 | *-*-*UnixWare*) | |
1911 | USE_SYSV=1 | |
1912 | USE_SVR4=1 | |
1913 | USE_UNIXWARE=1 | |
1914 | cat >>confdefs.h <<\_ACEOF | |
1915 | #define __UNIXWARE__ 1 | |
1916 | _ACEOF | |
1917 | ||
1918 | ;; | |
1919 | ||
1920 | *-*-cygwin* | *-*-mingw32* ) | |
1921 | SO_SUFFIX=dll | |
1922 | PROGRAM_EXT=".exe" | |
1923 | RESCOMP=windres | |
1924 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
1925 | ;; | |
1926 | ||
1927 | *-pc-msdosdjgpp ) | |
1928 | USE_UNIX=0 | |
1929 | USE_DOS=1 | |
1930 | cat >>confdefs.h <<\_ACEOF | |
1931 | #define __DOS__ 1 | |
1932 | _ACEOF | |
1933 | ||
1934 | PROGRAM_EXT=".exe" | |
1935 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
1936 | LIBS="$LIBS -lstdc++" | |
1937 | ;; | |
1938 | ||
1939 | *-pc-os2_emx | *-pc-os2-emx ) | |
1940 | cat >>confdefs.h <<\_ACEOF | |
1941 | #define __EMX__ 1 | |
1942 | _ACEOF | |
1943 | ||
1944 | USE_OS2=1 | |
1945 | cat >>confdefs.h <<\_ACEOF | |
1946 | #define __OS2__ 1 | |
1947 | _ACEOF | |
1948 | ||
1949 | PROGRAM_EXT=".exe" | |
1950 | DEFAULT_DEFAULT_wxUSE_PM=1 | |
1951 | CXX=gcc | |
1952 | LDFLAGS="$LDFLAGS -Zcrtdll" | |
1953 | ac_executable_extensions=".exe" | |
1954 | export ac_executable_extensions | |
1955 | ac_save_IFS="$IFS" | |
1956 | IFS='\\' | |
1957 | ac_TEMP_PATH= | |
1958 | for ac_dir in $PATH; do | |
1959 | IFS=$ac_save_IFS | |
1960 | if test -z "$ac_TEMP_PATH"; then | |
1961 | ac_TEMP_PATH="$ac_dir" | |
1962 | else | |
1963 | ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir" | |
1964 | fi | |
1965 | done | |
1966 | export PATH="$ac_TEMP_PATH" | |
1967 | unset ac_TEMP_PATH | |
1968 | ;; | |
1969 | ||
1970 | powerpc-*-darwin* ) | |
1971 | USE_BSD=1 | |
1972 | USE_DARWIN=1 | |
1973 | SO_SUFFIX=dylib | |
1974 | cat >>confdefs.h <<\_ACEOF | |
1975 | #define __BSD__ 1 | |
1976 | _ACEOF | |
1977 | ||
1978 | cat >>confdefs.h <<\_ACEOF | |
1979 | #define __DARWIN__ 1 | |
1980 | _ACEOF | |
1981 | ||
1982 | cat >>confdefs.h <<\_ACEOF | |
1983 | #define __POWERPC__ 1 | |
1984 | _ACEOF | |
1985 | ||
1986 | cat >>confdefs.h <<\_ACEOF | |
1987 | #define TARGET_CARBON 1 | |
1988 | _ACEOF | |
1989 | ||
1990 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1991 | ;; | |
1992 | ||
1993 | *-*-beos* ) | |
1994 | USE_BEOS=1 | |
1995 | cat >>confdefs.h <<\_ACEOF | |
1996 | #define __BEOS__ 1 | |
1997 | _ACEOF | |
1998 | ||
1999 | ;; | |
2000 | ||
2001 | *) | |
2002 | { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5 | |
2003 | echo "$as_me: error: unknown system type ${host}." >&2;} | |
2004 | { (exit 1); exit 1; }; } | |
2005 | esac | |
2006 | ||
2007 | ||
2008 | ||
2009 | ||
2010 | wx_arg_cache_file="configarg.cache" | |
2011 | echo "loading argument cache $wx_arg_cache_file" | |
2012 | rm -f ${wx_arg_cache_file}.tmp | |
2013 | touch ${wx_arg_cache_file}.tmp | |
2014 | touch ${wx_arg_cache_file} | |
2015 | ||
2016 | ||
2017 | DEBUG_CONFIGURE=0 | |
2018 | if test $DEBUG_CONFIGURE = 1; then | |
2019 | DEFAULT_wxUSE_UNIVERSAL=no | |
2020 | DEFAULT_wxUSE_STL=no | |
2021 | ||
2022 | DEFAULT_wxUSE_NANOX=no | |
2023 | ||
2024 | DEFAULT_wxUSE_THREADS=yes | |
2025 | ||
2026 | DEFAULT_wxUSE_SHARED=yes | |
2027 | DEFAULT_wxUSE_OPTIMISE=no | |
2028 | DEFAULT_wxUSE_PROFILE=no | |
2029 | DEFAULT_wxUSE_NO_DEPS=no | |
2030 | DEFAULT_wxUSE_NO_RTTI=no | |
2031 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
ffa0583f | 2032 | DEFAULT_wxUSE_RPATH=yes |
a848cd7e SC |
2033 | DEFAULT_wxUSE_PERMISSIVE=no |
2034 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2035 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2036 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
2037 | DEFAULT_wxUSE_MEM_TRACING=no | |
2038 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2039 | DEFAULT_wxUSE_DMALLOC=no | |
2040 | DEFAULT_wxUSE_APPLE_IEEE=no | |
2041 | ||
2042 | DEFAULT_wxUSE_EXCEPTIONS=no | |
2043 | DEFAULT_wxUSE_LOG=yes | |
2044 | DEFAULT_wxUSE_LOGWINDOW=no | |
2045 | DEFAULT_wxUSE_LOGGUI=no | |
2046 | DEFAULT_wxUSE_LOGDIALOG=no | |
2047 | ||
2048 | DEFAULT_wxUSE_GUI=yes | |
2049 | DEFAULT_wxUSE_CONTROLS=no | |
2050 | ||
2051 | DEFAULT_wxUSE_REGEX=no | |
2052 | DEFAULT_wxUSE_XML=no | |
2053 | DEFAULT_wxUSE_EXPAT=no | |
2054 | DEFAULT_wxUSE_ZLIB=no | |
2055 | DEFAULT_wxUSE_LIBPNG=no | |
2056 | DEFAULT_wxUSE_LIBJPEG=no | |
2057 | DEFAULT_wxUSE_LIBTIFF=no | |
2058 | DEFAULT_wxUSE_LIBXPM=no | |
2059 | DEFAULT_wxUSE_LIBMSPACK=no | |
2060 | DEFAULT_wxUSE_LIBSDL=no | |
d1c38808 | 2061 | DEFAULT_wxUSE_LIBGNOMEPRINT=no |
a848cd7e SC |
2062 | DEFAULT_wxUSE_ODBC=no |
2063 | DEFAULT_wxUSE_OPENGL=no | |
2064 | ||
2065 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no | |
2066 | DEFAULT_wxUSE_SNGLINST_CHECKER=no | |
2067 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
2068 | DEFAULT_wxUSE_CMDLINE_PARSER=no | |
2069 | DEFAULT_wxUSE_DATETIME=no | |
2070 | DEFAULT_wxUSE_TIMER=no | |
2071 | DEFAULT_wxUSE_STOPWATCH=no | |
2072 | DEFAULT_wxUSE_FILE=no | |
2073 | DEFAULT_wxUSE_FFILE=no | |
2074 | DEFAULT_wxUSE_TEXTBUFFER=no | |
2075 | DEFAULT_wxUSE_TEXTFILE=no | |
2076 | DEFAULT_wxUSE_SOUND=no | |
3b57de8b RL |
2077 | DEFAULT_wxUSE_MEDIACTRL=no |
2078 | DEFAULT_wxUSE_DIRECTSHOW=no | |
a848cd7e SC |
2079 | DEFAULT_wxUSE_INTL=no |
2080 | DEFAULT_wxUSE_CONFIG=no | |
2081 | DEFAULT_wxUSE_FONTMAP=no | |
2082 | DEFAULT_wxUSE_STREAMS=no | |
2083 | DEFAULT_wxUSE_SOCKETS=no | |
2084 | DEFAULT_wxUSE_OLE=no | |
2085 | DEFAULT_wxUSE_DATAOBJ=no | |
2086 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
2087 | DEFAULT_wxUSE_JOYSTICK=no | |
2088 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
2089 | DEFAULT_wxUSE_DYNAMIC_LOADER=no | |
2090 | DEFAULT_wxUSE_LONGLONG=no | |
2091 | DEFAULT_wxUSE_GEOMETRY=no | |
2092 | ||
2093 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
2094 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
2095 | DEFAULT_wxUSE_POSTSCRIPT=no | |
2096 | ||
2097 | DEFAULT_wxUSE_CLIPBOARD=no | |
2098 | DEFAULT_wxUSE_TOOLTIPS=no | |
2099 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
2100 | DEFAULT_wxUSE_DRAGIMAGE=no | |
2101 | DEFAULT_wxUSE_SPLINES=no | |
2102 | ||
8a7b1113 | 2103 | DEFAULT_wxUSE_MDI=no |
a848cd7e SC |
2104 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no |
2105 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
2106 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
2107 | ||
2108 | DEFAULT_wxUSE_RESOURCES=no | |
2109 | DEFAULT_wxUSE_CONSTRAINTS=no | |
2110 | DEFAULT_wxUSE_IPC=no | |
2111 | DEFAULT_wxUSE_HELP=no | |
2112 | DEFAULT_wxUSE_MS_HTML_HELP=no | |
2113 | DEFAULT_wxUSE_WXHTML_HELP=no | |
2114 | DEFAULT_wxUSE_TREELAYOUT=no | |
2115 | DEFAULT_wxUSE_METAFILE=no | |
2116 | DEFAULT_wxUSE_MIMETYPE=no | |
2117 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no | |
2118 | DEFAULT_wxUSE_PROTOCOL=no | |
2119 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
2120 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
2121 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
2122 | DEFAULT_wxUSE_URL=no | |
2123 | ||
2124 | DEFAULT_wxUSE_COMMONDLGS=no | |
2125 | DEFAULT_wxUSE_CHOICEDLG=no | |
2126 | DEFAULT_wxUSE_COLOURDLG=no | |
2127 | DEFAULT_wxUSE_DIRDLG=no | |
2128 | DEFAULT_wxUSE_FILEDLG=no | |
2129 | DEFAULT_wxUSE_FINDREPLDLG=no | |
2130 | DEFAULT_wxUSE_FONTDLG=no | |
2131 | DEFAULT_wxUSE_MSGDLG=no | |
2132 | DEFAULT_wxUSE_NUMBERDLG=no | |
2133 | DEFAULT_wxUSE_TEXTDLG=no | |
2134 | DEFAULT_wxUSE_SPLASH=no | |
2135 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
2136 | DEFAULT_wxUSE_PROGRESSDLG=no | |
2137 | DEFAULT_wxUSE_WIZARDDLG=no | |
2138 | ||
2139 | DEFAULT_wxUSE_MENUS=no | |
2140 | DEFAULT_wxUSE_MINIFRAME=no | |
2141 | DEFAULT_wxUSE_HTML=no | |
9a8f0513 | 2142 | DEFAULT_wxUSE_XRC=no |
646b6ec1 | 2143 | DEFAULT_wxUSE_WEBKIT=no |
a848cd7e SC |
2144 | DEFAULT_wxUSE_FILESYSTEM=no |
2145 | DEFAULT_wxUSE_FS_INET=no | |
2146 | DEFAULT_wxUSE_FS_ZIP=no | |
2147 | DEFAULT_wxUSE_BUSYINFO=no | |
2148 | DEFAULT_wxUSE_ZIPSTREAM=no | |
a848cd7e SC |
2149 | DEFAULT_wxUSE_VALIDATORS=no |
2150 | ||
2151 | DEFAULT_wxUSE_ACCEL=no | |
2152 | DEFAULT_wxUSE_BUTTON=no | |
2153 | DEFAULT_wxUSE_BMPBUTTON=no | |
2154 | DEFAULT_wxUSE_CALCTRL=no | |
2155 | DEFAULT_wxUSE_CARET=no | |
2156 | DEFAULT_wxUSE_CHECKBOX=no | |
2157 | DEFAULT_wxUSE_CHECKLST=no | |
2158 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 2159 | DEFAULT_wxUSE_CHOICEBOOK=no |
a848cd7e SC |
2160 | DEFAULT_wxUSE_COMBOBOX=no |
2161 | DEFAULT_wxUSE_DISPLAY=no | |
2162 | DEFAULT_wxUSE_GAUGE=no | |
2163 | DEFAULT_wxUSE_GRID=no | |
2164 | DEFAULT_wxUSE_IMAGLIST=no | |
2165 | DEFAULT_wxUSE_LISTBOOK=no | |
2166 | DEFAULT_wxUSE_LISTBOX=no | |
2167 | DEFAULT_wxUSE_LISTCTRL=no | |
2168 | DEFAULT_wxUSE_NOTEBOOK=no | |
2169 | DEFAULT_wxUSE_RADIOBOX=no | |
2170 | DEFAULT_wxUSE_RADIOBTN=no | |
2171 | DEFAULT_wxUSE_SASH=no | |
2172 | DEFAULT_wxUSE_SCROLLBAR=no | |
2173 | DEFAULT_wxUSE_SLIDER=no | |
2174 | DEFAULT_wxUSE_SPINBTN=no | |
2175 | DEFAULT_wxUSE_SPINCTRL=no | |
2176 | DEFAULT_wxUSE_SPLITTER=no | |
2177 | DEFAULT_wxUSE_STATBMP=no | |
2178 | DEFAULT_wxUSE_STATBOX=no | |
2179 | DEFAULT_wxUSE_STATLINE=no | |
2180 | DEFAULT_wxUSE_STATTEXT=no | |
2181 | DEFAULT_wxUSE_STATUSBAR=yes | |
2182 | DEFAULT_wxUSE_TABDIALOG=no | |
2183 | DEFAULT_wxUSE_TEXTCTRL=no | |
2184 | DEFAULT_wxUSE_TOGGLEBTN=no | |
2185 | DEFAULT_wxUSE_TOOLBAR=no | |
2186 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
2187 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
2188 | DEFAULT_wxUSE_TREECTRL=no | |
2189 | DEFAULT_wxUSE_POPUPWIN=no | |
2190 | DEFAULT_wxUSE_TIPWINDOW=no | |
2191 | ||
2192 | DEFAULT_wxUSE_UNICODE=no | |
2193 | DEFAULT_wxUSE_UNICODE_MSLU=no | |
2194 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2195 | ||
2196 | DEFAULT_wxUSE_PALETTE=no | |
2197 | DEFAULT_wxUSE_IMAGE=no | |
2198 | DEFAULT_wxUSE_GIF=no | |
2199 | DEFAULT_wxUSE_PCX=no | |
2200 | DEFAULT_wxUSE_PNM=no | |
2201 | DEFAULT_wxUSE_IFF=no | |
2202 | DEFAULT_wxUSE_XPM=no | |
2203 | DEFAULT_wxUSE_ICO_CUR=no | |
2204 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2205 | ||
2206 | DEFAULT_wxUSE_MONOLITHIC=no | |
2207 | DEFAULT_wxUSE_PLUGINS=no | |
2208 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
2209 | else | |
2210 | DEFAULT_wxUSE_UNIVERSAL=no | |
2211 | DEFAULT_wxUSE_STL=no | |
2212 | ||
2213 | DEFAULT_wxUSE_NANOX=no | |
2214 | ||
2215 | DEFAULT_wxUSE_THREADS=yes | |
2216 | ||
2217 | DEFAULT_wxUSE_SHARED=yes | |
2218 | DEFAULT_wxUSE_OPTIMISE=yes | |
2219 | DEFAULT_wxUSE_PROFILE=no | |
2220 | DEFAULT_wxUSE_NO_DEPS=no | |
2221 | DEFAULT_wxUSE_NO_RTTI=no | |
2222 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
ffa0583f | 2223 | DEFAULT_wxUSE_RPATH=yes |
a848cd7e SC |
2224 | DEFAULT_wxUSE_PERMISSIVE=no |
2225 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2226 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2227 | DEFAULT_wxUSE_DEBUG_GDB=no | |
2228 | DEFAULT_wxUSE_MEM_TRACING=no | |
2229 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2230 | DEFAULT_wxUSE_DMALLOC=no | |
2231 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
2232 | ||
2233 | DEFAULT_wxUSE_EXCEPTIONS=yes | |
2234 | DEFAULT_wxUSE_LOG=yes | |
2235 | DEFAULT_wxUSE_LOGWINDOW=yes | |
2236 | DEFAULT_wxUSE_LOGGUI=yes | |
2237 | DEFAULT_wxUSE_LOGDIALOG=yes | |
2238 | ||
2239 | DEFAULT_wxUSE_GUI=yes | |
2240 | ||
2241 | DEFAULT_wxUSE_REGEX=yes | |
2242 | DEFAULT_wxUSE_XML=yes | |
2243 | DEFAULT_wxUSE_EXPAT=yes | |
2244 | DEFAULT_wxUSE_ZLIB=yes | |
2245 | DEFAULT_wxUSE_LIBPNG=yes | |
2246 | DEFAULT_wxUSE_LIBJPEG=yes | |
2247 | DEFAULT_wxUSE_LIBTIFF=yes | |
2248 | DEFAULT_wxUSE_LIBXPM=yes | |
2249 | DEFAULT_wxUSE_LIBMSPACK=yes | |
2250 | DEFAULT_wxUSE_LIBSDL=no | |
d1c38808 | 2251 | DEFAULT_wxUSE_LIBGNOMEPRINT=no |
a848cd7e SC |
2252 | DEFAULT_wxUSE_ODBC=no |
2253 | DEFAULT_wxUSE_OPENGL=no | |
2254 | ||
2255 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes | |
2256 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes | |
2257 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
2258 | DEFAULT_wxUSE_CMDLINE_PARSER=yes | |
2259 | DEFAULT_wxUSE_DATETIME=yes | |
2260 | DEFAULT_wxUSE_TIMER=yes | |
2261 | DEFAULT_wxUSE_STOPWATCH=yes | |
2262 | DEFAULT_wxUSE_FILE=yes | |
2263 | DEFAULT_wxUSE_FFILE=yes | |
2264 | DEFAULT_wxUSE_TEXTBUFFER=yes | |
2265 | DEFAULT_wxUSE_TEXTFILE=yes | |
2266 | DEFAULT_wxUSE_SOUND=yes | |
3b57de8b RL |
2267 | DEFAULT_wxUSE_MEDIACTRL=no |
2268 | DEFAULT_wxUSE_DIRECTSHOW=no | |
a848cd7e SC |
2269 | DEFAULT_wxUSE_INTL=yes |
2270 | DEFAULT_wxUSE_CONFIG=yes | |
2271 | DEFAULT_wxUSE_FONTMAP=yes | |
2272 | DEFAULT_wxUSE_STREAMS=yes | |
2273 | DEFAULT_wxUSE_SOCKETS=yes | |
2274 | DEFAULT_wxUSE_OLE=yes | |
2275 | DEFAULT_wxUSE_DATAOBJ=yes | |
2276 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
2277 | DEFAULT_wxUSE_JOYSTICK=yes | |
2278 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
2279 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes | |
2280 | DEFAULT_wxUSE_LONGLONG=yes | |
2281 | DEFAULT_wxUSE_GEOMETRY=yes | |
2282 | ||
2283 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
2284 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
2285 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
2286 | ||
2287 | DEFAULT_wxUSE_CLIPBOARD=yes | |
2288 | DEFAULT_wxUSE_TOOLTIPS=yes | |
2289 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
2290 | DEFAULT_wxUSE_DRAGIMAGE=yes | |
2291 | DEFAULT_wxUSE_SPLINES=yes | |
2292 | ||
8a7b1113 | 2293 | DEFAULT_wxUSE_MDI=yes |
a848cd7e SC |
2294 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes |
2295 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
2296 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
2297 | ||
2298 | DEFAULT_wxUSE_RESOURCES=no | |
2299 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
2300 | DEFAULT_wxUSE_IPC=yes | |
2301 | DEFAULT_wxUSE_HELP=yes | |
2302 | DEFAULT_wxUSE_MS_HTML_HELP=yes | |
2303 | DEFAULT_wxUSE_WXHTML_HELP=yes | |
2304 | DEFAULT_wxUSE_TREELAYOUT=yes | |
2305 | DEFAULT_wxUSE_METAFILE=yes | |
2306 | DEFAULT_wxUSE_MIMETYPE=yes | |
2307 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes | |
2308 | DEFAULT_wxUSE_PROTOCOL=yes | |
2309 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
2310 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
2311 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
2312 | DEFAULT_wxUSE_URL=yes | |
2313 | ||
2314 | DEFAULT_wxUSE_COMMONDLGS=yes | |
2315 | DEFAULT_wxUSE_CHOICEDLG=yes | |
2316 | DEFAULT_wxUSE_COLOURDLG=yes | |
2317 | DEFAULT_wxUSE_DIRDLG=yes | |
2318 | DEFAULT_wxUSE_FILEDLG=yes | |
2319 | DEFAULT_wxUSE_FINDREPLDLG=yes | |
2320 | DEFAULT_wxUSE_FONTDLG=yes | |
2321 | DEFAULT_wxUSE_MSGDLG=yes | |
2322 | DEFAULT_wxUSE_NUMBERDLG=yes | |
2323 | DEFAULT_wxUSE_TEXTDLG=yes | |
2324 | DEFAULT_wxUSE_SPLASH=yes | |
2325 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
2326 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
2327 | DEFAULT_wxUSE_WIZARDDLG=yes | |
2328 | ||
2329 | DEFAULT_wxUSE_MENUS=yes | |
2330 | DEFAULT_wxUSE_MINIFRAME=yes | |
2331 | DEFAULT_wxUSE_HTML=yes | |
9a8f0513 | 2332 | DEFAULT_wxUSE_XRC=yes |
646b6ec1 | 2333 | DEFAULT_wxUSE_WEBKIT=yes |
a848cd7e SC |
2334 | DEFAULT_wxUSE_FILESYSTEM=yes |
2335 | DEFAULT_wxUSE_FS_INET=yes | |
2336 | DEFAULT_wxUSE_FS_ZIP=yes | |
2337 | DEFAULT_wxUSE_BUSYINFO=yes | |
2338 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
a848cd7e SC |
2339 | DEFAULT_wxUSE_VALIDATORS=yes |
2340 | ||
2341 | DEFAULT_wxUSE_ACCEL=yes | |
2342 | DEFAULT_wxUSE_BUTTON=yes | |
2343 | DEFAULT_wxUSE_BMPBUTTON=yes | |
2344 | DEFAULT_wxUSE_CALCTRL=yes | |
2345 | DEFAULT_wxUSE_CARET=yes | |
2346 | DEFAULT_wxUSE_CHECKBOX=yes | |
2347 | DEFAULT_wxUSE_CHECKLST=yes | |
2348 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 2349 | DEFAULT_wxUSE_CHOICEBOOK=yes |
a848cd7e SC |
2350 | DEFAULT_wxUSE_COMBOBOX=yes |
2351 | DEFAULT_wxUSE_DISPLAY=yes | |
2352 | DEFAULT_wxUSE_GAUGE=yes | |
2353 | DEFAULT_wxUSE_GRID=yes | |
2354 | DEFAULT_wxUSE_IMAGLIST=yes | |
2355 | DEFAULT_wxUSE_LISTBOOK=yes | |
2356 | DEFAULT_wxUSE_LISTBOX=yes | |
2357 | DEFAULT_wxUSE_LISTCTRL=yes | |
2358 | DEFAULT_wxUSE_NOTEBOOK=yes | |
2359 | DEFAULT_wxUSE_RADIOBOX=yes | |
2360 | DEFAULT_wxUSE_RADIOBTN=yes | |
2361 | DEFAULT_wxUSE_SASH=yes | |
2362 | DEFAULT_wxUSE_SCROLLBAR=yes | |
2363 | DEFAULT_wxUSE_SLIDER=yes | |
2364 | DEFAULT_wxUSE_SPINBTN=yes | |
2365 | DEFAULT_wxUSE_SPINCTRL=yes | |
2366 | DEFAULT_wxUSE_SPLITTER=yes | |
2367 | DEFAULT_wxUSE_STATBMP=yes | |
2368 | DEFAULT_wxUSE_STATBOX=yes | |
2369 | DEFAULT_wxUSE_STATLINE=yes | |
2370 | DEFAULT_wxUSE_STATTEXT=yes | |
2371 | DEFAULT_wxUSE_STATUSBAR=yes | |
2372 | DEFAULT_wxUSE_TABDIALOG=no | |
2373 | DEFAULT_wxUSE_TEXTCTRL=yes | |
2374 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
2375 | DEFAULT_wxUSE_TOOLBAR=yes | |
2376 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
2377 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
2378 | DEFAULT_wxUSE_TREECTRL=yes | |
2379 | DEFAULT_wxUSE_POPUPWIN=yes | |
2380 | DEFAULT_wxUSE_TIPWINDOW=yes | |
2381 | ||
2382 | DEFAULT_wxUSE_UNICODE=no | |
2383 | DEFAULT_wxUSE_UNICODE_MSLU=yes | |
2384 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2385 | ||
2386 | DEFAULT_wxUSE_PALETTE=yes | |
2387 | DEFAULT_wxUSE_IMAGE=yes | |
2388 | DEFAULT_wxUSE_GIF=yes | |
2389 | DEFAULT_wxUSE_PCX=yes | |
2390 | DEFAULT_wxUSE_IFF=no | |
2391 | DEFAULT_wxUSE_PNM=yes | |
2392 | DEFAULT_wxUSE_XPM=yes | |
2393 | DEFAULT_wxUSE_ICO_CUR=yes | |
2394 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2395 | ||
2396 | DEFAULT_wxUSE_MONOLITHIC=no | |
2397 | DEFAULT_wxUSE_PLUGINS=no | |
2398 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
9f45f08e VS |
2399 | |
2400 | DEFAULT_wxUSE_GTK2=yes | |
a848cd7e SC |
2401 | fi |
2402 | ||
2403 | ||
2404 | ||
2405 | for toolkit in `echo $ALL_TOOLKITS`; do | |
2406 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` | |
2407 | if test "x$LINE" != "x" ; then | |
2408 | has_toolkit_in_cache=1 | |
2409 | eval "DEFAULT_$LINE" | |
2410 | eval "CACHE_$toolkit=1" | |
2411 | fi | |
2412 | done | |
2413 | ||
2414 | ||
2415 | ||
2416 | enablestring= | |
2417 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5 | |
2418 | echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6 | |
2419 | no_cache=0 | |
2420 | # Check whether --enable-gui or --disable-gui was given. | |
2421 | if test "${enable_gui+set}" = set; then | |
2422 | enableval="$enable_gui" | |
2423 | ||
2424 | if test "$enableval" = yes; then | |
2425 | ac_cv_use_gui='wxUSE_GUI=yes' | |
2426 | else | |
2427 | ac_cv_use_gui='wxUSE_GUI=no' | |
2428 | fi | |
2429 | ||
2430 | else | |
2431 | ||
2432 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` | |
2433 | if test "x$LINE" != x ; then | |
2434 | eval "DEFAULT_$LINE" | |
2435 | else | |
2436 | no_cache=1 | |
2437 | fi | |
2438 | ||
2439 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
2440 | ||
2441 | fi; | |
2442 | ||
2443 | eval "$ac_cv_use_gui" | |
2444 | if test "$no_cache" != 1; then | |
2445 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
2446 | fi | |
2447 | ||
2448 | if test "$wxUSE_GUI" = yes; then | |
2449 | echo "$as_me:$LINENO: result: yes" >&5 | |
2450 | echo "${ECHO_T}yes" >&6 | |
2451 | else | |
2452 | echo "$as_me:$LINENO: result: no" >&5 | |
2453 | echo "${ECHO_T}no" >&6 | |
2454 | fi | |
2455 | ||
2456 | ||
2457 | enablestring= | |
2458 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5 | |
2459 | echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6 | |
2460 | no_cache=0 | |
2461 | # Check whether --enable-monolithic or --disable-monolithic was given. | |
2462 | if test "${enable_monolithic+set}" = set; then | |
2463 | enableval="$enable_monolithic" | |
2464 | ||
2465 | if test "$enableval" = yes; then | |
2466 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes' | |
2467 | else | |
2468 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=no' | |
2469 | fi | |
2470 | ||
2471 | else | |
2472 | ||
2473 | LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}` | |
2474 | if test "x$LINE" != x ; then | |
2475 | eval "DEFAULT_$LINE" | |
2476 | else | |
2477 | no_cache=1 | |
2478 | fi | |
2479 | ||
2480 | ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC | |
2481 | ||
2482 | fi; | |
2483 | ||
2484 | eval "$ac_cv_use_monolithic" | |
2485 | if test "$no_cache" != 1; then | |
2486 | echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp | |
2487 | fi | |
2488 | ||
2489 | if test "$wxUSE_MONOLITHIC" = yes; then | |
2490 | echo "$as_me:$LINENO: result: yes" >&5 | |
2491 | echo "${ECHO_T}yes" >&6 | |
2492 | else | |
2493 | echo "$as_me:$LINENO: result: no" >&5 | |
2494 | echo "${ECHO_T}no" >&6 | |
2495 | fi | |
2496 | ||
2497 | ||
2498 | enablestring= | |
2499 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5 | |
2500 | echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6 | |
2501 | no_cache=0 | |
2502 | # Check whether --enable-plugins or --disable-plugins was given. | |
2503 | if test "${enable_plugins+set}" = set; then | |
2504 | enableval="$enable_plugins" | |
2505 | ||
2506 | if test "$enableval" = yes; then | |
2507 | ac_cv_use_plugins='wxUSE_PLUGINS=yes' | |
2508 | else | |
2509 | ac_cv_use_plugins='wxUSE_PLUGINS=no' | |
2510 | fi | |
2511 | ||
2512 | else | |
2513 | ||
2514 | LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}` | |
2515 | if test "x$LINE" != x ; then | |
2516 | eval "DEFAULT_$LINE" | |
2517 | else | |
2518 | no_cache=1 | |
2519 | fi | |
2520 | ||
2521 | ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS | |
2522 | ||
2523 | fi; | |
2524 | ||
2525 | eval "$ac_cv_use_plugins" | |
2526 | if test "$no_cache" != 1; then | |
2527 | echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp | |
2528 | fi | |
2529 | ||
2530 | if test "$wxUSE_PLUGINS" = yes; then | |
2531 | echo "$as_me:$LINENO: result: yes" >&5 | |
2532 | echo "${ECHO_T}yes" >&6 | |
2533 | else | |
2534 | echo "$as_me:$LINENO: result: no" >&5 | |
2535 | echo "${ECHO_T}no" >&6 | |
2536 | fi | |
2537 | ||
2538 | ||
2539 | if test "$wxUSE_GUI" = "yes"; then | |
2540 | ||
2541 | ||
2542 | enablestring= | |
2543 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5 | |
2544 | echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6 | |
2545 | no_cache=0 | |
2546 | # Check whether --enable-universal or --disable-universal was given. | |
2547 | if test "${enable_universal+set}" = set; then | |
2548 | enableval="$enable_universal" | |
2549 | ||
2550 | if test "$enableval" = yes; then | |
2551 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
2552 | else | |
2553 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
2554 | fi | |
2555 | ||
2556 | else | |
2557 | ||
2558 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
2559 | if test "x$LINE" != x ; then | |
2560 | eval "DEFAULT_$LINE" | |
2561 | else | |
2562 | no_cache=1 | |
2563 | fi | |
2564 | ||
2565 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
2566 | ||
2567 | fi; | |
2568 | ||
2569 | eval "$ac_cv_use_universal" | |
2570 | if test "$no_cache" != 1; then | |
2571 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
2572 | fi | |
2573 | ||
2574 | if test "$wxUSE_UNIVERSAL" = yes; then | |
2575 | echo "$as_me:$LINENO: result: yes" >&5 | |
2576 | echo "${ECHO_T}yes" >&6 | |
2577 | else | |
2578 | echo "$as_me:$LINENO: result: no" >&5 | |
2579 | echo "${ECHO_T}no" >&6 | |
2580 | fi | |
2581 | ||
2582 | ||
2583 | # Check whether --with-gtk or --without-gtk was given. | |
2584 | if test "${with_gtk+set}" = set; then | |
2585 | withval="$with_gtk" | |
2586 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
2587 | fi; | |
2588 | ||
2589 | # Check whether --with-motif or --without-motif was given. | |
2590 | if test "${with_motif+set}" = set; then | |
2591 | withval="$with_motif" | |
2592 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
2593 | fi; | |
2594 | ||
2595 | # Check whether --with-mac or --without-mac was given. | |
2596 | if test "${with_mac+set}" = set; then | |
2597 | withval="$with_mac" | |
c228d3a4 | 2598 | wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1 |
a848cd7e SC |
2599 | fi; |
2600 | ||
2601 | # Check whether --with-cocoa or --without-cocoa was given. | |
2602 | if test "${with_cocoa+set}" = set; then | |
2603 | withval="$with_cocoa" | |
c228d3a4 | 2604 | wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1 |
a848cd7e SC |
2605 | fi; |
2606 | ||
2607 | # Check whether --with-wine or --without-wine was given. | |
2608 | if test "${with_wine+set}" = set; then | |
2609 | withval="$with_wine" | |
2610 | wxUSE_WINE="$withval" CACHE_WINE=1 | |
2611 | fi; | |
2612 | ||
2613 | # Check whether --with-msw or --without-msw was given. | |
2614 | if test "${with_msw+set}" = set; then | |
2615 | withval="$with_msw" | |
2616 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 | |
2617 | fi; | |
2618 | ||
2619 | # Check whether --with-pm or --without-pm was given. | |
2620 | if test "${with_pm+set}" = set; then | |
2621 | withval="$with_pm" | |
2622 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
2623 | fi; | |
2624 | ||
2625 | # Check whether --with-mgl or --without-mgl was given. | |
2626 | if test "${with_mgl+set}" = set; then | |
2627 | withval="$with_mgl" | |
2628 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
2629 | fi; | |
2630 | ||
2631 | # Check whether --with-microwin or --without-microwin was given. | |
2632 | if test "${with_microwin+set}" = set; then | |
2633 | withval="$with_microwin" | |
2634 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
2635 | fi; | |
2636 | ||
2637 | # Check whether --with-x11 or --without-x11 was given. | |
2638 | if test "${with_x11+set}" = set; then | |
2639 | withval="$with_x11" | |
2640 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 | |
2641 | fi; | |
2642 | ||
2643 | enablestring= | |
2644 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5 | |
2645 | echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6 | |
2646 | no_cache=0 | |
2647 | # Check whether --enable-nanox or --disable-nanox was given. | |
2648 | if test "${enable_nanox+set}" = set; then | |
2649 | enableval="$enable_nanox" | |
2650 | ||
2651 | if test "$enableval" = yes; then | |
2652 | ac_cv_use_nanox='wxUSE_NANOX=yes' | |
2653 | else | |
2654 | ac_cv_use_nanox='wxUSE_NANOX=no' | |
2655 | fi | |
2656 | ||
2657 | else | |
2658 | ||
2659 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` | |
2660 | if test "x$LINE" != x ; then | |
2661 | eval "DEFAULT_$LINE" | |
2662 | else | |
2663 | no_cache=1 | |
2664 | fi | |
2665 | ||
2666 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX | |
2667 | ||
2668 | fi; | |
2669 | ||
2670 | eval "$ac_cv_use_nanox" | |
2671 | if test "$no_cache" != 1; then | |
2672 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp | |
2673 | fi | |
2674 | ||
2675 | if test "$wxUSE_NANOX" = yes; then | |
2676 | echo "$as_me:$LINENO: result: yes" >&5 | |
2677 | echo "${ECHO_T}yes" >&6 | |
2678 | else | |
2679 | echo "$as_me:$LINENO: result: no" >&5 | |
2680 | echo "${ECHO_T}no" >&6 | |
2681 | fi | |
2682 | ||
2683 | ||
2684 | ||
2685 | enablestring= | |
2686 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5 | |
2687 | echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6 | |
2688 | no_cache=0 | |
2689 | # Check whether --enable-gtk2 or --disable-gtk2 was given. | |
2690 | if test "${enable_gtk2+set}" = set; then | |
2691 | enableval="$enable_gtk2" | |
2692 | ||
2693 | if test "$enableval" = yes; then | |
2694 | ac_cv_use_gtk2='wxUSE_GTK2=yes' | |
2695 | else | |
2696 | ac_cv_use_gtk2='wxUSE_GTK2=no' | |
2697 | fi | |
2698 | ||
2699 | else | |
2700 | ||
2701 | LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}` | |
2702 | if test "x$LINE" != x ; then | |
2703 | eval "DEFAULT_$LINE" | |
2704 | else | |
2705 | no_cache=1 | |
2706 | fi | |
2707 | ||
2708 | ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2 | |
2709 | ||
2710 | fi; | |
2711 | ||
2712 | eval "$ac_cv_use_gtk2" | |
2713 | if test "$no_cache" != 1; then | |
2714 | echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp | |
2715 | fi | |
2716 | ||
2717 | if test "$wxUSE_GTK2" = yes; then | |
2718 | echo "$as_me:$LINENO: result: yes" >&5 | |
2719 | echo "${ECHO_T}yes" >&6 | |
2720 | else | |
2721 | echo "$as_me:$LINENO: result: no" >&5 | |
2722 | echo "${ECHO_T}no" >&6 | |
2723 | fi | |
2724 | ||
2725 | ||
2726 | enablestring= | |
2727 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5 | |
2728 | echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6 | |
2729 | no_cache=0 | |
2730 | # Check whether --enable-gpe or --disable-gpe was given. | |
2731 | if test "${enable_gpe+set}" = set; then | |
2732 | enableval="$enable_gpe" | |
2733 | ||
2734 | if test "$enableval" = yes; then | |
2735 | ac_cv_use_gpe='wxUSE_GPE=yes' | |
2736 | else | |
2737 | ac_cv_use_gpe='wxUSE_GPE=no' | |
2738 | fi | |
2739 | ||
2740 | else | |
2741 | ||
2742 | LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}` | |
2743 | if test "x$LINE" != x ; then | |
2744 | eval "DEFAULT_$LINE" | |
2745 | else | |
2746 | no_cache=1 | |
2747 | fi | |
2748 | ||
2749 | ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE | |
2750 | ||
2751 | fi; | |
2752 | ||
2753 | eval "$ac_cv_use_gpe" | |
2754 | if test "$no_cache" != 1; then | |
2755 | echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp | |
2756 | fi | |
2757 | ||
2758 | if test "$wxUSE_GPE" = yes; then | |
2759 | echo "$as_me:$LINENO: result: yes" >&5 | |
2760 | echo "${ECHO_T}yes" >&6 | |
2761 | else | |
2762 | echo "$as_me:$LINENO: result: no" >&5 | |
2763 | echo "${ECHO_T}no" >&6 | |
2764 | fi | |
2765 | ||
2766 | ||
2767 | ||
2768 | echo "$as_me:$LINENO: checking for --with-libpng" >&5 | |
2769 | echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6 | |
2770 | no_cache=0 | |
2771 | ||
2772 | # Check whether --with-libpng or --without-libpng was given. | |
2773 | if test "${with_libpng+set}" = set; then | |
2774 | withval="$with_libpng" | |
2775 | ||
2776 | if test "$withval" = yes; then | |
2777 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' | |
2778 | elif test "$withval" = no; then | |
2779 | ac_cv_use_libpng='wxUSE_LIBPNG=no' | |
2780 | elif test "$withval" = sys; then | |
2781 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
2782 | elif test "$withval" = builtin; then | |
2783 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
2784 | else | |
2785 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2786 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2787 | { (exit 1); exit 1; }; } | |
2788 | fi | |
2789 | ||
2790 | else | |
2791 | ||
2792 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` | |
2793 | if test "x$LINE" != x ; then | |
2794 | eval "DEFAULT_$LINE" | |
2795 | else | |
2796 | no_cache=1 | |
2797 | fi | |
2798 | ||
2799 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG | |
2800 | ||
2801 | fi; | |
2802 | ||
2803 | eval "$ac_cv_use_libpng" | |
2804 | if test "$no_cache" != 1; then | |
2805 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp | |
2806 | fi | |
2807 | ||
2808 | if test "$wxUSE_LIBPNG" = yes; then | |
2809 | echo "$as_me:$LINENO: result: yes" >&5 | |
2810 | echo "${ECHO_T}yes" >&6 | |
2811 | elif test "$wxUSE_LIBPNG" = no; then | |
2812 | echo "$as_me:$LINENO: result: no" >&5 | |
2813 | echo "${ECHO_T}no" >&6 | |
2814 | elif test "$wxUSE_LIBPNG" = sys; then | |
2815 | echo "$as_me:$LINENO: result: system version" >&5 | |
2816 | echo "${ECHO_T}system version" >&6 | |
2817 | elif test "$wxUSE_LIBPNG" = builtin; then | |
2818 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2819 | echo "${ECHO_T}builtin version" >&6 | |
2820 | else | |
2821 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2822 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2823 | { (exit 1); exit 1; }; } | |
2824 | fi | |
2825 | ||
2826 | ||
2827 | echo "$as_me:$LINENO: checking for --with-libjpeg" >&5 | |
2828 | echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6 | |
2829 | no_cache=0 | |
2830 | ||
2831 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
2832 | if test "${with_libjpeg+set}" = set; then | |
2833 | withval="$with_libjpeg" | |
2834 | ||
2835 | if test "$withval" = yes; then | |
2836 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' | |
2837 | elif test "$withval" = no; then | |
2838 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' | |
2839 | elif test "$withval" = sys; then | |
2840 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
2841 | elif test "$withval" = builtin; then | |
2842 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
2843 | else | |
2844 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2845 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2846 | { (exit 1); exit 1; }; } | |
2847 | fi | |
2848 | ||
2849 | else | |
2850 | ||
2851 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` | |
2852 | if test "x$LINE" != x ; then | |
2853 | eval "DEFAULT_$LINE" | |
2854 | else | |
2855 | no_cache=1 | |
2856 | fi | |
2857 | ||
2858 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG | |
2859 | ||
2860 | fi; | |
2861 | ||
2862 | eval "$ac_cv_use_libjpeg" | |
2863 | if test "$no_cache" != 1; then | |
2864 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp | |
2865 | fi | |
2866 | ||
2867 | if test "$wxUSE_LIBJPEG" = yes; then | |
2868 | echo "$as_me:$LINENO: result: yes" >&5 | |
2869 | echo "${ECHO_T}yes" >&6 | |
2870 | elif test "$wxUSE_LIBJPEG" = no; then | |
2871 | echo "$as_me:$LINENO: result: no" >&5 | |
2872 | echo "${ECHO_T}no" >&6 | |
2873 | elif test "$wxUSE_LIBJPEG" = sys; then | |
2874 | echo "$as_me:$LINENO: result: system version" >&5 | |
2875 | echo "${ECHO_T}system version" >&6 | |
2876 | elif test "$wxUSE_LIBJPEG" = builtin; then | |
2877 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2878 | echo "${ECHO_T}builtin version" >&6 | |
2879 | else | |
2880 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2881 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2882 | { (exit 1); exit 1; }; } | |
2883 | fi | |
2884 | ||
2885 | ||
2886 | echo "$as_me:$LINENO: checking for --with-libtiff" >&5 | |
2887 | echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6 | |
2888 | no_cache=0 | |
2889 | ||
2890 | # Check whether --with-libtiff or --without-libtiff was given. | |
2891 | if test "${with_libtiff+set}" = set; then | |
2892 | withval="$with_libtiff" | |
2893 | ||
2894 | if test "$withval" = yes; then | |
2895 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' | |
2896 | elif test "$withval" = no; then | |
2897 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' | |
2898 | elif test "$withval" = sys; then | |
2899 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
2900 | elif test "$withval" = builtin; then | |
2901 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
2902 | else | |
2903 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2904 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2905 | { (exit 1); exit 1; }; } | |
2906 | fi | |
2907 | ||
2908 | else | |
2909 | ||
2910 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` | |
2911 | if test "x$LINE" != x ; then | |
2912 | eval "DEFAULT_$LINE" | |
2913 | else | |
2914 | no_cache=1 | |
2915 | fi | |
2916 | ||
2917 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF | |
2918 | ||
2919 | fi; | |
2920 | ||
2921 | eval "$ac_cv_use_libtiff" | |
2922 | if test "$no_cache" != 1; then | |
2923 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp | |
2924 | fi | |
2925 | ||
2926 | if test "$wxUSE_LIBTIFF" = yes; then | |
2927 | echo "$as_me:$LINENO: result: yes" >&5 | |
2928 | echo "${ECHO_T}yes" >&6 | |
2929 | elif test "$wxUSE_LIBTIFF" = no; then | |
2930 | echo "$as_me:$LINENO: result: no" >&5 | |
2931 | echo "${ECHO_T}no" >&6 | |
2932 | elif test "$wxUSE_LIBTIFF" = sys; then | |
2933 | echo "$as_me:$LINENO: result: system version" >&5 | |
2934 | echo "${ECHO_T}system version" >&6 | |
2935 | elif test "$wxUSE_LIBTIFF" = builtin; then | |
2936 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2937 | echo "${ECHO_T}builtin version" >&6 | |
2938 | else | |
2939 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2940 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2941 | { (exit 1); exit 1; }; } | |
2942 | fi | |
2943 | ||
2944 | ||
2945 | echo "$as_me:$LINENO: checking for --with-libxpm" >&5 | |
2946 | echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6 | |
2947 | no_cache=0 | |
2948 | ||
2949 | # Check whether --with-libxpm or --without-libxpm was given. | |
2950 | if test "${with_libxpm+set}" = set; then | |
2951 | withval="$with_libxpm" | |
2952 | ||
2953 | if test "$withval" = yes; then | |
2954 | ac_cv_use_libxpm='wxUSE_LIBXPM=yes' | |
2955 | elif test "$withval" = no; then | |
2956 | ac_cv_use_libxpm='wxUSE_LIBXPM=no' | |
2957 | elif test "$withval" = sys; then | |
2958 | ac_cv_use_libxpm='wxUSE_LIBXPM=sys' | |
2959 | elif test "$withval" = builtin; then | |
2960 | ac_cv_use_libxpm='wxUSE_LIBXPM=builtin' | |
2961 | else | |
2962 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
2963 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
2964 | { (exit 1); exit 1; }; } | |
2965 | fi | |
2966 | ||
2967 | else | |
2968 | ||
2969 | LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}` | |
2970 | if test "x$LINE" != x ; then | |
2971 | eval "DEFAULT_$LINE" | |
2972 | else | |
2973 | no_cache=1 | |
2974 | fi | |
2975 | ||
2976 | ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM | |
2977 | ||
2978 | fi; | |
2979 | ||
2980 | eval "$ac_cv_use_libxpm" | |
2981 | if test "$no_cache" != 1; then | |
2982 | echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp | |
2983 | fi | |
2984 | ||
2985 | if test "$wxUSE_LIBXPM" = yes; then | |
2986 | echo "$as_me:$LINENO: result: yes" >&5 | |
2987 | echo "${ECHO_T}yes" >&6 | |
2988 | elif test "$wxUSE_LIBXPM" = no; then | |
2989 | echo "$as_me:$LINENO: result: no" >&5 | |
2990 | echo "${ECHO_T}no" >&6 | |
2991 | elif test "$wxUSE_LIBXPM" = sys; then | |
2992 | echo "$as_me:$LINENO: result: system version" >&5 | |
2993 | echo "${ECHO_T}system version" >&6 | |
2994 | elif test "$wxUSE_LIBXPM" = builtin; then | |
2995 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2996 | echo "${ECHO_T}builtin version" >&6 | |
2997 | else | |
2998 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
2999 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
3000 | { (exit 1); exit 1; }; } | |
3001 | fi | |
3002 | ||
3003 | ||
3004 | echo "$as_me:$LINENO: checking for --with-libmspack" >&5 | |
3005 | echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6 | |
3006 | no_cache=0 | |
3007 | ||
3008 | # Check whether --with-libmspack or --without-libmspack was given. | |
3009 | if test "${with_libmspack+set}" = set; then | |
3010 | withval="$with_libmspack" | |
3011 | ||
3012 | if test "$withval" = yes; then | |
3013 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes' | |
3014 | else | |
3015 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=no' | |
3016 | fi | |
3017 | ||
3018 | else | |
3019 | ||
3020 | LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}` | |
3021 | if test "x$LINE" != x ; then | |
3022 | eval "DEFAULT_$LINE" | |
3023 | else | |
3024 | no_cache=1 | |
3025 | fi | |
3026 | ||
3027 | ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK | |
3028 | ||
3029 | fi; | |
3030 | ||
3031 | eval "$ac_cv_use_libmspack" | |
3032 | if test "$no_cache" != 1; then | |
3033 | echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp | |
3034 | fi | |
3035 | ||
3036 | if test "$wxUSE_LIBMSPACK" = yes; then | |
3037 | echo "$as_me:$LINENO: result: yes" >&5 | |
3038 | echo "${ECHO_T}yes" >&6 | |
3039 | else | |
3040 | echo "$as_me:$LINENO: result: no" >&5 | |
3041 | echo "${ECHO_T}no" >&6 | |
3042 | fi | |
3043 | ||
3044 | ||
3045 | echo "$as_me:$LINENO: checking for --with-sdl" >&5 | |
3046 | echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6 | |
3047 | no_cache=0 | |
3048 | ||
3049 | # Check whether --with-sdl or --without-sdl was given. | |
3050 | if test "${with_sdl+set}" = set; then | |
3051 | withval="$with_sdl" | |
3052 | ||
3053 | if test "$withval" = yes; then | |
3054 | ac_cv_use_sdl='wxUSE_LIBSDL=yes' | |
3055 | else | |
3056 | ac_cv_use_sdl='wxUSE_LIBSDL=no' | |
3057 | fi | |
3058 | ||
3059 | else | |
3060 | ||
3061 | LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}` | |
3062 | if test "x$LINE" != x ; then | |
3063 | eval "DEFAULT_$LINE" | |
3064 | else | |
3065 | no_cache=1 | |
3066 | fi | |
3067 | ||
3068 | ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL | |
3069 | ||
3070 | fi; | |
3071 | ||
3072 | eval "$ac_cv_use_sdl" | |
3073 | if test "$no_cache" != 1; then | |
3074 | echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp | |
3075 | fi | |
3076 | ||
3077 | if test "$wxUSE_LIBSDL" = yes; then | |
3078 | echo "$as_me:$LINENO: result: yes" >&5 | |
3079 | echo "${ECHO_T}yes" >&6 | |
3080 | else | |
3081 | echo "$as_me:$LINENO: result: no" >&5 | |
3082 | echo "${ECHO_T}no" >&6 | |
3083 | fi | |
3084 | ||
3085 | ||
d1c38808 VZ |
3086 | echo "$as_me:$LINENO: checking for --with-gnomeprint" >&5 |
3087 | echo $ECHO_N "checking for --with-gnomeprint... $ECHO_C" >&6 | |
3088 | no_cache=0 | |
3089 | ||
3090 | # Check whether --with-gnomeprint or --without-gnomeprint was given. | |
3091 | if test "${with_gnomeprint+set}" = set; then | |
3092 | withval="$with_gnomeprint" | |
3093 | ||
3094 | if test "$withval" = yes; then | |
3095 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes' | |
3096 | else | |
3097 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no' | |
3098 | fi | |
3099 | ||
3100 | else | |
3101 | ||
3102 | LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}` | |
3103 | if test "x$LINE" != x ; then | |
3104 | eval "DEFAULT_$LINE" | |
3105 | else | |
3106 | no_cache=1 | |
3107 | fi | |
3108 | ||
3109 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT | |
3110 | ||
3111 | fi; | |
3112 | ||
3113 | eval "$ac_cv_use_gnomeprint" | |
3114 | if test "$no_cache" != 1; then | |
3115 | echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp | |
3116 | fi | |
3117 | ||
3118 | if test "$wxUSE_LIBGNOMEPRINT" = yes; then | |
3119 | echo "$as_me:$LINENO: result: yes" >&5 | |
3120 | echo "${ECHO_T}yes" >&6 | |
3121 | else | |
3122 | echo "$as_me:$LINENO: result: no" >&5 | |
3123 | echo "${ECHO_T}no" >&6 | |
3124 | fi | |
3125 | ||
3126 | ||
a848cd7e SC |
3127 | echo "$as_me:$LINENO: checking for --with-opengl" >&5 |
3128 | echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6 | |
3129 | no_cache=0 | |
3130 | ||
3131 | # Check whether --with-opengl or --without-opengl was given. | |
3132 | if test "${with_opengl+set}" = set; then | |
3133 | withval="$with_opengl" | |
3134 | ||
3135 | if test "$withval" = yes; then | |
3136 | ac_cv_use_opengl='wxUSE_OPENGL=yes' | |
3137 | else | |
3138 | ac_cv_use_opengl='wxUSE_OPENGL=no' | |
3139 | fi | |
3140 | ||
3141 | else | |
3142 | ||
3143 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` | |
3144 | if test "x$LINE" != x ; then | |
3145 | eval "DEFAULT_$LINE" | |
3146 | else | |
3147 | no_cache=1 | |
3148 | fi | |
3149 | ||
3150 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL | |
3151 | ||
3152 | fi; | |
3153 | ||
3154 | eval "$ac_cv_use_opengl" | |
3155 | if test "$no_cache" != 1; then | |
3156 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp | |
3157 | fi | |
3158 | ||
3159 | if test "$wxUSE_OPENGL" = yes; then | |
3160 | echo "$as_me:$LINENO: result: yes" >&5 | |
3161 | echo "${ECHO_T}yes" >&6 | |
3162 | else | |
3163 | echo "$as_me:$LINENO: result: no" >&5 | |
3164 | echo "${ECHO_T}no" >&6 | |
3165 | fi | |
3166 | ||
3167 | ||
3168 | fi | |
3169 | ||
3170 | ||
3171 | echo "$as_me:$LINENO: checking for --with-dmalloc" >&5 | |
3172 | echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6 | |
3173 | no_cache=0 | |
3174 | ||
3175 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
3176 | if test "${with_dmalloc+set}" = set; then | |
3177 | withval="$with_dmalloc" | |
3178 | ||
3179 | if test "$withval" = yes; then | |
3180 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' | |
3181 | else | |
3182 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' | |
3183 | fi | |
3184 | ||
3185 | else | |
3186 | ||
3187 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` | |
3188 | if test "x$LINE" != x ; then | |
3189 | eval "DEFAULT_$LINE" | |
3190 | else | |
3191 | no_cache=1 | |
3192 | fi | |
3193 | ||
3194 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC | |
3195 | ||
3196 | fi; | |
3197 | ||
3198 | eval "$ac_cv_use_dmalloc" | |
3199 | if test "$no_cache" != 1; then | |
3200 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp | |
3201 | fi | |
3202 | ||
3203 | if test "$wxUSE_DMALLOC" = yes; then | |
3204 | echo "$as_me:$LINENO: result: yes" >&5 | |
3205 | echo "${ECHO_T}yes" >&6 | |
3206 | else | |
3207 | echo "$as_me:$LINENO: result: no" >&5 | |
3208 | echo "${ECHO_T}no" >&6 | |
3209 | fi | |
3210 | ||
3211 | ||
3212 | echo "$as_me:$LINENO: checking for --with-regex" >&5 | |
3213 | echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6 | |
3214 | no_cache=0 | |
3215 | ||
3216 | # Check whether --with-regex or --without-regex was given. | |
3217 | if test "${with_regex+set}" = set; then | |
3218 | withval="$with_regex" | |
3219 | ||
3220 | if test "$withval" = yes; then | |
3221 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
3222 | elif test "$withval" = no; then | |
3223 | ac_cv_use_regex='wxUSE_REGEX=no' | |
3224 | elif test "$withval" = sys; then | |
3225 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
3226 | elif test "$withval" = builtin; then | |
3227 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3228 | else | |
3229 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3230 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3231 | { (exit 1); exit 1; }; } | |
3232 | fi | |
3233 | ||
3234 | else | |
3235 | ||
3236 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
3237 | if test "x$LINE" != x ; then | |
3238 | eval "DEFAULT_$LINE" | |
3239 | else | |
3240 | no_cache=1 | |
3241 | fi | |
3242 | ||
3243 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
3244 | ||
3245 | fi; | |
3246 | ||
3247 | eval "$ac_cv_use_regex" | |
3248 | if test "$no_cache" != 1; then | |
3249 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
3250 | fi | |
3251 | ||
3252 | if test "$wxUSE_REGEX" = yes; then | |
3253 | echo "$as_me:$LINENO: result: yes" >&5 | |
3254 | echo "${ECHO_T}yes" >&6 | |
3255 | elif test "$wxUSE_REGEX" = no; then | |
3256 | echo "$as_me:$LINENO: result: no" >&5 | |
3257 | echo "${ECHO_T}no" >&6 | |
3258 | elif test "$wxUSE_REGEX" = sys; then | |
3259 | echo "$as_me:$LINENO: result: system version" >&5 | |
3260 | echo "${ECHO_T}system version" >&6 | |
3261 | elif test "$wxUSE_REGEX" = builtin; then | |
3262 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3263 | echo "${ECHO_T}builtin version" >&6 | |
3264 | else | |
3265 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3266 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3267 | { (exit 1); exit 1; }; } | |
3268 | fi | |
3269 | ||
3270 | ||
3271 | echo "$as_me:$LINENO: checking for --with-zlib" >&5 | |
3272 | echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6 | |
3273 | no_cache=0 | |
3274 | ||
3275 | # Check whether --with-zlib or --without-zlib was given. | |
3276 | if test "${with_zlib+set}" = set; then | |
3277 | withval="$with_zlib" | |
3278 | ||
3279 | if test "$withval" = yes; then | |
3280 | ac_cv_use_zlib='wxUSE_ZLIB=yes' | |
3281 | elif test "$withval" = no; then | |
3282 | ac_cv_use_zlib='wxUSE_ZLIB=no' | |
3283 | elif test "$withval" = sys; then | |
3284 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
3285 | elif test "$withval" = builtin; then | |
3286 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
3287 | else | |
3288 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3289 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3290 | { (exit 1); exit 1; }; } | |
3291 | fi | |
3292 | ||
3293 | else | |
3294 | ||
3295 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` | |
3296 | if test "x$LINE" != x ; then | |
3297 | eval "DEFAULT_$LINE" | |
3298 | else | |
3299 | no_cache=1 | |
3300 | fi | |
3301 | ||
3302 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB | |
3303 | ||
3304 | fi; | |
3305 | ||
3306 | eval "$ac_cv_use_zlib" | |
3307 | if test "$no_cache" != 1; then | |
3308 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp | |
3309 | fi | |
3310 | ||
3311 | if test "$wxUSE_ZLIB" = yes; then | |
3312 | echo "$as_me:$LINENO: result: yes" >&5 | |
3313 | echo "${ECHO_T}yes" >&6 | |
3314 | elif test "$wxUSE_ZLIB" = no; then | |
3315 | echo "$as_me:$LINENO: result: no" >&5 | |
3316 | echo "${ECHO_T}no" >&6 | |
3317 | elif test "$wxUSE_ZLIB" = sys; then | |
3318 | echo "$as_me:$LINENO: result: system version" >&5 | |
3319 | echo "${ECHO_T}system version" >&6 | |
3320 | elif test "$wxUSE_ZLIB" = builtin; then | |
3321 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3322 | echo "${ECHO_T}builtin version" >&6 | |
3323 | else | |
3324 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3325 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3326 | { (exit 1); exit 1; }; } | |
3327 | fi | |
3328 | ||
3329 | ||
3330 | echo "$as_me:$LINENO: checking for --with-odbc" >&5 | |
3331 | echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6 | |
3332 | no_cache=0 | |
3333 | ||
3334 | # Check whether --with-odbc or --without-odbc was given. | |
3335 | if test "${with_odbc+set}" = set; then | |
3336 | withval="$with_odbc" | |
3337 | ||
3338 | if test "$withval" = yes; then | |
3339 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
3340 | elif test "$withval" = no; then | |
3341 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
3342 | elif test "$withval" = sys; then | |
3343 | ac_cv_use_odbc='wxUSE_ODBC=sys' | |
3344 | elif test "$withval" = builtin; then | |
3345 | ac_cv_use_odbc='wxUSE_ODBC=builtin' | |
3346 | else | |
3347 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3348 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3349 | { (exit 1); exit 1; }; } | |
3350 | fi | |
3351 | ||
3352 | else | |
3353 | ||
3354 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` | |
3355 | if test "x$LINE" != x ; then | |
3356 | eval "DEFAULT_$LINE" | |
3357 | else | |
3358 | no_cache=1 | |
3359 | fi | |
3360 | ||
3361 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
3362 | ||
3363 | fi; | |
3364 | ||
3365 | eval "$ac_cv_use_odbc" | |
3366 | if test "$no_cache" != 1; then | |
3367 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
3368 | fi | |
3369 | ||
3370 | if test "$wxUSE_ODBC" = yes; then | |
3371 | echo "$as_me:$LINENO: result: yes" >&5 | |
3372 | echo "${ECHO_T}yes" >&6 | |
3373 | elif test "$wxUSE_ODBC" = no; then | |
3374 | echo "$as_me:$LINENO: result: no" >&5 | |
3375 | echo "${ECHO_T}no" >&6 | |
3376 | elif test "$wxUSE_ODBC" = sys; then | |
3377 | echo "$as_me:$LINENO: result: system version" >&5 | |
3378 | echo "${ECHO_T}system version" >&6 | |
3379 | elif test "$wxUSE_ODBC" = builtin; then | |
3380 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3381 | echo "${ECHO_T}builtin version" >&6 | |
3382 | else | |
3383 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3384 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3385 | { (exit 1); exit 1; }; } | |
3386 | fi | |
3387 | ||
3388 | ||
3389 | echo "$as_me:$LINENO: checking for --with-expat" >&5 | |
3390 | echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6 | |
3391 | no_cache=0 | |
3392 | ||
3393 | # Check whether --with-expat or --without-expat was given. | |
3394 | if test "${with_expat+set}" = set; then | |
3395 | withval="$with_expat" | |
3396 | ||
3397 | if test "$withval" = yes; then | |
3398 | ac_cv_use_expat='wxUSE_EXPAT=yes' | |
3399 | elif test "$withval" = no; then | |
3400 | ac_cv_use_expat='wxUSE_EXPAT=no' | |
3401 | elif test "$withval" = sys; then | |
3402 | ac_cv_use_expat='wxUSE_EXPAT=sys' | |
3403 | elif test "$withval" = builtin; then | |
3404 | ac_cv_use_expat='wxUSE_EXPAT=builtin' | |
3405 | else | |
3406 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3407 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3408 | { (exit 1); exit 1; }; } | |
3409 | fi | |
3410 | ||
3411 | else | |
3412 | ||
3413 | LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}` | |
3414 | if test "x$LINE" != x ; then | |
3415 | eval "DEFAULT_$LINE" | |
3416 | else | |
3417 | no_cache=1 | |
3418 | fi | |
3419 | ||
3420 | ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT | |
3421 | ||
3422 | fi; | |
3423 | ||
3424 | eval "$ac_cv_use_expat" | |
3425 | if test "$no_cache" != 1; then | |
3426 | echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp | |
3427 | fi | |
3428 | ||
3429 | if test "$wxUSE_EXPAT" = yes; then | |
3430 | echo "$as_me:$LINENO: result: yes" >&5 | |
3431 | echo "${ECHO_T}yes" >&6 | |
3432 | elif test "$wxUSE_EXPAT" = no; then | |
3433 | echo "$as_me:$LINENO: result: no" >&5 | |
3434 | echo "${ECHO_T}no" >&6 | |
3435 | elif test "$wxUSE_EXPAT" = sys; then | |
3436 | echo "$as_me:$LINENO: result: system version" >&5 | |
3437 | echo "${ECHO_T}system version" >&6 | |
3438 | elif test "$wxUSE_EXPAT" = builtin; then | |
3439 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3440 | echo "${ECHO_T}builtin version" >&6 | |
3441 | else | |
3442 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3443 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3444 | { (exit 1); exit 1; }; } | |
3445 | fi | |
3446 | ||
3447 | ||
3448 | ||
3449 | ||
3450 | enablestring= | |
3451 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5 | |
3452 | echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6 | |
3453 | no_cache=0 | |
3454 | # Check whether --enable-shared or --disable-shared was given. | |
3455 | if test "${enable_shared+set}" = set; then | |
3456 | enableval="$enable_shared" | |
3457 | ||
3458 | if test "$enableval" = yes; then | |
3459 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
3460 | else | |
3461 | ac_cv_use_shared='wxUSE_SHARED=no' | |
3462 | fi | |
3463 | ||
3464 | else | |
3465 | ||
3466 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` | |
3467 | if test "x$LINE" != x ; then | |
3468 | eval "DEFAULT_$LINE" | |
3469 | else | |
3470 | no_cache=1 | |
3471 | fi | |
3472 | ||
3473 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
3474 | ||
3475 | fi; | |
3476 | ||
3477 | eval "$ac_cv_use_shared" | |
3478 | if test "$no_cache" != 1; then | |
3479 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
3480 | fi | |
3481 | ||
3482 | if test "$wxUSE_SHARED" = yes; then | |
3483 | echo "$as_me:$LINENO: result: yes" >&5 | |
3484 | echo "${ECHO_T}yes" >&6 | |
3485 | else | |
3486 | echo "$as_me:$LINENO: result: no" >&5 | |
3487 | echo "${ECHO_T}no" >&6 | |
3488 | fi | |
3489 | ||
3490 | ||
3491 | enablestring= | |
3492 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5 | |
3493 | echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6 | |
3494 | no_cache=0 | |
3495 | # Check whether --enable-optimise or --disable-optimise was given. | |
3496 | if test "${enable_optimise+set}" = set; then | |
3497 | enableval="$enable_optimise" | |
3498 | ||
3499 | if test "$enableval" = yes; then | |
3500 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
3501 | else | |
3502 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
3503 | fi | |
3504 | ||
3505 | else | |
3506 | ||
3507 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` | |
3508 | if test "x$LINE" != x ; then | |
3509 | eval "DEFAULT_$LINE" | |
3510 | else | |
3511 | no_cache=1 | |
3512 | fi | |
3513 | ||
3514 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
3515 | ||
3516 | fi; | |
3517 | ||
3518 | eval "$ac_cv_use_optimise" | |
3519 | if test "$no_cache" != 1; then | |
3520 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
3521 | fi | |
3522 | ||
3523 | if test "$wxUSE_OPTIMISE" = yes; then | |
3524 | echo "$as_me:$LINENO: result: yes" >&5 | |
3525 | echo "${ECHO_T}yes" >&6 | |
3526 | else | |
3527 | echo "$as_me:$LINENO: result: no" >&5 | |
3528 | echo "${ECHO_T}no" >&6 | |
3529 | fi | |
3530 | ||
3531 | ||
3532 | enablestring= | |
3533 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5 | |
3534 | echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6 | |
3535 | no_cache=0 | |
3536 | # Check whether --enable-debug or --disable-debug was given. | |
3537 | if test "${enable_debug+set}" = set; then | |
3538 | enableval="$enable_debug" | |
3539 | ||
3540 | if test "$enableval" = yes; then | |
3541 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
3542 | else | |
3543 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
3544 | fi | |
3545 | ||
3546 | else | |
3547 | ||
3548 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` | |
3549 | if test "x$LINE" != x ; then | |
3550 | eval "DEFAULT_$LINE" | |
3551 | else | |
3552 | no_cache=1 | |
3553 | fi | |
3554 | ||
3555 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
3556 | ||
3557 | fi; | |
3558 | ||
3559 | eval "$ac_cv_use_debug" | |
3560 | if test "$no_cache" != 1; then | |
3561 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
3562 | fi | |
3563 | ||
3564 | if test "$wxUSE_DEBUG" = yes; then | |
3565 | echo "$as_me:$LINENO: result: yes" >&5 | |
3566 | echo "${ECHO_T}yes" >&6 | |
3567 | else | |
3568 | echo "$as_me:$LINENO: result: no" >&5 | |
3569 | echo "${ECHO_T}no" >&6 | |
3570 | fi | |
3571 | ||
3572 | ||
3573 | enablestring= | |
3574 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5 | |
3575 | echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6 | |
3576 | no_cache=0 | |
3577 | # Check whether --enable-stl or --disable-stl was given. | |
3578 | if test "${enable_stl+set}" = set; then | |
3579 | enableval="$enable_stl" | |
3580 | ||
3581 | if test "$enableval" = yes; then | |
3582 | ac_cv_use_stl='wxUSE_STL=yes' | |
3583 | else | |
3584 | ac_cv_use_stl='wxUSE_STL=no' | |
3585 | fi | |
3586 | ||
3587 | else | |
3588 | ||
3589 | LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}` | |
3590 | if test "x$LINE" != x ; then | |
3591 | eval "DEFAULT_$LINE" | |
3592 | else | |
3593 | no_cache=1 | |
3594 | fi | |
3595 | ||
3596 | ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL | |
3597 | ||
3598 | fi; | |
3599 | ||
3600 | eval "$ac_cv_use_stl" | |
3601 | if test "$no_cache" != 1; then | |
3602 | echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp | |
3603 | fi | |
3604 | ||
3605 | if test "$wxUSE_STL" = yes; then | |
3606 | echo "$as_me:$LINENO: result: yes" >&5 | |
3607 | echo "${ECHO_T}yes" >&6 | |
3608 | else | |
3609 | echo "$as_me:$LINENO: result: no" >&5 | |
3610 | echo "${ECHO_T}no" >&6 | |
3611 | fi | |
3612 | ||
3613 | if test "$USE_OS2" = "1"; then | |
3614 | ||
3615 | enablestring= | |
3616 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5 | |
3617 | echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6 | |
3618 | no_cache=0 | |
3619 | # Check whether --enable-omf or --disable-omf was given. | |
3620 | if test "${enable_omf+set}" = set; then | |
3621 | enableval="$enable_omf" | |
3622 | ||
3623 | if test "$enableval" = yes; then | |
3624 | ac_cv_use_omf='wxUSE_OMF=yes' | |
3625 | else | |
3626 | ac_cv_use_omf='wxUSE_OMF=no' | |
3627 | fi | |
3628 | ||
3629 | else | |
3630 | ||
3631 | LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}` | |
3632 | if test "x$LINE" != x ; then | |
3633 | eval "DEFAULT_$LINE" | |
3634 | else | |
3635 | no_cache=1 | |
3636 | fi | |
3637 | ||
3638 | ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF | |
3639 | ||
3640 | fi; | |
3641 | ||
3642 | eval "$ac_cv_use_omf" | |
3643 | if test "$no_cache" != 1; then | |
3644 | echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp | |
3645 | fi | |
3646 | ||
3647 | if test "$wxUSE_OMF" = yes; then | |
3648 | echo "$as_me:$LINENO: result: yes" >&5 | |
3649 | echo "${ECHO_T}yes" >&6 | |
3650 | else | |
3651 | echo "$as_me:$LINENO: result: no" >&5 | |
3652 | echo "${ECHO_T}no" >&6 | |
3653 | fi | |
3654 | ||
3655 | fi | |
3656 | ||
3657 | if test "$wxUSE_DEBUG" = "yes"; then | |
3658 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
3659 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
3660 | BUILD=debug | |
3661 | elif test "$wxUSE_DEBUG" = "no"; then | |
3662 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
3663 | DEFAULT_wxUSE_DEBUG_INFO=no | |
3664 | BUILD=release | |
3665 | fi | |
3666 | ||
3667 | ||
3668 | enablestring= | |
3669 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5 | |
3670 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6 | |
3671 | no_cache=0 | |
3672 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
3673 | if test "${enable_debug_flag+set}" = set; then | |
3674 | enableval="$enable_debug_flag" | |
3675 | ||
3676 | if test "$enableval" = yes; then | |
3677 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
3678 | else | |
3679 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
3680 | fi | |
3681 | ||
3682 | else | |
3683 | ||
3684 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` | |
3685 | if test "x$LINE" != x ; then | |
3686 | eval "DEFAULT_$LINE" | |
3687 | else | |
3688 | no_cache=1 | |
3689 | fi | |
3690 | ||
3691 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
3692 | ||
3693 | fi; | |
3694 | ||
3695 | eval "$ac_cv_use_debug_flag" | |
3696 | if test "$no_cache" != 1; then | |
3697 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
3698 | fi | |
3699 | ||
3700 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
3701 | echo "$as_me:$LINENO: result: yes" >&5 | |
3702 | echo "${ECHO_T}yes" >&6 | |
3703 | else | |
3704 | echo "$as_me:$LINENO: result: no" >&5 | |
3705 | echo "${ECHO_T}no" >&6 | |
3706 | fi | |
3707 | ||
3708 | ||
3709 | enablestring= | |
3710 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5 | |
3711 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6 | |
3712 | no_cache=0 | |
3713 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
3714 | if test "${enable_debug_info+set}" = set; then | |
3715 | enableval="$enable_debug_info" | |
3716 | ||
3717 | if test "$enableval" = yes; then | |
3718 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
3719 | else | |
3720 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
3721 | fi | |
3722 | ||
3723 | else | |
3724 | ||
3725 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` | |
3726 | if test "x$LINE" != x ; then | |
3727 | eval "DEFAULT_$LINE" | |
3728 | else | |
3729 | no_cache=1 | |
3730 | fi | |
3731 | ||
3732 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
3733 | ||
3734 | fi; | |
3735 | ||
3736 | eval "$ac_cv_use_debug_info" | |
3737 | if test "$no_cache" != 1; then | |
3738 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
3739 | fi | |
3740 | ||
3741 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
3742 | echo "$as_me:$LINENO: result: yes" >&5 | |
3743 | echo "${ECHO_T}yes" >&6 | |
3744 | else | |
3745 | echo "$as_me:$LINENO: result: no" >&5 | |
3746 | echo "${ECHO_T}no" >&6 | |
3747 | fi | |
3748 | ||
3749 | ||
3750 | enablestring= | |
3751 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5 | |
3752 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6 | |
3753 | no_cache=0 | |
3754 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
3755 | if test "${enable_debug_gdb+set}" = set; then | |
3756 | enableval="$enable_debug_gdb" | |
3757 | ||
3758 | if test "$enableval" = yes; then | |
3759 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
3760 | else | |
3761 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
3762 | fi | |
3763 | ||
3764 | else | |
3765 | ||
3766 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` | |
3767 | if test "x$LINE" != x ; then | |
3768 | eval "DEFAULT_$LINE" | |
3769 | else | |
3770 | no_cache=1 | |
3771 | fi | |
3772 | ||
3773 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
3774 | ||
3775 | fi; | |
3776 | ||
3777 | eval "$ac_cv_use_debug_gdb" | |
3778 | if test "$no_cache" != 1; then | |
3779 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
3780 | fi | |
3781 | ||
3782 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
3783 | echo "$as_me:$LINENO: result: yes" >&5 | |
3784 | echo "${ECHO_T}yes" >&6 | |
3785 | else | |
3786 | echo "$as_me:$LINENO: result: no" >&5 | |
3787 | echo "${ECHO_T}no" >&6 | |
3788 | fi | |
3789 | ||
3790 | ||
3791 | enablestring= | |
3792 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5 | |
3793 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6 | |
3794 | no_cache=0 | |
3795 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
3796 | if test "${enable_debug_cntxt+set}" = set; then | |
3797 | enableval="$enable_debug_cntxt" | |
3798 | ||
3799 | if test "$enableval" = yes; then | |
3800 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
3801 | else | |
3802 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
3803 | fi | |
3804 | ||
3805 | else | |
3806 | ||
3807 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` | |
3808 | if test "x$LINE" != x ; then | |
3809 | eval "DEFAULT_$LINE" | |
3810 | else | |
3811 | no_cache=1 | |
3812 | fi | |
3813 | ||
3814 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
3815 | ||
3816 | fi; | |
3817 | ||
3818 | eval "$ac_cv_use_debug_cntxt" | |
3819 | if test "$no_cache" != 1; then | |
3820 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
3821 | fi | |
3822 | ||
3823 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
3824 | echo "$as_me:$LINENO: result: yes" >&5 | |
3825 | echo "${ECHO_T}yes" >&6 | |
3826 | else | |
3827 | echo "$as_me:$LINENO: result: no" >&5 | |
3828 | echo "${ECHO_T}no" >&6 | |
3829 | fi | |
3830 | ||
3831 | ||
3832 | enablestring= | |
3833 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5 | |
3834 | echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6 | |
3835 | no_cache=0 | |
3836 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
3837 | if test "${enable_mem_tracing+set}" = set; then | |
3838 | enableval="$enable_mem_tracing" | |
3839 | ||
3840 | if test "$enableval" = yes; then | |
3841 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
3842 | else | |
3843 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
3844 | fi | |
3845 | ||
3846 | else | |
3847 | ||
3848 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` | |
3849 | if test "x$LINE" != x ; then | |
3850 | eval "DEFAULT_$LINE" | |
3851 | else | |
3852 | no_cache=1 | |
3853 | fi | |
3854 | ||
3855 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
3856 | ||
3857 | fi; | |
3858 | ||
3859 | eval "$ac_cv_use_mem_tracing" | |
3860 | if test "$no_cache" != 1; then | |
3861 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
3862 | fi | |
3863 | ||
3864 | if test "$wxUSE_MEM_TRACING" = yes; then | |
3865 | echo "$as_me:$LINENO: result: yes" >&5 | |
3866 | echo "${ECHO_T}yes" >&6 | |
3867 | else | |
3868 | echo "$as_me:$LINENO: result: no" >&5 | |
3869 | echo "${ECHO_T}no" >&6 | |
3870 | fi | |
3871 | ||
3872 | ||
3873 | enablestring= | |
3874 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5 | |
3875 | echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6 | |
3876 | no_cache=0 | |
3877 | # Check whether --enable-profile or --disable-profile was given. | |
3878 | if test "${enable_profile+set}" = set; then | |
3879 | enableval="$enable_profile" | |
3880 | ||
3881 | if test "$enableval" = yes; then | |
3882 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
3883 | else | |
3884 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
3885 | fi | |
3886 | ||
3887 | else | |
3888 | ||
3889 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` | |
3890 | if test "x$LINE" != x ; then | |
3891 | eval "DEFAULT_$LINE" | |
3892 | else | |
3893 | no_cache=1 | |
3894 | fi | |
3895 | ||
3896 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
3897 | ||
3898 | fi; | |
3899 | ||
3900 | eval "$ac_cv_use_profile" | |
3901 | if test "$no_cache" != 1; then | |
3902 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
3903 | fi | |
3904 | ||
3905 | if test "$wxUSE_PROFILE" = yes; then | |
3906 | echo "$as_me:$LINENO: result: yes" >&5 | |
3907 | echo "${ECHO_T}yes" >&6 | |
3908 | else | |
3909 | echo "$as_me:$LINENO: result: no" >&5 | |
3910 | echo "${ECHO_T}no" >&6 | |
3911 | fi | |
3912 | ||
3913 | ||
3914 | enablestring= | |
3915 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5 | |
3916 | echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6 | |
3917 | no_cache=0 | |
3918 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
3919 | if test "${enable_no_rtti+set}" = set; then | |
3920 | enableval="$enable_no_rtti" | |
3921 | ||
3922 | if test "$enableval" = yes; then | |
3923 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
3924 | else | |
3925 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
3926 | fi | |
3927 | ||
3928 | else | |
3929 | ||
3930 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` | |
3931 | if test "x$LINE" != x ; then | |
3932 | eval "DEFAULT_$LINE" | |
3933 | else | |
3934 | no_cache=1 | |
3935 | fi | |
3936 | ||
3937 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
3938 | ||
3939 | fi; | |
3940 | ||
3941 | eval "$ac_cv_use_no_rtti" | |
3942 | if test "$no_cache" != 1; then | |
3943 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
3944 | fi | |
3945 | ||
3946 | if test "$wxUSE_NO_RTTI" = yes; then | |
3947 | echo "$as_me:$LINENO: result: yes" >&5 | |
3948 | echo "${ECHO_T}yes" >&6 | |
3949 | else | |
3950 | echo "$as_me:$LINENO: result: no" >&5 | |
3951 | echo "${ECHO_T}no" >&6 | |
3952 | fi | |
3953 | ||
3954 | ||
3955 | enablestring= | |
3956 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5 | |
3957 | echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6 | |
3958 | no_cache=0 | |
3959 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
3960 | if test "${enable_no_exceptions+set}" = set; then | |
3961 | enableval="$enable_no_exceptions" | |
3962 | ||
3963 | if test "$enableval" = yes; then | |
3964 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
3965 | else | |
3966 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
3967 | fi | |
3968 | ||
3969 | else | |
3970 | ||
3971 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` | |
3972 | if test "x$LINE" != x ; then | |
3973 | eval "DEFAULT_$LINE" | |
3974 | else | |
3975 | no_cache=1 | |
3976 | fi | |
3977 | ||
3978 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
3979 | ||
3980 | fi; | |
3981 | ||
3982 | eval "$ac_cv_use_no_exceptions" | |
3983 | if test "$no_cache" != 1; then | |
3984 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
3985 | fi | |
3986 | ||
3987 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
3988 | echo "$as_me:$LINENO: result: yes" >&5 | |
3989 | echo "${ECHO_T}yes" >&6 | |
3990 | else | |
3991 | echo "$as_me:$LINENO: result: no" >&5 | |
3992 | echo "${ECHO_T}no" >&6 | |
3993 | fi | |
3994 | ||
3995 | ||
3996 | enablestring= | |
3997 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5 | |
3998 | echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6 | |
3999 | no_cache=0 | |
4000 | # Check whether --enable-permissive or --disable-permissive was given. | |
4001 | if test "${enable_permissive+set}" = set; then | |
4002 | enableval="$enable_permissive" | |
4003 | ||
4004 | if test "$enableval" = yes; then | |
4005 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
4006 | else | |
4007 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
4008 | fi | |
4009 | ||
4010 | else | |
4011 | ||
4012 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` | |
4013 | if test "x$LINE" != x ; then | |
4014 | eval "DEFAULT_$LINE" | |
4015 | else | |
4016 | no_cache=1 | |
4017 | fi | |
4018 | ||
4019 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
4020 | ||
4021 | fi; | |
4022 | ||
4023 | eval "$ac_cv_use_permissive" | |
4024 | if test "$no_cache" != 1; then | |
4025 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
4026 | fi | |
4027 | ||
4028 | if test "$wxUSE_PERMISSIVE" = yes; then | |
4029 | echo "$as_me:$LINENO: result: yes" >&5 | |
4030 | echo "${ECHO_T}yes" >&6 | |
4031 | else | |
4032 | echo "$as_me:$LINENO: result: no" >&5 | |
4033 | echo "${ECHO_T}no" >&6 | |
4034 | fi | |
4035 | ||
4036 | ||
4037 | enablestring= | |
4038 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5 | |
4039 | echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6 | |
4040 | no_cache=0 | |
4041 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
4042 | if test "${enable_no_deps+set}" = set; then | |
4043 | enableval="$enable_no_deps" | |
4044 | ||
4045 | if test "$enableval" = yes; then | |
4046 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
4047 | else | |
4048 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
4049 | fi | |
4050 | ||
4051 | else | |
4052 | ||
4053 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` | |
4054 | if test "x$LINE" != x ; then | |
4055 | eval "DEFAULT_$LINE" | |
4056 | else | |
4057 | no_cache=1 | |
4058 | fi | |
4059 | ||
4060 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
4061 | ||
4062 | fi; | |
4063 | ||
4064 | eval "$ac_cv_use_no_deps" | |
4065 | if test "$no_cache" != 1; then | |
4066 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
4067 | fi | |
4068 | ||
4069 | if test "$wxUSE_NO_DEPS" = yes; then | |
4070 | echo "$as_me:$LINENO: result: yes" >&5 | |
4071 | echo "${ECHO_T}yes" >&6 | |
4072 | else | |
4073 | echo "$as_me:$LINENO: result: no" >&5 | |
4074 | echo "${ECHO_T}no" >&6 | |
4075 | fi | |
4076 | ||
4077 | ||
4078 | ||
4079 | enablestring= | |
4080 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5 | |
4081 | echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6 | |
4082 | no_cache=0 | |
4083 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
4084 | if test "${enable_compat22+set}" = set; then | |
4085 | enableval="$enable_compat22" | |
4086 | ||
4087 | if test "$enableval" = yes; then | |
4088 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
4089 | else | |
4090 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
4091 | fi | |
4092 | ||
4093 | else | |
4094 | ||
4095 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` | |
4096 | if test "x$LINE" != x ; then | |
4097 | eval "DEFAULT_$LINE" | |
4098 | else | |
4099 | no_cache=1 | |
4100 | fi | |
4101 | ||
4102 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
4103 | ||
4104 | fi; | |
4105 | ||
4106 | eval "$ac_cv_use_compat22" | |
4107 | if test "$no_cache" != 1; then | |
4108 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
4109 | fi | |
4110 | ||
4111 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
4112 | echo "$as_me:$LINENO: result: yes" >&5 | |
4113 | echo "${ECHO_T}yes" >&6 | |
4114 | else | |
4115 | echo "$as_me:$LINENO: result: no" >&5 | |
4116 | echo "${ECHO_T}no" >&6 | |
4117 | fi | |
4118 | ||
4119 | ||
4120 | enablestring=disable | |
4121 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5 | |
4122 | echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6 | |
4123 | no_cache=0 | |
4124 | # Check whether --enable-compat24 or --disable-compat24 was given. | |
4125 | if test "${enable_compat24+set}" = set; then | |
4126 | enableval="$enable_compat24" | |
4127 | ||
4128 | if test "$enableval" = yes; then | |
4129 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes' | |
4130 | else | |
4131 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no' | |
4132 | fi | |
4133 | ||
4134 | else | |
4135 | ||
4136 | LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}` | |
4137 | if test "x$LINE" != x ; then | |
4138 | eval "DEFAULT_$LINE" | |
4139 | else | |
4140 | no_cache=1 | |
4141 | fi | |
4142 | ||
4143 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4 | |
4144 | ||
4145 | fi; | |
4146 | ||
4147 | eval "$ac_cv_use_compat24" | |
4148 | if test "$no_cache" != 1; then | |
4149 | echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp | |
4150 | fi | |
4151 | ||
4152 | if test "$WXWIN_COMPATIBILITY_2_4" = yes; then | |
4153 | echo "$as_me:$LINENO: result: yes" >&5 | |
4154 | echo "${ECHO_T}yes" >&6 | |
4155 | else | |
4156 | echo "$as_me:$LINENO: result: no" >&5 | |
4157 | echo "${ECHO_T}no" >&6 | |
4158 | fi | |
4159 | ||
4160 | ||
ffa0583f RL |
4161 | |
4162 | enablestring= | |
4163 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5 | |
4164 | echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6 | |
4165 | no_cache=0 | |
4166 | # Check whether --enable-rpath or --disable-rpath was given. | |
a848cd7e SC |
4167 | if test "${enable_rpath+set}" = set; then |
4168 | enableval="$enable_rpath" | |
ffa0583f RL |
4169 | |
4170 | if test "$enableval" = yes; then | |
4171 | ac_cv_use_rpath='wxUSE_RPATH=yes' | |
4172 | else | |
4173 | ac_cv_use_rpath='wxUSE_RPATH=no' | |
4174 | fi | |
4175 | ||
4176 | else | |
4177 | ||
4178 | LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}` | |
4179 | if test "x$LINE" != x ; then | |
4180 | eval "DEFAULT_$LINE" | |
4181 | else | |
4182 | no_cache=1 | |
4183 | fi | |
4184 | ||
4185 | ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH | |
4186 | ||
a848cd7e SC |
4187 | fi; |
4188 | ||
ffa0583f RL |
4189 | eval "$ac_cv_use_rpath" |
4190 | if test "$no_cache" != 1; then | |
4191 | echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp | |
4192 | fi | |
4193 | ||
4194 | if test "$wxUSE_RPATH" = yes; then | |
4195 | echo "$as_me:$LINENO: result: yes" >&5 | |
4196 | echo "${ECHO_T}yes" >&6 | |
4197 | else | |
4198 | echo "$as_me:$LINENO: result: no" >&5 | |
4199 | echo "${ECHO_T}no" >&6 | |
4200 | fi | |
4201 | ||
a848cd7e SC |
4202 | |
4203 | ||
4204 | ||
4205 | ||
4206 | enablestring= | |
4207 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5 | |
4208 | echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6 | |
4209 | no_cache=0 | |
4210 | # Check whether --enable-intl or --disable-intl was given. | |
4211 | if test "${enable_intl+set}" = set; then | |
4212 | enableval="$enable_intl" | |
4213 | ||
4214 | if test "$enableval" = yes; then | |
4215 | ac_cv_use_intl='wxUSE_INTL=yes' | |
4216 | else | |
4217 | ac_cv_use_intl='wxUSE_INTL=no' | |
4218 | fi | |
4219 | ||
4220 | else | |
4221 | ||
4222 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` | |
4223 | if test "x$LINE" != x ; then | |
4224 | eval "DEFAULT_$LINE" | |
4225 | else | |
4226 | no_cache=1 | |
4227 | fi | |
4228 | ||
4229 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
4230 | ||
4231 | fi; | |
4232 | ||
4233 | eval "$ac_cv_use_intl" | |
4234 | if test "$no_cache" != 1; then | |
4235 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
4236 | fi | |
4237 | ||
4238 | if test "$wxUSE_INTL" = yes; then | |
4239 | echo "$as_me:$LINENO: result: yes" >&5 | |
4240 | echo "${ECHO_T}yes" >&6 | |
4241 | else | |
4242 | echo "$as_me:$LINENO: result: no" >&5 | |
4243 | echo "${ECHO_T}no" >&6 | |
4244 | fi | |
4245 | ||
4246 | ||
4247 | enablestring= | |
4248 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5 | |
4249 | echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6 | |
4250 | no_cache=0 | |
4251 | # Check whether --enable-config or --disable-config was given. | |
4252 | if test "${enable_config+set}" = set; then | |
4253 | enableval="$enable_config" | |
4254 | ||
4255 | if test "$enableval" = yes; then | |
4256 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
4257 | else | |
4258 | ac_cv_use_config='wxUSE_CONFIG=no' | |
4259 | fi | |
4260 | ||
4261 | else | |
4262 | ||
4263 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` | |
4264 | if test "x$LINE" != x ; then | |
4265 | eval "DEFAULT_$LINE" | |
4266 | else | |
4267 | no_cache=1 | |
4268 | fi | |
4269 | ||
4270 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
4271 | ||
4272 | fi; | |
4273 | ||
4274 | eval "$ac_cv_use_config" | |
4275 | if test "$no_cache" != 1; then | |
4276 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
4277 | fi | |
4278 | ||
4279 | if test "$wxUSE_CONFIG" = yes; then | |
4280 | echo "$as_me:$LINENO: result: yes" >&5 | |
4281 | echo "${ECHO_T}yes" >&6 | |
4282 | else | |
4283 | echo "$as_me:$LINENO: result: no" >&5 | |
4284 | echo "${ECHO_T}no" >&6 | |
4285 | fi | |
4286 | ||
4287 | ||
4288 | ||
4289 | enablestring= | |
4290 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5 | |
4291 | echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6 | |
4292 | no_cache=0 | |
4293 | # Check whether --enable-protocols or --disable-protocols was given. | |
4294 | if test "${enable_protocols+set}" = set; then | |
4295 | enableval="$enable_protocols" | |
4296 | ||
4297 | if test "$enableval" = yes; then | |
4298 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
4299 | else | |
4300 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
4301 | fi | |
4302 | ||
4303 | else | |
4304 | ||
4305 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
4306 | if test "x$LINE" != x ; then | |
4307 | eval "DEFAULT_$LINE" | |
4308 | else | |
4309 | no_cache=1 | |
4310 | fi | |
4311 | ||
4312 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4313 | ||
4314 | fi; | |
4315 | ||
4316 | eval "$ac_cv_use_protocols" | |
4317 | if test "$no_cache" != 1; then | |
4318 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
4319 | fi | |
4320 | ||
4321 | if test "$wxUSE_PROTOCOL" = yes; then | |
4322 | echo "$as_me:$LINENO: result: yes" >&5 | |
4323 | echo "${ECHO_T}yes" >&6 | |
4324 | else | |
4325 | echo "$as_me:$LINENO: result: no" >&5 | |
4326 | echo "${ECHO_T}no" >&6 | |
4327 | fi | |
4328 | ||
4329 | ||
4330 | enablestring= | |
4331 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5 | |
4332 | echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6 | |
4333 | no_cache=0 | |
4334 | # Check whether --enable-ftp or --disable-ftp was given. | |
4335 | if test "${enable_ftp+set}" = set; then | |
4336 | enableval="$enable_ftp" | |
4337 | ||
4338 | if test "$enableval" = yes; then | |
4339 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4340 | else | |
4341 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
4342 | fi | |
4343 | ||
4344 | else | |
4345 | ||
4346 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
4347 | if test "x$LINE" != x ; then | |
4348 | eval "DEFAULT_$LINE" | |
4349 | else | |
4350 | no_cache=1 | |
4351 | fi | |
4352 | ||
4353 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4354 | ||
4355 | fi; | |
4356 | ||
4357 | eval "$ac_cv_use_ftp" | |
4358 | if test "$no_cache" != 1; then | |
4359 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
4360 | fi | |
4361 | ||
4362 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
4363 | echo "$as_me:$LINENO: result: yes" >&5 | |
4364 | echo "${ECHO_T}yes" >&6 | |
4365 | else | |
4366 | echo "$as_me:$LINENO: result: no" >&5 | |
4367 | echo "${ECHO_T}no" >&6 | |
4368 | fi | |
4369 | ||
4370 | ||
4371 | enablestring= | |
4372 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5 | |
4373 | echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6 | |
4374 | no_cache=0 | |
4375 | # Check whether --enable-http or --disable-http was given. | |
4376 | if test "${enable_http+set}" = set; then | |
4377 | enableval="$enable_http" | |
4378 | ||
4379 | if test "$enableval" = yes; then | |
4380 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
4381 | else | |
4382 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
4383 | fi | |
4384 | ||
4385 | else | |
4386 | ||
4387 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
4388 | if test "x$LINE" != x ; then | |
4389 | eval "DEFAULT_$LINE" | |
4390 | else | |
4391 | no_cache=1 | |
4392 | fi | |
4393 | ||
4394 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4395 | ||
4396 | fi; | |
4397 | ||
4398 | eval "$ac_cv_use_http" | |
4399 | if test "$no_cache" != 1; then | |
4400 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
4401 | fi | |
4402 | ||
4403 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
4404 | echo "$as_me:$LINENO: result: yes" >&5 | |
4405 | echo "${ECHO_T}yes" >&6 | |
4406 | else | |
4407 | echo "$as_me:$LINENO: result: no" >&5 | |
4408 | echo "${ECHO_T}no" >&6 | |
4409 | fi | |
4410 | ||
4411 | ||
4412 | enablestring= | |
4413 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5 | |
4414 | echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6 | |
4415 | no_cache=0 | |
4416 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
4417 | if test "${enable_fileproto+set}" = set; then | |
4418 | enableval="$enable_fileproto" | |
4419 | ||
4420 | if test "$enableval" = yes; then | |
4421 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
4422 | else | |
4423 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
4424 | fi | |
4425 | ||
4426 | else | |
4427 | ||
4428 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
4429 | if test "x$LINE" != x ; then | |
4430 | eval "DEFAULT_$LINE" | |
4431 | else | |
4432 | no_cache=1 | |
4433 | fi | |
4434 | ||
4435 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4436 | ||
4437 | fi; | |
4438 | ||
4439 | eval "$ac_cv_use_fileproto" | |
4440 | if test "$no_cache" != 1; then | |
4441 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
4442 | fi | |
4443 | ||
4444 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
4445 | echo "$as_me:$LINENO: result: yes" >&5 | |
4446 | echo "${ECHO_T}yes" >&6 | |
4447 | else | |
4448 | echo "$as_me:$LINENO: result: no" >&5 | |
4449 | echo "${ECHO_T}no" >&6 | |
4450 | fi | |
4451 | ||
4452 | ||
4453 | enablestring= | |
4454 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5 | |
4455 | echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6 | |
4456 | no_cache=0 | |
4457 | # Check whether --enable-sockets or --disable-sockets was given. | |
4458 | if test "${enable_sockets+set}" = set; then | |
4459 | enableval="$enable_sockets" | |
4460 | ||
4461 | if test "$enableval" = yes; then | |
4462 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
4463 | else | |
4464 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
4465 | fi | |
4466 | ||
4467 | else | |
4468 | ||
4469 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` | |
4470 | if test "x$LINE" != x ; then | |
4471 | eval "DEFAULT_$LINE" | |
4472 | else | |
4473 | no_cache=1 | |
4474 | fi | |
4475 | ||
4476 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
4477 | ||
4478 | fi; | |
4479 | ||
4480 | eval "$ac_cv_use_sockets" | |
4481 | if test "$no_cache" != 1; then | |
4482 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
4483 | fi | |
4484 | ||
4485 | if test "$wxUSE_SOCKETS" = yes; then | |
4486 | echo "$as_me:$LINENO: result: yes" >&5 | |
4487 | echo "${ECHO_T}yes" >&6 | |
4488 | else | |
4489 | echo "$as_me:$LINENO: result: no" >&5 | |
4490 | echo "${ECHO_T}no" >&6 | |
4491 | fi | |
4492 | ||
4493 | ||
4494 | enablestring= | |
4495 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5 | |
4496 | echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6 | |
4497 | no_cache=0 | |
4498 | # Check whether --enable-ole or --disable-ole was given. | |
4499 | if test "${enable_ole+set}" = set; then | |
4500 | enableval="$enable_ole" | |
4501 | ||
4502 | if test "$enableval" = yes; then | |
4503 | ac_cv_use_ole='wxUSE_OLE=yes' | |
4504 | else | |
4505 | ac_cv_use_ole='wxUSE_OLE=no' | |
4506 | fi | |
4507 | ||
4508 | else | |
4509 | ||
4510 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` | |
4511 | if test "x$LINE" != x ; then | |
4512 | eval "DEFAULT_$LINE" | |
4513 | else | |
4514 | no_cache=1 | |
4515 | fi | |
4516 | ||
4517 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
4518 | ||
4519 | fi; | |
4520 | ||
4521 | eval "$ac_cv_use_ole" | |
4522 | if test "$no_cache" != 1; then | |
4523 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
4524 | fi | |
4525 | ||
4526 | if test "$wxUSE_OLE" = yes; then | |
4527 | echo "$as_me:$LINENO: result: yes" >&5 | |
4528 | echo "${ECHO_T}yes" >&6 | |
4529 | else | |
4530 | echo "$as_me:$LINENO: result: no" >&5 | |
4531 | echo "${ECHO_T}no" >&6 | |
4532 | fi | |
4533 | ||
4534 | ||
4535 | enablestring= | |
4536 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5 | |
4537 | echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6 | |
4538 | no_cache=0 | |
4539 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
4540 | if test "${enable_dataobj+set}" = set; then | |
4541 | enableval="$enable_dataobj" | |
4542 | ||
4543 | if test "$enableval" = yes; then | |
4544 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
4545 | else | |
4546 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
4547 | fi | |
4548 | ||
4549 | else | |
4550 | ||
4551 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` | |
4552 | if test "x$LINE" != x ; then | |
4553 | eval "DEFAULT_$LINE" | |
4554 | else | |
4555 | no_cache=1 | |
4556 | fi | |
4557 | ||
4558 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
4559 | ||
4560 | fi; | |
4561 | ||
4562 | eval "$ac_cv_use_dataobj" | |
4563 | if test "$no_cache" != 1; then | |
4564 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
4565 | fi | |
4566 | ||
4567 | if test "$wxUSE_DATAOBJ" = yes; then | |
4568 | echo "$as_me:$LINENO: result: yes" >&5 | |
4569 | echo "${ECHO_T}yes" >&6 | |
4570 | else | |
4571 | echo "$as_me:$LINENO: result: no" >&5 | |
4572 | echo "${ECHO_T}no" >&6 | |
4573 | fi | |
4574 | ||
4575 | ||
4576 | ||
4577 | enablestring= | |
4578 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5 | |
4579 | echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6 | |
4580 | no_cache=0 | |
4581 | # Check whether --enable-ipc or --disable-ipc was given. | |
4582 | if test "${enable_ipc+set}" = set; then | |
4583 | enableval="$enable_ipc" | |
4584 | ||
4585 | if test "$enableval" = yes; then | |
4586 | ac_cv_use_ipc='wxUSE_IPC=yes' | |
4587 | else | |
4588 | ac_cv_use_ipc='wxUSE_IPC=no' | |
4589 | fi | |
4590 | ||
4591 | else | |
4592 | ||
4593 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` | |
4594 | if test "x$LINE" != x ; then | |
4595 | eval "DEFAULT_$LINE" | |
4596 | else | |
4597 | no_cache=1 | |
4598 | fi | |
4599 | ||
4600 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC | |
4601 | ||
4602 | fi; | |
4603 | ||
4604 | eval "$ac_cv_use_ipc" | |
4605 | if test "$no_cache" != 1; then | |
4606 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp | |
4607 | fi | |
4608 | ||
4609 | if test "$wxUSE_IPC" = yes; then | |
4610 | echo "$as_me:$LINENO: result: yes" >&5 | |
4611 | echo "${ECHO_T}yes" >&6 | |
4612 | else | |
4613 | echo "$as_me:$LINENO: result: no" >&5 | |
4614 | echo "${ECHO_T}no" >&6 | |
4615 | fi | |
4616 | ||
4617 | ||
4618 | ||
4619 | enablestring= | |
4620 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5 | |
4621 | echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6 | |
4622 | no_cache=0 | |
4623 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
4624 | if test "${enable_apple_ieee+set}" = set; then | |
4625 | enableval="$enable_apple_ieee" | |
4626 | ||
4627 | if test "$enableval" = yes; then | |
4628 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
4629 | else | |
4630 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
4631 | fi | |
4632 | ||
4633 | else | |
4634 | ||
4635 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` | |
4636 | if test "x$LINE" != x ; then | |
4637 | eval "DEFAULT_$LINE" | |
4638 | else | |
4639 | no_cache=1 | |
4640 | fi | |
4641 | ||
4642 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
4643 | ||
4644 | fi; | |
4645 | ||
4646 | eval "$ac_cv_use_apple_ieee" | |
4647 | if test "$no_cache" != 1; then | |
4648 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
4649 | fi | |
4650 | ||
4651 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
4652 | echo "$as_me:$LINENO: result: yes" >&5 | |
4653 | echo "${ECHO_T}yes" >&6 | |
4654 | else | |
4655 | echo "$as_me:$LINENO: result: no" >&5 | |
4656 | echo "${ECHO_T}no" >&6 | |
4657 | fi | |
4658 | ||
4659 | ||
4660 | enablestring= | |
4661 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5 | |
4662 | echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6 | |
4663 | no_cache=0 | |
4664 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4665 | if test "${enable_catch_segvs+set}" = set; then | |
4666 | enableval="$enable_catch_segvs" | |
4667 | ||
4668 | if test "$enableval" = yes; then | |
4669 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4670 | else | |
4671 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4672 | fi | |
4673 | ||
4674 | else | |
4675 | ||
4676 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` | |
4677 | if test "x$LINE" != x ; then | |
4678 | eval "DEFAULT_$LINE" | |
4679 | else | |
4680 | no_cache=1 | |
4681 | fi | |
4682 | ||
4683 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
4684 | ||
4685 | fi; | |
4686 | ||
4687 | eval "$ac_cv_use_catch_segvs" | |
4688 | if test "$no_cache" != 1; then | |
4689 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4690 | fi | |
4691 | ||
4692 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
4693 | echo "$as_me:$LINENO: result: yes" >&5 | |
4694 | echo "${ECHO_T}yes" >&6 | |
4695 | else | |
4696 | echo "$as_me:$LINENO: result: no" >&5 | |
4697 | echo "${ECHO_T}no" >&6 | |
4698 | fi | |
4699 | ||
4700 | ||
4701 | enablestring= | |
4702 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5 | |
4703 | echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6 | |
4704 | no_cache=0 | |
4705 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
4706 | if test "${enable_cmdline+set}" = set; then | |
4707 | enableval="$enable_cmdline" | |
4708 | ||
4709 | if test "$enableval" = yes; then | |
4710 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
4711 | else | |
4712 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
4713 | fi | |
4714 | ||
4715 | else | |
4716 | ||
4717 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
4718 | if test "x$LINE" != x ; then | |
4719 | eval "DEFAULT_$LINE" | |
4720 | else | |
4721 | no_cache=1 | |
4722 | fi | |
4723 | ||
4724 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
4725 | ||
4726 | fi; | |
4727 | ||
4728 | eval "$ac_cv_use_cmdline" | |
4729 | if test "$no_cache" != 1; then | |
4730 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
4731 | fi | |
4732 | ||
4733 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
4734 | echo "$as_me:$LINENO: result: yes" >&5 | |
4735 | echo "${ECHO_T}yes" >&6 | |
4736 | else | |
4737 | echo "$as_me:$LINENO: result: no" >&5 | |
4738 | echo "${ECHO_T}no" >&6 | |
4739 | fi | |
4740 | ||
4741 | ||
4742 | enablestring= | |
4743 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5 | |
4744 | echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6 | |
4745 | no_cache=0 | |
4746 | # Check whether --enable-datetime or --disable-datetime was given. | |
4747 | if test "${enable_datetime+set}" = set; then | |
4748 | enableval="$enable_datetime" | |
4749 | ||
4750 | if test "$enableval" = yes; then | |
4751 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
4752 | else | |
4753 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
4754 | fi | |
4755 | ||
4756 | else | |
4757 | ||
4758 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
4759 | if test "x$LINE" != x ; then | |
4760 | eval "DEFAULT_$LINE" | |
4761 | else | |
4762 | no_cache=1 | |
4763 | fi | |
4764 | ||
4765 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
4766 | ||
4767 | fi; | |
4768 | ||
4769 | eval "$ac_cv_use_datetime" | |
4770 | if test "$no_cache" != 1; then | |
4771 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
4772 | fi | |
4773 | ||
4774 | if test "$wxUSE_DATETIME" = yes; then | |
4775 | echo "$as_me:$LINENO: result: yes" >&5 | |
4776 | echo "${ECHO_T}yes" >&6 | |
4777 | else | |
4778 | echo "$as_me:$LINENO: result: no" >&5 | |
4779 | echo "${ECHO_T}no" >&6 | |
4780 | fi | |
4781 | ||
4782 | ||
4783 | enablestring= | |
4784 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5 | |
4785 | echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6 | |
4786 | no_cache=0 | |
4787 | # Check whether --enable-dialupman or --disable-dialupman was given. | |
4788 | if test "${enable_dialupman+set}" = set; then | |
4789 | enableval="$enable_dialupman" | |
4790 | ||
4791 | if test "$enableval" = yes; then | |
4792 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' | |
4793 | else | |
4794 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' | |
4795 | fi | |
4796 | ||
4797 | else | |
4798 | ||
4799 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` | |
4800 | if test "x$LINE" != x ; then | |
4801 | eval "DEFAULT_$LINE" | |
4802 | else | |
4803 | no_cache=1 | |
4804 | fi | |
4805 | ||
4806 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER | |
4807 | ||
4808 | fi; | |
4809 | ||
4810 | eval "$ac_cv_use_dialupman" | |
4811 | if test "$no_cache" != 1; then | |
4812 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp | |
4813 | fi | |
4814 | ||
4815 | if test "$wxUSE_DIALUP_MANAGER" = yes; then | |
4816 | echo "$as_me:$LINENO: result: yes" >&5 | |
4817 | echo "${ECHO_T}yes" >&6 | |
4818 | else | |
4819 | echo "$as_me:$LINENO: result: no" >&5 | |
4820 | echo "${ECHO_T}no" >&6 | |
4821 | fi | |
4822 | ||
4823 | ||
4824 | enablestring= | |
4825 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5 | |
4826 | echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6 | |
4827 | no_cache=0 | |
4828 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
4829 | if test "${enable_dynlib+set}" = set; then | |
4830 | enableval="$enable_dynlib" | |
4831 | ||
4832 | if test "$enableval" = yes; then | |
4833 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
4834 | else | |
4835 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
4836 | fi | |
4837 | ||
4838 | else | |
4839 | ||
4840 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` | |
4841 | if test "x$LINE" != x ; then | |
4842 | eval "DEFAULT_$LINE" | |
4843 | else | |
4844 | no_cache=1 | |
4845 | fi | |
4846 | ||
4847 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
4848 | ||
4849 | fi; | |
4850 | ||
4851 | eval "$ac_cv_use_dynlib" | |
4852 | if test "$no_cache" != 1; then | |
4853 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
4854 | fi | |
4855 | ||
4856 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
4857 | echo "$as_me:$LINENO: result: yes" >&5 | |
4858 | echo "${ECHO_T}yes" >&6 | |
4859 | else | |
4860 | echo "$as_me:$LINENO: result: no" >&5 | |
4861 | echo "${ECHO_T}no" >&6 | |
4862 | fi | |
4863 | ||
4864 | ||
4865 | enablestring= | |
4866 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5 | |
4867 | echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6 | |
4868 | no_cache=0 | |
4869 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
4870 | if test "${enable_dynamicloader+set}" = set; then | |
4871 | enableval="$enable_dynamicloader" | |
4872 | ||
4873 | if test "$enableval" = yes; then | |
4874 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
4875 | else | |
4876 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
4877 | fi | |
4878 | ||
4879 | else | |
4880 | ||
4881 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` | |
4882 | if test "x$LINE" != x ; then | |
4883 | eval "DEFAULT_$LINE" | |
4884 | else | |
4885 | no_cache=1 | |
4886 | fi | |
4887 | ||
4888 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
4889 | ||
4890 | fi; | |
4891 | ||
4892 | eval "$ac_cv_use_dynamicloader" | |
4893 | if test "$no_cache" != 1; then | |
4894 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
4895 | fi | |
4896 | ||
4897 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
4898 | echo "$as_me:$LINENO: result: yes" >&5 | |
4899 | echo "${ECHO_T}yes" >&6 | |
4900 | else | |
4901 | echo "$as_me:$LINENO: result: no" >&5 | |
4902 | echo "${ECHO_T}no" >&6 | |
4903 | fi | |
4904 | ||
4905 | ||
4906 | enablestring= | |
4907 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5 | |
4908 | echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6 | |
4909 | no_cache=0 | |
4910 | # Check whether --enable-exceptions or --disable-exceptions was given. | |
4911 | if test "${enable_exceptions+set}" = set; then | |
4912 | enableval="$enable_exceptions" | |
4913 | ||
4914 | if test "$enableval" = yes; then | |
4915 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes' | |
4916 | else | |
4917 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no' | |
4918 | fi | |
4919 | ||
4920 | else | |
4921 | ||
4922 | LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}` | |
4923 | if test "x$LINE" != x ; then | |
4924 | eval "DEFAULT_$LINE" | |
4925 | else | |
4926 | no_cache=1 | |
4927 | fi | |
4928 | ||
4929 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS | |
4930 | ||
4931 | fi; | |
4932 | ||
4933 | eval "$ac_cv_use_exceptions" | |
4934 | if test "$no_cache" != 1; then | |
4935 | echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp | |
4936 | fi | |
4937 | ||
4938 | if test "$wxUSE_EXCEPTIONS" = yes; then | |
4939 | echo "$as_me:$LINENO: result: yes" >&5 | |
4940 | echo "${ECHO_T}yes" >&6 | |
4941 | else | |
4942 | echo "$as_me:$LINENO: result: no" >&5 | |
4943 | echo "${ECHO_T}no" >&6 | |
4944 | fi | |
4945 | ||
4946 | ||
4947 | enablestring= | |
4948 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5 | |
4949 | echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6 | |
4950 | no_cache=0 | |
4951 | # Check whether --enable-ffile or --disable-ffile was given. | |
4952 | if test "${enable_ffile+set}" = set; then | |
4953 | enableval="$enable_ffile" | |
4954 | ||
4955 | if test "$enableval" = yes; then | |
4956 | ac_cv_use_ffile='wxUSE_FFILE=yes' | |
4957 | else | |
4958 | ac_cv_use_ffile='wxUSE_FFILE=no' | |
4959 | fi | |
4960 | ||
4961 | else | |
4962 | ||
4963 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` | |
4964 | if test "x$LINE" != x ; then | |
4965 | eval "DEFAULT_$LINE" | |
4966 | else | |
4967 | no_cache=1 | |
4968 | fi | |
4969 | ||
4970 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE | |
4971 | ||
4972 | fi; | |
4973 | ||
4974 | eval "$ac_cv_use_ffile" | |
4975 | if test "$no_cache" != 1; then | |
4976 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp | |
4977 | fi | |
4978 | ||
4979 | if test "$wxUSE_FFILE" = yes; then | |
4980 | echo "$as_me:$LINENO: result: yes" >&5 | |
4981 | echo "${ECHO_T}yes" >&6 | |
4982 | else | |
4983 | echo "$as_me:$LINENO: result: no" >&5 | |
4984 | echo "${ECHO_T}no" >&6 | |
4985 | fi | |
4986 | ||
4987 | ||
4988 | enablestring= | |
4989 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5 | |
4990 | echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6 | |
4991 | no_cache=0 | |
4992 | # Check whether --enable-file or --disable-file was given. | |
4993 | if test "${enable_file+set}" = set; then | |
4994 | enableval="$enable_file" | |
4995 | ||
4996 | if test "$enableval" = yes; then | |
4997 | ac_cv_use_file='wxUSE_FILE=yes' | |
4998 | else | |
4999 | ac_cv_use_file='wxUSE_FILE=no' | |
5000 | fi | |
5001 | ||
5002 | else | |
5003 | ||
5004 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` | |
5005 | if test "x$LINE" != x ; then | |
5006 | eval "DEFAULT_$LINE" | |
5007 | else | |
5008 | no_cache=1 | |
5009 | fi | |
5010 | ||
5011 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
5012 | ||
5013 | fi; | |
5014 | ||
5015 | eval "$ac_cv_use_file" | |
5016 | if test "$no_cache" != 1; then | |
5017 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
5018 | fi | |
5019 | ||
5020 | if test "$wxUSE_FILE" = yes; then | |
5021 | echo "$as_me:$LINENO: result: yes" >&5 | |
5022 | echo "${ECHO_T}yes" >&6 | |
5023 | else | |
5024 | echo "$as_me:$LINENO: result: no" >&5 | |
5025 | echo "${ECHO_T}no" >&6 | |
5026 | fi | |
5027 | ||
5028 | ||
5029 | enablestring= | |
5030 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5 | |
5031 | echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6 | |
5032 | no_cache=0 | |
5033 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
5034 | if test "${enable_filesystem+set}" = set; then | |
5035 | enableval="$enable_filesystem" | |
5036 | ||
5037 | if test "$enableval" = yes; then | |
5038 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
5039 | else | |
5040 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
5041 | fi | |
5042 | ||
5043 | else | |
5044 | ||
5045 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` | |
5046 | if test "x$LINE" != x ; then | |
5047 | eval "DEFAULT_$LINE" | |
5048 | else | |
5049 | no_cache=1 | |
5050 | fi | |
5051 | ||
5052 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
5053 | ||
5054 | fi; | |
5055 | ||
5056 | eval "$ac_cv_use_filesystem" | |
5057 | if test "$no_cache" != 1; then | |
5058 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
5059 | fi | |
5060 | ||
5061 | if test "$wxUSE_FILESYSTEM" = yes; then | |
5062 | echo "$as_me:$LINENO: result: yes" >&5 | |
5063 | echo "${ECHO_T}yes" >&6 | |
5064 | else | |
5065 | echo "$as_me:$LINENO: result: no" >&5 | |
5066 | echo "${ECHO_T}no" >&6 | |
5067 | fi | |
5068 | ||
5069 | ||
5070 | enablestring= | |
5071 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5 | |
5072 | echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6 | |
5073 | no_cache=0 | |
5074 | # Check whether --enable-fontmap or --disable-fontmap was given. | |
5075 | if test "${enable_fontmap+set}" = set; then | |
5076 | enableval="$enable_fontmap" | |
5077 | ||
5078 | if test "$enableval" = yes; then | |
5079 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' | |
5080 | else | |
5081 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' | |
5082 | fi | |
5083 | ||
5084 | else | |
5085 | ||
5086 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` | |
5087 | if test "x$LINE" != x ; then | |
5088 | eval "DEFAULT_$LINE" | |
5089 | else | |
5090 | no_cache=1 | |
5091 | fi | |
5092 | ||
5093 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP | |
5094 | ||
5095 | fi; | |
5096 | ||
5097 | eval "$ac_cv_use_fontmap" | |
5098 | if test "$no_cache" != 1; then | |
5099 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp | |
5100 | fi | |
5101 | ||
5102 | if test "$wxUSE_FONTMAP" = yes; then | |
5103 | echo "$as_me:$LINENO: result: yes" >&5 | |
5104 | echo "${ECHO_T}yes" >&6 | |
5105 | else | |
5106 | echo "$as_me:$LINENO: result: no" >&5 | |
5107 | echo "${ECHO_T}no" >&6 | |
5108 | fi | |
5109 | ||
5110 | ||
5111 | enablestring= | |
5112 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5 | |
5113 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6 | |
5114 | no_cache=0 | |
5115 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
5116 | if test "${enable_fs_inet+set}" = set; then | |
5117 | enableval="$enable_fs_inet" | |
5118 | ||
5119 | if test "$enableval" = yes; then | |
5120 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
5121 | else | |
5122 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
5123 | fi | |
5124 | ||
5125 | else | |
5126 | ||
5127 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` | |
5128 | if test "x$LINE" != x ; then | |
5129 | eval "DEFAULT_$LINE" | |
5130 | else | |
5131 | no_cache=1 | |
5132 | fi | |
5133 | ||
5134 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
5135 | ||
5136 | fi; | |
5137 | ||
5138 | eval "$ac_cv_use_fs_inet" | |
5139 | if test "$no_cache" != 1; then | |
5140 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
5141 | fi | |
5142 | ||
5143 | if test "$wxUSE_FS_INET" = yes; then | |
5144 | echo "$as_me:$LINENO: result: yes" >&5 | |
5145 | echo "${ECHO_T}yes" >&6 | |
5146 | else | |
5147 | echo "$as_me:$LINENO: result: no" >&5 | |
5148 | echo "${ECHO_T}no" >&6 | |
5149 | fi | |
5150 | ||
5151 | ||
5152 | enablestring= | |
5153 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5 | |
5154 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6 | |
5155 | no_cache=0 | |
5156 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
5157 | if test "${enable_fs_zip+set}" = set; then | |
5158 | enableval="$enable_fs_zip" | |
5159 | ||
5160 | if test "$enableval" = yes; then | |
5161 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
5162 | else | |
5163 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
5164 | fi | |
5165 | ||
5166 | else | |
5167 | ||
5168 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` | |
5169 | if test "x$LINE" != x ; then | |
5170 | eval "DEFAULT_$LINE" | |
5171 | else | |
5172 | no_cache=1 | |
5173 | fi | |
5174 | ||
5175 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
5176 | ||
5177 | fi; | |
5178 | ||
5179 | eval "$ac_cv_use_fs_zip" | |
5180 | if test "$no_cache" != 1; then | |
5181 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
5182 | fi | |
5183 | ||
5184 | if test "$wxUSE_FS_ZIP" = yes; then | |
5185 | echo "$as_me:$LINENO: result: yes" >&5 | |
5186 | echo "${ECHO_T}yes" >&6 | |
5187 | else | |
5188 | echo "$as_me:$LINENO: result: no" >&5 | |
5189 | echo "${ECHO_T}no" >&6 | |
5190 | fi | |
5191 | ||
5192 | ||
5193 | enablestring= | |
5194 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5 | |
5195 | echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6 | |
5196 | no_cache=0 | |
5197 | # Check whether --enable-geometry or --disable-geometry was given. | |
5198 | if test "${enable_geometry+set}" = set; then | |
5199 | enableval="$enable_geometry" | |
5200 | ||
5201 | if test "$enableval" = yes; then | |
5202 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
5203 | else | |
5204 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
5205 | fi | |
5206 | ||
5207 | else | |
5208 | ||
5209 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` | |
5210 | if test "x$LINE" != x ; then | |
5211 | eval "DEFAULT_$LINE" | |
5212 | else | |
5213 | no_cache=1 | |
5214 | fi | |
5215 | ||
5216 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
5217 | ||
5218 | fi; | |
5219 | ||
5220 | eval "$ac_cv_use_geometry" | |
5221 | if test "$no_cache" != 1; then | |
5222 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
5223 | fi | |
5224 | ||
5225 | if test "$wxUSE_GEOMETRY" = yes; then | |
5226 | echo "$as_me:$LINENO: result: yes" >&5 | |
5227 | echo "${ECHO_T}yes" >&6 | |
5228 | else | |
5229 | echo "$as_me:$LINENO: result: no" >&5 | |
5230 | echo "${ECHO_T}no" >&6 | |
5231 | fi | |
5232 | ||
5233 | ||
5234 | enablestring= | |
5235 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5 | |
5236 | echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6 | |
5237 | no_cache=0 | |
5238 | # Check whether --enable-log or --disable-log was given. | |
5239 | if test "${enable_log+set}" = set; then | |
5240 | enableval="$enable_log" | |
5241 | ||
5242 | if test "$enableval" = yes; then | |
5243 | ac_cv_use_log='wxUSE_LOG=yes' | |
5244 | else | |
5245 | ac_cv_use_log='wxUSE_LOG=no' | |
5246 | fi | |
5247 | ||
5248 | else | |
5249 | ||
5250 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` | |
5251 | if test "x$LINE" != x ; then | |
5252 | eval "DEFAULT_$LINE" | |
5253 | else | |
5254 | no_cache=1 | |
5255 | fi | |
5256 | ||
5257 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
5258 | ||
5259 | fi; | |
5260 | ||
5261 | eval "$ac_cv_use_log" | |
5262 | if test "$no_cache" != 1; then | |
5263 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
5264 | fi | |
5265 | ||
5266 | if test "$wxUSE_LOG" = yes; then | |
5267 | echo "$as_me:$LINENO: result: yes" >&5 | |
5268 | echo "${ECHO_T}yes" >&6 | |
5269 | else | |
5270 | echo "$as_me:$LINENO: result: no" >&5 | |
5271 | echo "${ECHO_T}no" >&6 | |
5272 | fi | |
5273 | ||
5274 | ||
5275 | enablestring= | |
5276 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5 | |
5277 | echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6 | |
5278 | no_cache=0 | |
5279 | # Check whether --enable-longlong or --disable-longlong was given. | |
5280 | if test "${enable_longlong+set}" = set; then | |
5281 | enableval="$enable_longlong" | |
5282 | ||
5283 | if test "$enableval" = yes; then | |
5284 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
5285 | else | |
5286 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
5287 | fi | |
5288 | ||
5289 | else | |
5290 | ||
5291 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` | |
5292 | if test "x$LINE" != x ; then | |
5293 | eval "DEFAULT_$LINE" | |
5294 | else | |
5295 | no_cache=1 | |
5296 | fi | |
5297 | ||
5298 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
5299 | ||
5300 | fi; | |
5301 | ||
5302 | eval "$ac_cv_use_longlong" | |
5303 | if test "$no_cache" != 1; then | |
5304 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
5305 | fi | |
5306 | ||
5307 | if test "$wxUSE_LONGLONG" = yes; then | |
5308 | echo "$as_me:$LINENO: result: yes" >&5 | |
5309 | echo "${ECHO_T}yes" >&6 | |
5310 | else | |
5311 | echo "$as_me:$LINENO: result: no" >&5 | |
5312 | echo "${ECHO_T}no" >&6 | |
5313 | fi | |
5314 | ||
5315 | ||
5316 | enablestring= | |
5317 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5 | |
5318 | echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6 | |
5319 | no_cache=0 | |
5320 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
5321 | if test "${enable_mimetype+set}" = set; then | |
5322 | enableval="$enable_mimetype" | |
5323 | ||
5324 | if test "$enableval" = yes; then | |
5325 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
5326 | else | |
5327 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
5328 | fi | |
5329 | ||
5330 | else | |
5331 | ||
5332 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
5333 | if test "x$LINE" != x ; then | |
5334 | eval "DEFAULT_$LINE" | |
5335 | else | |
5336 | no_cache=1 | |
5337 | fi | |
5338 | ||
5339 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
5340 | ||
5341 | fi; | |
5342 | ||
5343 | eval "$ac_cv_use_mimetype" | |
5344 | if test "$no_cache" != 1; then | |
5345 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
5346 | fi | |
5347 | ||
5348 | if test "$wxUSE_MIMETYPE" = yes; then | |
5349 | echo "$as_me:$LINENO: result: yes" >&5 | |
5350 | echo "${ECHO_T}yes" >&6 | |
5351 | else | |
5352 | echo "$as_me:$LINENO: result: no" >&5 | |
5353 | echo "${ECHO_T}no" >&6 | |
5354 | fi | |
5355 | ||
5356 | ||
5357 | enablestring= | |
5358 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5 | |
5359 | echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6 | |
5360 | no_cache=0 | |
5361 | # Check whether --enable-mslu or --disable-mslu was given. | |
5362 | if test "${enable_mslu+set}" = set; then | |
5363 | enableval="$enable_mslu" | |
5364 | ||
5365 | if test "$enableval" = yes; then | |
5366 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
5367 | else | |
5368 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
5369 | fi | |
5370 | ||
5371 | else | |
5372 | ||
5373 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` | |
5374 | if test "x$LINE" != x ; then | |
5375 | eval "DEFAULT_$LINE" | |
5376 | else | |
5377 | no_cache=1 | |
5378 | fi | |
5379 | ||
5380 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
5381 | ||
5382 | fi; | |
5383 | ||
5384 | eval "$ac_cv_use_mslu" | |
5385 | if test "$no_cache" != 1; then | |
5386 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
5387 | fi | |
5388 | ||
5389 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
5390 | echo "$as_me:$LINENO: result: yes" >&5 | |
5391 | echo "${ECHO_T}yes" >&6 | |
5392 | else | |
5393 | echo "$as_me:$LINENO: result: no" >&5 | |
5394 | echo "${ECHO_T}no" >&6 | |
5395 | fi | |
5396 | ||
5397 | ||
5398 | enablestring= | |
5399 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5 | |
5400 | echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6 | |
5401 | no_cache=0 | |
5402 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
5403 | if test "${enable_snglinst+set}" = set; then | |
5404 | enableval="$enable_snglinst" | |
5405 | ||
5406 | if test "$enableval" = yes; then | |
5407 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
5408 | else | |
5409 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
5410 | fi | |
5411 | ||
5412 | else | |
5413 | ||
5414 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` | |
5415 | if test "x$LINE" != x ; then | |
5416 | eval "DEFAULT_$LINE" | |
5417 | else | |
5418 | no_cache=1 | |
5419 | fi | |
5420 | ||
5421 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
5422 | ||
5423 | fi; | |
5424 | ||
5425 | eval "$ac_cv_use_snglinst" | |
5426 | if test "$no_cache" != 1; then | |
5427 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
5428 | fi | |
5429 | ||
5430 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
5431 | echo "$as_me:$LINENO: result: yes" >&5 | |
5432 | echo "${ECHO_T}yes" >&6 | |
5433 | else | |
5434 | echo "$as_me:$LINENO: result: no" >&5 | |
5435 | echo "${ECHO_T}no" >&6 | |
5436 | fi | |
5437 | ||
5438 | ||
5439 | enablestring= | |
5440 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5 | |
5441 | echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6 | |
5442 | no_cache=0 | |
5443 | # Check whether --enable-streams or --disable-streams was given. | |
5444 | if test "${enable_streams+set}" = set; then | |
5445 | enableval="$enable_streams" | |
5446 | ||
5447 | if test "$enableval" = yes; then | |
5448 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
5449 | else | |
5450 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
5451 | fi | |
5452 | ||
5453 | else | |
5454 | ||
5455 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
5456 | if test "x$LINE" != x ; then | |
5457 | eval "DEFAULT_$LINE" | |
5458 | else | |
5459 | no_cache=1 | |
5460 | fi | |
5461 | ||
5462 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
5463 | ||
5464 | fi; | |
5465 | ||
5466 | eval "$ac_cv_use_streams" | |
5467 | if test "$no_cache" != 1; then | |
5468 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
5469 | fi | |
5470 | ||
5471 | if test "$wxUSE_STREAMS" = yes; then | |
5472 | echo "$as_me:$LINENO: result: yes" >&5 | |
5473 | echo "${ECHO_T}yes" >&6 | |
5474 | else | |
5475 | echo "$as_me:$LINENO: result: no" >&5 | |
5476 | echo "${ECHO_T}no" >&6 | |
5477 | fi | |
5478 | ||
5479 | ||
5480 | enablestring= | |
5481 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5 | |
5482 | echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6 | |
5483 | no_cache=0 | |
5484 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
5485 | if test "${enable_std_iostreams+set}" = set; then | |
5486 | enableval="$enable_std_iostreams" | |
5487 | ||
5488 | if test "$enableval" = yes; then | |
5489 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
5490 | else | |
5491 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
5492 | fi | |
5493 | ||
5494 | else | |
5495 | ||
5496 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` | |
5497 | if test "x$LINE" != x ; then | |
5498 | eval "DEFAULT_$LINE" | |
5499 | else | |
5500 | no_cache=1 | |
5501 | fi | |
5502 | ||
5503 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
5504 | ||
5505 | fi; | |
5506 | ||
5507 | eval "$ac_cv_use_std_iostreams" | |
5508 | if test "$no_cache" != 1; then | |
5509 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
5510 | fi | |
5511 | ||
5512 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
5513 | echo "$as_me:$LINENO: result: yes" >&5 | |
5514 | echo "${ECHO_T}yes" >&6 | |
5515 | else | |
5516 | echo "$as_me:$LINENO: result: no" >&5 | |
5517 | echo "${ECHO_T}no" >&6 | |
5518 | fi | |
5519 | ||
5520 | ||
5521 | enablestring= | |
5522 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5 | |
5523 | echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6 | |
5524 | no_cache=0 | |
5525 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
5526 | if test "${enable_stopwatch+set}" = set; then | |
5527 | enableval="$enable_stopwatch" | |
5528 | ||
5529 | if test "$enableval" = yes; then | |
5530 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
5531 | else | |
5532 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
5533 | fi | |
5534 | ||
5535 | else | |
5536 | ||
5537 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
5538 | if test "x$LINE" != x ; then | |
5539 | eval "DEFAULT_$LINE" | |
5540 | else | |
5541 | no_cache=1 | |
5542 | fi | |
5543 | ||
5544 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
5545 | ||
5546 | fi; | |
5547 | ||
5548 | eval "$ac_cv_use_stopwatch" | |
5549 | if test "$no_cache" != 1; then | |
5550 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
5551 | fi | |
5552 | ||
5553 | if test "$wxUSE_STOPWATCH" = yes; then | |
5554 | echo "$as_me:$LINENO: result: yes" >&5 | |
5555 | echo "${ECHO_T}yes" >&6 | |
5556 | else | |
5557 | echo "$as_me:$LINENO: result: no" >&5 | |
5558 | echo "${ECHO_T}no" >&6 | |
5559 | fi | |
5560 | ||
5561 | ||
5562 | enablestring= | |
5563 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5 | |
5564 | echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6 | |
5565 | no_cache=0 | |
5566 | # Check whether --enable-system_options or --disable-system_options was given. | |
5567 | if test "${enable_system_options+set}" = set; then | |
5568 | enableval="$enable_system_options" | |
5569 | ||
5570 | if test "$enableval" = yes; then | |
5571 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
5572 | else | |
5573 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
5574 | fi | |
5575 | ||
5576 | else | |
5577 | ||
5578 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
5579 | if test "x$LINE" != x ; then | |
5580 | eval "DEFAULT_$LINE" | |
5581 | else | |
5582 | no_cache=1 | |
5583 | fi | |
5584 | ||
5585 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
5586 | ||
5587 | fi; | |
5588 | ||
5589 | eval "$ac_cv_use_system_options" | |
5590 | if test "$no_cache" != 1; then | |
5591 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
5592 | fi | |
5593 | ||
5594 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
5595 | echo "$as_me:$LINENO: result: yes" >&5 | |
5596 | echo "${ECHO_T}yes" >&6 | |
5597 | else | |
5598 | echo "$as_me:$LINENO: result: no" >&5 | |
5599 | echo "${ECHO_T}no" >&6 | |
5600 | fi | |
5601 | ||
5602 | ||
5603 | enablestring= | |
5604 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5 | |
5605 | echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6 | |
5606 | no_cache=0 | |
5607 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
5608 | if test "${enable_textbuf+set}" = set; then | |
5609 | enableval="$enable_textbuf" | |
5610 | ||
5611 | if test "$enableval" = yes; then | |
5612 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
5613 | else | |
5614 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
5615 | fi | |
5616 | ||
5617 | else | |
5618 | ||
5619 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` | |
5620 | if test "x$LINE" != x ; then | |
5621 | eval "DEFAULT_$LINE" | |
5622 | else | |
5623 | no_cache=1 | |
5624 | fi | |
5625 | ||
5626 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
5627 | ||
5628 | fi; | |
5629 | ||
5630 | eval "$ac_cv_use_textbuf" | |
5631 | if test "$no_cache" != 1; then | |
5632 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
5633 | fi | |
5634 | ||
5635 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
5636 | echo "$as_me:$LINENO: result: yes" >&5 | |
5637 | echo "${ECHO_T}yes" >&6 | |
5638 | else | |
5639 | echo "$as_me:$LINENO: result: no" >&5 | |
5640 | echo "${ECHO_T}no" >&6 | |
5641 | fi | |
5642 | ||
5643 | ||
5644 | enablestring= | |
5645 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5 | |
5646 | echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6 | |
5647 | no_cache=0 | |
5648 | # Check whether --enable-textfile or --disable-textfile was given. | |
5649 | if test "${enable_textfile+set}" = set; then | |
5650 | enableval="$enable_textfile" | |
5651 | ||
5652 | if test "$enableval" = yes; then | |
5653 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' | |
5654 | else | |
5655 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' | |
5656 | fi | |
5657 | ||
5658 | else | |
5659 | ||
5660 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` | |
5661 | if test "x$LINE" != x ; then | |
5662 | eval "DEFAULT_$LINE" | |
5663 | else | |
5664 | no_cache=1 | |
5665 | fi | |
5666 | ||
5667 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE | |
5668 | ||
5669 | fi; | |
5670 | ||
5671 | eval "$ac_cv_use_textfile" | |
5672 | if test "$no_cache" != 1; then | |
5673 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp | |
5674 | fi | |
5675 | ||
5676 | if test "$wxUSE_TEXTFILE" = yes; then | |
5677 | echo "$as_me:$LINENO: result: yes" >&5 | |
5678 | echo "${ECHO_T}yes" >&6 | |
5679 | else | |
5680 | echo "$as_me:$LINENO: result: no" >&5 | |
5681 | echo "${ECHO_T}no" >&6 | |
5682 | fi | |
5683 | ||
5684 | ||
5685 | enablestring= | |
5686 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5 | |
5687 | echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6 | |
5688 | no_cache=0 | |
5689 | # Check whether --enable-timer or --disable-timer was given. | |
5690 | if test "${enable_timer+set}" = set; then | |
5691 | enableval="$enable_timer" | |
5692 | ||
5693 | if test "$enableval" = yes; then | |
5694 | ac_cv_use_timer='wxUSE_TIMER=yes' | |
5695 | else | |
5696 | ac_cv_use_timer='wxUSE_TIMER=no' | |
5697 | fi | |
5698 | ||
5699 | else | |
5700 | ||
5701 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` | |
5702 | if test "x$LINE" != x ; then | |
5703 | eval "DEFAULT_$LINE" | |
5704 | else | |
5705 | no_cache=1 | |
5706 | fi | |
5707 | ||
5708 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER | |
5709 | ||
5710 | fi; | |
5711 | ||
5712 | eval "$ac_cv_use_timer" | |
5713 | if test "$no_cache" != 1; then | |
5714 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp | |
5715 | fi | |
5716 | ||
5717 | if test "$wxUSE_TIMER" = yes; then | |
5718 | echo "$as_me:$LINENO: result: yes" >&5 | |
5719 | echo "${ECHO_T}yes" >&6 | |
5720 | else | |
5721 | echo "$as_me:$LINENO: result: no" >&5 | |
5722 | echo "${ECHO_T}no" >&6 | |
5723 | fi | |
5724 | ||
5725 | ||
5726 | enablestring= | |
5727 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5 | |
5728 | echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6 | |
5729 | no_cache=0 | |
5730 | # Check whether --enable-unicode or --disable-unicode was given. | |
5731 | if test "${enable_unicode+set}" = set; then | |
5732 | enableval="$enable_unicode" | |
5733 | ||
5734 | if test "$enableval" = yes; then | |
5735 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
5736 | else | |
5737 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
5738 | fi | |
5739 | ||
5740 | else | |
5741 | ||
5742 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
5743 | if test "x$LINE" != x ; then | |
5744 | eval "DEFAULT_$LINE" | |
5745 | else | |
5746 | no_cache=1 | |
5747 | fi | |
5748 | ||
5749 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
5750 | ||
5751 | fi; | |
5752 | ||
5753 | eval "$ac_cv_use_unicode" | |
5754 | if test "$no_cache" != 1; then | |
5755 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
5756 | fi | |
5757 | ||
5758 | if test "$wxUSE_UNICODE" = yes; then | |
5759 | echo "$as_me:$LINENO: result: yes" >&5 | |
5760 | echo "${ECHO_T}yes" >&6 | |
5761 | else | |
5762 | echo "$as_me:$LINENO: result: no" >&5 | |
5763 | echo "${ECHO_T}no" >&6 | |
5764 | fi | |
5765 | ||
5766 | ||
5767 | enablestring= | |
5768 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5 | |
5769 | echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6 | |
5770 | no_cache=0 | |
5771 | # Check whether --enable-sound or --disable-sound was given. | |
5772 | if test "${enable_sound+set}" = set; then | |
5773 | enableval="$enable_sound" | |
5774 | ||
5775 | if test "$enableval" = yes; then | |
5776 | ac_cv_use_sound='wxUSE_SOUND=yes' | |
5777 | else | |
5778 | ac_cv_use_sound='wxUSE_SOUND=no' | |
5779 | fi | |
5780 | ||
5781 | else | |
5782 | ||
5783 | LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}` | |
5784 | if test "x$LINE" != x ; then | |
5785 | eval "DEFAULT_$LINE" | |
5786 | else | |
5787 | no_cache=1 | |
5788 | fi | |
5789 | ||
5790 | ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND | |
5791 | ||
5792 | fi; | |
5793 | ||
5794 | eval "$ac_cv_use_sound" | |
5795 | if test "$no_cache" != 1; then | |
5796 | echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp | |
5797 | fi | |
5798 | ||
5799 | if test "$wxUSE_SOUND" = yes; then | |
5800 | echo "$as_me:$LINENO: result: yes" >&5 | |
5801 | echo "${ECHO_T}yes" >&6 | |
5802 | else | |
5803 | echo "$as_me:$LINENO: result: no" >&5 | |
5804 | echo "${ECHO_T}no" >&6 | |
5805 | fi | |
5806 | ||
5807 | ||
3b57de8b RL |
5808 | enablestring= |
5809 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5 | |
5810 | echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6 | |
5811 | no_cache=0 | |
5812 | # Check whether --enable-mediactrl or --disable-mediactrl was given. | |
5813 | if test "${enable_mediactrl+set}" = set; then | |
5814 | enableval="$enable_mediactrl" | |
5815 | ||
5816 | if test "$enableval" = yes; then | |
5817 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes' | |
5818 | else | |
5819 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no' | |
5820 | fi | |
5821 | ||
5822 | else | |
5823 | ||
5824 | LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}` | |
5825 | if test "x$LINE" != x ; then | |
5826 | eval "DEFAULT_$LINE" | |
5827 | else | |
5828 | no_cache=1 | |
5829 | fi | |
5830 | ||
5831 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL | |
5832 | ||
5833 | fi; | |
5834 | ||
5835 | eval "$ac_cv_use_mediactrl" | |
5836 | if test "$no_cache" != 1; then | |
5837 | echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp | |
5838 | fi | |
5839 | ||
5840 | if test "$wxUSE_MEDIACTRL" = yes; then | |
5841 | echo "$as_me:$LINENO: result: yes" >&5 | |
5842 | echo "${ECHO_T}yes" >&6 | |
5843 | else | |
5844 | echo "$as_me:$LINENO: result: no" >&5 | |
5845 | echo "${ECHO_T}no" >&6 | |
5846 | fi | |
5847 | ||
5848 | ||
a848cd7e SC |
5849 | enablestring= |
5850 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5 | |
5851 | echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6 | |
5852 | no_cache=0 | |
5853 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
5854 | if test "${enable_wxprintfv+set}" = set; then | |
5855 | enableval="$enable_wxprintfv" | |
5856 | ||
5857 | if test "$enableval" = yes; then | |
5858 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' | |
5859 | else | |
5860 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
5861 | fi | |
5862 | ||
5863 | else | |
5864 | ||
5865 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` | |
5866 | if test "x$LINE" != x ; then | |
5867 | eval "DEFAULT_$LINE" | |
5868 | else | |
5869 | no_cache=1 | |
5870 | fi | |
5871 | ||
5872 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
5873 | ||
5874 | fi; | |
5875 | ||
5876 | eval "$ac_cv_use_wxprintfv" | |
5877 | if test "$no_cache" != 1; then | |
5878 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
5879 | fi | |
5880 | ||
5881 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
5882 | echo "$as_me:$LINENO: result: yes" >&5 | |
5883 | echo "${ECHO_T}yes" >&6 | |
5884 | else | |
5885 | echo "$as_me:$LINENO: result: no" >&5 | |
5886 | echo "${ECHO_T}no" >&6 | |
5887 | fi | |
5888 | ||
5889 | ||
5890 | enablestring= | |
5891 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5 | |
5892 | echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6 | |
5893 | no_cache=0 | |
5894 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
5895 | if test "${enable_zipstream+set}" = set; then | |
5896 | enableval="$enable_zipstream" | |
5897 | ||
5898 | if test "$enableval" = yes; then | |
5899 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
5900 | else | |
5901 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
5902 | fi | |
5903 | ||
5904 | else | |
5905 | ||
5906 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` | |
5907 | if test "x$LINE" != x ; then | |
5908 | eval "DEFAULT_$LINE" | |
5909 | else | |
5910 | no_cache=1 | |
5911 | fi | |
5912 | ||
5913 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
5914 | ||
5915 | fi; | |
5916 | ||
5917 | eval "$ac_cv_use_zipstream" | |
5918 | if test "$no_cache" != 1; then | |
5919 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
5920 | fi | |
5921 | ||
5922 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
5923 | echo "$as_me:$LINENO: result: yes" >&5 | |
5924 | echo "${ECHO_T}yes" >&6 | |
5925 | else | |
5926 | echo "$as_me:$LINENO: result: no" >&5 | |
5927 | echo "${ECHO_T}no" >&6 | |
5928 | fi | |
5929 | ||
5930 | ||
a848cd7e SC |
5931 | |
5932 | enablestring= | |
5933 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5 | |
5934 | echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6 | |
5935 | no_cache=0 | |
5936 | # Check whether --enable-url or --disable-url was given. | |
5937 | if test "${enable_url+set}" = set; then | |
5938 | enableval="$enable_url" | |
5939 | ||
5940 | if test "$enableval" = yes; then | |
5941 | ac_cv_use_url='wxUSE_URL=yes' | |
5942 | else | |
5943 | ac_cv_use_url='wxUSE_URL=no' | |
5944 | fi | |
5945 | ||
5946 | else | |
5947 | ||
5948 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` | |
5949 | if test "x$LINE" != x ; then | |
5950 | eval "DEFAULT_$LINE" | |
5951 | else | |
5952 | no_cache=1 | |
5953 | fi | |
5954 | ||
5955 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
5956 | ||
5957 | fi; | |
5958 | ||
5959 | eval "$ac_cv_use_url" | |
5960 | if test "$no_cache" != 1; then | |
5961 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
5962 | fi | |
5963 | ||
5964 | if test "$wxUSE_URL" = yes; then | |
5965 | echo "$as_me:$LINENO: result: yes" >&5 | |
5966 | echo "${ECHO_T}yes" >&6 | |
5967 | else | |
5968 | echo "$as_me:$LINENO: result: no" >&5 | |
5969 | echo "${ECHO_T}no" >&6 | |
5970 | fi | |
5971 | ||
5972 | ||
5973 | enablestring= | |
5974 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5 | |
5975 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6 | |
5976 | no_cache=0 | |
5977 | # Check whether --enable-protocol or --disable-protocol was given. | |
5978 | if test "${enable_protocol+set}" = set; then | |
5979 | enableval="$enable_protocol" | |
5980 | ||
5981 | if test "$enableval" = yes; then | |
5982 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
5983 | else | |
5984 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
5985 | fi | |
5986 | ||
5987 | else | |
5988 | ||
5989 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
5990 | if test "x$LINE" != x ; then | |
5991 | eval "DEFAULT_$LINE" | |
5992 | else | |
5993 | no_cache=1 | |
5994 | fi | |
5995 | ||
5996 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
5997 | ||
5998 | fi; | |
5999 | ||
6000 | eval "$ac_cv_use_protocol" | |
6001 | if test "$no_cache" != 1; then | |
6002 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
6003 | fi | |
6004 | ||
6005 | if test "$wxUSE_PROTOCOL" = yes; then | |
6006 | echo "$as_me:$LINENO: result: yes" >&5 | |
6007 | echo "${ECHO_T}yes" >&6 | |
6008 | else | |
6009 | echo "$as_me:$LINENO: result: no" >&5 | |
6010 | echo "${ECHO_T}no" >&6 | |
6011 | fi | |
6012 | ||
6013 | ||
6014 | enablestring= | |
6015 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5 | |
6016 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6 | |
6017 | no_cache=0 | |
6018 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
6019 | if test "${enable_protocol_http+set}" = set; then | |
6020 | enableval="$enable_protocol_http" | |
6021 | ||
6022 | if test "$enableval" = yes; then | |
6023 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
6024 | else | |
6025 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
6026 | fi | |
6027 | ||
6028 | else | |
6029 | ||
6030 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
6031 | if test "x$LINE" != x ; then | |
6032 | eval "DEFAULT_$LINE" | |
6033 | else | |
6034 | no_cache=1 | |
6035 | fi | |
6036 | ||
6037 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
6038 | ||
6039 | fi; | |
6040 | ||
6041 | eval "$ac_cv_use_protocol_http" | |
6042 | if test "$no_cache" != 1; then | |
6043 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
6044 | fi | |
6045 | ||
6046 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
6047 | echo "$as_me:$LINENO: result: yes" >&5 | |
6048 | echo "${ECHO_T}yes" >&6 | |
6049 | else | |
6050 | echo "$as_me:$LINENO: result: no" >&5 | |
6051 | echo "${ECHO_T}no" >&6 | |
6052 | fi | |
6053 | ||
6054 | ||
6055 | enablestring= | |
6056 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5 | |
6057 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6 | |
6058 | no_cache=0 | |
6059 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
6060 | if test "${enable_protocol_ftp+set}" = set; then | |
6061 | enableval="$enable_protocol_ftp" | |
6062 | ||
6063 | if test "$enableval" = yes; then | |
6064 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
6065 | else | |
6066 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
6067 | fi | |
6068 | ||
6069 | else | |
6070 | ||
6071 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
6072 | if test "x$LINE" != x ; then | |
6073 | eval "DEFAULT_$LINE" | |
6074 | else | |
6075 | no_cache=1 | |
6076 | fi | |
6077 | ||
6078 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
6079 | ||
6080 | fi; | |
6081 | ||
6082 | eval "$ac_cv_use_protocol_ftp" | |
6083 | if test "$no_cache" != 1; then | |
6084 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
6085 | fi | |
6086 | ||
6087 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
6088 | echo "$as_me:$LINENO: result: yes" >&5 | |
6089 | echo "${ECHO_T}yes" >&6 | |
6090 | else | |
6091 | echo "$as_me:$LINENO: result: no" >&5 | |
6092 | echo "${ECHO_T}no" >&6 | |
6093 | fi | |
6094 | ||
6095 | ||
6096 | enablestring= | |
6097 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5 | |
6098 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6 | |
6099 | no_cache=0 | |
6100 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
6101 | if test "${enable_protocol_file+set}" = set; then | |
6102 | enableval="$enable_protocol_file" | |
6103 | ||
6104 | if test "$enableval" = yes; then | |
6105 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
6106 | else | |
6107 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
6108 | fi | |
6109 | ||
6110 | else | |
6111 | ||
6112 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
6113 | if test "x$LINE" != x ; then | |
6114 | eval "DEFAULT_$LINE" | |
6115 | else | |
6116 | no_cache=1 | |
6117 | fi | |
6118 | ||
6119 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
6120 | ||
6121 | fi; | |
6122 | ||
6123 | eval "$ac_cv_use_protocol_file" | |
6124 | if test "$no_cache" != 1; then | |
6125 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
6126 | fi | |
6127 | ||
6128 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
6129 | echo "$as_me:$LINENO: result: yes" >&5 | |
6130 | echo "${ECHO_T}yes" >&6 | |
6131 | else | |
6132 | echo "$as_me:$LINENO: result: no" >&5 | |
6133 | echo "${ECHO_T}no" >&6 | |
6134 | fi | |
6135 | ||
6136 | ||
6137 | ||
6138 | ||
6139 | ||
6140 | enablestring= | |
6141 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5 | |
6142 | echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6 | |
6143 | no_cache=0 | |
6144 | # Check whether --enable-threads or --disable-threads was given. | |
6145 | if test "${enable_threads+set}" = set; then | |
6146 | enableval="$enable_threads" | |
6147 | ||
6148 | if test "$enableval" = yes; then | |
6149 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
6150 | else | |
6151 | ac_cv_use_threads='wxUSE_THREADS=no' | |
6152 | fi | |
6153 | ||
6154 | else | |
6155 | ||
6156 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` | |
6157 | if test "x$LINE" != x ; then | |
6158 | eval "DEFAULT_$LINE" | |
6159 | else | |
6160 | no_cache=1 | |
6161 | fi | |
6162 | ||
6163 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
6164 | ||
6165 | fi; | |
6166 | ||
6167 | eval "$ac_cv_use_threads" | |
6168 | if test "$no_cache" != 1; then | |
6169 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
6170 | fi | |
6171 | ||
6172 | if test "$wxUSE_THREADS" = yes; then | |
6173 | echo "$as_me:$LINENO: result: yes" >&5 | |
6174 | echo "${ECHO_T}yes" >&6 | |
6175 | else | |
6176 | echo "$as_me:$LINENO: result: no" >&5 | |
6177 | echo "${ECHO_T}no" >&6 | |
6178 | fi | |
6179 | ||
6180 | ||
6181 | if test "$wxUSE_GUI" = "yes"; then | |
6182 | ||
6183 | ||
6184 | ||
6185 | enablestring= | |
6186 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5 | |
6187 | echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6 | |
6188 | no_cache=0 | |
6189 | # Check whether --enable-docview or --disable-docview was given. | |
6190 | if test "${enable_docview+set}" = set; then | |
6191 | enableval="$enable_docview" | |
6192 | ||
6193 | if test "$enableval" = yes; then | |
6194 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
6195 | else | |
6196 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
6197 | fi | |
6198 | ||
6199 | else | |
6200 | ||
6201 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` | |
6202 | if test "x$LINE" != x ; then | |
6203 | eval "DEFAULT_$LINE" | |
6204 | else | |
6205 | no_cache=1 | |
6206 | fi | |
6207 | ||
6208 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
6209 | ||
6210 | fi; | |
6211 | ||
6212 | eval "$ac_cv_use_docview" | |
6213 | if test "$no_cache" != 1; then | |
6214 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
6215 | fi | |
6216 | ||
6217 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
6218 | echo "$as_me:$LINENO: result: yes" >&5 | |
6219 | echo "${ECHO_T}yes" >&6 | |
6220 | else | |
6221 | echo "$as_me:$LINENO: result: no" >&5 | |
6222 | echo "${ECHO_T}no" >&6 | |
6223 | fi | |
6224 | ||
6225 | ||
6226 | enablestring= | |
6227 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5 | |
6228 | echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6 | |
6229 | no_cache=0 | |
6230 | # Check whether --enable-help or --disable-help was given. | |
6231 | if test "${enable_help+set}" = set; then | |
6232 | enableval="$enable_help" | |
6233 | ||
6234 | if test "$enableval" = yes; then | |
6235 | ac_cv_use_help='wxUSE_HELP=yes' | |
6236 | else | |
6237 | ac_cv_use_help='wxUSE_HELP=no' | |
6238 | fi | |
6239 | ||
6240 | else | |
6241 | ||
6242 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` | |
6243 | if test "x$LINE" != x ; then | |
6244 | eval "DEFAULT_$LINE" | |
6245 | else | |
6246 | no_cache=1 | |
6247 | fi | |
6248 | ||
6249 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
6250 | ||
6251 | fi; | |
6252 | ||
6253 | eval "$ac_cv_use_help" | |
6254 | if test "$no_cache" != 1; then | |
6255 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
6256 | fi | |
6257 | ||
6258 | if test "$wxUSE_HELP" = yes; then | |
6259 | echo "$as_me:$LINENO: result: yes" >&5 | |
6260 | echo "${ECHO_T}yes" >&6 | |
6261 | else | |
6262 | echo "$as_me:$LINENO: result: no" >&5 | |
6263 | echo "${ECHO_T}no" >&6 | |
6264 | fi | |
6265 | ||
6266 | ||
6267 | enablestring= | |
6268 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5 | |
6269 | echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6 | |
6270 | no_cache=0 | |
6271 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
6272 | if test "${enable_mshtmlhelp+set}" = set; then | |
6273 | enableval="$enable_mshtmlhelp" | |
6274 | ||
6275 | if test "$enableval" = yes; then | |
6276 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
6277 | else | |
6278 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
6279 | fi | |
6280 | ||
6281 | else | |
6282 | ||
6283 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
6284 | if test "x$LINE" != x ; then | |
6285 | eval "DEFAULT_$LINE" | |
6286 | else | |
6287 | no_cache=1 | |
6288 | fi | |
6289 | ||
6290 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
6291 | ||
6292 | fi; | |
6293 | ||
6294 | eval "$ac_cv_use_mshtmlhelp" | |
6295 | if test "$no_cache" != 1; then | |
6296 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
6297 | fi | |
6298 | ||
6299 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
6300 | echo "$as_me:$LINENO: result: yes" >&5 | |
6301 | echo "${ECHO_T}yes" >&6 | |
6302 | else | |
6303 | echo "$as_me:$LINENO: result: no" >&5 | |
6304 | echo "${ECHO_T}no" >&6 | |
6305 | fi | |
6306 | ||
6307 | ||
6308 | enablestring= | |
6309 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5 | |
6310 | echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6 | |
6311 | no_cache=0 | |
6312 | # Check whether --enable-html or --disable-html was given. | |
6313 | if test "${enable_html+set}" = set; then | |
6314 | enableval="$enable_html" | |
6315 | ||
6316 | if test "$enableval" = yes; then | |
6317 | ac_cv_use_html='wxUSE_HTML=yes' | |
6318 | else | |
6319 | ac_cv_use_html='wxUSE_HTML=no' | |
6320 | fi | |
6321 | ||
6322 | else | |
6323 | ||
6324 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
6325 | if test "x$LINE" != x ; then | |
6326 | eval "DEFAULT_$LINE" | |
6327 | else | |
6328 | no_cache=1 | |
6329 | fi | |
6330 | ||
6331 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
6332 | ||
6333 | fi; | |
6334 | ||
6335 | eval "$ac_cv_use_html" | |
6336 | if test "$no_cache" != 1; then | |
6337 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
6338 | fi | |
6339 | ||
6340 | if test "$wxUSE_HTML" = yes; then | |
6341 | echo "$as_me:$LINENO: result: yes" >&5 | |
6342 | echo "${ECHO_T}yes" >&6 | |
6343 | else | |
6344 | echo "$as_me:$LINENO: result: no" >&5 | |
6345 | echo "${ECHO_T}no" >&6 | |
6346 | fi | |
6347 | ||
6348 | ||
6349 | enablestring= | |
6350 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5 | |
6351 | echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6 | |
6352 | no_cache=0 | |
6353 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
6354 | if test "${enable_htmlhelp+set}" = set; then | |
6355 | enableval="$enable_htmlhelp" | |
6356 | ||
6357 | if test "$enableval" = yes; then | |
6358 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
6359 | else | |
6360 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
6361 | fi | |
6362 | ||
6363 | else | |
6364 | ||
6365 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
6366 | if test "x$LINE" != x ; then | |
6367 | eval "DEFAULT_$LINE" | |
6368 | else | |
6369 | no_cache=1 | |
6370 | fi | |
6371 | ||
6372 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
6373 | ||
6374 | fi; | |
6375 | ||
6376 | eval "$ac_cv_use_htmlhelp" | |
6377 | if test "$no_cache" != 1; then | |
6378 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
6379 | fi | |
6380 | ||
6381 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
6382 | echo "$as_me:$LINENO: result: yes" >&5 | |
6383 | echo "${ECHO_T}yes" >&6 | |
6384 | else | |
6385 | echo "$as_me:$LINENO: result: no" >&5 | |
6386 | echo "${ECHO_T}no" >&6 | |
6387 | fi | |
6388 | ||
6389 | ||
9a8f0513 VS |
6390 | enablestring= |
6391 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5 | |
6392 | echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6 | |
6393 | no_cache=0 | |
6394 | # Check whether --enable-xrc or --disable-xrc was given. | |
6395 | if test "${enable_xrc+set}" = set; then | |
6396 | enableval="$enable_xrc" | |
6397 | ||
6398 | if test "$enableval" = yes; then | |
6399 | ac_cv_use_xrc='wxUSE_XRC=yes' | |
6400 | else | |
6401 | ac_cv_use_xrc='wxUSE_XRC=no' | |
6402 | fi | |
6403 | ||
6404 | else | |
6405 | ||
6406 | LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}` | |
6407 | if test "x$LINE" != x ; then | |
6408 | eval "DEFAULT_$LINE" | |
6409 | else | |
6410 | no_cache=1 | |
6411 | fi | |
6412 | ||
6413 | ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC | |
6414 | ||
6415 | fi; | |
6416 | ||
6417 | eval "$ac_cv_use_xrc" | |
6418 | if test "$no_cache" != 1; then | |
6419 | echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp | |
6420 | fi | |
6421 | ||
6422 | if test "$wxUSE_XRC" = yes; then | |
6423 | echo "$as_me:$LINENO: result: yes" >&5 | |
6424 | echo "${ECHO_T}yes" >&6 | |
6425 | else | |
6426 | echo "$as_me:$LINENO: result: no" >&5 | |
6427 | echo "${ECHO_T}no" >&6 | |
6428 | fi | |
6429 | ||
6430 | ||
a848cd7e SC |
6431 | enablestring= |
6432 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5 | |
6433 | echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6 | |
6434 | no_cache=0 | |
6435 | # Check whether --enable-constraints or --disable-constraints was given. | |
6436 | if test "${enable_constraints+set}" = set; then | |
6437 | enableval="$enable_constraints" | |
6438 | ||
6439 | if test "$enableval" = yes; then | |
6440 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
6441 | else | |
6442 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
6443 | fi | |
6444 | ||
6445 | else | |
6446 | ||
6447 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` | |
6448 | if test "x$LINE" != x ; then | |
6449 | eval "DEFAULT_$LINE" | |
6450 | else | |
6451 | no_cache=1 | |
6452 | fi | |
6453 | ||
6454 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
6455 | ||
6456 | fi; | |
6457 | ||
6458 | eval "$ac_cv_use_constraints" | |
6459 | if test "$no_cache" != 1; then | |
6460 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
6461 | fi | |
6462 | ||
6463 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
6464 | echo "$as_me:$LINENO: result: yes" >&5 | |
6465 | echo "${ECHO_T}yes" >&6 | |
6466 | else | |
6467 | echo "$as_me:$LINENO: result: no" >&5 | |
6468 | echo "${ECHO_T}no" >&6 | |
6469 | fi | |
6470 | ||
6471 | ||
6472 | enablestring= | |
6473 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5 | |
6474 | echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6 | |
6475 | no_cache=0 | |
6476 | # Check whether --enable-printarch or --disable-printarch was given. | |
6477 | if test "${enable_printarch+set}" = set; then | |
6478 | enableval="$enable_printarch" | |
6479 | ||
6480 | if test "$enableval" = yes; then | |
6481 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
6482 | else | |
6483 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
6484 | fi | |
6485 | ||
6486 | else | |
6487 | ||
6488 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` | |
6489 | if test "x$LINE" != x ; then | |
6490 | eval "DEFAULT_$LINE" | |
6491 | else | |
6492 | no_cache=1 | |
6493 | fi | |
6494 | ||
6495 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
6496 | ||
6497 | fi; | |
6498 | ||
6499 | eval "$ac_cv_use_printarch" | |
6500 | if test "$no_cache" != 1; then | |
6501 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
6502 | fi | |
6503 | ||
6504 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
6505 | echo "$as_me:$LINENO: result: yes" >&5 | |
6506 | echo "${ECHO_T}yes" >&6 | |
6507 | else | |
6508 | echo "$as_me:$LINENO: result: no" >&5 | |
6509 | echo "${ECHO_T}no" >&6 | |
6510 | fi | |
6511 | ||
6512 | ||
6513 | enablestring= | |
6514 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5 | |
6515 | echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6 | |
6516 | no_cache=0 | |
6517 | # Check whether --enable-mdi or --disable-mdi was given. | |
6518 | if test "${enable_mdi+set}" = set; then | |
6519 | enableval="$enable_mdi" | |
6520 | ||
6521 | if test "$enableval" = yes; then | |
8a7b1113 | 6522 | ac_cv_use_mdi='wxUSE_MDI=yes' |
a848cd7e | 6523 | else |
8a7b1113 | 6524 | ac_cv_use_mdi='wxUSE_MDI=no' |
a848cd7e SC |
6525 | fi |
6526 | ||
6527 | else | |
6528 | ||
8a7b1113 | 6529 | LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}` |
a848cd7e SC |
6530 | if test "x$LINE" != x ; then |
6531 | eval "DEFAULT_$LINE" | |
6532 | else | |
6533 | no_cache=1 | |
6534 | fi | |
6535 | ||
8a7b1113 | 6536 | ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI |
a848cd7e SC |
6537 | |
6538 | fi; | |
6539 | ||
6540 | eval "$ac_cv_use_mdi" | |
6541 | if test "$no_cache" != 1; then | |
6542 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
6543 | fi | |
6544 | ||
8a7b1113 VZ |
6545 | if test "$wxUSE_MDI" = yes; then |
6546 | echo "$as_me:$LINENO: result: yes" >&5 | |
6547 | echo "${ECHO_T}yes" >&6 | |
6548 | else | |
6549 | echo "$as_me:$LINENO: result: no" >&5 | |
6550 | echo "${ECHO_T}no" >&6 | |
6551 | fi | |
6552 | ||
6553 | ||
6554 | enablestring= | |
6555 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5 | |
6556 | echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6 | |
6557 | no_cache=0 | |
6558 | # Check whether --enable-mdidoc or --disable-mdidoc was given. | |
6559 | if test "${enable_mdidoc+set}" = set; then | |
6560 | enableval="$enable_mdidoc" | |
6561 | ||
6562 | if test "$enableval" = yes; then | |
6563 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes' | |
6564 | else | |
6565 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no' | |
6566 | fi | |
6567 | ||
6568 | else | |
6569 | ||
6570 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` | |
6571 | if test "x$LINE" != x ; then | |
6572 | eval "DEFAULT_$LINE" | |
6573 | else | |
6574 | no_cache=1 | |
6575 | fi | |
6576 | ||
6577 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
6578 | ||
6579 | fi; | |
6580 | ||
6581 | eval "$ac_cv_use_mdidoc" | |
6582 | if test "$no_cache" != 1; then | |
6583 | echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp | |
6584 | fi | |
6585 | ||
a848cd7e SC |
6586 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then |
6587 | echo "$as_me:$LINENO: result: yes" >&5 | |
6588 | echo "${ECHO_T}yes" >&6 | |
6589 | else | |
6590 | echo "$as_me:$LINENO: result: no" >&5 | |
6591 | echo "${ECHO_T}no" >&6 | |
6592 | fi | |
6593 | ||
6594 | ||
6595 | enablestring= | |
6596 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5 | |
6597 | echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6 | |
6598 | no_cache=0 | |
6599 | # Check whether --enable-loggui or --disable-loggui was given. | |
6600 | if test "${enable_loggui+set}" = set; then | |
6601 | enableval="$enable_loggui" | |
6602 | ||
6603 | if test "$enableval" = yes; then | |
6604 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
6605 | else | |
6606 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
6607 | fi | |
6608 | ||
6609 | else | |
6610 | ||
6611 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
6612 | if test "x$LINE" != x ; then | |
6613 | eval "DEFAULT_$LINE" | |
6614 | else | |
6615 | no_cache=1 | |
6616 | fi | |
6617 | ||
6618 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
6619 | ||
6620 | fi; | |
6621 | ||
6622 | eval "$ac_cv_use_loggui" | |
6623 | if test "$no_cache" != 1; then | |
6624 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
6625 | fi | |
6626 | ||
6627 | if test "$wxUSE_LOGGUI" = yes; then | |
6628 | echo "$as_me:$LINENO: result: yes" >&5 | |
6629 | echo "${ECHO_T}yes" >&6 | |
6630 | else | |
6631 | echo "$as_me:$LINENO: result: no" >&5 | |
6632 | echo "${ECHO_T}no" >&6 | |
6633 | fi | |
6634 | ||
6635 | ||
6636 | enablestring= | |
6637 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5 | |
6638 | echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6 | |
6639 | no_cache=0 | |
6640 | # Check whether --enable-logwin or --disable-logwin was given. | |
6641 | if test "${enable_logwin+set}" = set; then | |
6642 | enableval="$enable_logwin" | |
6643 | ||
6644 | if test "$enableval" = yes; then | |
6645 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
6646 | else | |
6647 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
6648 | fi | |
6649 | ||
6650 | else | |
6651 | ||
6652 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
6653 | if test "x$LINE" != x ; then | |
6654 | eval "DEFAULT_$LINE" | |
6655 | else | |
6656 | no_cache=1 | |
6657 | fi | |
6658 | ||
6659 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
6660 | ||
6661 | fi; | |
6662 | ||
6663 | eval "$ac_cv_use_logwin" | |
6664 | if test "$no_cache" != 1; then | |
6665 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
6666 | fi | |
6667 | ||
6668 | if test "$wxUSE_LOGWINDOW" = yes; then | |
6669 | echo "$as_me:$LINENO: result: yes" >&5 | |
6670 | echo "${ECHO_T}yes" >&6 | |
6671 | else | |
6672 | echo "$as_me:$LINENO: result: no" >&5 | |
6673 | echo "${ECHO_T}no" >&6 | |
6674 | fi | |
6675 | ||
6676 | ||
6677 | enablestring= | |
6678 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5 | |
6679 | echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6 | |
6680 | no_cache=0 | |
6681 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
6682 | if test "${enable_logdialog+set}" = set; then | |
6683 | enableval="$enable_logdialog" | |
6684 | ||
6685 | if test "$enableval" = yes; then | |
6686 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
6687 | else | |
6688 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
6689 | fi | |
6690 | ||
6691 | else | |
6692 | ||
6693 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` | |
6694 | if test "x$LINE" != x ; then | |
6695 | eval "DEFAULT_$LINE" | |
6696 | else | |
6697 | no_cache=1 | |
6698 | fi | |
6699 | ||
6700 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
6701 | ||
6702 | fi; | |
6703 | ||
6704 | eval "$ac_cv_use_logdialog" | |
6705 | if test "$no_cache" != 1; then | |
6706 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
6707 | fi | |
6708 | ||
6709 | if test "$wxUSE_LOGDIALOG" = yes; then | |
6710 | echo "$as_me:$LINENO: result: yes" >&5 | |
6711 | echo "${ECHO_T}yes" >&6 | |
6712 | else | |
6713 | echo "$as_me:$LINENO: result: no" >&5 | |
6714 | echo "${ECHO_T}no" >&6 | |
6715 | fi | |
6716 | ||
6717 | ||
646b6ec1 VS |
6718 | enablestring= |
6719 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5 | |
6720 | echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6 | |
6721 | no_cache=0 | |
6722 | # Check whether --enable-webkit or --disable-webkit was given. | |
6723 | if test "${enable_webkit+set}" = set; then | |
6724 | enableval="$enable_webkit" | |
6725 | ||
6726 | if test "$enableval" = yes; then | |
6727 | ac_cv_use_webkit='wxUSE_WEBKIT=yes' | |
6728 | else | |
6729 | ac_cv_use_webkit='wxUSE_WEBKIT=no' | |
6730 | fi | |
6731 | ||
6732 | else | |
6733 | ||
6734 | LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}` | |
6735 | if test "x$LINE" != x ; then | |
6736 | eval "DEFAULT_$LINE" | |
6737 | else | |
6738 | no_cache=1 | |
6739 | fi | |
6740 | ||
6741 | ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT | |
6742 | ||
6743 | fi; | |
6744 | ||
6745 | eval "$ac_cv_use_webkit" | |
6746 | if test "$no_cache" != 1; then | |
6747 | echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp | |
6748 | fi | |
6749 | ||
6750 | if test "$wxUSE_WEBKIT" = yes; then | |
6751 | echo "$as_me:$LINENO: result: yes" >&5 | |
6752 | echo "${ECHO_T}yes" >&6 | |
6753 | else | |
6754 | echo "$as_me:$LINENO: result: no" >&5 | |
6755 | echo "${ECHO_T}no" >&6 | |
6756 | fi | |
6757 | ||
6758 | ||
a848cd7e SC |
6759 | |
6760 | enablestring= | |
6761 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5 | |
6762 | echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6 | |
6763 | no_cache=0 | |
6764 | # Check whether --enable-postscript or --disable-postscript was given. | |
6765 | if test "${enable_postscript+set}" = set; then | |
6766 | enableval="$enable_postscript" | |
6767 | ||
6768 | if test "$enableval" = yes; then | |
6769 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
6770 | else | |
6771 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
6772 | fi | |
6773 | ||
6774 | else | |
6775 | ||
6776 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` | |
6777 | if test "x$LINE" != x ; then | |
6778 | eval "DEFAULT_$LINE" | |
6779 | else | |
6780 | no_cache=1 | |
6781 | fi | |
6782 | ||
6783 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
6784 | ||
6785 | fi; | |
6786 | ||
6787 | eval "$ac_cv_use_postscript" | |
6788 | if test "$no_cache" != 1; then | |
6789 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
6790 | fi | |
6791 | ||
6792 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
6793 | echo "$as_me:$LINENO: result: yes" >&5 | |
6794 | echo "${ECHO_T}yes" >&6 | |
6795 | else | |
6796 | echo "$as_me:$LINENO: result: no" >&5 | |
6797 | echo "${ECHO_T}no" >&6 | |
6798 | fi | |
6799 | ||
6800 | ||
6801 | ||
6802 | ||
6803 | ||
6804 | enablestring= | |
6805 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5 | |
6806 | echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6 | |
6807 | no_cache=0 | |
6808 | # Check whether --enable-prologio or --disable-prologio was given. | |
6809 | if test "${enable_prologio+set}" = set; then | |
6810 | enableval="$enable_prologio" | |
6811 | ||
6812 | if test "$enableval" = yes; then | |
6813 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
6814 | else | |
6815 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
6816 | fi | |
6817 | ||
6818 | else | |
6819 | ||
6820 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` | |
6821 | if test "x$LINE" != x ; then | |
6822 | eval "DEFAULT_$LINE" | |
6823 | else | |
6824 | no_cache=1 | |
6825 | fi | |
6826 | ||
6827 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
6828 | ||
6829 | fi; | |
6830 | ||
6831 | eval "$ac_cv_use_prologio" | |
6832 | if test "$no_cache" != 1; then | |
6833 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
6834 | fi | |
6835 | ||
6836 | if test "$wxUSE_PROLOGIO" = yes; then | |
6837 | echo "$as_me:$LINENO: result: yes" >&5 | |
6838 | echo "${ECHO_T}yes" >&6 | |
6839 | else | |
6840 | echo "$as_me:$LINENO: result: no" >&5 | |
6841 | echo "${ECHO_T}no" >&6 | |
6842 | fi | |
6843 | ||
6844 | ||
6845 | enablestring= | |
6846 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5 | |
6847 | echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6 | |
6848 | no_cache=0 | |
6849 | # Check whether --enable-resources or --disable-resources was given. | |
6850 | if test "${enable_resources+set}" = set; then | |
6851 | enableval="$enable_resources" | |
6852 | ||
6853 | if test "$enableval" = yes; then | |
6854 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
6855 | else | |
6856 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
6857 | fi | |
6858 | ||
6859 | else | |
6860 | ||
6861 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` | |
6862 | if test "x$LINE" != x ; then | |
6863 | eval "DEFAULT_$LINE" | |
6864 | else | |
6865 | no_cache=1 | |
6866 | fi | |
6867 | ||
6868 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
6869 | ||
6870 | fi; | |
6871 | ||
6872 | eval "$ac_cv_use_resources" | |
6873 | if test "$no_cache" != 1; then | |
6874 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
6875 | fi | |
6876 | ||
6877 | if test "$wxUSE_RESOURCES" = yes; then | |
6878 | echo "$as_me:$LINENO: result: yes" >&5 | |
6879 | echo "${ECHO_T}yes" >&6 | |
6880 | else | |
6881 | echo "$as_me:$LINENO: result: no" >&5 | |
6882 | echo "${ECHO_T}no" >&6 | |
6883 | fi | |
6884 | ||
6885 | ||
6886 | ||
6887 | ||
6888 | enablestring= | |
6889 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5 | |
6890 | echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6 | |
6891 | no_cache=0 | |
6892 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
6893 | if test "${enable_clipboard+set}" = set; then | |
6894 | enableval="$enable_clipboard" | |
6895 | ||
6896 | if test "$enableval" = yes; then | |
6897 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
6898 | else | |
6899 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
6900 | fi | |
6901 | ||
6902 | else | |
6903 | ||
6904 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` | |
6905 | if test "x$LINE" != x ; then | |
6906 | eval "DEFAULT_$LINE" | |
6907 | else | |
6908 | no_cache=1 | |
6909 | fi | |
6910 | ||
6911 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
6912 | ||
6913 | fi; | |
6914 | ||
6915 | eval "$ac_cv_use_clipboard" | |
6916 | if test "$no_cache" != 1; then | |
6917 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
6918 | fi | |
6919 | ||
6920 | if test "$wxUSE_CLIPBOARD" = yes; then | |
6921 | echo "$as_me:$LINENO: result: yes" >&5 | |
6922 | echo "${ECHO_T}yes" >&6 | |
6923 | else | |
6924 | echo "$as_me:$LINENO: result: no" >&5 | |
6925 | echo "${ECHO_T}no" >&6 | |
6926 | fi | |
6927 | ||
6928 | ||
6929 | enablestring= | |
6930 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5 | |
6931 | echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6 | |
6932 | no_cache=0 | |
6933 | # Check whether --enable-dnd or --disable-dnd was given. | |
6934 | if test "${enable_dnd+set}" = set; then | |
6935 | enableval="$enable_dnd" | |
6936 | ||
6937 | if test "$enableval" = yes; then | |
6938 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
6939 | else | |
6940 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
6941 | fi | |
6942 | ||
6943 | else | |
6944 | ||
6945 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` | |
6946 | if test "x$LINE" != x ; then | |
6947 | eval "DEFAULT_$LINE" | |
6948 | else | |
6949 | no_cache=1 | |
6950 | fi | |
6951 | ||
6952 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
6953 | ||
6954 | fi; | |
6955 | ||
6956 | eval "$ac_cv_use_dnd" | |
6957 | if test "$no_cache" != 1; then | |
6958 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
6959 | fi | |
6960 | ||
6961 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
6962 | echo "$as_me:$LINENO: result: yes" >&5 | |
6963 | echo "${ECHO_T}yes" >&6 | |
6964 | else | |
6965 | echo "$as_me:$LINENO: result: no" >&5 | |
6966 | echo "${ECHO_T}no" >&6 | |
6967 | fi | |
6968 | ||
6969 | ||
6970 | enablestring= | |
6971 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
6972 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
6973 | no_cache=0 | |
6974 | # Check whether --enable-metafile or --disable-metafile was given. | |
6975 | if test "${enable_metafile+set}" = set; then | |
6976 | enableval="$enable_metafile" | |
6977 | ||
6978 | if test "$enableval" = yes; then | |
6979 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
6980 | else | |
6981 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
6982 | fi | |
6983 | ||
6984 | else | |
6985 | ||
6986 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
6987 | if test "x$LINE" != x ; then | |
6988 | eval "DEFAULT_$LINE" | |
6989 | else | |
6990 | no_cache=1 | |
6991 | fi | |
6992 | ||
6993 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
6994 | ||
6995 | fi; | |
6996 | ||
6997 | eval "$ac_cv_use_metafile" | |
6998 | if test "$no_cache" != 1; then | |
6999 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
7000 | fi | |
7001 | ||
7002 | if test "$wxUSE_METAFILE" = yes; then | |
7003 | echo "$as_me:$LINENO: result: yes" >&5 | |
7004 | echo "${ECHO_T}yes" >&6 | |
7005 | else | |
7006 | echo "$as_me:$LINENO: result: no" >&5 | |
7007 | echo "${ECHO_T}no" >&6 | |
7008 | fi | |
7009 | ||
7010 | ||
7011 | ||
7012 | ||
7013 | ||
7014 | enablestring= | |
7015 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5 | |
7016 | echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6 | |
7017 | no_cache=0 | |
7018 | # Check whether --enable-controls or --disable-controls was given. | |
7019 | if test "${enable_controls+set}" = set; then | |
7020 | enableval="$enable_controls" | |
7021 | ||
7022 | if test "$enableval" = yes; then | |
7023 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
7024 | else | |
7025 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
7026 | fi | |
7027 | ||
7028 | else | |
7029 | ||
7030 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` | |
7031 | if test "x$LINE" != x ; then | |
7032 | eval "DEFAULT_$LINE" | |
7033 | else | |
7034 | no_cache=1 | |
7035 | fi | |
7036 | ||
7037 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
7038 | ||
7039 | fi; | |
7040 | ||
7041 | eval "$ac_cv_use_controls" | |
7042 | if test "$no_cache" != 1; then | |
7043 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
7044 | fi | |
7045 | ||
7046 | if test "$wxUSE_CONTROLS" = yes; then | |
7047 | echo "$as_me:$LINENO: result: yes" >&5 | |
7048 | echo "${ECHO_T}yes" >&6 | |
7049 | else | |
7050 | echo "$as_me:$LINENO: result: no" >&5 | |
7051 | echo "${ECHO_T}no" >&6 | |
7052 | fi | |
7053 | ||
7054 | ||
7055 | if test "$wxUSE_CONTROLS" = "yes"; then | |
7056 | DEFAULT_wxUSE_ACCEL=yes | |
7057 | DEFAULT_wxUSE_BMPBUTTON=yes | |
7058 | DEFAULT_wxUSE_BUTTON=yes | |
7059 | DEFAULT_wxUSE_CALCTRL=no | |
7060 | DEFAULT_wxUSE_CARET=yes | |
7061 | DEFAULT_wxUSE_COMBOBOX=yes | |
7062 | DEFAULT_wxUSE_CHECKBOX=yes | |
7063 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
7064 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 7065 | DEFAULT_wxUSE_CHOICEBOOK=yes |
a848cd7e SC |
7066 | DEFAULT_wxUSE_GAUGE=yes |
7067 | DEFAULT_wxUSE_GRID=yes | |
7068 | DEFAULT_wxUSE_IMAGLIST=yes | |
7069 | DEFAULT_wxUSE_LISTBOOK=yes | |
7070 | DEFAULT_wxUSE_LISTBOX=yes | |
7071 | DEFAULT_wxUSE_LISTCTRL=yes | |
7072 | DEFAULT_wxUSE_NOTEBOOK=yes | |
7073 | DEFAULT_wxUSE_RADIOBOX=yes | |
7074 | DEFAULT_wxUSE_RADIOBTN=yes | |
7075 | DEFAULT_wxUSE_SASH=yes | |
7076 | DEFAULT_wxUSE_SCROLLBAR=yes | |
7077 | DEFAULT_wxUSE_SLIDER=yes | |
7078 | DEFAULT_wxUSE_SPINBTN=yes | |
7079 | DEFAULT_wxUSE_SPINCTRL=yes | |
7080 | DEFAULT_wxUSE_SPLITTER=yes | |
7081 | DEFAULT_wxUSE_STATBMP=yes | |
7082 | DEFAULT_wxUSE_STATBOX=yes | |
7083 | DEFAULT_wxUSE_STATLINE=yes | |
7084 | DEFAULT_wxUSE_STATUSBAR=yes | |
7085 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
7086 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
7087 | DEFAULT_wxUSE_TOOLBAR=yes | |
7088 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
7089 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
7090 | DEFAULT_wxUSE_TOOLTIPS=yes | |
7091 | DEFAULT_wxUSE_TREECTRL=yes | |
7092 | DEFAULT_wxUSE_POPUPWIN=yes | |
7093 | DEFAULT_wxUSE_TIPWINDOW=yes | |
7094 | elif test "$wxUSE_CONTROLS" = "no"; then | |
7095 | DEFAULT_wxUSE_ACCEL=no | |
7096 | DEFAULT_wxUSE_BMPBUTTON=no | |
7097 | DEFAULT_wxUSE_BUTTON=no | |
7098 | DEFAULT_wxUSE_CALCTRL=no | |
7099 | DEFAULT_wxUSE_CARET=no | |
7100 | DEFAULT_wxUSE_COMBOBOX=no | |
7101 | DEFAULT_wxUSE_CHECKBOX=no | |
7102 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
7103 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 7104 | DEFAULT_wxUSE_CHOICEBOOK=no |
a848cd7e SC |
7105 | DEFAULT_wxUSE_GAUGE=no |
7106 | DEFAULT_wxUSE_GRID=no | |
7107 | DEFAULT_wxUSE_IMAGLIST=no | |
7108 | DEFAULT_wxUSE_LISTBOOK=no | |
7109 | DEFAULT_wxUSE_LISTBOX=no | |
7110 | DEFAULT_wxUSE_LISTCTRL=no | |
7111 | DEFAULT_wxUSE_NOTEBOOK=no | |
7112 | DEFAULT_wxUSE_RADIOBOX=no | |
7113 | DEFAULT_wxUSE_RADIOBTN=no | |
7114 | DEFAULT_wxUSE_SASH=no | |
7115 | DEFAULT_wxUSE_SCROLLBAR=no | |
7116 | DEFAULT_wxUSE_SLIDER=no | |
7117 | DEFAULT_wxUSE_SPINBTN=no | |
7118 | DEFAULT_wxUSE_SPINCTRL=no | |
7119 | DEFAULT_wxUSE_SPLITTER=no | |
7120 | DEFAULT_wxUSE_STATBMP=no | |
7121 | DEFAULT_wxUSE_STATBOX=no | |
7122 | DEFAULT_wxUSE_STATLINE=no | |
7123 | DEFAULT_wxUSE_STATUSBAR=no | |
7124 | DEFAULT_wxUSE_TAB_DIALOG=no | |
7125 | DEFAULT_wxUSE_TOGGLEBTN=no | |
7126 | DEFAULT_wxUSE_TOOLBAR=no | |
7127 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
7128 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
7129 | DEFAULT_wxUSE_TOOLTIPS=no | |
7130 | DEFAULT_wxUSE_TREECTRL=no | |
7131 | DEFAULT_wxUSE_POPUPWIN=no | |
7132 | DEFAULT_wxUSE_TIPWINDOW=no | |
7133 | fi | |
7134 | ||
a848cd7e SC |
7135 | |
7136 | enablestring= | |
7137 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5 | |
7138 | echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6 | |
7139 | no_cache=0 | |
7140 | # Check whether --enable-accel or --disable-accel was given. | |
7141 | if test "${enable_accel+set}" = set; then | |
7142 | enableval="$enable_accel" | |
7143 | ||
7144 | if test "$enableval" = yes; then | |
7145 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
7146 | else | |
7147 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
7148 | fi | |
7149 | ||
7150 | else | |
7151 | ||
7152 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` | |
7153 | if test "x$LINE" != x ; then | |
7154 | eval "DEFAULT_$LINE" | |
7155 | else | |
7156 | no_cache=1 | |
7157 | fi | |
7158 | ||
7159 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
7160 | ||
7161 | fi; | |
7162 | ||
7163 | eval "$ac_cv_use_accel" | |
7164 | if test "$no_cache" != 1; then | |
7165 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
7166 | fi | |
7167 | ||
7168 | if test "$wxUSE_ACCEL" = yes; then | |
7169 | echo "$as_me:$LINENO: result: yes" >&5 | |
7170 | echo "${ECHO_T}yes" >&6 | |
7171 | else | |
7172 | echo "$as_me:$LINENO: result: no" >&5 | |
7173 | echo "${ECHO_T}no" >&6 | |
7174 | fi | |
7175 | ||
7176 | ||
7177 | enablestring= | |
7178 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5 | |
7179 | echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6 | |
7180 | no_cache=0 | |
7181 | # Check whether --enable-button or --disable-button was given. | |
7182 | if test "${enable_button+set}" = set; then | |
7183 | enableval="$enable_button" | |
7184 | ||
7185 | if test "$enableval" = yes; then | |
7186 | ac_cv_use_button='wxUSE_BUTTON=yes' | |
7187 | else | |
7188 | ac_cv_use_button='wxUSE_BUTTON=no' | |
7189 | fi | |
7190 | ||
7191 | else | |
7192 | ||
7193 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` | |
7194 | if test "x$LINE" != x ; then | |
7195 | eval "DEFAULT_$LINE" | |
7196 | else | |
7197 | no_cache=1 | |
7198 | fi | |
7199 | ||
7200 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON | |
7201 | ||
7202 | fi; | |
7203 | ||
7204 | eval "$ac_cv_use_button" | |
7205 | if test "$no_cache" != 1; then | |
7206 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp | |
7207 | fi | |
7208 | ||
7209 | if test "$wxUSE_BUTTON" = yes; then | |
7210 | echo "$as_me:$LINENO: result: yes" >&5 | |
7211 | echo "${ECHO_T}yes" >&6 | |
7212 | else | |
7213 | echo "$as_me:$LINENO: result: no" >&5 | |
7214 | echo "${ECHO_T}no" >&6 | |
7215 | fi | |
7216 | ||
7217 | ||
7218 | enablestring= | |
7219 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5 | |
7220 | echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6 | |
7221 | no_cache=0 | |
7222 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
7223 | if test "${enable_bmpbutton+set}" = set; then | |
7224 | enableval="$enable_bmpbutton" | |
7225 | ||
7226 | if test "$enableval" = yes; then | |
7227 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
7228 | else | |
7229 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
7230 | fi | |
7231 | ||
7232 | else | |
7233 | ||
7234 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` | |
7235 | if test "x$LINE" != x ; then | |
7236 | eval "DEFAULT_$LINE" | |
7237 | else | |
7238 | no_cache=1 | |
7239 | fi | |
7240 | ||
7241 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
7242 | ||
7243 | fi; | |
7244 | ||
7245 | eval "$ac_cv_use_bmpbutton" | |
7246 | if test "$no_cache" != 1; then | |
7247 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
7248 | fi | |
7249 | ||
7250 | if test "$wxUSE_BMPBUTTON" = yes; then | |
7251 | echo "$as_me:$LINENO: result: yes" >&5 | |
7252 | echo "${ECHO_T}yes" >&6 | |
7253 | else | |
7254 | echo "$as_me:$LINENO: result: no" >&5 | |
7255 | echo "${ECHO_T}no" >&6 | |
7256 | fi | |
7257 | ||
7258 | ||
7259 | enablestring= | |
7260 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5 | |
7261 | echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6 | |
7262 | no_cache=0 | |
7263 | # Check whether --enable-calendar or --disable-calendar was given. | |
7264 | if test "${enable_calendar+set}" = set; then | |
7265 | enableval="$enable_calendar" | |
7266 | ||
7267 | if test "$enableval" = yes; then | |
7268 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
7269 | else | |
7270 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
7271 | fi | |
7272 | ||
7273 | else | |
7274 | ||
7275 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
7276 | if test "x$LINE" != x ; then | |
7277 | eval "DEFAULT_$LINE" | |
7278 | else | |
7279 | no_cache=1 | |
7280 | fi | |
7281 | ||
7282 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
7283 | ||
7284 | fi; | |
7285 | ||
7286 | eval "$ac_cv_use_calendar" | |
7287 | if test "$no_cache" != 1; then | |
7288 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
7289 | fi | |
7290 | ||
7291 | if test "$wxUSE_CALCTRL" = yes; then | |
7292 | echo "$as_me:$LINENO: result: yes" >&5 | |
7293 | echo "${ECHO_T}yes" >&6 | |
7294 | else | |
7295 | echo "$as_me:$LINENO: result: no" >&5 | |
7296 | echo "${ECHO_T}no" >&6 | |
7297 | fi | |
7298 | ||
7299 | ||
7300 | enablestring= | |
7301 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5 | |
7302 | echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6 | |
7303 | no_cache=0 | |
7304 | # Check whether --enable-caret or --disable-caret was given. | |
7305 | if test "${enable_caret+set}" = set; then | |
7306 | enableval="$enable_caret" | |
7307 | ||
7308 | if test "$enableval" = yes; then | |
7309 | ac_cv_use_caret='wxUSE_CARET=yes' | |
7310 | else | |
7311 | ac_cv_use_caret='wxUSE_CARET=no' | |
7312 | fi | |
7313 | ||
7314 | else | |
7315 | ||
7316 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
7317 | if test "x$LINE" != x ; then | |
7318 | eval "DEFAULT_$LINE" | |
7319 | else | |
7320 | no_cache=1 | |
7321 | fi | |
7322 | ||
7323 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
7324 | ||
7325 | fi; | |
7326 | ||
7327 | eval "$ac_cv_use_caret" | |
7328 | if test "$no_cache" != 1; then | |
7329 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
7330 | fi | |
7331 | ||
7332 | if test "$wxUSE_CARET" = yes; then | |
7333 | echo "$as_me:$LINENO: result: yes" >&5 | |
7334 | echo "${ECHO_T}yes" >&6 | |
7335 | else | |
7336 | echo "$as_me:$LINENO: result: no" >&5 | |
7337 | echo "${ECHO_T}no" >&6 | |
7338 | fi | |
7339 | ||
7340 | ||
7341 | enablestring= | |
7342 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5 | |
7343 | echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6 | |
7344 | no_cache=0 | |
7345 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
7346 | if test "${enable_checkbox+set}" = set; then | |
7347 | enableval="$enable_checkbox" | |
7348 | ||
7349 | if test "$enableval" = yes; then | |
7350 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
7351 | else | |
7352 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
7353 | fi | |
7354 | ||
7355 | else | |
7356 | ||
7357 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` | |
7358 | if test "x$LINE" != x ; then | |
7359 | eval "DEFAULT_$LINE" | |
7360 | else | |
7361 | no_cache=1 | |
7362 | fi | |
7363 | ||
7364 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
7365 | ||
7366 | fi; | |
7367 | ||
7368 | eval "$ac_cv_use_checkbox" | |
7369 | if test "$no_cache" != 1; then | |
7370 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
7371 | fi | |
7372 | ||
7373 | if test "$wxUSE_CHECKBOX" = yes; then | |
7374 | echo "$as_me:$LINENO: result: yes" >&5 | |
7375 | echo "${ECHO_T}yes" >&6 | |
7376 | else | |
7377 | echo "$as_me:$LINENO: result: no" >&5 | |
7378 | echo "${ECHO_T}no" >&6 | |
7379 | fi | |
7380 | ||
7381 | ||
7382 | enablestring= | |
7383 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5 | |
7384 | echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6 | |
7385 | no_cache=0 | |
7386 | # Check whether --enable-checklst or --disable-checklst was given. | |
7387 | if test "${enable_checklst+set}" = set; then | |
7388 | enableval="$enable_checklst" | |
7389 | ||
7390 | if test "$enableval" = yes; then | |
7391 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
7392 | else | |
7393 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
7394 | fi | |
7395 | ||
7396 | else | |
7397 | ||
7398 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` | |
7399 | if test "x$LINE" != x ; then | |
7400 | eval "DEFAULT_$LINE" | |
7401 | else | |
7402 | no_cache=1 | |
7403 | fi | |
7404 | ||
7405 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
7406 | ||
7407 | fi; | |
7408 | ||
7409 | eval "$ac_cv_use_checklst" | |
7410 | if test "$no_cache" != 1; then | |
7411 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
7412 | fi | |
7413 | ||
7414 | if test "$wxUSE_CHECKLST" = yes; then | |
7415 | echo "$as_me:$LINENO: result: yes" >&5 | |
7416 | echo "${ECHO_T}yes" >&6 | |
7417 | else | |
7418 | echo "$as_me:$LINENO: result: no" >&5 | |
7419 | echo "${ECHO_T}no" >&6 | |
7420 | fi | |
7421 | ||
7422 | ||
7423 | enablestring= | |
7424 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5 | |
7425 | echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6 | |
7426 | no_cache=0 | |
7427 | # Check whether --enable-choice or --disable-choice was given. | |
7428 | if test "${enable_choice+set}" = set; then | |
7429 | enableval="$enable_choice" | |
7430 | ||
7431 | if test "$enableval" = yes; then | |
7432 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
7433 | else | |
7434 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
7435 | fi | |
7436 | ||
7437 | else | |
7438 | ||
7439 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` | |
7440 | if test "x$LINE" != x ; then | |
7441 | eval "DEFAULT_$LINE" | |
7442 | else | |
7443 | no_cache=1 | |
7444 | fi | |
7445 | ||
7446 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
7447 | ||
7448 | fi; | |
7449 | ||
7450 | eval "$ac_cv_use_choice" | |
7451 | if test "$no_cache" != 1; then | |
7452 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
7453 | fi | |
7454 | ||
7455 | if test "$wxUSE_CHOICE" = yes; then | |
7456 | echo "$as_me:$LINENO: result: yes" >&5 | |
7457 | echo "${ECHO_T}yes" >&6 | |
7458 | else | |
7459 | echo "$as_me:$LINENO: result: no" >&5 | |
7460 | echo "${ECHO_T}no" >&6 | |
7461 | fi | |
7462 | ||
7463 | ||
92bbdbcd WS |
7464 | enablestring= |
7465 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5 | |
7466 | echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6 | |
7467 | no_cache=0 | |
7468 | # Check whether --enable-choicebook or --disable-choicebook was given. | |
7469 | if test "${enable_choicebook+set}" = set; then | |
7470 | enableval="$enable_choicebook" | |
7471 | ||
7472 | if test "$enableval" = yes; then | |
7473 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes' | |
7474 | else | |
7475 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no' | |
7476 | fi | |
7477 | ||
7478 | else | |
7479 | ||
7480 | LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}` | |
7481 | if test "x$LINE" != x ; then | |
7482 | eval "DEFAULT_$LINE" | |
7483 | else | |
7484 | no_cache=1 | |
7485 | fi | |
7486 | ||
7487 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK | |
7488 | ||
7489 | fi; | |
7490 | ||
7491 | eval "$ac_cv_use_choicebook" | |
7492 | if test "$no_cache" != 1; then | |
7493 | echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp | |
7494 | fi | |
7495 | ||
7496 | if test "$wxUSE_CHOICEBOOK" = yes; then | |
7497 | echo "$as_me:$LINENO: result: yes" >&5 | |
7498 | echo "${ECHO_T}yes" >&6 | |
7499 | else | |
7500 | echo "$as_me:$LINENO: result: no" >&5 | |
7501 | echo "${ECHO_T}no" >&6 | |
7502 | fi | |
7503 | ||
7504 | ||
a848cd7e SC |
7505 | enablestring= |
7506 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5 | |
7507 | echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6 | |
7508 | no_cache=0 | |
7509 | # Check whether --enable-combobox or --disable-combobox was given. | |
7510 | if test "${enable_combobox+set}" = set; then | |
7511 | enableval="$enable_combobox" | |
7512 | ||
7513 | if test "$enableval" = yes; then | |
7514 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
7515 | else | |
7516 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
7517 | fi | |
7518 | ||
7519 | else | |
7520 | ||
7521 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` | |
7522 | if test "x$LINE" != x ; then | |
7523 | eval "DEFAULT_$LINE" | |
7524 | else | |
7525 | no_cache=1 | |
7526 | fi | |
7527 | ||
7528 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
7529 | ||
7530 | fi; | |
7531 | ||
7532 | eval "$ac_cv_use_combobox" | |
7533 | if test "$no_cache" != 1; then | |
7534 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
7535 | fi | |
7536 | ||
7537 | if test "$wxUSE_COMBOBOX" = yes; then | |
7538 | echo "$as_me:$LINENO: result: yes" >&5 | |
7539 | echo "${ECHO_T}yes" >&6 | |
7540 | else | |
7541 | echo "$as_me:$LINENO: result: no" >&5 | |
7542 | echo "${ECHO_T}no" >&6 | |
7543 | fi | |
7544 | ||
7545 | ||
7546 | enablestring= | |
7547 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5 | |
7548 | echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6 | |
7549 | no_cache=0 | |
7550 | # Check whether --enable-display or --disable-display was given. | |
7551 | if test "${enable_display+set}" = set; then | |
7552 | enableval="$enable_display" | |
7553 | ||
7554 | if test "$enableval" = yes; then | |
7555 | ac_cv_use_display='wxUSE_DISPLAY=yes' | |
7556 | else | |
7557 | ac_cv_use_display='wxUSE_DISPLAY=no' | |
7558 | fi | |
7559 | ||
7560 | else | |
7561 | ||
7562 | LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}` | |
7563 | if test "x$LINE" != x ; then | |
7564 | eval "DEFAULT_$LINE" | |
7565 | else | |
7566 | no_cache=1 | |
7567 | fi | |
7568 | ||
7569 | ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY | |
7570 | ||
7571 | fi; | |
7572 | ||
7573 | eval "$ac_cv_use_display" | |
7574 | if test "$no_cache" != 1; then | |
7575 | echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp | |
7576 | fi | |
7577 | ||
7578 | if test "$wxUSE_DISPLAY" = yes; then | |
7579 | echo "$as_me:$LINENO: result: yes" >&5 | |
7580 | echo "${ECHO_T}yes" >&6 | |
7581 | else | |
7582 | echo "$as_me:$LINENO: result: no" >&5 | |
7583 | echo "${ECHO_T}no" >&6 | |
7584 | fi | |
7585 | ||
7586 | ||
7587 | enablestring= | |
7588 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5 | |
7589 | echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6 | |
7590 | no_cache=0 | |
7591 | # Check whether --enable-gauge or --disable-gauge was given. | |
7592 | if test "${enable_gauge+set}" = set; then | |
7593 | enableval="$enable_gauge" | |
7594 | ||
7595 | if test "$enableval" = yes; then | |
7596 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
7597 | else | |
7598 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
7599 | fi | |
7600 | ||
7601 | else | |
7602 | ||
7603 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` | |
7604 | if test "x$LINE" != x ; then | |
7605 | eval "DEFAULT_$LINE" | |
7606 | else | |
7607 | no_cache=1 | |
7608 | fi | |
7609 | ||
7610 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
7611 | ||
7612 | fi; | |
7613 | ||
7614 | eval "$ac_cv_use_gauge" | |
7615 | if test "$no_cache" != 1; then | |
7616 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
7617 | fi | |
7618 | ||
7619 | if test "$wxUSE_GAUGE" = yes; then | |
7620 | echo "$as_me:$LINENO: result: yes" >&5 | |
7621 | echo "${ECHO_T}yes" >&6 | |
7622 | else | |
7623 | echo "$as_me:$LINENO: result: no" >&5 | |
7624 | echo "${ECHO_T}no" >&6 | |
7625 | fi | |
7626 | ||
7627 | ||
7628 | enablestring= | |
7629 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5 | |
7630 | echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6 | |
7631 | no_cache=0 | |
7632 | # Check whether --enable-grid or --disable-grid was given. | |
7633 | if test "${enable_grid+set}" = set; then | |
7634 | enableval="$enable_grid" | |
7635 | ||
7636 | if test "$enableval" = yes; then | |
7637 | ac_cv_use_grid='wxUSE_GRID=yes' | |
7638 | else | |
7639 | ac_cv_use_grid='wxUSE_GRID=no' | |
7640 | fi | |
7641 | ||
7642 | else | |
7643 | ||
7644 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` | |
7645 | if test "x$LINE" != x ; then | |
7646 | eval "DEFAULT_$LINE" | |
7647 | else | |
7648 | no_cache=1 | |
7649 | fi | |
7650 | ||
7651 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
7652 | ||
7653 | fi; | |
7654 | ||
7655 | eval "$ac_cv_use_grid" | |
7656 | if test "$no_cache" != 1; then | |
7657 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
7658 | fi | |
7659 | ||
7660 | if test "$wxUSE_GRID" = yes; then | |
7661 | echo "$as_me:$LINENO: result: yes" >&5 | |
7662 | echo "${ECHO_T}yes" >&6 | |
7663 | else | |
7664 | echo "$as_me:$LINENO: result: no" >&5 | |
7665 | echo "${ECHO_T}no" >&6 | |
7666 | fi | |
7667 | ||
7668 | ||
7669 | enablestring= | |
7670 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5 | |
7671 | echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6 | |
7672 | no_cache=0 | |
7673 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
7674 | if test "${enable_imaglist+set}" = set; then | |
7675 | enableval="$enable_imaglist" | |
7676 | ||
7677 | if test "$enableval" = yes; then | |
7678 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
7679 | else | |
7680 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
7681 | fi | |
7682 | ||
7683 | else | |
7684 | ||
7685 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` | |
7686 | if test "x$LINE" != x ; then | |
7687 | eval "DEFAULT_$LINE" | |
7688 | else | |
7689 | no_cache=1 | |
7690 | fi | |
7691 | ||
7692 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
7693 | ||
7694 | fi; | |
7695 | ||
7696 | eval "$ac_cv_use_imaglist" | |
7697 | if test "$no_cache" != 1; then | |
7698 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
7699 | fi | |
7700 | ||
7701 | if test "$wxUSE_IMAGLIST" = yes; then | |
7702 | echo "$as_me:$LINENO: result: yes" >&5 | |
7703 | echo "${ECHO_T}yes" >&6 | |
7704 | else | |
7705 | echo "$as_me:$LINENO: result: no" >&5 | |
7706 | echo "${ECHO_T}no" >&6 | |
7707 | fi | |
7708 | ||
7709 | ||
7710 | enablestring= | |
7711 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5 | |
7712 | echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6 | |
7713 | no_cache=0 | |
7714 | # Check whether --enable-listbook or --disable-listbook was given. | |
7715 | if test "${enable_listbook+set}" = set; then | |
7716 | enableval="$enable_listbook" | |
7717 | ||
7718 | if test "$enableval" = yes; then | |
7719 | ac_cv_use_listbook='wxUSE_LISTBOOK=yes' | |
7720 | else | |
7721 | ac_cv_use_listbook='wxUSE_LISTBOOK=no' | |
7722 | fi | |
7723 | ||
7724 | else | |
7725 | ||
7726 | LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}` | |
7727 | if test "x$LINE" != x ; then | |
7728 | eval "DEFAULT_$LINE" | |
7729 | else | |
7730 | no_cache=1 | |
7731 | fi | |
7732 | ||
7733 | ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK | |
7734 | ||
7735 | fi; | |
7736 | ||
7737 | eval "$ac_cv_use_listbook" | |
7738 | if test "$no_cache" != 1; then | |
7739 | echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp | |
7740 | fi | |
7741 | ||
7742 | if test "$wxUSE_LISTBOOK" = yes; then | |
7743 | echo "$as_me:$LINENO: result: yes" >&5 | |
7744 | echo "${ECHO_T}yes" >&6 | |
7745 | else | |
7746 | echo "$as_me:$LINENO: result: no" >&5 | |
7747 | echo "${ECHO_T}no" >&6 | |
7748 | fi | |
7749 | ||
7750 | ||
7751 | enablestring= | |
7752 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5 | |
7753 | echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6 | |
7754 | no_cache=0 | |
7755 | # Check whether --enable-listbox or --disable-listbox was given. | |
7756 | if test "${enable_listbox+set}" = set; then | |
7757 | enableval="$enable_listbox" | |
7758 | ||
7759 | if test "$enableval" = yes; then | |
7760 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
7761 | else | |
7762 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
7763 | fi | |
7764 | ||
7765 | else | |
7766 | ||
7767 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` | |
7768 | if test "x$LINE" != x ; then | |
7769 | eval "DEFAULT_$LINE" | |
7770 | else | |
7771 | no_cache=1 | |
7772 | fi | |
7773 | ||
7774 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
7775 | ||
7776 | fi; | |
7777 | ||
7778 | eval "$ac_cv_use_listbox" | |
7779 | if test "$no_cache" != 1; then | |
7780 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
7781 | fi | |
7782 | ||
7783 | if test "$wxUSE_LISTBOX" = yes; then | |
7784 | echo "$as_me:$LINENO: result: yes" >&5 | |
7785 | echo "${ECHO_T}yes" >&6 | |
7786 | else | |
7787 | echo "$as_me:$LINENO: result: no" >&5 | |
7788 | echo "${ECHO_T}no" >&6 | |
7789 | fi | |
7790 | ||
7791 | ||
7792 | enablestring= | |
7793 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5 | |
7794 | echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6 | |
7795 | no_cache=0 | |
7796 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
7797 | if test "${enable_listctrl+set}" = set; then | |
7798 | enableval="$enable_listctrl" | |
7799 | ||
7800 | if test "$enableval" = yes; then | |
7801 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
7802 | else | |
7803 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
7804 | fi | |
7805 | ||
7806 | else | |
7807 | ||
7808 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` | |
7809 | if test "x$LINE" != x ; then | |
7810 | eval "DEFAULT_$LINE" | |
7811 | else | |
7812 | no_cache=1 | |
7813 | fi | |
7814 | ||
7815 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
7816 | ||
7817 | fi; | |
7818 | ||
7819 | eval "$ac_cv_use_listctrl" | |
7820 | if test "$no_cache" != 1; then | |
7821 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
7822 | fi | |
7823 | ||
7824 | if test "$wxUSE_LISTCTRL" = yes; then | |
7825 | echo "$as_me:$LINENO: result: yes" >&5 | |
7826 | echo "${ECHO_T}yes" >&6 | |
7827 | else | |
7828 | echo "$as_me:$LINENO: result: no" >&5 | |
7829 | echo "${ECHO_T}no" >&6 | |
7830 | fi | |
7831 | ||
7832 | ||
7833 | enablestring= | |
7834 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5 | |
7835 | echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6 | |
7836 | no_cache=0 | |
7837 | # Check whether --enable-notebook or --disable-notebook was given. | |
7838 | if test "${enable_notebook+set}" = set; then | |
7839 | enableval="$enable_notebook" | |
7840 | ||
7841 | if test "$enableval" = yes; then | |
7842 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
7843 | else | |
7844 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
7845 | fi | |
7846 | ||
7847 | else | |
7848 | ||
7849 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` | |
7850 | if test "x$LINE" != x ; then | |
7851 | eval "DEFAULT_$LINE" | |
7852 | else | |
7853 | no_cache=1 | |
7854 | fi | |
7855 | ||
7856 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
7857 | ||
7858 | fi; | |
7859 | ||
7860 | eval "$ac_cv_use_notebook" | |
7861 | if test "$no_cache" != 1; then | |
7862 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
7863 | fi | |
7864 | ||
7865 | if test "$wxUSE_NOTEBOOK" = yes; then | |
7866 | echo "$as_me:$LINENO: result: yes" >&5 | |
7867 | echo "${ECHO_T}yes" >&6 | |
7868 | else | |
7869 | echo "$as_me:$LINENO: result: no" >&5 | |
7870 | echo "${ECHO_T}no" >&6 | |
7871 | fi | |
7872 | ||
7873 | ||
7874 | enablestring= | |
7875 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5 | |
7876 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6 | |
7877 | no_cache=0 | |
7878 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
7879 | if test "${enable_radiobox+set}" = set; then | |
7880 | enableval="$enable_radiobox" | |
7881 | ||
7882 | if test "$enableval" = yes; then | |
7883 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
7884 | else | |
7885 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
7886 | fi | |
7887 | ||
7888 | else | |
7889 | ||
7890 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` | |
7891 | if test "x$LINE" != x ; then | |
7892 | eval "DEFAULT_$LINE" | |
7893 | else | |
7894 | no_cache=1 | |
7895 | fi | |
7896 | ||
7897 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
7898 | ||
7899 | fi; | |
7900 | ||
7901 | eval "$ac_cv_use_radiobox" | |
7902 | if test "$no_cache" != 1; then | |
7903 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
7904 | fi | |
7905 | ||
7906 | if test "$wxUSE_RADIOBOX" = yes; then | |
7907 | echo "$as_me:$LINENO: result: yes" >&5 | |
7908 | echo "${ECHO_T}yes" >&6 | |
7909 | else | |
7910 | echo "$as_me:$LINENO: result: no" >&5 | |
7911 | echo "${ECHO_T}no" >&6 | |
7912 | fi | |
7913 | ||
7914 | ||
7915 | enablestring= | |
7916 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5 | |
7917 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6 | |
7918 | no_cache=0 | |
7919 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
7920 | if test "${enable_radiobtn+set}" = set; then | |
7921 | enableval="$enable_radiobtn" | |
7922 | ||
7923 | if test "$enableval" = yes; then | |
7924 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
7925 | else | |
7926 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
7927 | fi | |
7928 | ||
7929 | else | |
7930 | ||
7931 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` | |
7932 | if test "x$LINE" != x ; then | |
7933 | eval "DEFAULT_$LINE" | |
7934 | else | |
7935 | no_cache=1 | |
7936 | fi | |
7937 | ||
7938 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
7939 | ||
7940 | fi; | |
7941 | ||
7942 | eval "$ac_cv_use_radiobtn" | |
7943 | if test "$no_cache" != 1; then | |
7944 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
7945 | fi | |
7946 | ||
7947 | if test "$wxUSE_RADIOBTN" = yes; then | |
7948 | echo "$as_me:$LINENO: result: yes" >&5 | |
7949 | echo "${ECHO_T}yes" >&6 | |
7950 | else | |
7951 | echo "$as_me:$LINENO: result: no" >&5 | |
7952 | echo "${ECHO_T}no" >&6 | |
7953 | fi | |
7954 | ||
7955 | ||
7956 | enablestring= | |
7957 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5 | |
7958 | echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6 | |
7959 | no_cache=0 | |
7960 | # Check whether --enable-sash or --disable-sash was given. | |
7961 | if test "${enable_sash+set}" = set; then | |
7962 | enableval="$enable_sash" | |
7963 | ||
7964 | if test "$enableval" = yes; then | |
7965 | ac_cv_use_sash='wxUSE_SASH=yes' | |
7966 | else | |
7967 | ac_cv_use_sash='wxUSE_SASH=no' | |
7968 | fi | |
7969 | ||
7970 | else | |
7971 | ||
7972 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` | |
7973 | if test "x$LINE" != x ; then | |
7974 | eval "DEFAULT_$LINE" | |
7975 | else | |
7976 | no_cache=1 | |
7977 | fi | |
7978 | ||
7979 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
7980 | ||
7981 | fi; | |
7982 | ||
7983 | eval "$ac_cv_use_sash" | |
7984 | if test "$no_cache" != 1; then | |
7985 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
7986 | fi | |
7987 | ||
7988 | if test "$wxUSE_SASH" = yes; then | |
7989 | echo "$as_me:$LINENO: result: yes" >&5 | |
7990 | echo "${ECHO_T}yes" >&6 | |
7991 | else | |
7992 | echo "$as_me:$LINENO: result: no" >&5 | |
7993 | echo "${ECHO_T}no" >&6 | |
7994 | fi | |
7995 | ||
7996 | ||
7997 | enablestring= | |
7998 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5 | |
7999 | echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6 | |
8000 | no_cache=0 | |
8001 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
8002 | if test "${enable_scrollbar+set}" = set; then | |
8003 | enableval="$enable_scrollbar" | |
8004 | ||
8005 | if test "$enableval" = yes; then | |
8006 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
8007 | else | |
8008 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
8009 | fi | |
8010 | ||
8011 | else | |
8012 | ||
8013 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` | |
8014 | if test "x$LINE" != x ; then | |
8015 | eval "DEFAULT_$LINE" | |
8016 | else | |
8017 | no_cache=1 | |
8018 | fi | |
8019 | ||
8020 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
8021 | ||
8022 | fi; | |
8023 | ||
8024 | eval "$ac_cv_use_scrollbar" | |
8025 | if test "$no_cache" != 1; then | |
8026 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
8027 | fi | |
8028 | ||
8029 | if test "$wxUSE_SCROLLBAR" = yes; then | |
8030 | echo "$as_me:$LINENO: result: yes" >&5 | |
8031 | echo "${ECHO_T}yes" >&6 | |
8032 | else | |
8033 | echo "$as_me:$LINENO: result: no" >&5 | |
8034 | echo "${ECHO_T}no" >&6 | |
8035 | fi | |
8036 | ||
8037 | ||
8038 | enablestring= | |
8039 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5 | |
8040 | echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6 | |
8041 | no_cache=0 | |
8042 | # Check whether --enable-slider or --disable-slider was given. | |
8043 | if test "${enable_slider+set}" = set; then | |
8044 | enableval="$enable_slider" | |
8045 | ||
8046 | if test "$enableval" = yes; then | |
8047 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
8048 | else | |
8049 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
8050 | fi | |
8051 | ||
8052 | else | |
8053 | ||
8054 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` | |
8055 | if test "x$LINE" != x ; then | |
8056 | eval "DEFAULT_$LINE" | |
8057 | else | |
8058 | no_cache=1 | |
8059 | fi | |
8060 | ||
8061 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
8062 | ||
8063 | fi; | |
8064 | ||
8065 | eval "$ac_cv_use_slider" | |
8066 | if test "$no_cache" != 1; then | |
8067 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
8068 | fi | |
8069 | ||
8070 | if test "$wxUSE_SLIDER" = yes; then | |
8071 | echo "$as_me:$LINENO: result: yes" >&5 | |
8072 | echo "${ECHO_T}yes" >&6 | |
8073 | else | |
8074 | echo "$as_me:$LINENO: result: no" >&5 | |
8075 | echo "${ECHO_T}no" >&6 | |
8076 | fi | |
8077 | ||
8078 | ||
8079 | enablestring= | |
8080 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5 | |
8081 | echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6 | |
8082 | no_cache=0 | |
8083 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
8084 | if test "${enable_spinbtn+set}" = set; then | |
8085 | enableval="$enable_spinbtn" | |
8086 | ||
8087 | if test "$enableval" = yes; then | |
8088 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
8089 | else | |
8090 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
8091 | fi | |
8092 | ||
8093 | else | |
8094 | ||
8095 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` | |
8096 | if test "x$LINE" != x ; then | |
8097 | eval "DEFAULT_$LINE" | |
8098 | else | |
8099 | no_cache=1 | |
8100 | fi | |
8101 | ||
8102 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
8103 | ||
8104 | fi; | |
8105 | ||
8106 | eval "$ac_cv_use_spinbtn" | |
8107 | if test "$no_cache" != 1; then | |
8108 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
8109 | fi | |
8110 | ||
8111 | if test "$wxUSE_SPINBTN" = yes; then | |
8112 | echo "$as_me:$LINENO: result: yes" >&5 | |
8113 | echo "${ECHO_T}yes" >&6 | |
8114 | else | |
8115 | echo "$as_me:$LINENO: result: no" >&5 | |
8116 | echo "${ECHO_T}no" >&6 | |
8117 | fi | |
8118 | ||
8119 | ||
8120 | enablestring= | |
8121 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5 | |
8122 | echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6 | |
8123 | no_cache=0 | |
8124 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
8125 | if test "${enable_spinctrl+set}" = set; then | |
8126 | enableval="$enable_spinctrl" | |
8127 | ||
8128 | if test "$enableval" = yes; then | |
8129 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
8130 | else | |
8131 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
8132 | fi | |
8133 | ||
8134 | else | |
8135 | ||
8136 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` | |
8137 | if test "x$LINE" != x ; then | |
8138 | eval "DEFAULT_$LINE" | |
8139 | else | |
8140 | no_cache=1 | |
8141 | fi | |
8142 | ||
8143 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
8144 | ||
8145 | fi; | |
8146 | ||
8147 | eval "$ac_cv_use_spinctrl" | |
8148 | if test "$no_cache" != 1; then | |
8149 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
8150 | fi | |
8151 | ||
8152 | if test "$wxUSE_SPINCTRL" = yes; then | |
8153 | echo "$as_me:$LINENO: result: yes" >&5 | |
8154 | echo "${ECHO_T}yes" >&6 | |
8155 | else | |
8156 | echo "$as_me:$LINENO: result: no" >&5 | |
8157 | echo "${ECHO_T}no" >&6 | |
8158 | fi | |
8159 | ||
8160 | ||
8161 | enablestring= | |
8162 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5 | |
8163 | echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6 | |
8164 | no_cache=0 | |
8165 | # Check whether --enable-splitter or --disable-splitter was given. | |
8166 | if test "${enable_splitter+set}" = set; then | |
8167 | enableval="$enable_splitter" | |
8168 | ||
8169 | if test "$enableval" = yes; then | |
8170 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
8171 | else | |
8172 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
8173 | fi | |
8174 | ||
8175 | else | |
8176 | ||
8177 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` | |
8178 | if test "x$LINE" != x ; then | |
8179 | eval "DEFAULT_$LINE" | |
8180 | else | |
8181 | no_cache=1 | |
8182 | fi | |
8183 | ||
8184 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
8185 | ||
8186 | fi; | |
8187 | ||
8188 | eval "$ac_cv_use_splitter" | |
8189 | if test "$no_cache" != 1; then | |
8190 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
8191 | fi | |
8192 | ||
8193 | if test "$wxUSE_SPLITTER" = yes; then | |
8194 | echo "$as_me:$LINENO: result: yes" >&5 | |
8195 | echo "${ECHO_T}yes" >&6 | |
8196 | else | |
8197 | echo "$as_me:$LINENO: result: no" >&5 | |
8198 | echo "${ECHO_T}no" >&6 | |
8199 | fi | |
8200 | ||
8201 | ||
8202 | enablestring= | |
8203 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5 | |
8204 | echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6 | |
8205 | no_cache=0 | |
8206 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
8207 | if test "${enable_statbmp+set}" = set; then | |
8208 | enableval="$enable_statbmp" | |
8209 | ||
8210 | if test "$enableval" = yes; then | |
8211 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
8212 | else | |
8213 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
8214 | fi | |
8215 | ||
8216 | else | |
8217 | ||
8218 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` | |
8219 | if test "x$LINE" != x ; then | |
8220 | eval "DEFAULT_$LINE" | |
8221 | else | |
8222 | no_cache=1 | |
8223 | fi | |
8224 | ||
8225 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
8226 | ||
8227 | fi; | |
8228 | ||
8229 | eval "$ac_cv_use_statbmp" | |
8230 | if test "$no_cache" != 1; then | |
8231 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
8232 | fi | |
8233 | ||
8234 | if test "$wxUSE_STATBMP" = yes; then | |
8235 | echo "$as_me:$LINENO: result: yes" >&5 | |
8236 | echo "${ECHO_T}yes" >&6 | |
8237 | else | |
8238 | echo "$as_me:$LINENO: result: no" >&5 | |
8239 | echo "${ECHO_T}no" >&6 | |
8240 | fi | |
8241 | ||
8242 | ||
8243 | enablestring= | |
8244 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5 | |
8245 | echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6 | |
8246 | no_cache=0 | |
8247 | # Check whether --enable-statbox or --disable-statbox was given. | |
8248 | if test "${enable_statbox+set}" = set; then | |
8249 | enableval="$enable_statbox" | |
8250 | ||
8251 | if test "$enableval" = yes; then | |
8252 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
8253 | else | |
8254 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
8255 | fi | |
8256 | ||
8257 | else | |
8258 | ||
8259 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` | |
8260 | if test "x$LINE" != x ; then | |
8261 | eval "DEFAULT_$LINE" | |
8262 | else | |
8263 | no_cache=1 | |
8264 | fi | |
8265 | ||
8266 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
8267 | ||
8268 | fi; | |
8269 | ||
8270 | eval "$ac_cv_use_statbox" | |
8271 | if test "$no_cache" != 1; then | |
8272 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
8273 | fi | |
8274 | ||
8275 | if test "$wxUSE_STATBOX" = yes; then | |
8276 | echo "$as_me:$LINENO: result: yes" >&5 | |
8277 | echo "${ECHO_T}yes" >&6 | |
8278 | else | |
8279 | echo "$as_me:$LINENO: result: no" >&5 | |
8280 | echo "${ECHO_T}no" >&6 | |
8281 | fi | |
8282 | ||
8283 | ||
8284 | enablestring= | |
8285 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5 | |
8286 | echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6 | |
8287 | no_cache=0 | |
8288 | # Check whether --enable-statline or --disable-statline was given. | |
8289 | if test "${enable_statline+set}" = set; then | |
8290 | enableval="$enable_statline" | |
8291 | ||
8292 | if test "$enableval" = yes; then | |
8293 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
8294 | else | |
8295 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
8296 | fi | |
8297 | ||
8298 | else | |
8299 | ||
8300 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` | |
8301 | if test "x$LINE" != x ; then | |
8302 | eval "DEFAULT_$LINE" | |
8303 | else | |
8304 | no_cache=1 | |
8305 | fi | |
8306 | ||
8307 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
8308 | ||
8309 | fi; | |
8310 | ||
8311 | eval "$ac_cv_use_statline" | |
8312 | if test "$no_cache" != 1; then | |
8313 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
8314 | fi | |
8315 | ||
8316 | if test "$wxUSE_STATLINE" = yes; then | |
8317 | echo "$as_me:$LINENO: result: yes" >&5 | |
8318 | echo "${ECHO_T}yes" >&6 | |
8319 | else | |
8320 | echo "$as_me:$LINENO: result: no" >&5 | |
8321 | echo "${ECHO_T}no" >&6 | |
8322 | fi | |
8323 | ||
8324 | ||
8325 | enablestring= | |
8326 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5 | |
8327 | echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6 | |
8328 | no_cache=0 | |
8329 | # Check whether --enable-stattext or --disable-stattext was given. | |
8330 | if test "${enable_stattext+set}" = set; then | |
8331 | enableval="$enable_stattext" | |
8332 | ||
8333 | if test "$enableval" = yes; then | |
8334 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
8335 | else | |
8336 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
8337 | fi | |
8338 | ||
8339 | else | |
8340 | ||
8341 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
8342 | if test "x$LINE" != x ; then | |
8343 | eval "DEFAULT_$LINE" | |
8344 | else | |
8345 | no_cache=1 | |
8346 | fi | |
8347 | ||
8348 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
8349 | ||
8350 | fi; | |
8351 | ||
8352 | eval "$ac_cv_use_stattext" | |
8353 | if test "$no_cache" != 1; then | |
8354 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
8355 | fi | |
8356 | ||
8357 | if test "$wxUSE_STATTEXT" = yes; then | |
8358 | echo "$as_me:$LINENO: result: yes" >&5 | |
8359 | echo "${ECHO_T}yes" >&6 | |
8360 | else | |
8361 | echo "$as_me:$LINENO: result: no" >&5 | |
8362 | echo "${ECHO_T}no" >&6 | |
8363 | fi | |
8364 | ||
8365 | ||
8366 | enablestring= | |
8367 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5 | |
8368 | echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6 | |
8369 | no_cache=0 | |
8370 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
8371 | if test "${enable_statusbar+set}" = set; then | |
8372 | enableval="$enable_statusbar" | |
8373 | ||
8374 | if test "$enableval" = yes; then | |
8375 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
8376 | else | |
8377 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
8378 | fi | |
8379 | ||
8380 | else | |
8381 | ||
8382 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` | |
8383 | if test "x$LINE" != x ; then | |
8384 | eval "DEFAULT_$LINE" | |
8385 | else | |
8386 | no_cache=1 | |
8387 | fi | |
8388 | ||
8389 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
8390 | ||
8391 | fi; | |
8392 | ||
8393 | eval "$ac_cv_use_statusbar" | |
8394 | if test "$no_cache" != 1; then | |
8395 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
8396 | fi | |
8397 | ||
8398 | if test "$wxUSE_STATUSBAR" = yes; then | |
8399 | echo "$as_me:$LINENO: result: yes" >&5 | |
8400 | echo "${ECHO_T}yes" >&6 | |
8401 | else | |
8402 | echo "$as_me:$LINENO: result: no" >&5 | |
8403 | echo "${ECHO_T}no" >&6 | |
8404 | fi | |
8405 | ||
8406 | ||
8407 | enablestring= | |
8408 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5 | |
8409 | echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6 | |
8410 | no_cache=0 | |
8411 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
8412 | if test "${enable_tabdialog+set}" = set; then | |
8413 | enableval="$enable_tabdialog" | |
8414 | ||
8415 | if test "$enableval" = yes; then | |
8416 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
8417 | else | |
8418 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
8419 | fi | |
8420 | ||
8421 | else | |
8422 | ||
8423 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` | |
8424 | if test "x$LINE" != x ; then | |
8425 | eval "DEFAULT_$LINE" | |
8426 | else | |
8427 | no_cache=1 | |
8428 | fi | |
8429 | ||
8430 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
8431 | ||
8432 | fi; | |
8433 | ||
8434 | eval "$ac_cv_use_tabdialog" | |
8435 | if test "$no_cache" != 1; then | |
8436 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
8437 | fi | |
8438 | ||
8439 | if test "$wxUSE_TABDIALOG" = yes; then | |
8440 | echo "$as_me:$LINENO: result: yes" >&5 | |
8441 | echo "${ECHO_T}yes" >&6 | |
8442 | else | |
8443 | echo "$as_me:$LINENO: result: no" >&5 | |
8444 | echo "${ECHO_T}no" >&6 | |
8445 | fi | |
8446 | ||
8447 | ||
8448 | enablestring= | |
8449 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5 | |
8450 | echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6 | |
8451 | no_cache=0 | |
8452 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
8453 | if test "${enable_textctrl+set}" = set; then | |
8454 | enableval="$enable_textctrl" | |
8455 | ||
8456 | if test "$enableval" = yes; then | |
8457 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
8458 | else | |
8459 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
8460 | fi | |
8461 | ||
8462 | else | |
8463 | ||
8464 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
8465 | if test "x$LINE" != x ; then | |
8466 | eval "DEFAULT_$LINE" | |
8467 | else | |
8468 | no_cache=1 | |
8469 | fi | |
8470 | ||
8471 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
8472 | ||
8473 | fi; | |
8474 | ||
8475 | eval "$ac_cv_use_textctrl" | |
8476 | if test "$no_cache" != 1; then | |
8477 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
8478 | fi | |
8479 | ||
8480 | if test "$wxUSE_TEXTCTRL" = yes; then | |
8481 | echo "$as_me:$LINENO: result: yes" >&5 | |
8482 | echo "${ECHO_T}yes" >&6 | |
8483 | else | |
8484 | echo "$as_me:$LINENO: result: no" >&5 | |
8485 | echo "${ECHO_T}no" >&6 | |
8486 | fi | |
8487 | ||
8488 | ||
8489 | enablestring= | |
8490 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5 | |
8491 | echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6 | |
8492 | no_cache=0 | |
8493 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
8494 | if test "${enable_togglebtn+set}" = set; then | |
8495 | enableval="$enable_togglebtn" | |
8496 | ||
8497 | if test "$enableval" = yes; then | |
8498 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
8499 | else | |
8500 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
8501 | fi | |
8502 | ||
8503 | else | |
8504 | ||
8505 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` | |
8506 | if test "x$LINE" != x ; then | |
8507 | eval "DEFAULT_$LINE" | |
8508 | else | |
8509 | no_cache=1 | |
8510 | fi | |
8511 | ||
8512 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
8513 | ||
8514 | fi; | |
8515 | ||
8516 | eval "$ac_cv_use_togglebtn" | |
8517 | if test "$no_cache" != 1; then | |
8518 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
8519 | fi | |
8520 | ||
8521 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
8522 | echo "$as_me:$LINENO: result: yes" >&5 | |
8523 | echo "${ECHO_T}yes" >&6 | |
8524 | else | |
8525 | echo "$as_me:$LINENO: result: no" >&5 | |
8526 | echo "${ECHO_T}no" >&6 | |
8527 | fi | |
8528 | ||
8529 | ||
8530 | enablestring= | |
8531 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5 | |
8532 | echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6 | |
8533 | no_cache=0 | |
8534 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
8535 | if test "${enable_toolbar+set}" = set; then | |
8536 | enableval="$enable_toolbar" | |
8537 | ||
8538 | if test "$enableval" = yes; then | |
8539 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
8540 | else | |
8541 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
8542 | fi | |
8543 | ||
8544 | else | |
8545 | ||
8546 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` | |
8547 | if test "x$LINE" != x ; then | |
8548 | eval "DEFAULT_$LINE" | |
8549 | else | |
8550 | no_cache=1 | |
8551 | fi | |
8552 | ||
8553 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
8554 | ||
8555 | fi; | |
8556 | ||
8557 | eval "$ac_cv_use_toolbar" | |
8558 | if test "$no_cache" != 1; then | |
8559 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
8560 | fi | |
8561 | ||
8562 | if test "$wxUSE_TOOLBAR" = yes; then | |
8563 | echo "$as_me:$LINENO: result: yes" >&5 | |
8564 | echo "${ECHO_T}yes" >&6 | |
8565 | else | |
8566 | echo "$as_me:$LINENO: result: no" >&5 | |
8567 | echo "${ECHO_T}no" >&6 | |
8568 | fi | |
8569 | ||
8570 | ||
8571 | enablestring= | |
8572 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5 | |
8573 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6 | |
8574 | no_cache=0 | |
8575 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
8576 | if test "${enable_tbarnative+set}" = set; then | |
8577 | enableval="$enable_tbarnative" | |
8578 | ||
8579 | if test "$enableval" = yes; then | |
8580 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
8581 | else | |
8582 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
8583 | fi | |
8584 | ||
8585 | else | |
8586 | ||
8587 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` | |
8588 | if test "x$LINE" != x ; then | |
8589 | eval "DEFAULT_$LINE" | |
8590 | else | |
8591 | no_cache=1 | |
8592 | fi | |
8593 | ||
8594 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
8595 | ||
8596 | fi; | |
8597 | ||
8598 | eval "$ac_cv_use_tbarnative" | |
8599 | if test "$no_cache" != 1; then | |
8600 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
8601 | fi | |
8602 | ||
8603 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
8604 | echo "$as_me:$LINENO: result: yes" >&5 | |
8605 | echo "${ECHO_T}yes" >&6 | |
8606 | else | |
8607 | echo "$as_me:$LINENO: result: no" >&5 | |
8608 | echo "${ECHO_T}no" >&6 | |
8609 | fi | |
8610 | ||
8611 | ||
8612 | enablestring= | |
8613 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5 | |
8614 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6 | |
8615 | no_cache=0 | |
8616 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
8617 | if test "${enable_tbarsmpl+set}" = set; then | |
8618 | enableval="$enable_tbarsmpl" | |
8619 | ||
8620 | if test "$enableval" = yes; then | |
8621 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
8622 | else | |
8623 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
8624 | fi | |
8625 | ||
8626 | else | |
8627 | ||
8628 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` | |
8629 | if test "x$LINE" != x ; then | |
8630 | eval "DEFAULT_$LINE" | |
8631 | else | |
8632 | no_cache=1 | |
8633 | fi | |
8634 | ||
8635 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
8636 | ||
8637 | fi; | |
8638 | ||
8639 | eval "$ac_cv_use_tbarsmpl" | |
8640 | if test "$no_cache" != 1; then | |
8641 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
8642 | fi | |
8643 | ||
8644 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
8645 | echo "$as_me:$LINENO: result: yes" >&5 | |
8646 | echo "${ECHO_T}yes" >&6 | |
8647 | else | |
8648 | echo "$as_me:$LINENO: result: no" >&5 | |
8649 | echo "${ECHO_T}no" >&6 | |
8650 | fi | |
8651 | ||
8652 | ||
8653 | enablestring= | |
8654 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5 | |
8655 | echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6 | |
8656 | no_cache=0 | |
8657 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
8658 | if test "${enable_treectrl+set}" = set; then | |
8659 | enableval="$enable_treectrl" | |
8660 | ||
8661 | if test "$enableval" = yes; then | |
8662 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
8663 | else | |
8664 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
8665 | fi | |
8666 | ||
8667 | else | |
8668 | ||
8669 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` | |
8670 | if test "x$LINE" != x ; then | |
8671 | eval "DEFAULT_$LINE" | |
8672 | else | |
8673 | no_cache=1 | |
8674 | fi | |
8675 | ||
8676 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
8677 | ||
8678 | fi; | |
8679 | ||
8680 | eval "$ac_cv_use_treectrl" | |
8681 | if test "$no_cache" != 1; then | |
8682 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
8683 | fi | |
8684 | ||
8685 | if test "$wxUSE_TREECTRL" = yes; then | |
8686 | echo "$as_me:$LINENO: result: yes" >&5 | |
8687 | echo "${ECHO_T}yes" >&6 | |
8688 | else | |
8689 | echo "$as_me:$LINENO: result: no" >&5 | |
8690 | echo "${ECHO_T}no" >&6 | |
8691 | fi | |
8692 | ||
8693 | ||
8694 | enablestring= | |
8695 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5 | |
8696 | echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6 | |
8697 | no_cache=0 | |
8698 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
8699 | if test "${enable_tipwindow+set}" = set; then | |
8700 | enableval="$enable_tipwindow" | |
8701 | ||
8702 | if test "$enableval" = yes; then | |
8703 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
8704 | else | |
8705 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
8706 | fi | |
8707 | ||
8708 | else | |
8709 | ||
8710 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` | |
8711 | if test "x$LINE" != x ; then | |
8712 | eval "DEFAULT_$LINE" | |
8713 | else | |
8714 | no_cache=1 | |
8715 | fi | |
8716 | ||
8717 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
8718 | ||
8719 | fi; | |
8720 | ||
8721 | eval "$ac_cv_use_tipwindow" | |
8722 | if test "$no_cache" != 1; then | |
8723 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
8724 | fi | |
8725 | ||
8726 | if test "$wxUSE_TIPWINDOW" = yes; then | |
8727 | echo "$as_me:$LINENO: result: yes" >&5 | |
8728 | echo "${ECHO_T}yes" >&6 | |
8729 | else | |
8730 | echo "$as_me:$LINENO: result: no" >&5 | |
8731 | echo "${ECHO_T}no" >&6 | |
8732 | fi | |
8733 | ||
8734 | ||
8735 | enablestring= | |
8736 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5 | |
8737 | echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6 | |
8738 | no_cache=0 | |
8739 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
8740 | if test "${enable_popupwin+set}" = set; then | |
8741 | enableval="$enable_popupwin" | |
8742 | ||
8743 | if test "$enableval" = yes; then | |
8744 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
8745 | else | |
8746 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
8747 | fi | |
8748 | ||
8749 | else | |
8750 | ||
8751 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
8752 | if test "x$LINE" != x ; then | |
8753 | eval "DEFAULT_$LINE" | |
8754 | else | |
8755 | no_cache=1 | |
8756 | fi | |
8757 | ||
8758 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
8759 | ||
8760 | fi; | |
8761 | ||
8762 | eval "$ac_cv_use_popupwin" | |
8763 | if test "$no_cache" != 1; then | |
8764 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
8765 | fi | |
8766 | ||
8767 | if test "$wxUSE_POPUPWIN" = yes; then | |
8768 | echo "$as_me:$LINENO: result: yes" >&5 | |
8769 | echo "${ECHO_T}yes" >&6 | |
8770 | else | |
8771 | echo "$as_me:$LINENO: result: no" >&5 | |
8772 | echo "${ECHO_T}no" >&6 | |
8773 | fi | |
8774 | ||
8775 | ||
8776 | ||
8777 | ||
8778 | enablestring= | |
8779 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5 | |
8780 | echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6 | |
8781 | no_cache=0 | |
8782 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
8783 | if test "${enable_commondlg+set}" = set; then | |
8784 | enableval="$enable_commondlg" | |
8785 | ||
8786 | if test "$enableval" = yes; then | |
8787 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
8788 | else | |
8789 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
8790 | fi | |
8791 | ||
8792 | else | |
8793 | ||
8794 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
8795 | if test "x$LINE" != x ; then | |
8796 | eval "DEFAULT_$LINE" | |
8797 | else | |
8798 | no_cache=1 | |
8799 | fi | |
8800 | ||
8801 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
8802 | ||
8803 | fi; | |
8804 | ||
8805 | eval "$ac_cv_use_commondlg" | |
8806 | if test "$no_cache" != 1; then | |
8807 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
8808 | fi | |
8809 | ||
8810 | if test "$wxUSE_COMMONDLGS" = yes; then | |
8811 | echo "$as_me:$LINENO: result: yes" >&5 | |
8812 | echo "${ECHO_T}yes" >&6 | |
8813 | else | |
8814 | echo "$as_me:$LINENO: result: no" >&5 | |
8815 | echo "${ECHO_T}no" >&6 | |
8816 | fi | |
8817 | ||
8818 | ||
8819 | enablestring= | |
8820 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5 | |
8821 | echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6 | |
8822 | no_cache=0 | |
8823 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
8824 | if test "${enable_choicedlg+set}" = set; then | |
8825 | enableval="$enable_choicedlg" | |
8826 | ||
8827 | if test "$enableval" = yes; then | |
8828 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
8829 | else | |
8830 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
8831 | fi | |
8832 | ||
8833 | else | |
8834 | ||
8835 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
8836 | if test "x$LINE" != x ; then | |
8837 | eval "DEFAULT_$LINE" | |
8838 | else | |
8839 | no_cache=1 | |
8840 | fi | |
8841 | ||
8842 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
8843 | ||
8844 | fi; | |
8845 | ||
8846 | eval "$ac_cv_use_choicedlg" | |
8847 | if test "$no_cache" != 1; then | |
8848 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
8849 | fi | |
8850 | ||
8851 | if test "$wxUSE_CHOICEDLG" = yes; then | |
8852 | echo "$as_me:$LINENO: result: yes" >&5 | |
8853 | echo "${ECHO_T}yes" >&6 | |
8854 | else | |
8855 | echo "$as_me:$LINENO: result: no" >&5 | |
8856 | echo "${ECHO_T}no" >&6 | |
8857 | fi | |
8858 | ||
8859 | ||
8860 | enablestring= | |
8861 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5 | |
8862 | echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6 | |
8863 | no_cache=0 | |
8864 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
8865 | if test "${enable_coldlg+set}" = set; then | |
8866 | enableval="$enable_coldlg" | |
8867 | ||
8868 | if test "$enableval" = yes; then | |
8869 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
8870 | else | |
8871 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
8872 | fi | |
8873 | ||
8874 | else | |
8875 | ||
8876 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
8877 | if test "x$LINE" != x ; then | |
8878 | eval "DEFAULT_$LINE" | |
8879 | else | |
8880 | no_cache=1 | |
8881 | fi | |
8882 | ||
8883 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
8884 | ||
8885 | fi; | |
8886 | ||
8887 | eval "$ac_cv_use_coldlg" | |
8888 | if test "$no_cache" != 1; then | |
8889 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
8890 | fi | |
8891 | ||
8892 | if test "$wxUSE_COLOURDLG" = yes; then | |
8893 | echo "$as_me:$LINENO: result: yes" >&5 | |
8894 | echo "${ECHO_T}yes" >&6 | |
8895 | else | |
8896 | echo "$as_me:$LINENO: result: no" >&5 | |
8897 | echo "${ECHO_T}no" >&6 | |
8898 | fi | |
8899 | ||
8900 | ||
8901 | enablestring= | |
8902 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5 | |
8903 | echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6 | |
8904 | no_cache=0 | |
8905 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
8906 | if test "${enable_filedlg+set}" = set; then | |
8907 | enableval="$enable_filedlg" | |
8908 | ||
8909 | if test "$enableval" = yes; then | |
8910 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
8911 | else | |
8912 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
8913 | fi | |
8914 | ||
8915 | else | |
8916 | ||
8917 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
8918 | if test "x$LINE" != x ; then | |
8919 | eval "DEFAULT_$LINE" | |
8920 | else | |
8921 | no_cache=1 | |
8922 | fi | |
8923 | ||
8924 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
8925 | ||
8926 | fi; | |
8927 | ||
8928 | eval "$ac_cv_use_filedlg" | |
8929 | if test "$no_cache" != 1; then | |
8930 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
8931 | fi | |
8932 | ||
8933 | if test "$wxUSE_FILEDLG" = yes; then | |
8934 | echo "$as_me:$LINENO: result: yes" >&5 | |
8935 | echo "${ECHO_T}yes" >&6 | |
8936 | else | |
8937 | echo "$as_me:$LINENO: result: no" >&5 | |
8938 | echo "${ECHO_T}no" >&6 | |
8939 | fi | |
8940 | ||
8941 | ||
8942 | enablestring= | |
8943 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5 | |
8944 | echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6 | |
8945 | no_cache=0 | |
8946 | # Check whether --enable-finddlg or --disable-finddlg was given. | |
8947 | if test "${enable_finddlg+set}" = set; then | |
8948 | enableval="$enable_finddlg" | |
8949 | ||
8950 | if test "$enableval" = yes; then | |
8951 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' | |
8952 | else | |
8953 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' | |
8954 | fi | |
8955 | ||
8956 | else | |
8957 | ||
8958 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
8959 | if test "x$LINE" != x ; then | |
8960 | eval "DEFAULT_$LINE" | |
8961 | else | |
8962 | no_cache=1 | |
8963 | fi | |
8964 | ||
8965 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG | |
8966 | ||
8967 | fi; | |
8968 | ||
8969 | eval "$ac_cv_use_finddlg" | |
8970 | if test "$no_cache" != 1; then | |
8971 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp | |
8972 | fi | |
8973 | ||
8974 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
8975 | echo "$as_me:$LINENO: result: yes" >&5 | |
8976 | echo "${ECHO_T}yes" >&6 | |
8977 | else | |
8978 | echo "$as_me:$LINENO: result: no" >&5 | |
8979 | echo "${ECHO_T}no" >&6 | |
8980 | fi | |
8981 | ||
8982 | ||
8983 | enablestring= | |
8984 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5 | |
8985 | echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6 | |
8986 | no_cache=0 | |
8987 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
8988 | if test "${enable_fontdlg+set}" = set; then | |
8989 | enableval="$enable_fontdlg" | |
8990 | ||
8991 | if test "$enableval" = yes; then | |
8992 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
8993 | else | |
8994 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
8995 | fi | |
8996 | ||
8997 | else | |
8998 | ||
8999 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
9000 | if test "x$LINE" != x ; then | |
9001 | eval "DEFAULT_$LINE" | |
9002 | else | |
9003 | no_cache=1 | |
9004 | fi | |
9005 | ||
9006 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
9007 | ||
9008 | fi; | |
9009 | ||
9010 | eval "$ac_cv_use_fontdlg" | |
9011 | if test "$no_cache" != 1; then | |
9012 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
9013 | fi | |
9014 | ||
9015 | if test "$wxUSE_FONTDLG" = yes; then | |
9016 | echo "$as_me:$LINENO: result: yes" >&5 | |
9017 | echo "${ECHO_T}yes" >&6 | |
9018 | else | |
9019 | echo "$as_me:$LINENO: result: no" >&5 | |
9020 | echo "${ECHO_T}no" >&6 | |
9021 | fi | |
9022 | ||
9023 | ||
9024 | enablestring= | |
9025 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5 | |
9026 | echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6 | |
9027 | no_cache=0 | |
9028 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
9029 | if test "${enable_dirdlg+set}" = set; then | |
9030 | enableval="$enable_dirdlg" | |
9031 | ||
9032 | if test "$enableval" = yes; then | |
9033 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
9034 | else | |
9035 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
9036 | fi | |
9037 | ||
9038 | else | |
9039 | ||
9040 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
9041 | if test "x$LINE" != x ; then | |
9042 | eval "DEFAULT_$LINE" | |
9043 | else | |
9044 | no_cache=1 | |
9045 | fi | |
9046 | ||
9047 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
9048 | ||
9049 | fi; | |
9050 | ||
9051 | eval "$ac_cv_use_dirdlg" | |
9052 | if test "$no_cache" != 1; then | |
9053 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp | |
9054 | fi | |
9055 | ||
9056 | if test "$wxUSE_DIRDLG" = yes; then | |
9057 | echo "$as_me:$LINENO: result: yes" >&5 | |
9058 | echo "${ECHO_T}yes" >&6 | |
9059 | else | |
9060 | echo "$as_me:$LINENO: result: no" >&5 | |
9061 | echo "${ECHO_T}no" >&6 | |
9062 | fi | |
9063 | ||
9064 | ||
9065 | enablestring= | |
9066 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5 | |
9067 | echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6 | |
9068 | no_cache=0 | |
9069 | # Check whether --enable-msgdlg or --disable-msgdlg was given. | |
9070 | if test "${enable_msgdlg+set}" = set; then | |
9071 | enableval="$enable_msgdlg" | |
9072 | ||
9073 | if test "$enableval" = yes; then | |
9074 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' | |
9075 | else | |
9076 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' | |
9077 | fi | |
9078 | ||
9079 | else | |
9080 | ||
9081 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` | |
9082 | if test "x$LINE" != x ; then | |
9083 | eval "DEFAULT_$LINE" | |
9084 | else | |
9085 | no_cache=1 | |
9086 | fi | |
9087 | ||
9088 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG | |
9089 | ||
9090 | fi; | |
9091 | ||
9092 | eval "$ac_cv_use_msgdlg" | |
9093 | if test "$no_cache" != 1; then | |
9094 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp | |
9095 | fi | |
9096 | ||
9097 | if test "$wxUSE_MSGDLG" = yes; then | |
9098 | echo "$as_me:$LINENO: result: yes" >&5 | |
9099 | echo "${ECHO_T}yes" >&6 | |
9100 | else | |
9101 | echo "$as_me:$LINENO: result: no" >&5 | |
9102 | echo "${ECHO_T}no" >&6 | |
9103 | fi | |
9104 | ||
9105 | ||
9106 | enablestring= | |
9107 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5 | |
9108 | echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6 | |
9109 | no_cache=0 | |
9110 | # Check whether --enable-numberdlg or --disable-numberdlg was given. | |
9111 | if test "${enable_numberdlg+set}" = set; then | |
9112 | enableval="$enable_numberdlg" | |
9113 | ||
9114 | if test "$enableval" = yes; then | |
9115 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' | |
9116 | else | |
9117 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' | |
9118 | fi | |
9119 | ||
9120 | else | |
9121 | ||
9122 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` | |
9123 | if test "x$LINE" != x ; then | |
9124 | eval "DEFAULT_$LINE" | |
9125 | else | |
9126 | no_cache=1 | |
9127 | fi | |
9128 | ||
9129 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG | |
9130 | ||
9131 | fi; | |
9132 | ||
9133 | eval "$ac_cv_use_numberdlg" | |
9134 | if test "$no_cache" != 1; then | |
9135 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp | |
9136 | fi | |
9137 | ||
9138 | if test "$wxUSE_NUMBERDLG" = yes; then | |
9139 | echo "$as_me:$LINENO: result: yes" >&5 | |
9140 | echo "${ECHO_T}yes" >&6 | |
9141 | else | |
9142 | echo "$as_me:$LINENO: result: no" >&5 | |
9143 | echo "${ECHO_T}no" >&6 | |
9144 | fi | |
9145 | ||
9146 | ||
9147 | enablestring= | |
9148 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5 | |
9149 | echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6 | |
9150 | no_cache=0 | |
9151 | # Check whether --enable-splash or --disable-splash was given. | |
9152 | if test "${enable_splash+set}" = set; then | |
9153 | enableval="$enable_splash" | |
9154 | ||
9155 | if test "$enableval" = yes; then | |
9156 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
9157 | else | |
9158 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
9159 | fi | |
9160 | ||
9161 | else | |
9162 | ||
9163 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
9164 | if test "x$LINE" != x ; then | |
9165 | eval "DEFAULT_$LINE" | |
9166 | else | |
9167 | no_cache=1 | |
9168 | fi | |
9169 | ||
9170 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
9171 | ||
9172 | fi; | |
9173 | ||
9174 | eval "$ac_cv_use_splash" | |
9175 | if test "$no_cache" != 1; then | |
9176 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
9177 | fi | |
9178 | ||
9179 | if test "$wxUSE_SPLASH" = yes; then | |
9180 | echo "$as_me:$LINENO: result: yes" >&5 | |
9181 | echo "${ECHO_T}yes" >&6 | |
9182 | else | |
9183 | echo "$as_me:$LINENO: result: no" >&5 | |
9184 | echo "${ECHO_T}no" >&6 | |
9185 | fi | |
9186 | ||
9187 | ||
9188 | enablestring= | |
9189 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5 | |
9190 | echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6 | |
9191 | no_cache=0 | |
9192 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
9193 | if test "${enable_textdlg+set}" = set; then | |
9194 | enableval="$enable_textdlg" | |
9195 | ||
9196 | if test "$enableval" = yes; then | |
9197 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
9198 | else | |
9199 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
9200 | fi | |
9201 | ||
9202 | else | |
9203 | ||
9204 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` | |
9205 | if test "x$LINE" != x ; then | |
9206 | eval "DEFAULT_$LINE" | |
9207 | else | |
9208 | no_cache=1 | |
9209 | fi | |
9210 | ||
9211 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
9212 | ||
9213 | fi; | |
9214 | ||
9215 | eval "$ac_cv_use_textdlg" | |
9216 | if test "$no_cache" != 1; then | |
9217 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
9218 | fi | |
9219 | ||
9220 | if test "$wxUSE_TEXTDLG" = yes; then | |
9221 | echo "$as_me:$LINENO: result: yes" >&5 | |
9222 | echo "${ECHO_T}yes" >&6 | |
9223 | else | |
9224 | echo "$as_me:$LINENO: result: no" >&5 | |
9225 | echo "${ECHO_T}no" >&6 | |
9226 | fi | |
9227 | ||
9228 | ||
9229 | enablestring= | |
9230 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5 | |
9231 | echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6 | |
9232 | no_cache=0 | |
9233 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
9234 | if test "${enable_tipdlg+set}" = set; then | |
9235 | enableval="$enable_tipdlg" | |
9236 | ||
9237 | if test "$enableval" = yes; then | |
9238 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
9239 | else | |
9240 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
9241 | fi | |
9242 | ||
9243 | else | |
9244 | ||
9245 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` | |
9246 | if test "x$LINE" != x ; then | |
9247 | eval "DEFAULT_$LINE" | |
9248 | else | |
9249 | no_cache=1 | |
9250 | fi | |
9251 | ||
9252 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
9253 | ||
9254 | fi; | |
9255 | ||
9256 | eval "$ac_cv_use_tipdlg" | |
9257 | if test "$no_cache" != 1; then | |
9258 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
9259 | fi | |
9260 | ||
9261 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
9262 | echo "$as_me:$LINENO: result: yes" >&5 | |
9263 | echo "${ECHO_T}yes" >&6 | |
9264 | else | |
9265 | echo "$as_me:$LINENO: result: no" >&5 | |
9266 | echo "${ECHO_T}no" >&6 | |
9267 | fi | |
9268 | ||
9269 | ||
9270 | enablestring= | |
9271 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5 | |
9272 | echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6 | |
9273 | no_cache=0 | |
9274 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
9275 | if test "${enable_progressdlg+set}" = set; then | |
9276 | enableval="$enable_progressdlg" | |
9277 | ||
9278 | if test "$enableval" = yes; then | |
9279 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
9280 | else | |
9281 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
9282 | fi | |
9283 | ||
9284 | else | |
9285 | ||
9286 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` | |
9287 | if test "x$LINE" != x ; then | |
9288 | eval "DEFAULT_$LINE" | |
9289 | else | |
9290 | no_cache=1 | |
9291 | fi | |
9292 | ||
9293 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
9294 | ||
9295 | fi; | |
9296 | ||
9297 | eval "$ac_cv_use_progressdlg" | |
9298 | if test "$no_cache" != 1; then | |
9299 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
9300 | fi | |
9301 | ||
9302 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
9303 | echo "$as_me:$LINENO: result: yes" >&5 | |
9304 | echo "${ECHO_T}yes" >&6 | |
9305 | else | |
9306 | echo "$as_me:$LINENO: result: no" >&5 | |
9307 | echo "${ECHO_T}no" >&6 | |
9308 | fi | |
9309 | ||
9310 | ||
9311 | enablestring= | |
9312 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5 | |
9313 | echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6 | |
9314 | no_cache=0 | |
9315 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
9316 | if test "${enable_wizarddlg+set}" = set; then | |
9317 | enableval="$enable_wizarddlg" | |
9318 | ||
9319 | if test "$enableval" = yes; then | |
9320 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
9321 | else | |
9322 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
9323 | fi | |
9324 | ||
9325 | else | |
9326 | ||
9327 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
9328 | if test "x$LINE" != x ; then | |
9329 | eval "DEFAULT_$LINE" | |
9330 | else | |
9331 | no_cache=1 | |
9332 | fi | |
9333 | ||
9334 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
9335 | ||
9336 | fi; | |
9337 | ||
9338 | eval "$ac_cv_use_wizarddlg" | |
9339 | if test "$no_cache" != 1; then | |
9340 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
9341 | fi | |
9342 | ||
9343 | if test "$wxUSE_WIZARDDLG" = yes; then | |
9344 | echo "$as_me:$LINENO: result: yes" >&5 | |
9345 | echo "${ECHO_T}yes" >&6 | |
9346 | else | |
9347 | echo "$as_me:$LINENO: result: no" >&5 | |
9348 | echo "${ECHO_T}no" >&6 | |
9349 | fi | |
9350 | ||
9351 | ||
9352 | ||
9353 | ||
9354 | enablestring= | |
9355 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5 | |
9356 | echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6 | |
9357 | no_cache=0 | |
9358 | # Check whether --enable-menus or --disable-menus was given. | |
9359 | if test "${enable_menus+set}" = set; then | |
9360 | enableval="$enable_menus" | |
9361 | ||
9362 | if test "$enableval" = yes; then | |
9363 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
9364 | else | |
9365 | ac_cv_use_menus='wxUSE_MENUS=no' | |
9366 | fi | |
9367 | ||
9368 | else | |
9369 | ||
9370 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
9371 | if test "x$LINE" != x ; then | |
9372 | eval "DEFAULT_$LINE" | |
9373 | else | |
9374 | no_cache=1 | |
9375 | fi | |
9376 | ||
9377 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
9378 | ||
9379 | fi; | |
9380 | ||
9381 | eval "$ac_cv_use_menus" | |
9382 | if test "$no_cache" != 1; then | |
9383 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
9384 | fi | |
9385 | ||
9386 | if test "$wxUSE_MENUS" = yes; then | |
9387 | echo "$as_me:$LINENO: result: yes" >&5 | |
9388 | echo "${ECHO_T}yes" >&6 | |
9389 | else | |
9390 | echo "$as_me:$LINENO: result: no" >&5 | |
9391 | echo "${ECHO_T}no" >&6 | |
9392 | fi | |
9393 | ||
9394 | ||
9395 | enablestring= | |
9396 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5 | |
9397 | echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6 | |
9398 | no_cache=0 | |
9399 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
9400 | if test "${enable_miniframe+set}" = set; then | |
9401 | enableval="$enable_miniframe" | |
9402 | ||
9403 | if test "$enableval" = yes; then | |
9404 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
9405 | else | |
9406 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
9407 | fi | |
9408 | ||
9409 | else | |
9410 | ||
9411 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` | |
9412 | if test "x$LINE" != x ; then | |
9413 | eval "DEFAULT_$LINE" | |
9414 | else | |
9415 | no_cache=1 | |
9416 | fi | |
9417 | ||
9418 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
9419 | ||
9420 | fi; | |
9421 | ||
9422 | eval "$ac_cv_use_miniframe" | |
9423 | if test "$no_cache" != 1; then | |
9424 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
9425 | fi | |
9426 | ||
9427 | if test "$wxUSE_MINIFRAME" = yes; then | |
9428 | echo "$as_me:$LINENO: result: yes" >&5 | |
9429 | echo "${ECHO_T}yes" >&6 | |
9430 | else | |
9431 | echo "$as_me:$LINENO: result: no" >&5 | |
9432 | echo "${ECHO_T}no" >&6 | |
9433 | fi | |
9434 | ||
9435 | ||
9436 | enablestring= | |
9437 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5 | |
9438 | echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6 | |
9439 | no_cache=0 | |
9440 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
9441 | if test "${enable_tooltips+set}" = set; then | |
9442 | enableval="$enable_tooltips" | |
9443 | ||
9444 | if test "$enableval" = yes; then | |
9445 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
9446 | else | |
9447 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
9448 | fi | |
9449 | ||
9450 | else | |
9451 | ||
9452 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` | |
9453 | if test "x$LINE" != x ; then | |
9454 | eval "DEFAULT_$LINE" | |
9455 | else | |
9456 | no_cache=1 | |
9457 | fi | |
9458 | ||
9459 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
9460 | ||
9461 | fi; | |
9462 | ||
9463 | eval "$ac_cv_use_tooltips" | |
9464 | if test "$no_cache" != 1; then | |
9465 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
9466 | fi | |
9467 | ||
9468 | if test "$wxUSE_TOOLTIPS" = yes; then | |
9469 | echo "$as_me:$LINENO: result: yes" >&5 | |
9470 | echo "${ECHO_T}yes" >&6 | |
9471 | else | |
9472 | echo "$as_me:$LINENO: result: no" >&5 | |
9473 | echo "${ECHO_T}no" >&6 | |
9474 | fi | |
9475 | ||
9476 | ||
9477 | enablestring= | |
9478 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5 | |
9479 | echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6 | |
9480 | no_cache=0 | |
9481 | # Check whether --enable-splines or --disable-splines was given. | |
9482 | if test "${enable_splines+set}" = set; then | |
9483 | enableval="$enable_splines" | |
9484 | ||
9485 | if test "$enableval" = yes; then | |
9486 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
9487 | else | |
9488 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
9489 | fi | |
9490 | ||
9491 | else | |
9492 | ||
9493 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` | |
9494 | if test "x$LINE" != x ; then | |
9495 | eval "DEFAULT_$LINE" | |
9496 | else | |
9497 | no_cache=1 | |
9498 | fi | |
9499 | ||
9500 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
9501 | ||
9502 | fi; | |
9503 | ||
9504 | eval "$ac_cv_use_splines" | |
9505 | if test "$no_cache" != 1; then | |
9506 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
9507 | fi | |
9508 | ||
9509 | if test "$wxUSE_SPLINES" = yes; then | |
9510 | echo "$as_me:$LINENO: result: yes" >&5 | |
9511 | echo "${ECHO_T}yes" >&6 | |
9512 | else | |
9513 | echo "$as_me:$LINENO: result: no" >&5 | |
9514 | echo "${ECHO_T}no" >&6 | |
9515 | fi | |
9516 | ||
9517 | ||
9518 | enablestring= | |
9519 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5 | |
9520 | echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6 | |
9521 | no_cache=0 | |
9522 | # Check whether --enable-validators or --disable-validators was given. | |
9523 | if test "${enable_validators+set}" = set; then | |
9524 | enableval="$enable_validators" | |
9525 | ||
9526 | if test "$enableval" = yes; then | |
9527 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
9528 | else | |
9529 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
9530 | fi | |
9531 | ||
9532 | else | |
9533 | ||
9534 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` | |
9535 | if test "x$LINE" != x ; then | |
9536 | eval "DEFAULT_$LINE" | |
9537 | else | |
9538 | no_cache=1 | |
9539 | fi | |
9540 | ||
9541 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
9542 | ||
9543 | fi; | |
9544 | ||
9545 | eval "$ac_cv_use_validators" | |
9546 | if test "$no_cache" != 1; then | |
9547 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
9548 | fi | |
9549 | ||
9550 | if test "$wxUSE_VALIDATORS" = yes; then | |
9551 | echo "$as_me:$LINENO: result: yes" >&5 | |
9552 | echo "${ECHO_T}yes" >&6 | |
9553 | else | |
9554 | echo "$as_me:$LINENO: result: no" >&5 | |
9555 | echo "${ECHO_T}no" >&6 | |
9556 | fi | |
9557 | ||
9558 | ||
9559 | enablestring= | |
9560 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5 | |
9561 | echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6 | |
9562 | no_cache=0 | |
9563 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
9564 | if test "${enable_busyinfo+set}" = set; then | |
9565 | enableval="$enable_busyinfo" | |
9566 | ||
9567 | if test "$enableval" = yes; then | |
9568 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
9569 | else | |
9570 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
9571 | fi | |
9572 | ||
9573 | else | |
9574 | ||
9575 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` | |
9576 | if test "x$LINE" != x ; then | |
9577 | eval "DEFAULT_$LINE" | |
9578 | else | |
9579 | no_cache=1 | |
9580 | fi | |
9581 | ||
9582 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
9583 | ||
9584 | fi; | |
9585 | ||
9586 | eval "$ac_cv_use_busyinfo" | |
9587 | if test "$no_cache" != 1; then | |
9588 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
9589 | fi | |
9590 | ||
9591 | if test "$wxUSE_BUSYINFO" = yes; then | |
9592 | echo "$as_me:$LINENO: result: yes" >&5 | |
9593 | echo "${ECHO_T}yes" >&6 | |
9594 | else | |
9595 | echo "$as_me:$LINENO: result: no" >&5 | |
9596 | echo "${ECHO_T}no" >&6 | |
9597 | fi | |
9598 | ||
9599 | ||
9600 | enablestring= | |
9601 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5 | |
9602 | echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6 | |
9603 | no_cache=0 | |
9604 | # Check whether --enable-joystick or --disable-joystick was given. | |
9605 | if test "${enable_joystick+set}" = set; then | |
9606 | enableval="$enable_joystick" | |
9607 | ||
9608 | if test "$enableval" = yes; then | |
9609 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
9610 | else | |
9611 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
9612 | fi | |
9613 | ||
9614 | else | |
9615 | ||
9616 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` | |
9617 | if test "x$LINE" != x ; then | |
9618 | eval "DEFAULT_$LINE" | |
9619 | else | |
9620 | no_cache=1 | |
9621 | fi | |
9622 | ||
9623 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
9624 | ||
9625 | fi; | |
9626 | ||
9627 | eval "$ac_cv_use_joystick" | |
9628 | if test "$no_cache" != 1; then | |
9629 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
9630 | fi | |
9631 | ||
9632 | if test "$wxUSE_JOYSTICK" = yes; then | |
9633 | echo "$as_me:$LINENO: result: yes" >&5 | |
9634 | echo "${ECHO_T}yes" >&6 | |
9635 | else | |
9636 | echo "$as_me:$LINENO: result: no" >&5 | |
9637 | echo "${ECHO_T}no" >&6 | |
9638 | fi | |
9639 | ||
9640 | ||
9641 | enablestring= | |
9642 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
9643 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
9644 | no_cache=0 | |
9645 | # Check whether --enable-metafile or --disable-metafile was given. | |
9646 | if test "${enable_metafile+set}" = set; then | |
9647 | enableval="$enable_metafile" | |
9648 | ||
9649 | if test "$enableval" = yes; then | |
9650 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
9651 | else | |
9652 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
9653 | fi | |
9654 | ||
9655 | else | |
9656 | ||
9657 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
9658 | if test "x$LINE" != x ; then | |
9659 | eval "DEFAULT_$LINE" | |
9660 | else | |
9661 | no_cache=1 | |
9662 | fi | |
9663 | ||
9664 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
9665 | ||
9666 | fi; | |
9667 | ||
9668 | eval "$ac_cv_use_metafile" | |
9669 | if test "$no_cache" != 1; then | |
9670 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
9671 | fi | |
9672 | ||
9673 | if test "$wxUSE_METAFILE" = yes; then | |
9674 | echo "$as_me:$LINENO: result: yes" >&5 | |
9675 | echo "${ECHO_T}yes" >&6 | |
9676 | else | |
9677 | echo "$as_me:$LINENO: result: no" >&5 | |
9678 | echo "${ECHO_T}no" >&6 | |
9679 | fi | |
9680 | ||
9681 | ||
9682 | enablestring= | |
9683 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5 | |
9684 | echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6 | |
9685 | no_cache=0 | |
9686 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
9687 | if test "${enable_dragimage+set}" = set; then | |
9688 | enableval="$enable_dragimage" | |
9689 | ||
9690 | if test "$enableval" = yes; then | |
9691 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
9692 | else | |
9693 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
9694 | fi | |
9695 | ||
9696 | else | |
9697 | ||
9698 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
9699 | if test "x$LINE" != x ; then | |
9700 | eval "DEFAULT_$LINE" | |
9701 | else | |
9702 | no_cache=1 | |
9703 | fi | |
9704 | ||
9705 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
9706 | ||
9707 | fi; | |
9708 | ||
9709 | eval "$ac_cv_use_dragimage" | |
9710 | if test "$no_cache" != 1; then | |
9711 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
9712 | fi | |
9713 | ||
9714 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
9715 | echo "$as_me:$LINENO: result: yes" >&5 | |
9716 | echo "${ECHO_T}yes" >&6 | |
9717 | else | |
9718 | echo "$as_me:$LINENO: result: no" >&5 | |
9719 | echo "${ECHO_T}no" >&6 | |
9720 | fi | |
9721 | ||
9722 | ||
9723 | enablestring= | |
9724 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5 | |
9725 | echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6 | |
9726 | no_cache=0 | |
9727 | # Check whether --enable-accessibility or --disable-accessibility was given. | |
9728 | if test "${enable_accessibility+set}" = set; then | |
9729 | enableval="$enable_accessibility" | |
9730 | ||
9731 | if test "$enableval" = yes; then | |
9732 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes' | |
9733 | else | |
9734 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no' | |
9735 | fi | |
9736 | ||
9737 | else | |
9738 | ||
9739 | LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}` | |
9740 | if test "x$LINE" != x ; then | |
9741 | eval "DEFAULT_$LINE" | |
9742 | else | |
9743 | no_cache=1 | |
9744 | fi | |
9745 | ||
9746 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY | |
9747 | ||
9748 | fi; | |
9749 | ||
9750 | eval "$ac_cv_use_accessibility" | |
9751 | if test "$no_cache" != 1; then | |
9752 | echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp | |
9753 | fi | |
9754 | ||
9755 | if test "$wxUSE_ACCESSIBILITY" = yes; then | |
9756 | echo "$as_me:$LINENO: result: yes" >&5 | |
9757 | echo "${ECHO_T}yes" >&6 | |
9758 | else | |
9759 | echo "$as_me:$LINENO: result: no" >&5 | |
9760 | echo "${ECHO_T}no" >&6 | |
9761 | fi | |
9762 | ||
9763 | ||
9764 | ||
9765 | ||
9766 | enablestring= | |
9767 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5 | |
9768 | echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6 | |
9769 | no_cache=0 | |
9770 | # Check whether --enable-palette or --disable-palette was given. | |
9771 | if test "${enable_palette+set}" = set; then | |
9772 | enableval="$enable_palette" | |
9773 | ||
9774 | if test "$enableval" = yes; then | |
9775 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
9776 | else | |
9777 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
9778 | fi | |
9779 | ||
9780 | else | |
9781 | ||
9782 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
9783 | if test "x$LINE" != x ; then | |
9784 | eval "DEFAULT_$LINE" | |
9785 | else | |
9786 | no_cache=1 | |
9787 | fi | |
9788 | ||
9789 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
9790 | ||
9791 | fi; | |
9792 | ||
9793 | eval "$ac_cv_use_palette" | |
9794 | if test "$no_cache" != 1; then | |
9795 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
9796 | fi | |
9797 | ||
9798 | if test "$wxUSE_PALETTE" = yes; then | |
9799 | echo "$as_me:$LINENO: result: yes" >&5 | |
9800 | echo "${ECHO_T}yes" >&6 | |
9801 | else | |
9802 | echo "$as_me:$LINENO: result: no" >&5 | |
9803 | echo "${ECHO_T}no" >&6 | |
9804 | fi | |
9805 | ||
9806 | ||
9807 | enablestring= | |
9808 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5 | |
9809 | echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6 | |
9810 | no_cache=0 | |
9811 | # Check whether --enable-image or --disable-image was given. | |
9812 | if test "${enable_image+set}" = set; then | |
9813 | enableval="$enable_image" | |
9814 | ||
9815 | if test "$enableval" = yes; then | |
9816 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
9817 | else | |
9818 | ac_cv_use_image='wxUSE_IMAGE=no' | |
9819 | fi | |
9820 | ||
9821 | else | |
9822 | ||
9823 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` | |
9824 | if test "x$LINE" != x ; then | |
9825 | eval "DEFAULT_$LINE" | |
9826 | else | |
9827 | no_cache=1 | |
9828 | fi | |
9829 | ||
9830 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
9831 | ||
9832 | fi; | |
9833 | ||
9834 | eval "$ac_cv_use_image" | |
9835 | if test "$no_cache" != 1; then | |
9836 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
9837 | fi | |
9838 | ||
9839 | if test "$wxUSE_IMAGE" = yes; then | |
9840 | echo "$as_me:$LINENO: result: yes" >&5 | |
9841 | echo "${ECHO_T}yes" >&6 | |
9842 | else | |
9843 | echo "$as_me:$LINENO: result: no" >&5 | |
9844 | echo "${ECHO_T}no" >&6 | |
9845 | fi | |
9846 | ||
9847 | ||
9848 | enablestring= | |
9849 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5 | |
9850 | echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6 | |
9851 | no_cache=0 | |
9852 | # Check whether --enable-gif or --disable-gif was given. | |
9853 | if test "${enable_gif+set}" = set; then | |
9854 | enableval="$enable_gif" | |
9855 | ||
9856 | if test "$enableval" = yes; then | |
9857 | ac_cv_use_gif='wxUSE_GIF=yes' | |
9858 | else | |
9859 | ac_cv_use_gif='wxUSE_GIF=no' | |
9860 | fi | |
9861 | ||
9862 | else | |
9863 | ||
9864 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` | |
9865 | if test "x$LINE" != x ; then | |
9866 | eval "DEFAULT_$LINE" | |
9867 | else | |
9868 | no_cache=1 | |
9869 | fi | |
9870 | ||
9871 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
9872 | ||
9873 | fi; | |
9874 | ||
9875 | eval "$ac_cv_use_gif" | |
9876 | if test "$no_cache" != 1; then | |
9877 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
9878 | fi | |
9879 | ||
9880 | if test "$wxUSE_GIF" = yes; then | |
9881 | echo "$as_me:$LINENO: result: yes" >&5 | |
9882 | echo "${ECHO_T}yes" >&6 | |
9883 | else | |
9884 | echo "$as_me:$LINENO: result: no" >&5 | |
9885 | echo "${ECHO_T}no" >&6 | |
9886 | fi | |
9887 | ||
9888 | ||
9889 | enablestring= | |
9890 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5 | |
9891 | echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6 | |
9892 | no_cache=0 | |
9893 | # Check whether --enable-pcx or --disable-pcx was given. | |
9894 | if test "${enable_pcx+set}" = set; then | |
9895 | enableval="$enable_pcx" | |
9896 | ||
9897 | if test "$enableval" = yes; then | |
9898 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
9899 | else | |
9900 | ac_cv_use_pcx='wxUSE_PCX=no' | |
9901 | fi | |
9902 | ||
9903 | else | |
9904 | ||
9905 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` | |
9906 | if test "x$LINE" != x ; then | |
9907 | eval "DEFAULT_$LINE" | |
9908 | else | |
9909 | no_cache=1 | |
9910 | fi | |
9911 | ||
9912 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
9913 | ||
9914 | fi; | |
9915 | ||
9916 | eval "$ac_cv_use_pcx" | |
9917 | if test "$no_cache" != 1; then | |
9918 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
9919 | fi | |
9920 | ||
9921 | if test "$wxUSE_PCX" = yes; then | |
9922 | echo "$as_me:$LINENO: result: yes" >&5 | |
9923 | echo "${ECHO_T}yes" >&6 | |
9924 | else | |
9925 | echo "$as_me:$LINENO: result: no" >&5 | |
9926 | echo "${ECHO_T}no" >&6 | |
9927 | fi | |
9928 | ||
9929 | ||
9930 | enablestring= | |
9931 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5 | |
9932 | echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6 | |
9933 | no_cache=0 | |
9934 | # Check whether --enable-iff or --disable-iff was given. | |
9935 | if test "${enable_iff+set}" = set; then | |
9936 | enableval="$enable_iff" | |
9937 | ||
9938 | if test "$enableval" = yes; then | |
9939 | ac_cv_use_iff='wxUSE_IFF=yes' | |
9940 | else | |
9941 | ac_cv_use_iff='wxUSE_IFF=no' | |
9942 | fi | |
9943 | ||
9944 | else | |
9945 | ||
9946 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` | |
9947 | if test "x$LINE" != x ; then | |
9948 | eval "DEFAULT_$LINE" | |
9949 | else | |
9950 | no_cache=1 | |
9951 | fi | |
9952 | ||
9953 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
9954 | ||
9955 | fi; | |
9956 | ||
9957 | eval "$ac_cv_use_iff" | |
9958 | if test "$no_cache" != 1; then | |
9959 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
9960 | fi | |
9961 | ||
9962 | if test "$wxUSE_IFF" = yes; then | |
9963 | echo "$as_me:$LINENO: result: yes" >&5 | |
9964 | echo "${ECHO_T}yes" >&6 | |
9965 | else | |
9966 | echo "$as_me:$LINENO: result: no" >&5 | |
9967 | echo "${ECHO_T}no" >&6 | |
9968 | fi | |
9969 | ||
9970 | ||
9971 | enablestring= | |
9972 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5 | |
9973 | echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6 | |
9974 | no_cache=0 | |
9975 | # Check whether --enable-pnm or --disable-pnm was given. | |
9976 | if test "${enable_pnm+set}" = set; then | |
9977 | enableval="$enable_pnm" | |
9978 | ||
9979 | if test "$enableval" = yes; then | |
9980 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
9981 | else | |
9982 | ac_cv_use_pnm='wxUSE_PNM=no' | |
9983 | fi | |
9984 | ||
9985 | else | |
9986 | ||
9987 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` | |
9988 | if test "x$LINE" != x ; then | |
9989 | eval "DEFAULT_$LINE" | |
9990 | else | |
9991 | no_cache=1 | |
9992 | fi | |
9993 | ||
9994 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
9995 | ||
9996 | fi; | |
9997 | ||
9998 | eval "$ac_cv_use_pnm" | |
9999 | if test "$no_cache" != 1; then | |
10000 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
10001 | fi | |
10002 | ||
10003 | if test "$wxUSE_PNM" = yes; then | |
10004 | echo "$as_me:$LINENO: result: yes" >&5 | |
10005 | echo "${ECHO_T}yes" >&6 | |
10006 | else | |
10007 | echo "$as_me:$LINENO: result: no" >&5 | |
10008 | echo "${ECHO_T}no" >&6 | |
10009 | fi | |
10010 | ||
10011 | ||
10012 | enablestring= | |
10013 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5 | |
10014 | echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6 | |
10015 | no_cache=0 | |
10016 | # Check whether --enable-xpm or --disable-xpm was given. | |
10017 | if test "${enable_xpm+set}" = set; then | |
10018 | enableval="$enable_xpm" | |
10019 | ||
10020 | if test "$enableval" = yes; then | |
10021 | ac_cv_use_xpm='wxUSE_XPM=yes' | |
10022 | else | |
10023 | ac_cv_use_xpm='wxUSE_XPM=no' | |
10024 | fi | |
10025 | ||
10026 | else | |
10027 | ||
10028 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` | |
10029 | if test "x$LINE" != x ; then | |
10030 | eval "DEFAULT_$LINE" | |
10031 | else | |
10032 | no_cache=1 | |
10033 | fi | |
10034 | ||
10035 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM | |
10036 | ||
10037 | fi; | |
10038 | ||
10039 | eval "$ac_cv_use_xpm" | |
10040 | if test "$no_cache" != 1; then | |
10041 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp | |
10042 | fi | |
10043 | ||
10044 | if test "$wxUSE_XPM" = yes; then | |
10045 | echo "$as_me:$LINENO: result: yes" >&5 | |
10046 | echo "${ECHO_T}yes" >&6 | |
10047 | else | |
10048 | echo "$as_me:$LINENO: result: no" >&5 | |
10049 | echo "${ECHO_T}no" >&6 | |
10050 | fi | |
10051 | ||
10052 | ||
10053 | enablestring= | |
10054 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5 | |
10055 | echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6 | |
10056 | no_cache=0 | |
10057 | # Check whether --enable-ico_cur or --disable-ico_cur was given. | |
10058 | if test "${enable_ico_cur+set}" = set; then | |
10059 | enableval="$enable_ico_cur" | |
10060 | ||
10061 | if test "$enableval" = yes; then | |
10062 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' | |
10063 | else | |
10064 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' | |
10065 | fi | |
10066 | ||
10067 | else | |
10068 | ||
10069 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` | |
10070 | if test "x$LINE" != x ; then | |
10071 | eval "DEFAULT_$LINE" | |
10072 | else | |
10073 | no_cache=1 | |
10074 | fi | |
10075 | ||
10076 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR | |
10077 | ||
10078 | fi; | |
10079 | ||
10080 | eval "$ac_cv_use_ico_cur" | |
10081 | if test "$no_cache" != 1; then | |
10082 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp | |
10083 | fi | |
10084 | ||
10085 | if test "$wxUSE_ICO_CUR" = yes; then | |
10086 | echo "$as_me:$LINENO: result: yes" >&5 | |
10087 | echo "${ECHO_T}yes" >&6 | |
10088 | else | |
10089 | echo "$as_me:$LINENO: result: no" >&5 | |
10090 | echo "${ECHO_T}no" >&6 | |
10091 | fi | |
10092 | ||
10093 | ||
10094 | fi | |
10095 | ||
10096 | ||
10097 | ||
ceec2216 RL |
10098 | # Check whether --with-flavour or --without-flavour was given. |
10099 | if test "${with_flavour+set}" = set; then | |
10100 | withval="$with_flavour" | |
10101 | WX_FLAVOUR="$withval" | |
10102 | fi; | |
10103 | ||
10104 | ||
10105 | ||
a848cd7e SC |
10106 | enablestring= |
10107 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5 | |
10108 | echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6 | |
10109 | no_cache=0 | |
10110 | # Check whether --enable-official_build or --disable-official_build was given. | |
10111 | if test "${enable_official_build+set}" = set; then | |
10112 | enableval="$enable_official_build" | |
10113 | ||
10114 | if test "$enableval" = yes; then | |
10115 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes' | |
10116 | else | |
10117 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no' | |
10118 | fi | |
10119 | ||
10120 | else | |
10121 | ||
10122 | LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}` | |
10123 | if test "x$LINE" != x ; then | |
10124 | eval "DEFAULT_$LINE" | |
10125 | else | |
10126 | no_cache=1 | |
10127 | fi | |
10128 | ||
10129 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD | |
10130 | ||
10131 | fi; | |
10132 | ||
10133 | eval "$ac_cv_use_official_build" | |
10134 | if test "$no_cache" != 1; then | |
10135 | echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp | |
10136 | fi | |
10137 | ||
10138 | if test "$wxUSE_OFFICIAL_BUILD" = yes; then | |
10139 | echo "$as_me:$LINENO: result: yes" >&5 | |
10140 | echo "${ECHO_T}yes" >&6 | |
10141 | else | |
10142 | echo "$as_me:$LINENO: result: no" >&5 | |
10143 | echo "${ECHO_T}no" >&6 | |
10144 | fi | |
10145 | ||
10146 | # Check whether --enable-vendor or --disable-vendor was given. | |
10147 | if test "${enable_vendor+set}" = set; then | |
10148 | enableval="$enable_vendor" | |
10149 | VENDOR="$enableval" | |
10150 | fi; | |
10151 | if test "x$VENDOR" = "x"; then | |
10152 | VENDOR="custom" | |
10153 | fi | |
10154 | ||
a848cd7e SC |
10155 | |
10156 | ||
10157 | ||
10158 | echo "saving argument cache $wx_arg_cache_file" | |
10159 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
10160 | ||
10161 | ||
10162 | ||
10163 | echo "$as_me:$LINENO: checking for toolkit" >&5 | |
10164 | echo $ECHO_N "checking for toolkit... $ECHO_C" >&6 | |
10165 | ||
10166 | # In Wine, we need to default to MSW, not GTK or MOTIF | |
10167 | if test "$wxUSE_WINE" = "yes"; then | |
10168 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
10169 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
10170 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
10171 | wxUSE_SHARED=no | |
10172 | fi | |
10173 | ||
10174 | if test "$wxUSE_GUI" = "yes"; then | |
10175 | ||
10176 | if test "$USE_BEOS" = 1; then | |
10177 | { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5 | |
10178 | echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;} | |
10179 | { (exit 1); exit 1; }; } | |
10180 | fi | |
10181 | ||
10182 | if test "$TOOLKIT_GIVEN" = 1; then | |
10183 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10184 | var=wxUSE_$toolkit | |
10185 | eval "value=\$${var}" | |
10186 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
10187 | done | |
10188 | else | |
10189 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10190 | if test "$has_toolkit_in_cache" != 1; then | |
10191 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
10192 | else | |
10193 | var=DEFAULT_wxUSE_$toolkit | |
10194 | fi | |
10195 | eval "wxUSE_$toolkit=\$${var}" | |
10196 | done | |
10197 | fi | |
10198 | ||
10199 | NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \ | |
10200 | + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \ | |
10201 | + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}` | |
10202 | ||
10203 | case "${host}" in | |
10204 | *-pc-os2_emx | *-pc-os2-emx ) | |
10205 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
10206 | esac | |
10207 | ||
10208 | case "$NUM_TOOLKITS" in | |
10209 | 1) | |
10210 | ;; | |
10211 | 0) | |
10212 | { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5 | |
10213 | echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;} | |
10214 | { (exit 1); exit 1; }; } | |
10215 | ;; | |
10216 | *) | |
10217 | { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5 | |
10218 | echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;} | |
10219 | { (exit 1); exit 1; }; } | |
10220 | esac | |
10221 | ||
10222 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10223 | var=wxUSE_$toolkit | |
10224 | eval "value=\$${var}" | |
10225 | if test "x$value" != x; then | |
10226 | cache_var=CACHE_$toolkit | |
10227 | eval "cache=\$${cache_var}" | |
10228 | if test "$cache" = 1; then | |
10229 | echo "$var=$value" >> ${wx_arg_cache_file} | |
10230 | fi | |
10231 | if test "$value" = 1; then | |
10232 | toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"` | |
10233 | echo "$as_me:$LINENO: result: $toolkit_echo" >&5 | |
10234 | echo "${ECHO_T}$toolkit_echo" >&6 | |
10235 | fi | |
10236 | fi | |
10237 | done | |
10238 | else | |
10239 | if test "x$host_alias" != "x"; then | |
10240 | echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5 | |
10241 | echo "${ECHO_T}base ($host_alias hosted) only" >&6 | |
10242 | else | |
10243 | echo "$as_me:$LINENO: result: base only" >&5 | |
10244 | echo "${ECHO_T}base only" >&6 | |
10245 | fi | |
10246 | fi | |
10247 | ||
10248 | wants_win32=0 | |
10249 | doesnt_want_win32=0 | |
10250 | case "${host}" in | |
10251 | *-*-cygwin*) | |
10252 | if test "$wxUSE_MSW" = 1 ; then | |
10253 | wants_win32=1 | |
10254 | else | |
10255 | doesnt_want_win32=1 | |
10256 | fi | |
10257 | ;; | |
10258 | *-*-mingw*) | |
10259 | wants_win32=1 | |
10260 | ;; | |
10261 | esac | |
10262 | ||
10263 | if test "$wxUSE_WINE" = "yes"; then | |
10264 | wants_win32=1 | |
10265 | CC=winegcc | |
10266 | CXX=wineg++ | |
10267 | RESCOMP=wrc | |
10268 | LDFLAGS_GUI="-mwindows" | |
10269 | fi | |
10270 | ||
10271 | if test "$wants_win32" = 1 ; then | |
10272 | USE_UNIX=0 | |
10273 | USE_WIN32=1 | |
10274 | cat >>confdefs.h <<\_ACEOF | |
10275 | #define __WIN32__ 1 | |
10276 | _ACEOF | |
10277 | ||
10278 | cat >>confdefs.h <<\_ACEOF | |
10279 | #define __WIN95__ 1 | |
10280 | _ACEOF | |
10281 | ||
10282 | cat >>confdefs.h <<\_ACEOF | |
10283 | #define __WINDOWS__ 1 | |
10284 | _ACEOF | |
10285 | ||
10286 | cat >>confdefs.h <<\_ACEOF | |
10287 | #define __GNUWIN32__ 1 | |
10288 | _ACEOF | |
10289 | ||
10290 | cat >>confdefs.h <<\_ACEOF | |
10291 | #define STRICT 1 | |
10292 | _ACEOF | |
10293 | ||
10294 | cat >>confdefs.h <<\_ACEOF | |
10295 | #define WINVER 0x0400 | |
10296 | _ACEOF | |
10297 | ||
10298 | fi | |
10299 | if test "$doesnt_want_win32" = 1 ; then | |
10300 | USE_UNIX=1 | |
10301 | USE_WIN32=0 | |
10302 | fi | |
10303 | ||
10304 | if test "$USE_UNIX" = 1 ; then | |
10305 | wxUSE_UNIX=yes | |
10306 | cat >>confdefs.h <<\_ACEOF | |
10307 | #define __UNIX__ 1 | |
10308 | _ACEOF | |
10309 | ||
10310 | fi | |
10311 | ||
10312 | ||
10313 | cat >confcache <<\_ACEOF | |
10314 | # This file is a shell script that caches the results of configure | |
10315 | # tests run on this system so they can be shared between configure | |
10316 | # scripts and configure runs, see configure's option --config-cache. | |
10317 | # It is not useful on other systems. If it contains results you don't | |
10318 | # want to keep, you may remove or edit it. | |
10319 | # | |
10320 | # config.status only pays attention to the cache file if you give it | |
10321 | # the --recheck option to rerun configure. | |
10322 | # | |
10323 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
10324 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
10325 | # following values. | |
10326 | ||
10327 | _ACEOF | |
10328 | ||
10329 | # The following way of writing the cache mishandles newlines in values, | |
10330 | # but we know of no workaround that is simple, portable, and efficient. | |
10331 | # So, don't put newlines in cache variables' values. | |
10332 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
10333 | # and sets the high bit in the cache file unless we assign to the vars. | |
10334 | { | |
10335 | (set) 2>&1 | | |
10336 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
10337 | *ac_space=\ *) | |
10338 | # `set' does not quote correctly, so add quotes (double-quote | |
10339 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
10340 | sed -n \ | |
ac1cb8d3 VS |
10341 | "s/'/'\\\\''/g; |
10342 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
10343 | ;; |
10344 | *) | |
10345 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
10346 | sed -n \ | |
ac1cb8d3 | 10347 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
10348 | ;; |
10349 | esac; | |
10350 | } | | |
10351 | sed ' | |
10352 | t clear | |
10353 | : clear | |
10354 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
10355 | t end | |
10356 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
10357 | : end' >>confcache | |
10358 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
10359 | if test -w $cache_file; then | |
10360 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
10361 | cat confcache >$cache_file | |
10362 | else | |
10363 | echo "not updating unwritable cache $cache_file" | |
10364 | fi | |
10365 | fi | |
10366 | rm -f confcache | |
10367 | ||
10368 | if test "$build" != "$host" ; then | |
10369 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then | |
10370 | CC=$host_alias-gcc | |
10371 | CXX=$host_alias-c++ | |
10372 | AR=$host_alias-ar | |
10373 | RANLIB=$host_alias-ranlib | |
10374 | DLLTOOL=$host_alias-dlltool | |
10375 | RESCOMP=$host_alias-windres | |
a848cd7e SC |
10376 | STRIP=$host_alias-strip |
10377 | else | |
10378 | { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5 | |
10379 | echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;} | |
10380 | { (exit 1); exit 1; }; } | |
10381 | fi | |
10382 | fi | |
10383 | ||
10384 | CFLAGS=${CFLAGS:=} | |
10385 | ac_ext=c | |
10386 | ac_cpp='$CPP $CPPFLAGS' | |
10387 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10388 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10389 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10390 | if test -n "$ac_tool_prefix"; then | |
10391 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
10392 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
10393 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10394 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10395 | if test "${ac_cv_prog_CC+set}" = set; then | |
10396 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10397 | else | |
10398 | if test -n "$CC"; then | |
10399 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10400 | else | |
10401 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10402 | for as_dir in $PATH | |
10403 | do | |
10404 | IFS=$as_save_IFS | |
10405 | test -z "$as_dir" && as_dir=. | |
10406 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10407 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10408 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
10409 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10410 | break 2 | |
10411 | fi | |
10412 | done | |
10413 | done | |
10414 | ||
10415 | fi | |
10416 | fi | |
10417 | CC=$ac_cv_prog_CC | |
10418 | if test -n "$CC"; then | |
10419 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10420 | echo "${ECHO_T}$CC" >&6 | |
10421 | else | |
10422 | echo "$as_me:$LINENO: result: no" >&5 | |
10423 | echo "${ECHO_T}no" >&6 | |
10424 | fi | |
10425 | ||
10426 | fi | |
10427 | if test -z "$ac_cv_prog_CC"; then | |
10428 | ac_ct_CC=$CC | |
10429 | # Extract the first word of "gcc", so it can be a program name with args. | |
10430 | set dummy gcc; ac_word=$2 | |
10431 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10432 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10433 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10434 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10435 | else | |
10436 | if test -n "$ac_ct_CC"; then | |
10437 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10438 | else | |
10439 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10440 | for as_dir in $PATH | |
10441 | do | |
10442 | IFS=$as_save_IFS | |
10443 | test -z "$as_dir" && as_dir=. | |
10444 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10445 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10446 | ac_cv_prog_ac_ct_CC="gcc" | |
10447 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10448 | break 2 | |
10449 | fi | |
10450 | done | |
10451 | done | |
10452 | ||
10453 | fi | |
10454 | fi | |
10455 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10456 | if test -n "$ac_ct_CC"; then | |
10457 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10458 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10459 | else | |
10460 | echo "$as_me:$LINENO: result: no" >&5 | |
10461 | echo "${ECHO_T}no" >&6 | |
10462 | fi | |
10463 | ||
10464 | CC=$ac_ct_CC | |
10465 | else | |
10466 | CC="$ac_cv_prog_CC" | |
10467 | fi | |
10468 | ||
10469 | if test -z "$CC"; then | |
10470 | if test -n "$ac_tool_prefix"; then | |
10471 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
10472 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
10473 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10474 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10475 | if test "${ac_cv_prog_CC+set}" = set; then | |
10476 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10477 | else | |
10478 | if test -n "$CC"; then | |
10479 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10480 | else | |
10481 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10482 | for as_dir in $PATH | |
10483 | do | |
10484 | IFS=$as_save_IFS | |
10485 | test -z "$as_dir" && as_dir=. | |
10486 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10487 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10488 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
10489 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10490 | break 2 | |
10491 | fi | |
10492 | done | |
10493 | done | |
10494 | ||
10495 | fi | |
10496 | fi | |
10497 | CC=$ac_cv_prog_CC | |
10498 | if test -n "$CC"; then | |
10499 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10500 | echo "${ECHO_T}$CC" >&6 | |
10501 | else | |
10502 | echo "$as_me:$LINENO: result: no" >&5 | |
10503 | echo "${ECHO_T}no" >&6 | |
10504 | fi | |
10505 | ||
10506 | fi | |
10507 | if test -z "$ac_cv_prog_CC"; then | |
10508 | ac_ct_CC=$CC | |
10509 | # Extract the first word of "cc", so it can be a program name with args. | |
10510 | set dummy cc; ac_word=$2 | |
10511 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10512 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10513 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10514 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10515 | else | |
10516 | if test -n "$ac_ct_CC"; then | |
10517 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10518 | else | |
10519 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10520 | for as_dir in $PATH | |
10521 | do | |
10522 | IFS=$as_save_IFS | |
10523 | test -z "$as_dir" && as_dir=. | |
10524 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10525 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10526 | ac_cv_prog_ac_ct_CC="cc" | |
10527 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10528 | break 2 | |
10529 | fi | |
10530 | done | |
10531 | done | |
10532 | ||
10533 | fi | |
10534 | fi | |
10535 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10536 | if test -n "$ac_ct_CC"; then | |
10537 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10538 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10539 | else | |
10540 | echo "$as_me:$LINENO: result: no" >&5 | |
10541 | echo "${ECHO_T}no" >&6 | |
10542 | fi | |
10543 | ||
10544 | CC=$ac_ct_CC | |
10545 | else | |
10546 | CC="$ac_cv_prog_CC" | |
10547 | fi | |
10548 | ||
10549 | fi | |
10550 | if test -z "$CC"; then | |
10551 | # Extract the first word of "cc", so it can be a program name with args. | |
10552 | set dummy cc; ac_word=$2 | |
10553 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10554 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10555 | if test "${ac_cv_prog_CC+set}" = set; then | |
10556 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10557 | else | |
10558 | if test -n "$CC"; then | |
10559 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10560 | else | |
10561 | ac_prog_rejected=no | |
10562 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10563 | for as_dir in $PATH | |
10564 | do | |
10565 | IFS=$as_save_IFS | |
10566 | test -z "$as_dir" && as_dir=. | |
10567 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10568 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10569 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
10570 | ac_prog_rejected=yes | |
10571 | continue | |
10572 | fi | |
10573 | ac_cv_prog_CC="cc" | |
10574 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10575 | break 2 | |
10576 | fi | |
10577 | done | |
10578 | done | |
10579 | ||
10580 | if test $ac_prog_rejected = yes; then | |
10581 | # We found a bogon in the path, so make sure we never use it. | |
10582 | set dummy $ac_cv_prog_CC | |
10583 | shift | |
10584 | if test $# != 0; then | |
10585 | # We chose a different compiler from the bogus one. | |
10586 | # However, it has the same basename, so the bogon will be chosen | |
10587 | # first if we set CC to just the basename; use the full file name. | |
10588 | shift | |
10589 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
10590 | fi | |
10591 | fi | |
10592 | fi | |
10593 | fi | |
10594 | CC=$ac_cv_prog_CC | |
10595 | if test -n "$CC"; then | |
10596 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10597 | echo "${ECHO_T}$CC" >&6 | |
10598 | else | |
10599 | echo "$as_me:$LINENO: result: no" >&5 | |
10600 | echo "${ECHO_T}no" >&6 | |
10601 | fi | |
10602 | ||
10603 | fi | |
10604 | if test -z "$CC"; then | |
10605 | if test -n "$ac_tool_prefix"; then | |
10606 | for ac_prog in cl | |
10607 | do | |
10608 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10609 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
10610 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10611 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10612 | if test "${ac_cv_prog_CC+set}" = set; then | |
10613 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10614 | else | |
10615 | if test -n "$CC"; then | |
10616 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10617 | else | |
10618 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10619 | for as_dir in $PATH | |
10620 | do | |
10621 | IFS=$as_save_IFS | |
10622 | test -z "$as_dir" && as_dir=. | |
10623 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10624 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10625 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
10626 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10627 | break 2 | |
10628 | fi | |
10629 | done | |
10630 | done | |
10631 | ||
10632 | fi | |
10633 | fi | |
10634 | CC=$ac_cv_prog_CC | |
10635 | if test -n "$CC"; then | |
10636 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10637 | echo "${ECHO_T}$CC" >&6 | |
10638 | else | |
10639 | echo "$as_me:$LINENO: result: no" >&5 | |
10640 | echo "${ECHO_T}no" >&6 | |
10641 | fi | |
10642 | ||
10643 | test -n "$CC" && break | |
10644 | done | |
10645 | fi | |
10646 | if test -z "$CC"; then | |
10647 | ac_ct_CC=$CC | |
10648 | for ac_prog in cl | |
10649 | do | |
10650 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10651 | set dummy $ac_prog; ac_word=$2 | |
10652 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10653 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10654 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10655 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10656 | else | |
10657 | if test -n "$ac_ct_CC"; then | |
10658 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10659 | else | |
10660 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10661 | for as_dir in $PATH | |
10662 | do | |
10663 | IFS=$as_save_IFS | |
10664 | test -z "$as_dir" && as_dir=. | |
10665 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10666 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10667 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
10668 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10669 | break 2 | |
10670 | fi | |
10671 | done | |
10672 | done | |
10673 | ||
10674 | fi | |
10675 | fi | |
10676 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10677 | if test -n "$ac_ct_CC"; then | |
10678 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10679 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10680 | else | |
10681 | echo "$as_me:$LINENO: result: no" >&5 | |
10682 | echo "${ECHO_T}no" >&6 | |
10683 | fi | |
10684 | ||
10685 | test -n "$ac_ct_CC" && break | |
10686 | done | |
10687 | ||
10688 | CC=$ac_ct_CC | |
10689 | fi | |
10690 | ||
10691 | fi | |
10692 | ||
10693 | ||
10694 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
10695 | See \`config.log' for more details." >&5 | |
10696 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
10697 | See \`config.log' for more details." >&2;} | |
10698 | { (exit 1); exit 1; }; } | |
10699 | ||
10700 | # Provide some information about the compiler. | |
10701 | echo "$as_me:$LINENO:" \ | |
10702 | "checking for C compiler version" >&5 | |
10703 | ac_compiler=`set X $ac_compile; echo $2` | |
10704 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
10705 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
10706 | ac_status=$? | |
10707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10708 | (exit $ac_status); } | |
10709 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
10710 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
10711 | ac_status=$? | |
10712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10713 | (exit $ac_status); } | |
10714 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
10715 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
10716 | ac_status=$? | |
10717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10718 | (exit $ac_status); } | |
10719 | ||
10720 | cat >conftest.$ac_ext <<_ACEOF | |
10721 | /* confdefs.h. */ | |
10722 | _ACEOF | |
10723 | cat confdefs.h >>conftest.$ac_ext | |
10724 | cat >>conftest.$ac_ext <<_ACEOF | |
10725 | /* end confdefs.h. */ | |
10726 | ||
10727 | int | |
10728 | main () | |
10729 | { | |
10730 | ||
10731 | ; | |
10732 | return 0; | |
10733 | } | |
10734 | _ACEOF | |
10735 | ac_clean_files_save=$ac_clean_files | |
10736 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
10737 | # Try to create an executable without -o first, disregard a.out. | |
10738 | # It will help us diagnose broken compilers, and finding out an intuition | |
10739 | # of exeext. | |
ac1cb8d3 VS |
10740 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
10741 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
a848cd7e SC |
10742 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
10743 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
10744 | (eval $ac_link_default) 2>&5 | |
10745 | ac_status=$? | |
10746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10747 | (exit $ac_status); }; then | |
10748 | # Find the output, starting from the most likely. This scheme is | |
10749 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
10750 | # resort. | |
10751 | ||
10752 | # Be careful to initialize this variable, since it used to be cached. | |
10753 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
10754 | ac_cv_exeext= | |
10755 | # b.out is created by i960 compilers. | |
10756 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
10757 | do | |
10758 | test -f "$ac_file" || continue | |
10759 | case $ac_file in | |
10760 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
ac1cb8d3 | 10761 | ;; |
a848cd7e | 10762 | conftest.$ac_ext ) |
ac1cb8d3 VS |
10763 | # This is the source file. |
10764 | ;; | |
a848cd7e | 10765 | [ab].out ) |
ac1cb8d3 VS |
10766 | # We found the default executable, but exeext='' is most |
10767 | # certainly right. | |
10768 | break;; | |
a848cd7e | 10769 | *.* ) |
ac1cb8d3 VS |
10770 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
10771 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
10772 | # but it would be cool to find out if it's true. Does anybody | |
10773 | # maintain Libtool? --akim. | |
10774 | export ac_cv_exeext | |
10775 | break;; | |
a848cd7e | 10776 | * ) |
ac1cb8d3 | 10777 | break;; |
a848cd7e SC |
10778 | esac |
10779 | done | |
10780 | else | |
10781 | echo "$as_me: failed program was:" >&5 | |
10782 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10783 | ||
10784 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
10785 | See \`config.log' for more details." >&5 | |
10786 | echo "$as_me: error: C compiler cannot create executables | |
10787 | See \`config.log' for more details." >&2;} | |
10788 | { (exit 77); exit 77; }; } | |
10789 | fi | |
10790 | ||
10791 | ac_exeext=$ac_cv_exeext | |
10792 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
10793 | echo "${ECHO_T}$ac_file" >&6 | |
10794 | ||
10795 | # Check the compiler produces executables we can run. If not, either | |
10796 | # the compiler is broken, or we cross compile. | |
10797 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
10798 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
10799 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
10800 | # If not cross compiling, check that we can run a simple program. | |
10801 | if test "$cross_compiling" != yes; then | |
10802 | if { ac_try='./$ac_file' | |
10803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10804 | (eval $ac_try) 2>&5 | |
10805 | ac_status=$? | |
10806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10807 | (exit $ac_status); }; }; then | |
10808 | cross_compiling=no | |
10809 | else | |
10810 | if test "$cross_compiling" = maybe; then | |
10811 | cross_compiling=yes | |
10812 | else | |
10813 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
10814 | If you meant to cross compile, use \`--host'. | |
10815 | See \`config.log' for more details." >&5 | |
10816 | echo "$as_me: error: cannot run C compiled programs. | |
10817 | If you meant to cross compile, use \`--host'. | |
10818 | See \`config.log' for more details." >&2;} | |
10819 | { (exit 1); exit 1; }; } | |
10820 | fi | |
10821 | fi | |
10822 | fi | |
10823 | echo "$as_me:$LINENO: result: yes" >&5 | |
10824 | echo "${ECHO_T}yes" >&6 | |
10825 | ||
10826 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
10827 | ac_clean_files=$ac_clean_files_save | |
10828 | # Check the compiler produces executables we can run. If not, either | |
10829 | # the compiler is broken, or we cross compile. | |
10830 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
10831 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
10832 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
10833 | echo "${ECHO_T}$cross_compiling" >&6 | |
10834 | ||
10835 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
10836 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
10837 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10838 | (eval $ac_link) 2>&5 | |
10839 | ac_status=$? | |
10840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10841 | (exit $ac_status); }; then | |
10842 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
10843 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
10844 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
10845 | # `rm'. | |
10846 | for ac_file in conftest.exe conftest conftest.*; do | |
10847 | test -f "$ac_file" || continue | |
10848 | case $ac_file in | |
10849 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
10850 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
ac1cb8d3 VS |
10851 | export ac_cv_exeext |
10852 | break;; | |
a848cd7e SC |
10853 | * ) break;; |
10854 | esac | |
10855 | done | |
10856 | else | |
10857 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
10858 | See \`config.log' for more details." >&5 | |
10859 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
10860 | See \`config.log' for more details." >&2;} | |
10861 | { (exit 1); exit 1; }; } | |
10862 | fi | |
10863 | ||
10864 | rm -f conftest$ac_cv_exeext | |
10865 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
10866 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
10867 | ||
10868 | rm -f conftest.$ac_ext | |
10869 | EXEEXT=$ac_cv_exeext | |
10870 | ac_exeext=$EXEEXT | |
10871 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
10872 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
10873 | if test "${ac_cv_objext+set}" = set; then | |
10874 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10875 | else | |
10876 | cat >conftest.$ac_ext <<_ACEOF | |
10877 | /* confdefs.h. */ | |
10878 | _ACEOF | |
10879 | cat confdefs.h >>conftest.$ac_ext | |
10880 | cat >>conftest.$ac_ext <<_ACEOF | |
10881 | /* end confdefs.h. */ | |
10882 | ||
10883 | int | |
10884 | main () | |
10885 | { | |
10886 | ||
10887 | ; | |
10888 | return 0; | |
10889 | } | |
10890 | _ACEOF | |
10891 | rm -f conftest.o conftest.obj | |
10892 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10893 | (eval $ac_compile) 2>&5 | |
10894 | ac_status=$? | |
10895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10896 | (exit $ac_status); }; then | |
10897 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
10898 | case $ac_file in | |
10899 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
10900 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
10901 | break;; | |
10902 | esac | |
10903 | done | |
10904 | else | |
10905 | echo "$as_me: failed program was:" >&5 | |
10906 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10907 | ||
10908 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
10909 | See \`config.log' for more details." >&5 | |
10910 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
10911 | See \`config.log' for more details." >&2;} | |
10912 | { (exit 1); exit 1; }; } | |
10913 | fi | |
10914 | ||
10915 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
10916 | fi | |
10917 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
10918 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
10919 | OBJEXT=$ac_cv_objext | |
10920 | ac_objext=$OBJEXT | |
10921 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
10922 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
10923 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
10924 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10925 | else | |
10926 | cat >conftest.$ac_ext <<_ACEOF | |
10927 | /* confdefs.h. */ | |
10928 | _ACEOF | |
10929 | cat confdefs.h >>conftest.$ac_ext | |
10930 | cat >>conftest.$ac_ext <<_ACEOF | |
10931 | /* end confdefs.h. */ | |
10932 | ||
10933 | int | |
10934 | main () | |
10935 | { | |
10936 | #ifndef __GNUC__ | |
10937 | choke me | |
10938 | #endif | |
10939 | ||
10940 | ; | |
10941 | return 0; | |
10942 | } | |
10943 | _ACEOF | |
10944 | rm -f conftest.$ac_objext | |
10945 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 10946 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 10947 | ac_status=$? |
ac1cb8d3 VS |
10948 | grep -v '^ *+' conftest.er1 >conftest.err |
10949 | rm -f conftest.er1 | |
10950 | cat conftest.err >&5 | |
a848cd7e SC |
10951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10952 | (exit $ac_status); } && | |
d51253e8 | 10953 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
10954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10955 | (eval $ac_try) 2>&5 | |
10956 | ac_status=$? | |
10957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10958 | (exit $ac_status); }; } && | |
10959 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
10960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10961 | (eval $ac_try) 2>&5 | |
10962 | ac_status=$? | |
10963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10964 | (exit $ac_status); }; }; then | |
10965 | ac_compiler_gnu=yes | |
10966 | else | |
10967 | echo "$as_me: failed program was:" >&5 | |
10968 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10969 | ||
10970 | ac_compiler_gnu=no | |
10971 | fi | |
ac1cb8d3 | 10972 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
10973 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
10974 | ||
10975 | fi | |
10976 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
10977 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
10978 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
10979 | ac_test_CFLAGS=${CFLAGS+set} | |
10980 | ac_save_CFLAGS=$CFLAGS | |
10981 | CFLAGS="-g" | |
10982 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
10983 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
10984 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
10985 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10986 | else | |
10987 | cat >conftest.$ac_ext <<_ACEOF | |
10988 | /* confdefs.h. */ | |
10989 | _ACEOF | |
10990 | cat confdefs.h >>conftest.$ac_ext | |
10991 | cat >>conftest.$ac_ext <<_ACEOF | |
10992 | /* end confdefs.h. */ | |
10993 | ||
10994 | int | |
10995 | main () | |
10996 | { | |
10997 | ||
10998 | ; | |
10999 | return 0; | |
11000 | } | |
11001 | _ACEOF | |
11002 | rm -f conftest.$ac_objext | |
11003 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11004 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11005 | ac_status=$? |
ac1cb8d3 VS |
11006 | grep -v '^ *+' conftest.er1 >conftest.err |
11007 | rm -f conftest.er1 | |
11008 | cat conftest.err >&5 | |
a848cd7e SC |
11009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11010 | (exit $ac_status); } && | |
d51253e8 | 11011 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11013 | (eval $ac_try) 2>&5 | |
11014 | ac_status=$? | |
11015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11016 | (exit $ac_status); }; } && | |
11017 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11019 | (eval $ac_try) 2>&5 | |
11020 | ac_status=$? | |
11021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11022 | (exit $ac_status); }; }; then | |
11023 | ac_cv_prog_cc_g=yes | |
11024 | else | |
11025 | echo "$as_me: failed program was:" >&5 | |
11026 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11027 | ||
11028 | ac_cv_prog_cc_g=no | |
11029 | fi | |
ac1cb8d3 | 11030 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11031 | fi |
11032 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
11033 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
11034 | if test "$ac_test_CFLAGS" = set; then | |
11035 | CFLAGS=$ac_save_CFLAGS | |
11036 | elif test $ac_cv_prog_cc_g = yes; then | |
11037 | if test "$GCC" = yes; then | |
11038 | CFLAGS="-g -O2" | |
11039 | else | |
11040 | CFLAGS="-g" | |
11041 | fi | |
11042 | else | |
11043 | if test "$GCC" = yes; then | |
11044 | CFLAGS="-O2" | |
11045 | else | |
11046 | CFLAGS= | |
11047 | fi | |
11048 | fi | |
11049 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
11050 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
11051 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
11052 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11053 | else | |
11054 | ac_cv_prog_cc_stdc=no | |
11055 | ac_save_CC=$CC | |
11056 | cat >conftest.$ac_ext <<_ACEOF | |
11057 | /* confdefs.h. */ | |
11058 | _ACEOF | |
11059 | cat confdefs.h >>conftest.$ac_ext | |
11060 | cat >>conftest.$ac_ext <<_ACEOF | |
11061 | /* end confdefs.h. */ | |
11062 | #include <stdarg.h> | |
11063 | #include <stdio.h> | |
11064 | #include <sys/types.h> | |
11065 | #include <sys/stat.h> | |
11066 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
11067 | struct buf { int x; }; | |
11068 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
11069 | static char *e (p, i) | |
11070 | char **p; | |
11071 | int i; | |
11072 | { | |
11073 | return p[i]; | |
11074 | } | |
11075 | static char *f (char * (*g) (char **, int), char **p, ...) | |
11076 | { | |
11077 | char *s; | |
11078 | va_list v; | |
11079 | va_start (v,p); | |
11080 | s = g (p, va_arg (v,int)); | |
11081 | va_end (v); | |
11082 | return s; | |
11083 | } | |
ac1cb8d3 VS |
11084 | |
11085 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
11086 | function prototypes and stuff, but not '\xHH' hex character constants. | |
11087 | These don't provoke an error unfortunately, instead are silently treated | |
11088 | as 'x'. The following induces an error, until -std1 is added to get | |
11089 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
11090 | array size at least. It's necessary to write '\x00'==0 to get something | |
11091 | that's true only with -std1. */ | |
11092 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
11093 | ||
a848cd7e SC |
11094 | int test (int i, double x); |
11095 | struct s1 {int (*f) (int a);}; | |
11096 | struct s2 {int (*f) (double a);}; | |
11097 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
11098 | int argc; | |
11099 | char **argv; | |
11100 | int | |
11101 | main () | |
11102 | { | |
11103 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
11104 | ; | |
11105 | return 0; | |
11106 | } | |
11107 | _ACEOF | |
11108 | # Don't try gcc -ansi; that turns off useful extensions and | |
11109 | # breaks some systems' header files. | |
11110 | # AIX -qlanglvl=ansi | |
11111 | # Ultrix and OSF/1 -std1 | |
11112 | # HP-UX 10.20 and later -Ae | |
11113 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
11114 | # SVR4 -Xc -D__EXTENSIONS__ | |
11115 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
11116 | do | |
11117 | CC="$ac_save_CC $ac_arg" | |
11118 | rm -f conftest.$ac_objext | |
11119 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11120 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11121 | ac_status=$? |
ac1cb8d3 VS |
11122 | grep -v '^ *+' conftest.er1 >conftest.err |
11123 | rm -f conftest.er1 | |
11124 | cat conftest.err >&5 | |
a848cd7e SC |
11125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11126 | (exit $ac_status); } && | |
d51253e8 | 11127 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11129 | (eval $ac_try) 2>&5 | |
11130 | ac_status=$? | |
11131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11132 | (exit $ac_status); }; } && | |
11133 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11135 | (eval $ac_try) 2>&5 | |
11136 | ac_status=$? | |
11137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11138 | (exit $ac_status); }; }; then | |
11139 | ac_cv_prog_cc_stdc=$ac_arg | |
11140 | break | |
11141 | else | |
11142 | echo "$as_me: failed program was:" >&5 | |
11143 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11144 | ||
11145 | fi | |
ac1cb8d3 | 11146 | rm -f conftest.err conftest.$ac_objext |
a848cd7e SC |
11147 | done |
11148 | rm -f conftest.$ac_ext conftest.$ac_objext | |
11149 | CC=$ac_save_CC | |
11150 | ||
11151 | fi | |
11152 | ||
11153 | case "x$ac_cv_prog_cc_stdc" in | |
11154 | x|xno) | |
11155 | echo "$as_me:$LINENO: result: none needed" >&5 | |
11156 | echo "${ECHO_T}none needed" >&6 ;; | |
11157 | *) | |
11158 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
11159 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
11160 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
11161 | esac | |
11162 | ||
11163 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
11164 | # in C++ we need to declare it. In case someone uses the same compiler | |
11165 | # for both compiling C and C++ we need to have the C++ compiler decide | |
11166 | # the declaration of exit, since it's the most demanding environment. | |
11167 | cat >conftest.$ac_ext <<_ACEOF | |
11168 | #ifndef __cplusplus | |
11169 | choke me | |
11170 | #endif | |
11171 | _ACEOF | |
11172 | rm -f conftest.$ac_objext | |
11173 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11174 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11175 | ac_status=$? |
ac1cb8d3 VS |
11176 | grep -v '^ *+' conftest.er1 >conftest.err |
11177 | rm -f conftest.er1 | |
11178 | cat conftest.err >&5 | |
a848cd7e SC |
11179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11180 | (exit $ac_status); } && | |
d51253e8 | 11181 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11182 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11183 | (eval $ac_try) 2>&5 | |
11184 | ac_status=$? | |
11185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11186 | (exit $ac_status); }; } && | |
11187 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11189 | (eval $ac_try) 2>&5 | |
11190 | ac_status=$? | |
11191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11192 | (exit $ac_status); }; }; then | |
11193 | for ac_declaration in \ | |
ac1cb8d3 | 11194 | '' \ |
a848cd7e SC |
11195 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
11196 | 'extern "C" void std::exit (int); using std::exit;' \ | |
11197 | 'extern "C" void exit (int) throw ();' \ | |
11198 | 'extern "C" void exit (int);' \ | |
11199 | 'void exit (int);' | |
11200 | do | |
11201 | cat >conftest.$ac_ext <<_ACEOF | |
11202 | /* confdefs.h. */ | |
11203 | _ACEOF | |
11204 | cat confdefs.h >>conftest.$ac_ext | |
11205 | cat >>conftest.$ac_ext <<_ACEOF | |
11206 | /* end confdefs.h. */ | |
de59c161 | 11207 | $ac_declaration |
ac1cb8d3 | 11208 | #include <stdlib.h> |
a848cd7e SC |
11209 | int |
11210 | main () | |
11211 | { | |
11212 | exit (42); | |
11213 | ; | |
11214 | return 0; | |
11215 | } | |
11216 | _ACEOF | |
11217 | rm -f conftest.$ac_objext | |
11218 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11219 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11220 | ac_status=$? |
ac1cb8d3 VS |
11221 | grep -v '^ *+' conftest.er1 >conftest.err |
11222 | rm -f conftest.er1 | |
11223 | cat conftest.err >&5 | |
a848cd7e SC |
11224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11225 | (exit $ac_status); } && | |
d51253e8 | 11226 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11228 | (eval $ac_try) 2>&5 | |
11229 | ac_status=$? | |
11230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11231 | (exit $ac_status); }; } && | |
11232 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11234 | (eval $ac_try) 2>&5 | |
11235 | ac_status=$? | |
11236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11237 | (exit $ac_status); }; }; then | |
11238 | : | |
11239 | else | |
11240 | echo "$as_me: failed program was:" >&5 | |
11241 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11242 | ||
11243 | continue | |
11244 | fi | |
ac1cb8d3 | 11245 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11246 | cat >conftest.$ac_ext <<_ACEOF |
11247 | /* confdefs.h. */ | |
11248 | _ACEOF | |
11249 | cat confdefs.h >>conftest.$ac_ext | |
11250 | cat >>conftest.$ac_ext <<_ACEOF | |
11251 | /* end confdefs.h. */ | |
11252 | $ac_declaration | |
11253 | int | |
11254 | main () | |
11255 | { | |
11256 | exit (42); | |
11257 | ; | |
11258 | return 0; | |
11259 | } | |
11260 | _ACEOF | |
11261 | rm -f conftest.$ac_objext | |
11262 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11263 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11264 | ac_status=$? |
ac1cb8d3 VS |
11265 | grep -v '^ *+' conftest.er1 >conftest.err |
11266 | rm -f conftest.er1 | |
11267 | cat conftest.err >&5 | |
a848cd7e SC |
11268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11269 | (exit $ac_status); } && | |
d51253e8 | 11270 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11272 | (eval $ac_try) 2>&5 | |
11273 | ac_status=$? | |
11274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11275 | (exit $ac_status); }; } && | |
11276 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11278 | (eval $ac_try) 2>&5 | |
11279 | ac_status=$? | |
11280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11281 | (exit $ac_status); }; }; then | |
11282 | break | |
11283 | else | |
11284 | echo "$as_me: failed program was:" >&5 | |
11285 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11286 | ||
11287 | fi | |
ac1cb8d3 | 11288 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11289 | done |
11290 | rm -f conftest* | |
11291 | if test -n "$ac_declaration"; then | |
11292 | echo '#ifdef __cplusplus' >>confdefs.h | |
11293 | echo $ac_declaration >>confdefs.h | |
11294 | echo '#endif' >>confdefs.h | |
11295 | fi | |
11296 | ||
11297 | else | |
11298 | echo "$as_me: failed program was:" >&5 | |
11299 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11300 | ||
11301 | fi | |
ac1cb8d3 | 11302 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11303 | ac_ext=c |
11304 | ac_cpp='$CPP $CPPFLAGS' | |
11305 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11306 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11307 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11308 | ||
11309 | ||
11310 | ||
11311 | ac_ext=c | |
11312 | ac_cpp='$CPP $CPPFLAGS' | |
11313 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11314 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11315 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11316 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
11317 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
11318 | # On Suns, sometimes $CPP names a directory. | |
11319 | if test -n "$CPP" && test -d "$CPP"; then | |
11320 | CPP= | |
11321 | fi | |
11322 | if test -z "$CPP"; then | |
11323 | if test "${ac_cv_prog_CPP+set}" = set; then | |
11324 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11325 | else | |
11326 | # Double quotes because CPP needs to be expanded | |
11327 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
11328 | do | |
11329 | ac_preproc_ok=false | |
11330 | for ac_c_preproc_warn_flag in '' yes | |
11331 | do | |
11332 | # Use a header file that comes with gcc, so configuring glibc | |
11333 | # with a fresh cross-compiler works. | |
11334 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11335 | # <limits.h> exists even on freestanding compilers. | |
11336 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
11337 | # not just through cpp. "Syntax error" is here to catch this case. | |
11338 | cat >conftest.$ac_ext <<_ACEOF | |
11339 | /* confdefs.h. */ | |
11340 | _ACEOF | |
11341 | cat confdefs.h >>conftest.$ac_ext | |
11342 | cat >>conftest.$ac_ext <<_ACEOF | |
11343 | /* end confdefs.h. */ | |
11344 | #ifdef __STDC__ | |
11345 | # include <limits.h> | |
11346 | #else | |
11347 | # include <assert.h> | |
11348 | #endif | |
ac1cb8d3 | 11349 | Syntax error |
a848cd7e SC |
11350 | _ACEOF |
11351 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11352 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11353 | ac_status=$? | |
11354 | grep -v '^ *+' conftest.er1 >conftest.err | |
11355 | rm -f conftest.er1 | |
11356 | cat conftest.err >&5 | |
11357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11358 | (exit $ac_status); } >/dev/null; then | |
11359 | if test -s conftest.err; then | |
11360 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11361 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11362 | else |
11363 | ac_cpp_err= | |
11364 | fi | |
11365 | else | |
11366 | ac_cpp_err=yes | |
11367 | fi | |
11368 | if test -z "$ac_cpp_err"; then | |
11369 | : | |
11370 | else | |
11371 | echo "$as_me: failed program was:" >&5 | |
11372 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11373 | ||
11374 | # Broken: fails on valid input. | |
11375 | continue | |
11376 | fi | |
11377 | rm -f conftest.err conftest.$ac_ext | |
11378 | ||
11379 | # OK, works on sane cases. Now check whether non-existent headers | |
11380 | # can be detected and how. | |
11381 | cat >conftest.$ac_ext <<_ACEOF | |
11382 | /* confdefs.h. */ | |
11383 | _ACEOF | |
11384 | cat confdefs.h >>conftest.$ac_ext | |
11385 | cat >>conftest.$ac_ext <<_ACEOF | |
11386 | /* end confdefs.h. */ | |
11387 | #include <ac_nonexistent.h> | |
11388 | _ACEOF | |
11389 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11390 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11391 | ac_status=$? | |
11392 | grep -v '^ *+' conftest.er1 >conftest.err | |
11393 | rm -f conftest.er1 | |
11394 | cat conftest.err >&5 | |
11395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11396 | (exit $ac_status); } >/dev/null; then | |
11397 | if test -s conftest.err; then | |
11398 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11399 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11400 | else |
11401 | ac_cpp_err= | |
11402 | fi | |
11403 | else | |
11404 | ac_cpp_err=yes | |
11405 | fi | |
11406 | if test -z "$ac_cpp_err"; then | |
11407 | # Broken: success on invalid input. | |
11408 | continue | |
11409 | else | |
11410 | echo "$as_me: failed program was:" >&5 | |
11411 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11412 | ||
11413 | # Passes both tests. | |
11414 | ac_preproc_ok=: | |
11415 | break | |
11416 | fi | |
11417 | rm -f conftest.err conftest.$ac_ext | |
11418 | ||
11419 | done | |
11420 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
11421 | rm -f conftest.err conftest.$ac_ext | |
11422 | if $ac_preproc_ok; then | |
11423 | break | |
11424 | fi | |
11425 | ||
11426 | done | |
11427 | ac_cv_prog_CPP=$CPP | |
11428 | ||
11429 | fi | |
11430 | CPP=$ac_cv_prog_CPP | |
11431 | else | |
11432 | ac_cv_prog_CPP=$CPP | |
11433 | fi | |
11434 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
11435 | echo "${ECHO_T}$CPP" >&6 | |
11436 | ac_preproc_ok=false | |
11437 | for ac_c_preproc_warn_flag in '' yes | |
11438 | do | |
11439 | # Use a header file that comes with gcc, so configuring glibc | |
11440 | # with a fresh cross-compiler works. | |
11441 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11442 | # <limits.h> exists even on freestanding compilers. | |
11443 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
11444 | # not just through cpp. "Syntax error" is here to catch this case. | |
11445 | cat >conftest.$ac_ext <<_ACEOF | |
11446 | /* confdefs.h. */ | |
11447 | _ACEOF | |
11448 | cat confdefs.h >>conftest.$ac_ext | |
11449 | cat >>conftest.$ac_ext <<_ACEOF | |
11450 | /* end confdefs.h. */ | |
11451 | #ifdef __STDC__ | |
11452 | # include <limits.h> | |
11453 | #else | |
11454 | # include <assert.h> | |
11455 | #endif | |
ac1cb8d3 | 11456 | Syntax error |
a848cd7e SC |
11457 | _ACEOF |
11458 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11459 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11460 | ac_status=$? | |
11461 | grep -v '^ *+' conftest.er1 >conftest.err | |
11462 | rm -f conftest.er1 | |
11463 | cat conftest.err >&5 | |
11464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11465 | (exit $ac_status); } >/dev/null; then | |
11466 | if test -s conftest.err; then | |
11467 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11468 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11469 | else |
11470 | ac_cpp_err= | |
11471 | fi | |
11472 | else | |
11473 | ac_cpp_err=yes | |
11474 | fi | |
11475 | if test -z "$ac_cpp_err"; then | |
11476 | : | |
11477 | else | |
11478 | echo "$as_me: failed program was:" >&5 | |
11479 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11480 | ||
11481 | # Broken: fails on valid input. | |
11482 | continue | |
11483 | fi | |
11484 | rm -f conftest.err conftest.$ac_ext | |
11485 | ||
11486 | # OK, works on sane cases. Now check whether non-existent headers | |
11487 | # can be detected and how. | |
11488 | cat >conftest.$ac_ext <<_ACEOF | |
11489 | /* confdefs.h. */ | |
11490 | _ACEOF | |
11491 | cat confdefs.h >>conftest.$ac_ext | |
11492 | cat >>conftest.$ac_ext <<_ACEOF | |
11493 | /* end confdefs.h. */ | |
11494 | #include <ac_nonexistent.h> | |
11495 | _ACEOF | |
11496 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11497 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11498 | ac_status=$? | |
11499 | grep -v '^ *+' conftest.er1 >conftest.err | |
11500 | rm -f conftest.er1 | |
11501 | cat conftest.err >&5 | |
11502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11503 | (exit $ac_status); } >/dev/null; then | |
11504 | if test -s conftest.err; then | |
11505 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11506 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11507 | else |
11508 | ac_cpp_err= | |
11509 | fi | |
11510 | else | |
11511 | ac_cpp_err=yes | |
11512 | fi | |
11513 | if test -z "$ac_cpp_err"; then | |
11514 | # Broken: success on invalid input. | |
11515 | continue | |
11516 | else | |
11517 | echo "$as_me: failed program was:" >&5 | |
11518 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11519 | ||
11520 | # Passes both tests. | |
11521 | ac_preproc_ok=: | |
11522 | break | |
11523 | fi | |
11524 | rm -f conftest.err conftest.$ac_ext | |
11525 | ||
11526 | done | |
11527 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
11528 | rm -f conftest.err conftest.$ac_ext | |
11529 | if $ac_preproc_ok; then | |
11530 | : | |
11531 | else | |
11532 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
11533 | See \`config.log' for more details." >&5 | |
11534 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
11535 | See \`config.log' for more details." >&2;} | |
11536 | { (exit 1); exit 1; }; } | |
11537 | fi | |
11538 | ||
11539 | ac_ext=c | |
11540 | ac_cpp='$CPP $CPPFLAGS' | |
11541 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11542 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11543 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11544 | ||
11545 | ||
11546 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
11547 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
11548 | if test "${ac_cv_prog_egrep+set}" = set; then | |
11549 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11550 | else | |
11551 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
11552 | then ac_cv_prog_egrep='grep -E' | |
11553 | else ac_cv_prog_egrep='egrep' | |
11554 | fi | |
11555 | fi | |
11556 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
11557 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
11558 | EGREP=$ac_cv_prog_egrep | |
11559 | ||
11560 | ||
11561 | if test $ac_cv_c_compiler_gnu = yes; then | |
11562 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
11563 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
11564 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
11565 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11566 | else | |
11567 | ac_pattern="Autoconf.*'x'" | |
11568 | cat >conftest.$ac_ext <<_ACEOF | |
11569 | /* confdefs.h. */ | |
11570 | _ACEOF | |
11571 | cat confdefs.h >>conftest.$ac_ext | |
11572 | cat >>conftest.$ac_ext <<_ACEOF | |
11573 | /* end confdefs.h. */ | |
11574 | #include <sgtty.h> | |
11575 | Autoconf TIOCGETP | |
11576 | _ACEOF | |
11577 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11578 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
11579 | ac_cv_prog_gcc_traditional=yes | |
11580 | else | |
11581 | ac_cv_prog_gcc_traditional=no | |
11582 | fi | |
11583 | rm -f conftest* | |
11584 | ||
11585 | ||
11586 | if test $ac_cv_prog_gcc_traditional = no; then | |
11587 | cat >conftest.$ac_ext <<_ACEOF | |
11588 | /* confdefs.h. */ | |
11589 | _ACEOF | |
11590 | cat confdefs.h >>conftest.$ac_ext | |
11591 | cat >>conftest.$ac_ext <<_ACEOF | |
11592 | /* end confdefs.h. */ | |
11593 | #include <termio.h> | |
11594 | Autoconf TCGETA | |
11595 | _ACEOF | |
11596 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11597 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
11598 | ac_cv_prog_gcc_traditional=yes | |
11599 | fi | |
11600 | rm -f conftest* | |
11601 | ||
11602 | fi | |
11603 | fi | |
11604 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 | |
11605 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
11606 | if test $ac_cv_prog_gcc_traditional = yes; then | |
11607 | CC="$CC -traditional" | |
11608 | fi | |
11609 | fi | |
11610 | ||
11611 | ||
11612 | ||
11613 | ||
11614 | ac_ext=cc | |
11615 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11616 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11617 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11618 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11619 | ||
11620 | ||
11621 | CXXFLAGS=${CXXFLAGS:=} | |
11622 | ac_ext=cc | |
11623 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11624 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11625 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11626 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11627 | if test -n "$ac_tool_prefix"; then | |
11628 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
11629 | do | |
11630 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
11631 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
11632 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11633 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11634 | if test "${ac_cv_prog_CXX+set}" = set; then | |
11635 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11636 | else | |
11637 | if test -n "$CXX"; then | |
11638 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
11639 | else | |
11640 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11641 | for as_dir in $PATH | |
11642 | do | |
11643 | IFS=$as_save_IFS | |
11644 | test -z "$as_dir" && as_dir=. | |
11645 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11646 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11647 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
11648 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11649 | break 2 | |
11650 | fi | |
11651 | done | |
11652 | done | |
11653 | ||
11654 | fi | |
11655 | fi | |
11656 | CXX=$ac_cv_prog_CXX | |
11657 | if test -n "$CXX"; then | |
11658 | echo "$as_me:$LINENO: result: $CXX" >&5 | |
11659 | echo "${ECHO_T}$CXX" >&6 | |
11660 | else | |
11661 | echo "$as_me:$LINENO: result: no" >&5 | |
11662 | echo "${ECHO_T}no" >&6 | |
11663 | fi | |
11664 | ||
11665 | test -n "$CXX" && break | |
11666 | done | |
11667 | fi | |
11668 | if test -z "$CXX"; then | |
11669 | ac_ct_CXX=$CXX | |
11670 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
11671 | do | |
11672 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11673 | set dummy $ac_prog; ac_word=$2 | |
11674 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11675 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11676 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
11677 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11678 | else | |
11679 | if test -n "$ac_ct_CXX"; then | |
11680 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
11681 | else | |
11682 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11683 | for as_dir in $PATH | |
11684 | do | |
11685 | IFS=$as_save_IFS | |
11686 | test -z "$as_dir" && as_dir=. | |
11687 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11688 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11689 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
11690 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11691 | break 2 | |
11692 | fi | |
11693 | done | |
11694 | done | |
11695 | ||
11696 | fi | |
11697 | fi | |
11698 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
11699 | if test -n "$ac_ct_CXX"; then | |
11700 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
11701 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
11702 | else | |
11703 | echo "$as_me:$LINENO: result: no" >&5 | |
11704 | echo "${ECHO_T}no" >&6 | |
11705 | fi | |
11706 | ||
11707 | test -n "$ac_ct_CXX" && break | |
11708 | done | |
11709 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
11710 | ||
11711 | CXX=$ac_ct_CXX | |
11712 | fi | |
11713 | ||
11714 | ||
11715 | # Provide some information about the compiler. | |
11716 | echo "$as_me:$LINENO:" \ | |
11717 | "checking for C++ compiler version" >&5 | |
11718 | ac_compiler=`set X $ac_compile; echo $2` | |
11719 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
11720 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
11721 | ac_status=$? | |
11722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11723 | (exit $ac_status); } | |
11724 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
11725 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
11726 | ac_status=$? | |
11727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11728 | (exit $ac_status); } | |
11729 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
11730 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
11731 | ac_status=$? | |
11732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11733 | (exit $ac_status); } | |
11734 | ||
11735 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
11736 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
11737 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
11738 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11739 | else | |
11740 | cat >conftest.$ac_ext <<_ACEOF | |
11741 | /* confdefs.h. */ | |
11742 | _ACEOF | |
11743 | cat confdefs.h >>conftest.$ac_ext | |
11744 | cat >>conftest.$ac_ext <<_ACEOF | |
11745 | /* end confdefs.h. */ | |
11746 | ||
11747 | int | |
11748 | main () | |
11749 | { | |
11750 | #ifndef __GNUC__ | |
11751 | choke me | |
11752 | #endif | |
11753 | ||
11754 | ; | |
11755 | return 0; | |
11756 | } | |
11757 | _ACEOF | |
11758 | rm -f conftest.$ac_objext | |
11759 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11760 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11761 | ac_status=$? |
ac1cb8d3 VS |
11762 | grep -v '^ *+' conftest.er1 >conftest.err |
11763 | rm -f conftest.er1 | |
11764 | cat conftest.err >&5 | |
a848cd7e SC |
11765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11766 | (exit $ac_status); } && | |
d51253e8 | 11767 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11769 | (eval $ac_try) 2>&5 | |
11770 | ac_status=$? | |
11771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11772 | (exit $ac_status); }; } && | |
11773 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11775 | (eval $ac_try) 2>&5 | |
11776 | ac_status=$? | |
11777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11778 | (exit $ac_status); }; }; then | |
11779 | ac_compiler_gnu=yes | |
11780 | else | |
11781 | echo "$as_me: failed program was:" >&5 | |
11782 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11783 | ||
11784 | ac_compiler_gnu=no | |
11785 | fi | |
ac1cb8d3 | 11786 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11787 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
11788 | ||
11789 | fi | |
11790 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
11791 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
11792 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
11793 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
11794 | ac_save_CXXFLAGS=$CXXFLAGS | |
11795 | CXXFLAGS="-g" | |
11796 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
11797 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
11798 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
11799 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11800 | else | |
11801 | cat >conftest.$ac_ext <<_ACEOF | |
11802 | /* confdefs.h. */ | |
11803 | _ACEOF | |
11804 | cat confdefs.h >>conftest.$ac_ext | |
11805 | cat >>conftest.$ac_ext <<_ACEOF | |
11806 | /* end confdefs.h. */ | |
11807 | ||
11808 | int | |
11809 | main () | |
11810 | { | |
11811 | ||
11812 | ; | |
11813 | return 0; | |
11814 | } | |
11815 | _ACEOF | |
11816 | rm -f conftest.$ac_objext | |
11817 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11818 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11819 | ac_status=$? |
ac1cb8d3 VS |
11820 | grep -v '^ *+' conftest.er1 >conftest.err |
11821 | rm -f conftest.er1 | |
11822 | cat conftest.err >&5 | |
a848cd7e SC |
11823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11824 | (exit $ac_status); } && | |
d51253e8 | 11825 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11827 | (eval $ac_try) 2>&5 | |
11828 | ac_status=$? | |
11829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11830 | (exit $ac_status); }; } && | |
11831 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11833 | (eval $ac_try) 2>&5 | |
11834 | ac_status=$? | |
11835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11836 | (exit $ac_status); }; }; then | |
11837 | ac_cv_prog_cxx_g=yes | |
11838 | else | |
11839 | echo "$as_me: failed program was:" >&5 | |
11840 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11841 | ||
11842 | ac_cv_prog_cxx_g=no | |
11843 | fi | |
ac1cb8d3 | 11844 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11845 | fi |
11846 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
11847 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
11848 | if test "$ac_test_CXXFLAGS" = set; then | |
11849 | CXXFLAGS=$ac_save_CXXFLAGS | |
11850 | elif test $ac_cv_prog_cxx_g = yes; then | |
11851 | if test "$GXX" = yes; then | |
11852 | CXXFLAGS="-g -O2" | |
11853 | else | |
11854 | CXXFLAGS="-g" | |
11855 | fi | |
11856 | else | |
11857 | if test "$GXX" = yes; then | |
11858 | CXXFLAGS="-O2" | |
11859 | else | |
11860 | CXXFLAGS= | |
11861 | fi | |
11862 | fi | |
11863 | for ac_declaration in \ | |
ac1cb8d3 | 11864 | '' \ |
a848cd7e SC |
11865 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
11866 | 'extern "C" void std::exit (int); using std::exit;' \ | |
11867 | 'extern "C" void exit (int) throw ();' \ | |
11868 | 'extern "C" void exit (int);' \ | |
11869 | 'void exit (int);' | |
11870 | do | |
11871 | cat >conftest.$ac_ext <<_ACEOF | |
11872 | /* confdefs.h. */ | |
11873 | _ACEOF | |
11874 | cat confdefs.h >>conftest.$ac_ext | |
11875 | cat >>conftest.$ac_ext <<_ACEOF | |
11876 | /* end confdefs.h. */ | |
de59c161 | 11877 | $ac_declaration |
ac1cb8d3 | 11878 | #include <stdlib.h> |
a848cd7e SC |
11879 | int |
11880 | main () | |
11881 | { | |
11882 | exit (42); | |
11883 | ; | |
11884 | return 0; | |
11885 | } | |
11886 | _ACEOF | |
11887 | rm -f conftest.$ac_objext | |
11888 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11889 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11890 | ac_status=$? |
ac1cb8d3 VS |
11891 | grep -v '^ *+' conftest.er1 >conftest.err |
11892 | rm -f conftest.er1 | |
11893 | cat conftest.err >&5 | |
a848cd7e SC |
11894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11895 | (exit $ac_status); } && | |
d51253e8 | 11896 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11898 | (eval $ac_try) 2>&5 | |
11899 | ac_status=$? | |
11900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11901 | (exit $ac_status); }; } && | |
11902 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11904 | (eval $ac_try) 2>&5 | |
11905 | ac_status=$? | |
11906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11907 | (exit $ac_status); }; }; then | |
11908 | : | |
11909 | else | |
11910 | echo "$as_me: failed program was:" >&5 | |
11911 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11912 | ||
11913 | continue | |
11914 | fi | |
ac1cb8d3 | 11915 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11916 | cat >conftest.$ac_ext <<_ACEOF |
11917 | /* confdefs.h. */ | |
11918 | _ACEOF | |
11919 | cat confdefs.h >>conftest.$ac_ext | |
11920 | cat >>conftest.$ac_ext <<_ACEOF | |
11921 | /* end confdefs.h. */ | |
11922 | $ac_declaration | |
11923 | int | |
11924 | main () | |
11925 | { | |
11926 | exit (42); | |
11927 | ; | |
11928 | return 0; | |
11929 | } | |
11930 | _ACEOF | |
11931 | rm -f conftest.$ac_objext | |
11932 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11933 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11934 | ac_status=$? |
ac1cb8d3 VS |
11935 | grep -v '^ *+' conftest.er1 >conftest.err |
11936 | rm -f conftest.er1 | |
11937 | cat conftest.err >&5 | |
a848cd7e SC |
11938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11939 | (exit $ac_status); } && | |
d51253e8 | 11940 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11942 | (eval $ac_try) 2>&5 | |
11943 | ac_status=$? | |
11944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11945 | (exit $ac_status); }; } && | |
11946 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11948 | (eval $ac_try) 2>&5 | |
11949 | ac_status=$? | |
11950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11951 | (exit $ac_status); }; }; then | |
11952 | break | |
11953 | else | |
11954 | echo "$as_me: failed program was:" >&5 | |
11955 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11956 | ||
11957 | fi | |
ac1cb8d3 | 11958 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11959 | done |
11960 | rm -f conftest* | |
11961 | if test -n "$ac_declaration"; then | |
11962 | echo '#ifdef __cplusplus' >>confdefs.h | |
11963 | echo $ac_declaration >>confdefs.h | |
11964 | echo '#endif' >>confdefs.h | |
11965 | fi | |
11966 | ||
11967 | ac_ext=cc | |
11968 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11969 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11970 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11971 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11972 | ||
11973 | ||
11974 | ac_ext=c | |
11975 | ac_cpp='$CPP $CPPFLAGS' | |
11976 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11977 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11978 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11979 | ||
11980 | ||
a848cd7e SC |
11981 | if test -n "$ac_tool_prefix"; then |
11982 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
11983 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
11984 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11985 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11986 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
11987 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11988 | else | |
11989 | if test -n "$RANLIB"; then | |
11990 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
11991 | else | |
11992 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11993 | for as_dir in $PATH | |
11994 | do | |
11995 | IFS=$as_save_IFS | |
11996 | test -z "$as_dir" && as_dir=. | |
11997 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11998 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11999 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
12000 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12001 | break 2 | |
12002 | fi | |
12003 | done | |
12004 | done | |
12005 | ||
12006 | fi | |
12007 | fi | |
12008 | RANLIB=$ac_cv_prog_RANLIB | |
12009 | if test -n "$RANLIB"; then | |
12010 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
12011 | echo "${ECHO_T}$RANLIB" >&6 | |
12012 | else | |
12013 | echo "$as_me:$LINENO: result: no" >&5 | |
12014 | echo "${ECHO_T}no" >&6 | |
12015 | fi | |
12016 | ||
12017 | fi | |
12018 | if test -z "$ac_cv_prog_RANLIB"; then | |
12019 | ac_ct_RANLIB=$RANLIB | |
12020 | # Extract the first word of "ranlib", so it can be a program name with args. | |
12021 | set dummy ranlib; ac_word=$2 | |
12022 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12023 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12024 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
12025 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12026 | else | |
12027 | if test -n "$ac_ct_RANLIB"; then | |
12028 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
12029 | else | |
12030 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12031 | for as_dir in $PATH | |
12032 | do | |
12033 | IFS=$as_save_IFS | |
12034 | test -z "$as_dir" && as_dir=. | |
12035 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12036 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12037 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
12038 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12039 | break 2 | |
12040 | fi | |
12041 | done | |
12042 | done | |
12043 | ||
12044 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
12045 | fi | |
12046 | fi | |
12047 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
12048 | if test -n "$ac_ct_RANLIB"; then | |
12049 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
12050 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
12051 | else | |
12052 | echo "$as_me:$LINENO: result: no" >&5 | |
12053 | echo "${ECHO_T}no" >&6 | |
12054 | fi | |
12055 | ||
12056 | RANLIB=$ac_ct_RANLIB | |
12057 | else | |
12058 | RANLIB="$ac_cv_prog_RANLIB" | |
12059 | fi | |
12060 | ||
12061 | ||
12062 | # Extract the first word of "ar", so it can be a program name with args. | |
12063 | set dummy ar; ac_word=$2 | |
12064 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12065 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12066 | if test "${ac_cv_prog_AR+set}" = set; then | |
12067 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12068 | else | |
12069 | if test -n "$AR"; then | |
12070 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
12071 | else | |
12072 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12073 | for as_dir in $PATH | |
12074 | do | |
12075 | IFS=$as_save_IFS | |
12076 | test -z "$as_dir" && as_dir=. | |
12077 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12078 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12079 | ac_cv_prog_AR="ar" | |
12080 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12081 | break 2 | |
12082 | fi | |
12083 | done | |
12084 | done | |
12085 | ||
12086 | fi | |
12087 | fi | |
12088 | AR=$ac_cv_prog_AR | |
12089 | if test -n "$AR"; then | |
12090 | echo "$as_me:$LINENO: result: $AR" >&5 | |
12091 | echo "${ECHO_T}$AR" >&6 | |
12092 | else | |
12093 | echo "$as_me:$LINENO: result: no" >&5 | |
12094 | echo "${ECHO_T}no" >&6 | |
12095 | fi | |
12096 | ||
12097 | if test "x$AR" = "x" ; then | |
77ffb593 JS |
12098 | { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5 |
12099 | echo "$as_me: error: ar is needed to build wxWidgets" >&2;} | |
a848cd7e SC |
12100 | { (exit 1); exit 1; }; } |
12101 | fi | |
12102 | ||
12103 | # Find a good install program. We prefer a C program (faster), | |
12104 | # so one script is as good as another. But avoid the broken or | |
12105 | # incompatible versions: | |
12106 | # SysV /etc/install, /usr/sbin/install | |
12107 | # SunOS /usr/etc/install | |
12108 | # IRIX /sbin/install | |
12109 | # AIX /bin/install | |
12110 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
12111 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
12112 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
12113 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 12114 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
12115 | # ./install, which can be erroneously created by make from ./install.sh. |
12116 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
12117 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
12118 | if test -z "$INSTALL"; then | |
12119 | if test "${ac_cv_path_install+set}" = set; then | |
12120 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12121 | else | |
12122 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12123 | for as_dir in $PATH | |
12124 | do | |
12125 | IFS=$as_save_IFS | |
12126 | test -z "$as_dir" && as_dir=. | |
12127 | # Account for people who put trailing slashes in PATH elements. | |
12128 | case $as_dir/ in | |
12129 | ./ | .// | /cC/* | \ | |
12130 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 12131 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
12132 | /usr/ucb/* ) ;; |
12133 | *) | |
12134 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
12135 | # Don't use installbsd from OSF since it installs stuff as root | |
12136 | # by default. | |
12137 | for ac_prog in ginstall scoinst install; do | |
12138 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
12139 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
12140 | if test $ac_prog = install && | |
12141 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
12142 | # AIX install. It has an incompatible calling convention. | |
12143 | : | |
12144 | elif test $ac_prog = install && | |
12145 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
12146 | # program-specific install script used by HP pwplus--don't use. | |
12147 | : | |
12148 | else | |
12149 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
12150 | break 3 | |
12151 | fi | |
12152 | fi | |
a848cd7e SC |
12153 | done |
12154 | done | |
12155 | ;; | |
12156 | esac | |
12157 | done | |
12158 | ||
12159 | ||
12160 | fi | |
12161 | if test "${ac_cv_path_install+set}" = set; then | |
12162 | INSTALL=$ac_cv_path_install | |
12163 | else | |
12164 | # As a last resort, use the slow shell script. We don't cache a | |
12165 | # path for INSTALL within a source directory, because that will | |
12166 | # break other packages using the cache if that directory is | |
12167 | # removed, or if the path is relative. | |
12168 | INSTALL=$ac_install_sh | |
12169 | fi | |
12170 | fi | |
12171 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
12172 | echo "${ECHO_T}$INSTALL" >&6 | |
12173 | ||
12174 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
12175 | # It thinks the first close brace ends the variable substitution. | |
12176 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
12177 | ||
12178 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
12179 | ||
12180 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
12181 | ||
12182 | ||
12183 | case ${INSTALL} in | |
12184 | /* ) # Absolute | |
12185 | ;; | |
12186 | ?:* ) # Drive letter, considered as absolute. | |
12187 | ;; | |
12188 | *) | |
12189 | INSTALL=`pwd`/${INSTALL} ;; | |
12190 | esac | |
12191 | ||
a848cd7e SC |
12192 | |
12193 | case "${host}" in | |
12194 | ||
12195 | powerpc-*-darwin* ) | |
12196 | INSTALL_PROGRAM="cp -fp" | |
12197 | INSTALL_DATA="cp -fp" | |
12198 | ;; | |
12199 | *) | |
12200 | ;; | |
12201 | esac | |
12202 | ||
12203 | # Extract the first word of "strip", so it can be a program name with args. | |
12204 | set dummy strip; ac_word=$2 | |
12205 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12206 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12207 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
12208 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12209 | else | |
12210 | if test -n "$STRIP"; then | |
12211 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
12212 | else | |
12213 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12214 | for as_dir in $PATH | |
12215 | do | |
12216 | IFS=$as_save_IFS | |
12217 | test -z "$as_dir" && as_dir=. | |
12218 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12219 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12220 | ac_cv_prog_STRIP="strip" | |
12221 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12222 | break 2 | |
12223 | fi | |
12224 | done | |
12225 | done | |
12226 | ||
12227 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" | |
12228 | fi | |
12229 | fi | |
12230 | STRIP=$ac_cv_prog_STRIP | |
12231 | if test -n "$STRIP"; then | |
12232 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
12233 | echo "${ECHO_T}$STRIP" >&6 | |
12234 | else | |
12235 | echo "$as_me:$LINENO: result: no" >&5 | |
12236 | echo "${ECHO_T}no" >&6 | |
12237 | fi | |
12238 | ||
12239 | ||
12240 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
12241 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
12242 | if test "${wx_cv_prog_makeisgnu+set}" = set; then | |
12243 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12244 | else | |
12245 | ||
12246 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
12247 | egrep -s GNU > /dev/null); then | |
12248 | wx_cv_prog_makeisgnu="yes" | |
12249 | else | |
12250 | wx_cv_prog_makeisgnu="no" | |
12251 | fi | |
12252 | ||
12253 | fi | |
12254 | echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5 | |
12255 | echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6 | |
12256 | ||
12257 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
12258 | IF_GNU_MAKE="" | |
12259 | else | |
12260 | IF_GNU_MAKE="#" | |
12261 | fi | |
12262 | ||
12263 | ||
12264 | ||
12265 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then | |
12266 | echo "$as_me:$LINENO: checking if make supports VPATH" >&5 | |
12267 | echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6 | |
12268 | if test "${wx_cv_prog_makevpath+set}" = set; then | |
12269 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12270 | else | |
12271 | ||
12272 | cat - << EOF > confMake | |
12273 | check : file | |
12274 | cp \$? \$@ | |
12275 | cp \$? final_file | |
12276 | EOF | |
12277 | ||
12278 | if test ! -d sub ; then | |
12279 | mkdir sub | |
12280 | fi | |
12281 | echo dummy > sub/file | |
12282 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null | |
12283 | RESULT=$? | |
12284 | rm -f sub/file check final_file confMake | |
12285 | rmdir sub | |
12286 | if test "$RESULT" = 0; then | |
12287 | wx_cv_prog_makevpath="yes" | |
12288 | else | |
12289 | wx_cv_prog_makevpath="no" | |
12290 | fi | |
12291 | ||
12292 | fi | |
12293 | echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5 | |
12294 | echo "${ECHO_T}$wx_cv_prog_makevpath" >&6 | |
12295 | ||
12296 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
12297 | { { echo "$as_me:$LINENO: error: | |
12298 | You need a make-utility that is able to use the variable | |
12299 | VPATH correctly. | |
12300 | If your version of make does not support VPATH correctly, | |
12301 | please install GNU-make (possibly as gmake), and start | |
12302 | configure with the following command: | |
12303 | export MAKE=gmake; ./configure for sh-type shells | |
12304 | setenv MAKE gmake; ./configure for csh-type shells | |
12305 | Also please do remember to use gmake in this case every time | |
12306 | you are trying to compile. | |
12307 | " >&5 | |
12308 | echo "$as_me: error: | |
12309 | You need a make-utility that is able to use the variable | |
12310 | VPATH correctly. | |
12311 | If your version of make does not support VPATH correctly, | |
12312 | please install GNU-make (possibly as gmake), and start | |
12313 | configure with the following command: | |
12314 | export MAKE=gmake; ./configure for sh-type shells | |
12315 | setenv MAKE gmake; ./configure for csh-type shells | |
12316 | Also please do remember to use gmake in this case every time | |
12317 | you are trying to compile. | |
12318 | " >&2;} | |
12319 | { (exit 1); exit 1; }; } | |
12320 | fi fi | |
12321 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
12322 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
12323 | LN_S=$as_ln_s | |
12324 | if test "$LN_S" = "ln -s"; then | |
12325 | echo "$as_me:$LINENO: result: yes" >&5 | |
12326 | echo "${ECHO_T}yes" >&6 | |
12327 | else | |
12328 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
12329 | echo "${ECHO_T}no, using $LN_S" >&6 | |
12330 | fi | |
12331 | ||
12332 | ||
12333 | ||
12334 | case "${host}" in | |
12335 | *-pc-os2_emx | *-pc-os2-emx ) | |
12336 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then | |
12337 | echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5 | |
12338 | echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6 | |
12339 | if test "${ac_cv_lib_cExt_drand48+set}" = set; then | |
12340 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12341 | else | |
12342 | ac_check_lib_save_LIBS=$LIBS | |
12343 | LIBS="-lcExt $LIBS" | |
12344 | cat >conftest.$ac_ext <<_ACEOF | |
12345 | /* confdefs.h. */ | |
12346 | _ACEOF | |
12347 | cat confdefs.h >>conftest.$ac_ext | |
12348 | cat >>conftest.$ac_ext <<_ACEOF | |
12349 | /* end confdefs.h. */ | |
12350 | ||
12351 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12352 | #ifdef __cplusplus | |
12353 | extern "C" | |
12354 | #endif | |
12355 | /* We use char because int might match the return type of a gcc2 | |
12356 | builtin and then its argument prototype would still apply. */ | |
12357 | char drand48 (); | |
12358 | int | |
12359 | main () | |
12360 | { | |
12361 | drand48 (); | |
12362 | ; | |
12363 | return 0; | |
12364 | } | |
12365 | _ACEOF | |
12366 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12367 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 12368 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 12369 | ac_status=$? |
ac1cb8d3 VS |
12370 | grep -v '^ *+' conftest.er1 >conftest.err |
12371 | rm -f conftest.er1 | |
12372 | cat conftest.err >&5 | |
a848cd7e SC |
12373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12374 | (exit $ac_status); } && | |
d51253e8 | 12375 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12377 | (eval $ac_try) 2>&5 | |
12378 | ac_status=$? | |
12379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12380 | (exit $ac_status); }; } && | |
12381 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
12382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12383 | (eval $ac_try) 2>&5 | |
12384 | ac_status=$? | |
12385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12386 | (exit $ac_status); }; }; then | |
12387 | ac_cv_lib_cExt_drand48=yes | |
12388 | else | |
12389 | echo "$as_me: failed program was:" >&5 | |
12390 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12391 | ||
12392 | ac_cv_lib_cExt_drand48=no | |
12393 | fi | |
ac1cb8d3 VS |
12394 | rm -f conftest.err conftest.$ac_objext \ |
12395 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
12396 | LIBS=$ac_check_lib_save_LIBS |
12397 | fi | |
12398 | echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5 | |
12399 | echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6 | |
12400 | if test $ac_cv_lib_cExt_drand48 = yes; then | |
12401 | LIBS="$LIBS -lcExt" | |
12402 | fi | |
12403 | ||
12404 | else | |
12405 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
12406 | fi | |
12407 | echo "$as_me:$LINENO: checking for gcc version" >&5 | |
12408 | echo $ECHO_N "checking for gcc version... $ECHO_C" >&6 | |
12409 | if test "${wx_cv_gccversion+set}" = set; then | |
12410 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12411 | else | |
12412 | ||
12413 | cat >conftest.$ac_ext <<_ACEOF | |
12414 | /* confdefs.h. */ | |
12415 | _ACEOF | |
12416 | cat confdefs.h >>conftest.$ac_ext | |
12417 | cat >>conftest.$ac_ext <<_ACEOF | |
12418 | /* end confdefs.h. */ | |
12419 | ||
12420 | int | |
12421 | main () | |
12422 | { | |
12423 | ||
12424 | #if (__GNUC__ < 3) | |
12425 | #error old gcc | |
12426 | #endif | |
12427 | ||
12428 | ; | |
12429 | return 0; | |
12430 | } | |
12431 | _ACEOF | |
12432 | rm -f conftest.$ac_objext | |
12433 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12434 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12435 | ac_status=$? |
ac1cb8d3 VS |
12436 | grep -v '^ *+' conftest.er1 >conftest.err |
12437 | rm -f conftest.er1 | |
12438 | cat conftest.err >&5 | |
a848cd7e SC |
12439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12440 | (exit $ac_status); } && | |
d51253e8 | 12441 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12443 | (eval $ac_try) 2>&5 | |
12444 | ac_status=$? | |
12445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12446 | (exit $ac_status); }; } && | |
12447 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12449 | (eval $ac_try) 2>&5 | |
12450 | ac_status=$? | |
12451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12452 | (exit $ac_status); }; }; then | |
12453 | ||
12454 | cat >conftest.$ac_ext <<_ACEOF | |
12455 | /* confdefs.h. */ | |
12456 | _ACEOF | |
12457 | cat confdefs.h >>conftest.$ac_ext | |
12458 | cat >>conftest.$ac_ext <<_ACEOF | |
12459 | /* end confdefs.h. */ | |
12460 | ||
12461 | int | |
12462 | main () | |
12463 | { | |
12464 | ||
12465 | #if (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2))) | |
12466 | #error intermediate gcc | |
12467 | #endif | |
12468 | ||
12469 | ; | |
12470 | return 0; | |
12471 | } | |
12472 | _ACEOF | |
12473 | rm -f conftest.$ac_objext | |
12474 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12475 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12476 | ac_status=$? |
ac1cb8d3 VS |
12477 | grep -v '^ *+' conftest.er1 >conftest.err |
12478 | rm -f conftest.er1 | |
12479 | cat conftest.err >&5 | |
a848cd7e SC |
12480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12481 | (exit $ac_status); } && | |
d51253e8 | 12482 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12484 | (eval $ac_try) 2>&5 | |
12485 | ac_status=$? | |
12486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12487 | (exit $ac_status); }; } && | |
12488 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12490 | (eval $ac_try) 2>&5 | |
12491 | ac_status=$? | |
12492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12493 | (exit $ac_status); }; }; then | |
12494 | ||
12495 | wx_cv_gccversion=Innotek | |
12496 | ||
12497 | else | |
12498 | echo "$as_me: failed program was:" >&5 | |
12499 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12500 | ||
12501 | ||
12502 | wx_cv_gccversion=3 | |
12503 | ||
12504 | ||
12505 | fi | |
ac1cb8d3 | 12506 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12507 | |
12508 | else | |
12509 | echo "$as_me: failed program was:" >&5 | |
12510 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12511 | ||
12512 | ||
12513 | wx_cv_gccversion=2 | |
12514 | ||
12515 | ||
12516 | fi | |
ac1cb8d3 | 12517 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12518 | |
12519 | fi | |
12520 | echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5 | |
12521 | echo "${ECHO_T}$wx_cv_gccversion" >&6 | |
12522 | if test "$wx_cv_gccversion" = "2"; then | |
12523 | LIBS="$LIBS -lstdcpp" | |
12524 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
12525 | else | |
12526 | if test "$wx_cv_gccversion" = "3"; then | |
12527 | LIBS="$LIBS -lstdcxx" | |
12528 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
12529 | else | |
12530 | LIBS="$LIBS -lstdc++" | |
12531 | fi | |
12532 | fi | |
12533 | if test "$wxUSE_OMF" = "yes"; then | |
de59c161 | 12534 | LDFLAGS="$LDFLAGS -Zomf -Zlinker /PMTYPE:PM -Zlinker /EXEPACK" |
a848cd7e SC |
12535 | fi |
12536 | ;; | |
12537 | *) | |
12538 | ||
12539 | ||
12540 | ||
12541 | ac_ext=cc | |
12542 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12543 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12544 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12545 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12546 | ||
12547 | ||
12548 | ||
12549 | echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5 | |
12550 | echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6 | |
12551 | if test "${ac_cv_string_strcasecmp+set}" = set; then | |
12552 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12553 | else | |
12554 | ||
12555 | cat >conftest.$ac_ext <<_ACEOF | |
12556 | /* confdefs.h. */ | |
12557 | _ACEOF | |
12558 | cat confdefs.h >>conftest.$ac_ext | |
12559 | cat >>conftest.$ac_ext <<_ACEOF | |
12560 | /* end confdefs.h. */ | |
12561 | ||
12562 | #include <string.h> | |
12563 | ||
12564 | int | |
12565 | main () | |
12566 | { | |
12567 | ||
12568 | strcasecmp("foo", "bar"); | |
12569 | ||
12570 | ; | |
12571 | return 0; | |
12572 | } | |
12573 | _ACEOF | |
12574 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12575 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 12576 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 12577 | ac_status=$? |
ac1cb8d3 VS |
12578 | grep -v '^ *+' conftest.er1 >conftest.err |
12579 | rm -f conftest.er1 | |
12580 | cat conftest.err >&5 | |
a848cd7e SC |
12581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12582 | (exit $ac_status); } && | |
d51253e8 | 12583 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12585 | (eval $ac_try) 2>&5 | |
12586 | ac_status=$? | |
12587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12588 | (exit $ac_status); }; } && | |
12589 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
12590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12591 | (eval $ac_try) 2>&5 | |
12592 | ac_status=$? | |
12593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12594 | (exit $ac_status); }; }; then | |
12595 | ac_cv_string_strcasecmp=yes | |
12596 | else | |
12597 | echo "$as_me: failed program was:" >&5 | |
12598 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12599 | ||
12600 | ac_cv_string_strcasecmp=no | |
12601 | ||
12602 | fi | |
ac1cb8d3 VS |
12603 | rm -f conftest.err conftest.$ac_objext \ |
12604 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
12605 | |
12606 | fi | |
12607 | echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5 | |
12608 | echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6 | |
12609 | ||
12610 | if test x"$ac_cv_string_strcasecmp" = "xyes"; then | |
12611 | cat >>confdefs.h <<\_ACEOF | |
12612 | #define HAVE_STRCASECMP_IN_STRING_H 1 | |
12613 | _ACEOF | |
12614 | ||
12615 | else | |
12616 | echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5 | |
12617 | echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6 | |
12618 | if test "${ac_cv_strings_strcasecmp+set}" = set; then | |
12619 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12620 | else | |
12621 | ||
12622 | cat >conftest.$ac_ext <<_ACEOF | |
12623 | /* confdefs.h. */ | |
12624 | _ACEOF | |
12625 | cat confdefs.h >>conftest.$ac_ext | |
12626 | cat >>conftest.$ac_ext <<_ACEOF | |
12627 | /* end confdefs.h. */ | |
12628 | ||
12629 | #include <strings.h> | |
12630 | ||
12631 | int | |
12632 | main () | |
12633 | { | |
12634 | ||
12635 | strcasecmp("foo", "bar"); | |
12636 | ||
12637 | ; | |
12638 | return 0; | |
12639 | } | |
12640 | _ACEOF | |
12641 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12642 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 12643 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 12644 | ac_status=$? |
ac1cb8d3 VS |
12645 | grep -v '^ *+' conftest.er1 >conftest.err |
12646 | rm -f conftest.er1 | |
12647 | cat conftest.err >&5 | |
a848cd7e SC |
12648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12649 | (exit $ac_status); } && | |
d51253e8 | 12650 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12652 | (eval $ac_try) 2>&5 | |
12653 | ac_status=$? | |
12654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12655 | (exit $ac_status); }; } && | |
12656 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
12657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12658 | (eval $ac_try) 2>&5 | |
12659 | ac_status=$? | |
12660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12661 | (exit $ac_status); }; }; then | |
12662 | ac_cv_strings_strcasecmp=yes | |
12663 | else | |
12664 | echo "$as_me: failed program was:" >&5 | |
12665 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12666 | ||
12667 | ac_cv_strings_strcasecmp=no | |
12668 | ||
12669 | fi | |
ac1cb8d3 VS |
12670 | rm -f conftest.err conftest.$ac_objext \ |
12671 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
12672 | |
12673 | fi | |
12674 | echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5 | |
12675 | echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6 | |
12676 | ||
0c3c69fc | 12677 | if test x"$ac_cv_strings_strcasecmp" = "xyes"; then |
a848cd7e SC |
12678 | cat >>confdefs.h <<\_ACEOF |
12679 | #define HAVE_STRCASECMP_IN_STRINGS_H 1 | |
12680 | _ACEOF | |
12681 | ||
12682 | else | |
12683 | { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5 | |
12684 | echo "$as_me: error: No case-insensitive string comparison function found." >&2;} | |
12685 | { (exit 1); exit 1; }; } | |
12686 | fi | |
12687 | fi | |
12688 | ||
12689 | ac_ext=c | |
12690 | ac_cpp='$CPP $CPPFLAGS' | |
12691 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12692 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12693 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12694 | ||
12695 | ;; | |
12696 | esac | |
12697 | ||
12698 | ||
12699 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
12700 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
12701 | if test "${ac_cv_header_stdc+set}" = set; then | |
12702 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12703 | else | |
12704 | cat >conftest.$ac_ext <<_ACEOF | |
12705 | /* confdefs.h. */ | |
12706 | _ACEOF | |
12707 | cat confdefs.h >>conftest.$ac_ext | |
12708 | cat >>conftest.$ac_ext <<_ACEOF | |
12709 | /* end confdefs.h. */ | |
12710 | #include <stdlib.h> | |
12711 | #include <stdarg.h> | |
12712 | #include <string.h> | |
12713 | #include <float.h> | |
12714 | ||
12715 | int | |
12716 | main () | |
12717 | { | |
12718 | ||
12719 | ; | |
12720 | return 0; | |
12721 | } | |
12722 | _ACEOF | |
12723 | rm -f conftest.$ac_objext | |
12724 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12725 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12726 | ac_status=$? |
ac1cb8d3 VS |
12727 | grep -v '^ *+' conftest.er1 >conftest.err |
12728 | rm -f conftest.er1 | |
12729 | cat conftest.err >&5 | |
a848cd7e SC |
12730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12731 | (exit $ac_status); } && | |
d51253e8 | 12732 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12734 | (eval $ac_try) 2>&5 | |
12735 | ac_status=$? | |
12736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12737 | (exit $ac_status); }; } && | |
12738 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12740 | (eval $ac_try) 2>&5 | |
12741 | ac_status=$? | |
12742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12743 | (exit $ac_status); }; }; then | |
12744 | ac_cv_header_stdc=yes | |
12745 | else | |
12746 | echo "$as_me: failed program was:" >&5 | |
12747 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12748 | ||
12749 | ac_cv_header_stdc=no | |
12750 | fi | |
ac1cb8d3 | 12751 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12752 | |
12753 | if test $ac_cv_header_stdc = yes; then | |
12754 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
12755 | cat >conftest.$ac_ext <<_ACEOF | |
12756 | /* confdefs.h. */ | |
12757 | _ACEOF | |
12758 | cat confdefs.h >>conftest.$ac_ext | |
12759 | cat >>conftest.$ac_ext <<_ACEOF | |
12760 | /* end confdefs.h. */ | |
12761 | #include <string.h> | |
12762 | ||
12763 | _ACEOF | |
12764 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12765 | $EGREP "memchr" >/dev/null 2>&1; then | |
12766 | : | |
12767 | else | |
12768 | ac_cv_header_stdc=no | |
12769 | fi | |
12770 | rm -f conftest* | |
12771 | ||
12772 | fi | |
12773 | ||
12774 | if test $ac_cv_header_stdc = yes; then | |
12775 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
12776 | cat >conftest.$ac_ext <<_ACEOF | |
12777 | /* confdefs.h. */ | |
12778 | _ACEOF | |
12779 | cat confdefs.h >>conftest.$ac_ext | |
12780 | cat >>conftest.$ac_ext <<_ACEOF | |
12781 | /* end confdefs.h. */ | |
12782 | #include <stdlib.h> | |
12783 | ||
12784 | _ACEOF | |
12785 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12786 | $EGREP "free" >/dev/null 2>&1; then | |
12787 | : | |
12788 | else | |
12789 | ac_cv_header_stdc=no | |
12790 | fi | |
12791 | rm -f conftest* | |
12792 | ||
12793 | fi | |
12794 | ||
12795 | if test $ac_cv_header_stdc = yes; then | |
12796 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
12797 | if test "$cross_compiling" = yes; then | |
12798 | : | |
12799 | else | |
12800 | cat >conftest.$ac_ext <<_ACEOF | |
12801 | /* confdefs.h. */ | |
12802 | _ACEOF | |
12803 | cat confdefs.h >>conftest.$ac_ext | |
12804 | cat >>conftest.$ac_ext <<_ACEOF | |
12805 | /* end confdefs.h. */ | |
12806 | #include <ctype.h> | |
12807 | #if ((' ' & 0x0FF) == 0x020) | |
12808 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
12809 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
12810 | #else | |
12811 | # define ISLOWER(c) \ | |
ac1cb8d3 VS |
12812 | (('a' <= (c) && (c) <= 'i') \ |
12813 | || ('j' <= (c) && (c) <= 'r') \ | |
12814 | || ('s' <= (c) && (c) <= 'z')) | |
a848cd7e SC |
12815 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
12816 | #endif | |
12817 | ||
12818 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
12819 | int | |
12820 | main () | |
12821 | { | |
12822 | int i; | |
12823 | for (i = 0; i < 256; i++) | |
12824 | if (XOR (islower (i), ISLOWER (i)) | |
ac1cb8d3 | 12825 | || toupper (i) != TOUPPER (i)) |
a848cd7e SC |
12826 | exit(2); |
12827 | exit (0); | |
12828 | } | |
12829 | _ACEOF | |
12830 | rm -f conftest$ac_exeext | |
12831 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12832 | (eval $ac_link) 2>&5 | |
12833 | ac_status=$? | |
12834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12835 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
12836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12837 | (eval $ac_try) 2>&5 | |
12838 | ac_status=$? | |
12839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12840 | (exit $ac_status); }; }; then | |
12841 | : | |
12842 | else | |
12843 | echo "$as_me: program exited with status $ac_status" >&5 | |
12844 | echo "$as_me: failed program was:" >&5 | |
12845 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12846 | ||
12847 | ( exit $ac_status ) | |
12848 | ac_cv_header_stdc=no | |
12849 | fi | |
ac1cb8d3 | 12850 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12851 | fi |
12852 | fi | |
12853 | fi | |
12854 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
12855 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
12856 | if test $ac_cv_header_stdc = yes; then | |
12857 | ||
12858 | cat >>confdefs.h <<\_ACEOF | |
12859 | #define STDC_HEADERS 1 | |
12860 | _ACEOF | |
12861 | ||
12862 | fi | |
12863 | ||
12864 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
12865 | ||
12866 | ||
12867 | ||
12868 | ||
12869 | ||
12870 | ||
12871 | ||
12872 | ||
12873 | ||
12874 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
ac1cb8d3 | 12875 | inttypes.h stdint.h unistd.h |
a848cd7e SC |
12876 | do |
12877 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12878 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12879 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12880 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12881 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12882 | else | |
12883 | cat >conftest.$ac_ext <<_ACEOF | |
12884 | /* confdefs.h. */ | |
12885 | _ACEOF | |
12886 | cat confdefs.h >>conftest.$ac_ext | |
12887 | cat >>conftest.$ac_ext <<_ACEOF | |
12888 | /* end confdefs.h. */ | |
12889 | $ac_includes_default | |
12890 | ||
12891 | #include <$ac_header> | |
12892 | _ACEOF | |
12893 | rm -f conftest.$ac_objext | |
12894 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12895 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12896 | ac_status=$? |
ac1cb8d3 VS |
12897 | grep -v '^ *+' conftest.er1 >conftest.err |
12898 | rm -f conftest.er1 | |
12899 | cat conftest.err >&5 | |
a848cd7e SC |
12900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12901 | (exit $ac_status); } && | |
d51253e8 | 12902 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12904 | (eval $ac_try) 2>&5 | |
12905 | ac_status=$? | |
12906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12907 | (exit $ac_status); }; } && | |
12908 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12910 | (eval $ac_try) 2>&5 | |
12911 | ac_status=$? | |
12912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12913 | (exit $ac_status); }; }; then | |
12914 | eval "$as_ac_Header=yes" | |
12915 | else | |
12916 | echo "$as_me: failed program was:" >&5 | |
12917 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12918 | ||
12919 | eval "$as_ac_Header=no" | |
12920 | fi | |
ac1cb8d3 | 12921 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12922 | fi |
12923 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12924 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12925 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12926 | cat >>confdefs.h <<_ACEOF | |
12927 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12928 | _ACEOF | |
12929 | ||
12930 | fi | |
12931 | ||
12932 | done | |
12933 | ||
12934 | ||
12935 | ||
12936 | for ac_header in stdlib.h | |
12937 | do | |
12938 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12939 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12940 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12941 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12942 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12943 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12944 | fi | |
12945 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12946 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12947 | else | |
12948 | # Is the header compilable? | |
12949 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12950 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12951 | cat >conftest.$ac_ext <<_ACEOF | |
12952 | /* confdefs.h. */ | |
12953 | _ACEOF | |
12954 | cat confdefs.h >>conftest.$ac_ext | |
12955 | cat >>conftest.$ac_ext <<_ACEOF | |
12956 | /* end confdefs.h. */ | |
12957 | $ac_includes_default | |
12958 | #include <$ac_header> | |
12959 | _ACEOF | |
12960 | rm -f conftest.$ac_objext | |
12961 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12962 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12963 | ac_status=$? |
ac1cb8d3 VS |
12964 | grep -v '^ *+' conftest.er1 >conftest.err |
12965 | rm -f conftest.er1 | |
12966 | cat conftest.err >&5 | |
a848cd7e SC |
12967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12968 | (exit $ac_status); } && | |
d51253e8 | 12969 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12971 | (eval $ac_try) 2>&5 | |
12972 | ac_status=$? | |
12973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12974 | (exit $ac_status); }; } && | |
12975 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12977 | (eval $ac_try) 2>&5 | |
12978 | ac_status=$? | |
12979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12980 | (exit $ac_status); }; }; then | |
12981 | ac_header_compiler=yes | |
12982 | else | |
12983 | echo "$as_me: failed program was:" >&5 | |
12984 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12985 | ||
12986 | ac_header_compiler=no | |
12987 | fi | |
ac1cb8d3 | 12988 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12989 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12990 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12991 | ||
12992 | # Is the header present? | |
12993 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12994 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12995 | cat >conftest.$ac_ext <<_ACEOF | |
12996 | /* confdefs.h. */ | |
12997 | _ACEOF | |
12998 | cat confdefs.h >>conftest.$ac_ext | |
12999 | cat >>conftest.$ac_ext <<_ACEOF | |
13000 | /* end confdefs.h. */ | |
13001 | #include <$ac_header> | |
13002 | _ACEOF | |
13003 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13004 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13005 | ac_status=$? | |
13006 | grep -v '^ *+' conftest.er1 >conftest.err | |
13007 | rm -f conftest.er1 | |
13008 | cat conftest.err >&5 | |
13009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13010 | (exit $ac_status); } >/dev/null; then | |
13011 | if test -s conftest.err; then | |
13012 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13013 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13014 | else |
13015 | ac_cpp_err= | |
13016 | fi | |
13017 | else | |
13018 | ac_cpp_err=yes | |
13019 | fi | |
13020 | if test -z "$ac_cpp_err"; then | |
13021 | ac_header_preproc=yes | |
13022 | else | |
13023 | echo "$as_me: failed program was:" >&5 | |
13024 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13025 | ||
13026 | ac_header_preproc=no | |
13027 | fi | |
13028 | rm -f conftest.err conftest.$ac_ext | |
13029 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13030 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13031 | ||
13032 | # So? What about this header? | |
ac1cb8d3 VS |
13033 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13034 | yes:no: ) | |
a848cd7e SC |
13035 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13036 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13037 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13038 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13039 | ac_header_preproc=yes | |
a848cd7e | 13040 | ;; |
ac1cb8d3 | 13041 | no:yes:* ) |
a848cd7e SC |
13042 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13043 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13044 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13045 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13046 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13047 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13048 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13049 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13050 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13051 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13052 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13053 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13054 | ( |
13055 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13056 | ## ----------------------------------------- ## |
13057 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13058 | ## ----------------------------------------- ## | |
a848cd7e SC |
13059 | _ASBOX |
13060 | ) | | |
13061 | sed "s/^/$as_me: WARNING: /" >&2 | |
13062 | ;; | |
13063 | esac | |
13064 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13065 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13066 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13067 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13068 | else | |
ac1cb8d3 | 13069 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13070 | fi |
13071 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13072 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13073 | ||
13074 | fi | |
13075 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13076 | cat >>confdefs.h <<_ACEOF | |
13077 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13078 | _ACEOF | |
13079 | ||
13080 | fi | |
13081 | ||
13082 | done | |
13083 | ||
13084 | ||
13085 | for ac_header in malloc.h | |
13086 | do | |
13087 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13088 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13089 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13090 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13091 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13092 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13093 | fi | |
13094 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13095 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13096 | else | |
13097 | # Is the header compilable? | |
13098 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13099 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13100 | cat >conftest.$ac_ext <<_ACEOF | |
13101 | /* confdefs.h. */ | |
13102 | _ACEOF | |
13103 | cat confdefs.h >>conftest.$ac_ext | |
13104 | cat >>conftest.$ac_ext <<_ACEOF | |
13105 | /* end confdefs.h. */ | |
13106 | $ac_includes_default | |
13107 | #include <$ac_header> | |
13108 | _ACEOF | |
13109 | rm -f conftest.$ac_objext | |
13110 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13111 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13112 | ac_status=$? |
ac1cb8d3 VS |
13113 | grep -v '^ *+' conftest.er1 >conftest.err |
13114 | rm -f conftest.er1 | |
13115 | cat conftest.err >&5 | |
a848cd7e SC |
13116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13117 | (exit $ac_status); } && | |
d51253e8 | 13118 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13120 | (eval $ac_try) 2>&5 | |
13121 | ac_status=$? | |
13122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13123 | (exit $ac_status); }; } && | |
13124 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13126 | (eval $ac_try) 2>&5 | |
13127 | ac_status=$? | |
13128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13129 | (exit $ac_status); }; }; then | |
13130 | ac_header_compiler=yes | |
13131 | else | |
13132 | echo "$as_me: failed program was:" >&5 | |
13133 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13134 | ||
13135 | ac_header_compiler=no | |
13136 | fi | |
ac1cb8d3 | 13137 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13138 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13139 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13140 | ||
13141 | # Is the header present? | |
13142 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13143 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13144 | cat >conftest.$ac_ext <<_ACEOF | |
13145 | /* confdefs.h. */ | |
13146 | _ACEOF | |
13147 | cat confdefs.h >>conftest.$ac_ext | |
13148 | cat >>conftest.$ac_ext <<_ACEOF | |
13149 | /* end confdefs.h. */ | |
13150 | #include <$ac_header> | |
13151 | _ACEOF | |
13152 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13153 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13154 | ac_status=$? | |
13155 | grep -v '^ *+' conftest.er1 >conftest.err | |
13156 | rm -f conftest.er1 | |
13157 | cat conftest.err >&5 | |
13158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13159 | (exit $ac_status); } >/dev/null; then | |
13160 | if test -s conftest.err; then | |
13161 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13162 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13163 | else |
13164 | ac_cpp_err= | |
13165 | fi | |
13166 | else | |
13167 | ac_cpp_err=yes | |
13168 | fi | |
13169 | if test -z "$ac_cpp_err"; then | |
13170 | ac_header_preproc=yes | |
13171 | else | |
13172 | echo "$as_me: failed program was:" >&5 | |
13173 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13174 | ||
13175 | ac_header_preproc=no | |
13176 | fi | |
13177 | rm -f conftest.err conftest.$ac_ext | |
13178 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13179 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13180 | ||
13181 | # So? What about this header? | |
ac1cb8d3 VS |
13182 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13183 | yes:no: ) | |
a848cd7e SC |
13184 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13185 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13186 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13187 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13188 | ac_header_preproc=yes | |
a848cd7e | 13189 | ;; |
ac1cb8d3 | 13190 | no:yes:* ) |
a848cd7e SC |
13191 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13192 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13193 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13194 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13195 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13196 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13197 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13198 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13199 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13200 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13201 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13202 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13203 | ( |
13204 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13205 | ## ----------------------------------------- ## |
13206 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13207 | ## ----------------------------------------- ## | |
a848cd7e SC |
13208 | _ASBOX |
13209 | ) | | |
13210 | sed "s/^/$as_me: WARNING: /" >&2 | |
13211 | ;; | |
13212 | esac | |
13213 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13214 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13215 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13216 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13217 | else | |
ac1cb8d3 | 13218 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13219 | fi |
13220 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13221 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13222 | ||
13223 | fi | |
13224 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13225 | cat >>confdefs.h <<_ACEOF | |
13226 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13227 | _ACEOF | |
13228 | ||
13229 | fi | |
13230 | ||
13231 | done | |
13232 | ||
13233 | ||
13234 | for ac_header in unistd.h | |
13235 | do | |
13236 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13237 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13238 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13239 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13240 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13241 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13242 | fi | |
13243 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13244 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13245 | else | |
13246 | # Is the header compilable? | |
13247 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13248 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13249 | cat >conftest.$ac_ext <<_ACEOF | |
13250 | /* confdefs.h. */ | |
13251 | _ACEOF | |
13252 | cat confdefs.h >>conftest.$ac_ext | |
13253 | cat >>conftest.$ac_ext <<_ACEOF | |
13254 | /* end confdefs.h. */ | |
13255 | $ac_includes_default | |
13256 | #include <$ac_header> | |
13257 | _ACEOF | |
13258 | rm -f conftest.$ac_objext | |
13259 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13260 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13261 | ac_status=$? |
ac1cb8d3 VS |
13262 | grep -v '^ *+' conftest.er1 >conftest.err |
13263 | rm -f conftest.er1 | |
13264 | cat conftest.err >&5 | |
a848cd7e SC |
13265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13266 | (exit $ac_status); } && | |
d51253e8 | 13267 | { ac_try='test -z "$ac_c_werror_flag" || 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_objext' | |
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_header_compiler=yes | |
13280 | else | |
13281 | echo "$as_me: failed program was:" >&5 | |
13282 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13283 | ||
13284 | ac_header_compiler=no | |
13285 | fi | |
ac1cb8d3 | 13286 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13287 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13288 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13289 | ||
13290 | # Is the header present? | |
13291 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13292 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13293 | cat >conftest.$ac_ext <<_ACEOF | |
13294 | /* confdefs.h. */ | |
13295 | _ACEOF | |
13296 | cat confdefs.h >>conftest.$ac_ext | |
13297 | cat >>conftest.$ac_ext <<_ACEOF | |
13298 | /* end confdefs.h. */ | |
13299 | #include <$ac_header> | |
13300 | _ACEOF | |
13301 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13302 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13303 | ac_status=$? | |
13304 | grep -v '^ *+' conftest.er1 >conftest.err | |
13305 | rm -f conftest.er1 | |
13306 | cat conftest.err >&5 | |
13307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13308 | (exit $ac_status); } >/dev/null; then | |
13309 | if test -s conftest.err; then | |
13310 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13311 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13312 | else |
13313 | ac_cpp_err= | |
13314 | fi | |
13315 | else | |
13316 | ac_cpp_err=yes | |
13317 | fi | |
13318 | if test -z "$ac_cpp_err"; then | |
13319 | ac_header_preproc=yes | |
13320 | else | |
13321 | echo "$as_me: failed program was:" >&5 | |
13322 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13323 | ||
13324 | ac_header_preproc=no | |
13325 | fi | |
13326 | rm -f conftest.err conftest.$ac_ext | |
13327 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13328 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13329 | ||
13330 | # So? What about this header? | |
ac1cb8d3 VS |
13331 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13332 | yes:no: ) | |
a848cd7e SC |
13333 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13334 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13335 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13336 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13337 | ac_header_preproc=yes | |
a848cd7e | 13338 | ;; |
ac1cb8d3 | 13339 | no:yes:* ) |
a848cd7e SC |
13340 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13341 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13342 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13343 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13344 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13345 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13346 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13347 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13348 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13349 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13350 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13351 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13352 | ( |
13353 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13354 | ## ----------------------------------------- ## |
13355 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13356 | ## ----------------------------------------- ## | |
a848cd7e SC |
13357 | _ASBOX |
13358 | ) | | |
13359 | sed "s/^/$as_me: WARNING: /" >&2 | |
13360 | ;; | |
13361 | esac | |
13362 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13363 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13364 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13365 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13366 | else | |
ac1cb8d3 | 13367 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13368 | fi |
13369 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13370 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13371 | ||
13372 | fi | |
13373 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13374 | cat >>confdefs.h <<_ACEOF | |
13375 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13376 | _ACEOF | |
13377 | ||
13378 | fi | |
13379 | ||
13380 | done | |
13381 | ||
13382 | ||
13383 | for ac_header in wchar.h | |
13384 | do | |
13385 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13386 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13387 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13388 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13389 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13390 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13391 | fi | |
13392 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13393 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13394 | else | |
13395 | # Is the header compilable? | |
13396 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13397 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13398 | cat >conftest.$ac_ext <<_ACEOF | |
13399 | /* confdefs.h. */ | |
13400 | _ACEOF | |
13401 | cat confdefs.h >>conftest.$ac_ext | |
13402 | cat >>conftest.$ac_ext <<_ACEOF | |
13403 | /* end confdefs.h. */ | |
13404 | $ac_includes_default | |
13405 | #include <$ac_header> | |
13406 | _ACEOF | |
13407 | rm -f conftest.$ac_objext | |
13408 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13409 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13410 | ac_status=$? |
ac1cb8d3 VS |
13411 | grep -v '^ *+' conftest.er1 >conftest.err |
13412 | rm -f conftest.er1 | |
13413 | cat conftest.err >&5 | |
a848cd7e SC |
13414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13415 | (exit $ac_status); } && | |
d51253e8 | 13416 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13418 | (eval $ac_try) 2>&5 | |
13419 | ac_status=$? | |
13420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13421 | (exit $ac_status); }; } && | |
13422 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13424 | (eval $ac_try) 2>&5 | |
13425 | ac_status=$? | |
13426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13427 | (exit $ac_status); }; }; then | |
13428 | ac_header_compiler=yes | |
13429 | else | |
13430 | echo "$as_me: failed program was:" >&5 | |
13431 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13432 | ||
13433 | ac_header_compiler=no | |
13434 | fi | |
ac1cb8d3 | 13435 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13436 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13437 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13438 | ||
13439 | # Is the header present? | |
13440 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13441 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13442 | cat >conftest.$ac_ext <<_ACEOF | |
13443 | /* confdefs.h. */ | |
13444 | _ACEOF | |
13445 | cat confdefs.h >>conftest.$ac_ext | |
13446 | cat >>conftest.$ac_ext <<_ACEOF | |
13447 | /* end confdefs.h. */ | |
13448 | #include <$ac_header> | |
13449 | _ACEOF | |
13450 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13451 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13452 | ac_status=$? | |
13453 | grep -v '^ *+' conftest.er1 >conftest.err | |
13454 | rm -f conftest.er1 | |
13455 | cat conftest.err >&5 | |
13456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13457 | (exit $ac_status); } >/dev/null; then | |
13458 | if test -s conftest.err; then | |
13459 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13460 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13461 | else |
13462 | ac_cpp_err= | |
13463 | fi | |
13464 | else | |
13465 | ac_cpp_err=yes | |
13466 | fi | |
13467 | if test -z "$ac_cpp_err"; then | |
13468 | ac_header_preproc=yes | |
13469 | else | |
13470 | echo "$as_me: failed program was:" >&5 | |
13471 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13472 | ||
13473 | ac_header_preproc=no | |
13474 | fi | |
13475 | rm -f conftest.err conftest.$ac_ext | |
13476 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13477 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13478 | ||
13479 | # So? What about this header? | |
ac1cb8d3 VS |
13480 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13481 | yes:no: ) | |
a848cd7e SC |
13482 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13483 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13484 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13485 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13486 | ac_header_preproc=yes | |
a848cd7e | 13487 | ;; |
ac1cb8d3 | 13488 | no:yes:* ) |
a848cd7e SC |
13489 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13490 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13491 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13492 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13493 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13494 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13495 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13496 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13497 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13498 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13499 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13500 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13501 | ( |
13502 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13503 | ## ----------------------------------------- ## |
13504 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13505 | ## ----------------------------------------- ## | |
a848cd7e SC |
13506 | _ASBOX |
13507 | ) | | |
13508 | sed "s/^/$as_me: WARNING: /" >&2 | |
13509 | ;; | |
13510 | esac | |
13511 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13512 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13513 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13514 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13515 | else | |
ac1cb8d3 | 13516 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13517 | fi |
13518 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13519 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13520 | ||
13521 | fi | |
13522 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13523 | cat >>confdefs.h <<_ACEOF | |
13524 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13525 | _ACEOF | |
13526 | ||
13527 | fi | |
13528 | ||
13529 | done | |
13530 | ||
13531 | ||
13532 | if test "$ac_cv_header_wchar_h" != "yes"; then | |
13533 | ||
13534 | for ac_header in wcstr.h | |
13535 | do | |
13536 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13537 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13538 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13539 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13540 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13541 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13542 | fi | |
13543 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13544 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13545 | else | |
13546 | # Is the header compilable? | |
13547 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13548 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13549 | cat >conftest.$ac_ext <<_ACEOF | |
13550 | /* confdefs.h. */ | |
13551 | _ACEOF | |
13552 | cat confdefs.h >>conftest.$ac_ext | |
13553 | cat >>conftest.$ac_ext <<_ACEOF | |
13554 | /* end confdefs.h. */ | |
13555 | $ac_includes_default | |
13556 | #include <$ac_header> | |
13557 | _ACEOF | |
13558 | rm -f conftest.$ac_objext | |
13559 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13560 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13561 | ac_status=$? |
ac1cb8d3 VS |
13562 | grep -v '^ *+' conftest.er1 >conftest.err |
13563 | rm -f conftest.er1 | |
13564 | cat conftest.err >&5 | |
a848cd7e SC |
13565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13566 | (exit $ac_status); } && | |
d51253e8 | 13567 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13569 | (eval $ac_try) 2>&5 | |
13570 | ac_status=$? | |
13571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13572 | (exit $ac_status); }; } && | |
13573 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13575 | (eval $ac_try) 2>&5 | |
13576 | ac_status=$? | |
13577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13578 | (exit $ac_status); }; }; then | |
13579 | ac_header_compiler=yes | |
13580 | else | |
13581 | echo "$as_me: failed program was:" >&5 | |
13582 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13583 | ||
13584 | ac_header_compiler=no | |
13585 | fi | |
ac1cb8d3 | 13586 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13587 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13588 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13589 | ||
13590 | # Is the header present? | |
13591 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13592 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13593 | cat >conftest.$ac_ext <<_ACEOF | |
13594 | /* confdefs.h. */ | |
13595 | _ACEOF | |
13596 | cat confdefs.h >>conftest.$ac_ext | |
13597 | cat >>conftest.$ac_ext <<_ACEOF | |
13598 | /* end confdefs.h. */ | |
13599 | #include <$ac_header> | |
13600 | _ACEOF | |
13601 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13602 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13603 | ac_status=$? | |
13604 | grep -v '^ *+' conftest.er1 >conftest.err | |
13605 | rm -f conftest.er1 | |
13606 | cat conftest.err >&5 | |
13607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13608 | (exit $ac_status); } >/dev/null; then | |
13609 | if test -s conftest.err; then | |
13610 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13611 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13612 | else |
13613 | ac_cpp_err= | |
13614 | fi | |
13615 | else | |
13616 | ac_cpp_err=yes | |
13617 | fi | |
13618 | if test -z "$ac_cpp_err"; then | |
13619 | ac_header_preproc=yes | |
13620 | else | |
13621 | echo "$as_me: failed program was:" >&5 | |
13622 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13623 | ||
13624 | ac_header_preproc=no | |
13625 | fi | |
13626 | rm -f conftest.err conftest.$ac_ext | |
13627 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13628 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13629 | ||
13630 | # So? What about this header? | |
ac1cb8d3 VS |
13631 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13632 | yes:no: ) | |
a848cd7e SC |
13633 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13634 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13635 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13636 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13637 | ac_header_preproc=yes | |
a848cd7e | 13638 | ;; |
ac1cb8d3 | 13639 | no:yes:* ) |
a848cd7e SC |
13640 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13641 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13642 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13643 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13644 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13645 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13646 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13647 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13648 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13649 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13650 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13651 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13652 | ( |
13653 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13654 | ## ----------------------------------------- ## |
13655 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13656 | ## ----------------------------------------- ## | |
a848cd7e SC |
13657 | _ASBOX |
13658 | ) | | |
13659 | sed "s/^/$as_me: WARNING: /" >&2 | |
13660 | ;; | |
13661 | esac | |
13662 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13663 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13664 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13665 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13666 | else | |
ac1cb8d3 | 13667 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13668 | fi |
13669 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13670 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13671 | ||
13672 | fi | |
13673 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13674 | cat >>confdefs.h <<_ACEOF | |
13675 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13676 | _ACEOF | |
13677 | ||
13678 | fi | |
13679 | ||
13680 | done | |
13681 | ||
13682 | fi | |
13683 | ||
13684 | ||
13685 | for ac_header in fnmatch.h | |
13686 | do | |
13687 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13688 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13689 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13690 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13691 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13692 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13693 | fi | |
13694 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13695 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13696 | else | |
13697 | # Is the header compilable? | |
13698 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13699 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13700 | cat >conftest.$ac_ext <<_ACEOF | |
13701 | /* confdefs.h. */ | |
13702 | _ACEOF | |
13703 | cat confdefs.h >>conftest.$ac_ext | |
13704 | cat >>conftest.$ac_ext <<_ACEOF | |
13705 | /* end confdefs.h. */ | |
13706 | $ac_includes_default | |
13707 | #include <$ac_header> | |
13708 | _ACEOF | |
13709 | rm -f conftest.$ac_objext | |
13710 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13711 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13712 | ac_status=$? |
ac1cb8d3 VS |
13713 | grep -v '^ *+' conftest.er1 >conftest.err |
13714 | rm -f conftest.er1 | |
13715 | cat conftest.err >&5 | |
a848cd7e SC |
13716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13717 | (exit $ac_status); } && | |
d51253e8 | 13718 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13720 | (eval $ac_try) 2>&5 | |
13721 | ac_status=$? | |
13722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13723 | (exit $ac_status); }; } && | |
13724 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13726 | (eval $ac_try) 2>&5 | |
13727 | ac_status=$? | |
13728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13729 | (exit $ac_status); }; }; then | |
13730 | ac_header_compiler=yes | |
13731 | else | |
13732 | echo "$as_me: failed program was:" >&5 | |
13733 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13734 | ||
13735 | ac_header_compiler=no | |
13736 | fi | |
ac1cb8d3 | 13737 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13738 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13739 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13740 | ||
13741 | # Is the header present? | |
13742 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13743 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13744 | cat >conftest.$ac_ext <<_ACEOF | |
13745 | /* confdefs.h. */ | |
13746 | _ACEOF | |
13747 | cat confdefs.h >>conftest.$ac_ext | |
13748 | cat >>conftest.$ac_ext <<_ACEOF | |
13749 | /* end confdefs.h. */ | |
13750 | #include <$ac_header> | |
13751 | _ACEOF | |
13752 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13753 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13754 | ac_status=$? | |
13755 | grep -v '^ *+' conftest.er1 >conftest.err | |
13756 | rm -f conftest.er1 | |
13757 | cat conftest.err >&5 | |
13758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13759 | (exit $ac_status); } >/dev/null; then | |
13760 | if test -s conftest.err; then | |
13761 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13762 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13763 | else |
13764 | ac_cpp_err= | |
13765 | fi | |
13766 | else | |
13767 | ac_cpp_err=yes | |
13768 | fi | |
13769 | if test -z "$ac_cpp_err"; then | |
13770 | ac_header_preproc=yes | |
13771 | else | |
13772 | echo "$as_me: failed program was:" >&5 | |
13773 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13774 | ||
13775 | ac_header_preproc=no | |
13776 | fi | |
13777 | rm -f conftest.err conftest.$ac_ext | |
13778 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13779 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13780 | ||
13781 | # So? What about this header? | |
ac1cb8d3 VS |
13782 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13783 | yes:no: ) | |
a848cd7e SC |
13784 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13785 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13786 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13787 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13788 | ac_header_preproc=yes | |
a848cd7e | 13789 | ;; |
ac1cb8d3 | 13790 | no:yes:* ) |
a848cd7e SC |
13791 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13792 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13793 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13794 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13795 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13796 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13797 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13798 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13799 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13800 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13801 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13802 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13803 | ( |
13804 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13805 | ## ----------------------------------------- ## |
13806 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13807 | ## ----------------------------------------- ## | |
a848cd7e SC |
13808 | _ASBOX |
13809 | ) | | |
13810 | sed "s/^/$as_me: WARNING: /" >&2 | |
13811 | ;; | |
13812 | esac | |
13813 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13814 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13815 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13816 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13817 | else | |
ac1cb8d3 | 13818 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13819 | fi |
13820 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13821 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13822 | ||
13823 | fi | |
13824 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13825 | cat >>confdefs.h <<_ACEOF | |
13826 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13827 | _ACEOF | |
13828 | ||
13829 | fi | |
13830 | ||
13831 | done | |
13832 | ||
13833 | ||
13834 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then | |
13835 | ||
13836 | for ac_func in fnmatch | |
13837 | do | |
13838 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13839 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13840 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
13841 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
13842 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13843 | else | |
13844 | cat >conftest.$ac_ext <<_ACEOF | |
13845 | /* confdefs.h. */ | |
13846 | _ACEOF | |
13847 | cat confdefs.h >>conftest.$ac_ext | |
13848 | cat >>conftest.$ac_ext <<_ACEOF | |
13849 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
13850 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
13851 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13852 | #define $ac_func innocuous_$ac_func | |
13853 | ||
a848cd7e SC |
13854 | /* System header to define __stub macros and hopefully few prototypes, |
13855 | which can conflict with char $ac_func (); below. | |
13856 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13857 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 13858 | |
a848cd7e SC |
13859 | #ifdef __STDC__ |
13860 | # include <limits.h> | |
13861 | #else | |
13862 | # include <assert.h> | |
13863 | #endif | |
ac1cb8d3 VS |
13864 | |
13865 | #undef $ac_func | |
13866 | ||
a848cd7e SC |
13867 | /* Override any gcc2 internal prototype to avoid an error. */ |
13868 | #ifdef __cplusplus | |
13869 | extern "C" | |
13870 | { | |
13871 | #endif | |
13872 | /* We use char because int might match the return type of a gcc2 | |
13873 | builtin and then its argument prototype would still apply. */ | |
13874 | char $ac_func (); | |
13875 | /* The GNU C library defines this for functions which it implements | |
13876 | to always fail with ENOSYS. Some functions are actually named | |
13877 | something starting with __ and the normal name is an alias. */ | |
13878 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13879 | choke me | |
13880 | #else | |
13881 | char (*f) () = $ac_func; | |
13882 | #endif | |
13883 | #ifdef __cplusplus | |
13884 | } | |
13885 | #endif | |
13886 | ||
13887 | int | |
13888 | main () | |
13889 | { | |
13890 | return f != $ac_func; | |
13891 | ; | |
13892 | return 0; | |
13893 | } | |
13894 | _ACEOF | |
13895 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13896 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 13897 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 13898 | ac_status=$? |
ac1cb8d3 VS |
13899 | grep -v '^ *+' conftest.er1 >conftest.err |
13900 | rm -f conftest.er1 | |
13901 | cat conftest.err >&5 | |
a848cd7e SC |
13902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13903 | (exit $ac_status); } && | |
d51253e8 | 13904 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13906 | (eval $ac_try) 2>&5 | |
13907 | ac_status=$? | |
13908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13909 | (exit $ac_status); }; } && | |
13910 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
13911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13912 | (eval $ac_try) 2>&5 | |
13913 | ac_status=$? | |
13914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13915 | (exit $ac_status); }; }; then | |
13916 | eval "$as_ac_var=yes" | |
13917 | else | |
13918 | echo "$as_me: failed program was:" >&5 | |
13919 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13920 | ||
13921 | eval "$as_ac_var=no" | |
13922 | fi | |
ac1cb8d3 VS |
13923 | rm -f conftest.err conftest.$ac_objext \ |
13924 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
13925 | fi |
13926 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
13927 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
13928 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
13929 | cat >>confdefs.h <<_ACEOF | |
13930 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13931 | _ACEOF | |
13932 | ||
13933 | fi | |
13934 | done | |
13935 | ||
13936 | fi | |
13937 | ||
13938 | ||
13939 | for ac_header in langinfo.h | |
13940 | do | |
13941 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13942 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13943 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13944 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13945 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13946 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13947 | fi | |
13948 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13949 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13950 | else | |
13951 | # Is the header compilable? | |
13952 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13953 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13954 | cat >conftest.$ac_ext <<_ACEOF | |
13955 | /* confdefs.h. */ | |
13956 | _ACEOF | |
13957 | cat confdefs.h >>conftest.$ac_ext | |
13958 | cat >>conftest.$ac_ext <<_ACEOF | |
13959 | /* end confdefs.h. */ | |
13960 | $ac_includes_default | |
13961 | #include <$ac_header> | |
13962 | _ACEOF | |
13963 | rm -f conftest.$ac_objext | |
13964 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13965 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13966 | ac_status=$? |
ac1cb8d3 VS |
13967 | grep -v '^ *+' conftest.er1 >conftest.err |
13968 | rm -f conftest.er1 | |
13969 | cat conftest.err >&5 | |
a848cd7e SC |
13970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13971 | (exit $ac_status); } && | |
d51253e8 | 13972 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13974 | (eval $ac_try) 2>&5 | |
13975 | ac_status=$? | |
13976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13977 | (exit $ac_status); }; } && | |
13978 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13980 | (eval $ac_try) 2>&5 | |
13981 | ac_status=$? | |
13982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13983 | (exit $ac_status); }; }; then | |
13984 | ac_header_compiler=yes | |
13985 | else | |
13986 | echo "$as_me: failed program was:" >&5 | |
13987 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13988 | ||
13989 | ac_header_compiler=no | |
13990 | fi | |
ac1cb8d3 | 13991 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13992 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13993 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13994 | ||
13995 | # Is the header present? | |
13996 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13997 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13998 | cat >conftest.$ac_ext <<_ACEOF | |
13999 | /* confdefs.h. */ | |
14000 | _ACEOF | |
14001 | cat confdefs.h >>conftest.$ac_ext | |
14002 | cat >>conftest.$ac_ext <<_ACEOF | |
14003 | /* end confdefs.h. */ | |
14004 | #include <$ac_header> | |
14005 | _ACEOF | |
14006 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14007 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14008 | ac_status=$? | |
14009 | grep -v '^ *+' conftest.er1 >conftest.err | |
14010 | rm -f conftest.er1 | |
14011 | cat conftest.err >&5 | |
14012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14013 | (exit $ac_status); } >/dev/null; then | |
14014 | if test -s conftest.err; then | |
14015 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14016 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14017 | else |
14018 | ac_cpp_err= | |
14019 | fi | |
14020 | else | |
14021 | ac_cpp_err=yes | |
14022 | fi | |
14023 | if test -z "$ac_cpp_err"; then | |
14024 | ac_header_preproc=yes | |
14025 | else | |
14026 | echo "$as_me: failed program was:" >&5 | |
14027 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14028 | ||
14029 | ac_header_preproc=no | |
14030 | fi | |
14031 | rm -f conftest.err conftest.$ac_ext | |
14032 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14033 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14034 | ||
14035 | # So? What about this header? | |
ac1cb8d3 VS |
14036 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14037 | yes:no: ) | |
a848cd7e SC |
14038 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14039 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14040 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14041 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14042 | ac_header_preproc=yes | |
a848cd7e | 14043 | ;; |
ac1cb8d3 | 14044 | no:yes:* ) |
a848cd7e SC |
14045 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14046 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14047 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14048 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14049 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14050 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14051 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14052 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14053 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14054 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14055 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14056 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14057 | ( |
14058 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14059 | ## ----------------------------------------- ## |
14060 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14061 | ## ----------------------------------------- ## | |
a848cd7e SC |
14062 | _ASBOX |
14063 | ) | | |
14064 | sed "s/^/$as_me: WARNING: /" >&2 | |
14065 | ;; | |
14066 | esac | |
14067 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14068 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14069 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14070 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14071 | else | |
ac1cb8d3 | 14072 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14073 | fi |
14074 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14075 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14076 | ||
14077 | fi | |
14078 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14079 | cat >>confdefs.h <<_ACEOF | |
14080 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14081 | _ACEOF | |
14082 | ||
14083 | fi | |
14084 | ||
14085 | done | |
14086 | ||
14087 | ||
14088 | case "${host}" in | |
14089 | *-pc-os2_emx | *-pc-os2-emx ) | |
14090 | if test $ac_cv_header_langinfo_h = "yes"; then | |
14091 | LIBS="$LIBS -lintl" | |
14092 | fi | |
14093 | ;; | |
14094 | esac | |
14095 | ||
14096 | if test "$wxUSE_GUI" = "yes"; then | |
14097 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then | |
14098 | ||
14099 | for ac_header in X11/Xlib.h | |
14100 | do | |
14101 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14102 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14103 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14104 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14105 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14106 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14107 | fi | |
14108 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14109 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14110 | else | |
14111 | # Is the header compilable? | |
14112 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14113 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14114 | cat >conftest.$ac_ext <<_ACEOF | |
14115 | /* confdefs.h. */ | |
14116 | _ACEOF | |
14117 | cat confdefs.h >>conftest.$ac_ext | |
14118 | cat >>conftest.$ac_ext <<_ACEOF | |
14119 | /* end confdefs.h. */ | |
14120 | $ac_includes_default | |
14121 | #include <$ac_header> | |
14122 | _ACEOF | |
14123 | rm -f conftest.$ac_objext | |
14124 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14125 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14126 | ac_status=$? |
ac1cb8d3 VS |
14127 | grep -v '^ *+' conftest.er1 >conftest.err |
14128 | rm -f conftest.er1 | |
14129 | cat conftest.err >&5 | |
a848cd7e SC |
14130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14131 | (exit $ac_status); } && | |
d51253e8 | 14132 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14134 | (eval $ac_try) 2>&5 | |
14135 | ac_status=$? | |
14136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14137 | (exit $ac_status); }; } && | |
14138 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14140 | (eval $ac_try) 2>&5 | |
14141 | ac_status=$? | |
14142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14143 | (exit $ac_status); }; }; then | |
14144 | ac_header_compiler=yes | |
14145 | else | |
14146 | echo "$as_me: failed program was:" >&5 | |
14147 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14148 | ||
14149 | ac_header_compiler=no | |
14150 | fi | |
ac1cb8d3 | 14151 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14152 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14153 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14154 | ||
14155 | # Is the header present? | |
14156 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14157 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14158 | cat >conftest.$ac_ext <<_ACEOF | |
14159 | /* confdefs.h. */ | |
14160 | _ACEOF | |
14161 | cat confdefs.h >>conftest.$ac_ext | |
14162 | cat >>conftest.$ac_ext <<_ACEOF | |
14163 | /* end confdefs.h. */ | |
14164 | #include <$ac_header> | |
14165 | _ACEOF | |
14166 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14167 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14168 | ac_status=$? | |
14169 | grep -v '^ *+' conftest.er1 >conftest.err | |
14170 | rm -f conftest.er1 | |
14171 | cat conftest.err >&5 | |
14172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14173 | (exit $ac_status); } >/dev/null; then | |
14174 | if test -s conftest.err; then | |
14175 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14176 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14177 | else |
14178 | ac_cpp_err= | |
14179 | fi | |
14180 | else | |
14181 | ac_cpp_err=yes | |
14182 | fi | |
14183 | if test -z "$ac_cpp_err"; then | |
14184 | ac_header_preproc=yes | |
14185 | else | |
14186 | echo "$as_me: failed program was:" >&5 | |
14187 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14188 | ||
14189 | ac_header_preproc=no | |
14190 | fi | |
14191 | rm -f conftest.err conftest.$ac_ext | |
14192 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14193 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14194 | ||
14195 | # So? What about this header? | |
ac1cb8d3 VS |
14196 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14197 | yes:no: ) | |
a848cd7e SC |
14198 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14199 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14200 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14201 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14202 | ac_header_preproc=yes | |
a848cd7e | 14203 | ;; |
ac1cb8d3 | 14204 | no:yes:* ) |
a848cd7e SC |
14205 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14206 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14207 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14208 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14209 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14210 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14211 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14212 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14213 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14214 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14215 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14216 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14217 | ( |
14218 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14219 | ## ----------------------------------------- ## |
14220 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14221 | ## ----------------------------------------- ## | |
a848cd7e SC |
14222 | _ASBOX |
14223 | ) | | |
14224 | sed "s/^/$as_me: WARNING: /" >&2 | |
14225 | ;; | |
14226 | esac | |
14227 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14228 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14229 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14230 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14231 | else | |
ac1cb8d3 | 14232 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
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 | ||
14237 | fi | |
14238 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14239 | cat >>confdefs.h <<_ACEOF | |
14240 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14241 | _ACEOF | |
14242 | ||
14243 | fi | |
14244 | ||
14245 | done | |
14246 | ||
14247 | ||
14248 | for ac_header in X11/XKBlib.h | |
14249 | do | |
14250 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14251 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14252 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14253 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14254 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14255 | else | |
14256 | cat >conftest.$ac_ext <<_ACEOF | |
14257 | /* confdefs.h. */ | |
14258 | _ACEOF | |
14259 | cat confdefs.h >>conftest.$ac_ext | |
14260 | cat >>conftest.$ac_ext <<_ACEOF | |
14261 | /* end confdefs.h. */ | |
14262 | ||
14263 | #if HAVE_X11_XLIB_H | |
14264 | #include <X11/Xlib.h> | |
14265 | #endif | |
14266 | ||
14267 | ||
14268 | #include <$ac_header> | |
14269 | _ACEOF | |
14270 | rm -f conftest.$ac_objext | |
14271 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14272 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14273 | ac_status=$? |
ac1cb8d3 VS |
14274 | grep -v '^ *+' conftest.er1 >conftest.err |
14275 | rm -f conftest.er1 | |
14276 | cat conftest.err >&5 | |
a848cd7e SC |
14277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14278 | (exit $ac_status); } && | |
d51253e8 | 14279 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14281 | (eval $ac_try) 2>&5 | |
14282 | ac_status=$? | |
14283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14284 | (exit $ac_status); }; } && | |
14285 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14287 | (eval $ac_try) 2>&5 | |
14288 | ac_status=$? | |
14289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14290 | (exit $ac_status); }; }; then | |
14291 | eval "$as_ac_Header=yes" | |
14292 | else | |
14293 | echo "$as_me: failed program was:" >&5 | |
14294 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14295 | ||
14296 | eval "$as_ac_Header=no" | |
14297 | fi | |
ac1cb8d3 | 14298 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14299 | fi |
14300 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14301 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14302 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14303 | cat >>confdefs.h <<_ACEOF | |
14304 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14305 | _ACEOF | |
14306 | ||
14307 | fi | |
14308 | ||
14309 | done | |
14310 | ||
14311 | fi | |
14312 | fi | |
14313 | ||
14314 | ||
14315 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
14316 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
14317 | if test "${ac_cv_c_const+set}" = set; then | |
14318 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14319 | else | |
14320 | cat >conftest.$ac_ext <<_ACEOF | |
14321 | /* confdefs.h. */ | |
14322 | _ACEOF | |
14323 | cat confdefs.h >>conftest.$ac_ext | |
14324 | cat >>conftest.$ac_ext <<_ACEOF | |
14325 | /* end confdefs.h. */ | |
14326 | ||
14327 | int | |
14328 | main () | |
14329 | { | |
14330 | /* FIXME: Include the comments suggested by Paul. */ | |
14331 | #ifndef __cplusplus | |
14332 | /* Ultrix mips cc rejects this. */ | |
14333 | typedef int charset[2]; | |
14334 | const charset x; | |
14335 | /* SunOS 4.1.1 cc rejects this. */ | |
14336 | char const *const *ccp; | |
14337 | char **p; | |
14338 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
14339 | struct point {int x, y;}; | |
14340 | static struct point const zero = {0,0}; | |
14341 | /* AIX XL C 1.02.0.0 rejects this. | |
14342 | It does not let you subtract one const X* pointer from another in | |
14343 | an arm of an if-expression whose if-part is not a constant | |
14344 | expression */ | |
14345 | const char *g = "string"; | |
14346 | ccp = &g + (g ? g-g : 0); | |
14347 | /* HPUX 7.0 cc rejects these. */ | |
14348 | ++ccp; | |
14349 | p = (char**) ccp; | |
14350 | ccp = (char const *const *) p; | |
14351 | { /* SCO 3.2v4 cc rejects this. */ | |
14352 | char *t; | |
14353 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
14354 | ||
14355 | *t++ = 0; | |
14356 | } | |
14357 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
14358 | int x[] = {25, 17}; | |
14359 | const int *foo = &x[0]; | |
14360 | ++foo; | |
14361 | } | |
14362 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
14363 | typedef const int *iptr; | |
14364 | iptr p = 0; | |
14365 | ++p; | |
14366 | } | |
14367 | { /* AIX XL C 1.02.0.0 rejects this saying | |
14368 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
14369 | struct s { int j; const int *ap[3]; }; | |
14370 | struct s *b; b->j = 5; | |
14371 | } | |
14372 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
14373 | const int foo = 10; | |
14374 | } | |
14375 | #endif | |
14376 | ||
14377 | ; | |
14378 | return 0; | |
14379 | } | |
14380 | _ACEOF | |
14381 | rm -f conftest.$ac_objext | |
14382 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14383 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14384 | ac_status=$? |
ac1cb8d3 VS |
14385 | grep -v '^ *+' conftest.er1 >conftest.err |
14386 | rm -f conftest.er1 | |
14387 | cat conftest.err >&5 | |
a848cd7e SC |
14388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14389 | (exit $ac_status); } && | |
d51253e8 | 14390 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14392 | (eval $ac_try) 2>&5 | |
14393 | ac_status=$? | |
14394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14395 | (exit $ac_status); }; } && | |
14396 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14398 | (eval $ac_try) 2>&5 | |
14399 | ac_status=$? | |
14400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14401 | (exit $ac_status); }; }; then | |
14402 | ac_cv_c_const=yes | |
14403 | else | |
14404 | echo "$as_me: failed program was:" >&5 | |
14405 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14406 | ||
14407 | ac_cv_c_const=no | |
14408 | fi | |
ac1cb8d3 | 14409 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14410 | fi |
14411 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
14412 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
14413 | if test $ac_cv_c_const = no; then | |
14414 | ||
14415 | cat >>confdefs.h <<\_ACEOF | |
14416 | #define const | |
14417 | _ACEOF | |
14418 | ||
14419 | fi | |
14420 | ||
14421 | echo "$as_me:$LINENO: checking for inline" >&5 | |
14422 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
14423 | if test "${ac_cv_c_inline+set}" = set; then | |
14424 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14425 | else | |
14426 | ac_cv_c_inline=no | |
14427 | for ac_kw in inline __inline__ __inline; do | |
14428 | cat >conftest.$ac_ext <<_ACEOF | |
14429 | /* confdefs.h. */ | |
14430 | _ACEOF | |
14431 | cat confdefs.h >>conftest.$ac_ext | |
14432 | cat >>conftest.$ac_ext <<_ACEOF | |
14433 | /* end confdefs.h. */ | |
14434 | #ifndef __cplusplus | |
14435 | typedef int foo_t; | |
14436 | static $ac_kw foo_t static_foo () {return 0; } | |
14437 | $ac_kw foo_t foo () {return 0; } | |
14438 | #endif | |
14439 | ||
14440 | _ACEOF | |
14441 | rm -f conftest.$ac_objext | |
14442 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14443 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14444 | ac_status=$? |
ac1cb8d3 VS |
14445 | grep -v '^ *+' conftest.er1 >conftest.err |
14446 | rm -f conftest.er1 | |
14447 | cat conftest.err >&5 | |
a848cd7e SC |
14448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14449 | (exit $ac_status); } && | |
d51253e8 | 14450 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14452 | (eval $ac_try) 2>&5 | |
14453 | ac_status=$? | |
14454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14455 | (exit $ac_status); }; } && | |
14456 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14457 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14458 | (eval $ac_try) 2>&5 | |
14459 | ac_status=$? | |
14460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14461 | (exit $ac_status); }; }; then | |
14462 | ac_cv_c_inline=$ac_kw; break | |
14463 | else | |
14464 | echo "$as_me: failed program was:" >&5 | |
14465 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14466 | ||
14467 | fi | |
ac1cb8d3 | 14468 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14469 | done |
14470 | ||
14471 | fi | |
14472 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
14473 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
ac1cb8d3 VS |
14474 | |
14475 | ||
a848cd7e SC |
14476 | case $ac_cv_c_inline in |
14477 | inline | yes) ;; | |
ac1cb8d3 VS |
14478 | *) |
14479 | case $ac_cv_c_inline in | |
14480 | no) ac_val=;; | |
14481 | *) ac_val=$ac_cv_c_inline;; | |
14482 | esac | |
14483 | cat >>confdefs.h <<_ACEOF | |
14484 | #ifndef __cplusplus | |
14485 | #define inline $ac_val | |
14486 | #endif | |
de59c161 | 14487 | _ACEOF |
ac1cb8d3 | 14488 | ;; |
a848cd7e SC |
14489 | esac |
14490 | ||
14491 | ||
14492 | echo "$as_me:$LINENO: checking for char" >&5 | |
14493 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
14494 | if test "${ac_cv_type_char+set}" = set; then | |
14495 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14496 | else | |
14497 | cat >conftest.$ac_ext <<_ACEOF | |
14498 | /* confdefs.h. */ | |
14499 | _ACEOF | |
14500 | cat confdefs.h >>conftest.$ac_ext | |
14501 | cat >>conftest.$ac_ext <<_ACEOF | |
14502 | /* end confdefs.h. */ | |
14503 | $ac_includes_default | |
14504 | int | |
14505 | main () | |
14506 | { | |
14507 | if ((char *) 0) | |
14508 | return 0; | |
14509 | if (sizeof (char)) | |
14510 | return 0; | |
14511 | ; | |
14512 | return 0; | |
14513 | } | |
14514 | _ACEOF | |
14515 | rm -f conftest.$ac_objext | |
14516 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14517 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14518 | ac_status=$? |
ac1cb8d3 VS |
14519 | grep -v '^ *+' conftest.er1 >conftest.err |
14520 | rm -f conftest.er1 | |
14521 | cat conftest.err >&5 | |
a848cd7e SC |
14522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14523 | (exit $ac_status); } && | |
d51253e8 | 14524 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14526 | (eval $ac_try) 2>&5 | |
14527 | ac_status=$? | |
14528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14529 | (exit $ac_status); }; } && | |
14530 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14532 | (eval $ac_try) 2>&5 | |
14533 | ac_status=$? | |
14534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14535 | (exit $ac_status); }; }; then | |
14536 | ac_cv_type_char=yes | |
14537 | else | |
14538 | echo "$as_me: failed program was:" >&5 | |
14539 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14540 | ||
14541 | ac_cv_type_char=no | |
14542 | fi | |
ac1cb8d3 | 14543 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14544 | fi |
14545 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
14546 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
14547 | ||
14548 | echo "$as_me:$LINENO: checking size of char" >&5 | |
14549 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
14550 | if test "${ac_cv_sizeof_char+set}" = set; then | |
14551 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14552 | else | |
14553 | if test "$ac_cv_type_char" = yes; then | |
14554 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14555 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14556 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14557 | # This bug is HP SR number 8606223364. | |
14558 | if test "$cross_compiling" = yes; then | |
14559 | # Depending upon the size, compute the lo and hi bounds. | |
14560 | cat >conftest.$ac_ext <<_ACEOF | |
14561 | /* confdefs.h. */ | |
14562 | _ACEOF | |
14563 | cat confdefs.h >>conftest.$ac_ext | |
14564 | cat >>conftest.$ac_ext <<_ACEOF | |
14565 | /* end confdefs.h. */ | |
14566 | $ac_includes_default | |
14567 | int | |
14568 | main () | |
14569 | { | |
14570 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | |
14571 | test_array [0] = 0 | |
14572 | ||
14573 | ; | |
14574 | return 0; | |
14575 | } | |
14576 | _ACEOF | |
14577 | rm -f conftest.$ac_objext | |
14578 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14579 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14580 | ac_status=$? |
ac1cb8d3 VS |
14581 | grep -v '^ *+' conftest.er1 >conftest.err |
14582 | rm -f conftest.er1 | |
14583 | cat conftest.err >&5 | |
a848cd7e SC |
14584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14585 | (exit $ac_status); } && | |
d51253e8 | 14586 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14588 | (eval $ac_try) 2>&5 | |
14589 | ac_status=$? | |
14590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14591 | (exit $ac_status); }; } && | |
14592 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14594 | (eval $ac_try) 2>&5 | |
14595 | ac_status=$? | |
14596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14597 | (exit $ac_status); }; }; then | |
14598 | ac_lo=0 ac_mid=0 | |
14599 | while :; do | |
14600 | cat >conftest.$ac_ext <<_ACEOF | |
14601 | /* confdefs.h. */ | |
14602 | _ACEOF | |
14603 | cat confdefs.h >>conftest.$ac_ext | |
14604 | cat >>conftest.$ac_ext <<_ACEOF | |
14605 | /* end confdefs.h. */ | |
14606 | $ac_includes_default | |
14607 | int | |
14608 | main () | |
14609 | { | |
14610 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
14611 | test_array [0] = 0 | |
14612 | ||
14613 | ; | |
14614 | return 0; | |
14615 | } | |
14616 | _ACEOF | |
14617 | rm -f conftest.$ac_objext | |
14618 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14619 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14620 | ac_status=$? |
ac1cb8d3 VS |
14621 | grep -v '^ *+' conftest.er1 >conftest.err |
14622 | rm -f conftest.er1 | |
14623 | cat conftest.err >&5 | |
a848cd7e SC |
14624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14625 | (exit $ac_status); } && | |
d51253e8 | 14626 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14628 | (eval $ac_try) 2>&5 | |
14629 | ac_status=$? | |
14630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14631 | (exit $ac_status); }; } && | |
14632 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14634 | (eval $ac_try) 2>&5 | |
14635 | ac_status=$? | |
14636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14637 | (exit $ac_status); }; }; then | |
14638 | ac_hi=$ac_mid; break | |
14639 | else | |
14640 | echo "$as_me: failed program was:" >&5 | |
14641 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14642 | ||
14643 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
14644 | if test $ac_lo -le $ac_mid; then |
14645 | ac_lo= ac_hi= | |
14646 | break | |
14647 | fi | |
14648 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 14649 | fi |
ac1cb8d3 | 14650 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14651 | done |
14652 | else | |
14653 | echo "$as_me: failed program was:" >&5 | |
14654 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14655 | ||
14656 | cat >conftest.$ac_ext <<_ACEOF | |
14657 | /* confdefs.h. */ | |
14658 | _ACEOF | |
14659 | cat confdefs.h >>conftest.$ac_ext | |
14660 | cat >>conftest.$ac_ext <<_ACEOF | |
14661 | /* end confdefs.h. */ | |
14662 | $ac_includes_default | |
14663 | int | |
14664 | main () | |
14665 | { | |
14666 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
14667 | test_array [0] = 0 | |
14668 | ||
14669 | ; | |
14670 | return 0; | |
14671 | } | |
14672 | _ACEOF | |
14673 | rm -f conftest.$ac_objext | |
14674 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14675 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14676 | ac_status=$? |
ac1cb8d3 VS |
14677 | grep -v '^ *+' conftest.er1 >conftest.err |
14678 | rm -f conftest.er1 | |
14679 | cat conftest.err >&5 | |
a848cd7e SC |
14680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14681 | (exit $ac_status); } && | |
d51253e8 | 14682 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14684 | (eval $ac_try) 2>&5 | |
14685 | ac_status=$? | |
14686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14687 | (exit $ac_status); }; } && | |
14688 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14690 | (eval $ac_try) 2>&5 | |
14691 | ac_status=$? | |
14692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14693 | (exit $ac_status); }; }; then | |
14694 | ac_hi=-1 ac_mid=-1 | |
14695 | while :; do | |
14696 | cat >conftest.$ac_ext <<_ACEOF | |
14697 | /* confdefs.h. */ | |
14698 | _ACEOF | |
14699 | cat confdefs.h >>conftest.$ac_ext | |
14700 | cat >>conftest.$ac_ext <<_ACEOF | |
14701 | /* end confdefs.h. */ | |
14702 | $ac_includes_default | |
14703 | int | |
14704 | main () | |
14705 | { | |
14706 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | |
14707 | test_array [0] = 0 | |
14708 | ||
14709 | ; | |
14710 | return 0; | |
14711 | } | |
14712 | _ACEOF | |
14713 | rm -f conftest.$ac_objext | |
14714 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14715 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14716 | ac_status=$? |
ac1cb8d3 VS |
14717 | grep -v '^ *+' conftest.er1 >conftest.err |
14718 | rm -f conftest.er1 | |
14719 | cat conftest.err >&5 | |
a848cd7e SC |
14720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14721 | (exit $ac_status); } && | |
d51253e8 | 14722 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14724 | (eval $ac_try) 2>&5 | |
14725 | ac_status=$? | |
14726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14727 | (exit $ac_status); }; } && | |
14728 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14730 | (eval $ac_try) 2>&5 | |
14731 | ac_status=$? | |
14732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14733 | (exit $ac_status); }; }; then | |
14734 | ac_lo=$ac_mid; break | |
14735 | else | |
14736 | echo "$as_me: failed program was:" >&5 | |
14737 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14738 | ||
14739 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
14740 | if test $ac_mid -le $ac_hi; then |
14741 | ac_lo= ac_hi= | |
14742 | break | |
14743 | fi | |
14744 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 14745 | fi |
ac1cb8d3 | 14746 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14747 | done |
14748 | else | |
14749 | echo "$as_me: failed program was:" >&5 | |
14750 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14751 | ||
14752 | ac_lo= ac_hi= | |
14753 | fi | |
ac1cb8d3 | 14754 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 14755 | fi |
ac1cb8d3 | 14756 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14757 | # Binary search between lo and hi bounds. |
14758 | while test "x$ac_lo" != "x$ac_hi"; do | |
14759 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14760 | cat >conftest.$ac_ext <<_ACEOF | |
14761 | /* confdefs.h. */ | |
14762 | _ACEOF | |
14763 | cat confdefs.h >>conftest.$ac_ext | |
14764 | cat >>conftest.$ac_ext <<_ACEOF | |
14765 | /* end confdefs.h. */ | |
14766 | $ac_includes_default | |
14767 | int | |
14768 | main () | |
14769 | { | |
14770 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
14771 | test_array [0] = 0 | |
14772 | ||
14773 | ; | |
14774 | return 0; | |
14775 | } | |
14776 | _ACEOF | |
14777 | rm -f conftest.$ac_objext | |
14778 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14779 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14780 | ac_status=$? |
ac1cb8d3 VS |
14781 | grep -v '^ *+' conftest.er1 >conftest.err |
14782 | rm -f conftest.er1 | |
14783 | cat conftest.err >&5 | |
a848cd7e SC |
14784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14785 | (exit $ac_status); } && | |
d51253e8 | 14786 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14788 | (eval $ac_try) 2>&5 | |
14789 | ac_status=$? | |
14790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14791 | (exit $ac_status); }; } && | |
14792 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14794 | (eval $ac_try) 2>&5 | |
14795 | ac_status=$? | |
14796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14797 | (exit $ac_status); }; }; then | |
14798 | ac_hi=$ac_mid | |
14799 | else | |
14800 | echo "$as_me: failed program was:" >&5 | |
14801 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14802 | ||
14803 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
14804 | fi | |
ac1cb8d3 | 14805 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14806 | done |
14807 | case $ac_lo in | |
14808 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
14809 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
14810 | See \`config.log' for more details." >&5 | |
14811 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
14812 | See \`config.log' for more details." >&2;} | |
14813 | { (exit 1); exit 1; }; } ;; | |
14814 | esac | |
14815 | else | |
14816 | if test "$cross_compiling" = yes; then | |
d51253e8 RL |
14817 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
14818 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
14819 | { (exit 1); exit 1; }; } |
14820 | else | |
14821 | cat >conftest.$ac_ext <<_ACEOF | |
14822 | /* confdefs.h. */ | |
14823 | _ACEOF | |
14824 | cat confdefs.h >>conftest.$ac_ext | |
14825 | cat >>conftest.$ac_ext <<_ACEOF | |
14826 | /* end confdefs.h. */ | |
14827 | $ac_includes_default | |
14828 | long longval () { return (long) (sizeof (char)); } | |
14829 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
14830 | #include <stdio.h> | |
14831 | #include <stdlib.h> | |
14832 | int | |
14833 | main () | |
14834 | { | |
14835 | ||
14836 | FILE *f = fopen ("conftest.val", "w"); | |
14837 | if (! f) | |
14838 | exit (1); | |
14839 | if (((long) (sizeof (char))) < 0) | |
14840 | { | |
14841 | long i = longval (); | |
14842 | if (i != ((long) (sizeof (char)))) | |
14843 | exit (1); | |
14844 | fprintf (f, "%ld\n", i); | |
14845 | } | |
14846 | else | |
14847 | { | |
14848 | unsigned long i = ulongval (); | |
14849 | if (i != ((long) (sizeof (char)))) | |
14850 | exit (1); | |
14851 | fprintf (f, "%lu\n", i); | |
14852 | } | |
14853 | exit (ferror (f) || fclose (f) != 0); | |
14854 | ||
14855 | ; | |
14856 | return 0; | |
14857 | } | |
14858 | _ACEOF | |
14859 | rm -f conftest$ac_exeext | |
14860 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14861 | (eval $ac_link) 2>&5 | |
14862 | ac_status=$? | |
14863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14864 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14866 | (eval $ac_try) 2>&5 | |
14867 | ac_status=$? | |
14868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14869 | (exit $ac_status); }; }; then | |
14870 | ac_cv_sizeof_char=`cat conftest.val` | |
14871 | else | |
14872 | echo "$as_me: program exited with status $ac_status" >&5 | |
14873 | echo "$as_me: failed program was:" >&5 | |
14874 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14875 | ||
14876 | ( exit $ac_status ) | |
14877 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
14878 | See \`config.log' for more details." >&5 | |
14879 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
14880 | See \`config.log' for more details." >&2;} | |
14881 | { (exit 1); exit 1; }; } | |
14882 | fi | |
ac1cb8d3 | 14883 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14884 | fi |
14885 | fi | |
14886 | rm -f conftest.val | |
14887 | else | |
14888 | ac_cv_sizeof_char=0 | |
14889 | fi | |
14890 | fi | |
14891 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | |
14892 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
14893 | cat >>confdefs.h <<_ACEOF | |
14894 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
14895 | _ACEOF | |
14896 | ||
14897 | ||
14898 | echo "$as_me:$LINENO: checking for short" >&5 | |
14899 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
14900 | if test "${ac_cv_type_short+set}" = set; then | |
14901 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14902 | else | |
14903 | cat >conftest.$ac_ext <<_ACEOF | |
14904 | /* confdefs.h. */ | |
14905 | _ACEOF | |
14906 | cat confdefs.h >>conftest.$ac_ext | |
14907 | cat >>conftest.$ac_ext <<_ACEOF | |
14908 | /* end confdefs.h. */ | |
14909 | $ac_includes_default | |
14910 | int | |
14911 | main () | |
14912 | { | |
14913 | if ((short *) 0) | |
14914 | return 0; | |
14915 | if (sizeof (short)) | |
14916 | return 0; | |
14917 | ; | |
14918 | return 0; | |
14919 | } | |
14920 | _ACEOF | |
14921 | rm -f conftest.$ac_objext | |
14922 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14923 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14924 | ac_status=$? |
ac1cb8d3 VS |
14925 | grep -v '^ *+' conftest.er1 >conftest.err |
14926 | rm -f conftest.er1 | |
14927 | cat conftest.err >&5 | |
a848cd7e SC |
14928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14929 | (exit $ac_status); } && | |
d51253e8 | 14930 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14932 | (eval $ac_try) 2>&5 | |
14933 | ac_status=$? | |
14934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14935 | (exit $ac_status); }; } && | |
14936 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14938 | (eval $ac_try) 2>&5 | |
14939 | ac_status=$? | |
14940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14941 | (exit $ac_status); }; }; then | |
14942 | ac_cv_type_short=yes | |
14943 | else | |
14944 | echo "$as_me: failed program was:" >&5 | |
14945 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14946 | ||
14947 | ac_cv_type_short=no | |
14948 | fi | |
ac1cb8d3 | 14949 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14950 | fi |
14951 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
14952 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
14953 | ||
14954 | echo "$as_me:$LINENO: checking size of short" >&5 | |
14955 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
14956 | if test "${ac_cv_sizeof_short+set}" = set; then | |
14957 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14958 | else | |
14959 | if test "$ac_cv_type_short" = yes; then | |
14960 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14961 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14962 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14963 | # This bug is HP SR number 8606223364. | |
14964 | if test "$cross_compiling" = yes; then | |
14965 | # Depending upon the size, compute the lo and hi bounds. | |
14966 | cat >conftest.$ac_ext <<_ACEOF | |
14967 | /* confdefs.h. */ | |
14968 | _ACEOF | |
14969 | cat confdefs.h >>conftest.$ac_ext | |
14970 | cat >>conftest.$ac_ext <<_ACEOF | |
14971 | /* end confdefs.h. */ | |
14972 | $ac_includes_default | |
14973 | int | |
14974 | main () | |
14975 | { | |
14976 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; | |
14977 | test_array [0] = 0 | |
14978 | ||
14979 | ; | |
14980 | return 0; | |
14981 | } | |
14982 | _ACEOF | |
14983 | rm -f conftest.$ac_objext | |
14984 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14985 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14986 | ac_status=$? |
ac1cb8d3 VS |
14987 | grep -v '^ *+' conftest.er1 >conftest.err |
14988 | rm -f conftest.er1 | |
14989 | cat conftest.err >&5 | |
a848cd7e SC |
14990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14991 | (exit $ac_status); } && | |
d51253e8 | 14992 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14994 | (eval $ac_try) 2>&5 | |
14995 | ac_status=$? | |
14996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14997 | (exit $ac_status); }; } && | |
14998 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15000 | (eval $ac_try) 2>&5 | |
15001 | ac_status=$? | |
15002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15003 | (exit $ac_status); }; }; then | |
15004 | ac_lo=0 ac_mid=0 | |
15005 | while :; do | |
15006 | cat >conftest.$ac_ext <<_ACEOF | |
15007 | /* confdefs.h. */ | |
15008 | _ACEOF | |
15009 | cat confdefs.h >>conftest.$ac_ext | |
15010 | cat >>conftest.$ac_ext <<_ACEOF | |
15011 | /* end confdefs.h. */ | |
15012 | $ac_includes_default | |
15013 | int | |
15014 | main () | |
15015 | { | |
15016 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
15017 | test_array [0] = 0 | |
15018 | ||
15019 | ; | |
15020 | return 0; | |
15021 | } | |
15022 | _ACEOF | |
15023 | rm -f conftest.$ac_objext | |
15024 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15025 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15026 | ac_status=$? |
ac1cb8d3 VS |
15027 | grep -v '^ *+' conftest.er1 >conftest.err |
15028 | rm -f conftest.er1 | |
15029 | cat conftest.err >&5 | |
a848cd7e SC |
15030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15031 | (exit $ac_status); } && | |
d51253e8 | 15032 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15034 | (eval $ac_try) 2>&5 | |
15035 | ac_status=$? | |
15036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15037 | (exit $ac_status); }; } && | |
15038 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15040 | (eval $ac_try) 2>&5 | |
15041 | ac_status=$? | |
15042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15043 | (exit $ac_status); }; }; then | |
15044 | ac_hi=$ac_mid; break | |
15045 | else | |
15046 | echo "$as_me: failed program was:" >&5 | |
15047 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15048 | ||
15049 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
15050 | if test $ac_lo -le $ac_mid; then |
15051 | ac_lo= ac_hi= | |
15052 | break | |
15053 | fi | |
15054 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 15055 | fi |
ac1cb8d3 | 15056 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15057 | done |
15058 | else | |
15059 | echo "$as_me: failed program was:" >&5 | |
15060 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15061 | ||
15062 | cat >conftest.$ac_ext <<_ACEOF | |
15063 | /* confdefs.h. */ | |
15064 | _ACEOF | |
15065 | cat confdefs.h >>conftest.$ac_ext | |
15066 | cat >>conftest.$ac_ext <<_ACEOF | |
15067 | /* end confdefs.h. */ | |
15068 | $ac_includes_default | |
15069 | int | |
15070 | main () | |
15071 | { | |
15072 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
15073 | test_array [0] = 0 | |
15074 | ||
15075 | ; | |
15076 | return 0; | |
15077 | } | |
15078 | _ACEOF | |
15079 | rm -f conftest.$ac_objext | |
15080 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15081 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15082 | ac_status=$? |
ac1cb8d3 VS |
15083 | grep -v '^ *+' conftest.er1 >conftest.err |
15084 | rm -f conftest.er1 | |
15085 | cat conftest.err >&5 | |
a848cd7e SC |
15086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15087 | (exit $ac_status); } && | |
d51253e8 | 15088 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15090 | (eval $ac_try) 2>&5 | |
15091 | ac_status=$? | |
15092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15093 | (exit $ac_status); }; } && | |
15094 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15096 | (eval $ac_try) 2>&5 | |
15097 | ac_status=$? | |
15098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15099 | (exit $ac_status); }; }; then | |
15100 | ac_hi=-1 ac_mid=-1 | |
15101 | while :; do | |
15102 | cat >conftest.$ac_ext <<_ACEOF | |
15103 | /* confdefs.h. */ | |
15104 | _ACEOF | |
15105 | cat confdefs.h >>conftest.$ac_ext | |
15106 | cat >>conftest.$ac_ext <<_ACEOF | |
15107 | /* end confdefs.h. */ | |
15108 | $ac_includes_default | |
15109 | int | |
15110 | main () | |
15111 | { | |
15112 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; | |
15113 | test_array [0] = 0 | |
15114 | ||
15115 | ; | |
15116 | return 0; | |
15117 | } | |
15118 | _ACEOF | |
15119 | rm -f conftest.$ac_objext | |
15120 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15121 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15122 | ac_status=$? |
ac1cb8d3 VS |
15123 | grep -v '^ *+' conftest.er1 >conftest.err |
15124 | rm -f conftest.er1 | |
15125 | cat conftest.err >&5 | |
a848cd7e SC |
15126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15127 | (exit $ac_status); } && | |
d51253e8 | 15128 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15130 | (eval $ac_try) 2>&5 | |
15131 | ac_status=$? | |
15132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15133 | (exit $ac_status); }; } && | |
15134 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15136 | (eval $ac_try) 2>&5 | |
15137 | ac_status=$? | |
15138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15139 | (exit $ac_status); }; }; then | |
15140 | ac_lo=$ac_mid; break | |
15141 | else | |
15142 | echo "$as_me: failed program was:" >&5 | |
15143 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15144 | ||
15145 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
15146 | if test $ac_mid -le $ac_hi; then |
15147 | ac_lo= ac_hi= | |
15148 | break | |
15149 | fi | |
15150 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 15151 | fi |
ac1cb8d3 | 15152 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15153 | done |
15154 | else | |
15155 | echo "$as_me: failed program was:" >&5 | |
15156 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15157 | ||
15158 | ac_lo= ac_hi= | |
15159 | fi | |
ac1cb8d3 | 15160 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 15161 | fi |
ac1cb8d3 | 15162 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15163 | # Binary search between lo and hi bounds. |
15164 | while test "x$ac_lo" != "x$ac_hi"; do | |
15165 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15166 | cat >conftest.$ac_ext <<_ACEOF | |
15167 | /* confdefs.h. */ | |
15168 | _ACEOF | |
15169 | cat confdefs.h >>conftest.$ac_ext | |
15170 | cat >>conftest.$ac_ext <<_ACEOF | |
15171 | /* end confdefs.h. */ | |
15172 | $ac_includes_default | |
15173 | int | |
15174 | main () | |
15175 | { | |
15176 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
15177 | test_array [0] = 0 | |
15178 | ||
15179 | ; | |
15180 | return 0; | |
15181 | } | |
15182 | _ACEOF | |
15183 | rm -f conftest.$ac_objext | |
15184 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15185 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15186 | ac_status=$? |
ac1cb8d3 VS |
15187 | grep -v '^ *+' conftest.er1 >conftest.err |
15188 | rm -f conftest.er1 | |
15189 | cat conftest.err >&5 | |
a848cd7e SC |
15190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15191 | (exit $ac_status); } && | |
d51253e8 | 15192 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15194 | (eval $ac_try) 2>&5 | |
15195 | ac_status=$? | |
15196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15197 | (exit $ac_status); }; } && | |
15198 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15200 | (eval $ac_try) 2>&5 | |
15201 | ac_status=$? | |
15202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15203 | (exit $ac_status); }; }; then | |
15204 | ac_hi=$ac_mid | |
15205 | else | |
15206 | echo "$as_me: failed program was:" >&5 | |
15207 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15208 | ||
15209 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15210 | fi | |
ac1cb8d3 | 15211 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15212 | done |
15213 | case $ac_lo in | |
15214 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
15215 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
15216 | See \`config.log' for more details." >&5 | |
15217 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
15218 | See \`config.log' for more details." >&2;} | |
15219 | { (exit 1); exit 1; }; } ;; | |
15220 | esac | |
15221 | else | |
15222 | if test "$cross_compiling" = yes; then | |
d51253e8 RL |
15223 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
15224 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
15225 | { (exit 1); exit 1; }; } |
15226 | else | |
15227 | cat >conftest.$ac_ext <<_ACEOF | |
15228 | /* confdefs.h. */ | |
15229 | _ACEOF | |
15230 | cat confdefs.h >>conftest.$ac_ext | |
15231 | cat >>conftest.$ac_ext <<_ACEOF | |
15232 | /* end confdefs.h. */ | |
15233 | $ac_includes_default | |
15234 | long longval () { return (long) (sizeof (short)); } | |
15235 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
15236 | #include <stdio.h> | |
15237 | #include <stdlib.h> | |
15238 | int | |
15239 | main () | |
15240 | { | |
15241 | ||
15242 | FILE *f = fopen ("conftest.val", "w"); | |
15243 | if (! f) | |
15244 | exit (1); | |
15245 | if (((long) (sizeof (short))) < 0) | |
15246 | { | |
15247 | long i = longval (); | |
15248 | if (i != ((long) (sizeof (short)))) | |
15249 | exit (1); | |
15250 | fprintf (f, "%ld\n", i); | |
15251 | } | |
15252 | else | |
15253 | { | |
15254 | unsigned long i = ulongval (); | |
15255 | if (i != ((long) (sizeof (short)))) | |
15256 | exit (1); | |
15257 | fprintf (f, "%lu\n", i); | |
15258 | } | |
15259 | exit (ferror (f) || fclose (f) != 0); | |
15260 | ||
15261 | ; | |
15262 | return 0; | |
15263 | } | |
15264 | _ACEOF | |
15265 | rm -f conftest$ac_exeext | |
15266 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15267 | (eval $ac_link) 2>&5 | |
15268 | ac_status=$? | |
15269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15270 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15272 | (eval $ac_try) 2>&5 | |
15273 | ac_status=$? | |
15274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15275 | (exit $ac_status); }; }; then | |
15276 | ac_cv_sizeof_short=`cat conftest.val` | |
15277 | else | |
15278 | echo "$as_me: program exited with status $ac_status" >&5 | |
15279 | echo "$as_me: failed program was:" >&5 | |
15280 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15281 | ||
15282 | ( exit $ac_status ) | |
15283 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
15284 | See \`config.log' for more details." >&5 | |
15285 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
15286 | See \`config.log' for more details." >&2;} | |
15287 | { (exit 1); exit 1; }; } | |
15288 | fi | |
ac1cb8d3 | 15289 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15290 | fi |
15291 | fi | |
15292 | rm -f conftest.val | |
15293 | else | |
15294 | ac_cv_sizeof_short=0 | |
15295 | fi | |
15296 | fi | |
15297 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 | |
15298 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
15299 | cat >>confdefs.h <<_ACEOF | |
15300 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
15301 | _ACEOF | |
15302 | ||
15303 | ||
15304 | echo "$as_me:$LINENO: checking for void *" >&5 | |
15305 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
15306 | if test "${ac_cv_type_void_p+set}" = set; then | |
15307 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15308 | else | |
15309 | cat >conftest.$ac_ext <<_ACEOF | |
15310 | /* confdefs.h. */ | |
15311 | _ACEOF | |
15312 | cat confdefs.h >>conftest.$ac_ext | |
15313 | cat >>conftest.$ac_ext <<_ACEOF | |
15314 | /* end confdefs.h. */ | |
15315 | $ac_includes_default | |
15316 | int | |
15317 | main () | |
15318 | { | |
15319 | if ((void * *) 0) | |
15320 | return 0; | |
15321 | if (sizeof (void *)) | |
15322 | return 0; | |
15323 | ; | |
15324 | return 0; | |
15325 | } | |
15326 | _ACEOF | |
15327 | rm -f conftest.$ac_objext | |
15328 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15329 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15330 | ac_status=$? |
ac1cb8d3 VS |
15331 | grep -v '^ *+' conftest.er1 >conftest.err |
15332 | rm -f conftest.er1 | |
15333 | cat conftest.err >&5 | |
a848cd7e SC |
15334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15335 | (exit $ac_status); } && | |
d51253e8 | 15336 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15338 | (eval $ac_try) 2>&5 | |
15339 | ac_status=$? | |
15340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15341 | (exit $ac_status); }; } && | |
15342 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15344 | (eval $ac_try) 2>&5 | |
15345 | ac_status=$? | |
15346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15347 | (exit $ac_status); }; }; then | |
15348 | ac_cv_type_void_p=yes | |
15349 | else | |
15350 | echo "$as_me: failed program was:" >&5 | |
15351 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15352 | ||
15353 | ac_cv_type_void_p=no | |
15354 | fi | |
ac1cb8d3 | 15355 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15356 | fi |
15357 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
15358 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
15359 | ||
15360 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
15361 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
15362 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
15363 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15364 | else | |
15365 | if test "$ac_cv_type_void_p" = yes; then | |
15366 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15367 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15368 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15369 | # This bug is HP SR number 8606223364. | |
15370 | if test "$cross_compiling" = yes; then | |
15371 | # Depending upon the size, compute the lo and hi bounds. | |
15372 | cat >conftest.$ac_ext <<_ACEOF | |
15373 | /* confdefs.h. */ | |
15374 | _ACEOF | |
15375 | cat confdefs.h >>conftest.$ac_ext | |
15376 | cat >>conftest.$ac_ext <<_ACEOF | |
15377 | /* end confdefs.h. */ | |
15378 | $ac_includes_default | |
15379 | int | |
15380 | main () | |
15381 | { | |
15382 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
15383 | test_array [0] = 0 | |
15384 | ||
15385 | ; | |
15386 | return 0; | |
15387 | } | |
15388 | _ACEOF | |
15389 | rm -f conftest.$ac_objext | |
15390 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15391 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15392 | ac_status=$? |
ac1cb8d3 VS |
15393 | grep -v '^ *+' conftest.er1 >conftest.err |
15394 | rm -f conftest.er1 | |
15395 | cat conftest.err >&5 | |
a848cd7e SC |
15396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15397 | (exit $ac_status); } && | |
d51253e8 | 15398 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15400 | (eval $ac_try) 2>&5 | |
15401 | ac_status=$? | |
15402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15403 | (exit $ac_status); }; } && | |
15404 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15406 | (eval $ac_try) 2>&5 | |
15407 | ac_status=$? | |
15408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15409 | (exit $ac_status); }; }; then | |
15410 | ac_lo=0 ac_mid=0 | |
15411 | while :; do | |
15412 | cat >conftest.$ac_ext <<_ACEOF | |
15413 | /* confdefs.h. */ | |
15414 | _ACEOF | |
15415 | cat confdefs.h >>conftest.$ac_ext | |
15416 | cat >>conftest.$ac_ext <<_ACEOF | |
15417 | /* end confdefs.h. */ | |
15418 | $ac_includes_default | |
15419 | int | |
15420 | main () | |
15421 | { | |
15422 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
15423 | test_array [0] = 0 | |
15424 | ||
15425 | ; | |
15426 | return 0; | |
15427 | } | |
15428 | _ACEOF | |
15429 | rm -f conftest.$ac_objext | |
15430 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15431 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15432 | ac_status=$? |
ac1cb8d3 VS |
15433 | grep -v '^ *+' conftest.er1 >conftest.err |
15434 | rm -f conftest.er1 | |
15435 | cat conftest.err >&5 | |
a848cd7e SC |
15436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15437 | (exit $ac_status); } && | |
d51253e8 | 15438 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15440 | (eval $ac_try) 2>&5 | |
15441 | ac_status=$? | |
15442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15443 | (exit $ac_status); }; } && | |
15444 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15446 | (eval $ac_try) 2>&5 | |
15447 | ac_status=$? | |
15448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15449 | (exit $ac_status); }; }; then | |
15450 | ac_hi=$ac_mid; break | |
15451 | else | |
15452 | echo "$as_me: failed program was:" >&5 | |
15453 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15454 | ||
15455 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
15456 | if test $ac_lo -le $ac_mid; then |
15457 | ac_lo= ac_hi= | |
15458 | break | |
15459 | fi | |
15460 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 15461 | fi |
ac1cb8d3 | 15462 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15463 | done |
15464 | else | |
15465 | echo "$as_me: failed program was:" >&5 | |
15466 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15467 | ||
15468 | cat >conftest.$ac_ext <<_ACEOF | |
15469 | /* confdefs.h. */ | |
15470 | _ACEOF | |
15471 | cat confdefs.h >>conftest.$ac_ext | |
15472 | cat >>conftest.$ac_ext <<_ACEOF | |
15473 | /* end confdefs.h. */ | |
15474 | $ac_includes_default | |
15475 | int | |
15476 | main () | |
15477 | { | |
15478 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
15479 | test_array [0] = 0 | |
15480 | ||
15481 | ; | |
15482 | return 0; | |
15483 | } | |
15484 | _ACEOF | |
15485 | rm -f conftest.$ac_objext | |
15486 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15487 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15488 | ac_status=$? |
ac1cb8d3 VS |
15489 | grep -v '^ *+' conftest.er1 >conftest.err |
15490 | rm -f conftest.er1 | |
15491 | cat conftest.err >&5 | |
a848cd7e SC |
15492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15493 | (exit $ac_status); } && | |
d51253e8 | 15494 | { ac_try='test -z "$ac_c_werror_flag" || 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=-1 ac_mid=-1 | |
15507 | while :; do | |
15508 | cat >conftest.$ac_ext <<_ACEOF | |
15509 | /* confdefs.h. */ | |
15510 | _ACEOF | |
15511 | cat confdefs.h >>conftest.$ac_ext | |
15512 | cat >>conftest.$ac_ext <<_ACEOF | |
15513 | /* end confdefs.h. */ | |
15514 | $ac_includes_default | |
15515 | int | |
15516 | main () | |
15517 | { | |
15518 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
15519 | test_array [0] = 0 | |
15520 | ||
15521 | ; | |
15522 | return 0; | |
15523 | } | |
15524 | _ACEOF | |
15525 | rm -f conftest.$ac_objext | |
15526 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15527 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15528 | ac_status=$? |
ac1cb8d3 VS |
15529 | grep -v '^ *+' conftest.er1 >conftest.err |
15530 | rm -f conftest.er1 | |
15531 | cat conftest.err >&5 | |
a848cd7e SC |
15532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15533 | (exit $ac_status); } && | |
d51253e8 | 15534 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15536 | (eval $ac_try) 2>&5 | |
15537 | ac_status=$? | |
15538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15539 | (exit $ac_status); }; } && | |
15540 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15542 | (eval $ac_try) 2>&5 | |
15543 | ac_status=$? | |
15544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15545 | (exit $ac_status); }; }; then | |
15546 | ac_lo=$ac_mid; break | |
15547 | else | |
15548 | echo "$as_me: failed program was:" >&5 | |
15549 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15550 | ||
15551 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
15552 | if test $ac_mid -le $ac_hi; then |
15553 | ac_lo= ac_hi= | |
15554 | break | |
15555 | fi | |
15556 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 15557 | fi |
ac1cb8d3 | 15558 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15559 | done |
15560 | else | |
15561 | echo "$as_me: failed program was:" >&5 | |
15562 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15563 | ||
15564 | ac_lo= ac_hi= | |
15565 | fi | |
ac1cb8d3 | 15566 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 15567 | fi |
ac1cb8d3 | 15568 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15569 | # Binary search between lo and hi bounds. |
15570 | while test "x$ac_lo" != "x$ac_hi"; do | |
15571 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15572 | cat >conftest.$ac_ext <<_ACEOF | |
15573 | /* confdefs.h. */ | |
15574 | _ACEOF | |
15575 | cat confdefs.h >>conftest.$ac_ext | |
15576 | cat >>conftest.$ac_ext <<_ACEOF | |
15577 | /* end confdefs.h. */ | |
15578 | $ac_includes_default | |
15579 | int | |
15580 | main () | |
15581 | { | |
15582 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
15583 | test_array [0] = 0 | |
15584 | ||
15585 | ; | |
15586 | return 0; | |
15587 | } | |
15588 | _ACEOF | |
15589 | rm -f conftest.$ac_objext | |
15590 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15591 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15592 | ac_status=$? |
ac1cb8d3 VS |
15593 | grep -v '^ *+' conftest.er1 >conftest.err |
15594 | rm -f conftest.er1 | |
15595 | cat conftest.err >&5 | |
a848cd7e SC |
15596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15597 | (exit $ac_status); } && | |
d51253e8 | 15598 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15600 | (eval $ac_try) 2>&5 | |
15601 | ac_status=$? | |
15602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15603 | (exit $ac_status); }; } && | |
15604 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15606 | (eval $ac_try) 2>&5 | |
15607 | ac_status=$? | |
15608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15609 | (exit $ac_status); }; }; then | |
15610 | ac_hi=$ac_mid | |
15611 | else | |
15612 | echo "$as_me: failed program was:" >&5 | |
15613 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15614 | ||
15615 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15616 | fi | |
ac1cb8d3 | 15617 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15618 | done |
15619 | case $ac_lo in | |
15620 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
15621 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
15622 | See \`config.log' for more details." >&5 | |
15623 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
15624 | See \`config.log' for more details." >&2;} | |
15625 | { (exit 1); exit 1; }; } ;; | |
15626 | esac | |
15627 | else | |
15628 | if test "$cross_compiling" = yes; then | |
d51253e8 RL |
15629 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
15630 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
15631 | { (exit 1); exit 1; }; } |
15632 | else | |
15633 | cat >conftest.$ac_ext <<_ACEOF | |
15634 | /* confdefs.h. */ | |
15635 | _ACEOF | |
15636 | cat confdefs.h >>conftest.$ac_ext | |
15637 | cat >>conftest.$ac_ext <<_ACEOF | |
15638 | /* end confdefs.h. */ | |
15639 | $ac_includes_default | |
15640 | long longval () { return (long) (sizeof (void *)); } | |
15641 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
15642 | #include <stdio.h> | |
15643 | #include <stdlib.h> | |
15644 | int | |
15645 | main () | |
15646 | { | |
15647 | ||
15648 | FILE *f = fopen ("conftest.val", "w"); | |
15649 | if (! f) | |
15650 | exit (1); | |
15651 | if (((long) (sizeof (void *))) < 0) | |
15652 | { | |
15653 | long i = longval (); | |
15654 | if (i != ((long) (sizeof (void *)))) | |
15655 | exit (1); | |
15656 | fprintf (f, "%ld\n", i); | |
15657 | } | |
15658 | else | |
15659 | { | |
15660 | unsigned long i = ulongval (); | |
15661 | if (i != ((long) (sizeof (void *)))) | |
15662 | exit (1); | |
15663 | fprintf (f, "%lu\n", i); | |
15664 | } | |
15665 | exit (ferror (f) || fclose (f) != 0); | |
15666 | ||
15667 | ; | |
15668 | return 0; | |
15669 | } | |
15670 | _ACEOF | |
15671 | rm -f conftest$ac_exeext | |
15672 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15673 | (eval $ac_link) 2>&5 | |
15674 | ac_status=$? | |
15675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15676 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15678 | (eval $ac_try) 2>&5 | |
15679 | ac_status=$? | |
15680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15681 | (exit $ac_status); }; }; then | |
15682 | ac_cv_sizeof_void_p=`cat conftest.val` | |
15683 | else | |
15684 | echo "$as_me: program exited with status $ac_status" >&5 | |
15685 | echo "$as_me: failed program was:" >&5 | |
15686 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15687 | ||
15688 | ( exit $ac_status ) | |
15689 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
15690 | See \`config.log' for more details." >&5 | |
15691 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
15692 | See \`config.log' for more details." >&2;} | |
15693 | { (exit 1); exit 1; }; } | |
15694 | fi | |
ac1cb8d3 | 15695 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15696 | fi |
15697 | fi | |
15698 | rm -f conftest.val | |
15699 | else | |
15700 | ac_cv_sizeof_void_p=0 | |
15701 | fi | |
15702 | fi | |
15703 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 | |
15704 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
15705 | cat >>confdefs.h <<_ACEOF | |
15706 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
15707 | _ACEOF | |
15708 | ||
15709 | ||
15710 | echo "$as_me:$LINENO: checking for int" >&5 | |
15711 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
15712 | if test "${ac_cv_type_int+set}" = set; then | |
15713 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15714 | else | |
15715 | cat >conftest.$ac_ext <<_ACEOF | |
15716 | /* confdefs.h. */ | |
15717 | _ACEOF | |
15718 | cat confdefs.h >>conftest.$ac_ext | |
15719 | cat >>conftest.$ac_ext <<_ACEOF | |
15720 | /* end confdefs.h. */ | |
15721 | $ac_includes_default | |
15722 | int | |
15723 | main () | |
15724 | { | |
15725 | if ((int *) 0) | |
15726 | return 0; | |
15727 | if (sizeof (int)) | |
15728 | return 0; | |
15729 | ; | |
15730 | return 0; | |
15731 | } | |
15732 | _ACEOF | |
15733 | rm -f conftest.$ac_objext | |
15734 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15735 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15736 | ac_status=$? |
ac1cb8d3 VS |
15737 | grep -v '^ *+' conftest.er1 >conftest.err |
15738 | rm -f conftest.er1 | |
15739 | cat conftest.err >&5 | |
a848cd7e SC |
15740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15741 | (exit $ac_status); } && | |
d51253e8 | 15742 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15744 | (eval $ac_try) 2>&5 | |
15745 | ac_status=$? | |
15746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15747 | (exit $ac_status); }; } && | |
15748 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15750 | (eval $ac_try) 2>&5 | |
15751 | ac_status=$? | |
15752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15753 | (exit $ac_status); }; }; then | |
15754 | ac_cv_type_int=yes | |
15755 | else | |
15756 | echo "$as_me: failed program was:" >&5 | |
15757 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15758 | ||
15759 | ac_cv_type_int=no | |
15760 | fi | |
ac1cb8d3 | 15761 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15762 | fi |
15763 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
15764 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
15765 | ||
15766 | echo "$as_me:$LINENO: checking size of int" >&5 | |
15767 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
15768 | if test "${ac_cv_sizeof_int+set}" = set; then | |
15769 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15770 | else | |
15771 | if test "$ac_cv_type_int" = yes; then | |
15772 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15773 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15774 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15775 | # This bug is HP SR number 8606223364. | |
15776 | if test "$cross_compiling" = yes; then | |
15777 | # Depending upon the size, compute the lo and hi bounds. | |
15778 | cat >conftest.$ac_ext <<_ACEOF | |
15779 | /* confdefs.h. */ | |
15780 | _ACEOF | |
15781 | cat confdefs.h >>conftest.$ac_ext | |
15782 | cat >>conftest.$ac_ext <<_ACEOF | |
15783 | /* end confdefs.h. */ | |
15784 | $ac_includes_default | |
15785 | int | |
15786 | main () | |
15787 | { | |
15788 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
15789 | test_array [0] = 0 | |
15790 | ||
15791 | ; | |
15792 | return 0; | |
15793 | } | |
15794 | _ACEOF | |
15795 | rm -f conftest.$ac_objext | |
15796 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15797 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15798 | ac_status=$? |
ac1cb8d3 VS |
15799 | grep -v '^ *+' conftest.er1 >conftest.err |
15800 | rm -f conftest.er1 | |
15801 | cat conftest.err >&5 | |
a848cd7e SC |
15802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15803 | (exit $ac_status); } && | |
d51253e8 | 15804 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15806 | (eval $ac_try) 2>&5 | |
15807 | ac_status=$? | |
15808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15809 | (exit $ac_status); }; } && | |
15810 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15812 | (eval $ac_try) 2>&5 | |
15813 | ac_status=$? | |
15814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15815 | (exit $ac_status); }; }; then | |
15816 | ac_lo=0 ac_mid=0 | |
15817 | while :; do | |
15818 | cat >conftest.$ac_ext <<_ACEOF | |
15819 | /* confdefs.h. */ | |
15820 | _ACEOF | |
15821 | cat confdefs.h >>conftest.$ac_ext | |
15822 | cat >>conftest.$ac_ext <<_ACEOF | |
15823 | /* end confdefs.h. */ | |
15824 | $ac_includes_default | |
15825 | int | |
15826 | main () | |
15827 | { | |
15828 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
15829 | test_array [0] = 0 | |
15830 | ||
15831 | ; | |
15832 | return 0; | |
15833 | } | |
15834 | _ACEOF | |
15835 | rm -f conftest.$ac_objext | |
15836 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15837 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15838 | ac_status=$? |
ac1cb8d3 VS |
15839 | grep -v '^ *+' conftest.er1 >conftest.err |
15840 | rm -f conftest.er1 | |
15841 | cat conftest.err >&5 | |
a848cd7e SC |
15842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15843 | (exit $ac_status); } && | |
d51253e8 | 15844 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15846 | (eval $ac_try) 2>&5 | |
15847 | ac_status=$? | |
15848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15849 | (exit $ac_status); }; } && | |
15850 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15852 | (eval $ac_try) 2>&5 | |
15853 | ac_status=$? | |
15854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15855 | (exit $ac_status); }; }; then | |
15856 | ac_hi=$ac_mid; break | |
15857 | else | |
15858 | echo "$as_me: failed program was:" >&5 | |
15859 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15860 | ||
15861 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
15862 | if test $ac_lo -le $ac_mid; then |
15863 | ac_lo= ac_hi= | |
15864 | break | |
15865 | fi | |
15866 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 15867 | fi |
ac1cb8d3 | 15868 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15869 | done |
15870 | else | |
15871 | echo "$as_me: failed program was:" >&5 | |
15872 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15873 | ||
15874 | cat >conftest.$ac_ext <<_ACEOF | |
15875 | /* confdefs.h. */ | |
15876 | _ACEOF | |
15877 | cat confdefs.h >>conftest.$ac_ext | |
15878 | cat >>conftest.$ac_ext <<_ACEOF | |
15879 | /* end confdefs.h. */ | |
15880 | $ac_includes_default | |
15881 | int | |
15882 | main () | |
15883 | { | |
15884 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
15885 | test_array [0] = 0 | |
15886 | ||
15887 | ; | |
15888 | return 0; | |
15889 | } | |
15890 | _ACEOF | |
15891 | rm -f conftest.$ac_objext | |
15892 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15893 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15894 | ac_status=$? |
ac1cb8d3 VS |
15895 | grep -v '^ *+' conftest.er1 >conftest.err |
15896 | rm -f conftest.er1 | |
15897 | cat conftest.err >&5 | |
a848cd7e SC |
15898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15899 | (exit $ac_status); } && | |
d51253e8 | 15900 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15902 | (eval $ac_try) 2>&5 | |
15903 | ac_status=$? | |
15904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15905 | (exit $ac_status); }; } && | |
15906 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15908 | (eval $ac_try) 2>&5 | |
15909 | ac_status=$? | |
15910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15911 | (exit $ac_status); }; }; then | |
15912 | ac_hi=-1 ac_mid=-1 | |
15913 | while :; do | |
15914 | cat >conftest.$ac_ext <<_ACEOF | |
15915 | /* confdefs.h. */ | |
15916 | _ACEOF | |
15917 | cat confdefs.h >>conftest.$ac_ext | |
15918 | cat >>conftest.$ac_ext <<_ACEOF | |
15919 | /* end confdefs.h. */ | |
15920 | $ac_includes_default | |
15921 | int | |
15922 | main () | |
15923 | { | |
15924 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
15925 | test_array [0] = 0 | |
15926 | ||
15927 | ; | |
15928 | return 0; | |
15929 | } | |
15930 | _ACEOF | |
15931 | rm -f conftest.$ac_objext | |
15932 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15933 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15934 | ac_status=$? |
ac1cb8d3 VS |
15935 | grep -v '^ *+' conftest.er1 >conftest.err |
15936 | rm -f conftest.er1 | |
15937 | cat conftest.err >&5 | |
a848cd7e SC |
15938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15939 | (exit $ac_status); } && | |
d51253e8 | 15940 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15942 | (eval $ac_try) 2>&5 | |
15943 | ac_status=$? | |
15944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15945 | (exit $ac_status); }; } && | |
15946 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15948 | (eval $ac_try) 2>&5 | |
15949 | ac_status=$? | |
15950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15951 | (exit $ac_status); }; }; then | |
15952 | ac_lo=$ac_mid; break | |
15953 | else | |
15954 | echo "$as_me: failed program was:" >&5 | |
15955 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15956 | ||
15957 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
15958 | if test $ac_mid -le $ac_hi; then |
15959 | ac_lo= ac_hi= | |
15960 | break | |
15961 | fi | |
15962 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 15963 | fi |
ac1cb8d3 | 15964 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15965 | done |
15966 | else | |
15967 | echo "$as_me: failed program was:" >&5 | |
15968 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15969 | ||
15970 | ac_lo= ac_hi= | |
15971 | fi | |
ac1cb8d3 | 15972 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 15973 | fi |
ac1cb8d3 | 15974 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15975 | # Binary search between lo and hi bounds. |
15976 | while test "x$ac_lo" != "x$ac_hi"; do | |
15977 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15978 | cat >conftest.$ac_ext <<_ACEOF | |
15979 | /* confdefs.h. */ | |
15980 | _ACEOF | |
15981 | cat confdefs.h >>conftest.$ac_ext | |
15982 | cat >>conftest.$ac_ext <<_ACEOF | |
15983 | /* end confdefs.h. */ | |
15984 | $ac_includes_default | |
15985 | int | |
15986 | main () | |
15987 | { | |
15988 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
15989 | test_array [0] = 0 | |
15990 | ||
15991 | ; | |
15992 | return 0; | |
15993 | } | |
15994 | _ACEOF | |
15995 | rm -f conftest.$ac_objext | |
15996 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15997 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15998 | ac_status=$? |
ac1cb8d3 VS |
15999 | grep -v '^ *+' conftest.er1 >conftest.err |
16000 | rm -f conftest.er1 | |
16001 | cat conftest.err >&5 | |
a848cd7e SC |
16002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16003 | (exit $ac_status); } && | |
d51253e8 | 16004 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16006 | (eval $ac_try) 2>&5 | |
16007 | ac_status=$? | |
16008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16009 | (exit $ac_status); }; } && | |
16010 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16012 | (eval $ac_try) 2>&5 | |
16013 | ac_status=$? | |
16014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16015 | (exit $ac_status); }; }; then | |
16016 | ac_hi=$ac_mid | |
16017 | else | |
16018 | echo "$as_me: failed program was:" >&5 | |
16019 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16020 | ||
16021 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16022 | fi | |
ac1cb8d3 | 16023 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16024 | done |
16025 | case $ac_lo in | |
16026 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
16027 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
16028 | See \`config.log' for more details." >&5 | |
16029 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
16030 | See \`config.log' for more details." >&2;} | |
16031 | { (exit 1); exit 1; }; } ;; | |
16032 | esac | |
16033 | else | |
16034 | if test "$cross_compiling" = yes; then | |
d51253e8 RL |
16035 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
16036 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
16037 | { (exit 1); exit 1; }; } |
16038 | else | |
16039 | cat >conftest.$ac_ext <<_ACEOF | |
16040 | /* confdefs.h. */ | |
16041 | _ACEOF | |
16042 | cat confdefs.h >>conftest.$ac_ext | |
16043 | cat >>conftest.$ac_ext <<_ACEOF | |
16044 | /* end confdefs.h. */ | |
16045 | $ac_includes_default | |
16046 | long longval () { return (long) (sizeof (int)); } | |
16047 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
16048 | #include <stdio.h> | |
16049 | #include <stdlib.h> | |
16050 | int | |
16051 | main () | |
16052 | { | |
16053 | ||
16054 | FILE *f = fopen ("conftest.val", "w"); | |
16055 | if (! f) | |
16056 | exit (1); | |
16057 | if (((long) (sizeof (int))) < 0) | |
16058 | { | |
16059 | long i = longval (); | |
16060 | if (i != ((long) (sizeof (int)))) | |
16061 | exit (1); | |
16062 | fprintf (f, "%ld\n", i); | |
16063 | } | |
16064 | else | |
16065 | { | |
16066 | unsigned long i = ulongval (); | |
16067 | if (i != ((long) (sizeof (int)))) | |
16068 | exit (1); | |
16069 | fprintf (f, "%lu\n", i); | |
16070 | } | |
16071 | exit (ferror (f) || fclose (f) != 0); | |
16072 | ||
16073 | ; | |
16074 | return 0; | |
16075 | } | |
16076 | _ACEOF | |
16077 | rm -f conftest$ac_exeext | |
16078 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16079 | (eval $ac_link) 2>&5 | |
16080 | ac_status=$? | |
16081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16082 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16084 | (eval $ac_try) 2>&5 | |
16085 | ac_status=$? | |
16086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16087 | (exit $ac_status); }; }; then | |
16088 | ac_cv_sizeof_int=`cat conftest.val` | |
16089 | else | |
16090 | echo "$as_me: program exited with status $ac_status" >&5 | |
16091 | echo "$as_me: failed program was:" >&5 | |
16092 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16093 | ||
16094 | ( exit $ac_status ) | |
16095 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
16096 | See \`config.log' for more details." >&5 | |
16097 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
16098 | See \`config.log' for more details." >&2;} | |
16099 | { (exit 1); exit 1; }; } | |
16100 | fi | |
ac1cb8d3 | 16101 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16102 | fi |
16103 | fi | |
16104 | rm -f conftest.val | |
16105 | else | |
16106 | ac_cv_sizeof_int=0 | |
16107 | fi | |
16108 | fi | |
16109 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | |
16110 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
16111 | cat >>confdefs.h <<_ACEOF | |
16112 | #define SIZEOF_INT $ac_cv_sizeof_int | |
16113 | _ACEOF | |
16114 | ||
16115 | ||
16116 | echo "$as_me:$LINENO: checking for long" >&5 | |
16117 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
16118 | if test "${ac_cv_type_long+set}" = set; then | |
16119 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16120 | else | |
16121 | cat >conftest.$ac_ext <<_ACEOF | |
16122 | /* confdefs.h. */ | |
16123 | _ACEOF | |
16124 | cat confdefs.h >>conftest.$ac_ext | |
16125 | cat >>conftest.$ac_ext <<_ACEOF | |
16126 | /* end confdefs.h. */ | |
16127 | $ac_includes_default | |
16128 | int | |
16129 | main () | |
16130 | { | |
16131 | if ((long *) 0) | |
16132 | return 0; | |
16133 | if (sizeof (long)) | |
16134 | return 0; | |
16135 | ; | |
16136 | return 0; | |
16137 | } | |
16138 | _ACEOF | |
16139 | rm -f conftest.$ac_objext | |
16140 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16141 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16142 | ac_status=$? |
ac1cb8d3 VS |
16143 | grep -v '^ *+' conftest.er1 >conftest.err |
16144 | rm -f conftest.er1 | |
16145 | cat conftest.err >&5 | |
a848cd7e SC |
16146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16147 | (exit $ac_status); } && | |
d51253e8 | 16148 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16150 | (eval $ac_try) 2>&5 | |
16151 | ac_status=$? | |
16152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16153 | (exit $ac_status); }; } && | |
16154 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16156 | (eval $ac_try) 2>&5 | |
16157 | ac_status=$? | |
16158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16159 | (exit $ac_status); }; }; then | |
16160 | ac_cv_type_long=yes | |
16161 | else | |
16162 | echo "$as_me: failed program was:" >&5 | |
16163 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16164 | ||
16165 | ac_cv_type_long=no | |
16166 | fi | |
ac1cb8d3 | 16167 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16168 | fi |
16169 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
16170 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
16171 | ||
16172 | echo "$as_me:$LINENO: checking size of long" >&5 | |
16173 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
16174 | if test "${ac_cv_sizeof_long+set}" = set; then | |
16175 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16176 | else | |
16177 | if test "$ac_cv_type_long" = yes; then | |
16178 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16179 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16180 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16181 | # This bug is HP SR number 8606223364. | |
16182 | if test "$cross_compiling" = yes; then | |
16183 | # Depending upon the size, compute the lo and hi bounds. | |
16184 | cat >conftest.$ac_ext <<_ACEOF | |
16185 | /* confdefs.h. */ | |
16186 | _ACEOF | |
16187 | cat confdefs.h >>conftest.$ac_ext | |
16188 | cat >>conftest.$ac_ext <<_ACEOF | |
16189 | /* end confdefs.h. */ | |
16190 | $ac_includes_default | |
16191 | int | |
16192 | main () | |
16193 | { | |
16194 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
16195 | test_array [0] = 0 | |
16196 | ||
16197 | ; | |
16198 | return 0; | |
16199 | } | |
16200 | _ACEOF | |
16201 | rm -f conftest.$ac_objext | |
16202 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16203 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16204 | ac_status=$? |
ac1cb8d3 VS |
16205 | grep -v '^ *+' conftest.er1 >conftest.err |
16206 | rm -f conftest.er1 | |
16207 | cat conftest.err >&5 | |
a848cd7e SC |
16208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16209 | (exit $ac_status); } && | |
d51253e8 | 16210 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16212 | (eval $ac_try) 2>&5 | |
16213 | ac_status=$? | |
16214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16215 | (exit $ac_status); }; } && | |
16216 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
16222 | ac_lo=0 ac_mid=0 | |
16223 | while :; do | |
16224 | cat >conftest.$ac_ext <<_ACEOF | |
16225 | /* confdefs.h. */ | |
16226 | _ACEOF | |
16227 | cat confdefs.h >>conftest.$ac_ext | |
16228 | cat >>conftest.$ac_ext <<_ACEOF | |
16229 | /* end confdefs.h. */ | |
16230 | $ac_includes_default | |
16231 | int | |
16232 | main () | |
16233 | { | |
16234 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
16235 | test_array [0] = 0 | |
16236 | ||
16237 | ; | |
16238 | return 0; | |
16239 | } | |
16240 | _ACEOF | |
16241 | rm -f conftest.$ac_objext | |
16242 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16243 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16244 | ac_status=$? |
ac1cb8d3 VS |
16245 | grep -v '^ *+' conftest.er1 >conftest.err |
16246 | rm -f conftest.er1 | |
16247 | cat conftest.err >&5 | |
a848cd7e SC |
16248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16249 | (exit $ac_status); } && | |
d51253e8 | 16250 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16252 | (eval $ac_try) 2>&5 | |
16253 | ac_status=$? | |
16254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16255 | (exit $ac_status); }; } && | |
16256 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16258 | (eval $ac_try) 2>&5 | |
16259 | ac_status=$? | |
16260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16261 | (exit $ac_status); }; }; then | |
16262 | ac_hi=$ac_mid; break | |
16263 | else | |
16264 | echo "$as_me: failed program was:" >&5 | |
16265 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16266 | ||
16267 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16268 | if test $ac_lo -le $ac_mid; then |
16269 | ac_lo= ac_hi= | |
16270 | break | |
16271 | fi | |
16272 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16273 | fi |
ac1cb8d3 | 16274 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16275 | done |
16276 | else | |
16277 | echo "$as_me: failed program was:" >&5 | |
16278 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16279 | ||
16280 | cat >conftest.$ac_ext <<_ACEOF | |
16281 | /* confdefs.h. */ | |
16282 | _ACEOF | |
16283 | cat confdefs.h >>conftest.$ac_ext | |
16284 | cat >>conftest.$ac_ext <<_ACEOF | |
16285 | /* end confdefs.h. */ | |
16286 | $ac_includes_default | |
16287 | int | |
16288 | main () | |
16289 | { | |
16290 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
16291 | test_array [0] = 0 | |
16292 | ||
16293 | ; | |
16294 | return 0; | |
16295 | } | |
16296 | _ACEOF | |
16297 | rm -f conftest.$ac_objext | |
16298 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16299 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16300 | ac_status=$? |
ac1cb8d3 VS |
16301 | grep -v '^ *+' conftest.er1 >conftest.err |
16302 | rm -f conftest.er1 | |
16303 | cat conftest.err >&5 | |
a848cd7e SC |
16304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16305 | (exit $ac_status); } && | |
d51253e8 | 16306 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16308 | (eval $ac_try) 2>&5 | |
16309 | ac_status=$? | |
16310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16311 | (exit $ac_status); }; } && | |
16312 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16314 | (eval $ac_try) 2>&5 | |
16315 | ac_status=$? | |
16316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16317 | (exit $ac_status); }; }; then | |
16318 | ac_hi=-1 ac_mid=-1 | |
16319 | while :; do | |
16320 | cat >conftest.$ac_ext <<_ACEOF | |
16321 | /* confdefs.h. */ | |
16322 | _ACEOF | |
16323 | cat confdefs.h >>conftest.$ac_ext | |
16324 | cat >>conftest.$ac_ext <<_ACEOF | |
16325 | /* end confdefs.h. */ | |
16326 | $ac_includes_default | |
16327 | int | |
16328 | main () | |
16329 | { | |
16330 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
16331 | test_array [0] = 0 | |
16332 | ||
16333 | ; | |
16334 | return 0; | |
16335 | } | |
16336 | _ACEOF | |
16337 | rm -f conftest.$ac_objext | |
16338 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16339 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16340 | ac_status=$? |
ac1cb8d3 VS |
16341 | grep -v '^ *+' conftest.er1 >conftest.err |
16342 | rm -f conftest.er1 | |
16343 | cat conftest.err >&5 | |
a848cd7e SC |
16344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16345 | (exit $ac_status); } && | |
d51253e8 | 16346 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16348 | (eval $ac_try) 2>&5 | |
16349 | ac_status=$? | |
16350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16351 | (exit $ac_status); }; } && | |
16352 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16354 | (eval $ac_try) 2>&5 | |
16355 | ac_status=$? | |
16356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16357 | (exit $ac_status); }; }; then | |
16358 | ac_lo=$ac_mid; break | |
16359 | else | |
16360 | echo "$as_me: failed program was:" >&5 | |
16361 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16362 | ||
16363 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
16364 | if test $ac_mid -le $ac_hi; then |
16365 | ac_lo= ac_hi= | |
16366 | break | |
16367 | fi | |
16368 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 16369 | fi |
ac1cb8d3 | 16370 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16371 | done |
16372 | else | |
16373 | echo "$as_me: failed program was:" >&5 | |
16374 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16375 | ||
16376 | ac_lo= ac_hi= | |
16377 | fi | |
ac1cb8d3 | 16378 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 16379 | fi |
ac1cb8d3 | 16380 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16381 | # Binary search between lo and hi bounds. |
16382 | while test "x$ac_lo" != "x$ac_hi"; do | |
16383 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16384 | cat >conftest.$ac_ext <<_ACEOF | |
16385 | /* confdefs.h. */ | |
16386 | _ACEOF | |
16387 | cat confdefs.h >>conftest.$ac_ext | |
16388 | cat >>conftest.$ac_ext <<_ACEOF | |
16389 | /* end confdefs.h. */ | |
16390 | $ac_includes_default | |
16391 | int | |
16392 | main () | |
16393 | { | |
16394 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
16395 | test_array [0] = 0 | |
16396 | ||
16397 | ; | |
16398 | return 0; | |
16399 | } | |
16400 | _ACEOF | |
16401 | rm -f conftest.$ac_objext | |
16402 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16403 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16404 | ac_status=$? |
ac1cb8d3 VS |
16405 | grep -v '^ *+' conftest.er1 >conftest.err |
16406 | rm -f conftest.er1 | |
16407 | cat conftest.err >&5 | |
a848cd7e SC |
16408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16409 | (exit $ac_status); } && | |
d51253e8 | 16410 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16412 | (eval $ac_try) 2>&5 | |
16413 | ac_status=$? | |
16414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16415 | (exit $ac_status); }; } && | |
16416 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16418 | (eval $ac_try) 2>&5 | |
16419 | ac_status=$? | |
16420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16421 | (exit $ac_status); }; }; then | |
16422 | ac_hi=$ac_mid | |
16423 | else | |
16424 | echo "$as_me: failed program was:" >&5 | |
16425 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16426 | ||
16427 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16428 | fi | |
ac1cb8d3 | 16429 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16430 | done |
16431 | case $ac_lo in | |
16432 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
16433 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
16434 | See \`config.log' for more details." >&5 | |
16435 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
16436 | See \`config.log' for more details." >&2;} | |
16437 | { (exit 1); exit 1; }; } ;; | |
16438 | esac | |
16439 | else | |
16440 | if test "$cross_compiling" = yes; then | |
d51253e8 RL |
16441 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
16442 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
16443 | { (exit 1); exit 1; }; } |
16444 | else | |
16445 | cat >conftest.$ac_ext <<_ACEOF | |
16446 | /* confdefs.h. */ | |
16447 | _ACEOF | |
16448 | cat confdefs.h >>conftest.$ac_ext | |
16449 | cat >>conftest.$ac_ext <<_ACEOF | |
16450 | /* end confdefs.h. */ | |
16451 | $ac_includes_default | |
16452 | long longval () { return (long) (sizeof (long)); } | |
16453 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
16454 | #include <stdio.h> | |
16455 | #include <stdlib.h> | |
16456 | int | |
16457 | main () | |
16458 | { | |
16459 | ||
16460 | FILE *f = fopen ("conftest.val", "w"); | |
16461 | if (! f) | |
16462 | exit (1); | |
16463 | if (((long) (sizeof (long))) < 0) | |
16464 | { | |
16465 | long i = longval (); | |
16466 | if (i != ((long) (sizeof (long)))) | |
16467 | exit (1); | |
16468 | fprintf (f, "%ld\n", i); | |
16469 | } | |
16470 | else | |
16471 | { | |
16472 | unsigned long i = ulongval (); | |
16473 | if (i != ((long) (sizeof (long)))) | |
16474 | exit (1); | |
16475 | fprintf (f, "%lu\n", i); | |
16476 | } | |
16477 | exit (ferror (f) || fclose (f) != 0); | |
16478 | ||
16479 | ; | |
16480 | return 0; | |
16481 | } | |
16482 | _ACEOF | |
16483 | rm -f conftest$ac_exeext | |
16484 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16485 | (eval $ac_link) 2>&5 | |
16486 | ac_status=$? | |
16487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16488 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16490 | (eval $ac_try) 2>&5 | |
16491 | ac_status=$? | |
16492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16493 | (exit $ac_status); }; }; then | |
16494 | ac_cv_sizeof_long=`cat conftest.val` | |
16495 | else | |
16496 | echo "$as_me: program exited with status $ac_status" >&5 | |
16497 | echo "$as_me: failed program was:" >&5 | |
16498 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16499 | ||
16500 | ( exit $ac_status ) | |
16501 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
16502 | See \`config.log' for more details." >&5 | |
16503 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
16504 | See \`config.log' for more details." >&2;} | |
16505 | { (exit 1); exit 1; }; } | |
16506 | fi | |
ac1cb8d3 | 16507 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16508 | fi |
16509 | fi | |
16510 | rm -f conftest.val | |
16511 | else | |
16512 | ac_cv_sizeof_long=0 | |
16513 | fi | |
16514 | fi | |
16515 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
16516 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
16517 | cat >>confdefs.h <<_ACEOF | |
16518 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
16519 | _ACEOF | |
16520 | ||
16521 | ||
16522 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
16523 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
16524 | if test "${ac_cv_type_size_t+set}" = set; then | |
16525 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16526 | else | |
16527 | cat >conftest.$ac_ext <<_ACEOF | |
16528 | /* confdefs.h. */ | |
16529 | _ACEOF | |
16530 | cat confdefs.h >>conftest.$ac_ext | |
16531 | cat >>conftest.$ac_ext <<_ACEOF | |
16532 | /* end confdefs.h. */ | |
16533 | $ac_includes_default | |
16534 | int | |
16535 | main () | |
16536 | { | |
16537 | if ((size_t *) 0) | |
16538 | return 0; | |
16539 | if (sizeof (size_t)) | |
16540 | return 0; | |
16541 | ; | |
16542 | return 0; | |
16543 | } | |
16544 | _ACEOF | |
16545 | rm -f conftest.$ac_objext | |
16546 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16547 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16548 | ac_status=$? |
ac1cb8d3 VS |
16549 | grep -v '^ *+' conftest.er1 >conftest.err |
16550 | rm -f conftest.er1 | |
16551 | cat conftest.err >&5 | |
a848cd7e SC |
16552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16553 | (exit $ac_status); } && | |
d51253e8 | 16554 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16556 | (eval $ac_try) 2>&5 | |
16557 | ac_status=$? | |
16558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16559 | (exit $ac_status); }; } && | |
16560 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16562 | (eval $ac_try) 2>&5 | |
16563 | ac_status=$? | |
16564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16565 | (exit $ac_status); }; }; then | |
16566 | ac_cv_type_size_t=yes | |
16567 | else | |
16568 | echo "$as_me: failed program was:" >&5 | |
16569 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16570 | ||
16571 | ac_cv_type_size_t=no | |
16572 | fi | |
ac1cb8d3 | 16573 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16574 | fi |
16575 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
16576 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
16577 | ||
16578 | echo "$as_me:$LINENO: checking size of size_t" >&5 | |
16579 | echo $ECHO_N "checking size of size_t... $ECHO_C" >&6 | |
16580 | if test "${ac_cv_sizeof_size_t+set}" = set; then | |
16581 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16582 | else | |
16583 | if test "$ac_cv_type_size_t" = yes; then | |
16584 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16585 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16586 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16587 | # This bug is HP SR number 8606223364. | |
16588 | if test "$cross_compiling" = yes; then | |
16589 | # Depending upon the size, compute the lo and hi bounds. | |
16590 | cat >conftest.$ac_ext <<_ACEOF | |
16591 | /* confdefs.h. */ | |
16592 | _ACEOF | |
16593 | cat confdefs.h >>conftest.$ac_ext | |
16594 | cat >>conftest.$ac_ext <<_ACEOF | |
16595 | /* end confdefs.h. */ | |
16596 | $ac_includes_default | |
16597 | int | |
16598 | main () | |
16599 | { | |
16600 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)]; | |
16601 | test_array [0] = 0 | |
16602 | ||
16603 | ; | |
16604 | return 0; | |
16605 | } | |
16606 | _ACEOF | |
16607 | rm -f conftest.$ac_objext | |
16608 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16609 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16610 | ac_status=$? |
ac1cb8d3 VS |
16611 | grep -v '^ *+' conftest.er1 >conftest.err |
16612 | rm -f conftest.er1 | |
16613 | cat conftest.err >&5 | |
a848cd7e SC |
16614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16615 | (exit $ac_status); } && | |
d51253e8 | 16616 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16618 | (eval $ac_try) 2>&5 | |
16619 | ac_status=$? | |
16620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16621 | (exit $ac_status); }; } && | |
16622 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16624 | (eval $ac_try) 2>&5 | |
16625 | ac_status=$? | |
16626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16627 | (exit $ac_status); }; }; then | |
16628 | ac_lo=0 ac_mid=0 | |
16629 | while :; do | |
16630 | cat >conftest.$ac_ext <<_ACEOF | |
16631 | /* confdefs.h. */ | |
16632 | _ACEOF | |
16633 | cat confdefs.h >>conftest.$ac_ext | |
16634 | cat >>conftest.$ac_ext <<_ACEOF | |
16635 | /* end confdefs.h. */ | |
16636 | $ac_includes_default | |
16637 | int | |
16638 | main () | |
16639 | { | |
16640 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
16641 | test_array [0] = 0 | |
16642 | ||
16643 | ; | |
16644 | return 0; | |
16645 | } | |
16646 | _ACEOF | |
16647 | rm -f conftest.$ac_objext | |
16648 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16649 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16650 | ac_status=$? |
ac1cb8d3 VS |
16651 | grep -v '^ *+' conftest.er1 >conftest.err |
16652 | rm -f conftest.er1 | |
16653 | cat conftest.err >&5 | |
a848cd7e SC |
16654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16655 | (exit $ac_status); } && | |
d51253e8 | 16656 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16658 | (eval $ac_try) 2>&5 | |
16659 | ac_status=$? | |
16660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16661 | (exit $ac_status); }; } && | |
16662 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16664 | (eval $ac_try) 2>&5 | |
16665 | ac_status=$? | |
16666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16667 | (exit $ac_status); }; }; then | |
16668 | ac_hi=$ac_mid; break | |
16669 | else | |
16670 | echo "$as_me: failed program was:" >&5 | |
16671 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16672 | ||
16673 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16674 | if test $ac_lo -le $ac_mid; then |
16675 | ac_lo= ac_hi= | |
16676 | break | |
16677 | fi | |
16678 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16679 | fi |
ac1cb8d3 | 16680 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16681 | done |
16682 | else | |
16683 | echo "$as_me: failed program was:" >&5 | |
16684 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16685 | ||
16686 | cat >conftest.$ac_ext <<_ACEOF | |
16687 | /* confdefs.h. */ | |
16688 | _ACEOF | |
16689 | cat confdefs.h >>conftest.$ac_ext | |
16690 | cat >>conftest.$ac_ext <<_ACEOF | |
16691 | /* end confdefs.h. */ | |
16692 | $ac_includes_default | |
16693 | int | |
16694 | main () | |
16695 | { | |
16696 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)]; | |
16697 | test_array [0] = 0 | |
16698 | ||
16699 | ; | |
16700 | return 0; | |
16701 | } | |
16702 | _ACEOF | |
16703 | rm -f conftest.$ac_objext | |
16704 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16705 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16706 | ac_status=$? |
ac1cb8d3 VS |
16707 | grep -v '^ *+' conftest.er1 >conftest.err |
16708 | rm -f conftest.er1 | |
16709 | cat conftest.err >&5 | |
a848cd7e SC |
16710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16711 | (exit $ac_status); } && | |
d51253e8 | 16712 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16714 | (eval $ac_try) 2>&5 | |
16715 | ac_status=$? | |
16716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16717 | (exit $ac_status); }; } && | |
16718 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16720 | (eval $ac_try) 2>&5 | |
16721 | ac_status=$? | |
16722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16723 | (exit $ac_status); }; }; then | |
16724 | ac_hi=-1 ac_mid=-1 | |
16725 | while :; do | |
16726 | cat >conftest.$ac_ext <<_ACEOF | |
16727 | /* confdefs.h. */ | |
16728 | _ACEOF | |
16729 | cat confdefs.h >>conftest.$ac_ext | |
16730 | cat >>conftest.$ac_ext <<_ACEOF | |
16731 | /* end confdefs.h. */ | |
16732 | $ac_includes_default | |
16733 | int | |
16734 | main () | |
16735 | { | |
16736 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)]; | |
16737 | test_array [0] = 0 | |
16738 | ||
16739 | ; | |
16740 | return 0; | |
16741 | } | |
16742 | _ACEOF | |
16743 | rm -f conftest.$ac_objext | |
16744 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16745 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16746 | ac_status=$? |
ac1cb8d3 VS |
16747 | grep -v '^ *+' conftest.er1 >conftest.err |
16748 | rm -f conftest.er1 | |
16749 | cat conftest.err >&5 | |
a848cd7e SC |
16750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16751 | (exit $ac_status); } && | |
d51253e8 | 16752 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16754 | (eval $ac_try) 2>&5 | |
16755 | ac_status=$? | |
16756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16757 | (exit $ac_status); }; } && | |
16758 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16760 | (eval $ac_try) 2>&5 | |
16761 | ac_status=$? | |
16762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16763 | (exit $ac_status); }; }; then | |
16764 | ac_lo=$ac_mid; break | |
16765 | else | |
16766 | echo "$as_me: failed program was:" >&5 | |
16767 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16768 | ||
16769 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
16770 | if test $ac_mid -le $ac_hi; then |
16771 | ac_lo= ac_hi= | |
16772 | break | |
16773 | fi | |
16774 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 16775 | fi |
ac1cb8d3 | 16776 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16777 | done |
16778 | else | |
16779 | echo "$as_me: failed program was:" >&5 | |
16780 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16781 | ||
16782 | ac_lo= ac_hi= | |
16783 | fi | |
ac1cb8d3 | 16784 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 16785 | fi |
ac1cb8d3 | 16786 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16787 | # Binary search between lo and hi bounds. |
16788 | while test "x$ac_lo" != "x$ac_hi"; do | |
16789 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16790 | cat >conftest.$ac_ext <<_ACEOF | |
16791 | /* confdefs.h. */ | |
16792 | _ACEOF | |
16793 | cat confdefs.h >>conftest.$ac_ext | |
16794 | cat >>conftest.$ac_ext <<_ACEOF | |
16795 | /* end confdefs.h. */ | |
16796 | $ac_includes_default | |
16797 | int | |
16798 | main () | |
16799 | { | |
16800 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
16801 | test_array [0] = 0 | |
16802 | ||
16803 | ; | |
16804 | return 0; | |
16805 | } | |
16806 | _ACEOF | |
16807 | rm -f conftest.$ac_objext | |
16808 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16809 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16810 | ac_status=$? |
ac1cb8d3 VS |
16811 | grep -v '^ *+' conftest.er1 >conftest.err |
16812 | rm -f conftest.er1 | |
16813 | cat conftest.err >&5 | |
a848cd7e SC |
16814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16815 | (exit $ac_status); } && | |
d51253e8 | 16816 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
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); }; } && | |
16822 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16824 | (eval $ac_try) 2>&5 | |
16825 | ac_status=$? | |
16826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16827 | (exit $ac_status); }; }; then | |
16828 | ac_hi=$ac_mid | |
16829 | else | |
16830 | echo "$as_me: failed program was:" >&5 | |
16831 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16832 | ||
16833 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16834 | fi | |
ac1cb8d3 | 16835 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16836 | done |
16837 | case $ac_lo in | |
16838 | ?*) ac_cv_sizeof_size_t=$ac_lo;; | |
16839 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
16840 | See \`config.log' for more details." >&5 | |
16841 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
16842 | See \`config.log' for more details." >&2;} | |
16843 | { (exit 1); exit 1; }; } ;; | |
16844 | esac | |
16845 | else | |
16846 | if test "$cross_compiling" = yes; then | |
d51253e8 RL |
16847 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
16848 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
16849 | { (exit 1); exit 1; }; } |
16850 | else | |
16851 | cat >conftest.$ac_ext <<_ACEOF | |
16852 | /* confdefs.h. */ | |
16853 | _ACEOF | |
16854 | cat confdefs.h >>conftest.$ac_ext | |
16855 | cat >>conftest.$ac_ext <<_ACEOF | |
16856 | /* end confdefs.h. */ | |
16857 | $ac_includes_default | |
16858 | long longval () { return (long) (sizeof (size_t)); } | |
16859 | unsigned long ulongval () { return (long) (sizeof (size_t)); } | |
16860 | #include <stdio.h> | |
16861 | #include <stdlib.h> | |
16862 | int | |
16863 | main () | |
16864 | { | |
16865 | ||
16866 | FILE *f = fopen ("conftest.val", "w"); | |
16867 | if (! f) | |
16868 | exit (1); | |
16869 | if (((long) (sizeof (size_t))) < 0) | |
16870 | { | |
16871 | long i = longval (); | |
16872 | if (i != ((long) (sizeof (size_t)))) | |
16873 | exit (1); | |
16874 | fprintf (f, "%ld\n", i); | |
16875 | } | |
16876 | else | |
16877 | { | |
16878 | unsigned long i = ulongval (); | |
16879 | if (i != ((long) (sizeof (size_t)))) | |
16880 | exit (1); | |
16881 | fprintf (f, "%lu\n", i); | |
16882 | } | |
16883 | exit (ferror (f) || fclose (f) != 0); | |
16884 | ||
16885 | ; | |
16886 | return 0; | |
16887 | } | |
16888 | _ACEOF | |
16889 | rm -f conftest$ac_exeext | |
16890 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16891 | (eval $ac_link) 2>&5 | |
16892 | ac_status=$? | |
16893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16894 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16896 | (eval $ac_try) 2>&5 | |
16897 | ac_status=$? | |
16898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16899 | (exit $ac_status); }; }; then | |
16900 | ac_cv_sizeof_size_t=`cat conftest.val` | |
16901 | else | |
16902 | echo "$as_me: program exited with status $ac_status" >&5 | |
16903 | echo "$as_me: failed program was:" >&5 | |
16904 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16905 | ||
16906 | ( exit $ac_status ) | |
16907 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
16908 | See \`config.log' for more details." >&5 | |
16909 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
16910 | See \`config.log' for more details." >&2;} | |
16911 | { (exit 1); exit 1; }; } | |
16912 | fi | |
ac1cb8d3 | 16913 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16914 | fi |
16915 | fi | |
16916 | rm -f conftest.val | |
16917 | else | |
16918 | ac_cv_sizeof_size_t=0 | |
16919 | fi | |
16920 | fi | |
16921 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 | |
16922 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6 | |
16923 | cat >>confdefs.h <<_ACEOF | |
16924 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | |
16925 | _ACEOF | |
16926 | ||
16927 | ||
16928 | ||
16929 | case "${host}" in | |
16930 | arm-*-linux* ) | |
16931 | echo "$as_me:$LINENO: checking for long long" >&5 | |
16932 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
16933 | if test "${ac_cv_type_long_long+set}" = set; then | |
16934 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16935 | else | |
16936 | cat >conftest.$ac_ext <<_ACEOF | |
16937 | /* confdefs.h. */ | |
16938 | _ACEOF | |
16939 | cat confdefs.h >>conftest.$ac_ext | |
16940 | cat >>conftest.$ac_ext <<_ACEOF | |
16941 | /* end confdefs.h. */ | |
16942 | $ac_includes_default | |
16943 | int | |
16944 | main () | |
16945 | { | |
16946 | if ((long long *) 0) | |
16947 | return 0; | |
16948 | if (sizeof (long long)) | |
16949 | return 0; | |
16950 | ; | |
16951 | return 0; | |
16952 | } | |
16953 | _ACEOF | |
16954 | rm -f conftest.$ac_objext | |
16955 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16956 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16957 | ac_status=$? |
ac1cb8d3 VS |
16958 | grep -v '^ *+' conftest.er1 >conftest.err |
16959 | rm -f conftest.er1 | |
16960 | cat conftest.err >&5 | |
a848cd7e SC |
16961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16962 | (exit $ac_status); } && | |
d51253e8 | 16963 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16965 | (eval $ac_try) 2>&5 | |
16966 | ac_status=$? | |
16967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16968 | (exit $ac_status); }; } && | |
16969 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16971 | (eval $ac_try) 2>&5 | |
16972 | ac_status=$? | |
16973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16974 | (exit $ac_status); }; }; then | |
16975 | ac_cv_type_long_long=yes | |
16976 | else | |
16977 | echo "$as_me: failed program was:" >&5 | |
16978 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16979 | ||
16980 | ac_cv_type_long_long=no | |
16981 | fi | |
ac1cb8d3 | 16982 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16983 | fi |
16984 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
16985 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
16986 | ||
16987 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
16988 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
16989 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
16990 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16991 | else | |
16992 | if test "$ac_cv_type_long_long" = yes; then | |
16993 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16994 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16995 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16996 | # This bug is HP SR number 8606223364. | |
16997 | if test "$cross_compiling" = yes; then | |
16998 | # Depending upon the size, compute the lo and hi bounds. | |
16999 | cat >conftest.$ac_ext <<_ACEOF | |
17000 | /* confdefs.h. */ | |
17001 | _ACEOF | |
17002 | cat confdefs.h >>conftest.$ac_ext | |
17003 | cat >>conftest.$ac_ext <<_ACEOF | |
17004 | /* end confdefs.h. */ | |
17005 | $ac_includes_default | |
17006 | int | |
17007 | main () | |
17008 | { | |
17009 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
17010 | test_array [0] = 0 | |
17011 | ||
17012 | ; | |
17013 | return 0; | |
17014 | } | |
17015 | _ACEOF | |
17016 | rm -f conftest.$ac_objext | |
17017 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17018 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17019 | ac_status=$? |
ac1cb8d3 VS |
17020 | grep -v '^ *+' conftest.er1 >conftest.err |
17021 | rm -f conftest.er1 | |
17022 | cat conftest.err >&5 | |
a848cd7e SC |
17023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17024 | (exit $ac_status); } && | |
d51253e8 | 17025 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17027 | (eval $ac_try) 2>&5 | |
17028 | ac_status=$? | |
17029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17030 | (exit $ac_status); }; } && | |
17031 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17033 | (eval $ac_try) 2>&5 | |
17034 | ac_status=$? | |
17035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17036 | (exit $ac_status); }; }; then | |
17037 | ac_lo=0 ac_mid=0 | |
17038 | while :; do | |
17039 | cat >conftest.$ac_ext <<_ACEOF | |
17040 | /* confdefs.h. */ | |
17041 | _ACEOF | |
17042 | cat confdefs.h >>conftest.$ac_ext | |
17043 | cat >>conftest.$ac_ext <<_ACEOF | |
17044 | /* end confdefs.h. */ | |
17045 | $ac_includes_default | |
17046 | int | |
17047 | main () | |
17048 | { | |
17049 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17050 | test_array [0] = 0 | |
17051 | ||
17052 | ; | |
17053 | return 0; | |
17054 | } | |
17055 | _ACEOF | |
17056 | rm -f conftest.$ac_objext | |
17057 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17058 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17059 | ac_status=$? |
ac1cb8d3 VS |
17060 | grep -v '^ *+' conftest.er1 >conftest.err |
17061 | rm -f conftest.er1 | |
17062 | cat conftest.err >&5 | |
a848cd7e SC |
17063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17064 | (exit $ac_status); } && | |
d51253e8 | 17065 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17067 | (eval $ac_try) 2>&5 | |
17068 | ac_status=$? | |
17069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17070 | (exit $ac_status); }; } && | |
17071 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17073 | (eval $ac_try) 2>&5 | |
17074 | ac_status=$? | |
17075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17076 | (exit $ac_status); }; }; then | |
17077 | ac_hi=$ac_mid; break | |
17078 | else | |
17079 | echo "$as_me: failed program was:" >&5 | |
17080 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17081 | ||
17082 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17083 | if test $ac_lo -le $ac_mid; then |
17084 | ac_lo= ac_hi= | |
17085 | break | |
17086 | fi | |
17087 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17088 | fi |
ac1cb8d3 | 17089 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17090 | done |
17091 | else | |
17092 | echo "$as_me: failed program was:" >&5 | |
17093 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17094 | ||
17095 | cat >conftest.$ac_ext <<_ACEOF | |
17096 | /* confdefs.h. */ | |
17097 | _ACEOF | |
17098 | cat confdefs.h >>conftest.$ac_ext | |
17099 | cat >>conftest.$ac_ext <<_ACEOF | |
17100 | /* end confdefs.h. */ | |
17101 | $ac_includes_default | |
17102 | int | |
17103 | main () | |
17104 | { | |
17105 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
17106 | test_array [0] = 0 | |
17107 | ||
17108 | ; | |
17109 | return 0; | |
17110 | } | |
17111 | _ACEOF | |
17112 | rm -f conftest.$ac_objext | |
17113 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17114 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17115 | ac_status=$? |
ac1cb8d3 VS |
17116 | grep -v '^ *+' conftest.er1 >conftest.err |
17117 | rm -f conftest.er1 | |
17118 | cat conftest.err >&5 | |
a848cd7e SC |
17119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17120 | (exit $ac_status); } && | |
d51253e8 | 17121 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17123 | (eval $ac_try) 2>&5 | |
17124 | ac_status=$? | |
17125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17126 | (exit $ac_status); }; } && | |
17127 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17129 | (eval $ac_try) 2>&5 | |
17130 | ac_status=$? | |
17131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17132 | (exit $ac_status); }; }; then | |
17133 | ac_hi=-1 ac_mid=-1 | |
17134 | while :; do | |
17135 | cat >conftest.$ac_ext <<_ACEOF | |
17136 | /* confdefs.h. */ | |
17137 | _ACEOF | |
17138 | cat confdefs.h >>conftest.$ac_ext | |
17139 | cat >>conftest.$ac_ext <<_ACEOF | |
17140 | /* end confdefs.h. */ | |
17141 | $ac_includes_default | |
17142 | int | |
17143 | main () | |
17144 | { | |
17145 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
17146 | test_array [0] = 0 | |
17147 | ||
17148 | ; | |
17149 | return 0; | |
17150 | } | |
17151 | _ACEOF | |
17152 | rm -f conftest.$ac_objext | |
17153 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17154 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17155 | ac_status=$? |
ac1cb8d3 VS |
17156 | grep -v '^ *+' conftest.er1 >conftest.err |
17157 | rm -f conftest.er1 | |
17158 | cat conftest.err >&5 | |
a848cd7e SC |
17159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17160 | (exit $ac_status); } && | |
d51253e8 | 17161 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17163 | (eval $ac_try) 2>&5 | |
17164 | ac_status=$? | |
17165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17166 | (exit $ac_status); }; } && | |
17167 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17169 | (eval $ac_try) 2>&5 | |
17170 | ac_status=$? | |
17171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17172 | (exit $ac_status); }; }; then | |
17173 | ac_lo=$ac_mid; break | |
17174 | else | |
17175 | echo "$as_me: failed program was:" >&5 | |
17176 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17177 | ||
17178 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17179 | if test $ac_mid -le $ac_hi; then |
17180 | ac_lo= ac_hi= | |
17181 | break | |
17182 | fi | |
17183 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17184 | fi |
ac1cb8d3 | 17185 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17186 | done |
17187 | else | |
17188 | echo "$as_me: failed program was:" >&5 | |
17189 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17190 | ||
17191 | ac_lo= ac_hi= | |
17192 | fi | |
ac1cb8d3 | 17193 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17194 | fi |
ac1cb8d3 | 17195 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17196 | # Binary search between lo and hi bounds. |
17197 | while test "x$ac_lo" != "x$ac_hi"; do | |
17198 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17199 | cat >conftest.$ac_ext <<_ACEOF | |
17200 | /* confdefs.h. */ | |
17201 | _ACEOF | |
17202 | cat confdefs.h >>conftest.$ac_ext | |
17203 | cat >>conftest.$ac_ext <<_ACEOF | |
17204 | /* end confdefs.h. */ | |
17205 | $ac_includes_default | |
17206 | int | |
17207 | main () | |
17208 | { | |
17209 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17210 | test_array [0] = 0 | |
17211 | ||
17212 | ; | |
17213 | return 0; | |
17214 | } | |
17215 | _ACEOF | |
17216 | rm -f conftest.$ac_objext | |
17217 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17218 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17219 | ac_status=$? |
ac1cb8d3 VS |
17220 | grep -v '^ *+' conftest.er1 >conftest.err |
17221 | rm -f conftest.er1 | |
17222 | cat conftest.err >&5 | |
a848cd7e SC |
17223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17224 | (exit $ac_status); } && | |
d51253e8 | 17225 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17227 | (eval $ac_try) 2>&5 | |
17228 | ac_status=$? | |
17229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17230 | (exit $ac_status); }; } && | |
17231 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17233 | (eval $ac_try) 2>&5 | |
17234 | ac_status=$? | |
17235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17236 | (exit $ac_status); }; }; then | |
17237 | ac_hi=$ac_mid | |
17238 | else | |
17239 | echo "$as_me: failed program was:" >&5 | |
17240 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17241 | ||
17242 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17243 | fi | |
ac1cb8d3 | 17244 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17245 | done |
17246 | case $ac_lo in | |
17247 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
17248 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17249 | See \`config.log' for more details." >&5 | |
17250 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17251 | See \`config.log' for more details." >&2;} | |
17252 | { (exit 1); exit 1; }; } ;; | |
17253 | esac | |
17254 | else | |
17255 | if test "$cross_compiling" = yes; then | |
d51253e8 RL |
17256 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
17257 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
17258 | { (exit 1); exit 1; }; } |
17259 | else | |
17260 | cat >conftest.$ac_ext <<_ACEOF | |
17261 | /* confdefs.h. */ | |
17262 | _ACEOF | |
17263 | cat confdefs.h >>conftest.$ac_ext | |
17264 | cat >>conftest.$ac_ext <<_ACEOF | |
17265 | /* end confdefs.h. */ | |
17266 | $ac_includes_default | |
17267 | long longval () { return (long) (sizeof (long long)); } | |
17268 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
17269 | #include <stdio.h> | |
17270 | #include <stdlib.h> | |
17271 | int | |
17272 | main () | |
17273 | { | |
17274 | ||
17275 | FILE *f = fopen ("conftest.val", "w"); | |
17276 | if (! f) | |
17277 | exit (1); | |
17278 | if (((long) (sizeof (long long))) < 0) | |
17279 | { | |
17280 | long i = longval (); | |
17281 | if (i != ((long) (sizeof (long long)))) | |
17282 | exit (1); | |
17283 | fprintf (f, "%ld\n", i); | |
17284 | } | |
17285 | else | |
17286 | { | |
17287 | unsigned long i = ulongval (); | |
17288 | if (i != ((long) (sizeof (long long)))) | |
17289 | exit (1); | |
17290 | fprintf (f, "%lu\n", i); | |
17291 | } | |
17292 | exit (ferror (f) || fclose (f) != 0); | |
17293 | ||
17294 | ; | |
17295 | return 0; | |
17296 | } | |
17297 | _ACEOF | |
17298 | rm -f conftest$ac_exeext | |
17299 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17300 | (eval $ac_link) 2>&5 | |
17301 | ac_status=$? | |
17302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17303 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
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_sizeof_long_long=`cat conftest.val` | |
17310 | else | |
17311 | echo "$as_me: program exited with status $ac_status" >&5 | |
17312 | echo "$as_me: failed program was:" >&5 | |
17313 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17314 | ||
17315 | ( exit $ac_status ) | |
17316 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17317 | See \`config.log' for more details." >&5 | |
17318 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17319 | See \`config.log' for more details." >&2;} | |
17320 | { (exit 1); exit 1; }; } | |
17321 | fi | |
ac1cb8d3 | 17322 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17323 | fi |
17324 | fi | |
17325 | rm -f conftest.val | |
17326 | else | |
17327 | ac_cv_sizeof_long_long=0 | |
17328 | fi | |
17329 | fi | |
17330 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
17331 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
17332 | cat >>confdefs.h <<_ACEOF | |
17333 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
17334 | _ACEOF | |
17335 | ||
17336 | ||
17337 | ;; | |
17338 | *-hp-hpux* ) | |
17339 | echo "$as_me:$LINENO: checking for long long" >&5 | |
17340 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
17341 | if test "${ac_cv_type_long_long+set}" = set; then | |
17342 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17343 | else | |
17344 | cat >conftest.$ac_ext <<_ACEOF | |
17345 | /* confdefs.h. */ | |
17346 | _ACEOF | |
17347 | cat confdefs.h >>conftest.$ac_ext | |
17348 | cat >>conftest.$ac_ext <<_ACEOF | |
17349 | /* end confdefs.h. */ | |
17350 | $ac_includes_default | |
17351 | int | |
17352 | main () | |
17353 | { | |
17354 | if ((long long *) 0) | |
17355 | return 0; | |
17356 | if (sizeof (long long)) | |
17357 | return 0; | |
17358 | ; | |
17359 | return 0; | |
17360 | } | |
17361 | _ACEOF | |
17362 | rm -f conftest.$ac_objext | |
17363 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17364 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17365 | ac_status=$? |
ac1cb8d3 VS |
17366 | grep -v '^ *+' conftest.er1 >conftest.err |
17367 | rm -f conftest.er1 | |
17368 | cat conftest.err >&5 | |
a848cd7e SC |
17369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17370 | (exit $ac_status); } && | |
d51253e8 | 17371 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17373 | (eval $ac_try) 2>&5 | |
17374 | ac_status=$? | |
17375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17376 | (exit $ac_status); }; } && | |
17377 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17379 | (eval $ac_try) 2>&5 | |
17380 | ac_status=$? | |
17381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17382 | (exit $ac_status); }; }; then | |
17383 | ac_cv_type_long_long=yes | |
17384 | else | |
17385 | echo "$as_me: failed program was:" >&5 | |
17386 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17387 | ||
17388 | ac_cv_type_long_long=no | |
17389 | fi | |
ac1cb8d3 | 17390 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17391 | fi |
17392 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
17393 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
17394 | ||
17395 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
17396 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
17397 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
17398 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17399 | else | |
17400 | if test "$ac_cv_type_long_long" = yes; then | |
17401 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17402 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17403 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17404 | # This bug is HP SR number 8606223364. | |
17405 | if test "$cross_compiling" = yes; then | |
17406 | # Depending upon the size, compute the lo and hi bounds. | |
17407 | cat >conftest.$ac_ext <<_ACEOF | |
17408 | /* confdefs.h. */ | |
17409 | _ACEOF | |
17410 | cat confdefs.h >>conftest.$ac_ext | |
17411 | cat >>conftest.$ac_ext <<_ACEOF | |
17412 | /* end confdefs.h. */ | |
17413 | $ac_includes_default | |
17414 | int | |
17415 | main () | |
17416 | { | |
17417 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
17418 | test_array [0] = 0 | |
17419 | ||
17420 | ; | |
17421 | return 0; | |
17422 | } | |
17423 | _ACEOF | |
17424 | rm -f conftest.$ac_objext | |
17425 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17426 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17427 | ac_status=$? |
ac1cb8d3 VS |
17428 | grep -v '^ *+' conftest.er1 >conftest.err |
17429 | rm -f conftest.er1 | |
17430 | cat conftest.err >&5 | |
a848cd7e SC |
17431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17432 | (exit $ac_status); } && | |
d51253e8 | 17433 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17435 | (eval $ac_try) 2>&5 | |
17436 | ac_status=$? | |
17437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17438 | (exit $ac_status); }; } && | |
17439 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17441 | (eval $ac_try) 2>&5 | |
17442 | ac_status=$? | |
17443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17444 | (exit $ac_status); }; }; then | |
17445 | ac_lo=0 ac_mid=0 | |
17446 | while :; do | |
17447 | cat >conftest.$ac_ext <<_ACEOF | |
17448 | /* confdefs.h. */ | |
17449 | _ACEOF | |
17450 | cat confdefs.h >>conftest.$ac_ext | |
17451 | cat >>conftest.$ac_ext <<_ACEOF | |
17452 | /* end confdefs.h. */ | |
17453 | $ac_includes_default | |
17454 | int | |
17455 | main () | |
17456 | { | |
17457 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17458 | test_array [0] = 0 | |
17459 | ||
17460 | ; | |
17461 | return 0; | |
17462 | } | |
17463 | _ACEOF | |
17464 | rm -f conftest.$ac_objext | |
17465 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17466 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17467 | ac_status=$? |
ac1cb8d3 VS |
17468 | grep -v '^ *+' conftest.er1 >conftest.err |
17469 | rm -f conftest.er1 | |
17470 | cat conftest.err >&5 | |
a848cd7e SC |
17471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17472 | (exit $ac_status); } && | |
d51253e8 | 17473 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17475 | (eval $ac_try) 2>&5 | |
17476 | ac_status=$? | |
17477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17478 | (exit $ac_status); }; } && | |
17479 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17481 | (eval $ac_try) 2>&5 | |
17482 | ac_status=$? | |
17483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17484 | (exit $ac_status); }; }; then | |
17485 | ac_hi=$ac_mid; break | |
17486 | else | |
17487 | echo "$as_me: failed program was:" >&5 | |
17488 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17489 | ||
17490 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17491 | if test $ac_lo -le $ac_mid; then |
17492 | ac_lo= ac_hi= | |
17493 | break | |
17494 | fi | |
17495 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17496 | fi |
ac1cb8d3 | 17497 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17498 | done |
17499 | else | |
17500 | echo "$as_me: failed program was:" >&5 | |
17501 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17502 | ||
17503 | cat >conftest.$ac_ext <<_ACEOF | |
17504 | /* confdefs.h. */ | |
17505 | _ACEOF | |
17506 | cat confdefs.h >>conftest.$ac_ext | |
17507 | cat >>conftest.$ac_ext <<_ACEOF | |
17508 | /* end confdefs.h. */ | |
17509 | $ac_includes_default | |
17510 | int | |
17511 | main () | |
17512 | { | |
17513 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
17514 | test_array [0] = 0 | |
17515 | ||
17516 | ; | |
17517 | return 0; | |
17518 | } | |
17519 | _ACEOF | |
17520 | rm -f conftest.$ac_objext | |
17521 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17522 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17523 | ac_status=$? |
ac1cb8d3 VS |
17524 | grep -v '^ *+' conftest.er1 >conftest.err |
17525 | rm -f conftest.er1 | |
17526 | cat conftest.err >&5 | |
a848cd7e SC |
17527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17528 | (exit $ac_status); } && | |
d51253e8 | 17529 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17531 | (eval $ac_try) 2>&5 | |
17532 | ac_status=$? | |
17533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17534 | (exit $ac_status); }; } && | |
17535 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17537 | (eval $ac_try) 2>&5 | |
17538 | ac_status=$? | |
17539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17540 | (exit $ac_status); }; }; then | |
17541 | ac_hi=-1 ac_mid=-1 | |
17542 | while :; do | |
17543 | cat >conftest.$ac_ext <<_ACEOF | |
17544 | /* confdefs.h. */ | |
17545 | _ACEOF | |
17546 | cat confdefs.h >>conftest.$ac_ext | |
17547 | cat >>conftest.$ac_ext <<_ACEOF | |
17548 | /* end confdefs.h. */ | |
17549 | $ac_includes_default | |
17550 | int | |
17551 | main () | |
17552 | { | |
17553 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
17554 | test_array [0] = 0 | |
17555 | ||
17556 | ; | |
17557 | return 0; | |
17558 | } | |
17559 | _ACEOF | |
17560 | rm -f conftest.$ac_objext | |
17561 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17562 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17563 | ac_status=$? |
ac1cb8d3 VS |
17564 | grep -v '^ *+' conftest.er1 >conftest.err |
17565 | rm -f conftest.er1 | |
17566 | cat conftest.err >&5 | |
a848cd7e SC |
17567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17568 | (exit $ac_status); } && | |
d51253e8 | 17569 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17571 | (eval $ac_try) 2>&5 | |
17572 | ac_status=$? | |
17573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17574 | (exit $ac_status); }; } && | |
17575 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17577 | (eval $ac_try) 2>&5 | |
17578 | ac_status=$? | |
17579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17580 | (exit $ac_status); }; }; then | |
17581 | ac_lo=$ac_mid; break | |
17582 | else | |
17583 | echo "$as_me: failed program was:" >&5 | |
17584 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17585 | ||
17586 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17587 | if test $ac_mid -le $ac_hi; then |
17588 | ac_lo= ac_hi= | |
17589 | break | |
17590 | fi | |
17591 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17592 | fi |
ac1cb8d3 | 17593 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17594 | done |
17595 | else | |
17596 | echo "$as_me: failed program was:" >&5 | |
17597 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17598 | ||
17599 | ac_lo= ac_hi= | |
17600 | fi | |
ac1cb8d3 | 17601 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17602 | fi |
ac1cb8d3 | 17603 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17604 | # Binary search between lo and hi bounds. |
17605 | while test "x$ac_lo" != "x$ac_hi"; do | |
17606 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17607 | cat >conftest.$ac_ext <<_ACEOF | |
17608 | /* confdefs.h. */ | |
17609 | _ACEOF | |
17610 | cat confdefs.h >>conftest.$ac_ext | |
17611 | cat >>conftest.$ac_ext <<_ACEOF | |
17612 | /* end confdefs.h. */ | |
17613 | $ac_includes_default | |
17614 | int | |
17615 | main () | |
17616 | { | |
17617 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17618 | test_array [0] = 0 | |
17619 | ||
17620 | ; | |
17621 | return 0; | |
17622 | } | |
17623 | _ACEOF | |
17624 | rm -f conftest.$ac_objext | |
17625 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17626 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17627 | ac_status=$? |
ac1cb8d3 VS |
17628 | grep -v '^ *+' conftest.er1 >conftest.err |
17629 | rm -f conftest.er1 | |
17630 | cat conftest.err >&5 | |
a848cd7e SC |
17631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17632 | (exit $ac_status); } && | |
d51253e8 | 17633 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17635 | (eval $ac_try) 2>&5 | |
17636 | ac_status=$? | |
17637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17638 | (exit $ac_status); }; } && | |
17639 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17641 | (eval $ac_try) 2>&5 | |
17642 | ac_status=$? | |
17643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17644 | (exit $ac_status); }; }; then | |
17645 | ac_hi=$ac_mid | |
17646 | else | |
17647 | echo "$as_me: failed program was:" >&5 | |
17648 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17649 | ||
17650 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17651 | fi | |
ac1cb8d3 | 17652 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17653 | done |
17654 | case $ac_lo in | |
17655 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
17656 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17657 | See \`config.log' for more details." >&5 | |
17658 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17659 | See \`config.log' for more details." >&2;} | |
17660 | { (exit 1); exit 1; }; } ;; | |
17661 | esac | |
17662 | else | |
17663 | if test "$cross_compiling" = yes; then | |
d51253e8 RL |
17664 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
17665 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
17666 | { (exit 1); exit 1; }; } |
17667 | else | |
17668 | cat >conftest.$ac_ext <<_ACEOF | |
17669 | /* confdefs.h. */ | |
17670 | _ACEOF | |
17671 | cat confdefs.h >>conftest.$ac_ext | |
17672 | cat >>conftest.$ac_ext <<_ACEOF | |
17673 | /* end confdefs.h. */ | |
17674 | $ac_includes_default | |
17675 | long longval () { return (long) (sizeof (long long)); } | |
17676 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
17677 | #include <stdio.h> | |
17678 | #include <stdlib.h> | |
17679 | int | |
17680 | main () | |
17681 | { | |
17682 | ||
17683 | FILE *f = fopen ("conftest.val", "w"); | |
17684 | if (! f) | |
17685 | exit (1); | |
17686 | if (((long) (sizeof (long long))) < 0) | |
17687 | { | |
17688 | long i = longval (); | |
17689 | if (i != ((long) (sizeof (long long)))) | |
17690 | exit (1); | |
17691 | fprintf (f, "%ld\n", i); | |
17692 | } | |
17693 | else | |
17694 | { | |
17695 | unsigned long i = ulongval (); | |
17696 | if (i != ((long) (sizeof (long long)))) | |
17697 | exit (1); | |
17698 | fprintf (f, "%lu\n", i); | |
17699 | } | |
17700 | exit (ferror (f) || fclose (f) != 0); | |
17701 | ||
17702 | ; | |
17703 | return 0; | |
17704 | } | |
17705 | _ACEOF | |
17706 | rm -f conftest$ac_exeext | |
17707 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17708 | (eval $ac_link) 2>&5 | |
17709 | ac_status=$? | |
17710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17711 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17713 | (eval $ac_try) 2>&5 | |
17714 | ac_status=$? | |
17715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17716 | (exit $ac_status); }; }; then | |
17717 | ac_cv_sizeof_long_long=`cat conftest.val` | |
17718 | else | |
17719 | echo "$as_me: program exited with status $ac_status" >&5 | |
17720 | echo "$as_me: failed program was:" >&5 | |
17721 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17722 | ||
17723 | ( exit $ac_status ) | |
17724 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17725 | See \`config.log' for more details." >&5 | |
17726 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17727 | See \`config.log' for more details." >&2;} | |
17728 | { (exit 1); exit 1; }; } | |
17729 | fi | |
ac1cb8d3 | 17730 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17731 | fi |
17732 | fi | |
17733 | rm -f conftest.val | |
17734 | else | |
17735 | ac_cv_sizeof_long_long=0 | |
17736 | fi | |
17737 | fi | |
17738 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
17739 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
17740 | cat >>confdefs.h <<_ACEOF | |
17741 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
17742 | _ACEOF | |
17743 | ||
17744 | ||
17745 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
17746 | CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG" | |
17747 | fi | |
17748 | ;; | |
17749 | * ) | |
17750 | echo "$as_me:$LINENO: checking for long long" >&5 | |
17751 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
17752 | if test "${ac_cv_type_long_long+set}" = set; then | |
17753 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17754 | else | |
17755 | cat >conftest.$ac_ext <<_ACEOF | |
17756 | /* confdefs.h. */ | |
17757 | _ACEOF | |
17758 | cat confdefs.h >>conftest.$ac_ext | |
17759 | cat >>conftest.$ac_ext <<_ACEOF | |
17760 | /* end confdefs.h. */ | |
17761 | $ac_includes_default | |
17762 | int | |
17763 | main () | |
17764 | { | |
17765 | if ((long long *) 0) | |
17766 | return 0; | |
17767 | if (sizeof (long long)) | |
17768 | return 0; | |
17769 | ; | |
17770 | return 0; | |
17771 | } | |
17772 | _ACEOF | |
17773 | rm -f conftest.$ac_objext | |
17774 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17775 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17776 | ac_status=$? |
ac1cb8d3 VS |
17777 | grep -v '^ *+' conftest.er1 >conftest.err |
17778 | rm -f conftest.er1 | |
17779 | cat conftest.err >&5 | |
a848cd7e SC |
17780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17781 | (exit $ac_status); } && | |
d51253e8 | 17782 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17784 | (eval $ac_try) 2>&5 | |
17785 | ac_status=$? | |
17786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17787 | (exit $ac_status); }; } && | |
17788 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17790 | (eval $ac_try) 2>&5 | |
17791 | ac_status=$? | |
17792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17793 | (exit $ac_status); }; }; then | |
17794 | ac_cv_type_long_long=yes | |
17795 | else | |
17796 | echo "$as_me: failed program was:" >&5 | |
17797 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17798 | ||
17799 | ac_cv_type_long_long=no | |
17800 | fi | |
ac1cb8d3 | 17801 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17802 | fi |
17803 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
17804 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
17805 | ||
17806 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
17807 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
17808 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
17809 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17810 | else | |
17811 | if test "$ac_cv_type_long_long" = yes; then | |
17812 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17813 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17814 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17815 | # This bug is HP SR number 8606223364. | |
17816 | if test "$cross_compiling" = yes; then | |
17817 | # Depending upon the size, compute the lo and hi bounds. | |
17818 | cat >conftest.$ac_ext <<_ACEOF | |
17819 | /* confdefs.h. */ | |
17820 | _ACEOF | |
17821 | cat confdefs.h >>conftest.$ac_ext | |
17822 | cat >>conftest.$ac_ext <<_ACEOF | |
17823 | /* end confdefs.h. */ | |
17824 | $ac_includes_default | |
17825 | int | |
17826 | main () | |
17827 | { | |
17828 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
17829 | test_array [0] = 0 | |
17830 | ||
17831 | ; | |
17832 | return 0; | |
17833 | } | |
17834 | _ACEOF | |
17835 | rm -f conftest.$ac_objext | |
17836 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17837 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17838 | ac_status=$? |
ac1cb8d3 VS |
17839 | grep -v '^ *+' conftest.er1 >conftest.err |
17840 | rm -f conftest.er1 | |
17841 | cat conftest.err >&5 | |
a848cd7e SC |
17842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17843 | (exit $ac_status); } && | |
d51253e8 | 17844 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17846 | (eval $ac_try) 2>&5 | |
17847 | ac_status=$? | |
17848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17849 | (exit $ac_status); }; } && | |
17850 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17852 | (eval $ac_try) 2>&5 | |
17853 | ac_status=$? | |
17854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17855 | (exit $ac_status); }; }; then | |
17856 | ac_lo=0 ac_mid=0 | |
17857 | while :; do | |
17858 | cat >conftest.$ac_ext <<_ACEOF | |
17859 | /* confdefs.h. */ | |
17860 | _ACEOF | |
17861 | cat confdefs.h >>conftest.$ac_ext | |
17862 | cat >>conftest.$ac_ext <<_ACEOF | |
17863 | /* end confdefs.h. */ | |
17864 | $ac_includes_default | |
17865 | int | |
17866 | main () | |
17867 | { | |
17868 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17869 | test_array [0] = 0 | |
17870 | ||
17871 | ; | |
17872 | return 0; | |
17873 | } | |
17874 | _ACEOF | |
17875 | rm -f conftest.$ac_objext | |
17876 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17877 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17878 | ac_status=$? |
ac1cb8d3 VS |
17879 | grep -v '^ *+' conftest.er1 >conftest.err |
17880 | rm -f conftest.er1 | |
17881 | cat conftest.err >&5 | |
a848cd7e SC |
17882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17883 | (exit $ac_status); } && | |
d51253e8 | 17884 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17886 | (eval $ac_try) 2>&5 | |
17887 | ac_status=$? | |
17888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17889 | (exit $ac_status); }; } && | |
17890 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17892 | (eval $ac_try) 2>&5 | |
17893 | ac_status=$? | |
17894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17895 | (exit $ac_status); }; }; then | |
17896 | ac_hi=$ac_mid; break | |
17897 | else | |
17898 | echo "$as_me: failed program was:" >&5 | |
17899 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17900 | ||
17901 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17902 | if test $ac_lo -le $ac_mid; then |
17903 | ac_lo= ac_hi= | |
17904 | break | |
17905 | fi | |
17906 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17907 | fi |
ac1cb8d3 | 17908 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17909 | done |
17910 | else | |
17911 | echo "$as_me: failed program was:" >&5 | |
17912 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17913 | ||
17914 | cat >conftest.$ac_ext <<_ACEOF | |
17915 | /* confdefs.h. */ | |
17916 | _ACEOF | |
17917 | cat confdefs.h >>conftest.$ac_ext | |
17918 | cat >>conftest.$ac_ext <<_ACEOF | |
17919 | /* end confdefs.h. */ | |
17920 | $ac_includes_default | |
17921 | int | |
17922 | main () | |
17923 | { | |
17924 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
17925 | test_array [0] = 0 | |
17926 | ||
17927 | ; | |
17928 | return 0; | |
17929 | } | |
17930 | _ACEOF | |
17931 | rm -f conftest.$ac_objext | |
17932 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17933 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17934 | ac_status=$? |
ac1cb8d3 VS |
17935 | grep -v '^ *+' conftest.er1 >conftest.err |
17936 | rm -f conftest.er1 | |
17937 | cat conftest.err >&5 | |
a848cd7e SC |
17938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17939 | (exit $ac_status); } && | |
d51253e8 | 17940 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17942 | (eval $ac_try) 2>&5 | |
17943 | ac_status=$? | |
17944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17945 | (exit $ac_status); }; } && | |
17946 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17948 | (eval $ac_try) 2>&5 | |
17949 | ac_status=$? | |
17950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17951 | (exit $ac_status); }; }; then | |
17952 | ac_hi=-1 ac_mid=-1 | |
17953 | while :; do | |
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); } && | |
d51253e8 | 17980 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17982 | (eval $ac_try) 2>&5 | |
17983 | ac_status=$? | |
17984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17985 | (exit $ac_status); }; } && | |
17986 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17988 | (eval $ac_try) 2>&5 | |
17989 | ac_status=$? | |
17990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17991 | (exit $ac_status); }; }; then | |
17992 | ac_lo=$ac_mid; break | |
17993 | else | |
17994 | echo "$as_me: failed program was:" >&5 | |
17995 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17996 | ||
17997 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17998 | if test $ac_mid -le $ac_hi; then |
17999 | ac_lo= ac_hi= | |
18000 | break | |
18001 | fi | |
18002 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 18003 | fi |
ac1cb8d3 | 18004 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18005 | done |
18006 | else | |
18007 | echo "$as_me: failed program was:" >&5 | |
18008 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18009 | ||
18010 | ac_lo= ac_hi= | |
18011 | fi | |
ac1cb8d3 | 18012 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18013 | fi |
ac1cb8d3 | 18014 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18015 | # Binary search between lo and hi bounds. |
18016 | while test "x$ac_lo" != "x$ac_hi"; do | |
18017 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
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 | int | |
18026 | main () | |
18027 | { | |
18028 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
18029 | test_array [0] = 0 | |
18030 | ||
18031 | ; | |
18032 | return 0; | |
18033 | } | |
18034 | _ACEOF | |
18035 | rm -f conftest.$ac_objext | |
18036 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18037 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18038 | ac_status=$? |
ac1cb8d3 VS |
18039 | grep -v '^ *+' conftest.er1 >conftest.err |
18040 | rm -f conftest.er1 | |
18041 | cat conftest.err >&5 | |
a848cd7e SC |
18042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18043 | (exit $ac_status); } && | |
d51253e8 | 18044 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18046 | (eval $ac_try) 2>&5 | |
18047 | ac_status=$? | |
18048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18049 | (exit $ac_status); }; } && | |
18050 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18052 | (eval $ac_try) 2>&5 | |
18053 | ac_status=$? | |
18054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18055 | (exit $ac_status); }; }; then | |
18056 | ac_hi=$ac_mid | |
18057 | else | |
18058 | echo "$as_me: failed program was:" >&5 | |
18059 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18060 | ||
18061 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18062 | fi | |
ac1cb8d3 | 18063 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18064 | done |
18065 | case $ac_lo in | |
18066 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
18067 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18068 | See \`config.log' for more details." >&5 | |
18069 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18070 | See \`config.log' for more details." >&2;} | |
18071 | { (exit 1); exit 1; }; } ;; | |
18072 | esac | |
18073 | else | |
18074 | if test "$cross_compiling" = yes; then | |
d51253e8 RL |
18075 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
18076 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
18077 | { (exit 1); exit 1; }; } |
18078 | else | |
18079 | cat >conftest.$ac_ext <<_ACEOF | |
18080 | /* confdefs.h. */ | |
18081 | _ACEOF | |
18082 | cat confdefs.h >>conftest.$ac_ext | |
18083 | cat >>conftest.$ac_ext <<_ACEOF | |
18084 | /* end confdefs.h. */ | |
18085 | $ac_includes_default | |
18086 | long longval () { return (long) (sizeof (long long)); } | |
18087 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
18088 | #include <stdio.h> | |
18089 | #include <stdlib.h> | |
18090 | int | |
18091 | main () | |
18092 | { | |
18093 | ||
18094 | FILE *f = fopen ("conftest.val", "w"); | |
18095 | if (! f) | |
18096 | exit (1); | |
18097 | if (((long) (sizeof (long long))) < 0) | |
18098 | { | |
18099 | long i = longval (); | |
18100 | if (i != ((long) (sizeof (long long)))) | |
18101 | exit (1); | |
18102 | fprintf (f, "%ld\n", i); | |
18103 | } | |
18104 | else | |
18105 | { | |
18106 | unsigned long i = ulongval (); | |
18107 | if (i != ((long) (sizeof (long long)))) | |
18108 | exit (1); | |
18109 | fprintf (f, "%lu\n", i); | |
18110 | } | |
18111 | exit (ferror (f) || fclose (f) != 0); | |
18112 | ||
18113 | ; | |
18114 | return 0; | |
18115 | } | |
18116 | _ACEOF | |
18117 | rm -f conftest$ac_exeext | |
18118 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18119 | (eval $ac_link) 2>&5 | |
18120 | ac_status=$? | |
18121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18122 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18124 | (eval $ac_try) 2>&5 | |
18125 | ac_status=$? | |
18126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18127 | (exit $ac_status); }; }; then | |
18128 | ac_cv_sizeof_long_long=`cat conftest.val` | |
18129 | else | |
18130 | echo "$as_me: program exited with status $ac_status" >&5 | |
18131 | echo "$as_me: failed program was:" >&5 | |
18132 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18133 | ||
18134 | ( exit $ac_status ) | |
18135 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18136 | See \`config.log' for more details." >&5 | |
18137 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18138 | See \`config.log' for more details." >&2;} | |
18139 | { (exit 1); exit 1; }; } | |
18140 | fi | |
ac1cb8d3 | 18141 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18142 | fi |
18143 | fi | |
18144 | rm -f conftest.val | |
18145 | else | |
18146 | ac_cv_sizeof_long_long=0 | |
18147 | fi | |
18148 | fi | |
18149 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
18150 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
18151 | cat >>confdefs.h <<_ACEOF | |
18152 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
18153 | _ACEOF | |
18154 | ||
18155 | ||
18156 | esac | |
18157 | ||
18158 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 | |
18159 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 | |
18160 | if test "${wx_cv_sizeof_wchar_t+set}" = set; then | |
18161 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18162 | else | |
18163 | ||
18164 | if test "$cross_compiling" = yes; then | |
18165 | ||
18166 | case "${host}" in | |
18167 | *-pc-msdosdjgpp ) | |
18168 | wx_cv_sizeof_wchar_t=0 | |
18169 | ;; | |
18170 | * ) | |
18171 | wx_cv_sizeof_wchar_t=4 | |
18172 | ;; | |
18173 | esac | |
18174 | ||
18175 | ||
18176 | else | |
18177 | cat >conftest.$ac_ext <<_ACEOF | |
18178 | /* confdefs.h. */ | |
18179 | _ACEOF | |
18180 | cat confdefs.h >>conftest.$ac_ext | |
18181 | cat >>conftest.$ac_ext <<_ACEOF | |
18182 | /* end confdefs.h. */ | |
18183 | ||
18184 | /* DJGPP only has fake wchar_t: */ | |
18185 | #ifdef __DJGPP__ | |
18186 | # error "fake wchar_t" | |
18187 | #endif | |
18188 | #ifdef HAVE_WCHAR_H | |
18189 | # ifdef __CYGWIN__ | |
18190 | # include <stddef.h> | |
18191 | # endif | |
18192 | # include <wchar.h> | |
18193 | #endif | |
18194 | #ifdef HAVE_STDLIB_H | |
18195 | # include <stdlib.h> | |
18196 | #endif | |
18197 | #include <stdio.h> | |
18198 | int main() | |
18199 | { | |
18200 | FILE *f=fopen("conftestval", "w"); | |
18201 | if (!f) exit(1); | |
18202 | fprintf(f, "%i", sizeof(wchar_t)); | |
18203 | exit(0); | |
18204 | } | |
18205 | ||
18206 | _ACEOF | |
18207 | rm -f conftest$ac_exeext | |
18208 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18209 | (eval $ac_link) 2>&5 | |
18210 | ac_status=$? | |
18211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18212 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18214 | (eval $ac_try) 2>&5 | |
18215 | ac_status=$? | |
18216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18217 | (exit $ac_status); }; }; then | |
18218 | wx_cv_sizeof_wchar_t=`cat conftestval` | |
18219 | else | |
18220 | echo "$as_me: program exited with status $ac_status" >&5 | |
18221 | echo "$as_me: failed program was:" >&5 | |
18222 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18223 | ||
18224 | ( exit $ac_status ) | |
18225 | wx_cv_sizeof_wchar_t=0 | |
18226 | fi | |
ac1cb8d3 | 18227 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18228 | fi |
18229 | ||
18230 | fi | |
18231 | echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5 | |
18232 | echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6 | |
18233 | ||
18234 | cat >>confdefs.h <<_ACEOF | |
18235 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t | |
18236 | _ACEOF | |
18237 | ||
18238 | ||
ba3d13e1 VZ |
18239 | echo "$as_me:$LINENO: checking for va_copy" >&5 |
18240 | echo $ECHO_N "checking for va_copy... $ECHO_C" >&6 | |
18241 | if test "${wx_cv_func_va_copy+set}" = set; then | |
18242 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18243 | else | |
18244 | ||
18245 | cat >conftest.$ac_ext <<_ACEOF | |
18246 | ||
18247 | #include <stdarg.h> | |
18248 | void foo(char *f, ...) | |
18249 | { | |
18250 | va_list ap1, ap2; | |
18251 | va_start(ap1, f); | |
18252 | va_copy(ap2, ap1); | |
18253 | va_end(ap2); | |
18254 | va_end(ap1); | |
18255 | } | |
18256 | _ACEOF | |
18257 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18258 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18259 | (eval $ac_link) 2>conftest.er1 | |
18260 | ac_status=$? | |
18261 | grep -v '^ *+' conftest.er1 >conftest.err | |
18262 | rm -f conftest.er1 | |
18263 | cat conftest.err >&5 | |
18264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18265 | (exit $ac_status); } && | |
d51253e8 | 18266 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ba3d13e1 VZ |
18267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18268 | (eval $ac_try) 2>&5 | |
18269 | ac_status=$? | |
18270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18271 | (exit $ac_status); }; } && | |
18272 | { ac_try='test -s conftest$ac_exeext' | |
18273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18274 | (eval $ac_try) 2>&5 | |
18275 | ac_status=$? | |
18276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18277 | (exit $ac_status); }; }; then | |
18278 | wx_cv_func_va_copy=yes | |
18279 | else | |
18280 | echo "$as_me: failed program was:" >&5 | |
18281 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18282 | ||
18283 | wx_cv_func_va_copy=no | |
18284 | ||
18285 | fi | |
18286 | rm -f conftest.err conftest.$ac_objext \ | |
18287 | conftest$ac_exeext conftest.$ac_ext | |
18288 | ||
18289 | ||
18290 | fi | |
18291 | echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5 | |
18292 | echo "${ECHO_T}$wx_cv_func_va_copy" >&6 | |
18293 | ||
18294 | if test $wx_cv_func_va_copy = "yes"; then | |
18295 | cat >>confdefs.h <<\_ACEOF | |
18296 | #define HAVE_VA_COPY 1 | |
18297 | _ACEOF | |
18298 | ||
18299 | else | |
18300 | echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5 | |
18301 | echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6 | |
18302 | if test "${wx_cv_type_va_list_lvalue+set}" = set; then | |
18303 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18304 | else | |
18305 | ||
18306 | if test "$cross_compiling" = yes; then | |
18307 | wx_cv_type_va_list_lvalue=yes | |
18308 | ||
18309 | else | |
18310 | cat >conftest.$ac_ext <<_ACEOF | |
18311 | ||
18312 | #include <stdarg.h> | |
18313 | int foo(char *f, ...) | |
18314 | { | |
18315 | va_list ap1, ap2; | |
18316 | va_start(ap1, f); | |
18317 | ap2 = ap1; | |
18318 | if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 ) | |
18319 | return 1; | |
18320 | va_end(ap2); | |
18321 | va_end(ap1); | |
18322 | return 0; | |
18323 | } | |
18324 | int main() | |
18325 | { | |
18326 | return foo("hi", 17); | |
18327 | } | |
18328 | _ACEOF | |
18329 | rm -f conftest$ac_exeext | |
18330 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18331 | (eval $ac_link) 2>&5 | |
18332 | ac_status=$? | |
18333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18334 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18336 | (eval $ac_try) 2>&5 | |
18337 | ac_status=$? | |
18338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18339 | (exit $ac_status); }; }; then | |
18340 | wx_cv_type_va_list_lvalue=yes | |
18341 | else | |
18342 | echo "$as_me: program exited with status $ac_status" >&5 | |
18343 | echo "$as_me: failed program was:" >&5 | |
18344 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18345 | ||
18346 | ( exit $ac_status ) | |
18347 | wx_cv_type_va_list_lvalue=no | |
18348 | fi | |
18349 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
18350 | fi | |
18351 | ||
18352 | ||
18353 | fi | |
18354 | echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5 | |
18355 | echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6 | |
18356 | ||
18357 | if test $wx_cv_type_va_list_lvalue != "yes"; then | |
18358 | cat >>confdefs.h <<\_ACEOF | |
18359 | #define VA_LIST_IS_ARRAY 1 | |
18360 | _ACEOF | |
18361 | ||
18362 | fi | |
18363 | fi | |
18364 | ||
a848cd7e SC |
18365 | # Check whether --enable-largefile or --disable-largefile was given. |
18366 | if test "${enable_largefile+set}" = set; then | |
18367 | enableval="$enable_largefile" | |
18368 | ||
18369 | fi; | |
18370 | if test "$enable_largefile" != no; then | |
18371 | wx_largefile=no | |
18372 | ||
18373 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
18374 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
18375 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
18376 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18377 | else | |
18378 | ||
18379 | cat >conftest.$ac_ext <<_ACEOF | |
18380 | /* confdefs.h. */ | |
18381 | _ACEOF | |
18382 | cat confdefs.h >>conftest.$ac_ext | |
18383 | cat >>conftest.$ac_ext <<_ACEOF | |
18384 | /* end confdefs.h. */ | |
18385 | #define _FILE_OFFSET_BITS 64 | |
18386 | #include <sys/types.h> | |
18387 | int | |
18388 | main () | |
18389 | { | |
18390 | typedef struct { | |
18391 | unsigned int field: sizeof(off_t) == 8; | |
18392 | } wxlf; | |
18393 | ||
18394 | ; | |
18395 | return 0; | |
18396 | } | |
18397 | _ACEOF | |
18398 | rm -f conftest.$ac_objext | |
18399 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18400 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18401 | ac_status=$? |
ac1cb8d3 VS |
18402 | grep -v '^ *+' conftest.er1 >conftest.err |
18403 | rm -f conftest.er1 | |
18404 | cat conftest.err >&5 | |
a848cd7e SC |
18405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18406 | (exit $ac_status); } && | |
d51253e8 | 18407 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18409 | (eval $ac_try) 2>&5 | |
18410 | ac_status=$? | |
18411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18412 | (exit $ac_status); }; } && | |
18413 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18415 | (eval $ac_try) 2>&5 | |
18416 | ac_status=$? | |
18417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18418 | (exit $ac_status); }; }; then | |
18419 | ac_cv_sys_file_offset_bits=64 | |
18420 | else | |
18421 | echo "$as_me: failed program was:" >&5 | |
18422 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18423 | ||
18424 | ac_cv_sys_file_offset_bits=no | |
18425 | fi | |
ac1cb8d3 | 18426 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18427 | |
18428 | ||
18429 | fi | |
18430 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
18431 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
18432 | ||
18433 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
18434 | wx_largefile=yes | |
18435 | cat >>confdefs.h <<_ACEOF | |
18436 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
18437 | _ACEOF | |
18438 | ||
18439 | fi | |
18440 | ||
18441 | if test "x$wx_largefile" != "xyes"; then | |
18442 | ||
18443 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
18444 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
18445 | if test "${ac_cv_sys_large_files+set}" = set; then | |
18446 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18447 | else | |
18448 | ||
18449 | cat >conftest.$ac_ext <<_ACEOF | |
18450 | /* confdefs.h. */ | |
18451 | _ACEOF | |
18452 | cat confdefs.h >>conftest.$ac_ext | |
18453 | cat >>conftest.$ac_ext <<_ACEOF | |
18454 | /* end confdefs.h. */ | |
18455 | #define _LARGE_FILES 1 | |
18456 | #include <sys/types.h> | |
18457 | int | |
18458 | main () | |
18459 | { | |
18460 | typedef struct { | |
18461 | unsigned int field: sizeof(off_t) == 8; | |
18462 | } wxlf; | |
18463 | ||
18464 | ; | |
18465 | return 0; | |
18466 | } | |
18467 | _ACEOF | |
18468 | rm -f conftest.$ac_objext | |
18469 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18470 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18471 | ac_status=$? |
ac1cb8d3 VS |
18472 | grep -v '^ *+' conftest.er1 >conftest.err |
18473 | rm -f conftest.er1 | |
18474 | cat conftest.err >&5 | |
a848cd7e SC |
18475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18476 | (exit $ac_status); } && | |
d51253e8 | 18477 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
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); }; } && | |
18483 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18484 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18485 | (eval $ac_try) 2>&5 | |
18486 | ac_status=$? | |
18487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18488 | (exit $ac_status); }; }; then | |
18489 | ac_cv_sys_large_files=1 | |
18490 | else | |
18491 | echo "$as_me: failed program was:" >&5 | |
18492 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18493 | ||
18494 | ac_cv_sys_large_files=no | |
18495 | fi | |
ac1cb8d3 | 18496 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18497 | |
18498 | ||
18499 | fi | |
18500 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
18501 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
18502 | ||
18503 | if test "$ac_cv_sys_large_files" != no; then | |
18504 | wx_largefile=yes | |
18505 | cat >>confdefs.h <<_ACEOF | |
18506 | #define _LARGE_FILES $ac_cv_sys_large_files | |
18507 | _ACEOF | |
18508 | ||
18509 | fi | |
18510 | ||
18511 | fi | |
18512 | ||
18513 | echo "$as_me:$LINENO: checking if large file support is available" >&5 | |
18514 | echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6 | |
18515 | if test "x$wx_largefile" = "xyes"; then | |
18516 | cat >>confdefs.h <<\_ACEOF | |
18517 | #define HAVE_LARGEFILE_SUPPORT 1 | |
18518 | _ACEOF | |
18519 | ||
18520 | fi | |
18521 | echo "$as_me:$LINENO: result: $wx_largefile" >&5 | |
18522 | echo "${ECHO_T}$wx_largefile" >&6 | |
18523 | fi | |
18524 | ||
18525 | ||
18526 | if test "x$wx_largefile" = "xyes"; then | |
18527 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then | |
18528 | WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" | |
18529 | else | |
18530 | WX_LARGEFILE_FLAGS="-D_LARGE_FILES" | |
18531 | fi | |
18532 | CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS" | |
18533 | fi | |
18534 | ||
18535 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | |
18536 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
18537 | if test "${ac_cv_c_bigendian+set}" = set; then | |
18538 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18539 | else | |
18540 | ac_cv_c_bigendian=unknown | |
18541 | # See if sys/param.h defines the BYTE_ORDER macro. | |
18542 | cat >conftest.$ac_ext <<_ACEOF | |
18543 | /* confdefs.h. */ | |
18544 | _ACEOF | |
18545 | cat confdefs.h >>conftest.$ac_ext | |
18546 | cat >>conftest.$ac_ext <<_ACEOF | |
18547 | /* end confdefs.h. */ | |
18548 | #include <sys/types.h> | |
18549 | #include <sys/param.h> | |
18550 | int | |
18551 | main () | |
18552 | { | |
18553 | ||
18554 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
18555 | bogus endian macros | |
18556 | #endif | |
18557 | ; | |
18558 | return 0; | |
18559 | } | |
18560 | _ACEOF | |
18561 | rm -f conftest.$ac_objext | |
18562 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18563 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18564 | ac_status=$? |
ac1cb8d3 VS |
18565 | grep -v '^ *+' conftest.er1 >conftest.err |
18566 | rm -f conftest.er1 | |
18567 | cat conftest.err >&5 | |
a848cd7e SC |
18568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18569 | (exit $ac_status); } && | |
d51253e8 | 18570 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18572 | (eval $ac_try) 2>&5 | |
18573 | ac_status=$? | |
18574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18575 | (exit $ac_status); }; } && | |
18576 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18578 | (eval $ac_try) 2>&5 | |
18579 | ac_status=$? | |
18580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18581 | (exit $ac_status); }; }; then | |
18582 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
18583 | cat >conftest.$ac_ext <<_ACEOF | |
18584 | /* confdefs.h. */ | |
18585 | _ACEOF | |
18586 | cat confdefs.h >>conftest.$ac_ext | |
18587 | cat >>conftest.$ac_ext <<_ACEOF | |
18588 | /* end confdefs.h. */ | |
18589 | #include <sys/types.h> | |
18590 | #include <sys/param.h> | |
18591 | int | |
18592 | main () | |
18593 | { | |
18594 | ||
18595 | #if BYTE_ORDER != BIG_ENDIAN | |
18596 | not big endian | |
18597 | #endif | |
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); } && | |
d51253e8 | 18611 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18613 | (eval $ac_try) 2>&5 | |
18614 | ac_status=$? | |
18615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18616 | (exit $ac_status); }; } && | |
18617 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18619 | (eval $ac_try) 2>&5 | |
18620 | ac_status=$? | |
18621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18622 | (exit $ac_status); }; }; then | |
18623 | ac_cv_c_bigendian=yes | |
18624 | else | |
18625 | echo "$as_me: failed program was:" >&5 | |
18626 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18627 | ||
18628 | ac_cv_c_bigendian=no | |
18629 | fi | |
ac1cb8d3 | 18630 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18631 | else |
18632 | echo "$as_me: failed program was:" >&5 | |
18633 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18634 | ||
18635 | fi | |
ac1cb8d3 | 18636 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18637 | if test $ac_cv_c_bigendian = unknown; then |
18638 | if test "$cross_compiling" = yes; then | |
18639 | ac_cv_c_bigendian=unknown | |
18640 | else | |
18641 | cat >conftest.$ac_ext <<_ACEOF | |
18642 | /* confdefs.h. */ | |
18643 | _ACEOF | |
18644 | cat confdefs.h >>conftest.$ac_ext | |
18645 | cat >>conftest.$ac_ext <<_ACEOF | |
18646 | /* end confdefs.h. */ | |
18647 | main () { | |
18648 | /* Are we little or big endian? From Harbison&Steele. */ | |
18649 | union | |
18650 | { | |
18651 | long l; | |
18652 | char c[sizeof (long)]; | |
18653 | } u; | |
18654 | u.l = 1; | |
18655 | exit (u.c[sizeof (long) - 1] == 1); | |
18656 | } | |
18657 | _ACEOF | |
18658 | rm -f conftest$ac_exeext | |
18659 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18660 | (eval $ac_link) 2>&5 | |
18661 | ac_status=$? | |
18662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18663 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18665 | (eval $ac_try) 2>&5 | |
18666 | ac_status=$? | |
18667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18668 | (exit $ac_status); }; }; then | |
18669 | ac_cv_c_bigendian=no | |
18670 | else | |
18671 | echo "$as_me: program exited with status $ac_status" >&5 | |
18672 | echo "$as_me: failed program was:" >&5 | |
18673 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18674 | ||
18675 | ( exit $ac_status ) | |
18676 | ac_cv_c_bigendian=yes | |
18677 | fi | |
ac1cb8d3 | 18678 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18679 | fi |
18680 | fi | |
18681 | fi | |
18682 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | |
18683 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
18684 | if test $ac_cv_c_bigendian = unknown; then | |
18685 | { 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 | |
18686 | 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;} | |
18687 | fi | |
18688 | if test $ac_cv_c_bigendian = yes; then | |
18689 | cat >>confdefs.h <<\_ACEOF | |
18690 | #define WORDS_BIGENDIAN 1 | |
18691 | _ACEOF | |
18692 | ||
18693 | fi | |
18694 | ||
18695 | ||
18696 | ac_ext=cc | |
18697 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18698 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18699 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18700 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18701 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
18702 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
18703 | if test -z "$CXXCPP"; then | |
18704 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
18705 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18706 | else | |
18707 | # Double quotes because CXXCPP needs to be expanded | |
18708 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
18709 | do | |
18710 | ac_preproc_ok=false | |
18711 | for ac_cxx_preproc_warn_flag in '' yes | |
18712 | do | |
18713 | # Use a header file that comes with gcc, so configuring glibc | |
18714 | # with a fresh cross-compiler works. | |
18715 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18716 | # <limits.h> exists even on freestanding compilers. | |
18717 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
18718 | # not just through cpp. "Syntax error" is here to catch this case. | |
18719 | cat >conftest.$ac_ext <<_ACEOF | |
18720 | /* confdefs.h. */ | |
18721 | _ACEOF | |
18722 | cat confdefs.h >>conftest.$ac_ext | |
18723 | cat >>conftest.$ac_ext <<_ACEOF | |
18724 | /* end confdefs.h. */ | |
18725 | #ifdef __STDC__ | |
18726 | # include <limits.h> | |
18727 | #else | |
18728 | # include <assert.h> | |
18729 | #endif | |
ac1cb8d3 | 18730 | Syntax error |
a848cd7e SC |
18731 | _ACEOF |
18732 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18733 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18734 | ac_status=$? | |
18735 | grep -v '^ *+' conftest.er1 >conftest.err | |
18736 | rm -f conftest.er1 | |
18737 | cat conftest.err >&5 | |
18738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18739 | (exit $ac_status); } >/dev/null; then | |
18740 | if test -s conftest.err; then | |
18741 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 18742 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
18743 | else |
18744 | ac_cpp_err= | |
18745 | fi | |
18746 | else | |
18747 | ac_cpp_err=yes | |
18748 | fi | |
18749 | if test -z "$ac_cpp_err"; then | |
18750 | : | |
18751 | else | |
18752 | echo "$as_me: failed program was:" >&5 | |
18753 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18754 | ||
18755 | # Broken: fails on valid input. | |
18756 | continue | |
18757 | fi | |
18758 | rm -f conftest.err conftest.$ac_ext | |
18759 | ||
18760 | # OK, works on sane cases. Now check whether non-existent headers | |
18761 | # can be detected and how. | |
18762 | cat >conftest.$ac_ext <<_ACEOF | |
18763 | /* confdefs.h. */ | |
18764 | _ACEOF | |
18765 | cat confdefs.h >>conftest.$ac_ext | |
18766 | cat >>conftest.$ac_ext <<_ACEOF | |
18767 | /* end confdefs.h. */ | |
18768 | #include <ac_nonexistent.h> | |
18769 | _ACEOF | |
18770 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18771 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18772 | ac_status=$? | |
18773 | grep -v '^ *+' conftest.er1 >conftest.err | |
18774 | rm -f conftest.er1 | |
18775 | cat conftest.err >&5 | |
18776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18777 | (exit $ac_status); } >/dev/null; then | |
18778 | if test -s conftest.err; then | |
18779 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 18780 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
18781 | else |
18782 | ac_cpp_err= | |
18783 | fi | |
18784 | else | |
18785 | ac_cpp_err=yes | |
18786 | fi | |
18787 | if test -z "$ac_cpp_err"; then | |
18788 | # Broken: success on invalid input. | |
18789 | continue | |
18790 | else | |
18791 | echo "$as_me: failed program was:" >&5 | |
18792 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18793 | ||
18794 | # Passes both tests. | |
18795 | ac_preproc_ok=: | |
18796 | break | |
18797 | fi | |
18798 | rm -f conftest.err conftest.$ac_ext | |
18799 | ||
18800 | done | |
18801 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
18802 | rm -f conftest.err conftest.$ac_ext | |
18803 | if $ac_preproc_ok; then | |
18804 | break | |
18805 | fi | |
18806 | ||
18807 | done | |
18808 | ac_cv_prog_CXXCPP=$CXXCPP | |
18809 | ||
18810 | fi | |
18811 | CXXCPP=$ac_cv_prog_CXXCPP | |
18812 | else | |
18813 | ac_cv_prog_CXXCPP=$CXXCPP | |
18814 | fi | |
18815 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
18816 | echo "${ECHO_T}$CXXCPP" >&6 | |
18817 | ac_preproc_ok=false | |
18818 | for ac_cxx_preproc_warn_flag in '' yes | |
18819 | do | |
18820 | # Use a header file that comes with gcc, so configuring glibc | |
18821 | # with a fresh cross-compiler works. | |
18822 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18823 | # <limits.h> exists even on freestanding compilers. | |
18824 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
18825 | # not just through cpp. "Syntax error" is here to catch this case. | |
18826 | cat >conftest.$ac_ext <<_ACEOF | |
18827 | /* confdefs.h. */ | |
18828 | _ACEOF | |
18829 | cat confdefs.h >>conftest.$ac_ext | |
18830 | cat >>conftest.$ac_ext <<_ACEOF | |
18831 | /* end confdefs.h. */ | |
18832 | #ifdef __STDC__ | |
18833 | # include <limits.h> | |
18834 | #else | |
18835 | # include <assert.h> | |
18836 | #endif | |
ac1cb8d3 | 18837 | Syntax error |
a848cd7e SC |
18838 | _ACEOF |
18839 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18840 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18841 | ac_status=$? | |
18842 | grep -v '^ *+' conftest.er1 >conftest.err | |
18843 | rm -f conftest.er1 | |
18844 | cat conftest.err >&5 | |
18845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18846 | (exit $ac_status); } >/dev/null; then | |
18847 | if test -s conftest.err; then | |
18848 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 18849 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
18850 | else |
18851 | ac_cpp_err= | |
18852 | fi | |
18853 | else | |
18854 | ac_cpp_err=yes | |
18855 | fi | |
18856 | if test -z "$ac_cpp_err"; then | |
18857 | : | |
18858 | else | |
18859 | echo "$as_me: failed program was:" >&5 | |
18860 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18861 | ||
18862 | # Broken: fails on valid input. | |
18863 | continue | |
18864 | fi | |
18865 | rm -f conftest.err conftest.$ac_ext | |
18866 | ||
18867 | # OK, works on sane cases. Now check whether non-existent headers | |
18868 | # can be detected and how. | |
18869 | cat >conftest.$ac_ext <<_ACEOF | |
18870 | /* confdefs.h. */ | |
18871 | _ACEOF | |
18872 | cat confdefs.h >>conftest.$ac_ext | |
18873 | cat >>conftest.$ac_ext <<_ACEOF | |
18874 | /* end confdefs.h. */ | |
18875 | #include <ac_nonexistent.h> | |
18876 | _ACEOF | |
18877 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18878 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18879 | ac_status=$? | |
18880 | grep -v '^ *+' conftest.er1 >conftest.err | |
18881 | rm -f conftest.er1 | |
18882 | cat conftest.err >&5 | |
18883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18884 | (exit $ac_status); } >/dev/null; then | |
18885 | if test -s conftest.err; then | |
18886 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 18887 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
18888 | else |
18889 | ac_cpp_err= | |
18890 | fi | |
18891 | else | |
18892 | ac_cpp_err=yes | |
18893 | fi | |
18894 | if test -z "$ac_cpp_err"; then | |
18895 | # Broken: success on invalid input. | |
18896 | continue | |
18897 | else | |
18898 | echo "$as_me: failed program was:" >&5 | |
18899 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18900 | ||
18901 | # Passes both tests. | |
18902 | ac_preproc_ok=: | |
18903 | break | |
18904 | fi | |
18905 | rm -f conftest.err conftest.$ac_ext | |
18906 | ||
18907 | done | |
18908 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
18909 | rm -f conftest.err conftest.$ac_ext | |
18910 | if $ac_preproc_ok; then | |
18911 | : | |
18912 | else | |
18913 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
18914 | See \`config.log' for more details." >&5 | |
18915 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
18916 | See \`config.log' for more details." >&2;} | |
18917 | { (exit 1); exit 1; }; } | |
18918 | fi | |
18919 | ||
18920 | ac_ext=cc | |
18921 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18922 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18923 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18924 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18925 | ||
18926 | ||
18927 | ||
18928 | ||
18929 | ||
18930 | ac_ext=cc | |
18931 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18932 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18933 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18934 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18935 | ||
18936 | ||
18937 | ||
18938 | for ac_header in iostream | |
18939 | do | |
18940 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
18941 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18942 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18943 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
18944 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18945 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18946 | fi | |
18947 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
18948 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
18949 | else | |
18950 | # Is the header compilable? | |
18951 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
18952 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
18953 | cat >conftest.$ac_ext <<_ACEOF | |
18954 | /* confdefs.h. */ | |
18955 | _ACEOF | |
18956 | cat confdefs.h >>conftest.$ac_ext | |
18957 | cat >>conftest.$ac_ext <<_ACEOF | |
18958 | /* end confdefs.h. */ | |
18959 | $ac_includes_default | |
18960 | #include <$ac_header> | |
18961 | _ACEOF | |
18962 | rm -f conftest.$ac_objext | |
18963 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18964 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18965 | ac_status=$? |
ac1cb8d3 VS |
18966 | grep -v '^ *+' conftest.er1 >conftest.err |
18967 | rm -f conftest.er1 | |
18968 | cat conftest.err >&5 | |
a848cd7e SC |
18969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18970 | (exit $ac_status); } && | |
d51253e8 | 18971 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18973 | (eval $ac_try) 2>&5 | |
18974 | ac_status=$? | |
18975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18976 | (exit $ac_status); }; } && | |
18977 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18979 | (eval $ac_try) 2>&5 | |
18980 | ac_status=$? | |
18981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18982 | (exit $ac_status); }; }; then | |
18983 | ac_header_compiler=yes | |
18984 | else | |
18985 | echo "$as_me: failed program was:" >&5 | |
18986 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18987 | ||
18988 | ac_header_compiler=no | |
18989 | fi | |
ac1cb8d3 | 18990 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18991 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
18992 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18993 | ||
18994 | # Is the header present? | |
18995 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
18996 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
18997 | cat >conftest.$ac_ext <<_ACEOF | |
18998 | /* confdefs.h. */ | |
18999 | _ACEOF | |
19000 | cat confdefs.h >>conftest.$ac_ext | |
19001 | cat >>conftest.$ac_ext <<_ACEOF | |
19002 | /* end confdefs.h. */ | |
19003 | #include <$ac_header> | |
19004 | _ACEOF | |
19005 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19006 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19007 | ac_status=$? | |
19008 | grep -v '^ *+' conftest.er1 >conftest.err | |
19009 | rm -f conftest.er1 | |
19010 | cat conftest.err >&5 | |
19011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19012 | (exit $ac_status); } >/dev/null; then | |
19013 | if test -s conftest.err; then | |
19014 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 19015 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
19016 | else |
19017 | ac_cpp_err= | |
19018 | fi | |
19019 | else | |
19020 | ac_cpp_err=yes | |
19021 | fi | |
19022 | if test -z "$ac_cpp_err"; then | |
19023 | ac_header_preproc=yes | |
19024 | else | |
19025 | echo "$as_me: failed program was:" >&5 | |
19026 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19027 | ||
19028 | ac_header_preproc=no | |
19029 | fi | |
19030 | rm -f conftest.err conftest.$ac_ext | |
19031 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19032 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19033 | ||
19034 | # So? What about this header? | |
ac1cb8d3 VS |
19035 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
19036 | yes:no: ) | |
a848cd7e SC |
19037 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
19038 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
19039 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
19040 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
19041 | ac_header_preproc=yes | |
a848cd7e | 19042 | ;; |
ac1cb8d3 | 19043 | no:yes:* ) |
a848cd7e SC |
19044 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
19045 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
19046 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
19047 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
19048 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
19049 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
19050 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
19051 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
19052 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19053 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
19054 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
19055 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
19056 | ( |
19057 | cat <<\_ASBOX | |
ac1cb8d3 VS |
19058 | ## ----------------------------------------- ## |
19059 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
19060 | ## ----------------------------------------- ## | |
a848cd7e SC |
19061 | _ASBOX |
19062 | ) | | |
19063 | sed "s/^/$as_me: WARNING: /" >&2 | |
19064 | ;; | |
19065 | esac | |
19066 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19067 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
19068 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19069 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19070 | else | |
ac1cb8d3 | 19071 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
19072 | fi |
19073 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
19074 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
19075 | ||
19076 | fi | |
19077 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
19078 | cat >>confdefs.h <<_ACEOF | |
19079 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
19080 | _ACEOF | |
19081 | ||
19082 | fi | |
19083 | ||
19084 | done | |
19085 | ||
19086 | ||
19087 | if test "$ac_cv_header_iostream" = "yes" ; then | |
19088 | : | |
19089 | else | |
19090 | cat >>confdefs.h <<\_ACEOF | |
19091 | #define wxUSE_IOSTREAMH 1 | |
19092 | _ACEOF | |
19093 | ||
19094 | fi | |
19095 | ||
19096 | ac_ext=c | |
19097 | ac_cpp='$CPP $CPPFLAGS' | |
19098 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19099 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19100 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19101 | ||
19102 | ||
19103 | ||
19104 | ||
19105 | echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5 | |
19106 | echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6 | |
19107 | if test "${wx_cv_cpp_bool+set}" = set; then | |
19108 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19109 | else | |
19110 | ||
19111 | ||
19112 | ||
19113 | ac_ext=cc | |
19114 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19115 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19116 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19117 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19118 | ||
19119 | ||
19120 | cat >conftest.$ac_ext <<_ACEOF | |
19121 | /* confdefs.h. */ | |
19122 | _ACEOF | |
19123 | cat confdefs.h >>conftest.$ac_ext | |
19124 | cat >>conftest.$ac_ext <<_ACEOF | |
19125 | /* end confdefs.h. */ | |
19126 | ||
19127 | ||
19128 | int | |
19129 | main () | |
19130 | { | |
19131 | ||
19132 | bool b = true; | |
19133 | ||
19134 | return 0; | |
19135 | ||
19136 | ; | |
19137 | return 0; | |
19138 | } | |
19139 | _ACEOF | |
19140 | rm -f conftest.$ac_objext | |
19141 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19142 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19143 | ac_status=$? |
ac1cb8d3 VS |
19144 | grep -v '^ *+' conftest.er1 >conftest.err |
19145 | rm -f conftest.er1 | |
19146 | cat conftest.err >&5 | |
a848cd7e SC |
19147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19148 | (exit $ac_status); } && | |
d51253e8 | 19149 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19151 | (eval $ac_try) 2>&5 | |
19152 | ac_status=$? | |
19153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19154 | (exit $ac_status); }; } && | |
19155 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19157 | (eval $ac_try) 2>&5 | |
19158 | ac_status=$? | |
19159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19160 | (exit $ac_status); }; }; then | |
19161 | ||
19162 | wx_cv_cpp_bool=yes | |
19163 | ||
19164 | else | |
19165 | echo "$as_me: failed program was:" >&5 | |
19166 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19167 | ||
19168 | ||
19169 | wx_cv_cpp_bool=no | |
19170 | ||
19171 | ||
19172 | fi | |
ac1cb8d3 | 19173 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19174 | |
19175 | ac_ext=c | |
19176 | ac_cpp='$CPP $CPPFLAGS' | |
19177 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19178 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19179 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19180 | ||
19181 | ||
19182 | fi | |
19183 | echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5 | |
19184 | echo "${ECHO_T}$wx_cv_cpp_bool" >&6 | |
19185 | ||
19186 | if test "$wx_cv_cpp_bool" = "yes"; then | |
19187 | cat >>confdefs.h <<\_ACEOF | |
19188 | #define HAVE_BOOL 1 | |
19189 | _ACEOF | |
19190 | ||
19191 | fi | |
19192 | ||
19193 | ||
19194 | ||
19195 | echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5 | |
19196 | echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6 | |
19197 | if test "${wx_cv_explicit+set}" = set; then | |
19198 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19199 | else | |
19200 | ||
19201 | ||
19202 | ||
19203 | ac_ext=cc | |
19204 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19205 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19206 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19207 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19208 | ||
19209 | ||
19210 | cat >conftest.$ac_ext <<_ACEOF | |
19211 | /* confdefs.h. */ | |
19212 | _ACEOF | |
19213 | cat confdefs.h >>conftest.$ac_ext | |
19214 | cat >>conftest.$ac_ext <<_ACEOF | |
19215 | /* end confdefs.h. */ | |
19216 | ||
19217 | class Foo { public: explicit Foo(int) {} }; | |
19218 | ||
19219 | int | |
19220 | main () | |
19221 | { | |
19222 | ||
19223 | return 0; | |
19224 | ||
19225 | ; | |
19226 | return 0; | |
19227 | } | |
19228 | _ACEOF | |
19229 | rm -f conftest.$ac_objext | |
19230 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19231 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19232 | ac_status=$? |
ac1cb8d3 VS |
19233 | grep -v '^ *+' conftest.er1 >conftest.err |
19234 | rm -f conftest.er1 | |
19235 | cat conftest.err >&5 | |
a848cd7e SC |
19236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19237 | (exit $ac_status); } && | |
d51253e8 | 19238 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19240 | (eval $ac_try) 2>&5 | |
19241 | ac_status=$? | |
19242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19243 | (exit $ac_status); }; } && | |
19244 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19246 | (eval $ac_try) 2>&5 | |
19247 | ac_status=$? | |
19248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19249 | (exit $ac_status); }; }; then | |
19250 | ||
19251 | cat >conftest.$ac_ext <<_ACEOF | |
19252 | /* confdefs.h. */ | |
19253 | _ACEOF | |
19254 | cat confdefs.h >>conftest.$ac_ext | |
19255 | cat >>conftest.$ac_ext <<_ACEOF | |
19256 | /* end confdefs.h. */ | |
19257 | ||
19258 | class Foo { public: explicit Foo(int) {} }; | |
19259 | static void TakeFoo(const Foo& foo) { } | |
19260 | ||
19261 | int | |
19262 | main () | |
19263 | { | |
19264 | ||
19265 | TakeFoo(17); | |
19266 | return 0; | |
19267 | ||
19268 | ; | |
19269 | return 0; | |
19270 | } | |
19271 | _ACEOF | |
19272 | rm -f conftest.$ac_objext | |
19273 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19274 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19275 | ac_status=$? |
ac1cb8d3 VS |
19276 | grep -v '^ *+' conftest.er1 >conftest.err |
19277 | rm -f conftest.er1 | |
19278 | cat conftest.err >&5 | |
a848cd7e SC |
19279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19280 | (exit $ac_status); } && | |
d51253e8 | 19281 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19283 | (eval $ac_try) 2>&5 | |
19284 | ac_status=$? | |
19285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19286 | (exit $ac_status); }; } && | |
19287 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19289 | (eval $ac_try) 2>&5 | |
19290 | ac_status=$? | |
19291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19292 | (exit $ac_status); }; }; then | |
19293 | wx_cv_explicit=no | |
19294 | else | |
19295 | echo "$as_me: failed program was:" >&5 | |
19296 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19297 | ||
19298 | wx_cv_explicit=yes | |
19299 | ||
19300 | fi | |
ac1cb8d3 | 19301 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19302 | |
19303 | else | |
19304 | echo "$as_me: failed program was:" >&5 | |
19305 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19306 | ||
19307 | wx_cv_explicit=no | |
19308 | ||
19309 | fi | |
ac1cb8d3 | 19310 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19311 | |
19312 | ac_ext=c | |
19313 | ac_cpp='$CPP $CPPFLAGS' | |
19314 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19315 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19316 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19317 | ||
19318 | ||
19319 | fi | |
19320 | echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5 | |
19321 | echo "${ECHO_T}$wx_cv_explicit" >&6 | |
19322 | ||
19323 | if test "$wx_cv_explicit" = "yes"; then | |
19324 | cat >>confdefs.h <<\_ACEOF | |
19325 | #define HAVE_EXPLICIT 1 | |
19326 | _ACEOF | |
19327 | ||
19328 | fi | |
19329 | ||
19330 | ||
19331 | echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5 | |
19332 | echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6 | |
19333 | if test "${ac_cv_cxx_const_cast+set}" = set; then | |
19334 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19335 | else | |
19336 | ||
19337 | ||
19338 | ac_ext=cc | |
19339 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19340 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19341 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19342 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19343 | ||
19344 | cat >conftest.$ac_ext <<_ACEOF | |
19345 | /* confdefs.h. */ | |
19346 | _ACEOF | |
19347 | cat confdefs.h >>conftest.$ac_ext | |
19348 | cat >>conftest.$ac_ext <<_ACEOF | |
19349 | /* end confdefs.h. */ | |
19350 | ||
19351 | int | |
19352 | main () | |
19353 | { | |
19354 | int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z; | |
19355 | ; | |
19356 | return 0; | |
19357 | } | |
19358 | _ACEOF | |
19359 | rm -f conftest.$ac_objext | |
19360 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19361 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19362 | ac_status=$? |
ac1cb8d3 VS |
19363 | grep -v '^ *+' conftest.er1 >conftest.err |
19364 | rm -f conftest.er1 | |
19365 | cat conftest.err >&5 | |
a848cd7e SC |
19366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19367 | (exit $ac_status); } && | |
d51253e8 | 19368 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19370 | (eval $ac_try) 2>&5 | |
19371 | ac_status=$? | |
19372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19373 | (exit $ac_status); }; } && | |
19374 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19376 | (eval $ac_try) 2>&5 | |
19377 | ac_status=$? | |
19378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19379 | (exit $ac_status); }; }; then | |
19380 | ac_cv_cxx_const_cast=yes | |
19381 | else | |
19382 | echo "$as_me: failed program was:" >&5 | |
19383 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19384 | ||
19385 | ac_cv_cxx_const_cast=no | |
19386 | fi | |
ac1cb8d3 | 19387 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19388 | ac_ext=c |
19389 | ac_cpp='$CPP $CPPFLAGS' | |
19390 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19391 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19392 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19393 | ||
19394 | ||
19395 | fi | |
19396 | echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5 | |
19397 | echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6 | |
19398 | if test "$ac_cv_cxx_const_cast" = yes; then | |
19399 | ||
19400 | cat >>confdefs.h <<\_ACEOF | |
19401 | #define HAVE_CONST_CAST | |
19402 | _ACEOF | |
19403 | ||
19404 | fi | |
19405 | ||
7714864e RL |
19406 | echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5 |
19407 | echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6 | |
19408 | if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then | |
19409 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19410 | else | |
19411 | ||
19412 | ||
19413 | ac_ext=cc | |
19414 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19415 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19416 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19417 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19418 | ||
19419 | cat >conftest.$ac_ext <<_ACEOF | |
19420 | /* confdefs.h. */ | |
19421 | _ACEOF | |
19422 | cat confdefs.h >>conftest.$ac_ext | |
19423 | cat >>conftest.$ac_ext <<_ACEOF | |
19424 | /* end confdefs.h. */ | |
19425 | #include <typeinfo> | |
19426 | class Base { public : Base () {} virtual void f () = 0;}; | |
19427 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
19428 | class Unrelated { public : Unrelated () {} }; | |
19429 | int g (Unrelated&) { return 0; } | |
19430 | int | |
19431 | main () | |
19432 | { | |
19433 | ||
19434 | Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e); | |
19435 | ; | |
19436 | return 0; | |
19437 | } | |
19438 | _ACEOF | |
19439 | rm -f conftest.$ac_objext | |
19440 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19441 | (eval $ac_compile) 2>conftest.er1 | |
19442 | ac_status=$? | |
19443 | grep -v '^ *+' conftest.er1 >conftest.err | |
19444 | rm -f conftest.er1 | |
19445 | cat conftest.err >&5 | |
19446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19447 | (exit $ac_status); } && | |
d51253e8 | 19448 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
7714864e RL |
19449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19450 | (eval $ac_try) 2>&5 | |
19451 | ac_status=$? | |
19452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19453 | (exit $ac_status); }; } && | |
19454 | { ac_try='test -s conftest.$ac_objext' | |
19455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19456 | (eval $ac_try) 2>&5 | |
19457 | ac_status=$? | |
19458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19459 | (exit $ac_status); }; }; then | |
19460 | ac_cv_cxx_reinterpret_cast=yes | |
19461 | else | |
19462 | echo "$as_me: failed program was:" >&5 | |
19463 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19464 | ||
19465 | ac_cv_cxx_reinterpret_cast=no | |
19466 | fi | |
19467 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19468 | ac_ext=c | |
19469 | ac_cpp='$CPP $CPPFLAGS' | |
19470 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19471 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19472 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19473 | ||
19474 | ||
19475 | fi | |
19476 | echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5 | |
19477 | echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6 | |
19478 | if test "$ac_cv_cxx_reinterpret_cast" = yes; then | |
19479 | ||
19480 | cat >>confdefs.h <<\_ACEOF | |
19481 | #define HAVE_REINTERPRET_CAST | |
19482 | _ACEOF | |
19483 | ||
19484 | fi | |
19485 | ||
a848cd7e SC |
19486 | echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5 |
19487 | echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6 | |
19488 | if test "${ac_cv_cxx_static_cast+set}" = set; then | |
19489 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19490 | else | |
19491 | ||
19492 | ||
19493 | ac_ext=cc | |
19494 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19495 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19496 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19497 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19498 | ||
19499 | cat >conftest.$ac_ext <<_ACEOF | |
19500 | /* confdefs.h. */ | |
19501 | _ACEOF | |
19502 | cat confdefs.h >>conftest.$ac_ext | |
19503 | cat >>conftest.$ac_ext <<_ACEOF | |
19504 | /* end confdefs.h. */ | |
19505 | #include <typeinfo> | |
19506 | class Base { public : Base () {} virtual void f () = 0; }; | |
19507 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
19508 | int g (Derived&) { return 0; } | |
19509 | int | |
19510 | main () | |
19511 | { | |
19512 | ||
19513 | Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s); | |
19514 | ; | |
19515 | return 0; | |
19516 | } | |
19517 | _ACEOF | |
19518 | rm -f conftest.$ac_objext | |
19519 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19520 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19521 | ac_status=$? |
ac1cb8d3 VS |
19522 | grep -v '^ *+' conftest.er1 >conftest.err |
19523 | rm -f conftest.er1 | |
19524 | cat conftest.err >&5 | |
a848cd7e SC |
19525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19526 | (exit $ac_status); } && | |
d51253e8 | 19527 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19529 | (eval $ac_try) 2>&5 | |
19530 | ac_status=$? | |
19531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19532 | (exit $ac_status); }; } && | |
19533 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19535 | (eval $ac_try) 2>&5 | |
19536 | ac_status=$? | |
19537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19538 | (exit $ac_status); }; }; then | |
19539 | ac_cv_cxx_static_cast=yes | |
19540 | else | |
19541 | echo "$as_me: failed program was:" >&5 | |
19542 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19543 | ||
19544 | ac_cv_cxx_static_cast=no | |
19545 | fi | |
ac1cb8d3 | 19546 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19547 | ac_ext=c |
19548 | ac_cpp='$CPP $CPPFLAGS' | |
19549 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19550 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19551 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19552 | ||
19553 | ||
19554 | fi | |
19555 | echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5 | |
19556 | echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6 | |
19557 | if test "$ac_cv_cxx_static_cast" = yes; then | |
19558 | ||
19559 | cat >>confdefs.h <<\_ACEOF | |
19560 | #define HAVE_STATIC_CAST | |
19561 | _ACEOF | |
19562 | ||
19563 | fi | |
19564 | ||
19565 | ||
19566 | if test "$wxUSE_STL" = "yes"; then | |
19567 | ac_ext=cc | |
19568 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19569 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19570 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19571 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19572 | ||
19573 | ||
19574 | echo "$as_me:$LINENO: checking for basic STL functionality" >&5 | |
19575 | echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6 | |
19576 | cat >conftest.$ac_ext <<_ACEOF | |
19577 | /* confdefs.h. */ | |
19578 | _ACEOF | |
19579 | cat confdefs.h >>conftest.$ac_ext | |
19580 | cat >>conftest.$ac_ext <<_ACEOF | |
19581 | /* end confdefs.h. */ | |
19582 | #include <string> | |
19583 | #include <functional> | |
19584 | #include <algorithm> | |
19585 | #include <vector> | |
19586 | #include <list> | |
19587 | int | |
19588 | main () | |
19589 | { | |
19590 | std::vector<int> moo; | |
19591 | std::list<int> foo; | |
19592 | std::vector<int>::iterator it = | |
19593 | std::find_if(moo.begin(), moo.end(), | |
19594 | std::bind2nd(std::less<int>(), 3)); | |
19595 | ; | |
19596 | return 0; | |
19597 | } | |
19598 | _ACEOF | |
19599 | rm -f conftest.$ac_objext | |
19600 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19601 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19602 | ac_status=$? |
ac1cb8d3 VS |
19603 | grep -v '^ *+' conftest.er1 >conftest.err |
19604 | rm -f conftest.er1 | |
19605 | cat conftest.err >&5 | |
a848cd7e SC |
19606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19607 | (exit $ac_status); } && | |
d51253e8 | 19608 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19610 | (eval $ac_try) 2>&5 | |
19611 | ac_status=$? | |
19612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19613 | (exit $ac_status); }; } && | |
19614 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19616 | (eval $ac_try) 2>&5 | |
19617 | ac_status=$? | |
19618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19619 | (exit $ac_status); }; }; then | |
19620 | echo "$as_me:$LINENO: result: yes" >&5 | |
19621 | echo "${ECHO_T}yes" >&6 | |
19622 | else | |
19623 | echo "$as_me: failed program was:" >&5 | |
19624 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19625 | ||
19626 | echo "$as_me:$LINENO: result: no" >&5 | |
19627 | echo "${ECHO_T}no" >&6 | |
19628 | { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5 | |
19629 | echo "$as_me: error: Basic STL functionality missing" >&2;} | |
19630 | { (exit 1); exit 1; }; } | |
19631 | fi | |
ac1cb8d3 | 19632 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19633 | |
19634 | echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5 | |
19635 | echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6 | |
19636 | cat >conftest.$ac_ext <<_ACEOF | |
19637 | /* confdefs.h. */ | |
19638 | _ACEOF | |
19639 | cat confdefs.h >>conftest.$ac_ext | |
19640 | cat >>conftest.$ac_ext <<_ACEOF | |
19641 | /* end confdefs.h. */ | |
19642 | #include <string> | |
19643 | int | |
19644 | main () | |
19645 | { | |
19646 | std::wstring foo; | |
19647 | ; | |
19648 | return 0; | |
19649 | } | |
19650 | _ACEOF | |
19651 | rm -f conftest.$ac_objext | |
19652 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19653 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19654 | ac_status=$? |
ac1cb8d3 VS |
19655 | grep -v '^ *+' conftest.er1 >conftest.err |
19656 | rm -f conftest.er1 | |
19657 | cat conftest.err >&5 | |
a848cd7e SC |
19658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19659 | (exit $ac_status); } && | |
d51253e8 | 19660 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19662 | (eval $ac_try) 2>&5 | |
19663 | ac_status=$? | |
19664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19665 | (exit $ac_status); }; } && | |
19666 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19668 | (eval $ac_try) 2>&5 | |
19669 | ac_status=$? | |
19670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19671 | (exit $ac_status); }; }; then | |
19672 | echo "$as_me:$LINENO: result: yes" >&5 | |
19673 | echo "${ECHO_T}yes" >&6 | |
19674 | cat >>confdefs.h <<\_ACEOF | |
19675 | #define HAVE_STD_WSTRING 1 | |
19676 | _ACEOF | |
19677 | ||
19678 | else | |
19679 | echo "$as_me: failed program was:" >&5 | |
19680 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19681 | ||
19682 | echo "$as_me:$LINENO: result: no" >&5 | |
19683 | echo "${ECHO_T}no" >&6 | |
19684 | fi | |
ac1cb8d3 | 19685 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19686 | |
19687 | echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5 | |
19688 | echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6 | |
19689 | cat >conftest.$ac_ext <<_ACEOF | |
19690 | /* confdefs.h. */ | |
19691 | _ACEOF | |
19692 | cat confdefs.h >>conftest.$ac_ext | |
19693 | cat >>conftest.$ac_ext <<_ACEOF | |
19694 | /* end confdefs.h. */ | |
19695 | #include <string> | |
19696 | int | |
19697 | main () | |
19698 | { | |
19699 | std::string foo, bar; | |
19700 | foo.compare(bar); | |
19701 | foo.compare(1, 1, bar); | |
19702 | foo.compare(1, 1, bar, 1, 1); | |
19703 | foo.compare(""); | |
19704 | foo.compare(1, 1, ""); | |
19705 | foo.compare(1, 1, "", 2); | |
19706 | ; | |
19707 | return 0; | |
19708 | } | |
19709 | _ACEOF | |
19710 | rm -f conftest.$ac_objext | |
19711 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19712 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19713 | ac_status=$? |
ac1cb8d3 VS |
19714 | grep -v '^ *+' conftest.er1 >conftest.err |
19715 | rm -f conftest.er1 | |
19716 | cat conftest.err >&5 | |
a848cd7e SC |
19717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19718 | (exit $ac_status); } && | |
d51253e8 | 19719 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19721 | (eval $ac_try) 2>&5 | |
19722 | ac_status=$? | |
19723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19724 | (exit $ac_status); }; } && | |
19725 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19727 | (eval $ac_try) 2>&5 | |
19728 | ac_status=$? | |
19729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19730 | (exit $ac_status); }; }; then | |
19731 | echo "$as_me:$LINENO: result: yes" >&5 | |
19732 | echo "${ECHO_T}yes" >&6 | |
19733 | cat >>confdefs.h <<\_ACEOF | |
19734 | #define HAVE_STD_STRING_COMPARE 1 | |
19735 | _ACEOF | |
19736 | ||
19737 | else | |
19738 | echo "$as_me: failed program was:" >&5 | |
19739 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19740 | ||
19741 | echo "$as_me:$LINENO: result: no" >&5 | |
19742 | echo "${ECHO_T}no" >&6 | |
19743 | fi | |
ac1cb8d3 | 19744 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
19745 | |
19746 | if test "${ac_cv_header_hash_map+set}" = set; then | |
19747 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
19748 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
19749 | if test "${ac_cv_header_hash_map+set}" = set; then | |
19750 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19751 | fi | |
19752 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
19753 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
19754 | else | |
19755 | # Is the header compilable? | |
19756 | echo "$as_me:$LINENO: checking hash_map usability" >&5 | |
19757 | echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6 | |
19758 | cat >conftest.$ac_ext <<_ACEOF | |
19759 | /* confdefs.h. */ | |
19760 | _ACEOF | |
19761 | cat confdefs.h >>conftest.$ac_ext | |
19762 | cat >>conftest.$ac_ext <<_ACEOF | |
19763 | /* end confdefs.h. */ | |
19764 | $ac_includes_default | |
19765 | #include <hash_map> | |
19766 | _ACEOF | |
19767 | rm -f conftest.$ac_objext | |
19768 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19769 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 19770 | ac_status=$? |
ac1cb8d3 VS |
19771 | grep -v '^ *+' conftest.er1 >conftest.err |
19772 | rm -f conftest.er1 | |
19773 | cat conftest.err >&5 | |
bdcade0a MB |
19774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19775 | (exit $ac_status); } && | |
d51253e8 | 19776 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19778 | (eval $ac_try) 2>&5 | |
19779 | ac_status=$? | |
19780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19781 | (exit $ac_status); }; } && | |
19782 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
19783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19784 | (eval $ac_try) 2>&5 | |
19785 | ac_status=$? | |
19786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19787 | (exit $ac_status); }; }; then | |
19788 | ac_header_compiler=yes | |
19789 | else | |
19790 | echo "$as_me: failed program was:" >&5 | |
19791 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19792 | ||
19793 | ac_header_compiler=no | |
19794 | fi | |
ac1cb8d3 | 19795 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
19796 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19797 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19798 | ||
19799 | # Is the header present? | |
19800 | echo "$as_me:$LINENO: checking hash_map presence" >&5 | |
19801 | echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6 | |
19802 | cat >conftest.$ac_ext <<_ACEOF | |
19803 | /* confdefs.h. */ | |
19804 | _ACEOF | |
19805 | cat confdefs.h >>conftest.$ac_ext | |
19806 | cat >>conftest.$ac_ext <<_ACEOF | |
19807 | /* end confdefs.h. */ | |
19808 | #include <hash_map> | |
19809 | _ACEOF | |
19810 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19811 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19812 | ac_status=$? | |
19813 | grep -v '^ *+' conftest.er1 >conftest.err | |
19814 | rm -f conftest.er1 | |
19815 | cat conftest.err >&5 | |
19816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19817 | (exit $ac_status); } >/dev/null; then | |
19818 | if test -s conftest.err; then | |
19819 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 19820 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
19821 | else |
19822 | ac_cpp_err= | |
19823 | fi | |
19824 | else | |
19825 | ac_cpp_err=yes | |
19826 | fi | |
19827 | if test -z "$ac_cpp_err"; then | |
19828 | ac_header_preproc=yes | |
19829 | else | |
19830 | echo "$as_me: failed program was:" >&5 | |
19831 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19832 | ||
19833 | ac_header_preproc=no | |
19834 | fi | |
19835 | rm -f conftest.err conftest.$ac_ext | |
19836 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19837 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19838 | ||
19839 | # So? What about this header? | |
ac1cb8d3 VS |
19840 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
19841 | yes:no: ) | |
bdcade0a MB |
19842 | { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
19843 | echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
19844 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5 |
19845 | echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;} | |
19846 | ac_header_preproc=yes | |
bdcade0a | 19847 | ;; |
ac1cb8d3 | 19848 | no:yes:* ) |
bdcade0a MB |
19849 | { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5 |
19850 | echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
19851 | { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5 |
19852 | echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;} | |
19853 | { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5 | |
19854 | echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;} | |
19855 | { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
19856 | echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
19857 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5 |
19858 | echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
19859 | { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5 |
19860 | echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
19861 | ( |
19862 | cat <<\_ASBOX | |
ac1cb8d3 VS |
19863 | ## ----------------------------------------- ## |
19864 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
19865 | ## ----------------------------------------- ## | |
bdcade0a MB |
19866 | _ASBOX |
19867 | ) | | |
19868 | sed "s/^/$as_me: WARNING: /" >&2 | |
19869 | ;; | |
19870 | esac | |
19871 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
19872 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
19873 | if test "${ac_cv_header_hash_map+set}" = set; then | |
19874 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19875 | else | |
19876 | ac_cv_header_hash_map=$ac_header_preproc | |
19877 | fi | |
19878 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
19879 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
19880 | ||
19881 | fi | |
19882 | if test $ac_cv_header_hash_map = yes; then | |
19883 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
19884 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
19885 | cat >conftest.$ac_ext <<_ACEOF | |
19886 | /* confdefs.h. */ | |
19887 | _ACEOF | |
19888 | cat confdefs.h >>conftest.$ac_ext | |
19889 | cat >>conftest.$ac_ext <<_ACEOF | |
19890 | /* end confdefs.h. */ | |
19891 | #include <hash_map> | |
19892 | #include <hash_set> | |
19893 | int | |
19894 | main () | |
19895 | { | |
19896 | std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1; | |
19897 | std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2; | |
19898 | ; | |
19899 | return 0; | |
19900 | } | |
19901 | _ACEOF | |
19902 | rm -f conftest.$ac_objext | |
19903 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19904 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 19905 | ac_status=$? |
ac1cb8d3 VS |
19906 | grep -v '^ *+' conftest.er1 >conftest.err |
19907 | rm -f conftest.er1 | |
19908 | cat conftest.err >&5 | |
bdcade0a MB |
19909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19910 | (exit $ac_status); } && | |
d51253e8 | 19911 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19913 | (eval $ac_try) 2>&5 | |
19914 | ac_status=$? | |
19915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19916 | (exit $ac_status); }; } && | |
19917 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
19918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19919 | (eval $ac_try) 2>&5 | |
19920 | ac_status=$? | |
19921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19922 | (exit $ac_status); }; }; then | |
19923 | echo "$as_me:$LINENO: result: yes" >&5 | |
19924 | echo "${ECHO_T}yes" >&6 | |
19925 | cat >>confdefs.h <<\_ACEOF | |
19926 | #define HAVE_HASH_MAP 1 | |
19927 | _ACEOF | |
19928 | ||
19929 | cat >>confdefs.h <<\_ACEOF | |
19930 | #define HAVE_STD_HASH_MAP 1 | |
19931 | _ACEOF | |
19932 | ||
19933 | else | |
19934 | echo "$as_me: failed program was:" >&5 | |
19935 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19936 | ||
19937 | echo "$as_me:$LINENO: result: no" >&5 | |
19938 | echo "${ECHO_T}no" >&6 | |
19939 | fi | |
ac1cb8d3 | 19940 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
19941 | |
19942 | fi | |
19943 | ||
19944 | ||
19945 | ||
19946 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
19947 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
19948 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
19949 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
19950 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19951 | fi | |
19952 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
19953 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
19954 | else | |
19955 | # Is the header compilable? | |
19956 | echo "$as_me:$LINENO: checking ext/hash_map usability" >&5 | |
19957 | echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6 | |
19958 | cat >conftest.$ac_ext <<_ACEOF | |
19959 | /* confdefs.h. */ | |
19960 | _ACEOF | |
19961 | cat confdefs.h >>conftest.$ac_ext | |
19962 | cat >>conftest.$ac_ext <<_ACEOF | |
19963 | /* end confdefs.h. */ | |
19964 | $ac_includes_default | |
19965 | #include <ext/hash_map> | |
19966 | _ACEOF | |
19967 | rm -f conftest.$ac_objext | |
19968 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19969 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 19970 | ac_status=$? |
ac1cb8d3 VS |
19971 | grep -v '^ *+' conftest.er1 >conftest.err |
19972 | rm -f conftest.er1 | |
19973 | cat conftest.err >&5 | |
bdcade0a MB |
19974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19975 | (exit $ac_status); } && | |
d51253e8 | 19976 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19978 | (eval $ac_try) 2>&5 | |
19979 | ac_status=$? | |
19980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19981 | (exit $ac_status); }; } && | |
19982 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
19983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19984 | (eval $ac_try) 2>&5 | |
19985 | ac_status=$? | |
19986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19987 | (exit $ac_status); }; }; then | |
19988 | ac_header_compiler=yes | |
19989 | else | |
19990 | echo "$as_me: failed program was:" >&5 | |
19991 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19992 | ||
19993 | ac_header_compiler=no | |
19994 | fi | |
ac1cb8d3 | 19995 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
19996 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19997 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19998 | ||
19999 | # Is the header present? | |
20000 | echo "$as_me:$LINENO: checking ext/hash_map presence" >&5 | |
20001 | echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6 | |
20002 | cat >conftest.$ac_ext <<_ACEOF | |
20003 | /* confdefs.h. */ | |
20004 | _ACEOF | |
20005 | cat confdefs.h >>conftest.$ac_ext | |
20006 | cat >>conftest.$ac_ext <<_ACEOF | |
20007 | /* end confdefs.h. */ | |
20008 | #include <ext/hash_map> | |
20009 | _ACEOF | |
20010 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20011 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20012 | ac_status=$? | |
20013 | grep -v '^ *+' conftest.er1 >conftest.err | |
20014 | rm -f conftest.er1 | |
20015 | cat conftest.err >&5 | |
20016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20017 | (exit $ac_status); } >/dev/null; then | |
20018 | if test -s conftest.err; then | |
20019 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 20020 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
20021 | else |
20022 | ac_cpp_err= | |
20023 | fi | |
20024 | else | |
20025 | ac_cpp_err=yes | |
20026 | fi | |
20027 | if test -z "$ac_cpp_err"; then | |
20028 | ac_header_preproc=yes | |
20029 | else | |
20030 | echo "$as_me: failed program was:" >&5 | |
20031 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20032 | ||
20033 | ac_header_preproc=no | |
20034 | fi | |
20035 | rm -f conftest.err conftest.$ac_ext | |
20036 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20037 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20038 | ||
20039 | # So? What about this header? | |
ac1cb8d3 VS |
20040 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
20041 | yes:no: ) | |
bdcade0a MB |
20042 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
20043 | echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
20044 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5 |
20045 | echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;} | |
20046 | ac_header_preproc=yes | |
bdcade0a | 20047 | ;; |
ac1cb8d3 | 20048 | no:yes:* ) |
bdcade0a MB |
20049 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5 |
20050 | echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
20051 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5 |
20052 | echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;} | |
20053 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5 | |
20054 | echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;} | |
20055 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
20056 | echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
20057 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5 |
20058 | echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
20059 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5 |
20060 | echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
20061 | ( |
20062 | cat <<\_ASBOX | |
ac1cb8d3 VS |
20063 | ## ----------------------------------------- ## |
20064 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
20065 | ## ----------------------------------------- ## | |
bdcade0a MB |
20066 | _ASBOX |
20067 | ) | | |
20068 | sed "s/^/$as_me: WARNING: /" >&2 | |
20069 | ;; | |
20070 | esac | |
20071 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
20072 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
20073 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
20074 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20075 | else | |
20076 | ac_cv_header_ext_hash_map=$ac_header_preproc | |
20077 | fi | |
20078 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
20079 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
20080 | ||
20081 | fi | |
20082 | if test $ac_cv_header_ext_hash_map = yes; then | |
20083 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
20084 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
20085 | cat >conftest.$ac_ext <<_ACEOF | |
20086 | /* confdefs.h. */ | |
20087 | _ACEOF | |
20088 | cat confdefs.h >>conftest.$ac_ext | |
20089 | cat >>conftest.$ac_ext <<_ACEOF | |
20090 | /* end confdefs.h. */ | |
20091 | #include <ext/hash_map> | |
20092 | #include <ext/hash_set> | |
20093 | int | |
20094 | main () | |
20095 | { | |
20096 | __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1; | |
20097 | __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2; | |
20098 | ; | |
20099 | return 0; | |
20100 | } | |
20101 | _ACEOF | |
20102 | rm -f conftest.$ac_objext | |
20103 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20104 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 20105 | ac_status=$? |
ac1cb8d3 VS |
20106 | grep -v '^ *+' conftest.er1 >conftest.err |
20107 | rm -f conftest.er1 | |
20108 | cat conftest.err >&5 | |
bdcade0a MB |
20109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20110 | (exit $ac_status); } && | |
d51253e8 | 20111 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20113 | (eval $ac_try) 2>&5 | |
20114 | ac_status=$? | |
20115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20116 | (exit $ac_status); }; } && | |
20117 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
20118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20119 | (eval $ac_try) 2>&5 | |
20120 | ac_status=$? | |
20121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20122 | (exit $ac_status); }; }; then | |
20123 | echo "$as_me:$LINENO: result: yes" >&5 | |
20124 | echo "${ECHO_T}yes" >&6 | |
20125 | cat >>confdefs.h <<\_ACEOF | |
20126 | #define HAVE_EXT_HASH_MAP 1 | |
20127 | _ACEOF | |
20128 | ||
20129 | cat >>confdefs.h <<\_ACEOF | |
20130 | #define HAVE_GNU_CXX_HASH_MAP 1 | |
20131 | _ACEOF | |
20132 | ||
20133 | else | |
20134 | echo "$as_me: failed program was:" >&5 | |
20135 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20136 | ||
20137 | echo "$as_me:$LINENO: result: no" >&5 | |
20138 | echo "${ECHO_T}no" >&6 | |
20139 | fi | |
ac1cb8d3 | 20140 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
20141 | |
20142 | fi | |
20143 | ||
20144 | ||
a848cd7e SC |
20145 | |
20146 | ac_ext=c | |
20147 | ac_cpp='$CPP $CPPFLAGS' | |
20148 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20149 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20150 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20151 | ||
20152 | fi | |
20153 | ||
20154 | ||
20155 | SEARCH_INCLUDE="\ | |
20156 | /usr/local/include \ | |
20157 | \ | |
20158 | /usr/Motif-2.1/include \ | |
20159 | /usr/Motif-1.2/include \ | |
20160 | /usr/include/Motif1.2 \ | |
20161 | /opt/xpm/include/X11 \ | |
20162 | /opt/GBxpm/include/ \ | |
20163 | /opt/GBxpm/X11/include/ \ | |
20164 | \ | |
20165 | /usr/dt/include \ | |
20166 | /usr/openwin/include \ | |
20167 | \ | |
20168 | /usr/include/Xm \ | |
20169 | \ | |
20170 | /usr/X11R6/include \ | |
20171 | /usr/X11R6.4/include \ | |
20172 | /usr/X11R5/include \ | |
20173 | /usr/X11R4/include \ | |
20174 | \ | |
20175 | /usr/include/X11R6 \ | |
20176 | /usr/include/X11R5 \ | |
20177 | /usr/include/X11R4 \ | |
20178 | \ | |
20179 | /usr/local/X11R6/include \ | |
20180 | /usr/local/X11R5/include \ | |
20181 | /usr/local/X11R4/include \ | |
20182 | \ | |
20183 | /usr/local/include/X11R6 \ | |
20184 | /usr/local/include/X11R5 \ | |
20185 | /usr/local/include/X11R4 \ | |
20186 | \ | |
20187 | /usr/X11/include \ | |
20188 | /usr/include/X11 \ | |
20189 | /usr/local/X11/include \ | |
20190 | /usr/local/include/X11 \ | |
20191 | \ | |
20192 | /usr/X386/include \ | |
20193 | /usr/x386/include \ | |
20194 | /usr/XFree86/include/X11 \ | |
20195 | \ | |
20196 | X:/XFree86/include \ | |
20197 | X:/XFree86/include/X11 \ | |
20198 | \ | |
20199 | /usr/include/gtk \ | |
20200 | /usr/local/include/gtk \ | |
20201 | /usr/include/glib \ | |
20202 | /usr/local/include/glib \ | |
20203 | \ | |
20204 | /usr/include/qt \ | |
20205 | /usr/local/include/qt \ | |
20206 | \ | |
20207 | /usr/local/arm/3.3.2/include \ | |
20208 | \ | |
20209 | /usr/include/windows \ | |
20210 | /usr/include/wine \ | |
20211 | /usr/local/include/wine \ | |
20212 | \ | |
20213 | /usr/unsupported/include \ | |
20214 | /usr/athena/include \ | |
20215 | /usr/local/x11r5/include \ | |
20216 | /usr/lpp/Xamples/include \ | |
20217 | \ | |
20218 | /usr/openwin/share/include" | |
20219 | ||
20220 | SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64" | |
20221 | ||
20222 | ||
20223 | cat >confcache <<\_ACEOF | |
20224 | # This file is a shell script that caches the results of configure | |
20225 | # tests run on this system so they can be shared between configure | |
20226 | # scripts and configure runs, see configure's option --config-cache. | |
20227 | # It is not useful on other systems. If it contains results you don't | |
20228 | # want to keep, you may remove or edit it. | |
20229 | # | |
20230 | # config.status only pays attention to the cache file if you give it | |
20231 | # the --recheck option to rerun configure. | |
20232 | # | |
20233 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
20234 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
20235 | # following values. | |
20236 | ||
20237 | _ACEOF | |
20238 | ||
20239 | # The following way of writing the cache mishandles newlines in values, | |
20240 | # but we know of no workaround that is simple, portable, and efficient. | |
20241 | # So, don't put newlines in cache variables' values. | |
20242 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
20243 | # and sets the high bit in the cache file unless we assign to the vars. | |
20244 | { | |
20245 | (set) 2>&1 | | |
20246 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
20247 | *ac_space=\ *) | |
20248 | # `set' does not quote correctly, so add quotes (double-quote | |
20249 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
20250 | sed -n \ | |
ac1cb8d3 VS |
20251 | "s/'/'\\\\''/g; |
20252 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
20253 | ;; |
20254 | *) | |
20255 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
20256 | sed -n \ | |
ac1cb8d3 | 20257 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
20258 | ;; |
20259 | esac; | |
20260 | } | | |
20261 | sed ' | |
20262 | t clear | |
20263 | : clear | |
20264 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
20265 | t end | |
20266 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
20267 | : end' >>confcache | |
20268 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
20269 | if test -w $cache_file; then | |
20270 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
20271 | cat confcache >$cache_file | |
20272 | else | |
20273 | echo "not updating unwritable cache $cache_file" | |
20274 | fi | |
20275 | fi | |
20276 | rm -f confcache | |
20277 | ||
20278 | if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then | |
20279 | echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5 | |
20280 | echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6 | |
20281 | if test "${wx_cv_lib_glibc21+set}" = set; then | |
20282 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20283 | else | |
20284 | ||
20285 | cat >conftest.$ac_ext <<_ACEOF | |
20286 | /* confdefs.h. */ | |
20287 | _ACEOF | |
20288 | cat confdefs.h >>conftest.$ac_ext | |
20289 | cat >>conftest.$ac_ext <<_ACEOF | |
20290 | /* end confdefs.h. */ | |
20291 | #include <features.h> | |
20292 | int | |
20293 | main () | |
20294 | { | |
20295 | ||
20296 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) | |
20297 | #error not glibc2.1 | |
20298 | #endif | |
20299 | ||
20300 | ; | |
20301 | return 0; | |
20302 | } | |
20303 | _ACEOF | |
20304 | rm -f conftest.$ac_objext | |
20305 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20306 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20307 | ac_status=$? |
ac1cb8d3 VS |
20308 | grep -v '^ *+' conftest.er1 >conftest.err |
20309 | rm -f conftest.er1 | |
20310 | cat conftest.err >&5 | |
a848cd7e SC |
20311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20312 | (exit $ac_status); } && | |
d51253e8 | 20313 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20315 | (eval $ac_try) 2>&5 | |
20316 | ac_status=$? | |
20317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20318 | (exit $ac_status); }; } && | |
20319 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20321 | (eval $ac_try) 2>&5 | |
20322 | ac_status=$? | |
20323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20324 | (exit $ac_status); }; }; then | |
20325 | ||
20326 | wx_cv_lib_glibc21=yes | |
20327 | ||
20328 | else | |
20329 | echo "$as_me: failed program was:" >&5 | |
20330 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20331 | ||
20332 | ||
20333 | wx_cv_lib_glibc21=no | |
20334 | ||
20335 | ||
20336 | fi | |
ac1cb8d3 | 20337 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20338 | |
20339 | fi | |
20340 | echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5 | |
20341 | echo "${ECHO_T}$wx_cv_lib_glibc21" >&6 | |
20342 | if test "$wx_cv_lib_glibc21" = "yes"; then | |
20343 | cat >>confdefs.h <<\_ACEOF | |
20344 | #define wxHAVE_GLIBC2 1 | |
20345 | _ACEOF | |
20346 | ||
20347 | fi | |
20348 | fi | |
20349 | ||
20350 | if test "x$wx_cv_lib_glibc21" = "xyes"; then | |
20351 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
20352 | cat >>confdefs.h <<\_ACEOF | |
20353 | #define _GNU_SOURCE 1 | |
20354 | _ACEOF | |
20355 | ||
20356 | fi | |
20357 | fi | |
20358 | ||
20359 | ||
20360 | ||
20361 | if test "$wxUSE_REGEX" != "no"; then | |
20362 | cat >>confdefs.h <<\_ACEOF | |
20363 | #define wxUSE_REGEX 1 | |
20364 | _ACEOF | |
20365 | ||
20366 | ||
20367 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then | |
20368 | { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5 | |
20369 | echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;} | |
20370 | wxUSE_REGEX=builtin | |
20371 | fi | |
20372 | ||
20373 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then | |
20374 | if test "${ac_cv_header_regex_h+set}" = set; then | |
20375 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
20376 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
20377 | if test "${ac_cv_header_regex_h+set}" = set; then | |
20378 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20379 | fi | |
20380 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
20381 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
20382 | else | |
20383 | # Is the header compilable? | |
20384 | echo "$as_me:$LINENO: checking regex.h usability" >&5 | |
20385 | echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6 | |
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 | $ac_includes_default | |
20393 | #include <regex.h> | |
20394 | _ACEOF | |
20395 | rm -f conftest.$ac_objext | |
20396 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20397 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20398 | ac_status=$? |
ac1cb8d3 VS |
20399 | grep -v '^ *+' conftest.er1 >conftest.err |
20400 | rm -f conftest.er1 | |
20401 | cat conftest.err >&5 | |
a848cd7e SC |
20402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20403 | (exit $ac_status); } && | |
d51253e8 | 20404 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20406 | (eval $ac_try) 2>&5 | |
20407 | ac_status=$? | |
20408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20409 | (exit $ac_status); }; } && | |
20410 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20412 | (eval $ac_try) 2>&5 | |
20413 | ac_status=$? | |
20414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20415 | (exit $ac_status); }; }; then | |
20416 | ac_header_compiler=yes | |
20417 | else | |
20418 | echo "$as_me: failed program was:" >&5 | |
20419 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20420 | ||
20421 | ac_header_compiler=no | |
20422 | fi | |
ac1cb8d3 | 20423 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20424 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20425 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20426 | ||
20427 | # Is the header present? | |
20428 | echo "$as_me:$LINENO: checking regex.h presence" >&5 | |
20429 | echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6 | |
20430 | cat >conftest.$ac_ext <<_ACEOF | |
20431 | /* confdefs.h. */ | |
20432 | _ACEOF | |
20433 | cat confdefs.h >>conftest.$ac_ext | |
20434 | cat >>conftest.$ac_ext <<_ACEOF | |
20435 | /* end confdefs.h. */ | |
20436 | #include <regex.h> | |
20437 | _ACEOF | |
20438 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20439 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20440 | ac_status=$? | |
20441 | grep -v '^ *+' conftest.er1 >conftest.err | |
20442 | rm -f conftest.er1 | |
20443 | cat conftest.err >&5 | |
20444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20445 | (exit $ac_status); } >/dev/null; then | |
20446 | if test -s conftest.err; then | |
20447 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 20448 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
20449 | else |
20450 | ac_cpp_err= | |
20451 | fi | |
20452 | else | |
20453 | ac_cpp_err=yes | |
20454 | fi | |
20455 | if test -z "$ac_cpp_err"; then | |
20456 | ac_header_preproc=yes | |
20457 | else | |
20458 | echo "$as_me: failed program was:" >&5 | |
20459 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20460 | ||
20461 | ac_header_preproc=no | |
20462 | fi | |
20463 | rm -f conftest.err conftest.$ac_ext | |
20464 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20465 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20466 | ||
20467 | # So? What about this header? | |
ac1cb8d3 VS |
20468 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20469 | yes:no: ) | |
a848cd7e SC |
20470 | { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
20471 | echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
20472 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5 |
20473 | echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;} | |
20474 | ac_header_preproc=yes | |
a848cd7e | 20475 | ;; |
ac1cb8d3 | 20476 | no:yes:* ) |
a848cd7e SC |
20477 | { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5 |
20478 | echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
20479 | { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5 |
20480 | echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;} | |
20481 | { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5 | |
20482 | echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;} | |
20483 | { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5 | |
20484 | echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
20485 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 |
20486 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
20487 | { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5 |
20488 | echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
20489 | ( |
20490 | cat <<\_ASBOX | |
ac1cb8d3 VS |
20491 | ## ----------------------------------------- ## |
20492 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
20493 | ## ----------------------------------------- ## | |
a848cd7e SC |
20494 | _ASBOX |
20495 | ) | | |
20496 | sed "s/^/$as_me: WARNING: /" >&2 | |
20497 | ;; | |
20498 | esac | |
20499 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
20500 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
20501 | if test "${ac_cv_header_regex_h+set}" = set; then | |
20502 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20503 | else | |
20504 | ac_cv_header_regex_h=$ac_header_preproc | |
20505 | fi | |
20506 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
20507 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
20508 | ||
20509 | fi | |
20510 | if test $ac_cv_header_regex_h = yes; then | |
20511 | ||
20512 | for ac_func in regcomp | |
20513 | do | |
20514 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
20515 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
20516 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
20517 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
20518 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20519 | else | |
20520 | cat >conftest.$ac_ext <<_ACEOF | |
20521 | /* confdefs.h. */ | |
20522 | _ACEOF | |
20523 | cat confdefs.h >>conftest.$ac_ext | |
20524 | cat >>conftest.$ac_ext <<_ACEOF | |
20525 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
20526 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
20527 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
20528 | #define $ac_func innocuous_$ac_func | |
20529 | ||
a848cd7e SC |
20530 | /* System header to define __stub macros and hopefully few prototypes, |
20531 | which can conflict with char $ac_func (); below. | |
20532 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
20533 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 20534 | |
a848cd7e SC |
20535 | #ifdef __STDC__ |
20536 | # include <limits.h> | |
20537 | #else | |
20538 | # include <assert.h> | |
20539 | #endif | |
ac1cb8d3 VS |
20540 | |
20541 | #undef $ac_func | |
20542 | ||
a848cd7e SC |
20543 | /* Override any gcc2 internal prototype to avoid an error. */ |
20544 | #ifdef __cplusplus | |
20545 | extern "C" | |
20546 | { | |
20547 | #endif | |
20548 | /* We use char because int might match the return type of a gcc2 | |
20549 | builtin and then its argument prototype would still apply. */ | |
20550 | char $ac_func (); | |
20551 | /* The GNU C library defines this for functions which it implements | |
20552 | to always fail with ENOSYS. Some functions are actually named | |
20553 | something starting with __ and the normal name is an alias. */ | |
20554 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20555 | choke me | |
20556 | #else | |
20557 | char (*f) () = $ac_func; | |
20558 | #endif | |
20559 | #ifdef __cplusplus | |
20560 | } | |
20561 | #endif | |
20562 | ||
20563 | int | |
20564 | main () | |
20565 | { | |
20566 | return f != $ac_func; | |
20567 | ; | |
20568 | return 0; | |
20569 | } | |
20570 | _ACEOF | |
20571 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20572 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 20573 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 20574 | ac_status=$? |
ac1cb8d3 VS |
20575 | grep -v '^ *+' conftest.er1 >conftest.err |
20576 | rm -f conftest.er1 | |
20577 | cat conftest.err >&5 | |
a848cd7e SC |
20578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20579 | (exit $ac_status); } && | |
d51253e8 | 20580 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20582 | (eval $ac_try) 2>&5 | |
20583 | ac_status=$? | |
20584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20585 | (exit $ac_status); }; } && | |
20586 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
20587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20588 | (eval $ac_try) 2>&5 | |
20589 | ac_status=$? | |
20590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20591 | (exit $ac_status); }; }; then | |
20592 | eval "$as_ac_var=yes" | |
20593 | else | |
20594 | echo "$as_me: failed program was:" >&5 | |
20595 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20596 | ||
20597 | eval "$as_ac_var=no" | |
20598 | fi | |
ac1cb8d3 VS |
20599 | rm -f conftest.err conftest.$ac_objext \ |
20600 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
20601 | fi |
20602 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
20603 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
20604 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
20605 | cat >>confdefs.h <<_ACEOF | |
20606 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
20607 | _ACEOF | |
20608 | ||
20609 | fi | |
20610 | done | |
20611 | ||
20612 | fi | |
20613 | ||
20614 | ||
20615 | ||
20616 | if test "x$ac_cv_func_regcomp" != "xyes"; then | |
20617 | if test "$wxUSE_REGEX" = "sys" ; then | |
20618 | { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5 | |
20619 | echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;} | |
20620 | { (exit 1); exit 1; }; } | |
20621 | else | |
20622 | { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5 | |
20623 | echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;} | |
20624 | wxUSE_REGEX=builtin | |
20625 | fi | |
20626 | else | |
20627 | wxUSE_REGEX=sys | |
20628 | cat >>confdefs.h <<\_ACEOF | |
20629 | #define WX_NO_REGEX_ADVANCED 1 | |
20630 | _ACEOF | |
20631 | ||
20632 | fi | |
20633 | fi | |
20634 | fi | |
20635 | ||
20636 | ||
20637 | ZLIB_LINK= | |
20638 | if test "$wxUSE_ZLIB" != "no" ; then | |
20639 | cat >>confdefs.h <<\_ACEOF | |
20640 | #define wxUSE_ZLIB 1 | |
20641 | _ACEOF | |
20642 | ||
20643 | ||
20644 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then | |
20645 | if test "$USE_DARWIN" = 1; then | |
20646 | system_zlib_h_ok="yes" | |
20647 | else | |
20648 | echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5 | |
20649 | echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6 | |
20650 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
20651 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20652 | else | |
20653 | if test "$cross_compiling" = yes; then | |
20654 | unset ac_cv_header_zlib_h | |
20655 | ||
20656 | else | |
20657 | cat >conftest.$ac_ext <<_ACEOF | |
20658 | /* confdefs.h. */ | |
20659 | _ACEOF | |
20660 | cat confdefs.h >>conftest.$ac_ext | |
20661 | cat >>conftest.$ac_ext <<_ACEOF | |
20662 | /* end confdefs.h. */ | |
20663 | ||
20664 | #include <zlib.h> | |
20665 | #include <stdio.h> | |
20666 | ||
20667 | int main() | |
20668 | { | |
20669 | FILE *f=fopen("conftestval", "w"); | |
20670 | if (!f) exit(1); | |
20671 | fprintf(f, "%s", | |
20672 | ZLIB_VERSION[0] == '1' && | |
20673 | (ZLIB_VERSION[2] > '1' || | |
20674 | (ZLIB_VERSION[2] == '1' && | |
20675 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
20676 | exit(0); | |
20677 | } | |
20678 | ||
20679 | _ACEOF | |
20680 | rm -f conftest$ac_exeext | |
20681 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20682 | (eval $ac_link) 2>&5 | |
20683 | ac_status=$? | |
20684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20685 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20687 | (eval $ac_try) 2>&5 | |
20688 | ac_status=$? | |
20689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20690 | (exit $ac_status); }; }; then | |
20691 | ac_cv_header_zlib_h=`cat conftestval` | |
20692 | else | |
20693 | echo "$as_me: program exited with status $ac_status" >&5 | |
20694 | echo "$as_me: failed program was:" >&5 | |
20695 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20696 | ||
20697 | ( exit $ac_status ) | |
20698 | ac_cv_header_zlib_h=no | |
20699 | fi | |
ac1cb8d3 | 20700 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20701 | fi |
20702 | ||
20703 | fi | |
20704 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
20705 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
20706 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
20707 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
20708 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
20709 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
20710 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20711 | fi | |
20712 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
20713 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
20714 | else | |
20715 | # Is the header compilable? | |
20716 | echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
20717 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 | |
20718 | cat >conftest.$ac_ext <<_ACEOF | |
20719 | /* confdefs.h. */ | |
20720 | _ACEOF | |
20721 | cat confdefs.h >>conftest.$ac_ext | |
20722 | cat >>conftest.$ac_ext <<_ACEOF | |
20723 | /* end confdefs.h. */ | |
20724 | $ac_includes_default | |
20725 | #include <zlib.h> | |
20726 | _ACEOF | |
20727 | rm -f conftest.$ac_objext | |
20728 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20729 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20730 | ac_status=$? |
ac1cb8d3 VS |
20731 | grep -v '^ *+' conftest.er1 >conftest.err |
20732 | rm -f conftest.er1 | |
20733 | cat conftest.err >&5 | |
a848cd7e SC |
20734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20735 | (exit $ac_status); } && | |
d51253e8 | 20736 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20738 | (eval $ac_try) 2>&5 | |
20739 | ac_status=$? | |
20740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20741 | (exit $ac_status); }; } && | |
20742 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20744 | (eval $ac_try) 2>&5 | |
20745 | ac_status=$? | |
20746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20747 | (exit $ac_status); }; }; then | |
20748 | ac_header_compiler=yes | |
20749 | else | |
20750 | echo "$as_me: failed program was:" >&5 | |
20751 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20752 | ||
20753 | ac_header_compiler=no | |
20754 | fi | |
ac1cb8d3 | 20755 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20756 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20757 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20758 | ||
20759 | # Is the header present? | |
20760 | echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
20761 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 | |
20762 | cat >conftest.$ac_ext <<_ACEOF | |
20763 | /* confdefs.h. */ | |
20764 | _ACEOF | |
20765 | cat confdefs.h >>conftest.$ac_ext | |
20766 | cat >>conftest.$ac_ext <<_ACEOF | |
20767 | /* end confdefs.h. */ | |
20768 | #include <zlib.h> | |
20769 | _ACEOF | |
20770 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20771 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20772 | ac_status=$? | |
20773 | grep -v '^ *+' conftest.er1 >conftest.err | |
20774 | rm -f conftest.er1 | |
20775 | cat conftest.err >&5 | |
20776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20777 | (exit $ac_status); } >/dev/null; then | |
20778 | if test -s conftest.err; then | |
20779 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 20780 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
20781 | else |
20782 | ac_cpp_err= | |
20783 | fi | |
20784 | else | |
20785 | ac_cpp_err=yes | |
20786 | fi | |
20787 | if test -z "$ac_cpp_err"; then | |
20788 | ac_header_preproc=yes | |
20789 | else | |
20790 | echo "$as_me: failed program was:" >&5 | |
20791 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20792 | ||
20793 | ac_header_preproc=no | |
20794 | fi | |
20795 | rm -f conftest.err conftest.$ac_ext | |
20796 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20797 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20798 | ||
20799 | # So? What about this header? | |
ac1cb8d3 VS |
20800 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20801 | yes:no: ) | |
a848cd7e SC |
20802 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
20803 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
20804 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 |
20805 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | |
20806 | ac_header_preproc=yes | |
a848cd7e | 20807 | ;; |
ac1cb8d3 | 20808 | no:yes:* ) |
a848cd7e SC |
20809 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 |
20810 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
20811 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 |
20812 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
20813 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | |
20814 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | |
20815 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
20816 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
20817 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 |
20818 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
20819 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 |
20820 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
20821 | ( |
20822 | cat <<\_ASBOX | |
ac1cb8d3 VS |
20823 | ## ----------------------------------------- ## |
20824 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
20825 | ## ----------------------------------------- ## | |
a848cd7e SC |
20826 | _ASBOX |
20827 | ) | | |
20828 | sed "s/^/$as_me: WARNING: /" >&2 | |
20829 | ;; | |
20830 | esac | |
20831 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
20832 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
20833 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
20834 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20835 | else | |
20836 | ac_cv_header_zlib_h=$ac_header_preproc | |
20837 | fi | |
20838 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
20839 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
20840 | ||
20841 | fi | |
20842 | ||
20843 | ||
20844 | ||
20845 | system_zlib_h_ok=$ac_cv_header_zlib_h | |
20846 | fi | |
20847 | ||
20848 | if test "$system_zlib_h_ok" = "yes"; then | |
20849 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 | |
20850 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | |
20851 | if test "${ac_cv_lib_z_deflate+set}" = set; then | |
20852 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20853 | else | |
20854 | ac_check_lib_save_LIBS=$LIBS | |
20855 | LIBS="-lz $LIBS" | |
20856 | cat >conftest.$ac_ext <<_ACEOF | |
20857 | /* confdefs.h. */ | |
20858 | _ACEOF | |
20859 | cat confdefs.h >>conftest.$ac_ext | |
20860 | cat >>conftest.$ac_ext <<_ACEOF | |
20861 | /* end confdefs.h. */ | |
20862 | ||
20863 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20864 | #ifdef __cplusplus | |
20865 | extern "C" | |
20866 | #endif | |
20867 | /* We use char because int might match the return type of a gcc2 | |
20868 | builtin and then its argument prototype would still apply. */ | |
20869 | char deflate (); | |
20870 | int | |
20871 | main () | |
20872 | { | |
20873 | deflate (); | |
20874 | ; | |
20875 | return 0; | |
20876 | } | |
20877 | _ACEOF | |
20878 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20879 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 20880 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 20881 | ac_status=$? |
ac1cb8d3 VS |
20882 | grep -v '^ *+' conftest.er1 >conftest.err |
20883 | rm -f conftest.er1 | |
20884 | cat conftest.err >&5 | |
a848cd7e SC |
20885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20886 | (exit $ac_status); } && | |
d51253e8 | 20887 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20889 | (eval $ac_try) 2>&5 | |
20890 | ac_status=$? | |
20891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20892 | (exit $ac_status); }; } && | |
20893 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
20894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20895 | (eval $ac_try) 2>&5 | |
20896 | ac_status=$? | |
20897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20898 | (exit $ac_status); }; }; then | |
20899 | ac_cv_lib_z_deflate=yes | |
20900 | else | |
20901 | echo "$as_me: failed program was:" >&5 | |
20902 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20903 | ||
20904 | ac_cv_lib_z_deflate=no | |
20905 | fi | |
ac1cb8d3 VS |
20906 | rm -f conftest.err conftest.$ac_objext \ |
20907 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
20908 | LIBS=$ac_check_lib_save_LIBS |
20909 | fi | |
20910 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | |
20911 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | |
20912 | if test $ac_cv_lib_z_deflate = yes; then | |
20913 | ZLIB_LINK=" -lz" | |
20914 | fi | |
20915 | ||
20916 | fi | |
20917 | ||
20918 | if test "x$ZLIB_LINK" = "x" ; then | |
20919 | if test "$wxUSE_ZLIB" = "sys" ; then | |
20920 | { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5 | |
20921 | echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;} | |
20922 | { (exit 1); exit 1; }; } | |
20923 | else | |
20924 | { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5 | |
20925 | echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;} | |
20926 | wxUSE_ZLIB=builtin | |
20927 | fi | |
20928 | else | |
20929 | wxUSE_ZLIB=sys | |
20930 | fi | |
20931 | fi | |
20932 | fi | |
20933 | ||
20934 | ||
20935 | PNG_LINK= | |
20936 | if test "$wxUSE_LIBPNG" != "no" ; then | |
20937 | cat >>confdefs.h <<\_ACEOF | |
20938 | #define wxUSE_LIBPNG 1 | |
20939 | _ACEOF | |
20940 | ||
20941 | ||
20942 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then | |
20943 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5 | |
20944 | echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;} | |
20945 | wxUSE_LIBPNG=sys | |
20946 | fi | |
20947 | ||
20948 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then | |
20949 | { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5 | |
20950 | echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;} | |
20951 | wxUSE_LIBPNG=builtin | |
20952 | fi | |
20953 | ||
20954 | if test "$wxUSE_MGL" != 1 ; then | |
20955 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
20956 | echo "$as_me:$LINENO: checking for png.h > 0.90" >&5 | |
20957 | echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6 | |
20958 | if test "${ac_cv_header_png_h+set}" = set; then | |
20959 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20960 | else | |
20961 | if test "$cross_compiling" = yes; then | |
20962 | unset ac_cv_header_png_h | |
20963 | ||
20964 | else | |
20965 | cat >conftest.$ac_ext <<_ACEOF | |
20966 | /* confdefs.h. */ | |
20967 | _ACEOF | |
20968 | cat confdefs.h >>conftest.$ac_ext | |
20969 | cat >>conftest.$ac_ext <<_ACEOF | |
20970 | /* end confdefs.h. */ | |
20971 | ||
20972 | #include <png.h> | |
20973 | #include <stdio.h> | |
20974 | ||
20975 | int main() | |
20976 | { | |
20977 | FILE *f=fopen("conftestval", "w"); | |
20978 | if (!f) exit(1); | |
20979 | fprintf(f, "%s", | |
20980 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
20981 | exit(0); | |
20982 | } | |
20983 | ||
20984 | _ACEOF | |
20985 | rm -f conftest$ac_exeext | |
20986 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20987 | (eval $ac_link) 2>&5 | |
20988 | ac_status=$? | |
20989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20990 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20992 | (eval $ac_try) 2>&5 | |
20993 | ac_status=$? | |
20994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20995 | (exit $ac_status); }; }; then | |
20996 | ac_cv_header_png_h=`cat conftestval` | |
20997 | else | |
20998 | echo "$as_me: program exited with status $ac_status" >&5 | |
20999 | echo "$as_me: failed program was:" >&5 | |
21000 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21001 | ||
21002 | ( exit $ac_status ) | |
21003 | ac_cv_header_png_h=no | |
21004 | fi | |
ac1cb8d3 | 21005 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21006 | fi |
21007 | ||
21008 | fi | |
21009 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
21010 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
21011 | if test "${ac_cv_header_png_h+set}" = set; then | |
21012 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
21013 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
21014 | if test "${ac_cv_header_png_h+set}" = set; then | |
21015 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21016 | fi | |
21017 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
21018 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
21019 | else | |
21020 | # Is the header compilable? | |
21021 | echo "$as_me:$LINENO: checking png.h usability" >&5 | |
21022 | echo $ECHO_N "checking png.h usability... $ECHO_C" >&6 | |
21023 | cat >conftest.$ac_ext <<_ACEOF | |
21024 | /* confdefs.h. */ | |
21025 | _ACEOF | |
21026 | cat confdefs.h >>conftest.$ac_ext | |
21027 | cat >>conftest.$ac_ext <<_ACEOF | |
21028 | /* end confdefs.h. */ | |
21029 | $ac_includes_default | |
21030 | #include <png.h> | |
21031 | _ACEOF | |
21032 | rm -f conftest.$ac_objext | |
21033 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21034 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21035 | ac_status=$? |
ac1cb8d3 VS |
21036 | grep -v '^ *+' conftest.er1 >conftest.err |
21037 | rm -f conftest.er1 | |
21038 | cat conftest.err >&5 | |
a848cd7e SC |
21039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21040 | (exit $ac_status); } && | |
d51253e8 | 21041 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21043 | (eval $ac_try) 2>&5 | |
21044 | ac_status=$? | |
21045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21046 | (exit $ac_status); }; } && | |
21047 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21049 | (eval $ac_try) 2>&5 | |
21050 | ac_status=$? | |
21051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21052 | (exit $ac_status); }; }; then | |
21053 | ac_header_compiler=yes | |
21054 | else | |
21055 | echo "$as_me: failed program was:" >&5 | |
21056 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21057 | ||
21058 | ac_header_compiler=no | |
21059 | fi | |
ac1cb8d3 | 21060 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21061 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21062 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21063 | ||
21064 | # Is the header present? | |
21065 | echo "$as_me:$LINENO: checking png.h presence" >&5 | |
21066 | echo $ECHO_N "checking png.h presence... $ECHO_C" >&6 | |
21067 | cat >conftest.$ac_ext <<_ACEOF | |
21068 | /* confdefs.h. */ | |
21069 | _ACEOF | |
21070 | cat confdefs.h >>conftest.$ac_ext | |
21071 | cat >>conftest.$ac_ext <<_ACEOF | |
21072 | /* end confdefs.h. */ | |
21073 | #include <png.h> | |
21074 | _ACEOF | |
21075 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21076 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21077 | ac_status=$? | |
21078 | grep -v '^ *+' conftest.er1 >conftest.err | |
21079 | rm -f conftest.er1 | |
21080 | cat conftest.err >&5 | |
21081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21082 | (exit $ac_status); } >/dev/null; then | |
21083 | if test -s conftest.err; then | |
21084 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 21085 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
21086 | else |
21087 | ac_cpp_err= | |
21088 | fi | |
21089 | else | |
21090 | ac_cpp_err=yes | |
21091 | fi | |
21092 | if test -z "$ac_cpp_err"; then | |
21093 | ac_header_preproc=yes | |
21094 | else | |
21095 | echo "$as_me: failed program was:" >&5 | |
21096 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21097 | ||
21098 | ac_header_preproc=no | |
21099 | fi | |
21100 | rm -f conftest.err conftest.$ac_ext | |
21101 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21102 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21103 | ||
21104 | # So? What about this header? | |
ac1cb8d3 VS |
21105 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21106 | yes:no: ) | |
a848cd7e SC |
21107 | { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
21108 | echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21109 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5 |
21110 | echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;} | |
21111 | ac_header_preproc=yes | |
a848cd7e | 21112 | ;; |
ac1cb8d3 | 21113 | no:yes:* ) |
a848cd7e SC |
21114 | { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5 |
21115 | echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21116 | { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5 |
21117 | echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;} | |
21118 | { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5 | |
21119 | echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;} | |
21120 | { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21121 | echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
21122 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 |
21123 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21124 | { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5 |
21125 | echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
21126 | ( |
21127 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21128 | ## ----------------------------------------- ## |
21129 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21130 | ## ----------------------------------------- ## | |
a848cd7e SC |
21131 | _ASBOX |
21132 | ) | | |
21133 | sed "s/^/$as_me: WARNING: /" >&2 | |
21134 | ;; | |
21135 | esac | |
21136 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
21137 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
21138 | if test "${ac_cv_header_png_h+set}" = set; then | |
21139 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21140 | else | |
21141 | ac_cv_header_png_h=$ac_header_preproc | |
21142 | fi | |
21143 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
21144 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
21145 | ||
21146 | fi | |
21147 | ||
21148 | ||
21149 | ||
21150 | if test "$ac_cv_header_png_h" = "yes"; then | |
21151 | echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5 | |
21152 | echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6 | |
21153 | if test "${ac_cv_lib_png_png_check_sig+set}" = set; then | |
21154 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21155 | else | |
21156 | ac_check_lib_save_LIBS=$LIBS | |
21157 | LIBS="-lpng -lz -lm $LIBS" | |
21158 | cat >conftest.$ac_ext <<_ACEOF | |
21159 | /* confdefs.h. */ | |
21160 | _ACEOF | |
21161 | cat confdefs.h >>conftest.$ac_ext | |
21162 | cat >>conftest.$ac_ext <<_ACEOF | |
21163 | /* end confdefs.h. */ | |
21164 | ||
21165 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21166 | #ifdef __cplusplus | |
21167 | extern "C" | |
21168 | #endif | |
21169 | /* We use char because int might match the return type of a gcc2 | |
21170 | builtin and then its argument prototype would still apply. */ | |
21171 | char png_check_sig (); | |
21172 | int | |
21173 | main () | |
21174 | { | |
21175 | png_check_sig (); | |
21176 | ; | |
21177 | return 0; | |
21178 | } | |
21179 | _ACEOF | |
21180 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21181 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 21182 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 21183 | ac_status=$? |
ac1cb8d3 VS |
21184 | grep -v '^ *+' conftest.er1 >conftest.err |
21185 | rm -f conftest.er1 | |
21186 | cat conftest.err >&5 | |
a848cd7e SC |
21187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21188 | (exit $ac_status); } && | |
d51253e8 | 21189 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21191 | (eval $ac_try) 2>&5 | |
21192 | ac_status=$? | |
21193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21194 | (exit $ac_status); }; } && | |
21195 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
21196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21197 | (eval $ac_try) 2>&5 | |
21198 | ac_status=$? | |
21199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21200 | (exit $ac_status); }; }; then | |
21201 | ac_cv_lib_png_png_check_sig=yes | |
21202 | else | |
21203 | echo "$as_me: failed program was:" >&5 | |
21204 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21205 | ||
21206 | ac_cv_lib_png_png_check_sig=no | |
21207 | fi | |
ac1cb8d3 VS |
21208 | rm -f conftest.err conftest.$ac_objext \ |
21209 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
21210 | LIBS=$ac_check_lib_save_LIBS |
21211 | fi | |
21212 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5 | |
21213 | echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6 | |
21214 | if test $ac_cv_lib_png_png_check_sig = yes; then | |
21215 | PNG_LINK=" -lpng -lz" | |
21216 | fi | |
21217 | ||
21218 | fi | |
21219 | ||
21220 | if test "x$PNG_LINK" = "x" ; then | |
21221 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
21222 | { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5 | |
21223 | echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;} | |
21224 | { (exit 1); exit 1; }; } | |
21225 | else | |
21226 | { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5 | |
21227 | echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;} | |
21228 | wxUSE_LIBPNG=builtin | |
21229 | fi | |
21230 | else | |
21231 | wxUSE_LIBPNG=sys | |
21232 | fi | |
21233 | fi | |
21234 | fi | |
21235 | ||
21236 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" | |
21237 | fi | |
21238 | ||
21239 | ||
21240 | JPEG_LINK= | |
21241 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
21242 | cat >>confdefs.h <<\_ACEOF | |
21243 | #define wxUSE_LIBJPEG 1 | |
21244 | _ACEOF | |
21245 | ||
21246 | ||
21247 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then | |
21248 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5 | |
21249 | echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;} | |
21250 | wxUSE_LIBJPEG=sys | |
21251 | fi | |
21252 | ||
21253 | if test "$wxUSE_MGL" != 1 ; then | |
21254 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
21255 | echo "$as_me:$LINENO: checking for jpeglib.h" >&5 | |
21256 | echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6 | |
21257 | if test "${ac_cv_header_jpeglib_h+set}" = set; then | |
21258 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21259 | else | |
21260 | cat >conftest.$ac_ext <<_ACEOF | |
21261 | /* confdefs.h. */ | |
21262 | _ACEOF | |
21263 | cat confdefs.h >>conftest.$ac_ext | |
21264 | cat >>conftest.$ac_ext <<_ACEOF | |
21265 | /* end confdefs.h. */ | |
21266 | ||
21267 | #undef HAVE_STDLIB_H | |
21268 | #include <stdio.h> | |
21269 | #include <jpeglib.h> | |
21270 | ||
21271 | int | |
21272 | main () | |
21273 | { | |
21274 | ||
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); } && | |
d51253e8 | 21289 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21291 | (eval $ac_try) 2>&5 | |
21292 | ac_status=$? | |
21293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21294 | (exit $ac_status); }; } && | |
21295 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21297 | (eval $ac_try) 2>&5 | |
21298 | ac_status=$? | |
21299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21300 | (exit $ac_status); }; }; then | |
21301 | ac_cv_header_jpeglib_h=yes | |
21302 | else | |
21303 | echo "$as_me: failed program was:" >&5 | |
21304 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21305 | ||
21306 | ac_cv_header_jpeglib_h=no | |
21307 | ||
21308 | fi | |
ac1cb8d3 | 21309 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21310 | |
21311 | fi | |
21312 | ||
21313 | echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5 | |
21314 | echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6 | |
21315 | ||
21316 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
21317 | echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5 | |
21318 | echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6 | |
21319 | if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then | |
21320 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21321 | else | |
21322 | ac_check_lib_save_LIBS=$LIBS | |
21323 | LIBS="-ljpeg $LIBS" | |
21324 | cat >conftest.$ac_ext <<_ACEOF | |
21325 | /* confdefs.h. */ | |
21326 | _ACEOF | |
21327 | cat confdefs.h >>conftest.$ac_ext | |
21328 | cat >>conftest.$ac_ext <<_ACEOF | |
21329 | /* end confdefs.h. */ | |
21330 | ||
21331 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21332 | #ifdef __cplusplus | |
21333 | extern "C" | |
21334 | #endif | |
21335 | /* We use char because int might match the return type of a gcc2 | |
21336 | builtin and then its argument prototype would still apply. */ | |
21337 | char jpeg_read_header (); | |
21338 | int | |
21339 | main () | |
21340 | { | |
21341 | jpeg_read_header (); | |
21342 | ; | |
21343 | return 0; | |
21344 | } | |
21345 | _ACEOF | |
21346 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21347 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 21348 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 21349 | ac_status=$? |
ac1cb8d3 VS |
21350 | grep -v '^ *+' conftest.er1 >conftest.err |
21351 | rm -f conftest.er1 | |
21352 | cat conftest.err >&5 | |
a848cd7e SC |
21353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21354 | (exit $ac_status); } && | |
d51253e8 | 21355 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21357 | (eval $ac_try) 2>&5 | |
21358 | ac_status=$? | |
21359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21360 | (exit $ac_status); }; } && | |
21361 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
21362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21363 | (eval $ac_try) 2>&5 | |
21364 | ac_status=$? | |
21365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21366 | (exit $ac_status); }; }; then | |
21367 | ac_cv_lib_jpeg_jpeg_read_header=yes | |
21368 | else | |
21369 | echo "$as_me: failed program was:" >&5 | |
21370 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21371 | ||
21372 | ac_cv_lib_jpeg_jpeg_read_header=no | |
21373 | fi | |
ac1cb8d3 VS |
21374 | rm -f conftest.err conftest.$ac_objext \ |
21375 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
21376 | LIBS=$ac_check_lib_save_LIBS |
21377 | fi | |
21378 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 | |
21379 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6 | |
21380 | if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then | |
21381 | JPEG_LINK=" -ljpeg" | |
21382 | fi | |
21383 | ||
21384 | fi | |
21385 | ||
21386 | if test "x$JPEG_LINK" = "x" ; then | |
21387 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
21388 | { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5 | |
21389 | echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;} | |
21390 | { (exit 1); exit 1; }; } | |
21391 | else | |
21392 | { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5 | |
21393 | echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;} | |
21394 | wxUSE_LIBJPEG=builtin | |
21395 | fi | |
21396 | else | |
21397 | wxUSE_LIBJPEG=sys | |
21398 | fi | |
21399 | fi | |
21400 | fi | |
21401 | fi | |
21402 | ||
21403 | ||
21404 | TIFF_LINK= | |
21405 | TIFF_PREREQ_LINKS=-lm | |
21406 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
21407 | cat >>confdefs.h <<\_ACEOF | |
21408 | #define wxUSE_LIBTIFF 1 | |
21409 | _ACEOF | |
21410 | ||
21411 | ||
21412 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
21413 | if test "$wxUSE_LIBJPEG" = "sys"; then | |
21414 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
21415 | fi | |
21416 | if test "$wxUSE_ZLIB" = "sys"; then | |
21417 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
21418 | fi | |
21419 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
21420 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
21421 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
21422 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
21423 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21424 | fi | |
21425 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
21426 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
21427 | else | |
21428 | # Is the header compilable? | |
21429 | echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
21430 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 | |
21431 | cat >conftest.$ac_ext <<_ACEOF | |
21432 | /* confdefs.h. */ | |
21433 | _ACEOF | |
21434 | cat confdefs.h >>conftest.$ac_ext | |
21435 | cat >>conftest.$ac_ext <<_ACEOF | |
21436 | /* end confdefs.h. */ | |
21437 | $ac_includes_default | |
21438 | #include <tiffio.h> | |
21439 | _ACEOF | |
21440 | rm -f conftest.$ac_objext | |
21441 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21442 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21443 | ac_status=$? |
ac1cb8d3 VS |
21444 | grep -v '^ *+' conftest.er1 >conftest.err |
21445 | rm -f conftest.er1 | |
21446 | cat conftest.err >&5 | |
a848cd7e SC |
21447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21448 | (exit $ac_status); } && | |
d51253e8 | 21449 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21451 | (eval $ac_try) 2>&5 | |
21452 | ac_status=$? | |
21453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21454 | (exit $ac_status); }; } && | |
21455 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21457 | (eval $ac_try) 2>&5 | |
21458 | ac_status=$? | |
21459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21460 | (exit $ac_status); }; }; then | |
21461 | ac_header_compiler=yes | |
21462 | else | |
21463 | echo "$as_me: failed program was:" >&5 | |
21464 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21465 | ||
21466 | ac_header_compiler=no | |
21467 | fi | |
ac1cb8d3 | 21468 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21469 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21470 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21471 | ||
21472 | # Is the header present? | |
21473 | echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
21474 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 | |
21475 | cat >conftest.$ac_ext <<_ACEOF | |
21476 | /* confdefs.h. */ | |
21477 | _ACEOF | |
21478 | cat confdefs.h >>conftest.$ac_ext | |
21479 | cat >>conftest.$ac_ext <<_ACEOF | |
21480 | /* end confdefs.h. */ | |
21481 | #include <tiffio.h> | |
21482 | _ACEOF | |
21483 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21484 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21485 | ac_status=$? | |
21486 | grep -v '^ *+' conftest.er1 >conftest.err | |
21487 | rm -f conftest.er1 | |
21488 | cat conftest.err >&5 | |
21489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21490 | (exit $ac_status); } >/dev/null; then | |
21491 | if test -s conftest.err; then | |
21492 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 21493 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
21494 | else |
21495 | ac_cpp_err= | |
21496 | fi | |
21497 | else | |
21498 | ac_cpp_err=yes | |
21499 | fi | |
21500 | if test -z "$ac_cpp_err"; then | |
21501 | ac_header_preproc=yes | |
21502 | else | |
21503 | echo "$as_me: failed program was:" >&5 | |
21504 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21505 | ||
21506 | ac_header_preproc=no | |
21507 | fi | |
21508 | rm -f conftest.err conftest.$ac_ext | |
21509 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21510 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21511 | ||
21512 | # So? What about this header? | |
ac1cb8d3 VS |
21513 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21514 | yes:no: ) | |
a848cd7e SC |
21515 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
21516 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21517 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5 |
21518 | echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;} | |
21519 | ac_header_preproc=yes | |
a848cd7e | 21520 | ;; |
ac1cb8d3 | 21521 | no:yes:* ) |
a848cd7e SC |
21522 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 |
21523 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21524 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 |
21525 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
21526 | { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5 | |
21527 | echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;} | |
21528 | { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21529 | echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
21530 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
21531 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21532 | { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5 |
21533 | echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
21534 | ( |
21535 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21536 | ## ----------------------------------------- ## |
21537 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21538 | ## ----------------------------------------- ## | |
a848cd7e SC |
21539 | _ASBOX |
21540 | ) | | |
21541 | sed "s/^/$as_me: WARNING: /" >&2 | |
21542 | ;; | |
21543 | esac | |
21544 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
21545 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
21546 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
21547 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21548 | else | |
21549 | ac_cv_header_tiffio_h=$ac_header_preproc | |
21550 | fi | |
21551 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
21552 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
21553 | ||
21554 | fi | |
21555 | if test $ac_cv_header_tiffio_h = yes; then | |
21556 | ||
21557 | echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5 | |
21558 | echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6 | |
21559 | if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then | |
21560 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21561 | else | |
21562 | ac_check_lib_save_LIBS=$LIBS | |
21563 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" | |
21564 | cat >conftest.$ac_ext <<_ACEOF | |
21565 | /* confdefs.h. */ | |
21566 | _ACEOF | |
21567 | cat confdefs.h >>conftest.$ac_ext | |
21568 | cat >>conftest.$ac_ext <<_ACEOF | |
21569 | /* end confdefs.h. */ | |
21570 | ||
21571 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21572 | #ifdef __cplusplus | |
21573 | extern "C" | |
21574 | #endif | |
21575 | /* We use char because int might match the return type of a gcc2 | |
21576 | builtin and then its argument prototype would still apply. */ | |
21577 | char TIFFError (); | |
21578 | int | |
21579 | main () | |
21580 | { | |
21581 | TIFFError (); | |
21582 | ; | |
21583 | return 0; | |
21584 | } | |
21585 | _ACEOF | |
21586 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21587 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 21588 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 21589 | ac_status=$? |
ac1cb8d3 VS |
21590 | grep -v '^ *+' conftest.er1 >conftest.err |
21591 | rm -f conftest.er1 | |
21592 | cat conftest.err >&5 | |
a848cd7e SC |
21593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21594 | (exit $ac_status); } && | |
d51253e8 | 21595 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21597 | (eval $ac_try) 2>&5 | |
21598 | ac_status=$? | |
21599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21600 | (exit $ac_status); }; } && | |
21601 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
21602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21603 | (eval $ac_try) 2>&5 | |
21604 | ac_status=$? | |
21605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21606 | (exit $ac_status); }; }; then | |
21607 | ac_cv_lib_tiff_TIFFError=yes | |
21608 | else | |
21609 | echo "$as_me: failed program was:" >&5 | |
21610 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21611 | ||
21612 | ac_cv_lib_tiff_TIFFError=no | |
21613 | fi | |
ac1cb8d3 VS |
21614 | rm -f conftest.err conftest.$ac_objext \ |
21615 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
21616 | LIBS=$ac_check_lib_save_LIBS |
21617 | fi | |
21618 | echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5 | |
21619 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6 | |
21620 | if test $ac_cv_lib_tiff_TIFFError = yes; then | |
21621 | TIFF_LINK=" -ltiff" | |
21622 | fi | |
21623 | ||
21624 | ||
21625 | ||
21626 | fi | |
21627 | ||
21628 | ||
21629 | ||
21630 | if test "x$TIFF_LINK" = "x" ; then | |
21631 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
21632 | { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5 | |
21633 | echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;} | |
21634 | { (exit 1); exit 1; }; } | |
21635 | else | |
21636 | { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5 | |
21637 | echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;} | |
21638 | wxUSE_LIBTIFF=builtin | |
21639 | fi | |
21640 | else | |
21641 | wxUSE_LIBTIFF=sys | |
21642 | fi | |
21643 | fi | |
21644 | fi | |
21645 | ||
21646 | ||
21647 | if test "$wxUSE_EXPAT" != "no"; then | |
21648 | wxUSE_XML=yes | |
21649 | cat >>confdefs.h <<\_ACEOF | |
21650 | #define wxUSE_EXPAT 1 | |
21651 | _ACEOF | |
21652 | ||
21653 | cat >>confdefs.h <<\_ACEOF | |
21654 | #define wxUSE_XML 1 | |
21655 | _ACEOF | |
21656 | ||
21657 | ||
21658 | if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then | |
21659 | if test "${ac_cv_header_expat_h+set}" = set; then | |
21660 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
21661 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
21662 | if test "${ac_cv_header_expat_h+set}" = set; then | |
21663 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21664 | fi | |
21665 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
21666 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
21667 | else | |
21668 | # Is the header compilable? | |
21669 | echo "$as_me:$LINENO: checking expat.h usability" >&5 | |
21670 | echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6 | |
21671 | cat >conftest.$ac_ext <<_ACEOF | |
21672 | /* confdefs.h. */ | |
21673 | _ACEOF | |
21674 | cat confdefs.h >>conftest.$ac_ext | |
21675 | cat >>conftest.$ac_ext <<_ACEOF | |
21676 | /* end confdefs.h. */ | |
21677 | $ac_includes_default | |
21678 | #include <expat.h> | |
21679 | _ACEOF | |
21680 | rm -f conftest.$ac_objext | |
21681 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21682 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21683 | ac_status=$? |
ac1cb8d3 VS |
21684 | grep -v '^ *+' conftest.er1 >conftest.err |
21685 | rm -f conftest.er1 | |
21686 | cat conftest.err >&5 | |
a848cd7e SC |
21687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21688 | (exit $ac_status); } && | |
d51253e8 | 21689 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21691 | (eval $ac_try) 2>&5 | |
21692 | ac_status=$? | |
21693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21694 | (exit $ac_status); }; } && | |
21695 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21697 | (eval $ac_try) 2>&5 | |
21698 | ac_status=$? | |
21699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21700 | (exit $ac_status); }; }; then | |
21701 | ac_header_compiler=yes | |
21702 | else | |
21703 | echo "$as_me: failed program was:" >&5 | |
21704 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21705 | ||
21706 | ac_header_compiler=no | |
21707 | fi | |
ac1cb8d3 | 21708 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21709 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21710 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21711 | ||
21712 | # Is the header present? | |
21713 | echo "$as_me:$LINENO: checking expat.h presence" >&5 | |
21714 | echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6 | |
21715 | cat >conftest.$ac_ext <<_ACEOF | |
21716 | /* confdefs.h. */ | |
21717 | _ACEOF | |
21718 | cat confdefs.h >>conftest.$ac_ext | |
21719 | cat >>conftest.$ac_ext <<_ACEOF | |
21720 | /* end confdefs.h. */ | |
21721 | #include <expat.h> | |
21722 | _ACEOF | |
21723 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21724 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21725 | ac_status=$? | |
21726 | grep -v '^ *+' conftest.er1 >conftest.err | |
21727 | rm -f conftest.er1 | |
21728 | cat conftest.err >&5 | |
21729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21730 | (exit $ac_status); } >/dev/null; then | |
21731 | if test -s conftest.err; then | |
21732 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 21733 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
21734 | else |
21735 | ac_cpp_err= | |
21736 | fi | |
21737 | else | |
21738 | ac_cpp_err=yes | |
21739 | fi | |
21740 | if test -z "$ac_cpp_err"; then | |
21741 | ac_header_preproc=yes | |
21742 | else | |
21743 | echo "$as_me: failed program was:" >&5 | |
21744 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21745 | ||
21746 | ac_header_preproc=no | |
21747 | fi | |
21748 | rm -f conftest.err conftest.$ac_ext | |
21749 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21750 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21751 | ||
21752 | # So? What about this header? | |
ac1cb8d3 VS |
21753 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21754 | yes:no: ) | |
a848cd7e SC |
21755 | { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
21756 | echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21757 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5 |
21758 | echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;} | |
21759 | ac_header_preproc=yes | |
a848cd7e | 21760 | ;; |
ac1cb8d3 | 21761 | no:yes:* ) |
a848cd7e SC |
21762 | { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5 |
21763 | echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21764 | { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5 |
21765 | echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;} | |
21766 | { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5 | |
21767 | echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;} | |
21768 | { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21769 | echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
21770 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5 |
21771 | echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21772 | { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5 |
21773 | echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
21774 | ( |
21775 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21776 | ## ----------------------------------------- ## |
21777 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21778 | ## ----------------------------------------- ## | |
a848cd7e SC |
21779 | _ASBOX |
21780 | ) | | |
21781 | sed "s/^/$as_me: WARNING: /" >&2 | |
21782 | ;; | |
21783 | esac | |
21784 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
21785 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
21786 | if test "${ac_cv_header_expat_h+set}" = set; then | |
21787 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21788 | else | |
21789 | ac_cv_header_expat_h=$ac_header_preproc | |
21790 | fi | |
21791 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
21792 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
21793 | ||
21794 | fi | |
21795 | if test $ac_cv_header_expat_h = yes; then | |
21796 | found_expat_h=1 | |
21797 | fi | |
21798 | ||
21799 | ||
21800 | if test "x$found_expat_h" = "x1"; then | |
21801 | echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5 | |
21802 | echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6 | |
21803 | if test "${wx_cv_expat_is_not_broken+set}" = set; then | |
21804 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21805 | else | |
21806 | ||
21807 | ||
21808 | ||
21809 | ac_ext=cc | |
21810 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21811 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21812 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21813 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21814 | ||
21815 | cat >conftest.$ac_ext <<_ACEOF | |
21816 | /* confdefs.h. */ | |
21817 | _ACEOF | |
21818 | cat confdefs.h >>conftest.$ac_ext | |
21819 | cat >>conftest.$ac_ext <<_ACEOF | |
21820 | /* end confdefs.h. */ | |
21821 | #include <expat.h> | |
21822 | int | |
21823 | main () | |
21824 | { | |
21825 | ||
21826 | ; | |
21827 | return 0; | |
21828 | } | |
21829 | _ACEOF | |
21830 | rm -f conftest.$ac_objext | |
21831 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21832 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21833 | ac_status=$? |
ac1cb8d3 VS |
21834 | grep -v '^ *+' conftest.er1 >conftest.err |
21835 | rm -f conftest.er1 | |
21836 | cat conftest.err >&5 | |
a848cd7e SC |
21837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21838 | (exit $ac_status); } && | |
d51253e8 | 21839 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21841 | (eval $ac_try) 2>&5 | |
21842 | ac_status=$? | |
21843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21844 | (exit $ac_status); }; } && | |
21845 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21847 | (eval $ac_try) 2>&5 | |
21848 | ac_status=$? | |
21849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21850 | (exit $ac_status); }; }; then | |
21851 | wx_cv_expat_is_not_broken=yes | |
21852 | else | |
21853 | echo "$as_me: failed program was:" >&5 | |
21854 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21855 | ||
21856 | wx_cv_expat_is_not_broken=no | |
21857 | ||
21858 | fi | |
ac1cb8d3 | 21859 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21860 | ac_ext=c |
21861 | ac_cpp='$CPP $CPPFLAGS' | |
21862 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21863 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21864 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21865 | ||
21866 | ||
21867 | ||
21868 | fi | |
21869 | echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5 | |
21870 | echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6 | |
21871 | if test "$wx_cv_expat_is_not_broken" = "yes" ; then | |
21872 | echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5 | |
21873 | echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6 | |
21874 | if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then | |
21875 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21876 | else | |
21877 | ac_check_lib_save_LIBS=$LIBS | |
21878 | LIBS="-lexpat $LIBS" | |
21879 | cat >conftest.$ac_ext <<_ACEOF | |
21880 | /* confdefs.h. */ | |
21881 | _ACEOF | |
21882 | cat confdefs.h >>conftest.$ac_ext | |
21883 | cat >>conftest.$ac_ext <<_ACEOF | |
21884 | /* end confdefs.h. */ | |
21885 | ||
21886 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21887 | #ifdef __cplusplus | |
21888 | extern "C" | |
21889 | #endif | |
21890 | /* We use char because int might match the return type of a gcc2 | |
21891 | builtin and then its argument prototype would still apply. */ | |
21892 | char XML_ParserCreate (); | |
21893 | int | |
21894 | main () | |
21895 | { | |
21896 | XML_ParserCreate (); | |
21897 | ; | |
21898 | return 0; | |
21899 | } | |
21900 | _ACEOF | |
21901 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21902 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 21903 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 21904 | ac_status=$? |
ac1cb8d3 VS |
21905 | grep -v '^ *+' conftest.er1 >conftest.err |
21906 | rm -f conftest.er1 | |
21907 | cat conftest.err >&5 | |
a848cd7e SC |
21908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21909 | (exit $ac_status); } && | |
d51253e8 | 21910 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21912 | (eval $ac_try) 2>&5 | |
21913 | ac_status=$? | |
21914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21915 | (exit $ac_status); }; } && | |
21916 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
21917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21918 | (eval $ac_try) 2>&5 | |
21919 | ac_status=$? | |
21920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21921 | (exit $ac_status); }; }; then | |
21922 | ac_cv_lib_expat_XML_ParserCreate=yes | |
21923 | else | |
21924 | echo "$as_me: failed program was:" >&5 | |
21925 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21926 | ||
21927 | ac_cv_lib_expat_XML_ParserCreate=no | |
21928 | fi | |
ac1cb8d3 VS |
21929 | rm -f conftest.err conftest.$ac_objext \ |
21930 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
21931 | LIBS=$ac_check_lib_save_LIBS |
21932 | fi | |
21933 | echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5 | |
21934 | echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6 | |
21935 | if test $ac_cv_lib_expat_XML_ParserCreate = yes; then | |
21936 | EXPAT_LINK=" -lexpat" | |
21937 | fi | |
21938 | ||
21939 | fi | |
21940 | fi | |
21941 | if test "x$EXPAT_LINK" = "x" ; then | |
21942 | if test "$wxUSE_EXPAT" = "sys" ; then | |
21943 | { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5 | |
21944 | echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;} | |
21945 | { (exit 1); exit 1; }; } | |
21946 | else | |
21947 | { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5 | |
21948 | echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;} | |
21949 | wxUSE_EXPAT=builtin | |
21950 | fi | |
21951 | else | |
21952 | wxUSE_EXPAT=sys | |
21953 | fi | |
21954 | fi | |
21955 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
21956 | ||
21957 | ||
21958 | subdirs="$subdirs src/expat" | |
21959 | ||
21960 | fi | |
21961 | fi | |
21962 | ||
21963 | ||
21964 | ||
21965 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
21966 | ||
21967 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
21968 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
21969 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
21970 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
21971 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21972 | fi | |
21973 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
21974 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
21975 | else | |
21976 | # Is the header compilable? | |
21977 | echo "$as_me:$LINENO: checking mspack.h usability" >&5 | |
21978 | echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6 | |
21979 | cat >conftest.$ac_ext <<_ACEOF | |
21980 | /* confdefs.h. */ | |
21981 | _ACEOF | |
21982 | cat confdefs.h >>conftest.$ac_ext | |
21983 | cat >>conftest.$ac_ext <<_ACEOF | |
21984 | /* end confdefs.h. */ | |
21985 | $ac_includes_default | |
21986 | #include <mspack.h> | |
21987 | _ACEOF | |
21988 | rm -f conftest.$ac_objext | |
21989 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21990 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21991 | ac_status=$? |
ac1cb8d3 VS |
21992 | grep -v '^ *+' conftest.er1 >conftest.err |
21993 | rm -f conftest.er1 | |
21994 | cat conftest.err >&5 | |
a848cd7e SC |
21995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21996 | (exit $ac_status); } && | |
d51253e8 | 21997 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21999 | (eval $ac_try) 2>&5 | |
22000 | ac_status=$? | |
22001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22002 | (exit $ac_status); }; } && | |
22003 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22005 | (eval $ac_try) 2>&5 | |
22006 | ac_status=$? | |
22007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22008 | (exit $ac_status); }; }; then | |
22009 | ac_header_compiler=yes | |
22010 | else | |
22011 | echo "$as_me: failed program was:" >&5 | |
22012 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22013 | ||
22014 | ac_header_compiler=no | |
22015 | fi | |
ac1cb8d3 | 22016 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22017 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22018 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22019 | ||
22020 | # Is the header present? | |
22021 | echo "$as_me:$LINENO: checking mspack.h presence" >&5 | |
22022 | echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6 | |
22023 | cat >conftest.$ac_ext <<_ACEOF | |
22024 | /* confdefs.h. */ | |
22025 | _ACEOF | |
22026 | cat confdefs.h >>conftest.$ac_ext | |
22027 | cat >>conftest.$ac_ext <<_ACEOF | |
22028 | /* end confdefs.h. */ | |
22029 | #include <mspack.h> | |
22030 | _ACEOF | |
22031 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22032 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22033 | ac_status=$? | |
22034 | grep -v '^ *+' conftest.er1 >conftest.err | |
22035 | rm -f conftest.er1 | |
22036 | cat conftest.err >&5 | |
22037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22038 | (exit $ac_status); } >/dev/null; then | |
22039 | if test -s conftest.err; then | |
22040 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 22041 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
22042 | else |
22043 | ac_cpp_err= | |
22044 | fi | |
22045 | else | |
22046 | ac_cpp_err=yes | |
22047 | fi | |
22048 | if test -z "$ac_cpp_err"; then | |
22049 | ac_header_preproc=yes | |
22050 | else | |
22051 | echo "$as_me: failed program was:" >&5 | |
22052 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22053 | ||
22054 | ac_header_preproc=no | |
22055 | fi | |
22056 | rm -f conftest.err conftest.$ac_ext | |
22057 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22058 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22059 | ||
22060 | # So? What about this header? | |
ac1cb8d3 VS |
22061 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22062 | yes:no: ) | |
a848cd7e SC |
22063 | { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
22064 | echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22065 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5 |
22066 | echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;} | |
22067 | ac_header_preproc=yes | |
a848cd7e | 22068 | ;; |
ac1cb8d3 | 22069 | no:yes:* ) |
a848cd7e SC |
22070 | { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5 |
22071 | echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22072 | { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5 |
22073 | echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;} | |
22074 | { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5 | |
22075 | echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;} | |
22076 | { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5 | |
22077 | echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22078 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5 |
22079 | echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22080 | { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5 |
22081 | echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22082 | ( |
22083 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22084 | ## ----------------------------------------- ## |
22085 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22086 | ## ----------------------------------------- ## | |
a848cd7e SC |
22087 | _ASBOX |
22088 | ) | | |
22089 | sed "s/^/$as_me: WARNING: /" >&2 | |
22090 | ;; | |
22091 | esac | |
22092 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
22093 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
22094 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
22095 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22096 | else | |
22097 | ac_cv_header_mspack_h=$ac_header_preproc | |
22098 | fi | |
22099 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
22100 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
22101 | ||
22102 | fi | |
22103 | if test $ac_cv_header_mspack_h = yes; then | |
22104 | found_mspack_h=1 | |
22105 | fi | |
22106 | ||
22107 | ||
22108 | if test "x$found_mspack_h" = "x1"; then | |
22109 | echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5 | |
22110 | echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6 | |
22111 | if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then | |
22112 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22113 | else | |
22114 | ac_check_lib_save_LIBS=$LIBS | |
22115 | LIBS="-lmspack $LIBS" | |
22116 | cat >conftest.$ac_ext <<_ACEOF | |
22117 | /* confdefs.h. */ | |
22118 | _ACEOF | |
22119 | cat confdefs.h >>conftest.$ac_ext | |
22120 | cat >>conftest.$ac_ext <<_ACEOF | |
22121 | /* end confdefs.h. */ | |
22122 | ||
22123 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22124 | #ifdef __cplusplus | |
22125 | extern "C" | |
22126 | #endif | |
22127 | /* We use char because int might match the return type of a gcc2 | |
22128 | builtin and then its argument prototype would still apply. */ | |
22129 | char mspack_create_chm_decompressor (); | |
22130 | int | |
22131 | main () | |
22132 | { | |
22133 | mspack_create_chm_decompressor (); | |
22134 | ; | |
22135 | return 0; | |
22136 | } | |
22137 | _ACEOF | |
22138 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22139 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 22140 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 22141 | ac_status=$? |
ac1cb8d3 VS |
22142 | grep -v '^ *+' conftest.er1 >conftest.err |
22143 | rm -f conftest.er1 | |
22144 | cat conftest.err >&5 | |
a848cd7e SC |
22145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22146 | (exit $ac_status); } && | |
d51253e8 | 22147 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22149 | (eval $ac_try) 2>&5 | |
22150 | ac_status=$? | |
22151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22152 | (exit $ac_status); }; } && | |
22153 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
22154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22155 | (eval $ac_try) 2>&5 | |
22156 | ac_status=$? | |
22157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22158 | (exit $ac_status); }; }; then | |
22159 | ac_cv_lib_mspack_mspack_create_chm_decompressor=yes | |
22160 | else | |
22161 | echo "$as_me: failed program was:" >&5 | |
22162 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22163 | ||
22164 | ac_cv_lib_mspack_mspack_create_chm_decompressor=no | |
22165 | fi | |
ac1cb8d3 VS |
22166 | rm -f conftest.err conftest.$ac_objext \ |
22167 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
22168 | LIBS=$ac_check_lib_save_LIBS |
22169 | fi | |
22170 | echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5 | |
22171 | echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6 | |
22172 | if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then | |
22173 | MSPACK_LINK=" -lmspack" | |
22174 | fi | |
22175 | ||
22176 | fi | |
22177 | if test "x$MSPACK_LINK" = "x" ; then | |
22178 | wxUSE_LIBMSPACK=no | |
22179 | else | |
22180 | cat >>confdefs.h <<\_ACEOF | |
22181 | #define wxUSE_LIBMSPACK 1 | |
22182 | _ACEOF | |
22183 | ||
22184 | fi | |
22185 | fi | |
22186 | ||
22187 | ||
22188 | ||
22189 | AFMINSTALL= | |
22190 | WIN32INSTALL= | |
22191 | ||
22192 | TOOLKIT= | |
22193 | TOOLKIT_INCLUDE= | |
22194 | WIDGET_SET= | |
22195 | ||
22196 | if test "$USE_WIN32" = 1 ; then | |
22197 | ||
22198 | for ac_header in w32api.h | |
22199 | do | |
22200 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
22201 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22202 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
22203 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
22204 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22205 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22206 | fi | |
22207 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
22208 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
22209 | else | |
22210 | # Is the header compilable? | |
22211 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
22212 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
22213 | cat >conftest.$ac_ext <<_ACEOF | |
22214 | /* confdefs.h. */ | |
22215 | _ACEOF | |
22216 | cat confdefs.h >>conftest.$ac_ext | |
22217 | cat >>conftest.$ac_ext <<_ACEOF | |
22218 | /* end confdefs.h. */ | |
22219 | $ac_includes_default | |
22220 | #include <$ac_header> | |
22221 | _ACEOF | |
22222 | rm -f conftest.$ac_objext | |
22223 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22224 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22225 | ac_status=$? |
ac1cb8d3 VS |
22226 | grep -v '^ *+' conftest.er1 >conftest.err |
22227 | rm -f conftest.er1 | |
22228 | cat conftest.err >&5 | |
a848cd7e SC |
22229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22230 | (exit $ac_status); } && | |
d51253e8 | 22231 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22233 | (eval $ac_try) 2>&5 | |
22234 | ac_status=$? | |
22235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22236 | (exit $ac_status); }; } && | |
22237 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22239 | (eval $ac_try) 2>&5 | |
22240 | ac_status=$? | |
22241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22242 | (exit $ac_status); }; }; then | |
22243 | ac_header_compiler=yes | |
22244 | else | |
22245 | echo "$as_me: failed program was:" >&5 | |
22246 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22247 | ||
22248 | ac_header_compiler=no | |
22249 | fi | |
ac1cb8d3 | 22250 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22251 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22252 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22253 | ||
22254 | # Is the header present? | |
22255 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
22256 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
22257 | cat >conftest.$ac_ext <<_ACEOF | |
22258 | /* confdefs.h. */ | |
22259 | _ACEOF | |
22260 | cat confdefs.h >>conftest.$ac_ext | |
22261 | cat >>conftest.$ac_ext <<_ACEOF | |
22262 | /* end confdefs.h. */ | |
22263 | #include <$ac_header> | |
22264 | _ACEOF | |
22265 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22266 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22267 | ac_status=$? | |
22268 | grep -v '^ *+' conftest.er1 >conftest.err | |
22269 | rm -f conftest.er1 | |
22270 | cat conftest.err >&5 | |
22271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22272 | (exit $ac_status); } >/dev/null; then | |
22273 | if test -s conftest.err; then | |
22274 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 22275 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
22276 | else |
22277 | ac_cpp_err= | |
22278 | fi | |
22279 | else | |
22280 | ac_cpp_err=yes | |
22281 | fi | |
22282 | if test -z "$ac_cpp_err"; then | |
22283 | ac_header_preproc=yes | |
22284 | else | |
22285 | echo "$as_me: failed program was:" >&5 | |
22286 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22287 | ||
22288 | ac_header_preproc=no | |
22289 | fi | |
22290 | rm -f conftest.err conftest.$ac_ext | |
22291 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22292 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22293 | ||
22294 | # So? What about this header? | |
ac1cb8d3 VS |
22295 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22296 | yes:no: ) | |
a848cd7e SC |
22297 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
22298 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22299 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
22300 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
22301 | ac_header_preproc=yes | |
a848cd7e | 22302 | ;; |
ac1cb8d3 | 22303 | no:yes:* ) |
a848cd7e SC |
22304 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
22305 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22306 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
22307 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
22308 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
22309 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
22310 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
22311 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22312 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
22313 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22314 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
22315 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22316 | ( |
22317 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22318 | ## ----------------------------------------- ## |
22319 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22320 | ## ----------------------------------------- ## | |
a848cd7e SC |
22321 | _ASBOX |
22322 | ) | | |
22323 | sed "s/^/$as_me: WARNING: /" >&2 | |
22324 | ;; | |
22325 | esac | |
22326 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
22327 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
22328 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22329 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22330 | else | |
ac1cb8d3 | 22331 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
22332 | fi |
22333 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
22334 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
22335 | ||
22336 | fi | |
22337 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
22338 | cat >>confdefs.h <<_ACEOF | |
22339 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
22340 | _ACEOF | |
22341 | ||
22342 | fi | |
22343 | ||
22344 | done | |
22345 | ||
22346 | if test "${ac_cv_header_windows_h+set}" = set; then | |
22347 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
22348 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
22349 | if test "${ac_cv_header_windows_h+set}" = set; then | |
22350 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22351 | fi | |
22352 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
22353 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
22354 | else | |
22355 | # Is the header compilable? | |
22356 | echo "$as_me:$LINENO: checking windows.h usability" >&5 | |
22357 | echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6 | |
22358 | cat >conftest.$ac_ext <<_ACEOF | |
22359 | /* confdefs.h. */ | |
22360 | _ACEOF | |
22361 | cat confdefs.h >>conftest.$ac_ext | |
22362 | cat >>conftest.$ac_ext <<_ACEOF | |
22363 | /* end confdefs.h. */ | |
22364 | $ac_includes_default | |
22365 | #include <windows.h> | |
22366 | _ACEOF | |
22367 | rm -f conftest.$ac_objext | |
22368 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22369 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22370 | ac_status=$? |
ac1cb8d3 VS |
22371 | grep -v '^ *+' conftest.er1 >conftest.err |
22372 | rm -f conftest.er1 | |
22373 | cat conftest.err >&5 | |
a848cd7e SC |
22374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22375 | (exit $ac_status); } && | |
d51253e8 | 22376 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22378 | (eval $ac_try) 2>&5 | |
22379 | ac_status=$? | |
22380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22381 | (exit $ac_status); }; } && | |
22382 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22384 | (eval $ac_try) 2>&5 | |
22385 | ac_status=$? | |
22386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22387 | (exit $ac_status); }; }; then | |
22388 | ac_header_compiler=yes | |
22389 | else | |
22390 | echo "$as_me: failed program was:" >&5 | |
22391 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22392 | ||
22393 | ac_header_compiler=no | |
22394 | fi | |
ac1cb8d3 | 22395 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22396 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22397 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22398 | ||
22399 | # Is the header present? | |
22400 | echo "$as_me:$LINENO: checking windows.h presence" >&5 | |
22401 | echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6 | |
22402 | cat >conftest.$ac_ext <<_ACEOF | |
22403 | /* confdefs.h. */ | |
22404 | _ACEOF | |
22405 | cat confdefs.h >>conftest.$ac_ext | |
22406 | cat >>conftest.$ac_ext <<_ACEOF | |
22407 | /* end confdefs.h. */ | |
22408 | #include <windows.h> | |
22409 | _ACEOF | |
22410 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22411 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22412 | ac_status=$? | |
22413 | grep -v '^ *+' conftest.er1 >conftest.err | |
22414 | rm -f conftest.er1 | |
22415 | cat conftest.err >&5 | |
22416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22417 | (exit $ac_status); } >/dev/null; then | |
22418 | if test -s conftest.err; then | |
22419 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 22420 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
22421 | else |
22422 | ac_cpp_err= | |
22423 | fi | |
22424 | else | |
22425 | ac_cpp_err=yes | |
22426 | fi | |
22427 | if test -z "$ac_cpp_err"; then | |
22428 | ac_header_preproc=yes | |
22429 | else | |
22430 | echo "$as_me: failed program was:" >&5 | |
22431 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22432 | ||
22433 | ac_header_preproc=no | |
22434 | fi | |
22435 | rm -f conftest.err conftest.$ac_ext | |
22436 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22437 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22438 | ||
22439 | # So? What about this header? | |
ac1cb8d3 VS |
22440 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22441 | yes:no: ) | |
a848cd7e SC |
22442 | { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
22443 | echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22444 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5 |
22445 | echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;} | |
22446 | ac_header_preproc=yes | |
a848cd7e | 22447 | ;; |
ac1cb8d3 | 22448 | no:yes:* ) |
a848cd7e SC |
22449 | { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5 |
22450 | echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22451 | { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5 |
22452 | echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;} | |
22453 | { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5 | |
22454 | echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;} | |
22455 | { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5 | |
22456 | echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22457 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 |
22458 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22459 | { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5 |
22460 | echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22461 | ( |
22462 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22463 | ## ----------------------------------------- ## |
22464 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22465 | ## ----------------------------------------- ## | |
a848cd7e SC |
22466 | _ASBOX |
22467 | ) | | |
22468 | sed "s/^/$as_me: WARNING: /" >&2 | |
22469 | ;; | |
22470 | esac | |
22471 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
22472 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
22473 | if test "${ac_cv_header_windows_h+set}" = set; then | |
22474 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22475 | else | |
22476 | ac_cv_header_windows_h=$ac_header_preproc | |
22477 | fi | |
22478 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
22479 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
22480 | ||
22481 | fi | |
22482 | if test $ac_cv_header_windows_h = yes; then | |
22483 | : | |
22484 | else | |
22485 | ||
22486 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5 | |
22487 | echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;} | |
22488 | { (exit 1); exit 1; }; } | |
22489 | ||
22490 | fi | |
22491 | ||
22492 | ||
22493 | ||
22494 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32" | |
22495 | ||
22496 | if test "$wxUSE_ACCESSIBILITY" = "yes" ; then | |
22497 | LIBS="$LIBS -loleacc" | |
22498 | fi | |
22499 | ||
22500 | case "${host}" in | |
22501 | *-*-cygwin* ) | |
22502 | LIBS="$LIBS -lkernel32 -luser32" | |
22503 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
22504 | esac | |
22505 | ||
22506 | if test "$wxUSE_ODBC" = "sys" ; then | |
22507 | wxUSE_ODBC = "yes" | |
22508 | fi | |
22509 | if test "$wxUSE_ODBC" = "yes" ; then | |
22510 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
22511 | cat >>confdefs.h <<\_ACEOF | |
22512 | #define wxUSE_ODBC 1 | |
22513 | _ACEOF | |
22514 | ||
22515 | fi | |
22516 | ||
22517 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" | |
22518 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
22519 | ||
22520 | WIN32INSTALL=win32install | |
22521 | fi | |
22522 | ||
22523 | if test "$wxUSE_GUI" = "yes"; then | |
22524 | USE_GUI=1 | |
22525 | ||
22526 | GUI_TK_LIBRARY= | |
22527 | ||
22528 | WXGTK12= | |
22529 | WXGTK127= | |
22530 | WXGTK20= | |
22531 | WXGPE= | |
22532 | ||
207bc66c RN |
22533 | if test "$wxUSE_COCOA" = 1 ; then |
22534 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then | |
22535 | { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5 | |
22536 | echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;} | |
22537 | wxUSE_PRINTING_ARCHITECTURE=no | |
22538 | fi | |
22539 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
22540 | { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5 | |
22541 | echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;} | |
22542 | wxUSE_DRAG_AND_DROP=no | |
22543 | fi | |
22544 | if test "$wxUSE_DRAGIMAGE" = "yes"; then | |
22545 | { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5 | |
22546 | echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;} | |
22547 | wxUSE_DRAGIMAGE=no | |
22548 | fi | |
22549 | fi | |
22550 | ||
a848cd7e SC |
22551 | if test "$wxUSE_MSW" = 1 ; then |
22552 | TOOLKIT=MSW | |
22553 | GUIDIST=MSW_DIST | |
22554 | ||
ceec2216 | 22555 | case "${host}" in |
a848cd7e SC |
22556 | *-*-mingw32* ) |
22557 | WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
22558 | esac | |
22559 | fi | |
22560 | ||
22561 | if test "$wxUSE_GTK" = 1; then | |
22562 | echo "$as_me:$LINENO: checking for GTK+ version" >&5 | |
22563 | echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6 | |
22564 | ||
22565 | gtk_version_cached=1 | |
22566 | if test "${wx_cv_lib_gtk+set}" = set; then | |
22567 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22568 | else | |
22569 | ||
22570 | gtk_version_cached=0 | |
22571 | echo "$as_me:$LINENO: result: " >&5 | |
22572 | echo "${ECHO_T}" >&6 | |
22573 | ||
22574 | GTK_MODULES= | |
22575 | if test "$wxUSE_THREADS" = "yes"; then | |
22576 | GTK_MODULES=gthread | |
22577 | fi | |
22578 | ||
22579 | wx_cv_lib_gtk= | |
22580 | if test "x$wxUSE_GTK2" = "xyes"; then | |
22581 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
22582 | if test "${enable_gtktest+set}" = set; then | |
22583 | enableval="$enable_gtktest" | |
22584 | ||
22585 | else | |
22586 | enable_gtktest=yes | |
22587 | fi; | |
22588 | ||
22589 | pkg_config_args=gtk+-2.0 | |
22590 | for module in . $GTK_MODULES | |
22591 | do | |
22592 | case "$module" in | |
22593 | gthread) | |
22594 | pkg_config_args="$pkg_config_args gthread-2.0" | |
22595 | ;; | |
22596 | esac | |
22597 | done | |
22598 | ||
22599 | no_gtk="" | |
22600 | ||
22601 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
22602 | set dummy pkg-config; ac_word=$2 | |
22603 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
22604 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22605 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
22606 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22607 | else | |
22608 | case $PKG_CONFIG in | |
22609 | [\\/]* | ?:[\\/]*) | |
22610 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
22611 | ;; | |
22612 | *) | |
22613 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
22614 | for as_dir in $PATH | |
22615 | do | |
22616 | IFS=$as_save_IFS | |
22617 | test -z "$as_dir" && as_dir=. | |
22618 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22619 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22620 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22621 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22622 | break 2 | |
22623 | fi | |
22624 | done | |
22625 | done | |
22626 | ||
22627 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
22628 | ;; | |
22629 | esac | |
22630 | fi | |
22631 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
22632 | ||
22633 | if test -n "$PKG_CONFIG"; then | |
22634 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
22635 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
22636 | else | |
22637 | echo "$as_me:$LINENO: result: no" >&5 | |
22638 | echo "${ECHO_T}no" >&6 | |
22639 | fi | |
22640 | ||
22641 | ||
22642 | if test x$PKG_CONFIG != xno ; then | |
22643 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
22644 | : | |
22645 | else | |
c2218763 | 22646 | echo "*** pkg-config too old; version 0.7 or better required." |
a848cd7e SC |
22647 | no_gtk=yes |
22648 | PKG_CONFIG=no | |
22649 | fi | |
22650 | else | |
22651 | no_gtk=yes | |
22652 | fi | |
22653 | ||
22654 | min_gtk_version=2.0.0 | |
22655 | echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 | |
22656 | echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6 | |
22657 | ||
22658 | if test x$PKG_CONFIG != xno ; then | |
22659 | ## don't try to run the test against uninstalled libtool libs | |
22660 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
22661 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
22662 | enable_gtktest=no | |
22663 | fi | |
22664 | ||
22665 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then | |
22666 | : | |
22667 | else | |
22668 | no_gtk=yes | |
22669 | fi | |
22670 | fi | |
22671 | ||
22672 | if test x"$no_gtk" = x ; then | |
22673 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
22674 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
22675 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
22676 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
22677 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
22678 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
22679 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
22680 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
22681 | if test "x$enable_gtktest" = "xyes" ; then | |
22682 | ac_save_CFLAGS="$CFLAGS" | |
22683 | ac_save_LIBS="$LIBS" | |
22684 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
22685 | LIBS="$GTK_LIBS $LIBS" | |
22686 | rm -f conf.gtktest | |
22687 | if test "$cross_compiling" = yes; then | |
22688 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
22689 | else | |
22690 | cat >conftest.$ac_ext <<_ACEOF | |
22691 | /* confdefs.h. */ | |
22692 | _ACEOF | |
22693 | cat confdefs.h >>conftest.$ac_ext | |
22694 | cat >>conftest.$ac_ext <<_ACEOF | |
22695 | /* end confdefs.h. */ | |
22696 | ||
22697 | #include <gtk/gtk.h> | |
22698 | #include <stdio.h> | |
22699 | #include <stdlib.h> | |
22700 | ||
22701 | int | |
22702 | main () | |
22703 | { | |
22704 | int major, minor, micro; | |
22705 | char *tmp_version; | |
22706 | ||
22707 | system ("touch conf.gtktest"); | |
22708 | ||
22709 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
22710 | tmp_version = g_strdup("$min_gtk_version"); | |
22711 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
22712 | printf("%s, bad version string\n", "$min_gtk_version"); | |
22713 | exit(1); | |
22714 | } | |
22715 | ||
22716 | if ((gtk_major_version != $gtk_config_major_version) || | |
22717 | (gtk_minor_version != $gtk_config_minor_version) || | |
22718 | (gtk_micro_version != $gtk_config_micro_version)) | |
22719 | { | |
22720 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
22721 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
22722 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22723 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
22724 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
22725 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
22726 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
22727 | printf("*** required on your system.\n"); | |
22728 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
22729 | printf("*** to point to the correct configuration files\n"); | |
22730 | } | |
22731 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
22732 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
22733 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
22734 | { | |
22735 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
22736 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
22737 | printf("*** library (version %d.%d.%d)\n", | |
22738 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22739 | } | |
22740 | else | |
22741 | { | |
22742 | if ((gtk_major_version > major) || | |
22743 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
22744 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
22745 | { | |
22746 | return 0; | |
22747 | } | |
22748 | else | |
22749 | { | |
22750 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
22751 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22752 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
22753 | major, minor, micro); | |
22754 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
22755 | printf("***\n"); | |
22756 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
22757 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
22758 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
22759 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
22760 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
22761 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
22762 | printf("*** so that the correct libraries are found at run-time))\n"); | |
22763 | } | |
22764 | } | |
22765 | return 1; | |
22766 | } | |
22767 | ||
22768 | _ACEOF | |
22769 | rm -f conftest$ac_exeext | |
22770 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22771 | (eval $ac_link) 2>&5 | |
22772 | ac_status=$? | |
22773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22774 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
22775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22776 | (eval $ac_try) 2>&5 | |
22777 | ac_status=$? | |
22778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22779 | (exit $ac_status); }; }; then | |
22780 | : | |
22781 | else | |
22782 | echo "$as_me: program exited with status $ac_status" >&5 | |
22783 | echo "$as_me: failed program was:" >&5 | |
22784 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22785 | ||
22786 | ( exit $ac_status ) | |
22787 | no_gtk=yes | |
22788 | fi | |
ac1cb8d3 | 22789 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22790 | fi |
22791 | CFLAGS="$ac_save_CFLAGS" | |
22792 | LIBS="$ac_save_LIBS" | |
22793 | fi | |
22794 | fi | |
22795 | if test "x$no_gtk" = x ; then | |
22796 | echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 | |
22797 | echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6 | |
22798 | wx_cv_lib_gtk=2.0 | |
22799 | else | |
22800 | echo "$as_me:$LINENO: result: no" >&5 | |
22801 | echo "${ECHO_T}no" >&6 | |
22802 | if test "$PKG_CONFIG" = "no" ; then | |
22803 | echo "*** A new enough version of pkg-config was not found." | |
22804 | echo "*** See http://pkgconfig.sourceforge.net" | |
22805 | else | |
22806 | if test -f conf.gtktest ; then | |
22807 | : | |
22808 | else | |
22809 | echo "*** Could not run GTK+ test program, checking why..." | |
22810 | ac_save_CFLAGS="$CFLAGS" | |
22811 | ac_save_LIBS="$LIBS" | |
22812 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
22813 | LIBS="$LIBS $GTK_LIBS" | |
22814 | cat >conftest.$ac_ext <<_ACEOF | |
22815 | /* confdefs.h. */ | |
22816 | _ACEOF | |
22817 | cat confdefs.h >>conftest.$ac_ext | |
22818 | cat >>conftest.$ac_ext <<_ACEOF | |
22819 | /* end confdefs.h. */ | |
22820 | ||
22821 | #include <gtk/gtk.h> | |
22822 | #include <stdio.h> | |
22823 | ||
22824 | int | |
22825 | main () | |
22826 | { | |
22827 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
22828 | ; | |
22829 | return 0; | |
22830 | } | |
22831 | _ACEOF | |
22832 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22833 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 22834 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 22835 | ac_status=$? |
ac1cb8d3 VS |
22836 | grep -v '^ *+' conftest.er1 >conftest.err |
22837 | rm -f conftest.er1 | |
22838 | cat conftest.err >&5 | |
a848cd7e SC |
22839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22840 | (exit $ac_status); } && | |
d51253e8 | 22841 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22843 | (eval $ac_try) 2>&5 | |
22844 | ac_status=$? | |
22845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22846 | (exit $ac_status); }; } && | |
22847 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
22848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22849 | (eval $ac_try) 2>&5 | |
22850 | ac_status=$? | |
22851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22852 | (exit $ac_status); }; }; then | |
22853 | echo "*** The test program compiled, but did not run. This usually means" | |
22854 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
22855 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
22856 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
22857 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
22858 | echo "*** is required on your system" | |
22859 | echo "***" | |
22860 | echo "*** If you have an old version installed, it is best to remove it, although" | |
22861 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
22862 | else | |
22863 | echo "$as_me: failed program was:" >&5 | |
22864 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22865 | ||
22866 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
22867 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." | |
22868 | fi | |
ac1cb8d3 VS |
22869 | rm -f conftest.err conftest.$ac_objext \ |
22870 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
22871 | CFLAGS="$ac_save_CFLAGS" |
22872 | LIBS="$ac_save_LIBS" | |
22873 | fi | |
22874 | fi | |
22875 | GTK_CFLAGS="" | |
22876 | GTK_LIBS="" | |
22877 | : | |
22878 | fi | |
22879 | ||
22880 | ||
22881 | rm -f conf.gtktest | |
22882 | ||
22883 | else | |
22884 | ||
22885 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
22886 | if test "${with_gtk_prefix+set}" = set; then | |
22887 | withval="$with_gtk_prefix" | |
22888 | gtk_config_prefix="$withval" | |
22889 | else | |
22890 | gtk_config_prefix="" | |
22891 | fi; | |
22892 | ||
22893 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
22894 | if test "${with_gtk_exec_prefix+set}" = set; then | |
22895 | withval="$with_gtk_exec_prefix" | |
22896 | gtk_config_exec_prefix="$withval" | |
22897 | else | |
22898 | gtk_config_exec_prefix="" | |
22899 | fi; | |
22900 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
22901 | if test "${enable_gtktest+set}" = set; then | |
22902 | enableval="$enable_gtktest" | |
22903 | ||
22904 | else | |
22905 | enable_gtktest=yes | |
22906 | fi; | |
22907 | ||
22908 | for module in . $GTK_MODULES | |
22909 | do | |
22910 | case "$module" in | |
22911 | gthread) | |
22912 | gtk_config_args="$gtk_config_args gthread" | |
22913 | ;; | |
22914 | esac | |
22915 | done | |
22916 | ||
22917 | if test x$gtk_config_exec_prefix != x ; then | |
22918 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
22919 | if test x${GTK_CONFIG+set} != xset ; then | |
22920 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
22921 | fi | |
22922 | fi | |
22923 | if test x$gtk_config_prefix != x ; then | |
22924 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
22925 | if test x${GTK_CONFIG+set} != xset ; then | |
22926 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
22927 | fi | |
22928 | fi | |
22929 | ||
22930 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
22931 | set dummy gtk-config; ac_word=$2 | |
22932 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
22933 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22934 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
22935 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22936 | else | |
22937 | case $GTK_CONFIG in | |
22938 | [\\/]* | ?:[\\/]*) | |
22939 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
22940 | ;; | |
22941 | *) | |
22942 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
22943 | for as_dir in $PATH | |
22944 | do | |
22945 | IFS=$as_save_IFS | |
22946 | test -z "$as_dir" && as_dir=. | |
22947 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22948 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22949 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22950 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22951 | break 2 | |
22952 | fi | |
22953 | done | |
22954 | done | |
22955 | ||
22956 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
22957 | ;; | |
22958 | esac | |
22959 | fi | |
22960 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
22961 | ||
22962 | if test -n "$GTK_CONFIG"; then | |
22963 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
22964 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
22965 | else | |
22966 | echo "$as_me:$LINENO: result: no" >&5 | |
22967 | echo "${ECHO_T}no" >&6 | |
22968 | fi | |
22969 | ||
22970 | min_gtk_version=1.2.7 | |
22971 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
22972 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
22973 | no_gtk="" | |
22974 | if test "$GTK_CONFIG" = "no" ; then | |
22975 | no_gtk=yes | |
22976 | else | |
22977 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
22978 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
22979 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
22980 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
22981 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
22982 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
22983 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
22984 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
22985 | if test "x$enable_gtktest" = "xyes" ; then | |
22986 | ac_save_CFLAGS="$CFLAGS" | |
22987 | ac_save_LIBS="$LIBS" | |
22988 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
22989 | LIBS="$GTK_LIBS $LIBS" | |
22990 | rm -f conf.gtktest | |
22991 | if test "$cross_compiling" = yes; then | |
22992 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
22993 | else | |
22994 | cat >conftest.$ac_ext <<_ACEOF | |
22995 | /* confdefs.h. */ | |
22996 | _ACEOF | |
22997 | cat confdefs.h >>conftest.$ac_ext | |
22998 | cat >>conftest.$ac_ext <<_ACEOF | |
22999 | /* end confdefs.h. */ | |
23000 | ||
23001 | #include <gtk/gtk.h> | |
23002 | #include <stdio.h> | |
23003 | #include <stdlib.h> | |
23004 | ||
23005 | int | |
23006 | main () | |
23007 | { | |
23008 | int major, minor, micro; | |
23009 | char *tmp_version; | |
23010 | ||
23011 | system ("touch conf.gtktest"); | |
23012 | ||
23013 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
23014 | tmp_version = g_strdup("$min_gtk_version"); | |
23015 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
23016 | printf("%s, bad version string\n", "$min_gtk_version"); | |
23017 | exit(1); | |
23018 | } | |
23019 | ||
23020 | if ((gtk_major_version != $gtk_config_major_version) || | |
23021 | (gtk_minor_version != $gtk_config_minor_version) || | |
23022 | (gtk_micro_version != $gtk_config_micro_version)) | |
23023 | { | |
23024 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
23025 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
23026 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23027 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
23028 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
23029 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
23030 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
23031 | printf("*** required on your system.\n"); | |
23032 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
23033 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
23034 | printf("*** before re-running configure\n"); | |
23035 | } | |
23036 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
23037 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
23038 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
23039 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
23040 | { | |
23041 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
23042 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
23043 | printf("*** library (version %d.%d.%d)\n", | |
23044 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23045 | } | |
23046 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
23047 | else | |
23048 | { | |
23049 | if ((gtk_major_version > major) || | |
23050 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
23051 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
23052 | { | |
23053 | return 0; | |
23054 | } | |
23055 | else | |
23056 | { | |
23057 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
23058 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23059 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
23060 | major, minor, micro); | |
23061 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
23062 | printf("***\n"); | |
23063 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
23064 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
23065 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
23066 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
23067 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
23068 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
23069 | printf("*** so that the correct libraries are found at run-time))\n"); | |
23070 | } | |
23071 | } | |
23072 | return 1; | |
23073 | } | |
23074 | ||
23075 | _ACEOF | |
23076 | rm -f conftest$ac_exeext | |
23077 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23078 | (eval $ac_link) 2>&5 | |
23079 | ac_status=$? | |
23080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23081 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
23082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23083 | (eval $ac_try) 2>&5 | |
23084 | ac_status=$? | |
23085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23086 | (exit $ac_status); }; }; then | |
23087 | : | |
23088 | else | |
23089 | echo "$as_me: program exited with status $ac_status" >&5 | |
23090 | echo "$as_me: failed program was:" >&5 | |
23091 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23092 | ||
23093 | ( exit $ac_status ) | |
23094 | no_gtk=yes | |
23095 | fi | |
ac1cb8d3 | 23096 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23097 | fi |
23098 | CFLAGS="$ac_save_CFLAGS" | |
23099 | LIBS="$ac_save_LIBS" | |
23100 | fi | |
23101 | fi | |
23102 | if test "x$no_gtk" = x ; then | |
23103 | echo "$as_me:$LINENO: result: yes" >&5 | |
23104 | echo "${ECHO_T}yes" >&6 | |
23105 | wx_cv_lib_gtk=1.2.7 | |
23106 | else | |
23107 | echo "$as_me:$LINENO: result: no" >&5 | |
23108 | echo "${ECHO_T}no" >&6 | |
23109 | if test "$GTK_CONFIG" = "no" ; then | |
23110 | echo "*** The gtk-config script installed by GTK could not be found" | |
23111 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
23112 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
23113 | echo "*** full path to gtk-config." | |
23114 | else | |
23115 | if test -f conf.gtktest ; then | |
23116 | : | |
23117 | else | |
23118 | echo "*** Could not run GTK test program, checking why..." | |
23119 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23120 | LIBS="$LIBS $GTK_LIBS" | |
23121 | cat >conftest.$ac_ext <<_ACEOF | |
23122 | /* confdefs.h. */ | |
23123 | _ACEOF | |
23124 | cat confdefs.h >>conftest.$ac_ext | |
23125 | cat >>conftest.$ac_ext <<_ACEOF | |
23126 | /* end confdefs.h. */ | |
23127 | ||
23128 | #include <gtk/gtk.h> | |
23129 | #include <stdio.h> | |
23130 | ||
23131 | int | |
23132 | main () | |
23133 | { | |
23134 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
23135 | ; | |
23136 | return 0; | |
23137 | } | |
23138 | _ACEOF | |
23139 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23140 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23141 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23142 | ac_status=$? |
ac1cb8d3 VS |
23143 | grep -v '^ *+' conftest.er1 >conftest.err |
23144 | rm -f conftest.er1 | |
23145 | cat conftest.err >&5 | |
a848cd7e SC |
23146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23147 | (exit $ac_status); } && | |
d51253e8 | 23148 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23150 | (eval $ac_try) 2>&5 | |
23151 | ac_status=$? | |
23152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23153 | (exit $ac_status); }; } && | |
23154 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23156 | (eval $ac_try) 2>&5 | |
23157 | ac_status=$? | |
23158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23159 | (exit $ac_status); }; }; then | |
23160 | echo "*** The test program compiled, but did not run. This usually means" | |
23161 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
23162 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
23163 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
23164 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
23165 | echo "*** is required on your system" | |
23166 | echo "***" | |
23167 | echo "*** If you have an old version installed, it is best to remove it, although" | |
23168 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
23169 | echo "***" | |
23170 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
23171 | echo "*** came with the system with the command" | |
23172 | echo "***" | |
23173 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
23174 | else | |
23175 | echo "$as_me: failed program was:" >&5 | |
23176 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23177 | ||
23178 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
23179 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
23180 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
23181 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
23182 | fi | |
ac1cb8d3 VS |
23183 | rm -f conftest.err conftest.$ac_objext \ |
23184 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23185 | CFLAGS="$ac_save_CFLAGS" |
23186 | LIBS="$ac_save_LIBS" | |
23187 | fi | |
23188 | fi | |
23189 | GTK_CFLAGS="" | |
23190 | GTK_LIBS="" | |
23191 | : | |
23192 | fi | |
23193 | ||
23194 | ||
23195 | rm -f conf.gtktest | |
23196 | ||
23197 | ||
23198 | if test -z "$wx_cv_lib_gtk"; then | |
23199 | ||
23200 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
23201 | if test "${with_gtk_prefix+set}" = set; then | |
23202 | withval="$with_gtk_prefix" | |
23203 | gtk_config_prefix="$withval" | |
23204 | else | |
23205 | gtk_config_prefix="" | |
23206 | fi; | |
23207 | ||
23208 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
23209 | if test "${with_gtk_exec_prefix+set}" = set; then | |
23210 | withval="$with_gtk_exec_prefix" | |
23211 | gtk_config_exec_prefix="$withval" | |
23212 | else | |
23213 | gtk_config_exec_prefix="" | |
23214 | fi; | |
23215 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
23216 | if test "${enable_gtktest+set}" = set; then | |
23217 | enableval="$enable_gtktest" | |
23218 | ||
23219 | else | |
23220 | enable_gtktest=yes | |
23221 | fi; | |
23222 | ||
23223 | for module in . $GTK_MODULES | |
23224 | do | |
23225 | case "$module" in | |
23226 | gthread) | |
23227 | gtk_config_args="$gtk_config_args gthread" | |
23228 | ;; | |
23229 | esac | |
23230 | done | |
23231 | ||
23232 | if test x$gtk_config_exec_prefix != x ; then | |
23233 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
23234 | if test x${GTK_CONFIG+set} != xset ; then | |
23235 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
23236 | fi | |
23237 | fi | |
23238 | if test x$gtk_config_prefix != x ; then | |
23239 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
23240 | if test x${GTK_CONFIG+set} != xset ; then | |
23241 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
23242 | fi | |
23243 | fi | |
23244 | ||
23245 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
23246 | set dummy gtk-config; ac_word=$2 | |
23247 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
23248 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
23249 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
23250 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23251 | else | |
23252 | case $GTK_CONFIG in | |
23253 | [\\/]* | ?:[\\/]*) | |
23254 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
23255 | ;; | |
23256 | *) | |
23257 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
23258 | for as_dir in $PATH | |
23259 | do | |
23260 | IFS=$as_save_IFS | |
23261 | test -z "$as_dir" && as_dir=. | |
23262 | for ac_exec_ext in '' $ac_executable_extensions; do | |
23263 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
23264 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
23265 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
23266 | break 2 | |
23267 | fi | |
23268 | done | |
23269 | done | |
23270 | ||
23271 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
23272 | ;; | |
23273 | esac | |
23274 | fi | |
23275 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
23276 | ||
23277 | if test -n "$GTK_CONFIG"; then | |
23278 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
23279 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
23280 | else | |
23281 | echo "$as_me:$LINENO: result: no" >&5 | |
23282 | echo "${ECHO_T}no" >&6 | |
23283 | fi | |
23284 | ||
23285 | min_gtk_version=1.2.3 | |
23286 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
23287 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
23288 | no_gtk="" | |
23289 | if test "$GTK_CONFIG" = "no" ; then | |
23290 | no_gtk=yes | |
23291 | else | |
23292 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
23293 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
23294 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
23295 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
23296 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
23297 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
23298 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
23299 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
23300 | if test "x$enable_gtktest" = "xyes" ; then | |
23301 | ac_save_CFLAGS="$CFLAGS" | |
23302 | ac_save_LIBS="$LIBS" | |
23303 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23304 | LIBS="$GTK_LIBS $LIBS" | |
23305 | rm -f conf.gtktest | |
23306 | if test "$cross_compiling" = yes; then | |
23307 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
23308 | else | |
23309 | cat >conftest.$ac_ext <<_ACEOF | |
23310 | /* confdefs.h. */ | |
23311 | _ACEOF | |
23312 | cat confdefs.h >>conftest.$ac_ext | |
23313 | cat >>conftest.$ac_ext <<_ACEOF | |
23314 | /* end confdefs.h. */ | |
23315 | ||
23316 | #include <gtk/gtk.h> | |
23317 | #include <stdio.h> | |
23318 | #include <stdlib.h> | |
23319 | ||
23320 | int | |
23321 | main () | |
23322 | { | |
23323 | int major, minor, micro; | |
23324 | char *tmp_version; | |
23325 | ||
23326 | system ("touch conf.gtktest"); | |
23327 | ||
23328 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
23329 | tmp_version = g_strdup("$min_gtk_version"); | |
23330 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
23331 | printf("%s, bad version string\n", "$min_gtk_version"); | |
23332 | exit(1); | |
23333 | } | |
23334 | ||
23335 | if ((gtk_major_version != $gtk_config_major_version) || | |
23336 | (gtk_minor_version != $gtk_config_minor_version) || | |
23337 | (gtk_micro_version != $gtk_config_micro_version)) | |
23338 | { | |
23339 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
23340 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
23341 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23342 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
23343 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
23344 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
23345 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
23346 | printf("*** required on your system.\n"); | |
23347 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
23348 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
23349 | printf("*** before re-running configure\n"); | |
23350 | } | |
23351 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
23352 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
23353 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
23354 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
23355 | { | |
23356 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
23357 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
23358 | printf("*** library (version %d.%d.%d)\n", | |
23359 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23360 | } | |
23361 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
23362 | else | |
23363 | { | |
23364 | if ((gtk_major_version > major) || | |
23365 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
23366 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
23367 | { | |
23368 | return 0; | |
23369 | } | |
23370 | else | |
23371 | { | |
23372 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
23373 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23374 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
23375 | major, minor, micro); | |
23376 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
23377 | printf("***\n"); | |
23378 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
23379 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
23380 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
23381 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
23382 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
23383 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
23384 | printf("*** so that the correct libraries are found at run-time))\n"); | |
23385 | } | |
23386 | } | |
23387 | return 1; | |
23388 | } | |
23389 | ||
23390 | _ACEOF | |
23391 | rm -f conftest$ac_exeext | |
23392 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23393 | (eval $ac_link) 2>&5 | |
23394 | ac_status=$? | |
23395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23396 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
23397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23398 | (eval $ac_try) 2>&5 | |
23399 | ac_status=$? | |
23400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23401 | (exit $ac_status); }; }; then | |
23402 | : | |
23403 | else | |
23404 | echo "$as_me: program exited with status $ac_status" >&5 | |
23405 | echo "$as_me: failed program was:" >&5 | |
23406 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23407 | ||
23408 | ( exit $ac_status ) | |
23409 | no_gtk=yes | |
23410 | fi | |
ac1cb8d3 | 23411 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23412 | fi |
23413 | CFLAGS="$ac_save_CFLAGS" | |
23414 | LIBS="$ac_save_LIBS" | |
23415 | fi | |
23416 | fi | |
23417 | if test "x$no_gtk" = x ; then | |
23418 | echo "$as_me:$LINENO: result: yes" >&5 | |
23419 | echo "${ECHO_T}yes" >&6 | |
23420 | wx_cv_lib_gtk=1.2.3 | |
23421 | else | |
23422 | echo "$as_me:$LINENO: result: no" >&5 | |
23423 | echo "${ECHO_T}no" >&6 | |
23424 | if test "$GTK_CONFIG" = "no" ; then | |
23425 | echo "*** The gtk-config script installed by GTK could not be found" | |
23426 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
23427 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
23428 | echo "*** full path to gtk-config." | |
23429 | else | |
23430 | if test -f conf.gtktest ; then | |
23431 | : | |
23432 | else | |
23433 | echo "*** Could not run GTK test program, checking why..." | |
23434 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23435 | LIBS="$LIBS $GTK_LIBS" | |
23436 | cat >conftest.$ac_ext <<_ACEOF | |
23437 | /* confdefs.h. */ | |
23438 | _ACEOF | |
23439 | cat confdefs.h >>conftest.$ac_ext | |
23440 | cat >>conftest.$ac_ext <<_ACEOF | |
23441 | /* end confdefs.h. */ | |
23442 | ||
23443 | #include <gtk/gtk.h> | |
23444 | #include <stdio.h> | |
23445 | ||
23446 | int | |
23447 | main () | |
23448 | { | |
23449 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
23450 | ; | |
23451 | return 0; | |
23452 | } | |
23453 | _ACEOF | |
23454 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23455 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23456 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23457 | ac_status=$? |
ac1cb8d3 VS |
23458 | grep -v '^ *+' conftest.er1 >conftest.err |
23459 | rm -f conftest.er1 | |
23460 | cat conftest.err >&5 | |
a848cd7e SC |
23461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23462 | (exit $ac_status); } && | |
d51253e8 | 23463 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23465 | (eval $ac_try) 2>&5 | |
23466 | ac_status=$? | |
23467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23468 | (exit $ac_status); }; } && | |
23469 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23471 | (eval $ac_try) 2>&5 | |
23472 | ac_status=$? | |
23473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23474 | (exit $ac_status); }; }; then | |
23475 | echo "*** The test program compiled, but did not run. This usually means" | |
23476 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
23477 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
23478 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
23479 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
23480 | echo "*** is required on your system" | |
23481 | echo "***" | |
23482 | echo "*** If you have an old version installed, it is best to remove it, although" | |
23483 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
23484 | echo "***" | |
23485 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
23486 | echo "*** came with the system with the command" | |
23487 | echo "***" | |
23488 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
23489 | else | |
23490 | echo "$as_me: failed program was:" >&5 | |
23491 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23492 | ||
23493 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
23494 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
23495 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
23496 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
23497 | fi | |
ac1cb8d3 VS |
23498 | rm -f conftest.err conftest.$ac_objext \ |
23499 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23500 | CFLAGS="$ac_save_CFLAGS" |
23501 | LIBS="$ac_save_LIBS" | |
23502 | fi | |
23503 | fi | |
23504 | GTK_CFLAGS="" | |
23505 | GTK_LIBS="" | |
23506 | : | |
23507 | fi | |
23508 | ||
23509 | ||
23510 | rm -f conf.gtktest | |
23511 | ||
23512 | fi | |
23513 | fi | |
23514 | ||
23515 | if test -z "$wx_cv_lib_gtk"; then | |
23516 | wx_cv_lib_gtk=none | |
23517 | else | |
23518 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
23519 | wx_cv_libs_gtk=$GTK_LIBS | |
23520 | fi | |
23521 | ||
23522 | ||
23523 | fi | |
23524 | ||
23525 | ||
23526 | if test "$gtk_version_cached" = 1; then | |
23527 | echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5 | |
23528 | echo "${ECHO_T}$wx_cv_lib_gtk" >&6 | |
23529 | fi | |
23530 | ||
23531 | case "$wx_cv_lib_gtk" in | |
23532 | 2.0) WXGTK20=1 | |
23533 | TOOLKIT_VERSION=2 | |
23534 | ;; | |
23535 | 1.2.7) WXGTK127=1 | |
23536 | WXGTK12=1 | |
23537 | ;; | |
23538 | 1.2.3) WXGTK12=1 | |
23539 | ;; | |
23540 | *) { { echo "$as_me:$LINENO: error: | |
23541 | Please check that gtk-config is in path, the directory | |
23542 | where GTK+ libraries are installed (returned by | |
23543 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
23544 | equivalent variable and GTK+ is version 1.2.3 or above. | |
23545 | " >&5 | |
23546 | echo "$as_me: error: | |
23547 | Please check that gtk-config is in path, the directory | |
23548 | where GTK+ libraries are installed (returned by | |
23549 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
23550 | equivalent variable and GTK+ is version 1.2.3 or above. | |
23551 | " >&2;} | |
23552 | { (exit 1); exit 1; }; } | |
23553 | ;; | |
23554 | esac | |
23555 | ||
23556 | if test "$WXGTK20" = 1; then | |
304205f1 VS |
23557 | save_CFLAGS="$CFLAGS" |
23558 | save_LIBS="$LIBS" | |
23559 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23560 | LIBS="$LIBS $GTK_LIBS" | |
23561 | ||
23562 | for ac_func in pango_font_family_is_monospace | |
23563 | do | |
23564 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
23565 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
23566 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
23567 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
23568 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23569 | else | |
23570 | cat >conftest.$ac_ext <<_ACEOF | |
23571 | /* confdefs.h. */ | |
23572 | _ACEOF | |
23573 | cat confdefs.h >>conftest.$ac_ext | |
23574 | cat >>conftest.$ac_ext <<_ACEOF | |
23575 | /* end confdefs.h. */ | |
23576 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
23577 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
23578 | #define $ac_func innocuous_$ac_func | |
23579 | ||
23580 | /* System header to define __stub macros and hopefully few prototypes, | |
23581 | which can conflict with char $ac_func (); below. | |
23582 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23583 | <limits.h> exists even on freestanding compilers. */ | |
23584 | ||
23585 | #ifdef __STDC__ | |
23586 | # include <limits.h> | |
23587 | #else | |
23588 | # include <assert.h> | |
23589 | #endif | |
23590 | ||
23591 | #undef $ac_func | |
23592 | ||
23593 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23594 | #ifdef __cplusplus | |
23595 | extern "C" | |
23596 | { | |
23597 | #endif | |
23598 | /* We use char because int might match the return type of a gcc2 | |
23599 | builtin and then its argument prototype would still apply. */ | |
23600 | char $ac_func (); | |
23601 | /* The GNU C library defines this for functions which it implements | |
23602 | to always fail with ENOSYS. Some functions are actually named | |
23603 | something starting with __ and the normal name is an alias. */ | |
23604 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
23605 | choke me | |
23606 | #else | |
23607 | char (*f) () = $ac_func; | |
23608 | #endif | |
23609 | #ifdef __cplusplus | |
23610 | } | |
23611 | #endif | |
23612 | ||
23613 | int | |
23614 | main () | |
23615 | { | |
23616 | return f != $ac_func; | |
23617 | ; | |
23618 | return 0; | |
23619 | } | |
23620 | _ACEOF | |
23621 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23622 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23623 | (eval $ac_link) 2>conftest.er1 | |
23624 | ac_status=$? | |
23625 | grep -v '^ *+' conftest.er1 >conftest.err | |
23626 | rm -f conftest.er1 | |
23627 | cat conftest.err >&5 | |
23628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23629 | (exit $ac_status); } && | |
d51253e8 | 23630 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
304205f1 VS |
23631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23632 | (eval $ac_try) 2>&5 | |
23633 | ac_status=$? | |
23634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23635 | (exit $ac_status); }; } && | |
23636 | { ac_try='test -s conftest$ac_exeext' | |
23637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23638 | (eval $ac_try) 2>&5 | |
23639 | ac_status=$? | |
23640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23641 | (exit $ac_status); }; }; then | |
23642 | eval "$as_ac_var=yes" | |
23643 | else | |
23644 | echo "$as_me: failed program was:" >&5 | |
23645 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23646 | ||
23647 | eval "$as_ac_var=no" | |
23648 | fi | |
23649 | rm -f conftest.err conftest.$ac_objext \ | |
23650 | conftest$ac_exeext conftest.$ac_ext | |
23651 | fi | |
23652 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
23653 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
23654 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
23655 | cat >>confdefs.h <<_ACEOF | |
23656 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
23657 | _ACEOF | |
23658 | ||
23659 | fi | |
23660 | done | |
23661 | ||
23662 | CFLAGS="$save_CFLAGS" | |
23663 | LIBS="$save_LIBS" | |
a848cd7e SC |
23664 | else |
23665 | if test "$wxUSE_UNICODE" = "yes"; then | |
23666 | { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5 | |
23667 | echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;} | |
23668 | wxUSE_UNICODE=no | |
23669 | fi | |
23670 | fi | |
23671 | ||
23672 | if test "$USE_DARWIN" != 1; then | |
23673 | ||
23674 | for ac_func in poll | |
23675 | do | |
23676 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
23677 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
23678 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
23679 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
23680 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23681 | else | |
23682 | cat >conftest.$ac_ext <<_ACEOF | |
23683 | /* confdefs.h. */ | |
23684 | _ACEOF | |
23685 | cat confdefs.h >>conftest.$ac_ext | |
23686 | cat >>conftest.$ac_ext <<_ACEOF | |
23687 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
23688 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
23689 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
23690 | #define $ac_func innocuous_$ac_func | |
23691 | ||
a848cd7e SC |
23692 | /* System header to define __stub macros and hopefully few prototypes, |
23693 | which can conflict with char $ac_func (); below. | |
23694 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23695 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 23696 | |
a848cd7e SC |
23697 | #ifdef __STDC__ |
23698 | # include <limits.h> | |
23699 | #else | |
23700 | # include <assert.h> | |
23701 | #endif | |
ac1cb8d3 VS |
23702 | |
23703 | #undef $ac_func | |
23704 | ||
a848cd7e SC |
23705 | /* Override any gcc2 internal prototype to avoid an error. */ |
23706 | #ifdef __cplusplus | |
23707 | extern "C" | |
23708 | { | |
23709 | #endif | |
23710 | /* We use char because int might match the return type of a gcc2 | |
23711 | builtin and then its argument prototype would still apply. */ | |
23712 | char $ac_func (); | |
23713 | /* The GNU C library defines this for functions which it implements | |
23714 | to always fail with ENOSYS. Some functions are actually named | |
23715 | something starting with __ and the normal name is an alias. */ | |
23716 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
23717 | choke me | |
23718 | #else | |
23719 | char (*f) () = $ac_func; | |
23720 | #endif | |
23721 | #ifdef __cplusplus | |
23722 | } | |
23723 | #endif | |
23724 | ||
23725 | int | |
23726 | main () | |
23727 | { | |
23728 | return f != $ac_func; | |
23729 | ; | |
23730 | return 0; | |
23731 | } | |
23732 | _ACEOF | |
23733 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23734 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23735 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23736 | ac_status=$? |
ac1cb8d3 VS |
23737 | grep -v '^ *+' conftest.er1 >conftest.err |
23738 | rm -f conftest.er1 | |
23739 | cat conftest.err >&5 | |
a848cd7e SC |
23740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23741 | (exit $ac_status); } && | |
d51253e8 | 23742 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23744 | (eval $ac_try) 2>&5 | |
23745 | ac_status=$? | |
23746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23747 | (exit $ac_status); }; } && | |
23748 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23750 | (eval $ac_try) 2>&5 | |
23751 | ac_status=$? | |
23752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23753 | (exit $ac_status); }; }; then | |
23754 | eval "$as_ac_var=yes" | |
23755 | else | |
23756 | echo "$as_me: failed program was:" >&5 | |
23757 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23758 | ||
23759 | eval "$as_ac_var=no" | |
23760 | fi | |
ac1cb8d3 VS |
23761 | rm -f conftest.err conftest.$ac_objext \ |
23762 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23763 | fi |
23764 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
23765 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
23766 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
23767 | cat >>confdefs.h <<_ACEOF | |
23768 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
23769 | _ACEOF | |
23770 | ||
23771 | fi | |
23772 | done | |
23773 | ||
23774 | fi | |
23775 | ||
23776 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" | |
23777 | GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY" | |
23778 | ||
23779 | AFMINSTALL=afminstall | |
23780 | TOOLKIT=GTK | |
23781 | GUIDIST=GTK_DIST | |
23782 | ||
23783 | echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5 | |
23784 | echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6 | |
23785 | if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then | |
23786 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23787 | else | |
23788 | ac_check_lib_save_LIBS=$LIBS | |
23789 | LIBS="-lgdk $LIBS" | |
23790 | cat >conftest.$ac_ext <<_ACEOF | |
23791 | /* confdefs.h. */ | |
23792 | _ACEOF | |
23793 | cat confdefs.h >>conftest.$ac_ext | |
23794 | cat >>conftest.$ac_ext <<_ACEOF | |
23795 | /* end confdefs.h. */ | |
23796 | ||
23797 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23798 | #ifdef __cplusplus | |
23799 | extern "C" | |
23800 | #endif | |
23801 | /* We use char because int might match the return type of a gcc2 | |
23802 | builtin and then its argument prototype would still apply. */ | |
23803 | char gdk_im_open (); | |
23804 | int | |
23805 | main () | |
23806 | { | |
23807 | gdk_im_open (); | |
23808 | ; | |
23809 | return 0; | |
23810 | } | |
23811 | _ACEOF | |
23812 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23813 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23814 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23815 | ac_status=$? |
ac1cb8d3 VS |
23816 | grep -v '^ *+' conftest.er1 >conftest.err |
23817 | rm -f conftest.er1 | |
23818 | cat conftest.err >&5 | |
a848cd7e SC |
23819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23820 | (exit $ac_status); } && | |
d51253e8 | 23821 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23823 | (eval $ac_try) 2>&5 | |
23824 | ac_status=$? | |
23825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23826 | (exit $ac_status); }; } && | |
23827 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23829 | (eval $ac_try) 2>&5 | |
23830 | ac_status=$? | |
23831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23832 | (exit $ac_status); }; }; then | |
23833 | ac_cv_lib_gdk_gdk_im_open=yes | |
23834 | else | |
23835 | echo "$as_me: failed program was:" >&5 | |
23836 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23837 | ||
23838 | ac_cv_lib_gdk_gdk_im_open=no | |
23839 | fi | |
ac1cb8d3 VS |
23840 | rm -f conftest.err conftest.$ac_objext \ |
23841 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23842 | LIBS=$ac_check_lib_save_LIBS |
23843 | fi | |
23844 | echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5 | |
23845 | echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6 | |
23846 | if test $ac_cv_lib_gdk_gdk_im_open = yes; then | |
23847 | cat >>confdefs.h <<\_ACEOF | |
23848 | #define HAVE_XIM 1 | |
23849 | _ACEOF | |
23850 | ||
23851 | fi | |
23852 | ||
23853 | ||
23854 | ||
23855 | if test "$wxUSE_GPE" = "yes"; then | |
23856 | echo "$as_me:$LINENO: checking for gpewidget library" >&5 | |
23857 | echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6 | |
23858 | ||
23859 | ac_find_libraries= | |
23860 | for ac_dir in $SEARCH_LIB /usr/lib; | |
23861 | do | |
23862 | for ac_extension in a so sl dylib; do | |
23863 | if test -f "$ac_dir/libgpewidget.$ac_extension"; then | |
23864 | ac_find_libraries=$ac_dir | |
23865 | break 2 | |
23866 | fi | |
23867 | done | |
23868 | done | |
23869 | ||
23870 | if test "$ac_find_libraries" != "" ; then | |
23871 | ||
23872 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
23873 | result=$? | |
23874 | if test $result = 0; then | |
23875 | ac_path_to_link="" | |
23876 | else | |
23877 | ac_path_to_link=" -L$ac_find_libraries" | |
23878 | fi | |
23879 | ||
23880 | GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY" | |
23881 | WXGPE=1 | |
23882 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
23883 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
23884 | else | |
23885 | echo "$as_me:$LINENO: result: not found" >&5 | |
23886 | echo "${ECHO_T}not found" >&6 | |
23887 | fi | |
23888 | ||
23889 | fi | |
23890 | fi | |
23891 | ||
23892 | if test "$wxUSE_MGL" = 1; then | |
23893 | echo "$as_me:$LINENO: checking for SciTech MGL library" >&5 | |
23894 | echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6 | |
23895 | if test "x$MGL_ROOT" = x ; then | |
23896 | echo "$as_me:$LINENO: result: not found" >&5 | |
23897 | echo "${ECHO_T}not found" >&6 | |
23898 | { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5 | |
23899 | echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;} | |
23900 | { (exit 1); exit 1; }; } | |
23901 | else | |
23902 | echo "$as_me:$LINENO: result: $MGL_ROOT" >&5 | |
23903 | echo "${ECHO_T}$MGL_ROOT" >&6 | |
23904 | fi | |
23905 | ||
23906 | echo "$as_me:$LINENO: checking for libmgl location" >&5 | |
23907 | echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6 | |
23908 | case "${host}" in | |
23909 | *-*-linux* ) | |
23910 | if test "x$wxUSE_SHARED" = xyes ; then | |
23911 | mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc" | |
23912 | else | |
23913 | mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so" | |
23914 | fi | |
23915 | ;; | |
23916 | *-pc-msdosdjgpp ) | |
23917 | mgl_os_candidates="dos32/dj2" | |
23918 | ;; | |
23919 | *) | |
23920 | { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5 | |
23921 | echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;} | |
23922 | { (exit 1); exit 1; }; } | |
23923 | esac | |
23924 | ||
23925 | mgl_lib_type="" | |
23926 | mgl_os="" | |
23927 | ||
23928 | for mgl_os_i in $mgl_os_candidates ; do | |
23929 | if test "x$mgl_os" = x ; then | |
23930 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
23931 | if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \ | |
23932 | -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then | |
23933 | mgl_lib_type=debug | |
23934 | mgl_os=$mgl_os_i | |
23935 | fi | |
23936 | fi | |
23937 | if test "x$mgl_lib_type" = x ; then | |
23938 | if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \ | |
23939 | -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then | |
23940 | mgl_lib_type=release | |
23941 | mgl_os=$mgl_os_i | |
23942 | fi | |
23943 | fi | |
23944 | fi | |
23945 | done | |
23946 | ||
23947 | if test "x$mgl_os" = x ; then | |
23948 | echo "$as_me:$LINENO: result: not found" >&5 | |
23949 | echo "${ECHO_T}not found" >&6 | |
23950 | { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5 | |
23951 | echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;} | |
23952 | { (exit 1); exit 1; }; } | |
23953 | fi | |
23954 | echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5 | |
23955 | echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6 | |
23956 | ||
23957 | wxUSE_UNIVERSAL="yes" | |
23958 | ||
23959 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
23960 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
23961 | ||
23962 | AFMINSTALL=afminstall | |
23963 | TOOLKIT=MGL | |
23964 | GUIDIST=MGL_DIST | |
23965 | fi | |
23966 | ||
23967 | if test "$wxUSE_MICROWIN" = 1; then | |
23968 | echo "$as_me:$LINENO: checking for MicroWindows" >&5 | |
23969 | echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6 | |
23970 | if test "x$MICROWINDOWS" = x ; then | |
23971 | echo "$as_me:$LINENO: result: not found" >&5 | |
23972 | echo "${ECHO_T}not found" >&6 | |
23973 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5 | |
23974 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;} | |
23975 | { (exit 1); exit 1; }; } | |
23976 | else | |
23977 | echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5 | |
23978 | echo "${ECHO_T}$MICROWINDOWS" >&6 | |
23979 | fi | |
23980 | ||
23981 | if test -f $MICROWINDOWS/lib/libmwin.a; then | |
23982 | echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5 | |
23983 | echo "${ECHO_T}MicroWindows' libraries found." >&6 | |
23984 | else | |
23985 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5 | |
23986 | echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;} | |
23987 | { (exit 1); exit 1; }; } | |
23988 | fi | |
23989 | ||
23990 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" | |
23991 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
23992 | ||
23993 | wxUSE_UNIVERSAL="yes" | |
23994 | ||
23995 | AFMINSTALL=afminstall | |
23996 | TOOLKIT=MICROWIN | |
23997 | GUIDIST=MICROWIN_DIST | |
23998 | ||
23999 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
24000 | fi | |
24001 | ||
74b84332 | 24002 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
d51253e8 RL |
24003 | |
24004 | if test "x$ac_path_x_has_been_run" != xyes; then | |
24005 | echo "$as_me:$LINENO: checking for X" >&5 | |
a848cd7e SC |
24006 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
24007 | ||
d51253e8 | 24008 | ac_path_x_has_been_run=yes |
a848cd7e SC |
24009 | |
24010 | # Check whether --with-x or --without-x was given. | |
24011 | if test "${with_x+set}" = set; then | |
24012 | withval="$with_x" | |
24013 | ||
24014 | fi; | |
24015 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
24016 | if test "x$with_x" = xno; then | |
24017 | # The user explicitly disabled X. | |
24018 | have_x=disabled | |
24019 | else | |
24020 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
24021 | # Both variables are already set. | |
24022 | have_x=yes | |
24023 | else | |
24024 | if test "${ac_cv_have_x+set}" = set; then | |
24025 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24026 | else | |
24027 | # One or both of the vars are not set, and there is no cached value. | |
24028 | ac_x_includes=no ac_x_libraries=no | |
24029 | rm -fr conftest.dir | |
24030 | if mkdir conftest.dir; then | |
24031 | cd conftest.dir | |
24032 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
24033 | cat >Imakefile <<'_ACEOF' | |
24034 | acfindx: | |
24035 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
24036 | _ACEOF | |
24037 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
24038 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
24039 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
24040 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
24041 | for ac_extension in a so sl; do | |
24042 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
ac1cb8d3 VS |
24043 | test -f $ac_im_libdir/libX11.$ac_extension; then |
24044 | ac_im_usrlibdir=$ac_im_libdir; break | |
a848cd7e SC |
24045 | fi |
24046 | done | |
24047 | # Screen out bogus values from the imake configuration. They are | |
24048 | # bogus both because they are the default anyway, and because | |
24049 | # using them would break gcc on systems where it needs fixed includes. | |
24050 | case $ac_im_incroot in | |
24051 | /usr/include) ;; | |
24052 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | |
24053 | esac | |
24054 | case $ac_im_usrlibdir in | |
24055 | /usr/lib | /lib) ;; | |
24056 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | |
24057 | esac | |
24058 | fi | |
24059 | cd .. | |
24060 | rm -fr conftest.dir | |
24061 | fi | |
24062 | ||
24063 | # Standard set of common directories for X headers. | |
24064 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
24065 | ac_x_header_dirs=' | |
24066 | /usr/X11/include | |
24067 | /usr/X11R6/include | |
24068 | /usr/X11R5/include | |
24069 | /usr/X11R4/include | |
24070 | ||
24071 | /usr/include/X11 | |
24072 | /usr/include/X11R6 | |
24073 | /usr/include/X11R5 | |
24074 | /usr/include/X11R4 | |
24075 | ||
24076 | /usr/local/X11/include | |
24077 | /usr/local/X11R6/include | |
24078 | /usr/local/X11R5/include | |
24079 | /usr/local/X11R4/include | |
24080 | ||
24081 | /usr/local/include/X11 | |
24082 | /usr/local/include/X11R6 | |
24083 | /usr/local/include/X11R5 | |
24084 | /usr/local/include/X11R4 | |
24085 | ||
24086 | /usr/X386/include | |
24087 | /usr/x386/include | |
24088 | /usr/XFree86/include/X11 | |
24089 | ||
24090 | /usr/include | |
24091 | /usr/local/include | |
24092 | /usr/unsupported/include | |
24093 | /usr/athena/include | |
24094 | /usr/local/x11r5/include | |
24095 | /usr/lpp/Xamples/include | |
24096 | ||
24097 | /usr/openwin/include | |
24098 | /usr/openwin/share/include' | |
24099 | ||
24100 | if test "$ac_x_includes" = no; then | |
d51253e8 | 24101 | # Guess where to find include files, by looking for a specified header file. |
a848cd7e SC |
24102 | # First, try using that file with no special directory specified. |
24103 | cat >conftest.$ac_ext <<_ACEOF | |
24104 | /* confdefs.h. */ | |
24105 | _ACEOF | |
24106 | cat confdefs.h >>conftest.$ac_ext | |
24107 | cat >>conftest.$ac_ext <<_ACEOF | |
24108 | /* end confdefs.h. */ | |
24109 | #include <X11/Intrinsic.h> | |
24110 | _ACEOF | |
24111 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24112 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24113 | ac_status=$? | |
24114 | grep -v '^ *+' conftest.er1 >conftest.err | |
24115 | rm -f conftest.er1 | |
24116 | cat conftest.err >&5 | |
24117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24118 | (exit $ac_status); } >/dev/null; then | |
24119 | if test -s conftest.err; then | |
24120 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 24121 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
24122 | else |
24123 | ac_cpp_err= | |
24124 | fi | |
24125 | else | |
24126 | ac_cpp_err=yes | |
24127 | fi | |
24128 | if test -z "$ac_cpp_err"; then | |
24129 | # We can compile using X headers with no special include directory. | |
24130 | ac_x_includes= | |
24131 | else | |
24132 | echo "$as_me: failed program was:" >&5 | |
24133 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24134 | ||
24135 | for ac_dir in $ac_x_header_dirs; do | |
24136 | if test -r "$ac_dir/X11/Intrinsic.h"; then | |
24137 | ac_x_includes=$ac_dir | |
24138 | break | |
24139 | fi | |
24140 | done | |
24141 | fi | |
24142 | rm -f conftest.err conftest.$ac_ext | |
24143 | fi # $ac_x_includes = no | |
24144 | ||
24145 | if test "$ac_x_libraries" = no; then | |
24146 | # Check for the libraries. | |
24147 | # See if we find them without any special options. | |
24148 | # Don't add to $LIBS permanently. | |
24149 | ac_save_LIBS=$LIBS | |
24150 | LIBS="-lXt $LIBS" | |
24151 | cat >conftest.$ac_ext <<_ACEOF | |
24152 | /* confdefs.h. */ | |
24153 | _ACEOF | |
24154 | cat confdefs.h >>conftest.$ac_ext | |
24155 | cat >>conftest.$ac_ext <<_ACEOF | |
24156 | /* end confdefs.h. */ | |
24157 | #include <X11/Intrinsic.h> | |
24158 | int | |
24159 | main () | |
24160 | { | |
24161 | XtMalloc (0) | |
24162 | ; | |
24163 | return 0; | |
24164 | } | |
24165 | _ACEOF | |
24166 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24167 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24168 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24169 | ac_status=$? |
ac1cb8d3 VS |
24170 | grep -v '^ *+' conftest.er1 >conftest.err |
24171 | rm -f conftest.er1 | |
24172 | cat conftest.err >&5 | |
a848cd7e SC |
24173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24174 | (exit $ac_status); } && | |
d51253e8 | 24175 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24177 | (eval $ac_try) 2>&5 | |
24178 | ac_status=$? | |
24179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24180 | (exit $ac_status); }; } && | |
24181 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24182 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24183 | (eval $ac_try) 2>&5 | |
24184 | ac_status=$? | |
24185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24186 | (exit $ac_status); }; }; then | |
24187 | LIBS=$ac_save_LIBS | |
24188 | # We can link X programs with no special library path. | |
24189 | ac_x_libraries= | |
24190 | else | |
24191 | echo "$as_me: failed program was:" >&5 | |
24192 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24193 | ||
24194 | LIBS=$ac_save_LIBS | |
24195 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
24196 | do | |
24197 | # Don't even attempt the hair of trying to link an X program! | |
24198 | for ac_extension in a so sl; do | |
24199 | if test -r $ac_dir/libXt.$ac_extension; then | |
24200 | ac_x_libraries=$ac_dir | |
24201 | break 2 | |
24202 | fi | |
24203 | done | |
24204 | done | |
24205 | fi | |
ac1cb8d3 VS |
24206 | rm -f conftest.err conftest.$ac_objext \ |
24207 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24208 | fi # $ac_x_libraries = no |
24209 | ||
24210 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then | |
24211 | # Didn't find X anywhere. Cache the known absence of X. | |
24212 | ac_cv_have_x="have_x=no" | |
24213 | else | |
24214 | # Record where we found X for the cache. | |
24215 | ac_cv_have_x="have_x=yes \ | |
ac1cb8d3 | 24216 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
a848cd7e SC |
24217 | fi |
24218 | fi | |
24219 | ||
24220 | fi | |
24221 | eval "$ac_cv_have_x" | |
24222 | fi # $with_x != no | |
24223 | ||
24224 | if test "$have_x" != yes; then | |
24225 | echo "$as_me:$LINENO: result: $have_x" >&5 | |
24226 | echo "${ECHO_T}$have_x" >&6 | |
24227 | no_x=yes | |
24228 | else | |
24229 | # If each of the values was on the command line, it overrides each guess. | |
24230 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
24231 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
24232 | # Update the cache value to reflect the command line values. | |
24233 | ac_cv_have_x="have_x=yes \ | |
24234 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
d51253e8 RL |
24235 | # It might be that x_includes is empty (headers are found in the |
24236 | # standard search path. Then output the corresponding message | |
24237 | ac_out_x_includes=$x_includes | |
24238 | test "x$x_includes" = x && ac_out_x_includes="in standard search path" | |
24239 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5 | |
24240 | echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6 | |
a848cd7e SC |
24241 | fi |
24242 | ||
d51253e8 | 24243 | fi |
a848cd7e SC |
24244 | if test "$no_x" = yes; then |
24245 | # Not all programs may use this symbol, but it does not hurt to define it. | |
24246 | ||
24247 | cat >>confdefs.h <<\_ACEOF | |
24248 | #define X_DISPLAY_MISSING 1 | |
24249 | _ACEOF | |
24250 | ||
24251 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
24252 | else | |
24253 | if test -n "$x_includes"; then | |
24254 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
24255 | fi | |
24256 | ||
24257 | # It would also be nice to do this for all -L options, not just this one. | |
24258 | if test -n "$x_libraries"; then | |
24259 | X_LIBS="$X_LIBS -L$x_libraries" | |
24260 | # For Solaris; some versions of Sun CC require a space after -R and | |
24261 | # others require no space. Words are not sufficient . . . . | |
24262 | case `(uname -sr) 2>/dev/null` in | |
24263 | "SunOS 5"*) | |
24264 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 | |
24265 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
24266 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
24267 | cat >conftest.$ac_ext <<_ACEOF | |
24268 | /* confdefs.h. */ | |
24269 | _ACEOF | |
24270 | cat confdefs.h >>conftest.$ac_ext | |
24271 | cat >>conftest.$ac_ext <<_ACEOF | |
24272 | /* end confdefs.h. */ | |
24273 | ||
24274 | int | |
24275 | main () | |
24276 | { | |
24277 | ||
24278 | ; | |
24279 | return 0; | |
24280 | } | |
24281 | _ACEOF | |
24282 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24283 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24284 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24285 | ac_status=$? |
ac1cb8d3 VS |
24286 | grep -v '^ *+' conftest.er1 >conftest.err |
24287 | rm -f conftest.er1 | |
24288 | cat conftest.err >&5 | |
a848cd7e SC |
24289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24290 | (exit $ac_status); } && | |
d51253e8 | 24291 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24293 | (eval $ac_try) 2>&5 | |
24294 | ac_status=$? | |
24295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24296 | (exit $ac_status); }; } && | |
24297 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24299 | (eval $ac_try) 2>&5 | |
24300 | ac_status=$? | |
24301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24302 | (exit $ac_status); }; }; then | |
24303 | ac_R_nospace=yes | |
24304 | else | |
24305 | echo "$as_me: failed program was:" >&5 | |
24306 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24307 | ||
24308 | ac_R_nospace=no | |
24309 | fi | |
ac1cb8d3 VS |
24310 | rm -f conftest.err conftest.$ac_objext \ |
24311 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24312 | if test $ac_R_nospace = yes; then |
24313 | echo "$as_me:$LINENO: result: no" >&5 | |
24314 | echo "${ECHO_T}no" >&6 | |
24315 | X_LIBS="$X_LIBS -R$x_libraries" | |
24316 | else | |
24317 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
24318 | cat >conftest.$ac_ext <<_ACEOF | |
24319 | /* confdefs.h. */ | |
24320 | _ACEOF | |
24321 | cat confdefs.h >>conftest.$ac_ext | |
24322 | cat >>conftest.$ac_ext <<_ACEOF | |
24323 | /* end confdefs.h. */ | |
24324 | ||
24325 | int | |
24326 | main () | |
24327 | { | |
24328 | ||
24329 | ; | |
24330 | return 0; | |
24331 | } | |
24332 | _ACEOF | |
24333 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24334 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24335 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24336 | ac_status=$? |
ac1cb8d3 VS |
24337 | grep -v '^ *+' conftest.er1 >conftest.err |
24338 | rm -f conftest.er1 | |
24339 | cat conftest.err >&5 | |
a848cd7e SC |
24340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24341 | (exit $ac_status); } && | |
d51253e8 | 24342 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24344 | (eval $ac_try) 2>&5 | |
24345 | ac_status=$? | |
24346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24347 | (exit $ac_status); }; } && | |
24348 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24350 | (eval $ac_try) 2>&5 | |
24351 | ac_status=$? | |
24352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24353 | (exit $ac_status); }; }; then | |
24354 | ac_R_space=yes | |
24355 | else | |
24356 | echo "$as_me: failed program was:" >&5 | |
24357 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24358 | ||
24359 | ac_R_space=no | |
24360 | fi | |
ac1cb8d3 VS |
24361 | rm -f conftest.err conftest.$ac_objext \ |
24362 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24363 | if test $ac_R_space = yes; then |
24364 | echo "$as_me:$LINENO: result: yes" >&5 | |
24365 | echo "${ECHO_T}yes" >&6 | |
24366 | X_LIBS="$X_LIBS -R $x_libraries" | |
24367 | else | |
24368 | echo "$as_me:$LINENO: result: neither works" >&5 | |
24369 | echo "${ECHO_T}neither works" >&6 | |
24370 | fi | |
24371 | fi | |
24372 | LIBS=$ac_xsave_LIBS | |
24373 | esac | |
24374 | fi | |
24375 | ||
24376 | # Check for system-dependent libraries X programs must link with. | |
24377 | # Do this before checking for the system-independent R6 libraries | |
24378 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
24379 | ||
24380 | if test "$ISC" = yes; then | |
24381 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
24382 | else | |
24383 | # Martyn Johnson says this is needed for Ultrix, if the X | |
24384 | # libraries were built with DECnet support. And Karl Berry says | |
24385 | # the Alpha needs dnet_stub (dnet does not exist). | |
24386 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" | |
24387 | cat >conftest.$ac_ext <<_ACEOF | |
24388 | /* confdefs.h. */ | |
24389 | _ACEOF | |
24390 | cat confdefs.h >>conftest.$ac_ext | |
24391 | cat >>conftest.$ac_ext <<_ACEOF | |
24392 | /* end confdefs.h. */ | |
24393 | ||
24394 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24395 | #ifdef __cplusplus | |
24396 | extern "C" | |
24397 | #endif | |
24398 | /* We use char because int might match the return type of a gcc2 | |
24399 | builtin and then its argument prototype would still apply. */ | |
24400 | char XOpenDisplay (); | |
24401 | int | |
24402 | main () | |
24403 | { | |
24404 | XOpenDisplay (); | |
24405 | ; | |
24406 | return 0; | |
24407 | } | |
24408 | _ACEOF | |
24409 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24410 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24411 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24412 | ac_status=$? |
ac1cb8d3 VS |
24413 | grep -v '^ *+' conftest.er1 >conftest.err |
24414 | rm -f conftest.er1 | |
24415 | cat conftest.err >&5 | |
a848cd7e SC |
24416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24417 | (exit $ac_status); } && | |
d51253e8 | 24418 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24420 | (eval $ac_try) 2>&5 | |
24421 | ac_status=$? | |
24422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24423 | (exit $ac_status); }; } && | |
24424 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24426 | (eval $ac_try) 2>&5 | |
24427 | ac_status=$? | |
24428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24429 | (exit $ac_status); }; }; then | |
24430 | : | |
24431 | else | |
24432 | echo "$as_me: failed program was:" >&5 | |
24433 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24434 | ||
24435 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 | |
24436 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
24437 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
24438 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24439 | else | |
24440 | ac_check_lib_save_LIBS=$LIBS | |
24441 | LIBS="-ldnet $LIBS" | |
24442 | cat >conftest.$ac_ext <<_ACEOF | |
24443 | /* confdefs.h. */ | |
24444 | _ACEOF | |
24445 | cat confdefs.h >>conftest.$ac_ext | |
24446 | cat >>conftest.$ac_ext <<_ACEOF | |
24447 | /* end confdefs.h. */ | |
24448 | ||
24449 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24450 | #ifdef __cplusplus | |
24451 | extern "C" | |
24452 | #endif | |
24453 | /* We use char because int might match the return type of a gcc2 | |
24454 | builtin and then its argument prototype would still apply. */ | |
24455 | char dnet_ntoa (); | |
24456 | int | |
24457 | main () | |
24458 | { | |
24459 | dnet_ntoa (); | |
24460 | ; | |
24461 | return 0; | |
24462 | } | |
24463 | _ACEOF | |
24464 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24465 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24466 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24467 | ac_status=$? |
ac1cb8d3 VS |
24468 | grep -v '^ *+' conftest.er1 >conftest.err |
24469 | rm -f conftest.er1 | |
24470 | cat conftest.err >&5 | |
a848cd7e SC |
24471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24472 | (exit $ac_status); } && | |
d51253e8 | 24473 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24475 | (eval $ac_try) 2>&5 | |
24476 | ac_status=$? | |
24477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24478 | (exit $ac_status); }; } && | |
24479 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24481 | (eval $ac_try) 2>&5 | |
24482 | ac_status=$? | |
24483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24484 | (exit $ac_status); }; }; then | |
24485 | ac_cv_lib_dnet_dnet_ntoa=yes | |
24486 | else | |
24487 | echo "$as_me: failed program was:" >&5 | |
24488 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24489 | ||
24490 | ac_cv_lib_dnet_dnet_ntoa=no | |
24491 | fi | |
ac1cb8d3 VS |
24492 | rm -f conftest.err conftest.$ac_objext \ |
24493 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24494 | LIBS=$ac_check_lib_save_LIBS |
24495 | fi | |
24496 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
24497 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
24498 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
24499 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
24500 | fi | |
24501 | ||
24502 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
24503 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 | |
24504 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
24505 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
24506 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24507 | else | |
24508 | ac_check_lib_save_LIBS=$LIBS | |
24509 | LIBS="-ldnet_stub $LIBS" | |
24510 | cat >conftest.$ac_ext <<_ACEOF | |
24511 | /* confdefs.h. */ | |
24512 | _ACEOF | |
24513 | cat confdefs.h >>conftest.$ac_ext | |
24514 | cat >>conftest.$ac_ext <<_ACEOF | |
24515 | /* end confdefs.h. */ | |
24516 | ||
24517 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24518 | #ifdef __cplusplus | |
24519 | extern "C" | |
24520 | #endif | |
24521 | /* We use char because int might match the return type of a gcc2 | |
24522 | builtin and then its argument prototype would still apply. */ | |
24523 | char dnet_ntoa (); | |
24524 | int | |
24525 | main () | |
24526 | { | |
24527 | dnet_ntoa (); | |
24528 | ; | |
24529 | return 0; | |
24530 | } | |
24531 | _ACEOF | |
24532 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24533 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24534 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24535 | ac_status=$? |
ac1cb8d3 VS |
24536 | grep -v '^ *+' conftest.er1 >conftest.err |
24537 | rm -f conftest.er1 | |
24538 | cat conftest.err >&5 | |
a848cd7e SC |
24539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24540 | (exit $ac_status); } && | |
d51253e8 | 24541 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24543 | (eval $ac_try) 2>&5 | |
24544 | ac_status=$? | |
24545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24546 | (exit $ac_status); }; } && | |
24547 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24549 | (eval $ac_try) 2>&5 | |
24550 | ac_status=$? | |
24551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24552 | (exit $ac_status); }; }; then | |
24553 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
24554 | else | |
24555 | echo "$as_me: failed program was:" >&5 | |
24556 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24557 | ||
24558 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
24559 | fi | |
ac1cb8d3 VS |
24560 | rm -f conftest.err conftest.$ac_objext \ |
24561 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24562 | LIBS=$ac_check_lib_save_LIBS |
24563 | fi | |
24564 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
24565 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
24566 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
24567 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
24568 | fi | |
24569 | ||
24570 | fi | |
24571 | fi | |
ac1cb8d3 VS |
24572 | rm -f conftest.err conftest.$ac_objext \ |
24573 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24574 | LIBS="$ac_xsave_LIBS" |
24575 | ||
24576 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
24577 | # to get the SysV transport functions. | |
24578 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) | |
24579 | # needs -lnsl. | |
24580 | # The nsl library prevents programs from opening the X display | |
24581 | # on Irix 5.2, according to T.E. Dickey. | |
24582 | # The functions gethostbyname, getservbyname, and inet_addr are | |
24583 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
24584 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
24585 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
24586 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
24587 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24588 | else | |
24589 | cat >conftest.$ac_ext <<_ACEOF | |
24590 | /* confdefs.h. */ | |
24591 | _ACEOF | |
24592 | cat confdefs.h >>conftest.$ac_ext | |
24593 | cat >>conftest.$ac_ext <<_ACEOF | |
24594 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
24595 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
24596 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24597 | #define gethostbyname innocuous_gethostbyname | |
24598 | ||
a848cd7e SC |
24599 | /* System header to define __stub macros and hopefully few prototypes, |
24600 | which can conflict with char gethostbyname (); below. | |
24601 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24602 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 24603 | |
a848cd7e SC |
24604 | #ifdef __STDC__ |
24605 | # include <limits.h> | |
24606 | #else | |
24607 | # include <assert.h> | |
24608 | #endif | |
ac1cb8d3 VS |
24609 | |
24610 | #undef gethostbyname | |
24611 | ||
a848cd7e SC |
24612 | /* Override any gcc2 internal prototype to avoid an error. */ |
24613 | #ifdef __cplusplus | |
24614 | extern "C" | |
24615 | { | |
24616 | #endif | |
24617 | /* We use char because int might match the return type of a gcc2 | |
24618 | builtin and then its argument prototype would still apply. */ | |
24619 | char gethostbyname (); | |
24620 | /* The GNU C library defines this for functions which it implements | |
24621 | to always fail with ENOSYS. Some functions are actually named | |
24622 | something starting with __ and the normal name is an alias. */ | |
24623 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
24624 | choke me | |
24625 | #else | |
24626 | char (*f) () = gethostbyname; | |
24627 | #endif | |
24628 | #ifdef __cplusplus | |
24629 | } | |
24630 | #endif | |
24631 | ||
24632 | int | |
24633 | main () | |
24634 | { | |
24635 | return f != gethostbyname; | |
24636 | ; | |
24637 | return 0; | |
24638 | } | |
24639 | _ACEOF | |
24640 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24641 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24642 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24643 | ac_status=$? |
ac1cb8d3 VS |
24644 | grep -v '^ *+' conftest.er1 >conftest.err |
24645 | rm -f conftest.er1 | |
24646 | cat conftest.err >&5 | |
a848cd7e SC |
24647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24648 | (exit $ac_status); } && | |
d51253e8 | 24649 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24650 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24651 | (eval $ac_try) 2>&5 | |
24652 | ac_status=$? | |
24653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24654 | (exit $ac_status); }; } && | |
24655 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24657 | (eval $ac_try) 2>&5 | |
24658 | ac_status=$? | |
24659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24660 | (exit $ac_status); }; }; then | |
24661 | ac_cv_func_gethostbyname=yes | |
24662 | else | |
24663 | echo "$as_me: failed program was:" >&5 | |
24664 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24665 | ||
24666 | ac_cv_func_gethostbyname=no | |
24667 | fi | |
ac1cb8d3 VS |
24668 | rm -f conftest.err conftest.$ac_objext \ |
24669 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24670 | fi |
24671 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
24672 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
24673 | ||
24674 | if test $ac_cv_func_gethostbyname = no; then | |
24675 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 | |
24676 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
24677 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
24678 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24679 | else | |
24680 | ac_check_lib_save_LIBS=$LIBS | |
24681 | LIBS="-lnsl $LIBS" | |
24682 | cat >conftest.$ac_ext <<_ACEOF | |
24683 | /* confdefs.h. */ | |
24684 | _ACEOF | |
24685 | cat confdefs.h >>conftest.$ac_ext | |
24686 | cat >>conftest.$ac_ext <<_ACEOF | |
24687 | /* end confdefs.h. */ | |
24688 | ||
24689 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24690 | #ifdef __cplusplus | |
24691 | extern "C" | |
24692 | #endif | |
24693 | /* We use char because int might match the return type of a gcc2 | |
24694 | builtin and then its argument prototype would still apply. */ | |
24695 | char gethostbyname (); | |
24696 | int | |
24697 | main () | |
24698 | { | |
24699 | gethostbyname (); | |
24700 | ; | |
24701 | return 0; | |
24702 | } | |
24703 | _ACEOF | |
24704 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24705 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 VS |
24706 | (eval $ac_link) 2>conftest.er1 |
24707 | ac_status=$? | |
24708 | grep -v '^ *+' conftest.er1 >conftest.err | |
24709 | rm -f conftest.er1 | |
24710 | cat conftest.err >&5 | |
24711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24712 | (exit $ac_status); } && | |
d51253e8 | 24713 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24715 | (eval $ac_try) 2>&5 | |
24716 | ac_status=$? | |
24717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24718 | (exit $ac_status); }; } && | |
24719 | { ac_try='test -s conftest$ac_exeext' | |
24720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24721 | (eval $ac_try) 2>&5 | |
24722 | ac_status=$? | |
24723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24724 | (exit $ac_status); }; }; then | |
24725 | ac_cv_lib_nsl_gethostbyname=yes | |
24726 | else | |
24727 | echo "$as_me: failed program was:" >&5 | |
24728 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24729 | ||
24730 | ac_cv_lib_nsl_gethostbyname=no | |
24731 | fi | |
24732 | rm -f conftest.err conftest.$ac_objext \ | |
24733 | conftest$ac_exeext conftest.$ac_ext | |
24734 | LIBS=$ac_check_lib_save_LIBS | |
24735 | fi | |
24736 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
24737 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
24738 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
24739 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
24740 | fi | |
24741 | ||
24742 | if test $ac_cv_lib_nsl_gethostbyname = no; then | |
24743 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 | |
24744 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 | |
24745 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
24746 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24747 | else | |
24748 | ac_check_lib_save_LIBS=$LIBS | |
24749 | LIBS="-lbsd $LIBS" | |
24750 | cat >conftest.$ac_ext <<_ACEOF | |
24751 | /* confdefs.h. */ | |
24752 | _ACEOF | |
24753 | cat confdefs.h >>conftest.$ac_ext | |
24754 | cat >>conftest.$ac_ext <<_ACEOF | |
24755 | /* end confdefs.h. */ | |
24756 | ||
24757 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24758 | #ifdef __cplusplus | |
24759 | extern "C" | |
24760 | #endif | |
24761 | /* We use char because int might match the return type of a gcc2 | |
24762 | builtin and then its argument prototype would still apply. */ | |
24763 | char gethostbyname (); | |
24764 | int | |
24765 | main () | |
24766 | { | |
24767 | gethostbyname (); | |
24768 | ; | |
24769 | return 0; | |
24770 | } | |
24771 | _ACEOF | |
24772 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24773 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24774 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 24775 | ac_status=$? |
ac1cb8d3 VS |
24776 | grep -v '^ *+' conftest.er1 >conftest.err |
24777 | rm -f conftest.er1 | |
24778 | cat conftest.err >&5 | |
a848cd7e SC |
24779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24780 | (exit $ac_status); } && | |
d51253e8 | 24781 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
a848cd7e SC |
24782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24783 | (eval $ac_try) 2>&5 | |
24784 | ac_status=$? | |
24785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
ac1cb8d3 VS |
24786 | (exit $ac_status); }; } && |
24787 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24789 | (eval $ac_try) 2>&5 | |
24790 | ac_status=$? | |
24791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24792 | (exit $ac_status); }; }; then | |
24793 | ac_cv_lib_bsd_gethostbyname=yes | |
24794 | else | |
24795 | echo "$as_me: failed program was:" >&5 | |
24796 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24797 | ||
24798 | ac_cv_lib_bsd_gethostbyname=no | |
24799 | fi | |
ac1cb8d3 VS |
24800 | rm -f conftest.err conftest.$ac_objext \ |
24801 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24802 | LIBS=$ac_check_lib_save_LIBS |
24803 | fi | |
24804 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
24805 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
24806 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
24807 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
24808 | fi | |
24809 | ||
24810 | fi | |
24811 | fi | |
24812 | ||
24813 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
24814 | # socket/setsockopt and other routines are undefined under SCO ODT | |
24815 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
24816 | # on later versions), says Simon Leinen: it contains gethostby* | |
24817 | # variants that don't use the name server (or something). -lsocket | |
24818 | # must be given before -lnsl if both are needed. We assume that | |
24819 | # if connect needs -lnsl, so does gethostbyname. | |
24820 | echo "$as_me:$LINENO: checking for connect" >&5 | |
24821 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
24822 | if test "${ac_cv_func_connect+set}" = set; then | |
24823 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24824 | else | |
24825 | cat >conftest.$ac_ext <<_ACEOF | |
24826 | /* confdefs.h. */ | |
24827 | _ACEOF | |
24828 | cat confdefs.h >>conftest.$ac_ext | |
24829 | cat >>conftest.$ac_ext <<_ACEOF | |
24830 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
24831 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
24832 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24833 | #define connect innocuous_connect | |
24834 | ||
a848cd7e SC |
24835 | /* System header to define __stub macros and hopefully few prototypes, |
24836 | which can conflict with char connect (); below. | |
24837 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24838 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 24839 | |
a848cd7e SC |
24840 | #ifdef __STDC__ |
24841 | # include <limits.h> | |
24842 | #else | |
24843 | # include <assert.h> | |
24844 | #endif | |
ac1cb8d3 VS |
24845 | |
24846 | #undef connect | |
24847 | ||
a848cd7e SC |
24848 | /* Override any gcc2 internal prototype to avoid an error. */ |
24849 | #ifdef __cplusplus | |
24850 | extern "C" | |
24851 | { | |
24852 | #endif | |
24853 | /* We use char because int might match the return type of a gcc2 | |
24854 | builtin and then its argument prototype would still apply. */ | |
24855 | char connect (); | |
24856 | /* The GNU C library defines this for functions which it implements | |
24857 | to always fail with ENOSYS. Some functions are actually named | |
24858 | something starting with __ and the normal name is an alias. */ | |
24859 | #if defined (__stub_connect) || defined (__stub___connect) | |
24860 | choke me | |
24861 | #else | |
24862 | char (*f) () = connect; | |
24863 | #endif | |
24864 | #ifdef __cplusplus | |
24865 | } | |
24866 | #endif | |
24867 | ||
24868 | int | |
24869 | main () | |
24870 | { | |
24871 | return f != connect; | |
24872 | ; | |
24873 | return 0; | |
24874 | } | |
24875 | _ACEOF | |
24876 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24877 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24878 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24879 | ac_status=$? |
ac1cb8d3 VS |
24880 | grep -v '^ *+' conftest.er1 >conftest.err |
24881 | rm -f conftest.er1 | |
24882 | cat conftest.err >&5 | |
a848cd7e SC |
24883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24884 | (exit $ac_status); } && | |
d51253e8 | 24885 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24887 | (eval $ac_try) 2>&5 | |
24888 | ac_status=$? | |
24889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24890 | (exit $ac_status); }; } && | |
24891 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24893 | (eval $ac_try) 2>&5 | |
24894 | ac_status=$? | |
24895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24896 | (exit $ac_status); }; }; then | |
24897 | ac_cv_func_connect=yes | |
24898 | else | |
24899 | echo "$as_me: failed program was:" >&5 | |
24900 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24901 | ||
24902 | ac_cv_func_connect=no | |
24903 | fi | |
ac1cb8d3 VS |
24904 | rm -f conftest.err conftest.$ac_objext \ |
24905 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24906 | fi |
24907 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
24908 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
24909 | ||
24910 | if test $ac_cv_func_connect = no; then | |
24911 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 | |
24912 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
24913 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
24914 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24915 | else | |
24916 | ac_check_lib_save_LIBS=$LIBS | |
24917 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
24918 | cat >conftest.$ac_ext <<_ACEOF | |
24919 | /* confdefs.h. */ | |
24920 | _ACEOF | |
24921 | cat confdefs.h >>conftest.$ac_ext | |
24922 | cat >>conftest.$ac_ext <<_ACEOF | |
24923 | /* end confdefs.h. */ | |
24924 | ||
24925 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24926 | #ifdef __cplusplus | |
24927 | extern "C" | |
24928 | #endif | |
24929 | /* We use char because int might match the return type of a gcc2 | |
24930 | builtin and then its argument prototype would still apply. */ | |
24931 | char connect (); | |
24932 | int | |
24933 | main () | |
24934 | { | |
24935 | connect (); | |
24936 | ; | |
24937 | return 0; | |
24938 | } | |
24939 | _ACEOF | |
24940 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24941 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24942 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24943 | ac_status=$? |
ac1cb8d3 VS |
24944 | grep -v '^ *+' conftest.er1 >conftest.err |
24945 | rm -f conftest.er1 | |
24946 | cat conftest.err >&5 | |
a848cd7e SC |
24947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24948 | (exit $ac_status); } && | |
d51253e8 | 24949 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24951 | (eval $ac_try) 2>&5 | |
24952 | ac_status=$? | |
24953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24954 | (exit $ac_status); }; } && | |
24955 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24957 | (eval $ac_try) 2>&5 | |
24958 | ac_status=$? | |
24959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24960 | (exit $ac_status); }; }; then | |
24961 | ac_cv_lib_socket_connect=yes | |
24962 | else | |
24963 | echo "$as_me: failed program was:" >&5 | |
24964 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24965 | ||
24966 | ac_cv_lib_socket_connect=no | |
24967 | fi | |
ac1cb8d3 VS |
24968 | rm -f conftest.err conftest.$ac_objext \ |
24969 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24970 | LIBS=$ac_check_lib_save_LIBS |
24971 | fi | |
24972 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
24973 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
24974 | if test $ac_cv_lib_socket_connect = yes; then | |
24975 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
24976 | fi | |
24977 | ||
24978 | fi | |
24979 | ||
24980 | # Guillermo Gomez says -lposix is necessary on A/UX. | |
24981 | echo "$as_me:$LINENO: checking for remove" >&5 | |
24982 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
24983 | if test "${ac_cv_func_remove+set}" = set; then | |
24984 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24985 | else | |
24986 | cat >conftest.$ac_ext <<_ACEOF | |
24987 | /* confdefs.h. */ | |
24988 | _ACEOF | |
24989 | cat confdefs.h >>conftest.$ac_ext | |
24990 | cat >>conftest.$ac_ext <<_ACEOF | |
24991 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
24992 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
24993 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24994 | #define remove innocuous_remove | |
24995 | ||
a848cd7e SC |
24996 | /* System header to define __stub macros and hopefully few prototypes, |
24997 | which can conflict with char remove (); below. | |
24998 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24999 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 25000 | |
a848cd7e SC |
25001 | #ifdef __STDC__ |
25002 | # include <limits.h> | |
25003 | #else | |
25004 | # include <assert.h> | |
25005 | #endif | |
ac1cb8d3 VS |
25006 | |
25007 | #undef remove | |
25008 | ||
a848cd7e SC |
25009 | /* Override any gcc2 internal prototype to avoid an error. */ |
25010 | #ifdef __cplusplus | |
25011 | extern "C" | |
25012 | { | |
25013 | #endif | |
25014 | /* We use char because int might match the return type of a gcc2 | |
25015 | builtin and then its argument prototype would still apply. */ | |
25016 | char remove (); | |
25017 | /* The GNU C library defines this for functions which it implements | |
25018 | to always fail with ENOSYS. Some functions are actually named | |
25019 | something starting with __ and the normal name is an alias. */ | |
25020 | #if defined (__stub_remove) || defined (__stub___remove) | |
25021 | choke me | |
25022 | #else | |
25023 | char (*f) () = remove; | |
25024 | #endif | |
25025 | #ifdef __cplusplus | |
25026 | } | |
25027 | #endif | |
25028 | ||
25029 | int | |
25030 | main () | |
25031 | { | |
25032 | return f != remove; | |
25033 | ; | |
25034 | return 0; | |
25035 | } | |
25036 | _ACEOF | |
25037 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25038 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25039 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25040 | ac_status=$? |
ac1cb8d3 VS |
25041 | grep -v '^ *+' conftest.er1 >conftest.err |
25042 | rm -f conftest.er1 | |
25043 | cat conftest.err >&5 | |
a848cd7e SC |
25044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25045 | (exit $ac_status); } && | |
d51253e8 | 25046 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25048 | (eval $ac_try) 2>&5 | |
25049 | ac_status=$? | |
25050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25051 | (exit $ac_status); }; } && | |
25052 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25054 | (eval $ac_try) 2>&5 | |
25055 | ac_status=$? | |
25056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25057 | (exit $ac_status); }; }; then | |
25058 | ac_cv_func_remove=yes | |
25059 | else | |
25060 | echo "$as_me: failed program was:" >&5 | |
25061 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25062 | ||
25063 | ac_cv_func_remove=no | |
25064 | fi | |
ac1cb8d3 VS |
25065 | rm -f conftest.err conftest.$ac_objext \ |
25066 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25067 | fi |
25068 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
25069 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
25070 | ||
25071 | if test $ac_cv_func_remove = no; then | |
25072 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 | |
25073 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
25074 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
25075 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25076 | else | |
25077 | ac_check_lib_save_LIBS=$LIBS | |
25078 | LIBS="-lposix $LIBS" | |
25079 | cat >conftest.$ac_ext <<_ACEOF | |
25080 | /* confdefs.h. */ | |
25081 | _ACEOF | |
25082 | cat confdefs.h >>conftest.$ac_ext | |
25083 | cat >>conftest.$ac_ext <<_ACEOF | |
25084 | /* end confdefs.h. */ | |
25085 | ||
25086 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25087 | #ifdef __cplusplus | |
25088 | extern "C" | |
25089 | #endif | |
25090 | /* We use char because int might match the return type of a gcc2 | |
25091 | builtin and then its argument prototype would still apply. */ | |
25092 | char remove (); | |
25093 | int | |
25094 | main () | |
25095 | { | |
25096 | remove (); | |
25097 | ; | |
25098 | return 0; | |
25099 | } | |
25100 | _ACEOF | |
25101 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25102 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25103 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25104 | ac_status=$? |
ac1cb8d3 VS |
25105 | grep -v '^ *+' conftest.er1 >conftest.err |
25106 | rm -f conftest.er1 | |
25107 | cat conftest.err >&5 | |
a848cd7e SC |
25108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25109 | (exit $ac_status); } && | |
d51253e8 | 25110 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25112 | (eval $ac_try) 2>&5 | |
25113 | ac_status=$? | |
25114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25115 | (exit $ac_status); }; } && | |
25116 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25118 | (eval $ac_try) 2>&5 | |
25119 | ac_status=$? | |
25120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25121 | (exit $ac_status); }; }; then | |
25122 | ac_cv_lib_posix_remove=yes | |
25123 | else | |
25124 | echo "$as_me: failed program was:" >&5 | |
25125 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25126 | ||
25127 | ac_cv_lib_posix_remove=no | |
25128 | fi | |
ac1cb8d3 VS |
25129 | rm -f conftest.err conftest.$ac_objext \ |
25130 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25131 | LIBS=$ac_check_lib_save_LIBS |
25132 | fi | |
25133 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
25134 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
25135 | if test $ac_cv_lib_posix_remove = yes; then | |
25136 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
25137 | fi | |
25138 | ||
25139 | fi | |
25140 | ||
25141 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
25142 | echo "$as_me:$LINENO: checking for shmat" >&5 | |
25143 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
25144 | if test "${ac_cv_func_shmat+set}" = set; then | |
25145 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25146 | else | |
25147 | cat >conftest.$ac_ext <<_ACEOF | |
25148 | /* confdefs.h. */ | |
25149 | _ACEOF | |
25150 | cat confdefs.h >>conftest.$ac_ext | |
25151 | cat >>conftest.$ac_ext <<_ACEOF | |
25152 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
25153 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
25154 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25155 | #define shmat innocuous_shmat | |
25156 | ||
a848cd7e SC |
25157 | /* System header to define __stub macros and hopefully few prototypes, |
25158 | which can conflict with char shmat (); below. | |
25159 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25160 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 25161 | |
a848cd7e SC |
25162 | #ifdef __STDC__ |
25163 | # include <limits.h> | |
25164 | #else | |
25165 | # include <assert.h> | |
25166 | #endif | |
ac1cb8d3 VS |
25167 | |
25168 | #undef shmat | |
25169 | ||
a848cd7e SC |
25170 | /* Override any gcc2 internal prototype to avoid an error. */ |
25171 | #ifdef __cplusplus | |
25172 | extern "C" | |
25173 | { | |
25174 | #endif | |
25175 | /* We use char because int might match the return type of a gcc2 | |
25176 | builtin and then its argument prototype would still apply. */ | |
25177 | char shmat (); | |
25178 | /* The GNU C library defines this for functions which it implements | |
25179 | to always fail with ENOSYS. Some functions are actually named | |
25180 | something starting with __ and the normal name is an alias. */ | |
25181 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
25182 | choke me | |
25183 | #else | |
25184 | char (*f) () = shmat; | |
25185 | #endif | |
25186 | #ifdef __cplusplus | |
25187 | } | |
25188 | #endif | |
25189 | ||
25190 | int | |
25191 | main () | |
25192 | { | |
25193 | return f != shmat; | |
25194 | ; | |
25195 | return 0; | |
25196 | } | |
25197 | _ACEOF | |
25198 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25199 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25200 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25201 | ac_status=$? |
ac1cb8d3 VS |
25202 | grep -v '^ *+' conftest.er1 >conftest.err |
25203 | rm -f conftest.er1 | |
25204 | cat conftest.err >&5 | |
a848cd7e SC |
25205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25206 | (exit $ac_status); } && | |
d51253e8 | 25207 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25209 | (eval $ac_try) 2>&5 | |
25210 | ac_status=$? | |
25211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25212 | (exit $ac_status); }; } && | |
25213 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25215 | (eval $ac_try) 2>&5 | |
25216 | ac_status=$? | |
25217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25218 | (exit $ac_status); }; }; then | |
25219 | ac_cv_func_shmat=yes | |
25220 | else | |
25221 | echo "$as_me: failed program was:" >&5 | |
25222 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25223 | ||
25224 | ac_cv_func_shmat=no | |
25225 | fi | |
ac1cb8d3 VS |
25226 | rm -f conftest.err conftest.$ac_objext \ |
25227 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25228 | fi |
25229 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
25230 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
25231 | ||
25232 | if test $ac_cv_func_shmat = no; then | |
25233 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 | |
25234 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
25235 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
25236 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25237 | else | |
25238 | ac_check_lib_save_LIBS=$LIBS | |
25239 | LIBS="-lipc $LIBS" | |
25240 | cat >conftest.$ac_ext <<_ACEOF | |
25241 | /* confdefs.h. */ | |
25242 | _ACEOF | |
25243 | cat confdefs.h >>conftest.$ac_ext | |
25244 | cat >>conftest.$ac_ext <<_ACEOF | |
25245 | /* end confdefs.h. */ | |
25246 | ||
25247 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25248 | #ifdef __cplusplus | |
25249 | extern "C" | |
25250 | #endif | |
25251 | /* We use char because int might match the return type of a gcc2 | |
25252 | builtin and then its argument prototype would still apply. */ | |
25253 | char shmat (); | |
25254 | int | |
25255 | main () | |
25256 | { | |
25257 | shmat (); | |
25258 | ; | |
25259 | return 0; | |
25260 | } | |
25261 | _ACEOF | |
25262 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25263 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25264 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25265 | ac_status=$? |
ac1cb8d3 VS |
25266 | grep -v '^ *+' conftest.er1 >conftest.err |
25267 | rm -f conftest.er1 | |
25268 | cat conftest.err >&5 | |
a848cd7e SC |
25269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25270 | (exit $ac_status); } && | |
d51253e8 | 25271 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25273 | (eval $ac_try) 2>&5 | |
25274 | ac_status=$? | |
25275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25276 | (exit $ac_status); }; } && | |
25277 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25279 | (eval $ac_try) 2>&5 | |
25280 | ac_status=$? | |
25281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25282 | (exit $ac_status); }; }; then | |
25283 | ac_cv_lib_ipc_shmat=yes | |
25284 | else | |
25285 | echo "$as_me: failed program was:" >&5 | |
25286 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25287 | ||
25288 | ac_cv_lib_ipc_shmat=no | |
25289 | fi | |
ac1cb8d3 VS |
25290 | rm -f conftest.err conftest.$ac_objext \ |
25291 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25292 | LIBS=$ac_check_lib_save_LIBS |
25293 | fi | |
25294 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
25295 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
25296 | if test $ac_cv_lib_ipc_shmat = yes; then | |
25297 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
25298 | fi | |
25299 | ||
25300 | fi | |
25301 | fi | |
25302 | ||
25303 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
25304 | ac_save_LDFLAGS=$LDFLAGS | |
25305 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
25306 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
25307 | # check for ICE first), but we must link in the order -lSM -lICE or | |
25308 | # we get undefined symbols. So assume we have SM if we have ICE. | |
25309 | # These have to be linked with before -lX11, unlike the other | |
25310 | # libraries we check for below, so use a different variable. | |
25311 | # John Interrante, Karl Berry | |
25312 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
25313 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
25314 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
25315 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25316 | else | |
25317 | ac_check_lib_save_LIBS=$LIBS | |
25318 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
25319 | cat >conftest.$ac_ext <<_ACEOF | |
25320 | /* confdefs.h. */ | |
25321 | _ACEOF | |
25322 | cat confdefs.h >>conftest.$ac_ext | |
25323 | cat >>conftest.$ac_ext <<_ACEOF | |
25324 | /* end confdefs.h. */ | |
25325 | ||
25326 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25327 | #ifdef __cplusplus | |
25328 | extern "C" | |
25329 | #endif | |
25330 | /* We use char because int might match the return type of a gcc2 | |
25331 | builtin and then its argument prototype would still apply. */ | |
25332 | char IceConnectionNumber (); | |
25333 | int | |
25334 | main () | |
25335 | { | |
25336 | IceConnectionNumber (); | |
25337 | ; | |
25338 | return 0; | |
25339 | } | |
25340 | _ACEOF | |
25341 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25342 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25343 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25344 | ac_status=$? |
ac1cb8d3 VS |
25345 | grep -v '^ *+' conftest.er1 >conftest.err |
25346 | rm -f conftest.er1 | |
25347 | cat conftest.err >&5 | |
a848cd7e SC |
25348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25349 | (exit $ac_status); } && | |
d51253e8 | 25350 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25352 | (eval $ac_try) 2>&5 | |
25353 | ac_status=$? | |
25354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25355 | (exit $ac_status); }; } && | |
25356 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25358 | (eval $ac_try) 2>&5 | |
25359 | ac_status=$? | |
25360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25361 | (exit $ac_status); }; }; then | |
25362 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
25363 | else | |
25364 | echo "$as_me: failed program was:" >&5 | |
25365 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25366 | ||
25367 | ac_cv_lib_ICE_IceConnectionNumber=no | |
25368 | fi | |
ac1cb8d3 VS |
25369 | rm -f conftest.err conftest.$ac_objext \ |
25370 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25371 | LIBS=$ac_check_lib_save_LIBS |
25372 | fi | |
25373 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
25374 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
25375 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
25376 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
25377 | fi | |
25378 | ||
25379 | LDFLAGS=$ac_save_LDFLAGS | |
25380 | ||
25381 | fi | |
25382 | ||
25383 | ||
25384 | if test "$no_x" = "yes"; then | |
25385 | { { echo "$as_me:$LINENO: error: X11 not found" >&5 | |
25386 | echo "$as_me: error: X11 not found" >&2;} | |
25387 | { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; } | |
25388 | fi | |
25389 | ||
74b84332 VS |
25390 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'` |
25391 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
a848cd7e SC |
25392 | AFMINSTALL=afminstall |
25393 | COMPILED_X_PROGRAM=0 | |
25394 | ||
74b84332 VS |
25395 | fi |
25396 | ||
25397 | if test "$wxUSE_X11" = 1; then | |
a848cd7e SC |
25398 | if test "$wxUSE_NANOX" = "yes"; then |
25399 | echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5 | |
25400 | echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6 | |
25401 | if test "x$MICROWIN" = x ; then | |
25402 | echo "$as_me:$LINENO: result: not found" >&5 | |
25403 | echo "${ECHO_T}not found" >&6 | |
25404 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5 | |
25405 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;} | |
25406 | { (exit 1); exit 1; }; } | |
25407 | else | |
25408 | echo "$as_me:$LINENO: result: $MICROWIN" >&5 | |
25409 | echo "${ECHO_T}$MICROWIN" >&6 | |
25410 | cat >>confdefs.h <<\_ACEOF | |
25411 | #define wxUSE_NANOX 1 | |
25412 | _ACEOF | |
25413 | ||
25414 | fi | |
25415 | fi | |
25416 | ||
25417 | if test "$wxUSE_UNICODE" = "yes"; then | |
25418 | ||
25419 | succeeded=no | |
25420 | ||
25421 | if test -z "$PKG_CONFIG"; then | |
25422 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
25423 | set dummy pkg-config; ac_word=$2 | |
25424 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
25425 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25426 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
25427 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25428 | else | |
25429 | case $PKG_CONFIG in | |
25430 | [\\/]* | ?:[\\/]*) | |
25431 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
25432 | ;; | |
25433 | *) | |
25434 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25435 | for as_dir in $PATH | |
25436 | do | |
25437 | IFS=$as_save_IFS | |
25438 | test -z "$as_dir" && as_dir=. | |
25439 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25440 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25441 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
25442 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25443 | break 2 | |
25444 | fi | |
25445 | done | |
25446 | done | |
25447 | ||
25448 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
25449 | ;; | |
25450 | esac | |
25451 | fi | |
25452 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
25453 | ||
25454 | if test -n "$PKG_CONFIG"; then | |
25455 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
25456 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
25457 | else | |
25458 | echo "$as_me:$LINENO: result: no" >&5 | |
25459 | echo "${ECHO_T}no" >&6 | |
25460 | fi | |
25461 | ||
25462 | fi | |
25463 | ||
25464 | if test "$PKG_CONFIG" = "no" ; then | |
25465 | echo "*** The pkg-config script could not be found. Make sure it is" | |
25466 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
25467 | echo "*** to the full path to pkg-config." | |
25468 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
25469 | else | |
25470 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
25471 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
25472 | echo "$as_me:$LINENO: checking for pangox" >&5 | |
25473 | echo $ECHO_N "checking for pangox... $ECHO_C" >&6 | |
25474 | ||
25475 | if $PKG_CONFIG --exists "pangox" ; then | |
25476 | echo "$as_me:$LINENO: result: yes" >&5 | |
25477 | echo "${ECHO_T}yes" >&6 | |
25478 | succeeded=yes | |
25479 | ||
25480 | echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5 | |
25481 | echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6 | |
25482 | PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"` | |
25483 | echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5 | |
25484 | echo "${ECHO_T}$PANGOX_CFLAGS" >&6 | |
25485 | ||
25486 | echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5 | |
25487 | echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6 | |
25488 | PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"` | |
25489 | echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5 | |
25490 | echo "${ECHO_T}$PANGOX_LIBS" >&6 | |
25491 | else | |
25492 | PANGOX_CFLAGS="" | |
25493 | PANGOX_LIBS="" | |
25494 | ## If we have a custom action on failure, don't print errors, but | |
25495 | ## do set a variable so people can do so. | |
25496 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
25497 | ||
25498 | fi | |
25499 | ||
25500 | ||
25501 | ||
25502 | else | |
25503 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
25504 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
25505 | fi | |
25506 | fi | |
25507 | ||
25508 | if test $succeeded = yes; then | |
25509 | ||
25510 | CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS" | |
25511 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS" | |
25512 | ||
25513 | else | |
25514 | ||
25515 | { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5 | |
25516 | echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;} | |
25517 | { (exit 1); exit 1; }; } | |
25518 | ||
25519 | ||
25520 | fi | |
25521 | ||
25522 | ||
25523 | succeeded=no | |
25524 | ||
25525 | if test -z "$PKG_CONFIG"; then | |
25526 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
25527 | set dummy pkg-config; ac_word=$2 | |
25528 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
25529 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25530 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
25531 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25532 | else | |
25533 | case $PKG_CONFIG in | |
25534 | [\\/]* | ?:[\\/]*) | |
25535 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
25536 | ;; | |
25537 | *) | |
25538 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25539 | for as_dir in $PATH | |
25540 | do | |
25541 | IFS=$as_save_IFS | |
25542 | test -z "$as_dir" && as_dir=. | |
25543 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25544 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25545 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
25546 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25547 | break 2 | |
25548 | fi | |
25549 | done | |
25550 | done | |
25551 | ||
25552 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
25553 | ;; | |
25554 | esac | |
25555 | fi | |
25556 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
25557 | ||
25558 | if test -n "$PKG_CONFIG"; then | |
25559 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
25560 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
25561 | else | |
25562 | echo "$as_me:$LINENO: result: no" >&5 | |
25563 | echo "${ECHO_T}no" >&6 | |
25564 | fi | |
25565 | ||
25566 | fi | |
25567 | ||
25568 | if test "$PKG_CONFIG" = "no" ; then | |
25569 | echo "*** The pkg-config script could not be found. Make sure it is" | |
25570 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
25571 | echo "*** to the full path to pkg-config." | |
25572 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
25573 | else | |
25574 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
25575 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
25576 | echo "$as_me:$LINENO: checking for pangoft2" >&5 | |
25577 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
25578 | ||
25579 | if $PKG_CONFIG --exists "pangoft2" ; then | |
25580 | echo "$as_me:$LINENO: result: yes" >&5 | |
25581 | echo "${ECHO_T}yes" >&6 | |
25582 | succeeded=yes | |
25583 | ||
25584 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 | |
25585 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
25586 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` | |
25587 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 | |
25588 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
25589 | ||
25590 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 | |
25591 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
25592 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` | |
25593 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 | |
25594 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
25595 | else | |
25596 | PANGOFT2_CFLAGS="" | |
25597 | PANGOFT2_LIBS="" | |
25598 | ## If we have a custom action on failure, don't print errors, but | |
25599 | ## do set a variable so people can do so. | |
25600 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
25601 | ||
25602 | fi | |
25603 | ||
25604 | ||
25605 | ||
25606 | else | |
25607 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
25608 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
25609 | fi | |
25610 | fi | |
25611 | ||
25612 | if test $succeeded = yes; then | |
25613 | ||
25614 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" | |
25615 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" | |
25616 | ||
25617 | else | |
25618 | ||
25619 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
25620 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
25621 | wxUSE_PRINTING_ARCHITECTURE="no" | |
25622 | ||
25623 | ||
25624 | fi | |
25625 | ||
25626 | ||
25627 | succeeded=no | |
25628 | ||
25629 | if test -z "$PKG_CONFIG"; then | |
25630 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
25631 | set dummy pkg-config; ac_word=$2 | |
25632 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
25633 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25634 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
25635 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25636 | else | |
25637 | case $PKG_CONFIG in | |
25638 | [\\/]* | ?:[\\/]*) | |
25639 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
25640 | ;; | |
25641 | *) | |
25642 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25643 | for as_dir in $PATH | |
25644 | do | |
25645 | IFS=$as_save_IFS | |
25646 | test -z "$as_dir" && as_dir=. | |
25647 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25648 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25649 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
25650 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25651 | break 2 | |
25652 | fi | |
25653 | done | |
25654 | done | |
25655 | ||
25656 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
25657 | ;; | |
25658 | esac | |
25659 | fi | |
25660 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
25661 | ||
25662 | if test -n "$PKG_CONFIG"; then | |
25663 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
25664 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
25665 | else | |
25666 | echo "$as_me:$LINENO: result: no" >&5 | |
25667 | echo "${ECHO_T}no" >&6 | |
25668 | fi | |
25669 | ||
25670 | fi | |
25671 | ||
25672 | if test "$PKG_CONFIG" = "no" ; then | |
25673 | echo "*** The pkg-config script could not be found. Make sure it is" | |
25674 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
25675 | echo "*** to the full path to pkg-config." | |
25676 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
25677 | else | |
25678 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
25679 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
25680 | echo "$as_me:$LINENO: checking for pangoxft" >&5 | |
25681 | echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6 | |
25682 | ||
25683 | if $PKG_CONFIG --exists "pangoxft" ; then | |
25684 | echo "$as_me:$LINENO: result: yes" >&5 | |
25685 | echo "${ECHO_T}yes" >&6 | |
25686 | succeeded=yes | |
25687 | ||
25688 | echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5 | |
25689 | echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6 | |
25690 | PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"` | |
25691 | echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5 | |
25692 | echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6 | |
25693 | ||
25694 | echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5 | |
25695 | echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6 | |
25696 | PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"` | |
25697 | echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5 | |
25698 | echo "${ECHO_T}$PANGOXFT_LIBS" >&6 | |
25699 | else | |
25700 | PANGOXFT_CFLAGS="" | |
25701 | PANGOXFT_LIBS="" | |
25702 | ## If we have a custom action on failure, don't print errors, but | |
25703 | ## do set a variable so people can do so. | |
25704 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
25705 | ||
25706 | fi | |
25707 | ||
25708 | ||
25709 | ||
25710 | else | |
25711 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
25712 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
25713 | fi | |
25714 | fi | |
25715 | ||
25716 | if test $succeeded = yes; then | |
25717 | ||
25718 | CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS" | |
25719 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS" | |
25720 | ||
25721 | else | |
25722 | ||
25723 | { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5 | |
25724 | echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;} | |
25725 | ||
25726 | ||
25727 | fi | |
25728 | ||
304205f1 VS |
25729 | save_CFLAGS="$CFLAGS" |
25730 | save_LIBS="$LIBS" | |
25731 | CFLAGS="$CFLAGS $PANGOX_CFLAGS" | |
25732 | LIBS="$LIBS $PANGOX_LIBS" | |
25733 | ||
25734 | for ac_func in pango_font_family_is_monospace | |
25735 | do | |
25736 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
25737 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
25738 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
25739 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
25740 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25741 | else | |
25742 | cat >conftest.$ac_ext <<_ACEOF | |
25743 | /* confdefs.h. */ | |
25744 | _ACEOF | |
25745 | cat confdefs.h >>conftest.$ac_ext | |
25746 | cat >>conftest.$ac_ext <<_ACEOF | |
25747 | /* end confdefs.h. */ | |
25748 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
25749 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25750 | #define $ac_func innocuous_$ac_func | |
25751 | ||
25752 | /* System header to define __stub macros and hopefully few prototypes, | |
25753 | which can conflict with char $ac_func (); below. | |
25754 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25755 | <limits.h> exists even on freestanding compilers. */ | |
25756 | ||
25757 | #ifdef __STDC__ | |
25758 | # include <limits.h> | |
25759 | #else | |
25760 | # include <assert.h> | |
25761 | #endif | |
25762 | ||
25763 | #undef $ac_func | |
25764 | ||
25765 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25766 | #ifdef __cplusplus | |
25767 | extern "C" | |
25768 | { | |
25769 | #endif | |
25770 | /* We use char because int might match the return type of a gcc2 | |
25771 | builtin and then its argument prototype would still apply. */ | |
25772 | char $ac_func (); | |
25773 | /* The GNU C library defines this for functions which it implements | |
25774 | to always fail with ENOSYS. Some functions are actually named | |
25775 | something starting with __ and the normal name is an alias. */ | |
25776 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
25777 | choke me | |
25778 | #else | |
25779 | char (*f) () = $ac_func; | |
25780 | #endif | |
25781 | #ifdef __cplusplus | |
25782 | } | |
25783 | #endif | |
25784 | ||
25785 | int | |
25786 | main () | |
25787 | { | |
25788 | return f != $ac_func; | |
25789 | ; | |
25790 | return 0; | |
25791 | } | |
25792 | _ACEOF | |
25793 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25794 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25795 | (eval $ac_link) 2>conftest.er1 | |
25796 | ac_status=$? | |
25797 | grep -v '^ *+' conftest.er1 >conftest.err | |
25798 | rm -f conftest.er1 | |
25799 | cat conftest.err >&5 | |
25800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25801 | (exit $ac_status); } && | |
d51253e8 | 25802 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
304205f1 VS |
25803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25804 | (eval $ac_try) 2>&5 | |
25805 | ac_status=$? | |
25806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25807 | (exit $ac_status); }; } && | |
25808 | { ac_try='test -s conftest$ac_exeext' | |
25809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25810 | (eval $ac_try) 2>&5 | |
25811 | ac_status=$? | |
25812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25813 | (exit $ac_status); }; }; then | |
25814 | eval "$as_ac_var=yes" | |
25815 | else | |
25816 | echo "$as_me: failed program was:" >&5 | |
25817 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25818 | ||
25819 | eval "$as_ac_var=no" | |
25820 | fi | |
25821 | rm -f conftest.err conftest.$ac_objext \ | |
25822 | conftest$ac_exeext conftest.$ac_ext | |
25823 | fi | |
25824 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
25825 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
25826 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
25827 | cat >>confdefs.h <<_ACEOF | |
25828 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
25829 | _ACEOF | |
25830 | ||
25831 | fi | |
25832 | done | |
25833 | ||
25834 | CFLAGS="$save_CFLAGS" | |
25835 | LIBS="$save_LIBS" | |
a848cd7e SC |
25836 | fi |
25837 | ||
25838 | wxUSE_UNIVERSAL="yes" | |
25839 | ||
25840 | if test "$wxUSE_NANOX" = "yes"; then | |
25841 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
25842 | 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" | |
25843 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
25844 | else | |
25845 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11" | |
25846 | fi | |
25847 | ||
a848cd7e SC |
25848 | TOOLKIT=X11 |
25849 | GUIDIST=X11_DIST | |
25850 | fi | |
25851 | ||
25852 | if test "$wxUSE_MOTIF" = 1; then | |
74b84332 VS |
25853 | echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5 |
25854 | echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6 | |
a848cd7e | 25855 | |
74b84332 VS |
25856 | ac_find_includes= |
25857 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
25858 | do | |
25859 | if test -f "$ac_dir/Xm/Xm.h"; then | |
25860 | ac_find_includes=$ac_dir | |
25861 | break | |
25862 | fi | |
25863 | done | |
a848cd7e | 25864 | |
74b84332 VS |
25865 | if test "$ac_find_includes" != "" ; then |
25866 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
25867 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
25868 | ||
25869 | if test "x$ac_find_includes" = "x/usr/include"; then | |
25870 | ac_path_to_include="" | |
25871 | else | |
25872 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
25873 | result=$? | |
25874 | if test $result = 0; then | |
25875 | ac_path_to_include="" | |
25876 | else | |
25877 | ac_path_to_include=" -I$ac_find_includes" | |
25878 | fi | |
a848cd7e SC |
25879 | fi |
25880 | ||
74b84332 VS |
25881 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" |
25882 | else | |
25883 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
25884 | /* confdefs.h. */ |
25885 | _ACEOF | |
25886 | cat confdefs.h >>conftest.$ac_ext | |
25887 | cat >>conftest.$ac_ext <<_ACEOF | |
25888 | /* end confdefs.h. */ | |
25889 | ||
74b84332 VS |
25890 | #include <Xm/Xm.h> |
25891 | ||
a848cd7e SC |
25892 | int |
25893 | main () | |
25894 | { | |
25895 | ||
74b84332 VS |
25896 | int version; |
25897 | version = xmUseVersion; | |
25898 | ||
a848cd7e SC |
25899 | ; |
25900 | return 0; | |
25901 | } | |
25902 | _ACEOF | |
74b84332 VS |
25903 | rm -f conftest.$ac_objext |
25904 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25905 | (eval $ac_compile) 2>conftest.er1 | |
a848cd7e | 25906 | ac_status=$? |
ac1cb8d3 VS |
25907 | grep -v '^ *+' conftest.er1 >conftest.err |
25908 | rm -f conftest.er1 | |
25909 | cat conftest.err >&5 | |
a848cd7e SC |
25910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25911 | (exit $ac_status); } && | |
d51253e8 | 25912 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25914 | (eval $ac_try) 2>&5 | |
25915 | ac_status=$? | |
25916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25917 | (exit $ac_status); }; } && | |
74b84332 | 25918 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
25919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25920 | (eval $ac_try) 2>&5 | |
25921 | ac_status=$? | |
25922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25923 | (exit $ac_status); }; }; then | |
74b84332 VS |
25924 | |
25925 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
25926 | echo "${ECHO_T}found in default search path" >&6 | |
25927 | COMPILED_X_PROGRAM=1 | |
25928 | ||
a848cd7e SC |
25929 | else |
25930 | echo "$as_me: failed program was:" >&5 | |
25931 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25932 | ||
a848cd7e | 25933 | |
74b84332 VS |
25934 | echo "$as_me:$LINENO: result: no" >&5 |
25935 | echo "${ECHO_T}no" >&6 | |
25936 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5 | |
25937 | echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;} | |
25938 | { (exit 1); exit 1; }; } | |
a848cd7e | 25939 | |
a848cd7e | 25940 | |
a848cd7e | 25941 | fi |
74b84332 VS |
25942 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
25943 | fi | |
25944 | ||
25945 | if test "$COMPILED_X_PROGRAM" = 0; then | |
25946 | echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5 | |
25947 | echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6 | |
25948 | ||
25949 | ac_find_libraries= | |
25950 | for ac_dir in $SEARCH_LIB /usr/lib; | |
25951 | do | |
25952 | for ac_extension in a so sl dylib; do | |
25953 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
25954 | ac_find_libraries=$ac_dir | |
25955 | break 2 | |
a848cd7e | 25956 | fi |
74b84332 VS |
25957 | done |
25958 | done | |
a848cd7e | 25959 | |
74b84332 VS |
25960 | if test "$ac_find_libraries" != "" ; then |
25961 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
25962 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
a848cd7e | 25963 | |
74b84332 VS |
25964 | |
25965 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
25966 | result=$? | |
25967 | if test $result = 0; then | |
25968 | ac_path_to_link="" | |
a848cd7e | 25969 | else |
74b84332 VS |
25970 | ac_path_to_link=" -L$ac_find_libraries" |
25971 | fi | |
25972 | ||
25973 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
25974 | else | |
25975 | save_CFLAGS=$CFLAGS | |
25976 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
25977 | ||
25978 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
25979 | /* confdefs.h. */ |
25980 | _ACEOF | |
25981 | cat confdefs.h >>conftest.$ac_ext | |
25982 | cat >>conftest.$ac_ext <<_ACEOF | |
25983 | /* end confdefs.h. */ | |
25984 | ||
74b84332 VS |
25985 | #include <Xm/Xm.h> |
25986 | ||
a848cd7e SC |
25987 | int |
25988 | main () | |
25989 | { | |
74b84332 VS |
25990 | |
25991 | int version; | |
25992 | version = xmUseVersion; | |
25993 | ||
a848cd7e SC |
25994 | ; |
25995 | return 0; | |
25996 | } | |
25997 | _ACEOF | |
74b84332 VS |
25998 | rm -f conftest.$ac_objext |
25999 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26000 | (eval $ac_compile) 2>conftest.er1 | |
a848cd7e | 26001 | ac_status=$? |
ac1cb8d3 VS |
26002 | grep -v '^ *+' conftest.er1 >conftest.err |
26003 | rm -f conftest.er1 | |
26004 | cat conftest.err >&5 | |
a848cd7e SC |
26005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26006 | (exit $ac_status); } && | |
d51253e8 | 26007 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26009 | (eval $ac_try) 2>&5 | |
26010 | ac_status=$? | |
26011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26012 | (exit $ac_status); }; } && | |
74b84332 | 26013 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
26014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26015 | (eval $ac_try) 2>&5 | |
26016 | ac_status=$? | |
26017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26018 | (exit $ac_status); }; }; then | |
74b84332 VS |
26019 | |
26020 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
26021 | echo "${ECHO_T}found in default search path" >&6 | |
26022 | COMPILED_X_PROGRAM=1 | |
26023 | ||
a848cd7e SC |
26024 | else |
26025 | echo "$as_me: failed program was:" >&5 | |
26026 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26027 | ||
74b84332 VS |
26028 | |
26029 | echo "$as_me:$LINENO: result: no" >&5 | |
26030 | echo "${ECHO_T}no" >&6 | |
26031 | { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5 | |
26032 | echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;} | |
26033 | { (exit 1); exit 1; }; } | |
26034 | ||
26035 | ||
26036 | fi | |
26037 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
26038 | ||
26039 | CFLAGS=$save_CFLAGS | |
26040 | fi | |
26041 | fi | |
26042 | ||
26043 | echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5 | |
26044 | echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6 | |
26045 | libp_link="" | |
26046 | libsm_ice_link="" | |
26047 | libs_found=0 | |
26048 | for libp in "" " -lXp"; do | |
26049 | if test "$libs_found" = "0"; then | |
26050 | for libsm_ice in "" " -lSM -lICE"; do | |
26051 | if test "$libs_found" = "0"; then | |
26052 | save_LIBS="$LIBS" | |
26053 | LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
26054 | save_CFLAGS=$CFLAGS | |
26055 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
26056 | ||
26057 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
26058 | /* confdefs.h. */ |
26059 | _ACEOF | |
26060 | cat confdefs.h >>conftest.$ac_ext | |
26061 | cat >>conftest.$ac_ext <<_ACEOF | |
26062 | /* end confdefs.h. */ | |
26063 | ||
74b84332 VS |
26064 | #include <Xm/Xm.h> |
26065 | #include <Xm/List.h> | |
26066 | ||
a848cd7e SC |
26067 | int |
26068 | main () | |
26069 | { | |
74b84332 VS |
26070 | |
26071 | XmString string = NULL; | |
26072 | Widget w = NULL; | |
26073 | int position = 0; | |
26074 | XmListAddItem(w, string, position); | |
26075 | ||
a848cd7e SC |
26076 | ; |
26077 | return 0; | |
26078 | } | |
26079 | _ACEOF | |
26080 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26081 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26082 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26083 | ac_status=$? |
ac1cb8d3 VS |
26084 | grep -v '^ *+' conftest.er1 >conftest.err |
26085 | rm -f conftest.er1 | |
26086 | cat conftest.err >&5 | |
a848cd7e SC |
26087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26088 | (exit $ac_status); } && | |
d51253e8 | 26089 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26091 | (eval $ac_try) 2>&5 | |
26092 | ac_status=$? | |
26093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26094 | (exit $ac_status); }; } && | |
26095 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26096 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26097 | (eval $ac_try) 2>&5 | |
26098 | ac_status=$? | |
26099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26100 | (exit $ac_status); }; }; then | |
26101 | ||
26102 | libp_link="$libp" | |
26103 | libsm_ice_link="$libsm_ice" | |
26104 | echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5 | |
26105 | echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6 | |
26106 | libs_found=1 | |
26107 | ||
26108 | else | |
26109 | echo "$as_me: failed program was:" >&5 | |
26110 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26111 | ||
26112 | ||
26113 | ||
26114 | fi | |
ac1cb8d3 VS |
26115 | rm -f conftest.err conftest.$ac_objext \ |
26116 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26117 | |
26118 | LIBS="$save_LIBS" | |
26119 | CFLAGS=$save_CFLAGS | |
26120 | fi | |
26121 | done | |
26122 | fi | |
26123 | done | |
26124 | ||
26125 | if test "$libs_found" = "0"; then | |
26126 | echo "$as_me:$LINENO: result: can't find the right libraries" >&5 | |
26127 | echo "${ECHO_T}can't find the right libraries" >&6 | |
26128 | { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5 | |
26129 | echo "$as_me: error: can't link a simple motif program" >&2;} | |
26130 | { (exit 1); exit 1; }; } | |
26131 | fi | |
26132 | ||
26133 | save_CFLAGS=$CFLAGS | |
26134 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
26135 | echo "$as_me:$LINENO: checking for Motif 2" >&5 | |
26136 | echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6 | |
26137 | cat >conftest.$ac_ext <<_ACEOF | |
26138 | /* confdefs.h. */ | |
26139 | _ACEOF | |
26140 | cat confdefs.h >>conftest.$ac_ext | |
26141 | cat >>conftest.$ac_ext <<_ACEOF | |
26142 | /* end confdefs.h. */ | |
26143 | ||
26144 | #include <Xm/Xm.h> | |
26145 | ||
26146 | int | |
26147 | main () | |
26148 | { | |
26149 | ||
26150 | #if XmVersion < 2000 | |
26151 | #error "Not Motif 2" | |
26152 | #endif | |
26153 | ||
26154 | ; | |
26155 | return 0; | |
26156 | } | |
26157 | _ACEOF | |
26158 | rm -f conftest.$ac_objext | |
26159 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26160 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26161 | ac_status=$? |
ac1cb8d3 VS |
26162 | grep -v '^ *+' conftest.er1 >conftest.err |
26163 | rm -f conftest.er1 | |
26164 | cat conftest.err >&5 | |
a848cd7e SC |
26165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26166 | (exit $ac_status); } && | |
d51253e8 | 26167 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26169 | (eval $ac_try) 2>&5 | |
26170 | ac_status=$? | |
26171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26172 | (exit $ac_status); }; } && | |
26173 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26175 | (eval $ac_try) 2>&5 | |
26176 | ac_status=$? | |
26177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26178 | (exit $ac_status); }; }; then | |
26179 | ||
26180 | cat >>confdefs.h <<\_ACEOF | |
26181 | #define __WXMOTIF20__ 1 | |
26182 | _ACEOF | |
26183 | ||
26184 | echo "$as_me:$LINENO: result: found" >&5 | |
26185 | echo "${ECHO_T}found" >&6 | |
26186 | ||
26187 | else | |
26188 | echo "$as_me: failed program was:" >&5 | |
26189 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26190 | ||
26191 | ||
26192 | cat >>confdefs.h <<\_ACEOF | |
26193 | #define __WXMOTIF20__ 0 | |
26194 | _ACEOF | |
26195 | ||
26196 | echo "$as_me:$LINENO: result: not found" >&5 | |
26197 | echo "${ECHO_T}not found" >&6 | |
26198 | ||
26199 | fi | |
ac1cb8d3 | 26200 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26201 | CFLAGS=$save_CFLAGS |
26202 | ||
26203 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" | |
a848cd7e SC |
26204 | TOOLKIT=MOTIF |
26205 | GUIDIST=MOTIF_DIST | |
26206 | fi | |
26207 | ||
74b84332 | 26208 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
a848cd7e SC |
26209 | if test "$wxUSE_LIBXPM" = "sys"; then |
26210 | echo "$as_me:$LINENO: checking for Xpm library" >&5 | |
26211 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
26212 | ||
26213 | ac_find_libraries= | |
26214 | for ac_dir in $SEARCH_LIB /usr/lib; | |
26215 | do | |
26216 | for ac_extension in a so sl dylib; do | |
26217 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
26218 | ac_find_libraries=$ac_dir | |
26219 | break 2 | |
26220 | fi | |
26221 | done | |
26222 | done | |
26223 | ||
26224 | if test "$ac_find_libraries" != "" ; then | |
26225 | ||
26226 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
26227 | result=$? | |
26228 | if test $result = 0; then | |
26229 | ac_path_to_link="" | |
26230 | else | |
26231 | ac_path_to_link=" -L$ac_find_libraries" | |
26232 | fi | |
26233 | ||
26234 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
26235 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
26236 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
26237 | ||
26238 | echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
26239 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 | |
26240 | if test "${wx_cv_x11_xpm_h+set}" = set; then | |
26241 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26242 | else | |
26243 | ||
26244 | save_CFLAGS=$CFLAGS | |
26245 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
26246 | ||
26247 | cat >conftest.$ac_ext <<_ACEOF | |
26248 | /* confdefs.h. */ | |
26249 | _ACEOF | |
26250 | cat confdefs.h >>conftest.$ac_ext | |
26251 | cat >>conftest.$ac_ext <<_ACEOF | |
26252 | /* end confdefs.h. */ | |
26253 | ||
26254 | #include <X11/xpm.h> | |
26255 | ||
26256 | int | |
26257 | main () | |
26258 | { | |
26259 | ||
26260 | int version; | |
26261 | version = XpmLibraryVersion(); | |
26262 | ||
26263 | ; | |
26264 | return 0; | |
26265 | } | |
26266 | _ACEOF | |
26267 | rm -f conftest.$ac_objext | |
26268 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26269 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26270 | ac_status=$? |
ac1cb8d3 VS |
26271 | grep -v '^ *+' conftest.er1 >conftest.err |
26272 | rm -f conftest.er1 | |
26273 | cat conftest.err >&5 | |
a848cd7e SC |
26274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26275 | (exit $ac_status); } && | |
d51253e8 | 26276 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26278 | (eval $ac_try) 2>&5 | |
26279 | ac_status=$? | |
26280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26281 | (exit $ac_status); }; } && | |
26282 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26284 | (eval $ac_try) 2>&5 | |
26285 | ac_status=$? | |
26286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26287 | (exit $ac_status); }; }; then | |
26288 | wx_cv_x11_xpm_h=yes | |
26289 | else | |
26290 | echo "$as_me: failed program was:" >&5 | |
26291 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26292 | ||
26293 | wx_cv_x11_xpm_h=no | |
26294 | ||
26295 | fi | |
ac1cb8d3 | 26296 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26297 | |
26298 | CFLAGS=$save_CFLAGS | |
26299 | ||
26300 | ||
26301 | fi | |
26302 | echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5 | |
26303 | echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6 | |
26304 | ||
26305 | if test $wx_cv_x11_xpm_h = "yes"; then | |
26306 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm" | |
26307 | cat >>confdefs.h <<\_ACEOF | |
26308 | #define wxHAVE_LIB_XPM 1 | |
26309 | _ACEOF | |
26310 | ||
26311 | else | |
26312 | { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5 | |
26313 | echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;} | |
26314 | fi | |
26315 | fi | |
26316 | ||
26317 | fi | |
26318 | ||
26319 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 | |
26320 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 | |
26321 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
26322 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26323 | else | |
26324 | ac_check_lib_save_LIBS=$LIBS | |
26325 | LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS" | |
26326 | cat >conftest.$ac_ext <<_ACEOF | |
26327 | /* confdefs.h. */ | |
26328 | _ACEOF | |
26329 | cat confdefs.h >>conftest.$ac_ext | |
26330 | cat >>conftest.$ac_ext <<_ACEOF | |
26331 | /* end confdefs.h. */ | |
26332 | ||
26333 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26334 | #ifdef __cplusplus | |
26335 | extern "C" | |
26336 | #endif | |
26337 | /* We use char because int might match the return type of a gcc2 | |
26338 | builtin and then its argument prototype would still apply. */ | |
26339 | char XShapeQueryExtension (); | |
26340 | int | |
26341 | main () | |
26342 | { | |
26343 | XShapeQueryExtension (); | |
26344 | ; | |
26345 | return 0; | |
26346 | } | |
26347 | _ACEOF | |
26348 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26349 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26350 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26351 | ac_status=$? |
ac1cb8d3 VS |
26352 | grep -v '^ *+' conftest.er1 >conftest.err |
26353 | rm -f conftest.er1 | |
26354 | cat conftest.err >&5 | |
a848cd7e SC |
26355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26356 | (exit $ac_status); } && | |
d51253e8 | 26357 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26359 | (eval $ac_try) 2>&5 | |
26360 | ac_status=$? | |
26361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26362 | (exit $ac_status); }; } && | |
26363 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26365 | (eval $ac_try) 2>&5 | |
26366 | ac_status=$? | |
26367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26368 | (exit $ac_status); }; }; then | |
26369 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
26370 | else | |
26371 | echo "$as_me: failed program was:" >&5 | |
26372 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26373 | ||
26374 | ac_cv_lib_Xext_XShapeQueryExtension=no | |
26375 | fi | |
ac1cb8d3 VS |
26376 | rm -f conftest.err conftest.$ac_objext \ |
26377 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26378 | LIBS=$ac_check_lib_save_LIBS |
26379 | fi | |
26380 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 | |
26381 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 | |
26382 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
26383 | ||
26384 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext" | |
26385 | wxHAVE_XEXT_LIB=1 | |
26386 | ||
26387 | fi | |
26388 | ||
26389 | ||
26390 | if test "$wxHAVE_XEXT_LIB" = 1; then | |
26391 | save_CFLAGS="$CFLAGS" | |
26392 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
26393 | ||
26394 | echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5 | |
26395 | echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6 | |
26396 | cat >conftest.$ac_ext <<_ACEOF | |
26397 | /* confdefs.h. */ | |
26398 | _ACEOF | |
26399 | cat confdefs.h >>conftest.$ac_ext | |
26400 | cat >>conftest.$ac_ext <<_ACEOF | |
26401 | /* end confdefs.h. */ | |
26402 | ||
26403 | #include <X11/Xlib.h> | |
26404 | #include <X11/extensions/shape.h> | |
26405 | ||
26406 | int | |
26407 | main () | |
26408 | { | |
26409 | ||
26410 | int dummy1, dummy2; | |
26411 | XShapeQueryExtension((Display*)NULL, | |
26412 | (int*)NULL, (int*)NULL); | |
26413 | ||
26414 | ; | |
26415 | return 0; | |
26416 | } | |
26417 | _ACEOF | |
26418 | rm -f conftest.$ac_objext | |
26419 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26420 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26421 | ac_status=$? |
ac1cb8d3 VS |
26422 | grep -v '^ *+' conftest.er1 >conftest.err |
26423 | rm -f conftest.er1 | |
26424 | cat conftest.err >&5 | |
a848cd7e SC |
26425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26426 | (exit $ac_status); } && | |
d51253e8 | 26427 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26429 | (eval $ac_try) 2>&5 | |
26430 | ac_status=$? | |
26431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26432 | (exit $ac_status); }; } && | |
26433 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26435 | (eval $ac_try) 2>&5 | |
26436 | ac_status=$? | |
26437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26438 | (exit $ac_status); }; }; then | |
26439 | ||
26440 | cat >>confdefs.h <<\_ACEOF | |
26441 | #define HAVE_XSHAPE 1 | |
26442 | _ACEOF | |
26443 | ||
26444 | echo "$as_me:$LINENO: result: found" >&5 | |
26445 | echo "${ECHO_T}found" >&6 | |
26446 | ||
26447 | else | |
26448 | echo "$as_me: failed program was:" >&5 | |
26449 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26450 | ||
26451 | ||
26452 | echo "$as_me:$LINENO: result: not found" >&5 | |
26453 | echo "${ECHO_T}not found" >&6 | |
26454 | ||
26455 | fi | |
ac1cb8d3 | 26456 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26457 | CFLAGS="$save_CFLAGS" |
26458 | ||
26459 | fi | |
26460 | fi | |
26461 | ||
26462 | if test "$wxUSE_MAC" = 1; then | |
26463 | echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5 | |
26464 | echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6 | |
26465 | if test "$GCC" = yes; then | |
26466 | echo "$as_me:$LINENO: result: gcc" >&5 | |
26467 | echo "${ECHO_T}gcc" >&6 | |
26468 | CPPFLAGS_PASCAL="-fpascal-strings" | |
26469 | elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then | |
26470 | echo "$as_me:$LINENO: result: xlc" >&5 | |
26471 | echo "${ECHO_T}xlc" >&6 | |
26472 | CPPFLAGS_PASCAL="-qmacpstr" | |
26473 | else | |
26474 | echo "$as_me:$LINENO: result: none" >&5 | |
26475 | echo "${ECHO_T}none" >&6 | |
26476 | fi | |
26477 | ||
26478 | CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon" | |
26479 | ||
a848cd7e SC |
26480 | TOOLKIT=MAC |
26481 | GUIDIST=MACX_DIST | |
dd21ced8 | 26482 | WXBASEPORT="_carbon" |
a848cd7e SC |
26483 | fi |
26484 | ||
26485 | if test "$wxUSE_COCOA" = 1; then | |
a848cd7e SC |
26486 | TOOLKIT=COCOA |
26487 | GUIDIST=COCOA_DIST | |
26488 | fi | |
26489 | ||
26490 | if test "$wxUSE_PM" = 1; then | |
26491 | TOOLKIT=PM | |
de59c161 RD |
26492 | GUIDIST=PM_DIST |
26493 | echo "$as_me:$LINENO: checking for type SPBCDATA" >&5 | |
26494 | echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6 | |
26495 | if test "${wx_cv_spbcdata+set}" = set; then | |
26496 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26497 | else | |
26498 | ||
26499 | cat >conftest.$ac_ext <<_ACEOF | |
de59c161 RD |
26500 | /* confdefs.h. */ |
26501 | _ACEOF | |
26502 | cat confdefs.h >>conftest.$ac_ext | |
26503 | cat >>conftest.$ac_ext <<_ACEOF | |
26504 | /* end confdefs.h. */ | |
26505 | ||
26506 | #define INCL_PM | |
26507 | #include <os2.h> | |
26508 | ||
26509 | int | |
26510 | main () | |
26511 | { | |
26512 | ||
26513 | SPBCDATA test; | |
26514 | ||
26515 | ; | |
26516 | return 0; | |
26517 | } | |
26518 | _ACEOF | |
26519 | rm -f conftest.$ac_objext | |
26520 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26521 | (eval $ac_compile) 2>conftest.er1 |
de59c161 | 26522 | ac_status=$? |
ac1cb8d3 VS |
26523 | grep -v '^ *+' conftest.er1 >conftest.err |
26524 | rm -f conftest.er1 | |
26525 | cat conftest.err >&5 | |
de59c161 RD |
26526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26527 | (exit $ac_status); } && | |
d51253e8 | 26528 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26530 | (eval $ac_try) 2>&5 | |
26531 | ac_status=$? | |
26532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26533 | (exit $ac_status); }; } && | |
26534 | { ac_try='test -s conftest.$ac_objext' | |
de59c161 RD |
26535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26536 | (eval $ac_try) 2>&5 | |
26537 | ac_status=$? | |
26538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26539 | (exit $ac_status); }; }; then | |
26540 | wx_cv_spbcdata=yes | |
26541 | else | |
26542 | echo "$as_me: failed program was:" >&5 | |
26543 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26544 | ||
26545 | wx_cv_spbcdata=no | |
26546 | ||
26547 | fi | |
ac1cb8d3 | 26548 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
de59c161 RD |
26549 | |
26550 | ||
26551 | fi | |
26552 | echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5 | |
26553 | echo "${ECHO_T}$wx_cv_spbcdata" >&6 | |
26554 | ||
26555 | if test $wx_cv_spbcdata = "yes"; then | |
26556 | cat >>confdefs.h <<\_ACEOF | |
26557 | #define HAVE_SPBCDATA 1 | |
26558 | _ACEOF | |
26559 | ||
26560 | fi | |
a848cd7e SC |
26561 | fi |
26562 | ||
26563 | if test "$TOOLKIT" = "PM" ; then | |
26564 | TOOLKIT_DIR="os2" | |
26565 | else | |
26566 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
26567 | fi | |
26568 | ||
a848cd7e | 26569 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
a848cd7e SC |
26570 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" |
26571 | WIDGET_SET=univ | |
a848cd7e SC |
26572 | fi |
26573 | ||
26574 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
26575 | DISTDIR="wx\$(TOOLKIT)" | |
26576 | else | |
26577 | USE_GUI=0 | |
26578 | ||
26579 | TOOLKIT_DIR="base" | |
26580 | ||
26581 | if test "$USE_WIN32" = 1 ; then | |
a848cd7e | 26582 | TOOLKIT="MSW" |
a848cd7e SC |
26583 | fi |
26584 | ||
a848cd7e SC |
26585 | GUIDIST="BASE_DIST" |
26586 | DISTDIR="wxBase" | |
26587 | fi | |
26588 | ||
26589 | ||
26590 | ||
26591 | ||
26592 | IODBC_C_SRC="" | |
26593 | ||
26594 | ||
26595 | if test "$TOOLKIT" != "MSW" ; then | |
26596 | ||
26597 | if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then | |
26598 | ||
26599 | if test "${ac_cv_header_sql_h+set}" = set; then | |
26600 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
26601 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
26602 | if test "${ac_cv_header_sql_h+set}" = set; then | |
26603 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26604 | fi | |
26605 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
26606 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
26607 | else | |
26608 | # Is the header compilable? | |
26609 | echo "$as_me:$LINENO: checking sql.h usability" >&5 | |
26610 | echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6 | |
26611 | cat >conftest.$ac_ext <<_ACEOF | |
26612 | /* confdefs.h. */ | |
26613 | _ACEOF | |
26614 | cat confdefs.h >>conftest.$ac_ext | |
26615 | cat >>conftest.$ac_ext <<_ACEOF | |
26616 | /* end confdefs.h. */ | |
26617 | $ac_includes_default | |
26618 | #include <sql.h> | |
26619 | _ACEOF | |
26620 | rm -f conftest.$ac_objext | |
26621 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26622 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26623 | ac_status=$? |
ac1cb8d3 VS |
26624 | grep -v '^ *+' conftest.er1 >conftest.err |
26625 | rm -f conftest.er1 | |
26626 | cat conftest.err >&5 | |
a848cd7e SC |
26627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26628 | (exit $ac_status); } && | |
d51253e8 | 26629 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26631 | (eval $ac_try) 2>&5 | |
26632 | ac_status=$? | |
26633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26634 | (exit $ac_status); }; } && | |
26635 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26637 | (eval $ac_try) 2>&5 | |
26638 | ac_status=$? | |
26639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26640 | (exit $ac_status); }; }; then | |
26641 | ac_header_compiler=yes | |
26642 | else | |
26643 | echo "$as_me: failed program was:" >&5 | |
26644 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26645 | ||
26646 | ac_header_compiler=no | |
26647 | fi | |
ac1cb8d3 | 26648 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26649 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
26650 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
26651 | ||
26652 | # Is the header present? | |
26653 | echo "$as_me:$LINENO: checking sql.h presence" >&5 | |
26654 | echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6 | |
26655 | cat >conftest.$ac_ext <<_ACEOF | |
26656 | /* confdefs.h. */ | |
26657 | _ACEOF | |
26658 | cat confdefs.h >>conftest.$ac_ext | |
26659 | cat >>conftest.$ac_ext <<_ACEOF | |
26660 | /* end confdefs.h. */ | |
26661 | #include <sql.h> | |
26662 | _ACEOF | |
26663 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
26664 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
26665 | ac_status=$? | |
26666 | grep -v '^ *+' conftest.er1 >conftest.err | |
26667 | rm -f conftest.er1 | |
26668 | cat conftest.err >&5 | |
26669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26670 | (exit $ac_status); } >/dev/null; then | |
26671 | if test -s conftest.err; then | |
26672 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 26673 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
26674 | else |
26675 | ac_cpp_err= | |
26676 | fi | |
26677 | else | |
26678 | ac_cpp_err=yes | |
26679 | fi | |
26680 | if test -z "$ac_cpp_err"; then | |
26681 | ac_header_preproc=yes | |
26682 | else | |
26683 | echo "$as_me: failed program was:" >&5 | |
26684 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26685 | ||
26686 | ac_header_preproc=no | |
26687 | fi | |
26688 | rm -f conftest.err conftest.$ac_ext | |
26689 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
26690 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
26691 | ||
26692 | # So? What about this header? | |
ac1cb8d3 VS |
26693 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
26694 | yes:no: ) | |
a848cd7e SC |
26695 | { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
26696 | echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
26697 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5 |
26698 | echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;} | |
26699 | ac_header_preproc=yes | |
a848cd7e | 26700 | ;; |
ac1cb8d3 | 26701 | no:yes:* ) |
a848cd7e SC |
26702 | { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5 |
26703 | echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
26704 | { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5 |
26705 | echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;} | |
26706 | { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5 | |
26707 | echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;} | |
26708 | { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5 | |
26709 | echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
26710 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 |
26711 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
26712 | { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5 |
26713 | echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
26714 | ( |
26715 | cat <<\_ASBOX | |
ac1cb8d3 VS |
26716 | ## ----------------------------------------- ## |
26717 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
26718 | ## ----------------------------------------- ## | |
a848cd7e SC |
26719 | _ASBOX |
26720 | ) | | |
26721 | sed "s/^/$as_me: WARNING: /" >&2 | |
26722 | ;; | |
26723 | esac | |
26724 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
26725 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
26726 | if test "${ac_cv_header_sql_h+set}" = set; then | |
26727 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26728 | else | |
26729 | ac_cv_header_sql_h=$ac_header_preproc | |
26730 | fi | |
26731 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
26732 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
26733 | ||
26734 | fi | |
26735 | if test $ac_cv_header_sql_h = yes; then | |
26736 | found_sql_h=1 | |
26737 | fi | |
26738 | ||
26739 | ||
26740 | if test "x$found_sql_h" = "x1" ; then | |
26741 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5 | |
26742 | echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6 | |
26743 | if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then | |
26744 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26745 | else | |
26746 | ac_check_lib_save_LIBS=$LIBS | |
26747 | LIBS="-liodbc $LIBS" | |
26748 | cat >conftest.$ac_ext <<_ACEOF | |
26749 | /* confdefs.h. */ | |
26750 | _ACEOF | |
26751 | cat confdefs.h >>conftest.$ac_ext | |
26752 | cat >>conftest.$ac_ext <<_ACEOF | |
26753 | /* end confdefs.h. */ | |
26754 | ||
26755 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26756 | #ifdef __cplusplus | |
26757 | extern "C" | |
26758 | #endif | |
26759 | /* We use char because int might match the return type of a gcc2 | |
26760 | builtin and then its argument prototype would still apply. */ | |
26761 | char SQLAllocEnv (); | |
26762 | int | |
26763 | main () | |
26764 | { | |
26765 | SQLAllocEnv (); | |
26766 | ; | |
26767 | return 0; | |
26768 | } | |
26769 | _ACEOF | |
26770 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26771 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26772 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26773 | ac_status=$? |
ac1cb8d3 VS |
26774 | grep -v '^ *+' conftest.er1 >conftest.err |
26775 | rm -f conftest.er1 | |
26776 | cat conftest.err >&5 | |
a848cd7e SC |
26777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26778 | (exit $ac_status); } && | |
d51253e8 | 26779 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26781 | (eval $ac_try) 2>&5 | |
26782 | ac_status=$? | |
26783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26784 | (exit $ac_status); }; } && | |
26785 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26787 | (eval $ac_try) 2>&5 | |
26788 | ac_status=$? | |
26789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26790 | (exit $ac_status); }; }; then | |
26791 | ac_cv_lib_iodbc_SQLAllocEnv=yes | |
26792 | else | |
26793 | echo "$as_me: failed program was:" >&5 | |
26794 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26795 | ||
26796 | ac_cv_lib_iodbc_SQLAllocEnv=no | |
26797 | fi | |
ac1cb8d3 VS |
26798 | rm -f conftest.err conftest.$ac_objext \ |
26799 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26800 | LIBS=$ac_check_lib_save_LIBS |
26801 | fi | |
26802 | echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5 | |
26803 | echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6 | |
26804 | if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then | |
26805 | ODBC_LINK=" -liodbc" | |
26806 | else | |
26807 | ||
26808 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5 | |
26809 | echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6 | |
26810 | if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then | |
26811 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26812 | else | |
26813 | ac_check_lib_save_LIBS=$LIBS | |
26814 | LIBS="-lunixodbc $LIBS" | |
26815 | cat >conftest.$ac_ext <<_ACEOF | |
26816 | /* confdefs.h. */ | |
26817 | _ACEOF | |
26818 | cat confdefs.h >>conftest.$ac_ext | |
26819 | cat >>conftest.$ac_ext <<_ACEOF | |
26820 | /* end confdefs.h. */ | |
26821 | ||
26822 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26823 | #ifdef __cplusplus | |
26824 | extern "C" | |
26825 | #endif | |
26826 | /* We use char because int might match the return type of a gcc2 | |
26827 | builtin and then its argument prototype would still apply. */ | |
26828 | char SQLAllocEnv (); | |
26829 | int | |
26830 | main () | |
26831 | { | |
26832 | SQLAllocEnv (); | |
26833 | ; | |
26834 | return 0; | |
26835 | } | |
26836 | _ACEOF | |
26837 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26838 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26839 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26840 | ac_status=$? |
ac1cb8d3 VS |
26841 | grep -v '^ *+' conftest.er1 >conftest.err |
26842 | rm -f conftest.er1 | |
26843 | cat conftest.err >&5 | |
a848cd7e SC |
26844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26845 | (exit $ac_status); } && | |
d51253e8 | 26846 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26848 | (eval $ac_try) 2>&5 | |
26849 | ac_status=$? | |
26850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26851 | (exit $ac_status); }; } && | |
26852 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26854 | (eval $ac_try) 2>&5 | |
26855 | ac_status=$? | |
26856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26857 | (exit $ac_status); }; }; then | |
26858 | ac_cv_lib_unixodbc_SQLAllocEnv=yes | |
26859 | else | |
26860 | echo "$as_me: failed program was:" >&5 | |
26861 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26862 | ||
26863 | ac_cv_lib_unixodbc_SQLAllocEnv=no | |
26864 | fi | |
ac1cb8d3 VS |
26865 | rm -f conftest.err conftest.$ac_objext \ |
26866 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26867 | LIBS=$ac_check_lib_save_LIBS |
26868 | fi | |
26869 | echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5 | |
26870 | echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6 | |
26871 | if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then | |
26872 | ODBC_LINK=" -lunixodbc" | |
26873 | else | |
26874 | ||
26875 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5 | |
26876 | echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6 | |
26877 | if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then | |
26878 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26879 | else | |
26880 | ac_check_lib_save_LIBS=$LIBS | |
26881 | LIBS="-lodbc $LIBS" | |
26882 | cat >conftest.$ac_ext <<_ACEOF | |
26883 | /* confdefs.h. */ | |
26884 | _ACEOF | |
26885 | cat confdefs.h >>conftest.$ac_ext | |
26886 | cat >>conftest.$ac_ext <<_ACEOF | |
26887 | /* end confdefs.h. */ | |
26888 | ||
26889 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26890 | #ifdef __cplusplus | |
26891 | extern "C" | |
26892 | #endif | |
26893 | /* We use char because int might match the return type of a gcc2 | |
26894 | builtin and then its argument prototype would still apply. */ | |
26895 | char SQLAllocEnv (); | |
26896 | int | |
26897 | main () | |
26898 | { | |
26899 | SQLAllocEnv (); | |
26900 | ; | |
26901 | return 0; | |
26902 | } | |
26903 | _ACEOF | |
26904 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26905 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26906 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26907 | ac_status=$? |
ac1cb8d3 VS |
26908 | grep -v '^ *+' conftest.er1 >conftest.err |
26909 | rm -f conftest.er1 | |
26910 | cat conftest.err >&5 | |
a848cd7e SC |
26911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26912 | (exit $ac_status); } && | |
d51253e8 | 26913 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26915 | (eval $ac_try) 2>&5 | |
26916 | ac_status=$? | |
26917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26918 | (exit $ac_status); }; } && | |
26919 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26921 | (eval $ac_try) 2>&5 | |
26922 | ac_status=$? | |
26923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26924 | (exit $ac_status); }; }; then | |
26925 | ac_cv_lib_odbc_SQLAllocEnv=yes | |
26926 | else | |
26927 | echo "$as_me: failed program was:" >&5 | |
26928 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26929 | ||
26930 | ac_cv_lib_odbc_SQLAllocEnv=no | |
26931 | fi | |
ac1cb8d3 VS |
26932 | rm -f conftest.err conftest.$ac_objext \ |
26933 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26934 | LIBS=$ac_check_lib_save_LIBS |
26935 | fi | |
26936 | echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5 | |
26937 | echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6 | |
26938 | if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then | |
26939 | ODBC_LINK=" -lodbc" | |
26940 | fi | |
26941 | ||
26942 | ||
26943 | fi | |
26944 | ||
26945 | ||
26946 | fi | |
26947 | ||
26948 | fi | |
26949 | if test "x$ODBC_LINK" = "x" ; then | |
26950 | if test "$wxUSE_ODBC" = "sys" ; then | |
26951 | { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5 | |
26952 | echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;} | |
26953 | { (exit 1); exit 1; }; } | |
26954 | else | |
26955 | { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5 | |
26956 | echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;} | |
26957 | wxUSE_ODBC=builtin | |
26958 | fi | |
26959 | else | |
26960 | wxUSE_ODBC=sys | |
26961 | fi | |
26962 | fi | |
26963 | if test "$wxUSE_ODBC" != "no" ; then | |
26964 | cat >>confdefs.h <<\_ACEOF | |
26965 | #define wxUSE_ODBC 1 | |
26966 | _ACEOF | |
26967 | ||
26968 | if test "$wxUSE_ODBC" = "builtin" ; then | |
26969 | cat >>confdefs.h <<\_ACEOF | |
26970 | #define wxUSE_BUILTIN_IODBC 1 | |
26971 | _ACEOF | |
26972 | ||
26973 | fi | |
26974 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
26975 | ||
26976 | WXODBCFLAG="-D_IODBC_" | |
26977 | fi | |
26978 | fi | |
26979 | ||
a848cd7e | 26980 | |
01cb68df | 26981 | |
a848cd7e | 26982 | if test "$wxUSE_DISPLAY" = "yes"; then |
2a5d7a98 | 26983 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then |
a848cd7e SC |
26984 | echo "$as_me:$LINENO: checking for Xinerama" >&5 |
26985 | echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6 | |
26986 | ||
26987 | ac_find_libraries= | |
26988 | for ac_dir in $SEARCH_LIB /usr/lib; | |
26989 | do | |
26990 | for ac_extension in a so sl dylib; do | |
26991 | if test -f "$ac_dir/libXinerama.$ac_extension"; then | |
26992 | ac_find_libraries=$ac_dir | |
26993 | break 2 | |
26994 | fi | |
26995 | done | |
26996 | done | |
26997 | ||
26998 | if test "$ac_find_libraries" != "" ; then | |
26999 | ||
27000 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
27001 | result=$? | |
27002 | if test $result = 0; then | |
27003 | ac_path_to_link="" | |
27004 | else | |
27005 | ac_path_to_link=" -L$ac_find_libraries" | |
27006 | fi | |
27007 | ||
27008 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
27009 | LDFLAGS="$LDFLAGS $ac_path_to_link" | |
27010 | fi | |
27011 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama" | |
27012 | echo "$as_me:$LINENO: result: yes" >&5 | |
27013 | echo "${ECHO_T}yes" >&6 | |
27014 | ||
27015 | echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5 | |
27016 | echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6 | |
27017 | ||
27018 | ac_find_libraries= | |
27019 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27020 | do | |
27021 | for ac_extension in a so sl dylib; do | |
27022 | if test -f "$ac_dir/libXxf86vm.$ac_extension"; then | |
27023 | ac_find_libraries=$ac_dir | |
27024 | break 2 | |
27025 | fi | |
27026 | done | |
27027 | done | |
27028 | ||
27029 | if test "$ac_find_libraries" != "" ; then | |
27030 | echo "$as_me:$LINENO: result: yes" >&5 | |
27031 | echo "${ECHO_T}yes" >&6 | |
27032 | ||
27033 | for ac_header in X11/extensions/xf86vmode.h | |
27034 | do | |
27035 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
27036 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
27037 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
27038 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
27039 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27040 | else | |
27041 | cat >conftest.$ac_ext <<_ACEOF | |
27042 | /* confdefs.h. */ | |
27043 | _ACEOF | |
27044 | cat confdefs.h >>conftest.$ac_ext | |
27045 | cat >>conftest.$ac_ext <<_ACEOF | |
27046 | /* end confdefs.h. */ | |
27047 | ||
27048 | #if HAVE_X11_XLIB_H | |
27049 | #include <X11/Xlib.h> | |
27050 | #endif | |
27051 | ||
27052 | ||
27053 | #include <$ac_header> | |
27054 | _ACEOF | |
27055 | rm -f conftest.$ac_objext | |
27056 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27057 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 27058 | ac_status=$? |
ac1cb8d3 VS |
27059 | grep -v '^ *+' conftest.er1 >conftest.err |
27060 | rm -f conftest.er1 | |
27061 | cat conftest.err >&5 | |
a848cd7e SC |
27062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27063 | (exit $ac_status); } && | |
d51253e8 | 27064 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27066 | (eval $ac_try) 2>&5 | |
27067 | ac_status=$? | |
27068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27069 | (exit $ac_status); }; } && | |
27070 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
27071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27072 | (eval $ac_try) 2>&5 | |
27073 | ac_status=$? | |
27074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27075 | (exit $ac_status); }; }; then | |
27076 | eval "$as_ac_Header=yes" | |
27077 | else | |
27078 | echo "$as_me: failed program was:" >&5 | |
27079 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27080 | ||
27081 | eval "$as_ac_Header=no" | |
27082 | fi | |
ac1cb8d3 | 27083 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27084 | fi |
27085 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
27086 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
27087 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
27088 | cat >>confdefs.h <<_ACEOF | |
27089 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
27090 | _ACEOF | |
27091 | ||
27092 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm" | |
27093 | ||
27094 | fi | |
27095 | ||
27096 | done | |
27097 | ||
27098 | else | |
27099 | echo "$as_me:$LINENO: result: no" >&5 | |
27100 | echo "${ECHO_T}no" >&6 | |
27101 | fi | |
27102 | ||
27103 | else | |
27104 | echo "$as_me:$LINENO: result: no" >&5 | |
27105 | echo "${ECHO_T}no" >&6 | |
dcc1b6ad VS |
27106 | { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5 |
27107 | echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;} | |
a848cd7e SC |
27108 | wxUSE_DISPLAY="no" |
27109 | fi | |
01cb68df RG |
27110 | elif test "$wxUSE_MSW" = 1; then |
27111 | ||
27112 | ||
27113 | for ac_header in multimon.h ddraw.h | |
27114 | do | |
27115 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
27116 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
27117 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
27118 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
27119 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
27120 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27121 | fi | |
27122 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
27123 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
27124 | else | |
27125 | # Is the header compilable? | |
27126 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
27127 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
27128 | cat >conftest.$ac_ext <<_ACEOF | |
27129 | /* confdefs.h. */ | |
27130 | _ACEOF | |
27131 | cat confdefs.h >>conftest.$ac_ext | |
27132 | cat >>conftest.$ac_ext <<_ACEOF | |
27133 | /* end confdefs.h. */ | |
27134 | $ac_includes_default | |
27135 | #include <$ac_header> | |
27136 | _ACEOF | |
27137 | rm -f conftest.$ac_objext | |
27138 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27139 | (eval $ac_compile) 2>conftest.er1 |
01cb68df | 27140 | ac_status=$? |
ac1cb8d3 VS |
27141 | grep -v '^ *+' conftest.er1 >conftest.err |
27142 | rm -f conftest.er1 | |
27143 | cat conftest.err >&5 | |
01cb68df RG |
27144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27145 | (exit $ac_status); } && | |
d51253e8 | 27146 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27148 | (eval $ac_try) 2>&5 | |
27149 | ac_status=$? | |
27150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27151 | (exit $ac_status); }; } && | |
27152 | { ac_try='test -s conftest.$ac_objext' | |
01cb68df RG |
27153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27154 | (eval $ac_try) 2>&5 | |
27155 | ac_status=$? | |
27156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27157 | (exit $ac_status); }; }; then | |
27158 | ac_header_compiler=yes | |
27159 | else | |
27160 | echo "$as_me: failed program was:" >&5 | |
27161 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27162 | ||
27163 | ac_header_compiler=no | |
27164 | fi | |
ac1cb8d3 | 27165 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
01cb68df RG |
27166 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
27167 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
27168 | ||
27169 | # Is the header present? | |
27170 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
27171 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
27172 | cat >conftest.$ac_ext <<_ACEOF | |
27173 | /* confdefs.h. */ | |
27174 | _ACEOF | |
27175 | cat confdefs.h >>conftest.$ac_ext | |
27176 | cat >>conftest.$ac_ext <<_ACEOF | |
27177 | /* end confdefs.h. */ | |
27178 | #include <$ac_header> | |
27179 | _ACEOF | |
27180 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
27181 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
27182 | ac_status=$? | |
27183 | grep -v '^ *+' conftest.er1 >conftest.err | |
27184 | rm -f conftest.er1 | |
27185 | cat conftest.err >&5 | |
27186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27187 | (exit $ac_status); } >/dev/null; then | |
27188 | if test -s conftest.err; then | |
27189 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 27190 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
01cb68df RG |
27191 | else |
27192 | ac_cpp_err= | |
27193 | fi | |
27194 | else | |
27195 | ac_cpp_err=yes | |
27196 | fi | |
27197 | if test -z "$ac_cpp_err"; then | |
27198 | ac_header_preproc=yes | |
27199 | else | |
27200 | echo "$as_me: failed program was:" >&5 | |
27201 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27202 | ||
27203 | ac_header_preproc=no | |
27204 | fi | |
27205 | rm -f conftest.err conftest.$ac_ext | |
27206 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
27207 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
27208 | ||
27209 | # So? What about this header? | |
ac1cb8d3 VS |
27210 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
27211 | yes:no: ) | |
01cb68df RG |
27212 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
27213 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
27214 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
27215 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
27216 | ac_header_preproc=yes | |
01cb68df | 27217 | ;; |
ac1cb8d3 | 27218 | no:yes:* ) |
01cb68df RG |
27219 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
27220 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
27221 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
27222 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
27223 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
27224 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
27225 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
27226 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
01cb68df RG |
27227 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
27228 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
27229 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
27230 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
01cb68df RG |
27231 | ( |
27232 | cat <<\_ASBOX | |
ac1cb8d3 VS |
27233 | ## ----------------------------------------- ## |
27234 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
27235 | ## ----------------------------------------- ## | |
01cb68df RG |
27236 | _ASBOX |
27237 | ) | | |
27238 | sed "s/^/$as_me: WARNING: /" >&2 | |
27239 | ;; | |
27240 | esac | |
27241 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
27242 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
27243 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
27244 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27245 | else | |
ac1cb8d3 | 27246 | eval "$as_ac_Header=\$ac_header_preproc" |
01cb68df RG |
27247 | fi |
27248 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
27249 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
27250 | ||
27251 | fi | |
27252 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
27253 | cat >>confdefs.h <<_ACEOF | |
27254 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
27255 | _ACEOF | |
27256 | ||
27257 | else | |
27258 | ||
27259 | wxUSE_DISPLAY="no" | |
dcc1b6ad VS |
27260 | { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5 |
27261 | echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;} | |
01cb68df RG |
27262 | |
27263 | fi | |
27264 | ||
27265 | done | |
27266 | ||
a848cd7e SC |
27267 | fi |
27268 | fi | |
27269 | ||
27270 | ||
3b57de8b RL |
27271 | if test "$wxUSE_MEDIACTRL" = "yes"; then |
27272 | if test "$wxUSE_MSW" = 1; then | |
27273 | wxUSE_DIRECTSHOW="yes" | |
27274 | ||
27275 | for ac_header in dshow.h | |
27276 | do | |
27277 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
27278 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
27279 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
27280 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
27281 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
27282 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27283 | fi | |
27284 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
27285 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
27286 | else | |
27287 | # Is the header compilable? | |
27288 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
27289 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
27290 | cat >conftest.$ac_ext <<_ACEOF | |
27291 | /* confdefs.h. */ | |
27292 | _ACEOF | |
27293 | cat confdefs.h >>conftest.$ac_ext | |
27294 | cat >>conftest.$ac_ext <<_ACEOF | |
27295 | /* end confdefs.h. */ | |
27296 | $ac_includes_default | |
27297 | #include <$ac_header> | |
27298 | _ACEOF | |
27299 | rm -f conftest.$ac_objext | |
27300 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27301 | (eval $ac_compile) 2>conftest.er1 | |
27302 | ac_status=$? | |
27303 | grep -v '^ *+' conftest.er1 >conftest.err | |
27304 | rm -f conftest.er1 | |
27305 | cat conftest.err >&5 | |
27306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27307 | (exit $ac_status); } && | |
d51253e8 | 27308 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3b57de8b RL |
27309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27310 | (eval $ac_try) 2>&5 | |
27311 | ac_status=$? | |
27312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27313 | (exit $ac_status); }; } && | |
27314 | { ac_try='test -s conftest.$ac_objext' | |
27315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27316 | (eval $ac_try) 2>&5 | |
27317 | ac_status=$? | |
27318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27319 | (exit $ac_status); }; }; then | |
27320 | ac_header_compiler=yes | |
27321 | else | |
27322 | echo "$as_me: failed program was:" >&5 | |
27323 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27324 | ||
27325 | ac_header_compiler=no | |
27326 | fi | |
27327 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
27328 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
27329 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
27330 | ||
27331 | # Is the header present? | |
27332 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
27333 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
27334 | cat >conftest.$ac_ext <<_ACEOF | |
27335 | /* confdefs.h. */ | |
27336 | _ACEOF | |
27337 | cat confdefs.h >>conftest.$ac_ext | |
27338 | cat >>conftest.$ac_ext <<_ACEOF | |
27339 | /* end confdefs.h. */ | |
27340 | #include <$ac_header> | |
27341 | _ACEOF | |
27342 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
27343 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
27344 | ac_status=$? | |
27345 | grep -v '^ *+' conftest.er1 >conftest.err | |
27346 | rm -f conftest.er1 | |
27347 | cat conftest.err >&5 | |
27348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27349 | (exit $ac_status); } >/dev/null; then | |
27350 | if test -s conftest.err; then | |
27351 | ac_cpp_err=$ac_c_preproc_warn_flag | |
27352 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
27353 | else | |
27354 | ac_cpp_err= | |
27355 | fi | |
27356 | else | |
27357 | ac_cpp_err=yes | |
27358 | fi | |
27359 | if test -z "$ac_cpp_err"; then | |
27360 | ac_header_preproc=yes | |
27361 | else | |
27362 | echo "$as_me: failed program was:" >&5 | |
27363 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27364 | ||
27365 | ac_header_preproc=no | |
27366 | fi | |
27367 | rm -f conftest.err conftest.$ac_ext | |
27368 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
27369 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
27370 | ||
27371 | # So? What about this header? | |
27372 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
27373 | yes:no: ) | |
27374 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
27375 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
27376 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
27377 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
27378 | ac_header_preproc=yes | |
27379 | ;; | |
27380 | no:yes:* ) | |
27381 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
27382 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
27383 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
27384 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
27385 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
27386 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
27387 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
27388 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
27389 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
27390 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
27391 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
27392 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
27393 | ( | |
27394 | cat <<\_ASBOX | |
27395 | ## ----------------------------------------- ## | |
27396 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
27397 | ## ----------------------------------------- ## | |
27398 | _ASBOX | |
27399 | ) | | |
27400 | sed "s/^/$as_me: WARNING: /" >&2 | |
27401 | ;; | |
27402 | esac | |
27403 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
27404 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
27405 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
27406 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27407 | else | |
27408 | eval "$as_ac_Header=\$ac_header_preproc" | |
27409 | fi | |
27410 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
27411 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
27412 | ||
27413 | fi | |
27414 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
27415 | cat >>confdefs.h <<_ACEOF | |
27416 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
27417 | _ACEOF | |
27418 | ||
27419 | else | |
27420 | ||
27421 | wxUSE_DIRECTSHOW="no" | |
27422 | { echo "$as_me:$LINENO: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&5 | |
27423 | echo "$as_me: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&2;} | |
27424 | ||
27425 | fi | |
27426 | ||
27427 | done | |
27428 | ||
27429 | ||
27430 | if test "$wxUSE_DIRECTSHOW" = "yes"; then | |
27431 | cat >>confdefs.h <<\_ACEOF | |
27432 | #define wxUSE_DIRECTSHOW 1 | |
27433 | _ACEOF | |
27434 | ||
27435 | LIBS="$LIBS -lstrmiids" | |
a98bf0c0 | 27436 | fi |
3b57de8b | 27437 | fi |
7e4a1c28 RN |
27438 | |
27439 | cat >>confdefs.h <<\_ACEOF | |
27440 | #define wxUSE_MEDIACTRL 1 | |
27441 | _ACEOF | |
27442 | ||
3b57de8b RL |
27443 | fi |
27444 | ||
27445 | ||
a848cd7e SC |
27446 | USE_OPENGL=0 |
27447 | if test "$wxUSE_OPENGL" = "yes"; then | |
27448 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then | |
27449 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
27450 | elif test "$wxUSE_MSW" = 1; then | |
27451 | OPENGL_LIBS="-lopengl32 -lglu32" | |
27452 | else | |
27453 | ||
27454 | ||
27455 | ac_find_includes= | |
27456 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
27457 | do | |
27458 | if test -f "$ac_dir/GL/gl.h"; then | |
27459 | ac_find_includes=$ac_dir | |
27460 | break | |
27461 | fi | |
27462 | done | |
27463 | ||
27464 | if test "$ac_find_includes" != "" ; then | |
27465 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
27466 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
27467 | ||
27468 | if test "x$ac_find_includes" = "x/usr/include"; then | |
27469 | ac_path_to_include="" | |
27470 | else | |
27471 | echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null | |
27472 | result=$? | |
27473 | if test $result = 0; then | |
27474 | ac_path_to_include="" | |
27475 | else | |
27476 | ac_path_to_include=" -I$ac_find_includes" | |
27477 | fi | |
27478 | fi | |
27479 | ||
27480 | CPPFLAGS="$CPPFLAGS$ac_path_to_include" | |
27481 | fi | |
27482 | ||
27483 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
27484 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
27485 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
27486 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
27487 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27488 | fi | |
27489 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
27490 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
27491 | else | |
27492 | # Is the header compilable? | |
27493 | echo "$as_me:$LINENO: checking GL/gl.h usability" >&5 | |
27494 | echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6 | |
27495 | cat >conftest.$ac_ext <<_ACEOF | |
27496 | /* confdefs.h. */ | |
27497 | _ACEOF | |
27498 | cat confdefs.h >>conftest.$ac_ext | |
27499 | cat >>conftest.$ac_ext <<_ACEOF | |
27500 | /* end confdefs.h. */ | |
27501 | $ac_includes_default | |
27502 | #include <GL/gl.h> | |
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); } && | |
d51253e8 | 27513 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27515 | (eval $ac_try) 2>&5 | |
27516 | ac_status=$? | |
27517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27518 | (exit $ac_status); }; } && | |
27519 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
27520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27521 | (eval $ac_try) 2>&5 | |
27522 | ac_status=$? | |
27523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27524 | (exit $ac_status); }; }; then | |
27525 | ac_header_compiler=yes | |
27526 | else | |
27527 | echo "$as_me: failed program was:" >&5 | |
27528 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27529 | ||
27530 | ac_header_compiler=no | |
27531 | fi | |
ac1cb8d3 | 27532 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27533 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
27534 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
27535 | ||
27536 | # Is the header present? | |
27537 | echo "$as_me:$LINENO: checking GL/gl.h presence" >&5 | |
27538 | echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6 | |
27539 | cat >conftest.$ac_ext <<_ACEOF | |
27540 | /* confdefs.h. */ | |
27541 | _ACEOF | |
27542 | cat confdefs.h >>conftest.$ac_ext | |
27543 | cat >>conftest.$ac_ext <<_ACEOF | |
27544 | /* end confdefs.h. */ | |
27545 | #include <GL/gl.h> | |
27546 | _ACEOF | |
27547 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
27548 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
27549 | ac_status=$? | |
27550 | grep -v '^ *+' conftest.er1 >conftest.err | |
27551 | rm -f conftest.er1 | |
27552 | cat conftest.err >&5 | |
27553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27554 | (exit $ac_status); } >/dev/null; then | |
27555 | if test -s conftest.err; then | |
27556 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 27557 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
27558 | else |
27559 | ac_cpp_err= | |
27560 | fi | |
27561 | else | |
27562 | ac_cpp_err=yes | |
27563 | fi | |
27564 | if test -z "$ac_cpp_err"; then | |
27565 | ac_header_preproc=yes | |
27566 | else | |
27567 | echo "$as_me: failed program was:" >&5 | |
27568 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27569 | ||
27570 | ac_header_preproc=no | |
27571 | fi | |
27572 | rm -f conftest.err conftest.$ac_ext | |
27573 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
27574 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
27575 | ||
27576 | # So? What about this header? | |
ac1cb8d3 VS |
27577 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
27578 | yes:no: ) | |
a848cd7e SC |
27579 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
27580 | echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
27581 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5 |
27582 | echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;} | |
27583 | ac_header_preproc=yes | |
a848cd7e | 27584 | ;; |
ac1cb8d3 | 27585 | no:yes:* ) |
a848cd7e SC |
27586 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5 |
27587 | echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
27588 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5 |
27589 | echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;} | |
27590 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5 | |
27591 | echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;} | |
27592 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
27593 | echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
27594 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 |
27595 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
27596 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5 |
27597 | echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
27598 | ( |
27599 | cat <<\_ASBOX | |
ac1cb8d3 VS |
27600 | ## ----------------------------------------- ## |
27601 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
27602 | ## ----------------------------------------- ## | |
a848cd7e SC |
27603 | _ASBOX |
27604 | ) | | |
27605 | sed "s/^/$as_me: WARNING: /" >&2 | |
27606 | ;; | |
27607 | esac | |
27608 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
27609 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
27610 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
27611 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27612 | else | |
27613 | ac_cv_header_GL_gl_h=$ac_header_preproc | |
27614 | fi | |
27615 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
27616 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
27617 | ||
27618 | fi | |
27619 | if test $ac_cv_header_GL_gl_h = yes; then | |
27620 | ||
27621 | found_gl=0 | |
27622 | ||
27623 | echo "$as_me:$LINENO: checking for -lGL" >&5 | |
27624 | echo $ECHO_N "checking for -lGL... $ECHO_C" >&6 | |
27625 | ||
27626 | ac_find_libraries= | |
27627 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27628 | do | |
27629 | for ac_extension in a so sl dylib; do | |
27630 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
27631 | ac_find_libraries=$ac_dir | |
27632 | break 2 | |
27633 | fi | |
27634 | done | |
27635 | done | |
27636 | ||
27637 | if test "$ac_find_libraries" != "" ; then | |
27638 | ||
27639 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
27640 | result=$? | |
27641 | if test $result = 0; then | |
27642 | ac_path_to_link="" | |
27643 | else | |
27644 | ac_path_to_link=" -L$ac_find_libraries" | |
27645 | fi | |
27646 | ||
27647 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
27648 | LDFLAGS_GL="$ac_path_to_link" | |
27649 | fi | |
27650 | ||
27651 | ||
27652 | ac_find_libraries= | |
27653 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27654 | do | |
27655 | for ac_extension in a so sl dylib; do | |
27656 | if test -f "$ac_dir/libGLU.$ac_extension"; then | |
27657 | ac_find_libraries=$ac_dir | |
27658 | break 2 | |
27659 | fi | |
27660 | done | |
27661 | done | |
27662 | ||
27663 | if test "$ac_find_libraries" != "" ; then | |
27664 | ||
27665 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
27666 | result=$? | |
27667 | if test $result = 0; then | |
27668 | ac_path_to_link="" | |
27669 | else | |
27670 | ac_path_to_link=" -L$ac_find_libraries" | |
27671 | fi | |
27672 | ||
27673 | if test "$ac_path_to_link" != " -L/usr/lib" -a \ | |
27674 | "$ac_path_to_link" != "$LDFLAGS_GL"; then | |
27675 | LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link" | |
27676 | fi | |
27677 | ||
27678 | found_gl=1 | |
27679 | OPENGL_LIBS="-lGL -lGLU" | |
27680 | echo "$as_me:$LINENO: result: yes" >&5 | |
27681 | echo "${ECHO_T}yes" >&6 | |
27682 | fi | |
27683 | fi | |
27684 | ||
27685 | if test "$found_gl" != 1; then | |
27686 | echo "$as_me:$LINENO: result: no" >&5 | |
27687 | echo "${ECHO_T}no" >&6 | |
27688 | echo "$as_me:$LINENO: checking for -lMesaGL" >&5 | |
27689 | echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6 | |
27690 | ||
27691 | ac_find_libraries= | |
27692 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27693 | do | |
27694 | for ac_extension in a so sl dylib; do | |
27695 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
27696 | ac_find_libraries=$ac_dir | |
27697 | break 2 | |
27698 | fi | |
27699 | done | |
27700 | done | |
27701 | ||
27702 | if test "$ac_find_libraries" != "" ; then | |
27703 | ||
27704 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
27705 | result=$? | |
27706 | if test $result = 0; then | |
27707 | ac_path_to_link="" | |
27708 | else | |
27709 | ac_path_to_link=" -L$ac_find_libraries" | |
27710 | fi | |
27711 | ||
27712 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
27713 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
27714 | echo "$as_me:$LINENO: result: yes" >&5 | |
27715 | echo "${ECHO_T}yes" >&6 | |
27716 | else | |
27717 | echo "$as_me:$LINENO: result: no" >&5 | |
27718 | echo "${ECHO_T}no" >&6 | |
27719 | fi | |
27720 | fi | |
27721 | ||
27722 | fi | |
27723 | ||
27724 | ||
27725 | ||
27726 | if test "x$OPENGL_LIBS" = "x"; then | |
27727 | { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5 | |
27728 | echo "$as_me: error: OpenGL libraries not available" >&2;} | |
27729 | { (exit 1); exit 1; }; } | |
27730 | fi | |
27731 | fi | |
27732 | ||
27733 | if test "$wxUSE_OPENGL" = "yes"; then | |
27734 | USE_OPENGL=1 | |
27735 | cat >>confdefs.h <<\_ACEOF | |
27736 | #define wxUSE_OPENGL 1 | |
27737 | _ACEOF | |
27738 | ||
27739 | cat >>confdefs.h <<\_ACEOF | |
27740 | #define wxUSE_GLCANVAS 1 | |
27741 | _ACEOF | |
27742 | ||
27743 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf" | |
27744 | fi | |
27745 | fi | |
27746 | ||
a848cd7e SC |
27747 | |
27748 | if test -n "$TOOLKIT" ; then | |
27749 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
27750 | fi | |
27751 | ||
a848cd7e SC |
27752 | |
27753 | ||
27754 | if test "$wxUSE_SHARED" = "yes"; then | |
27755 | case "${host}" in | |
27756 | *-pc-msdosdjgpp ) | |
27757 | wxUSE_SHARED=no | |
27758 | { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5 | |
27759 | echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;} | |
27760 | ;; | |
27761 | esac | |
27762 | fi | |
27763 | ||
a848cd7e | 27764 | if test "$wxUSE_SHARED" = "yes"; then |
a848cd7e SC |
27765 | |
27766 | ||
27767 | found_versioning=no | |
27768 | ||
27769 | ||
27770 | if test $found_versioning = no ; then | |
27771 | echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5 | |
27772 | echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6 | |
27773 | if test "${wx_cv_version_script+set}" = set; then | |
27774 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27775 | else | |
27776 | ||
27777 | echo "VER_1 { *; };" >conftest.sym | |
27778 | echo "int main() { return 0; }" >conftest.cpp | |
27779 | ||
27780 | if { ac_try=' | |
27781 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
27782 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr' | |
27783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27784 | (eval $ac_try) 2>&5 | |
27785 | ac_status=$? | |
27786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27787 | (exit $ac_status); }; } ; then | |
27788 | if test -s conftest.stderr ; then | |
27789 | wx_cv_version_script=no | |
27790 | else | |
27791 | wx_cv_version_script=yes | |
27792 | fi | |
27793 | else | |
27794 | wx_cv_version_script=no | |
27795 | fi | |
27796 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp | |
27797 | ||
27798 | fi | |
27799 | echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5 | |
27800 | echo "${ECHO_T}$wx_cv_version_script" >&6 | |
27801 | if test $wx_cv_version_script = yes ; then | |
27802 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script" | |
27803 | fi | |
27804 | fi | |
27805 | ||
27806 | ||
27807 | case "${host}" in | |
27808 | *-*-linux* | *-*-gnu* ) | |
27809 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
ffa0583f | 27810 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" |
a848cd7e SC |
27811 | ;; |
27812 | ||
27813 | *-*-solaris2* ) | |
27814 | if test "$GCC" = yes ; then | |
27815 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
27816 | ||
27817 | saveLdflags="$LDFLAGS" | |
27818 | LDFLAGS="$saveLdflags -Wl,-rpath,/" | |
27819 | echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5 | |
27820 | echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6 | |
27821 | cat >conftest.$ac_ext <<_ACEOF | |
27822 | /* confdefs.h. */ | |
27823 | _ACEOF | |
27824 | cat confdefs.h >>conftest.$ac_ext | |
27825 | cat >>conftest.$ac_ext <<_ACEOF | |
27826 | /* end confdefs.h. */ | |
27827 | ||
27828 | int | |
27829 | main () | |
27830 | { | |
27831 | ||
27832 | ; | |
27833 | return 0; | |
27834 | } | |
27835 | _ACEOF | |
27836 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27837 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27838 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27839 | ac_status=$? |
ac1cb8d3 VS |
27840 | grep -v '^ *+' conftest.er1 >conftest.err |
27841 | rm -f conftest.er1 | |
27842 | cat conftest.err >&5 | |
a848cd7e SC |
27843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27844 | (exit $ac_status); } && | |
d51253e8 | 27845 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27847 | (eval $ac_try) 2>&5 | |
27848 | ac_status=$? | |
27849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27850 | (exit $ac_status); }; } && | |
27851 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27853 | (eval $ac_try) 2>&5 | |
27854 | ac_status=$? | |
27855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27856 | (exit $ac_status); }; }; then | |
27857 | ||
27858 | echo "$as_me:$LINENO: result: yes" >&5 | |
27859 | echo "${ECHO_T}yes" >&6 | |
27860 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
ffa0583f | 27861 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" |
a848cd7e SC |
27862 | |
27863 | else | |
27864 | echo "$as_me: failed program was:" >&5 | |
27865 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27866 | ||
27867 | ||
27868 | echo "$as_me:$LINENO: result: no" >&5 | |
27869 | echo "${ECHO_T}no" >&6 | |
27870 | echo "$as_me:$LINENO: checking if the linker accepts -R" >&5 | |
27871 | echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6 | |
27872 | LDFLAGS="$saveLdflags -Wl,-R,/" | |
27873 | cat >conftest.$ac_ext <<_ACEOF | |
27874 | /* confdefs.h. */ | |
27875 | _ACEOF | |
27876 | cat confdefs.h >>conftest.$ac_ext | |
27877 | cat >>conftest.$ac_ext <<_ACEOF | |
27878 | /* end confdefs.h. */ | |
27879 | ||
27880 | int | |
27881 | main () | |
27882 | { | |
27883 | ||
27884 | ; | |
27885 | return 0; | |
27886 | } | |
27887 | _ACEOF | |
27888 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27889 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27890 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27891 | ac_status=$? |
ac1cb8d3 VS |
27892 | grep -v '^ *+' conftest.er1 >conftest.err |
27893 | rm -f conftest.er1 | |
27894 | cat conftest.err >&5 | |
a848cd7e SC |
27895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27896 | (exit $ac_status); } && | |
d51253e8 | 27897 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27899 | (eval $ac_try) 2>&5 | |
27900 | ac_status=$? | |
27901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27902 | (exit $ac_status); }; } && | |
27903 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27905 | (eval $ac_try) 2>&5 | |
27906 | ac_status=$? | |
27907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27908 | (exit $ac_status); }; }; then | |
27909 | ||
ffa0583f | 27910 | echo "$as_me:$LINENO: result: yes" >&5 |
a848cd7e | 27911 | echo "${ECHO_T}yes" >&6 |
ffa0583f RL |
27912 | SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib" |
27913 | WXCONFIG_RPATH="-Wl,-R,\$libdir" | |
27914 | ||
a848cd7e SC |
27915 | else |
27916 | echo "$as_me: failed program was:" >&5 | |
27917 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27918 | ||
27919 | ||
27920 | echo "$as_me:$LINENO: result: no" >&5 | |
27921 | echo "${ECHO_T}no" >&6 | |
27922 | ||
27923 | fi | |
ac1cb8d3 VS |
27924 | rm -f conftest.err conftest.$ac_objext \ |
27925 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27926 | |
27927 | fi | |
ac1cb8d3 VS |
27928 | rm -f conftest.err conftest.$ac_objext \ |
27929 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27930 | LDFLAGS="$saveLdflags" |
27931 | else | |
a848cd7e | 27932 | SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib" |
ffa0583f | 27933 | WXCONFIG_RPATH="-R\$libdir" |
a848cd7e SC |
27934 | fi |
27935 | ;; | |
27936 | ||
27937 | powerpc-*-darwin* ) | |
27938 | SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@" | |
27939 | cat <<EOF >change-install-names | |
27940 | #!/bin/sh | |
27941 | libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\` | |
27942 | inst_cmd="install_name_tool " | |
27943 | for i in \${libnames} ; do | |
27944 | inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}" | |
27945 | done | |
27946 | \${inst_cmd} \${3} | |
27947 | EOF | |
27948 | chmod +x change-install-names | |
27949 | ;; | |
27950 | ||
27951 | *-*-cygwin* | *-*-mingw32* ) | |
27952 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" | |
27953 | ;; | |
27954 | ||
27955 | esac | |
ceec2216 | 27956 | |
ffa0583f RL |
27957 | if test $wxUSE_RPATH = "no"; then |
27958 | SAMPLES_RPATH_FLAG='' | |
27959 | SAMPLES_RPATH_POSTLINK='' | |
27960 | WXCONFIG_RPATH='' | |
27961 | fi | |
27962 | ||
27963 | SHARED=1 | |
27964 | ||
27965 | else | |
27966 | ||
ceec2216 RL |
27967 | config_linkage_component="-static" |
27968 | SHARED=0 | |
ffa0583f | 27969 | |
ceec2216 | 27970 | fi |
a848cd7e | 27971 | |
a848cd7e | 27972 | |
ceec2216 RL |
27973 | UNICODE=0 |
27974 | lib_unicode_suffix= | |
27975 | WX_CHARTYPE="ansi" | |
27976 | if test "$wxUSE_UNICODE" = "yes"; then | |
27977 | lib_unicode_suffix=u | |
27978 | WX_CHARTYPE="unicode" | |
27979 | UNICODE=1 | |
a848cd7e SC |
27980 | fi |
27981 | ||
ceec2216 RL |
27982 | lib_debug_suffix= |
27983 | WX_DEBUGTYPE="release" | |
27984 | DEBUG_FLAG=0 | |
27985 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
27986 | lib_debug_suffix=d | |
27987 | WX_DEBUGTYPE="debug" | |
27988 | DEBUG_FLAG=1 | |
27989 | fi | |
a848cd7e | 27990 | |
ceec2216 RL |
27991 | WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR} |
27992 | WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'` | |
a848cd7e | 27993 | |
ceec2216 RL |
27994 | DEBUG_INFO=0 |
27995 | if test "$wxUSE_DEBUG_INFO" = "yes"; then | |
27996 | DEBUG_INFO=1 | |
27997 | fi | |
a848cd7e | 27998 | |
ceec2216 | 27999 | WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` |
a848cd7e | 28000 | |
ceec2216 | 28001 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}" |
a848cd7e | 28002 | |
ceec2216 | 28003 | TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}" |
a848cd7e | 28004 | |
ceec2216 RL |
28005 | if test "$cross_compiling" = "yes"; then |
28006 | HOST_SUFFIX="-$host_alias" | |
28007 | TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX" | |
28008 | TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME" | |
a848cd7e SC |
28009 | fi |
28010 | ||
dd21ced8 | 28011 | WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" |
ceec2216 RL |
28012 | WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" |
28013 | ||
28014 | ||
28015 | ||
a848cd7e | 28016 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then |
abb9aae7 VZ |
28017 | WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r" |
28018 | WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc" | |
ceec2216 | 28019 | |
a848cd7e | 28020 | LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}" |
a848cd7e SC |
28021 | |
28022 | # Extract the first word of "Rez", so it can be a program name with args. | |
28023 | set dummy Rez; ac_word=$2 | |
28024 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
28025 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
28026 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
28027 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28028 | else | |
28029 | if test -n "$RESCOMP"; then | |
28030 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
28031 | else | |
28032 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
28033 | for as_dir in $PATH | |
28034 | do | |
28035 | IFS=$as_save_IFS | |
28036 | test -z "$as_dir" && as_dir=. | |
28037 | for ac_exec_ext in '' $ac_executable_extensions; do | |
28038 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
28039 | ac_cv_prog_RESCOMP="Rez" | |
28040 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
28041 | break 2 | |
28042 | fi | |
28043 | done | |
28044 | done | |
28045 | ||
28046 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
28047 | fi | |
28048 | fi | |
28049 | RESCOMP=$ac_cv_prog_RESCOMP | |
28050 | if test -n "$RESCOMP"; then | |
28051 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
28052 | echo "${ECHO_T}$RESCOMP" >&6 | |
28053 | else | |
28054 | echo "$as_me:$LINENO: result: no" >&5 | |
28055 | echo "${ECHO_T}no" >&6 | |
28056 | fi | |
28057 | ||
28058 | # Extract the first word of "DeRez", so it can be a program name with args. | |
28059 | set dummy DeRez; ac_word=$2 | |
28060 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
28061 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
28062 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
28063 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28064 | else | |
28065 | if test -n "$DEREZ"; then | |
28066 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
28067 | else | |
28068 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
28069 | for as_dir in $PATH | |
28070 | do | |
28071 | IFS=$as_save_IFS | |
28072 | test -z "$as_dir" && as_dir=. | |
28073 | for ac_exec_ext in '' $ac_executable_extensions; do | |
28074 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
28075 | ac_cv_prog_DEREZ="DeRez" | |
28076 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
28077 | break 2 | |
28078 | fi | |
28079 | done | |
28080 | done | |
28081 | ||
28082 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" | |
28083 | fi | |
28084 | fi | |
28085 | DEREZ=$ac_cv_prog_DEREZ | |
28086 | if test -n "$DEREZ"; then | |
28087 | echo "$as_me:$LINENO: result: $DEREZ" >&5 | |
28088 | echo "${ECHO_T}$DEREZ" >&6 | |
28089 | else | |
28090 | echo "$as_me:$LINENO: result: no" >&5 | |
28091 | echo "${ECHO_T}no" >&6 | |
28092 | fi | |
28093 | ||
28094 | # Extract the first word of "SetFile", so it can be a program name with args. | |
28095 | set dummy SetFile; ac_word=$2 | |
28096 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
28097 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
28098 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
28099 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28100 | else | |
28101 | if test -n "$SETFILE"; then | |
28102 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
28103 | else | |
28104 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
28105 | for as_dir in $PATH | |
28106 | do | |
28107 | IFS=$as_save_IFS | |
28108 | test -z "$as_dir" && as_dir=. | |
28109 | for ac_exec_ext in '' $ac_executable_extensions; do | |
28110 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
28111 | ac_cv_prog_SETFILE="SetFile" | |
28112 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
28113 | break 2 | |
28114 | fi | |
28115 | done | |
28116 | done | |
28117 | ||
28118 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
28119 | fi | |
28120 | fi | |
28121 | SETFILE=$ac_cv_prog_SETFILE | |
28122 | if test -n "$SETFILE"; then | |
28123 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
28124 | echo "${ECHO_T}$SETFILE" >&6 | |
28125 | else | |
28126 | echo "$as_me:$LINENO: result: no" >&5 | |
28127 | echo "${ECHO_T}no" >&6 | |
28128 | fi | |
28129 | ||
28130 | ||
28131 | MACSETFILE="\$(SETFILE)" | |
28132 | ||
28133 | if test "$wxUSE_MAC" = 1; then | |
28134 | MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o" | |
28135 | ||
28136 | MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
28137 | else | |
28138 | MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o" | |
28139 | MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
28140 | fi | |
28141 | else | |
ffa0583f RL |
28142 | MACSETFILE="@true" |
28143 | MACRESWXCONFIG="@true" | |
a848cd7e SC |
28144 | |
28145 | if test "$wxUSE_PM" = 1; then | |
28146 | MACRESCOMP="emxbind -ep" | |
28147 | else | |
ffa0583f | 28148 | MACRESCOMP="@true" |
a848cd7e SC |
28149 | fi |
28150 | fi | |
28151 | ||
28152 | ||
28153 | ||
28154 | echo "$as_me:$LINENO: checking for mode_t" >&5 | |
28155 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
28156 | if test "${ac_cv_type_mode_t+set}" = set; then | |
28157 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28158 | else | |
28159 | cat >conftest.$ac_ext <<_ACEOF | |
28160 | /* confdefs.h. */ | |
28161 | _ACEOF | |
28162 | cat confdefs.h >>conftest.$ac_ext | |
28163 | cat >>conftest.$ac_ext <<_ACEOF | |
28164 | /* end confdefs.h. */ | |
28165 | $ac_includes_default | |
28166 | int | |
28167 | main () | |
28168 | { | |
28169 | if ((mode_t *) 0) | |
28170 | return 0; | |
28171 | if (sizeof (mode_t)) | |
28172 | return 0; | |
28173 | ; | |
28174 | return 0; | |
28175 | } | |
28176 | _ACEOF | |
28177 | rm -f conftest.$ac_objext | |
28178 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28179 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28180 | ac_status=$? |
ac1cb8d3 VS |
28181 | grep -v '^ *+' conftest.er1 >conftest.err |
28182 | rm -f conftest.er1 | |
28183 | cat conftest.err >&5 | |
a848cd7e SC |
28184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28185 | (exit $ac_status); } && | |
d51253e8 | 28186 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28188 | (eval $ac_try) 2>&5 | |
28189 | ac_status=$? | |
28190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28191 | (exit $ac_status); }; } && | |
28192 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28194 | (eval $ac_try) 2>&5 | |
28195 | ac_status=$? | |
28196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28197 | (exit $ac_status); }; }; then | |
28198 | ac_cv_type_mode_t=yes | |
28199 | else | |
28200 | echo "$as_me: failed program was:" >&5 | |
28201 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28202 | ||
28203 | ac_cv_type_mode_t=no | |
28204 | fi | |
ac1cb8d3 | 28205 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28206 | fi |
28207 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 | |
28208 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
28209 | if test $ac_cv_type_mode_t = yes; then | |
28210 | : | |
28211 | else | |
28212 | ||
28213 | cat >>confdefs.h <<_ACEOF | |
28214 | #define mode_t int | |
28215 | _ACEOF | |
28216 | ||
28217 | fi | |
28218 | ||
28219 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
28220 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
28221 | if test "${ac_cv_type_off_t+set}" = set; then | |
28222 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28223 | else | |
28224 | cat >conftest.$ac_ext <<_ACEOF | |
28225 | /* confdefs.h. */ | |
28226 | _ACEOF | |
28227 | cat confdefs.h >>conftest.$ac_ext | |
28228 | cat >>conftest.$ac_ext <<_ACEOF | |
28229 | /* end confdefs.h. */ | |
28230 | $ac_includes_default | |
28231 | int | |
28232 | main () | |
28233 | { | |
28234 | if ((off_t *) 0) | |
28235 | return 0; | |
28236 | if (sizeof (off_t)) | |
28237 | return 0; | |
28238 | ; | |
28239 | return 0; | |
28240 | } | |
28241 | _ACEOF | |
28242 | rm -f conftest.$ac_objext | |
28243 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28244 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28245 | ac_status=$? |
ac1cb8d3 VS |
28246 | grep -v '^ *+' conftest.er1 >conftest.err |
28247 | rm -f conftest.er1 | |
28248 | cat conftest.err >&5 | |
a848cd7e SC |
28249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28250 | (exit $ac_status); } && | |
d51253e8 | 28251 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28253 | (eval $ac_try) 2>&5 | |
28254 | ac_status=$? | |
28255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28256 | (exit $ac_status); }; } && | |
28257 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28259 | (eval $ac_try) 2>&5 | |
28260 | ac_status=$? | |
28261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28262 | (exit $ac_status); }; }; then | |
28263 | ac_cv_type_off_t=yes | |
28264 | else | |
28265 | echo "$as_me: failed program was:" >&5 | |
28266 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28267 | ||
28268 | ac_cv_type_off_t=no | |
28269 | fi | |
ac1cb8d3 | 28270 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28271 | fi |
28272 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
28273 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
28274 | if test $ac_cv_type_off_t = yes; then | |
28275 | : | |
28276 | else | |
28277 | ||
28278 | cat >>confdefs.h <<_ACEOF | |
28279 | #define off_t long | |
28280 | _ACEOF | |
28281 | ||
28282 | fi | |
28283 | ||
28284 | echo "$as_me:$LINENO: checking for pid_t" >&5 | |
28285 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
28286 | if test "${ac_cv_type_pid_t+set}" = set; then | |
28287 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28288 | else | |
28289 | cat >conftest.$ac_ext <<_ACEOF | |
28290 | /* confdefs.h. */ | |
28291 | _ACEOF | |
28292 | cat confdefs.h >>conftest.$ac_ext | |
28293 | cat >>conftest.$ac_ext <<_ACEOF | |
28294 | /* end confdefs.h. */ | |
28295 | $ac_includes_default | |
28296 | int | |
28297 | main () | |
28298 | { | |
28299 | if ((pid_t *) 0) | |
28300 | return 0; | |
28301 | if (sizeof (pid_t)) | |
28302 | return 0; | |
28303 | ; | |
28304 | return 0; | |
28305 | } | |
28306 | _ACEOF | |
28307 | rm -f conftest.$ac_objext | |
28308 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28309 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28310 | ac_status=$? |
ac1cb8d3 VS |
28311 | grep -v '^ *+' conftest.er1 >conftest.err |
28312 | rm -f conftest.er1 | |
28313 | cat conftest.err >&5 | |
a848cd7e SC |
28314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28315 | (exit $ac_status); } && | |
d51253e8 | 28316 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28318 | (eval $ac_try) 2>&5 | |
28319 | ac_status=$? | |
28320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28321 | (exit $ac_status); }; } && | |
28322 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28324 | (eval $ac_try) 2>&5 | |
28325 | ac_status=$? | |
28326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28327 | (exit $ac_status); }; }; then | |
28328 | ac_cv_type_pid_t=yes | |
28329 | else | |
28330 | echo "$as_me: failed program was:" >&5 | |
28331 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28332 | ||
28333 | ac_cv_type_pid_t=no | |
28334 | fi | |
ac1cb8d3 | 28335 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28336 | fi |
28337 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | |
28338 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
28339 | if test $ac_cv_type_pid_t = yes; then | |
28340 | : | |
28341 | else | |
28342 | ||
28343 | cat >>confdefs.h <<_ACEOF | |
28344 | #define pid_t int | |
28345 | _ACEOF | |
28346 | ||
28347 | fi | |
28348 | ||
28349 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
28350 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
28351 | if test "${ac_cv_type_size_t+set}" = set; then | |
28352 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28353 | else | |
28354 | cat >conftest.$ac_ext <<_ACEOF | |
28355 | /* confdefs.h. */ | |
28356 | _ACEOF | |
28357 | cat confdefs.h >>conftest.$ac_ext | |
28358 | cat >>conftest.$ac_ext <<_ACEOF | |
28359 | /* end confdefs.h. */ | |
28360 | $ac_includes_default | |
28361 | int | |
28362 | main () | |
28363 | { | |
28364 | if ((size_t *) 0) | |
28365 | return 0; | |
28366 | if (sizeof (size_t)) | |
28367 | return 0; | |
28368 | ; | |
28369 | return 0; | |
28370 | } | |
28371 | _ACEOF | |
28372 | rm -f conftest.$ac_objext | |
28373 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28374 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28375 | ac_status=$? |
ac1cb8d3 VS |
28376 | grep -v '^ *+' conftest.er1 >conftest.err |
28377 | rm -f conftest.er1 | |
28378 | cat conftest.err >&5 | |
a848cd7e SC |
28379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28380 | (exit $ac_status); } && | |
d51253e8 | 28381 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28383 | (eval $ac_try) 2>&5 | |
28384 | ac_status=$? | |
28385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28386 | (exit $ac_status); }; } && | |
28387 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28389 | (eval $ac_try) 2>&5 | |
28390 | ac_status=$? | |
28391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28392 | (exit $ac_status); }; }; then | |
28393 | ac_cv_type_size_t=yes | |
28394 | else | |
28395 | echo "$as_me: failed program was:" >&5 | |
28396 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28397 | ||
28398 | ac_cv_type_size_t=no | |
28399 | fi | |
ac1cb8d3 | 28400 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28401 | fi |
28402 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
28403 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
28404 | if test $ac_cv_type_size_t = yes; then | |
28405 | : | |
28406 | else | |
28407 | ||
28408 | cat >>confdefs.h <<_ACEOF | |
28409 | #define size_t unsigned | |
28410 | _ACEOF | |
28411 | ||
28412 | fi | |
28413 | ||
28414 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 | |
28415 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 | |
28416 | if test "${ac_cv_type_uid_t+set}" = set; then | |
28417 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28418 | else | |
28419 | cat >conftest.$ac_ext <<_ACEOF | |
28420 | /* confdefs.h. */ | |
28421 | _ACEOF | |
28422 | cat confdefs.h >>conftest.$ac_ext | |
28423 | cat >>conftest.$ac_ext <<_ACEOF | |
28424 | /* end confdefs.h. */ | |
28425 | #include <sys/types.h> | |
28426 | ||
28427 | _ACEOF | |
28428 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
28429 | $EGREP "uid_t" >/dev/null 2>&1; then | |
28430 | ac_cv_type_uid_t=yes | |
28431 | else | |
28432 | ac_cv_type_uid_t=no | |
28433 | fi | |
28434 | rm -f conftest* | |
28435 | ||
28436 | fi | |
28437 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 | |
28438 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 | |
28439 | if test $ac_cv_type_uid_t = no; then | |
28440 | ||
28441 | cat >>confdefs.h <<\_ACEOF | |
28442 | #define uid_t int | |
28443 | _ACEOF | |
28444 | ||
28445 | ||
28446 | cat >>confdefs.h <<\_ACEOF | |
28447 | #define gid_t int | |
28448 | _ACEOF | |
28449 | ||
28450 | fi | |
28451 | ||
28452 | ||
d51253e8 RL |
28453 | echo "$as_me:$LINENO: checking for ssize_t" >&5 |
28454 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 | |
28455 | if test "${ac_cv_type_ssize_t+set}" = set; then | |
28456 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28457 | else | |
28458 | cat >conftest.$ac_ext <<_ACEOF | |
28459 | /* confdefs.h. */ | |
28460 | _ACEOF | |
28461 | cat confdefs.h >>conftest.$ac_ext | |
28462 | cat >>conftest.$ac_ext <<_ACEOF | |
28463 | /* end confdefs.h. */ | |
28464 | $ac_includes_default | |
28465 | int | |
28466 | main () | |
28467 | { | |
28468 | if ((ssize_t *) 0) | |
28469 | return 0; | |
28470 | if (sizeof (ssize_t)) | |
28471 | return 0; | |
28472 | ; | |
28473 | return 0; | |
28474 | } | |
28475 | _ACEOF | |
28476 | rm -f conftest.$ac_objext | |
28477 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
28478 | (eval $ac_compile) 2>conftest.er1 | |
28479 | ac_status=$? | |
28480 | grep -v '^ *+' conftest.er1 >conftest.err | |
28481 | rm -f conftest.er1 | |
28482 | cat conftest.err >&5 | |
28483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28484 | (exit $ac_status); } && | |
28485 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
28486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28487 | (eval $ac_try) 2>&5 | |
28488 | ac_status=$? | |
28489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28490 | (exit $ac_status); }; } && | |
28491 | { ac_try='test -s conftest.$ac_objext' | |
28492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28493 | (eval $ac_try) 2>&5 | |
28494 | ac_status=$? | |
28495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28496 | (exit $ac_status); }; }; then | |
28497 | ac_cv_type_ssize_t=yes | |
28498 | else | |
28499 | echo "$as_me: failed program was:" >&5 | |
28500 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28501 | ||
28502 | ac_cv_type_ssize_t=no | |
28503 | fi | |
28504 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
28505 | fi | |
28506 | echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 | |
28507 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 | |
28508 | if test $ac_cv_type_ssize_t = yes; then | |
28509 | ||
28510 | cat >>confdefs.h <<_ACEOF | |
28511 | #define HAVE_SSIZE_T 1 | |
28512 | _ACEOF | |
28513 | ||
28514 | ||
28515 | fi | |
28516 | ||
28517 | ||
a848cd7e SC |
28518 | |
28519 | ||
28520 | ac_ext=cc | |
28521 | ac_cpp='$CXXCPP $CPPFLAGS' | |
28522 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
28523 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28524 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
28525 | ||
28526 | echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5 | |
28527 | echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6 | |
28528 | if test "${wx_cv_size_t_is_uint+set}" = set; then | |
28529 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28530 | else | |
28531 | ||
28532 | cat >conftest.$ac_ext <<_ACEOF | |
28533 | /* confdefs.h. */ | |
28534 | _ACEOF | |
28535 | cat confdefs.h >>conftest.$ac_ext | |
28536 | cat >>conftest.$ac_ext <<_ACEOF | |
28537 | /* end confdefs.h. */ | |
28538 | #include <stddef.h> | |
28539 | int | |
28540 | main () | |
28541 | { | |
28542 | ||
28543 | return 0; } | |
28544 | ||
28545 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
28546 | ||
28547 | int bar() { | |
28548 | ||
28549 | ; | |
28550 | return 0; | |
28551 | } | |
28552 | _ACEOF | |
28553 | rm -f conftest.$ac_objext | |
28554 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28555 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28556 | ac_status=$? |
ac1cb8d3 VS |
28557 | grep -v '^ *+' conftest.er1 >conftest.err |
28558 | rm -f conftest.er1 | |
28559 | cat conftest.err >&5 | |
a848cd7e SC |
28560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28561 | (exit $ac_status); } && | |
d51253e8 | 28562 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28564 | (eval $ac_try) 2>&5 | |
28565 | ac_status=$? | |
28566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28567 | (exit $ac_status); }; } && | |
28568 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28570 | (eval $ac_try) 2>&5 | |
28571 | ac_status=$? | |
28572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28573 | (exit $ac_status); }; }; then | |
28574 | wx_cv_size_t_is_uint=no | |
28575 | else | |
28576 | echo "$as_me: failed program was:" >&5 | |
28577 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28578 | ||
28579 | wx_cv_size_t_is_uint=yes | |
28580 | ||
28581 | fi | |
ac1cb8d3 | 28582 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28583 | |
28584 | ||
28585 | fi | |
28586 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5 | |
28587 | echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6 | |
28588 | ||
28589 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
28590 | cat >>confdefs.h <<\_ACEOF | |
28591 | #define wxSIZE_T_IS_UINT 1 | |
28592 | _ACEOF | |
28593 | ||
28594 | else | |
28595 | echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5 | |
28596 | echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6 | |
28597 | if test "${wx_cv_size_t_is_ulong+set}" = set; then | |
28598 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28599 | else | |
28600 | cat >conftest.$ac_ext <<_ACEOF | |
28601 | /* confdefs.h. */ | |
28602 | _ACEOF | |
28603 | cat confdefs.h >>conftest.$ac_ext | |
28604 | cat >>conftest.$ac_ext <<_ACEOF | |
28605 | /* end confdefs.h. */ | |
28606 | #include <stddef.h> | |
28607 | int | |
28608 | main () | |
28609 | { | |
28610 | ||
28611 | return 0; } | |
28612 | ||
28613 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
28614 | ||
28615 | int bar() { | |
28616 | ||
28617 | ; | |
28618 | return 0; | |
28619 | } | |
28620 | _ACEOF | |
28621 | rm -f conftest.$ac_objext | |
28622 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28623 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28624 | ac_status=$? |
ac1cb8d3 VS |
28625 | grep -v '^ *+' conftest.er1 >conftest.err |
28626 | rm -f conftest.er1 | |
28627 | cat conftest.err >&5 | |
a848cd7e SC |
28628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28629 | (exit $ac_status); } && | |
d51253e8 | 28630 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28632 | (eval $ac_try) 2>&5 | |
28633 | ac_status=$? | |
28634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28635 | (exit $ac_status); }; } && | |
28636 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28638 | (eval $ac_try) 2>&5 | |
28639 | ac_status=$? | |
28640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28641 | (exit $ac_status); }; }; then | |
28642 | wx_cv_size_t_is_ulong=no | |
28643 | else | |
28644 | echo "$as_me: failed program was:" >&5 | |
28645 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28646 | ||
28647 | wx_cv_size_t_is_ulong=yes | |
28648 | ||
28649 | fi | |
ac1cb8d3 | 28650 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28651 | |
28652 | fi | |
28653 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5 | |
28654 | echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6 | |
28655 | ||
28656 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
28657 | cat >>confdefs.h <<\_ACEOF | |
28658 | #define wxSIZE_T_IS_ULONG 1 | |
28659 | _ACEOF | |
28660 | ||
28661 | fi | |
28662 | fi | |
28663 | ||
28664 | ac_ext=c | |
28665 | ac_cpp='$CPP $CPPFLAGS' | |
28666 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
28667 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28668 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
28669 | ||
28670 | ||
28671 | ||
28672 | echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5 | |
28673 | echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6 | |
28674 | if test "${wx_cv_struct_pw_gecos+set}" = set; then | |
28675 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28676 | else | |
28677 | ||
28678 | cat >conftest.$ac_ext <<_ACEOF | |
28679 | /* confdefs.h. */ | |
28680 | _ACEOF | |
28681 | cat confdefs.h >>conftest.$ac_ext | |
28682 | cat >>conftest.$ac_ext <<_ACEOF | |
28683 | /* end confdefs.h. */ | |
28684 | #include <pwd.h> | |
28685 | int | |
28686 | main () | |
28687 | { | |
28688 | ||
28689 | char *p; | |
28690 | struct passwd *pw; | |
28691 | p = pw->pw_gecos; | |
28692 | ||
28693 | ; | |
28694 | return 0; | |
28695 | } | |
28696 | _ACEOF | |
28697 | rm -f conftest.$ac_objext | |
28698 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28699 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28700 | ac_status=$? |
ac1cb8d3 VS |
28701 | grep -v '^ *+' conftest.er1 >conftest.err |
28702 | rm -f conftest.er1 | |
28703 | cat conftest.err >&5 | |
a848cd7e SC |
28704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28705 | (exit $ac_status); } && | |
d51253e8 | 28706 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28708 | (eval $ac_try) 2>&5 | |
28709 | ac_status=$? | |
28710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28711 | (exit $ac_status); }; } && | |
28712 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28714 | (eval $ac_try) 2>&5 | |
28715 | ac_status=$? | |
28716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28717 | (exit $ac_status); }; }; then | |
28718 | ||
28719 | wx_cv_struct_pw_gecos=yes | |
28720 | ||
28721 | else | |
28722 | echo "$as_me: failed program was:" >&5 | |
28723 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28724 | ||
28725 | ||
28726 | wx_cv_struct_pw_gecos=no | |
28727 | ||
28728 | ||
28729 | fi | |
ac1cb8d3 | 28730 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28731 | |
28732 | ||
28733 | fi | |
28734 | echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5 | |
28735 | echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6 | |
28736 | ||
28737 | if test "$wx_cv_struct_pw_gecos" = "yes"; then | |
28738 | cat >>confdefs.h <<\_ACEOF | |
28739 | #define HAVE_PW_GECOS 1 | |
28740 | _ACEOF | |
28741 | ||
28742 | fi | |
28743 | ||
28744 | ||
28745 | if test "$wx_cv_sizeof_wchar_t" != "0"; then | |
28746 | cat >>confdefs.h <<\_ACEOF | |
28747 | #define wxUSE_WCHAR_T 1 | |
28748 | _ACEOF | |
28749 | ||
28750 | ||
28751 | WCSLEN_FOUND=0 | |
28752 | WCHAR_LINK= | |
28753 | ||
28754 | for ac_func in wcslen | |
28755 | do | |
28756 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
28757 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28758 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28759 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28760 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28761 | else | |
28762 | cat >conftest.$ac_ext <<_ACEOF | |
28763 | /* confdefs.h. */ | |
28764 | _ACEOF | |
28765 | cat confdefs.h >>conftest.$ac_ext | |
28766 | cat >>conftest.$ac_ext <<_ACEOF | |
28767 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
28768 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
28769 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28770 | #define $ac_func innocuous_$ac_func | |
28771 | ||
a848cd7e SC |
28772 | /* System header to define __stub macros and hopefully few prototypes, |
28773 | which can conflict with char $ac_func (); below. | |
28774 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28775 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 28776 | |
a848cd7e SC |
28777 | #ifdef __STDC__ |
28778 | # include <limits.h> | |
28779 | #else | |
28780 | # include <assert.h> | |
28781 | #endif | |
ac1cb8d3 VS |
28782 | |
28783 | #undef $ac_func | |
28784 | ||
a848cd7e SC |
28785 | /* Override any gcc2 internal prototype to avoid an error. */ |
28786 | #ifdef __cplusplus | |
28787 | extern "C" | |
28788 | { | |
28789 | #endif | |
28790 | /* We use char because int might match the return type of a gcc2 | |
28791 | builtin and then its argument prototype would still apply. */ | |
28792 | char $ac_func (); | |
28793 | /* The GNU C library defines this for functions which it implements | |
28794 | to always fail with ENOSYS. Some functions are actually named | |
28795 | something starting with __ and the normal name is an alias. */ | |
28796 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28797 | choke me | |
28798 | #else | |
28799 | char (*f) () = $ac_func; | |
28800 | #endif | |
28801 | #ifdef __cplusplus | |
28802 | } | |
28803 | #endif | |
28804 | ||
28805 | int | |
28806 | main () | |
28807 | { | |
28808 | return f != $ac_func; | |
28809 | ; | |
28810 | return 0; | |
28811 | } | |
28812 | _ACEOF | |
28813 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28814 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28815 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28816 | ac_status=$? |
ac1cb8d3 VS |
28817 | grep -v '^ *+' conftest.er1 >conftest.err |
28818 | rm -f conftest.er1 | |
28819 | cat conftest.err >&5 | |
a848cd7e SC |
28820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28821 | (exit $ac_status); } && | |
d51253e8 | 28822 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28824 | (eval $ac_try) 2>&5 | |
28825 | ac_status=$? | |
28826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28827 | (exit $ac_status); }; } && | |
28828 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28830 | (eval $ac_try) 2>&5 | |
28831 | ac_status=$? | |
28832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28833 | (exit $ac_status); }; }; then | |
28834 | eval "$as_ac_var=yes" | |
28835 | else | |
28836 | echo "$as_me: failed program was:" >&5 | |
28837 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28838 | ||
28839 | eval "$as_ac_var=no" | |
28840 | fi | |
ac1cb8d3 VS |
28841 | rm -f conftest.err conftest.$ac_objext \ |
28842 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28843 | fi |
28844 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28845 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28846 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28847 | cat >>confdefs.h <<_ACEOF | |
28848 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28849 | _ACEOF | |
28850 | WCSLEN_FOUND=1 | |
28851 | fi | |
28852 | done | |
28853 | ||
28854 | ||
28855 | if test "$WCSLEN_FOUND" = 0; then | |
28856 | if test "$TOOLKIT" = "MSW"; then | |
28857 | echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5 | |
28858 | echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6 | |
28859 | if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then | |
28860 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28861 | else | |
28862 | ac_check_lib_save_LIBS=$LIBS | |
28863 | LIBS="-lmsvcrt $LIBS" | |
28864 | cat >conftest.$ac_ext <<_ACEOF | |
28865 | /* confdefs.h. */ | |
28866 | _ACEOF | |
28867 | cat confdefs.h >>conftest.$ac_ext | |
28868 | cat >>conftest.$ac_ext <<_ACEOF | |
28869 | /* end confdefs.h. */ | |
28870 | ||
28871 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28872 | #ifdef __cplusplus | |
28873 | extern "C" | |
28874 | #endif | |
28875 | /* We use char because int might match the return type of a gcc2 | |
28876 | builtin and then its argument prototype would still apply. */ | |
28877 | char wcslen (); | |
28878 | int | |
28879 | main () | |
28880 | { | |
28881 | wcslen (); | |
28882 | ; | |
28883 | return 0; | |
28884 | } | |
28885 | _ACEOF | |
28886 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28887 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28888 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28889 | ac_status=$? |
ac1cb8d3 VS |
28890 | grep -v '^ *+' conftest.er1 >conftest.err |
28891 | rm -f conftest.er1 | |
28892 | cat conftest.err >&5 | |
a848cd7e SC |
28893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28894 | (exit $ac_status); } && | |
d51253e8 | 28895 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28897 | (eval $ac_try) 2>&5 | |
28898 | ac_status=$? | |
28899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28900 | (exit $ac_status); }; } && | |
28901 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28903 | (eval $ac_try) 2>&5 | |
28904 | ac_status=$? | |
28905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28906 | (exit $ac_status); }; }; then | |
28907 | ac_cv_lib_msvcrt_wcslen=yes | |
28908 | else | |
28909 | echo "$as_me: failed program was:" >&5 | |
28910 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28911 | ||
28912 | ac_cv_lib_msvcrt_wcslen=no | |
28913 | fi | |
ac1cb8d3 VS |
28914 | rm -f conftest.err conftest.$ac_objext \ |
28915 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28916 | LIBS=$ac_check_lib_save_LIBS |
28917 | fi | |
28918 | echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5 | |
28919 | echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6 | |
28920 | if test $ac_cv_lib_msvcrt_wcslen = yes; then | |
28921 | WCHAR_OK=1 | |
28922 | fi | |
28923 | ||
28924 | else | |
28925 | echo "$as_me:$LINENO: checking for wcslen in -lw" >&5 | |
28926 | echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6 | |
28927 | if test "${ac_cv_lib_w_wcslen+set}" = set; then | |
28928 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28929 | else | |
28930 | ac_check_lib_save_LIBS=$LIBS | |
28931 | LIBS="-lw $LIBS" | |
28932 | cat >conftest.$ac_ext <<_ACEOF | |
28933 | /* confdefs.h. */ | |
28934 | _ACEOF | |
28935 | cat confdefs.h >>conftest.$ac_ext | |
28936 | cat >>conftest.$ac_ext <<_ACEOF | |
28937 | /* end confdefs.h. */ | |
28938 | ||
28939 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28940 | #ifdef __cplusplus | |
28941 | extern "C" | |
28942 | #endif | |
28943 | /* We use char because int might match the return type of a gcc2 | |
28944 | builtin and then its argument prototype would still apply. */ | |
28945 | char wcslen (); | |
28946 | int | |
28947 | main () | |
28948 | { | |
28949 | wcslen (); | |
28950 | ; | |
28951 | return 0; | |
28952 | } | |
28953 | _ACEOF | |
28954 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28955 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28956 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28957 | ac_status=$? |
ac1cb8d3 VS |
28958 | grep -v '^ *+' conftest.er1 >conftest.err |
28959 | rm -f conftest.er1 | |
28960 | cat conftest.err >&5 | |
a848cd7e SC |
28961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28962 | (exit $ac_status); } && | |
d51253e8 | 28963 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28965 | (eval $ac_try) 2>&5 | |
28966 | ac_status=$? | |
28967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28968 | (exit $ac_status); }; } && | |
28969 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28971 | (eval $ac_try) 2>&5 | |
28972 | ac_status=$? | |
28973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28974 | (exit $ac_status); }; }; then | |
28975 | ac_cv_lib_w_wcslen=yes | |
28976 | else | |
28977 | echo "$as_me: failed program was:" >&5 | |
28978 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28979 | ||
28980 | ac_cv_lib_w_wcslen=no | |
28981 | fi | |
ac1cb8d3 VS |
28982 | rm -f conftest.err conftest.$ac_objext \ |
28983 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28984 | LIBS=$ac_check_lib_save_LIBS |
28985 | fi | |
28986 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5 | |
28987 | echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6 | |
28988 | if test $ac_cv_lib_w_wcslen = yes; then | |
28989 | ||
28990 | WCHAR_LINK=" -lw" | |
28991 | WCSLEN_FOUND=1 | |
28992 | ||
28993 | fi | |
28994 | ||
28995 | fi | |
28996 | fi | |
28997 | ||
28998 | if test "$WCSLEN_FOUND" = 1; then | |
28999 | cat >>confdefs.h <<\_ACEOF | |
29000 | #define HAVE_WCSLEN 1 | |
29001 | _ACEOF | |
29002 | ||
29003 | fi | |
29004 | ||
473276a9 VS |
29005 | if test "$USE_HPUX" = 1 -a "x$GCC" != "xyes"; then |
29006 | CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE " | |
29007 | fi | |
29008 | ||
a848cd7e SC |
29009 | |
29010 | for ac_func in wcsrtombs | |
29011 | do | |
29012 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29013 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29014 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29015 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29016 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29017 | else | |
29018 | cat >conftest.$ac_ext <<_ACEOF | |
29019 | /* confdefs.h. */ | |
29020 | _ACEOF | |
29021 | cat confdefs.h >>conftest.$ac_ext | |
29022 | cat >>conftest.$ac_ext <<_ACEOF | |
29023 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29024 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29025 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29026 | #define $ac_func innocuous_$ac_func | |
29027 | ||
a848cd7e SC |
29028 | /* System header to define __stub macros and hopefully few prototypes, |
29029 | which can conflict with char $ac_func (); below. | |
29030 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29031 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29032 | |
a848cd7e SC |
29033 | #ifdef __STDC__ |
29034 | # include <limits.h> | |
29035 | #else | |
29036 | # include <assert.h> | |
29037 | #endif | |
ac1cb8d3 VS |
29038 | |
29039 | #undef $ac_func | |
29040 | ||
a848cd7e SC |
29041 | /* Override any gcc2 internal prototype to avoid an error. */ |
29042 | #ifdef __cplusplus | |
29043 | extern "C" | |
29044 | { | |
29045 | #endif | |
29046 | /* We use char because int might match the return type of a gcc2 | |
29047 | builtin and then its argument prototype would still apply. */ | |
29048 | char $ac_func (); | |
29049 | /* The GNU C library defines this for functions which it implements | |
29050 | to always fail with ENOSYS. Some functions are actually named | |
29051 | something starting with __ and the normal name is an alias. */ | |
29052 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29053 | choke me | |
29054 | #else | |
29055 | char (*f) () = $ac_func; | |
29056 | #endif | |
29057 | #ifdef __cplusplus | |
29058 | } | |
29059 | #endif | |
29060 | ||
29061 | int | |
29062 | main () | |
29063 | { | |
29064 | return f != $ac_func; | |
29065 | ; | |
29066 | return 0; | |
29067 | } | |
29068 | _ACEOF | |
29069 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29070 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29071 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29072 | ac_status=$? |
ac1cb8d3 VS |
29073 | grep -v '^ *+' conftest.er1 >conftest.err |
29074 | rm -f conftest.er1 | |
29075 | cat conftest.err >&5 | |
a848cd7e SC |
29076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29077 | (exit $ac_status); } && | |
d51253e8 | 29078 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29080 | (eval $ac_try) 2>&5 | |
29081 | ac_status=$? | |
29082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29083 | (exit $ac_status); }; } && | |
29084 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29086 | (eval $ac_try) 2>&5 | |
29087 | ac_status=$? | |
29088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29089 | (exit $ac_status); }; }; then | |
29090 | eval "$as_ac_var=yes" | |
29091 | else | |
29092 | echo "$as_me: failed program was:" >&5 | |
29093 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29094 | ||
29095 | eval "$as_ac_var=no" | |
29096 | fi | |
ac1cb8d3 VS |
29097 | rm -f conftest.err conftest.$ac_objext \ |
29098 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29099 | fi |
29100 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29101 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29102 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29103 | cat >>confdefs.h <<_ACEOF | |
29104 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29105 | _ACEOF | |
29106 | ||
29107 | fi | |
29108 | done | |
29109 | ||
29110 | else | |
29111 | { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5 | |
29112 | echo "$as_me: WARNING: Wide character support is unavailable" >&2;} | |
29113 | fi | |
29114 | ||
29115 | ||
29116 | ||
29117 | ac_ext=cc | |
29118 | ac_cpp='$CXXCPP $CPPFLAGS' | |
29119 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29120 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29121 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
29122 | ||
29123 | ||
29124 | ||
29125 | for ac_func in vsnprintf | |
29126 | do | |
29127 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29128 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29129 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29130 | if eval "test \"\${$as_ac_var+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. */ | |
ac1cb8d3 VS |
29139 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29140 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29141 | #define $ac_func innocuous_$ac_func | |
29142 | ||
a848cd7e SC |
29143 | /* System header to define __stub macros and hopefully few prototypes, |
29144 | which can conflict with char $ac_func (); below. | |
29145 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29146 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29147 | |
a848cd7e SC |
29148 | #ifdef __STDC__ |
29149 | # include <limits.h> | |
29150 | #else | |
29151 | # include <assert.h> | |
29152 | #endif | |
ac1cb8d3 VS |
29153 | |
29154 | #undef $ac_func | |
29155 | ||
a848cd7e SC |
29156 | /* Override any gcc2 internal prototype to avoid an error. */ |
29157 | #ifdef __cplusplus | |
29158 | extern "C" | |
29159 | { | |
29160 | #endif | |
29161 | /* We use char because int might match the return type of a gcc2 | |
29162 | builtin and then its argument prototype would still apply. */ | |
29163 | char $ac_func (); | |
29164 | /* The GNU C library defines this for functions which it implements | |
29165 | to always fail with ENOSYS. Some functions are actually named | |
29166 | something starting with __ and the normal name is an alias. */ | |
29167 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29168 | choke me | |
29169 | #else | |
29170 | char (*f) () = $ac_func; | |
29171 | #endif | |
29172 | #ifdef __cplusplus | |
29173 | } | |
29174 | #endif | |
29175 | ||
29176 | int | |
29177 | main () | |
29178 | { | |
29179 | return f != $ac_func; | |
29180 | ; | |
29181 | return 0; | |
29182 | } | |
29183 | _ACEOF | |
29184 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29185 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29186 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29187 | ac_status=$? |
ac1cb8d3 VS |
29188 | grep -v '^ *+' conftest.er1 >conftest.err |
29189 | rm -f conftest.er1 | |
29190 | cat conftest.err >&5 | |
a848cd7e SC |
29191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29192 | (exit $ac_status); } && | |
d51253e8 | 29193 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29195 | (eval $ac_try) 2>&5 | |
29196 | ac_status=$? | |
29197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29198 | (exit $ac_status); }; } && | |
29199 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29201 | (eval $ac_try) 2>&5 | |
29202 | ac_status=$? | |
29203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29204 | (exit $ac_status); }; }; then | |
29205 | eval "$as_ac_var=yes" | |
29206 | else | |
29207 | echo "$as_me: failed program was:" >&5 | |
29208 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29209 | ||
29210 | eval "$as_ac_var=no" | |
29211 | fi | |
ac1cb8d3 VS |
29212 | rm -f conftest.err conftest.$ac_objext \ |
29213 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29214 | fi |
29215 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29216 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29217 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29218 | cat >>confdefs.h <<_ACEOF | |
29219 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29220 | _ACEOF | |
29221 | ||
29222 | fi | |
29223 | done | |
29224 | ||
29225 | ||
29226 | if test "$ac_cv_func_vsnprintf" = "yes"; then | |
29227 | echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5 | |
29228 | echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6 | |
29229 | if test "${wx_cv_func_vsnprintf_decl+set}" = set; then | |
29230 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29231 | else | |
29232 | ||
29233 | cat >conftest.$ac_ext <<_ACEOF | |
29234 | /* confdefs.h. */ | |
29235 | _ACEOF | |
29236 | cat confdefs.h >>conftest.$ac_ext | |
29237 | cat >>conftest.$ac_ext <<_ACEOF | |
29238 | /* end confdefs.h. */ | |
29239 | ||
29240 | #include <stdio.h> | |
29241 | #include <stdarg.h> | |
29242 | ||
29243 | int | |
29244 | main () | |
29245 | { | |
29246 | ||
29247 | char *buf; | |
29248 | va_list ap; | |
29249 | vsnprintf(buf, 10u, "%s", ap); | |
29250 | ||
29251 | ; | |
29252 | return 0; | |
29253 | } | |
29254 | _ACEOF | |
29255 | rm -f conftest.$ac_objext | |
29256 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29257 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29258 | ac_status=$? |
ac1cb8d3 VS |
29259 | grep -v '^ *+' conftest.er1 >conftest.err |
29260 | rm -f conftest.er1 | |
29261 | cat conftest.err >&5 | |
a848cd7e SC |
29262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29263 | (exit $ac_status); } && | |
d51253e8 | 29264 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29266 | (eval $ac_try) 2>&5 | |
29267 | ac_status=$? | |
29268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29269 | (exit $ac_status); }; } && | |
29270 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29272 | (eval $ac_try) 2>&5 | |
29273 | ac_status=$? | |
29274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29275 | (exit $ac_status); }; }; then | |
29276 | wx_cv_func_vsnprintf_decl=yes | |
29277 | else | |
29278 | echo "$as_me: failed program was:" >&5 | |
29279 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29280 | ||
29281 | wx_cv_func_vsnprintf_decl=no | |
29282 | ||
29283 | fi | |
ac1cb8d3 | 29284 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29285 | |
29286 | ||
29287 | fi | |
29288 | echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5 | |
29289 | echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6 | |
29290 | ||
29291 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
29292 | cat >>confdefs.h <<\_ACEOF | |
29293 | #define HAVE_VSNPRINTF_DECL 1 | |
29294 | _ACEOF | |
29295 | ||
29296 | fi | |
29297 | fi | |
29298 | ||
29299 | if test "$wxUSE_UNICODE" = yes; then | |
29300 | ||
29301 | ||
29302 | ||
fbe47c7b VS |
29303 | |
29304 | ||
29305 | ||
29306 | for ac_func in wputc wputchar putws fputws wprintf vswprintf | |
a848cd7e SC |
29307 | do |
29308 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29309 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29310 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29311 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29312 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29313 | else | |
29314 | cat >conftest.$ac_ext <<_ACEOF | |
29315 | /* confdefs.h. */ | |
29316 | _ACEOF | |
29317 | cat confdefs.h >>conftest.$ac_ext | |
29318 | cat >>conftest.$ac_ext <<_ACEOF | |
29319 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29320 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29321 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29322 | #define $ac_func innocuous_$ac_func | |
29323 | ||
a848cd7e SC |
29324 | /* System header to define __stub macros and hopefully few prototypes, |
29325 | which can conflict with char $ac_func (); below. | |
29326 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29327 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29328 | |
a848cd7e SC |
29329 | #ifdef __STDC__ |
29330 | # include <limits.h> | |
29331 | #else | |
29332 | # include <assert.h> | |
29333 | #endif | |
ac1cb8d3 VS |
29334 | |
29335 | #undef $ac_func | |
29336 | ||
a848cd7e SC |
29337 | /* Override any gcc2 internal prototype to avoid an error. */ |
29338 | #ifdef __cplusplus | |
29339 | extern "C" | |
29340 | { | |
29341 | #endif | |
29342 | /* We use char because int might match the return type of a gcc2 | |
29343 | builtin and then its argument prototype would still apply. */ | |
29344 | char $ac_func (); | |
29345 | /* The GNU C library defines this for functions which it implements | |
29346 | to always fail with ENOSYS. Some functions are actually named | |
29347 | something starting with __ and the normal name is an alias. */ | |
29348 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29349 | choke me | |
29350 | #else | |
29351 | char (*f) () = $ac_func; | |
29352 | #endif | |
29353 | #ifdef __cplusplus | |
29354 | } | |
29355 | #endif | |
29356 | ||
29357 | int | |
29358 | main () | |
29359 | { | |
29360 | return f != $ac_func; | |
29361 | ; | |
29362 | return 0; | |
29363 | } | |
29364 | _ACEOF | |
29365 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29366 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29367 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29368 | ac_status=$? |
ac1cb8d3 VS |
29369 | grep -v '^ *+' conftest.er1 >conftest.err |
29370 | rm -f conftest.er1 | |
29371 | cat conftest.err >&5 | |
a848cd7e SC |
29372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29373 | (exit $ac_status); } && | |
d51253e8 | 29374 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29376 | (eval $ac_try) 2>&5 | |
29377 | ac_status=$? | |
29378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29379 | (exit $ac_status); }; } && | |
29380 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29382 | (eval $ac_try) 2>&5 | |
29383 | ac_status=$? | |
29384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29385 | (exit $ac_status); }; }; then | |
29386 | eval "$as_ac_var=yes" | |
29387 | else | |
29388 | echo "$as_me: failed program was:" >&5 | |
29389 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29390 | ||
29391 | eval "$as_ac_var=no" | |
29392 | fi | |
ac1cb8d3 VS |
29393 | rm -f conftest.err conftest.$ac_objext \ |
29394 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29395 | fi |
29396 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29397 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29398 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29399 | cat >>confdefs.h <<_ACEOF | |
29400 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29401 | _ACEOF | |
29402 | ||
29403 | fi | |
29404 | done | |
29405 | ||
29406 | ||
29407 | echo "$as_me:$LINENO: checking for _vsnwprintf" >&5 | |
29408 | echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6 | |
29409 | cat >conftest.$ac_ext <<_ACEOF | |
29410 | /* confdefs.h. */ | |
29411 | _ACEOF | |
29412 | cat confdefs.h >>conftest.$ac_ext | |
29413 | cat >>conftest.$ac_ext <<_ACEOF | |
29414 | /* end confdefs.h. */ | |
29415 | #include <wchar.h> | |
29416 | int | |
29417 | main () | |
29418 | { | |
29419 | &_vsnwprintf; | |
29420 | ; | |
29421 | return 0; | |
29422 | } | |
29423 | _ACEOF | |
29424 | rm -f conftest.$ac_objext | |
29425 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29426 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29427 | ac_status=$? |
ac1cb8d3 VS |
29428 | grep -v '^ *+' conftest.er1 >conftest.err |
29429 | rm -f conftest.er1 | |
29430 | cat conftest.err >&5 | |
a848cd7e SC |
29431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29432 | (exit $ac_status); } && | |
d51253e8 | 29433 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29435 | (eval $ac_try) 2>&5 | |
29436 | ac_status=$? | |
29437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29438 | (exit $ac_status); }; } && | |
29439 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29441 | (eval $ac_try) 2>&5 | |
29442 | ac_status=$? | |
29443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29444 | (exit $ac_status); }; }; then | |
29445 | echo "$as_me:$LINENO: result: yes" >&5 | |
29446 | echo "${ECHO_T}yes" >&6 | |
29447 | cat >>confdefs.h <<\_ACEOF | |
29448 | #define HAVE__VSNWPRINTF 1 | |
29449 | _ACEOF | |
29450 | ||
29451 | else | |
29452 | echo "$as_me: failed program was:" >&5 | |
29453 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29454 | ||
29455 | echo "$as_me:$LINENO: result: no" >&5 | |
29456 | echo "${ECHO_T}no" >&6 | |
29457 | fi | |
ac1cb8d3 | 29458 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext; |
a848cd7e SC |
29459 | fi |
29460 | ||
29461 | ac_ext=c | |
29462 | ac_cpp='$CPP $CPPFLAGS' | |
29463 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29464 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29465 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
29466 | ||
29467 | ||
29468 | ||
29469 | ||
29470 | if test "$TOOLKIT" != "MSW"; then | |
29471 | ||
29472 | ||
29473 | ||
29474 | ||
29475 | ac_ext=cc | |
29476 | ac_cpp='$CXXCPP $CPPFLAGS' | |
29477 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29478 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29479 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
29480 | ||
29481 | ||
29482 | ||
29483 | ||
29484 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
29485 | if test "${with_libiconv_prefix+set}" = set; then | |
29486 | withval="$with_libiconv_prefix" | |
29487 | ||
29488 | for dir in `echo "$withval" | tr : ' '`; do | |
29489 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
29490 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
29491 | done | |
29492 | ||
29493 | fi; | |
29494 | ||
29495 | echo "$as_me:$LINENO: checking for iconv" >&5 | |
29496 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
29497 | if test "${am_cv_func_iconv+set}" = set; then | |
29498 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29499 | else | |
29500 | ||
29501 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
29502 | am_cv_lib_iconv=no | |
29503 | cat >conftest.$ac_ext <<_ACEOF | |
29504 | /* confdefs.h. */ | |
29505 | _ACEOF | |
29506 | cat confdefs.h >>conftest.$ac_ext | |
29507 | cat >>conftest.$ac_ext <<_ACEOF | |
29508 | /* end confdefs.h. */ | |
29509 | #include <stdlib.h> | |
29510 | #include <iconv.h> | |
29511 | int | |
29512 | main () | |
29513 | { | |
29514 | iconv_t cd = iconv_open("",""); | |
29515 | iconv(cd,NULL,NULL,NULL,NULL); | |
29516 | iconv_close(cd); | |
29517 | ; | |
29518 | return 0; | |
29519 | } | |
29520 | _ACEOF | |
29521 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29522 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29523 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29524 | ac_status=$? |
ac1cb8d3 VS |
29525 | grep -v '^ *+' conftest.er1 >conftest.err |
29526 | rm -f conftest.er1 | |
29527 | cat conftest.err >&5 | |
a848cd7e SC |
29528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29529 | (exit $ac_status); } && | |
d51253e8 | 29530 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29532 | (eval $ac_try) 2>&5 | |
29533 | ac_status=$? | |
29534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29535 | (exit $ac_status); }; } && | |
29536 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29538 | (eval $ac_try) 2>&5 | |
29539 | ac_status=$? | |
29540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29541 | (exit $ac_status); }; }; then | |
29542 | am_cv_func_iconv=yes | |
29543 | else | |
29544 | echo "$as_me: failed program was:" >&5 | |
29545 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29546 | ||
29547 | fi | |
ac1cb8d3 VS |
29548 | rm -f conftest.err conftest.$ac_objext \ |
29549 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29550 | if test "$am_cv_func_iconv" != yes; then |
29551 | am_save_LIBS="$LIBS" | |
29552 | LIBS="$LIBS -liconv" | |
29553 | cat >conftest.$ac_ext <<_ACEOF | |
29554 | /* confdefs.h. */ | |
29555 | _ACEOF | |
29556 | cat confdefs.h >>conftest.$ac_ext | |
29557 | cat >>conftest.$ac_ext <<_ACEOF | |
29558 | /* end confdefs.h. */ | |
29559 | #include <stdlib.h> | |
29560 | #include <iconv.h> | |
29561 | int | |
29562 | main () | |
29563 | { | |
29564 | iconv_t cd = iconv_open("",""); | |
29565 | iconv(cd,NULL,NULL,NULL,NULL); | |
29566 | iconv_close(cd); | |
29567 | ; | |
29568 | return 0; | |
29569 | } | |
29570 | _ACEOF | |
29571 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29572 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29573 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29574 | ac_status=$? |
ac1cb8d3 VS |
29575 | grep -v '^ *+' conftest.er1 >conftest.err |
29576 | rm -f conftest.er1 | |
29577 | cat conftest.err >&5 | |
a848cd7e SC |
29578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29579 | (exit $ac_status); } && | |
d51253e8 | 29580 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29582 | (eval $ac_try) 2>&5 | |
29583 | ac_status=$? | |
29584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29585 | (exit $ac_status); }; } && | |
29586 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29588 | (eval $ac_try) 2>&5 | |
29589 | ac_status=$? | |
29590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29591 | (exit $ac_status); }; }; then | |
29592 | am_cv_lib_iconv=yes | |
29593 | am_cv_func_iconv=yes | |
29594 | else | |
29595 | echo "$as_me: failed program was:" >&5 | |
29596 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29597 | ||
29598 | fi | |
ac1cb8d3 VS |
29599 | rm -f conftest.err conftest.$ac_objext \ |
29600 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29601 | LIBS="$am_save_LIBS" |
29602 | fi | |
29603 | ||
29604 | fi | |
29605 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
29606 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
29607 | if test "$am_cv_func_iconv" = yes; then | |
29608 | ||
29609 | cat >>confdefs.h <<\_ACEOF | |
29610 | #define HAVE_ICONV 1 | |
29611 | _ACEOF | |
29612 | ||
29613 | echo "$as_me:$LINENO: checking if iconv needs const" >&5 | |
29614 | echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6 | |
29615 | if test "${wx_cv_func_iconv_const+set}" = set; then | |
29616 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29617 | else | |
29618 | cat >conftest.$ac_ext <<_ACEOF | |
29619 | /* confdefs.h. */ | |
29620 | _ACEOF | |
29621 | cat confdefs.h >>conftest.$ac_ext | |
29622 | cat >>conftest.$ac_ext <<_ACEOF | |
29623 | /* end confdefs.h. */ | |
29624 | ||
29625 | #include <stdlib.h> | |
29626 | #include <iconv.h> | |
29627 | extern | |
29628 | #ifdef __cplusplus | |
29629 | "C" | |
29630 | #endif | |
29631 | #if defined(__STDC__) || defined(__cplusplus) | |
29632 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
29633 | #else | |
29634 | size_t iconv(); | |
29635 | #endif | |
29636 | ||
29637 | int | |
29638 | main () | |
29639 | { | |
29640 | ||
29641 | ; | |
29642 | return 0; | |
29643 | } | |
29644 | _ACEOF | |
29645 | rm -f conftest.$ac_objext | |
29646 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29647 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29648 | ac_status=$? |
ac1cb8d3 VS |
29649 | grep -v '^ *+' conftest.er1 >conftest.err |
29650 | rm -f conftest.er1 | |
29651 | cat conftest.err >&5 | |
a848cd7e SC |
29652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29653 | (exit $ac_status); } && | |
d51253e8 | 29654 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29656 | (eval $ac_try) 2>&5 | |
29657 | ac_status=$? | |
29658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29659 | (exit $ac_status); }; } && | |
29660 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29662 | (eval $ac_try) 2>&5 | |
29663 | ac_status=$? | |
29664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29665 | (exit $ac_status); }; }; then | |
29666 | wx_cv_func_iconv_const="no" | |
29667 | else | |
29668 | echo "$as_me: failed program was:" >&5 | |
29669 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29670 | ||
29671 | wx_cv_func_iconv_const="yes" | |
29672 | ||
29673 | fi | |
ac1cb8d3 | 29674 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29675 | |
29676 | fi | |
29677 | echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5 | |
29678 | echo "${ECHO_T}$wx_cv_func_iconv_const" >&6 | |
29679 | ||
29680 | iconv_const= | |
29681 | if test "x$wx_cv_func_iconv_const" = "xyes"; then | |
29682 | iconv_const="const" | |
29683 | fi | |
29684 | ||
29685 | ||
29686 | cat >>confdefs.h <<_ACEOF | |
29687 | #define ICONV_CONST $iconv_const | |
29688 | _ACEOF | |
29689 | ||
29690 | fi | |
29691 | LIBICONV= | |
29692 | if test "$am_cv_lib_iconv" = yes; then | |
29693 | LIBICONV="-liconv" | |
29694 | fi | |
29695 | ||
29696 | ||
29697 | LIBS="$LIBICONV $LIBS" | |
29698 | ac_ext=c | |
29699 | ac_cpp='$CPP $CPPFLAGS' | |
29700 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29701 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29702 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
29703 | ||
29704 | ||
29705 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then | |
29706 | ||
29707 | for ac_func in sigaction | |
29708 | do | |
29709 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29710 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29711 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29712 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29713 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29714 | else | |
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. */ | |
ac1cb8d3 VS |
29721 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29722 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29723 | #define $ac_func innocuous_$ac_func | |
29724 | ||
a848cd7e SC |
29725 | /* System header to define __stub macros and hopefully few prototypes, |
29726 | which can conflict with char $ac_func (); below. | |
29727 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29728 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29729 | |
a848cd7e SC |
29730 | #ifdef __STDC__ |
29731 | # include <limits.h> | |
29732 | #else | |
29733 | # include <assert.h> | |
29734 | #endif | |
ac1cb8d3 VS |
29735 | |
29736 | #undef $ac_func | |
29737 | ||
a848cd7e SC |
29738 | /* Override any gcc2 internal prototype to avoid an error. */ |
29739 | #ifdef __cplusplus | |
29740 | extern "C" | |
29741 | { | |
29742 | #endif | |
29743 | /* We use char because int might match the return type of a gcc2 | |
29744 | builtin and then its argument prototype would still apply. */ | |
29745 | char $ac_func (); | |
29746 | /* The GNU C library defines this for functions which it implements | |
29747 | to always fail with ENOSYS. Some functions are actually named | |
29748 | something starting with __ and the normal name is an alias. */ | |
29749 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29750 | choke me | |
29751 | #else | |
29752 | char (*f) () = $ac_func; | |
29753 | #endif | |
29754 | #ifdef __cplusplus | |
29755 | } | |
29756 | #endif | |
29757 | ||
29758 | int | |
29759 | main () | |
29760 | { | |
29761 | return f != $ac_func; | |
29762 | ; | |
29763 | return 0; | |
29764 | } | |
29765 | _ACEOF | |
29766 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29767 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29768 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29769 | ac_status=$? |
ac1cb8d3 VS |
29770 | grep -v '^ *+' conftest.er1 >conftest.err |
29771 | rm -f conftest.er1 | |
29772 | cat conftest.err >&5 | |
a848cd7e SC |
29773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29774 | (exit $ac_status); } && | |
d51253e8 | 29775 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29777 | (eval $ac_try) 2>&5 | |
29778 | ac_status=$? | |
29779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29780 | (exit $ac_status); }; } && | |
29781 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29783 | (eval $ac_try) 2>&5 | |
29784 | ac_status=$? | |
29785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29786 | (exit $ac_status); }; }; then | |
29787 | eval "$as_ac_var=yes" | |
29788 | else | |
29789 | echo "$as_me: failed program was:" >&5 | |
29790 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29791 | ||
29792 | eval "$as_ac_var=no" | |
29793 | fi | |
ac1cb8d3 VS |
29794 | rm -f conftest.err conftest.$ac_objext \ |
29795 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29796 | fi |
29797 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29798 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29799 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29800 | cat >>confdefs.h <<_ACEOF | |
29801 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29802 | _ACEOF | |
29803 | ||
29804 | fi | |
29805 | done | |
29806 | ||
29807 | ||
29808 | if test "$ac_cv_func_sigaction" = "no"; then | |
29809 | { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5 | |
29810 | echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;} | |
29811 | wxUSE_ON_FATAL_EXCEPTION=no | |
29812 | fi | |
29813 | ||
29814 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
29815 | ||
29816 | ||
29817 | ac_ext=cc | |
29818 | ac_cpp='$CXXCPP $CPPFLAGS' | |
29819 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29820 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29821 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
29822 | ||
29823 | ||
29824 | echo "$as_me:$LINENO: checking for sa_handler type" >&5 | |
29825 | echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6 | |
29826 | if test "${wx_cv_type_sa_handler+set}" = set; then | |
29827 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29828 | else | |
29829 | ||
29830 | cat >conftest.$ac_ext <<_ACEOF | |
29831 | /* confdefs.h. */ | |
29832 | _ACEOF | |
29833 | cat confdefs.h >>conftest.$ac_ext | |
29834 | cat >>conftest.$ac_ext <<_ACEOF | |
29835 | /* end confdefs.h. */ | |
29836 | #include <signal.h> | |
29837 | int | |
29838 | main () | |
29839 | { | |
29840 | ||
29841 | extern void testSigHandler(int); | |
29842 | ||
29843 | struct sigaction sa; | |
29844 | sa.sa_handler = testSigHandler; | |
29845 | ||
29846 | ; | |
29847 | return 0; | |
29848 | } | |
29849 | _ACEOF | |
29850 | rm -f conftest.$ac_objext | |
29851 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29852 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29853 | ac_status=$? |
ac1cb8d3 VS |
29854 | grep -v '^ *+' conftest.er1 >conftest.err |
29855 | rm -f conftest.er1 | |
29856 | cat conftest.err >&5 | |
a848cd7e SC |
29857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29858 | (exit $ac_status); } && | |
d51253e8 | 29859 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29861 | (eval $ac_try) 2>&5 | |
29862 | ac_status=$? | |
29863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29864 | (exit $ac_status); }; } && | |
29865 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29867 | (eval $ac_try) 2>&5 | |
29868 | ac_status=$? | |
29869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29870 | (exit $ac_status); }; }; then | |
29871 | ||
29872 | wx_cv_type_sa_handler=int | |
29873 | ||
29874 | else | |
29875 | echo "$as_me: failed program was:" >&5 | |
29876 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29877 | ||
29878 | ||
29879 | wx_cv_type_sa_handler=void | |
29880 | ||
29881 | fi | |
ac1cb8d3 | 29882 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29883 | |
29884 | fi | |
29885 | echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5 | |
29886 | echo "${ECHO_T}$wx_cv_type_sa_handler" >&6 | |
29887 | ||
29888 | ac_ext=c | |
29889 | ac_cpp='$CPP $CPPFLAGS' | |
29890 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29891 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29892 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
29893 | ||
29894 | ||
29895 | cat >>confdefs.h <<_ACEOF | |
29896 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
29897 | _ACEOF | |
29898 | ||
29899 | fi | |
29900 | fi | |
29901 | ||
29902 | ||
29903 | ||
29904 | for ac_func in mkstemp mktemp | |
29905 | do | |
29906 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29907 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29908 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29909 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29910 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29911 | else | |
29912 | cat >conftest.$ac_ext <<_ACEOF | |
29913 | /* confdefs.h. */ | |
29914 | _ACEOF | |
29915 | cat confdefs.h >>conftest.$ac_ext | |
29916 | cat >>conftest.$ac_ext <<_ACEOF | |
29917 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29918 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29919 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29920 | #define $ac_func innocuous_$ac_func | |
29921 | ||
a848cd7e SC |
29922 | /* System header to define __stub macros and hopefully few prototypes, |
29923 | which can conflict with char $ac_func (); below. | |
29924 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29925 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29926 | |
a848cd7e SC |
29927 | #ifdef __STDC__ |
29928 | # include <limits.h> | |
29929 | #else | |
29930 | # include <assert.h> | |
29931 | #endif | |
ac1cb8d3 VS |
29932 | |
29933 | #undef $ac_func | |
29934 | ||
a848cd7e SC |
29935 | /* Override any gcc2 internal prototype to avoid an error. */ |
29936 | #ifdef __cplusplus | |
29937 | extern "C" | |
29938 | { | |
29939 | #endif | |
29940 | /* We use char because int might match the return type of a gcc2 | |
29941 | builtin and then its argument prototype would still apply. */ | |
29942 | char $ac_func (); | |
29943 | /* The GNU C library defines this for functions which it implements | |
29944 | to always fail with ENOSYS. Some functions are actually named | |
29945 | something starting with __ and the normal name is an alias. */ | |
29946 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29947 | choke me | |
29948 | #else | |
29949 | char (*f) () = $ac_func; | |
29950 | #endif | |
29951 | #ifdef __cplusplus | |
29952 | } | |
29953 | #endif | |
29954 | ||
29955 | int | |
29956 | main () | |
29957 | { | |
29958 | return f != $ac_func; | |
29959 | ; | |
29960 | return 0; | |
29961 | } | |
29962 | _ACEOF | |
29963 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29964 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29965 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29966 | ac_status=$? |
ac1cb8d3 VS |
29967 | grep -v '^ *+' conftest.er1 >conftest.err |
29968 | rm -f conftest.er1 | |
29969 | cat conftest.err >&5 | |
a848cd7e SC |
29970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29971 | (exit $ac_status); } && | |
d51253e8 | 29972 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29974 | (eval $ac_try) 2>&5 | |
29975 | ac_status=$? | |
29976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29977 | (exit $ac_status); }; } && | |
29978 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29980 | (eval $ac_try) 2>&5 | |
29981 | ac_status=$? | |
29982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29983 | (exit $ac_status); }; }; then | |
29984 | eval "$as_ac_var=yes" | |
29985 | else | |
29986 | echo "$as_me: failed program was:" >&5 | |
29987 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29988 | ||
29989 | eval "$as_ac_var=no" | |
29990 | fi | |
ac1cb8d3 VS |
29991 | rm -f conftest.err conftest.$ac_objext \ |
29992 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29993 | fi |
29994 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29995 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29996 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29997 | cat >>confdefs.h <<_ACEOF | |
29998 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29999 | _ACEOF | |
30000 | break | |
30001 | fi | |
30002 | done | |
30003 | ||
30004 | ||
30005 | echo "$as_me:$LINENO: checking for statfs" >&5 | |
30006 | echo $ECHO_N "checking for statfs... $ECHO_C" >&6 | |
30007 | if test "${wx_cv_func_statfs+set}" = set; then | |
30008 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30009 | else | |
30010 | cat >conftest.$ac_ext <<_ACEOF | |
30011 | /* confdefs.h. */ | |
30012 | _ACEOF | |
30013 | cat confdefs.h >>conftest.$ac_ext | |
30014 | cat >>conftest.$ac_ext <<_ACEOF | |
30015 | /* end confdefs.h. */ | |
30016 | ||
30017 | #if defined(__BSD__) | |
30018 | #include <sys/param.h> | |
30019 | #include <sys/mount.h> | |
30020 | #else | |
30021 | #include <sys/vfs.h> | |
30022 | #endif | |
30023 | ||
30024 | int | |
30025 | main () | |
30026 | { | |
30027 | ||
30028 | long l; | |
30029 | struct statfs fs; | |
30030 | statfs("/", &fs); | |
30031 | l = fs.f_bsize; | |
30032 | l += fs.f_blocks; | |
30033 | l += fs.f_bavail; | |
30034 | ||
30035 | ; | |
30036 | return 0; | |
30037 | } | |
30038 | _ACEOF | |
30039 | rm -f conftest.$ac_objext | |
30040 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30041 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30042 | ac_status=$? |
ac1cb8d3 VS |
30043 | grep -v '^ *+' conftest.er1 >conftest.err |
30044 | rm -f conftest.er1 | |
30045 | cat conftest.err >&5 | |
a848cd7e SC |
30046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30047 | (exit $ac_status); } && | |
d51253e8 | 30048 | { ac_try='test -z "$ac_c_werror_flag" || 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_objext' | |
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 | ||
30061 | wx_cv_func_statfs=yes | |
30062 | ||
30063 | else | |
30064 | echo "$as_me: failed program was:" >&5 | |
30065 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30066 | ||
30067 | ||
30068 | wx_cv_func_statfs=no | |
30069 | ||
30070 | ||
30071 | fi | |
ac1cb8d3 | 30072 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30073 | |
30074 | fi | |
30075 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5 | |
30076 | echo "${ECHO_T}$wx_cv_func_statfs" >&6 | |
30077 | ||
30078 | if test "$wx_cv_func_statfs" = "yes"; then | |
30079 | wx_cv_type_statvfs_t="struct statfs" | |
30080 | cat >>confdefs.h <<\_ACEOF | |
30081 | #define HAVE_STATFS 1 | |
30082 | _ACEOF | |
30083 | ||
30084 | else | |
30085 | echo "$as_me:$LINENO: checking for statvfs" >&5 | |
30086 | echo $ECHO_N "checking for statvfs... $ECHO_C" >&6 | |
30087 | if test "${wx_cv_func_statvfs+set}" = set; then | |
30088 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30089 | else | |
30090 | cat >conftest.$ac_ext <<_ACEOF | |
30091 | /* confdefs.h. */ | |
30092 | _ACEOF | |
30093 | cat confdefs.h >>conftest.$ac_ext | |
30094 | cat >>conftest.$ac_ext <<_ACEOF | |
30095 | /* end confdefs.h. */ | |
30096 | ||
30097 | #include <stddef.h> | |
30098 | #include <sys/statvfs.h> | |
30099 | ||
30100 | int | |
30101 | main () | |
30102 | { | |
30103 | ||
30104 | statvfs("/", NULL); | |
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); } && | |
d51253e8 | 30119 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30121 | (eval $ac_try) 2>&5 | |
30122 | ac_status=$? | |
30123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30124 | (exit $ac_status); }; } && | |
30125 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30127 | (eval $ac_try) 2>&5 | |
30128 | ac_status=$? | |
30129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30130 | (exit $ac_status); }; }; then | |
30131 | wx_cv_func_statvfs=yes | |
30132 | else | |
30133 | echo "$as_me: failed program was:" >&5 | |
30134 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30135 | ||
30136 | wx_cv_func_statvfs=no | |
30137 | ||
30138 | fi | |
ac1cb8d3 | 30139 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30140 | |
30141 | fi | |
30142 | echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5 | |
30143 | echo "${ECHO_T}$wx_cv_func_statvfs" >&6 | |
30144 | ||
30145 | if test "$wx_cv_func_statvfs" = "yes"; then | |
30146 | ||
30147 | ||
30148 | ac_ext=cc | |
30149 | ac_cpp='$CXXCPP $CPPFLAGS' | |
30150 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30151 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30152 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
30153 | ||
30154 | ||
30155 | echo "$as_me:$LINENO: checking for statvfs argument type" >&5 | |
30156 | echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6 | |
30157 | if test "${wx_cv_type_statvfs_t+set}" = set; then | |
30158 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30159 | else | |
30160 | cat >conftest.$ac_ext <<_ACEOF | |
30161 | /* confdefs.h. */ | |
30162 | _ACEOF | |
30163 | cat confdefs.h >>conftest.$ac_ext | |
30164 | cat >>conftest.$ac_ext <<_ACEOF | |
30165 | /* end confdefs.h. */ | |
30166 | ||
30167 | #include <sys/statvfs.h> | |
30168 | ||
30169 | int | |
30170 | main () | |
30171 | { | |
30172 | ||
30173 | long l; | |
30174 | statvfs_t fs; | |
30175 | statvfs("/", &fs); | |
30176 | l = fs.f_bsize; | |
30177 | l += fs.f_blocks; | |
30178 | l += fs.f_bavail; | |
30179 | ||
30180 | ; | |
30181 | return 0; | |
30182 | } | |
30183 | _ACEOF | |
30184 | rm -f conftest.$ac_objext | |
30185 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30186 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30187 | ac_status=$? |
ac1cb8d3 VS |
30188 | grep -v '^ *+' conftest.er1 >conftest.err |
30189 | rm -f conftest.er1 | |
30190 | cat conftest.err >&5 | |
a848cd7e SC |
30191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30192 | (exit $ac_status); } && | |
d51253e8 | 30193 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30195 | (eval $ac_try) 2>&5 | |
30196 | ac_status=$? | |
30197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30198 | (exit $ac_status); }; } && | |
30199 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30201 | (eval $ac_try) 2>&5 | |
30202 | ac_status=$? | |
30203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30204 | (exit $ac_status); }; }; then | |
30205 | wx_cv_type_statvfs_t=statvfs_t | |
30206 | else | |
30207 | echo "$as_me: failed program was:" >&5 | |
30208 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30209 | ||
30210 | ||
30211 | cat >conftest.$ac_ext <<_ACEOF | |
30212 | /* confdefs.h. */ | |
30213 | _ACEOF | |
30214 | cat confdefs.h >>conftest.$ac_ext | |
30215 | cat >>conftest.$ac_ext <<_ACEOF | |
30216 | /* end confdefs.h. */ | |
30217 | ||
30218 | #include <sys/statvfs.h> | |
30219 | ||
30220 | int | |
30221 | main () | |
30222 | { | |
30223 | ||
30224 | long l; | |
30225 | struct statvfs fs; | |
30226 | statvfs("/", &fs); | |
30227 | l = fs.f_bsize; | |
30228 | l += fs.f_blocks; | |
30229 | l += fs.f_bavail; | |
30230 | ||
30231 | ; | |
30232 | return 0; | |
30233 | } | |
30234 | _ACEOF | |
30235 | rm -f conftest.$ac_objext | |
30236 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30237 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30238 | ac_status=$? |
ac1cb8d3 VS |
30239 | grep -v '^ *+' conftest.er1 >conftest.err |
30240 | rm -f conftest.er1 | |
30241 | cat conftest.err >&5 | |
a848cd7e SC |
30242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30243 | (exit $ac_status); } && | |
d51253e8 | 30244 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30246 | (eval $ac_try) 2>&5 | |
30247 | ac_status=$? | |
30248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30249 | (exit $ac_status); }; } && | |
30250 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30252 | (eval $ac_try) 2>&5 | |
30253 | ac_status=$? | |
30254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30255 | (exit $ac_status); }; }; then | |
30256 | wx_cv_type_statvfs_t="struct statvfs" | |
30257 | else | |
30258 | echo "$as_me: failed program was:" >&5 | |
30259 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30260 | ||
30261 | wx_cv_type_statvfs_t="unknown" | |
30262 | ||
30263 | fi | |
ac1cb8d3 | 30264 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30265 | |
30266 | ||
30267 | fi | |
ac1cb8d3 | 30268 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30269 | |
30270 | fi | |
30271 | echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5 | |
30272 | echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6 | |
30273 | ||
30274 | ac_ext=c | |
30275 | ac_cpp='$CPP $CPPFLAGS' | |
30276 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30277 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30278 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
30279 | ||
30280 | ||
30281 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
30282 | cat >>confdefs.h <<\_ACEOF | |
30283 | #define HAVE_STATVFS 1 | |
30284 | _ACEOF | |
30285 | ||
30286 | fi | |
30287 | else | |
30288 | wx_cv_type_statvfs_t="unknown" | |
30289 | fi | |
30290 | fi | |
30291 | ||
30292 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
30293 | cat >>confdefs.h <<_ACEOF | |
30294 | #define WX_STATFS_T $wx_cv_type_statvfs_t | |
30295 | _ACEOF | |
30296 | ||
30297 | else | |
30298 | { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5 | |
30299 | echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;} | |
30300 | fi | |
30301 | ||
30302 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
30303 | ||
30304 | ||
30305 | for ac_func in fcntl flock | |
30306 | do | |
30307 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30308 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30309 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30310 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30311 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30312 | else | |
30313 | cat >conftest.$ac_ext <<_ACEOF | |
30314 | /* confdefs.h. */ | |
30315 | _ACEOF | |
30316 | cat confdefs.h >>conftest.$ac_ext | |
30317 | cat >>conftest.$ac_ext <<_ACEOF | |
30318 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30319 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30320 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30321 | #define $ac_func innocuous_$ac_func | |
30322 | ||
a848cd7e SC |
30323 | /* System header to define __stub macros and hopefully few prototypes, |
30324 | which can conflict with char $ac_func (); below. | |
30325 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30326 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30327 | |
a848cd7e SC |
30328 | #ifdef __STDC__ |
30329 | # include <limits.h> | |
30330 | #else | |
30331 | # include <assert.h> | |
30332 | #endif | |
ac1cb8d3 VS |
30333 | |
30334 | #undef $ac_func | |
30335 | ||
a848cd7e SC |
30336 | /* Override any gcc2 internal prototype to avoid an error. */ |
30337 | #ifdef __cplusplus | |
30338 | extern "C" | |
30339 | { | |
30340 | #endif | |
30341 | /* We use char because int might match the return type of a gcc2 | |
30342 | builtin and then its argument prototype would still apply. */ | |
30343 | char $ac_func (); | |
30344 | /* The GNU C library defines this for functions which it implements | |
30345 | to always fail with ENOSYS. Some functions are actually named | |
30346 | something starting with __ and the normal name is an alias. */ | |
30347 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30348 | choke me | |
30349 | #else | |
30350 | char (*f) () = $ac_func; | |
30351 | #endif | |
30352 | #ifdef __cplusplus | |
30353 | } | |
30354 | #endif | |
30355 | ||
30356 | int | |
30357 | main () | |
30358 | { | |
30359 | return f != $ac_func; | |
30360 | ; | |
30361 | return 0; | |
30362 | } | |
30363 | _ACEOF | |
30364 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30365 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30366 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30367 | ac_status=$? |
ac1cb8d3 VS |
30368 | grep -v '^ *+' conftest.er1 >conftest.err |
30369 | rm -f conftest.er1 | |
30370 | cat conftest.err >&5 | |
a848cd7e SC |
30371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30372 | (exit $ac_status); } && | |
d51253e8 | 30373 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30375 | (eval $ac_try) 2>&5 | |
30376 | ac_status=$? | |
30377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30378 | (exit $ac_status); }; } && | |
30379 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30381 | (eval $ac_try) 2>&5 | |
30382 | ac_status=$? | |
30383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30384 | (exit $ac_status); }; }; then | |
30385 | eval "$as_ac_var=yes" | |
30386 | else | |
30387 | echo "$as_me: failed program was:" >&5 | |
30388 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30389 | ||
30390 | eval "$as_ac_var=no" | |
30391 | fi | |
ac1cb8d3 VS |
30392 | rm -f conftest.err conftest.$ac_objext \ |
30393 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30394 | fi |
30395 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30396 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30397 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30398 | cat >>confdefs.h <<_ACEOF | |
30399 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30400 | _ACEOF | |
30401 | break | |
30402 | fi | |
30403 | done | |
30404 | ||
30405 | ||
30406 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then | |
30407 | { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5 | |
30408 | echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;} | |
30409 | wxUSE_SNGLINST_CHECKER=no | |
30410 | fi | |
30411 | fi | |
30412 | ||
30413 | ||
30414 | for ac_func in timegm | |
30415 | do | |
30416 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30417 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30418 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30419 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30420 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30421 | else | |
30422 | cat >conftest.$ac_ext <<_ACEOF | |
30423 | /* confdefs.h. */ | |
30424 | _ACEOF | |
30425 | cat confdefs.h >>conftest.$ac_ext | |
30426 | cat >>conftest.$ac_ext <<_ACEOF | |
30427 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30428 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30429 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30430 | #define $ac_func innocuous_$ac_func | |
30431 | ||
a848cd7e SC |
30432 | /* System header to define __stub macros and hopefully few prototypes, |
30433 | which can conflict with char $ac_func (); below. | |
30434 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30435 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30436 | |
a848cd7e SC |
30437 | #ifdef __STDC__ |
30438 | # include <limits.h> | |
30439 | #else | |
30440 | # include <assert.h> | |
30441 | #endif | |
ac1cb8d3 VS |
30442 | |
30443 | #undef $ac_func | |
30444 | ||
a848cd7e SC |
30445 | /* Override any gcc2 internal prototype to avoid an error. */ |
30446 | #ifdef __cplusplus | |
30447 | extern "C" | |
30448 | { | |
30449 | #endif | |
30450 | /* We use char because int might match the return type of a gcc2 | |
30451 | builtin and then its argument prototype would still apply. */ | |
30452 | char $ac_func (); | |
30453 | /* The GNU C library defines this for functions which it implements | |
30454 | to always fail with ENOSYS. Some functions are actually named | |
30455 | something starting with __ and the normal name is an alias. */ | |
30456 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30457 | choke me | |
30458 | #else | |
30459 | char (*f) () = $ac_func; | |
30460 | #endif | |
30461 | #ifdef __cplusplus | |
30462 | } | |
30463 | #endif | |
30464 | ||
30465 | int | |
30466 | main () | |
30467 | { | |
30468 | return f != $ac_func; | |
30469 | ; | |
30470 | return 0; | |
30471 | } | |
30472 | _ACEOF | |
30473 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30474 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30475 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30476 | ac_status=$? |
ac1cb8d3 VS |
30477 | grep -v '^ *+' conftest.er1 >conftest.err |
30478 | rm -f conftest.er1 | |
30479 | cat conftest.err >&5 | |
a848cd7e SC |
30480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30481 | (exit $ac_status); } && | |
d51253e8 | 30482 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30484 | (eval $ac_try) 2>&5 | |
30485 | ac_status=$? | |
30486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30487 | (exit $ac_status); }; } && | |
30488 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30490 | (eval $ac_try) 2>&5 | |
30491 | ac_status=$? | |
30492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30493 | (exit $ac_status); }; }; then | |
30494 | eval "$as_ac_var=yes" | |
30495 | else | |
30496 | echo "$as_me: failed program was:" >&5 | |
30497 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30498 | ||
30499 | eval "$as_ac_var=no" | |
30500 | fi | |
ac1cb8d3 VS |
30501 | rm -f conftest.err conftest.$ac_objext \ |
30502 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30503 | fi |
30504 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30505 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30506 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30507 | cat >>confdefs.h <<_ACEOF | |
30508 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30509 | _ACEOF | |
30510 | ||
30511 | fi | |
30512 | done | |
30513 | ||
30514 | ||
30515 | ||
30516 | ||
30517 | for ac_func in putenv setenv | |
30518 | do | |
30519 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30520 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30521 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30522 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30523 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30524 | else | |
30525 | cat >conftest.$ac_ext <<_ACEOF | |
30526 | /* confdefs.h. */ | |
30527 | _ACEOF | |
30528 | cat confdefs.h >>conftest.$ac_ext | |
30529 | cat >>conftest.$ac_ext <<_ACEOF | |
30530 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30531 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30532 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30533 | #define $ac_func innocuous_$ac_func | |
30534 | ||
a848cd7e SC |
30535 | /* System header to define __stub macros and hopefully few prototypes, |
30536 | which can conflict with char $ac_func (); below. | |
30537 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30538 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30539 | |
a848cd7e SC |
30540 | #ifdef __STDC__ |
30541 | # include <limits.h> | |
30542 | #else | |
30543 | # include <assert.h> | |
30544 | #endif | |
ac1cb8d3 VS |
30545 | |
30546 | #undef $ac_func | |
30547 | ||
a848cd7e SC |
30548 | /* Override any gcc2 internal prototype to avoid an error. */ |
30549 | #ifdef __cplusplus | |
30550 | extern "C" | |
30551 | { | |
30552 | #endif | |
30553 | /* We use char because int might match the return type of a gcc2 | |
30554 | builtin and then its argument prototype would still apply. */ | |
30555 | char $ac_func (); | |
30556 | /* The GNU C library defines this for functions which it implements | |
30557 | to always fail with ENOSYS. Some functions are actually named | |
30558 | something starting with __ and the normal name is an alias. */ | |
30559 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30560 | choke me | |
30561 | #else | |
30562 | char (*f) () = $ac_func; | |
30563 | #endif | |
30564 | #ifdef __cplusplus | |
30565 | } | |
30566 | #endif | |
30567 | ||
30568 | int | |
30569 | main () | |
30570 | { | |
30571 | return f != $ac_func; | |
30572 | ; | |
30573 | return 0; | |
30574 | } | |
30575 | _ACEOF | |
30576 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30577 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30578 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30579 | ac_status=$? |
ac1cb8d3 VS |
30580 | grep -v '^ *+' conftest.er1 >conftest.err |
30581 | rm -f conftest.er1 | |
30582 | cat conftest.err >&5 | |
a848cd7e SC |
30583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30584 | (exit $ac_status); } && | |
d51253e8 | 30585 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30587 | (eval $ac_try) 2>&5 | |
30588 | ac_status=$? | |
30589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30590 | (exit $ac_status); }; } && | |
30591 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30593 | (eval $ac_try) 2>&5 | |
30594 | ac_status=$? | |
30595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30596 | (exit $ac_status); }; }; then | |
30597 | eval "$as_ac_var=yes" | |
30598 | else | |
30599 | echo "$as_me: failed program was:" >&5 | |
30600 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30601 | ||
30602 | eval "$as_ac_var=no" | |
30603 | fi | |
ac1cb8d3 VS |
30604 | rm -f conftest.err conftest.$ac_objext \ |
30605 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30606 | fi |
30607 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30608 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30609 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30610 | cat >>confdefs.h <<_ACEOF | |
30611 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30612 | _ACEOF | |
30613 | break | |
30614 | fi | |
30615 | done | |
30616 | ||
30617 | ||
30618 | HAVE_SOME_SLEEP_FUNC=0 | |
30619 | if test "$USE_BEOS" = 1; then | |
30620 | cat >>confdefs.h <<\_ACEOF | |
30621 | #define HAVE_SLEEP 1 | |
30622 | _ACEOF | |
30623 | ||
30624 | HAVE_SOME_SLEEP_FUNC=1 | |
30625 | fi | |
30626 | ||
30627 | if test "$USE_DARWIN" = 1; then | |
30628 | cat >>confdefs.h <<\_ACEOF | |
30629 | #define HAVE_USLEEP 1 | |
30630 | _ACEOF | |
30631 | ||
30632 | HAVE_SOME_SLEEP_FUNC=1 | |
30633 | fi | |
30634 | ||
30635 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then | |
30636 | POSIX4_LINK= | |
30637 | ||
30638 | for ac_func in nanosleep | |
30639 | do | |
30640 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30641 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30642 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30643 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30644 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30645 | else | |
30646 | cat >conftest.$ac_ext <<_ACEOF | |
30647 | /* confdefs.h. */ | |
30648 | _ACEOF | |
30649 | cat confdefs.h >>conftest.$ac_ext | |
30650 | cat >>conftest.$ac_ext <<_ACEOF | |
30651 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30652 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30653 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30654 | #define $ac_func innocuous_$ac_func | |
30655 | ||
a848cd7e SC |
30656 | /* System header to define __stub macros and hopefully few prototypes, |
30657 | which can conflict with char $ac_func (); below. | |
30658 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30659 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30660 | |
a848cd7e SC |
30661 | #ifdef __STDC__ |
30662 | # include <limits.h> | |
30663 | #else | |
30664 | # include <assert.h> | |
30665 | #endif | |
ac1cb8d3 VS |
30666 | |
30667 | #undef $ac_func | |
30668 | ||
a848cd7e SC |
30669 | /* Override any gcc2 internal prototype to avoid an error. */ |
30670 | #ifdef __cplusplus | |
30671 | extern "C" | |
30672 | { | |
30673 | #endif | |
30674 | /* We use char because int might match the return type of a gcc2 | |
30675 | builtin and then its argument prototype would still apply. */ | |
30676 | char $ac_func (); | |
30677 | /* The GNU C library defines this for functions which it implements | |
30678 | to always fail with ENOSYS. Some functions are actually named | |
30679 | something starting with __ and the normal name is an alias. */ | |
30680 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30681 | choke me | |
30682 | #else | |
30683 | char (*f) () = $ac_func; | |
30684 | #endif | |
30685 | #ifdef __cplusplus | |
30686 | } | |
30687 | #endif | |
30688 | ||
30689 | int | |
30690 | main () | |
30691 | { | |
30692 | return f != $ac_func; | |
30693 | ; | |
30694 | return 0; | |
30695 | } | |
30696 | _ACEOF | |
30697 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30698 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30699 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30700 | ac_status=$? |
ac1cb8d3 VS |
30701 | grep -v '^ *+' conftest.er1 >conftest.err |
30702 | rm -f conftest.er1 | |
30703 | cat conftest.err >&5 | |
a848cd7e SC |
30704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30705 | (exit $ac_status); } && | |
d51253e8 | 30706 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30708 | (eval $ac_try) 2>&5 | |
30709 | ac_status=$? | |
30710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30711 | (exit $ac_status); }; } && | |
30712 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30714 | (eval $ac_try) 2>&5 | |
30715 | ac_status=$? | |
30716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30717 | (exit $ac_status); }; }; then | |
30718 | eval "$as_ac_var=yes" | |
30719 | else | |
30720 | echo "$as_me: failed program was:" >&5 | |
30721 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30722 | ||
30723 | eval "$as_ac_var=no" | |
30724 | fi | |
ac1cb8d3 VS |
30725 | rm -f conftest.err conftest.$ac_objext \ |
30726 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30727 | fi |
30728 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30729 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30730 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30731 | cat >>confdefs.h <<_ACEOF | |
30732 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30733 | _ACEOF | |
30734 | cat >>confdefs.h <<\_ACEOF | |
30735 | #define HAVE_NANOSLEEP 1 | |
30736 | _ACEOF | |
30737 | ||
30738 | else | |
30739 | ||
30740 | echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5 | |
30741 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6 | |
30742 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then | |
30743 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30744 | else | |
30745 | ac_check_lib_save_LIBS=$LIBS | |
30746 | LIBS="-lposix4 $LIBS" | |
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 | ||
30754 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30755 | #ifdef __cplusplus | |
30756 | extern "C" | |
30757 | #endif | |
30758 | /* We use char because int might match the return type of a gcc2 | |
30759 | builtin and then its argument prototype would still apply. */ | |
30760 | char nanosleep (); | |
30761 | int | |
30762 | main () | |
30763 | { | |
30764 | nanosleep (); | |
30765 | ; | |
30766 | return 0; | |
30767 | } | |
30768 | _ACEOF | |
30769 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30770 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30771 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30772 | ac_status=$? |
ac1cb8d3 VS |
30773 | grep -v '^ *+' conftest.er1 >conftest.err |
30774 | rm -f conftest.er1 | |
30775 | cat conftest.err >&5 | |
a848cd7e SC |
30776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30777 | (exit $ac_status); } && | |
d51253e8 | 30778 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30780 | (eval $ac_try) 2>&5 | |
30781 | ac_status=$? | |
30782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30783 | (exit $ac_status); }; } && | |
30784 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30786 | (eval $ac_try) 2>&5 | |
30787 | ac_status=$? | |
30788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30789 | (exit $ac_status); }; }; then | |
30790 | ac_cv_lib_posix4_nanosleep=yes | |
30791 | else | |
30792 | echo "$as_me: failed program was:" >&5 | |
30793 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30794 | ||
30795 | ac_cv_lib_posix4_nanosleep=no | |
30796 | fi | |
ac1cb8d3 VS |
30797 | rm -f conftest.err conftest.$ac_objext \ |
30798 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30799 | LIBS=$ac_check_lib_save_LIBS |
30800 | fi | |
30801 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5 | |
30802 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6 | |
30803 | if test $ac_cv_lib_posix4_nanosleep = yes; then | |
30804 | ||
30805 | cat >>confdefs.h <<\_ACEOF | |
30806 | #define HAVE_NANOSLEEP 1 | |
30807 | _ACEOF | |
30808 | ||
30809 | POSIX4_LINK=" -lposix4" | |
30810 | ||
30811 | else | |
30812 | ||
30813 | ||
30814 | for ac_func in usleep | |
30815 | do | |
30816 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30817 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30818 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30819 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30820 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30821 | else | |
30822 | cat >conftest.$ac_ext <<_ACEOF | |
30823 | /* confdefs.h. */ | |
30824 | _ACEOF | |
30825 | cat confdefs.h >>conftest.$ac_ext | |
30826 | cat >>conftest.$ac_ext <<_ACEOF | |
30827 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30828 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30829 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30830 | #define $ac_func innocuous_$ac_func | |
30831 | ||
a848cd7e SC |
30832 | /* System header to define __stub macros and hopefully few prototypes, |
30833 | which can conflict with char $ac_func (); below. | |
30834 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30835 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30836 | |
a848cd7e SC |
30837 | #ifdef __STDC__ |
30838 | # include <limits.h> | |
30839 | #else | |
30840 | # include <assert.h> | |
30841 | #endif | |
ac1cb8d3 VS |
30842 | |
30843 | #undef $ac_func | |
30844 | ||
a848cd7e SC |
30845 | /* Override any gcc2 internal prototype to avoid an error. */ |
30846 | #ifdef __cplusplus | |
30847 | extern "C" | |
30848 | { | |
30849 | #endif | |
30850 | /* We use char because int might match the return type of a gcc2 | |
30851 | builtin and then its argument prototype would still apply. */ | |
30852 | char $ac_func (); | |
30853 | /* The GNU C library defines this for functions which it implements | |
30854 | to always fail with ENOSYS. Some functions are actually named | |
30855 | something starting with __ and the normal name is an alias. */ | |
30856 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30857 | choke me | |
30858 | #else | |
30859 | char (*f) () = $ac_func; | |
30860 | #endif | |
30861 | #ifdef __cplusplus | |
30862 | } | |
30863 | #endif | |
30864 | ||
30865 | int | |
30866 | main () | |
30867 | { | |
30868 | return f != $ac_func; | |
30869 | ; | |
30870 | return 0; | |
30871 | } | |
30872 | _ACEOF | |
30873 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30874 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30875 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30876 | ac_status=$? |
ac1cb8d3 VS |
30877 | grep -v '^ *+' conftest.er1 >conftest.err |
30878 | rm -f conftest.er1 | |
30879 | cat conftest.err >&5 | |
a848cd7e SC |
30880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30881 | (exit $ac_status); } && | |
d51253e8 | 30882 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30884 | (eval $ac_try) 2>&5 | |
30885 | ac_status=$? | |
30886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30887 | (exit $ac_status); }; } && | |
30888 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30890 | (eval $ac_try) 2>&5 | |
30891 | ac_status=$? | |
30892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30893 | (exit $ac_status); }; }; then | |
30894 | eval "$as_ac_var=yes" | |
30895 | else | |
30896 | echo "$as_me: failed program was:" >&5 | |
30897 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30898 | ||
30899 | eval "$as_ac_var=no" | |
30900 | fi | |
ac1cb8d3 VS |
30901 | rm -f conftest.err conftest.$ac_objext \ |
30902 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30903 | fi |
30904 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30905 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30906 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30907 | cat >>confdefs.h <<_ACEOF | |
30908 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30909 | _ACEOF | |
30910 | cat >>confdefs.h <<\_ACEOF | |
30911 | #define HAVE_USLEEP 1 | |
30912 | _ACEOF | |
30913 | ||
30914 | else | |
30915 | { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5 | |
30916 | echo "$as_me: WARNING: wxSleep() function will not work" >&2;} | |
30917 | ||
30918 | fi | |
30919 | done | |
30920 | ||
30921 | ||
30922 | ||
30923 | fi | |
30924 | ||
30925 | ||
30926 | ||
30927 | fi | |
30928 | done | |
30929 | ||
30930 | fi | |
30931 | ||
30932 | ||
30933 | ||
30934 | for ac_func in uname gethostname | |
30935 | do | |
30936 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30937 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30938 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30939 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30940 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30941 | else | |
30942 | cat >conftest.$ac_ext <<_ACEOF | |
30943 | /* confdefs.h. */ | |
30944 | _ACEOF | |
30945 | cat confdefs.h >>conftest.$ac_ext | |
30946 | cat >>conftest.$ac_ext <<_ACEOF | |
30947 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30948 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30949 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30950 | #define $ac_func innocuous_$ac_func | |
30951 | ||
a848cd7e SC |
30952 | /* System header to define __stub macros and hopefully few prototypes, |
30953 | which can conflict with char $ac_func (); below. | |
30954 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30955 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30956 | |
a848cd7e SC |
30957 | #ifdef __STDC__ |
30958 | # include <limits.h> | |
30959 | #else | |
30960 | # include <assert.h> | |
30961 | #endif | |
ac1cb8d3 VS |
30962 | |
30963 | #undef $ac_func | |
30964 | ||
a848cd7e SC |
30965 | /* Override any gcc2 internal prototype to avoid an error. */ |
30966 | #ifdef __cplusplus | |
30967 | extern "C" | |
30968 | { | |
30969 | #endif | |
30970 | /* We use char because int might match the return type of a gcc2 | |
30971 | builtin and then its argument prototype would still apply. */ | |
30972 | char $ac_func (); | |
30973 | /* The GNU C library defines this for functions which it implements | |
30974 | to always fail with ENOSYS. Some functions are actually named | |
30975 | something starting with __ and the normal name is an alias. */ | |
30976 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30977 | choke me | |
30978 | #else | |
30979 | char (*f) () = $ac_func; | |
30980 | #endif | |
30981 | #ifdef __cplusplus | |
30982 | } | |
30983 | #endif | |
30984 | ||
30985 | int | |
30986 | main () | |
30987 | { | |
30988 | return f != $ac_func; | |
30989 | ; | |
30990 | return 0; | |
30991 | } | |
30992 | _ACEOF | |
30993 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30994 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30995 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30996 | ac_status=$? |
ac1cb8d3 VS |
30997 | grep -v '^ *+' conftest.er1 >conftest.err |
30998 | rm -f conftest.er1 | |
30999 | cat conftest.err >&5 | |
a848cd7e SC |
31000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31001 | (exit $ac_status); } && | |
d51253e8 | 31002 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31004 | (eval $ac_try) 2>&5 | |
31005 | ac_status=$? | |
31006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31007 | (exit $ac_status); }; } && | |
31008 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31010 | (eval $ac_try) 2>&5 | |
31011 | ac_status=$? | |
31012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31013 | (exit $ac_status); }; }; then | |
31014 | eval "$as_ac_var=yes" | |
31015 | else | |
31016 | echo "$as_me: failed program was:" >&5 | |
31017 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31018 | ||
31019 | eval "$as_ac_var=no" | |
31020 | fi | |
ac1cb8d3 VS |
31021 | rm -f conftest.err conftest.$ac_objext \ |
31022 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31023 | fi |
31024 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31025 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31026 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31027 | cat >>confdefs.h <<_ACEOF | |
31028 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31029 | _ACEOF | |
31030 | break | |
31031 | fi | |
31032 | done | |
31033 | ||
31034 | ||
31035 | ||
31036 | ||
31037 | ac_ext=cc | |
31038 | ac_cpp='$CXXCPP $CPPFLAGS' | |
31039 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31040 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31041 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
31042 | ||
31043 | ||
31044 | ||
31045 | for ac_func in strtok_r | |
31046 | do | |
31047 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31048 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31049 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31050 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31051 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31052 | else | |
31053 | cat >conftest.$ac_ext <<_ACEOF | |
31054 | /* confdefs.h. */ | |
31055 | _ACEOF | |
31056 | cat confdefs.h >>conftest.$ac_ext | |
31057 | cat >>conftest.$ac_ext <<_ACEOF | |
31058 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31059 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31060 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31061 | #define $ac_func innocuous_$ac_func | |
31062 | ||
a848cd7e SC |
31063 | /* System header to define __stub macros and hopefully few prototypes, |
31064 | which can conflict with char $ac_func (); below. | |
31065 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31066 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31067 | |
a848cd7e SC |
31068 | #ifdef __STDC__ |
31069 | # include <limits.h> | |
31070 | #else | |
31071 | # include <assert.h> | |
31072 | #endif | |
ac1cb8d3 VS |
31073 | |
31074 | #undef $ac_func | |
31075 | ||
a848cd7e SC |
31076 | /* Override any gcc2 internal prototype to avoid an error. */ |
31077 | #ifdef __cplusplus | |
31078 | extern "C" | |
31079 | { | |
31080 | #endif | |
31081 | /* We use char because int might match the return type of a gcc2 | |
31082 | builtin and then its argument prototype would still apply. */ | |
31083 | char $ac_func (); | |
31084 | /* The GNU C library defines this for functions which it implements | |
31085 | to always fail with ENOSYS. Some functions are actually named | |
31086 | something starting with __ and the normal name is an alias. */ | |
31087 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31088 | choke me | |
31089 | #else | |
31090 | char (*f) () = $ac_func; | |
31091 | #endif | |
31092 | #ifdef __cplusplus | |
31093 | } | |
31094 | #endif | |
31095 | ||
31096 | int | |
31097 | main () | |
31098 | { | |
31099 | return f != $ac_func; | |
31100 | ; | |
31101 | return 0; | |
31102 | } | |
31103 | _ACEOF | |
31104 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31105 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31106 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31107 | ac_status=$? |
ac1cb8d3 VS |
31108 | grep -v '^ *+' conftest.er1 >conftest.err |
31109 | rm -f conftest.er1 | |
31110 | cat conftest.err >&5 | |
a848cd7e SC |
31111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31112 | (exit $ac_status); } && | |
d51253e8 | 31113 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31115 | (eval $ac_try) 2>&5 | |
31116 | ac_status=$? | |
31117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31118 | (exit $ac_status); }; } && | |
31119 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31121 | (eval $ac_try) 2>&5 | |
31122 | ac_status=$? | |
31123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31124 | (exit $ac_status); }; }; then | |
31125 | eval "$as_ac_var=yes" | |
31126 | else | |
31127 | echo "$as_me: failed program was:" >&5 | |
31128 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31129 | ||
31130 | eval "$as_ac_var=no" | |
31131 | fi | |
ac1cb8d3 VS |
31132 | rm -f conftest.err conftest.$ac_objext \ |
31133 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31134 | fi |
31135 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31136 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31137 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31138 | cat >>confdefs.h <<_ACEOF | |
31139 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31140 | _ACEOF | |
31141 | ||
31142 | fi | |
31143 | done | |
31144 | ||
31145 | ||
31146 | ac_ext=c | |
31147 | ac_cpp='$CPP $CPPFLAGS' | |
31148 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31149 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31150 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
31151 | ||
31152 | ||
31153 | INET_LINK= | |
31154 | ||
31155 | for ac_func in inet_addr | |
31156 | do | |
31157 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31158 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31159 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31160 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31161 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31162 | else | |
31163 | cat >conftest.$ac_ext <<_ACEOF | |
31164 | /* confdefs.h. */ | |
31165 | _ACEOF | |
31166 | cat confdefs.h >>conftest.$ac_ext | |
31167 | cat >>conftest.$ac_ext <<_ACEOF | |
31168 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31169 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31170 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31171 | #define $ac_func innocuous_$ac_func | |
31172 | ||
a848cd7e SC |
31173 | /* System header to define __stub macros and hopefully few prototypes, |
31174 | which can conflict with char $ac_func (); below. | |
31175 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31176 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31177 | |
a848cd7e SC |
31178 | #ifdef __STDC__ |
31179 | # include <limits.h> | |
31180 | #else | |
31181 | # include <assert.h> | |
31182 | #endif | |
ac1cb8d3 VS |
31183 | |
31184 | #undef $ac_func | |
31185 | ||
a848cd7e SC |
31186 | /* Override any gcc2 internal prototype to avoid an error. */ |
31187 | #ifdef __cplusplus | |
31188 | extern "C" | |
31189 | { | |
31190 | #endif | |
31191 | /* We use char because int might match the return type of a gcc2 | |
31192 | builtin and then its argument prototype would still apply. */ | |
31193 | char $ac_func (); | |
31194 | /* The GNU C library defines this for functions which it implements | |
31195 | to always fail with ENOSYS. Some functions are actually named | |
31196 | something starting with __ and the normal name is an alias. */ | |
31197 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31198 | choke me | |
31199 | #else | |
31200 | char (*f) () = $ac_func; | |
31201 | #endif | |
31202 | #ifdef __cplusplus | |
31203 | } | |
31204 | #endif | |
31205 | ||
31206 | int | |
31207 | main () | |
31208 | { | |
31209 | return f != $ac_func; | |
31210 | ; | |
31211 | return 0; | |
31212 | } | |
31213 | _ACEOF | |
31214 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31215 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31216 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31217 | ac_status=$? |
ac1cb8d3 VS |
31218 | grep -v '^ *+' conftest.er1 >conftest.err |
31219 | rm -f conftest.er1 | |
31220 | cat conftest.err >&5 | |
a848cd7e SC |
31221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31222 | (exit $ac_status); } && | |
d51253e8 | 31223 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31225 | (eval $ac_try) 2>&5 | |
31226 | ac_status=$? | |
31227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31228 | (exit $ac_status); }; } && | |
31229 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31231 | (eval $ac_try) 2>&5 | |
31232 | ac_status=$? | |
31233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31234 | (exit $ac_status); }; }; then | |
31235 | eval "$as_ac_var=yes" | |
31236 | else | |
31237 | echo "$as_me: failed program was:" >&5 | |
31238 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31239 | ||
31240 | eval "$as_ac_var=no" | |
31241 | fi | |
ac1cb8d3 VS |
31242 | rm -f conftest.err conftest.$ac_objext \ |
31243 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31244 | fi |
31245 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31246 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31247 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31248 | cat >>confdefs.h <<_ACEOF | |
31249 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31250 | _ACEOF | |
31251 | cat >>confdefs.h <<\_ACEOF | |
31252 | #define HAVE_INET_ADDR 1 | |
31253 | _ACEOF | |
31254 | ||
31255 | else | |
31256 | ||
31257 | echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5 | |
31258 | echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6 | |
31259 | if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then | |
31260 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31261 | else | |
31262 | ac_check_lib_save_LIBS=$LIBS | |
31263 | LIBS="-lnsl $LIBS" | |
31264 | cat >conftest.$ac_ext <<_ACEOF | |
31265 | /* confdefs.h. */ | |
31266 | _ACEOF | |
31267 | cat confdefs.h >>conftest.$ac_ext | |
31268 | cat >>conftest.$ac_ext <<_ACEOF | |
31269 | /* end confdefs.h. */ | |
31270 | ||
31271 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31272 | #ifdef __cplusplus | |
31273 | extern "C" | |
31274 | #endif | |
31275 | /* We use char because int might match the return type of a gcc2 | |
31276 | builtin and then its argument prototype would still apply. */ | |
31277 | char inet_addr (); | |
31278 | int | |
31279 | main () | |
31280 | { | |
31281 | inet_addr (); | |
31282 | ; | |
31283 | return 0; | |
31284 | } | |
31285 | _ACEOF | |
31286 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31287 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31288 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31289 | ac_status=$? |
ac1cb8d3 VS |
31290 | grep -v '^ *+' conftest.er1 >conftest.err |
31291 | rm -f conftest.er1 | |
31292 | cat conftest.err >&5 | |
a848cd7e SC |
31293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31294 | (exit $ac_status); } && | |
d51253e8 | 31295 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31297 | (eval $ac_try) 2>&5 | |
31298 | ac_status=$? | |
31299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31300 | (exit $ac_status); }; } && | |
31301 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31303 | (eval $ac_try) 2>&5 | |
31304 | ac_status=$? | |
31305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31306 | (exit $ac_status); }; }; then | |
31307 | ac_cv_lib_nsl_inet_addr=yes | |
31308 | else | |
31309 | echo "$as_me: failed program was:" >&5 | |
31310 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31311 | ||
31312 | ac_cv_lib_nsl_inet_addr=no | |
31313 | fi | |
ac1cb8d3 VS |
31314 | rm -f conftest.err conftest.$ac_objext \ |
31315 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31316 | LIBS=$ac_check_lib_save_LIBS |
31317 | fi | |
31318 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5 | |
31319 | echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6 | |
31320 | if test $ac_cv_lib_nsl_inet_addr = yes; then | |
31321 | INET_LINK="nsl" | |
31322 | else | |
31323 | ||
31324 | echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5 | |
31325 | echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6 | |
31326 | if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then | |
31327 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31328 | else | |
31329 | ac_check_lib_save_LIBS=$LIBS | |
31330 | LIBS="-lresolv $LIBS" | |
31331 | cat >conftest.$ac_ext <<_ACEOF | |
31332 | /* confdefs.h. */ | |
31333 | _ACEOF | |
31334 | cat confdefs.h >>conftest.$ac_ext | |
31335 | cat >>conftest.$ac_ext <<_ACEOF | |
31336 | /* end confdefs.h. */ | |
31337 | ||
31338 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31339 | #ifdef __cplusplus | |
31340 | extern "C" | |
31341 | #endif | |
31342 | /* We use char because int might match the return type of a gcc2 | |
31343 | builtin and then its argument prototype would still apply. */ | |
31344 | char inet_addr (); | |
31345 | int | |
31346 | main () | |
31347 | { | |
31348 | inet_addr (); | |
31349 | ; | |
31350 | return 0; | |
31351 | } | |
31352 | _ACEOF | |
31353 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31354 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31355 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31356 | ac_status=$? |
ac1cb8d3 VS |
31357 | grep -v '^ *+' conftest.er1 >conftest.err |
31358 | rm -f conftest.er1 | |
31359 | cat conftest.err >&5 | |
a848cd7e SC |
31360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31361 | (exit $ac_status); } && | |
d51253e8 | 31362 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31364 | (eval $ac_try) 2>&5 | |
31365 | ac_status=$? | |
31366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31367 | (exit $ac_status); }; } && | |
31368 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31370 | (eval $ac_try) 2>&5 | |
31371 | ac_status=$? | |
31372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31373 | (exit $ac_status); }; }; then | |
31374 | ac_cv_lib_resolv_inet_addr=yes | |
31375 | else | |
31376 | echo "$as_me: failed program was:" >&5 | |
31377 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31378 | ||
31379 | ac_cv_lib_resolv_inet_addr=no | |
31380 | fi | |
ac1cb8d3 VS |
31381 | rm -f conftest.err conftest.$ac_objext \ |
31382 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31383 | LIBS=$ac_check_lib_save_LIBS |
31384 | fi | |
31385 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5 | |
31386 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6 | |
31387 | if test $ac_cv_lib_resolv_inet_addr = yes; then | |
31388 | INET_LINK="resolv" | |
31389 | else | |
31390 | ||
31391 | echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5 | |
31392 | echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6 | |
31393 | if test "${ac_cv_lib_socket_inet_addr+set}" = set; then | |
31394 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31395 | else | |
31396 | ac_check_lib_save_LIBS=$LIBS | |
31397 | LIBS="-lsocket $LIBS" | |
31398 | cat >conftest.$ac_ext <<_ACEOF | |
31399 | /* confdefs.h. */ | |
31400 | _ACEOF | |
31401 | cat confdefs.h >>conftest.$ac_ext | |
31402 | cat >>conftest.$ac_ext <<_ACEOF | |
31403 | /* end confdefs.h. */ | |
31404 | ||
31405 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31406 | #ifdef __cplusplus | |
31407 | extern "C" | |
31408 | #endif | |
31409 | /* We use char because int might match the return type of a gcc2 | |
31410 | builtin and then its argument prototype would still apply. */ | |
31411 | char inet_addr (); | |
31412 | int | |
31413 | main () | |
31414 | { | |
31415 | inet_addr (); | |
31416 | ; | |
31417 | return 0; | |
31418 | } | |
31419 | _ACEOF | |
31420 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31421 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31422 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31423 | ac_status=$? |
ac1cb8d3 VS |
31424 | grep -v '^ *+' conftest.er1 >conftest.err |
31425 | rm -f conftest.er1 | |
31426 | cat conftest.err >&5 | |
a848cd7e SC |
31427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31428 | (exit $ac_status); } && | |
d51253e8 | 31429 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31431 | (eval $ac_try) 2>&5 | |
31432 | ac_status=$? | |
31433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31434 | (exit $ac_status); }; } && | |
31435 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31437 | (eval $ac_try) 2>&5 | |
31438 | ac_status=$? | |
31439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31440 | (exit $ac_status); }; }; then | |
31441 | ac_cv_lib_socket_inet_addr=yes | |
31442 | else | |
31443 | echo "$as_me: failed program was:" >&5 | |
31444 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31445 | ||
31446 | ac_cv_lib_socket_inet_addr=no | |
31447 | fi | |
ac1cb8d3 VS |
31448 | rm -f conftest.err conftest.$ac_objext \ |
31449 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31450 | LIBS=$ac_check_lib_save_LIBS |
31451 | fi | |
31452 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5 | |
31453 | echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6 | |
31454 | if test $ac_cv_lib_socket_inet_addr = yes; then | |
31455 | INET_LINK="socket" | |
31456 | ||
31457 | fi | |
31458 | ||
31459 | ||
31460 | ||
31461 | fi | |
31462 | ||
31463 | ||
31464 | ||
31465 | fi | |
31466 | ||
31467 | ||
31468 | ||
31469 | fi | |
31470 | done | |
31471 | ||
31472 | ||
31473 | ||
31474 | for ac_func in inet_aton | |
31475 | do | |
31476 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31477 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31478 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31479 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31480 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31481 | else | |
31482 | cat >conftest.$ac_ext <<_ACEOF | |
31483 | /* confdefs.h. */ | |
31484 | _ACEOF | |
31485 | cat confdefs.h >>conftest.$ac_ext | |
31486 | cat >>conftest.$ac_ext <<_ACEOF | |
31487 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31488 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31489 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31490 | #define $ac_func innocuous_$ac_func | |
31491 | ||
a848cd7e SC |
31492 | /* System header to define __stub macros and hopefully few prototypes, |
31493 | which can conflict with char $ac_func (); below. | |
31494 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31495 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31496 | |
a848cd7e SC |
31497 | #ifdef __STDC__ |
31498 | # include <limits.h> | |
31499 | #else | |
31500 | # include <assert.h> | |
31501 | #endif | |
ac1cb8d3 VS |
31502 | |
31503 | #undef $ac_func | |
31504 | ||
a848cd7e SC |
31505 | /* Override any gcc2 internal prototype to avoid an error. */ |
31506 | #ifdef __cplusplus | |
31507 | extern "C" | |
31508 | { | |
31509 | #endif | |
31510 | /* We use char because int might match the return type of a gcc2 | |
31511 | builtin and then its argument prototype would still apply. */ | |
31512 | char $ac_func (); | |
31513 | /* The GNU C library defines this for functions which it implements | |
31514 | to always fail with ENOSYS. Some functions are actually named | |
31515 | something starting with __ and the normal name is an alias. */ | |
31516 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31517 | choke me | |
31518 | #else | |
31519 | char (*f) () = $ac_func; | |
31520 | #endif | |
31521 | #ifdef __cplusplus | |
31522 | } | |
31523 | #endif | |
31524 | ||
31525 | int | |
31526 | main () | |
31527 | { | |
31528 | return f != $ac_func; | |
31529 | ; | |
31530 | return 0; | |
31531 | } | |
31532 | _ACEOF | |
31533 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31534 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31535 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31536 | ac_status=$? |
ac1cb8d3 VS |
31537 | grep -v '^ *+' conftest.er1 >conftest.err |
31538 | rm -f conftest.er1 | |
31539 | cat conftest.err >&5 | |
a848cd7e SC |
31540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31541 | (exit $ac_status); } && | |
d51253e8 | 31542 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31544 | (eval $ac_try) 2>&5 | |
31545 | ac_status=$? | |
31546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31547 | (exit $ac_status); }; } && | |
31548 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31550 | (eval $ac_try) 2>&5 | |
31551 | ac_status=$? | |
31552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31553 | (exit $ac_status); }; }; then | |
31554 | eval "$as_ac_var=yes" | |
31555 | else | |
31556 | echo "$as_me: failed program was:" >&5 | |
31557 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31558 | ||
31559 | eval "$as_ac_var=no" | |
31560 | fi | |
ac1cb8d3 VS |
31561 | rm -f conftest.err conftest.$ac_objext \ |
31562 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31563 | fi |
31564 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31565 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31566 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31567 | cat >>confdefs.h <<_ACEOF | |
31568 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31569 | _ACEOF | |
31570 | cat >>confdefs.h <<\_ACEOF | |
31571 | #define HAVE_INET_ATON 1 | |
31572 | _ACEOF | |
31573 | ||
31574 | else | |
31575 | ||
31576 | as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh` | |
31577 | echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5 | |
31578 | echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6 | |
31579 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then | |
31580 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31581 | else | |
31582 | ac_check_lib_save_LIBS=$LIBS | |
31583 | LIBS="-l$INET_LINK $LIBS" | |
31584 | cat >conftest.$ac_ext <<_ACEOF | |
31585 | /* confdefs.h. */ | |
31586 | _ACEOF | |
31587 | cat confdefs.h >>conftest.$ac_ext | |
31588 | cat >>conftest.$ac_ext <<_ACEOF | |
31589 | /* end confdefs.h. */ | |
31590 | ||
31591 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31592 | #ifdef __cplusplus | |
31593 | extern "C" | |
31594 | #endif | |
31595 | /* We use char because int might match the return type of a gcc2 | |
31596 | builtin and then its argument prototype would still apply. */ | |
31597 | char inet_aton (); | |
31598 | int | |
31599 | main () | |
31600 | { | |
31601 | inet_aton (); | |
31602 | ; | |
31603 | return 0; | |
31604 | } | |
31605 | _ACEOF | |
31606 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31607 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31608 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31609 | ac_status=$? |
ac1cb8d3 VS |
31610 | grep -v '^ *+' conftest.er1 >conftest.err |
31611 | rm -f conftest.er1 | |
31612 | cat conftest.err >&5 | |
a848cd7e SC |
31613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31614 | (exit $ac_status); } && | |
d51253e8 | 31615 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31617 | (eval $ac_try) 2>&5 | |
31618 | ac_status=$? | |
31619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31620 | (exit $ac_status); }; } && | |
31621 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31623 | (eval $ac_try) 2>&5 | |
31624 | ac_status=$? | |
31625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31626 | (exit $ac_status); }; }; then | |
31627 | eval "$as_ac_Lib=yes" | |
31628 | else | |
31629 | echo "$as_me: failed program was:" >&5 | |
31630 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31631 | ||
31632 | eval "$as_ac_Lib=no" | |
31633 | fi | |
ac1cb8d3 VS |
31634 | rm -f conftest.err conftest.$ac_objext \ |
31635 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31636 | LIBS=$ac_check_lib_save_LIBS |
31637 | fi | |
31638 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 | |
31639 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 | |
31640 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then | |
31641 | cat >>confdefs.h <<\_ACEOF | |
31642 | #define HAVE_INET_ATON 1 | |
31643 | _ACEOF | |
31644 | ||
31645 | fi | |
31646 | ||
31647 | ||
31648 | fi | |
31649 | done | |
31650 | ||
31651 | ||
31652 | if test "x$INET_LINK" != "x"; then | |
31653 | cat >>confdefs.h <<\_ACEOF | |
31654 | #define HAVE_INET_ADDR 1 | |
31655 | _ACEOF | |
31656 | ||
31657 | INET_LINK=" -l$INET_LINK" | |
31658 | fi | |
31659 | ||
31660 | fi | |
31661 | ||
31662 | ||
31663 | ||
31664 | EXTRALIBS_ESD= | |
31665 | echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5 | |
31666 | echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6 | |
31667 | if test "${ac_cv_lib_esd_esd_close+set}" = set; then | |
31668 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31669 | else | |
31670 | ac_check_lib_save_LIBS=$LIBS | |
31671 | LIBS="-lesd $LIBS" | |
31672 | cat >conftest.$ac_ext <<_ACEOF | |
31673 | /* confdefs.h. */ | |
31674 | _ACEOF | |
31675 | cat confdefs.h >>conftest.$ac_ext | |
31676 | cat >>conftest.$ac_ext <<_ACEOF | |
31677 | /* end confdefs.h. */ | |
31678 | ||
31679 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31680 | #ifdef __cplusplus | |
31681 | extern "C" | |
31682 | #endif | |
31683 | /* We use char because int might match the return type of a gcc2 | |
31684 | builtin and then its argument prototype would still apply. */ | |
31685 | char esd_close (); | |
31686 | int | |
31687 | main () | |
31688 | { | |
31689 | esd_close (); | |
31690 | ; | |
31691 | return 0; | |
31692 | } | |
31693 | _ACEOF | |
31694 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31695 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31696 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31697 | ac_status=$? |
ac1cb8d3 VS |
31698 | grep -v '^ *+' conftest.er1 >conftest.err |
31699 | rm -f conftest.er1 | |
31700 | cat conftest.err >&5 | |
a848cd7e SC |
31701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31702 | (exit $ac_status); } && | |
d51253e8 | 31703 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31705 | (eval $ac_try) 2>&5 | |
31706 | ac_status=$? | |
31707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31708 | (exit $ac_status); }; } && | |
31709 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31711 | (eval $ac_try) 2>&5 | |
31712 | ac_status=$? | |
31713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31714 | (exit $ac_status); }; }; then | |
31715 | ac_cv_lib_esd_esd_close=yes | |
31716 | else | |
31717 | echo "$as_me: failed program was:" >&5 | |
31718 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31719 | ||
31720 | ac_cv_lib_esd_esd_close=no | |
31721 | fi | |
ac1cb8d3 VS |
31722 | rm -f conftest.err conftest.$ac_objext \ |
31723 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31724 | LIBS=$ac_check_lib_save_LIBS |
31725 | fi | |
31726 | echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5 | |
31727 | echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6 | |
31728 | if test $ac_cv_lib_esd_esd_close = yes; then | |
31729 | ||
31730 | ||
31731 | for ac_header in esd.h | |
31732 | do | |
31733 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
31734 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31735 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31736 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31737 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31738 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31739 | fi | |
31740 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31741 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31742 | else | |
31743 | # Is the header compilable? | |
31744 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
31745 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
31746 | cat >conftest.$ac_ext <<_ACEOF | |
31747 | /* confdefs.h. */ | |
31748 | _ACEOF | |
31749 | cat confdefs.h >>conftest.$ac_ext | |
31750 | cat >>conftest.$ac_ext <<_ACEOF | |
31751 | /* end confdefs.h. */ | |
31752 | $ac_includes_default | |
31753 | #include <$ac_header> | |
31754 | _ACEOF | |
31755 | rm -f conftest.$ac_objext | |
31756 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31757 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31758 | ac_status=$? |
ac1cb8d3 VS |
31759 | grep -v '^ *+' conftest.er1 >conftest.err |
31760 | rm -f conftest.er1 | |
31761 | cat conftest.err >&5 | |
a848cd7e SC |
31762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31763 | (exit $ac_status); } && | |
d51253e8 | 31764 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31766 | (eval $ac_try) 2>&5 | |
31767 | ac_status=$? | |
31768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31769 | (exit $ac_status); }; } && | |
31770 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31772 | (eval $ac_try) 2>&5 | |
31773 | ac_status=$? | |
31774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31775 | (exit $ac_status); }; }; then | |
31776 | ac_header_compiler=yes | |
31777 | else | |
31778 | echo "$as_me: failed program was:" >&5 | |
31779 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31780 | ||
31781 | ac_header_compiler=no | |
31782 | fi | |
ac1cb8d3 | 31783 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31784 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
31785 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
31786 | ||
31787 | # Is the header present? | |
31788 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
31789 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
31790 | cat >conftest.$ac_ext <<_ACEOF | |
31791 | /* confdefs.h. */ | |
31792 | _ACEOF | |
31793 | cat confdefs.h >>conftest.$ac_ext | |
31794 | cat >>conftest.$ac_ext <<_ACEOF | |
31795 | /* end confdefs.h. */ | |
31796 | #include <$ac_header> | |
31797 | _ACEOF | |
31798 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
31799 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
31800 | ac_status=$? | |
31801 | grep -v '^ *+' conftest.er1 >conftest.err | |
31802 | rm -f conftest.er1 | |
31803 | cat conftest.err >&5 | |
31804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31805 | (exit $ac_status); } >/dev/null; then | |
31806 | if test -s conftest.err; then | |
31807 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 31808 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
31809 | else |
31810 | ac_cpp_err= | |
31811 | fi | |
31812 | else | |
31813 | ac_cpp_err=yes | |
31814 | fi | |
31815 | if test -z "$ac_cpp_err"; then | |
31816 | ac_header_preproc=yes | |
31817 | else | |
31818 | echo "$as_me: failed program was:" >&5 | |
31819 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31820 | ||
31821 | ac_header_preproc=no | |
31822 | fi | |
31823 | rm -f conftest.err conftest.$ac_ext | |
31824 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
31825 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
31826 | ||
31827 | # So? What about this header? | |
ac1cb8d3 VS |
31828 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
31829 | yes:no: ) | |
a848cd7e SC |
31830 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
31831 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
31832 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
31833 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
31834 | ac_header_preproc=yes | |
a848cd7e | 31835 | ;; |
ac1cb8d3 | 31836 | no:yes:* ) |
a848cd7e SC |
31837 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
31838 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
31839 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
31840 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
31841 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
31842 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
31843 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
31844 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
31845 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
31846 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
31847 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
31848 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
31849 | ( |
31850 | cat <<\_ASBOX | |
ac1cb8d3 VS |
31851 | ## ----------------------------------------- ## |
31852 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
31853 | ## ----------------------------------------- ## | |
a848cd7e SC |
31854 | _ASBOX |
31855 | ) | | |
31856 | sed "s/^/$as_me: WARNING: /" >&2 | |
31857 | ;; | |
31858 | esac | |
31859 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31860 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31861 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31862 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31863 | else | |
ac1cb8d3 | 31864 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
31865 | fi |
31866 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31867 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31868 | ||
31869 | fi | |
31870 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
31871 | cat >>confdefs.h <<_ACEOF | |
31872 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
31873 | _ACEOF | |
31874 | ||
31875 | EXTRALIBS_ESD="-lesd" | |
31876 | ||
31877 | fi | |
31878 | ||
31879 | done | |
31880 | ||
31881 | ||
31882 | fi | |
31883 | ||
31884 | ||
31885 | ||
31886 | echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5 | |
31887 | echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6 | |
31888 | cat >conftest.$ac_ext <<_ACEOF | |
31889 | /* confdefs.h. */ | |
31890 | _ACEOF | |
31891 | cat confdefs.h >>conftest.$ac_ext | |
31892 | cat >>conftest.$ac_ext <<_ACEOF | |
31893 | /* end confdefs.h. */ | |
31894 | #ifdef __linux__ | |
31895 | #include <linux/cdrom.h> | |
31896 | #else | |
31897 | /* For Solaris */ | |
31898 | #include <sys/cdio.h> | |
31899 | #endif | |
31900 | ||
31901 | int | |
31902 | main () | |
31903 | { | |
31904 | struct cdrom_tocentry entry, old_entry; | |
31905 | ; | |
31906 | return 0; | |
31907 | } | |
31908 | _ACEOF | |
31909 | rm -f conftest.$ac_objext | |
31910 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31911 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31912 | ac_status=$? |
ac1cb8d3 VS |
31913 | grep -v '^ *+' conftest.er1 >conftest.err |
31914 | rm -f conftest.er1 | |
31915 | cat conftest.err >&5 | |
a848cd7e SC |
31916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31917 | (exit $ac_status); } && | |
d51253e8 | 31918 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31920 | (eval $ac_try) 2>&5 | |
31921 | ac_status=$? | |
31922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31923 | (exit $ac_status); }; } && | |
31924 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31926 | (eval $ac_try) 2>&5 | |
31927 | ac_status=$? | |
31928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31929 | (exit $ac_status); }; }; then | |
31930 | echo "$as_me:$LINENO: result: yes" >&5 | |
31931 | echo "${ECHO_T}yes" >&6 | |
31932 | cat >>confdefs.h <<\_ACEOF | |
31933 | #define HAVE_KNOWN_CDROM_INTERFACE 1 | |
31934 | _ACEOF | |
31935 | ||
31936 | else | |
31937 | echo "$as_me: failed program was:" >&5 | |
31938 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31939 | ||
31940 | echo "$as_me:$LINENO: result: no" >&5 | |
31941 | echo "${ECHO_T}no" >&6 | |
31942 | fi | |
ac1cb8d3 | 31943 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31944 | |
31945 | ||
31946 | cat >confcache <<\_ACEOF | |
31947 | # This file is a shell script that caches the results of configure | |
31948 | # tests run on this system so they can be shared between configure | |
31949 | # scripts and configure runs, see configure's option --config-cache. | |
31950 | # It is not useful on other systems. If it contains results you don't | |
31951 | # want to keep, you may remove or edit it. | |
31952 | # | |
31953 | # config.status only pays attention to the cache file if you give it | |
31954 | # the --recheck option to rerun configure. | |
31955 | # | |
31956 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
31957 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
31958 | # following values. | |
31959 | ||
31960 | _ACEOF | |
31961 | ||
31962 | # The following way of writing the cache mishandles newlines in values, | |
31963 | # but we know of no workaround that is simple, portable, and efficient. | |
31964 | # So, don't put newlines in cache variables' values. | |
31965 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
31966 | # and sets the high bit in the cache file unless we assign to the vars. | |
31967 | { | |
31968 | (set) 2>&1 | | |
31969 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
31970 | *ac_space=\ *) | |
31971 | # `set' does not quote correctly, so add quotes (double-quote | |
31972 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
31973 | sed -n \ | |
ac1cb8d3 VS |
31974 | "s/'/'\\\\''/g; |
31975 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
31976 | ;; |
31977 | *) | |
31978 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
31979 | sed -n \ | |
ac1cb8d3 | 31980 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
31981 | ;; |
31982 | esac; | |
31983 | } | | |
31984 | sed ' | |
31985 | t clear | |
31986 | : clear | |
31987 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
31988 | t end | |
31989 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
31990 | : end' >>confcache | |
31991 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
31992 | if test -w $cache_file; then | |
31993 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
31994 | cat confcache >$cache_file | |
31995 | else | |
31996 | echo "not updating unwritable cache $cache_file" | |
31997 | fi | |
31998 | fi | |
31999 | rm -f confcache | |
32000 | ||
32001 | ||
32002 | CPP_MT_FLAG= | |
32003 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
32004 | ||
32005 | ||
32006 | THREADS_LINK= | |
32007 | THREADS_CFLAGS= | |
32008 | ||
32009 | if test "$wxUSE_THREADS" = "yes" ; then | |
32010 | if test "$USE_BEOS" = 1; then | |
32011 | { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5 | |
32012 | echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;} | |
32013 | wxUSE_THREADS="no" | |
32014 | fi | |
32015 | fi | |
32016 | ||
32017 | if test "$wxUSE_THREADS" = "yes" ; then | |
32018 | ||
32019 | ||
32020 | THREAD_OPTS="-pthread" | |
32021 | case "${host}" in | |
32022 | *-*-solaris2* | *-*-sunos4* ) | |
32023 | if test "x$GCC" = "xyes"; then | |
32024 | THREAD_OPTS="-pthreads $THREAD_OPTS" | |
32025 | else | |
32026 | THREAD_OPTS="-mt $THREAD_OPTS" | |
32027 | fi | |
32028 | ;; | |
32029 | *-*-freebsd*) | |
32030 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
32031 | ;; | |
32032 | *-*-darwin* | *-*-cygwin* ) | |
32033 | THREAD_OPTS="" | |
32034 | ;; | |
32035 | *-*-aix*) | |
32036 | THREAD_OPTS="pthreads" | |
32037 | ;; | |
32038 | *-hp-hpux* ) | |
32039 | if test "x$GCC" != "xyes"; then | |
32040 | THREAD_OPTS="" | |
32041 | fi | |
32042 | ;; | |
32043 | ||
32044 | *-*-irix* ) | |
32045 | if test "x$GCC" = "xyes"; then | |
32046 | THREAD_OPTS="" | |
32047 | fi | |
32048 | ;; | |
32049 | ||
32050 | *-*-*UnixWare*) | |
32051 | if test "x$GCC" != "xyes"; then | |
32052 | THREAD_OPTS="-Ethread" | |
32053 | fi | |
32054 | ;; | |
32055 | esac | |
32056 | ||
32057 | THREAD_OPTS="$THREAD_OPTS pthread none" | |
32058 | ||
32059 | THREADS_OK=no | |
32060 | for flag in $THREAD_OPTS; do | |
32061 | case $flag in | |
32062 | none) | |
32063 | echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 | |
32064 | echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6 | |
32065 | ;; | |
32066 | ||
32067 | -*) | |
32068 | echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 | |
32069 | echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6 | |
32070 | THREADS_CFLAGS="$flag" | |
32071 | ;; | |
32072 | ||
32073 | *) | |
32074 | echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 | |
32075 | echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6 | |
32076 | THREADS_LINK="-l$flag" | |
32077 | ;; | |
32078 | esac | |
32079 | ||
32080 | save_LIBS="$LIBS" | |
32081 | save_CFLAGS="$CFLAGS" | |
32082 | LIBS="$THREADS_LINK $LIBS" | |
32083 | CFLAGS="$THREADS_CFLAGS $CFLAGS" | |
32084 | ||
32085 | cat >conftest.$ac_ext <<_ACEOF | |
32086 | /* confdefs.h. */ | |
32087 | _ACEOF | |
32088 | cat confdefs.h >>conftest.$ac_ext | |
32089 | cat >>conftest.$ac_ext <<_ACEOF | |
32090 | /* end confdefs.h. */ | |
32091 | #include <pthread.h> | |
32092 | int | |
32093 | main () | |
32094 | { | |
32095 | pthread_create(0,0,0,0); | |
32096 | ; | |
32097 | return 0; | |
32098 | } | |
32099 | _ACEOF | |
32100 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32101 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32102 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32103 | ac_status=$? |
ac1cb8d3 VS |
32104 | grep -v '^ *+' conftest.er1 >conftest.err |
32105 | rm -f conftest.er1 | |
32106 | cat conftest.err >&5 | |
a848cd7e SC |
32107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32108 | (exit $ac_status); } && | |
d51253e8 | 32109 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32111 | (eval $ac_try) 2>&5 | |
32112 | ac_status=$? | |
32113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32114 | (exit $ac_status); }; } && | |
32115 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32117 | (eval $ac_try) 2>&5 | |
32118 | ac_status=$? | |
32119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32120 | (exit $ac_status); }; }; then | |
32121 | THREADS_OK=yes | |
32122 | else | |
32123 | echo "$as_me: failed program was:" >&5 | |
32124 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32125 | ||
32126 | fi | |
ac1cb8d3 VS |
32127 | rm -f conftest.err conftest.$ac_objext \ |
32128 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32129 | |
32130 | LIBS="$save_LIBS" | |
32131 | CFLAGS="$save_CFLAGS" | |
32132 | ||
32133 | echo "$as_me:$LINENO: result: $THREADS_OK" >&5 | |
32134 | echo "${ECHO_T}$THREADS_OK" >&6 | |
32135 | if test "x$THREADS_OK" = "xyes"; then | |
32136 | break; | |
32137 | fi | |
32138 | ||
32139 | THREADS_LINK="" | |
32140 | THREADS_CFLAGS="" | |
32141 | done | |
32142 | ||
32143 | if test "x$THREADS_OK" != "xyes"; then | |
32144 | wxUSE_THREADS=no | |
32145 | { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5 | |
32146 | echo "$as_me: WARNING: No thread support on this system... disabled" >&2;} | |
32147 | else | |
32148 | LDFLAGS="$THREADS_CFLAGS $LDFLAGS" | |
32149 | LIBS="$THREADS_LINK $LIBS" | |
32150 | ||
32151 | echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 | |
32152 | echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6 | |
32153 | flag=no | |
32154 | case "${host}" in | |
32155 | *-aix*) | |
32156 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
32157 | flag="-D_THREAD_SAFE" | |
32158 | ;; | |
32159 | *-freebsd*) | |
32160 | flag="-D_THREAD_SAFE" | |
32161 | ;; | |
32162 | *-hp-hpux* ) | |
32163 | flag="-D_REENTRANT" | |
32164 | if test "x$GCC" != "xyes"; then | |
32165 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
473276a9 VS |
32166 | |
32167 | LIBS="$LIBS -lcma" | |
a848cd7e SC |
32168 | fi |
32169 | ;; | |
32170 | *solaris* | alpha*-osf*) | |
32171 | flag="-D_REENTRANT" | |
32172 | ;; | |
32173 | esac | |
32174 | echo "$as_me:$LINENO: result: ${flag}" >&5 | |
32175 | echo "${ECHO_T}${flag}" >&6 | |
32176 | if test "x$flag" != xno; then | |
32177 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" | |
32178 | fi | |
32179 | ||
32180 | if test "x$THREADS_CFLAGS" != "x"; then | |
32181 | CFLAGS="$CFLAGS $THREADS_CFLAGS" | |
32182 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" | |
32183 | fi | |
32184 | fi | |
32185 | fi | |
32186 | ||
32187 | if test "$wxUSE_THREADS" = "yes" ; then | |
32188 | ||
32189 | for ac_func in thr_setconcurrency | |
32190 | do | |
32191 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32192 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32193 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32194 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32195 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32196 | else | |
32197 | cat >conftest.$ac_ext <<_ACEOF | |
32198 | /* confdefs.h. */ | |
32199 | _ACEOF | |
32200 | cat confdefs.h >>conftest.$ac_ext | |
32201 | cat >>conftest.$ac_ext <<_ACEOF | |
32202 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32203 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32204 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32205 | #define $ac_func innocuous_$ac_func | |
32206 | ||
a848cd7e SC |
32207 | /* System header to define __stub macros and hopefully few prototypes, |
32208 | which can conflict with char $ac_func (); below. | |
32209 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32210 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32211 | |
a848cd7e SC |
32212 | #ifdef __STDC__ |
32213 | # include <limits.h> | |
32214 | #else | |
32215 | # include <assert.h> | |
32216 | #endif | |
ac1cb8d3 VS |
32217 | |
32218 | #undef $ac_func | |
32219 | ||
a848cd7e SC |
32220 | /* Override any gcc2 internal prototype to avoid an error. */ |
32221 | #ifdef __cplusplus | |
32222 | extern "C" | |
32223 | { | |
32224 | #endif | |
32225 | /* We use char because int might match the return type of a gcc2 | |
32226 | builtin and then its argument prototype would still apply. */ | |
32227 | char $ac_func (); | |
32228 | /* The GNU C library defines this for functions which it implements | |
32229 | to always fail with ENOSYS. Some functions are actually named | |
32230 | something starting with __ and the normal name is an alias. */ | |
32231 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32232 | choke me | |
32233 | #else | |
32234 | char (*f) () = $ac_func; | |
32235 | #endif | |
32236 | #ifdef __cplusplus | |
32237 | } | |
32238 | #endif | |
32239 | ||
32240 | int | |
32241 | main () | |
32242 | { | |
32243 | return f != $ac_func; | |
32244 | ; | |
32245 | return 0; | |
32246 | } | |
32247 | _ACEOF | |
32248 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32249 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32250 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32251 | ac_status=$? |
ac1cb8d3 VS |
32252 | grep -v '^ *+' conftest.er1 >conftest.err |
32253 | rm -f conftest.er1 | |
32254 | cat conftest.err >&5 | |
a848cd7e SC |
32255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32256 | (exit $ac_status); } && | |
d51253e8 | 32257 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32259 | (eval $ac_try) 2>&5 | |
32260 | ac_status=$? | |
32261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32262 | (exit $ac_status); }; } && | |
32263 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32265 | (eval $ac_try) 2>&5 | |
32266 | ac_status=$? | |
32267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32268 | (exit $ac_status); }; }; then | |
32269 | eval "$as_ac_var=yes" | |
32270 | else | |
32271 | echo "$as_me: failed program was:" >&5 | |
32272 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32273 | ||
32274 | eval "$as_ac_var=no" | |
32275 | fi | |
ac1cb8d3 VS |
32276 | rm -f conftest.err conftest.$ac_objext \ |
32277 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32278 | fi |
32279 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32280 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32281 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32282 | cat >>confdefs.h <<_ACEOF | |
32283 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32284 | _ACEOF | |
32285 | ||
32286 | fi | |
32287 | done | |
32288 | ||
32289 | ||
32290 | ||
32291 | for ac_header in sched.h | |
32292 | do | |
32293 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
32294 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32295 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
32296 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
32297 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32298 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32299 | fi | |
32300 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
32301 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
32302 | else | |
32303 | # Is the header compilable? | |
32304 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
32305 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
32306 | cat >conftest.$ac_ext <<_ACEOF | |
32307 | /* confdefs.h. */ | |
32308 | _ACEOF | |
32309 | cat confdefs.h >>conftest.$ac_ext | |
32310 | cat >>conftest.$ac_ext <<_ACEOF | |
32311 | /* end confdefs.h. */ | |
32312 | $ac_includes_default | |
32313 | #include <$ac_header> | |
32314 | _ACEOF | |
32315 | rm -f conftest.$ac_objext | |
32316 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32317 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32318 | ac_status=$? |
ac1cb8d3 VS |
32319 | grep -v '^ *+' conftest.er1 >conftest.err |
32320 | rm -f conftest.er1 | |
32321 | cat conftest.err >&5 | |
a848cd7e SC |
32322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32323 | (exit $ac_status); } && | |
d51253e8 | 32324 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32326 | (eval $ac_try) 2>&5 | |
32327 | ac_status=$? | |
32328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32329 | (exit $ac_status); }; } && | |
32330 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32332 | (eval $ac_try) 2>&5 | |
32333 | ac_status=$? | |
32334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32335 | (exit $ac_status); }; }; then | |
32336 | ac_header_compiler=yes | |
32337 | else | |
32338 | echo "$as_me: failed program was:" >&5 | |
32339 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32340 | ||
32341 | ac_header_compiler=no | |
32342 | fi | |
ac1cb8d3 | 32343 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32344 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
32345 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
32346 | ||
32347 | # Is the header present? | |
32348 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
32349 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
32350 | cat >conftest.$ac_ext <<_ACEOF | |
32351 | /* confdefs.h. */ | |
32352 | _ACEOF | |
32353 | cat confdefs.h >>conftest.$ac_ext | |
32354 | cat >>conftest.$ac_ext <<_ACEOF | |
32355 | /* end confdefs.h. */ | |
32356 | #include <$ac_header> | |
32357 | _ACEOF | |
32358 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
32359 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
32360 | ac_status=$? | |
32361 | grep -v '^ *+' conftest.er1 >conftest.err | |
32362 | rm -f conftest.er1 | |
32363 | cat conftest.err >&5 | |
32364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32365 | (exit $ac_status); } >/dev/null; then | |
32366 | if test -s conftest.err; then | |
32367 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 32368 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
32369 | else |
32370 | ac_cpp_err= | |
32371 | fi | |
32372 | else | |
32373 | ac_cpp_err=yes | |
32374 | fi | |
32375 | if test -z "$ac_cpp_err"; then | |
32376 | ac_header_preproc=yes | |
32377 | else | |
32378 | echo "$as_me: failed program was:" >&5 | |
32379 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32380 | ||
32381 | ac_header_preproc=no | |
32382 | fi | |
32383 | rm -f conftest.err conftest.$ac_ext | |
32384 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
32385 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
32386 | ||
32387 | # So? What about this header? | |
ac1cb8d3 VS |
32388 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
32389 | yes:no: ) | |
a848cd7e SC |
32390 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
32391 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
32392 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
32393 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
32394 | ac_header_preproc=yes | |
a848cd7e | 32395 | ;; |
ac1cb8d3 | 32396 | no:yes:* ) |
a848cd7e SC |
32397 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
32398 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
32399 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
32400 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
32401 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
32402 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
32403 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
32404 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
32405 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
32406 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
32407 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
32408 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
32409 | ( |
32410 | cat <<\_ASBOX | |
ac1cb8d3 VS |
32411 | ## ----------------------------------------- ## |
32412 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
32413 | ## ----------------------------------------- ## | |
a848cd7e SC |
32414 | _ASBOX |
32415 | ) | | |
32416 | sed "s/^/$as_me: WARNING: /" >&2 | |
32417 | ;; | |
32418 | esac | |
32419 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
32420 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
32421 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32422 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32423 | else | |
ac1cb8d3 | 32424 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
32425 | fi |
32426 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
32427 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
32428 | ||
32429 | fi | |
32430 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
32431 | cat >>confdefs.h <<_ACEOF | |
32432 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
32433 | _ACEOF | |
32434 | ||
32435 | fi | |
32436 | ||
32437 | done | |
32438 | ||
32439 | if test "$ac_cv_header_sched_h" = "yes"; then | |
32440 | echo "$as_me:$LINENO: checking for sched_yield" >&5 | |
32441 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 | |
32442 | if test "${ac_cv_func_sched_yield+set}" = set; then | |
32443 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32444 | else | |
32445 | cat >conftest.$ac_ext <<_ACEOF | |
32446 | /* confdefs.h. */ | |
32447 | _ACEOF | |
32448 | cat confdefs.h >>conftest.$ac_ext | |
32449 | cat >>conftest.$ac_ext <<_ACEOF | |
32450 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32451 | /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield. |
32452 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32453 | #define sched_yield innocuous_sched_yield | |
32454 | ||
a848cd7e SC |
32455 | /* System header to define __stub macros and hopefully few prototypes, |
32456 | which can conflict with char sched_yield (); below. | |
32457 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32458 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32459 | |
a848cd7e SC |
32460 | #ifdef __STDC__ |
32461 | # include <limits.h> | |
32462 | #else | |
32463 | # include <assert.h> | |
32464 | #endif | |
ac1cb8d3 VS |
32465 | |
32466 | #undef sched_yield | |
32467 | ||
a848cd7e SC |
32468 | /* Override any gcc2 internal prototype to avoid an error. */ |
32469 | #ifdef __cplusplus | |
32470 | extern "C" | |
32471 | { | |
32472 | #endif | |
32473 | /* We use char because int might match the return type of a gcc2 | |
32474 | builtin and then its argument prototype would still apply. */ | |
32475 | char sched_yield (); | |
32476 | /* The GNU C library defines this for functions which it implements | |
32477 | to always fail with ENOSYS. Some functions are actually named | |
32478 | something starting with __ and the normal name is an alias. */ | |
32479 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
32480 | choke me | |
32481 | #else | |
32482 | char (*f) () = sched_yield; | |
32483 | #endif | |
32484 | #ifdef __cplusplus | |
32485 | } | |
32486 | #endif | |
32487 | ||
32488 | int | |
32489 | main () | |
32490 | { | |
32491 | return f != sched_yield; | |
32492 | ; | |
32493 | return 0; | |
32494 | } | |
32495 | _ACEOF | |
32496 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32497 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32498 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32499 | ac_status=$? |
ac1cb8d3 VS |
32500 | grep -v '^ *+' conftest.er1 >conftest.err |
32501 | rm -f conftest.er1 | |
32502 | cat conftest.err >&5 | |
a848cd7e SC |
32503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32504 | (exit $ac_status); } && | |
d51253e8 | 32505 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32507 | (eval $ac_try) 2>&5 | |
32508 | ac_status=$? | |
32509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32510 | (exit $ac_status); }; } && | |
32511 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32513 | (eval $ac_try) 2>&5 | |
32514 | ac_status=$? | |
32515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32516 | (exit $ac_status); }; }; then | |
32517 | ac_cv_func_sched_yield=yes | |
32518 | else | |
32519 | echo "$as_me: failed program was:" >&5 | |
32520 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32521 | ||
32522 | ac_cv_func_sched_yield=no | |
32523 | fi | |
ac1cb8d3 VS |
32524 | rm -f conftest.err conftest.$ac_objext \ |
32525 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32526 | fi |
32527 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 | |
32528 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 | |
32529 | if test $ac_cv_func_sched_yield = yes; then | |
32530 | cat >>confdefs.h <<\_ACEOF | |
32531 | #define HAVE_SCHED_YIELD 1 | |
32532 | _ACEOF | |
32533 | ||
32534 | else | |
32535 | ||
32536 | echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5 | |
32537 | echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6 | |
32538 | if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then | |
32539 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32540 | else | |
32541 | ac_check_lib_save_LIBS=$LIBS | |
32542 | LIBS="-lposix4 $LIBS" | |
32543 | cat >conftest.$ac_ext <<_ACEOF | |
32544 | /* confdefs.h. */ | |
32545 | _ACEOF | |
32546 | cat confdefs.h >>conftest.$ac_ext | |
32547 | cat >>conftest.$ac_ext <<_ACEOF | |
32548 | /* end confdefs.h. */ | |
32549 | ||
32550 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32551 | #ifdef __cplusplus | |
32552 | extern "C" | |
32553 | #endif | |
32554 | /* We use char because int might match the return type of a gcc2 | |
32555 | builtin and then its argument prototype would still apply. */ | |
32556 | char sched_yield (); | |
32557 | int | |
32558 | main () | |
32559 | { | |
32560 | sched_yield (); | |
32561 | ; | |
32562 | return 0; | |
32563 | } | |
32564 | _ACEOF | |
32565 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32566 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32567 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32568 | ac_status=$? |
ac1cb8d3 VS |
32569 | grep -v '^ *+' conftest.er1 >conftest.err |
32570 | rm -f conftest.er1 | |
32571 | cat conftest.err >&5 | |
a848cd7e SC |
32572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32573 | (exit $ac_status); } && | |
d51253e8 | 32574 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32576 | (eval $ac_try) 2>&5 | |
32577 | ac_status=$? | |
32578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32579 | (exit $ac_status); }; } && | |
32580 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32582 | (eval $ac_try) 2>&5 | |
32583 | ac_status=$? | |
32584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32585 | (exit $ac_status); }; }; then | |
32586 | ac_cv_lib_posix4_sched_yield=yes | |
32587 | else | |
32588 | echo "$as_me: failed program was:" >&5 | |
32589 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32590 | ||
32591 | ac_cv_lib_posix4_sched_yield=no | |
32592 | fi | |
ac1cb8d3 VS |
32593 | rm -f conftest.err conftest.$ac_objext \ |
32594 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32595 | LIBS=$ac_check_lib_save_LIBS |
32596 | fi | |
32597 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5 | |
32598 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6 | |
32599 | if test $ac_cv_lib_posix4_sched_yield = yes; then | |
32600 | cat >>confdefs.h <<\_ACEOF | |
32601 | #define HAVE_SCHED_YIELD 1 | |
32602 | _ACEOF | |
32603 | POSIX4_LINK=" -lposix4" | |
32604 | else | |
32605 | { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5 | |
32606 | echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;} | |
32607 | ||
32608 | fi | |
32609 | ||
32610 | ||
32611 | ||
32612 | fi | |
32613 | ||
32614 | fi | |
32615 | ||
32616 | HAVE_PRIOR_FUNCS=0 | |
32617 | echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5 | |
32618 | echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6 | |
32619 | if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then | |
32620 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32621 | else | |
32622 | cat >conftest.$ac_ext <<_ACEOF | |
32623 | /* confdefs.h. */ | |
32624 | _ACEOF | |
32625 | cat confdefs.h >>conftest.$ac_ext | |
32626 | cat >>conftest.$ac_ext <<_ACEOF | |
32627 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32628 | /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy. |
32629 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32630 | #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy | |
32631 | ||
a848cd7e SC |
32632 | /* System header to define __stub macros and hopefully few prototypes, |
32633 | which can conflict with char pthread_attr_getschedpolicy (); below. | |
32634 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32635 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32636 | |
a848cd7e SC |
32637 | #ifdef __STDC__ |
32638 | # include <limits.h> | |
32639 | #else | |
32640 | # include <assert.h> | |
32641 | #endif | |
ac1cb8d3 VS |
32642 | |
32643 | #undef pthread_attr_getschedpolicy | |
32644 | ||
a848cd7e SC |
32645 | /* Override any gcc2 internal prototype to avoid an error. */ |
32646 | #ifdef __cplusplus | |
32647 | extern "C" | |
32648 | { | |
32649 | #endif | |
32650 | /* We use char because int might match the return type of a gcc2 | |
32651 | builtin and then its argument prototype would still apply. */ | |
32652 | char pthread_attr_getschedpolicy (); | |
32653 | /* The GNU C library defines this for functions which it implements | |
32654 | to always fail with ENOSYS. Some functions are actually named | |
32655 | something starting with __ and the normal name is an alias. */ | |
32656 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
32657 | choke me | |
32658 | #else | |
32659 | char (*f) () = pthread_attr_getschedpolicy; | |
32660 | #endif | |
32661 | #ifdef __cplusplus | |
32662 | } | |
32663 | #endif | |
32664 | ||
32665 | int | |
32666 | main () | |
32667 | { | |
32668 | return f != pthread_attr_getschedpolicy; | |
32669 | ; | |
32670 | return 0; | |
32671 | } | |
32672 | _ACEOF | |
32673 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32674 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32675 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32676 | ac_status=$? |
ac1cb8d3 VS |
32677 | grep -v '^ *+' conftest.er1 >conftest.err |
32678 | rm -f conftest.er1 | |
32679 | cat conftest.err >&5 | |
a848cd7e SC |
32680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32681 | (exit $ac_status); } && | |
d51253e8 | 32682 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32684 | (eval $ac_try) 2>&5 | |
32685 | ac_status=$? | |
32686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32687 | (exit $ac_status); }; } && | |
32688 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32690 | (eval $ac_try) 2>&5 | |
32691 | ac_status=$? | |
32692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32693 | (exit $ac_status); }; }; then | |
32694 | ac_cv_func_pthread_attr_getschedpolicy=yes | |
32695 | else | |
32696 | echo "$as_me: failed program was:" >&5 | |
32697 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32698 | ||
32699 | ac_cv_func_pthread_attr_getschedpolicy=no | |
32700 | fi | |
ac1cb8d3 VS |
32701 | rm -f conftest.err conftest.$ac_objext \ |
32702 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32703 | fi |
32704 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5 | |
32705 | echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6 | |
32706 | if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then | |
32707 | echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5 | |
32708 | echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6 | |
32709 | if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then | |
32710 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32711 | else | |
32712 | cat >conftest.$ac_ext <<_ACEOF | |
32713 | /* confdefs.h. */ | |
32714 | _ACEOF | |
32715 | cat confdefs.h >>conftest.$ac_ext | |
32716 | cat >>conftest.$ac_ext <<_ACEOF | |
32717 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32718 | /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam. |
32719 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32720 | #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam | |
32721 | ||
a848cd7e SC |
32722 | /* System header to define __stub macros and hopefully few prototypes, |
32723 | which can conflict with char pthread_attr_setschedparam (); below. | |
32724 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32725 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32726 | |
a848cd7e SC |
32727 | #ifdef __STDC__ |
32728 | # include <limits.h> | |
32729 | #else | |
32730 | # include <assert.h> | |
32731 | #endif | |
ac1cb8d3 VS |
32732 | |
32733 | #undef pthread_attr_setschedparam | |
32734 | ||
a848cd7e SC |
32735 | /* Override any gcc2 internal prototype to avoid an error. */ |
32736 | #ifdef __cplusplus | |
32737 | extern "C" | |
32738 | { | |
32739 | #endif | |
32740 | /* We use char because int might match the return type of a gcc2 | |
32741 | builtin and then its argument prototype would still apply. */ | |
32742 | char pthread_attr_setschedparam (); | |
32743 | /* The GNU C library defines this for functions which it implements | |
32744 | to always fail with ENOSYS. Some functions are actually named | |
32745 | something starting with __ and the normal name is an alias. */ | |
32746 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
32747 | choke me | |
32748 | #else | |
32749 | char (*f) () = pthread_attr_setschedparam; | |
32750 | #endif | |
32751 | #ifdef __cplusplus | |
32752 | } | |
32753 | #endif | |
32754 | ||
32755 | int | |
32756 | main () | |
32757 | { | |
32758 | return f != pthread_attr_setschedparam; | |
32759 | ; | |
32760 | return 0; | |
32761 | } | |
32762 | _ACEOF | |
32763 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32764 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32765 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32766 | ac_status=$? |
ac1cb8d3 VS |
32767 | grep -v '^ *+' conftest.er1 >conftest.err |
32768 | rm -f conftest.er1 | |
32769 | cat conftest.err >&5 | |
a848cd7e SC |
32770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32771 | (exit $ac_status); } && | |
d51253e8 | 32772 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32774 | (eval $ac_try) 2>&5 | |
32775 | ac_status=$? | |
32776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32777 | (exit $ac_status); }; } && | |
32778 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32780 | (eval $ac_try) 2>&5 | |
32781 | ac_status=$? | |
32782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32783 | (exit $ac_status); }; }; then | |
32784 | ac_cv_func_pthread_attr_setschedparam=yes | |
32785 | else | |
32786 | echo "$as_me: failed program was:" >&5 | |
32787 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32788 | ||
32789 | ac_cv_func_pthread_attr_setschedparam=no | |
32790 | fi | |
ac1cb8d3 VS |
32791 | rm -f conftest.err conftest.$ac_objext \ |
32792 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32793 | fi |
32794 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5 | |
32795 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6 | |
32796 | if test $ac_cv_func_pthread_attr_setschedparam = yes; then | |
32797 | echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5 | |
32798 | echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6 | |
32799 | if test "${ac_cv_func_sched_get_priority_max+set}" = set; then | |
32800 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32801 | else | |
32802 | cat >conftest.$ac_ext <<_ACEOF | |
32803 | /* confdefs.h. */ | |
32804 | _ACEOF | |
32805 | cat confdefs.h >>conftest.$ac_ext | |
32806 | cat >>conftest.$ac_ext <<_ACEOF | |
32807 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32808 | /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max. |
32809 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32810 | #define sched_get_priority_max innocuous_sched_get_priority_max | |
32811 | ||
a848cd7e SC |
32812 | /* System header to define __stub macros and hopefully few prototypes, |
32813 | which can conflict with char sched_get_priority_max (); below. | |
32814 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32815 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32816 | |
a848cd7e SC |
32817 | #ifdef __STDC__ |
32818 | # include <limits.h> | |
32819 | #else | |
32820 | # include <assert.h> | |
32821 | #endif | |
ac1cb8d3 VS |
32822 | |
32823 | #undef sched_get_priority_max | |
32824 | ||
a848cd7e SC |
32825 | /* Override any gcc2 internal prototype to avoid an error. */ |
32826 | #ifdef __cplusplus | |
32827 | extern "C" | |
32828 | { | |
32829 | #endif | |
32830 | /* We use char because int might match the return type of a gcc2 | |
32831 | builtin and then its argument prototype would still apply. */ | |
32832 | char sched_get_priority_max (); | |
32833 | /* The GNU C library defines this for functions which it implements | |
32834 | to always fail with ENOSYS. Some functions are actually named | |
32835 | something starting with __ and the normal name is an alias. */ | |
32836 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
32837 | choke me | |
32838 | #else | |
32839 | char (*f) () = sched_get_priority_max; | |
32840 | #endif | |
32841 | #ifdef __cplusplus | |
32842 | } | |
32843 | #endif | |
32844 | ||
32845 | int | |
32846 | main () | |
32847 | { | |
32848 | return f != sched_get_priority_max; | |
32849 | ; | |
32850 | return 0; | |
32851 | } | |
32852 | _ACEOF | |
32853 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32854 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32855 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32856 | ac_status=$? |
ac1cb8d3 VS |
32857 | grep -v '^ *+' conftest.er1 >conftest.err |
32858 | rm -f conftest.er1 | |
32859 | cat conftest.err >&5 | |
a848cd7e SC |
32860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32861 | (exit $ac_status); } && | |
d51253e8 | 32862 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32864 | (eval $ac_try) 2>&5 | |
32865 | ac_status=$? | |
32866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32867 | (exit $ac_status); }; } && | |
32868 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32870 | (eval $ac_try) 2>&5 | |
32871 | ac_status=$? | |
32872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32873 | (exit $ac_status); }; }; then | |
32874 | ac_cv_func_sched_get_priority_max=yes | |
32875 | else | |
32876 | echo "$as_me: failed program was:" >&5 | |
32877 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32878 | ||
32879 | ac_cv_func_sched_get_priority_max=no | |
32880 | fi | |
ac1cb8d3 VS |
32881 | rm -f conftest.err conftest.$ac_objext \ |
32882 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32883 | fi |
32884 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5 | |
32885 | echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6 | |
32886 | if test $ac_cv_func_sched_get_priority_max = yes; then | |
32887 | HAVE_PRIOR_FUNCS=1 | |
32888 | else | |
32889 | echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5 | |
32890 | echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6 | |
32891 | if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then | |
32892 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32893 | else | |
32894 | ac_check_lib_save_LIBS=$LIBS | |
32895 | LIBS="-lposix4 $LIBS" | |
32896 | cat >conftest.$ac_ext <<_ACEOF | |
32897 | /* confdefs.h. */ | |
32898 | _ACEOF | |
32899 | cat confdefs.h >>conftest.$ac_ext | |
32900 | cat >>conftest.$ac_ext <<_ACEOF | |
32901 | /* end confdefs.h. */ | |
32902 | ||
32903 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32904 | #ifdef __cplusplus | |
32905 | extern "C" | |
32906 | #endif | |
32907 | /* We use char because int might match the return type of a gcc2 | |
32908 | builtin and then its argument prototype would still apply. */ | |
32909 | char sched_get_priority_max (); | |
32910 | int | |
32911 | main () | |
32912 | { | |
32913 | sched_get_priority_max (); | |
32914 | ; | |
32915 | return 0; | |
32916 | } | |
32917 | _ACEOF | |
32918 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32919 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32920 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32921 | ac_status=$? |
ac1cb8d3 VS |
32922 | grep -v '^ *+' conftest.er1 >conftest.err |
32923 | rm -f conftest.er1 | |
32924 | cat conftest.err >&5 | |
a848cd7e SC |
32925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32926 | (exit $ac_status); } && | |
d51253e8 | 32927 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32929 | (eval $ac_try) 2>&5 | |
32930 | ac_status=$? | |
32931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32932 | (exit $ac_status); }; } && | |
32933 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32935 | (eval $ac_try) 2>&5 | |
32936 | ac_status=$? | |
32937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32938 | (exit $ac_status); }; }; then | |
32939 | ac_cv_lib_posix4_sched_get_priority_max=yes | |
32940 | else | |
32941 | echo "$as_me: failed program was:" >&5 | |
32942 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32943 | ||
32944 | ac_cv_lib_posix4_sched_get_priority_max=no | |
32945 | fi | |
ac1cb8d3 VS |
32946 | rm -f conftest.err conftest.$ac_objext \ |
32947 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32948 | LIBS=$ac_check_lib_save_LIBS |
32949 | fi | |
32950 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5 | |
32951 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6 | |
32952 | if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then | |
32953 | ||
32954 | HAVE_PRIOR_FUNCS=1 | |
32955 | POSIX4_LINK=" -lposix4" | |
32956 | ||
32957 | fi | |
32958 | ||
32959 | ||
32960 | fi | |
32961 | ||
32962 | ||
32963 | fi | |
32964 | ||
32965 | ||
32966 | fi | |
32967 | ||
32968 | ||
32969 | if test "$HAVE_PRIOR_FUNCS" = 1; then | |
32970 | cat >>confdefs.h <<\_ACEOF | |
32971 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
32972 | _ACEOF | |
32973 | ||
32974 | else | |
32975 | { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5 | |
32976 | echo "$as_me: WARNING: Setting thread priority will not work" >&2;} | |
32977 | fi | |
32978 | ||
32979 | echo "$as_me:$LINENO: checking for pthread_cancel" >&5 | |
32980 | echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6 | |
32981 | if test "${ac_cv_func_pthread_cancel+set}" = set; then | |
32982 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32983 | else | |
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. */ | |
ac1cb8d3 VS |
32990 | /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel. |
32991 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32992 | #define pthread_cancel innocuous_pthread_cancel | |
32993 | ||
a848cd7e SC |
32994 | /* System header to define __stub macros and hopefully few prototypes, |
32995 | which can conflict with char pthread_cancel (); below. | |
32996 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32997 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32998 | |
a848cd7e SC |
32999 | #ifdef __STDC__ |
33000 | # include <limits.h> | |
33001 | #else | |
33002 | # include <assert.h> | |
33003 | #endif | |
ac1cb8d3 VS |
33004 | |
33005 | #undef pthread_cancel | |
33006 | ||
a848cd7e SC |
33007 | /* Override any gcc2 internal prototype to avoid an error. */ |
33008 | #ifdef __cplusplus | |
33009 | extern "C" | |
33010 | { | |
33011 | #endif | |
33012 | /* We use char because int might match the return type of a gcc2 | |
33013 | builtin and then its argument prototype would still apply. */ | |
33014 | char pthread_cancel (); | |
33015 | /* The GNU C library defines this for functions which it implements | |
33016 | to always fail with ENOSYS. Some functions are actually named | |
33017 | something starting with __ and the normal name is an alias. */ | |
33018 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
33019 | choke me | |
33020 | #else | |
33021 | char (*f) () = pthread_cancel; | |
33022 | #endif | |
33023 | #ifdef __cplusplus | |
33024 | } | |
33025 | #endif | |
33026 | ||
33027 | int | |
33028 | main () | |
33029 | { | |
33030 | return f != pthread_cancel; | |
33031 | ; | |
33032 | return 0; | |
33033 | } | |
33034 | _ACEOF | |
33035 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33036 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33037 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33038 | ac_status=$? |
ac1cb8d3 VS |
33039 | grep -v '^ *+' conftest.er1 >conftest.err |
33040 | rm -f conftest.er1 | |
33041 | cat conftest.err >&5 | |
a848cd7e SC |
33042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33043 | (exit $ac_status); } && | |
d51253e8 | 33044 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33046 | (eval $ac_try) 2>&5 | |
33047 | ac_status=$? | |
33048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33049 | (exit $ac_status); }; } && | |
33050 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33052 | (eval $ac_try) 2>&5 | |
33053 | ac_status=$? | |
33054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33055 | (exit $ac_status); }; }; then | |
33056 | ac_cv_func_pthread_cancel=yes | |
33057 | else | |
33058 | echo "$as_me: failed program was:" >&5 | |
33059 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33060 | ||
33061 | ac_cv_func_pthread_cancel=no | |
33062 | fi | |
ac1cb8d3 VS |
33063 | rm -f conftest.err conftest.$ac_objext \ |
33064 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33065 | fi |
33066 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5 | |
33067 | echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6 | |
33068 | if test $ac_cv_func_pthread_cancel = yes; then | |
33069 | cat >>confdefs.h <<\_ACEOF | |
33070 | #define HAVE_PTHREAD_CANCEL 1 | |
33071 | _ACEOF | |
33072 | ||
33073 | else | |
33074 | { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5 | |
33075 | echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;} | |
33076 | fi | |
33077 | ||
33078 | ||
33079 | ||
33080 | ||
33081 | echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5 | |
33082 | echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6 | |
33083 | if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then | |
33084 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33085 | else | |
33086 | ||
33087 | cat >conftest.$ac_ext <<_ACEOF | |
33088 | /* confdefs.h. */ | |
33089 | _ACEOF | |
33090 | cat confdefs.h >>conftest.$ac_ext | |
33091 | cat >>conftest.$ac_ext <<_ACEOF | |
33092 | /* end confdefs.h. */ | |
33093 | #include <pthread.h> | |
33094 | int | |
33095 | main () | |
33096 | { | |
33097 | ||
33098 | pthread_mutexattr_t attr; | |
33099 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
33100 | ||
33101 | ; | |
33102 | return 0; | |
33103 | } | |
33104 | _ACEOF | |
33105 | rm -f conftest.$ac_objext | |
33106 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33107 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33108 | ac_status=$? |
ac1cb8d3 VS |
33109 | grep -v '^ *+' conftest.er1 >conftest.err |
33110 | rm -f conftest.er1 | |
33111 | cat conftest.err >&5 | |
a848cd7e SC |
33112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33113 | (exit $ac_status); } && | |
d51253e8 | 33114 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33116 | (eval $ac_try) 2>&5 | |
33117 | ac_status=$? | |
33118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33119 | (exit $ac_status); }; } && | |
33120 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33122 | (eval $ac_try) 2>&5 | |
33123 | ac_status=$? | |
33124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33125 | (exit $ac_status); }; }; then | |
33126 | ||
33127 | wx_cv_type_pthread_mutexattr_t=yes | |
33128 | ||
33129 | else | |
33130 | echo "$as_me: failed program was:" >&5 | |
33131 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33132 | ||
33133 | ||
33134 | wx_cv_type_pthread_mutexattr_t=no | |
33135 | ||
33136 | ||
33137 | fi | |
ac1cb8d3 | 33138 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33139 | |
33140 | fi | |
33141 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5 | |
33142 | echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6 | |
33143 | ||
33144 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
33145 | cat >>confdefs.h <<\_ACEOF | |
33146 | #define HAVE_PTHREAD_MUTEXATTR_T 1 | |
33147 | _ACEOF | |
33148 | ||
33149 | else | |
33150 | echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 | |
33151 | echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6 | |
33152 | if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then | |
33153 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33154 | else | |
33155 | ||
33156 | cat >conftest.$ac_ext <<_ACEOF | |
33157 | /* confdefs.h. */ | |
33158 | _ACEOF | |
33159 | cat confdefs.h >>conftest.$ac_ext | |
33160 | cat >>conftest.$ac_ext <<_ACEOF | |
33161 | /* end confdefs.h. */ | |
33162 | #include <pthread.h> | |
33163 | int | |
33164 | main () | |
33165 | { | |
33166 | ||
33167 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
33168 | ||
33169 | ; | |
33170 | return 0; | |
33171 | } | |
33172 | _ACEOF | |
33173 | rm -f conftest.$ac_objext | |
33174 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33175 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33176 | ac_status=$? |
ac1cb8d3 VS |
33177 | grep -v '^ *+' conftest.er1 >conftest.err |
33178 | rm -f conftest.er1 | |
33179 | cat conftest.err >&5 | |
a848cd7e SC |
33180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33181 | (exit $ac_status); } && | |
d51253e8 | 33182 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33184 | (eval $ac_try) 2>&5 | |
33185 | ac_status=$? | |
33186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33187 | (exit $ac_status); }; } && | |
33188 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33190 | (eval $ac_try) 2>&5 | |
33191 | ac_status=$? | |
33192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33193 | (exit $ac_status); }; }; then | |
33194 | ||
33195 | wx_cv_type_pthread_rec_mutex_init=yes | |
33196 | ||
33197 | else | |
33198 | echo "$as_me: failed program was:" >&5 | |
33199 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33200 | ||
33201 | ||
33202 | wx_cv_type_pthread_rec_mutex_init=no | |
33203 | ||
33204 | ||
33205 | fi | |
ac1cb8d3 | 33206 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33207 | |
33208 | fi | |
33209 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5 | |
33210 | echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6 | |
33211 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then | |
33212 | cat >>confdefs.h <<\_ACEOF | |
33213 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 | |
33214 | _ACEOF | |
33215 | ||
33216 | else | |
33217 | { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5 | |
33218 | echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;} | |
33219 | fi | |
33220 | fi | |
33221 | fi | |
33222 | ||
33223 | else | |
33224 | if test "$wxUSE_THREADS" = "yes" ; then | |
33225 | case "${host}" in | |
33226 | *-*-mingw32* ) | |
33227 | echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5 | |
33228 | echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6 | |
33229 | if test "${wx_cv_cflags_mthread+set}" = set; then | |
33230 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33231 | else | |
33232 | ||
33233 | CFLAGS_OLD="$CFLAGS" | |
33234 | CFLAGS="$CFLAGS -mthreads" | |
33235 | cat >conftest.$ac_ext <<_ACEOF | |
33236 | /* confdefs.h. */ | |
33237 | _ACEOF | |
33238 | cat confdefs.h >>conftest.$ac_ext | |
33239 | cat >>conftest.$ac_ext <<_ACEOF | |
33240 | /* end confdefs.h. */ | |
33241 | ||
33242 | int | |
33243 | main () | |
33244 | { | |
33245 | ||
33246 | ; | |
33247 | return 0; | |
33248 | } | |
33249 | _ACEOF | |
33250 | rm -f conftest.$ac_objext | |
33251 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33252 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33253 | ac_status=$? |
ac1cb8d3 VS |
33254 | grep -v '^ *+' conftest.er1 >conftest.err |
33255 | rm -f conftest.er1 | |
33256 | cat conftest.err >&5 | |
a848cd7e SC |
33257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33258 | (exit $ac_status); } && | |
d51253e8 | 33259 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33261 | (eval $ac_try) 2>&5 | |
33262 | ac_status=$? | |
33263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33264 | (exit $ac_status); }; } && | |
33265 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33267 | (eval $ac_try) 2>&5 | |
33268 | ac_status=$? | |
33269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33270 | (exit $ac_status); }; }; then | |
33271 | wx_cv_cflags_mthread=yes | |
33272 | else | |
33273 | echo "$as_me: failed program was:" >&5 | |
33274 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33275 | ||
33276 | wx_cv_cflags_mthread=no | |
33277 | ||
33278 | fi | |
ac1cb8d3 | 33279 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33280 | |
33281 | ||
33282 | fi | |
33283 | echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5 | |
33284 | echo "${ECHO_T}$wx_cv_cflags_mthread" >&6 | |
33285 | ||
33286 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
33287 | CXXFLAGS="$CXXFLAGS -mthreads" | |
33288 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads" | |
33289 | LDFLAGS="$LDFLAGS -mthreads" | |
33290 | else | |
33291 | CFLAGS="$CFLAGS_OLD" | |
33292 | fi | |
33293 | ;; | |
33294 | *-pc-os2*emx ) | |
33295 | CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__" | |
33296 | CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__" | |
33297 | LDFLAGS="$LDFLAGS -Zmt" | |
33298 | ;; | |
33299 | esac | |
33300 | fi | |
33301 | fi | |
33302 | ||
33303 | if test "$wxUSE_THREADS" = "yes"; then | |
33304 | cat >>confdefs.h <<\_ACEOF | |
33305 | #define wxUSE_THREADS 1 | |
33306 | _ACEOF | |
33307 | ||
33308 | ||
33309 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
33310 | else | |
33311 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
33312 | echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5 | |
33313 | echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6 | |
33314 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then | |
33315 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
33316 | echo "$as_me:$LINENO: result: yes" >&5 | |
33317 | echo "${ECHO_T}yes" >&6 | |
33318 | else | |
33319 | echo "$as_me:$LINENO: result: no" >&5 | |
33320 | echo "${ECHO_T}no" >&6 | |
33321 | fi | |
33322 | fi | |
33323 | fi | |
33324 | ||
33325 | if test "$WXGTK20" = 1 ; then | |
33326 | cat >>confdefs.h <<_ACEOF | |
33327 | #define __WXGTK20__ $WXGTK20 | |
33328 | _ACEOF | |
33329 | ||
33330 | WXGTK12=1 | |
33331 | fi | |
33332 | ||
33333 | if test "$WXGTK12" = 1 ; then | |
33334 | cat >>confdefs.h <<_ACEOF | |
33335 | #define __WXGTK12__ $WXGTK12 | |
33336 | _ACEOF | |
33337 | ||
33338 | fi | |
33339 | ||
33340 | if test "$WXGTK127" = 1 ; then | |
33341 | cat >>confdefs.h <<_ACEOF | |
33342 | #define __WXGTK127__ $WXGTK127 | |
33343 | _ACEOF | |
33344 | ||
33345 | fi | |
33346 | ||
33347 | if test "$WXGPE" = 1 ; then | |
33348 | cat >>confdefs.h <<_ACEOF | |
33349 | #define __WXGPE__ $WXGPE | |
33350 | _ACEOF | |
33351 | ||
33352 | fi | |
33353 | ||
33354 | WXDEBUG= | |
33355 | ||
33356 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
33357 | WXDEBUG="-g" | |
33358 | wxUSE_OPTIMISE=no | |
33359 | fi | |
33360 | ||
33361 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
33362 | wxUSE_DEBUG_INFO=yes | |
33363 | WXDEBUG="-ggdb" | |
33364 | fi | |
33365 | ||
33366 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
33367 | cat >>confdefs.h <<\_ACEOF | |
33368 | #define WXDEBUG 1 | |
33369 | _ACEOF | |
33370 | ||
33371 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
33372 | else | |
33373 | if test "$wxUSE_GTK" = 1 ; then | |
33374 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
33375 | fi | |
33376 | fi | |
33377 | ||
33378 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
33379 | cat >>confdefs.h <<\_ACEOF | |
33380 | #define wxUSE_MEMORY_TRACING 1 | |
33381 | _ACEOF | |
33382 | ||
33383 | cat >>confdefs.h <<\_ACEOF | |
33384 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
33385 | _ACEOF | |
33386 | ||
33387 | cat >>confdefs.h <<\_ACEOF | |
33388 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
33389 | _ACEOF | |
33390 | ||
33391 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
33392 | fi | |
33393 | ||
33394 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
33395 | DMALLOC_LIBS="-ldmalloc" | |
33396 | fi | |
33397 | ||
33398 | PROFILE= | |
33399 | if test "$wxUSE_PROFILE" = "yes" ; then | |
33400 | PROFILE=" -pg" | |
33401 | fi | |
33402 | ||
33403 | CODE_GEN_FLAGS= | |
33404 | CODE_GEN_FLAGS_CXX= | |
33405 | if test "$GCC" = "yes" ; then | |
33406 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
33407 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
33408 | fi | |
33409 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
33410 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
33411 | fi | |
33412 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
33413 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
33414 | fi | |
33415 | ||
33416 | case "${host}" in | |
33417 | powerpc*-*-aix* ) | |
33418 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
33419 | ;; | |
33420 | *-hppa* ) | |
33421 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections" | |
33422 | ;; | |
33423 | esac | |
33424 | fi | |
33425 | ||
33426 | OPTIMISE= | |
33427 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
33428 | if test "$GCC" = yes ; then | |
33429 | OPTIMISE="-O0" | |
33430 | fi | |
33431 | else | |
33432 | if test "$GCC" = yes ; then | |
33433 | OPTIMISE="-O2" | |
33434 | ||
33435 | case "${host}" in | |
33436 | i586-*-*|i686-*-* ) | |
33437 | OPTIMISE="${OPTIMISE} " | |
33438 | ;; | |
33439 | esac | |
33440 | else | |
33441 | OPTIMISE="-O" | |
33442 | fi | |
33443 | fi | |
33444 | ||
33445 | ||
33446 | if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then | |
33447 | cat >>confdefs.h <<\_ACEOF | |
33448 | #define WXWIN_COMPATIBILITY_2_2 1 | |
33449 | _ACEOF | |
33450 | ||
33451 | ||
33452 | WXWIN_COMPATIBILITY_2_4="yes" | |
33453 | fi | |
33454 | ||
33455 | if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then | |
33456 | cat >>confdefs.h <<\_ACEOF | |
33457 | #define WXWIN_COMPATIBILITY_2_4 1 | |
33458 | _ACEOF | |
33459 | ||
33460 | fi | |
33461 | ||
33462 | ||
33463 | if test "$wxUSE_GUI" = "yes"; then | |
33464 | cat >>confdefs.h <<\_ACEOF | |
33465 | #define wxUSE_GUI 1 | |
33466 | _ACEOF | |
33467 | ||
33468 | ||
33469 | else | |
33470 | cat >>confdefs.h <<\_ACEOF | |
33471 | #define wxUSE_NOGUI 1 | |
33472 | _ACEOF | |
33473 | ||
33474 | fi | |
33475 | ||
33476 | ||
33477 | if test "$wxUSE_UNIX" = "yes"; then | |
33478 | cat >>confdefs.h <<\_ACEOF | |
33479 | #define wxUSE_UNIX 1 | |
33480 | _ACEOF | |
33481 | ||
33482 | fi | |
33483 | ||
33484 | ||
33485 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
33486 | ||
33487 | HAVE_DL_FUNCS=0 | |
33488 | HAVE_SHL_FUNCS=0 | |
33489 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
33490 | if test "$USE_DARWIN" = 1; then | |
33491 | HAVE_DL_FUNCS=1 | |
33492 | else | |
33493 | ||
33494 | for ac_func in dlopen | |
33495 | do | |
33496 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33497 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33498 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33499 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33500 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33501 | else | |
33502 | cat >conftest.$ac_ext <<_ACEOF | |
33503 | /* confdefs.h. */ | |
33504 | _ACEOF | |
33505 | cat confdefs.h >>conftest.$ac_ext | |
33506 | cat >>conftest.$ac_ext <<_ACEOF | |
33507 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33508 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33509 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33510 | #define $ac_func innocuous_$ac_func | |
33511 | ||
a848cd7e SC |
33512 | /* System header to define __stub macros and hopefully few prototypes, |
33513 | which can conflict with char $ac_func (); below. | |
33514 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33515 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33516 | |
a848cd7e SC |
33517 | #ifdef __STDC__ |
33518 | # include <limits.h> | |
33519 | #else | |
33520 | # include <assert.h> | |
33521 | #endif | |
ac1cb8d3 VS |
33522 | |
33523 | #undef $ac_func | |
33524 | ||
a848cd7e SC |
33525 | /* Override any gcc2 internal prototype to avoid an error. */ |
33526 | #ifdef __cplusplus | |
33527 | extern "C" | |
33528 | { | |
33529 | #endif | |
33530 | /* We use char because int might match the return type of a gcc2 | |
33531 | builtin and then its argument prototype would still apply. */ | |
33532 | char $ac_func (); | |
33533 | /* The GNU C library defines this for functions which it implements | |
33534 | to always fail with ENOSYS. Some functions are actually named | |
33535 | something starting with __ and the normal name is an alias. */ | |
33536 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33537 | choke me | |
33538 | #else | |
33539 | char (*f) () = $ac_func; | |
33540 | #endif | |
33541 | #ifdef __cplusplus | |
33542 | } | |
33543 | #endif | |
33544 | ||
33545 | int | |
33546 | main () | |
33547 | { | |
33548 | return f != $ac_func; | |
33549 | ; | |
33550 | return 0; | |
33551 | } | |
33552 | _ACEOF | |
33553 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33554 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33555 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33556 | ac_status=$? |
ac1cb8d3 VS |
33557 | grep -v '^ *+' conftest.er1 >conftest.err |
33558 | rm -f conftest.er1 | |
33559 | cat conftest.err >&5 | |
a848cd7e SC |
33560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33561 | (exit $ac_status); } && | |
d51253e8 | 33562 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33564 | (eval $ac_try) 2>&5 | |
33565 | ac_status=$? | |
33566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33567 | (exit $ac_status); }; } && | |
33568 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33570 | (eval $ac_try) 2>&5 | |
33571 | ac_status=$? | |
33572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33573 | (exit $ac_status); }; }; then | |
33574 | eval "$as_ac_var=yes" | |
33575 | else | |
33576 | echo "$as_me: failed program was:" >&5 | |
33577 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33578 | ||
33579 | eval "$as_ac_var=no" | |
33580 | fi | |
ac1cb8d3 VS |
33581 | rm -f conftest.err conftest.$ac_objext \ |
33582 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33583 | fi |
33584 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33585 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33586 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33587 | cat >>confdefs.h <<_ACEOF | |
33588 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33589 | _ACEOF | |
33590 | ||
33591 | cat >>confdefs.h <<\_ACEOF | |
33592 | #define HAVE_DLOPEN 1 | |
33593 | _ACEOF | |
33594 | ||
33595 | HAVE_DL_FUNCS=1 | |
33596 | ||
33597 | else | |
33598 | ||
33599 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
33600 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
33601 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
33602 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33603 | else | |
33604 | ac_check_lib_save_LIBS=$LIBS | |
33605 | LIBS="-ldl $LIBS" | |
33606 | cat >conftest.$ac_ext <<_ACEOF | |
33607 | /* confdefs.h. */ | |
33608 | _ACEOF | |
33609 | cat confdefs.h >>conftest.$ac_ext | |
33610 | cat >>conftest.$ac_ext <<_ACEOF | |
33611 | /* end confdefs.h. */ | |
33612 | ||
33613 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33614 | #ifdef __cplusplus | |
33615 | extern "C" | |
33616 | #endif | |
33617 | /* We use char because int might match the return type of a gcc2 | |
33618 | builtin and then its argument prototype would still apply. */ | |
33619 | char dlopen (); | |
33620 | int | |
33621 | main () | |
33622 | { | |
33623 | dlopen (); | |
33624 | ; | |
33625 | return 0; | |
33626 | } | |
33627 | _ACEOF | |
33628 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33629 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33630 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33631 | ac_status=$? |
ac1cb8d3 VS |
33632 | grep -v '^ *+' conftest.er1 >conftest.err |
33633 | rm -f conftest.er1 | |
33634 | cat conftest.err >&5 | |
a848cd7e SC |
33635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33636 | (exit $ac_status); } && | |
d51253e8 | 33637 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33638 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33639 | (eval $ac_try) 2>&5 | |
33640 | ac_status=$? | |
33641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33642 | (exit $ac_status); }; } && | |
33643 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33645 | (eval $ac_try) 2>&5 | |
33646 | ac_status=$? | |
33647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33648 | (exit $ac_status); }; }; then | |
33649 | ac_cv_lib_dl_dlopen=yes | |
33650 | else | |
33651 | echo "$as_me: failed program was:" >&5 | |
33652 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33653 | ||
33654 | ac_cv_lib_dl_dlopen=no | |
33655 | fi | |
ac1cb8d3 VS |
33656 | rm -f conftest.err conftest.$ac_objext \ |
33657 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33658 | LIBS=$ac_check_lib_save_LIBS |
33659 | fi | |
33660 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
33661 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
33662 | if test $ac_cv_lib_dl_dlopen = yes; then | |
33663 | ||
33664 | cat >>confdefs.h <<\_ACEOF | |
33665 | #define HAVE_DLOPEN 1 | |
33666 | _ACEOF | |
33667 | ||
33668 | HAVE_DL_FUNCS=1 | |
33669 | DL_LINK=" -ldl$DL_LINK" | |
33670 | ||
33671 | else | |
33672 | ||
33673 | ||
33674 | for ac_func in shl_load | |
33675 | do | |
33676 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33677 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33678 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33679 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33680 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33681 | else | |
33682 | cat >conftest.$ac_ext <<_ACEOF | |
33683 | /* confdefs.h. */ | |
33684 | _ACEOF | |
33685 | cat confdefs.h >>conftest.$ac_ext | |
33686 | cat >>conftest.$ac_ext <<_ACEOF | |
33687 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33688 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33689 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33690 | #define $ac_func innocuous_$ac_func | |
33691 | ||
a848cd7e SC |
33692 | /* System header to define __stub macros and hopefully few prototypes, |
33693 | which can conflict with char $ac_func (); below. | |
33694 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33695 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33696 | |
a848cd7e SC |
33697 | #ifdef __STDC__ |
33698 | # include <limits.h> | |
33699 | #else | |
33700 | # include <assert.h> | |
33701 | #endif | |
ac1cb8d3 VS |
33702 | |
33703 | #undef $ac_func | |
33704 | ||
a848cd7e SC |
33705 | /* Override any gcc2 internal prototype to avoid an error. */ |
33706 | #ifdef __cplusplus | |
33707 | extern "C" | |
33708 | { | |
33709 | #endif | |
33710 | /* We use char because int might match the return type of a gcc2 | |
33711 | builtin and then its argument prototype would still apply. */ | |
33712 | char $ac_func (); | |
33713 | /* The GNU C library defines this for functions which it implements | |
33714 | to always fail with ENOSYS. Some functions are actually named | |
33715 | something starting with __ and the normal name is an alias. */ | |
33716 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33717 | choke me | |
33718 | #else | |
33719 | char (*f) () = $ac_func; | |
33720 | #endif | |
33721 | #ifdef __cplusplus | |
33722 | } | |
33723 | #endif | |
33724 | ||
33725 | int | |
33726 | main () | |
33727 | { | |
33728 | return f != $ac_func; | |
33729 | ; | |
33730 | return 0; | |
33731 | } | |
33732 | _ACEOF | |
33733 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33734 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33735 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33736 | ac_status=$? |
ac1cb8d3 VS |
33737 | grep -v '^ *+' conftest.er1 >conftest.err |
33738 | rm -f conftest.er1 | |
33739 | cat conftest.err >&5 | |
a848cd7e SC |
33740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33741 | (exit $ac_status); } && | |
d51253e8 | 33742 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33744 | (eval $ac_try) 2>&5 | |
33745 | ac_status=$? | |
33746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33747 | (exit $ac_status); }; } && | |
33748 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33750 | (eval $ac_try) 2>&5 | |
33751 | ac_status=$? | |
33752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33753 | (exit $ac_status); }; }; then | |
33754 | eval "$as_ac_var=yes" | |
33755 | else | |
33756 | echo "$as_me: failed program was:" >&5 | |
33757 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33758 | ||
33759 | eval "$as_ac_var=no" | |
33760 | fi | |
ac1cb8d3 VS |
33761 | rm -f conftest.err conftest.$ac_objext \ |
33762 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33763 | fi |
33764 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33765 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33766 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33767 | cat >>confdefs.h <<_ACEOF | |
33768 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33769 | _ACEOF | |
33770 | ||
33771 | cat >>confdefs.h <<\_ACEOF | |
33772 | #define HAVE_SHL_LOAD 1 | |
33773 | _ACEOF | |
33774 | ||
33775 | HAVE_SHL_FUNCS=1 | |
33776 | ||
33777 | else | |
33778 | ||
33779 | echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5 | |
33780 | echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6 | |
33781 | if test "${ac_cv_lib_shl_load_dld+set}" = set; then | |
33782 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33783 | else | |
33784 | ac_check_lib_save_LIBS=$LIBS | |
33785 | LIBS="-lshl_load $LIBS" | |
33786 | cat >conftest.$ac_ext <<_ACEOF | |
33787 | /* confdefs.h. */ | |
33788 | _ACEOF | |
33789 | cat confdefs.h >>conftest.$ac_ext | |
33790 | cat >>conftest.$ac_ext <<_ACEOF | |
33791 | /* end confdefs.h. */ | |
33792 | ||
33793 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33794 | #ifdef __cplusplus | |
33795 | extern "C" | |
33796 | #endif | |
33797 | /* We use char because int might match the return type of a gcc2 | |
33798 | builtin and then its argument prototype would still apply. */ | |
33799 | char dld (); | |
33800 | int | |
33801 | main () | |
33802 | { | |
33803 | dld (); | |
33804 | ; | |
33805 | return 0; | |
33806 | } | |
33807 | _ACEOF | |
33808 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33809 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33810 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33811 | ac_status=$? |
ac1cb8d3 VS |
33812 | grep -v '^ *+' conftest.er1 >conftest.err |
33813 | rm -f conftest.er1 | |
33814 | cat conftest.err >&5 | |
a848cd7e SC |
33815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33816 | (exit $ac_status); } && | |
d51253e8 | 33817 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33819 | (eval $ac_try) 2>&5 | |
33820 | ac_status=$? | |
33821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33822 | (exit $ac_status); }; } && | |
33823 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33825 | (eval $ac_try) 2>&5 | |
33826 | ac_status=$? | |
33827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33828 | (exit $ac_status); }; }; then | |
33829 | ac_cv_lib_shl_load_dld=yes | |
33830 | else | |
33831 | echo "$as_me: failed program was:" >&5 | |
33832 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33833 | ||
33834 | ac_cv_lib_shl_load_dld=no | |
33835 | fi | |
ac1cb8d3 VS |
33836 | rm -f conftest.err conftest.$ac_objext \ |
33837 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33838 | LIBS=$ac_check_lib_save_LIBS |
33839 | fi | |
33840 | echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5 | |
33841 | echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6 | |
33842 | if test $ac_cv_lib_shl_load_dld = yes; then | |
33843 | ||
33844 | HAVE_SHL_FUNCS=1 | |
33845 | DL_LINK=" -ldld$DL_LINK" | |
33846 | ||
33847 | fi | |
33848 | ||
33849 | ||
33850 | fi | |
33851 | done | |
33852 | ||
33853 | ||
33854 | fi | |
33855 | ||
33856 | ||
33857 | fi | |
33858 | done | |
33859 | ||
33860 | ||
33861 | if test "$HAVE_DL_FUNCS" = 1; then | |
33862 | ||
33863 | for ac_func in dlerror | |
33864 | do | |
33865 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33866 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33867 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33868 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33869 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33870 | else | |
33871 | cat >conftest.$ac_ext <<_ACEOF | |
33872 | /* confdefs.h. */ | |
33873 | _ACEOF | |
33874 | cat confdefs.h >>conftest.$ac_ext | |
33875 | cat >>conftest.$ac_ext <<_ACEOF | |
33876 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33877 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33878 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33879 | #define $ac_func innocuous_$ac_func | |
33880 | ||
a848cd7e SC |
33881 | /* System header to define __stub macros and hopefully few prototypes, |
33882 | which can conflict with char $ac_func (); below. | |
33883 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33884 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33885 | |
a848cd7e SC |
33886 | #ifdef __STDC__ |
33887 | # include <limits.h> | |
33888 | #else | |
33889 | # include <assert.h> | |
33890 | #endif | |
ac1cb8d3 VS |
33891 | |
33892 | #undef $ac_func | |
33893 | ||
a848cd7e SC |
33894 | /* Override any gcc2 internal prototype to avoid an error. */ |
33895 | #ifdef __cplusplus | |
33896 | extern "C" | |
33897 | { | |
33898 | #endif | |
33899 | /* We use char because int might match the return type of a gcc2 | |
33900 | builtin and then its argument prototype would still apply. */ | |
33901 | char $ac_func (); | |
33902 | /* The GNU C library defines this for functions which it implements | |
33903 | to always fail with ENOSYS. Some functions are actually named | |
33904 | something starting with __ and the normal name is an alias. */ | |
33905 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33906 | choke me | |
33907 | #else | |
33908 | char (*f) () = $ac_func; | |
33909 | #endif | |
33910 | #ifdef __cplusplus | |
33911 | } | |
33912 | #endif | |
33913 | ||
33914 | int | |
33915 | main () | |
33916 | { | |
33917 | return f != $ac_func; | |
33918 | ; | |
33919 | return 0; | |
33920 | } | |
33921 | _ACEOF | |
33922 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33923 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33924 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33925 | ac_status=$? |
ac1cb8d3 VS |
33926 | grep -v '^ *+' conftest.er1 >conftest.err |
33927 | rm -f conftest.er1 | |
33928 | cat conftest.err >&5 | |
a848cd7e SC |
33929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33930 | (exit $ac_status); } && | |
d51253e8 | 33931 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33933 | (eval $ac_try) 2>&5 | |
33934 | ac_status=$? | |
33935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33936 | (exit $ac_status); }; } && | |
33937 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33939 | (eval $ac_try) 2>&5 | |
33940 | ac_status=$? | |
33941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33942 | (exit $ac_status); }; }; then | |
33943 | eval "$as_ac_var=yes" | |
33944 | else | |
33945 | echo "$as_me: failed program was:" >&5 | |
33946 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33947 | ||
33948 | eval "$as_ac_var=no" | |
33949 | fi | |
ac1cb8d3 VS |
33950 | rm -f conftest.err conftest.$ac_objext \ |
33951 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33952 | fi |
33953 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33954 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33955 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33956 | cat >>confdefs.h <<_ACEOF | |
33957 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33958 | _ACEOF | |
33959 | cat >>confdefs.h <<\_ACEOF | |
33960 | #define HAVE_DLERROR 1 | |
33961 | _ACEOF | |
33962 | ||
33963 | else | |
33964 | ||
33965 | echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5 | |
33966 | echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6 | |
33967 | if test "${ac_cv_lib_dl_dlerror+set}" = set; then | |
33968 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33969 | else | |
33970 | ac_check_lib_save_LIBS=$LIBS | |
33971 | LIBS="-ldl $LIBS" | |
33972 | cat >conftest.$ac_ext <<_ACEOF | |
33973 | /* confdefs.h. */ | |
33974 | _ACEOF | |
33975 | cat confdefs.h >>conftest.$ac_ext | |
33976 | cat >>conftest.$ac_ext <<_ACEOF | |
33977 | /* end confdefs.h. */ | |
33978 | ||
33979 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33980 | #ifdef __cplusplus | |
33981 | extern "C" | |
33982 | #endif | |
33983 | /* We use char because int might match the return type of a gcc2 | |
33984 | builtin and then its argument prototype would still apply. */ | |
33985 | char dlerror (); | |
33986 | int | |
33987 | main () | |
33988 | { | |
33989 | dlerror (); | |
33990 | ; | |
33991 | return 0; | |
33992 | } | |
33993 | _ACEOF | |
33994 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33995 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33996 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33997 | ac_status=$? |
ac1cb8d3 VS |
33998 | grep -v '^ *+' conftest.er1 >conftest.err |
33999 | rm -f conftest.er1 | |
34000 | cat conftest.err >&5 | |
a848cd7e SC |
34001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34002 | (exit $ac_status); } && | |
d51253e8 | 34003 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34005 | (eval $ac_try) 2>&5 | |
34006 | ac_status=$? | |
34007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34008 | (exit $ac_status); }; } && | |
34009 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34011 | (eval $ac_try) 2>&5 | |
34012 | ac_status=$? | |
34013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34014 | (exit $ac_status); }; }; then | |
34015 | ac_cv_lib_dl_dlerror=yes | |
34016 | else | |
34017 | echo "$as_me: failed program was:" >&5 | |
34018 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34019 | ||
34020 | ac_cv_lib_dl_dlerror=no | |
34021 | fi | |
ac1cb8d3 VS |
34022 | rm -f conftest.err conftest.$ac_objext \ |
34023 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34024 | LIBS=$ac_check_lib_save_LIBS |
34025 | fi | |
34026 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5 | |
34027 | echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6 | |
34028 | if test $ac_cv_lib_dl_dlerror = yes; then | |
34029 | cat >>confdefs.h <<\_ACEOF | |
34030 | #define HAVE_DLERROR 1 | |
34031 | _ACEOF | |
34032 | ||
34033 | fi | |
34034 | ||
34035 | ||
34036 | ||
34037 | fi | |
34038 | done | |
34039 | ||
34040 | fi | |
34041 | fi | |
34042 | ||
34043 | if test "$HAVE_DL_FUNCS" = 0; then | |
34044 | if test "$HAVE_SHL_FUNCS" = 0; then | |
34045 | if test "$USE_UNIX" = 1; then | |
34046 | { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5 | |
34047 | echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;} | |
34048 | wxUSE_DYNAMIC_LOADER=no | |
34049 | wxUSE_DYNLIB_CLASS=no | |
34050 | else | |
34051 | { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5 | |
34052 | echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;} | |
34053 | fi | |
34054 | fi | |
34055 | fi | |
34056 | fi | |
34057 | fi | |
34058 | ||
34059 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then | |
34060 | cat >>confdefs.h <<\_ACEOF | |
34061 | #define wxUSE_DYNAMIC_LOADER 1 | |
34062 | _ACEOF | |
34063 | ||
34064 | fi | |
34065 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
34066 | cat >>confdefs.h <<\_ACEOF | |
34067 | #define wxUSE_DYNLIB_CLASS 1 | |
34068 | _ACEOF | |
34069 | ||
34070 | fi | |
34071 | ||
34072 | ||
34073 | ||
34074 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
34075 | if test "$wxUSE_SHARED" = "no" ; then | |
34076 | { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5 | |
34077 | echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;} | |
34078 | wxUSE_PLUGINS=no | |
34079 | fi | |
34080 | if test "$wxUSE_MONOLITHIC" = "yes" ; then | |
34081 | { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5 | |
34082 | echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;} | |
34083 | wxUSE_PLUGINS=no | |
34084 | fi | |
34085 | if test "$wxUSE_DYNLIB_CLASS" = "no" ; then | |
34086 | { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5 | |
34087 | echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;} | |
34088 | wxUSE_PLUGINS=no | |
34089 | fi | |
34090 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
34091 | cat >>confdefs.h <<\_ACEOF | |
34092 | #define wxUSE_PLUGINS 1 | |
34093 | _ACEOF | |
34094 | ||
34095 | fi | |
34096 | fi | |
34097 | ||
34098 | ||
34099 | if test "$wxUSE_STL" = "yes"; then | |
34100 | cat >>confdefs.h <<\_ACEOF | |
34101 | #define wxUSE_STL 1 | |
34102 | _ACEOF | |
34103 | ||
34104 | fi | |
34105 | ||
34106 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
34107 | cat >>confdefs.h <<\_ACEOF | |
34108 | #define wxUSE_APPLE_IEEE 1 | |
34109 | _ACEOF | |
34110 | ||
34111 | fi | |
34112 | ||
34113 | if test "$wxUSE_TIMER" = "yes"; then | |
34114 | cat >>confdefs.h <<\_ACEOF | |
34115 | #define wxUSE_TIMER 1 | |
34116 | _ACEOF | |
34117 | ||
34118 | fi | |
34119 | ||
34120 | WITH_PLUGIN_SDL=0 | |
34121 | if test "$wxUSE_SOUND" = "yes"; then | |
34122 | if test "$USE_UNIX" = "1" ; then | |
34123 | ||
34124 | for ac_header in sys/soundcard.h | |
34125 | do | |
34126 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
34127 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
34128 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
34129 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
34130 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
34131 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34132 | fi | |
34133 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
34134 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
34135 | else | |
34136 | # Is the header compilable? | |
34137 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
34138 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
34139 | cat >conftest.$ac_ext <<_ACEOF | |
34140 | /* confdefs.h. */ | |
34141 | _ACEOF | |
34142 | cat confdefs.h >>conftest.$ac_ext | |
34143 | cat >>conftest.$ac_ext <<_ACEOF | |
34144 | /* end confdefs.h. */ | |
34145 | $ac_includes_default | |
34146 | #include <$ac_header> | |
34147 | _ACEOF | |
34148 | rm -f conftest.$ac_objext | |
34149 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34150 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34151 | ac_status=$? |
ac1cb8d3 VS |
34152 | grep -v '^ *+' conftest.er1 >conftest.err |
34153 | rm -f conftest.er1 | |
34154 | cat conftest.err >&5 | |
a848cd7e SC |
34155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34156 | (exit $ac_status); } && | |
d51253e8 | 34157 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34158 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34159 | (eval $ac_try) 2>&5 | |
34160 | ac_status=$? | |
34161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34162 | (exit $ac_status); }; } && | |
34163 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34164 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34165 | (eval $ac_try) 2>&5 | |
34166 | ac_status=$? | |
34167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34168 | (exit $ac_status); }; }; then | |
34169 | ac_header_compiler=yes | |
34170 | else | |
34171 | echo "$as_me: failed program was:" >&5 | |
34172 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34173 | ||
34174 | ac_header_compiler=no | |
34175 | fi | |
ac1cb8d3 | 34176 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34177 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
34178 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
34179 | ||
34180 | # Is the header present? | |
34181 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
34182 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
34183 | cat >conftest.$ac_ext <<_ACEOF | |
34184 | /* confdefs.h. */ | |
34185 | _ACEOF | |
34186 | cat confdefs.h >>conftest.$ac_ext | |
34187 | cat >>conftest.$ac_ext <<_ACEOF | |
34188 | /* end confdefs.h. */ | |
34189 | #include <$ac_header> | |
34190 | _ACEOF | |
34191 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
34192 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
34193 | ac_status=$? | |
34194 | grep -v '^ *+' conftest.er1 >conftest.err | |
34195 | rm -f conftest.er1 | |
34196 | cat conftest.err >&5 | |
34197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34198 | (exit $ac_status); } >/dev/null; then | |
34199 | if test -s conftest.err; then | |
34200 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 34201 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
34202 | else |
34203 | ac_cpp_err= | |
34204 | fi | |
34205 | else | |
34206 | ac_cpp_err=yes | |
34207 | fi | |
34208 | if test -z "$ac_cpp_err"; then | |
34209 | ac_header_preproc=yes | |
34210 | else | |
34211 | echo "$as_me: failed program was:" >&5 | |
34212 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34213 | ||
34214 | ac_header_preproc=no | |
34215 | fi | |
34216 | rm -f conftest.err conftest.$ac_ext | |
34217 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
34218 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
34219 | ||
34220 | # So? What about this header? | |
ac1cb8d3 VS |
34221 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
34222 | yes:no: ) | |
a848cd7e SC |
34223 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
34224 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
34225 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
34226 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
34227 | ac_header_preproc=yes | |
a848cd7e | 34228 | ;; |
ac1cb8d3 | 34229 | no:yes:* ) |
a848cd7e SC |
34230 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
34231 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
34232 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
34233 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
34234 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
34235 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
34236 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
34237 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
34238 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
34239 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
34240 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
34241 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
34242 | ( |
34243 | cat <<\_ASBOX | |
ac1cb8d3 VS |
34244 | ## ----------------------------------------- ## |
34245 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
34246 | ## ----------------------------------------- ## | |
a848cd7e SC |
34247 | _ASBOX |
34248 | ) | | |
34249 | sed "s/^/$as_me: WARNING: /" >&2 | |
34250 | ;; | |
34251 | esac | |
34252 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
34253 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
34254 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
34255 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34256 | else | |
ac1cb8d3 | 34257 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
34258 | fi |
34259 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
34260 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
34261 | ||
34262 | fi | |
34263 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
34264 | cat >>confdefs.h <<_ACEOF | |
34265 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
34266 | _ACEOF | |
34267 | ||
34268 | fi | |
34269 | ||
34270 | done | |
34271 | ||
34272 | ||
34273 | if test "$wxUSE_LIBSDL" != "no"; then | |
34274 | ||
34275 | # Check whether --with-sdl-prefix or --without-sdl-prefix was given. | |
34276 | if test "${with_sdl_prefix+set}" = set; then | |
34277 | withval="$with_sdl_prefix" | |
34278 | sdl_prefix="$withval" | |
34279 | else | |
34280 | sdl_prefix="" | |
34281 | fi; | |
34282 | ||
34283 | # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given. | |
34284 | if test "${with_sdl_exec_prefix+set}" = set; then | |
34285 | withval="$with_sdl_exec_prefix" | |
34286 | sdl_exec_prefix="$withval" | |
34287 | else | |
34288 | sdl_exec_prefix="" | |
34289 | fi; | |
34290 | # Check whether --enable-sdltest or --disable-sdltest was given. | |
34291 | if test "${enable_sdltest+set}" = set; then | |
34292 | enableval="$enable_sdltest" | |
34293 | ||
34294 | else | |
34295 | enable_sdltest=yes | |
34296 | fi; | |
34297 | ||
34298 | if test x$sdl_exec_prefix != x ; then | |
34299 | sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" | |
34300 | if test x${SDL_CONFIG+set} != xset ; then | |
34301 | SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config | |
34302 | fi | |
34303 | fi | |
34304 | if test x$sdl_prefix != x ; then | |
34305 | sdl_args="$sdl_args --prefix=$sdl_prefix" | |
34306 | if test x${SDL_CONFIG+set} != xset ; then | |
34307 | SDL_CONFIG=$sdl_prefix/bin/sdl-config | |
34308 | fi | |
34309 | fi | |
34310 | ||
34311 | ||
34312 | PATH="$prefix/bin:$prefix/usr/bin:$PATH" | |
34313 | # Extract the first word of "sdl-config", so it can be a program name with args. | |
34314 | set dummy sdl-config; ac_word=$2 | |
34315 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
34316 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34317 | if test "${ac_cv_path_SDL_CONFIG+set}" = set; then | |
34318 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34319 | else | |
34320 | case $SDL_CONFIG in | |
34321 | [\\/]* | ?:[\\/]*) | |
34322 | ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. | |
34323 | ;; | |
34324 | *) | |
34325 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
34326 | for as_dir in $PATH | |
34327 | do | |
34328 | IFS=$as_save_IFS | |
34329 | test -z "$as_dir" && as_dir=. | |
34330 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34331 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34332 | ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
34333 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34334 | break 2 | |
34335 | fi | |
34336 | done | |
34337 | done | |
34338 | ||
34339 | test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" | |
34340 | ;; | |
34341 | esac | |
34342 | fi | |
34343 | SDL_CONFIG=$ac_cv_path_SDL_CONFIG | |
34344 | ||
34345 | if test -n "$SDL_CONFIG"; then | |
34346 | echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5 | |
34347 | echo "${ECHO_T}$SDL_CONFIG" >&6 | |
34348 | else | |
34349 | echo "$as_me:$LINENO: result: no" >&5 | |
34350 | echo "${ECHO_T}no" >&6 | |
34351 | fi | |
34352 | ||
34353 | min_sdl_version=1.2.0 | |
34354 | echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5 | |
34355 | echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6 | |
34356 | no_sdl="" | |
34357 | if test "$SDL_CONFIG" = "no" ; then | |
34358 | no_sdl=yes | |
34359 | else | |
34360 | SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` | |
34361 | SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` | |
34362 | ||
34363 | sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ | |
34364 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
34365 | sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ | |
34366 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
34367 | sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ | |
34368 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
34369 | if test "x$enable_sdltest" = "xyes" ; then | |
34370 | ac_save_CFLAGS="$CFLAGS" | |
34371 | ac_save_LIBS="$LIBS" | |
34372 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
34373 | LIBS="$LIBS $SDL_LIBS" | |
34374 | rm -f conf.sdltest | |
34375 | if test "$cross_compiling" = yes; then | |
34376 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
34377 | else | |
34378 | cat >conftest.$ac_ext <<_ACEOF | |
34379 | /* confdefs.h. */ | |
34380 | _ACEOF | |
34381 | cat confdefs.h >>conftest.$ac_ext | |
34382 | cat >>conftest.$ac_ext <<_ACEOF | |
34383 | /* end confdefs.h. */ | |
34384 | ||
34385 | #include <stdio.h> | |
34386 | #include <stdlib.h> | |
34387 | #include <string.h> | |
34388 | #include "SDL.h" | |
34389 | ||
34390 | char* | |
34391 | my_strdup (char *str) | |
34392 | { | |
34393 | char *new_str; | |
34394 | ||
34395 | if (str) | |
34396 | { | |
34397 | new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); | |
34398 | strcpy (new_str, str); | |
34399 | } | |
34400 | else | |
34401 | new_str = NULL; | |
34402 | ||
34403 | return new_str; | |
34404 | } | |
34405 | ||
34406 | int main (int argc, char *argv[]) | |
34407 | { | |
34408 | int major, minor, micro; | |
34409 | char *tmp_version; | |
34410 | ||
34411 | /* This hangs on some systems (?) | |
34412 | system ("touch conf.sdltest"); | |
34413 | */ | |
34414 | { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } | |
34415 | ||
34416 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
34417 | tmp_version = my_strdup("$min_sdl_version"); | |
34418 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
34419 | printf("%s, bad version string\n", "$min_sdl_version"); | |
34420 | exit(1); | |
34421 | } | |
34422 | ||
34423 | if (($sdl_major_version > major) || | |
34424 | (($sdl_major_version == major) && ($sdl_minor_version > minor)) || | |
34425 | (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) | |
34426 | { | |
34427 | return 0; | |
34428 | } | |
34429 | else | |
34430 | { | |
34431 | printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); | |
34432 | printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); | |
34433 | printf("*** best to upgrade to the required version.\n"); | |
34434 | printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); | |
34435 | printf("*** to point to the correct copy of sdl-config, and remove the file\n"); | |
34436 | printf("*** config.cache before re-running configure\n"); | |
34437 | return 1; | |
34438 | } | |
34439 | } | |
34440 | ||
34441 | ||
34442 | _ACEOF | |
34443 | rm -f conftest$ac_exeext | |
34444 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
34445 | (eval $ac_link) 2>&5 | |
34446 | ac_status=$? | |
34447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34448 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
34449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34450 | (eval $ac_try) 2>&5 | |
34451 | ac_status=$? | |
34452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34453 | (exit $ac_status); }; }; then | |
34454 | : | |
34455 | else | |
34456 | echo "$as_me: program exited with status $ac_status" >&5 | |
34457 | echo "$as_me: failed program was:" >&5 | |
34458 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34459 | ||
34460 | ( exit $ac_status ) | |
34461 | no_sdl=yes | |
34462 | fi | |
ac1cb8d3 | 34463 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34464 | fi |
34465 | CFLAGS="$ac_save_CFLAGS" | |
34466 | LIBS="$ac_save_LIBS" | |
34467 | fi | |
34468 | fi | |
34469 | if test "x$no_sdl" = x ; then | |
34470 | echo "$as_me:$LINENO: result: yes" >&5 | |
34471 | echo "${ECHO_T}yes" >&6 | |
34472 | ||
34473 | EXTRALIBS_SDL="$SDL_LIBS" | |
34474 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" | |
34475 | cat >>confdefs.h <<\_ACEOF | |
34476 | #define wxUSE_LIBSDL 1 | |
34477 | _ACEOF | |
34478 | ||
34479 | ||
34480 | else | |
34481 | echo "$as_me:$LINENO: result: no" >&5 | |
34482 | echo "${ECHO_T}no" >&6 | |
34483 | if test "$SDL_CONFIG" = "no" ; then | |
34484 | echo "*** The sdl-config script installed by SDL could not be found" | |
34485 | echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" | |
34486 | echo "*** your path, or set the SDL_CONFIG environment variable to the" | |
34487 | echo "*** full path to sdl-config." | |
34488 | else | |
34489 | if test -f conf.sdltest ; then | |
34490 | : | |
34491 | else | |
34492 | echo "*** Could not run SDL test program, checking why..." | |
34493 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
34494 | LIBS="$LIBS $SDL_LIBS" | |
34495 | cat >conftest.$ac_ext <<_ACEOF | |
34496 | /* confdefs.h. */ | |
34497 | _ACEOF | |
34498 | cat confdefs.h >>conftest.$ac_ext | |
34499 | cat >>conftest.$ac_ext <<_ACEOF | |
34500 | /* end confdefs.h. */ | |
34501 | ||
34502 | #include <stdio.h> | |
34503 | #include "SDL.h" | |
34504 | ||
34505 | int main(int argc, char *argv[]) | |
34506 | { return 0; } | |
34507 | #undef main | |
34508 | #define main K_and_R_C_main | |
34509 | ||
34510 | int | |
34511 | main () | |
34512 | { | |
34513 | return 0; | |
34514 | ; | |
34515 | return 0; | |
34516 | } | |
34517 | _ACEOF | |
34518 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34519 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34520 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34521 | ac_status=$? |
ac1cb8d3 VS |
34522 | grep -v '^ *+' conftest.er1 >conftest.err |
34523 | rm -f conftest.er1 | |
34524 | cat conftest.err >&5 | |
a848cd7e SC |
34525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34526 | (exit $ac_status); } && | |
d51253e8 | 34527 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34529 | (eval $ac_try) 2>&5 | |
34530 | ac_status=$? | |
34531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34532 | (exit $ac_status); }; } && | |
34533 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34535 | (eval $ac_try) 2>&5 | |
34536 | ac_status=$? | |
34537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34538 | (exit $ac_status); }; }; then | |
34539 | echo "*** The test program compiled, but did not run. This usually means" | |
34540 | echo "*** that the run-time linker is not finding SDL or finding the wrong" | |
34541 | echo "*** version of SDL. If it is not finding SDL, you'll need to set your" | |
34542 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
34543 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
34544 | echo "*** is required on your system" | |
34545 | echo "***" | |
34546 | echo "*** If you have an old version installed, it is best to remove it, although" | |
34547 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
34548 | else | |
34549 | echo "$as_me: failed program was:" >&5 | |
34550 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34551 | ||
34552 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
34553 | echo "*** exact error that occured. This usually means SDL was incorrectly installed" | |
34554 | echo "*** or that you have moved SDL since it was installed. In the latter case, you" | |
34555 | echo "*** may want to edit the sdl-config script: $SDL_CONFIG" | |
34556 | fi | |
ac1cb8d3 VS |
34557 | rm -f conftest.err conftest.$ac_objext \ |
34558 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34559 | CFLAGS="$ac_save_CFLAGS" |
34560 | LIBS="$ac_save_LIBS" | |
34561 | fi | |
34562 | fi | |
34563 | SDL_CFLAGS="" | |
34564 | SDL_LIBS="" | |
34565 | wxUSE_LIBSDL="no" | |
34566 | fi | |
34567 | ||
34568 | ||
34569 | rm -f conf.sdltest | |
34570 | ||
34571 | if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then | |
34572 | WITH_PLUGIN_SDL=1 | |
34573 | fi | |
34574 | fi | |
34575 | fi | |
34576 | ||
34577 | cat >>confdefs.h <<\_ACEOF | |
34578 | #define wxUSE_SOUND 1 | |
34579 | _ACEOF | |
34580 | ||
34581 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound" | |
34582 | fi | |
34583 | ||
d1c38808 VZ |
34584 | if test "$WXGTK20" = 1; then |
34585 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
34586 | if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then | |
34587 | ||
34588 | ||
34589 | succeeded=no | |
34590 | ||
34591 | if test -z "$PKG_CONFIG"; then | |
34592 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
34593 | set dummy pkg-config; ac_word=$2 | |
34594 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
34595 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34596 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
34597 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34598 | else | |
34599 | case $PKG_CONFIG in | |
34600 | [\\/]* | ?:[\\/]*) | |
34601 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
34602 | ;; | |
34603 | *) | |
34604 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
34605 | for as_dir in $PATH | |
34606 | do | |
34607 | IFS=$as_save_IFS | |
34608 | test -z "$as_dir" && as_dir=. | |
34609 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34610 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34611 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
34612 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34613 | break 2 | |
34614 | fi | |
34615 | done | |
34616 | done | |
34617 | ||
34618 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
34619 | ;; | |
34620 | esac | |
34621 | fi | |
34622 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
34623 | ||
34624 | if test -n "$PKG_CONFIG"; then | |
34625 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
34626 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
34627 | else | |
34628 | echo "$as_me:$LINENO: result: no" >&5 | |
34629 | echo "${ECHO_T}no" >&6 | |
34630 | fi | |
34631 | ||
34632 | fi | |
34633 | ||
34634 | if test "$PKG_CONFIG" = "no" ; then | |
34635 | echo "*** The pkg-config script could not be found. Make sure it is" | |
34636 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
34637 | echo "*** to the full path to pkg-config." | |
34638 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
34639 | else | |
34640 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
34641 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
34642 | echo "$as_me:$LINENO: checking for libgnomeprintui-2.2" >&5 | |
34643 | echo $ECHO_N "checking for libgnomeprintui-2.2... $ECHO_C" >&6 | |
34644 | ||
34645 | if $PKG_CONFIG --exists "libgnomeprintui-2.2" ; then | |
34646 | echo "$as_me:$LINENO: result: yes" >&5 | |
34647 | echo "${ECHO_T}yes" >&6 | |
34648 | succeeded=yes | |
34649 | ||
34650 | echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5 | |
34651 | echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6 | |
34652 | LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2"` | |
34653 | echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5 | |
34654 | echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6 | |
34655 | ||
34656 | echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5 | |
34657 | echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6 | |
34658 | LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2"` | |
34659 | echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5 | |
34660 | echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6 | |
34661 | else | |
34662 | LIBGNOMEPRINTUI_CFLAGS="" | |
34663 | LIBGNOMEPRINTUI_LIBS="" | |
34664 | ## If we have a custom action on failure, don't print errors, but | |
34665 | ## do set a variable so people can do so. | |
34666 | LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2"` | |
34667 | ||
34668 | fi | |
34669 | ||
34670 | ||
34671 | ||
34672 | else | |
34673 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
34674 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
34675 | fi | |
34676 | fi | |
34677 | ||
34678 | if test $succeeded = yes; then | |
34679 | ||
34680 | EXTRALIBS_GNOMEPRINT="$LIBGNOMEPRINTUI_LIBS" | |
34681 | CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS" | |
34682 | cat >>confdefs.h <<\_ACEOF | |
34683 | #define wxUSE_LIBGNOMEPRINT 1 | |
34684 | _ACEOF | |
34685 | ||
34686 | ||
34687 | else | |
34688 | ||
34689 | { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5 | |
34690 | echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;} | |
34691 | wxUSE_LIBGNOMEPRINT="no" | |
34692 | ||
34693 | ||
34694 | fi | |
34695 | ||
34696 | fi | |
34697 | fi | |
34698 | fi | |
34699 | ||
34700 | ||
a848cd7e SC |
34701 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
34702 | cat >>confdefs.h <<\_ACEOF | |
34703 | #define wxUSE_CMDLINE_PARSER 1 | |
34704 | _ACEOF | |
34705 | ||
34706 | fi | |
34707 | ||
34708 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
34709 | cat >>confdefs.h <<\_ACEOF | |
34710 | #define wxUSE_STOPWATCH 1 | |
34711 | _ACEOF | |
34712 | ||
34713 | fi | |
34714 | ||
34715 | if test "$wxUSE_DATETIME" = "yes"; then | |
34716 | cat >>confdefs.h <<\_ACEOF | |
34717 | #define wxUSE_DATETIME 1 | |
34718 | _ACEOF | |
34719 | ||
34720 | fi | |
34721 | ||
34722 | if test "$wxUSE_FILE" = "yes"; then | |
34723 | cat >>confdefs.h <<\_ACEOF | |
34724 | #define wxUSE_FILE 1 | |
34725 | _ACEOF | |
34726 | ||
34727 | fi | |
34728 | ||
34729 | if test "$wxUSE_FFILE" = "yes"; then | |
34730 | cat >>confdefs.h <<\_ACEOF | |
34731 | #define wxUSE_FFILE 1 | |
34732 | _ACEOF | |
34733 | ||
34734 | fi | |
34735 | ||
34736 | if test "$wxUSE_FILESYSTEM" = "yes"; then | |
34737 | cat >>confdefs.h <<\_ACEOF | |
34738 | #define wxUSE_FILESYSTEM 1 | |
34739 | _ACEOF | |
34740 | ||
34741 | fi | |
34742 | ||
34743 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
34744 | cat >>confdefs.h <<\_ACEOF | |
34745 | #define wxUSE_FS_ZIP 1 | |
34746 | _ACEOF | |
34747 | ||
34748 | fi | |
34749 | ||
34750 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
34751 | cat >>confdefs.h <<\_ACEOF | |
34752 | #define wxUSE_ZIPSTREAM 1 | |
34753 | _ACEOF | |
34754 | ||
34755 | fi | |
34756 | ||
a848cd7e SC |
34757 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
34758 | cat >>confdefs.h <<\_ACEOF | |
34759 | #define wxUSE_ON_FATAL_EXCEPTION 1 | |
34760 | _ACEOF | |
34761 | ||
34762 | fi | |
34763 | ||
34764 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
34765 | cat >>confdefs.h <<\_ACEOF | |
34766 | #define wxUSE_SNGLINST_CHECKER 1 | |
34767 | _ACEOF | |
34768 | ||
34769 | fi | |
34770 | ||
34771 | if test "$wxUSE_BUSYINFO" = "yes"; then | |
34772 | cat >>confdefs.h <<\_ACEOF | |
34773 | #define wxUSE_BUSYINFO 1 | |
34774 | _ACEOF | |
34775 | ||
34776 | fi | |
34777 | ||
34778 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
34779 | cat >>confdefs.h <<\_ACEOF | |
34780 | #define wxUSE_STD_IOSTREAM 1 | |
34781 | _ACEOF | |
34782 | ||
34783 | fi | |
34784 | ||
34785 | if test "$wxUSE_TEXTBUFFER" = "yes"; then | |
34786 | cat >>confdefs.h <<\_ACEOF | |
34787 | #define wxUSE_TEXTBUFFER 1 | |
34788 | _ACEOF | |
34789 | ||
34790 | fi | |
34791 | ||
34792 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
34793 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then | |
34794 | { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5 | |
34795 | echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;} | |
34796 | else | |
34797 | cat >>confdefs.h <<\_ACEOF | |
34798 | #define wxUSE_TEXTFILE 1 | |
34799 | _ACEOF | |
34800 | ||
34801 | fi | |
34802 | fi | |
34803 | ||
34804 | if test "$wxUSE_CONFIG" = "yes" ; then | |
34805 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
34806 | { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5 | |
34807 | echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;} | |
34808 | else | |
34809 | cat >>confdefs.h <<\_ACEOF | |
34810 | #define wxUSE_CONFIG 1 | |
34811 | _ACEOF | |
34812 | ||
34813 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
34814 | fi | |
34815 | fi | |
34816 | ||
34817 | if test "$wxUSE_INTL" = "yes" ; then | |
34818 | if test "$wxUSE_FILE" != "yes"; then | |
34819 | { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5 | |
34820 | echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;} | |
34821 | else | |
34822 | cat >>confdefs.h <<\_ACEOF | |
34823 | #define wxUSE_INTL 1 | |
34824 | _ACEOF | |
34825 | ||
34826 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
34827 | GUIDIST="$GUIDIST INTL_DIST" | |
34828 | fi | |
34829 | fi | |
34830 | ||
34831 | if test "$wxUSE_LOG" = "yes"; then | |
34832 | cat >>confdefs.h <<\_ACEOF | |
34833 | #define wxUSE_LOG 1 | |
34834 | _ACEOF | |
34835 | ||
34836 | ||
34837 | if test "$wxUSE_LOGGUI" = "yes"; then | |
34838 | cat >>confdefs.h <<\_ACEOF | |
34839 | #define wxUSE_LOGGUI 1 | |
34840 | _ACEOF | |
34841 | ||
34842 | fi | |
34843 | ||
34844 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
34845 | cat >>confdefs.h <<\_ACEOF | |
34846 | #define wxUSE_LOGWINDOW 1 | |
34847 | _ACEOF | |
34848 | ||
34849 | fi | |
34850 | ||
34851 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
34852 | cat >>confdefs.h <<\_ACEOF | |
34853 | #define wxUSE_LOG_DIALOG 1 | |
34854 | _ACEOF | |
34855 | ||
34856 | fi | |
34857 | fi | |
34858 | ||
34859 | if test "$wxUSE_LONGLONG" = "yes"; then | |
34860 | cat >>confdefs.h <<\_ACEOF | |
34861 | #define wxUSE_LONGLONG 1 | |
34862 | _ACEOF | |
34863 | ||
34864 | fi | |
34865 | ||
34866 | if test "$wxUSE_GEOMETRY" = "yes"; then | |
34867 | cat >>confdefs.h <<\_ACEOF | |
34868 | #define wxUSE_GEOMETRY 1 | |
34869 | _ACEOF | |
34870 | ||
34871 | fi | |
34872 | ||
34873 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then | |
34874 | cat >>confdefs.h <<\_ACEOF | |
34875 | #define wxUSE_DIALUP_MANAGER 1 | |
34876 | _ACEOF | |
34877 | ||
34878 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" | |
34879 | fi | |
34880 | ||
34881 | if test "$wxUSE_STREAMS" = "yes" ; then | |
34882 | cat >>confdefs.h <<\_ACEOF | |
34883 | #define wxUSE_STREAMS 1 | |
34884 | _ACEOF | |
34885 | ||
34886 | fi | |
34887 | ||
34888 | ||
34889 | if test "$wxUSE_DATETIME" = "yes"; then | |
34890 | ||
34891 | for ac_func in strptime | |
34892 | do | |
34893 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34894 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34895 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34896 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34897 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34898 | else | |
34899 | cat >conftest.$ac_ext <<_ACEOF | |
34900 | /* confdefs.h. */ | |
34901 | _ACEOF | |
34902 | cat confdefs.h >>conftest.$ac_ext | |
34903 | cat >>conftest.$ac_ext <<_ACEOF | |
34904 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34905 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34906 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34907 | #define $ac_func innocuous_$ac_func | |
34908 | ||
a848cd7e SC |
34909 | /* System header to define __stub macros and hopefully few prototypes, |
34910 | which can conflict with char $ac_func (); below. | |
34911 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34912 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34913 | |
a848cd7e SC |
34914 | #ifdef __STDC__ |
34915 | # include <limits.h> | |
34916 | #else | |
34917 | # include <assert.h> | |
34918 | #endif | |
ac1cb8d3 VS |
34919 | |
34920 | #undef $ac_func | |
34921 | ||
a848cd7e SC |
34922 | /* Override any gcc2 internal prototype to avoid an error. */ |
34923 | #ifdef __cplusplus | |
34924 | extern "C" | |
34925 | { | |
34926 | #endif | |
34927 | /* We use char because int might match the return type of a gcc2 | |
34928 | builtin and then its argument prototype would still apply. */ | |
34929 | char $ac_func (); | |
34930 | /* The GNU C library defines this for functions which it implements | |
34931 | to always fail with ENOSYS. Some functions are actually named | |
34932 | something starting with __ and the normal name is an alias. */ | |
34933 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34934 | choke me | |
34935 | #else | |
34936 | char (*f) () = $ac_func; | |
34937 | #endif | |
34938 | #ifdef __cplusplus | |
34939 | } | |
34940 | #endif | |
34941 | ||
34942 | int | |
34943 | main () | |
34944 | { | |
34945 | return f != $ac_func; | |
34946 | ; | |
34947 | return 0; | |
34948 | } | |
34949 | _ACEOF | |
34950 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34951 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34952 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34953 | ac_status=$? |
ac1cb8d3 VS |
34954 | grep -v '^ *+' conftest.er1 >conftest.err |
34955 | rm -f conftest.er1 | |
34956 | cat conftest.err >&5 | |
a848cd7e SC |
34957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34958 | (exit $ac_status); } && | |
d51253e8 | 34959 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34961 | (eval $ac_try) 2>&5 | |
34962 | ac_status=$? | |
34963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34964 | (exit $ac_status); }; } && | |
34965 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34967 | (eval $ac_try) 2>&5 | |
34968 | ac_status=$? | |
34969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34970 | (exit $ac_status); }; }; then | |
34971 | eval "$as_ac_var=yes" | |
34972 | else | |
34973 | echo "$as_me: failed program was:" >&5 | |
34974 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34975 | ||
34976 | eval "$as_ac_var=no" | |
34977 | fi | |
ac1cb8d3 VS |
34978 | rm -f conftest.err conftest.$ac_objext \ |
34979 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34980 | fi |
34981 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34982 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34983 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34984 | cat >>confdefs.h <<_ACEOF | |
34985 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34986 | _ACEOF | |
34987 | ||
34988 | fi | |
34989 | done | |
34990 | ||
34991 | ||
34992 | echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5 | |
34993 | echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6 | |
34994 | if test "${wx_cv_var_timezone+set}" = set; then | |
34995 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34996 | else | |
34997 | ||
34998 | cat >conftest.$ac_ext <<_ACEOF | |
34999 | /* confdefs.h. */ | |
35000 | _ACEOF | |
35001 | cat confdefs.h >>conftest.$ac_ext | |
35002 | cat >>conftest.$ac_ext <<_ACEOF | |
35003 | /* end confdefs.h. */ | |
35004 | ||
35005 | #include <time.h> | |
35006 | ||
35007 | int | |
35008 | main () | |
35009 | { | |
35010 | ||
35011 | int tz; | |
35012 | tz = timezone; | |
35013 | ||
35014 | ; | |
35015 | return 0; | |
35016 | } | |
35017 | _ACEOF | |
35018 | rm -f conftest.$ac_objext | |
35019 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35020 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35021 | ac_status=$? |
ac1cb8d3 VS |
35022 | grep -v '^ *+' conftest.er1 >conftest.err |
35023 | rm -f conftest.er1 | |
35024 | cat conftest.err >&5 | |
a848cd7e SC |
35025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35026 | (exit $ac_status); } && | |
d51253e8 | 35027 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35029 | (eval $ac_try) 2>&5 | |
35030 | ac_status=$? | |
35031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35032 | (exit $ac_status); }; } && | |
35033 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35035 | (eval $ac_try) 2>&5 | |
35036 | ac_status=$? | |
35037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35038 | (exit $ac_status); }; }; then | |
35039 | ||
35040 | wx_cv_var_timezone=timezone | |
35041 | ||
35042 | else | |
35043 | echo "$as_me: failed program was:" >&5 | |
35044 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35045 | ||
35046 | ||
35047 | cat >conftest.$ac_ext <<_ACEOF | |
35048 | /* confdefs.h. */ | |
35049 | _ACEOF | |
35050 | cat confdefs.h >>conftest.$ac_ext | |
35051 | cat >>conftest.$ac_ext <<_ACEOF | |
35052 | /* end confdefs.h. */ | |
35053 | ||
35054 | #include <time.h> | |
35055 | ||
35056 | int | |
35057 | main () | |
35058 | { | |
35059 | ||
35060 | int tz; | |
35061 | tz = _timezone; | |
35062 | ||
35063 | ; | |
35064 | return 0; | |
35065 | } | |
35066 | _ACEOF | |
35067 | rm -f conftest.$ac_objext | |
35068 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35069 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35070 | ac_status=$? |
ac1cb8d3 VS |
35071 | grep -v '^ *+' conftest.er1 >conftest.err |
35072 | rm -f conftest.er1 | |
35073 | cat conftest.err >&5 | |
a848cd7e SC |
35074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35075 | (exit $ac_status); } && | |
d51253e8 | 35076 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35078 | (eval $ac_try) 2>&5 | |
35079 | ac_status=$? | |
35080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35081 | (exit $ac_status); }; } && | |
35082 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35084 | (eval $ac_try) 2>&5 | |
35085 | ac_status=$? | |
35086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35087 | (exit $ac_status); }; }; then | |
35088 | ||
35089 | wx_cv_var_timezone=_timezone | |
35090 | ||
35091 | else | |
35092 | echo "$as_me: failed program was:" >&5 | |
35093 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35094 | ||
35095 | ||
35096 | cat >conftest.$ac_ext <<_ACEOF | |
35097 | /* confdefs.h. */ | |
35098 | _ACEOF | |
35099 | cat confdefs.h >>conftest.$ac_ext | |
35100 | cat >>conftest.$ac_ext <<_ACEOF | |
35101 | /* end confdefs.h. */ | |
35102 | ||
35103 | #include <time.h> | |
35104 | ||
35105 | int | |
35106 | main () | |
35107 | { | |
35108 | ||
35109 | int tz; | |
35110 | tz = __timezone; | |
35111 | ||
35112 | ; | |
35113 | return 0; | |
35114 | } | |
35115 | _ACEOF | |
35116 | rm -f conftest.$ac_objext | |
35117 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35118 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35119 | ac_status=$? |
ac1cb8d3 VS |
35120 | grep -v '^ *+' conftest.er1 >conftest.err |
35121 | rm -f conftest.er1 | |
35122 | cat conftest.err >&5 | |
a848cd7e SC |
35123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35124 | (exit $ac_status); } && | |
d51253e8 | 35125 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35127 | (eval $ac_try) 2>&5 | |
35128 | ac_status=$? | |
35129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35130 | (exit $ac_status); }; } && | |
35131 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35133 | (eval $ac_try) 2>&5 | |
35134 | ac_status=$? | |
35135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35136 | (exit $ac_status); }; }; then | |
35137 | ||
35138 | wx_cv_var_timezone=__timezone | |
35139 | ||
35140 | else | |
35141 | echo "$as_me: failed program was:" >&5 | |
35142 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35143 | ||
35144 | ||
35145 | if test "$USE_DOS" = 0 ; then | |
35146 | { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5 | |
35147 | echo "$as_me: WARNING: no timezone variable" >&2;} | |
35148 | fi | |
35149 | ||
35150 | ||
35151 | fi | |
ac1cb8d3 | 35152 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35153 | |
35154 | ||
35155 | fi | |
ac1cb8d3 | 35156 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35157 | |
35158 | ||
35159 | fi | |
ac1cb8d3 | 35160 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35161 | |
35162 | ||
35163 | fi | |
35164 | echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5 | |
35165 | echo "${ECHO_T}$wx_cv_var_timezone" >&6 | |
35166 | ||
35167 | if test "x$wx_cv_var_timezone" != x ; then | |
35168 | cat >>confdefs.h <<_ACEOF | |
35169 | #define WX_TIMEZONE $wx_cv_var_timezone | |
35170 | _ACEOF | |
35171 | ||
35172 | fi | |
35173 | ||
35174 | ||
35175 | for ac_func in localtime | |
35176 | do | |
35177 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35178 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35179 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35180 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35181 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35182 | else | |
35183 | cat >conftest.$ac_ext <<_ACEOF | |
35184 | /* confdefs.h. */ | |
35185 | _ACEOF | |
35186 | cat confdefs.h >>conftest.$ac_ext | |
35187 | cat >>conftest.$ac_ext <<_ACEOF | |
35188 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35189 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35190 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35191 | #define $ac_func innocuous_$ac_func | |
35192 | ||
a848cd7e SC |
35193 | /* System header to define __stub macros and hopefully few prototypes, |
35194 | which can conflict with char $ac_func (); below. | |
35195 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35196 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35197 | |
a848cd7e SC |
35198 | #ifdef __STDC__ |
35199 | # include <limits.h> | |
35200 | #else | |
35201 | # include <assert.h> | |
35202 | #endif | |
ac1cb8d3 VS |
35203 | |
35204 | #undef $ac_func | |
35205 | ||
a848cd7e SC |
35206 | /* Override any gcc2 internal prototype to avoid an error. */ |
35207 | #ifdef __cplusplus | |
35208 | extern "C" | |
35209 | { | |
35210 | #endif | |
35211 | /* We use char because int might match the return type of a gcc2 | |
35212 | builtin and then its argument prototype would still apply. */ | |
35213 | char $ac_func (); | |
35214 | /* The GNU C library defines this for functions which it implements | |
35215 | to always fail with ENOSYS. Some functions are actually named | |
35216 | something starting with __ and the normal name is an alias. */ | |
35217 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35218 | choke me | |
35219 | #else | |
35220 | char (*f) () = $ac_func; | |
35221 | #endif | |
35222 | #ifdef __cplusplus | |
35223 | } | |
35224 | #endif | |
35225 | ||
35226 | int | |
35227 | main () | |
35228 | { | |
35229 | return f != $ac_func; | |
35230 | ; | |
35231 | return 0; | |
35232 | } | |
35233 | _ACEOF | |
35234 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35235 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35236 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35237 | ac_status=$? |
ac1cb8d3 VS |
35238 | grep -v '^ *+' conftest.er1 >conftest.err |
35239 | rm -f conftest.er1 | |
35240 | cat conftest.err >&5 | |
a848cd7e SC |
35241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35242 | (exit $ac_status); } && | |
d51253e8 | 35243 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35244 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35245 | (eval $ac_try) 2>&5 | |
35246 | ac_status=$? | |
35247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35248 | (exit $ac_status); }; } && | |
35249 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35250 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35251 | (eval $ac_try) 2>&5 | |
35252 | ac_status=$? | |
35253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35254 | (exit $ac_status); }; }; then | |
35255 | eval "$as_ac_var=yes" | |
35256 | else | |
35257 | echo "$as_me: failed program was:" >&5 | |
35258 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35259 | ||
35260 | eval "$as_ac_var=no" | |
35261 | fi | |
ac1cb8d3 VS |
35262 | rm -f conftest.err conftest.$ac_objext \ |
35263 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35264 | fi |
35265 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35266 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35267 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35268 | cat >>confdefs.h <<_ACEOF | |
35269 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35270 | _ACEOF | |
35271 | ||
35272 | fi | |
35273 | done | |
35274 | ||
35275 | ||
35276 | if test "$ac_cv_func_localtime" = "yes"; then | |
35277 | echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5 | |
35278 | echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 | |
35279 | if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then | |
35280 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35281 | else | |
35282 | ||
35283 | cat >conftest.$ac_ext <<_ACEOF | |
35284 | /* confdefs.h. */ | |
35285 | _ACEOF | |
35286 | cat confdefs.h >>conftest.$ac_ext | |
35287 | cat >>conftest.$ac_ext <<_ACEOF | |
35288 | /* end confdefs.h. */ | |
35289 | ||
35290 | #include <time.h> | |
35291 | ||
35292 | int | |
35293 | main () | |
35294 | { | |
35295 | ||
35296 | struct tm tm; | |
35297 | tm.tm_gmtoff++; | |
35298 | ||
35299 | ; | |
35300 | return 0; | |
35301 | } | |
35302 | _ACEOF | |
35303 | rm -f conftest.$ac_objext | |
35304 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35305 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35306 | ac_status=$? |
ac1cb8d3 VS |
35307 | grep -v '^ *+' conftest.er1 >conftest.err |
35308 | rm -f conftest.er1 | |
35309 | cat conftest.err >&5 | |
a848cd7e SC |
35310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35311 | (exit $ac_status); } && | |
d51253e8 | 35312 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35314 | (eval $ac_try) 2>&5 | |
35315 | ac_status=$? | |
35316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35317 | (exit $ac_status); }; } && | |
35318 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35320 | (eval $ac_try) 2>&5 | |
35321 | ac_status=$? | |
35322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35323 | (exit $ac_status); }; }; then | |
35324 | ||
35325 | wx_cv_struct_tm_has_gmtoff=yes | |
35326 | ||
35327 | else | |
35328 | echo "$as_me: failed program was:" >&5 | |
35329 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35330 | ||
35331 | wx_cv_struct_tm_has_gmtoff=no | |
35332 | ||
35333 | fi | |
ac1cb8d3 | 35334 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35335 | |
35336 | fi | |
35337 | echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5 | |
35338 | echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6 | |
35339 | fi | |
35340 | ||
35341 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
35342 | cat >>confdefs.h <<\_ACEOF | |
35343 | #define WX_GMTOFF_IN_TM 1 | |
35344 | _ACEOF | |
35345 | ||
35346 | fi | |
35347 | ||
35348 | ||
35349 | ||
35350 | for ac_func in gettimeofday ftime | |
35351 | do | |
35352 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35353 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35354 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35355 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35356 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35357 | else | |
35358 | cat >conftest.$ac_ext <<_ACEOF | |
35359 | /* confdefs.h. */ | |
35360 | _ACEOF | |
35361 | cat confdefs.h >>conftest.$ac_ext | |
35362 | cat >>conftest.$ac_ext <<_ACEOF | |
35363 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35364 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35365 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35366 | #define $ac_func innocuous_$ac_func | |
35367 | ||
a848cd7e SC |
35368 | /* System header to define __stub macros and hopefully few prototypes, |
35369 | which can conflict with char $ac_func (); below. | |
35370 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35371 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35372 | |
a848cd7e SC |
35373 | #ifdef __STDC__ |
35374 | # include <limits.h> | |
35375 | #else | |
35376 | # include <assert.h> | |
35377 | #endif | |
ac1cb8d3 VS |
35378 | |
35379 | #undef $ac_func | |
35380 | ||
a848cd7e SC |
35381 | /* Override any gcc2 internal prototype to avoid an error. */ |
35382 | #ifdef __cplusplus | |
35383 | extern "C" | |
35384 | { | |
35385 | #endif | |
35386 | /* We use char because int might match the return type of a gcc2 | |
35387 | builtin and then its argument prototype would still apply. */ | |
35388 | char $ac_func (); | |
35389 | /* The GNU C library defines this for functions which it implements | |
35390 | to always fail with ENOSYS. Some functions are actually named | |
35391 | something starting with __ and the normal name is an alias. */ | |
35392 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35393 | choke me | |
35394 | #else | |
35395 | char (*f) () = $ac_func; | |
35396 | #endif | |
35397 | #ifdef __cplusplus | |
35398 | } | |
35399 | #endif | |
35400 | ||
35401 | int | |
35402 | main () | |
35403 | { | |
35404 | return f != $ac_func; | |
35405 | ; | |
35406 | return 0; | |
35407 | } | |
35408 | _ACEOF | |
35409 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35410 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35411 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35412 | ac_status=$? |
ac1cb8d3 VS |
35413 | grep -v '^ *+' conftest.er1 >conftest.err |
35414 | rm -f conftest.er1 | |
35415 | cat conftest.err >&5 | |
a848cd7e SC |
35416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35417 | (exit $ac_status); } && | |
d51253e8 | 35418 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35420 | (eval $ac_try) 2>&5 | |
35421 | ac_status=$? | |
35422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35423 | (exit $ac_status); }; } && | |
35424 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35426 | (eval $ac_try) 2>&5 | |
35427 | ac_status=$? | |
35428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35429 | (exit $ac_status); }; }; then | |
35430 | eval "$as_ac_var=yes" | |
35431 | else | |
35432 | echo "$as_me: failed program was:" >&5 | |
35433 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35434 | ||
35435 | eval "$as_ac_var=no" | |
35436 | fi | |
ac1cb8d3 VS |
35437 | rm -f conftest.err conftest.$ac_objext \ |
35438 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35439 | fi |
35440 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35441 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35442 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35443 | cat >>confdefs.h <<_ACEOF | |
35444 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35445 | _ACEOF | |
35446 | break | |
35447 | fi | |
35448 | done | |
35449 | ||
35450 | ||
35451 | if test "$ac_cv_func_gettimeofday" = "yes"; then | |
35452 | echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5 | |
35453 | echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6 | |
35454 | if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then | |
35455 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35456 | else | |
35457 | ||
35458 | ||
35459 | ||
35460 | ac_ext=cc | |
35461 | ac_cpp='$CXXCPP $CPPFLAGS' | |
35462 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35463 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35464 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
35465 | ||
35466 | ||
35467 | cat >conftest.$ac_ext <<_ACEOF | |
35468 | /* confdefs.h. */ | |
35469 | _ACEOF | |
35470 | cat confdefs.h >>conftest.$ac_ext | |
35471 | cat >>conftest.$ac_ext <<_ACEOF | |
35472 | /* end confdefs.h. */ | |
35473 | ||
35474 | #include <sys/time.h> | |
35475 | #include <unistd.h> | |
35476 | ||
35477 | int | |
35478 | main () | |
35479 | { | |
35480 | ||
35481 | struct timeval tv; | |
35482 | gettimeofday(&tv, NULL); | |
35483 | ||
35484 | ; | |
35485 | return 0; | |
35486 | } | |
35487 | _ACEOF | |
35488 | rm -f conftest.$ac_objext | |
35489 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35490 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35491 | ac_status=$? |
ac1cb8d3 VS |
35492 | grep -v '^ *+' conftest.er1 >conftest.err |
35493 | rm -f conftest.er1 | |
35494 | cat conftest.err >&5 | |
a848cd7e SC |
35495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35496 | (exit $ac_status); } && | |
d51253e8 | 35497 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35499 | (eval $ac_try) 2>&5 | |
35500 | ac_status=$? | |
35501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35502 | (exit $ac_status); }; } && | |
35503 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35505 | (eval $ac_try) 2>&5 | |
35506 | ac_status=$? | |
35507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35508 | (exit $ac_status); }; }; then | |
35509 | wx_cv_func_gettimeofday_has_2_args=yes | |
35510 | else | |
35511 | echo "$as_me: failed program was:" >&5 | |
35512 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35513 | ||
35514 | cat >conftest.$ac_ext <<_ACEOF | |
35515 | /* confdefs.h. */ | |
35516 | _ACEOF | |
35517 | cat confdefs.h >>conftest.$ac_ext | |
35518 | cat >>conftest.$ac_ext <<_ACEOF | |
35519 | /* end confdefs.h. */ | |
35520 | ||
35521 | #include <sys/time.h> | |
35522 | #include <unistd.h> | |
35523 | ||
35524 | int | |
35525 | main () | |
35526 | { | |
35527 | ||
35528 | struct timeval tv; | |
35529 | gettimeofday(&tv); | |
35530 | ||
35531 | ; | |
35532 | return 0; | |
35533 | } | |
35534 | _ACEOF | |
35535 | rm -f conftest.$ac_objext | |
35536 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35537 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35538 | ac_status=$? |
ac1cb8d3 VS |
35539 | grep -v '^ *+' conftest.er1 >conftest.err |
35540 | rm -f conftest.er1 | |
35541 | cat conftest.err >&5 | |
a848cd7e SC |
35542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35543 | (exit $ac_status); } && | |
d51253e8 | 35544 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35546 | (eval $ac_try) 2>&5 | |
35547 | ac_status=$? | |
35548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35549 | (exit $ac_status); }; } && | |
35550 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35552 | (eval $ac_try) 2>&5 | |
35553 | ac_status=$? | |
35554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35555 | (exit $ac_status); }; }; then | |
35556 | wx_cv_func_gettimeofday_has_2_args=no | |
35557 | else | |
35558 | echo "$as_me: failed program was:" >&5 | |
35559 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35560 | ||
35561 | ||
35562 | { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5 | |
35563 | echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;} | |
35564 | wx_cv_func_gettimeofday_has_2_args=unknown | |
35565 | ||
35566 | ||
35567 | fi | |
ac1cb8d3 | 35568 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35569 | |
35570 | fi | |
ac1cb8d3 | 35571 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35572 | ac_ext=c |
35573 | ac_cpp='$CPP $CPPFLAGS' | |
35574 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35575 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35576 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
35577 | ||
35578 | ||
35579 | fi | |
35580 | echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5 | |
35581 | echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6 | |
35582 | ||
35583 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then | |
35584 | cat >>confdefs.h <<\_ACEOF | |
35585 | #define WX_GETTIMEOFDAY_NO_TZ 1 | |
35586 | _ACEOF | |
35587 | ||
35588 | fi | |
35589 | fi | |
35590 | ||
35591 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
35592 | fi | |
35593 | ||
35594 | ||
35595 | if test "$wxUSE_SOCKETS" = "yes"; then | |
35596 | if test "$wxUSE_MGL" = "1"; then | |
35597 | { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5 | |
35598 | echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;} | |
35599 | wxUSE_SOCKETS="no" | |
35600 | fi | |
35601 | fi | |
35602 | ||
35603 | if test "$wxUSE_SOCKETS" = "yes"; then | |
35604 | if test "$TOOLKIT" != "MSW"; then | |
35605 | echo "$as_me:$LINENO: checking for socket" >&5 | |
35606 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 | |
35607 | if test "${ac_cv_func_socket+set}" = set; then | |
35608 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35609 | else | |
35610 | cat >conftest.$ac_ext <<_ACEOF | |
35611 | /* confdefs.h. */ | |
35612 | _ACEOF | |
35613 | cat confdefs.h >>conftest.$ac_ext | |
35614 | cat >>conftest.$ac_ext <<_ACEOF | |
35615 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35616 | /* Define socket to an innocuous variant, in case <limits.h> declares socket. |
35617 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35618 | #define socket innocuous_socket | |
35619 | ||
a848cd7e SC |
35620 | /* System header to define __stub macros and hopefully few prototypes, |
35621 | which can conflict with char socket (); below. | |
35622 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35623 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35624 | |
a848cd7e SC |
35625 | #ifdef __STDC__ |
35626 | # include <limits.h> | |
35627 | #else | |
35628 | # include <assert.h> | |
35629 | #endif | |
ac1cb8d3 VS |
35630 | |
35631 | #undef socket | |
35632 | ||
a848cd7e SC |
35633 | /* Override any gcc2 internal prototype to avoid an error. */ |
35634 | #ifdef __cplusplus | |
35635 | extern "C" | |
35636 | { | |
35637 | #endif | |
35638 | /* We use char because int might match the return type of a gcc2 | |
35639 | builtin and then its argument prototype would still apply. */ | |
35640 | char socket (); | |
35641 | /* The GNU C library defines this for functions which it implements | |
35642 | to always fail with ENOSYS. Some functions are actually named | |
35643 | something starting with __ and the normal name is an alias. */ | |
35644 | #if defined (__stub_socket) || defined (__stub___socket) | |
35645 | choke me | |
35646 | #else | |
35647 | char (*f) () = socket; | |
35648 | #endif | |
35649 | #ifdef __cplusplus | |
35650 | } | |
35651 | #endif | |
35652 | ||
35653 | int | |
35654 | main () | |
35655 | { | |
35656 | return f != socket; | |
35657 | ; | |
35658 | return 0; | |
35659 | } | |
35660 | _ACEOF | |
35661 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35662 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35663 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35664 | ac_status=$? |
ac1cb8d3 VS |
35665 | grep -v '^ *+' conftest.er1 >conftest.err |
35666 | rm -f conftest.er1 | |
35667 | cat conftest.err >&5 | |
a848cd7e SC |
35668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35669 | (exit $ac_status); } && | |
d51253e8 | 35670 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35672 | (eval $ac_try) 2>&5 | |
35673 | ac_status=$? | |
35674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35675 | (exit $ac_status); }; } && | |
35676 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35678 | (eval $ac_try) 2>&5 | |
35679 | ac_status=$? | |
35680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35681 | (exit $ac_status); }; }; then | |
35682 | ac_cv_func_socket=yes | |
35683 | else | |
35684 | echo "$as_me: failed program was:" >&5 | |
35685 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35686 | ||
35687 | ac_cv_func_socket=no | |
35688 | fi | |
ac1cb8d3 VS |
35689 | rm -f conftest.err conftest.$ac_objext \ |
35690 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35691 | fi |
35692 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 | |
35693 | echo "${ECHO_T}$ac_cv_func_socket" >&6 | |
35694 | if test $ac_cv_func_socket = yes; then | |
35695 | : | |
35696 | else | |
35697 | ||
35698 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 | |
35699 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 | |
35700 | if test "${ac_cv_lib_socket_socket+set}" = set; then | |
35701 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35702 | else | |
35703 | ac_check_lib_save_LIBS=$LIBS | |
35704 | LIBS="-lsocket $LIBS" | |
35705 | cat >conftest.$ac_ext <<_ACEOF | |
35706 | /* confdefs.h. */ | |
35707 | _ACEOF | |
35708 | cat confdefs.h >>conftest.$ac_ext | |
35709 | cat >>conftest.$ac_ext <<_ACEOF | |
35710 | /* end confdefs.h. */ | |
35711 | ||
35712 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35713 | #ifdef __cplusplus | |
35714 | extern "C" | |
35715 | #endif | |
35716 | /* We use char because int might match the return type of a gcc2 | |
35717 | builtin and then its argument prototype would still apply. */ | |
35718 | char socket (); | |
35719 | int | |
35720 | main () | |
35721 | { | |
35722 | socket (); | |
35723 | ; | |
35724 | return 0; | |
35725 | } | |
35726 | _ACEOF | |
35727 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35728 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35729 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35730 | ac_status=$? |
ac1cb8d3 VS |
35731 | grep -v '^ *+' conftest.er1 >conftest.err |
35732 | rm -f conftest.er1 | |
35733 | cat conftest.err >&5 | |
a848cd7e SC |
35734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35735 | (exit $ac_status); } && | |
d51253e8 | 35736 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35738 | (eval $ac_try) 2>&5 | |
35739 | ac_status=$? | |
35740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35741 | (exit $ac_status); }; } && | |
35742 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35744 | (eval $ac_try) 2>&5 | |
35745 | ac_status=$? | |
35746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35747 | (exit $ac_status); }; }; then | |
35748 | ac_cv_lib_socket_socket=yes | |
35749 | else | |
35750 | echo "$as_me: failed program was:" >&5 | |
35751 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35752 | ||
35753 | ac_cv_lib_socket_socket=no | |
35754 | fi | |
ac1cb8d3 VS |
35755 | rm -f conftest.err conftest.$ac_objext \ |
35756 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35757 | LIBS=$ac_check_lib_save_LIBS |
35758 | fi | |
35759 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 | |
35760 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 | |
35761 | if test $ac_cv_lib_socket_socket = yes; then | |
35762 | if test "$INET_LINK" != " -lsocket"; then | |
35763 | INET_LINK="$INET_LINK -lsocket" | |
35764 | fi | |
35765 | else | |
35766 | ||
35767 | { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5 | |
35768 | echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;} | |
35769 | wxUSE_SOCKETS=no | |
35770 | ||
35771 | ||
35772 | fi | |
35773 | ||
35774 | ||
35775 | ||
35776 | fi | |
35777 | ||
35778 | fi | |
35779 | fi | |
35780 | ||
35781 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
35782 | if test "$TOOLKIT" != "MSW"; then | |
4d4ff94c VZ |
35783 | ac_ext=cc |
35784 | ac_cpp='$CXXCPP $CPPFLAGS' | |
35785 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35786 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35787 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
35788 | ||
35789 | echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5 | |
a848cd7e SC |
35790 | echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6 |
35791 | if test "${wx_cv_type_getsockname3+set}" = set; then | |
35792 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35793 | else | |
35794 | ||
35795 | cat >conftest.$ac_ext <<_ACEOF | |
35796 | /* confdefs.h. */ | |
35797 | _ACEOF | |
35798 | cat confdefs.h >>conftest.$ac_ext | |
35799 | cat >>conftest.$ac_ext <<_ACEOF | |
35800 | /* end confdefs.h. */ | |
35801 | ||
35802 | #include <sys/types.h> | |
35803 | #include <sys/socket.h> | |
35804 | ||
35805 | int | |
35806 | main () | |
35807 | { | |
35808 | ||
35809 | socklen_t len; | |
35810 | getsockname(0, 0, &len); | |
35811 | ||
35812 | ; | |
35813 | return 0; | |
35814 | } | |
35815 | _ACEOF | |
35816 | rm -f conftest.$ac_objext | |
35817 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35818 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35819 | ac_status=$? |
ac1cb8d3 VS |
35820 | grep -v '^ *+' conftest.er1 >conftest.err |
35821 | rm -f conftest.er1 | |
35822 | cat conftest.err >&5 | |
a848cd7e SC |
35823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35824 | (exit $ac_status); } && | |
d51253e8 | 35825 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35827 | (eval $ac_try) 2>&5 | |
35828 | ac_status=$? | |
35829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35830 | (exit $ac_status); }; } && | |
35831 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35833 | (eval $ac_try) 2>&5 | |
35834 | ac_status=$? | |
35835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35836 | (exit $ac_status); }; }; then | |
35837 | wx_cv_type_getsockname3=socklen_t | |
35838 | else | |
35839 | echo "$as_me: failed program was:" >&5 | |
35840 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35841 | ||
35842 | ||
35843 | CFLAGS_OLD="$CFLAGS" | |
35844 | if test "$GCC" = yes ; then | |
35845 | CFLAGS="$CFLAGS -Werror" | |
35846 | fi | |
35847 | ||
35848 | cat >conftest.$ac_ext <<_ACEOF | |
35849 | /* confdefs.h. */ | |
35850 | _ACEOF | |
35851 | cat confdefs.h >>conftest.$ac_ext | |
35852 | cat >>conftest.$ac_ext <<_ACEOF | |
35853 | /* end confdefs.h. */ | |
35854 | ||
35855 | #include <sys/types.h> | |
35856 | #include <sys/socket.h> | |
35857 | ||
35858 | int | |
35859 | main () | |
35860 | { | |
35861 | ||
35862 | size_t len; | |
35863 | getsockname(0, 0, &len); | |
35864 | ||
35865 | ; | |
35866 | return 0; | |
35867 | } | |
35868 | _ACEOF | |
35869 | rm -f conftest.$ac_objext | |
35870 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35871 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35872 | ac_status=$? |
ac1cb8d3 VS |
35873 | grep -v '^ *+' conftest.er1 >conftest.err |
35874 | rm -f conftest.er1 | |
35875 | cat conftest.err >&5 | |
a848cd7e SC |
35876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35877 | (exit $ac_status); } && | |
d51253e8 | 35878 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35879 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35880 | (eval $ac_try) 2>&5 | |
35881 | ac_status=$? | |
35882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35883 | (exit $ac_status); }; } && | |
35884 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35886 | (eval $ac_try) 2>&5 | |
35887 | ac_status=$? | |
35888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35889 | (exit $ac_status); }; }; then | |
35890 | wx_cv_type_getsockname3=size_t | |
35891 | else | |
35892 | echo "$as_me: failed program was:" >&5 | |
35893 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35894 | ||
35895 | cat >conftest.$ac_ext <<_ACEOF | |
35896 | /* confdefs.h. */ | |
35897 | _ACEOF | |
35898 | cat confdefs.h >>conftest.$ac_ext | |
35899 | cat >>conftest.$ac_ext <<_ACEOF | |
35900 | /* end confdefs.h. */ | |
35901 | ||
35902 | #include <sys/types.h> | |
35903 | #include <sys/socket.h> | |
35904 | ||
35905 | int | |
35906 | main () | |
35907 | { | |
35908 | ||
35909 | int len; | |
35910 | getsockname(0, 0, &len); | |
35911 | ||
35912 | ; | |
35913 | return 0; | |
35914 | } | |
35915 | _ACEOF | |
35916 | rm -f conftest.$ac_objext | |
35917 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35918 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35919 | ac_status=$? |
ac1cb8d3 VS |
35920 | grep -v '^ *+' conftest.er1 >conftest.err |
35921 | rm -f conftest.er1 | |
35922 | cat conftest.err >&5 | |
a848cd7e SC |
35923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35924 | (exit $ac_status); } && | |
d51253e8 | 35925 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35927 | (eval $ac_try) 2>&5 | |
35928 | ac_status=$? | |
35929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35930 | (exit $ac_status); }; } && | |
35931 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35933 | (eval $ac_try) 2>&5 | |
35934 | ac_status=$? | |
35935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35936 | (exit $ac_status); }; }; then | |
35937 | wx_cv_type_getsockname3=int | |
35938 | else | |
35939 | echo "$as_me: failed program was:" >&5 | |
35940 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35941 | ||
35942 | wx_cv_type_getsockname3=unknown | |
35943 | ||
35944 | fi | |
ac1cb8d3 | 35945 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35946 | |
35947 | fi | |
ac1cb8d3 | 35948 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35949 | |
35950 | CFLAGS="$CFLAGS_OLD" | |
35951 | ||
35952 | ||
35953 | fi | |
ac1cb8d3 | 35954 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35955 | |
35956 | fi | |
35957 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5 | |
35958 | echo "${ECHO_T}$wx_cv_type_getsockname3" >&6 | |
35959 | ||
35960 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
35961 | wxUSE_SOCKETS=no | |
35962 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
35963 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
35964 | else | |
35965 | cat >>confdefs.h <<_ACEOF | |
35966 | #define SOCKLEN_T $wx_cv_type_getsockname3 | |
35967 | _ACEOF | |
35968 | ||
35969 | fi | |
4d4ff94c VZ |
35970 | ac_ext=c |
35971 | ac_cpp='$CPP $CPPFLAGS' | |
35972 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35973 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35974 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
35975 | ||
a848cd7e SC |
35976 | fi |
35977 | fi | |
35978 | ||
35979 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
35980 | cat >>confdefs.h <<\_ACEOF | |
35981 | #define wxUSE_SOCKETS 1 | |
35982 | _ACEOF | |
35983 | ||
35984 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" | |
35985 | fi | |
35986 | ||
35987 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
35988 | if test "$wxUSE_SOCKETS" != "yes"; then | |
35989 | { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5 | |
35990 | echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;} | |
35991 | wxUSE_PROTOCOL=no | |
35992 | fi | |
35993 | fi | |
35994 | ||
35995 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
35996 | cat >>confdefs.h <<\_ACEOF | |
35997 | #define wxUSE_PROTOCOL 1 | |
35998 | _ACEOF | |
35999 | ||
36000 | ||
36001 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then | |
36002 | cat >>confdefs.h <<\_ACEOF | |
36003 | #define wxUSE_PROTOCOL_HTTP 1 | |
36004 | _ACEOF | |
36005 | ||
36006 | fi | |
36007 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
36008 | cat >>confdefs.h <<\_ACEOF | |
36009 | #define wxUSE_PROTOCOL_FTP 1 | |
36010 | _ACEOF | |
36011 | ||
36012 | fi | |
36013 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
36014 | cat >>confdefs.h <<\_ACEOF | |
36015 | #define wxUSE_PROTOCOL_FILE 1 | |
36016 | _ACEOF | |
36017 | ||
36018 | fi | |
36019 | else | |
36020 | if test "$wxUSE_FS_INET" = "yes"; then | |
36021 | { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5 | |
36022 | echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;} | |
36023 | wxUSE_FS_INET="no" | |
36024 | fi | |
36025 | fi | |
36026 | ||
36027 | if test "$wxUSE_URL" = "yes"; then | |
36028 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
36029 | { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5 | |
36030 | echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;} | |
36031 | wxUSE_URL=no | |
36032 | fi | |
36033 | if test "$wxUSE_URL" = "yes"; then | |
36034 | cat >>confdefs.h <<\_ACEOF | |
36035 | #define wxUSE_URL 1 | |
36036 | _ACEOF | |
36037 | ||
36038 | fi | |
36039 | fi | |
36040 | ||
36041 | if test "$wxUSE_FS_INET" = "yes"; then | |
36042 | cat >>confdefs.h <<\_ACEOF | |
36043 | #define wxUSE_FS_INET 1 | |
36044 | _ACEOF | |
36045 | ||
36046 | fi | |
36047 | ||
36048 | ||
36049 | if test "$wxUSE_GUI" = "yes"; then | |
36050 | ||
36051 | if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then | |
36052 | { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5 | |
36053 | echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;} | |
36054 | wxUSE_JOYSTICK=no | |
36055 | fi | |
36056 | ||
36057 | if test "$TOOLKIT" != "MSW"; then | |
36058 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
36059 | ||
36060 | for ac_header in linux/joystick.h | |
36061 | do | |
36062 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
36063 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36064 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36065 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36066 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36067 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36068 | fi | |
36069 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36070 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36071 | else | |
36072 | # Is the header compilable? | |
36073 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
36074 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
36075 | cat >conftest.$ac_ext <<_ACEOF | |
36076 | /* confdefs.h. */ | |
36077 | _ACEOF | |
36078 | cat confdefs.h >>conftest.$ac_ext | |
36079 | cat >>conftest.$ac_ext <<_ACEOF | |
36080 | /* end confdefs.h. */ | |
36081 | $ac_includes_default | |
36082 | #include <$ac_header> | |
36083 | _ACEOF | |
36084 | rm -f conftest.$ac_objext | |
36085 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36086 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36087 | ac_status=$? |
ac1cb8d3 VS |
36088 | grep -v '^ *+' conftest.er1 >conftest.err |
36089 | rm -f conftest.er1 | |
36090 | cat conftest.err >&5 | |
a848cd7e SC |
36091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36092 | (exit $ac_status); } && | |
d51253e8 | 36093 | { ac_try='test -z "$ac_c_werror_flag" || 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_objext' | |
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 | ac_header_compiler=yes | |
36106 | else | |
36107 | echo "$as_me: failed program was:" >&5 | |
36108 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36109 | ||
36110 | ac_header_compiler=no | |
36111 | fi | |
ac1cb8d3 | 36112 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36113 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
36114 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
36115 | ||
36116 | # Is the header present? | |
36117 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
36118 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
36119 | cat >conftest.$ac_ext <<_ACEOF | |
36120 | /* confdefs.h. */ | |
36121 | _ACEOF | |
36122 | cat confdefs.h >>conftest.$ac_ext | |
36123 | cat >>conftest.$ac_ext <<_ACEOF | |
36124 | /* end confdefs.h. */ | |
36125 | #include <$ac_header> | |
36126 | _ACEOF | |
36127 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
36128 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
36129 | ac_status=$? | |
36130 | grep -v '^ *+' conftest.er1 >conftest.err | |
36131 | rm -f conftest.er1 | |
36132 | cat conftest.err >&5 | |
36133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36134 | (exit $ac_status); } >/dev/null; then | |
36135 | if test -s conftest.err; then | |
36136 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 36137 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
36138 | else |
36139 | ac_cpp_err= | |
36140 | fi | |
36141 | else | |
36142 | ac_cpp_err=yes | |
36143 | fi | |
36144 | if test -z "$ac_cpp_err"; then | |
36145 | ac_header_preproc=yes | |
36146 | else | |
36147 | echo "$as_me: failed program was:" >&5 | |
36148 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36149 | ||
36150 | ac_header_preproc=no | |
36151 | fi | |
36152 | rm -f conftest.err conftest.$ac_ext | |
36153 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
36154 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
36155 | ||
36156 | # So? What about this header? | |
ac1cb8d3 VS |
36157 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
36158 | yes:no: ) | |
a848cd7e SC |
36159 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
36160 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
36161 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
36162 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
36163 | ac_header_preproc=yes | |
a848cd7e | 36164 | ;; |
ac1cb8d3 | 36165 | no:yes:* ) |
a848cd7e SC |
36166 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
36167 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
36168 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
36169 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
36170 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
36171 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
36172 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
36173 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
36174 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
36175 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
36176 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
36177 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
36178 | ( |
36179 | cat <<\_ASBOX | |
ac1cb8d3 VS |
36180 | ## ----------------------------------------- ## |
36181 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
36182 | ## ----------------------------------------- ## | |
a848cd7e SC |
36183 | _ASBOX |
36184 | ) | | |
36185 | sed "s/^/$as_me: WARNING: /" >&2 | |
36186 | ;; | |
36187 | esac | |
36188 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36189 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36190 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36191 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36192 | else | |
ac1cb8d3 | 36193 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
36194 | fi |
36195 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36196 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36197 | ||
36198 | fi | |
36199 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
36200 | cat >>confdefs.h <<_ACEOF | |
36201 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
36202 | _ACEOF | |
36203 | ||
36204 | fi | |
36205 | ||
36206 | done | |
36207 | ||
36208 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then | |
36209 | wxUSE_JOYSTICK=no | |
36210 | { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5 | |
36211 | echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;} | |
36212 | fi | |
36213 | fi | |
36214 | fi | |
36215 | ||
36216 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
36217 | cat >>confdefs.h <<\_ACEOF | |
36218 | #define wxUSE_JOYSTICK 1 | |
36219 | _ACEOF | |
36220 | ||
36221 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" | |
36222 | fi | |
36223 | fi | |
36224 | ||
36225 | ||
36226 | ||
36227 | if test "$wxUSE_FONTMAP" = "yes" ; then | |
36228 | cat >>confdefs.h <<\_ACEOF | |
36229 | #define wxUSE_FONTMAP 1 | |
36230 | _ACEOF | |
36231 | ||
36232 | fi | |
36233 | ||
36234 | if test "$wxUSE_UNICODE" = "yes" ; then | |
36235 | cat >>confdefs.h <<\_ACEOF | |
36236 | #define wxUSE_UNICODE 1 | |
36237 | _ACEOF | |
36238 | ||
36239 | ||
36240 | if test "$USE_WIN32" != 1; then | |
36241 | wxUSE_UNICODE_MSLU=no | |
36242 | fi | |
36243 | ||
36244 | if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
36245 | echo "$as_me:$LINENO: checking for main in -lunicows" >&5 | |
36246 | echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6 | |
36247 | if test "${ac_cv_lib_unicows_main+set}" = set; then | |
36248 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36249 | else | |
36250 | ac_check_lib_save_LIBS=$LIBS | |
36251 | LIBS="-lunicows $LIBS" | |
36252 | cat >conftest.$ac_ext <<_ACEOF | |
36253 | /* confdefs.h. */ | |
36254 | _ACEOF | |
36255 | cat confdefs.h >>conftest.$ac_ext | |
36256 | cat >>conftest.$ac_ext <<_ACEOF | |
36257 | /* end confdefs.h. */ | |
36258 | ||
36259 | ||
36260 | int | |
36261 | main () | |
36262 | { | |
36263 | main (); | |
36264 | ; | |
36265 | return 0; | |
36266 | } | |
36267 | _ACEOF | |
36268 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36269 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36270 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36271 | ac_status=$? |
ac1cb8d3 VS |
36272 | grep -v '^ *+' conftest.er1 >conftest.err |
36273 | rm -f conftest.er1 | |
36274 | cat conftest.err >&5 | |
a848cd7e SC |
36275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36276 | (exit $ac_status); } && | |
d51253e8 | 36277 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36279 | (eval $ac_try) 2>&5 | |
36280 | ac_status=$? | |
36281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36282 | (exit $ac_status); }; } && | |
36283 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36285 | (eval $ac_try) 2>&5 | |
36286 | ac_status=$? | |
36287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36288 | (exit $ac_status); }; }; then | |
36289 | ac_cv_lib_unicows_main=yes | |
36290 | else | |
36291 | echo "$as_me: failed program was:" >&5 | |
36292 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36293 | ||
36294 | ac_cv_lib_unicows_main=no | |
36295 | fi | |
ac1cb8d3 VS |
36296 | rm -f conftest.err conftest.$ac_objext \ |
36297 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36298 | LIBS=$ac_check_lib_save_LIBS |
36299 | fi | |
36300 | echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5 | |
36301 | echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6 | |
36302 | if test $ac_cv_lib_unicows_main = yes; then | |
36303 | ||
36304 | cat >>confdefs.h <<\_ACEOF | |
36305 | #define wxUSE_UNICODE_MSLU 1 | |
36306 | _ACEOF | |
36307 | ||
36308 | ||
36309 | else | |
36310 | ||
36311 | { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
36312 | Applications will only run on Windows NT/2000/XP!" >&5 | |
36313 | echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
36314 | Applications will only run on Windows NT/2000/XP!" >&2;} | |
36315 | wxUSE_UNICODE_MSLU=no | |
36316 | ||
36317 | fi | |
36318 | ||
36319 | fi | |
36320 | fi | |
36321 | ||
36322 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
36323 | cat >>confdefs.h <<\_ACEOF | |
36324 | #define wxUSE_EXPERIMENTAL_PRINTF 1 | |
36325 | _ACEOF | |
36326 | ||
36327 | fi | |
36328 | ||
36329 | ||
36330 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then | |
36331 | cat >>confdefs.h <<\_ACEOF | |
36332 | #define wxUSE_POSTSCRIPT 1 | |
36333 | _ACEOF | |
36334 | ||
36335 | fi | |
36336 | ||
36337 | cat >>confdefs.h <<\_ACEOF | |
36338 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 | |
36339 | _ACEOF | |
36340 | ||
36341 | ||
36342 | cat >>confdefs.h <<\_ACEOF | |
36343 | #define wxUSE_NORMALIZED_PS_FONTS 1 | |
36344 | _ACEOF | |
36345 | ||
36346 | ||
36347 | ||
36348 | if test "$wxUSE_CONSTRAINTS" = "yes"; then | |
36349 | cat >>confdefs.h <<\_ACEOF | |
36350 | #define wxUSE_CONSTRAINTS 1 | |
36351 | _ACEOF | |
36352 | ||
36353 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
36354 | fi | |
36355 | ||
8a7b1113 VZ |
36356 | if test "$wxUSE_MDI" = "yes"; then |
36357 | cat >>confdefs.h <<\_ACEOF | |
36358 | #define wxUSE_MDI 1 | |
36359 | _ACEOF | |
36360 | ||
36361 | ||
36362 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
36363 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
36364 | #define wxUSE_MDI_ARCHITECTURE 1 |
36365 | _ACEOF | |
36366 | ||
8a7b1113 VZ |
36367 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
36368 | fi | |
a848cd7e SC |
36369 | fi |
36370 | ||
36371 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
36372 | cat >>confdefs.h <<\_ACEOF | |
36373 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
36374 | _ACEOF | |
36375 | ||
36376 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
36377 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
36378 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
36379 | fi | |
36380 | fi | |
36381 | ||
36382 | if test "$wxUSE_HELP" = "yes"; then | |
36383 | cat >>confdefs.h <<\_ACEOF | |
36384 | #define wxUSE_HELP 1 | |
36385 | _ACEOF | |
36386 | ||
36387 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
36388 | ||
36389 | if test "$wxUSE_MSW" = 1; then | |
36390 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then | |
36391 | cat >>confdefs.h <<\_ACEOF | |
36392 | #define wxUSE_MS_HTML_HELP 1 | |
36393 | _ACEOF | |
36394 | ||
36395 | fi | |
36396 | fi | |
36397 | ||
36398 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
36399 | if test "$wxUSE_HTML" = "yes"; then | |
36400 | cat >>confdefs.h <<\_ACEOF | |
36401 | #define wxUSE_WXHTML_HELP 1 | |
36402 | _ACEOF | |
36403 | ||
36404 | else | |
36405 | { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5 | |
36406 | echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;} | |
36407 | wxUSE_WXHTML_HELP=no | |
36408 | fi | |
36409 | fi | |
36410 | fi | |
36411 | ||
36412 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
36413 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
36414 | { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5 | |
36415 | echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;} | |
36416 | else | |
36417 | cat >>confdefs.h <<\_ACEOF | |
36418 | #define wxUSE_PRINTING_ARCHITECTURE 1 | |
36419 | _ACEOF | |
36420 | ||
36421 | fi | |
36422 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
36423 | fi | |
36424 | ||
36425 | if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then | |
36426 | { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5 | |
36427 | echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;} | |
36428 | { (exit 1); exit 1; }; } | |
36429 | fi | |
36430 | ||
36431 | ||
36432 | if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ | |
36433 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
36434 | -o "$wxUSE_OLE" = "yes" \ | |
36435 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
36436 | ||
36437 | for ac_header in ole2.h | |
36438 | do | |
36439 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
36440 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36441 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36442 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36443 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36444 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36445 | fi | |
36446 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36447 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36448 | else | |
36449 | # Is the header compilable? | |
36450 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
36451 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
36452 | cat >conftest.$ac_ext <<_ACEOF | |
36453 | /* confdefs.h. */ | |
36454 | _ACEOF | |
36455 | cat confdefs.h >>conftest.$ac_ext | |
36456 | cat >>conftest.$ac_ext <<_ACEOF | |
36457 | /* end confdefs.h. */ | |
36458 | $ac_includes_default | |
36459 | #include <$ac_header> | |
36460 | _ACEOF | |
36461 | rm -f conftest.$ac_objext | |
36462 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36463 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36464 | ac_status=$? |
ac1cb8d3 VS |
36465 | grep -v '^ *+' conftest.er1 >conftest.err |
36466 | rm -f conftest.er1 | |
36467 | cat conftest.err >&5 | |
a848cd7e SC |
36468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36469 | (exit $ac_status); } && | |
d51253e8 | 36470 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36472 | (eval $ac_try) 2>&5 | |
36473 | ac_status=$? | |
36474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36475 | (exit $ac_status); }; } && | |
36476 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36478 | (eval $ac_try) 2>&5 | |
36479 | ac_status=$? | |
36480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36481 | (exit $ac_status); }; }; then | |
36482 | ac_header_compiler=yes | |
36483 | else | |
36484 | echo "$as_me: failed program was:" >&5 | |
36485 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36486 | ||
36487 | ac_header_compiler=no | |
36488 | fi | |
ac1cb8d3 | 36489 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36490 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
36491 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
36492 | ||
36493 | # Is the header present? | |
36494 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
36495 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
36496 | cat >conftest.$ac_ext <<_ACEOF | |
36497 | /* confdefs.h. */ | |
36498 | _ACEOF | |
36499 | cat confdefs.h >>conftest.$ac_ext | |
36500 | cat >>conftest.$ac_ext <<_ACEOF | |
36501 | /* end confdefs.h. */ | |
36502 | #include <$ac_header> | |
36503 | _ACEOF | |
36504 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
36505 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
36506 | ac_status=$? | |
36507 | grep -v '^ *+' conftest.er1 >conftest.err | |
36508 | rm -f conftest.er1 | |
36509 | cat conftest.err >&5 | |
36510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36511 | (exit $ac_status); } >/dev/null; then | |
36512 | if test -s conftest.err; then | |
36513 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 36514 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
36515 | else |
36516 | ac_cpp_err= | |
36517 | fi | |
36518 | else | |
36519 | ac_cpp_err=yes | |
36520 | fi | |
36521 | if test -z "$ac_cpp_err"; then | |
36522 | ac_header_preproc=yes | |
36523 | else | |
36524 | echo "$as_me: failed program was:" >&5 | |
36525 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36526 | ||
36527 | ac_header_preproc=no | |
36528 | fi | |
36529 | rm -f conftest.err conftest.$ac_ext | |
36530 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
36531 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
36532 | ||
36533 | # So? What about this header? | |
ac1cb8d3 VS |
36534 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
36535 | yes:no: ) | |
a848cd7e SC |
36536 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
36537 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
36538 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
36539 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
36540 | ac_header_preproc=yes | |
a848cd7e | 36541 | ;; |
ac1cb8d3 | 36542 | no:yes:* ) |
a848cd7e SC |
36543 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
36544 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
36545 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
36546 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
36547 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
36548 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
36549 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
36550 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
36551 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
36552 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
36553 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
36554 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
36555 | ( |
36556 | cat <<\_ASBOX | |
ac1cb8d3 VS |
36557 | ## ----------------------------------------- ## |
36558 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
36559 | ## ----------------------------------------- ## | |
a848cd7e SC |
36560 | _ASBOX |
36561 | ) | | |
36562 | sed "s/^/$as_me: WARNING: /" >&2 | |
36563 | ;; | |
36564 | esac | |
36565 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36566 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36567 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36568 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36569 | else | |
ac1cb8d3 | 36570 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
36571 | fi |
36572 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36573 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36574 | ||
36575 | fi | |
36576 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
36577 | cat >>confdefs.h <<_ACEOF | |
36578 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
36579 | _ACEOF | |
36580 | ||
36581 | fi | |
36582 | ||
36583 | done | |
36584 | ||
36585 | ||
36586 | if test "$ac_cv_header_ole2_h" = "yes" ; then | |
36587 | if test "$GCC" = yes ; then | |
36588 | ||
36589 | ||
36590 | ac_ext=cc | |
36591 | ac_cpp='$CXXCPP $CPPFLAGS' | |
36592 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
36593 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
36594 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
36595 | ||
36596 | ||
36597 | echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5 | |
36598 | echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6 | |
36599 | cat >conftest.$ac_ext <<_ACEOF | |
36600 | /* confdefs.h. */ | |
36601 | _ACEOF | |
36602 | cat confdefs.h >>conftest.$ac_ext | |
36603 | cat >>conftest.$ac_ext <<_ACEOF | |
36604 | /* end confdefs.h. */ | |
36605 | #include <windows.h> | |
36606 | #include <ole2.h> | |
36607 | int | |
36608 | main () | |
36609 | { | |
36610 | ||
36611 | ; | |
36612 | return 0; | |
36613 | } | |
36614 | _ACEOF | |
36615 | rm -f conftest.$ac_objext | |
36616 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36617 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36618 | ac_status=$? |
ac1cb8d3 VS |
36619 | grep -v '^ *+' conftest.er1 >conftest.err |
36620 | rm -f conftest.er1 | |
36621 | cat conftest.err >&5 | |
a848cd7e SC |
36622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36623 | (exit $ac_status); } && | |
d51253e8 | 36624 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36626 | (eval $ac_try) 2>&5 | |
36627 | ac_status=$? | |
36628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36629 | (exit $ac_status); }; } && | |
36630 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36632 | (eval $ac_try) 2>&5 | |
36633 | ac_status=$? | |
36634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36635 | (exit $ac_status); }; }; then | |
36636 | echo "$as_me:$LINENO: result: no" >&5 | |
36637 | echo "${ECHO_T}no" >&6 | |
36638 | else | |
36639 | echo "$as_me: failed program was:" >&5 | |
36640 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36641 | ||
36642 | echo "$as_me:$LINENO: result: yes" >&5 | |
36643 | echo "${ECHO_T}yes" >&6 | |
36644 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" | |
36645 | fi | |
ac1cb8d3 | 36646 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36647 | ac_ext=c |
36648 | ac_cpp='$CPP $CPPFLAGS' | |
36649 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
36650 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
36651 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
36652 | ||
a848cd7e SC |
36653 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
36654 | if test "$wxUSE_OLE" = "yes" ; then | |
36655 | cat >>confdefs.h <<\_ACEOF | |
36656 | #define wxUSE_OLE 1 | |
36657 | _ACEOF | |
36658 | ||
36659 | fi | |
36660 | fi | |
36661 | ||
36662 | if test "$wxUSE_DATAOBJ" = "yes" ; then | |
36663 | cat >>confdefs.h <<\_ACEOF | |
36664 | #define wxUSE_DATAOBJ 1 | |
36665 | _ACEOF | |
36666 | ||
36667 | fi | |
36668 | else | |
36669 | { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5 | |
36670 | echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;} | |
36671 | ||
36672 | wxUSE_CLIPBOARD=no | |
36673 | wxUSE_DRAG_AND_DROP=no | |
36674 | wxUSE_DATAOBJ=no | |
36675 | wxUSE_OLE=no | |
36676 | fi | |
36677 | ||
36678 | if test "$wxUSE_METAFILE" = "yes"; then | |
36679 | cat >>confdefs.h <<\_ACEOF | |
36680 | #define wxUSE_METAFILE 1 | |
36681 | _ACEOF | |
36682 | ||
36683 | ||
36684 | cat >>confdefs.h <<\_ACEOF | |
36685 | #define wxUSE_ENH_METAFILE 1 | |
36686 | _ACEOF | |
36687 | ||
36688 | fi | |
36689 | fi | |
36690 | ||
36691 | if test "$wxUSE_IPC" = "yes"; then | |
36692 | if test "$wxUSE_SOCKETS" != "yes"; then | |
77ffb593 JS |
36693 | { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5 |
36694 | echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;} | |
a848cd7e SC |
36695 | fi |
36696 | ||
36697 | cat >>confdefs.h <<\_ACEOF | |
36698 | #define wxUSE_IPC 1 | |
36699 | _ACEOF | |
36700 | ||
36701 | fi | |
36702 | ||
36703 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
36704 | if test "$wxUSE_MGL" = 1; then | |
36705 | { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5 | |
36706 | echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;} | |
36707 | wxUSE_CLIPBOARD=no | |
36708 | fi | |
36709 | ||
36710 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
36711 | cat >>confdefs.h <<\_ACEOF | |
36712 | #define wxUSE_CLIPBOARD 1 | |
36713 | _ACEOF | |
36714 | ||
36715 | ||
36716 | cat >>confdefs.h <<\_ACEOF | |
36717 | #define wxUSE_DATAOBJ 1 | |
36718 | _ACEOF | |
36719 | ||
36720 | fi | |
36721 | fi | |
36722 | ||
36723 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
36724 | if test "$wxUSE_GTK" = 1; then | |
36725 | if test "$WXGTK12" != 1; then | |
36726 | { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5 | |
36727 | echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;} | |
36728 | wxUSE_DRAG_AND_DROP=no | |
36729 | fi | |
36730 | fi | |
36731 | ||
36732 | if test "$wxUSE_MOTIF" = 1; then | |
36733 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5 | |
36734 | echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;} | |
36735 | wxUSE_DRAG_AND_DROP=no | |
36736 | fi | |
36737 | ||
36738 | if test "$wxUSE_X11" = 1; then | |
36739 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5 | |
36740 | echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;} | |
36741 | wxUSE_DRAG_AND_DROP=no | |
36742 | fi | |
36743 | ||
36744 | if test "$wxUSE_MGL" = 1; then | |
36745 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5 | |
36746 | echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;} | |
36747 | wxUSE_DRAG_AND_DROP=no | |
36748 | fi | |
36749 | ||
36750 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
36751 | cat >>confdefs.h <<\_ACEOF | |
36752 | #define wxUSE_DRAG_AND_DROP 1 | |
36753 | _ACEOF | |
36754 | ||
36755 | fi | |
36756 | ||
36757 | fi | |
36758 | ||
36759 | if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then | |
36760 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
36761 | fi | |
36762 | ||
36763 | if test "$wxUSE_SPLINES" = "yes" ; then | |
36764 | cat >>confdefs.h <<\_ACEOF | |
36765 | #define wxUSE_SPLINES 1 | |
36766 | _ACEOF | |
36767 | ||
36768 | fi | |
36769 | ||
36770 | ||
36771 | USES_CONTROLS=0 | |
36772 | if test "$wxUSE_CONTROLS" = "yes"; then | |
36773 | USES_CONTROLS=1 | |
36774 | fi | |
36775 | ||
36776 | if test "$wxUSE_ACCEL" = "yes"; then | |
36777 | cat >>confdefs.h <<\_ACEOF | |
36778 | #define wxUSE_ACCEL 1 | |
36779 | _ACEOF | |
36780 | ||
36781 | USES_CONTROLS=1 | |
36782 | fi | |
36783 | ||
36784 | if test "$wxUSE_BUTTON" = "yes"; then | |
36785 | cat >>confdefs.h <<\_ACEOF | |
36786 | #define wxUSE_BUTTON 1 | |
36787 | _ACEOF | |
36788 | ||
36789 | USES_CONTROLS=1 | |
36790 | fi | |
36791 | ||
36792 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
36793 | cat >>confdefs.h <<\_ACEOF | |
36794 | #define wxUSE_BMPBUTTON 1 | |
36795 | _ACEOF | |
36796 | ||
36797 | USES_CONTROLS=1 | |
36798 | fi | |
36799 | ||
36800 | if test "$wxUSE_CALCTRL" = "yes"; then | |
36801 | cat >>confdefs.h <<\_ACEOF | |
36802 | #define wxUSE_CALENDARCTRL 1 | |
36803 | _ACEOF | |
36804 | ||
36805 | USES_CONTROLS=1 | |
36806 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
36807 | fi | |
36808 | ||
36809 | if test "$wxUSE_CARET" = "yes"; then | |
36810 | cat >>confdefs.h <<\_ACEOF | |
36811 | #define wxUSE_CARET 1 | |
36812 | _ACEOF | |
36813 | ||
36814 | USES_CONTROLS=1 | |
36815 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
36816 | fi | |
36817 | ||
36818 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
36819 | cat >>confdefs.h <<\_ACEOF | |
36820 | #define wxUSE_COMBOBOX 1 | |
36821 | _ACEOF | |
36822 | ||
36823 | USES_CONTROLS=1 | |
36824 | fi | |
36825 | ||
36826 | if test "$wxUSE_CHOICE" = "yes"; then | |
36827 | cat >>confdefs.h <<\_ACEOF | |
36828 | #define wxUSE_CHOICE 1 | |
36829 | _ACEOF | |
36830 | ||
36831 | USES_CONTROLS=1 | |
36832 | fi | |
36833 | ||
92bbdbcd WS |
36834 | if test "$wxUSE_CHOICEBOOK" = "yes"; then |
36835 | cat >>confdefs.h <<\_ACEOF | |
36836 | #define wxUSE_CHOICEBOOK 1 | |
36837 | _ACEOF | |
36838 | ||
36839 | USES_CONTROLS=1 | |
36840 | fi | |
36841 | ||
a848cd7e SC |
36842 | if test "$wxUSE_CHECKBOX" = "yes"; then |
36843 | cat >>confdefs.h <<\_ACEOF | |
36844 | #define wxUSE_CHECKBOX 1 | |
36845 | _ACEOF | |
36846 | ||
36847 | USES_CONTROLS=1 | |
36848 | fi | |
36849 | ||
36850 | if test "$wxUSE_CHECKLST" = "yes"; then | |
36851 | cat >>confdefs.h <<\_ACEOF | |
36852 | #define wxUSE_CHECKLISTBOX 1 | |
36853 | _ACEOF | |
36854 | ||
36855 | USES_CONTROLS=1 | |
36856 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" | |
36857 | fi | |
36858 | ||
36859 | if test "$wxUSE_DISPLAY" = "yes"; then | |
36860 | cat >>confdefs.h <<\_ACEOF | |
36861 | #define wxUSE_DISPLAY 1 | |
36862 | _ACEOF | |
36863 | ||
36864 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display" | |
36865 | fi | |
36866 | ||
36867 | if test "$wxUSE_GAUGE" = "yes"; then | |
36868 | cat >>confdefs.h <<\_ACEOF | |
36869 | #define wxUSE_GAUGE 1 | |
36870 | _ACEOF | |
36871 | ||
36872 | USES_CONTROLS=1 | |
36873 | fi | |
36874 | ||
36875 | if test "$wxUSE_GRID" = "yes"; then | |
36876 | cat >>confdefs.h <<\_ACEOF | |
36877 | #define wxUSE_GRID 1 | |
36878 | _ACEOF | |
36879 | ||
36880 | USES_CONTROLS=1 | |
36881 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" | |
36882 | fi | |
36883 | ||
36884 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
36885 | cat >>confdefs.h <<\_ACEOF | |
36886 | #define wxUSE_IMAGLIST 1 | |
36887 | _ACEOF | |
36888 | ||
36889 | fi | |
36890 | ||
36891 | if test "$wxUSE_LISTBOOK" = "yes"; then | |
36892 | cat >>confdefs.h <<\_ACEOF | |
36893 | #define wxUSE_LISTBOOK 1 | |
36894 | _ACEOF | |
36895 | ||
36896 | USES_CONTROLS=1 | |
36897 | fi | |
36898 | ||
36899 | if test "$wxUSE_LISTBOX" = "yes"; then | |
36900 | cat >>confdefs.h <<\_ACEOF | |
36901 | #define wxUSE_LISTBOX 1 | |
36902 | _ACEOF | |
36903 | ||
36904 | USES_CONTROLS=1 | |
36905 | fi | |
36906 | ||
36907 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
36908 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
36909 | cat >>confdefs.h <<\_ACEOF | |
36910 | #define wxUSE_LISTCTRL 1 | |
36911 | _ACEOF | |
36912 | ||
36913 | USES_CONTROLS=1 | |
36914 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
36915 | else | |
36916 | { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5 | |
36917 | echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;} | |
36918 | fi | |
36919 | fi | |
36920 | ||
36921 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
36922 | cat >>confdefs.h <<\_ACEOF | |
36923 | #define wxUSE_NOTEBOOK 1 | |
36924 | _ACEOF | |
36925 | ||
36926 | USES_CONTROLS=1 | |
36927 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
36928 | fi | |
36929 | ||
36930 | ||
36931 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
36932 | cat >>confdefs.h <<\_ACEOF | |
36933 | #define wxUSE_RADIOBOX 1 | |
36934 | _ACEOF | |
36935 | ||
36936 | USES_CONTROLS=1 | |
36937 | fi | |
36938 | ||
36939 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
36940 | cat >>confdefs.h <<\_ACEOF | |
36941 | #define wxUSE_RADIOBTN 1 | |
36942 | _ACEOF | |
36943 | ||
36944 | USES_CONTROLS=1 | |
36945 | fi | |
36946 | ||
36947 | if test "$wxUSE_SASH" = "yes"; then | |
36948 | cat >>confdefs.h <<\_ACEOF | |
36949 | #define wxUSE_SASH 1 | |
36950 | _ACEOF | |
36951 | ||
36952 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
36953 | fi | |
36954 | ||
36955 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
36956 | cat >>confdefs.h <<\_ACEOF | |
36957 | #define wxUSE_SCROLLBAR 1 | |
36958 | _ACEOF | |
36959 | ||
36960 | USES_CONTROLS=1 | |
36961 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" | |
36962 | fi | |
36963 | ||
36964 | if test "$wxUSE_SLIDER" = "yes"; then | |
36965 | cat >>confdefs.h <<\_ACEOF | |
36966 | #define wxUSE_SLIDER 1 | |
36967 | _ACEOF | |
36968 | ||
36969 | USES_CONTROLS=1 | |
36970 | fi | |
36971 | ||
36972 | if test "$wxUSE_SPINBTN" = "yes"; then | |
36973 | cat >>confdefs.h <<\_ACEOF | |
36974 | #define wxUSE_SPINBTN 1 | |
36975 | _ACEOF | |
36976 | ||
36977 | USES_CONTROLS=1 | |
36978 | fi | |
36979 | ||
36980 | if test "$wxUSE_SPINCTRL" = "yes"; then | |
36981 | cat >>confdefs.h <<\_ACEOF | |
36982 | #define wxUSE_SPINCTRL 1 | |
36983 | _ACEOF | |
36984 | ||
36985 | USES_CONTROLS=1 | |
36986 | fi | |
36987 | ||
36988 | if test "$wxUSE_SPLITTER" = "yes"; then | |
36989 | cat >>confdefs.h <<\_ACEOF | |
36990 | #define wxUSE_SPLITTER 1 | |
36991 | _ACEOF | |
36992 | ||
36993 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
36994 | fi | |
36995 | ||
36996 | if test "$wxUSE_STATBMP" = "yes"; then | |
36997 | cat >>confdefs.h <<\_ACEOF | |
36998 | #define wxUSE_STATBMP 1 | |
36999 | _ACEOF | |
37000 | ||
37001 | USES_CONTROLS=1 | |
37002 | fi | |
37003 | ||
37004 | if test "$wxUSE_STATBOX" = "yes"; then | |
37005 | cat >>confdefs.h <<\_ACEOF | |
37006 | #define wxUSE_STATBOX 1 | |
37007 | _ACEOF | |
37008 | ||
37009 | USES_CONTROLS=1 | |
37010 | fi | |
37011 | ||
37012 | if test "$wxUSE_STATTEXT" = "yes"; then | |
37013 | cat >>confdefs.h <<\_ACEOF | |
37014 | #define wxUSE_STATTEXT 1 | |
37015 | _ACEOF | |
37016 | ||
37017 | USES_CONTROLS=1 | |
37018 | fi | |
37019 | ||
37020 | if test "$wxUSE_STATLINE" = "yes"; then | |
37021 | cat >>confdefs.h <<\_ACEOF | |
37022 | #define wxUSE_STATLINE 1 | |
37023 | _ACEOF | |
37024 | ||
37025 | USES_CONTROLS=1 | |
37026 | fi | |
37027 | ||
37028 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
37029 | cat >>confdefs.h <<\_ACEOF | |
37030 | #define wxUSE_STATUSBAR 1 | |
37031 | _ACEOF | |
37032 | ||
37033 | USES_CONTROLS=1 | |
37034 | ||
37035 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" | |
37036 | fi | |
37037 | ||
37038 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
37039 | cat >>confdefs.h <<\_ACEOF | |
37040 | #define wxUSE_TAB_DIALOG 1 | |
37041 | _ACEOF | |
37042 | ||
37043 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
37044 | fi | |
37045 | ||
37046 | if test "$wxUSE_TEXTCTRL" = "yes"; then | |
37047 | cat >>confdefs.h <<\_ACEOF | |
37048 | #define wxUSE_TEXTCTRL 1 | |
37049 | _ACEOF | |
37050 | ||
37051 | USES_CONTROLS=1 | |
37052 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
37053 | fi | |
37054 | ||
37055 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
37056 | if test "$wxUSE_COCOA" = 1 ; then | |
37057 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5 | |
37058 | echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;} | |
37059 | wxUSE_TOGGLEBTN=no | |
bdcade0a MB |
37060 | else |
37061 | if test "$wxUSE_PM" = 1; then | |
37062 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5 | |
37063 | echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;} | |
37064 | wxUSE_TOGGLEBTN=no | |
37065 | fi | |
a848cd7e SC |
37066 | fi |
37067 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
37068 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5 | |
37069 | echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;} | |
37070 | wxUSE_TOGGLEBTN=no | |
37071 | fi | |
37072 | ||
37073 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
37074 | cat >>confdefs.h <<\_ACEOF | |
37075 | #define wxUSE_TOGGLEBTN 1 | |
37076 | _ACEOF | |
37077 | ||
37078 | USES_CONTROLS=1 | |
37079 | fi | |
37080 | fi | |
37081 | ||
37082 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then | |
37083 | cat >>confdefs.h <<\_ACEOF | |
37084 | #define wxUSE_TOOLBAR_SIMPLE 1 | |
37085 | _ACEOF | |
37086 | ||
37087 | wxUSE_TOOLBAR="yes" | |
37088 | USES_CONTROLS=1 | |
37089 | fi | |
37090 | ||
37091 | if test "$wxUSE_TOOLBAR" = "yes"; then | |
37092 | cat >>confdefs.h <<\_ACEOF | |
37093 | #define wxUSE_TOOLBAR 1 | |
37094 | _ACEOF | |
37095 | ||
37096 | USES_CONTROLS=1 | |
37097 | ||
37098 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then | |
37099 | wxUSE_TOOLBAR_NATIVE="yes" | |
37100 | fi | |
37101 | ||
37102 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then | |
37103 | cat >>confdefs.h <<\_ACEOF | |
37104 | #define wxUSE_TOOLBAR_NATIVE 1 | |
37105 | _ACEOF | |
37106 | ||
37107 | USES_CONTROLS=1 | |
37108 | fi | |
37109 | ||
37110 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
37111 | fi | |
37112 | ||
37113 | if test "$wxUSE_TOOLTIPS" = "yes"; then | |
37114 | if test "$wxUSE_MOTIF" = 1; then | |
37115 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5 | |
37116 | echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;} | |
37117 | else | |
37118 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
37119 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5 | |
37120 | echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;} | |
37121 | else | |
37122 | cat >>confdefs.h <<\_ACEOF | |
37123 | #define wxUSE_TOOLTIPS 1 | |
37124 | _ACEOF | |
37125 | ||
37126 | fi | |
37127 | fi | |
37128 | fi | |
37129 | ||
37130 | if test "$wxUSE_TREECTRL" = "yes"; then | |
37131 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
37132 | cat >>confdefs.h <<\_ACEOF | |
37133 | #define wxUSE_TREECTRL 1 | |
37134 | _ACEOF | |
37135 | ||
37136 | USES_CONTROLS=1 | |
37137 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
37138 | else | |
37139 | { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5 | |
37140 | echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;} | |
37141 | fi | |
37142 | fi | |
37143 | ||
37144 | if test "$wxUSE_POPUPWIN" = "yes"; then | |
37145 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then | |
37146 | { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5 | |
37147 | echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;} | |
37148 | else | |
37149 | if test "$wxUSE_PM" = 1; then | |
37150 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5 | |
37151 | echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;} | |
37152 | else | |
37153 | cat >>confdefs.h <<\_ACEOF | |
37154 | #define wxUSE_POPUPWIN 1 | |
37155 | _ACEOF | |
37156 | ||
37157 | ||
37158 | USES_CONTROLS=1 | |
37159 | fi | |
37160 | fi | |
37161 | fi | |
37162 | ||
37163 | if test "$wxUSE_TIPWINDOW" = "yes"; then | |
37164 | if test "$wxUSE_PM" = 1; then | |
37165 | { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5 | |
37166 | echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;} | |
37167 | else | |
37168 | cat >>confdefs.h <<\_ACEOF | |
37169 | #define wxUSE_TIPWINDOW 1 | |
37170 | _ACEOF | |
37171 | ||
37172 | fi | |
37173 | fi | |
37174 | ||
37175 | if test "$USES_CONTROLS" = 1; then | |
37176 | cat >>confdefs.h <<\_ACEOF | |
37177 | #define wxUSE_CONTROLS 1 | |
37178 | _ACEOF | |
37179 | ||
37180 | fi | |
37181 | ||
37182 | ||
37183 | if test "$wxUSE_ACCESSIBILITY" = "yes"; then | |
37184 | cat >>confdefs.h <<\_ACEOF | |
37185 | #define wxUSE_ACCESSIBILITY 1 | |
37186 | _ACEOF | |
37187 | ||
37188 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access" | |
37189 | fi | |
37190 | ||
37191 | if test "$wxUSE_DRAGIMAGE" = "yes"; then | |
37192 | cat >>confdefs.h <<\_ACEOF | |
37193 | #define wxUSE_DRAGIMAGE 1 | |
37194 | _ACEOF | |
37195 | ||
37196 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
37197 | fi | |
37198 | ||
37199 | if test "$wxUSE_EXCEPTIONS" = "yes"; then | |
07bea8f0 VS |
37200 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
37201 | { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5 | |
37202 | echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;} | |
37203 | else | |
37204 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
37205 | #define wxUSE_EXCEPTIONS 1 |
37206 | _ACEOF | |
37207 | ||
07bea8f0 VS |
37208 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except" |
37209 | fi | |
a848cd7e SC |
37210 | fi |
37211 | ||
37212 | USE_HTML=0 | |
37213 | if test "$wxUSE_HTML" = "yes"; then | |
37214 | cat >>confdefs.h <<\_ACEOF | |
37215 | #define wxUSE_HTML 1 | |
37216 | _ACEOF | |
37217 | ||
37218 | USE_HTML=1 | |
37219 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox" | |
de59c161 RD |
37220 | if test "$wxUSE_MAC" = 1; then |
37221 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl" | |
37222 | fi | |
a848cd7e | 37223 | fi |
646b6ec1 | 37224 | if test "$wxUSE_WEBKIT" = "yes"; then |
07bea8f0 VS |
37225 | if test "$wxUSE_MAC" = 1; then |
37226 | old_CPPFLAGS="$CPPFLAGS" | |
37227 | CPPFLAGS="$CPPFLAGS -x objective-c++" | |
37228 | echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5 | |
37229 | echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6 | |
37230 | if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then | |
37231 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37232 | else | |
37233 | cat >conftest.$ac_ext <<_ACEOF | |
37234 | /* confdefs.h. */ | |
37235 | _ACEOF | |
37236 | cat confdefs.h >>conftest.$ac_ext | |
37237 | cat >>conftest.$ac_ext <<_ACEOF | |
37238 | /* end confdefs.h. */ | |
37239 | #include <Carbon/Carbon.h> | |
37240 | ||
37241 | #include <WebKit/HIWebView.h> | |
37242 | _ACEOF | |
37243 | rm -f conftest.$ac_objext | |
37244 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
37245 | (eval $ac_compile) 2>conftest.er1 | |
37246 | ac_status=$? | |
37247 | grep -v '^ *+' conftest.er1 >conftest.err | |
37248 | rm -f conftest.er1 | |
37249 | cat conftest.err >&5 | |
37250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37251 | (exit $ac_status); } && | |
d51253e8 | 37252 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
07bea8f0 VS |
37253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37254 | (eval $ac_try) 2>&5 | |
37255 | ac_status=$? | |
37256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37257 | (exit $ac_status); }; } && | |
37258 | { ac_try='test -s conftest.$ac_objext' | |
37259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
37260 | (eval $ac_try) 2>&5 | |
37261 | ac_status=$? | |
37262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37263 | (exit $ac_status); }; }; then | |
37264 | ac_cv_header_WebKit_HIWebView_h=yes | |
37265 | else | |
37266 | echo "$as_me: failed program was:" >&5 | |
37267 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37268 | ||
37269 | ac_cv_header_WebKit_HIWebView_h=no | |
37270 | fi | |
37271 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
37272 | fi | |
37273 | echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5 | |
37274 | echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6 | |
37275 | if test $ac_cv_header_WebKit_HIWebView_h = yes; then | |
37276 | ||
37277 | cat >>confdefs.h <<\_ACEOF | |
646b6ec1 VS |
37278 | #define wxUSE_WEBKIT 1 |
37279 | _ACEOF | |
37280 | ||
07bea8f0 VS |
37281 | WEBKIT_LINK="-framework WebKit" |
37282 | ||
37283 | else | |
37284 | ||
37285 | { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5 | |
37286 | echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;} | |
37287 | wxUSE_WEBKIT=no | |
37288 | ||
646b6ec1 VS |
37289 | fi |
37290 | ||
07bea8f0 VS |
37291 | |
37292 | CPPFLAGS="$old_CPPFLAGS" | |
37293 | elif test "$wxUSE_COCOA" = 1; then | |
37294 | cat >>confdefs.h <<\_ACEOF | |
37295 | #define wxUSE_WEBKIT 1 | |
37296 | _ACEOF | |
37297 | ||
37298 | else | |
37299 | wxUSE_WEBKIT=no | |
37300 | fi | |
37301 | fi | |
37302 | ||
9a8f0513 VS |
37303 | USE_XRC=0 |
37304 | if test "$wxUSE_XRC" = "yes"; then | |
d2ebf0b7 VS |
37305 | if test "$wxUSE_XML" != "yes"; then |
37306 | { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5 | |
37307 | echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;} | |
37308 | wxUSE_XRC=no | |
37309 | else | |
37310 | cat >>confdefs.h <<\_ACEOF | |
9a8f0513 VS |
37311 | #define wxUSE_XRC 1 |
37312 | _ACEOF | |
37313 | ||
d2ebf0b7 VS |
37314 | USE_XRC=1 |
37315 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc" | |
37316 | fi | |
9a8f0513 | 37317 | fi |
07bea8f0 | 37318 | |
a848cd7e SC |
37319 | if test "$wxUSE_MENUS" = "yes"; then |
37320 | cat >>confdefs.h <<\_ACEOF | |
37321 | #define wxUSE_MENUS 1 | |
37322 | _ACEOF | |
37323 | ||
37324 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" | |
37325 | fi | |
37326 | ||
37327 | if test "$wxUSE_METAFILE" = "yes"; then | |
37328 | cat >>confdefs.h <<\_ACEOF | |
37329 | #define wxUSE_METAFILE 1 | |
37330 | _ACEOF | |
37331 | ||
37332 | fi | |
37333 | ||
37334 | if test "$wxUSE_MIMETYPE" = "yes"; then | |
37335 | cat >>confdefs.h <<\_ACEOF | |
37336 | #define wxUSE_MIMETYPE 1 | |
37337 | _ACEOF | |
37338 | ||
37339 | fi | |
37340 | ||
37341 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
37342 | cat >>confdefs.h <<\_ACEOF | |
37343 | #define wxUSE_MINIFRAME 1 | |
37344 | _ACEOF | |
37345 | ||
37346 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
37347 | fi | |
37348 | ||
37349 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then | |
37350 | cat >>confdefs.h <<\_ACEOF | |
37351 | #define wxUSE_SYSTEM_OPTIONS 1 | |
37352 | _ACEOF | |
37353 | ||
37354 | if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \ | |
a49baeab | 37355 | "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then |
a848cd7e SC |
37356 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" |
37357 | fi | |
37358 | fi | |
37359 | ||
37360 | ||
37361 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
37362 | cat >>confdefs.h <<\_ACEOF | |
37363 | #define wxUSE_VALIDATORS 1 | |
37364 | _ACEOF | |
37365 | ||
37366 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" | |
37367 | fi | |
37368 | ||
37369 | if test "$wxUSE_PALETTE" = "yes" ; then | |
37370 | cat >>confdefs.h <<\_ACEOF | |
37371 | #define wxUSE_PALETTE 1 | |
37372 | _ACEOF | |
37373 | ||
37374 | fi | |
37375 | ||
37376 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then | |
37377 | LIBS=" -lunicows $LIBS" | |
37378 | fi | |
37379 | ||
37380 | ||
37381 | if test "$wxUSE_IMAGE" = "yes" ; then | |
37382 | cat >>confdefs.h <<\_ACEOF | |
37383 | #define wxUSE_IMAGE 1 | |
37384 | _ACEOF | |
37385 | ||
37386 | ||
37387 | if test "$wxUSE_GIF" = "yes" ; then | |
37388 | cat >>confdefs.h <<\_ACEOF | |
37389 | #define wxUSE_GIF 1 | |
37390 | _ACEOF | |
37391 | ||
37392 | fi | |
37393 | ||
37394 | if test "$wxUSE_PCX" = "yes" ; then | |
37395 | cat >>confdefs.h <<\_ACEOF | |
37396 | #define wxUSE_PCX 1 | |
37397 | _ACEOF | |
37398 | ||
37399 | fi | |
37400 | ||
37401 | if test "$wxUSE_IFF" = "yes" ; then | |
37402 | cat >>confdefs.h <<\_ACEOF | |
37403 | #define wxUSE_IFF 1 | |
37404 | _ACEOF | |
37405 | ||
37406 | fi | |
37407 | ||
37408 | if test "$wxUSE_PNM" = "yes" ; then | |
37409 | cat >>confdefs.h <<\_ACEOF | |
37410 | #define wxUSE_PNM 1 | |
37411 | _ACEOF | |
37412 | ||
37413 | fi | |
37414 | ||
37415 | if test "$wxUSE_XPM" = "yes" ; then | |
37416 | cat >>confdefs.h <<\_ACEOF | |
37417 | #define wxUSE_XPM 1 | |
37418 | _ACEOF | |
37419 | ||
37420 | fi | |
37421 | ||
37422 | if test "$wxUSE_ICO_CUR" = "yes" ; then | |
37423 | cat >>confdefs.h <<\_ACEOF | |
37424 | #define wxUSE_ICO_CUR 1 | |
37425 | _ACEOF | |
37426 | ||
37427 | fi | |
37428 | fi | |
37429 | ||
37430 | ||
37431 | if test "$wxUSE_CHOICEDLG" = "yes"; then | |
37432 | cat >>confdefs.h <<\_ACEOF | |
37433 | #define wxUSE_CHOICEDLG 1 | |
37434 | _ACEOF | |
37435 | ||
37436 | fi | |
37437 | ||
37438 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
37439 | cat >>confdefs.h <<\_ACEOF | |
37440 | #define wxUSE_COLOURDLG 1 | |
37441 | _ACEOF | |
37442 | ||
37443 | fi | |
37444 | ||
37445 | if test "$wxUSE_FILEDLG" = "yes"; then | |
37446 | cat >>confdefs.h <<\_ACEOF | |
37447 | #define wxUSE_FILEDLG 1 | |
37448 | _ACEOF | |
37449 | ||
37450 | fi | |
37451 | ||
37452 | if test "$wxUSE_FINDREPLDLG" = "yes"; then | |
37453 | cat >>confdefs.h <<\_ACEOF | |
37454 | #define wxUSE_FINDREPLDLG 1 | |
37455 | _ACEOF | |
37456 | ||
37457 | fi | |
37458 | ||
37459 | if test "$wxUSE_FONTDLG" = "yes"; then | |
37460 | cat >>confdefs.h <<\_ACEOF | |
37461 | #define wxUSE_FONTDLG 1 | |
37462 | _ACEOF | |
37463 | ||
37464 | fi | |
37465 | ||
37466 | if test "$wxUSE_DIRDLG" = "yes"; then | |
37467 | if test "$wxUSE_TREECTRL" != "yes"; then | |
37468 | { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5 | |
37469 | echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;} | |
37470 | else | |
37471 | cat >>confdefs.h <<\_ACEOF | |
37472 | #define wxUSE_DIRDLG 1 | |
37473 | _ACEOF | |
37474 | ||
37475 | fi | |
37476 | fi | |
37477 | ||
37478 | if test "$wxUSE_MSGDLG" = "yes"; then | |
37479 | cat >>confdefs.h <<\_ACEOF | |
37480 | #define wxUSE_MSGDLG 1 | |
37481 | _ACEOF | |
37482 | ||
37483 | fi | |
37484 | ||
37485 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
37486 | cat >>confdefs.h <<\_ACEOF | |
37487 | #define wxUSE_NUMBERDLG 1 | |
37488 | _ACEOF | |
37489 | ||
37490 | fi | |
37491 | ||
37492 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
37493 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
37494 | { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5 | |
37495 | echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;} | |
37496 | else | |
37497 | cat >>confdefs.h <<\_ACEOF | |
37498 | #define wxUSE_PROGRESSDLG 1 | |
37499 | _ACEOF | |
37500 | ||
37501 | fi | |
37502 | fi | |
37503 | ||
37504 | if test "$wxUSE_SPLASH" = "yes"; then | |
37505 | cat >>confdefs.h <<\_ACEOF | |
37506 | #define wxUSE_SPLASH 1 | |
37507 | _ACEOF | |
37508 | ||
2057db16 | 37509 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash" |
a848cd7e SC |
37510 | fi |
37511 | ||
37512 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
37513 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
37514 | { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5 | |
37515 | echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;} | |
37516 | else | |
37517 | cat >>confdefs.h <<\_ACEOF | |
37518 | #define wxUSE_STARTUP_TIPS 1 | |
37519 | _ACEOF | |
37520 | ||
37521 | fi | |
37522 | fi | |
37523 | ||
37524 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
37525 | cat >>confdefs.h <<\_ACEOF | |
37526 | #define wxUSE_TEXTDLG 1 | |
37527 | _ACEOF | |
37528 | ||
37529 | fi | |
37530 | ||
37531 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
37532 | cat >>confdefs.h <<\_ACEOF | |
37533 | #define wxUSE_WIZARDDLG 1 | |
37534 | _ACEOF | |
37535 | ||
37536 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
37537 | fi | |
37538 | ||
37539 | ||
37540 | if test "$cross_compiling" = "yes"; then | |
37541 | OSINFO="\"$host\"" | |
37542 | else | |
37543 | OSINFO=`uname -s -r -m` | |
37544 | OSINFO="\"$OSINFO\"" | |
37545 | fi | |
37546 | ||
37547 | cat >>confdefs.h <<_ACEOF | |
37548 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
37549 | _ACEOF | |
37550 | ||
37551 | ||
37552 | ||
37553 | if test "x$prefix" != "xNONE"; then | |
37554 | wxPREFIX=$prefix | |
37555 | else | |
37556 | wxPREFIX=$ac_default_prefix | |
37557 | fi | |
37558 | ||
37559 | cat >>confdefs.h <<_ACEOF | |
37560 | #define wxINSTALL_PREFIX "$wxPREFIX" | |
37561 | _ACEOF | |
37562 | ||
37563 | ||
a848cd7e SC |
37564 | |
37565 | ||
37566 | CORE_BASE_LIBS="net base" | |
37567 | CORE_GUI_LIBS="adv core" | |
37568 | ||
37569 | if test "$wxUSE_XML" = "yes" ; then | |
37570 | CORE_BASE_LIBS="xml $CORE_BASE_LIBS" | |
37571 | fi | |
37572 | if test "$wxUSE_ODBC" != "no" ; then | |
37573 | CORE_BASE_LIBS="odbc $CORE_BASE_LIBS" | |
37574 | CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS" | |
37575 | fi | |
37576 | if test "$wxUSE_HTML" = "yes" ; then | |
37577 | CORE_GUI_LIBS="html $CORE_GUI_LIBS" | |
37578 | fi | |
9a8f0513 VS |
37579 | if test "$wxUSE_XRC" = "yes" ; then |
37580 | CORE_GUI_LIBS="xrc $CORE_GUI_LIBS" | |
37581 | fi | |
a848cd7e SC |
37582 | |
37583 | if test "$wxUSE_GUI" != "yes"; then | |
37584 | CORE_GUI_LIBS="" | |
37585 | fi | |
37586 | ||
37587 | ||
37588 | ||
37589 | ||
37590 | ||
37591 | ||
37592 | ||
37593 | ||
37594 | if test "$wxUSE_MAC" = 1 ; then | |
a98bf0c0 | 37595 | if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then |
07bea8f0 VS |
37596 | LDFLAGS="$LDFLAGS -framework QuickTime" |
37597 | fi | |
5dcf30a0 RN |
37598 | if test "$USE_DARWIN" = 1; then |
37599 | LDFLAGS="$LDFLAGS -framework IOKit" | |
37600 | fi | |
07bea8f0 | 37601 | LDFLAGS="$LDFLAGS -framework Carbon -framework Cocoa -framework System" |
a848cd7e SC |
37602 | fi |
37603 | if test "$wxUSE_COCOA" = 1 ; then | |
f7e98dee | 37604 | LDFLAGS="$LDFLAGS -framework Cocoa" |
a848cd7e SC |
37605 | fi |
37606 | ||
37607 | ||
37608 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" | |
37609 | ||
37610 | have_cos=0 | |
37611 | have_floor=0 | |
37612 | ||
37613 | for ac_func in cos | |
37614 | do | |
37615 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37616 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37617 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37618 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37619 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37620 | else | |
37621 | cat >conftest.$ac_ext <<_ACEOF | |
37622 | /* confdefs.h. */ | |
37623 | _ACEOF | |
37624 | cat confdefs.h >>conftest.$ac_ext | |
37625 | cat >>conftest.$ac_ext <<_ACEOF | |
37626 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37627 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37628 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37629 | #define $ac_func innocuous_$ac_func | |
37630 | ||
a848cd7e SC |
37631 | /* System header to define __stub macros and hopefully few prototypes, |
37632 | which can conflict with char $ac_func (); below. | |
37633 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37634 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37635 | |
a848cd7e SC |
37636 | #ifdef __STDC__ |
37637 | # include <limits.h> | |
37638 | #else | |
37639 | # include <assert.h> | |
37640 | #endif | |
ac1cb8d3 VS |
37641 | |
37642 | #undef $ac_func | |
37643 | ||
a848cd7e SC |
37644 | /* Override any gcc2 internal prototype to avoid an error. */ |
37645 | #ifdef __cplusplus | |
37646 | extern "C" | |
37647 | { | |
37648 | #endif | |
37649 | /* We use char because int might match the return type of a gcc2 | |
37650 | builtin and then its argument prototype would still apply. */ | |
37651 | char $ac_func (); | |
37652 | /* The GNU C library defines this for functions which it implements | |
37653 | to always fail with ENOSYS. Some functions are actually named | |
37654 | something starting with __ and the normal name is an alias. */ | |
37655 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37656 | choke me | |
37657 | #else | |
37658 | char (*f) () = $ac_func; | |
37659 | #endif | |
37660 | #ifdef __cplusplus | |
37661 | } | |
37662 | #endif | |
37663 | ||
37664 | int | |
37665 | main () | |
37666 | { | |
37667 | return f != $ac_func; | |
37668 | ; | |
37669 | return 0; | |
37670 | } | |
37671 | _ACEOF | |
37672 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37673 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37674 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37675 | ac_status=$? |
ac1cb8d3 VS |
37676 | grep -v '^ *+' conftest.er1 >conftest.err |
37677 | rm -f conftest.er1 | |
37678 | cat conftest.err >&5 | |
a848cd7e SC |
37679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37680 | (exit $ac_status); } && | |
d51253e8 | 37681 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37683 | (eval $ac_try) 2>&5 | |
37684 | ac_status=$? | |
37685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37686 | (exit $ac_status); }; } && | |
37687 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37689 | (eval $ac_try) 2>&5 | |
37690 | ac_status=$? | |
37691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37692 | (exit $ac_status); }; }; then | |
37693 | eval "$as_ac_var=yes" | |
37694 | else | |
37695 | echo "$as_me: failed program was:" >&5 | |
37696 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37697 | ||
37698 | eval "$as_ac_var=no" | |
37699 | fi | |
ac1cb8d3 VS |
37700 | rm -f conftest.err conftest.$ac_objext \ |
37701 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37702 | fi |
37703 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37704 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37705 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37706 | cat >>confdefs.h <<_ACEOF | |
37707 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37708 | _ACEOF | |
37709 | have_cos=1 | |
37710 | fi | |
37711 | done | |
37712 | ||
37713 | ||
37714 | for ac_func in floor | |
37715 | do | |
37716 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37717 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37718 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37719 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37720 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37721 | else | |
37722 | cat >conftest.$ac_ext <<_ACEOF | |
37723 | /* confdefs.h. */ | |
37724 | _ACEOF | |
37725 | cat confdefs.h >>conftest.$ac_ext | |
37726 | cat >>conftest.$ac_ext <<_ACEOF | |
37727 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37728 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37729 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37730 | #define $ac_func innocuous_$ac_func | |
37731 | ||
a848cd7e SC |
37732 | /* System header to define __stub macros and hopefully few prototypes, |
37733 | which can conflict with char $ac_func (); below. | |
37734 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37735 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37736 | |
a848cd7e SC |
37737 | #ifdef __STDC__ |
37738 | # include <limits.h> | |
37739 | #else | |
37740 | # include <assert.h> | |
37741 | #endif | |
ac1cb8d3 VS |
37742 | |
37743 | #undef $ac_func | |
37744 | ||
a848cd7e SC |
37745 | /* Override any gcc2 internal prototype to avoid an error. */ |
37746 | #ifdef __cplusplus | |
37747 | extern "C" | |
37748 | { | |
37749 | #endif | |
37750 | /* We use char because int might match the return type of a gcc2 | |
37751 | builtin and then its argument prototype would still apply. */ | |
37752 | char $ac_func (); | |
37753 | /* The GNU C library defines this for functions which it implements | |
37754 | to always fail with ENOSYS. Some functions are actually named | |
37755 | something starting with __ and the normal name is an alias. */ | |
37756 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37757 | choke me | |
37758 | #else | |
37759 | char (*f) () = $ac_func; | |
37760 | #endif | |
37761 | #ifdef __cplusplus | |
37762 | } | |
37763 | #endif | |
37764 | ||
37765 | int | |
37766 | main () | |
37767 | { | |
37768 | return f != $ac_func; | |
37769 | ; | |
37770 | return 0; | |
37771 | } | |
37772 | _ACEOF | |
37773 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37774 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37775 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37776 | ac_status=$? |
ac1cb8d3 VS |
37777 | grep -v '^ *+' conftest.er1 >conftest.err |
37778 | rm -f conftest.er1 | |
37779 | cat conftest.err >&5 | |
a848cd7e SC |
37780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37781 | (exit $ac_status); } && | |
d51253e8 | 37782 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37784 | (eval $ac_try) 2>&5 | |
37785 | ac_status=$? | |
37786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37787 | (exit $ac_status); }; } && | |
37788 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37790 | (eval $ac_try) 2>&5 | |
37791 | ac_status=$? | |
37792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37793 | (exit $ac_status); }; }; then | |
37794 | eval "$as_ac_var=yes" | |
37795 | else | |
37796 | echo "$as_me: failed program was:" >&5 | |
37797 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37798 | ||
37799 | eval "$as_ac_var=no" | |
37800 | fi | |
ac1cb8d3 VS |
37801 | rm -f conftest.err conftest.$ac_objext \ |
37802 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37803 | fi |
37804 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37805 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37806 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37807 | cat >>confdefs.h <<_ACEOF | |
37808 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37809 | _ACEOF | |
37810 | have_floor=1 | |
37811 | fi | |
37812 | done | |
37813 | ||
37814 | echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5 | |
37815 | echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6 | |
37816 | if test "$have_cos" = 1 -a "$have_floor" = 1; then | |
37817 | echo "$as_me:$LINENO: result: yes" >&5 | |
37818 | echo "${ECHO_T}yes" >&6 | |
37819 | else | |
37820 | echo "$as_me:$LINENO: result: no" >&5 | |
37821 | echo "${ECHO_T}no" >&6 | |
37822 | LIBS="$LIBS -lm" | |
37823 | # use different functions to avoid configure caching | |
37824 | have_sin=0 | |
37825 | have_ceil=0 | |
37826 | ||
37827 | for ac_func in sin | |
37828 | do | |
37829 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37830 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37831 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37832 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37833 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37834 | else | |
37835 | cat >conftest.$ac_ext <<_ACEOF | |
37836 | /* confdefs.h. */ | |
37837 | _ACEOF | |
37838 | cat confdefs.h >>conftest.$ac_ext | |
37839 | cat >>conftest.$ac_ext <<_ACEOF | |
37840 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37841 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37842 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37843 | #define $ac_func innocuous_$ac_func | |
37844 | ||
a848cd7e SC |
37845 | /* System header to define __stub macros and hopefully few prototypes, |
37846 | which can conflict with char $ac_func (); below. | |
37847 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37848 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37849 | |
a848cd7e SC |
37850 | #ifdef __STDC__ |
37851 | # include <limits.h> | |
37852 | #else | |
37853 | # include <assert.h> | |
37854 | #endif | |
ac1cb8d3 VS |
37855 | |
37856 | #undef $ac_func | |
37857 | ||
a848cd7e SC |
37858 | /* Override any gcc2 internal prototype to avoid an error. */ |
37859 | #ifdef __cplusplus | |
37860 | extern "C" | |
37861 | { | |
37862 | #endif | |
37863 | /* We use char because int might match the return type of a gcc2 | |
37864 | builtin and then its argument prototype would still apply. */ | |
37865 | char $ac_func (); | |
37866 | /* The GNU C library defines this for functions which it implements | |
37867 | to always fail with ENOSYS. Some functions are actually named | |
37868 | something starting with __ and the normal name is an alias. */ | |
37869 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37870 | choke me | |
37871 | #else | |
37872 | char (*f) () = $ac_func; | |
37873 | #endif | |
37874 | #ifdef __cplusplus | |
37875 | } | |
37876 | #endif | |
37877 | ||
37878 | int | |
37879 | main () | |
37880 | { | |
37881 | return f != $ac_func; | |
37882 | ; | |
37883 | return 0; | |
37884 | } | |
37885 | _ACEOF | |
37886 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37887 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37888 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37889 | ac_status=$? |
ac1cb8d3 VS |
37890 | grep -v '^ *+' conftest.er1 >conftest.err |
37891 | rm -f conftest.er1 | |
37892 | cat conftest.err >&5 | |
a848cd7e SC |
37893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37894 | (exit $ac_status); } && | |
d51253e8 | 37895 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37897 | (eval $ac_try) 2>&5 | |
37898 | ac_status=$? | |
37899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37900 | (exit $ac_status); }; } && | |
37901 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37903 | (eval $ac_try) 2>&5 | |
37904 | ac_status=$? | |
37905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37906 | (exit $ac_status); }; }; then | |
37907 | eval "$as_ac_var=yes" | |
37908 | else | |
37909 | echo "$as_me: failed program was:" >&5 | |
37910 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37911 | ||
37912 | eval "$as_ac_var=no" | |
37913 | fi | |
ac1cb8d3 VS |
37914 | rm -f conftest.err conftest.$ac_objext \ |
37915 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37916 | fi |
37917 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37918 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37919 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37920 | cat >>confdefs.h <<_ACEOF | |
37921 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37922 | _ACEOF | |
37923 | have_sin=1 | |
37924 | fi | |
37925 | done | |
37926 | ||
37927 | ||
37928 | for ac_func in ceil | |
37929 | do | |
37930 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37931 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37932 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37933 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37934 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37935 | else | |
37936 | cat >conftest.$ac_ext <<_ACEOF | |
37937 | /* confdefs.h. */ | |
37938 | _ACEOF | |
37939 | cat confdefs.h >>conftest.$ac_ext | |
37940 | cat >>conftest.$ac_ext <<_ACEOF | |
37941 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37942 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37943 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37944 | #define $ac_func innocuous_$ac_func | |
37945 | ||
a848cd7e SC |
37946 | /* System header to define __stub macros and hopefully few prototypes, |
37947 | which can conflict with char $ac_func (); below. | |
37948 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37949 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37950 | |
a848cd7e SC |
37951 | #ifdef __STDC__ |
37952 | # include <limits.h> | |
37953 | #else | |
37954 | # include <assert.h> | |
37955 | #endif | |
ac1cb8d3 VS |
37956 | |
37957 | #undef $ac_func | |
37958 | ||
a848cd7e SC |
37959 | /* Override any gcc2 internal prototype to avoid an error. */ |
37960 | #ifdef __cplusplus | |
37961 | extern "C" | |
37962 | { | |
37963 | #endif | |
37964 | /* We use char because int might match the return type of a gcc2 | |
37965 | builtin and then its argument prototype would still apply. */ | |
37966 | char $ac_func (); | |
37967 | /* The GNU C library defines this for functions which it implements | |
37968 | to always fail with ENOSYS. Some functions are actually named | |
37969 | something starting with __ and the normal name is an alias. */ | |
37970 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37971 | choke me | |
37972 | #else | |
37973 | char (*f) () = $ac_func; | |
37974 | #endif | |
37975 | #ifdef __cplusplus | |
37976 | } | |
37977 | #endif | |
37978 | ||
37979 | int | |
37980 | main () | |
37981 | { | |
37982 | return f != $ac_func; | |
37983 | ; | |
37984 | return 0; | |
37985 | } | |
37986 | _ACEOF | |
37987 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37988 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37989 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37990 | ac_status=$? |
ac1cb8d3 VS |
37991 | grep -v '^ *+' conftest.er1 >conftest.err |
37992 | rm -f conftest.er1 | |
37993 | cat conftest.err >&5 | |
a848cd7e SC |
37994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37995 | (exit $ac_status); } && | |
d51253e8 | 37996 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37998 | (eval $ac_try) 2>&5 | |
37999 | ac_status=$? | |
38000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38001 | (exit $ac_status); }; } && | |
38002 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38004 | (eval $ac_try) 2>&5 | |
38005 | ac_status=$? | |
38006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38007 | (exit $ac_status); }; }; then | |
38008 | eval "$as_ac_var=yes" | |
38009 | else | |
38010 | echo "$as_me: failed program was:" >&5 | |
38011 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38012 | ||
38013 | eval "$as_ac_var=no" | |
38014 | fi | |
ac1cb8d3 VS |
38015 | rm -f conftest.err conftest.$ac_objext \ |
38016 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38017 | fi |
38018 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
38019 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
38020 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
38021 | cat >>confdefs.h <<_ACEOF | |
38022 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
38023 | _ACEOF | |
38024 | have_ceil=1 | |
38025 | fi | |
38026 | done | |
38027 | ||
38028 | echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5 | |
38029 | echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6 | |
38030 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then | |
38031 | echo "$as_me:$LINENO: result: yes" >&5 | |
38032 | echo "${ECHO_T}yes" >&6 | |
38033 | else | |
38034 | echo "$as_me:$LINENO: result: no" >&5 | |
38035 | echo "${ECHO_T}no" >&6 | |
38036 | # not sure we should warn the user, crash, etc. | |
38037 | fi | |
38038 | fi | |
38039 | ||
38040 | if test "$wxUSE_GUI" = "yes"; then | |
38041 | ||
38042 | ||
38043 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \ | |
38044 | drawing dynamic erase event exec font image \ | |
38045 | minimal propsize rotate shaped widgets render" | |
38046 | ||
38047 | if test "$wxUSE_MONOLITHIC" != "yes"; then | |
38048 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console" | |
38049 | fi | |
38050 | else | |
38051 | SAMPLES_SUBDIRS="console" | |
38052 | fi | |
38053 | ||
38054 | ||
ceec2216 | 38055 | INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \ |
a848cd7e SC |
38056 | -I\${top_srcdir}/include $TOOLKIT_INCLUDE" |
38057 | ||
38058 | if test "$GXX" = yes ; then | |
38059 | CXXWARNINGS="-Wall" | |
38060 | fi | |
38061 | ||
38062 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE" | |
38063 | ||
0c3c69fc VS |
38064 | CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS` |
38065 | CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS` | |
38066 | CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS` | |
a848cd7e SC |
38067 | |
38068 | ||
0c3c69fc | 38069 | LIBS=`echo $LIBS` |
a848cd7e SC |
38070 | EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS" |
38071 | EXTRALIBS_XML="$EXPAT_LINK" | |
38072 | EXTRALIBS_HTML="$MSPACK_LINK" | |
38073 | EXTRALIBS_ODBC="$ODBC_LINK" | |
38074 | if test "$wxUSE_GUI" = "yes"; then | |
0c3c69fc | 38075 | EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK` |
a848cd7e SC |
38076 | fi |
38077 | if test "$wxUSE_OPENGL" = "yes"; then | |
38078 | EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS" | |
38079 | fi | |
38080 | ||
38081 | LDFLAGS="$LDFLAGS $PROFILE" | |
38082 | ||
38083 | if test "$wxUSE_GTK" = 1; then | |
38084 | WXCONFIG_INCLUDE= | |
38085 | else | |
38086 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
38087 | fi | |
38088 | ||
38089 | WXCONFIG_EXTRALIBS="$LIBS" | |
38090 | ||
38091 | if test "$wxUSE_REGEX" = "builtin" ; then | |
38092 | wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}" | |
38093 | fi | |
38094 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
38095 | wxconfig_3rdparty="$wxconfig_3rdparty expat" | |
38096 | fi | |
38097 | if test "$wxUSE_ODBC" = "builtin" ; then | |
38098 | wxconfig_3rdparty="$wxconfig_3rdparty odbc" | |
38099 | fi | |
38100 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
38101 | wxconfig_3rdparty="$wxconfig_3rdparty tiff" | |
38102 | fi | |
38103 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
38104 | wxconfig_3rdparty="$wxconfig_3rdparty jpeg" | |
38105 | fi | |
38106 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
38107 | wxconfig_3rdparty="$wxconfig_3rdparty png" | |
38108 | fi | |
38109 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
38110 | wxconfig_3rdparty="$wxconfig_3rdparty zlib" | |
38111 | fi | |
38112 | if test "$wxUSE_ODBC" = "builtin" ; then | |
38113 | wxconfig_3rdparty="$wxconfig_3rdparty odbc" | |
38114 | fi | |
38115 | ||
38116 | for i in $wxconfig_3rdparty ; do | |
ceec2216 | 38117 | WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}" |
a848cd7e SC |
38118 | done |
38119 | ||
38120 | ||
38121 | if test "x$wxUSE_UNIVERSAL" = "xyes" ; then | |
38122 | WXUNIV=1 | |
38123 | else | |
38124 | WXUNIV=0 | |
38125 | fi | |
38126 | ||
38127 | ||
38128 | ||
38129 | ||
38130 | ||
38131 | ||
38132 | ||
38133 | ||
38134 | ||
38135 | if test $wxUSE_MONOLITHIC = "yes" ; then | |
38136 | MONOLITHIC=1 | |
38137 | else | |
38138 | MONOLITHIC=0 | |
38139 | fi | |
38140 | ||
38141 | if test $wxUSE_PLUGINS = "yes" ; then | |
38142 | USE_PLUGINS=1 | |
38143 | else | |
38144 | USE_PLUGINS=0 | |
38145 | fi | |
38146 | ||
38147 | if test $wxUSE_ODBC != "no" ; then | |
38148 | USE_ODBC=1 | |
38149 | else | |
38150 | USE_ODBC=0 | |
38151 | fi | |
38152 | ||
38153 | if test $wxUSE_OFFICIAL_BUILD = "yes" ; then | |
38154 | OFFICIAL_BUILD=1 | |
38155 | else | |
38156 | OFFICIAL_BUILD=0 | |
38157 | fi | |
38158 | ||
38159 | ||
38160 | ||
38161 | ||
38162 | ||
38163 | ||
38164 | ||
38165 | ||
38166 | ||
38167 | ||
38168 | ||
38169 | ||
38170 | ||
38171 | ||
38172 | ||
38173 | ||
38174 | ||
38175 | ||
38176 | ||
ceec2216 | 38177 | |
d1c38808 | 38178 | |
a848cd7e SC |
38179 | |
38180 | ||
38181 | TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"` | |
38182 | ||
38183 | ||
38184 | ||
38185 | ||
38186 | ||
38187 | ||
38188 | ||
38189 | ||
4d4ff94c VZ |
38190 | case "$TOOLKIT" in |
38191 | GTK) | |
38192 | TOOLKIT_USER="GTK+" | |
38193 | if test "$WXGTK20" = 1; then | |
38194 | TOOLKIT_USER="$TOOLKIT_USER 2" | |
38195 | fi | |
9a8f0513 | 38196 | ;; |
4d4ff94c VZ |
38197 | |
38198 | *) | |
38199 | TOOLKIT_USER=$TOOLKIT_LOWERCASE | |
9a8f0513 | 38200 | ;; |
4d4ff94c | 38201 | esac |
a848cd7e | 38202 | |
9a8f0513 | 38203 | |
a848cd7e SC |
38204 | if test "x$BAKEFILE_HOST" = "x"; then |
38205 | BAKEFILE_HOST="${host}" | |
38206 | fi | |
38207 | ||
38208 | if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then | |
38209 | ||
38210 | if test -n "$ac_tool_prefix"; then | |
38211 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
38212 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
38213 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38214 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38215 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
38216 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38217 | else | |
38218 | if test -n "$RANLIB"; then | |
38219 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
38220 | else | |
38221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38222 | for as_dir in $PATH | |
38223 | do | |
38224 | IFS=$as_save_IFS | |
38225 | test -z "$as_dir" && as_dir=. | |
38226 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38227 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38228 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
38229 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38230 | break 2 | |
38231 | fi | |
38232 | done | |
38233 | done | |
38234 | ||
38235 | fi | |
38236 | fi | |
38237 | RANLIB=$ac_cv_prog_RANLIB | |
38238 | if test -n "$RANLIB"; then | |
38239 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
38240 | echo "${ECHO_T}$RANLIB" >&6 | |
38241 | else | |
38242 | echo "$as_me:$LINENO: result: no" >&5 | |
38243 | echo "${ECHO_T}no" >&6 | |
38244 | fi | |
38245 | ||
38246 | fi | |
38247 | if test -z "$ac_cv_prog_RANLIB"; then | |
38248 | ac_ct_RANLIB=$RANLIB | |
38249 | # Extract the first word of "ranlib", so it can be a program name with args. | |
38250 | set dummy ranlib; ac_word=$2 | |
38251 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38252 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38253 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
38254 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38255 | else | |
38256 | if test -n "$ac_ct_RANLIB"; then | |
38257 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
38258 | else | |
38259 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38260 | for as_dir in $PATH | |
38261 | do | |
38262 | IFS=$as_save_IFS | |
38263 | test -z "$as_dir" && as_dir=. | |
38264 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38265 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38266 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
38267 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38268 | break 2 | |
38269 | fi | |
38270 | done | |
38271 | done | |
38272 | ||
38273 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
38274 | fi | |
38275 | fi | |
38276 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
38277 | if test -n "$ac_ct_RANLIB"; then | |
38278 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
38279 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
38280 | else | |
38281 | echo "$as_me:$LINENO: result: no" >&5 | |
38282 | echo "${ECHO_T}no" >&6 | |
38283 | fi | |
38284 | ||
38285 | RANLIB=$ac_ct_RANLIB | |
38286 | else | |
38287 | RANLIB="$ac_cv_prog_RANLIB" | |
38288 | fi | |
38289 | ||
38290 | # Find a good install program. We prefer a C program (faster), | |
38291 | # so one script is as good as another. But avoid the broken or | |
38292 | # incompatible versions: | |
38293 | # SysV /etc/install, /usr/sbin/install | |
38294 | # SunOS /usr/etc/install | |
38295 | # IRIX /sbin/install | |
38296 | # AIX /bin/install | |
38297 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
38298 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
38299 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
38300 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 38301 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
38302 | # ./install, which can be erroneously created by make from ./install.sh. |
38303 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
38304 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
38305 | if test -z "$INSTALL"; then | |
38306 | if test "${ac_cv_path_install+set}" = set; then | |
38307 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38308 | else | |
38309 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38310 | for as_dir in $PATH | |
38311 | do | |
38312 | IFS=$as_save_IFS | |
38313 | test -z "$as_dir" && as_dir=. | |
38314 | # Account for people who put trailing slashes in PATH elements. | |
38315 | case $as_dir/ in | |
38316 | ./ | .// | /cC/* | \ | |
38317 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 38318 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
38319 | /usr/ucb/* ) ;; |
38320 | *) | |
38321 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
38322 | # Don't use installbsd from OSF since it installs stuff as root | |
38323 | # by default. | |
38324 | for ac_prog in ginstall scoinst install; do | |
38325 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
38326 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
38327 | if test $ac_prog = install && | |
38328 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
38329 | # AIX install. It has an incompatible calling convention. | |
38330 | : | |
38331 | elif test $ac_prog = install && | |
38332 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
38333 | # program-specific install script used by HP pwplus--don't use. | |
38334 | : | |
38335 | else | |
38336 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
38337 | break 3 | |
38338 | fi | |
38339 | fi | |
a848cd7e SC |
38340 | done |
38341 | done | |
38342 | ;; | |
38343 | esac | |
38344 | done | |
38345 | ||
38346 | ||
38347 | fi | |
38348 | if test "${ac_cv_path_install+set}" = set; then | |
38349 | INSTALL=$ac_cv_path_install | |
38350 | else | |
38351 | # As a last resort, use the slow shell script. We don't cache a | |
38352 | # path for INSTALL within a source directory, because that will | |
38353 | # break other packages using the cache if that directory is | |
38354 | # removed, or if the path is relative. | |
38355 | INSTALL=$ac_install_sh | |
38356 | fi | |
38357 | fi | |
38358 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
38359 | echo "${ECHO_T}$INSTALL" >&6 | |
38360 | ||
38361 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
38362 | # It thinks the first close brace ends the variable substitution. | |
38363 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
38364 | ||
38365 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
38366 | ||
38367 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
38368 | ||
38369 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
38370 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
38371 | LN_S=$as_ln_s | |
38372 | if test "$LN_S" = "ln -s"; then | |
38373 | echo "$as_me:$LINENO: result: yes" >&5 | |
38374 | echo "${ECHO_T}yes" >&6 | |
38375 | else | |
38376 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
38377 | echo "${ECHO_T}no, using $LN_S" >&6 | |
38378 | fi | |
38379 | ||
38380 | ||
38381 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
38382 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 38383 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
38384 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
38385 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38386 | else | |
38387 | cat >conftest.make <<\_ACEOF | |
38388 | all: | |
38389 | @echo 'ac_maketemp="$(MAKE)"' | |
38390 | _ACEOF | |
38391 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
38392 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
38393 | if test -n "$ac_maketemp"; then | |
38394 | eval ac_cv_prog_make_${ac_make}_set=yes | |
38395 | else | |
38396 | eval ac_cv_prog_make_${ac_make}_set=no | |
38397 | fi | |
38398 | rm -f conftest.make | |
38399 | fi | |
38400 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
38401 | echo "$as_me:$LINENO: result: yes" >&5 | |
38402 | echo "${ECHO_T}yes" >&6 | |
38403 | SET_MAKE= | |
38404 | else | |
38405 | echo "$as_me:$LINENO: result: no" >&5 | |
38406 | echo "${ECHO_T}no" >&6 | |
38407 | SET_MAKE="MAKE=${MAKE-make}" | |
38408 | fi | |
38409 | ||
38410 | ||
38411 | ||
38412 | if test -n "$ac_tool_prefix"; then | |
38413 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
38414 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
38415 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38416 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38417 | if test "${ac_cv_prog_AR+set}" = set; then | |
38418 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38419 | else | |
38420 | if test -n "$AR"; then | |
38421 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
38422 | else | |
38423 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38424 | for as_dir in $PATH | |
38425 | do | |
38426 | IFS=$as_save_IFS | |
38427 | test -z "$as_dir" && as_dir=. | |
38428 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38429 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38430 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
38431 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38432 | break 2 | |
38433 | fi | |
38434 | done | |
38435 | done | |
38436 | ||
38437 | fi | |
38438 | fi | |
38439 | AR=$ac_cv_prog_AR | |
38440 | if test -n "$AR"; then | |
38441 | echo "$as_me:$LINENO: result: $AR" >&5 | |
38442 | echo "${ECHO_T}$AR" >&6 | |
38443 | else | |
38444 | echo "$as_me:$LINENO: result: no" >&5 | |
38445 | echo "${ECHO_T}no" >&6 | |
38446 | fi | |
38447 | ||
38448 | fi | |
38449 | if test -z "$ac_cv_prog_AR"; then | |
38450 | ac_ct_AR=$AR | |
38451 | # Extract the first word of "ar", so it can be a program name with args. | |
38452 | set dummy ar; ac_word=$2 | |
38453 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38454 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38455 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
38456 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38457 | else | |
38458 | if test -n "$ac_ct_AR"; then | |
38459 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
38460 | else | |
38461 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38462 | for as_dir in $PATH | |
38463 | do | |
38464 | IFS=$as_save_IFS | |
38465 | test -z "$as_dir" && as_dir=. | |
38466 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38467 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38468 | ac_cv_prog_ac_ct_AR="ar" | |
38469 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38470 | break 2 | |
38471 | fi | |
38472 | done | |
38473 | done | |
38474 | ||
38475 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" | |
38476 | fi | |
38477 | fi | |
38478 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
38479 | if test -n "$ac_ct_AR"; then | |
38480 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
38481 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
38482 | else | |
38483 | echo "$as_me:$LINENO: result: no" >&5 | |
38484 | echo "${ECHO_T}no" >&6 | |
38485 | fi | |
38486 | ||
38487 | AR=$ac_ct_AR | |
38488 | else | |
38489 | AR="$ac_cv_prog_AR" | |
38490 | fi | |
38491 | ||
38492 | if test -n "$ac_tool_prefix"; then | |
38493 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
38494 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
38495 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38496 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38497 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
38498 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38499 | else | |
38500 | if test -n "$STRIP"; then | |
38501 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
38502 | else | |
38503 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38504 | for as_dir in $PATH | |
38505 | do | |
38506 | IFS=$as_save_IFS | |
38507 | test -z "$as_dir" && as_dir=. | |
38508 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38509 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38510 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
38511 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38512 | break 2 | |
38513 | fi | |
38514 | done | |
38515 | done | |
38516 | ||
38517 | fi | |
38518 | fi | |
38519 | STRIP=$ac_cv_prog_STRIP | |
38520 | if test -n "$STRIP"; then | |
38521 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
38522 | echo "${ECHO_T}$STRIP" >&6 | |
38523 | else | |
38524 | echo "$as_me:$LINENO: result: no" >&5 | |
38525 | echo "${ECHO_T}no" >&6 | |
38526 | fi | |
38527 | ||
38528 | fi | |
38529 | if test -z "$ac_cv_prog_STRIP"; then | |
38530 | ac_ct_STRIP=$STRIP | |
38531 | # Extract the first word of "strip", so it can be a program name with args. | |
38532 | set dummy strip; ac_word=$2 | |
38533 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38534 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38535 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
38536 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38537 | else | |
38538 | if test -n "$ac_ct_STRIP"; then | |
38539 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
38540 | else | |
38541 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38542 | for as_dir in $PATH | |
38543 | do | |
38544 | IFS=$as_save_IFS | |
38545 | test -z "$as_dir" && as_dir=. | |
38546 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38547 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38548 | ac_cv_prog_ac_ct_STRIP="strip" | |
38549 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38550 | break 2 | |
38551 | fi | |
38552 | done | |
38553 | done | |
38554 | ||
38555 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
38556 | fi | |
38557 | fi | |
38558 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
38559 | if test -n "$ac_ct_STRIP"; then | |
38560 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
38561 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
38562 | else | |
38563 | echo "$as_me:$LINENO: result: no" >&5 | |
38564 | echo "${ECHO_T}no" >&6 | |
38565 | fi | |
38566 | ||
38567 | STRIP=$ac_ct_STRIP | |
38568 | else | |
38569 | STRIP="$ac_cv_prog_STRIP" | |
38570 | fi | |
38571 | ||
38572 | if test -n "$ac_tool_prefix"; then | |
38573 | # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. | |
38574 | set dummy ${ac_tool_prefix}nm; ac_word=$2 | |
38575 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38576 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38577 | if test "${ac_cv_prog_NM+set}" = set; then | |
38578 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38579 | else | |
38580 | if test -n "$NM"; then | |
38581 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
38582 | else | |
38583 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38584 | for as_dir in $PATH | |
38585 | do | |
38586 | IFS=$as_save_IFS | |
38587 | test -z "$as_dir" && as_dir=. | |
38588 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38589 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38590 | ac_cv_prog_NM="${ac_tool_prefix}nm" | |
38591 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38592 | break 2 | |
38593 | fi | |
38594 | done | |
38595 | done | |
38596 | ||
38597 | fi | |
38598 | fi | |
38599 | NM=$ac_cv_prog_NM | |
38600 | if test -n "$NM"; then | |
38601 | echo "$as_me:$LINENO: result: $NM" >&5 | |
38602 | echo "${ECHO_T}$NM" >&6 | |
38603 | else | |
38604 | echo "$as_me:$LINENO: result: no" >&5 | |
38605 | echo "${ECHO_T}no" >&6 | |
38606 | fi | |
38607 | ||
38608 | fi | |
38609 | if test -z "$ac_cv_prog_NM"; then | |
38610 | ac_ct_NM=$NM | |
38611 | # Extract the first word of "nm", so it can be a program name with args. | |
38612 | set dummy nm; ac_word=$2 | |
38613 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38614 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38615 | if test "${ac_cv_prog_ac_ct_NM+set}" = set; then | |
38616 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38617 | else | |
38618 | if test -n "$ac_ct_NM"; then | |
38619 | ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. | |
38620 | else | |
38621 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38622 | for as_dir in $PATH | |
38623 | do | |
38624 | IFS=$as_save_IFS | |
38625 | test -z "$as_dir" && as_dir=. | |
38626 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38627 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38628 | ac_cv_prog_ac_ct_NM="nm" | |
38629 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38630 | break 2 | |
38631 | fi | |
38632 | done | |
38633 | done | |
38634 | ||
38635 | test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":" | |
38636 | fi | |
38637 | fi | |
38638 | ac_ct_NM=$ac_cv_prog_ac_ct_NM | |
38639 | if test -n "$ac_ct_NM"; then | |
38640 | echo "$as_me:$LINENO: result: $ac_ct_NM" >&5 | |
38641 | echo "${ECHO_T}$ac_ct_NM" >&6 | |
38642 | else | |
38643 | echo "$as_me:$LINENO: result: no" >&5 | |
38644 | echo "${ECHO_T}no" >&6 | |
38645 | fi | |
38646 | ||
38647 | NM=$ac_ct_NM | |
38648 | else | |
38649 | NM="$ac_cv_prog_NM" | |
38650 | fi | |
38651 | ||
38652 | ||
38653 | case ${BAKEFILE_HOST} in | |
38654 | *-hp-hpux* ) | |
a49baeab | 38655 | INSTALL_DIR="mkdir -p" |
a848cd7e SC |
38656 | ;; |
38657 | *) INSTALL_DIR="$INSTALL -d" | |
38658 | ;; | |
38659 | esac | |
38660 | ||
38661 | ||
38662 | LDFLAGS_GUI= | |
38663 | case ${BAKEFILE_HOST} in | |
38664 | *-*-cygwin* | *-*-mingw32* ) | |
38665 | LDFLAGS_GUI="-mwindows" | |
38666 | esac | |
38667 | ||
38668 | ||
38669 | fi | |
38670 | ||
38671 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
38672 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
38673 | if test "${bakefile_cv_prog_makeisgnu+set}" = set; then | |
38674 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38675 | else | |
38676 | ||
38677 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
38678 | egrep -s GNU > /dev/null); then | |
38679 | bakefile_cv_prog_makeisgnu="yes" | |
38680 | else | |
38681 | bakefile_cv_prog_makeisgnu="no" | |
38682 | fi | |
38683 | ||
38684 | fi | |
38685 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5 | |
38686 | echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6 | |
38687 | ||
38688 | if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then | |
38689 | IF_GNU_MAKE="" | |
38690 | else | |
38691 | IF_GNU_MAKE="#" | |
38692 | fi | |
38693 | ||
38694 | ||
38695 | ||
38696 | PLATFORM_UNIX=0 | |
38697 | PLATFORM_WIN32=0 | |
38698 | PLATFORM_MSDOS=0 | |
38699 | PLATFORM_MAC=0 | |
38700 | PLATFORM_MACOSX=0 | |
38701 | PLATFORM_OS2=0 | |
38702 | ||
38703 | if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then | |
38704 | case "${BAKEFILE_HOST}" in | |
38705 | *-*-cygwin* | *-*-mingw32* ) | |
38706 | PLATFORM_WIN32=1 | |
38707 | ;; | |
38708 | *-pc-msdosdjgpp ) | |
38709 | PLATFORM_MSDOS=1 | |
38710 | ;; | |
38711 | *-pc-os2_emx | *-pc-os2-emx ) | |
38712 | PLATFORM_OS2=1 | |
38713 | ;; | |
38714 | powerpc-*-darwin* ) | |
38715 | PLATFORM_MAC=1 | |
38716 | PLATFORM_MACOSX=1 | |
38717 | ;; | |
38718 | * ) | |
38719 | PLATFORM_UNIX=1 | |
38720 | ;; | |
38721 | esac | |
38722 | else | |
38723 | case "$BAKEFILE_FORCE_PLATFORM" in | |
38724 | win32 ) | |
38725 | PLATFORM_WIN32=1 | |
38726 | ;; | |
38727 | msdos ) | |
38728 | PLATFORM_MSDOS=1 | |
38729 | ;; | |
38730 | os2 ) | |
38731 | PLATFORM_OS2=1 | |
38732 | ;; | |
38733 | darwin ) | |
38734 | PLATFORM_MAC=1 | |
38735 | PLATFORM_MACOSX=1 | |
38736 | ;; | |
38737 | unix ) | |
38738 | PLATFORM_UNIX=1 | |
38739 | ;; | |
38740 | * ) | |
38741 | { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5 | |
38742 | echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;} | |
38743 | { (exit 1); exit 1; }; } | |
38744 | ;; | |
38745 | esac | |
38746 | fi | |
38747 | ||
38748 | ||
38749 | ||
38750 | ||
38751 | ||
38752 | ||
38753 | ||
38754 | ||
38755 | ||
38756 | # Check whether --enable-omf or --disable-omf was given. | |
38757 | if test "${enable_omf+set}" = set; then | |
38758 | enableval="$enable_omf" | |
38759 | bk_os2_use_omf="$enableval" | |
38760 | fi; | |
38761 | ||
38762 | case "${BAKEFILE_HOST}" in | |
38763 | *-*-darwin* ) | |
38764 | CFLAGS="$CFLAGS -fno-common" | |
38765 | CXXFLAGS="$CXXFLAGS -fno-common" | |
38766 | ;; | |
38767 | ||
38768 | *-pc-os2_emx | *-pc-os2-emx ) | |
38769 | if test "x$bk_os2_use_omf" = "xyes" ; then | |
38770 | AR=emxomfar | |
38771 | RANLIB=: | |
38772 | LDFLAGS="-Zomf $LDFLAGS" | |
38773 | CFLAGS="-Zomf $CFLAGS" | |
38774 | CXXFLAGS="-Zomf $CXXFLAGS" | |
38775 | OS2_LIBEXT="lib" | |
38776 | else | |
38777 | OS2_LIBEXT="a" | |
38778 | fi | |
38779 | ;; | |
38780 | esac | |
38781 | ||
38782 | ||
38783 | SO_SUFFIX="so" | |
38784 | SO_SUFFIX_MODULE="so" | |
38785 | EXEEXT="" | |
38786 | LIBPREFIX="lib" | |
38787 | LIBEXT=".a" | |
38788 | DLLPREFIX="lib" | |
38789 | DLLPREFIX_MODULE="" | |
38790 | DLLIMP_SUFFIX="" | |
38791 | ||
38792 | case "${BAKEFILE_HOST}" in | |
38793 | *-hp-hpux* ) | |
38794 | SO_SUFFIX="sl" | |
38795 | SO_SUFFIX_MODULE="sl" | |
38796 | ;; | |
38797 | *-*-aix* ) | |
38798 | SO_SUFFIX="a" | |
38799 | SO_SUFFIX_MODULE="a" | |
38800 | ;; | |
38801 | *-*-cygwin* | *-*-mingw32* ) | |
38802 | SO_SUFFIX="dll" | |
38803 | SO_SUFFIX_MODULE="dll" | |
38804 | DLLIMP_SUFFIX="dll.a" | |
38805 | EXEEXT=".exe" | |
38806 | DLLPREFIX="" | |
38807 | ;; | |
38808 | *-pc-msdosdjgpp ) | |
38809 | EXEEXT=".exe" | |
38810 | DLLPREFIX="" | |
38811 | ;; | |
38812 | *-pc-os2_emx | *-pc-os2-emx ) | |
38813 | SO_SUFFIX="dll" | |
38814 | SO_SUFFIX_MODULE="dll" | |
38815 | DLLIMP_SUFFIX=$OS2_LIBEXT | |
38816 | EXEEXT=".exe" | |
38817 | DLLPREFIX="" | |
38818 | LIBPREFIX="" | |
38819 | LIBEXT=".$OS2_LIBEXT" | |
38820 | ;; | |
38821 | powerpc-*-darwin* ) | |
38822 | SO_SUFFIX="dylib" | |
38823 | SO_SUFFIX_MODULE="bundle" | |
38824 | ;; | |
38825 | esac | |
38826 | ||
38827 | if test "x$DLLIMP_SUFFIX" = "x" ; then | |
38828 | DLLIMP_SUFFIX="$SO_SUFFIX" | |
38829 | fi | |
38830 | ||
38831 | ||
38832 | ||
38833 | ||
38834 | ||
38835 | ||
38836 | ||
38837 | ||
38838 | ||
38839 | ||
38840 | ||
38841 | SHARED_LD_CC="\$(CC) -shared -o" | |
38842 | SHARED_LD_CXX="\$(CXX) -shared -o" | |
38843 | ||
38844 | if test "x$GCC" = "xyes"; then | |
38845 | PIC_FLAG="-fPIC" | |
38846 | fi | |
38847 | ||
38848 | case "${BAKEFILE_HOST}" in | |
38849 | *-hp-hpux* ) | |
38850 | if test "x$GCC" = "xyes"; then | |
38851 | SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o" | |
38852 | SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o" | |
38853 | else | |
38854 | LDFLAGS="$LDFLAGS -L/usr/lib" | |
38855 | ||
38856 | SHARED_LD_CC="${CC} -b -o" | |
38857 | SHARED_LD_CXX="${CXX} -b -o" | |
38858 | PIC_FLAG="+Z" | |
38859 | fi | |
38860 | ;; | |
38861 | ||
38862 | *-*-linux* ) | |
38863 | if test "x$GCC" != "xyes"; then | |
38864 | echo "$as_me:$LINENO: checking for Intel compiler" >&5 | |
38865 | echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6 | |
38866 | if test "${bakefile_cv_prog_icc+set}" = set; then | |
38867 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38868 | else | |
38869 | ||
38870 | cat >conftest.$ac_ext <<_ACEOF | |
38871 | /* confdefs.h. */ | |
38872 | _ACEOF | |
38873 | cat confdefs.h >>conftest.$ac_ext | |
38874 | cat >>conftest.$ac_ext <<_ACEOF | |
38875 | /* end confdefs.h. */ | |
38876 | ||
38877 | int | |
38878 | main () | |
38879 | { | |
38880 | ||
38881 | #ifndef __INTEL_COMPILER | |
38882 | #error Not icc | |
38883 | #endif | |
38884 | ||
38885 | ; | |
38886 | return 0; | |
38887 | } | |
38888 | _ACEOF | |
38889 | rm -f conftest.$ac_objext | |
38890 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38891 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38892 | ac_status=$? |
ac1cb8d3 VS |
38893 | grep -v '^ *+' conftest.er1 >conftest.err |
38894 | rm -f conftest.er1 | |
38895 | cat conftest.err >&5 | |
a848cd7e SC |
38896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38897 | (exit $ac_status); } && | |
d51253e8 | 38898 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38900 | (eval $ac_try) 2>&5 | |
38901 | ac_status=$? | |
38902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38903 | (exit $ac_status); }; } && | |
38904 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38906 | (eval $ac_try) 2>&5 | |
38907 | ac_status=$? | |
38908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38909 | (exit $ac_status); }; }; then | |
38910 | bakefile_cv_prog_icc=yes | |
38911 | else | |
38912 | echo "$as_me: failed program was:" >&5 | |
38913 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38914 | ||
38915 | bakefile_cv_prog_icc=no | |
38916 | ||
38917 | fi | |
ac1cb8d3 | 38918 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38919 | |
38920 | fi | |
38921 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5 | |
38922 | echo "${ECHO_T}$bakefile_cv_prog_icc" >&6 | |
38923 | if test "$bakefile_cv_prog_icc" = "yes"; then | |
38924 | PIC_FLAG="-KPIC" | |
38925 | fi | |
38926 | fi | |
38927 | ;; | |
38928 | ||
38929 | *-*-solaris2* ) | |
38930 | if test "x$GCC" != xyes ; then | |
38931 | SHARED_LD_CC="${CC} -G -o" | |
38932 | SHARED_LD_CXX="${CXX} -G -o" | |
38933 | PIC_FLAG="-KPIC" | |
38934 | fi | |
38935 | ;; | |
38936 | ||
38937 | *-*-darwin* ) | |
38938 | ||
38939 | echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5 | |
38940 | echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6 | |
38941 | if test "${wx_cv_gcc31+set}" = set; then | |
38942 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38943 | else | |
38944 | ||
38945 | cat >conftest.$ac_ext <<_ACEOF | |
38946 | /* confdefs.h. */ | |
38947 | _ACEOF | |
38948 | cat confdefs.h >>conftest.$ac_ext | |
38949 | cat >>conftest.$ac_ext <<_ACEOF | |
38950 | /* end confdefs.h. */ | |
38951 | ||
38952 | int | |
38953 | main () | |
38954 | { | |
38955 | ||
38956 | #if (__GNUC__ < 3) || \ | |
38957 | ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1)) | |
38958 | #error old gcc | |
38959 | #endif | |
38960 | ||
38961 | ; | |
38962 | return 0; | |
38963 | } | |
38964 | _ACEOF | |
38965 | rm -f conftest.$ac_objext | |
38966 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38967 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38968 | ac_status=$? |
ac1cb8d3 VS |
38969 | grep -v '^ *+' conftest.er1 >conftest.err |
38970 | rm -f conftest.er1 | |
38971 | cat conftest.err >&5 | |
a848cd7e SC |
38972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38973 | (exit $ac_status); } && | |
d51253e8 | 38974 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38976 | (eval $ac_try) 2>&5 | |
38977 | ac_status=$? | |
38978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38979 | (exit $ac_status); }; } && | |
38980 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38982 | (eval $ac_try) 2>&5 | |
38983 | ac_status=$? | |
38984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38985 | (exit $ac_status); }; }; then | |
38986 | ||
38987 | wx_cv_gcc31=yes | |
38988 | ||
38989 | else | |
38990 | echo "$as_me: failed program was:" >&5 | |
38991 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38992 | ||
38993 | ||
38994 | wx_cv_gcc31=no | |
38995 | ||
38996 | ||
38997 | fi | |
ac1cb8d3 | 38998 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38999 | |
39000 | fi | |
39001 | echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5 | |
39002 | echo "${ECHO_T}$wx_cv_gcc31" >&6 | |
39003 | if test "$wx_cv_gcc31" = "no"; then | |
473276a9 VS |
39004 | |
39005 | D='$' | |
39006 | cat <<EOF >shared-ld-sh | |
a848cd7e SC |
39007 | #!/bin/sh |
39008 | #----------------------------------------------------------------------------- | |
39009 | #-- Name: distrib/mac/shared-ld-sh | |
39010 | #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X | |
39011 | #-- Author: Gilles Depeyrot | |
39012 | #-- Copyright: (c) 2002 Gilles Depeyrot | |
39013 | #-- Licence: any use permitted | |
39014 | #----------------------------------------------------------------------------- | |
39015 | ||
39016 | verbose=0 | |
39017 | args="" | |
39018 | objects="" | |
39019 | linking_flag="-dynamiclib" | |
39020 | ||
473276a9 VS |
39021 | while test ${D}# -gt 0; do |
39022 | case ${D}1 in | |
a848cd7e SC |
39023 | |
39024 | -v) | |
39025 | verbose=1 | |
39026 | ;; | |
39027 | ||
39028 | -o|-compatibility_version|-current_version|-framework|-undefined|-install_name) | |
39029 | # collect these options and values | |
473276a9 | 39030 | args="${D}{args} ${D}1 ${D}2" |
a848cd7e SC |
39031 | shift |
39032 | ;; | |
39033 | ||
39034 | -l*|-L*|-flat_namespace|-headerpad_max_install_names) | |
39035 | # collect these options | |
473276a9 | 39036 | args="${D}{args} ${D}1" |
a848cd7e SC |
39037 | ;; |
39038 | ||
39039 | -dynamiclib|-bundle) | |
473276a9 | 39040 | linking_flag="${D}1" |
a848cd7e SC |
39041 | ;; |
39042 | ||
39043 | -*) | |
473276a9 | 39044 | echo "shared-ld: unhandled option '${D}1'" |
a848cd7e SC |
39045 | exit 1 |
39046 | ;; | |
39047 | ||
39048 | *.o | *.a | *.dylib) | |
39049 | # collect object files | |
473276a9 | 39050 | objects="${D}{objects} ${D}1" |
a848cd7e SC |
39051 | ;; |
39052 | ||
39053 | *) | |
473276a9 | 39054 | echo "shared-ld: unhandled argument '${D}1'" |
a848cd7e SC |
39055 | exit 1 |
39056 | ;; | |
39057 | ||
39058 | esac | |
39059 | shift | |
39060 | done | |
39061 | ||
39062 | # | |
39063 | # Link one module containing all the others | |
39064 | # | |
473276a9 VS |
39065 | if test ${D}{verbose} = 1; then |
39066 | echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o" | |
a848cd7e | 39067 | fi |
473276a9 VS |
39068 | c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o |
39069 | status=${D}? | |
39070 | if test ${D}{status} != 0; then | |
39071 | exit ${D}{status} | |
a848cd7e SC |
39072 | fi |
39073 | ||
39074 | # | |
39075 | # Link the shared library from the single module created | |
39076 | # | |
473276a9 VS |
39077 | if test ${D}{verbose} = 1; then |
39078 | echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}" | |
a848cd7e | 39079 | fi |
473276a9 VS |
39080 | c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args} |
39081 | status=${D}? | |
39082 | if test ${D}{status} != 0; then | |
39083 | exit ${D}{status} | |
a848cd7e SC |
39084 | fi |
39085 | ||
39086 | # | |
39087 | # Remove intermediate module | |
39088 | # | |
473276a9 | 39089 | rm -f master.${D}${D}.o |
a848cd7e SC |
39090 | |
39091 | exit 0 | |
39092 | EOF | |
473276a9 | 39093 | |
a848cd7e SC |
39094 | chmod +x shared-ld-sh |
39095 | ||
39096 | SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o" | |
39097 | SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o" | |
39098 | SHARED_LD_CXX="$SHARED_LD_CC" | |
39099 | SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC" | |
39100 | else | |
39101 | SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o" | |
39102 | SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o" | |
39103 | SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o" | |
39104 | SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o" | |
39105 | fi | |
39106 | ||
39107 | PIC_FLAG="-dynamic -fPIC" | |
39108 | ;; | |
39109 | ||
39110 | *-*-aix* ) | |
39111 | if test "x$GCC" != "xyes"; then | |
39112 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
39113 | set dummy makeC++SharedLib; ac_word=$2 | |
39114 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39115 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39116 | if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then | |
39117 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39118 | else | |
39119 | if test -n "$AIX_CXX_LD"; then | |
39120 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
39121 | else | |
39122 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39123 | for as_dir in $PATH | |
39124 | do | |
39125 | IFS=$as_save_IFS | |
39126 | test -z "$as_dir" && as_dir=. | |
39127 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39128 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39129 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
39130 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39131 | break 2 | |
39132 | fi | |
39133 | done | |
39134 | done | |
39135 | ||
39136 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" | |
39137 | fi | |
39138 | fi | |
39139 | AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD | |
39140 | if test -n "$AIX_CXX_LD"; then | |
39141 | echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5 | |
39142 | echo "${ECHO_T}$AIX_CXX_LD" >&6 | |
39143 | else | |
39144 | echo "$as_me:$LINENO: result: no" >&5 | |
39145 | echo "${ECHO_T}no" >&6 | |
39146 | fi | |
39147 | ||
39148 | SHARED_LD_CC="$AIX_CC_LD -p 0 -o" | |
39149 | SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o" | |
39150 | fi | |
39151 | ;; | |
39152 | ||
39153 | *-*-beos* ) | |
39154 | SHARED_LD_CC="${LD} -shared -o" | |
39155 | SHARED_LD_CXX="${LD} -shared -o" | |
39156 | ;; | |
39157 | ||
39158 | *-*-irix* ) | |
39159 | if test "x$GCC" != "xyes"; then | |
39160 | PIC_FLAG="-KPIC" | |
39161 | fi | |
39162 | ;; | |
39163 | ||
39164 | *-*-cygwin* | *-*-mingw32* ) | |
39165 | PIC_FLAG="" | |
39166 | ;; | |
39167 | ||
39168 | *-pc-os2_emx | *-pc-os2-emx ) | |
473276a9 VS |
39169 | SHARED_LD_CC="`pwd`/dllar.sh -o" |
39170 | SHARED_LD_CXX="`pwd`/dllar.sh -o" | |
a848cd7e | 39171 | PIC_FLAG="" |
473276a9 VS |
39172 | |
39173 | D='$' | |
39174 | cat <<EOF >dllar.sh | |
39175 | #!/bin/sh | |
39176 | # | |
39177 | # dllar - a tool to build both a .dll and an .a file | |
39178 | # from a set of object (.o) files for EMX/OS2. | |
39179 | # | |
39180 | # Written by Andrew Zabolotny, bit@freya.etu.ru | |
39181 | # Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de | |
39182 | # | |
39183 | # This script will accept a set of files on the command line. | |
39184 | # All the public symbols from the .o files will be exported into | |
39185 | # a .DEF file, then linker will be run (through gcc) against them to | |
39186 | # build a shared library consisting of all given .o files. All libraries | |
39187 | # (.a) will be first decompressed into component .o files then act as | |
39188 | # described above. You can optionally give a description (-d "description") | |
39189 | # which will be put into .DLL. To see the list of accepted options (as well | |
39190 | # as command-line format) simply run this program without options. The .DLL | |
39191 | # is built to be imported by name (there is no guarantee that new versions | |
39192 | # of the library you build will have same ordinals for same symbols). | |
39193 | # | |
39194 | # dllar is free software; you can redistribute it and/or modify | |
39195 | # it under the terms of the GNU General Public License as published by | |
39196 | # the Free Software Foundation; either version 2, or (at your option) | |
39197 | # any later version. | |
39198 | # | |
39199 | # dllar is distributed in the hope that it will be useful, | |
39200 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
39201 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
39202 | # GNU General Public License for more details. | |
39203 | # | |
39204 | # You should have received a copy of the GNU General Public License | |
39205 | # along with dllar; see the file COPYING. If not, write to the Free | |
39206 | # Software Foundation, 59 Temple Place - Suite 330, Boston, MA | |
39207 | # 02111-1307, USA. | |
39208 | ||
39209 | # To successfuly run this program you will need: | |
39210 | # - Current drive should have LFN support (HPFS, ext2, network, etc) | |
39211 | # (Sometimes dllar generates filenames which won't fit 8.3 scheme) | |
39212 | # - gcc | |
39213 | # (used to build the .dll) | |
39214 | # - emxexp | |
39215 | # (used to create .def file from .o files) | |
39216 | # - emximp | |
39217 | # (used to create .a file from .def file) | |
39218 | # - GNU text utilites (cat, sort, uniq) | |
39219 | # used to process emxexp output | |
39220 | # - GNU file utilities (mv, rm) | |
39221 | # - GNU sed | |
39222 | # - lxlite (optional, see flag below) | |
39223 | # (used for general .dll cleanup) | |
39224 | # | |
39225 | ||
39226 | flag_USE_LXLITE=1; | |
39227 | ||
39228 | # | |
39229 | # helper functions | |
39230 | # basnam, variant of basename, which does _not_ remove the path, _iff_ | |
39231 | # second argument (suffix to remove) is given | |
39232 | basnam(){ | |
39233 | case ${D}# in | |
39234 | 1) | |
39235 | echo ${D}1 | sed 's/.*\///' | sed 's/.*\\//' | |
39236 | ;; | |
39237 | 2) | |
39238 | echo ${D}1 | sed 's/'${D}2'${D}//' | |
39239 | ;; | |
39240 | *) | |
39241 | echo "error in basnam ${D}*" | |
39242 | exit 8 | |
39243 | ;; | |
39244 | esac | |
39245 | } | |
39246 | ||
39247 | # Cleanup temporary files and output | |
39248 | CleanUp() { | |
39249 | cd ${D}curDir | |
39250 | for i in ${D}inputFiles ; do | |
39251 | case ${D}i in | |
39252 | *!) | |
39253 | rm -rf \`basnam ${D}i !\` | |
39254 | ;; | |
39255 | *) | |
39256 | ;; | |
39257 | esac | |
39258 | done | |
39259 | ||
39260 | # Kill result in case of failure as there is just to many stupid make/nmake | |
39261 | # things out there which doesn't do this. | |
2057db16 | 39262 | if [] ${D}# -eq 0 []; then |
473276a9 VS |
39263 | rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile |
39264 | fi | |
39265 | } | |
39266 | ||
39267 | # Print usage and exit script with rc=1. | |
39268 | PrintHelp() { | |
2057db16 VS |
39269 | echo 'Usage: dllar []-o[[]utput[]] output_file[] []-i[[]mport[]] importlib_name[]' |
39270 | echo ' []-d[[]escription[]] "dll descrption"[] []-cc "CC"[] []-f[[]lags[]] "CFLAGS"[]' | |
39271 | echo ' []-ord[[]inals[]][] -ex[]clude[] "symbol(s)"' | |
39272 | echo ' []-libf[[]lags[]] "{INIT|TERM}{GLOBAL|INSTANCE}"[] []-nocrt[[]dll[]][] []-nolxl[[]ite[]][]' | |
39273 | echo ' []*.o[] []*.a[]' | |
473276a9 VS |
39274 | echo '*> "output_file" should have no extension.' |
39275 | echo ' If it has the .o, .a or .dll extension, it is automatically removed.' | |
39276 | echo ' The import library name is derived from this and is set to "name".a,' | |
39277 | echo ' unless overridden by -import' | |
39278 | echo '*> "importlib_name" should have no extension.' | |
39279 | echo ' If it has the .o, or .a extension, it is automatically removed.' | |
39280 | echo ' This name is used as the import library name and may be longer and' | |
39281 | echo ' more descriptive than the DLL name which has to follow the old ' | |
39282 | echo ' 8.3 convention of FAT.' | |
39283 | echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)' | |
39284 | echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)' | |
39285 | echo ' These flags will be put at the start of GCC command line.' | |
2057db16 VS |
39286 | echo '*> -ord[]inals[] tells dllar to export entries by ordinals. Be careful.' |
39287 | echo '*> -ex[]clude[] defines symbols which will not be exported. You can define' | |
473276a9 VS |
39288 | echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".' |
39289 | echo ' If the last character of a symbol is "*", all symbols beginning' | |
39290 | echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).' | |
2057db16 | 39291 | echo '*> -libf[]lags[] can be used to add INITGLOBAL/INITINSTANCE and/or' |
473276a9 | 39292 | echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.' |
2057db16 | 39293 | echo '*> -nocrt[]dll[] switch will disable linking the library against emx''s' |
473276a9 | 39294 | echo ' C runtime DLLs.' |
2057db16 | 39295 | echo '*> -nolxl[]ite[] switch will disable running lxlite on the resulting DLL.' |
473276a9 VS |
39296 | echo '*> All other switches (for example -L./ or -lmylib) will be passed' |
39297 | echo ' unchanged to GCC at the end of command line.' | |
39298 | echo '*> If you create a DLL from a library and you do not specify -o,' | |
39299 | echo ' the basename for DLL and import library will be set to library name,' | |
39300 | echo ' the initial library will be renamed to 'name'_s.a (_s for static)' | |
39301 | echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial' | |
39302 | echo ' library will be renamed into gcc_s.a.' | |
39303 | echo '--------' | |
39304 | echo 'Example:' | |
39305 | echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord' | |
39306 | echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"' | |
39307 | CleanUp | |
39308 | exit 1 | |
39309 | } | |
39310 | ||
39311 | # Execute a command. | |
39312 | # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script. | |
39313 | # @Uses Whatever CleanUp() uses. | |
39314 | doCommand() { | |
39315 | echo "${D}*" | |
39316 | eval ${D}* | |
39317 | rcCmd=${D}? | |
39318 | ||
2057db16 | 39319 | if [] ${D}rcCmd -ne 0 []; then |
473276a9 VS |
39320 | echo "command failed, exit code="${D}rcCmd |
39321 | CleanUp | |
39322 | exit ${D}rcCmd | |
39323 | fi | |
39324 | } | |
39325 | ||
39326 | # main routine | |
39327 | # setup globals | |
39328 | cmdLine=${D}* | |
39329 | outFile="" | |
39330 | outimpFile="" | |
39331 | inputFiles="" | |
39332 | description="" | |
39333 | CC=gcc.exe | |
39334 | CFLAGS="-s -Zcrtdll" | |
39335 | EXTRA_CFLAGS="" | |
39336 | EXPORT_BY_ORDINALS=0 | |
39337 | exclude_symbols="" | |
39338 | library_flags="" | |
39339 | curDir=\`pwd\` | |
39340 | curDirS=curDir | |
39341 | case ${D}curDirS in | |
39342 | */) | |
39343 | ;; | |
39344 | *) | |
39345 | curDirS=${D}{curDirS}"/" | |
39346 | ;; | |
39347 | esac | |
39348 | # Parse commandline | |
39349 | libsToLink=0 | |
2057db16 | 39350 | while [] ${D}1 []; do |
473276a9 VS |
39351 | case ${D}1 in |
39352 | -ord*) | |
39353 | EXPORT_BY_ORDINALS=1; | |
39354 | ;; | |
39355 | -o*) | |
39356 | shift | |
39357 | outFile=${D}1 | |
39358 | ;; | |
39359 | -i*) | |
39360 | shift | |
39361 | outimpFile=${D}1 | |
39362 | ;; | |
39363 | -d*) | |
39364 | shift | |
39365 | description=${D}1 | |
39366 | ;; | |
39367 | -f*) | |
39368 | shift | |
39369 | CFLAGS=${D}1 | |
39370 | ;; | |
39371 | -c*) | |
39372 | shift | |
39373 | CC=${D}1 | |
39374 | ;; | |
39375 | -h*) | |
39376 | PrintHelp | |
39377 | ;; | |
39378 | -ex*) | |
39379 | shift | |
39380 | exclude_symbols=${D}{exclude_symbols}${D}1" " | |
39381 | ;; | |
39382 | -libf*) | |
39383 | shift | |
39384 | library_flags=${D}{library_flags}${D}1" " | |
39385 | ;; | |
39386 | -nocrt*) | |
39387 | CFLAGS="-s" | |
39388 | ;; | |
39389 | -nolxl*) | |
39390 | flag_USE_LXLITE=0 | |
39391 | ;; | |
39392 | -* | /*) | |
39393 | case ${D}1 in | |
39394 | -L* | -l*) | |
39395 | libsToLink=1 | |
39396 | ;; | |
39397 | *) | |
39398 | ;; | |
39399 | esac | |
39400 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 | |
39401 | ;; | |
39402 | *) | |
39403 | found=0; | |
2057db16 | 39404 | if [] ${D}libsToLink -ne 0 []; then |
473276a9 VS |
39405 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 |
39406 | else | |
39407 | for file in ${D}1 ; do | |
2057db16 | 39408 | if [] -f ${D}file []; then |
473276a9 VS |
39409 | inputFiles="${D}{inputFiles} ${D}file" |
39410 | found=1 | |
39411 | fi | |
39412 | done | |
2057db16 | 39413 | if [] ${D}found -eq 0 []; then |
473276a9 VS |
39414 | echo "ERROR: No file(s) found: "${D}1 |
39415 | exit 8 | |
39416 | fi | |
39417 | fi | |
39418 | ;; | |
39419 | esac | |
39420 | shift | |
39421 | done # iterate cmdline words | |
39422 | ||
39423 | # | |
2057db16 | 39424 | if [] -z "${D}inputFiles" []; then |
473276a9 VS |
39425 | echo "dllar: no input files" |
39426 | PrintHelp | |
39427 | fi | |
39428 | ||
39429 | # Now extract all .o files from .a files | |
39430 | newInputFiles="" | |
39431 | for file in ${D}inputFiles ; do | |
39432 | case ${D}file in | |
39433 | *.a | *.lib) | |
39434 | case ${D}file in | |
39435 | *.a) | |
39436 | suffix=".a" | |
39437 | AR="ar" | |
39438 | ;; | |
39439 | *.lib) | |
39440 | suffix=".lib" | |
39441 | AR="emxomfar" | |
39442 | EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf" | |
39443 | ;; | |
39444 | *) | |
39445 | ;; | |
39446 | esac | |
39447 | dirname=\`basnam ${D}file ${D}suffix\`"_%" | |
39448 | mkdir ${D}dirname | |
2057db16 | 39449 | if [] ${D}? -ne 0 []; then |
473276a9 VS |
39450 | echo "Failed to create subdirectory ./${D}dirname" |
39451 | CleanUp | |
39452 | exit 8; | |
39453 | fi | |
39454 | # Append '!' to indicate archive | |
39455 | newInputFiles="${D}newInputFiles ${D}{dirname}!" | |
39456 | doCommand "cd ${D}dirname; ${D}AR x ../${D}file" | |
39457 | cd ${D}curDir | |
39458 | found=0; | |
39459 | for subfile in ${D}dirname/*.o* ; do | |
2057db16 | 39460 | if [] -f ${D}subfile []; then |
473276a9 | 39461 | found=1 |
2057db16 | 39462 | if [] -s ${D}subfile []; then |
473276a9 VS |
39463 | # FIXME: This should be: is file size > 32 byte, _not_ > 0! |
39464 | newInputFiles="${D}newInputFiles ${D}subfile" | |
39465 | fi | |
39466 | fi | |
39467 | done | |
2057db16 | 39468 | if [] ${D}found -eq 0 []; then |
473276a9 VS |
39469 | echo "WARNING: there are no files in archive \'${D}file\'" |
39470 | fi | |
39471 | ;; | |
39472 | *) | |
39473 | newInputFiles="${D}{newInputFiles} ${D}file" | |
39474 | ;; | |
39475 | esac | |
39476 | done | |
39477 | inputFiles="${D}newInputFiles" | |
39478 | ||
39479 | # Output filename(s). | |
39480 | do_backup=0; | |
2057db16 | 39481 | if [] -z ${D}outFile []; then |
473276a9 VS |
39482 | do_backup=1; |
39483 | set outFile ${D}inputFiles; outFile=${D}2 | |
39484 | fi | |
39485 | ||
39486 | # If it is an archive, remove the '!' and the '_%' suffixes | |
39487 | case ${D}outFile in | |
39488 | *_%!) | |
39489 | outFile=\`basnam ${D}outFile _%!\` | |
39490 | ;; | |
39491 | *) | |
39492 | ;; | |
39493 | esac | |
39494 | case ${D}outFile in | |
39495 | *.dll) | |
39496 | outFile=\`basnam ${D}outFile .dll\` | |
39497 | ;; | |
39498 | *.DLL) | |
39499 | outFile=\`basnam ${D}outFile .DLL\` | |
39500 | ;; | |
39501 | *.o) | |
39502 | outFile=\`basnam ${D}outFile .o\` | |
39503 | ;; | |
39504 | *.obj) | |
39505 | outFile=\`basnam ${D}outFile .obj\` | |
39506 | ;; | |
39507 | *.a) | |
39508 | outFile=\`basnam ${D}outFile .a\` | |
39509 | ;; | |
39510 | *.lib) | |
39511 | outFile=\`basnam ${D}outFile .lib\` | |
39512 | ;; | |
39513 | *) | |
39514 | ;; | |
39515 | esac | |
39516 | case ${D}outimpFile in | |
39517 | *.a) | |
39518 | outimpFile=\`basnam ${D}outimpFile .a\` | |
39519 | ;; | |
39520 | *.lib) | |
39521 | outimpFile=\`basnam ${D}outimpFile .lib\` | |
39522 | ;; | |
39523 | *) | |
39524 | ;; | |
39525 | esac | |
2057db16 | 39526 | if [] -z ${D}outimpFile []; then |
473276a9 VS |
39527 | outimpFile=${D}outFile |
39528 | fi | |
39529 | defFile="${D}{outFile}.def" | |
39530 | arcFile="${D}{outimpFile}.a" | |
39531 | arcFile2="${D}{outimpFile}.lib" | |
39532 | dllFile="${D}outFile" | |
39533 | # Add suffix to dllFile later, first we need a version to use as | |
39534 | # name in .def file. | |
39535 | ||
2057db16 VS |
39536 | if [] ${D}do_backup -ne 0 [] ; then |
39537 | if [] -f ${D}arcFile [] ; then | |
473276a9 VS |
39538 | doCommand "mv ${D}arcFile ${D}{outFile}_s.a" |
39539 | fi | |
2057db16 | 39540 | if [] -f ${D}arcFile2 [] ; then |
473276a9 VS |
39541 | doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib" |
39542 | fi | |
39543 | fi | |
39544 | ||
39545 | # Extract public symbols from all the object files. | |
39546 | tmpdefFile=${D}{defFile}_% | |
39547 | rm -f ${D}tmpdefFile | |
39548 | for file in ${D}inputFiles ; do | |
39549 | case ${D}file in | |
39550 | *!) | |
39551 | ;; | |
39552 | *) | |
39553 | doCommand "emxexp -u ${D}file >> ${D}tmpdefFile" | |
39554 | ;; | |
39555 | esac | |
39556 | done | |
39557 | ||
39558 | # Create the def file. | |
39559 | rm -f ${D}defFile | |
39560 | echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile | |
39561 | dllFile="${D}dllFile.dll" | |
2057db16 | 39562 | if [] -n ${D}description []; then |
473276a9 VS |
39563 | echo "DESCRIPTION \"${D}{description}\"" >> ${D}defFile |
39564 | fi | |
39565 | echo "EXPORTS" >> ${D}defFile | |
39566 | ||
39567 | doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%" | |
39568 | grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile | |
39569 | ||
39570 | # Checks if the export is ok or not. | |
39571 | for word in ${D}exclude_symbols; do | |
39572 | grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}% | |
39573 | mv ${D}{tmpdefFile}% ${D}tmpdefFile | |
39574 | done | |
39575 | ||
39576 | ||
2057db16 | 39577 | if [] ${D}EXPORT_BY_ORDINALS -ne 0 []; then |
473276a9 VS |
39578 | sed "=" < ${D}tmpdefFile | \ |
39579 | sed ' | |
39580 | N | |
39581 | : loop | |
2057db16 | 39582 | s/^\([]0-9[]\+\)\([]^;[]*\)\(;.*\)\?/\2 @\1 NONAME/ |
473276a9 VS |
39583 | t loop |
39584 | ' > ${D}{tmpdefFile}% | |
39585 | grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile | |
39586 | else | |
39587 | rm -f ${D}{tmpdefFile}% | |
39588 | fi | |
39589 | cat ${D}tmpdefFile >> ${D}defFile | |
39590 | rm -f ${D}tmpdefFile | |
39591 | ||
39592 | # Do linking, create implib, and apply lxlite. | |
39593 | gccCmdl=""; | |
39594 | for file in ${D}inputFiles ; do | |
39595 | case ${D}file in | |
39596 | *!) | |
39597 | ;; | |
39598 | *) | |
39599 | gccCmdl="${D}gccCmdl ${D}file" | |
39600 | ;; | |
39601 | esac | |
39602 | done | |
39603 | doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS" | |
39604 | touch "${D}{outFile}.dll" | |
39605 | ||
39606 | doCommand "emximp -o ${D}arcFile ${D}defFile" | |
2057db16 | 39607 | if [] ${D}flag_USE_LXLITE -ne 0 []; then |
473276a9 | 39608 | add_flags=""; |
2057db16 | 39609 | if [] ${D}EXPORT_BY_ORDINALS -ne 0 []; then |
473276a9 VS |
39610 | add_flags="-ynd" |
39611 | fi | |
39612 | doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile" | |
39613 | fi | |
39614 | doCommand "emxomf -s -l ${D}arcFile" | |
39615 | ||
39616 | # Successful exit. | |
39617 | CleanUp 1 | |
39618 | exit 0 | |
39619 | EOF | |
39620 | ||
39621 | chmod +x dllar.sh | |
a848cd7e SC |
39622 | ;; |
39623 | ||
39624 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ | |
39625 | *-*-sunos4* | \ | |
39626 | *-*-osf* | \ | |
39627 | *-*-dgux5* | \ | |
39628 | *-*-sysv5* ) | |
39629 | ;; | |
39630 | ||
39631 | *) | |
39632 | { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5 | |
39633 | echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;} | |
39634 | { (exit 1); exit 1; }; } | |
39635 | esac | |
39636 | ||
2057db16 VS |
39637 | if test "x$PIC_FLAG" != "x" ; then |
39638 | PIC_FLAG="$PIC_FLAG -DPIC" | |
39639 | fi | |
39640 | ||
a848cd7e SC |
39641 | if test "x$SHARED_LD_MODULE_CC" = "x" ; then |
39642 | SHARED_LD_MODULE_CC="$SHARED_LD_CC" | |
39643 | fi | |
39644 | if test "x$SHARED_LD_MODULE_CXX" = "x" ; then | |
39645 | SHARED_LD_MODULE_CXX="$SHARED_LD_CXX" | |
39646 | fi | |
39647 | ||
39648 | ||
39649 | ||
39650 | ||
39651 | ||
39652 | ||
39653 | ||
39654 | ||
39655 | USE_SOVERSION=0 | |
39656 | USE_SOVERLINUX=0 | |
39657 | USE_SOVERSOLARIS=0 | |
39658 | USE_SOSYMLINKS=0 | |
39659 | USE_MACVERSION=0 | |
39660 | SONAME_FLAG= | |
39661 | ||
39662 | case "${BAKEFILE_HOST}" in | |
39663 | *-*-linux* ) | |
39664 | SONAME_FLAG="-Wl,-soname," | |
39665 | USE_SOVERSION=1 | |
39666 | USE_SOVERLINUX=1 | |
39667 | USE_SOSYMLINKS=1 | |
39668 | ;; | |
39669 | ||
39670 | *-*-solaris2* ) | |
39671 | SONAME_FLAG="-h " | |
39672 | USE_SOVERSION=1 | |
39673 | USE_SOVERSOLARIS=1 | |
39674 | USE_SOSYMLINKS=1 | |
39675 | ;; | |
39676 | ||
39677 | *-*-darwin* ) | |
39678 | USE_MACVERSION=1 | |
39679 | USE_SOVERSION=1 | |
39680 | USE_SOSYMLINKS=1 | |
39681 | ;; | |
39682 | esac | |
39683 | ||
39684 | ||
39685 | ||
39686 | ||
39687 | ||
39688 | ||
39689 | ||
39690 | ||
39691 | ||
39692 | echo "$as_me:$LINENO: checking for dependency tracking method" >&5 | |
39693 | echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6 | |
39694 | DEPS_TRACKING=0 | |
39695 | ||
39696 | if test "x$GCC" = "xyes"; then | |
39697 | DEPSMODE=gcc | |
39698 | DEPS_TRACKING=1 | |
39699 | case "${BAKEFILE_HOST}" in | |
39700 | powerpc-*-darwin* ) | |
39701 | DEPSFLAG_GCC="-no-cpp-precomp -MMD" | |
39702 | ;; | |
39703 | * ) | |
39704 | DEPSFLAG_GCC="-MMD" | |
39705 | ;; | |
39706 | esac | |
39707 | echo "$as_me:$LINENO: result: gcc" >&5 | |
39708 | echo "${ECHO_T}gcc" >&6 | |
39709 | else | |
39710 | echo "$as_me:$LINENO: result: none" >&5 | |
39711 | echo "${ECHO_T}none" >&6 | |
39712 | fi | |
39713 | ||
39714 | if test $DEPS_TRACKING = 1 ; then | |
473276a9 VS |
39715 | |
39716 | D='$' | |
39717 | cat <<EOF >bk-deps | |
a848cd7e SC |
39718 | #!/bin/sh |
39719 | ||
39720 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
39721 | # script. It is used to track C/C++ files dependencies in portable way. | |
39722 | # | |
39723 | # Permission is given to use this file in any way. | |
39724 | ||
473276a9 | 39725 | DEPSMODE=${DEPSMODE} |
a848cd7e | 39726 | DEPSDIR=.deps |
473276a9 | 39727 | DEPSFLAG_GCC="${DEPSFLAG_GCC}" |
a848cd7e | 39728 | |
473276a9 | 39729 | mkdir -p ${D}DEPSDIR |
a848cd7e | 39730 | |
473276a9 VS |
39731 | if test ${D}DEPSMODE = gcc ; then |
39732 | ${D}* ${D}{DEPSFLAG_GCC} | |
39733 | status=${D}? | |
39734 | if test ${D}{status} != 0 ; then | |
39735 | exit ${D}{status} | |
a848cd7e SC |
39736 | fi |
39737 | # move created file to the location we want it in: | |
473276a9 VS |
39738 | while test ${D}# -gt 0; do |
39739 | case "${D}1" in | |
a848cd7e SC |
39740 | -o ) |
39741 | shift | |
473276a9 | 39742 | objfile=${D}1 |
a848cd7e SC |
39743 | ;; |
39744 | -* ) | |
39745 | ;; | |
39746 | * ) | |
473276a9 | 39747 | srcfile=${D}1 |
a848cd7e SC |
39748 | ;; |
39749 | esac | |
39750 | shift | |
39751 | done | |
473276a9 VS |
39752 | depfile=\`basename ${D}srcfile | sed -e 's/\..*${D}/.d/g'\` |
39753 | depobjname=\`echo ${D}depfile |sed -e 's/\.d/.o/g'\` | |
39754 | if test -f ${D}depfile ; then | |
39755 | sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
39756 | rm -f ${D}depfile | |
a848cd7e | 39757 | else |
473276a9 VS |
39758 | depfile=\`basename ${D}objfile | sed -e 's/\..*${D}/.d/g'\` |
39759 | if test -f ${D}depfile ; then | |
39760 | sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
39761 | rm -f ${D}depfile | |
a848cd7e SC |
39762 | fi |
39763 | fi | |
39764 | exit 0 | |
39765 | else | |
473276a9 VS |
39766 | ${D}* |
39767 | exit ${D}? | |
a848cd7e SC |
39768 | fi |
39769 | EOF | |
473276a9 | 39770 | |
a848cd7e SC |
39771 | chmod +x bk-deps |
39772 | fi | |
39773 | ||
39774 | ||
39775 | ||
39776 | ||
39777 | RESCOMP= | |
39778 | SETFILE= | |
39779 | ||
39780 | case ${BAKEFILE_HOST} in | |
39781 | *-*-cygwin* | *-*-mingw32* ) | |
39782 | if test "$build" != "$host" ; then | |
39783 | RESCOMP=$host_alias-windres | |
39784 | else | |
39785 | # Extract the first word of "windres", so it can be a program name with args. | |
39786 | set dummy windres; ac_word=$2 | |
39787 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39788 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39789 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
39790 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39791 | else | |
39792 | if test -n "$RESCOMP"; then | |
39793 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
39794 | else | |
39795 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39796 | for as_dir in $PATH | |
39797 | do | |
39798 | IFS=$as_save_IFS | |
39799 | test -z "$as_dir" && as_dir=. | |
39800 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39801 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39802 | ac_cv_prog_RESCOMP="windres" | |
39803 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39804 | break 2 | |
39805 | fi | |
39806 | done | |
39807 | done | |
39808 | ||
39809 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres" | |
39810 | fi | |
39811 | fi | |
39812 | RESCOMP=$ac_cv_prog_RESCOMP | |
39813 | if test -n "$RESCOMP"; then | |
39814 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
39815 | echo "${ECHO_T}$RESCOMP" >&6 | |
39816 | else | |
39817 | echo "$as_me:$LINENO: result: no" >&5 | |
39818 | echo "${ECHO_T}no" >&6 | |
39819 | fi | |
39820 | ||
39821 | fi | |
39822 | ;; | |
39823 | ||
39824 | *-*-darwin* ) | |
39825 | # Extract the first word of "Rez", so it can be a program name with args. | |
39826 | set dummy Rez; ac_word=$2 | |
39827 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39828 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39829 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
39830 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39831 | else | |
39832 | if test -n "$RESCOMP"; then | |
39833 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
39834 | else | |
39835 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39836 | for as_dir in $PATH | |
39837 | do | |
39838 | IFS=$as_save_IFS | |
39839 | test -z "$as_dir" && as_dir=. | |
39840 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39841 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39842 | ac_cv_prog_RESCOMP="Rez" | |
39843 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39844 | break 2 | |
39845 | fi | |
39846 | done | |
39847 | done | |
39848 | ||
39849 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
39850 | fi | |
39851 | fi | |
39852 | RESCOMP=$ac_cv_prog_RESCOMP | |
39853 | if test -n "$RESCOMP"; then | |
39854 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
39855 | echo "${ECHO_T}$RESCOMP" >&6 | |
39856 | else | |
39857 | echo "$as_me:$LINENO: result: no" >&5 | |
39858 | echo "${ECHO_T}no" >&6 | |
39859 | fi | |
39860 | ||
39861 | # Extract the first word of "SetFile", so it can be a program name with args. | |
39862 | set dummy SetFile; ac_word=$2 | |
39863 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39864 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39865 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
39866 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39867 | else | |
39868 | if test -n "$SETFILE"; then | |
39869 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
39870 | else | |
39871 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39872 | for as_dir in $PATH | |
39873 | do | |
39874 | IFS=$as_save_IFS | |
39875 | test -z "$as_dir" && as_dir=. | |
39876 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39877 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39878 | ac_cv_prog_SETFILE="SetFile" | |
39879 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39880 | break 2 | |
39881 | fi | |
39882 | done | |
39883 | done | |
39884 | ||
39885 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
39886 | fi | |
39887 | fi | |
39888 | SETFILE=$ac_cv_prog_SETFILE | |
39889 | if test -n "$SETFILE"; then | |
39890 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
39891 | echo "${ECHO_T}$SETFILE" >&6 | |
39892 | else | |
39893 | echo "$as_me:$LINENO: result: no" >&5 | |
39894 | echo "${ECHO_T}no" >&6 | |
39895 | fi | |
39896 | ||
39897 | ;; | |
39898 | esac | |
39899 | ||
39900 | ||
39901 | ||
39902 | ||
39903 | ||
2057db16 | 39904 | BAKEFILE_BAKEFILE_M4_VERSION="0.1.4" |
a848cd7e | 39905 | |
dcc1b6ad | 39906 | |
a49baeab | 39907 | |
9f45f08e | 39908 | BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.4" |
a848cd7e | 39909 | |
646b6ec1 | 39910 | |
74b84332 | 39911 | |
a848cd7e SC |
39912 | # Check whether --enable-precomp-headers or --disable-precomp-headers was given. |
39913 | if test "${enable_precomp_headers+set}" = set; then | |
39914 | enableval="$enable_precomp_headers" | |
39915 | bk_use_pch="$enableval" | |
39916 | fi; | |
39917 | ||
39918 | GCC_PCH=0 | |
39919 | ||
39920 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then | |
39921 | if test "x$GCC" = "xyes"; then | |
39922 | echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5 | |
39923 | echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6 | |
39924 | cat >conftest.$ac_ext <<_ACEOF | |
39925 | /* confdefs.h. */ | |
39926 | _ACEOF | |
39927 | cat confdefs.h >>conftest.$ac_ext | |
39928 | cat >>conftest.$ac_ext <<_ACEOF | |
39929 | /* end confdefs.h. */ | |
39930 | ||
39931 | int | |
39932 | main () | |
39933 | { | |
39934 | ||
39935 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) | |
39936 | #error "no pch support" | |
39937 | #endif | |
39938 | #if (__GNUC__ < 3) | |
39939 | #error "no pch support" | |
39940 | #endif | |
39941 | #if (__GNUC__ == 3) && \ | |
39942 | ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ | |
39943 | ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) | |
39944 | #error "no pch support" | |
39945 | #endif | |
39946 | ||
39947 | ; | |
39948 | return 0; | |
39949 | } | |
39950 | _ACEOF | |
39951 | rm -f conftest.$ac_objext | |
39952 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39953 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 39954 | ac_status=$? |
ac1cb8d3 VS |
39955 | grep -v '^ *+' conftest.er1 >conftest.err |
39956 | rm -f conftest.er1 | |
39957 | cat conftest.err >&5 | |
a848cd7e SC |
39958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39959 | (exit $ac_status); } && | |
d51253e8 | 39960 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39962 | (eval $ac_try) 2>&5 | |
39963 | ac_status=$? | |
39964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39965 | (exit $ac_status); }; } && | |
39966 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
39967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39968 | (eval $ac_try) 2>&5 | |
39969 | ac_status=$? | |
39970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39971 | (exit $ac_status); }; }; then | |
39972 | ||
39973 | echo "$as_me:$LINENO: result: yes" >&5 | |
39974 | echo "${ECHO_T}yes" >&6 | |
a848cd7e SC |
39975 | GCC_PCH=1 |
39976 | ||
39977 | else | |
39978 | echo "$as_me: failed program was:" >&5 | |
39979 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39980 | ||
39981 | ||
39982 | echo "$as_me:$LINENO: result: no" >&5 | |
39983 | echo "${ECHO_T}no" >&6 | |
39984 | ||
39985 | fi | |
ac1cb8d3 | 39986 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
39987 | if test $GCC_PCH = 1 ; then |
39988 | cat <<EOF >bk-make-pch | |
39989 | #!/bin/sh | |
39990 | ||
39991 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
39992 | # script. It is used to generated precompiled headers. | |
39993 | # | |
39994 | # Permission is given to use this file in any way. | |
39995 | ||
39996 | outfile="\${1}" | |
39997 | header="\${2}" | |
39998 | shift | |
39999 | shift | |
40000 | ||
40001 | compiler= | |
40002 | headerfile= | |
40003 | while test \${#} -gt 0; do | |
40004 | case "\${1}" in | |
40005 | -I* ) | |
40006 | incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\` | |
40007 | if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then | |
40008 | headerfile="\${incdir}/\${header}" | |
40009 | fi | |
40010 | ;; | |
40011 | esac | |
40012 | compiler="\${compiler} \${1}" | |
40013 | shift | |
40014 | done | |
40015 | ||
40016 | if test "x\${headerfile}" = "x" ; then | |
40017 | echo "error: can't find header \${header} in include paths" >2 | |
40018 | else | |
40019 | if test -f \${outfile} ; then | |
40020 | rm -f \${outfile} | |
40021 | else | |
40022 | mkdir -p \`dirname \${outfile}\` | |
40023 | fi | |
40024 | depsfile=".deps/\`basename \${outfile}\`.d" | |
40025 | mkdir -p .deps | |
40026 | # can do this because gcc is >= 3.4: | |
40027 | \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}" | |
40028 | exit \${?} | |
40029 | fi | |
40030 | EOF | |
40031 | chmod +x bk-make-pch | |
40032 | fi | |
40033 | fi | |
40034 | fi | |
40035 | ||
40036 | ||
40037 | ||
40038 | ||
40039 | ||
dcc1b6ad VS |
40040 | |
40041 | ||
40042 | # Check whether --enable-precomp-headers or --disable-precomp-headers was given. | |
40043 | if test "${enable_precomp_headers+set}" = set; then | |
40044 | enableval="$enable_precomp_headers" | |
40045 | bk_use_pch="$enableval" | |
40046 | fi; | |
40047 | ||
40048 | GCC_PCH=0 | |
40049 | ||
40050 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then | |
40051 | if test "x$GCC" = "xyes"; then | |
40052 | echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5 | |
40053 | echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6 | |
40054 | cat >conftest.$ac_ext <<_ACEOF | |
40055 | /* confdefs.h. */ | |
40056 | _ACEOF | |
40057 | cat confdefs.h >>conftest.$ac_ext | |
40058 | cat >>conftest.$ac_ext <<_ACEOF | |
40059 | /* end confdefs.h. */ | |
40060 | ||
40061 | int | |
40062 | main () | |
40063 | { | |
40064 | ||
40065 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) | |
40066 | #error "no pch support" | |
40067 | #endif | |
40068 | #if (__GNUC__ < 3) | |
40069 | #error "no pch support" | |
40070 | #endif | |
40071 | #if (__GNUC__ == 3) && \ | |
40072 | ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ | |
40073 | ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) | |
40074 | #error "no pch support" | |
40075 | #endif | |
40076 | ||
40077 | ; | |
40078 | return 0; | |
40079 | } | |
40080 | _ACEOF | |
40081 | rm -f conftest.$ac_objext | |
40082 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 40083 | (eval $ac_compile) 2>conftest.er1 |
dcc1b6ad | 40084 | ac_status=$? |
ac1cb8d3 VS |
40085 | grep -v '^ *+' conftest.er1 >conftest.err |
40086 | rm -f conftest.er1 | |
40087 | cat conftest.err >&5 | |
dcc1b6ad VS |
40088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40089 | (exit $ac_status); } && | |
d51253e8 | 40090 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40091 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40092 | (eval $ac_try) 2>&5 | |
40093 | ac_status=$? | |
40094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40095 | (exit $ac_status); }; } && | |
40096 | { ac_try='test -s conftest.$ac_objext' | |
dcc1b6ad VS |
40097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40098 | (eval $ac_try) 2>&5 | |
40099 | ac_status=$? | |
40100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40101 | (exit $ac_status); }; }; then | |
40102 | ||
40103 | echo "$as_me:$LINENO: result: yes" >&5 | |
40104 | echo "${ECHO_T}yes" >&6 | |
dcc1b6ad VS |
40105 | GCC_PCH=1 |
40106 | ||
40107 | else | |
40108 | echo "$as_me: failed program was:" >&5 | |
40109 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40110 | ||
40111 | ||
40112 | echo "$as_me:$LINENO: result: no" >&5 | |
40113 | echo "${ECHO_T}no" >&6 | |
40114 | ||
40115 | fi | |
ac1cb8d3 | 40116 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
dcc1b6ad VS |
40117 | if test $GCC_PCH = 1 ; then |
40118 | cat <<EOF >bk-make-pch | |
40119 | #!/bin/sh | |
40120 | ||
40121 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
40122 | # script. It is used to generated precompiled headers. | |
40123 | # | |
40124 | # Permission is given to use this file in any way. | |
40125 | ||
40126 | outfile="\${1}" | |
40127 | header="\${2}" | |
40128 | shift | |
40129 | shift | |
40130 | ||
40131 | compiler= | |
40132 | headerfile= | |
40133 | while test \${#} -gt 0; do | |
40134 | case "\${1}" in | |
40135 | -I* ) | |
40136 | incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\` | |
40137 | if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then | |
40138 | headerfile="\${incdir}/\${header}" | |
40139 | fi | |
40140 | ;; | |
40141 | esac | |
40142 | compiler="\${compiler} \${1}" | |
40143 | shift | |
40144 | done | |
40145 | ||
40146 | if test "x\${headerfile}" = "x" ; then | |
40147 | echo "error: can't find header \${header} in include paths" >2 | |
40148 | else | |
40149 | if test -f \${outfile} ; then | |
40150 | rm -f \${outfile} | |
40151 | else | |
40152 | mkdir -p \`dirname \${outfile}\` | |
40153 | fi | |
40154 | depsfile=".deps/\`basename \${outfile}\`.d" | |
40155 | mkdir -p .deps | |
40156 | # can do this because gcc is >= 3.4: | |
40157 | \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}" | |
40158 | exit \${?} | |
40159 | fi | |
40160 | EOF | |
40161 | chmod +x bk-make-pch | |
40162 | fi | |
40163 | fi | |
40164 | fi | |
40165 | ||
40166 | ||
40167 | ||
a848cd7e SC |
40168 | COND_BUILD_DEBUG="#" |
40169 | if test "x$BUILD" = "xdebug" ; then | |
40170 | COND_BUILD_DEBUG="" | |
40171 | fi | |
40172 | ||
40173 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" | |
40174 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
40175 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
40176 | fi | |
40177 | ||
40178 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
40179 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
40180 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
40181 | fi | |
40182 | ||
40183 | COND_BUILD_DEBUG_UNICODE_0="#" | |
40184 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then | |
40185 | COND_BUILD_DEBUG_UNICODE_0="" | |
40186 | fi | |
40187 | ||
40188 | COND_BUILD_DEBUG_UNICODE_1="#" | |
40189 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then | |
40190 | COND_BUILD_DEBUG_UNICODE_1="" | |
40191 | fi | |
40192 | ||
40193 | COND_BUILD_RELEASE="#" | |
40194 | if test "x$BUILD" = "xrelease" ; then | |
40195 | COND_BUILD_RELEASE="" | |
40196 | fi | |
40197 | ||
40198 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" | |
40199 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
40200 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
40201 | fi | |
40202 | ||
40203 | COND_BUILD_RELEASE_UNICODE_0="#" | |
40204 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then | |
40205 | COND_BUILD_RELEASE_UNICODE_0="" | |
40206 | fi | |
40207 | ||
40208 | COND_BUILD_RELEASE_UNICODE_1="#" | |
40209 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then | |
40210 | COND_BUILD_RELEASE_UNICODE_1="" | |
40211 | fi | |
40212 | ||
40213 | COND_DEBUG_FLAG_1="#" | |
40214 | if test "x$DEBUG_FLAG" = "x1" ; then | |
40215 | COND_DEBUG_FLAG_1="" | |
40216 | fi | |
40217 | ||
40218 | COND_DEBUG_INFO_0="#" | |
40219 | if test "x$DEBUG_INFO" = "x0" ; then | |
40220 | COND_DEBUG_INFO_0="" | |
40221 | fi | |
40222 | ||
40223 | COND_DEBUG_INFO_1="#" | |
40224 | if test "x$DEBUG_INFO" = "x1" ; then | |
40225 | COND_DEBUG_INFO_1="" | |
40226 | fi | |
40227 | ||
40228 | COND_DEPS_TRACKING_0="#" | |
40229 | if test "x$DEPS_TRACKING" = "x0" ; then | |
40230 | COND_DEPS_TRACKING_0="" | |
40231 | fi | |
40232 | ||
40233 | COND_DEPS_TRACKING_1="#" | |
40234 | if test "x$DEPS_TRACKING" = "x1" ; then | |
40235 | COND_DEPS_TRACKING_1="" | |
40236 | fi | |
40237 | ||
40238 | COND_GCC_PCH_1="#" | |
40239 | if test "x$GCC_PCH" = "x1" ; then | |
40240 | COND_GCC_PCH_1="" | |
40241 | fi | |
40242 | ||
40243 | COND_MONOLITHIC_0="#" | |
40244 | if test "x$MONOLITHIC" = "x0" ; then | |
40245 | COND_MONOLITHIC_0="" | |
40246 | fi | |
40247 | ||
40248 | COND_MONOLITHIC_0_SHARED_0="#" | |
40249 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
40250 | COND_MONOLITHIC_0_SHARED_0="" | |
40251 | fi | |
40252 | ||
40253 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" | |
40254 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
40255 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
40256 | fi | |
40257 | ||
40258 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#" | |
40259 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
40260 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="" | |
40261 | fi | |
40262 | ||
40263 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#" | |
40264 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then | |
40265 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="" | |
40266 | fi | |
40267 | ||
40268 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#" | |
40269 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
40270 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="" | |
40271 | fi | |
40272 | ||
ceec2216 RL |
40273 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#" |
40274 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then | |
40275 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="" | |
40276 | fi | |
40277 | ||
a848cd7e SC |
40278 | COND_MONOLITHIC_0_SHARED_1="#" |
40279 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
40280 | COND_MONOLITHIC_0_SHARED_1="" | |
40281 | fi | |
40282 | ||
40283 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" | |
40284 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
40285 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
40286 | fi | |
40287 | ||
40288 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#" | |
40289 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
40290 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="" | |
40291 | fi | |
40292 | ||
40293 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#" | |
40294 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then | |
40295 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="" | |
40296 | fi | |
40297 | ||
40298 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#" | |
40299 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
40300 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="" | |
40301 | fi | |
40302 | ||
ceec2216 RL |
40303 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#" |
40304 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then | |
40305 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="" | |
40306 | fi | |
40307 | ||
a848cd7e SC |
40308 | COND_MONOLITHIC_0_USE_ODBC_1="#" |
40309 | if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
40310 | COND_MONOLITHIC_0_USE_ODBC_1="" | |
40311 | fi | |
40312 | ||
40313 | COND_MONOLITHIC_1="#" | |
40314 | if test "x$MONOLITHIC" = "x1" ; then | |
40315 | COND_MONOLITHIC_1="" | |
40316 | fi | |
40317 | ||
40318 | COND_MONOLITHIC_1_SHARED_0="#" | |
40319 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
40320 | COND_MONOLITHIC_1_SHARED_0="" | |
40321 | fi | |
40322 | ||
40323 | COND_MONOLITHIC_1_SHARED_1="#" | |
40324 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
40325 | COND_MONOLITHIC_1_SHARED_1="" | |
40326 | fi | |
40327 | ||
40328 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" | |
40329 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
40330 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
40331 | fi | |
40332 | ||
40333 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
40334 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
40335 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
40336 | fi | |
40337 | ||
40338 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" | |
40339 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
40340 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
40341 | fi | |
40342 | ||
40343 | COND_PLATFORM_MACOSX_1="#" | |
40344 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
40345 | COND_PLATFORM_MACOSX_1="" | |
40346 | fi | |
40347 | ||
a30f955f VS |
40348 | COND_PLATFORM_MACOSX_1_TOOLKIT_="#" |
40349 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then | |
40350 | COND_PLATFORM_MACOSX_1_TOOLKIT_="" | |
40351 | fi | |
40352 | ||
a848cd7e SC |
40353 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" |
40354 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
40355 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
40356 | fi | |
40357 | ||
40358 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
40359 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
40360 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
40361 | fi | |
40362 | ||
40363 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
40364 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
40365 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
40366 | fi | |
40367 | ||
ebee3cd0 VS |
40368 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#" |
40369 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then | |
40370 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="" | |
40371 | fi | |
40372 | ||
40373 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#" | |
40374 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then | |
40375 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="" | |
40376 | fi | |
40377 | ||
a848cd7e SC |
40378 | COND_PLATFORM_MACOSX_1_USE_GUI_1="#" |
40379 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
40380 | COND_PLATFORM_MACOSX_1_USE_GUI_1="" | |
40381 | fi | |
40382 | ||
40383 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" | |
40384 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
40385 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
40386 | fi | |
40387 | ||
b48a2016 DE |
40388 | COND_PLATFORM_MACOS_1="#" |
40389 | if test "x$PLATFORM_MACOS" = "x1" ; then | |
40390 | COND_PLATFORM_MACOS_1="" | |
40391 | fi | |
40392 | ||
a848cd7e SC |
40393 | COND_PLATFORM_MAC_1="#" |
40394 | if test "x$PLATFORM_MAC" = "x1" ; then | |
40395 | COND_PLATFORM_MAC_1="" | |
40396 | fi | |
40397 | ||
40398 | COND_PLATFORM_OS2_1="#" | |
40399 | if test "x$PLATFORM_OS2" = "x1" ; then | |
40400 | COND_PLATFORM_OS2_1="" | |
40401 | fi | |
40402 | ||
40403 | COND_PLATFORM_UNIX_0="#" | |
40404 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
40405 | COND_PLATFORM_UNIX_0="" | |
40406 | fi | |
40407 | ||
40408 | COND_PLATFORM_UNIX_1="#" | |
40409 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
40410 | COND_PLATFORM_UNIX_1="" | |
40411 | fi | |
40412 | ||
40413 | COND_PLATFORM_UNIX_1_USE_GUI_1="#" | |
40414 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
40415 | COND_PLATFORM_UNIX_1_USE_GUI_1="" | |
40416 | fi | |
40417 | ||
40418 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#" | |
40419 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then | |
40420 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="" | |
40421 | fi | |
40422 | ||
40423 | COND_PLATFORM_WIN32_0="#" | |
40424 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
40425 | COND_PLATFORM_WIN32_0="" | |
40426 | fi | |
40427 | ||
40428 | COND_PLATFORM_WIN32_1="#" | |
40429 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
40430 | COND_PLATFORM_WIN32_1="" | |
40431 | fi | |
40432 | ||
40433 | COND_SHARED_0="#" | |
40434 | if test "x$SHARED" = "x0" ; then | |
40435 | COND_SHARED_0="" | |
40436 | fi | |
40437 | ||
ceec2216 RL |
40438 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#" |
40439 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then | |
40440 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="" | |
40441 | fi | |
40442 | ||
40443 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#" | |
40444 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then | |
40445 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="" | |
40446 | fi | |
40447 | ||
40448 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#" | |
40449 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then | |
40450 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="" | |
40451 | fi | |
40452 | ||
a848cd7e SC |
40453 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" |
40454 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
40455 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
40456 | fi | |
40457 | ||
40458 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
40459 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
40460 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
40461 | fi | |
40462 | ||
40463 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
40464 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
40465 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
40466 | fi | |
40467 | ||
40468 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
40469 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
40470 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
40471 | fi | |
40472 | ||
40473 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#" | |
40474 | if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
40475 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="" | |
40476 | fi | |
40477 | ||
40478 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="#" | |
40479 | if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then | |
40480 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="" | |
40481 | fi | |
40482 | ||
40483 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="#" | |
40484 | if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then | |
40485 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="" | |
40486 | fi | |
40487 | ||
40488 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#" | |
40489 | if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
40490 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="" | |
40491 | fi | |
40492 | ||
40493 | COND_SHARED_1="#" | |
40494 | if test "x$SHARED" = "x1" ; then | |
40495 | COND_SHARED_1="" | |
40496 | fi | |
40497 | ||
40498 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" | |
40499 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
40500 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
40501 | fi | |
40502 | ||
a30f955f VS |
40503 | COND_TOOLKIT_="#" |
40504 | if test "x$TOOLKIT" = "x" ; then | |
40505 | COND_TOOLKIT_="" | |
40506 | fi | |
40507 | ||
a848cd7e SC |
40508 | COND_TOOLKIT_COCOA="#" |
40509 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
40510 | COND_TOOLKIT_COCOA="" | |
40511 | fi | |
40512 | ||
a49baeab DE |
40513 | COND_TOOLKIT_COCOA_USE_GUI_1="#" |
40514 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then | |
40515 | COND_TOOLKIT_COCOA_USE_GUI_1="" | |
40516 | fi | |
40517 | ||
a848cd7e SC |
40518 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" |
40519 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40520 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
40521 | fi | |
40522 | ||
40523 | COND_TOOLKIT_GTK="#" | |
40524 | if test "x$TOOLKIT" = "xGTK" ; then | |
40525 | COND_TOOLKIT_GTK="" | |
40526 | fi | |
40527 | ||
40528 | COND_TOOLKIT_GTK_USE_GUI_1="#" | |
40529 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
40530 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
40531 | fi | |
40532 | ||
40533 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#" | |
40534 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40535 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="" | |
40536 | fi | |
40537 | ||
40538 | COND_TOOLKIT_MAC="#" | |
40539 | if test "x$TOOLKIT" = "xMAC" ; then | |
40540 | COND_TOOLKIT_MAC="" | |
40541 | fi | |
40542 | ||
40543 | COND_TOOLKIT_MAC_USE_GUI_1="#" | |
40544 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
40545 | COND_TOOLKIT_MAC_USE_GUI_1="" | |
40546 | fi | |
40547 | ||
40548 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" | |
40549 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40550 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
40551 | fi | |
40552 | ||
40553 | COND_TOOLKIT_MGL="#" | |
40554 | if test "x$TOOLKIT" = "xMGL" ; then | |
40555 | COND_TOOLKIT_MGL="" | |
40556 | fi | |
40557 | ||
40558 | COND_TOOLKIT_MGL_USE_GUI_1="#" | |
40559 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
40560 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
40561 | fi | |
40562 | ||
40563 | COND_TOOLKIT_MOTIF="#" | |
40564 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
40565 | COND_TOOLKIT_MOTIF="" | |
40566 | fi | |
40567 | ||
40568 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" | |
40569 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
40570 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
40571 | fi | |
40572 | ||
40573 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" | |
40574 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40575 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
40576 | fi | |
40577 | ||
40578 | COND_TOOLKIT_MSW="#" | |
40579 | if test "x$TOOLKIT" = "xMSW" ; then | |
40580 | COND_TOOLKIT_MSW="" | |
40581 | fi | |
40582 | ||
40583 | COND_TOOLKIT_MSW_USE_GUI_1="#" | |
40584 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
40585 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
40586 | fi | |
40587 | ||
40588 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" | |
40589 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40590 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
40591 | fi | |
40592 | ||
40593 | COND_TOOLKIT_PM="#" | |
40594 | if test "x$TOOLKIT" = "xPM" ; then | |
40595 | COND_TOOLKIT_PM="" | |
40596 | fi | |
40597 | ||
40598 | COND_TOOLKIT_PM_USE_GUI_1="#" | |
40599 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then | |
40600 | COND_TOOLKIT_PM_USE_GUI_1="" | |
40601 | fi | |
40602 | ||
40603 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#" | |
40604 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40605 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="" | |
40606 | fi | |
40607 | ||
3fd9c298 DE |
40608 | COND_TOOLKIT_WINCE="#" |
40609 | if test "x$TOOLKIT" = "xWINCE" ; then | |
40610 | COND_TOOLKIT_WINCE="" | |
40611 | fi | |
40612 | ||
40613 | COND_TOOLKIT_WINCE_USE_GUI_1="#" | |
40614 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then | |
40615 | COND_TOOLKIT_WINCE_USE_GUI_1="" | |
40616 | fi | |
40617 | ||
40618 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#" | |
40619 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40620 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="" | |
40621 | fi | |
40622 | ||
a848cd7e SC |
40623 | COND_TOOLKIT_X11="#" |
40624 | if test "x$TOOLKIT" = "xX11" ; then | |
40625 | COND_TOOLKIT_X11="" | |
40626 | fi | |
40627 | ||
40628 | COND_TOOLKIT_X11_USE_GUI_1="#" | |
40629 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
40630 | COND_TOOLKIT_X11_USE_GUI_1="" | |
40631 | fi | |
40632 | ||
40633 | COND_UNICODE_1="#" | |
40634 | if test "x$UNICODE" = "x1" ; then | |
40635 | COND_UNICODE_1="" | |
40636 | fi | |
40637 | ||
40638 | COND_USE_EXCEPTIONS_0="#" | |
40639 | if test "x$USE_EXCEPTIONS" = "x0" ; then | |
40640 | COND_USE_EXCEPTIONS_0="" | |
40641 | fi | |
40642 | ||
40643 | COND_USE_EXCEPTIONS_1="#" | |
40644 | if test "x$USE_EXCEPTIONS" = "x1" ; then | |
40645 | COND_USE_EXCEPTIONS_1="" | |
40646 | fi | |
40647 | ||
40648 | COND_USE_GUI_0="#" | |
40649 | if test "x$USE_GUI" = "x0" ; then | |
40650 | COND_USE_GUI_0="" | |
40651 | fi | |
40652 | ||
40653 | COND_USE_GUI_1="#" | |
40654 | if test "x$USE_GUI" = "x1" ; then | |
40655 | COND_USE_GUI_1="" | |
40656 | fi | |
40657 | ||
40658 | COND_USE_GUI_1_WXUNIV_0="#" | |
40659 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40660 | COND_USE_GUI_1_WXUNIV_0="" | |
40661 | fi | |
40662 | ||
40663 | COND_USE_GUI_1_WXUNIV_1="#" | |
40664 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
40665 | COND_USE_GUI_1_WXUNIV_1="" | |
40666 | fi | |
40667 | ||
40668 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
40669 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
40670 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
40671 | fi | |
40672 | ||
40673 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
40674 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
40675 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
40676 | fi | |
40677 | ||
40678 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
40679 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
40680 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
40681 | fi | |
40682 | ||
ceec2216 RL |
40683 | COND_USE_ODBC_1="#" |
40684 | if test "x$USE_ODBC" = "x1" ; then | |
40685 | COND_USE_ODBC_1="" | |
40686 | fi | |
40687 | ||
ffa0583f RL |
40688 | COND_USE_OPENGL_1="#" |
40689 | if test "x$USE_OPENGL" = "x1" ; then | |
40690 | COND_USE_OPENGL_1="" | |
40691 | fi | |
40692 | ||
a848cd7e SC |
40693 | COND_USE_PLUGINS_0="#" |
40694 | if test "x$USE_PLUGINS" = "x0" ; then | |
40695 | COND_USE_PLUGINS_0="" | |
40696 | fi | |
40697 | ||
40698 | COND_USE_SOSYMLINKS_1="#" | |
40699 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
40700 | COND_USE_SOSYMLINKS_1="" | |
40701 | fi | |
40702 | ||
40703 | COND_USE_SOVERLINUX_1="#" | |
40704 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
40705 | COND_USE_SOVERLINUX_1="" | |
40706 | fi | |
40707 | ||
40708 | COND_USE_SOVERSION_0="#" | |
40709 | if test "x$USE_SOVERSION" = "x0" ; then | |
40710 | COND_USE_SOVERSION_0="" | |
40711 | fi | |
40712 | ||
40713 | COND_USE_SOVERSOLARIS_1="#" | |
40714 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
40715 | COND_USE_SOVERSOLARIS_1="" | |
40716 | fi | |
40717 | ||
a13a7f89 RL |
40718 | COND_USE_XRC_1="#" |
40719 | if test "x$USE_XRC" = "x1" ; then | |
40720 | COND_USE_XRC_1="" | |
40721 | fi | |
40722 | ||
a848cd7e SC |
40723 | COND_WITH_PLUGIN_SDL_1="#" |
40724 | if test "x$WITH_PLUGIN_SDL" = "x1" ; then | |
40725 | COND_WITH_PLUGIN_SDL_1="" | |
40726 | fi | |
40727 | ||
a848cd7e SC |
40728 | COND_WXUNIV_1="#" |
40729 | if test "x$WXUNIV" = "x1" ; then | |
40730 | COND_WXUNIV_1="" | |
40731 | fi | |
40732 | ||
40733 | COND_WXUSE_EXPAT_BUILTIN="#" | |
40734 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
40735 | COND_WXUSE_EXPAT_BUILTIN="" | |
40736 | fi | |
40737 | ||
40738 | COND_WXUSE_LIBJPEG_BUILTIN="#" | |
40739 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
40740 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
40741 | fi | |
40742 | ||
40743 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
40744 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
40745 | COND_WXUSE_LIBPNG_BUILTIN="" | |
40746 | fi | |
40747 | ||
40748 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
40749 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
40750 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
40751 | fi | |
40752 | ||
40753 | COND_WXUSE_ODBC_BUILTIN="#" | |
40754 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
40755 | COND_WXUSE_ODBC_BUILTIN="" | |
40756 | fi | |
40757 | ||
40758 | COND_WXUSE_REGEX_BUILTIN="#" | |
40759 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
40760 | COND_WXUSE_REGEX_BUILTIN="" | |
40761 | fi | |
40762 | ||
40763 | COND_WXUSE_ZLIB_BUILTIN="#" | |
40764 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
40765 | COND_WXUSE_ZLIB_BUILTIN="" | |
40766 | fi | |
40767 | ||
dcc1b6ad VS |
40768 | COND_BUILD_DEBUG="#" |
40769 | if test "x$BUILD" = "xdebug" ; then | |
40770 | COND_BUILD_DEBUG="" | |
40771 | fi | |
40772 | ||
40773 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" | |
40774 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
40775 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
40776 | fi | |
40777 | ||
40778 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
40779 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
40780 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
40781 | fi | |
40782 | ||
40783 | COND_BUILD_DEBUG_UNICODE_0="#" | |
40784 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then | |
40785 | COND_BUILD_DEBUG_UNICODE_0="" | |
40786 | fi | |
40787 | ||
40788 | COND_BUILD_DEBUG_UNICODE_1="#" | |
40789 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then | |
40790 | COND_BUILD_DEBUG_UNICODE_1="" | |
40791 | fi | |
40792 | ||
40793 | COND_BUILD_RELEASE="#" | |
40794 | if test "x$BUILD" = "xrelease" ; then | |
40795 | COND_BUILD_RELEASE="" | |
40796 | fi | |
40797 | ||
40798 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" | |
40799 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
40800 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
40801 | fi | |
40802 | ||
40803 | COND_BUILD_RELEASE_UNICODE_0="#" | |
40804 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then | |
40805 | COND_BUILD_RELEASE_UNICODE_0="" | |
40806 | fi | |
40807 | ||
40808 | COND_BUILD_RELEASE_UNICODE_1="#" | |
40809 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then | |
40810 | COND_BUILD_RELEASE_UNICODE_1="" | |
40811 | fi | |
40812 | ||
40813 | COND_DEBUG_FLAG_1="#" | |
40814 | if test "x$DEBUG_FLAG" = "x1" ; then | |
40815 | COND_DEBUG_FLAG_1="" | |
40816 | fi | |
40817 | ||
40818 | COND_DEBUG_INFO_0="#" | |
40819 | if test "x$DEBUG_INFO" = "x0" ; then | |
40820 | COND_DEBUG_INFO_0="" | |
40821 | fi | |
40822 | ||
40823 | COND_DEBUG_INFO_1="#" | |
40824 | if test "x$DEBUG_INFO" = "x1" ; then | |
40825 | COND_DEBUG_INFO_1="" | |
40826 | fi | |
40827 | ||
40828 | COND_DEPS_TRACKING_0="#" | |
40829 | if test "x$DEPS_TRACKING" = "x0" ; then | |
40830 | COND_DEPS_TRACKING_0="" | |
40831 | fi | |
40832 | ||
40833 | COND_DEPS_TRACKING_1="#" | |
40834 | if test "x$DEPS_TRACKING" = "x1" ; then | |
40835 | COND_DEPS_TRACKING_1="" | |
40836 | fi | |
40837 | ||
40838 | COND_GCC_PCH_1="#" | |
40839 | if test "x$GCC_PCH" = "x1" ; then | |
40840 | COND_GCC_PCH_1="" | |
40841 | fi | |
40842 | ||
40843 | COND_MONOLITHIC_0="#" | |
40844 | if test "x$MONOLITHIC" = "x0" ; then | |
40845 | COND_MONOLITHIC_0="" | |
40846 | fi | |
40847 | ||
40848 | COND_MONOLITHIC_0_SHARED_0="#" | |
40849 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
40850 | COND_MONOLITHIC_0_SHARED_0="" | |
40851 | fi | |
40852 | ||
40853 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" | |
40854 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
40855 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
40856 | fi | |
40857 | ||
40858 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#" | |
40859 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
40860 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="" | |
40861 | fi | |
40862 | ||
40863 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#" | |
40864 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then | |
40865 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="" | |
40866 | fi | |
40867 | ||
40868 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#" | |
40869 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
40870 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="" | |
40871 | fi | |
40872 | ||
9a8f0513 VS |
40873 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#" |
40874 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then | |
40875 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="" | |
40876 | fi | |
40877 | ||
dcc1b6ad VS |
40878 | COND_MONOLITHIC_0_SHARED_1="#" |
40879 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
40880 | COND_MONOLITHIC_0_SHARED_1="" | |
40881 | fi | |
40882 | ||
40883 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" | |
40884 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
40885 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
40886 | fi | |
40887 | ||
40888 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#" | |
40889 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
40890 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="" | |
40891 | fi | |
40892 | ||
40893 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#" | |
40894 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then | |
40895 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="" | |
40896 | fi | |
40897 | ||
40898 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#" | |
40899 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
40900 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="" | |
40901 | fi | |
40902 | ||
9a8f0513 VS |
40903 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#" |
40904 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then | |
40905 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="" | |
40906 | fi | |
40907 | ||
dcc1b6ad VS |
40908 | COND_MONOLITHIC_0_USE_ODBC_1="#" |
40909 | if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
40910 | COND_MONOLITHIC_0_USE_ODBC_1="" | |
40911 | fi | |
40912 | ||
40913 | COND_MONOLITHIC_1="#" | |
40914 | if test "x$MONOLITHIC" = "x1" ; then | |
40915 | COND_MONOLITHIC_1="" | |
40916 | fi | |
40917 | ||
40918 | COND_MONOLITHIC_1_SHARED_0="#" | |
40919 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
40920 | COND_MONOLITHIC_1_SHARED_0="" | |
40921 | fi | |
40922 | ||
40923 | COND_MONOLITHIC_1_SHARED_1="#" | |
40924 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
40925 | COND_MONOLITHIC_1_SHARED_1="" | |
40926 | fi | |
40927 | ||
40928 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" | |
40929 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
40930 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
40931 | fi | |
40932 | ||
40933 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
40934 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
40935 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
40936 | fi | |
40937 | ||
40938 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" | |
40939 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
40940 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
40941 | fi | |
40942 | ||
40943 | COND_PLATFORM_MACOSX_1="#" | |
40944 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
40945 | COND_PLATFORM_MACOSX_1="" | |
40946 | fi | |
40947 | ||
40948 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" | |
40949 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
40950 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
40951 | fi | |
40952 | ||
40953 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
40954 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
40955 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
40956 | fi | |
40957 | ||
40958 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
40959 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
40960 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
40961 | fi | |
40962 | ||
9a8f0513 VS |
40963 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#" |
40964 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then | |
40965 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="" | |
40966 | fi | |
40967 | ||
40968 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#" | |
40969 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then | |
40970 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="" | |
40971 | fi | |
40972 | ||
dcc1b6ad VS |
40973 | COND_PLATFORM_MACOSX_1_USE_GUI_1="#" |
40974 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
40975 | COND_PLATFORM_MACOSX_1_USE_GUI_1="" | |
40976 | fi | |
40977 | ||
40978 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" | |
40979 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
40980 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
40981 | fi | |
40982 | ||
40983 | COND_PLATFORM_MAC_1="#" | |
40984 | if test "x$PLATFORM_MAC" = "x1" ; then | |
40985 | COND_PLATFORM_MAC_1="" | |
40986 | fi | |
40987 | ||
40988 | COND_PLATFORM_OS2_1="#" | |
40989 | if test "x$PLATFORM_OS2" = "x1" ; then | |
40990 | COND_PLATFORM_OS2_1="" | |
40991 | fi | |
40992 | ||
40993 | COND_PLATFORM_UNIX_0="#" | |
40994 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
40995 | COND_PLATFORM_UNIX_0="" | |
40996 | fi | |
40997 | ||
40998 | COND_PLATFORM_UNIX_1="#" | |
40999 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
41000 | COND_PLATFORM_UNIX_1="" | |
41001 | fi | |
41002 | ||
41003 | COND_PLATFORM_UNIX_1_USE_GUI_1="#" | |
41004 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
41005 | COND_PLATFORM_UNIX_1_USE_GUI_1="" | |
41006 | fi | |
41007 | ||
41008 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#" | |
41009 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then | |
41010 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="" | |
41011 | fi | |
41012 | ||
41013 | COND_PLATFORM_WIN32_0="#" | |
41014 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
41015 | COND_PLATFORM_WIN32_0="" | |
41016 | fi | |
41017 | ||
41018 | COND_PLATFORM_WIN32_1="#" | |
41019 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
41020 | COND_PLATFORM_WIN32_1="" | |
41021 | fi | |
41022 | ||
41023 | COND_SHARED_0="#" | |
41024 | if test "x$SHARED" = "x0" ; then | |
41025 | COND_SHARED_0="" | |
41026 | fi | |
41027 | ||
41028 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" | |
41029 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
41030 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
41031 | fi | |
41032 | ||
41033 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
41034 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
41035 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
41036 | fi | |
41037 | ||
41038 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
41039 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
41040 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
41041 | fi | |
41042 | ||
41043 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
41044 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
41045 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
41046 | fi | |
41047 | ||
41048 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#" | |
41049 | if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
41050 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="" | |
41051 | fi | |
41052 | ||
41053 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="#" | |
41054 | if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then | |
41055 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="" | |
41056 | fi | |
41057 | ||
41058 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="#" | |
41059 | if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then | |
41060 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="" | |
41061 | fi | |
41062 | ||
41063 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#" | |
41064 | if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
41065 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="" | |
41066 | fi | |
41067 | ||
41068 | COND_SHARED_1="#" | |
41069 | if test "x$SHARED" = "x1" ; then | |
41070 | COND_SHARED_1="" | |
41071 | fi | |
41072 | ||
41073 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" | |
41074 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
41075 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
41076 | fi | |
41077 | ||
41078 | COND_TOOLKIT_COCOA="#" | |
41079 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
41080 | COND_TOOLKIT_COCOA="" | |
41081 | fi | |
41082 | ||
41083 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" | |
41084 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41085 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
41086 | fi | |
41087 | ||
41088 | COND_TOOLKIT_GTK="#" | |
41089 | if test "x$TOOLKIT" = "xGTK" ; then | |
41090 | COND_TOOLKIT_GTK="" | |
41091 | fi | |
41092 | ||
41093 | COND_TOOLKIT_GTK_USE_GUI_1="#" | |
41094 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
41095 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
41096 | fi | |
41097 | ||
41098 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#" | |
41099 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41100 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="" | |
41101 | fi | |
41102 | ||
41103 | COND_TOOLKIT_MAC="#" | |
41104 | if test "x$TOOLKIT" = "xMAC" ; then | |
41105 | COND_TOOLKIT_MAC="" | |
41106 | fi | |
41107 | ||
41108 | COND_TOOLKIT_MAC_USE_GUI_1="#" | |
41109 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
41110 | COND_TOOLKIT_MAC_USE_GUI_1="" | |
41111 | fi | |
41112 | ||
41113 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" | |
41114 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41115 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
41116 | fi | |
41117 | ||
9a8f0513 VS |
41118 | COND_TOOLKIT_MAC_WXUNIV_0="#" |
41119 | if test "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then | |
41120 | COND_TOOLKIT_MAC_WXUNIV_0="" | |
41121 | fi | |
41122 | ||
dcc1b6ad VS |
41123 | COND_TOOLKIT_MGL="#" |
41124 | if test "x$TOOLKIT" = "xMGL" ; then | |
41125 | COND_TOOLKIT_MGL="" | |
41126 | fi | |
41127 | ||
41128 | COND_TOOLKIT_MGL_USE_GUI_1="#" | |
41129 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
41130 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
41131 | fi | |
41132 | ||
41133 | COND_TOOLKIT_MOTIF="#" | |
41134 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
41135 | COND_TOOLKIT_MOTIF="" | |
41136 | fi | |
41137 | ||
41138 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" | |
41139 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
41140 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
41141 | fi | |
41142 | ||
41143 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" | |
41144 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41145 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
41146 | fi | |
41147 | ||
41148 | COND_TOOLKIT_MSW="#" | |
41149 | if test "x$TOOLKIT" = "xMSW" ; then | |
41150 | COND_TOOLKIT_MSW="" | |
41151 | fi | |
41152 | ||
41153 | COND_TOOLKIT_MSW_USE_GUI_1="#" | |
41154 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
41155 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
41156 | fi | |
41157 | ||
41158 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" | |
41159 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41160 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
41161 | fi | |
41162 | ||
9a8f0513 VS |
41163 | COND_TOOLKIT_MSW_WXUNIV_0="#" |
41164 | if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then | |
41165 | COND_TOOLKIT_MSW_WXUNIV_0="" | |
41166 | fi | |
41167 | ||
dcc1b6ad VS |
41168 | COND_TOOLKIT_PM="#" |
41169 | if test "x$TOOLKIT" = "xPM" ; then | |
41170 | COND_TOOLKIT_PM="" | |
41171 | fi | |
41172 | ||
41173 | COND_TOOLKIT_PM_USE_GUI_1="#" | |
41174 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then | |
41175 | COND_TOOLKIT_PM_USE_GUI_1="" | |
41176 | fi | |
41177 | ||
41178 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#" | |
41179 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41180 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="" | |
41181 | fi | |
41182 | ||
9a8f0513 VS |
41183 | COND_TOOLKIT_PM_WXUNIV_0="#" |
41184 | if test "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then | |
41185 | COND_TOOLKIT_PM_WXUNIV_0="" | |
41186 | fi | |
41187 | ||
dcc1b6ad VS |
41188 | COND_TOOLKIT_WINCE="#" |
41189 | if test "x$TOOLKIT" = "xWINCE" ; then | |
41190 | COND_TOOLKIT_WINCE="" | |
41191 | fi | |
41192 | ||
41193 | COND_TOOLKIT_WINCE_USE_GUI_1="#" | |
41194 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then | |
41195 | COND_TOOLKIT_WINCE_USE_GUI_1="" | |
41196 | fi | |
41197 | ||
41198 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#" | |
41199 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41200 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="" | |
41201 | fi | |
41202 | ||
41203 | COND_TOOLKIT_X11="#" | |
41204 | if test "x$TOOLKIT" = "xX11" ; then | |
41205 | COND_TOOLKIT_X11="" | |
41206 | fi | |
41207 | ||
41208 | COND_TOOLKIT_X11_USE_GUI_1="#" | |
41209 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
41210 | COND_TOOLKIT_X11_USE_GUI_1="" | |
41211 | fi | |
41212 | ||
41213 | COND_UNICODE_1="#" | |
41214 | if test "x$UNICODE" = "x1" ; then | |
41215 | COND_UNICODE_1="" | |
41216 | fi | |
41217 | ||
41218 | COND_USE_EXCEPTIONS_0="#" | |
41219 | if test "x$USE_EXCEPTIONS" = "x0" ; then | |
41220 | COND_USE_EXCEPTIONS_0="" | |
41221 | fi | |
41222 | ||
41223 | COND_USE_EXCEPTIONS_1="#" | |
41224 | if test "x$USE_EXCEPTIONS" = "x1" ; then | |
41225 | COND_USE_EXCEPTIONS_1="" | |
41226 | fi | |
41227 | ||
41228 | COND_USE_GUI_0="#" | |
41229 | if test "x$USE_GUI" = "x0" ; then | |
41230 | COND_USE_GUI_0="" | |
41231 | fi | |
41232 | ||
41233 | COND_USE_GUI_1="#" | |
41234 | if test "x$USE_GUI" = "x1" ; then | |
41235 | COND_USE_GUI_1="" | |
41236 | fi | |
41237 | ||
41238 | COND_USE_GUI_1_WXUNIV_0="#" | |
41239 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
41240 | COND_USE_GUI_1_WXUNIV_0="" | |
41241 | fi | |
41242 | ||
41243 | COND_USE_GUI_1_WXUNIV_1="#" | |
41244 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
41245 | COND_USE_GUI_1_WXUNIV_1="" | |
41246 | fi | |
41247 | ||
41248 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
41249 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
41250 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
41251 | fi | |
41252 | ||
41253 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
41254 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
41255 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
41256 | fi | |
41257 | ||
41258 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
41259 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
41260 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
41261 | fi | |
41262 | ||
41263 | COND_USE_ODBC_1="#" | |
41264 | if test "x$USE_ODBC" = "x1" ; then | |
41265 | COND_USE_ODBC_1="" | |
41266 | fi | |
41267 | ||
41268 | COND_USE_PLUGINS_0="#" | |
41269 | if test "x$USE_PLUGINS" = "x0" ; then | |
41270 | COND_USE_PLUGINS_0="" | |
41271 | fi | |
41272 | ||
41273 | COND_USE_SOSYMLINKS_1="#" | |
41274 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
41275 | COND_USE_SOSYMLINKS_1="" | |
41276 | fi | |
41277 | ||
41278 | COND_USE_SOVERLINUX_1="#" | |
41279 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
41280 | COND_USE_SOVERLINUX_1="" | |
41281 | fi | |
41282 | ||
41283 | COND_USE_SOVERSION_0="#" | |
41284 | if test "x$USE_SOVERSION" = "x0" ; then | |
41285 | COND_USE_SOVERSION_0="" | |
41286 | fi | |
41287 | ||
41288 | COND_USE_SOVERSOLARIS_1="#" | |
41289 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
41290 | COND_USE_SOVERSOLARIS_1="" | |
41291 | fi | |
41292 | ||
41293 | COND_WITH_PLUGIN_SDL_1="#" | |
41294 | if test "x$WITH_PLUGIN_SDL" = "x1" ; then | |
41295 | COND_WITH_PLUGIN_SDL_1="" | |
41296 | fi | |
41297 | ||
41298 | COND_WXUNIV_1="#" | |
41299 | if test "x$WXUNIV" = "x1" ; then | |
41300 | COND_WXUNIV_1="" | |
41301 | fi | |
41302 | ||
41303 | COND_WXUSE_EXPAT_BUILTIN="#" | |
41304 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
41305 | COND_WXUSE_EXPAT_BUILTIN="" | |
41306 | fi | |
41307 | ||
41308 | COND_WXUSE_LIBJPEG_BUILTIN="#" | |
41309 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
41310 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
41311 | fi | |
41312 | ||
41313 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
41314 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
41315 | COND_WXUSE_LIBPNG_BUILTIN="" | |
41316 | fi | |
41317 | ||
41318 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
41319 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
41320 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
41321 | fi | |
41322 | ||
41323 | COND_WXUSE_ODBC_BUILTIN="#" | |
41324 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
41325 | COND_WXUSE_ODBC_BUILTIN="" | |
41326 | fi | |
41327 | ||
41328 | COND_WXUSE_REGEX_BUILTIN="#" | |
41329 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
41330 | COND_WXUSE_REGEX_BUILTIN="" | |
41331 | fi | |
41332 | ||
41333 | COND_WXUSE_ZLIB_BUILTIN="#" | |
41334 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
41335 | COND_WXUSE_ZLIB_BUILTIN="" | |
41336 | fi | |
41337 | ||
a848cd7e SC |
41338 | |
41339 | ||
2057db16 VS |
41340 | if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then |
41341 | { { 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 | |
41342 | 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;} | |
41343 | { (exit 1); exit 1; }; } | |
41344 | fi | |
41345 | ||
a848cd7e | 41346 | |
ceec2216 RL |
41347 | if test "$wxUSE_SHARED" = "yes"; then |
41348 | ||
41349 | sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'` | |
41350 | EXE_LINKER=`eval echo "$sanitised_bakefile_mess"` | |
41351 | ||
41352 | else | |
41353 | ||
41354 | EXE_LINKER="$CXX -o" | |
41355 | ||
41356 | fi | |
a848cd7e | 41357 | |
74b84332 | 41358 | GCC_PRAGMA_FLAGS="" |
a848cd7e | 41359 | if test $GCC_PCH = 1 ; then |
74b84332 | 41360 | GCC_PRAGMA_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA" |
a848cd7e SC |
41361 | else |
41362 | case "${host}" in | |
41363 | powerpc-*-darwin* ) | |
74b84332 | 41364 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" |
a848cd7e | 41365 | ;; |
bea8e651 | 41366 | *-*-mingw32* ) |
1f344abf VS |
41367 | if test "$wxUSE_STL" = "yes" -o \ |
41368 | "$wxUSE_NO_EXCEPTIONS" != "yes" -o \ | |
41369 | "$wxUSE_NO_RTTI" != "yes"; then | |
41370 | echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5 | |
41371 | echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6 | |
bea8e651 MB |
41372 | cat >conftest.$ac_ext <<_ACEOF |
41373 | /* confdefs.h. */ | |
41374 | _ACEOF | |
41375 | cat confdefs.h >>conftest.$ac_ext | |
41376 | cat >>conftest.$ac_ext <<_ACEOF | |
41377 | /* end confdefs.h. */ | |
41378 | ||
41379 | int | |
41380 | main () | |
41381 | { | |
1f344abf | 41382 | #if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)) |
bea8e651 MB |
41383 | #error "Not GCC 3.2 or greater" |
41384 | #endif | |
41385 | ||
41386 | ; | |
41387 | return 0; | |
41388 | } | |
41389 | _ACEOF | |
41390 | rm -f conftest.$ac_objext | |
41391 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 41392 | (eval $ac_compile) 2>conftest.er1 |
bea8e651 | 41393 | ac_status=$? |
ac1cb8d3 VS |
41394 | grep -v '^ *+' conftest.er1 >conftest.err |
41395 | rm -f conftest.er1 | |
41396 | cat conftest.err >&5 | |
bea8e651 MB |
41397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41398 | (exit $ac_status); } && | |
d51253e8 | 41399 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
41400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41401 | (eval $ac_try) 2>&5 | |
41402 | ac_status=$? | |
41403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41404 | (exit $ac_status); }; } && | |
41405 | { ac_try='test -s conftest.$ac_objext' | |
bea8e651 MB |
41406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41407 | (eval $ac_try) 2>&5 | |
41408 | ac_status=$? | |
41409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41410 | (exit $ac_status); }; }; then | |
74b84332 | 41411 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" |
bea8e651 MB |
41412 | echo "$as_me:$LINENO: result: yes" >&5 |
41413 | echo "${ECHO_T}yes" >&6 | |
41414 | else | |
41415 | echo "$as_me: failed program was:" >&5 | |
41416 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41417 | ||
41418 | echo "$as_me:$LINENO: result: no" >&5 | |
41419 | echo "${ECHO_T}no" >&6 | |
41420 | fi | |
ac1cb8d3 | 41421 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bea8e651 MB |
41422 | fi |
41423 | ;; | |
a848cd7e SC |
41424 | esac |
41425 | fi | |
74b84332 | 41426 | CPPFLAGS="$GCC_PRAGMA_FLAGS $CPPFLAGS" |
a848cd7e SC |
41427 | |
41428 | ||
41429 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
41430 | ||
41431 | ||
41432 | ||
41433 | ||
41434 | ||
41435 | ||
41436 | ||
41437 | ||
41438 | ||
41439 | ||
41440 | ||
41441 | ||
41442 | ||
41443 | ||
41444 | ||
41445 | ||
41446 | ||
41447 | ||
41448 | ||
41449 | ||
41450 | ||
41451 | ||
41452 | ||
41453 | ||
41454 | ||
41455 | ||
41456 | ||
41457 | ||
41458 | ||
41459 | ||
41460 | ||
41461 | ||
41462 | ||
41463 | ||
41464 | ||
41465 | ||
41466 | ||
41467 | ||
41468 | ||
41469 | ||
41470 | ||
41471 | ||
a848cd7e SC |
41472 | |
41473 | ||
41474 | ||
41475 | ||
41476 | ||
41477 | ||
41478 | ||
41479 | ||
41480 | ||
41481 | ||
41482 | ||
41483 | ||
41484 | ||
41485 | ||
41486 | ||
41487 | ||
41488 | ||
41489 | ||
74b84332 | 41490 | |
a848cd7e SC |
41491 | |
41492 | ||
41493 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
41494 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 41495 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
41496 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
41497 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41498 | else | |
41499 | cat >conftest.make <<\_ACEOF | |
41500 | all: | |
41501 | @echo 'ac_maketemp="$(MAKE)"' | |
41502 | _ACEOF | |
41503 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
41504 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
41505 | if test -n "$ac_maketemp"; then | |
41506 | eval ac_cv_prog_make_${ac_make}_set=yes | |
41507 | else | |
41508 | eval ac_cv_prog_make_${ac_make}_set=no | |
41509 | fi | |
41510 | rm -f conftest.make | |
41511 | fi | |
41512 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
41513 | echo "$as_me:$LINENO: result: yes" >&5 | |
41514 | echo "${ECHO_T}yes" >&6 | |
41515 | SET_MAKE= | |
41516 | else | |
41517 | echo "$as_me:$LINENO: result: no" >&5 | |
41518 | echo "${ECHO_T}no" >&6 | |
41519 | SET_MAKE="MAKE=${MAKE-make}" | |
41520 | fi | |
41521 | ||
41522 | ||
a848cd7e | 41523 | |
ceec2216 RL |
41524 | ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" |
41525 | ||
a848cd7e | 41526 | |
ceec2216 | 41527 | ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" |
a848cd7e | 41528 | |
a848cd7e | 41529 | |
ceec2216 | 41530 | ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" |
a848cd7e | 41531 | |
ceec2216 RL |
41532 | |
41533 | ac_config_files="$ac_config_files version-script Makefile" | |
41534 | ||
41535 | ||
41536 | ac_config_commands="$ac_config_commands wx-config | |
41537 | " | |
a848cd7e SC |
41538 | |
41539 | ||
9103d280 RL |
41540 | |
41541 | ||
a848cd7e SC |
41542 | if test "$wxUSE_GUI" = "yes"; then |
41543 | SUBDIRS="samples demos utils contrib" | |
41544 | else SUBDIRS="samples utils" | |
41545 | fi | |
41546 | ||
41547 | ||
41548 | ||
41549 | # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given. | |
41550 | if test "${with_cppunit_prefix+set}" = set; then | |
41551 | withval="$with_cppunit_prefix" | |
41552 | cppunit_config_prefix="$withval" | |
41553 | else | |
41554 | cppunit_config_prefix="" | |
41555 | fi; | |
41556 | ||
41557 | # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given. | |
41558 | if test "${with_cppunit_exec_prefix+set}" = set; then | |
41559 | withval="$with_cppunit_exec_prefix" | |
41560 | cppunit_config_exec_prefix="$withval" | |
41561 | else | |
41562 | cppunit_config_exec_prefix="" | |
41563 | fi; | |
41564 | ||
41565 | if test x$cppunit_config_exec_prefix != x ; then | |
41566 | cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix" | |
41567 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
41568 | CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config | |
41569 | fi | |
41570 | fi | |
41571 | if test x$cppunit_config_prefix != x ; then | |
41572 | cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix" | |
41573 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
41574 | CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config | |
41575 | fi | |
41576 | fi | |
41577 | ||
41578 | # Extract the first word of "cppunit-config", so it can be a program name with args. | |
41579 | set dummy cppunit-config; ac_word=$2 | |
41580 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41581 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41582 | if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then | |
41583 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41584 | else | |
41585 | case $CPPUNIT_CONFIG in | |
41586 | [\\/]* | ?:[\\/]*) | |
41587 | ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path. | |
41588 | ;; | |
41589 | *) | |
41590 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41591 | for as_dir in $PATH | |
41592 | do | |
41593 | IFS=$as_save_IFS | |
41594 | test -z "$as_dir" && as_dir=. | |
41595 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41596 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41597 | ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
41598 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41599 | break 2 | |
41600 | fi | |
41601 | done | |
41602 | done | |
41603 | ||
41604 | test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no" | |
41605 | ;; | |
41606 | esac | |
41607 | fi | |
41608 | CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG | |
41609 | ||
41610 | if test -n "$CPPUNIT_CONFIG"; then | |
41611 | echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5 | |
41612 | echo "${ECHO_T}$CPPUNIT_CONFIG" >&6 | |
41613 | else | |
41614 | echo "$as_me:$LINENO: result: no" >&5 | |
41615 | echo "${ECHO_T}no" >&6 | |
41616 | fi | |
41617 | ||
41618 | cppunit_version_min=1.8.0 | |
41619 | ||
41620 | echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5 | |
41621 | echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6 | |
41622 | no_cppunit="" | |
41623 | if test "$CPPUNIT_CONFIG" = "no" ; then | |
41624 | no_cppunit=yes | |
41625 | else | |
41626 | CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags` | |
41627 | CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs` | |
41628 | cppunit_version=`$CPPUNIT_CONFIG --version` | |
41629 | ||
41630 | cppunit_major_version=`echo $cppunit_version | \ | |
41631 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
41632 | cppunit_minor_version=`echo $cppunit_version | \ | |
41633 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
41634 | cppunit_micro_version=`echo $cppunit_version | \ | |
41635 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
41636 | ||
41637 | cppunit_major_min=`echo $cppunit_version_min | \ | |
41638 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
41639 | cppunit_minor_min=`echo $cppunit_version_min | \ | |
41640 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
41641 | cppunit_micro_min=`echo $cppunit_version_min | \ | |
41642 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
41643 | ||
41644 | cppunit_version_proper=`expr \ | |
41645 | $cppunit_major_version \> $cppunit_major_min \| \ | |
41646 | $cppunit_major_version \= $cppunit_major_min \& \ | |
41647 | $cppunit_minor_version \> $cppunit_minor_min \| \ | |
41648 | $cppunit_major_version \= $cppunit_major_min \& \ | |
41649 | $cppunit_minor_version \= $cppunit_minor_min \& \ | |
41650 | $cppunit_micro_version \>= $cppunit_micro_min ` | |
41651 | ||
41652 | if test "$cppunit_version_proper" = "1" ; then | |
41653 | echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5 | |
41654 | echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6 | |
41655 | else | |
41656 | echo "$as_me:$LINENO: result: no" >&5 | |
41657 | echo "${ECHO_T}no" >&6 | |
41658 | no_cppunit=yes | |
41659 | fi | |
41660 | fi | |
41661 | ||
41662 | if test "x$no_cppunit" = x ; then | |
c2218763 | 41663 | SUBDIRS="$SUBDIRS tests" |
a848cd7e SC |
41664 | else |
41665 | CPPUNIT_CFLAGS="" | |
41666 | CPPUNIT_LIBS="" | |
c2218763 | 41667 | : |
a848cd7e SC |
41668 | fi |
41669 | ||
41670 | ||
41671 | ||
41672 | ||
41673 | ||
41674 | for subdir in `echo $SUBDIRS`; do | |
41675 | if test -d ${srcdir}/${subdir} ; then | |
41676 | if test "$wxUSE_GUI" = "yes"; then | |
41677 | if test ${subdir} = "samples"; then | |
41678 | makefiles="samples/Makefile.in $makefiles" | |
41679 | for sample in `echo $SAMPLES_SUBDIRS`; do | |
41680 | if test -d $srcdir/samples/$sample; then | |
41681 | makefiles="samples/$sample/Makefile.in $makefiles" | |
41682 | fi | |
41683 | done | |
41684 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` | |
41685 | fi | |
41686 | else if test ${subdir} = "samples"; then | |
41687 | makefiles="samples/Makefile.in samples/console/Makefile.in" | |
41688 | elif test ${subdir} = "utils"; then | |
6537ccf8 VS |
41689 | makefiles="" |
41690 | for util in HelpGen tex2rtf ; do | |
41691 | if test -d $srcdir/utils/$util ; then | |
41692 | makefiles="utils/$util/Makefile.in \ | |
41693 | utils/$util/src/Makefile.in \ | |
41694 | $makefiles" | |
41695 | fi | |
41696 | done | |
a848cd7e SC |
41697 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` |
41698 | fi | |
41699 | fi | |
41700 | ||
41701 | for mkin in $makefiles ; do | |
41702 | mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'` | |
41703 | ac_config_files="$ac_config_files $mk" | |
41704 | ||
41705 | done | |
41706 | fi | |
41707 | done | |
41708 | ||
41709 | ||
41710 | cat >confcache <<\_ACEOF | |
41711 | # This file is a shell script that caches the results of configure | |
41712 | # tests run on this system so they can be shared between configure | |
41713 | # scripts and configure runs, see configure's option --config-cache. | |
41714 | # It is not useful on other systems. If it contains results you don't | |
41715 | # want to keep, you may remove or edit it. | |
41716 | # | |
41717 | # config.status only pays attention to the cache file if you give it | |
41718 | # the --recheck option to rerun configure. | |
41719 | # | |
41720 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
41721 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
41722 | # following values. | |
41723 | ||
41724 | _ACEOF | |
41725 | ||
41726 | # The following way of writing the cache mishandles newlines in values, | |
41727 | # but we know of no workaround that is simple, portable, and efficient. | |
41728 | # So, don't put newlines in cache variables' values. | |
41729 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
41730 | # and sets the high bit in the cache file unless we assign to the vars. | |
41731 | { | |
41732 | (set) 2>&1 | | |
41733 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
41734 | *ac_space=\ *) | |
41735 | # `set' does not quote correctly, so add quotes (double-quote | |
41736 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
41737 | sed -n \ | |
ac1cb8d3 VS |
41738 | "s/'/'\\\\''/g; |
41739 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
41740 | ;; |
41741 | *) | |
41742 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
41743 | sed -n \ | |
ac1cb8d3 | 41744 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
41745 | ;; |
41746 | esac; | |
41747 | } | | |
41748 | sed ' | |
41749 | t clear | |
41750 | : clear | |
41751 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
41752 | t end | |
41753 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
41754 | : end' >>confcache | |
41755 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
41756 | if test -w $cache_file; then | |
41757 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
41758 | cat confcache >$cache_file | |
41759 | else | |
41760 | echo "not updating unwritable cache $cache_file" | |
41761 | fi | |
41762 | fi | |
41763 | rm -f confcache | |
41764 | ||
41765 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
41766 | # Let make expand exec_prefix. | |
41767 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
41768 | ||
41769 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
41770 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
41771 | # trailing colons and then remove the whole line if VPATH becomes empty | |
41772 | # (actually we leave an empty line to preserve line numbers). | |
41773 | if test "x$srcdir" = x.; then | |
ac1cb8d3 | 41774 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
a848cd7e SC |
41775 | s/:*\$(srcdir):*/:/; |
41776 | s/:*\${srcdir}:*/:/; | |
41777 | s/:*@srcdir@:*/:/; | |
ac1cb8d3 | 41778 | s/^\([^=]*=[ ]*\):*/\1/; |
a848cd7e | 41779 | s/:*$//; |
ac1cb8d3 | 41780 | s/^[^=]*=[ ]*$//; |
a848cd7e SC |
41781 | }' |
41782 | fi | |
41783 | ||
41784 | DEFS=-DHAVE_CONFIG_H | |
41785 | ||
41786 | ac_libobjs= | |
41787 | ac_ltlibobjs= | |
41788 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
41789 | # 1. Remove the extension, and $U if already installed. | |
41790 | ac_i=`echo "$ac_i" | | |
ac1cb8d3 | 41791 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
a848cd7e SC |
41792 | # 2. Add them. |
41793 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
41794 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
41795 | done | |
41796 | LIBOBJS=$ac_libobjs | |
41797 | ||
41798 | LTLIBOBJS=$ac_ltlibobjs | |
41799 | ||
41800 | ||
41801 | ||
41802 | : ${CONFIG_STATUS=./config.status} | |
41803 | ac_clean_files_save=$ac_clean_files | |
41804 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
41805 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
41806 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
41807 | cat >$CONFIG_STATUS <<_ACEOF | |
41808 | #! $SHELL | |
41809 | # Generated by $as_me. | |
41810 | # Run this file to recreate the current configuration. | |
41811 | # Compiler output produced by configure, useful for debugging | |
41812 | # configure, is in config.log if it exists. | |
41813 | ||
41814 | debug=false | |
41815 | ac_cs_recheck=false | |
41816 | ac_cs_silent=false | |
41817 | SHELL=\${CONFIG_SHELL-$SHELL} | |
41818 | _ACEOF | |
41819 | ||
41820 | cat >>$CONFIG_STATUS <<\_ACEOF | |
41821 | ## --------------------- ## | |
41822 | ## M4sh Initialization. ## | |
41823 | ## --------------------- ## | |
41824 | ||
41825 | # Be Bourne compatible | |
41826 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
41827 | emulate sh | |
41828 | NULLCMD=: | |
41829 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
41830 | # is contrary to our usage. Disable this feature. | |
41831 | alias -g '${1+"$@"}'='"$@"' | |
41832 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
41833 | set -o posix | |
41834 | fi | |
ac1cb8d3 | 41835 | DUALCASE=1; export DUALCASE # for MKS sh |
a848cd7e SC |
41836 | |
41837 | # Support unset when possible. | |
ac1cb8d3 | 41838 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
a848cd7e SC |
41839 | as_unset=unset |
41840 | else | |
41841 | as_unset=false | |
41842 | fi | |
41843 | ||
41844 | ||
41845 | # Work around bugs in pre-3.0 UWIN ksh. | |
41846 | $as_unset ENV MAIL MAILPATH | |
41847 | PS1='$ ' | |
41848 | PS2='> ' | |
41849 | PS4='+ ' | |
41850 | ||
41851 | # NLS nuisances. | |
41852 | for as_var in \ | |
41853 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
41854 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
41855 | LC_TELEPHONE LC_TIME | |
41856 | do | |
ac1cb8d3 | 41857 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
a848cd7e SC |
41858 | eval $as_var=C; export $as_var |
41859 | else | |
41860 | $as_unset $as_var | |
41861 | fi | |
41862 | done | |
41863 | ||
41864 | # Required to use basename. | |
41865 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
41866 | as_expr=expr | |
41867 | else | |
41868 | as_expr=false | |
41869 | fi | |
41870 | ||
41871 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
41872 | as_basename=basename | |
41873 | else | |
41874 | as_basename=false | |
41875 | fi | |
41876 | ||
41877 | ||
41878 | # Name of the executable. | |
41879 | as_me=`$as_basename "$0" || | |
41880 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
41881 | X"$0" : 'X\(//\)$' \| \ | |
41882 | X"$0" : 'X\(/\)$' \| \ | |
41883 | . : '\(.\)' 2>/dev/null || | |
41884 | echo X/"$0" | | |
41885 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
41886 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
41887 | /^X\/\(\/\).*/{ s//\1/; q; } | |
41888 | s/.*/./; q'` | |
41889 | ||
41890 | ||
41891 | # PATH needs CR, and LINENO needs CR and PATH. | |
41892 | # Avoid depending upon Character Ranges. | |
41893 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
41894 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
41895 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
41896 | as_cr_digits='0123456789' | |
41897 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
41898 | ||
41899 | # The user is always right. | |
41900 | if test "${PATH_SEPARATOR+set}" != set; then | |
41901 | echo "#! /bin/sh" >conf$$.sh | |
41902 | echo "exit 0" >>conf$$.sh | |
41903 | chmod +x conf$$.sh | |
41904 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
41905 | PATH_SEPARATOR=';' | |
41906 | else | |
41907 | PATH_SEPARATOR=: | |
41908 | fi | |
41909 | rm -f conf$$.sh | |
41910 | fi | |
41911 | ||
41912 | ||
41913 | as_lineno_1=$LINENO | |
41914 | as_lineno_2=$LINENO | |
41915 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
41916 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
41917 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
41918 | # Find who we are. Look in the path if we contain no path at all | |
41919 | # relative or not. | |
41920 | case $0 in | |
41921 | *[\\/]* ) as_myself=$0 ;; | |
41922 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41923 | for as_dir in $PATH | |
41924 | do | |
41925 | IFS=$as_save_IFS | |
41926 | test -z "$as_dir" && as_dir=. | |
41927 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
41928 | done | |
41929 | ||
41930 | ;; | |
41931 | esac | |
41932 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
41933 | # in which case we are not to be found in the path. | |
41934 | if test "x$as_myself" = x; then | |
41935 | as_myself=$0 | |
41936 | fi | |
41937 | if test ! -f "$as_myself"; then | |
41938 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
41939 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
41940 | { (exit 1); exit 1; }; } | |
41941 | fi | |
41942 | case $CONFIG_SHELL in | |
41943 | '') | |
41944 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41945 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
41946 | do | |
41947 | IFS=$as_save_IFS | |
41948 | test -z "$as_dir" && as_dir=. | |
41949 | for as_base in sh bash ksh sh5; do | |
41950 | case $as_dir in | |
41951 | /*) | |
41952 | if ("$as_dir/$as_base" -c ' | |
41953 | as_lineno_1=$LINENO | |
41954 | as_lineno_2=$LINENO | |
41955 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
41956 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
41957 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
41958 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
41959 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
41960 | CONFIG_SHELL=$as_dir/$as_base | |
41961 | export CONFIG_SHELL | |
41962 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
41963 | fi;; | |
41964 | esac | |
41965 | done | |
41966 | done | |
41967 | ;; | |
41968 | esac | |
41969 | ||
41970 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
41971 | # uniformly replaced by the line number. The first 'sed' inserts a | |
41972 | # line-number line before each line; the second 'sed' does the real | |
41973 | # work. The second script uses 'N' to pair each line-number line | |
41974 | # with the numbered line, and appends trailing '-' during | |
41975 | # substitution so that $LINENO is not a special case at line end. | |
41976 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
41977 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
41978 | sed '=' <$as_myself | | |
41979 | sed ' | |
41980 | N | |
41981 | s,$,-, | |
41982 | : loop | |
41983 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
41984 | t loop | |
41985 | s,-$,, | |
41986 | s,^['$as_cr_digits']*\n,, | |
41987 | ' >$as_me.lineno && | |
41988 | chmod +x $as_me.lineno || | |
41989 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
41990 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
41991 | { (exit 1); exit 1; }; } | |
41992 | ||
41993 | # Don't try to exec as it changes $[0], causing all sort of problems | |
41994 | # (the dirname of $[0] is not the place where we might find the | |
41995 | # original and so on. Autoconf is especially sensible to this). | |
41996 | . ./$as_me.lineno | |
41997 | # Exit status is that of the last command. | |
41998 | exit | |
41999 | } | |
42000 | ||
42001 | ||
42002 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
42003 | *c*,-n*) ECHO_N= ECHO_C=' | |
42004 | ' ECHO_T=' ' ;; | |
42005 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
42006 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
42007 | esac | |
42008 | ||
42009 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
42010 | as_expr=expr | |
42011 | else | |
42012 | as_expr=false | |
42013 | fi | |
42014 | ||
42015 | rm -f conf$$ conf$$.exe conf$$.file | |
42016 | echo >conf$$.file | |
42017 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
42018 | # We could just check for DJGPP; but this test a) works b) is more generic | |
42019 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
42020 | if test -f conf$$.exe; then | |
42021 | # Don't use ln at all; we don't have any links | |
42022 | as_ln_s='cp -p' | |
42023 | else | |
42024 | as_ln_s='ln -s' | |
42025 | fi | |
42026 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
42027 | as_ln_s=ln | |
42028 | else | |
42029 | as_ln_s='cp -p' | |
42030 | fi | |
42031 | rm -f conf$$ conf$$.exe conf$$.file | |
42032 | ||
42033 | if mkdir -p . 2>/dev/null; then | |
42034 | as_mkdir_p=: | |
42035 | else | |
ac1cb8d3 | 42036 | test -d ./-p && rmdir ./-p |
a848cd7e SC |
42037 | as_mkdir_p=false |
42038 | fi | |
42039 | ||
42040 | as_executable_p="test -f" | |
42041 | ||
42042 | # Sed expression to map a string onto a valid CPP name. | |
ac1cb8d3 | 42043 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
42044 | |
42045 | # Sed expression to map a string onto a valid variable name. | |
ac1cb8d3 | 42046 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
42047 | |
42048 | ||
42049 | # IFS | |
42050 | # We need space, tab and new line, in precisely that order. | |
42051 | as_nl=' | |
42052 | ' | |
42053 | IFS=" $as_nl" | |
42054 | ||
42055 | # CDPATH. | |
42056 | $as_unset CDPATH | |
42057 | ||
42058 | exec 6>&1 | |
42059 | ||
42060 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
42061 | # report actual input values of CONFIG_FILES etc. instead of their | |
42062 | # values after options handling. Logging --version etc. is OK. | |
42063 | exec 5>>config.log | |
42064 | { | |
42065 | echo | |
42066 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
42067 | ## Running $as_me. ## | |
42068 | _ASBOX | |
42069 | } >&5 | |
42070 | cat >&5 <<_CSEOF | |
42071 | ||
7714864e | 42072 | This file was extended by wxWidgets $as_me 2.5.3, which was |
ac1cb8d3 | 42073 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
42074 | |
42075 | CONFIG_FILES = $CONFIG_FILES | |
42076 | CONFIG_HEADERS = $CONFIG_HEADERS | |
42077 | CONFIG_LINKS = $CONFIG_LINKS | |
42078 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
42079 | $ $0 $@ | |
42080 | ||
42081 | _CSEOF | |
42082 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
42083 | echo >&5 | |
42084 | _ACEOF | |
42085 | ||
42086 | # Files that config.status was made for. | |
42087 | if test -n "$ac_config_files"; then | |
42088 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
42089 | fi | |
42090 | ||
42091 | if test -n "$ac_config_headers"; then | |
42092 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
42093 | fi | |
42094 | ||
42095 | if test -n "$ac_config_links"; then | |
42096 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
42097 | fi | |
42098 | ||
42099 | if test -n "$ac_config_commands"; then | |
42100 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
42101 | fi | |
42102 | ||
42103 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42104 | ||
42105 | ac_cs_usage="\ | |
42106 | \`$as_me' instantiates files from templates according to the | |
42107 | current configuration. | |
42108 | ||
42109 | Usage: $0 [OPTIONS] [FILE]... | |
42110 | ||
42111 | -h, --help print this help, then exit | |
42112 | -V, --version print version number, then exit | |
42113 | -q, --quiet do not print progress messages | |
42114 | -d, --debug don't remove temporary files | |
42115 | --recheck update $as_me by reconfiguring in the same conditions | |
42116 | --file=FILE[:TEMPLATE] | |
ac1cb8d3 | 42117 | instantiate the configuration file FILE |
a848cd7e | 42118 | --header=FILE[:TEMPLATE] |
ac1cb8d3 | 42119 | instantiate the configuration header FILE |
a848cd7e SC |
42120 | |
42121 | Configuration files: | |
42122 | $config_files | |
42123 | ||
42124 | Configuration headers: | |
42125 | $config_headers | |
42126 | ||
42127 | Configuration commands: | |
42128 | $config_commands | |
42129 | ||
42130 | Report bugs to <bug-autoconf@gnu.org>." | |
42131 | _ACEOF | |
42132 | ||
42133 | cat >>$CONFIG_STATUS <<_ACEOF | |
42134 | ac_cs_version="\\ | |
7714864e | 42135 | wxWidgets config.status 2.5.3 |
ac1cb8d3 | 42136 | configured by $0, generated by GNU Autoconf 2.59, |
a848cd7e SC |
42137 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
42138 | ||
ac1cb8d3 | 42139 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
42140 | This config.status script is free software; the Free Software Foundation |
42141 | gives unlimited permission to copy, distribute and modify it." | |
42142 | srcdir=$srcdir | |
42143 | INSTALL="$INSTALL" | |
42144 | _ACEOF | |
42145 | ||
42146 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42147 | # If no file are specified by the user, then we need to provide default | |
42148 | # value. By we need to know if files were specified by the user. | |
42149 | ac_need_defaults=: | |
42150 | while test $# != 0 | |
42151 | do | |
42152 | case $1 in | |
42153 | --*=*) | |
42154 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
42155 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
42156 | ac_shift=: | |
42157 | ;; | |
42158 | -*) | |
42159 | ac_option=$1 | |
42160 | ac_optarg=$2 | |
42161 | ac_shift=shift | |
42162 | ;; | |
42163 | *) # This is not an option, so the user has probably given explicit | |
42164 | # arguments. | |
42165 | ac_option=$1 | |
42166 | ac_need_defaults=false;; | |
42167 | esac | |
42168 | ||
42169 | case $ac_option in | |
42170 | # Handling of the options. | |
42171 | _ACEOF | |
42172 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42173 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
42174 | ac_cs_recheck=: ;; | |
42175 | --version | --vers* | -V ) | |
42176 | echo "$ac_cs_version"; exit 0 ;; | |
42177 | --he | --h) | |
42178 | # Conflict between --help and --header | |
42179 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
42180 | Try \`$0 --help' for more information." >&5 | |
42181 | echo "$as_me: error: ambiguous option: $1 | |
42182 | Try \`$0 --help' for more information." >&2;} | |
42183 | { (exit 1); exit 1; }; };; | |
42184 | --help | --hel | -h ) | |
42185 | echo "$ac_cs_usage"; exit 0 ;; | |
42186 | --debug | --d* | -d ) | |
42187 | debug=: ;; | |
42188 | --file | --fil | --fi | --f ) | |
42189 | $ac_shift | |
42190 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
42191 | ac_need_defaults=false;; | |
42192 | --header | --heade | --head | --hea ) | |
42193 | $ac_shift | |
42194 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
42195 | ac_need_defaults=false;; | |
42196 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
42197 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
42198 | ac_cs_silent=: ;; | |
42199 | ||
42200 | # This is an error. | |
42201 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
42202 | Try \`$0 --help' for more information." >&5 | |
42203 | echo "$as_me: error: unrecognized option: $1 | |
42204 | Try \`$0 --help' for more information." >&2;} | |
42205 | { (exit 1); exit 1; }; } ;; | |
42206 | ||
42207 | *) ac_config_targets="$ac_config_targets $1" ;; | |
42208 | ||
42209 | esac | |
42210 | shift | |
42211 | done | |
42212 | ||
42213 | ac_configure_extra_args= | |
42214 | ||
42215 | if $ac_cs_silent; then | |
42216 | exec 6>/dev/null | |
42217 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
42218 | fi | |
42219 | ||
42220 | _ACEOF | |
42221 | cat >>$CONFIG_STATUS <<_ACEOF | |
42222 | if \$ac_cs_recheck; then | |
42223 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
42224 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
42225 | fi | |
42226 | ||
42227 | _ACEOF | |
42228 | ||
42229 | cat >>$CONFIG_STATUS <<_ACEOF | |
42230 | # | |
42231 | # INIT-COMMANDS section. | |
42232 | # | |
42233 | ||
ceec2216 RL |
42234 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" |
42235 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
42236 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
42237 | LN_S="${LN_S}" | |
a848cd7e SC |
42238 | |
42239 | ||
42240 | _ACEOF | |
42241 | ||
42242 | ||
42243 | ||
42244 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42245 | for ac_config_target in $ac_config_targets | |
42246 | do | |
42247 | case "$ac_config_target" in | |
42248 | # Handling of arguments. | |
ceec2216 RL |
42249 | "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;; |
42250 | "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;; | |
a848cd7e SC |
42251 | "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;; |
42252 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
42253 | "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;; | |
ceec2216 RL |
42254 | "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;; |
42255 | "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 |
42256 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
42257 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
42258 | { (exit 1); exit 1; }; };; | |
42259 | esac | |
42260 | done | |
42261 | ||
42262 | # If the user did not use the arguments to specify the items to instantiate, | |
42263 | # then the envvar interface is used. Set only those that are not. | |
42264 | # We use the long form for the default assignment because of an extremely | |
42265 | # bizarre bug on SunOS 4.1.3. | |
42266 | if $ac_need_defaults; then | |
42267 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
42268 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
42269 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
42270 | fi | |
42271 | ||
42272 | # Have a temporary directory for convenience. Make it in the build tree | |
42273 | # simply because there is no reason to put it here, and in addition, | |
42274 | # creating and moving files from /tmp can sometimes cause problems. | |
42275 | # Create a temporary directory, and hook for its removal unless debugging. | |
42276 | $debug || | |
42277 | { | |
42278 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
42279 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
42280 | } | |
42281 | ||
42282 | # Create a (secure) tmp directory for tmp files. | |
42283 | ||
42284 | { | |
42285 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
42286 | test -n "$tmp" && test -d "$tmp" | |
42287 | } || | |
42288 | { | |
42289 | tmp=./confstat$$-$RANDOM | |
42290 | (umask 077 && mkdir $tmp) | |
42291 | } || | |
42292 | { | |
42293 | echo "$me: cannot create a temporary directory in ." >&2 | |
42294 | { (exit 1); exit 1; } | |
42295 | } | |
42296 | ||
42297 | _ACEOF | |
42298 | ||
42299 | cat >>$CONFIG_STATUS <<_ACEOF | |
42300 | ||
42301 | # | |
42302 | # CONFIG_FILES section. | |
42303 | # | |
42304 | ||
42305 | # No need to generate the scripts if there are no CONFIG_FILES. | |
42306 | # This happens for instance when ./config.status config.h | |
42307 | if test -n "\$CONFIG_FILES"; then | |
42308 | # Protect against being on the right side of a sed subst in config.status. | |
42309 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
42310 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
42311 | s,@SHELL@,$SHELL,;t t | |
42312 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
42313 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
42314 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
42315 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
42316 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
42317 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
42318 | s,@exec_prefix@,$exec_prefix,;t t | |
42319 | s,@prefix@,$prefix,;t t | |
42320 | s,@program_transform_name@,$program_transform_name,;t t | |
42321 | s,@bindir@,$bindir,;t t | |
42322 | s,@sbindir@,$sbindir,;t t | |
42323 | s,@libexecdir@,$libexecdir,;t t | |
42324 | s,@datadir@,$datadir,;t t | |
42325 | s,@sysconfdir@,$sysconfdir,;t t | |
42326 | s,@sharedstatedir@,$sharedstatedir,;t t | |
42327 | s,@localstatedir@,$localstatedir,;t t | |
42328 | s,@libdir@,$libdir,;t t | |
42329 | s,@includedir@,$includedir,;t t | |
42330 | s,@oldincludedir@,$oldincludedir,;t t | |
42331 | s,@infodir@,$infodir,;t t | |
42332 | s,@mandir@,$mandir,;t t | |
42333 | s,@build_alias@,$build_alias,;t t | |
42334 | s,@host_alias@,$host_alias,;t t | |
42335 | s,@target_alias@,$target_alias,;t t | |
42336 | s,@DEFS@,$DEFS,;t t | |
42337 | s,@ECHO_C@,$ECHO_C,;t t | |
42338 | s,@ECHO_N@,$ECHO_N,;t t | |
42339 | s,@ECHO_T@,$ECHO_T,;t t | |
42340 | s,@LIBS@,$LIBS,;t t | |
42341 | s,@build@,$build,;t t | |
42342 | s,@build_cpu@,$build_cpu,;t t | |
42343 | s,@build_vendor@,$build_vendor,;t t | |
42344 | s,@build_os@,$build_os,;t t | |
42345 | s,@host@,$host,;t t | |
42346 | s,@host_cpu@,$host_cpu,;t t | |
42347 | s,@host_vendor@,$host_vendor,;t t | |
42348 | s,@host_os@,$host_os,;t t | |
42349 | s,@target@,$target,;t t | |
42350 | s,@target_cpu@,$target_cpu,;t t | |
42351 | s,@target_vendor@,$target_vendor,;t t | |
42352 | s,@target_os@,$target_os,;t t | |
42353 | s,@CC@,$CC,;t t | |
42354 | s,@CFLAGS@,$CFLAGS,;t t | |
42355 | s,@LDFLAGS@,$LDFLAGS,;t t | |
42356 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
42357 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
42358 | s,@EXEEXT@,$EXEEXT,;t t | |
42359 | s,@OBJEXT@,$OBJEXT,;t t | |
42360 | s,@CPP@,$CPP,;t t | |
42361 | s,@EGREP@,$EGREP,;t t | |
42362 | s,@CXX@,$CXX,;t t | |
42363 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
42364 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
42365 | s,@RANLIB@,$RANLIB,;t t | |
42366 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
42367 | s,@AR@,$AR,;t t | |
42368 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
42369 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
42370 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
42371 | s,@STRIP@,$STRIP,;t t | |
42372 | s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t | |
42373 | s,@LN_S@,$LN_S,;t t | |
42374 | s,@CXXCPP@,$CXXCPP,;t t | |
42375 | s,@subdirs@,$subdirs,;t t | |
42376 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t | |
42377 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
42378 | s,@GTK_LIBS@,$GTK_LIBS,;t t | |
42379 | s,@GTK_CONFIG@,$GTK_CONFIG,;t t | |
a848cd7e SC |
42380 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
42381 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t | |
42382 | s,@X_LIBS@,$X_LIBS,;t t | |
42383 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t | |
42384 | s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t | |
42385 | s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t | |
d1c38808 VZ |
42386 | s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t |
42387 | s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t | |
a848cd7e SC |
42388 | s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t |
42389 | s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t | |
42390 | s,@RESCOMP@,$RESCOMP,;t t | |
42391 | s,@DEREZ@,$DEREZ,;t t | |
42392 | s,@SETFILE@,$SETFILE,;t t | |
42393 | s,@LIBICONV@,$LIBICONV,;t t | |
42394 | s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t | |
42395 | s,@SDL_CONFIG@,$SDL_CONFIG,;t t | |
42396 | s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t | |
42397 | s,@SDL_LIBS@,$SDL_LIBS,;t t | |
d1c38808 VZ |
42398 | s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t |
42399 | s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t | |
a848cd7e SC |
42400 | s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t |
42401 | s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t | |
42402 | s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t | |
42403 | s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t | |
42404 | s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t | |
42405 | s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t | |
42406 | s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t | |
42407 | s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t | |
42408 | s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t | |
42409 | s,@VENDOR@,$VENDOR,;t t | |
42410 | s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t | |
ceec2216 RL |
42411 | s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t |
42412 | s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t | |
a848cd7e SC |
42413 | s,@WXUNIV@,$WXUNIV,;t t |
42414 | s,@MONOLITHIC@,$MONOLITHIC,;t t | |
42415 | s,@USE_PLUGINS@,$USE_PLUGINS,;t t | |
42416 | s,@EXTRALIBS@,$EXTRALIBS,;t t | |
42417 | s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t | |
42418 | s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t | |
42419 | s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t | |
42420 | s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t | |
42421 | s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t | |
42422 | s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t | |
42423 | s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t | |
d1c38808 | 42424 | s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t |
a848cd7e SC |
42425 | s,@UNICODE@,$UNICODE,;t t |
42426 | s,@BUILD@,$BUILD,;t t | |
42427 | s,@DEBUG_INFO@,$DEBUG_INFO,;t t | |
42428 | s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t | |
a848cd7e SC |
42429 | s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t |
42430 | s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t | |
42431 | s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t | |
42432 | s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t | |
42433 | s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t | |
42434 | s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t | |
42435 | s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t | |
42436 | s,@SET_MAKE@,$SET_MAKE,;t t | |
42437 | s,@MAKE_SET@,$MAKE_SET,;t t | |
42438 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
42439 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
42440 | s,@NM@,$NM,;t t | |
42441 | s,@ac_ct_NM@,$ac_ct_NM,;t t | |
42442 | s,@INSTALL_DIR@,$INSTALL_DIR,;t t | |
42443 | s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t | |
42444 | s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t | |
42445 | s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t | |
42446 | s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t | |
42447 | s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t | |
42448 | s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t | |
42449 | s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t | |
42450 | s,@SO_SUFFIX@,$SO_SUFFIX,;t t | |
42451 | s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t | |
42452 | s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t | |
42453 | s,@LIBPREFIX@,$LIBPREFIX,;t t | |
42454 | s,@LIBEXT@,$LIBEXT,;t t | |
42455 | s,@DLLPREFIX@,$DLLPREFIX,;t t | |
42456 | s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t | |
42457 | s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t | |
42458 | s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t | |
42459 | s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t | |
42460 | s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t | |
42461 | s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t | |
42462 | s,@PIC_FLAG@,$PIC_FLAG,;t t | |
42463 | s,@USE_SOVERSION@,$USE_SOVERSION,;t t | |
42464 | s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t | |
42465 | s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t | |
42466 | s,@USE_MACVERSION@,$USE_MACVERSION,;t t | |
42467 | s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t | |
42468 | s,@SONAME_FLAG@,$SONAME_FLAG,;t t | |
42469 | s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t | |
42470 | s,@GCC_PCH@,$GCC_PCH,;t t | |
42471 | s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t | |
42472 | s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t | |
42473 | s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t | |
42474 | s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t | |
42475 | s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t | |
42476 | s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t | |
42477 | s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t | |
42478 | s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t | |
42479 | s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t | |
42480 | s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t | |
42481 | s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t | |
42482 | s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t | |
42483 | s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t | |
42484 | s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t | |
42485 | s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t | |
42486 | s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t | |
42487 | s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t | |
42488 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t | |
42489 | 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 | |
42490 | s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t | |
42491 | s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t | |
ceec2216 | 42492 | s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t |
a848cd7e SC |
42493 | s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t |
42494 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t | |
42495 | 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 | |
42496 | s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t | |
42497 | s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t | |
ceec2216 | 42498 | s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t |
a848cd7e SC |
42499 | s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t |
42500 | s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t | |
42501 | s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t | |
42502 | s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t | |
42503 | s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t | |
42504 | s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t | |
42505 | s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t | |
42506 | s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t | |
a30f955f | 42507 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t |
a848cd7e SC |
42508 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t |
42509 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t | |
42510 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t | |
ebee3cd0 VS |
42511 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t |
42512 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t | |
a848cd7e SC |
42513 | s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t |
42514 | s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t | |
b48a2016 | 42515 | s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t |
a848cd7e SC |
42516 | s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t |
42517 | s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t | |
42518 | s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t | |
42519 | s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t | |
42520 | s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t | |
42521 | s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t | |
42522 | s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t | |
42523 | s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t | |
42524 | s,@COND_SHARED_0@,$COND_SHARED_0,;t t | |
ceec2216 RL |
42525 | s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t |
42526 | s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t | |
42527 | s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t | |
a848cd7e SC |
42528 | s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t |
42529 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
42530 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
42531 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
42532 | s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t | |
42533 | s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t | |
42534 | s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t | |
42535 | s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t | |
42536 | s,@COND_SHARED_1@,$COND_SHARED_1,;t t | |
42537 | s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t | |
a30f955f | 42538 | s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t |
a848cd7e | 42539 | s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t |
a49baeab | 42540 | s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t |
a848cd7e SC |
42541 | s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t |
42542 | s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t | |
42543 | s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t | |
42544 | s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t | |
42545 | s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t | |
42546 | s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t | |
42547 | s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t | |
42548 | s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t | |
42549 | s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t | |
42550 | s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t | |
42551 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t | |
42552 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t | |
42553 | s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t | |
42554 | s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t | |
42555 | s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t | |
42556 | s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t | |
42557 | s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t | |
42558 | s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t | |
3fd9c298 DE |
42559 | s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t |
42560 | s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t | |
42561 | s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t | |
a848cd7e SC |
42562 | s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t |
42563 | s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t | |
42564 | s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t | |
42565 | s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t | |
42566 | s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t | |
42567 | s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t | |
42568 | s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t | |
42569 | s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t | |
42570 | s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t | |
42571 | s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
42572 | s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
42573 | s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
ceec2216 | 42574 | s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t |
ffa0583f | 42575 | s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t |
a848cd7e SC |
42576 | s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t |
42577 | s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t | |
42578 | s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t | |
42579 | s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t | |
42580 | s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t | |
a13a7f89 | 42581 | s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t |
a848cd7e | 42582 | s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t |
a848cd7e SC |
42583 | s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t |
42584 | s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t | |
42585 | s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t | |
42586 | s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t | |
42587 | s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t | |
42588 | s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t | |
42589 | s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t | |
42590 | s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t | |
9a8f0513 VS |
42591 | s,@COND_TOOLKIT_MAC_WXUNIV_0@,$COND_TOOLKIT_MAC_WXUNIV_0,;t t |
42592 | s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t | |
42593 | s,@COND_TOOLKIT_PM_WXUNIV_0@,$COND_TOOLKIT_PM_WXUNIV_0,;t t | |
ceec2216 | 42594 | s,@SHARED@,$SHARED,;t t |
a848cd7e SC |
42595 | s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t |
42596 | s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t | |
a848cd7e SC |
42597 | s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t |
42598 | s,@USE_GUI@,$USE_GUI,;t t | |
42599 | s,@AFMINSTALL@,$AFMINSTALL,;t t | |
42600 | s,@WIN32INSTALL@,$WIN32INSTALL,;t t | |
42601 | s,@TOOLKIT@,$TOOLKIT,;t t | |
42602 | s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t | |
a848cd7e | 42603 | s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t |
ceec2216 | 42604 | s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t |
a848cd7e SC |
42605 | s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t |
42606 | s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t | |
a848cd7e | 42607 | s,@cross_compiling@,$cross_compiling,;t t |
ceec2216 RL |
42608 | s,@WIDGET_SET@,$WIDGET_SET,;t t |
42609 | s,@WX_RELEASE@,$WX_RELEASE,;t t | |
42610 | s,@WX_VERSION@,$WX_VERSION,;t t | |
42611 | s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t | |
42612 | s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t | |
42613 | s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t | |
a848cd7e | 42614 | s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t |
a848cd7e SC |
42615 | s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t |
42616 | s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t | |
42617 | s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t | |
42618 | s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t | |
74b84332 | 42619 | s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t |
a848cd7e SC |
42620 | s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t |
42621 | s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t | |
ceec2216 | 42622 | s,@EXE_LINKER@,$EXE_LINKER,;t t |
a848cd7e | 42623 | s,@GUIDIST@,$GUIDIST,;t t |
a848cd7e SC |
42624 | s,@DISTDIR@,$DISTDIR,;t t |
42625 | s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t | |
42626 | s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t | |
a848cd7e SC |
42627 | s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t |
42628 | s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t | |
42629 | s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t | |
42630 | s,@RESFLAGS@,$RESFLAGS,;t t | |
42631 | s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t | |
42632 | s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t | |
42633 | s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t | |
42634 | s,@LIBWXMACRES@,$LIBWXMACRES,;t t | |
42635 | s,@MACRESCOMP@,$MACRESCOMP,;t t | |
42636 | s,@MACSETFILE@,$MACSETFILE,;t t | |
42637 | s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t | |
42638 | s,@GCC@,$GCC,;t t | |
a848cd7e | 42639 | s,@DLLTOOL@,$DLLTOOL,;t t |
a848cd7e SC |
42640 | s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t |
42641 | s,@LIBOBJS@,$LIBOBJS,;t t | |
42642 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
42643 | CEOF | |
42644 | ||
42645 | _ACEOF | |
42646 | ||
42647 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42648 | # Split the substitutions into bite-sized pieces for seds with | |
42649 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
42650 | ac_max_sed_lines=48 | |
42651 | ac_sed_frag=1 # Number of current file. | |
42652 | ac_beg=1 # First line for current file. | |
42653 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
42654 | ac_more_lines=: | |
42655 | ac_sed_cmds= | |
42656 | while $ac_more_lines; do | |
42657 | if test $ac_beg -gt 1; then | |
42658 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
42659 | else | |
42660 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
42661 | fi | |
42662 | if test ! -s $tmp/subs.frag; then | |
42663 | ac_more_lines=false | |
42664 | else | |
42665 | # The purpose of the label and of the branching condition is to | |
42666 | # speed up the sed processing (if there are no `@' at all, there | |
42667 | # is no need to browse any of the substitutions). | |
42668 | # These are the two extra sed commands mentioned above. | |
42669 | (echo ':t | |
42670 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
42671 | if test -z "$ac_sed_cmds"; then | |
ac1cb8d3 | 42672 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e | 42673 | else |
ac1cb8d3 | 42674 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e SC |
42675 | fi |
42676 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
42677 | ac_beg=$ac_end | |
42678 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
42679 | fi | |
42680 | done | |
42681 | if test -z "$ac_sed_cmds"; then | |
42682 | ac_sed_cmds=cat | |
42683 | fi | |
42684 | fi # test -n "$CONFIG_FILES" | |
42685 | ||
42686 | _ACEOF | |
42687 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42688 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
42689 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
42690 | case $ac_file in | |
42691 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
42692 | cat >$tmp/stdin |
42693 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
42694 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 42695 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 42696 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
42697 | * ) ac_file_in=$ac_file.in ;; |
42698 | esac | |
42699 | ||
42700 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
42701 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
42702 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
42703 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
42704 | X"$ac_file" : 'X\(//\)$' \| \ | |
42705 | X"$ac_file" : 'X\(/\)' \| \ | |
42706 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
42707 | echo X"$ac_file" | |
42708 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
42709 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
42710 | /^X\(\/\/\)$/{ s//\1/; q; } | |
42711 | /^X\(\/\).*/{ s//\1/; q; } | |
42712 | s/.*/./; q'` | |
42713 | { if $as_mkdir_p; then | |
42714 | mkdir -p "$ac_dir" | |
42715 | else | |
42716 | as_dir="$ac_dir" | |
42717 | as_dirs= | |
42718 | while test ! -d "$as_dir"; do | |
42719 | as_dirs="$as_dir $as_dirs" | |
42720 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
42721 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
42722 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
42723 | X"$as_dir" : 'X\(//\)$' \| \ | |
42724 | X"$as_dir" : 'X\(/\)' \| \ | |
42725 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
42726 | echo X"$as_dir" | |
42727 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
42728 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
42729 | /^X\(\/\/\)$/{ s//\1/; q; } | |
42730 | /^X\(\/\).*/{ s//\1/; q; } | |
42731 | s/.*/./; q'` | |
42732 | done | |
42733 | test ! -n "$as_dirs" || mkdir $as_dirs | |
42734 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
42735 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
42736 | { (exit 1); exit 1; }; }; } | |
42737 | ||
42738 | ac_builddir=. | |
42739 | ||
42740 | if test "$ac_dir" != .; then | |
42741 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
42742 | # A "../" for each directory in $ac_dir_suffix. | |
42743 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
42744 | else | |
42745 | ac_dir_suffix= ac_top_builddir= | |
42746 | fi | |
42747 | ||
42748 | case $srcdir in | |
42749 | .) # No --srcdir option. We are building in place. | |
42750 | ac_srcdir=. | |
42751 | if test -z "$ac_top_builddir"; then | |
42752 | ac_top_srcdir=. | |
42753 | else | |
42754 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
42755 | fi ;; | |
42756 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
42757 | ac_srcdir=$srcdir$ac_dir_suffix; | |
42758 | ac_top_srcdir=$srcdir ;; | |
42759 | *) # Relative path. | |
42760 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
42761 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
42762 | esac | |
ac1cb8d3 VS |
42763 | |
42764 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
42765 | # the directories may not exist. | |
42766 | case `pwd` in | |
42767 | .) ac_abs_builddir="$ac_dir";; | |
42768 | *) | |
42769 | case "$ac_dir" in | |
42770 | .) ac_abs_builddir=`pwd`;; | |
42771 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
42772 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
42773 | esac;; | |
42774 | esac | |
42775 | case $ac_abs_builddir in | |
42776 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
42777 | *) | |
42778 | case ${ac_top_builddir}. in | |
42779 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
42780 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
42781 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
42782 | esac;; | |
42783 | esac | |
42784 | case $ac_abs_builddir in | |
42785 | .) ac_abs_srcdir=$ac_srcdir;; | |
42786 | *) | |
42787 | case $ac_srcdir in | |
42788 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
42789 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
42790 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
42791 | esac;; | |
42792 | esac | |
42793 | case $ac_abs_builddir in | |
42794 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
42795 | *) | |
42796 | case $ac_top_srcdir in | |
42797 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
42798 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
42799 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
42800 | esac;; | |
42801 | esac | |
a848cd7e SC |
42802 | |
42803 | ||
42804 | case $INSTALL in | |
42805 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
42806 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
42807 | esac | |
42808 | ||
a848cd7e SC |
42809 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
42810 | # use $as_me), people would be surprised to read: | |
42811 | # /* config.h. Generated by config.status. */ | |
42812 | if test x"$ac_file" = x-; then | |
42813 | configure_input= | |
42814 | else | |
42815 | configure_input="$ac_file. " | |
42816 | fi | |
42817 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
ac1cb8d3 | 42818 | sed 's,.*/,,'` by configure." |
a848cd7e SC |
42819 | |
42820 | # First look for the input files in the build tree, otherwise in the | |
42821 | # src tree. | |
42822 | ac_file_inputs=`IFS=: | |
42823 | for f in $ac_file_in; do | |
42824 | case $f in | |
42825 | -) echo $tmp/stdin ;; | |
42826 | [\\/$]*) | |
ac1cb8d3 VS |
42827 | # Absolute (can't be DOS-style, as IFS=:) |
42828 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
42829 | echo "$as_me: error: cannot find input file: $f" >&2;} |
42830 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 42831 | echo "$f";; |
a848cd7e | 42832 | *) # Relative |
ac1cb8d3 VS |
42833 | if test -f "$f"; then |
42834 | # Build tree | |
42835 | echo "$f" | |
42836 | elif test -f "$srcdir/$f"; then | |
42837 | # Source tree | |
42838 | echo "$srcdir/$f" | |
42839 | else | |
42840 | # /dev/null tree | |
42841 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
42842 | echo "$as_me: error: cannot find input file: $f" >&2;} |
42843 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 42844 | fi;; |
a848cd7e SC |
42845 | esac |
42846 | done` || { (exit 1); exit 1; } | |
d51253e8 RL |
42847 | |
42848 | if test x"$ac_file" != x-; then | |
42849 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
42850 | echo "$as_me: creating $ac_file" >&6;} | |
42851 | rm -f "$ac_file" | |
42852 | fi | |
a848cd7e SC |
42853 | _ACEOF |
42854 | cat >>$CONFIG_STATUS <<_ACEOF | |
42855 | sed "$ac_vpsub | |
42856 | $extrasub | |
42857 | _ACEOF | |
42858 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42859 | :t | |
42860 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
42861 | s,@configure_input@,$configure_input,;t t | |
42862 | s,@srcdir@,$ac_srcdir,;t t | |
42863 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
42864 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
42865 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
42866 | s,@builddir@,$ac_builddir,;t t | |
42867 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
42868 | s,@top_builddir@,$ac_top_builddir,;t t | |
42869 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
42870 | s,@INSTALL@,$ac_INSTALL,;t t | |
42871 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
42872 | rm -f $tmp/stdin | |
42873 | if test x"$ac_file" != x-; then | |
42874 | mv $tmp/out $ac_file | |
42875 | else | |
42876 | cat $tmp/out | |
42877 | rm -f $tmp/out | |
42878 | fi | |
42879 | ||
ceec2216 RL |
42880 | # Run the commands associated with the file. |
42881 | case $ac_file in | |
42882 | lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;; | |
42883 | lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;; | |
42884 | esac | |
a848cd7e SC |
42885 | done |
42886 | _ACEOF | |
42887 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42888 | ||
42889 | # | |
42890 | # CONFIG_HEADER section. | |
42891 | # | |
42892 | ||
42893 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
42894 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
42895 | # | |
42896 | # ac_d sets the value in "#define NAME VALUE" lines. | |
ac1cb8d3 VS |
42897 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
42898 | ac_dB='[ ].*$,\1#\2' | |
a848cd7e SC |
42899 | ac_dC=' ' |
42900 | ac_dD=',;t' | |
42901 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
ac1cb8d3 | 42902 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
a848cd7e SC |
42903 | ac_uB='$,\1#\2define\3' |
42904 | ac_uC=' ' | |
42905 | ac_uD=',;t' | |
42906 | ||
42907 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
42908 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
42909 | case $ac_file in | |
42910 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
42911 | cat >$tmp/stdin |
42912 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
42913 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 42914 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 42915 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
42916 | * ) ac_file_in=$ac_file.in ;; |
42917 | esac | |
42918 | ||
42919 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
42920 | echo "$as_me: creating $ac_file" >&6;} | |
42921 | ||
42922 | # First look for the input files in the build tree, otherwise in the | |
42923 | # src tree. | |
42924 | ac_file_inputs=`IFS=: | |
42925 | for f in $ac_file_in; do | |
42926 | case $f in | |
42927 | -) echo $tmp/stdin ;; | |
42928 | [\\/$]*) | |
ac1cb8d3 VS |
42929 | # Absolute (can't be DOS-style, as IFS=:) |
42930 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
42931 | echo "$as_me: error: cannot find input file: $f" >&2;} |
42932 | { (exit 1); exit 1; }; } | |
ac1cb8d3 VS |
42933 | # Do quote $f, to prevent DOS paths from being IFS'd. |
42934 | echo "$f";; | |
a848cd7e | 42935 | *) # Relative |
ac1cb8d3 VS |
42936 | if test -f "$f"; then |
42937 | # Build tree | |
42938 | echo "$f" | |
42939 | elif test -f "$srcdir/$f"; then | |
42940 | # Source tree | |
42941 | echo "$srcdir/$f" | |
42942 | else | |
42943 | # /dev/null tree | |
42944 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
42945 | echo "$as_me: error: cannot find input file: $f" >&2;} |
42946 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 42947 | fi;; |
a848cd7e SC |
42948 | esac |
42949 | done` || { (exit 1); exit 1; } | |
42950 | # Remove the trailing spaces. | |
ac1cb8d3 | 42951 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
a848cd7e SC |
42952 | |
42953 | _ACEOF | |
42954 | ||
42955 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
42956 | # `conftest.undefs', that substitutes the proper values into | |
42957 | # config.h.in to produce config.h. The first handles `#define' | |
42958 | # templates, and the second `#undef' templates. | |
42959 | # And first: Protect against being on the right side of a sed subst in | |
42960 | # config.status. Protect against being in an unquoted here document | |
42961 | # in config.status. | |
42962 | rm -f conftest.defines conftest.undefs | |
42963 | # Using a here document instead of a string reduces the quoting nightmare. | |
42964 | # Putting comments in sed scripts is not portable. | |
42965 | # | |
42966 | # `end' is used to avoid that the second main sed command (meant for | |
42967 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
42968 | # See the Autoconf documentation for `clear'. | |
42969 | cat >confdef2sed.sed <<\_ACEOF | |
42970 | s/[\\&,]/\\&/g | |
42971 | s,[\\$`],\\&,g | |
42972 | t clear | |
42973 | : clear | |
ac1cb8d3 | 42974 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
a848cd7e | 42975 | t end |
ac1cb8d3 | 42976 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
a848cd7e SC |
42977 | : end |
42978 | _ACEOF | |
42979 | # If some macros were called several times there might be several times | |
42980 | # the same #defines, which is useless. Nevertheless, we may not want to | |
42981 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
42982 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
42983 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
42984 | rm -f confdef2sed.sed | |
42985 | ||
42986 | # This sed command replaces #undef with comments. This is necessary, for | |
42987 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
42988 | # on some systems where configure will not decide to define it. | |
42989 | cat >>conftest.undefs <<\_ACEOF | |
ac1cb8d3 | 42990 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
a848cd7e SC |
42991 | _ACEOF |
42992 | ||
42993 | # Break up conftest.defines because some shells have a limit on the size | |
42994 | # of here documents, and old seds have small limits too (100 cmds). | |
42995 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
ac1cb8d3 | 42996 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
a848cd7e SC |
42997 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
42998 | echo ' :' >>$CONFIG_STATUS | |
42999 | rm -f conftest.tail | |
43000 | while grep . conftest.defines >/dev/null | |
43001 | do | |
43002 | # Write a limited-size here document to $tmp/defines.sed. | |
43003 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
43004 | # Speed up: don't consider the non `#define' lines. | |
ac1cb8d3 | 43005 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
a848cd7e SC |
43006 | # Work around the forget-to-reset-the-flag bug. |
43007 | echo 't clr' >>$CONFIG_STATUS | |
43008 | echo ': clr' >>$CONFIG_STATUS | |
43009 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
43010 | echo 'CEOF | |
43011 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
43012 | rm -f $tmp/in | |
43013 | mv $tmp/out $tmp/in | |
43014 | ' >>$CONFIG_STATUS | |
43015 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
43016 | rm -f conftest.defines | |
43017 | mv conftest.tail conftest.defines | |
43018 | done | |
43019 | rm -f conftest.defines | |
43020 | echo ' fi # grep' >>$CONFIG_STATUS | |
43021 | echo >>$CONFIG_STATUS | |
43022 | ||
43023 | # Break up conftest.undefs because some shells have a limit on the size | |
43024 | # of here documents, and old seds have small limits too (100 cmds). | |
43025 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
43026 | rm -f conftest.tail | |
43027 | while grep . conftest.undefs >/dev/null | |
43028 | do | |
43029 | # Write a limited-size here document to $tmp/undefs.sed. | |
43030 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
43031 | # Speed up: don't consider the non `#undef' | |
ac1cb8d3 | 43032 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
a848cd7e SC |
43033 | # Work around the forget-to-reset-the-flag bug. |
43034 | echo 't clr' >>$CONFIG_STATUS | |
43035 | echo ': clr' >>$CONFIG_STATUS | |
43036 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
43037 | echo 'CEOF | |
43038 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
43039 | rm -f $tmp/in | |
43040 | mv $tmp/out $tmp/in | |
43041 | ' >>$CONFIG_STATUS | |
43042 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
43043 | rm -f conftest.undefs | |
43044 | mv conftest.tail conftest.undefs | |
43045 | done | |
43046 | rm -f conftest.undefs | |
43047 | ||
43048 | cat >>$CONFIG_STATUS <<\_ACEOF | |
43049 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
43050 | # use $as_me), people would be surprised to read: | |
43051 | # /* config.h. Generated by config.status. */ | |
43052 | if test x"$ac_file" = x-; then | |
43053 | echo "/* Generated by configure. */" >$tmp/config.h | |
43054 | else | |
43055 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
43056 | fi | |
43057 | cat $tmp/in >>$tmp/config.h | |
43058 | rm -f $tmp/in | |
43059 | if test x"$ac_file" != x-; then | |
43060 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
43061 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
43062 | echo "$as_me: $ac_file is unchanged" >&6;} | |
43063 | else | |
43064 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
43065 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
43066 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
43067 | X"$ac_file" : 'X\(//\)$' \| \ | |
43068 | X"$ac_file" : 'X\(/\)' \| \ | |
43069 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
43070 | echo X"$ac_file" | |
43071 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
43072 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
43073 | /^X\(\/\/\)$/{ s//\1/; q; } | |
43074 | /^X\(\/\).*/{ s//\1/; q; } | |
43075 | s/.*/./; q'` | |
43076 | { if $as_mkdir_p; then | |
43077 | mkdir -p "$ac_dir" | |
43078 | else | |
43079 | as_dir="$ac_dir" | |
43080 | as_dirs= | |
43081 | while test ! -d "$as_dir"; do | |
43082 | as_dirs="$as_dir $as_dirs" | |
43083 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
43084 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
43085 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
43086 | X"$as_dir" : 'X\(//\)$' \| \ | |
43087 | X"$as_dir" : 'X\(/\)' \| \ | |
43088 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
43089 | echo X"$as_dir" | |
43090 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
43091 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
43092 | /^X\(\/\/\)$/{ s//\1/; q; } | |
43093 | /^X\(\/\).*/{ s//\1/; q; } | |
43094 | s/.*/./; q'` | |
43095 | done | |
43096 | test ! -n "$as_dirs" || mkdir $as_dirs | |
43097 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
43098 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
43099 | { (exit 1); exit 1; }; }; } | |
43100 | ||
43101 | rm -f $ac_file | |
43102 | mv $tmp/config.h $ac_file | |
43103 | fi | |
43104 | else | |
43105 | cat $tmp/config.h | |
43106 | rm -f $tmp/config.h | |
43107 | fi | |
43108 | done | |
43109 | _ACEOF | |
43110 | cat >>$CONFIG_STATUS <<\_ACEOF | |
43111 | ||
43112 | # | |
43113 | # CONFIG_COMMANDS section. | |
43114 | # | |
43115 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
43116 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
43117 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
43118 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
43119 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
43120 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
43121 | X"$ac_dest" : 'X\(//\)$' \| \ | |
43122 | X"$ac_dest" : 'X\(/\)' \| \ | |
43123 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
43124 | echo X"$ac_dest" | |
43125 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
43126 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
43127 | /^X\(\/\/\)$/{ s//\1/; q; } | |
43128 | /^X\(\/\).*/{ s//\1/; q; } | |
43129 | s/.*/./; q'` | |
ac1cb8d3 VS |
43130 | { if $as_mkdir_p; then |
43131 | mkdir -p "$ac_dir" | |
43132 | else | |
43133 | as_dir="$ac_dir" | |
43134 | as_dirs= | |
43135 | while test ! -d "$as_dir"; do | |
43136 | as_dirs="$as_dir $as_dirs" | |
43137 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
43138 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
43139 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
43140 | X"$as_dir" : 'X\(//\)$' \| \ | |
43141 | X"$as_dir" : 'X\(/\)' \| \ | |
43142 | . : '\(.\)' 2>/dev/null || | |
43143 | echo X"$as_dir" | | |
43144 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
43145 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
43146 | /^X\(\/\/\)$/{ s//\1/; q; } | |
43147 | /^X\(\/\).*/{ s//\1/; q; } | |
43148 | s/.*/./; q'` | |
43149 | done | |
43150 | test ! -n "$as_dirs" || mkdir $as_dirs | |
43151 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
43152 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
43153 | { (exit 1); exit 1; }; }; } | |
43154 | ||
a848cd7e SC |
43155 | ac_builddir=. |
43156 | ||
43157 | if test "$ac_dir" != .; then | |
43158 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
43159 | # A "../" for each directory in $ac_dir_suffix. | |
43160 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
43161 | else | |
43162 | ac_dir_suffix= ac_top_builddir= | |
43163 | fi | |
43164 | ||
43165 | case $srcdir in | |
43166 | .) # No --srcdir option. We are building in place. | |
43167 | ac_srcdir=. | |
43168 | if test -z "$ac_top_builddir"; then | |
43169 | ac_top_srcdir=. | |
43170 | else | |
43171 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
43172 | fi ;; | |
43173 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
43174 | ac_srcdir=$srcdir$ac_dir_suffix; | |
43175 | ac_top_srcdir=$srcdir ;; | |
43176 | *) # Relative path. | |
43177 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
43178 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
43179 | esac | |
ac1cb8d3 VS |
43180 | |
43181 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
43182 | # the directories may not exist. | |
43183 | case `pwd` in | |
43184 | .) ac_abs_builddir="$ac_dir";; | |
43185 | *) | |
43186 | case "$ac_dir" in | |
43187 | .) ac_abs_builddir=`pwd`;; | |
43188 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
43189 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
43190 | esac;; | |
43191 | esac | |
43192 | case $ac_abs_builddir in | |
43193 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
43194 | *) | |
43195 | case ${ac_top_builddir}. in | |
43196 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
43197 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
43198 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
43199 | esac;; | |
43200 | esac | |
43201 | case $ac_abs_builddir in | |
43202 | .) ac_abs_srcdir=$ac_srcdir;; | |
43203 | *) | |
43204 | case $ac_srcdir in | |
43205 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
43206 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
43207 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
43208 | esac;; | |
43209 | esac | |
43210 | case $ac_abs_builddir in | |
43211 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
43212 | *) | |
43213 | case $ac_top_srcdir in | |
43214 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
43215 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
43216 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
43217 | esac;; | |
43218 | esac | |
a848cd7e SC |
43219 | |
43220 | ||
43221 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
43222 | echo "$as_me: executing $ac_dest commands" >&6;} | |
43223 | case $ac_dest in | |
ceec2216 RL |
43224 | wx-config ) rm -f wx-config |
43225 | ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config | |
43226 | ;; | |
a848cd7e SC |
43227 | esac |
43228 | done | |
43229 | _ACEOF | |
43230 | ||
43231 | cat >>$CONFIG_STATUS <<\_ACEOF | |
43232 | ||
43233 | { (exit 0); exit 0; } | |
43234 | _ACEOF | |
43235 | chmod +x $CONFIG_STATUS | |
43236 | ac_clean_files=$ac_clean_files_save | |
43237 | ||
43238 | ||
43239 | # configure is writing to config.log, and then calls config.status. | |
43240 | # config.status does its own redirection, appending to config.log. | |
43241 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
43242 | # by configure, so config.status won't be able to write to it; its | |
43243 | # output is simply discarded. So we exec the FD to /dev/null, | |
43244 | # effectively closing config.log, so it can be properly (re)opened and | |
43245 | # appended to by config.status. When coming back to configure, we | |
43246 | # need to make the FD available again. | |
43247 | if test "$no_create" != yes; then | |
43248 | ac_cs_success=: | |
43249 | ac_config_status_args= | |
43250 | test "$silent" = yes && | |
43251 | ac_config_status_args="$ac_config_status_args --quiet" | |
43252 | exec 5>/dev/null | |
43253 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
43254 | exec 5>>config.log | |
43255 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
43256 | # would make configure fail if this is the last instruction. | |
43257 | $ac_cs_success || { (exit 1); exit 1; } | |
43258 | fi | |
43259 | ||
43260 | # | |
43261 | # CONFIG_SUBDIRS section. | |
43262 | # | |
43263 | if test "$no_recursion" != yes; then | |
43264 | ||
43265 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
43266 | ac_sub_configure_args= | |
43267 | ac_prev= | |
43268 | for ac_arg in $ac_configure_args; do | |
43269 | if test -n "$ac_prev"; then | |
43270 | ac_prev= | |
43271 | continue | |
43272 | fi | |
43273 | case $ac_arg in | |
43274 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
43275 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
43276 | ac_prev=cache_file ;; | |
43277 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
43278 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
43279 | | --c=*) | |
43280 | ;; | |
43281 | --config-cache | -C) | |
43282 | ;; | |
43283 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
43284 | ac_prev=srcdir ;; | |
43285 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
43286 | ;; | |
43287 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
43288 | ac_prev=prefix ;; | |
43289 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
43290 | ;; | |
43291 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
43292 | esac | |
43293 | done | |
43294 | ||
43295 | # Always prepend --prefix to ensure using the same prefix | |
43296 | # in subdir configurations. | |
43297 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
43298 | ||
43299 | ac_popdir=`pwd` | |
43300 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
43301 | ||
43302 | # Do not complain, so a configure script can configure whichever | |
43303 | # parts of a large source tree are present. | |
43304 | test -d $srcdir/$ac_dir || continue | |
43305 | ||
43306 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 | |
43307 | echo "$as_me: configuring in $ac_dir" >&6;} | |
43308 | { if $as_mkdir_p; then | |
43309 | mkdir -p "$ac_dir" | |
43310 | else | |
43311 | as_dir="$ac_dir" | |
43312 | as_dirs= | |
43313 | while test ! -d "$as_dir"; do | |
43314 | as_dirs="$as_dir $as_dirs" | |
43315 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
43316 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
43317 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
43318 | X"$as_dir" : 'X\(//\)$' \| \ | |
43319 | X"$as_dir" : 'X\(/\)' \| \ | |
43320 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
43321 | echo X"$as_dir" | |
43322 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
43323 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
43324 | /^X\(\/\/\)$/{ s//\1/; q; } | |
43325 | /^X\(\/\).*/{ s//\1/; q; } | |
43326 | s/.*/./; q'` | |
43327 | done | |
43328 | test ! -n "$as_dirs" || mkdir $as_dirs | |
43329 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
43330 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
43331 | { (exit 1); exit 1; }; }; } | |
43332 | ||
43333 | ac_builddir=. | |
43334 | ||
43335 | if test "$ac_dir" != .; then | |
43336 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
43337 | # A "../" for each directory in $ac_dir_suffix. | |
43338 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
43339 | else | |
43340 | ac_dir_suffix= ac_top_builddir= | |
43341 | fi | |
43342 | ||
43343 | case $srcdir in | |
43344 | .) # No --srcdir option. We are building in place. | |
43345 | ac_srcdir=. | |
43346 | if test -z "$ac_top_builddir"; then | |
43347 | ac_top_srcdir=. | |
43348 | else | |
43349 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
43350 | fi ;; | |
43351 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
43352 | ac_srcdir=$srcdir$ac_dir_suffix; | |
43353 | ac_top_srcdir=$srcdir ;; | |
43354 | *) # Relative path. | |
43355 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
43356 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
43357 | esac | |
ac1cb8d3 VS |
43358 | |
43359 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
43360 | # the directories may not exist. | |
43361 | case `pwd` in | |
43362 | .) ac_abs_builddir="$ac_dir";; | |
43363 | *) | |
43364 | case "$ac_dir" in | |
43365 | .) ac_abs_builddir=`pwd`;; | |
43366 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
43367 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
43368 | esac;; | |
43369 | esac | |
43370 | case $ac_abs_builddir in | |
43371 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
43372 | *) | |
43373 | case ${ac_top_builddir}. in | |
43374 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
43375 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
43376 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
43377 | esac;; | |
43378 | esac | |
43379 | case $ac_abs_builddir in | |
43380 | .) ac_abs_srcdir=$ac_srcdir;; | |
43381 | *) | |
43382 | case $ac_srcdir in | |
43383 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
43384 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
43385 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
43386 | esac;; | |
43387 | esac | |
43388 | case $ac_abs_builddir in | |
43389 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
43390 | *) | |
43391 | case $ac_top_srcdir in | |
43392 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
43393 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
43394 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
43395 | esac;; | |
43396 | esac | |
a848cd7e SC |
43397 | |
43398 | ||
43399 | cd $ac_dir | |
43400 | ||
43401 | # Check for guested configure; otherwise get Cygnus style configure. | |
43402 | if test -f $ac_srcdir/configure.gnu; then | |
43403 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
43404 | elif test -f $ac_srcdir/configure; then | |
43405 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
43406 | elif test -f $ac_srcdir/configure.in; then | |
43407 | ac_sub_configure=$ac_configure | |
43408 | else | |
43409 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | |
43410 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
43411 | ac_sub_configure= | |
43412 | fi | |
43413 | ||
43414 | # The recursion is here. | |
43415 | if test -n "$ac_sub_configure"; then | |
43416 | # Make the cache file name correct relative to the subdirectory. | |
43417 | case $cache_file in | |
43418 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
43419 | *) # Relative path. | |
ac1cb8d3 | 43420 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
a848cd7e SC |
43421 | esac |
43422 | ||
43423 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | |
43424 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
43425 | # The eval makes quoting arguments work. | |
43426 | eval $ac_sub_configure $ac_sub_configure_args \ | |
ac1cb8d3 VS |
43427 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || |
43428 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
a848cd7e SC |
43429 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
43430 | { (exit 1); exit 1; }; } | |
43431 | fi | |
43432 | ||
d51253e8 | 43433 | cd "$ac_popdir" |
a848cd7e SC |
43434 | done |
43435 | fi | |
43436 | ||
43437 | ||
43438 | echo | |
77ffb593 | 43439 | echo "Configured wxWidgets ${WX_VERSION} for \`${host}'" |
a848cd7e | 43440 | echo "" |
4d4ff94c | 43441 | echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}" |
77ffb593 | 43442 | echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}" |
a848cd7e | 43443 | |
77ffb593 JS |
43444 | echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}" |
43445 | echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}" | |
43446 | echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
a848cd7e | 43447 | |
77ffb593 JS |
43448 | echo " What level of wxWidgets compatibility should be enabled?" |
43449 | echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}" | |
43450 | echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}" | |
a848cd7e | 43451 | |
77ffb593 | 43452 | echo " Which libraries should wxWidgets use?" |
a848cd7e SC |
43453 | echo " jpeg ${wxUSE_LIBJPEG-none}" |
43454 | echo " png ${wxUSE_LIBPNG-none}" | |
43455 | echo " regex ${wxUSE_REGEX}" | |
43456 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
43457 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then | |
43458 | echo " xpm ${wxUSE_LIBXPM-none}" | |
43459 | fi | |
43460 | echo " zlib ${wxUSE_ZLIB}" | |
43461 | echo " odbc ${wxUSE_ODBC}" | |
43462 | echo " expat ${wxUSE_EXPAT}" | |
43463 | echo " libmspack ${wxUSE_LIBMSPACK}" | |
43464 | echo " sdl ${wxUSE_LIBSDL}" | |
d1c38808 | 43465 | echo " gnomeprint ${wxUSE_LIBGNOMEPRINT}" |
a848cd7e SC |
43466 | |
43467 | echo "" | |
43468 |