]>
Commit | Line | Data |
---|---|---|
10f2d63a | 1 | #! /bin/sh |
e6cc62c6 VS |
2 | # From configure.in Id: configure.in. |
3 | # Guess values for system-dependent variables and create Makefiles. | |
eea650d8 | 4 | # Generated by GNU Autoconf 2.58 for wxWindows 2.5.1. |
e6cc62c6 VS |
5 | # |
6 | # Report bugs to <wx-dev@lists.wxwindows.org>. | |
7 | # | |
eea650d8 | 8 | # Copyright (C) 2003 Free Software Foundation, Inc. |
e6cc62c6 VS |
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 | ## --------------------- ## | |
fe0895cf | 14 | |
e6cc62c6 VS |
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 | |
eea650d8 | 25 | DUALCASE=1; export DUALCASE # for MKS sh |
fe0895cf | 26 | |
e6cc62c6 | 27 | # Support unset when possible. |
eea650d8 | 28 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
e6cc62c6 VS |
29 | as_unset=unset |
30 | else | |
31 | as_unset=false | |
32 | fi | |
fe0895cf VS |
33 | |
34 | ||
e6cc62c6 VS |
35 | # Work around bugs in pre-3.0 UWIN ksh. |
36 | $as_unset ENV MAIL MAILPATH | |
37 | PS1='$ ' | |
38 | PS2='> ' | |
39 | PS4='+ ' | |
fe0895cf | 40 | |
e6cc62c6 VS |
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 | |
eea650d8 | 47 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
e6cc62c6 VS |
48 | eval $as_var=C; export $as_var |
49 | else | |
50 | $as_unset $as_var | |
51 | fi | |
52 | done | |
fe0895cf | 53 | |
e6cc62c6 VS |
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 | |
fe0895cf | 60 | |
e6cc62c6 VS |
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 | |
fe0895cf VS |
66 | |
67 | ||
e6cc62c6 VS |
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'` | |
fe0895cf VS |
79 | |
80 | ||
e6cc62c6 VS |
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 | |
fe0895cf | 88 | |
e6cc62c6 VS |
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 | |
fe0895cf VS |
101 | |
102 | ||
e6cc62c6 VS |
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 | |
fe0895cf | 119 | |
e6cc62c6 VS |
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 | |
fe0895cf | 158 | |
e6cc62c6 VS |
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 | } | |
fe0895cf VS |
188 | |
189 | ||
e6cc62c6 VS |
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 | |
fe0895cf | 196 | |
e6cc62c6 VS |
197 | if expr a : '\(a\)' >/dev/null 2>&1; then |
198 | as_expr=expr | |
199 | else | |
200 | as_expr=false | |
201 | fi | |
fe0895cf | 202 | |
e6cc62c6 VS |
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 | |
fe0895cf | 220 | |
e6cc62c6 VS |
221 | if mkdir -p . 2>/dev/null; then |
222 | as_mkdir_p=: | |
223 | else | |
eea650d8 | 224 | test -d ./-p && rmdir ./-p |
e6cc62c6 VS |
225 | as_mkdir_p=false |
226 | fi | |
fe0895cf | 227 | |
e6cc62c6 | 228 | as_executable_p="test -f" |
fe0895cf | 229 | |
e6cc62c6 | 230 | # Sed expression to map a string onto a valid CPP name. |
eea650d8 | 231 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
fe0895cf | 232 | |
e6cc62c6 | 233 | # Sed expression to map a string onto a valid variable name. |
eea650d8 | 234 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
fe0895cf VS |
235 | |
236 | ||
e6cc62c6 VS |
237 | # IFS |
238 | # We need space, tab and new line, in precisely that order. | |
239 | as_nl=' | |
240 | ' | |
241 | IFS=" $as_nl" | |
fe0895cf | 242 | |
e6cc62c6 VS |
243 | # CDPATH. |
244 | $as_unset CDPATH | |
fe0895cf VS |
245 | |
246 | ||
e6cc62c6 VS |
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` | |
fe0895cf | 251 | |
e6cc62c6 | 252 | exec 6>&1 |
fe0895cf | 253 | |
a0b9e27f | 254 | # |
e6cc62c6 VS |
255 | # Initializations. |
256 | # | |
a0b9e27f | 257 | ac_default_prefix=/usr/local |
e6cc62c6 VS |
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. | |
271 | PACKAGE_NAME='wxWindows' | |
272 | PACKAGE_TARNAME='wxwindows' | |
e46d2a18 VS |
273 | PACKAGE_VERSION='2.5.1' |
274 | PACKAGE_STRING='wxWindows 2.5.1' | |
e6cc62c6 VS |
275 | PACKAGE_BUGREPORT='wx-dev@lists.wxwindows.org' |
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 | ||
672abd7a | 315 | ac_subdirs_all="$ac_subdirs_all src/expat" |
3527f29c | 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 PANGOFT2_CFLAGS PANGOFT2_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WXUNIV MONOLITHIC EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL UNICODE BUILD DEBUG_INFO DEBUG_FLAG SHARED TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX 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 LIBPREFIX 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_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT 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_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_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_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_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_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_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_COCOA 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_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_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_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 PATH_IFS WX_MAJOR_VERSION_NUMBER WX_MINOR_VERSION_NUMBER WX_RELEASE_NUMBER WX_LIBRARY_NAME_STATIC WX_LIBRARY_NAME_SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WX_LIBRARY_IMPORTLIB WX_TARGET_LIBRARY WX_LIBRARY_LINK1 WX_LIBRARY_LINK2 PROGRAM_EXT WX_LIBRARY_NAME_STATIC_GL WX_LIBRARY_NAME_SHARED_GL WX_TARGET_LIBRARY_GL WX_LIBRARY_LINK1_GL WX_LIBRARY_LINK2_GL WX_ALL WX_ALL_INSTALLED SHARED_LD WX_TARGET_LIBRARY_TYPE STATIC_FLAG WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLKIT_VPATH TOOLCHAIN_NAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS top_builddir_wxconfig cross_compiling WXCONFIG_EXTRALIBS WXCONFIG_LIBS WXCONFIG_LIBS_GL WXCONFIG_LIBS_STATIC WXCONFIG_LIBS_STATIC_GL WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX ALL_OBJECTS ALL_HEADERS ALL_SOURCES GUIDIST PORT_FILES DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL LDFLAGS_VERSIONING LDFLAGS_EXE OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA MACOSX_BUNDLE LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL AS LD MAKEINFO INSTALL_LIBRARY LIBOBJS LTLIBOBJS' |
e6cc62c6 | 317 | ac_subst_files='' |
10f2d63a VZ |
318 | |
319 | # Initialize some variables set by options. | |
e6cc62c6 VS |
320 | ac_init_help= |
321 | ac_init_version=false | |
10f2d63a VZ |
322 | # The variables have the same names as the options, with |
323 | # dashes changed to underlines. | |
e6cc62c6 | 324 | cache_file=/dev/null |
10f2d63a | 325 | exec_prefix=NONE |
10f2d63a | 326 | no_create= |
10f2d63a VZ |
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= | |
10f2d63a VZ |
335 | verbose= |
336 | x_includes=NONE | |
337 | x_libraries=NONE | |
e6cc62c6 VS |
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. | |
10f2d63a VZ |
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 | ||
10f2d63a VZ |
357 | ac_prev= |
358 | for ac_option | |
359 | do | |
10f2d63a VZ |
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 | ||
e6cc62c6 | 367 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
10f2d63a VZ |
368 | |
369 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
370 | ||
e6cc62c6 | 371 | case $ac_option in |
10f2d63a VZ |
372 | |
373 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
374 | ac_prev=bindir ;; | |
375 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
e6cc62c6 | 376 | bindir=$ac_optarg ;; |
10f2d63a VZ |
377 | |
378 | -build | --build | --buil | --bui | --bu) | |
e6cc62c6 | 379 | ac_prev=build_alias ;; |
10f2d63a | 380 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
e6cc62c6 | 381 | build_alias=$ac_optarg ;; |
10f2d63a VZ |
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=*) | |
e6cc62c6 VS |
388 | cache_file=$ac_optarg ;; |
389 | ||
390 | --config-cache | -C) | |
391 | cache_file=config.cache ;; | |
10f2d63a VZ |
392 | |
393 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
394 | ac_prev=datadir ;; | |
395 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
396 | | --da=*) | |
e6cc62c6 | 397 | datadir=$ac_optarg ;; |
10f2d63a VZ |
398 | |
399 | -disable-* | --disable-*) | |
e6cc62c6 | 400 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
10f2d63a | 401 | # Reject names that are not valid shell variable names. |
e6cc62c6 VS |
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" ;; | |
10f2d63a VZ |
407 | |
408 | -enable-* | --enable-*) | |
e6cc62c6 | 409 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
10f2d63a | 410 | # Reject names that are not valid shell variable names. |
e6cc62c6 VS |
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"`;; | |
10f2d63a VZ |
417 | *) ac_optarg=yes ;; |
418 | esac | |
e6cc62c6 | 419 | eval "enable_$ac_feature='$ac_optarg'" ;; |
10f2d63a VZ |
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=*) | |
e6cc62c6 | 428 | exec_prefix=$ac_optarg ;; |
10f2d63a VZ |
429 | |
430 | -gas | --gas | --ga | --g) | |
431 | # Obsolete; use --with-gas. | |
432 | with_gas=yes ;; | |
433 | ||
e6cc62c6 VS |
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 ;; | |
10f2d63a VZ |
440 | |
441 | -host | --host | --hos | --ho) | |
e6cc62c6 | 442 | ac_prev=host_alias ;; |
10f2d63a | 443 | -host=* | --host=* | --hos=* | --ho=*) |
e6cc62c6 | 444 | host_alias=$ac_optarg ;; |
10f2d63a VZ |
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=*) | |
e6cc62c6 | 451 | includedir=$ac_optarg ;; |
10f2d63a VZ |
452 | |
453 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
454 | ac_prev=infodir ;; | |
455 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
e6cc62c6 | 456 | infodir=$ac_optarg ;; |
10f2d63a VZ |
457 | |
458 | -libdir | --libdir | --libdi | --libd) | |
459 | ac_prev=libdir ;; | |
460 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
e6cc62c6 | 461 | libdir=$ac_optarg ;; |
10f2d63a VZ |
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=*) | |
e6cc62c6 | 468 | libexecdir=$ac_optarg ;; |
10f2d63a VZ |
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=*) | |
e6cc62c6 | 477 | localstatedir=$ac_optarg ;; |
10f2d63a VZ |
478 | |
479 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
480 | ac_prev=mandir ;; | |
481 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
e6cc62c6 | 482 | mandir=$ac_optarg ;; |
10f2d63a VZ |
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 \ | |
e6cc62c6 | 489 | | --no-cr | --no-c | -n) |
10f2d63a VZ |
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=*) | |
e6cc62c6 | 503 | oldincludedir=$ac_optarg ;; |
10f2d63a VZ |
504 | |
505 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
506 | ac_prev=prefix ;; | |
507 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
e6cc62c6 | 508 | prefix=$ac_optarg ;; |
10f2d63a VZ |
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=*) | |
e6cc62c6 | 515 | program_prefix=$ac_optarg ;; |
10f2d63a VZ |
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=*) | |
e6cc62c6 | 522 | program_suffix=$ac_optarg ;; |
10f2d63a VZ |
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=*) | |
e6cc62c6 | 539 | program_transform_name=$ac_optarg ;; |
10f2d63a VZ |
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=*) | |
e6cc62c6 | 549 | sbindir=$ac_optarg ;; |
10f2d63a VZ |
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=*) | |
e6cc62c6 | 560 | sharedstatedir=$ac_optarg ;; |
10f2d63a VZ |
561 | |
562 | -site | --site | --sit) | |
563 | ac_prev=site ;; | |
564 | -site=* | --site=* | --sit=*) | |
e6cc62c6 | 565 | site=$ac_optarg ;; |
10f2d63a VZ |
566 | |
567 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
568 | ac_prev=srcdir ;; | |
569 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
e6cc62c6 | 570 | srcdir=$ac_optarg ;; |
10f2d63a VZ |
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=*) | |
e6cc62c6 | 577 | sysconfdir=$ac_optarg ;; |
10f2d63a VZ |
578 | |
579 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
e6cc62c6 | 580 | ac_prev=target_alias ;; |
10f2d63a | 581 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
e6cc62c6 | 582 | target_alias=$ac_optarg ;; |
10f2d63a VZ |
583 | |
584 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
585 | verbose=yes ;; | |
586 | ||
e6cc62c6 VS |
587 | -version | --version | --versio | --versi | --vers | -V) |
588 | ac_init_version=: ;; | |
10f2d63a VZ |
589 | |
590 | -with-* | --with-*) | |
e6cc62c6 | 591 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
10f2d63a | 592 | # Reject names that are not valid shell variable names. |
e6cc62c6 VS |
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; }; } | |
10f2d63a | 596 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
e6cc62c6 VS |
597 | case $ac_option in |
598 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
10f2d63a VZ |
599 | *) ac_optarg=yes ;; |
600 | esac | |
e6cc62c6 | 601 | eval "with_$ac_package='$ac_optarg'" ;; |
10f2d63a VZ |
602 | |
603 | -without-* | --without-*) | |
e6cc62c6 | 604 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
10f2d63a | 605 | # Reject names that are not valid shell variable names. |
e6cc62c6 VS |
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" ;; | |
10f2d63a VZ |
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=*) | |
e6cc62c6 | 621 | x_includes=$ac_optarg ;; |
10f2d63a VZ |
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=*) | |
e6cc62c6 | 628 | x_libraries=$ac_optarg ;; |
10f2d63a | 629 | |
e6cc62c6 VS |
630 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
631 | Try \`$0 --help' for more information." >&2 | |
632 | { (exit 1); exit 1; }; } | |
10f2d63a VZ |
633 | ;; |
634 | ||
e6cc62c6 VS |
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 | ||
10f2d63a | 645 | *) |
e6cc62c6 VS |
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} | |
10f2d63a VZ |
651 | ;; |
652 | ||
653 | esac | |
654 | done | |
655 | ||
656 | if test -n "$ac_prev"; then | |
e6cc62c6 VS |
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; }; } | |
a0b9e27f | 660 | fi |
a0b9e27f | 661 | |
e6cc62c6 VS |
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 | |
8284b0c5 | 672 | |
e6cc62c6 VS |
673 | # Be sure to have absolute paths. |
674 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
eea650d8 | 675 | localstatedir libdir includedir oldincludedir infodir mandir |
10f2d63a | 676 | do |
e6cc62c6 VS |
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; }; };; | |
10f2d63a VZ |
682 | esac |
683 | done | |
684 | ||
e6cc62c6 VS |
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 | |
247f5006 | 702 | |
e6cc62c6 VS |
703 | ac_tool_prefix= |
704 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
705 | ||
706 | test "$silent" = yes && exec 6>/dev/null | |
10f2d63a | 707 | |
10f2d63a VZ |
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. | |
e6cc62c6 VS |
713 | ac_confdir=`(dirname "$0") 2>/dev/null || |
714 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
eea650d8 VS |
715 | X"$0" : 'X\(//\)[^/]' \| \ |
716 | X"$0" : 'X\(//\)$' \| \ | |
717 | X"$0" : 'X\(/\)' \| \ | |
718 | . : '\(.\)' 2>/dev/null || | |
e6cc62c6 VS |
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'` | |
10f2d63a VZ |
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 | |
e6cc62c6 VS |
734 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
735 | { (exit 1); exit 1; }; } | |
10f2d63a | 736 | else |
e6cc62c6 VS |
737 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
738 | { (exit 1); exit 1; }; } | |
10f2d63a VZ |
739 | fi |
740 | fi | |
e6cc62c6 VS |
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 | |
328a083c | 789 | |
e6cc62c6 VS |
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 | |
e46d2a18 | 797 | \`configure' configures wxWindows 2.5.1 to adapt to many kinds of systems. |
10f2d63a | 798 | |
e6cc62c6 | 799 | Usage: $0 [OPTION]... [VAR=VALUE]... |
10f2d63a | 800 | |
e6cc62c6 VS |
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. | |
8284b0c5 | 803 | |
e6cc62c6 VS |
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 | |
eea650d8 | 822 | [$ac_default_prefix] |
e6cc62c6 | 823 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
eea650d8 | 824 | [PREFIX] |
e6cc62c6 VS |
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 | |
e46d2a18 | 863 | short | recursive ) echo "Configuration of wxWindows 2.5.1:";; |
e6cc62c6 VS |
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 | |
9747f85d | 871 | --disable-monolithic don't build wxWindows as single library |
e6cc62c6 VS |
872 | --enable-universal use wxWindows GUI controls instead of native ones |
873 | --enable-nanox use NanoX | |
874 | --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL) | |
875 | --enable-shared create shared library code | |
e6cc62c6 VS |
876 | --enable-optimise create optimised code |
877 | --enable-debug same as debug_flag and debug_info | |
df5168c4 | 878 | --enable-stl use STL for containers |
e6cc62c6 VS |
879 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!) |
880 | --enable-debug_info create code with debugging information | |
881 | --enable-debug_gdb create code with extra GDB debugging information | |
882 | --enable-debug_cntxt use wxDebugContext | |
883 | --enable-mem_tracing create code with memory tracing | |
884 | --enable-profile create code with profiling information | |
885 | --enable-no_rtti create code without RTTI information | |
886 | --enable-no_exceptions create code without C++ exceptions handling | |
887 | --enable-permissive compile code disregarding strict ANSI | |
888 | --enable-no_deps create code without dependency information | |
e6cc62c6 VS |
889 | --enable-compat22 enable wxWindows 2.2 compatibility |
890 | --disable-compat24 disable wxWindows 2.4 compatibility | |
891 | --enable-rpath=DIR output the rpath flag from wx-config | |
892 | --enable-intl use internationalization system | |
893 | --enable-config use wxConfig (and derived) classes | |
894 | --enable-protocols use wxProtocol and derived classes | |
895 | --enable-ftp use wxFTP (requires wxProtocol | |
896 | --enable-http use wxHTTP (requires wxProtocol | |
897 | --enable-fileproto use wxFileProto class (requires wxProtocol | |
898 | --enable-sockets use socket/network classes | |
e46d2a18 | 899 | --enable-ole use OLE classes (Win32 only) |
e6cc62c6 VS |
900 | --enable-dataobj use data object classes |
901 | --enable-ipc use interprocess communication (wxSocket etc.) | |
e46d2a18 VS |
902 | --enable-apple_ieee use the Apple IEEE codec |
903 | --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only) | |
e6cc62c6 VS |
904 | --enable-cmdline use wxCmdLineParser class |
905 | --enable-datetime use wxDateTime class | |
e6cc62c6 | 906 | --enable-dialupman use dialup network classes |
e6cc62c6 VS |
907 | --enable-dynlib use wxLibrary class for DLL loading |
908 | --enable-dynamicloader use (new) wxDynamicLibrary class | |
e46d2a18 VS |
909 | --enable-exceptions build exception-safe library |
910 | --enable-ffile use wxFFile class | |
911 | --enable-file use wxFile class | |
912 | --enable-filesystem use virtual file systems classes | |
913 | --enable-fontmap use font encodings conversion classes | |
914 | --enable-fs_inet use virtual HTTP/FTP filesystems | |
915 | --enable-fs_zip use virtual ZIP filesystems | |
e6cc62c6 VS |
916 | --enable-geometry use geometry class |
917 | --enable-log use logging system | |
e46d2a18 VS |
918 | --enable-longlong use wxLongLong class |
919 | --enable-mimetype use wxMimeTypesManager | |
920 | --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only) | |
921 | --enable-snglinst use wxSingleInstanceChecker class | |
e6cc62c6 | 922 | --enable-streams use wxStream etc classes |
e46d2a18 VS |
923 | --enable-std_iostreams use standard C++ stream classes |
924 | --enable-stopwatch use wxStopWatch class | |
925 | --enable-sysoptions use wxSystemOptions | |
e6cc62c6 VS |
926 | --enable-textbuf use wxTextBuffer class |
927 | --enable-textfile use wxTextFile class | |
e46d2a18 | 928 | --enable-timer use wxTimer class |
e6cc62c6 | 929 | --enable-unicode compile wxString with Unicode support |
e46d2a18 | 930 | --enable-wave use wxWave class |
e6cc62c6 | 931 | --enable-wxprintfv use wxWindows implementation of vprintf() |
e6cc62c6 | 932 | --enable-zipstream use wxZipInputStream |
7015ef3a | 933 | --enable-gzstream use wxGzipInputStream |
e6cc62c6 VS |
934 | --enable-url use wxURL class |
935 | --enable-protocol use wxProtocol class | |
936 | --enable-protocol-http HTTP support in wxProtocol | |
937 | --enable-protocol-ftp FTP support in wxProtocol | |
938 | --enable-protocol-file FILE support in wxProtocol | |
939 | --enable-threads use threads | |
940 | --enable-docview use document view architecture | |
941 | --enable-help use help subsystem | |
942 | --enable-mshtmlhelp use MS HTML Help (win32) | |
943 | --enable-html use wxHTML sub-library | |
944 | --enable-htmlhelp use wxHTML-based help | |
945 | --enable-constraints use layout-constraints system | |
946 | --enable-printarch use printing architecture | |
947 | --enable-mdi use multiple document interface architecture | |
948 | --enable-loggui use standard GUI logger | |
949 | --enable-logwin use wxLogWindow | |
950 | --enable-logdialog use wxLogDialog | |
951 | --enable-postscript use wxPostscriptDC device context (default for gtk+) | |
952 | --enable-prologio not available; see contrib | |
953 | --enable-resources not available; see contrib | |
954 | --enable-clipboard use wxClipboard class | |
955 | --enable-dnd use Drag'n'Drop classes | |
956 | --enable-metafile use win32 metafiles | |
957 | --enable-controls use all usual controls | |
958 | --enable-accel use accelerators | |
959 | --enable-button use wxButton class | |
960 | --enable-bmpbutton use wxBitmapButton class | |
961 | --enable-calendar use wxCalendarCtrl class | |
962 | --enable-caret use wxCaret class | |
963 | --enable-checkbox use wxCheckBox class | |
964 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class | |
965 | --enable-choice use wxChoice class | |
966 | --enable-combobox use wxComboBox class | |
967 | --enable-display use wxDisplay class | |
968 | --enable-gauge use wxGauge class | |
969 | --enable-grid use wxGrid class | |
970 | --enable-imaglist use wxImageList class | |
0e012a93 | 971 | --enable-listbook use wxListbook class |
e6cc62c6 VS |
972 | --enable-listbox use wxListBox class |
973 | --enable-listctrl use wxListCtrl class | |
974 | --enable-notebook use wxNotebook class | |
975 | --enable-radiobox use wxRadioBox class | |
976 | --enable-radiobtn use wxRadioButton class | |
977 | --enable-sash use wxSashWindow class | |
978 | --enable-scrollbar use wxScrollBar class and scrollable windows | |
979 | --enable-slider use wxSlider class | |
980 | --enable-spinbtn use wxSpinButton class | |
981 | --enable-spinctrl use wxSpinCtrl class | |
982 | --enable-splitter use wxSplitterWindow class | |
983 | --enable-statbmp use wxStaticBitmap class | |
984 | --enable-statbox use wxStaticBox class | |
985 | --enable-statline use wxStaticLine class | |
986 | --enable-stattext use wxStaticText class | |
987 | --enable-statusbar use wxStatusBar class | |
988 | --enable-tabdialog use wxTabControl class | |
989 | --enable-textctrl use wxTextCtrl class | |
990 | --enable-togglebtn use wxToggleButton class | |
991 | --enable-toolbar use wxToolBar class | |
992 | --enable-tbarnative use native wxToolBar class | |
993 | --enable-tbarsmpl use wxToolBarSimple class | |
994 | --enable-treectrl use wxTreeCtrl class | |
995 | --enable-tipwindow use wxTipWindow class | |
996 | --enable-popupwin use wxPopUpWindow class | |
997 | --enable-commondlg use all common dialogs | |
998 | --enable-choicedlg use wxChoiceDialog | |
999 | --enable-coldlg use wxColourDialog | |
1000 | --enable-filedlg use wxFileDialog | |
1001 | --enable-finddlg use wxFindReplaceDialog | |
1002 | --enable-fontdlg use wxFontDialog | |
1003 | --enable-dirdlg use wxDirDialog | |
1004 | --enable-msgdlg use wxMessageDialog | |
1005 | --enable-numberdlg use wxNumberEntryDialog | |
1006 | --enable-splash use wxSplashScreen | |
1007 | --enable-textdlg use wxTextDialog | |
1008 | --enable-tipdlg use startup tips | |
1009 | --enable-progressdlg use wxProgressDialog | |
1010 | --enable-wizarddlg use wxWizard | |
1011 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes | |
1012 | --enable-miniframe use wxMiniFrame class | |
1013 | --enable-tooltips use wxToolTip class | |
1014 | --enable-splines use spline drawing code | |
1015 | --enable-validators use wxValidator and derived classes | |
1016 | --enable-busyinfo use wxBusyInfo | |
1017 | --enable-joystick use wxJoystick (Linux only) | |
1018 | --enable-metafiles use wxMetaFile (Windows only) | |
1019 | --enable-dragimage use wxDragImage | |
1020 | --enable-accessibility enable accessibility support | |
1021 | --enable-palette use wxPalette class | |
1022 | --enable-image use wxImage class | |
1023 | --enable-gif use gif images (GIF file format) | |
1024 | --enable-pcx use pcx images (PCX file format) | |
1025 | --enable-iff use iff images (IFF file format) | |
1026 | --enable-pnm use pnm images (PNM file format) | |
1027 | --enable-xpm use xpm images (XPM file format) | |
1028 | --enable-icocur use Windows ICO and CUR formats | |
029b47ad VS |
1029 | --enable-official_build official build of wxWindows (win32 DLL only) |
1030 | --enable-vendor=VENDOR vendor name (win32 DLL only) | |
e6cc62c6 VS |
1031 | --disable-largefile omit support for large files |
1032 | --disable-gtktest do not try to compile and run a test GTK+ program | |
1033 | --disable-gtktest Do not try to compile and run a test GTK program | |
45842500 | 1034 | --disable-precomp-headers don't use precompiled headers even if compiler can |
e6cc62c6 VS |
1035 | |
1036 | Optional Packages: | |
1037 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1038 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1039 | --with-gtk use GTK+ | |
1040 | --with-motif use Motif/Lesstif | |
1041 | --with-mac use Mac OS X | |
1042 | --with-cocoa use Cocoa | |
1043 | --with-wine use Wine | |
1044 | --with-msw use MS-Windows | |
1045 | --with-pm use OS/2 Presentation Manager | |
1046 | --with-mgl use SciTech MGL | |
1047 | --with-microwin use MicroWindows | |
1048 | --with-x11 use X11 | |
1049 | --with-libpng use libpng (PNG image format) | |
1050 | --with-libjpeg use libjpeg (JPEG file format) | |
1051 | --with-libtiff use libtiff (TIFF file format) | |
89fe663f | 1052 | --with-libxpm use libxpm (XPM file format) |
3527f29c | 1053 | --with-libmspack use libmspack (CHM help files loading) |
e6cc62c6 VS |
1054 | --with-opengl use OpenGL (or Mesa) |
1055 | --with-dmalloc use dmalloc library (http://dmalloc.com/) | |
1056 | --with-regex enable support for wxRegEx class | |
1057 | --with-zlib use zlib for LZW compression | |
1058 | --with-odbc use the IODBC and wxODBC classes | |
672abd7a | 1059 | --with-expat enable XML support using expat parser |
e6cc62c6 VS |
1060 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) |
1061 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) | |
1062 | --with-x use the X Window System | |
1063 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib | |
1064 | ||
1065 | Some influential environment variables: | |
1066 | CC C compiler command | |
1067 | CFLAGS C compiler flags | |
1068 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1069 | nonstandard directory <lib dir> | |
1070 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1071 | headers in a nonstandard directory <include dir> | |
1072 | CPP C preprocessor | |
1073 | CXX C++ compiler command | |
1074 | CXXFLAGS C++ compiler flags | |
1075 | CXXCPP C++ preprocessor | |
1076 | ||
1077 | Use these variables to override the choices made by `configure' or to help | |
1078 | it to find libraries and programs with nonstandard names/locations. | |
1079 | ||
1080 | Report bugs to <wx-dev@lists.wxwindows.org>. | |
1081 | _ACEOF | |
1082 | fi | |
1083 | ||
1084 | if test "$ac_init_help" = "recursive"; then | |
1085 | # If there are subdirs, report their specific --help. | |
1086 | ac_popdir=`pwd` | |
1087 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1088 | test -d $ac_dir || continue | |
1089 | ac_builddir=. | |
1090 | ||
1091 | if test "$ac_dir" != .; then | |
1092 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1093 | # A "../" for each directory in $ac_dir_suffix. | |
1094 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1095 | else | |
1096 | ac_dir_suffix= ac_top_builddir= | |
1097 | fi | |
1098 | ||
1099 | case $srcdir in | |
1100 | .) # No --srcdir option. We are building in place. | |
1101 | ac_srcdir=. | |
1102 | if test -z "$ac_top_builddir"; then | |
1103 | ac_top_srcdir=. | |
1104 | else | |
1105 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1106 | fi ;; | |
1107 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1108 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1109 | ac_top_srcdir=$srcdir ;; | |
1110 | *) # Relative path. | |
1111 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1112 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1113 | esac | |
eea650d8 VS |
1114 | case "$ac_dir" in |
1115 | .) ac_abs_builddir=$ac_builddir;; | |
1116 | *) | |
1117 | case $ac_builddir in | |
1118 | .) ac_abs_builddir="$ac_dir";; | |
1119 | [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;; | |
1120 | *) ac_abs_builddir="$ac_dir"/$ac_builddir;; | |
1121 | esac;; | |
1122 | esac | |
1123 | case "$ac_dir" in | |
1124 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1125 | *) | |
1126 | case ${ac_top_builddir}. in | |
1127 | .) ac_abs_top_builddir="$ac_dir";; | |
1128 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1129 | *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;; | |
1130 | esac;; | |
1131 | esac | |
1132 | case "$ac_dir" in | |
1133 | .) ac_abs_srcdir=$ac_srcdir;; | |
1134 | *) | |
1135 | case $ac_srcdir in | |
1136 | .) ac_abs_srcdir="$ac_dir";; | |
1137 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
1138 | *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;; | |
1139 | esac;; | |
1140 | esac | |
1141 | case "$ac_dir" in | |
1142 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1143 | *) | |
1144 | case $ac_top_srcdir in | |
1145 | .) ac_abs_top_srcdir="$ac_dir";; | |
1146 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1147 | *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;; | |
1148 | esac;; | |
1149 | esac | |
e6cc62c6 VS |
1150 | |
1151 | cd $ac_dir | |
1152 | # Check for guested configure; otherwise get Cygnus style configure. | |
1153 | if test -f $ac_srcdir/configure.gnu; then | |
1154 | echo | |
1155 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1156 | elif test -f $ac_srcdir/configure; then | |
1157 | echo | |
1158 | $SHELL $ac_srcdir/configure --help=recursive | |
1159 | elif test -f $ac_srcdir/configure.ac || | |
eea650d8 | 1160 | test -f $ac_srcdir/configure.in; then |
e6cc62c6 VS |
1161 | echo |
1162 | $ac_configure --help | |
1163 | else | |
1164 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1165 | fi | |
1166 | cd $ac_popdir | |
1167 | done | |
1168 | fi | |
8284b0c5 | 1169 | |
e6cc62c6 VS |
1170 | test -n "$ac_init_help" && exit 0 |
1171 | if $ac_init_version; then | |
1172 | cat <<\_ACEOF | |
e46d2a18 | 1173 | wxWindows configure 2.5.1 |
eea650d8 | 1174 | generated by GNU Autoconf 2.58 |
10f2d63a | 1175 | |
eea650d8 | 1176 | Copyright (C) 2003 Free Software Foundation, Inc. |
e6cc62c6 VS |
1177 | This configure script is free software; the Free Software Foundation |
1178 | gives unlimited permission to copy, distribute and modify it. | |
1179 | _ACEOF | |
1180 | exit 0 | |
7c66a493 | 1181 | fi |
e6cc62c6 VS |
1182 | exec 5>config.log |
1183 | cat >&5 <<_ACEOF | |
1184 | This file contains any messages produced by compilers while | |
1185 | running configure, to aid debugging if configure makes a mistake. | |
1186 | ||
e46d2a18 | 1187 | It was created by wxWindows $as_me 2.5.1, which was |
eea650d8 | 1188 | generated by GNU Autoconf 2.58. Invocation command line was |
e6cc62c6 VS |
1189 | |
1190 | $ $0 $@ | |
1191 | ||
1192 | _ACEOF | |
1193 | { | |
1194 | cat <<_ASUNAME | |
1195 | ## --------- ## | |
1196 | ## Platform. ## | |
1197 | ## --------- ## | |
1198 | ||
1199 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1200 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1201 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1202 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1203 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1204 | ||
1205 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1206 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1207 | ||
1208 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1209 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1210 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1211 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1212 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1213 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1214 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1215 | ||
1216 | _ASUNAME | |
1217 | ||
1218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1219 | for as_dir in $PATH | |
1220 | do | |
1221 | IFS=$as_save_IFS | |
1222 | test -z "$as_dir" && as_dir=. | |
1223 | echo "PATH: $as_dir" | |
1224 | done | |
1225 | ||
1226 | } >&5 | |
1227 | ||
1228 | cat >&5 <<_ACEOF | |
1229 | ||
1230 | ||
1231 | ## ----------- ## | |
1232 | ## Core tests. ## | |
1233 | ## ----------- ## | |
1234 | ||
1235 | _ACEOF | |
1236 | ||
1237 | ||
1238 | # Keep a trace of the command line. | |
1239 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1240 | # Strip out --silent because we don't want to record it for future runs. | |
1241 | # Also quote any args containing shell meta-characters. | |
1242 | # Make two passes to allow for proper duplicate-argument suppression. | |
1243 | ac_configure_args= | |
1244 | ac_configure_args0= | |
1245 | ac_configure_args1= | |
1246 | ac_sep= | |
1247 | ac_must_keep_next=false | |
1248 | for ac_pass in 1 2 | |
1249 | do | |
1250 | for ac_arg | |
1251 | do | |
1252 | case $ac_arg in | |
1253 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1254 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1255 | | -silent | --silent | --silen | --sile | --sil) | |
1256 | continue ;; | |
1257 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1258 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1259 | esac | |
1260 | case $ac_pass in | |
1261 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1262 | 2) | |
1263 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1264 | if test $ac_must_keep_next = true; then | |
eea650d8 | 1265 | ac_must_keep_next=false # Got value, back to normal. |
e6cc62c6 | 1266 | else |
eea650d8 VS |
1267 | case $ac_arg in |
1268 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1269 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1270 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1271 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1272 | case "$ac_configure_args0 " in | |
1273 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1274 | esac | |
1275 | ;; | |
1276 | -* ) ac_must_keep_next=true ;; | |
1277 | esac | |
e6cc62c6 VS |
1278 | fi |
1279 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1280 | # Get rid of the leading space. | |
1281 | ac_sep=" " | |
1282 | ;; | |
1283 | esac | |
1284 | done | |
1285 | done | |
1286 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1287 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1288 | ||
1289 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1290 | # config.log. We remove comments because anyway the quotes in there | |
1291 | # would cause problems or look ugly. | |
1292 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1293 | # such as our DU 5.0 friend, will then `close' the trap. | |
1294 | trap 'exit_status=$? | |
1295 | # Save into config.log some information that might help in debugging. | |
1296 | { | |
1297 | echo | |
1298 | ||
1299 | cat <<\_ASBOX | |
1300 | ## ---------------- ## | |
1301 | ## Cache variables. ## | |
1302 | ## ---------------- ## | |
1303 | _ASBOX | |
1304 | echo | |
1305 | # The following way of writing the cache mishandles newlines in values, | |
1306 | { | |
1307 | (set) 2>&1 | | |
1308 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1309 | *ac_space=\ *) | |
1310 | sed -n \ | |
eea650d8 VS |
1311 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1312 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
e6cc62c6 VS |
1313 | ;; |
1314 | *) | |
1315 | sed -n \ | |
eea650d8 | 1316 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
e6cc62c6 VS |
1317 | ;; |
1318 | esac; | |
1319 | } | |
1320 | echo | |
1321 | ||
1322 | cat <<\_ASBOX | |
1323 | ## ----------------- ## | |
1324 | ## Output variables. ## | |
1325 | ## ----------------- ## | |
1326 | _ASBOX | |
1327 | echo | |
1328 | for ac_var in $ac_subst_vars | |
1329 | do | |
1330 | eval ac_val=$`echo $ac_var` | |
1331 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1332 | done | sort | |
1333 | echo | |
1334 | ||
1335 | if test -n "$ac_subst_files"; then | |
1336 | cat <<\_ASBOX | |
1337 | ## ------------- ## | |
1338 | ## Output files. ## | |
1339 | ## ------------- ## | |
1340 | _ASBOX | |
1341 | echo | |
1342 | for ac_var in $ac_subst_files | |
1343 | do | |
1344 | eval ac_val=$`echo $ac_var` | |
eea650d8 | 1345 | echo "$ac_var='"'"'$ac_val'"'"'" |
e6cc62c6 VS |
1346 | done | sort |
1347 | echo | |
1348 | fi | |
1349 | ||
1350 | if test -s confdefs.h; then | |
1351 | cat <<\_ASBOX | |
1352 | ## ----------- ## | |
1353 | ## confdefs.h. ## | |
1354 | ## ----------- ## | |
1355 | _ASBOX | |
1356 | echo | |
1357 | sed "/^$/d" confdefs.h | sort | |
1358 | echo | |
1359 | fi | |
1360 | test "$ac_signal" != 0 && | |
1361 | echo "$as_me: caught signal $ac_signal" | |
1362 | echo "$as_me: exit $exit_status" | |
1363 | } >&5 | |
eea650d8 | 1364 | rm -f core *.core && |
e6cc62c6 VS |
1365 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1366 | exit $exit_status | |
1367 | ' 0 | |
1368 | for ac_signal in 1 2 13 15; do | |
1369 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1370 | done | |
1371 | ac_signal=0 | |
1372 | ||
1373 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1374 | rm -rf conftest* confdefs.h | |
1375 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1376 | echo >confdefs.h | |
1377 | ||
1378 | # Predefined preprocessor variables. | |
1379 | ||
1380 | cat >>confdefs.h <<_ACEOF | |
1381 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1382 | _ACEOF | |
1383 | ||
1384 | ||
1385 | cat >>confdefs.h <<_ACEOF | |
1386 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1387 | _ACEOF | |
1388 | ||
1389 | ||
1390 | cat >>confdefs.h <<_ACEOF | |
1391 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1392 | _ACEOF | |
1393 | ||
1394 | ||
1395 | cat >>confdefs.h <<_ACEOF | |
1396 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1397 | _ACEOF | |
1398 | ||
1399 | ||
1400 | cat >>confdefs.h <<_ACEOF | |
1401 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1402 | _ACEOF | |
1403 | ||
1404 | ||
1405 | # Let the site file select an alternate cache file if it wants to. | |
1406 | # Prefer explicitly selected file to automatically selected ones. | |
1407 | if test -z "$CONFIG_SITE"; then | |
1408 | if test "x$prefix" != xNONE; then | |
1409 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1410 | else | |
1411 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1412 | fi | |
1413 | fi | |
1414 | for ac_site_file in $CONFIG_SITE; do | |
1415 | if test -r "$ac_site_file"; then | |
1416 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1417 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1418 | sed 's/^/| /' "$ac_site_file" >&5 | |
1419 | . "$ac_site_file" | |
1420 | fi | |
1421 | done | |
1422 | ||
1423 | if test -r "$cache_file"; then | |
1424 | # Some versions of bash will fail to source /dev/null (special | |
1425 | # files actually), so we avoid doing that. | |
1426 | if test -f "$cache_file"; then | |
1427 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1428 | echo "$as_me: loading cache $cache_file" >&6;} | |
1429 | case $cache_file in | |
1430 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1431 | *) . ./$cache_file;; | |
1432 | esac | |
1433 | fi | |
1434 | else | |
1435 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1436 | echo "$as_me: creating cache $cache_file" >&6;} | |
1437 | >$cache_file | |
1438 | fi | |
1439 | ||
1440 | # Check that the precious variables saved in the cache have kept the same | |
1441 | # value. | |
1442 | ac_cache_corrupted=false | |
1443 | for ac_var in `(set) 2>&1 | | |
eea650d8 | 1444 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
e6cc62c6 VS |
1445 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1446 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1447 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1448 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1449 | case $ac_old_set,$ac_new_set in | |
1450 | set,) | |
1451 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1452 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1453 | ac_cache_corrupted=: ;; | |
1454 | ,set) | |
1455 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1456 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1457 | ac_cache_corrupted=: ;; | |
1458 | ,);; | |
1459 | *) | |
1460 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
eea650d8 | 1461 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
e6cc62c6 | 1462 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
eea650d8 | 1463 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
e6cc62c6 | 1464 | echo "$as_me: former value: $ac_old_val" >&2;} |
eea650d8 | 1465 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
e6cc62c6 | 1466 | echo "$as_me: current value: $ac_new_val" >&2;} |
eea650d8 | 1467 | ac_cache_corrupted=: |
e6cc62c6 VS |
1468 | fi;; |
1469 | esac | |
1470 | # Pass precious variables to config.status. | |
1471 | if test "$ac_new_set" = set; then | |
1472 | case $ac_new_val in | |
1473 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1474 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1475 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1476 | esac | |
1477 | case " $ac_configure_args " in | |
1478 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1479 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1480 | esac | |
1481 | fi | |
1482 | done | |
1483 | if $ac_cache_corrupted; then | |
1484 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1485 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1486 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1487 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1488 | { (exit 1); exit 1; }; } | |
1489 | fi | |
1490 | ||
1491 | ac_ext=c | |
1492 | ac_cpp='$CPP $CPPFLAGS' | |
1493 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1494 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1495 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1496 | ||
1497 | ||
1498 | ||
1499 | ||
1500 | ||
1501 | ||
1502 | ||
1503 | ||
1504 | ||
1505 | ||
1506 | ||
1507 | ||
1508 | ||
1509 | ||
1510 | ||
1511 | ||
1512 | ||
698dcdb6 | 1513 | |
8284b0c5 | 1514 | |
7c66a493 | 1515 | |
a0b9e27f MB |
1516 | |
1517 | ||
a0b9e27f | 1518 | |
a0b9e27f | 1519 | |
a0b9e27f | 1520 | |
a0b9e27f | 1521 | |
a0b9e27f | 1522 | |
a0b9e27f | 1523 | |
e6cc62c6 VS |
1524 | |
1525 | ||
1526 | ac_aux_dir= | |
1527 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1528 | if test -f $ac_dir/install-sh; then | |
1529 | ac_aux_dir=$ac_dir | |
1530 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1531 | break | |
1532 | elif test -f $ac_dir/install.sh; then | |
1533 | ac_aux_dir=$ac_dir | |
1534 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1535 | break | |
1536 | elif test -f $ac_dir/shtool; then | |
1537 | ac_aux_dir=$ac_dir | |
1538 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1539 | break | |
1540 | fi | |
1541 | done | |
1542 | if test -z "$ac_aux_dir"; then | |
1543 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1544 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1545 | { (exit 1); exit 1; }; } | |
1546 | fi | |
1547 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1548 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1549 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1550 | ||
1551 | # Make sure we can run config.sub. | |
1552 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1553 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1554 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1555 | { (exit 1); exit 1; }; } | |
1556 | ||
1557 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1558 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1559 | if test "${ac_cv_build+set}" = set; then | |
1560 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1561 | else | |
1562 | ac_cv_build_alias=$build_alias | |
1563 | test -z "$ac_cv_build_alias" && | |
1564 | ac_cv_build_alias=`$ac_config_guess` | |
1565 | test -z "$ac_cv_build_alias" && | |
1566 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1567 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1568 | { (exit 1); exit 1; }; } | |
1569 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1570 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1571 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1572 | { (exit 1); exit 1; }; } | |
1573 | ||
1574 | fi | |
1575 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1576 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1577 | build=$ac_cv_build | |
1578 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1579 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1580 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1581 | ||
1582 | ||
1583 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1584 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1585 | if test "${ac_cv_host+set}" = set; then | |
1586 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1587 | else | |
1588 | ac_cv_host_alias=$host_alias | |
1589 | test -z "$ac_cv_host_alias" && | |
1590 | ac_cv_host_alias=$ac_cv_build_alias | |
1591 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1592 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1593 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1594 | { (exit 1); exit 1; }; } | |
1595 | ||
1596 | fi | |
1597 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1598 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1599 | host=$ac_cv_host | |
1600 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1601 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1602 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1603 | ||
1604 | ||
1605 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1606 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1607 | if test "${ac_cv_target+set}" = set; then | |
1608 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1609 | else | |
1610 | ac_cv_target_alias=$target_alias | |
1611 | test "x$ac_cv_target_alias" = "x" && | |
1612 | ac_cv_target_alias=$ac_cv_host_alias | |
1613 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1614 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1615 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1616 | { (exit 1); exit 1; }; } | |
1617 | ||
1618 | fi | |
1619 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1620 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1621 | target=$ac_cv_target | |
1622 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1623 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1624 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1625 | ||
1626 | ||
1627 | # The aliases save the names the user supplied, while $host etc. | |
1628 | # will get canonicalized. | |
1629 | test -n "$target_alias" && | |
7c66a493 VZ |
1630 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1631 | NONENONEs,x,x, && | |
1632 | program_prefix=${target_alias}- | |
8284b0c5 MB |
1633 | |
1634 | ||
a0b9e27f | 1635 | |
10f2d63a | 1636 | WX_MAJOR_VERSION_NUMBER=2 |
34bed6d9 | 1637 | WX_MINOR_VERSION_NUMBER=5 |
e46d2a18 | 1638 | WX_RELEASE_NUMBER=1 |
10f2d63a | 1639 | |
10f2d63a | 1640 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 1641 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c | 1642 | |
978f1259 RL |
1643 | WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER |
1644 | ||
7015ef3a | 1645 | WX_CURRENT=1 |
6426998c RL |
1646 | WX_REVISION=0 |
1647 | WX_AGE=0 | |
1648 | ||
8284b0c5 MB |
1649 | |
1650 | ||
10f2d63a | 1651 | USE_UNIX=1 |
73d617c9 | 1652 | USE_OS2=0 |
10f2d63a | 1653 | USE_WIN32=0 |
f9bc1684 | 1654 | USE_DOS=0 |
b12915c1 | 1655 | USE_BEOS=0 |
1216f52d | 1656 | USE_MAC=0 |
b12915c1 | 1657 | |
10f2d63a | 1658 | USE_AIX= |
fe0895cf VS |
1659 | USE_BSD= USE_DARWIN= USE_FREEBSD= |
1660 | USE_GNU= USE_HPUX= | |
89e3b3e4 | 1661 | USE_LINUX= |
f6bcfd97 | 1662 | USE_NETBSD= |
89e3b3e4 | 1663 | USE_OPENBSD= |
fe0895cf VS |
1664 | USE_OSF= USE_SGI= |
1665 | USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS= | |
10f2d63a | 1666 | USE_ULTRIX= |
89e3b3e4 VZ |
1667 | USE_UNIXWARE= |
1668 | ||
1669 | USE_ALPHA= | |
10f2d63a | 1670 | |
ab9b9eab VZ |
1671 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
1672 | ||
ac0c4cc3 | 1673 | ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11" |
10f2d63a | 1674 | |
ac0c4cc3 | 1675 | DEFAULT_wxUSE_COCOA=0 |
10f2d63a | 1676 | DEFAULT_wxUSE_GTK=0 |
1e6feb95 VZ |
1677 | DEFAULT_wxUSE_MAC=0 |
1678 | DEFAULT_wxUSE_MGL=0 | |
1725144d | 1679 | DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1680 | DEFAULT_wxUSE_MOTIF=0 |
1681 | DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1682 | DEFAULT_wxUSE_PM=0 |
f79bd02d | 1683 | DEFAULT_wxUSE_X11=0 |
10f2d63a | 1684 | |
ac0c4cc3 | 1685 | DEFAULT_DEFAULT_wxUSE_COCOA=0 |
10f2d63a | 1686 | DEFAULT_DEFAULT_wxUSE_GTK=0 |
1e6feb95 VZ |
1687 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
1688 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1725144d | 1689 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1690 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 |
1691 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1692 | DEFAULT_DEFAULT_wxUSE_PM=0 |
f79bd02d | 1693 | DEFAULT_DEFAULT_wxUSE_X11=0 |
10f2d63a | 1694 | |
d6a55c4b | 1695 | PROGRAM_EXT= |
3a922bb4 | 1696 | SO_SUFFIX=so |
fe0895cf | 1697 | SAMPLES_RPATH_FLAG= |
0f1bc9c2 | 1698 | SAMPLES_RPATH_POSTLINK= |
d6a55c4b | 1699 | |
10f2d63a VZ |
1700 | case "${host}" in |
1701 | *-hp-hpux* ) | |
1702 | USE_HPUX=1 | |
1703 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1704 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
3a922bb4 | 1705 | SO_SUFFIX=sl |
e6cc62c6 | 1706 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1707 | #define __HPUX__ 1 |
e6cc62c6 | 1708 | _ACEOF |
10f2d63a VZ |
1709 | |
1710 | ;; | |
1711 | *-*-linux* ) | |
1712 | USE_LINUX=1 | |
e6cc62c6 | 1713 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1714 | #define __LINUX__ 1 |
e6cc62c6 | 1715 | _ACEOF |
10f2d63a VZ |
1716 | |
1717 | TMP=`uname -m` | |
1718 | if test "x$TMP" = "xalpha"; then | |
1719 | USE_ALPHA=1 | |
e6cc62c6 | 1720 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1721 | #define __ALPHA__ 1 |
e6cc62c6 | 1722 | _ACEOF |
fe0895cf VS |
1723 | |
1724 | fi | |
1725 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1726 | ;; | |
1727 | *-*-gnu* ) | |
1728 | USE_GNU=1 | |
e6cc62c6 | 1729 | cat >>confdefs.h <<\_ACEOF |
fe0895cf | 1730 | #define __GNU__ 1 |
e6cc62c6 | 1731 | _ACEOF |
fe0895cf VS |
1732 | |
1733 | TMP=`uname -m` | |
1734 | if test "x$TMP" = "xalpha"; then | |
1735 | USE_ALPHA=1 | |
e6cc62c6 | 1736 | cat >>confdefs.h <<\_ACEOF |
fe0895cf | 1737 | #define __ALPHA__ 1 |
e6cc62c6 | 1738 | _ACEOF |
10f2d63a VZ |
1739 | |
1740 | fi | |
1741 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1742 | ;; | |
1743 | *-*-irix5* | *-*-irix6* ) | |
1744 | USE_SGI=1 | |
1745 | USE_SVR4=1 | |
e6cc62c6 | 1746 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1747 | #define __SGI__ 1 |
e6cc62c6 | 1748 | _ACEOF |
10f2d63a | 1749 | |
e6cc62c6 | 1750 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1751 | #define __SVR4__ 1 |
e6cc62c6 | 1752 | _ACEOF |
10f2d63a VZ |
1753 | |
1754 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1755 | ;; | |
1756 | *-*-solaris2* ) | |
1757 | USE_SUN=1 | |
1758 | USE_SOLARIS=1 | |
1759 | USE_SVR4=1 | |
e6cc62c6 | 1760 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1761 | #define __SUN__ 1 |
e6cc62c6 | 1762 | _ACEOF |
10f2d63a | 1763 | |
e6cc62c6 | 1764 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1765 | #define __SOLARIS__ 1 |
e6cc62c6 | 1766 | _ACEOF |
10f2d63a | 1767 | |
e6cc62c6 | 1768 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1769 | #define __SVR4__ 1 |
e6cc62c6 | 1770 | _ACEOF |
10f2d63a VZ |
1771 | |
1772 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1773 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1774 | ;; |
1775 | *-*-sunos4* ) | |
1776 | USE_SUN=1 | |
1777 | USE_SUNOS=1 | |
1778 | USE_BSD=1 | |
e6cc62c6 | 1779 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1780 | #define __SUN__ 1 |
e6cc62c6 | 1781 | _ACEOF |
10f2d63a | 1782 | |
e6cc62c6 | 1783 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1784 | #define __SUNOS__ 1 |
e6cc62c6 | 1785 | _ACEOF |
10f2d63a | 1786 | |
e6cc62c6 | 1787 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1788 | #define __BSD__ 1 |
e6cc62c6 | 1789 | _ACEOF |
10f2d63a VZ |
1790 | |
1791 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1792 | ;; | |
f6bcfd97 | 1793 | *-*-freebsd*) |
10f2d63a VZ |
1794 | USE_BSD=1 |
1795 | USE_FREEBSD=1 | |
e6cc62c6 | 1796 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1797 | #define __FREEBSD__ 1 |
e6cc62c6 | 1798 | _ACEOF |
10f2d63a | 1799 | |
e6cc62c6 | 1800 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1801 | #define __BSD__ 1 |
e6cc62c6 | 1802 | _ACEOF |
95c8801c VS |
1803 | |
1804 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1805 | ;; | |
1806 | *-*-openbsd*) | |
1807 | USE_BSD=1 | |
1808 | USE_OPENBSD=1 | |
e6cc62c6 | 1809 | cat >>confdefs.h <<\_ACEOF |
2b5f62a0 | 1810 | #define __OPENBSD__ 1 |
e6cc62c6 | 1811 | _ACEOF |
95c8801c | 1812 | |
e6cc62c6 | 1813 | cat >>confdefs.h <<\_ACEOF |
2b5f62a0 | 1814 | #define __BSD__ 1 |
e6cc62c6 | 1815 | _ACEOF |
f6bcfd97 BP |
1816 | |
1817 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1818 | ;; | |
1819 | *-*-netbsd*) | |
1820 | USE_BSD=1 | |
1821 | USE_NETBSD=1 | |
e6cc62c6 | 1822 | cat >>confdefs.h <<\_ACEOF |
2b5f62a0 | 1823 | #define __NETBSD__ 1 |
e6cc62c6 | 1824 | _ACEOF |
f6bcfd97 | 1825 | |
e6cc62c6 | 1826 | cat >>confdefs.h <<\_ACEOF |
2b5f62a0 | 1827 | #define __BSD__ 1 |
e6cc62c6 | 1828 | _ACEOF |
10f2d63a VZ |
1829 | |
1830 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1831 | ;; | |
1832 | *-*-osf* ) | |
1833 | USE_ALPHA=1 | |
1834 | USE_OSF=1 | |
e6cc62c6 | 1835 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1836 | #define __ALPHA__ 1 |
e6cc62c6 | 1837 | _ACEOF |
10f2d63a | 1838 | |
e6cc62c6 | 1839 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1840 | #define __OSF__ 1 |
e6cc62c6 | 1841 | _ACEOF |
10f2d63a VZ |
1842 | |
1843 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1844 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1845 | ;; |
1846 | *-*-dgux5* ) | |
1847 | USE_ALPHA=1 | |
1848 | USE_SVR4=1 | |
e6cc62c6 | 1849 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1850 | #define __ALPHA__ 1 |
e6cc62c6 | 1851 | _ACEOF |
10f2d63a | 1852 | |
e6cc62c6 | 1853 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1854 | #define __SVR4__ 1 |
e6cc62c6 | 1855 | _ACEOF |
10f2d63a VZ |
1856 | |
1857 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1858 | ;; | |
1859 | *-*-sysv5* ) | |
1860 | USE_SYSV=1 | |
1861 | USE_SVR4=1 | |
e6cc62c6 | 1862 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1863 | #define __SYSV__ 1 |
e6cc62c6 | 1864 | _ACEOF |
10f2d63a | 1865 | |
e6cc62c6 | 1866 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1867 | #define __SVR4__ 1 |
e6cc62c6 | 1868 | _ACEOF |
10f2d63a VZ |
1869 | |
1870 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1871 | ;; | |
1872 | *-*-aix* ) | |
1873 | USE_AIX=1 | |
1874 | USE_SYSV=1 | |
1875 | USE_SVR4=1 | |
2b5f62a0 | 1876 | SO_SUFFIX=a |
e6cc62c6 | 1877 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1878 | #define __AIX__ 1 |
e6cc62c6 | 1879 | _ACEOF |
10f2d63a | 1880 | |
e6cc62c6 | 1881 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1882 | #define __SYSV__ 1 |
e6cc62c6 | 1883 | _ACEOF |
10f2d63a | 1884 | |
e6cc62c6 | 1885 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1886 | #define __SVR4__ 1 |
e6cc62c6 | 1887 | _ACEOF |
10f2d63a VZ |
1888 | |
1889 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1890 | ;; | |
1891 | ||
89e3b3e4 VZ |
1892 | *-*-*UnixWare*) |
1893 | USE_SYSV=1 | |
1894 | USE_SVR4=1 | |
1895 | USE_UNIXWARE=1 | |
e6cc62c6 | 1896 | cat >>confdefs.h <<\_ACEOF |
89e3b3e4 | 1897 | #define __UNIXWARE__ 1 |
e6cc62c6 | 1898 | _ACEOF |
89e3b3e4 VZ |
1899 | |
1900 | ;; | |
1901 | ||
1c8183e2 | 1902 | *-*-cygwin* | *-*-mingw32* ) |
17234b26 | 1903 | SO_SUFFIX=dll |
cf27ef00 | 1904 | PROGRAM_EXT=".exe" |
7b7a7637 | 1905 | RESCOMP=windres |
10f2d63a VZ |
1906 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1907 | ;; | |
1908 | ||
f9bc1684 VS |
1909 | *-pc-msdosdjgpp ) |
1910 | USE_UNIX=0 | |
1911 | USE_DOS=1 | |
e6cc62c6 | 1912 | cat >>confdefs.h <<\_ACEOF |
f9bc1684 | 1913 | #define __DOS__ 1 |
e6cc62c6 | 1914 | _ACEOF |
f9bc1684 VS |
1915 | |
1916 | PROGRAM_EXT=".exe" | |
1917 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
24f5e003 | 1918 | LIBS="$LIBS -lstdc++" |
f9bc1684 VS |
1919 | ;; |
1920 | ||
6fa882bd | 1921 | *-pc-os2_emx | *-pc-os2-emx ) |
e6cc62c6 | 1922 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1923 | #define __EMX__ 1 |
e6cc62c6 | 1924 | _ACEOF |
10f2d63a | 1925 | |
73d617c9 | 1926 | USE_OS2=1 |
7015ef3a VZ |
1927 | cat >>confdefs.h <<\_ACEOF |
1928 | #define __OS2__ 1 | |
1929 | _ACEOF | |
1930 | ||
cf27ef00 | 1931 | PROGRAM_EXT=".exe" |
e07802fc | 1932 | DEFAULT_DEFAULT_wxUSE_PM=1 |
eb69fda5 | 1933 | CXX=gcc |
73d617c9 | 1934 | LDFLAGS="$LDFLAGS -Zcrtdll -Zsysv-signals" |
d5fc095c VS |
1935 | ac_executable_extensions=".exe" |
1936 | export ac_executable_extensions | |
1937 | ac_save_IFS="$IFS" | |
e46d2a18 | 1938 | IFS='\\' |
d5fc095c VS |
1939 | ac_TEMP_PATH= |
1940 | for ac_dir in $PATH; do | |
1941 | IFS=$ac_save_IFS | |
1942 | if test -z "$ac_TEMP_PATH"; then | |
1943 | ac_TEMP_PATH="$ac_dir" | |
1944 | else | |
1945 | ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir" | |
1946 | fi | |
1947 | done | |
1948 | export PATH="$ac_TEMP_PATH" | |
1949 | unset ac_TEMP_PATH | |
10f2d63a VZ |
1950 | ;; |
1951 | ||
d08b457b GD |
1952 | powerpc-*-darwin* ) |
1953 | USE_BSD=1 | |
f11bdd03 | 1954 | USE_DARWIN=1 |
3a922bb4 | 1955 | SO_SUFFIX=dylib |
e6cc62c6 | 1956 | cat >>confdefs.h <<\_ACEOF |
f11bdd03 | 1957 | #define __BSD__ 1 |
e6cc62c6 | 1958 | _ACEOF |
b4085ce6 | 1959 | |
e6cc62c6 | 1960 | cat >>confdefs.h <<\_ACEOF |
f11bdd03 | 1961 | #define __DARWIN__ 1 |
e6cc62c6 | 1962 | _ACEOF |
d08b457b | 1963 | |
e6cc62c6 | 1964 | cat >>confdefs.h <<\_ACEOF |
d08b457b | 1965 | #define __POWERPC__ 1 |
e6cc62c6 | 1966 | _ACEOF |
82d43113 | 1967 | |
e6cc62c6 | 1968 | cat >>confdefs.h <<\_ACEOF |
82d43113 | 1969 | #define TARGET_CARBON 1 |
e6cc62c6 | 1970 | _ACEOF |
b4085ce6 GD |
1971 | |
1972 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1973 | ;; | |
1974 | ||
b12915c1 VZ |
1975 | *-*-beos* ) |
1976 | USE_BEOS=1 | |
e6cc62c6 | 1977 | cat >>confdefs.h <<\_ACEOF |
b12915c1 | 1978 | #define __BEOS__ 1 |
e6cc62c6 | 1979 | _ACEOF |
b12915c1 VZ |
1980 | |
1981 | ;; | |
1982 | ||
10f2d63a | 1983 | *) |
e6cc62c6 VS |
1984 | { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5 |
1985 | echo "$as_me: error: unknown system type ${host}." >&2;} | |
1986 | { (exit 1); exit 1; }; } | |
10f2d63a VZ |
1987 | esac |
1988 | ||
8284b0c5 MB |
1989 | |
1990 | ||
1991 | ||
1992 | wx_arg_cache_file="configarg.cache" | |
1993 | echo "loading argument cache $wx_arg_cache_file" | |
10f2d63a VZ |
1994 | rm -f ${wx_arg_cache_file}.tmp |
1995 | touch ${wx_arg_cache_file}.tmp | |
1996 | touch ${wx_arg_cache_file} | |
e6cc62c6 | 1997 | |
10f2d63a VZ |
1998 | |
1999 | DEBUG_CONFIGURE=0 | |
2000 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 | 2001 | DEFAULT_wxUSE_UNIVERSAL=no |
df5168c4 | 2002 | DEFAULT_wxUSE_STL=no |
1e6feb95 | 2003 | |
d8356fa3 VZ |
2004 | DEFAULT_wxUSE_NANOX=no |
2005 | ||
10f2d63a VZ |
2006 | DEFAULT_wxUSE_THREADS=yes |
2007 | ||
2008 | DEFAULT_wxUSE_SHARED=yes | |
1e6feb95 | 2009 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
2010 | DEFAULT_wxUSE_PROFILE=no |
2011 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
2012 | DEFAULT_wxUSE_NO_RTTI=no |
2013 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
2014 | DEFAULT_wxUSE_PERMISSIVE=no |
2015 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2016 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2017 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
2018 | DEFAULT_wxUSE_MEM_TRACING=no | |
2019 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2020 | DEFAULT_wxUSE_DMALLOC=no | |
2021 | DEFAULT_wxUSE_APPLE_IEEE=no | |
2022 | ||
e46d2a18 | 2023 | DEFAULT_wxUSE_EXCEPTIONS=no |
10f2d63a | 2024 | DEFAULT_wxUSE_LOG=yes |
1e6feb95 VZ |
2025 | DEFAULT_wxUSE_LOGWINDOW=no |
2026 | DEFAULT_wxUSE_LOGGUI=no | |
69d27ff7 | 2027 | DEFAULT_wxUSE_LOGDIALOG=no |
10f2d63a VZ |
2028 | |
2029 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 2030 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a | 2031 | |
3e44f09d | 2032 | DEFAULT_wxUSE_REGEX=no |
672abd7a VS |
2033 | DEFAULT_wxUSE_XML=no |
2034 | DEFAULT_wxUSE_EXPAT=no | |
10f2d63a VZ |
2035 | DEFAULT_wxUSE_ZLIB=no |
2036 | DEFAULT_wxUSE_LIBPNG=no | |
2037 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 2038 | DEFAULT_wxUSE_LIBTIFF=no |
89fe663f | 2039 | DEFAULT_wxUSE_LIBXPM=no |
10f2d63a | 2040 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 2041 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 2042 | |
eb4efbdc | 2043 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 2044 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 2045 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
2046 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
2047 | DEFAULT_wxUSE_DATETIME=no | |
1e6feb95 VZ |
2048 | DEFAULT_wxUSE_TIMER=no |
2049 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 2050 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 2051 | DEFAULT_wxUSE_FFILE=no |
a3a584a7 | 2052 | DEFAULT_wxUSE_TEXTBUFFER=no |
10f2d63a | 2053 | DEFAULT_wxUSE_TEXTFILE=no |
10f2d63a VZ |
2054 | DEFAULT_wxUSE_WAVE=no |
2055 | DEFAULT_wxUSE_INTL=no | |
2056 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 2057 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
2058 | DEFAULT_wxUSE_STREAMS=no |
2059 | DEFAULT_wxUSE_SOCKETS=no | |
3bce6687 JS |
2060 | DEFAULT_wxUSE_OLE=no |
2061 | DEFAULT_wxUSE_DATAOBJ=no | |
10f2d63a | 2062 | DEFAULT_wxUSE_DIALUP_MANAGER=no |
10f2d63a | 2063 | DEFAULT_wxUSE_JOYSTICK=no |
6bff71f8 | 2064 | DEFAULT_wxUSE_DYNLIB_CLASS=no |
0b9ab0bd | 2065 | DEFAULT_wxUSE_DYNAMIC_LOADER=no |
10f2d63a | 2066 | DEFAULT_wxUSE_LONGLONG=no |
e8f65ba6 | 2067 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
2068 | |
2069 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
2070 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
2071 | DEFAULT_wxUSE_POSTSCRIPT=no | |
2072 | ||
10f2d63a VZ |
2073 | DEFAULT_wxUSE_CLIPBOARD=no |
2074 | DEFAULT_wxUSE_TOOLTIPS=no | |
2075 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
24fd6d87 | 2076 | DEFAULT_wxUSE_DRAGIMAGE=no |
10f2d63a VZ |
2077 | DEFAULT_wxUSE_SPLINES=no |
2078 | ||
2079 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
2080 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
2081 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
2082 | ||
10f2d63a VZ |
2083 | DEFAULT_wxUSE_RESOURCES=no |
2084 | DEFAULT_wxUSE_CONSTRAINTS=no | |
2085 | DEFAULT_wxUSE_IPC=no | |
2086 | DEFAULT_wxUSE_HELP=no | |
29fd3c0c | 2087 | DEFAULT_wxUSE_MS_HTML_HELP=no |
3379ed37 | 2088 | DEFAULT_wxUSE_WXHTML_HELP=no |
24176f2c | 2089 | DEFAULT_wxUSE_TREELAYOUT=no |
10f2d63a | 2090 | DEFAULT_wxUSE_METAFILE=no |
1e6feb95 | 2091 | DEFAULT_wxUSE_MIMETYPE=no |
4cdb0ab0 VS |
2092 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no |
2093 | DEFAULT_wxUSE_PROTOCOL=no | |
2094 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
2095 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
2096 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
2097 | DEFAULT_wxUSE_URL=no | |
3bd8fb5f | 2098 | |
10f2d63a | 2099 | DEFAULT_wxUSE_COMMONDLGS=no |
1e6feb95 VZ |
2100 | DEFAULT_wxUSE_CHOICEDLG=no |
2101 | DEFAULT_wxUSE_COLOURDLG=no | |
10f2d63a | 2102 | DEFAULT_wxUSE_DIRDLG=no |
1e6feb95 | 2103 | DEFAULT_wxUSE_FILEDLG=no |
8db37e06 | 2104 | DEFAULT_wxUSE_FINDREPLDLG=no |
1e6feb95 VZ |
2105 | DEFAULT_wxUSE_FONTDLG=no |
2106 | DEFAULT_wxUSE_MSGDLG=no | |
2107 | DEFAULT_wxUSE_NUMBERDLG=no | |
10f2d63a | 2108 | DEFAULT_wxUSE_TEXTDLG=no |
cbca9943 | 2109 | DEFAULT_wxUSE_SPLASH=no |
10f2d63a VZ |
2110 | DEFAULT_wxUSE_STARTUP_TIPS=no |
2111 | DEFAULT_wxUSE_PROGRESSDLG=no | |
b1f5d087 VZ |
2112 | DEFAULT_wxUSE_WIZARDDLG=no |
2113 | ||
1e6feb95 | 2114 | DEFAULT_wxUSE_MENUS=no |
10f2d63a VZ |
2115 | DEFAULT_wxUSE_MINIFRAME=no |
2116 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 2117 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
2118 | DEFAULT_wxUSE_FS_INET=no |
2119 | DEFAULT_wxUSE_FS_ZIP=no | |
2120 | DEFAULT_wxUSE_BUSYINFO=no | |
2121 | DEFAULT_wxUSE_ZIPSTREAM=no | |
7015ef3a | 2122 | DEFAULT_wxUSE_GZSTREAM=no |
1e6feb95 | 2123 | DEFAULT_wxUSE_VALIDATORS=no |
10f2d63a VZ |
2124 | |
2125 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 | 2126 | DEFAULT_wxUSE_BUTTON=no |
10f2d63a | 2127 | DEFAULT_wxUSE_BMPBUTTON=no |
1e6feb95 VZ |
2128 | DEFAULT_wxUSE_CALCTRL=no |
2129 | DEFAULT_wxUSE_CARET=no | |
10f2d63a VZ |
2130 | DEFAULT_wxUSE_CHECKBOX=no |
2131 | DEFAULT_wxUSE_CHECKLST=no | |
1e6feb95 | 2132 | DEFAULT_wxUSE_CHOICE=no |
10f2d63a | 2133 | DEFAULT_wxUSE_COMBOBOX=no |
da494b40 | 2134 | DEFAULT_wxUSE_DISPLAY=no |
10f2d63a VZ |
2135 | DEFAULT_wxUSE_GAUGE=no |
2136 | DEFAULT_wxUSE_GRID=no | |
10f2d63a | 2137 | DEFAULT_wxUSE_IMAGLIST=no |
0e012a93 | 2138 | DEFAULT_wxUSE_LISTBOOK=no |
10f2d63a VZ |
2139 | DEFAULT_wxUSE_LISTBOX=no |
2140 | DEFAULT_wxUSE_LISTCTRL=no | |
2141 | DEFAULT_wxUSE_NOTEBOOK=no | |
2142 | DEFAULT_wxUSE_RADIOBOX=no | |
2143 | DEFAULT_wxUSE_RADIOBTN=no | |
2144 | DEFAULT_wxUSE_SASH=no | |
2145 | DEFAULT_wxUSE_SCROLLBAR=no | |
2146 | DEFAULT_wxUSE_SLIDER=no | |
2147 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 2148 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
2149 | DEFAULT_wxUSE_SPLITTER=no |
2150 | DEFAULT_wxUSE_STATBMP=no | |
2151 | DEFAULT_wxUSE_STATBOX=no | |
2152 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 2153 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
2154 | DEFAULT_wxUSE_STATUSBAR=yes |
2155 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 2156 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 2157 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 2158 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
2159 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
2160 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a | 2161 | DEFAULT_wxUSE_TREECTRL=no |
9f41d601 | 2162 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 2163 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
2164 | |
2165 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 2166 | DEFAULT_wxUSE_UNICODE_MSLU=no |
10f2d63a VZ |
2167 | DEFAULT_wxUSE_WCSRTOMBS=no |
2168 | ||
edae8572 | 2169 | DEFAULT_wxUSE_PALETTE=no |
0046ff7c | 2170 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
2171 | DEFAULT_wxUSE_GIF=no |
2172 | DEFAULT_wxUSE_PCX=no | |
2173 | DEFAULT_wxUSE_PNM=no | |
4b6b4dfc | 2174 | DEFAULT_wxUSE_IFF=no |
0046ff7c | 2175 | DEFAULT_wxUSE_XPM=no |
658974ae | 2176 | DEFAULT_wxUSE_ICO_CUR=no |
7bb2947d | 2177 | DEFAULT_wxUSE_ACCESSIBILITY=no |
9747f85d | 2178 | |
e9e0dc15 | 2179 | DEFAULT_wxUSE_MONOLITHIC=no |
029b47ad | 2180 | DEFAULT_wxUSE_OFFICIAL_BUILD=no |
10f2d63a | 2181 | else |
1e6feb95 | 2182 | DEFAULT_wxUSE_UNIVERSAL=no |
df5168c4 | 2183 | DEFAULT_wxUSE_STL=no |
1e6feb95 | 2184 | |
d8356fa3 VZ |
2185 | DEFAULT_wxUSE_NANOX=no |
2186 | ||
10f2d63a VZ |
2187 | DEFAULT_wxUSE_THREADS=yes |
2188 | ||
2189 | DEFAULT_wxUSE_SHARED=yes | |
2190 | DEFAULT_wxUSE_OPTIMISE=yes | |
2191 | DEFAULT_wxUSE_PROFILE=no | |
2192 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
2193 | DEFAULT_wxUSE_NO_RTTI=no |
2194 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
2195 | DEFAULT_wxUSE_PERMISSIVE=no |
2196 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2197 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2198 | DEFAULT_wxUSE_DEBUG_GDB=no | |
2199 | DEFAULT_wxUSE_MEM_TRACING=no | |
2200 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2201 | DEFAULT_wxUSE_DMALLOC=no | |
2202 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
2203 | ||
e46d2a18 | 2204 | DEFAULT_wxUSE_EXCEPTIONS=yes |
10f2d63a | 2205 | DEFAULT_wxUSE_LOG=yes |
d73be714 VZ |
2206 | DEFAULT_wxUSE_LOGWINDOW=yes |
2207 | DEFAULT_wxUSE_LOGGUI=yes | |
69d27ff7 | 2208 | DEFAULT_wxUSE_LOGDIALOG=yes |
10f2d63a VZ |
2209 | |
2210 | DEFAULT_wxUSE_GUI=yes | |
2211 | ||
aa2d9ecc | 2212 | DEFAULT_wxUSE_REGEX=yes |
672abd7a | 2213 | DEFAULT_wxUSE_XML=yes |
aa2d9ecc VZ |
2214 | DEFAULT_wxUSE_EXPAT=yes |
2215 | DEFAULT_wxUSE_ZLIB=yes | |
2216 | DEFAULT_wxUSE_LIBPNG=yes | |
2217 | DEFAULT_wxUSE_LIBJPEG=yes | |
2218 | DEFAULT_wxUSE_LIBTIFF=yes | |
2219 | DEFAULT_wxUSE_LIBXPM=yes | |
3527f29c | 2220 | DEFAULT_wxUSE_LIBMSPACK=yes |
16b52fa1 | 2221 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 2222 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 2223 | |
eb4efbdc | 2224 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 2225 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 2226 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
2227 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
2228 | DEFAULT_wxUSE_DATETIME=yes | |
1e6feb95 VZ |
2229 | DEFAULT_wxUSE_TIMER=yes |
2230 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 2231 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 2232 | DEFAULT_wxUSE_FFILE=yes |
a3a584a7 | 2233 | DEFAULT_wxUSE_TEXTBUFFER=yes |
10f2d63a | 2234 | DEFAULT_wxUSE_TEXTFILE=yes |
10f2d63a VZ |
2235 | DEFAULT_wxUSE_WAVE=no |
2236 | DEFAULT_wxUSE_INTL=yes | |
2237 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 2238 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
2239 | DEFAULT_wxUSE_STREAMS=yes |
2240 | DEFAULT_wxUSE_SOCKETS=yes | |
3bce6687 JS |
2241 | DEFAULT_wxUSE_OLE=yes |
2242 | DEFAULT_wxUSE_DATAOBJ=yes | |
10f2d63a | 2243 | DEFAULT_wxUSE_DIALUP_MANAGER=yes |
10f2d63a | 2244 | DEFAULT_wxUSE_JOYSTICK=yes |
6bff71f8 | 2245 | DEFAULT_wxUSE_DYNLIB_CLASS=yes |
9337b578 | 2246 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes |
b685cd9b | 2247 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 2248 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
2249 | |
2250 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
2251 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
2252 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
2253 | ||
10f2d63a VZ |
2254 | DEFAULT_wxUSE_CLIPBOARD=yes |
2255 | DEFAULT_wxUSE_TOOLTIPS=yes | |
2256 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
24fd6d87 | 2257 | DEFAULT_wxUSE_DRAGIMAGE=yes |
10f2d63a VZ |
2258 | DEFAULT_wxUSE_SPLINES=yes |
2259 | ||
2260 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
2261 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
2262 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
2263 | ||
2b5f62a0 | 2264 | DEFAULT_wxUSE_RESOURCES=no |
10f2d63a VZ |
2265 | DEFAULT_wxUSE_CONSTRAINTS=yes |
2266 | DEFAULT_wxUSE_IPC=yes | |
2267 | DEFAULT_wxUSE_HELP=yes | |
29fd3c0c | 2268 | DEFAULT_wxUSE_MS_HTML_HELP=yes |
3379ed37 | 2269 | DEFAULT_wxUSE_WXHTML_HELP=yes |
24176f2c | 2270 | DEFAULT_wxUSE_TREELAYOUT=yes |
10f2d63a | 2271 | DEFAULT_wxUSE_METAFILE=yes |
1e6feb95 | 2272 | DEFAULT_wxUSE_MIMETYPE=yes |
3e44f09d | 2273 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
4cdb0ab0 VS |
2274 | DEFAULT_wxUSE_PROTOCOL=yes |
2275 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
2276 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
2277 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
2278 | DEFAULT_wxUSE_URL=yes | |
10f2d63a VZ |
2279 | |
2280 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
2281 | DEFAULT_wxUSE_CHOICEDLG=yes |
2282 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 2283 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 | 2284 | DEFAULT_wxUSE_FILEDLG=yes |
8db37e06 | 2285 | DEFAULT_wxUSE_FINDREPLDLG=yes |
1e6feb95 VZ |
2286 | DEFAULT_wxUSE_FONTDLG=yes |
2287 | DEFAULT_wxUSE_MSGDLG=yes | |
2288 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a | 2289 | DEFAULT_wxUSE_TEXTDLG=yes |
cbca9943 | 2290 | DEFAULT_wxUSE_SPLASH=yes |
10f2d63a VZ |
2291 | DEFAULT_wxUSE_STARTUP_TIPS=yes |
2292 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
f33f19dd VZ |
2293 | DEFAULT_wxUSE_WIZARDDLG=yes |
2294 | ||
1e6feb95 | 2295 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
2296 | DEFAULT_wxUSE_MINIFRAME=yes |
2297 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 2298 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
2299 | DEFAULT_wxUSE_FS_INET=yes |
2300 | DEFAULT_wxUSE_FS_ZIP=yes | |
2301 | DEFAULT_wxUSE_BUSYINFO=yes | |
2302 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
7015ef3a | 2303 | DEFAULT_wxUSE_GZSTREAM=yes |
10f2d63a VZ |
2304 | DEFAULT_wxUSE_VALIDATORS=yes |
2305 | ||
2306 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 2307 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 2308 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
2309 | DEFAULT_wxUSE_CALCTRL=yes |
2310 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
2311 | DEFAULT_wxUSE_CHECKBOX=yes |
2312 | DEFAULT_wxUSE_CHECKLST=yes | |
2313 | DEFAULT_wxUSE_CHOICE=yes | |
2314 | DEFAULT_wxUSE_COMBOBOX=yes | |
da494b40 | 2315 | DEFAULT_wxUSE_DISPLAY=no |
10f2d63a VZ |
2316 | DEFAULT_wxUSE_GAUGE=yes |
2317 | DEFAULT_wxUSE_GRID=yes | |
10f2d63a | 2318 | DEFAULT_wxUSE_IMAGLIST=yes |
0e012a93 | 2319 | DEFAULT_wxUSE_LISTBOOK=yes |
10f2d63a VZ |
2320 | DEFAULT_wxUSE_LISTBOX=yes |
2321 | DEFAULT_wxUSE_LISTCTRL=yes | |
2322 | DEFAULT_wxUSE_NOTEBOOK=yes | |
2323 | DEFAULT_wxUSE_RADIOBOX=yes | |
2324 | DEFAULT_wxUSE_RADIOBTN=yes | |
2325 | DEFAULT_wxUSE_SASH=yes | |
2326 | DEFAULT_wxUSE_SCROLLBAR=yes | |
2327 | DEFAULT_wxUSE_SLIDER=yes | |
2328 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 2329 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
2330 | DEFAULT_wxUSE_SPLITTER=yes |
2331 | DEFAULT_wxUSE_STATBMP=yes | |
2332 | DEFAULT_wxUSE_STATBOX=yes | |
2333 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 2334 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
2335 | DEFAULT_wxUSE_STATUSBAR=yes |
2336 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 2337 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 2338 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 2339 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
2340 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
2341 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a | 2342 | DEFAULT_wxUSE_TREECTRL=yes |
9f41d601 | 2343 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 2344 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
2345 | |
2346 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 2347 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
10f2d63a VZ |
2348 | DEFAULT_wxUSE_WCSRTOMBS=no |
2349 | ||
edae8572 | 2350 | DEFAULT_wxUSE_PALETTE=yes |
0046ff7c | 2351 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
2352 | DEFAULT_wxUSE_GIF=yes |
2353 | DEFAULT_wxUSE_PCX=yes | |
cc0e8480 | 2354 | DEFAULT_wxUSE_IFF=no |
10f2d63a | 2355 | DEFAULT_wxUSE_PNM=yes |
0046ff7c | 2356 | DEFAULT_wxUSE_XPM=yes |
658974ae | 2357 | DEFAULT_wxUSE_ICO_CUR=yes |
7bb2947d | 2358 | DEFAULT_wxUSE_ACCESSIBILITY=no |
9747f85d | 2359 | |
e9e0dc15 | 2360 | DEFAULT_wxUSE_MONOLITHIC=no |
029b47ad | 2361 | DEFAULT_wxUSE_OFFICIAL_BUILD=no |
10f2d63a VZ |
2362 | fi |
2363 | ||
8284b0c5 MB |
2364 | |
2365 | ||
10f2d63a | 2366 | for toolkit in `echo $ALL_TOOLKITS`; do |
d74f4b5a VZ |
2367 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` |
2368 | if test "x$LINE" != "x" ; then | |
10f2d63a VZ |
2369 | has_toolkit_in_cache=1 |
2370 | eval "DEFAULT_$LINE" | |
2371 | eval "CACHE_$toolkit=1" | |
2372 | fi | |
2373 | done | |
2374 | ||
8284b0c5 MB |
2375 | |
2376 | ||
5005acfe | 2377 | enablestring= |
e6cc62c6 VS |
2378 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5 |
2379 | echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6 | |
10f2d63a VZ |
2380 | no_cache=0 |
2381 | # Check whether --enable-gui or --disable-gui was given. | |
2382 | if test "${enable_gui+set}" = set; then | |
2383 | enableval="$enable_gui" | |
e6cc62c6 | 2384 | |
10f2d63a VZ |
2385 | if test "$enableval" = yes; then |
2386 | ac_cv_use_gui='wxUSE_GUI=yes' | |
2387 | else | |
2388 | ac_cv_use_gui='wxUSE_GUI=no' | |
2389 | fi | |
e6cc62c6 | 2390 | |
10f2d63a | 2391 | else |
e6cc62c6 | 2392 | |
10f2d63a VZ |
2393 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
2394 | if test "x$LINE" != x ; then | |
2395 | eval "DEFAULT_$LINE" | |
2396 | else | |
2397 | no_cache=1 | |
2398 | fi | |
2399 | ||
2400 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
10f2d63a | 2401 | |
e6cc62c6 | 2402 | fi; |
10f2d63a VZ |
2403 | |
2404 | eval "$ac_cv_use_gui" | |
2405 | if test "$no_cache" != 1; then | |
2406 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
2407 | fi | |
2408 | ||
2409 | if test "$wxUSE_GUI" = yes; then | |
e6cc62c6 VS |
2410 | echo "$as_me:$LINENO: result: yes" >&5 |
2411 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 2412 | else |
e6cc62c6 VS |
2413 | echo "$as_me:$LINENO: result: no" >&5 |
2414 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 2415 | fi |
e6cc62c6 | 2416 | |
10f2d63a | 2417 | |
9747f85d VS |
2418 | enablestring= |
2419 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5 | |
2420 | echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6 | |
2421 | no_cache=0 | |
2422 | # Check whether --enable-monolithic or --disable-monolithic was given. | |
2423 | if test "${enable_monolithic+set}" = set; then | |
2424 | enableval="$enable_monolithic" | |
2425 | ||
2426 | if test "$enableval" = yes; then | |
2427 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes' | |
2428 | else | |
2429 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=no' | |
2430 | fi | |
2431 | ||
2432 | else | |
2433 | ||
2434 | LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}` | |
2435 | if test "x$LINE" != x ; then | |
2436 | eval "DEFAULT_$LINE" | |
2437 | else | |
2438 | no_cache=1 | |
2439 | fi | |
2440 | ||
2441 | ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC | |
2442 | ||
2443 | fi; | |
2444 | ||
2445 | eval "$ac_cv_use_monolithic" | |
2446 | if test "$no_cache" != 1; then | |
2447 | echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp | |
2448 | fi | |
2449 | ||
2450 | if test "$wxUSE_MONOLITHIC" = yes; then | |
2451 | echo "$as_me:$LINENO: result: yes" >&5 | |
2452 | echo "${ECHO_T}yes" >&6 | |
2453 | else | |
2454 | echo "$as_me:$LINENO: result: no" >&5 | |
2455 | echo "${ECHO_T}no" >&6 | |
2456 | fi | |
2457 | ||
2458 | ||
b12915c1 | 2459 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 2460 | |
8284b0c5 | 2461 | |
5005acfe | 2462 | enablestring= |
e6cc62c6 VS |
2463 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5 |
2464 | echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6 | |
1e6feb95 VZ |
2465 | no_cache=0 |
2466 | # Check whether --enable-universal or --disable-universal was given. | |
2467 | if test "${enable_universal+set}" = set; then | |
2468 | enableval="$enable_universal" | |
e6cc62c6 | 2469 | |
1e6feb95 VZ |
2470 | if test "$enableval" = yes; then |
2471 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
2472 | else | |
2473 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
2474 | fi | |
e6cc62c6 | 2475 | |
1e6feb95 | 2476 | else |
e6cc62c6 | 2477 | |
1e6feb95 VZ |
2478 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` |
2479 | if test "x$LINE" != x ; then | |
2480 | eval "DEFAULT_$LINE" | |
2481 | else | |
2482 | no_cache=1 | |
2483 | fi | |
2484 | ||
2485 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
1e6feb95 | 2486 | |
e6cc62c6 | 2487 | fi; |
1e6feb95 VZ |
2488 | |
2489 | eval "$ac_cv_use_universal" | |
2490 | if test "$no_cache" != 1; then | |
2491 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
2492 | fi | |
2493 | ||
2494 | if test "$wxUSE_UNIVERSAL" = yes; then | |
e6cc62c6 VS |
2495 | echo "$as_me:$LINENO: result: yes" >&5 |
2496 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 2497 | else |
e6cc62c6 VS |
2498 | echo "$as_me:$LINENO: result: no" >&5 |
2499 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 2500 | fi |
e6cc62c6 VS |
2501 | |
2502 | ||
10f2d63a VZ |
2503 | # Check whether --with-gtk or --without-gtk was given. |
2504 | if test "${with_gtk+set}" = set; then | |
2505 | withval="$with_gtk" | |
2506 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2507 | fi; |
10f2d63a VZ |
2508 | |
2509 | # Check whether --with-motif or --without-motif was given. | |
2510 | if test "${with_motif+set}" = set; then | |
2511 | withval="$with_motif" | |
2512 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2513 | fi; |
10f2d63a | 2514 | |
b4085ce6 GD |
2515 | # Check whether --with-mac or --without-mac was given. |
2516 | if test "${with_mac+set}" = set; then | |
2517 | withval="$with_mac" | |
2518 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2519 | fi; |
b4085ce6 | 2520 | |
ac0c4cc3 DE |
2521 | # Check whether --with-cocoa or --without-cocoa was given. |
2522 | if test "${with_cocoa+set}" = set; then | |
2523 | withval="$with_cocoa" | |
2524 | wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2525 | fi; |
ac0c4cc3 | 2526 | |
10f2d63a VZ |
2527 | # Check whether --with-wine or --without-wine was given. |
2528 | if test "${with_wine+set}" = set; then | |
2529 | withval="$with_wine" | |
89e6bf6d | 2530 | wxUSE_WINE="$withval" CACHE_WINE=1 |
e6cc62c6 | 2531 | fi; |
10f2d63a | 2532 | |
77e13408 RL |
2533 | # Check whether --with-msw or --without-msw was given. |
2534 | if test "${with_msw+set}" = set; then | |
2535 | withval="$with_msw" | |
b4efce5e | 2536 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 |
e6cc62c6 | 2537 | fi; |
10f2d63a | 2538 | |
e07802fc VZ |
2539 | # Check whether --with-pm or --without-pm was given. |
2540 | if test "${with_pm+set}" = set; then | |
2541 | withval="$with_pm" | |
2542 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2543 | fi; |
698dcdb6 | 2544 | |
1e6feb95 VZ |
2545 | # Check whether --with-mgl or --without-mgl was given. |
2546 | if test "${with_mgl+set}" = set; then | |
2547 | withval="$with_mgl" | |
6c657b52 | 2548 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 |
e6cc62c6 | 2549 | fi; |
1e6feb95 | 2550 | |
1725144d RR |
2551 | # Check whether --with-microwin or --without-microwin was given. |
2552 | if test "${with_microwin+set}" = set; then | |
2553 | withval="$with_microwin" | |
2554 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2555 | fi; |
1725144d | 2556 | |
f79bd02d JS |
2557 | # Check whether --with-x11 or --without-x11 was given. |
2558 | if test "${with_x11+set}" = set; then | |
2559 | withval="$with_x11" | |
3c011993 | 2560 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 |
e6cc62c6 | 2561 | fi; |
a0b9e27f | 2562 | |
5005acfe | 2563 | enablestring= |
e6cc62c6 VS |
2564 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5 |
2565 | echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6 | |
d8356fa3 | 2566 | no_cache=0 |
ba875e66 VZ |
2567 | # Check whether --enable-nanox or --disable-nanox was given. |
2568 | if test "${enable_nanox+set}" = set; then | |
2569 | enableval="$enable_nanox" | |
e6cc62c6 | 2570 | |
d8356fa3 | 2571 | if test "$enableval" = yes; then |
ba875e66 | 2572 | ac_cv_use_nanox='wxUSE_NANOX=yes' |
d8356fa3 | 2573 | else |
ba875e66 | 2574 | ac_cv_use_nanox='wxUSE_NANOX=no' |
d8356fa3 | 2575 | fi |
e6cc62c6 | 2576 | |
d8356fa3 | 2577 | else |
e6cc62c6 | 2578 | |
d8356fa3 VZ |
2579 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` |
2580 | if test "x$LINE" != x ; then | |
2581 | eval "DEFAULT_$LINE" | |
2582 | else | |
2583 | no_cache=1 | |
2584 | fi | |
2585 | ||
ba875e66 | 2586 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX |
d8356fa3 | 2587 | |
e6cc62c6 | 2588 | fi; |
d8356fa3 | 2589 | |
ba875e66 | 2590 | eval "$ac_cv_use_nanox" |
d8356fa3 | 2591 | if test "$no_cache" != 1; then |
ba875e66 | 2592 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp |
d8356fa3 VZ |
2593 | fi |
2594 | ||
2595 | if test "$wxUSE_NANOX" = yes; then | |
e6cc62c6 VS |
2596 | echo "$as_me:$LINENO: result: yes" >&5 |
2597 | echo "${ECHO_T}yes" >&6 | |
d8356fa3 | 2598 | else |
e6cc62c6 VS |
2599 | echo "$as_me:$LINENO: result: no" >&5 |
2600 | echo "${ECHO_T}no" >&6 | |
d8356fa3 | 2601 | fi |
e6cc62c6 | 2602 | |
8284b0c5 | 2603 | |
d74f4b5a | 2604 | |
5005acfe | 2605 | enablestring= |
e6cc62c6 VS |
2606 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5 |
2607 | echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6 | |
d74f4b5a VZ |
2608 | no_cache=0 |
2609 | # Check whether --enable-gtk2 or --disable-gtk2 was given. | |
8168de4c VZ |
2610 | if test "${enable_gtk2+set}" = set; then |
2611 | enableval="$enable_gtk2" | |
e6cc62c6 | 2612 | |
d74f4b5a VZ |
2613 | if test "$enableval" = yes; then |
2614 | ac_cv_use_gtk2='wxUSE_GTK2=yes' | |
2615 | else | |
2616 | ac_cv_use_gtk2='wxUSE_GTK2=no' | |
2617 | fi | |
e6cc62c6 | 2618 | |
10f2d63a | 2619 | else |
e6cc62c6 | 2620 | |
d74f4b5a VZ |
2621 | LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}` |
2622 | if test "x$LINE" != x ; then | |
2623 | eval "DEFAULT_$LINE" | |
2624 | else | |
2625 | no_cache=1 | |
2626 | fi | |
2627 | ||
2628 | ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2 | |
52127426 | 2629 | |
e6cc62c6 | 2630 | fi; |
328a083c | 2631 | |
d74f4b5a VZ |
2632 | eval "$ac_cv_use_gtk2" |
2633 | if test "$no_cache" != 1; then | |
2634 | echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp | |
2635 | fi | |
2636 | ||
2637 | if test "$wxUSE_GTK2" = yes; then | |
e6cc62c6 VS |
2638 | echo "$as_me:$LINENO: result: yes" >&5 |
2639 | echo "${ECHO_T}yes" >&6 | |
d74f4b5a | 2640 | else |
e6cc62c6 VS |
2641 | echo "$as_me:$LINENO: result: no" >&5 |
2642 | echo "${ECHO_T}no" >&6 | |
d74f4b5a | 2643 | fi |
d74f4b5a | 2644 | |
5c6fa7d2 | 2645 | |
e6cc62c6 VS |
2646 | |
2647 | echo "$as_me:$LINENO: checking for --with-libpng" >&5 | |
2648 | echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6 | |
8284b0c5 | 2649 | no_cache=0 |
e6cc62c6 VS |
2650 | |
2651 | # Check whether --with-libpng or --without-libpng was given. | |
b12915c1 VZ |
2652 | if test "${with_libpng+set}" = set; then |
2653 | withval="$with_libpng" | |
e6cc62c6 | 2654 | |
10f2d63a | 2655 | if test "$withval" = yes; then |
b12915c1 | 2656 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 2657 | elif test "$withval" = no; then |
b12915c1 | 2658 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
2659 | elif test "$withval" = sys; then |
2660 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
4f14bcd8 GD |
2661 | elif test "$withval" = builtin; then |
2662 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
422107f9 | 2663 | else |
e6cc62c6 VS |
2664 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 |
2665 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2666 | { (exit 1); exit 1; }; } | |
10f2d63a | 2667 | fi |
e6cc62c6 | 2668 | |
10f2d63a | 2669 | else |
e6cc62c6 | 2670 | |
b12915c1 | 2671 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2672 | if test "x$LINE" != x ; then |
2673 | eval "DEFAULT_$LINE" | |
2674 | else | |
2675 | no_cache=1 | |
2676 | fi | |
2677 | ||
b12915c1 | 2678 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
10f2d63a | 2679 | |
e6cc62c6 | 2680 | fi; |
10f2d63a | 2681 | |
b12915c1 | 2682 | eval "$ac_cv_use_libpng" |
10f2d63a | 2683 | if test "$no_cache" != 1; then |
b12915c1 | 2684 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2685 | fi |
2686 | ||
b12915c1 | 2687 | if test "$wxUSE_LIBPNG" = yes; then |
e6cc62c6 VS |
2688 | echo "$as_me:$LINENO: result: yes" >&5 |
2689 | echo "${ECHO_T}yes" >&6 | |
422107f9 | 2690 | elif test "$wxUSE_LIBPNG" = no; then |
e6cc62c6 VS |
2691 | echo "$as_me:$LINENO: result: no" >&5 |
2692 | echo "${ECHO_T}no" >&6 | |
422107f9 | 2693 | elif test "$wxUSE_LIBPNG" = sys; then |
e6cc62c6 VS |
2694 | echo "$as_me:$LINENO: result: system version" >&5 |
2695 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 2696 | elif test "$wxUSE_LIBPNG" = builtin; then |
e6cc62c6 VS |
2697 | echo "$as_me:$LINENO: result: builtin version" >&5 |
2698 | echo "${ECHO_T}builtin version" >&6 | |
422107f9 | 2699 | else |
e6cc62c6 VS |
2700 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 |
2701 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2702 | { (exit 1); exit 1; }; } | |
10f2d63a | 2703 | fi |
10f2d63a | 2704 | |
e6cc62c6 VS |
2705 | |
2706 | echo "$as_me:$LINENO: checking for --with-libjpeg" >&5 | |
2707 | echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6 | |
10f2d63a | 2708 | no_cache=0 |
e6cc62c6 VS |
2709 | |
2710 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
b12915c1 VZ |
2711 | if test "${with_libjpeg+set}" = set; then |
2712 | withval="$with_libjpeg" | |
e6cc62c6 | 2713 | |
10f2d63a | 2714 | if test "$withval" = yes; then |
b12915c1 | 2715 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 2716 | elif test "$withval" = no; then |
b12915c1 | 2717 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
2718 | elif test "$withval" = sys; then |
2719 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
4f14bcd8 GD |
2720 | elif test "$withval" = builtin; then |
2721 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
422107f9 | 2722 | else |
e6cc62c6 VS |
2723 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 |
2724 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2725 | { (exit 1); exit 1; }; } | |
10f2d63a | 2726 | fi |
e6cc62c6 | 2727 | |
10f2d63a | 2728 | else |
e6cc62c6 | 2729 | |
b12915c1 | 2730 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2731 | if test "x$LINE" != x ; then |
2732 | eval "DEFAULT_$LINE" | |
2733 | else | |
2734 | no_cache=1 | |
2735 | fi | |
2736 | ||
b12915c1 | 2737 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
10f2d63a | 2738 | |
e6cc62c6 | 2739 | fi; |
10f2d63a | 2740 | |
b12915c1 | 2741 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 2742 | if test "$no_cache" != 1; then |
b12915c1 | 2743 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2744 | fi |
2745 | ||
b12915c1 | 2746 | if test "$wxUSE_LIBJPEG" = yes; then |
e6cc62c6 VS |
2747 | echo "$as_me:$LINENO: result: yes" >&5 |
2748 | echo "${ECHO_T}yes" >&6 | |
422107f9 | 2749 | elif test "$wxUSE_LIBJPEG" = no; then |
e6cc62c6 VS |
2750 | echo "$as_me:$LINENO: result: no" >&5 |
2751 | echo "${ECHO_T}no" >&6 | |
422107f9 | 2752 | elif test "$wxUSE_LIBJPEG" = sys; then |
e6cc62c6 VS |
2753 | echo "$as_me:$LINENO: result: system version" >&5 |
2754 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 2755 | elif test "$wxUSE_LIBJPEG" = builtin; then |
e6cc62c6 VS |
2756 | echo "$as_me:$LINENO: result: builtin version" >&5 |
2757 | echo "${ECHO_T}builtin version" >&6 | |
422107f9 | 2758 | else |
e6cc62c6 VS |
2759 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 |
2760 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2761 | { (exit 1); exit 1; }; } | |
10f2d63a | 2762 | fi |
10f2d63a | 2763 | |
e6cc62c6 VS |
2764 | |
2765 | echo "$as_me:$LINENO: checking for --with-libtiff" >&5 | |
2766 | echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6 | |
10f2d63a | 2767 | no_cache=0 |
e6cc62c6 VS |
2768 | |
2769 | # Check whether --with-libtiff or --without-libtiff was given. | |
b12915c1 VZ |
2770 | if test "${with_libtiff+set}" = set; then |
2771 | withval="$with_libtiff" | |
e6cc62c6 | 2772 | |
10f2d63a | 2773 | if test "$withval" = yes; then |
b12915c1 | 2774 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 2775 | elif test "$withval" = no; then |
b12915c1 | 2776 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
2777 | elif test "$withval" = sys; then |
2778 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
4f14bcd8 GD |
2779 | elif test "$withval" = builtin; then |
2780 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
0dcf9893 | 2781 | else |
e6cc62c6 VS |
2782 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 |
2783 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2784 | { (exit 1); exit 1; }; } | |
10f2d63a | 2785 | fi |
e6cc62c6 | 2786 | |
10f2d63a | 2787 | else |
e6cc62c6 | 2788 | |
b12915c1 | 2789 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
2790 | if test "x$LINE" != x ; then |
2791 | eval "DEFAULT_$LINE" | |
2792 | else | |
2793 | no_cache=1 | |
2794 | fi | |
2795 | ||
b12915c1 | 2796 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
10f2d63a | 2797 | |
e6cc62c6 | 2798 | fi; |
10f2d63a | 2799 | |
b12915c1 | 2800 | eval "$ac_cv_use_libtiff" |
10f2d63a | 2801 | if test "$no_cache" != 1; then |
b12915c1 | 2802 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2803 | fi |
2804 | ||
b12915c1 | 2805 | if test "$wxUSE_LIBTIFF" = yes; then |
e6cc62c6 VS |
2806 | echo "$as_me:$LINENO: result: yes" >&5 |
2807 | echo "${ECHO_T}yes" >&6 | |
0dcf9893 | 2808 | elif test "$wxUSE_LIBTIFF" = no; then |
e6cc62c6 VS |
2809 | echo "$as_me:$LINENO: result: no" >&5 |
2810 | echo "${ECHO_T}no" >&6 | |
0dcf9893 | 2811 | elif test "$wxUSE_LIBTIFF" = sys; then |
e6cc62c6 VS |
2812 | echo "$as_me:$LINENO: result: system version" >&5 |
2813 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 2814 | elif test "$wxUSE_LIBTIFF" = builtin; then |
e6cc62c6 VS |
2815 | echo "$as_me:$LINENO: result: builtin version" >&5 |
2816 | echo "${ECHO_T}builtin version" >&6 | |
0dcf9893 | 2817 | else |
e6cc62c6 VS |
2818 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 |
2819 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2820 | { (exit 1); exit 1; }; } | |
10f2d63a | 2821 | fi |
10f2d63a | 2822 | |
e6cc62c6 | 2823 | |
89fe663f VZ |
2824 | echo "$as_me:$LINENO: checking for --with-libxpm" >&5 |
2825 | echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6 | |
2826 | no_cache=0 | |
2827 | ||
2828 | # Check whether --with-libxpm or --without-libxpm was given. | |
2829 | if test "${with_libxpm+set}" = set; then | |
2830 | withval="$with_libxpm" | |
2831 | ||
2832 | if test "$withval" = yes; then | |
2833 | ac_cv_use_libxpm='wxUSE_LIBXPM=yes' | |
2834 | elif test "$withval" = no; then | |
2835 | ac_cv_use_libxpm='wxUSE_LIBXPM=no' | |
2836 | elif test "$withval" = sys; then | |
2837 | ac_cv_use_libxpm='wxUSE_LIBXPM=sys' | |
2838 | elif test "$withval" = builtin; then | |
2839 | ac_cv_use_libxpm='wxUSE_LIBXPM=builtin' | |
2840 | else | |
2841 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
2842 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
2843 | { (exit 1); exit 1; }; } | |
2844 | fi | |
2845 | ||
2846 | else | |
2847 | ||
2848 | LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}` | |
2849 | if test "x$LINE" != x ; then | |
2850 | eval "DEFAULT_$LINE" | |
2851 | else | |
2852 | no_cache=1 | |
2853 | fi | |
2854 | ||
2855 | ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM | |
2856 | ||
2857 | fi; | |
2858 | ||
2859 | eval "$ac_cv_use_libxpm" | |
2860 | if test "$no_cache" != 1; then | |
2861 | echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp | |
2862 | fi | |
2863 | ||
2864 | if test "$wxUSE_LIBXPM" = yes; then | |
2865 | echo "$as_me:$LINENO: result: yes" >&5 | |
2866 | echo "${ECHO_T}yes" >&6 | |
2867 | elif test "$wxUSE_LIBXPM" = no; then | |
2868 | echo "$as_me:$LINENO: result: no" >&5 | |
2869 | echo "${ECHO_T}no" >&6 | |
2870 | elif test "$wxUSE_LIBXPM" = sys; then | |
2871 | echo "$as_me:$LINENO: result: system version" >&5 | |
2872 | echo "${ECHO_T}system version" >&6 | |
2873 | elif test "$wxUSE_LIBXPM" = builtin; then | |
2874 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2875 | echo "${ECHO_T}builtin version" >&6 | |
2876 | else | |
2877 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
2878 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
2879 | { (exit 1); exit 1; }; } | |
2880 | fi | |
2881 | ||
2882 | ||
3527f29c VS |
2883 | echo "$as_me:$LINENO: checking for --with-libmspack" >&5 |
2884 | echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6 | |
2885 | no_cache=0 | |
2886 | ||
2887 | # Check whether --with-libmspack or --without-libmspack was given. | |
2888 | if test "${with_libmspack+set}" = set; then | |
2889 | withval="$with_libmspack" | |
2890 | ||
2891 | if test "$withval" = yes; then | |
2892 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes' | |
2893 | else | |
2894 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=no' | |
2895 | fi | |
2896 | ||
2897 | else | |
2898 | ||
2899 | LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}` | |
2900 | if test "x$LINE" != x ; then | |
2901 | eval "DEFAULT_$LINE" | |
2902 | else | |
2903 | no_cache=1 | |
2904 | fi | |
2905 | ||
2906 | ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK | |
2907 | ||
2908 | fi; | |
2909 | ||
2910 | eval "$ac_cv_use_libmspack" | |
2911 | if test "$no_cache" != 1; then | |
2912 | echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp | |
2913 | fi | |
2914 | ||
2915 | if test "$wxUSE_LIBMSPACK" = yes; then | |
2916 | echo "$as_me:$LINENO: result: yes" >&5 | |
2917 | echo "${ECHO_T}yes" >&6 | |
2918 | else | |
2919 | echo "$as_me:$LINENO: result: no" >&5 | |
2920 | echo "${ECHO_T}no" >&6 | |
2921 | fi | |
2922 | ||
2923 | ||
e6cc62c6 VS |
2924 | echo "$as_me:$LINENO: checking for --with-opengl" >&5 |
2925 | echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6 | |
10f2d63a | 2926 | no_cache=0 |
e6cc62c6 VS |
2927 | |
2928 | # Check whether --with-opengl or --without-opengl was given. | |
b12915c1 VZ |
2929 | if test "${with_opengl+set}" = set; then |
2930 | withval="$with_opengl" | |
e6cc62c6 | 2931 | |
10f2d63a | 2932 | if test "$withval" = yes; then |
b12915c1 | 2933 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 2934 | else |
b12915c1 | 2935 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 2936 | fi |
e6cc62c6 | 2937 | |
10f2d63a | 2938 | else |
e6cc62c6 | 2939 | |
b12915c1 | 2940 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
2941 | if test "x$LINE" != x ; then |
2942 | eval "DEFAULT_$LINE" | |
2943 | else | |
2944 | no_cache=1 | |
2945 | fi | |
2946 | ||
b12915c1 | 2947 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
10f2d63a | 2948 | |
e6cc62c6 | 2949 | fi; |
10f2d63a | 2950 | |
b12915c1 | 2951 | eval "$ac_cv_use_opengl" |
10f2d63a | 2952 | if test "$no_cache" != 1; then |
b12915c1 | 2953 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2954 | fi |
2955 | ||
b12915c1 | 2956 | if test "$wxUSE_OPENGL" = yes; then |
e6cc62c6 VS |
2957 | echo "$as_me:$LINENO: result: yes" >&5 |
2958 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 2959 | else |
e6cc62c6 VS |
2960 | echo "$as_me:$LINENO: result: no" >&5 |
2961 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 2962 | fi |
e6cc62c6 | 2963 | |
10f2d63a | 2964 | |
b12915c1 VZ |
2965 | fi |
2966 | ||
5c6fa7d2 | 2967 | |
e6cc62c6 VS |
2968 | echo "$as_me:$LINENO: checking for --with-dmalloc" >&5 |
2969 | echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6 | |
8284b0c5 | 2970 | no_cache=0 |
e6cc62c6 VS |
2971 | |
2972 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
b12915c1 VZ |
2973 | if test "${with_dmalloc+set}" = set; then |
2974 | withval="$with_dmalloc" | |
e6cc62c6 | 2975 | |
c7a2bf27 | 2976 | if test "$withval" = yes; then |
b12915c1 | 2977 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 2978 | else |
b12915c1 | 2979 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 2980 | fi |
e6cc62c6 | 2981 | |
c7a2bf27 | 2982 | else |
e6cc62c6 | 2983 | |
b12915c1 | 2984 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
2985 | if test "x$LINE" != x ; then |
2986 | eval "DEFAULT_$LINE" | |
2987 | else | |
2988 | no_cache=1 | |
2989 | fi | |
2990 | ||
b12915c1 | 2991 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
c7a2bf27 | 2992 | |
e6cc62c6 | 2993 | fi; |
c7a2bf27 | 2994 | |
b12915c1 | 2995 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 2996 | if test "$no_cache" != 1; then |
b12915c1 | 2997 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
2998 | fi |
2999 | ||
b12915c1 | 3000 | if test "$wxUSE_DMALLOC" = yes; then |
e6cc62c6 VS |
3001 | echo "$as_me:$LINENO: result: yes" >&5 |
3002 | echo "${ECHO_T}yes" >&6 | |
c7a2bf27 | 3003 | else |
e6cc62c6 VS |
3004 | echo "$as_me:$LINENO: result: no" >&5 |
3005 | echo "${ECHO_T}no" >&6 | |
c7a2bf27 | 3006 | fi |
c7a2bf27 | 3007 | |
e6cc62c6 VS |
3008 | |
3009 | echo "$as_me:$LINENO: checking for --with-regex" >&5 | |
3010 | echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6 | |
3e44f09d | 3011 | no_cache=0 |
e6cc62c6 VS |
3012 | |
3013 | # Check whether --with-regex or --without-regex was given. | |
3e44f09d VZ |
3014 | if test "${with_regex+set}" = set; then |
3015 | withval="$with_regex" | |
e6cc62c6 | 3016 | |
3e44f09d VZ |
3017 | if test "$withval" = yes; then |
3018 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
3019 | elif test "$withval" = no; then | |
3020 | ac_cv_use_regex='wxUSE_REGEX=no' | |
3021 | elif test "$withval" = sys; then | |
3022 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
4f14bcd8 GD |
3023 | elif test "$withval" = builtin; then |
3024 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3e44f09d | 3025 | else |
e6cc62c6 VS |
3026 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 |
3027 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3028 | { (exit 1); exit 1; }; } | |
3e44f09d | 3029 | fi |
e6cc62c6 | 3030 | |
3e44f09d | 3031 | else |
e6cc62c6 | 3032 | |
3e44f09d VZ |
3033 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` |
3034 | if test "x$LINE" != x ; then | |
3035 | eval "DEFAULT_$LINE" | |
3036 | else | |
3037 | no_cache=1 | |
3038 | fi | |
3039 | ||
3040 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
3e44f09d | 3041 | |
e6cc62c6 | 3042 | fi; |
3e44f09d VZ |
3043 | |
3044 | eval "$ac_cv_use_regex" | |
3045 | if test "$no_cache" != 1; then | |
3046 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
3047 | fi | |
3048 | ||
3049 | if test "$wxUSE_REGEX" = yes; then | |
e6cc62c6 VS |
3050 | echo "$as_me:$LINENO: result: yes" >&5 |
3051 | echo "${ECHO_T}yes" >&6 | |
3e44f09d | 3052 | elif test "$wxUSE_REGEX" = no; then |
e6cc62c6 VS |
3053 | echo "$as_me:$LINENO: result: no" >&5 |
3054 | echo "${ECHO_T}no" >&6 | |
3e44f09d | 3055 | elif test "$wxUSE_REGEX" = sys; then |
e6cc62c6 VS |
3056 | echo "$as_me:$LINENO: result: system version" >&5 |
3057 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 3058 | elif test "$wxUSE_REGEX" = builtin; then |
e6cc62c6 VS |
3059 | echo "$as_me:$LINENO: result: builtin version" >&5 |
3060 | echo "${ECHO_T}builtin version" >&6 | |
3e44f09d | 3061 | else |
e6cc62c6 VS |
3062 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 |
3063 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3064 | { (exit 1); exit 1; }; } | |
3e44f09d | 3065 | fi |
3e44f09d | 3066 | |
e6cc62c6 VS |
3067 | |
3068 | echo "$as_me:$LINENO: checking for --with-zlib" >&5 | |
3069 | echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6 | |
10f2d63a | 3070 | no_cache=0 |
e6cc62c6 VS |
3071 | |
3072 | # Check whether --with-zlib or --without-zlib was given. | |
b12915c1 VZ |
3073 | if test "${with_zlib+set}" = set; then |
3074 | withval="$with_zlib" | |
e6cc62c6 | 3075 | |
10f2d63a | 3076 | if test "$withval" = yes; then |
b12915c1 | 3077 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 3078 | elif test "$withval" = no; then |
b12915c1 | 3079 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
3080 | elif test "$withval" = sys; then |
3081 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
4f14bcd8 GD |
3082 | elif test "$withval" = builtin; then |
3083 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
422107f9 | 3084 | else |
e6cc62c6 VS |
3085 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 |
3086 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3087 | { (exit 1); exit 1; }; } | |
10f2d63a | 3088 | fi |
e6cc62c6 | 3089 | |
10f2d63a | 3090 | else |
e6cc62c6 | 3091 | |
b12915c1 | 3092 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
3093 | if test "x$LINE" != x ; then |
3094 | eval "DEFAULT_$LINE" | |
3095 | else | |
3096 | no_cache=1 | |
3097 | fi | |
3098 | ||
b12915c1 | 3099 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
10f2d63a | 3100 | |
e6cc62c6 | 3101 | fi; |
10f2d63a | 3102 | |
b12915c1 | 3103 | eval "$ac_cv_use_zlib" |
10f2d63a | 3104 | if test "$no_cache" != 1; then |
b12915c1 | 3105 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3106 | fi |
3107 | ||
b12915c1 | 3108 | if test "$wxUSE_ZLIB" = yes; then |
e6cc62c6 VS |
3109 | echo "$as_me:$LINENO: result: yes" >&5 |
3110 | echo "${ECHO_T}yes" >&6 | |
422107f9 | 3111 | elif test "$wxUSE_ZLIB" = no; then |
e6cc62c6 VS |
3112 | echo "$as_me:$LINENO: result: no" >&5 |
3113 | echo "${ECHO_T}no" >&6 | |
422107f9 | 3114 | elif test "$wxUSE_ZLIB" = sys; then |
e6cc62c6 VS |
3115 | echo "$as_me:$LINENO: result: system version" >&5 |
3116 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 3117 | elif test "$wxUSE_ZLIB" = builtin; then |
e6cc62c6 VS |
3118 | echo "$as_me:$LINENO: result: builtin version" >&5 |
3119 | echo "${ECHO_T}builtin version" >&6 | |
422107f9 | 3120 | else |
e6cc62c6 VS |
3121 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 |
3122 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3123 | { (exit 1); exit 1; }; } | |
10f2d63a | 3124 | fi |
10f2d63a | 3125 | |
e6cc62c6 VS |
3126 | |
3127 | echo "$as_me:$LINENO: checking for --with-odbc" >&5 | |
3128 | echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6 | |
10f2d63a | 3129 | no_cache=0 |
e6cc62c6 VS |
3130 | |
3131 | # Check whether --with-odbc or --without-odbc was given. | |
10f2d63a VZ |
3132 | if test "${with_odbc+set}" = set; then |
3133 | withval="$with_odbc" | |
e6cc62c6 | 3134 | |
10f2d63a VZ |
3135 | if test "$withval" = yes; then |
3136 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
8647bec6 | 3137 | elif test "$withval" = no; then |
10f2d63a | 3138 | ac_cv_use_odbc='wxUSE_ODBC=no' |
8647bec6 RG |
3139 | elif test "$withval" = sys; then |
3140 | ac_cv_use_odbc='wxUSE_ODBC=sys' | |
3141 | elif test "$withval" = builtin; then | |
3142 | ac_cv_use_odbc='wxUSE_ODBC=builtin' | |
3143 | else | |
e6cc62c6 VS |
3144 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 |
3145 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3146 | { (exit 1); exit 1; }; } | |
10f2d63a | 3147 | fi |
e6cc62c6 | 3148 | |
10f2d63a | 3149 | else |
e6cc62c6 | 3150 | |
10f2d63a VZ |
3151 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
3152 | if test "x$LINE" != x ; then | |
3153 | eval "DEFAULT_$LINE" | |
3154 | else | |
3155 | no_cache=1 | |
3156 | fi | |
3157 | ||
3158 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
10f2d63a | 3159 | |
e6cc62c6 | 3160 | fi; |
10f2d63a VZ |
3161 | |
3162 | eval "$ac_cv_use_odbc" | |
3163 | if test "$no_cache" != 1; then | |
3164 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
3165 | fi | |
3166 | ||
3167 | if test "$wxUSE_ODBC" = yes; then | |
e6cc62c6 VS |
3168 | echo "$as_me:$LINENO: result: yes" >&5 |
3169 | echo "${ECHO_T}yes" >&6 | |
8647bec6 | 3170 | elif test "$wxUSE_ODBC" = no; then |
e6cc62c6 VS |
3171 | echo "$as_me:$LINENO: result: no" >&5 |
3172 | echo "${ECHO_T}no" >&6 | |
8647bec6 | 3173 | elif test "$wxUSE_ODBC" = sys; then |
e6cc62c6 VS |
3174 | echo "$as_me:$LINENO: result: system version" >&5 |
3175 | echo "${ECHO_T}system version" >&6 | |
8647bec6 | 3176 | elif test "$wxUSE_ODBC" = builtin; then |
e6cc62c6 VS |
3177 | echo "$as_me:$LINENO: result: builtin version" >&5 |
3178 | echo "${ECHO_T}builtin version" >&6 | |
8647bec6 | 3179 | else |
e6cc62c6 VS |
3180 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 |
3181 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3182 | { (exit 1); exit 1; }; } | |
10f2d63a | 3183 | fi |
e6cc62c6 | 3184 | |
52127426 | 3185 | |
672abd7a VS |
3186 | echo "$as_me:$LINENO: checking for --with-expat" >&5 |
3187 | echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6 | |
3188 | no_cache=0 | |
3189 | ||
3190 | # Check whether --with-expat or --without-expat was given. | |
3191 | if test "${with_expat+set}" = set; then | |
3192 | withval="$with_expat" | |
3193 | ||
3194 | if test "$withval" = yes; then | |
3195 | ac_cv_use_expat='wxUSE_EXPAT=yes' | |
3196 | elif test "$withval" = no; then | |
3197 | ac_cv_use_expat='wxUSE_EXPAT=no' | |
3198 | elif test "$withval" = sys; then | |
3199 | ac_cv_use_expat='wxUSE_EXPAT=sys' | |
3200 | elif test "$withval" = builtin; then | |
3201 | ac_cv_use_expat='wxUSE_EXPAT=builtin' | |
3202 | else | |
3203 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3204 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3205 | { (exit 1); exit 1; }; } | |
3206 | fi | |
3207 | ||
3208 | else | |
3209 | ||
3210 | LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}` | |
3211 | if test "x$LINE" != x ; then | |
3212 | eval "DEFAULT_$LINE" | |
3213 | else | |
3214 | no_cache=1 | |
3215 | fi | |
3216 | ||
3217 | ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT | |
3218 | ||
3219 | fi; | |
3220 | ||
3221 | eval "$ac_cv_use_expat" | |
3222 | if test "$no_cache" != 1; then | |
3223 | echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp | |
3224 | fi | |
3225 | ||
3226 | if test "$wxUSE_EXPAT" = yes; then | |
3227 | echo "$as_me:$LINENO: result: yes" >&5 | |
3228 | echo "${ECHO_T}yes" >&6 | |
3229 | elif test "$wxUSE_EXPAT" = no; then | |
3230 | echo "$as_me:$LINENO: result: no" >&5 | |
3231 | echo "${ECHO_T}no" >&6 | |
3232 | elif test "$wxUSE_EXPAT" = sys; then | |
3233 | echo "$as_me:$LINENO: result: system version" >&5 | |
3234 | echo "${ECHO_T}system version" >&6 | |
3235 | elif test "$wxUSE_EXPAT" = builtin; then | |
3236 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3237 | echo "${ECHO_T}builtin version" >&6 | |
3238 | else | |
3239 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3240 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3241 | { (exit 1); exit 1; }; } | |
3242 | fi | |
3243 | ||
3244 | ||
8284b0c5 MB |
3245 | |
3246 | ||
5005acfe | 3247 | enablestring= |
e6cc62c6 VS |
3248 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5 |
3249 | echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6 | |
10f2d63a VZ |
3250 | no_cache=0 |
3251 | # Check whether --enable-shared or --disable-shared was given. | |
3252 | if test "${enable_shared+set}" = set; then | |
3253 | enableval="$enable_shared" | |
e6cc62c6 | 3254 | |
10f2d63a VZ |
3255 | if test "$enableval" = yes; then |
3256 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
3257 | else | |
3258 | ac_cv_use_shared='wxUSE_SHARED=no' | |
3259 | fi | |
e6cc62c6 | 3260 | |
10f2d63a | 3261 | else |
e6cc62c6 | 3262 | |
10f2d63a VZ |
3263 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
3264 | if test "x$LINE" != x ; then | |
3265 | eval "DEFAULT_$LINE" | |
3266 | else | |
3267 | no_cache=1 | |
3268 | fi | |
3269 | ||
3270 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
10f2d63a | 3271 | |
e6cc62c6 | 3272 | fi; |
10f2d63a VZ |
3273 | |
3274 | eval "$ac_cv_use_shared" | |
3275 | if test "$no_cache" != 1; then | |
3276 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
3277 | fi | |
3278 | ||
3279 | if test "$wxUSE_SHARED" = yes; then | |
e6cc62c6 VS |
3280 | echo "$as_me:$LINENO: result: yes" >&5 |
3281 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3282 | else |
e6cc62c6 VS |
3283 | echo "$as_me:$LINENO: result: no" >&5 |
3284 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3285 | fi |
e6cc62c6 | 3286 | |
10f2d63a | 3287 | |
5005acfe | 3288 | enablestring= |
e6cc62c6 VS |
3289 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5 |
3290 | echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6 | |
10f2d63a VZ |
3291 | no_cache=0 |
3292 | # Check whether --enable-optimise or --disable-optimise was given. | |
3293 | if test "${enable_optimise+set}" = set; then | |
3294 | enableval="$enable_optimise" | |
e6cc62c6 | 3295 | |
10f2d63a VZ |
3296 | if test "$enableval" = yes; then |
3297 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
3298 | else | |
3299 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
3300 | fi | |
e6cc62c6 | 3301 | |
10f2d63a | 3302 | else |
e6cc62c6 | 3303 | |
10f2d63a VZ |
3304 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
3305 | if test "x$LINE" != x ; then | |
3306 | eval "DEFAULT_$LINE" | |
3307 | else | |
3308 | no_cache=1 | |
3309 | fi | |
3310 | ||
3311 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
10f2d63a | 3312 | |
e6cc62c6 | 3313 | fi; |
10f2d63a VZ |
3314 | |
3315 | eval "$ac_cv_use_optimise" | |
3316 | if test "$no_cache" != 1; then | |
3317 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
3318 | fi | |
3319 | ||
3320 | if test "$wxUSE_OPTIMISE" = yes; then | |
e6cc62c6 VS |
3321 | echo "$as_me:$LINENO: result: yes" >&5 |
3322 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3323 | else |
e6cc62c6 VS |
3324 | echo "$as_me:$LINENO: result: no" >&5 |
3325 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3326 | fi |
e6cc62c6 | 3327 | |
10f2d63a | 3328 | |
5005acfe | 3329 | enablestring= |
e6cc62c6 VS |
3330 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5 |
3331 | echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6 | |
10f2d63a VZ |
3332 | no_cache=0 |
3333 | # Check whether --enable-debug or --disable-debug was given. | |
3334 | if test "${enable_debug+set}" = set; then | |
3335 | enableval="$enable_debug" | |
e6cc62c6 | 3336 | |
10f2d63a VZ |
3337 | if test "$enableval" = yes; then |
3338 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
3339 | else | |
3340 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
3341 | fi | |
e6cc62c6 | 3342 | |
10f2d63a | 3343 | else |
e6cc62c6 | 3344 | |
10f2d63a VZ |
3345 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
3346 | if test "x$LINE" != x ; then | |
3347 | eval "DEFAULT_$LINE" | |
3348 | else | |
3349 | no_cache=1 | |
3350 | fi | |
3351 | ||
3352 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
10f2d63a | 3353 | |
e6cc62c6 | 3354 | fi; |
10f2d63a VZ |
3355 | |
3356 | eval "$ac_cv_use_debug" | |
3357 | if test "$no_cache" != 1; then | |
3358 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
3359 | fi | |
3360 | ||
3361 | if test "$wxUSE_DEBUG" = yes; then | |
e6cc62c6 VS |
3362 | echo "$as_me:$LINENO: result: yes" >&5 |
3363 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3364 | else |
e6cc62c6 VS |
3365 | echo "$as_me:$LINENO: result: no" >&5 |
3366 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3367 | fi |
e6cc62c6 | 3368 | |
52127426 | 3369 | |
df5168c4 MB |
3370 | enablestring= |
3371 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5 | |
3372 | echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6 | |
3373 | no_cache=0 | |
3374 | # Check whether --enable-stl or --disable-stl was given. | |
3375 | if test "${enable_stl+set}" = set; then | |
3376 | enableval="$enable_stl" | |
3377 | ||
3378 | if test "$enableval" = yes; then | |
3379 | ac_cv_use_stl='wxUSE_STL=yes' | |
3380 | else | |
3381 | ac_cv_use_stl='wxUSE_STL=no' | |
3382 | fi | |
3383 | ||
3384 | else | |
3385 | ||
3386 | LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}` | |
3387 | if test "x$LINE" != x ; then | |
3388 | eval "DEFAULT_$LINE" | |
3389 | else | |
3390 | no_cache=1 | |
3391 | fi | |
3392 | ||
3393 | ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL | |
3394 | ||
3395 | fi; | |
3396 | ||
3397 | eval "$ac_cv_use_stl" | |
3398 | if test "$no_cache" != 1; then | |
3399 | echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp | |
3400 | fi | |
3401 | ||
3402 | if test "$wxUSE_STL" = yes; then | |
3403 | echo "$as_me:$LINENO: result: yes" >&5 | |
3404 | echo "${ECHO_T}yes" >&6 | |
3405 | else | |
3406 | echo "$as_me:$LINENO: result: no" >&5 | |
3407 | echo "${ECHO_T}no" >&6 | |
3408 | fi | |
3409 | ||
3410 | ||
10f2d63a VZ |
3411 | if test "$wxUSE_DEBUG" = "yes"; then |
3412 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
3413 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
6c67131a | 3414 | BUILD=debug |
10f2d63a VZ |
3415 | elif test "$wxUSE_DEBUG" = "no"; then |
3416 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
3417 | DEFAULT_wxUSE_DEBUG_INFO=no | |
6c67131a | 3418 | BUILD=release |
10f2d63a VZ |
3419 | fi |
3420 | ||
8284b0c5 | 3421 | |
5005acfe | 3422 | enablestring= |
e6cc62c6 VS |
3423 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5 |
3424 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6 | |
10f2d63a VZ |
3425 | no_cache=0 |
3426 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
3427 | if test "${enable_debug_flag+set}" = set; then | |
3428 | enableval="$enable_debug_flag" | |
e6cc62c6 | 3429 | |
10f2d63a VZ |
3430 | if test "$enableval" = yes; then |
3431 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
3432 | else | |
3433 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
3434 | fi | |
e6cc62c6 | 3435 | |
10f2d63a | 3436 | else |
e6cc62c6 | 3437 | |
10f2d63a VZ |
3438 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
3439 | if test "x$LINE" != x ; then | |
3440 | eval "DEFAULT_$LINE" | |
3441 | else | |
3442 | no_cache=1 | |
3443 | fi | |
3444 | ||
3445 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
10f2d63a | 3446 | |
e6cc62c6 | 3447 | fi; |
10f2d63a VZ |
3448 | |
3449 | eval "$ac_cv_use_debug_flag" | |
3450 | if test "$no_cache" != 1; then | |
3451 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
3452 | fi | |
3453 | ||
3454 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
e6cc62c6 VS |
3455 | echo "$as_me:$LINENO: result: yes" >&5 |
3456 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3457 | else |
e6cc62c6 VS |
3458 | echo "$as_me:$LINENO: result: no" >&5 |
3459 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3460 | fi |
e6cc62c6 | 3461 | |
10f2d63a | 3462 | |
5005acfe | 3463 | enablestring= |
e6cc62c6 VS |
3464 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5 |
3465 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6 | |
10f2d63a VZ |
3466 | no_cache=0 |
3467 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
3468 | if test "${enable_debug_info+set}" = set; then | |
3469 | enableval="$enable_debug_info" | |
e6cc62c6 | 3470 | |
10f2d63a VZ |
3471 | if test "$enableval" = yes; then |
3472 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
3473 | else | |
3474 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
3475 | fi | |
e6cc62c6 | 3476 | |
10f2d63a | 3477 | else |
e6cc62c6 | 3478 | |
10f2d63a VZ |
3479 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
3480 | if test "x$LINE" != x ; then | |
3481 | eval "DEFAULT_$LINE" | |
3482 | else | |
3483 | no_cache=1 | |
3484 | fi | |
3485 | ||
3486 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
10f2d63a | 3487 | |
e6cc62c6 | 3488 | fi; |
10f2d63a VZ |
3489 | |
3490 | eval "$ac_cv_use_debug_info" | |
3491 | if test "$no_cache" != 1; then | |
3492 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
3493 | fi | |
3494 | ||
3495 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
e6cc62c6 VS |
3496 | echo "$as_me:$LINENO: result: yes" >&5 |
3497 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3498 | else |
e6cc62c6 VS |
3499 | echo "$as_me:$LINENO: result: no" >&5 |
3500 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3501 | fi |
e6cc62c6 | 3502 | |
10f2d63a | 3503 | |
5005acfe | 3504 | enablestring= |
e6cc62c6 VS |
3505 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5 |
3506 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6 | |
10f2d63a VZ |
3507 | no_cache=0 |
3508 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
3509 | if test "${enable_debug_gdb+set}" = set; then | |
3510 | enableval="$enable_debug_gdb" | |
e6cc62c6 | 3511 | |
10f2d63a VZ |
3512 | if test "$enableval" = yes; then |
3513 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
3514 | else | |
3515 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
3516 | fi | |
e6cc62c6 | 3517 | |
10f2d63a | 3518 | else |
e6cc62c6 | 3519 | |
10f2d63a VZ |
3520 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
3521 | if test "x$LINE" != x ; then | |
3522 | eval "DEFAULT_$LINE" | |
3523 | else | |
3524 | no_cache=1 | |
3525 | fi | |
3526 | ||
3527 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
10f2d63a | 3528 | |
e6cc62c6 | 3529 | fi; |
10f2d63a VZ |
3530 | |
3531 | eval "$ac_cv_use_debug_gdb" | |
3532 | if test "$no_cache" != 1; then | |
3533 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
3534 | fi | |
3535 | ||
3536 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
e6cc62c6 VS |
3537 | echo "$as_me:$LINENO: result: yes" >&5 |
3538 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3539 | else |
e6cc62c6 VS |
3540 | echo "$as_me:$LINENO: result: no" >&5 |
3541 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3542 | fi |
e6cc62c6 | 3543 | |
10f2d63a | 3544 | |
5005acfe | 3545 | enablestring= |
e6cc62c6 VS |
3546 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5 |
3547 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6 | |
10f2d63a VZ |
3548 | no_cache=0 |
3549 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
3550 | if test "${enable_debug_cntxt+set}" = set; then | |
3551 | enableval="$enable_debug_cntxt" | |
e6cc62c6 | 3552 | |
10f2d63a VZ |
3553 | if test "$enableval" = yes; then |
3554 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
3555 | else | |
3556 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
3557 | fi | |
e6cc62c6 | 3558 | |
10f2d63a | 3559 | else |
e6cc62c6 | 3560 | |
10f2d63a VZ |
3561 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
3562 | if test "x$LINE" != x ; then | |
3563 | eval "DEFAULT_$LINE" | |
3564 | else | |
3565 | no_cache=1 | |
3566 | fi | |
3567 | ||
3568 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
10f2d63a | 3569 | |
e6cc62c6 | 3570 | fi; |
10f2d63a VZ |
3571 | |
3572 | eval "$ac_cv_use_debug_cntxt" | |
3573 | if test "$no_cache" != 1; then | |
3574 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
3575 | fi | |
3576 | ||
3577 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
e6cc62c6 VS |
3578 | echo "$as_me:$LINENO: result: yes" >&5 |
3579 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3580 | else |
e6cc62c6 VS |
3581 | echo "$as_me:$LINENO: result: no" >&5 |
3582 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3583 | fi |
e6cc62c6 | 3584 | |
10f2d63a | 3585 | |
5005acfe | 3586 | enablestring= |
e6cc62c6 VS |
3587 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5 |
3588 | echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6 | |
10f2d63a VZ |
3589 | no_cache=0 |
3590 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
3591 | if test "${enable_mem_tracing+set}" = set; then | |
3592 | enableval="$enable_mem_tracing" | |
e6cc62c6 | 3593 | |
10f2d63a VZ |
3594 | if test "$enableval" = yes; then |
3595 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
3596 | else | |
3597 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
3598 | fi | |
e6cc62c6 | 3599 | |
10f2d63a | 3600 | else |
e6cc62c6 | 3601 | |
10f2d63a VZ |
3602 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
3603 | if test "x$LINE" != x ; then | |
3604 | eval "DEFAULT_$LINE" | |
3605 | else | |
3606 | no_cache=1 | |
3607 | fi | |
3608 | ||
3609 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
10f2d63a | 3610 | |
e6cc62c6 | 3611 | fi; |
10f2d63a VZ |
3612 | |
3613 | eval "$ac_cv_use_mem_tracing" | |
3614 | if test "$no_cache" != 1; then | |
3615 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
3616 | fi | |
3617 | ||
3618 | if test "$wxUSE_MEM_TRACING" = yes; then | |
e6cc62c6 VS |
3619 | echo "$as_me:$LINENO: result: yes" >&5 |
3620 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3621 | else |
e6cc62c6 VS |
3622 | echo "$as_me:$LINENO: result: no" >&5 |
3623 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3624 | fi |
e6cc62c6 | 3625 | |
10f2d63a | 3626 | |
5005acfe | 3627 | enablestring= |
e6cc62c6 VS |
3628 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5 |
3629 | echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6 | |
10f2d63a VZ |
3630 | no_cache=0 |
3631 | # Check whether --enable-profile or --disable-profile was given. | |
3632 | if test "${enable_profile+set}" = set; then | |
3633 | enableval="$enable_profile" | |
e6cc62c6 | 3634 | |
10f2d63a VZ |
3635 | if test "$enableval" = yes; then |
3636 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
3637 | else | |
3638 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
3639 | fi | |
e6cc62c6 | 3640 | |
10f2d63a | 3641 | else |
e6cc62c6 | 3642 | |
10f2d63a VZ |
3643 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
3644 | if test "x$LINE" != x ; then | |
3645 | eval "DEFAULT_$LINE" | |
3646 | else | |
3647 | no_cache=1 | |
3648 | fi | |
3649 | ||
3650 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
10f2d63a | 3651 | |
e6cc62c6 | 3652 | fi; |
10f2d63a VZ |
3653 | |
3654 | eval "$ac_cv_use_profile" | |
3655 | if test "$no_cache" != 1; then | |
3656 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
3657 | fi | |
3658 | ||
3659 | if test "$wxUSE_PROFILE" = yes; then | |
e6cc62c6 VS |
3660 | echo "$as_me:$LINENO: result: yes" >&5 |
3661 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3662 | else |
e6cc62c6 VS |
3663 | echo "$as_me:$LINENO: result: no" >&5 |
3664 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3665 | fi |
e6cc62c6 | 3666 | |
10f2d63a | 3667 | |
5005acfe | 3668 | enablestring= |
e6cc62c6 VS |
3669 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5 |
3670 | echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6 | |
10f2d63a VZ |
3671 | no_cache=0 |
3672 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
3673 | if test "${enable_no_rtti+set}" = set; then | |
3674 | enableval="$enable_no_rtti" | |
e6cc62c6 | 3675 | |
10f2d63a VZ |
3676 | if test "$enableval" = yes; then |
3677 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
3678 | else | |
3679 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
3680 | fi | |
e6cc62c6 | 3681 | |
10f2d63a | 3682 | else |
e6cc62c6 | 3683 | |
10f2d63a VZ |
3684 | LINE=`grep "wxUSE_NO_RTTI" ${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_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
10f2d63a | 3692 | |
e6cc62c6 | 3693 | fi; |
10f2d63a VZ |
3694 | |
3695 | eval "$ac_cv_use_no_rtti" | |
3696 | if test "$no_cache" != 1; then | |
3697 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
3698 | fi | |
3699 | ||
3700 | if test "$wxUSE_NO_RTTI" = yes; then | |
e6cc62c6 VS |
3701 | echo "$as_me:$LINENO: result: yes" >&5 |
3702 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3703 | else |
e6cc62c6 VS |
3704 | echo "$as_me:$LINENO: result: no" >&5 |
3705 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3706 | fi |
e6cc62c6 | 3707 | |
10f2d63a | 3708 | |
5005acfe | 3709 | enablestring= |
e6cc62c6 VS |
3710 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5 |
3711 | echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6 | |
10f2d63a VZ |
3712 | no_cache=0 |
3713 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
3714 | if test "${enable_no_exceptions+set}" = set; then | |
3715 | enableval="$enable_no_exceptions" | |
e6cc62c6 | 3716 | |
10f2d63a VZ |
3717 | if test "$enableval" = yes; then |
3718 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
3719 | else | |
3720 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
3721 | fi | |
e6cc62c6 | 3722 | |
10f2d63a | 3723 | else |
e6cc62c6 | 3724 | |
10f2d63a VZ |
3725 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${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_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
10f2d63a | 3733 | |
e6cc62c6 | 3734 | fi; |
10f2d63a VZ |
3735 | |
3736 | eval "$ac_cv_use_no_exceptions" | |
3737 | if test "$no_cache" != 1; then | |
3738 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
3739 | fi | |
3740 | ||
3741 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
e6cc62c6 VS |
3742 | echo "$as_me:$LINENO: result: yes" >&5 |
3743 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3744 | else |
e6cc62c6 VS |
3745 | echo "$as_me:$LINENO: result: no" >&5 |
3746 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3747 | fi |
e6cc62c6 | 3748 | |
10f2d63a | 3749 | |
5005acfe | 3750 | enablestring= |
e6cc62c6 VS |
3751 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5 |
3752 | echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6 | |
10f2d63a VZ |
3753 | no_cache=0 |
3754 | # Check whether --enable-permissive or --disable-permissive was given. | |
3755 | if test "${enable_permissive+set}" = set; then | |
3756 | enableval="$enable_permissive" | |
e6cc62c6 | 3757 | |
10f2d63a VZ |
3758 | if test "$enableval" = yes; then |
3759 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
3760 | else | |
3761 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
3762 | fi | |
e6cc62c6 | 3763 | |
10f2d63a | 3764 | else |
e6cc62c6 | 3765 | |
10f2d63a VZ |
3766 | LINE=`grep "wxUSE_PERMISSIVE" ${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_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
10f2d63a | 3774 | |
e6cc62c6 | 3775 | fi; |
10f2d63a VZ |
3776 | |
3777 | eval "$ac_cv_use_permissive" | |
3778 | if test "$no_cache" != 1; then | |
3779 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
3780 | fi | |
3781 | ||
3782 | if test "$wxUSE_PERMISSIVE" = yes; then | |
e6cc62c6 VS |
3783 | echo "$as_me:$LINENO: result: yes" >&5 |
3784 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3785 | else |
e6cc62c6 VS |
3786 | echo "$as_me:$LINENO: result: no" >&5 |
3787 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3788 | fi |
e6cc62c6 | 3789 | |
10f2d63a | 3790 | |
5005acfe | 3791 | enablestring= |
e6cc62c6 VS |
3792 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5 |
3793 | echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6 | |
10f2d63a VZ |
3794 | no_cache=0 |
3795 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
3796 | if test "${enable_no_deps+set}" = set; then | |
3797 | enableval="$enable_no_deps" | |
e6cc62c6 | 3798 | |
10f2d63a VZ |
3799 | if test "$enableval" = yes; then |
3800 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
3801 | else | |
3802 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
3803 | fi | |
e6cc62c6 | 3804 | |
10f2d63a | 3805 | else |
e6cc62c6 | 3806 | |
10f2d63a VZ |
3807 | LINE=`grep "wxUSE_NO_DEPS" ${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_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
10f2d63a | 3815 | |
e6cc62c6 | 3816 | fi; |
10f2d63a VZ |
3817 | |
3818 | eval "$ac_cv_use_no_deps" | |
3819 | if test "$no_cache" != 1; then | |
3820 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
3821 | fi | |
3822 | ||
3823 | if test "$wxUSE_NO_DEPS" = yes; then | |
e6cc62c6 VS |
3824 | echo "$as_me:$LINENO: result: yes" >&5 |
3825 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3826 | else |
e6cc62c6 VS |
3827 | echo "$as_me:$LINENO: result: no" >&5 |
3828 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3829 | fi |
e6cc62c6 | 3830 | |
52127426 | 3831 | |
8284b0c5 | 3832 | |
65d8ef1e | 3833 | enablestring= |
e6cc62c6 VS |
3834 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5 |
3835 | echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6 | |
54276ccf VZ |
3836 | no_cache=0 |
3837 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
3838 | if test "${enable_compat22+set}" = set; then | |
3839 | enableval="$enable_compat22" | |
e6cc62c6 | 3840 | |
54276ccf VZ |
3841 | if test "$enableval" = yes; then |
3842 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
3843 | else | |
3844 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
3845 | fi | |
e6cc62c6 | 3846 | |
54276ccf | 3847 | else |
e6cc62c6 | 3848 | |
54276ccf VZ |
3849 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` |
3850 | if test "x$LINE" != x ; then | |
3851 | eval "DEFAULT_$LINE" | |
3852 | else | |
3853 | no_cache=1 | |
3854 | fi | |
3855 | ||
3856 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
54276ccf | 3857 | |
e6cc62c6 | 3858 | fi; |
54276ccf VZ |
3859 | |
3860 | eval "$ac_cv_use_compat22" | |
3861 | if test "$no_cache" != 1; then | |
3862 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
3863 | fi | |
3864 | ||
3865 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
e6cc62c6 VS |
3866 | echo "$as_me:$LINENO: result: yes" >&5 |
3867 | echo "${ECHO_T}yes" >&6 | |
54276ccf | 3868 | else |
e6cc62c6 VS |
3869 | echo "$as_me:$LINENO: result: no" >&5 |
3870 | echo "${ECHO_T}no" >&6 | |
54276ccf | 3871 | fi |
e6cc62c6 | 3872 | |
54276ccf | 3873 | |
65d8ef1e | 3874 | enablestring=disable |
e6cc62c6 VS |
3875 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5 |
3876 | echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6 | |
65d8ef1e VS |
3877 | no_cache=0 |
3878 | # Check whether --enable-compat24 or --disable-compat24 was given. | |
3879 | if test "${enable_compat24+set}" = set; then | |
3880 | enableval="$enable_compat24" | |
e6cc62c6 | 3881 | |
65d8ef1e VS |
3882 | if test "$enableval" = yes; then |
3883 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes' | |
3884 | else | |
3885 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no' | |
3886 | fi | |
e6cc62c6 | 3887 | |
65d8ef1e | 3888 | else |
e6cc62c6 | 3889 | |
65d8ef1e VS |
3890 | LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}` |
3891 | if test "x$LINE" != x ; then | |
3892 | eval "DEFAULT_$LINE" | |
3893 | else | |
3894 | no_cache=1 | |
3895 | fi | |
3896 | ||
3897 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4 | |
65d8ef1e | 3898 | |
e6cc62c6 | 3899 | fi; |
65d8ef1e VS |
3900 | |
3901 | eval "$ac_cv_use_compat24" | |
3902 | if test "$no_cache" != 1; then | |
3903 | echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp | |
3904 | fi | |
3905 | ||
3906 | if test "$WXWIN_COMPATIBILITY_2_4" = yes; then | |
e6cc62c6 VS |
3907 | echo "$as_me:$LINENO: result: yes" >&5 |
3908 | echo "${ECHO_T}yes" >&6 | |
65d8ef1e | 3909 | else |
e6cc62c6 VS |
3910 | echo "$as_me:$LINENO: result: no" >&5 |
3911 | echo "${ECHO_T}no" >&6 | |
65d8ef1e | 3912 | fi |
e6cc62c6 | 3913 | |
65d8ef1e | 3914 | |
3bd8fb5f RD |
3915 | # Check whether --enable-rpath or --disable-rpath was given. |
3916 | if test "${enable_rpath+set}" = set; then | |
3917 | enableval="$enable_rpath" | |
3918 | wxRPATH_DIR="$enableval" | |
e6cc62c6 | 3919 | fi; |
3bd8fb5f RD |
3920 | |
3921 | if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then | |
3922 | WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR" | |
3923 | fi | |
3924 | ||
8284b0c5 MB |
3925 | |
3926 | ||
3927 | ||
5005acfe | 3928 | enablestring= |
e6cc62c6 VS |
3929 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5 |
3930 | echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6 | |
10f2d63a VZ |
3931 | no_cache=0 |
3932 | # Check whether --enable-intl or --disable-intl was given. | |
3933 | if test "${enable_intl+set}" = set; then | |
3934 | enableval="$enable_intl" | |
e6cc62c6 | 3935 | |
10f2d63a VZ |
3936 | if test "$enableval" = yes; then |
3937 | ac_cv_use_intl='wxUSE_INTL=yes' | |
3938 | else | |
3939 | ac_cv_use_intl='wxUSE_INTL=no' | |
3940 | fi | |
e6cc62c6 | 3941 | |
10f2d63a | 3942 | else |
e6cc62c6 | 3943 | |
10f2d63a VZ |
3944 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
3945 | if test "x$LINE" != x ; then | |
3946 | eval "DEFAULT_$LINE" | |
3947 | else | |
3948 | no_cache=1 | |
3949 | fi | |
3950 | ||
3951 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
10f2d63a | 3952 | |
e6cc62c6 | 3953 | fi; |
10f2d63a VZ |
3954 | |
3955 | eval "$ac_cv_use_intl" | |
3956 | if test "$no_cache" != 1; then | |
3957 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
3958 | fi | |
3959 | ||
3960 | if test "$wxUSE_INTL" = yes; then | |
e6cc62c6 VS |
3961 | echo "$as_me:$LINENO: result: yes" >&5 |
3962 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3963 | else |
e6cc62c6 VS |
3964 | echo "$as_me:$LINENO: result: no" >&5 |
3965 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3966 | fi |
e6cc62c6 | 3967 | |
10f2d63a | 3968 | |
5005acfe | 3969 | enablestring= |
e6cc62c6 VS |
3970 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5 |
3971 | echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6 | |
10f2d63a VZ |
3972 | no_cache=0 |
3973 | # Check whether --enable-config or --disable-config was given. | |
3974 | if test "${enable_config+set}" = set; then | |
3975 | enableval="$enable_config" | |
e6cc62c6 | 3976 | |
10f2d63a VZ |
3977 | if test "$enableval" = yes; then |
3978 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
3979 | else | |
3980 | ac_cv_use_config='wxUSE_CONFIG=no' | |
3981 | fi | |
e6cc62c6 | 3982 | |
10f2d63a | 3983 | else |
e6cc62c6 | 3984 | |
10f2d63a VZ |
3985 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
3986 | if test "x$LINE" != x ; then | |
3987 | eval "DEFAULT_$LINE" | |
3988 | else | |
3989 | no_cache=1 | |
3990 | fi | |
3991 | ||
3992 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
10f2d63a | 3993 | |
e6cc62c6 | 3994 | fi; |
10f2d63a VZ |
3995 | |
3996 | eval "$ac_cv_use_config" | |
3997 | if test "$no_cache" != 1; then | |
3998 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
3999 | fi | |
4000 | ||
4001 | if test "$wxUSE_CONFIG" = yes; then | |
e6cc62c6 VS |
4002 | echo "$as_me:$LINENO: result: yes" >&5 |
4003 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4004 | else |
e6cc62c6 VS |
4005 | echo "$as_me:$LINENO: result: no" >&5 |
4006 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4007 | fi |
e6cc62c6 | 4008 | |
52127426 | 4009 | |
8284b0c5 | 4010 | |
5005acfe | 4011 | enablestring= |
e6cc62c6 VS |
4012 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5 |
4013 | echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6 | |
a1622950 VZ |
4014 | no_cache=0 |
4015 | # Check whether --enable-protocols or --disable-protocols was given. | |
4016 | if test "${enable_protocols+set}" = set; then | |
4017 | enableval="$enable_protocols" | |
e6cc62c6 | 4018 | |
a1622950 VZ |
4019 | if test "$enableval" = yes; then |
4020 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
4021 | else | |
4022 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
4023 | fi | |
e6cc62c6 | 4024 | |
a1622950 | 4025 | else |
e6cc62c6 | 4026 | |
a1622950 VZ |
4027 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` |
4028 | if test "x$LINE" != x ; then | |
4029 | eval "DEFAULT_$LINE" | |
4030 | else | |
4031 | no_cache=1 | |
4032 | fi | |
4033 | ||
4034 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
a1622950 | 4035 | |
e6cc62c6 | 4036 | fi; |
a1622950 VZ |
4037 | |
4038 | eval "$ac_cv_use_protocols" | |
4039 | if test "$no_cache" != 1; then | |
4040 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
4041 | fi | |
4042 | ||
4043 | if test "$wxUSE_PROTOCOL" = yes; then | |
e6cc62c6 VS |
4044 | echo "$as_me:$LINENO: result: yes" >&5 |
4045 | echo "${ECHO_T}yes" >&6 | |
a1622950 | 4046 | else |
e6cc62c6 VS |
4047 | echo "$as_me:$LINENO: result: no" >&5 |
4048 | echo "${ECHO_T}no" >&6 | |
a1622950 | 4049 | fi |
e6cc62c6 | 4050 | |
a1622950 | 4051 | |
5005acfe | 4052 | enablestring= |
e6cc62c6 VS |
4053 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5 |
4054 | echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6 | |
a1622950 VZ |
4055 | no_cache=0 |
4056 | # Check whether --enable-ftp or --disable-ftp was given. | |
4057 | if test "${enable_ftp+set}" = set; then | |
4058 | enableval="$enable_ftp" | |
e6cc62c6 | 4059 | |
a1622950 VZ |
4060 | if test "$enableval" = yes; then |
4061 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4062 | else | |
4063 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
4064 | fi | |
e6cc62c6 | 4065 | |
a1622950 | 4066 | else |
e6cc62c6 | 4067 | |
a1622950 VZ |
4068 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` |
4069 | if test "x$LINE" != x ; then | |
4070 | eval "DEFAULT_$LINE" | |
4071 | else | |
4072 | no_cache=1 | |
4073 | fi | |
4074 | ||
4075 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
a1622950 | 4076 | |
e6cc62c6 | 4077 | fi; |
a1622950 VZ |
4078 | |
4079 | eval "$ac_cv_use_ftp" | |
4080 | if test "$no_cache" != 1; then | |
4081 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
4082 | fi | |
4083 | ||
4084 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
e6cc62c6 VS |
4085 | echo "$as_me:$LINENO: result: yes" >&5 |
4086 | echo "${ECHO_T}yes" >&6 | |
a1622950 | 4087 | else |
e6cc62c6 VS |
4088 | echo "$as_me:$LINENO: result: no" >&5 |
4089 | echo "${ECHO_T}no" >&6 | |
a1622950 | 4090 | fi |
e6cc62c6 | 4091 | |
a1622950 | 4092 | |
5005acfe | 4093 | enablestring= |
e6cc62c6 VS |
4094 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5 |
4095 | echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6 | |
a1622950 VZ |
4096 | no_cache=0 |
4097 | # Check whether --enable-http or --disable-http was given. | |
4098 | if test "${enable_http+set}" = set; then | |
4099 | enableval="$enable_http" | |
e6cc62c6 | 4100 | |
a1622950 VZ |
4101 | if test "$enableval" = yes; then |
4102 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
4103 | else | |
4104 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
4105 | fi | |
e6cc62c6 | 4106 | |
a1622950 | 4107 | else |
e6cc62c6 | 4108 | |
a1622950 VZ |
4109 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` |
4110 | if test "x$LINE" != x ; then | |
4111 | eval "DEFAULT_$LINE" | |
4112 | else | |
4113 | no_cache=1 | |
4114 | fi | |
4115 | ||
4116 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
a1622950 | 4117 | |
e6cc62c6 | 4118 | fi; |
a1622950 VZ |
4119 | |
4120 | eval "$ac_cv_use_http" | |
4121 | if test "$no_cache" != 1; then | |
4122 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
4123 | fi | |
4124 | ||
4125 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
e6cc62c6 VS |
4126 | echo "$as_me:$LINENO: result: yes" >&5 |
4127 | echo "${ECHO_T}yes" >&6 | |
a1622950 | 4128 | else |
e6cc62c6 VS |
4129 | echo "$as_me:$LINENO: result: no" >&5 |
4130 | echo "${ECHO_T}no" >&6 | |
a1622950 | 4131 | fi |
e6cc62c6 | 4132 | |
a1622950 | 4133 | |
5005acfe | 4134 | enablestring= |
e6cc62c6 VS |
4135 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5 |
4136 | echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6 | |
a1622950 VZ |
4137 | no_cache=0 |
4138 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
4139 | if test "${enable_fileproto+set}" = set; then | |
4140 | enableval="$enable_fileproto" | |
e6cc62c6 | 4141 | |
a1622950 VZ |
4142 | if test "$enableval" = yes; then |
4143 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
4144 | else | |
4145 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
4146 | fi | |
e6cc62c6 | 4147 | |
a1622950 | 4148 | else |
e6cc62c6 | 4149 | |
a1622950 VZ |
4150 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` |
4151 | if test "x$LINE" != x ; then | |
4152 | eval "DEFAULT_$LINE" | |
4153 | else | |
4154 | no_cache=1 | |
4155 | fi | |
4156 | ||
4157 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
a1622950 | 4158 | |
e6cc62c6 | 4159 | fi; |
a1622950 VZ |
4160 | |
4161 | eval "$ac_cv_use_fileproto" | |
4162 | if test "$no_cache" != 1; then | |
4163 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
4164 | fi | |
4165 | ||
4166 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
e6cc62c6 VS |
4167 | echo "$as_me:$LINENO: result: yes" >&5 |
4168 | echo "${ECHO_T}yes" >&6 | |
a1622950 | 4169 | else |
e6cc62c6 VS |
4170 | echo "$as_me:$LINENO: result: no" >&5 |
4171 | echo "${ECHO_T}no" >&6 | |
a1622950 | 4172 | fi |
e6cc62c6 | 4173 | |
a1622950 | 4174 | |
5005acfe | 4175 | enablestring= |
e6cc62c6 VS |
4176 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5 |
4177 | echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6 | |
10f2d63a VZ |
4178 | no_cache=0 |
4179 | # Check whether --enable-sockets or --disable-sockets was given. | |
4180 | if test "${enable_sockets+set}" = set; then | |
4181 | enableval="$enable_sockets" | |
e6cc62c6 | 4182 | |
10f2d63a VZ |
4183 | if test "$enableval" = yes; then |
4184 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
4185 | else | |
4186 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
4187 | fi | |
e6cc62c6 | 4188 | |
10f2d63a | 4189 | else |
e6cc62c6 | 4190 | |
10f2d63a VZ |
4191 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
4192 | if test "x$LINE" != x ; then | |
4193 | eval "DEFAULT_$LINE" | |
4194 | else | |
4195 | no_cache=1 | |
4196 | fi | |
4197 | ||
4198 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
10f2d63a | 4199 | |
e6cc62c6 | 4200 | fi; |
10f2d63a VZ |
4201 | |
4202 | eval "$ac_cv_use_sockets" | |
4203 | if test "$no_cache" != 1; then | |
4204 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
4205 | fi | |
4206 | ||
4207 | if test "$wxUSE_SOCKETS" = yes; then | |
e6cc62c6 VS |
4208 | echo "$as_me:$LINENO: result: yes" >&5 |
4209 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4210 | else |
e6cc62c6 VS |
4211 | echo "$as_me:$LINENO: result: no" >&5 |
4212 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4213 | fi |
e6cc62c6 | 4214 | |
8284b0c5 | 4215 | |
5005acfe | 4216 | enablestring= |
e6cc62c6 VS |
4217 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5 |
4218 | echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6 | |
3bce6687 JS |
4219 | no_cache=0 |
4220 | # Check whether --enable-ole or --disable-ole was given. | |
4221 | if test "${enable_ole+set}" = set; then | |
4222 | enableval="$enable_ole" | |
e6cc62c6 | 4223 | |
3bce6687 JS |
4224 | if test "$enableval" = yes; then |
4225 | ac_cv_use_ole='wxUSE_OLE=yes' | |
4226 | else | |
4227 | ac_cv_use_ole='wxUSE_OLE=no' | |
4228 | fi | |
e6cc62c6 | 4229 | |
3bce6687 | 4230 | else |
e6cc62c6 | 4231 | |
3bce6687 JS |
4232 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` |
4233 | if test "x$LINE" != x ; then | |
4234 | eval "DEFAULT_$LINE" | |
4235 | else | |
4236 | no_cache=1 | |
4237 | fi | |
4238 | ||
4239 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
3bce6687 | 4240 | |
e6cc62c6 | 4241 | fi; |
3bce6687 JS |
4242 | |
4243 | eval "$ac_cv_use_ole" | |
4244 | if test "$no_cache" != 1; then | |
4245 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
4246 | fi | |
4247 | ||
4248 | if test "$wxUSE_OLE" = yes; then | |
e6cc62c6 VS |
4249 | echo "$as_me:$LINENO: result: yes" >&5 |
4250 | echo "${ECHO_T}yes" >&6 | |
3bce6687 | 4251 | else |
e6cc62c6 VS |
4252 | echo "$as_me:$LINENO: result: no" >&5 |
4253 | echo "${ECHO_T}no" >&6 | |
3bce6687 | 4254 | fi |
e6cc62c6 | 4255 | |
3bce6687 | 4256 | |
5005acfe | 4257 | enablestring= |
e6cc62c6 VS |
4258 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5 |
4259 | echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6 | |
3bce6687 JS |
4260 | no_cache=0 |
4261 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
4262 | if test "${enable_dataobj+set}" = set; then | |
4263 | enableval="$enable_dataobj" | |
e6cc62c6 | 4264 | |
3bce6687 JS |
4265 | if test "$enableval" = yes; then |
4266 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
4267 | else | |
4268 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
4269 | fi | |
e6cc62c6 | 4270 | |
3bce6687 | 4271 | else |
e6cc62c6 | 4272 | |
3bce6687 JS |
4273 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` |
4274 | if test "x$LINE" != x ; then | |
4275 | eval "DEFAULT_$LINE" | |
4276 | else | |
4277 | no_cache=1 | |
4278 | fi | |
4279 | ||
4280 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
3bce6687 | 4281 | |
e6cc62c6 | 4282 | fi; |
3bce6687 JS |
4283 | |
4284 | eval "$ac_cv_use_dataobj" | |
4285 | if test "$no_cache" != 1; then | |
4286 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
4287 | fi | |
4288 | ||
4289 | if test "$wxUSE_DATAOBJ" = yes; then | |
e6cc62c6 VS |
4290 | echo "$as_me:$LINENO: result: yes" >&5 |
4291 | echo "${ECHO_T}yes" >&6 | |
3bce6687 | 4292 | else |
e6cc62c6 VS |
4293 | echo "$as_me:$LINENO: result: no" >&5 |
4294 | echo "${ECHO_T}no" >&6 | |
3bce6687 | 4295 | fi |
e6cc62c6 | 4296 | |
3bce6687 | 4297 | |
52127426 | 4298 | |
5005acfe | 4299 | enablestring= |
e6cc62c6 VS |
4300 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5 |
4301 | echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6 | |
10f2d63a | 4302 | no_cache=0 |
eb4efbdc VZ |
4303 | # Check whether --enable-ipc or --disable-ipc was given. |
4304 | if test "${enable_ipc+set}" = set; then | |
4305 | enableval="$enable_ipc" | |
e6cc62c6 | 4306 | |
10f2d63a | 4307 | if test "$enableval" = yes; then |
eb4efbdc | 4308 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 4309 | else |
eb4efbdc | 4310 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 4311 | fi |
e6cc62c6 | 4312 | |
10f2d63a | 4313 | else |
e6cc62c6 | 4314 | |
eb4efbdc | 4315 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
4316 | if test "x$LINE" != x ; then |
4317 | eval "DEFAULT_$LINE" | |
4318 | else | |
4319 | no_cache=1 | |
4320 | fi | |
4321 | ||
eb4efbdc | 4322 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
10f2d63a | 4323 | |
e6cc62c6 | 4324 | fi; |
10f2d63a | 4325 | |
eb4efbdc | 4326 | eval "$ac_cv_use_ipc" |
10f2d63a | 4327 | if test "$no_cache" != 1; then |
eb4efbdc | 4328 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4329 | fi |
4330 | ||
eb4efbdc | 4331 | if test "$wxUSE_IPC" = yes; then |
e6cc62c6 VS |
4332 | echo "$as_me:$LINENO: result: yes" >&5 |
4333 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4334 | else |
e6cc62c6 VS |
4335 | echo "$as_me:$LINENO: result: no" >&5 |
4336 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4337 | fi |
e6cc62c6 | 4338 | |
52127426 | 4339 | |
8284b0c5 | 4340 | |
5005acfe | 4341 | enablestring= |
e46d2a18 VS |
4342 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5 |
4343 | echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6 | |
10f2d63a | 4344 | no_cache=0 |
e46d2a18 VS |
4345 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. |
4346 | if test "${enable_apple_ieee+set}" = set; then | |
4347 | enableval="$enable_apple_ieee" | |
e6cc62c6 | 4348 | |
10f2d63a | 4349 | if test "$enableval" = yes; then |
e46d2a18 | 4350 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' |
10f2d63a | 4351 | else |
e46d2a18 | 4352 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' |
10f2d63a | 4353 | fi |
e6cc62c6 | 4354 | |
10f2d63a | 4355 | else |
e6cc62c6 | 4356 | |
e46d2a18 | 4357 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4358 | if test "x$LINE" != x ; then |
4359 | eval "DEFAULT_$LINE" | |
4360 | else | |
4361 | no_cache=1 | |
4362 | fi | |
4363 | ||
e46d2a18 | 4364 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE |
10f2d63a | 4365 | |
e6cc62c6 | 4366 | fi; |
10f2d63a | 4367 | |
e46d2a18 | 4368 | eval "$ac_cv_use_apple_ieee" |
10f2d63a | 4369 | if test "$no_cache" != 1; then |
e46d2a18 | 4370 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4371 | fi |
4372 | ||
e46d2a18 | 4373 | if test "$wxUSE_APPLE_IEEE" = yes; then |
e6cc62c6 VS |
4374 | echo "$as_me:$LINENO: result: yes" >&5 |
4375 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4376 | else |
e6cc62c6 VS |
4377 | echo "$as_me:$LINENO: result: no" >&5 |
4378 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4379 | fi |
e6cc62c6 | 4380 | |
10f2d63a | 4381 | |
5005acfe | 4382 | enablestring= |
e46d2a18 VS |
4383 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5 |
4384 | echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6 | |
10f2d63a | 4385 | no_cache=0 |
e46d2a18 VS |
4386 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. |
4387 | if test "${enable_catch_segvs+set}" = set; then | |
4388 | enableval="$enable_catch_segvs" | |
e6cc62c6 | 4389 | |
10f2d63a | 4390 | if test "$enableval" = yes; then |
e46d2a18 | 4391 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' |
10f2d63a | 4392 | else |
e46d2a18 | 4393 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' |
10f2d63a | 4394 | fi |
e6cc62c6 | 4395 | |
10f2d63a | 4396 | else |
e6cc62c6 | 4397 | |
e46d2a18 | 4398 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
10f2d63a VZ |
4399 | if test "x$LINE" != x ; then |
4400 | eval "DEFAULT_$LINE" | |
4401 | else | |
4402 | no_cache=1 | |
4403 | fi | |
4404 | ||
e46d2a18 | 4405 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION |
10f2d63a | 4406 | |
e6cc62c6 | 4407 | fi; |
10f2d63a | 4408 | |
e46d2a18 | 4409 | eval "$ac_cv_use_catch_segvs" |
10f2d63a | 4410 | if test "$no_cache" != 1; then |
e46d2a18 | 4411 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4412 | fi |
4413 | ||
e46d2a18 | 4414 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then |
e6cc62c6 VS |
4415 | echo "$as_me:$LINENO: result: yes" >&5 |
4416 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4417 | else |
e6cc62c6 VS |
4418 | echo "$as_me:$LINENO: result: no" >&5 |
4419 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4420 | fi |
e6cc62c6 | 4421 | |
10f2d63a | 4422 | |
5005acfe | 4423 | enablestring= |
e46d2a18 VS |
4424 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5 |
4425 | echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6 | |
10f2d63a | 4426 | no_cache=0 |
e46d2a18 VS |
4427 | # Check whether --enable-cmdline or --disable-cmdline was given. |
4428 | if test "${enable_cmdline+set}" = set; then | |
4429 | enableval="$enable_cmdline" | |
e6cc62c6 | 4430 | |
10f2d63a | 4431 | if test "$enableval" = yes; then |
e46d2a18 | 4432 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' |
10f2d63a | 4433 | else |
e46d2a18 | 4434 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' |
10f2d63a | 4435 | fi |
e6cc62c6 | 4436 | |
10f2d63a | 4437 | else |
e6cc62c6 | 4438 | |
e46d2a18 | 4439 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` |
10f2d63a VZ |
4440 | if test "x$LINE" != x ; then |
4441 | eval "DEFAULT_$LINE" | |
4442 | else | |
4443 | no_cache=1 | |
4444 | fi | |
4445 | ||
e46d2a18 | 4446 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER |
10f2d63a | 4447 | |
e6cc62c6 | 4448 | fi; |
10f2d63a | 4449 | |
e46d2a18 | 4450 | eval "$ac_cv_use_cmdline" |
10f2d63a | 4451 | if test "$no_cache" != 1; then |
e46d2a18 | 4452 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4453 | fi |
4454 | ||
e46d2a18 | 4455 | if test "$wxUSE_CMDLINE_PARSER" = yes; then |
e6cc62c6 VS |
4456 | echo "$as_me:$LINENO: result: yes" >&5 |
4457 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4458 | else |
e6cc62c6 VS |
4459 | echo "$as_me:$LINENO: result: no" >&5 |
4460 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4461 | fi |
e6cc62c6 | 4462 | |
10f2d63a | 4463 | |
5005acfe | 4464 | enablestring= |
e46d2a18 VS |
4465 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5 |
4466 | echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6 | |
10f2d63a | 4467 | no_cache=0 |
e46d2a18 VS |
4468 | # Check whether --enable-datetime or --disable-datetime was given. |
4469 | if test "${enable_datetime+set}" = set; then | |
4470 | enableval="$enable_datetime" | |
e6cc62c6 | 4471 | |
10f2d63a | 4472 | if test "$enableval" = yes; then |
e46d2a18 | 4473 | ac_cv_use_datetime='wxUSE_DATETIME=yes' |
10f2d63a | 4474 | else |
e46d2a18 | 4475 | ac_cv_use_datetime='wxUSE_DATETIME=no' |
10f2d63a | 4476 | fi |
e6cc62c6 | 4477 | |
10f2d63a | 4478 | else |
e6cc62c6 | 4479 | |
e46d2a18 | 4480 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` |
10f2d63a VZ |
4481 | if test "x$LINE" != x ; then |
4482 | eval "DEFAULT_$LINE" | |
4483 | else | |
4484 | no_cache=1 | |
4485 | fi | |
4486 | ||
e46d2a18 | 4487 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME |
10f2d63a | 4488 | |
e6cc62c6 | 4489 | fi; |
10f2d63a | 4490 | |
e46d2a18 | 4491 | eval "$ac_cv_use_datetime" |
10f2d63a | 4492 | if test "$no_cache" != 1; then |
e46d2a18 | 4493 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4494 | fi |
4495 | ||
e46d2a18 | 4496 | if test "$wxUSE_DATETIME" = yes; then |
e6cc62c6 VS |
4497 | echo "$as_me:$LINENO: result: yes" >&5 |
4498 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4499 | else |
e6cc62c6 VS |
4500 | echo "$as_me:$LINENO: result: no" >&5 |
4501 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4502 | fi |
e6cc62c6 | 4503 | |
10f2d63a | 4504 | |
5005acfe | 4505 | enablestring= |
e46d2a18 VS |
4506 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5 |
4507 | echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6 | |
10f2d63a | 4508 | no_cache=0 |
e46d2a18 VS |
4509 | # Check whether --enable-dialupman or --disable-dialupman was given. |
4510 | if test "${enable_dialupman+set}" = set; then | |
4511 | enableval="$enable_dialupman" | |
e6cc62c6 | 4512 | |
10f2d63a | 4513 | if test "$enableval" = yes; then |
e46d2a18 | 4514 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 4515 | else |
e46d2a18 | 4516 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 4517 | fi |
e6cc62c6 | 4518 | |
10f2d63a | 4519 | else |
e6cc62c6 | 4520 | |
e46d2a18 | 4521 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
4522 | if test "x$LINE" != x ; then |
4523 | eval "DEFAULT_$LINE" | |
4524 | else | |
4525 | no_cache=1 | |
4526 | fi | |
4527 | ||
e46d2a18 | 4528 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
10f2d63a | 4529 | |
e6cc62c6 | 4530 | fi; |
10f2d63a | 4531 | |
e46d2a18 | 4532 | eval "$ac_cv_use_dialupman" |
10f2d63a | 4533 | if test "$no_cache" != 1; then |
e46d2a18 | 4534 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4535 | fi |
4536 | ||
e46d2a18 | 4537 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
e6cc62c6 VS |
4538 | echo "$as_me:$LINENO: result: yes" >&5 |
4539 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4540 | else |
e6cc62c6 VS |
4541 | echo "$as_me:$LINENO: result: no" >&5 |
4542 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4543 | fi |
e6cc62c6 | 4544 | |
10f2d63a | 4545 | |
5005acfe | 4546 | enablestring= |
e6cc62c6 VS |
4547 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5 |
4548 | echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6 | |
10f2d63a VZ |
4549 | no_cache=0 |
4550 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
4551 | if test "${enable_dynlib+set}" = set; then | |
4552 | enableval="$enable_dynlib" | |
e6cc62c6 | 4553 | |
10f2d63a VZ |
4554 | if test "$enableval" = yes; then |
4555 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
4556 | else | |
4557 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
4558 | fi | |
e6cc62c6 | 4559 | |
10f2d63a | 4560 | else |
e6cc62c6 | 4561 | |
10f2d63a VZ |
4562 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
4563 | if test "x$LINE" != x ; then | |
4564 | eval "DEFAULT_$LINE" | |
4565 | else | |
4566 | no_cache=1 | |
4567 | fi | |
4568 | ||
4569 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
10f2d63a | 4570 | |
e6cc62c6 | 4571 | fi; |
10f2d63a VZ |
4572 | |
4573 | eval "$ac_cv_use_dynlib" | |
4574 | if test "$no_cache" != 1; then | |
4575 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
4576 | fi | |
4577 | ||
4578 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
e6cc62c6 VS |
4579 | echo "$as_me:$LINENO: result: yes" >&5 |
4580 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4581 | else |
e6cc62c6 VS |
4582 | echo "$as_me:$LINENO: result: no" >&5 |
4583 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4584 | fi |
e6cc62c6 | 4585 | |
10f2d63a | 4586 | |
5005acfe | 4587 | enablestring= |
e6cc62c6 VS |
4588 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5 |
4589 | echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6 | |
0b9ab0bd RL |
4590 | no_cache=0 |
4591 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
4592 | if test "${enable_dynamicloader+set}" = set; then | |
4593 | enableval="$enable_dynamicloader" | |
e6cc62c6 | 4594 | |
0b9ab0bd RL |
4595 | if test "$enableval" = yes; then |
4596 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
4597 | else | |
4598 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
4599 | fi | |
e6cc62c6 | 4600 | |
0b9ab0bd | 4601 | else |
e6cc62c6 | 4602 | |
0b9ab0bd RL |
4603 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` |
4604 | if test "x$LINE" != x ; then | |
4605 | eval "DEFAULT_$LINE" | |
4606 | else | |
4607 | no_cache=1 | |
4608 | fi | |
4609 | ||
4610 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
0b9ab0bd | 4611 | |
e6cc62c6 | 4612 | fi; |
0b9ab0bd RL |
4613 | |
4614 | eval "$ac_cv_use_dynamicloader" | |
4615 | if test "$no_cache" != 1; then | |
4616 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
4617 | fi | |
4618 | ||
4619 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
e6cc62c6 VS |
4620 | echo "$as_me:$LINENO: result: yes" >&5 |
4621 | echo "${ECHO_T}yes" >&6 | |
0b9ab0bd | 4622 | else |
e6cc62c6 VS |
4623 | echo "$as_me:$LINENO: result: no" >&5 |
4624 | echo "${ECHO_T}no" >&6 | |
0b9ab0bd | 4625 | fi |
e6cc62c6 | 4626 | |
0b9ab0bd | 4627 | |
5005acfe | 4628 | enablestring= |
e46d2a18 VS |
4629 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5 |
4630 | echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6 | |
10f2d63a | 4631 | no_cache=0 |
e46d2a18 VS |
4632 | # Check whether --enable-exceptions or --disable-exceptions was given. |
4633 | if test "${enable_exceptions+set}" = set; then | |
4634 | enableval="$enable_exceptions" | |
e6cc62c6 | 4635 | |
10f2d63a | 4636 | if test "$enableval" = yes; then |
e46d2a18 | 4637 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes' |
10f2d63a | 4638 | else |
e46d2a18 | 4639 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no' |
10f2d63a | 4640 | fi |
e6cc62c6 | 4641 | |
10f2d63a | 4642 | else |
e6cc62c6 | 4643 | |
e46d2a18 | 4644 | LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}` |
10f2d63a VZ |
4645 | if test "x$LINE" != x ; then |
4646 | eval "DEFAULT_$LINE" | |
4647 | else | |
4648 | no_cache=1 | |
4649 | fi | |
4650 | ||
e46d2a18 | 4651 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS |
10f2d63a | 4652 | |
e6cc62c6 | 4653 | fi; |
10f2d63a | 4654 | |
e46d2a18 | 4655 | eval "$ac_cv_use_exceptions" |
10f2d63a | 4656 | if test "$no_cache" != 1; then |
e46d2a18 | 4657 | echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4658 | fi |
4659 | ||
e46d2a18 | 4660 | if test "$wxUSE_EXCEPTIONS" = yes; then |
e6cc62c6 VS |
4661 | echo "$as_me:$LINENO: result: yes" >&5 |
4662 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4663 | else |
e6cc62c6 VS |
4664 | echo "$as_me:$LINENO: result: no" >&5 |
4665 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4666 | fi |
e6cc62c6 | 4667 | |
10f2d63a | 4668 | |
5005acfe | 4669 | enablestring= |
e46d2a18 VS |
4670 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5 |
4671 | echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6 | |
e8f65ba6 | 4672 | no_cache=0 |
e46d2a18 VS |
4673 | # Check whether --enable-ffile or --disable-ffile was given. |
4674 | if test "${enable_ffile+set}" = set; then | |
4675 | enableval="$enable_ffile" | |
e6cc62c6 | 4676 | |
e8f65ba6 | 4677 | if test "$enableval" = yes; then |
e46d2a18 | 4678 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
e8f65ba6 | 4679 | else |
e46d2a18 | 4680 | ac_cv_use_ffile='wxUSE_FFILE=no' |
e8f65ba6 | 4681 | fi |
e6cc62c6 | 4682 | |
e8f65ba6 | 4683 | else |
e6cc62c6 | 4684 | |
e46d2a18 | 4685 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
e8f65ba6 RR |
4686 | if test "x$LINE" != x ; then |
4687 | eval "DEFAULT_$LINE" | |
4688 | else | |
4689 | no_cache=1 | |
4690 | fi | |
4691 | ||
e46d2a18 | 4692 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
e8f65ba6 | 4693 | |
e6cc62c6 | 4694 | fi; |
e8f65ba6 | 4695 | |
e46d2a18 | 4696 | eval "$ac_cv_use_ffile" |
e8f65ba6 | 4697 | if test "$no_cache" != 1; then |
e46d2a18 | 4698 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
e8f65ba6 RR |
4699 | fi |
4700 | ||
e46d2a18 | 4701 | if test "$wxUSE_FFILE" = yes; then |
e6cc62c6 VS |
4702 | echo "$as_me:$LINENO: result: yes" >&5 |
4703 | echo "${ECHO_T}yes" >&6 | |
e8f65ba6 | 4704 | else |
e6cc62c6 VS |
4705 | echo "$as_me:$LINENO: result: no" >&5 |
4706 | echo "${ECHO_T}no" >&6 | |
e8f65ba6 | 4707 | fi |
e6cc62c6 | 4708 | |
e8f65ba6 | 4709 | |
5005acfe | 4710 | enablestring= |
e46d2a18 VS |
4711 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5 |
4712 | echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6 | |
10f2d63a | 4713 | no_cache=0 |
e46d2a18 VS |
4714 | # Check whether --enable-file or --disable-file was given. |
4715 | if test "${enable_file+set}" = set; then | |
4716 | enableval="$enable_file" | |
e6cc62c6 | 4717 | |
10f2d63a | 4718 | if test "$enableval" = yes; then |
e46d2a18 | 4719 | ac_cv_use_file='wxUSE_FILE=yes' |
10f2d63a | 4720 | else |
e46d2a18 | 4721 | ac_cv_use_file='wxUSE_FILE=no' |
10f2d63a | 4722 | fi |
e6cc62c6 | 4723 | |
10f2d63a | 4724 | else |
e6cc62c6 | 4725 | |
e46d2a18 | 4726 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4727 | if test "x$LINE" != x ; then |
4728 | eval "DEFAULT_$LINE" | |
4729 | else | |
4730 | no_cache=1 | |
4731 | fi | |
4732 | ||
e46d2a18 | 4733 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE |
10f2d63a | 4734 | |
e6cc62c6 | 4735 | fi; |
10f2d63a | 4736 | |
e46d2a18 | 4737 | eval "$ac_cv_use_file" |
10f2d63a | 4738 | if test "$no_cache" != 1; then |
e46d2a18 | 4739 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4740 | fi |
4741 | ||
e46d2a18 | 4742 | if test "$wxUSE_FILE" = yes; then |
e6cc62c6 VS |
4743 | echo "$as_me:$LINENO: result: yes" >&5 |
4744 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4745 | else |
e6cc62c6 VS |
4746 | echo "$as_me:$LINENO: result: no" >&5 |
4747 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4748 | fi |
e6cc62c6 | 4749 | |
10f2d63a | 4750 | |
5005acfe | 4751 | enablestring= |
e46d2a18 VS |
4752 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5 |
4753 | echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6 | |
10f2d63a | 4754 | no_cache=0 |
e46d2a18 VS |
4755 | # Check whether --enable-filesystem or --disable-filesystem was given. |
4756 | if test "${enable_filesystem+set}" = set; then | |
4757 | enableval="$enable_filesystem" | |
e6cc62c6 | 4758 | |
10f2d63a | 4759 | if test "$enableval" = yes; then |
e46d2a18 | 4760 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' |
10f2d63a | 4761 | else |
e46d2a18 | 4762 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' |
10f2d63a | 4763 | fi |
e6cc62c6 | 4764 | |
10f2d63a | 4765 | else |
e6cc62c6 | 4766 | |
e46d2a18 | 4767 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
10f2d63a VZ |
4768 | if test "x$LINE" != x ; then |
4769 | eval "DEFAULT_$LINE" | |
4770 | else | |
4771 | no_cache=1 | |
4772 | fi | |
4773 | ||
e46d2a18 | 4774 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM |
10f2d63a | 4775 | |
e6cc62c6 | 4776 | fi; |
10f2d63a | 4777 | |
e46d2a18 | 4778 | eval "$ac_cv_use_filesystem" |
10f2d63a | 4779 | if test "$no_cache" != 1; then |
e46d2a18 | 4780 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4781 | fi |
4782 | ||
e46d2a18 | 4783 | if test "$wxUSE_FILESYSTEM" = yes; then |
e6cc62c6 VS |
4784 | echo "$as_me:$LINENO: result: yes" >&5 |
4785 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4786 | else |
e6cc62c6 VS |
4787 | echo "$as_me:$LINENO: result: no" >&5 |
4788 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4789 | fi |
e6cc62c6 | 4790 | |
10f2d63a | 4791 | |
5005acfe | 4792 | enablestring= |
e46d2a18 VS |
4793 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5 |
4794 | echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6 | |
10f2d63a | 4795 | no_cache=0 |
e46d2a18 VS |
4796 | # Check whether --enable-fontmap or --disable-fontmap was given. |
4797 | if test "${enable_fontmap+set}" = set; then | |
4798 | enableval="$enable_fontmap" | |
e6cc62c6 | 4799 | |
10f2d63a | 4800 | if test "$enableval" = yes; then |
e46d2a18 | 4801 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 4802 | else |
e46d2a18 | 4803 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 4804 | fi |
e6cc62c6 | 4805 | |
10f2d63a | 4806 | else |
e6cc62c6 | 4807 | |
e46d2a18 | 4808 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` |
10f2d63a VZ |
4809 | if test "x$LINE" != x ; then |
4810 | eval "DEFAULT_$LINE" | |
4811 | else | |
4812 | no_cache=1 | |
4813 | fi | |
4814 | ||
e46d2a18 | 4815 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
10f2d63a | 4816 | |
e6cc62c6 | 4817 | fi; |
10f2d63a | 4818 | |
e46d2a18 | 4819 | eval "$ac_cv_use_fontmap" |
10f2d63a | 4820 | if test "$no_cache" != 1; then |
e46d2a18 | 4821 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4822 | fi |
4823 | ||
e46d2a18 | 4824 | if test "$wxUSE_FONTMAP" = yes; then |
e6cc62c6 VS |
4825 | echo "$as_me:$LINENO: result: yes" >&5 |
4826 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4827 | else |
e6cc62c6 VS |
4828 | echo "$as_me:$LINENO: result: no" >&5 |
4829 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4830 | fi |
e6cc62c6 | 4831 | |
10f2d63a | 4832 | |
5005acfe | 4833 | enablestring= |
e46d2a18 VS |
4834 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5 |
4835 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6 | |
10f2d63a | 4836 | no_cache=0 |
e46d2a18 VS |
4837 | # Check whether --enable-fs_inet or --disable-fs_inet was given. |
4838 | if test "${enable_fs_inet+set}" = set; then | |
4839 | enableval="$enable_fs_inet" | |
e6cc62c6 | 4840 | |
10f2d63a | 4841 | if test "$enableval" = yes; then |
e46d2a18 | 4842 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' |
10f2d63a | 4843 | else |
e46d2a18 | 4844 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' |
10f2d63a | 4845 | fi |
e6cc62c6 | 4846 | |
10f2d63a | 4847 | else |
e6cc62c6 | 4848 | |
e46d2a18 | 4849 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
10f2d63a VZ |
4850 | if test "x$LINE" != x ; then |
4851 | eval "DEFAULT_$LINE" | |
4852 | else | |
4853 | no_cache=1 | |
4854 | fi | |
4855 | ||
e46d2a18 | 4856 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET |
10f2d63a | 4857 | |
e6cc62c6 | 4858 | fi; |
10f2d63a | 4859 | |
e46d2a18 | 4860 | eval "$ac_cv_use_fs_inet" |
10f2d63a | 4861 | if test "$no_cache" != 1; then |
e46d2a18 | 4862 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4863 | fi |
4864 | ||
e46d2a18 | 4865 | if test "$wxUSE_FS_INET" = yes; then |
e6cc62c6 VS |
4866 | echo "$as_me:$LINENO: result: yes" >&5 |
4867 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4868 | else |
e6cc62c6 VS |
4869 | echo "$as_me:$LINENO: result: no" >&5 |
4870 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4871 | fi |
e6cc62c6 | 4872 | |
10f2d63a | 4873 | |
5005acfe | 4874 | enablestring= |
e46d2a18 VS |
4875 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5 |
4876 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6 | |
a3a584a7 | 4877 | no_cache=0 |
e46d2a18 VS |
4878 | # Check whether --enable-fs_zip or --disable-fs_zip was given. |
4879 | if test "${enable_fs_zip+set}" = set; then | |
4880 | enableval="$enable_fs_zip" | |
e6cc62c6 | 4881 | |
a3a584a7 | 4882 | if test "$enableval" = yes; then |
e46d2a18 | 4883 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' |
a3a584a7 | 4884 | else |
e46d2a18 | 4885 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' |
a3a584a7 | 4886 | fi |
e6cc62c6 | 4887 | |
a3a584a7 | 4888 | else |
e6cc62c6 | 4889 | |
e46d2a18 | 4890 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
a3a584a7 VZ |
4891 | if test "x$LINE" != x ; then |
4892 | eval "DEFAULT_$LINE" | |
4893 | else | |
4894 | no_cache=1 | |
4895 | fi | |
4896 | ||
e46d2a18 | 4897 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP |
a3a584a7 | 4898 | |
e6cc62c6 | 4899 | fi; |
a3a584a7 | 4900 | |
e46d2a18 | 4901 | eval "$ac_cv_use_fs_zip" |
a3a584a7 | 4902 | if test "$no_cache" != 1; then |
e46d2a18 | 4903 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp |
a3a584a7 VZ |
4904 | fi |
4905 | ||
e46d2a18 | 4906 | if test "$wxUSE_FS_ZIP" = yes; then |
e6cc62c6 VS |
4907 | echo "$as_me:$LINENO: result: yes" >&5 |
4908 | echo "${ECHO_T}yes" >&6 | |
a3a584a7 | 4909 | else |
e6cc62c6 VS |
4910 | echo "$as_me:$LINENO: result: no" >&5 |
4911 | echo "${ECHO_T}no" >&6 | |
a3a584a7 | 4912 | fi |
e6cc62c6 | 4913 | |
a3a584a7 | 4914 | |
5005acfe | 4915 | enablestring= |
e46d2a18 VS |
4916 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5 |
4917 | echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6 | |
10f2d63a | 4918 | no_cache=0 |
e46d2a18 VS |
4919 | # Check whether --enable-geometry or --disable-geometry was given. |
4920 | if test "${enable_geometry+set}" = set; then | |
4921 | enableval="$enable_geometry" | |
e6cc62c6 | 4922 | |
10f2d63a | 4923 | if test "$enableval" = yes; then |
e46d2a18 | 4924 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' |
10f2d63a | 4925 | else |
e46d2a18 | 4926 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' |
10f2d63a | 4927 | fi |
e6cc62c6 | 4928 | |
10f2d63a | 4929 | else |
e6cc62c6 | 4930 | |
e46d2a18 | 4931 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
10f2d63a VZ |
4932 | if test "x$LINE" != x ; then |
4933 | eval "DEFAULT_$LINE" | |
4934 | else | |
4935 | no_cache=1 | |
4936 | fi | |
4937 | ||
e46d2a18 | 4938 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY |
10f2d63a | 4939 | |
e6cc62c6 | 4940 | fi; |
10f2d63a | 4941 | |
e46d2a18 | 4942 | eval "$ac_cv_use_geometry" |
10f2d63a | 4943 | if test "$no_cache" != 1; then |
e46d2a18 | 4944 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4945 | fi |
4946 | ||
e46d2a18 | 4947 | if test "$wxUSE_GEOMETRY" = yes; then |
e6cc62c6 VS |
4948 | echo "$as_me:$LINENO: result: yes" >&5 |
4949 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4950 | else |
e6cc62c6 VS |
4951 | echo "$as_me:$LINENO: result: no" >&5 |
4952 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4953 | fi |
e6cc62c6 | 4954 | |
10f2d63a | 4955 | |
5005acfe | 4956 | enablestring= |
e46d2a18 VS |
4957 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5 |
4958 | echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6 | |
10f2d63a | 4959 | no_cache=0 |
e46d2a18 VS |
4960 | # Check whether --enable-log or --disable-log was given. |
4961 | if test "${enable_log+set}" = set; then | |
4962 | enableval="$enable_log" | |
e6cc62c6 | 4963 | |
10f2d63a | 4964 | if test "$enableval" = yes; then |
e46d2a18 | 4965 | ac_cv_use_log='wxUSE_LOG=yes' |
10f2d63a | 4966 | else |
e46d2a18 | 4967 | ac_cv_use_log='wxUSE_LOG=no' |
10f2d63a | 4968 | fi |
e6cc62c6 | 4969 | |
10f2d63a | 4970 | else |
e6cc62c6 | 4971 | |
e46d2a18 | 4972 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
10f2d63a VZ |
4973 | if test "x$LINE" != x ; then |
4974 | eval "DEFAULT_$LINE" | |
4975 | else | |
4976 | no_cache=1 | |
4977 | fi | |
4978 | ||
e46d2a18 | 4979 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG |
10f2d63a | 4980 | |
e6cc62c6 | 4981 | fi; |
10f2d63a | 4982 | |
e46d2a18 | 4983 | eval "$ac_cv_use_log" |
10f2d63a | 4984 | if test "$no_cache" != 1; then |
e46d2a18 | 4985 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4986 | fi |
4987 | ||
e46d2a18 | 4988 | if test "$wxUSE_LOG" = yes; then |
e6cc62c6 VS |
4989 | echo "$as_me:$LINENO: result: yes" >&5 |
4990 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4991 | else |
e6cc62c6 VS |
4992 | echo "$as_me:$LINENO: result: no" >&5 |
4993 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4994 | fi |
e6cc62c6 | 4995 | |
10f2d63a | 4996 | |
5005acfe | 4997 | enablestring= |
e46d2a18 VS |
4998 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5 |
4999 | echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6 | |
10f2d63a | 5000 | no_cache=0 |
e46d2a18 VS |
5001 | # Check whether --enable-longlong or --disable-longlong was given. |
5002 | if test "${enable_longlong+set}" = set; then | |
5003 | enableval="$enable_longlong" | |
e6cc62c6 | 5004 | |
1e6feb95 | 5005 | if test "$enableval" = yes; then |
e46d2a18 | 5006 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' |
1e6feb95 | 5007 | else |
e46d2a18 | 5008 | ac_cv_use_longlong='wxUSE_LONGLONG=no' |
1e6feb95 | 5009 | fi |
e6cc62c6 | 5010 | |
1e6feb95 | 5011 | else |
e6cc62c6 | 5012 | |
e46d2a18 | 5013 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
1e6feb95 VZ |
5014 | if test "x$LINE" != x ; then |
5015 | eval "DEFAULT_$LINE" | |
5016 | else | |
5017 | no_cache=1 | |
5018 | fi | |
5019 | ||
e46d2a18 | 5020 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG |
1e6feb95 | 5021 | |
e6cc62c6 | 5022 | fi; |
1e6feb95 | 5023 | |
e46d2a18 | 5024 | eval "$ac_cv_use_longlong" |
1e6feb95 | 5025 | if test "$no_cache" != 1; then |
e46d2a18 | 5026 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp |
1e6feb95 VZ |
5027 | fi |
5028 | ||
e46d2a18 VS |
5029 | if test "$wxUSE_LONGLONG" = yes; then |
5030 | echo "$as_me:$LINENO: result: yes" >&5 | |
5031 | echo "${ECHO_T}yes" >&6 | |
5032 | else | |
5033 | echo "$as_me:$LINENO: result: no" >&5 | |
5034 | echo "${ECHO_T}no" >&6 | |
5035 | fi | |
5036 | ||
5037 | ||
5038 | enablestring= | |
5039 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5 | |
5040 | echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6 | |
5041 | no_cache=0 | |
5042 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
5043 | if test "${enable_mimetype+set}" = set; then | |
5044 | enableval="$enable_mimetype" | |
5045 | ||
5046 | if test "$enableval" = yes; then | |
5047 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
5048 | else | |
5049 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
5050 | fi | |
5051 | ||
5052 | else | |
5053 | ||
5054 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
5055 | if test "x$LINE" != x ; then | |
5056 | eval "DEFAULT_$LINE" | |
5057 | else | |
5058 | no_cache=1 | |
5059 | fi | |
5060 | ||
5061 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
5062 | ||
5063 | fi; | |
5064 | ||
5065 | eval "$ac_cv_use_mimetype" | |
5066 | if test "$no_cache" != 1; then | |
5067 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
5068 | fi | |
5069 | ||
5070 | if test "$wxUSE_MIMETYPE" = yes; then | |
e6cc62c6 VS |
5071 | echo "$as_me:$LINENO: result: yes" >&5 |
5072 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 5073 | else |
e6cc62c6 VS |
5074 | echo "$as_me:$LINENO: result: no" >&5 |
5075 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 5076 | fi |
e6cc62c6 | 5077 | |
1e6feb95 | 5078 | |
5005acfe | 5079 | enablestring= |
e6cc62c6 VS |
5080 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5 |
5081 | echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6 | |
a72a4bfa VS |
5082 | no_cache=0 |
5083 | # Check whether --enable-mslu or --disable-mslu was given. | |
5084 | if test "${enable_mslu+set}" = set; then | |
5085 | enableval="$enable_mslu" | |
e6cc62c6 | 5086 | |
a72a4bfa VS |
5087 | if test "$enableval" = yes; then |
5088 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
5089 | else | |
5090 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
5091 | fi | |
e6cc62c6 | 5092 | |
a72a4bfa | 5093 | else |
e6cc62c6 | 5094 | |
a72a4bfa VS |
5095 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` |
5096 | if test "x$LINE" != x ; then | |
5097 | eval "DEFAULT_$LINE" | |
5098 | else | |
5099 | no_cache=1 | |
5100 | fi | |
5101 | ||
5102 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
a72a4bfa | 5103 | |
e6cc62c6 | 5104 | fi; |
a72a4bfa VS |
5105 | |
5106 | eval "$ac_cv_use_mslu" | |
5107 | if test "$no_cache" != 1; then | |
5108 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
5109 | fi | |
5110 | ||
5111 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
e6cc62c6 VS |
5112 | echo "$as_me:$LINENO: result: yes" >&5 |
5113 | echo "${ECHO_T}yes" >&6 | |
a72a4bfa | 5114 | else |
e6cc62c6 VS |
5115 | echo "$as_me:$LINENO: result: no" >&5 |
5116 | echo "${ECHO_T}no" >&6 | |
a72a4bfa | 5117 | fi |
e6cc62c6 | 5118 | |
a72a4bfa | 5119 | |
5005acfe | 5120 | enablestring= |
e46d2a18 VS |
5121 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5 |
5122 | echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6 | |
1e6feb95 | 5123 | no_cache=0 |
e46d2a18 VS |
5124 | # Check whether --enable-snglinst or --disable-snglinst was given. |
5125 | if test "${enable_snglinst+set}" = set; then | |
5126 | enableval="$enable_snglinst" | |
e6cc62c6 | 5127 | |
1e6feb95 | 5128 | if test "$enableval" = yes; then |
e46d2a18 | 5129 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' |
10f2d63a | 5130 | else |
e46d2a18 | 5131 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' |
10f2d63a | 5132 | fi |
e6cc62c6 | 5133 | |
10f2d63a | 5134 | else |
e6cc62c6 | 5135 | |
e46d2a18 | 5136 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
10f2d63a VZ |
5137 | if test "x$LINE" != x ; then |
5138 | eval "DEFAULT_$LINE" | |
5139 | else | |
5140 | no_cache=1 | |
5141 | fi | |
5142 | ||
e46d2a18 | 5143 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER |
10f2d63a | 5144 | |
e6cc62c6 | 5145 | fi; |
10f2d63a | 5146 | |
e46d2a18 | 5147 | eval "$ac_cv_use_snglinst" |
10f2d63a | 5148 | if test "$no_cache" != 1; then |
e46d2a18 | 5149 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5150 | fi |
5151 | ||
e46d2a18 VS |
5152 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then |
5153 | echo "$as_me:$LINENO: result: yes" >&5 | |
5154 | echo "${ECHO_T}yes" >&6 | |
5155 | else | |
5156 | echo "$as_me:$LINENO: result: no" >&5 | |
5157 | echo "${ECHO_T}no" >&6 | |
5158 | fi | |
5159 | ||
5160 | ||
5161 | enablestring= | |
5162 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5 | |
5163 | echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6 | |
5164 | no_cache=0 | |
5165 | # Check whether --enable-streams or --disable-streams was given. | |
5166 | if test "${enable_streams+set}" = set; then | |
5167 | enableval="$enable_streams" | |
5168 | ||
5169 | if test "$enableval" = yes; then | |
5170 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
5171 | else | |
5172 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
5173 | fi | |
5174 | ||
5175 | else | |
5176 | ||
5177 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
5178 | if test "x$LINE" != x ; then | |
5179 | eval "DEFAULT_$LINE" | |
5180 | else | |
5181 | no_cache=1 | |
5182 | fi | |
5183 | ||
5184 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
5185 | ||
5186 | fi; | |
5187 | ||
5188 | eval "$ac_cv_use_streams" | |
5189 | if test "$no_cache" != 1; then | |
5190 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
5191 | fi | |
5192 | ||
5193 | if test "$wxUSE_STREAMS" = yes; then | |
e6cc62c6 VS |
5194 | echo "$as_me:$LINENO: result: yes" >&5 |
5195 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5196 | else |
e6cc62c6 VS |
5197 | echo "$as_me:$LINENO: result: no" >&5 |
5198 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5199 | fi |
e6cc62c6 | 5200 | |
10f2d63a | 5201 | |
5005acfe | 5202 | enablestring= |
e6cc62c6 VS |
5203 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5 |
5204 | echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6 | |
10f2d63a VZ |
5205 | no_cache=0 |
5206 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
5207 | if test "${enable_std_iostreams+set}" = set; then | |
5208 | enableval="$enable_std_iostreams" | |
e6cc62c6 | 5209 | |
10f2d63a VZ |
5210 | if test "$enableval" = yes; then |
5211 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
5212 | else | |
5213 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
5214 | fi | |
e6cc62c6 | 5215 | |
10f2d63a | 5216 | else |
e6cc62c6 | 5217 | |
10f2d63a VZ |
5218 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
5219 | if test "x$LINE" != x ; then | |
5220 | eval "DEFAULT_$LINE" | |
5221 | else | |
5222 | no_cache=1 | |
5223 | fi | |
5224 | ||
5225 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
10f2d63a | 5226 | |
e6cc62c6 | 5227 | fi; |
10f2d63a VZ |
5228 | |
5229 | eval "$ac_cv_use_std_iostreams" | |
5230 | if test "$no_cache" != 1; then | |
5231 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
5232 | fi | |
5233 | ||
5234 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
e6cc62c6 VS |
5235 | echo "$as_me:$LINENO: result: yes" >&5 |
5236 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5237 | else |
e6cc62c6 VS |
5238 | echo "$as_me:$LINENO: result: no" >&5 |
5239 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5240 | fi |
e6cc62c6 | 5241 | |
10f2d63a | 5242 | |
5005acfe | 5243 | enablestring= |
e46d2a18 VS |
5244 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5 |
5245 | echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6 | |
24528b0c | 5246 | no_cache=0 |
e46d2a18 VS |
5247 | # Check whether --enable-stopwatch or --disable-stopwatch was given. |
5248 | if test "${enable_stopwatch+set}" = set; then | |
5249 | enableval="$enable_stopwatch" | |
e6cc62c6 | 5250 | |
24528b0c | 5251 | if test "$enableval" = yes; then |
e46d2a18 | 5252 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' |
24528b0c | 5253 | else |
e46d2a18 | 5254 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' |
24528b0c | 5255 | fi |
e6cc62c6 | 5256 | |
24528b0c | 5257 | else |
e6cc62c6 | 5258 | |
e46d2a18 | 5259 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` |
24528b0c VS |
5260 | if test "x$LINE" != x ; then |
5261 | eval "DEFAULT_$LINE" | |
5262 | else | |
5263 | no_cache=1 | |
5264 | fi | |
5265 | ||
e46d2a18 | 5266 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH |
24528b0c | 5267 | |
e6cc62c6 | 5268 | fi; |
24528b0c | 5269 | |
e46d2a18 | 5270 | eval "$ac_cv_use_stopwatch" |
24528b0c | 5271 | if test "$no_cache" != 1; then |
e46d2a18 | 5272 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp |
24528b0c VS |
5273 | fi |
5274 | ||
e46d2a18 | 5275 | if test "$wxUSE_STOPWATCH" = yes; then |
e6cc62c6 VS |
5276 | echo "$as_me:$LINENO: result: yes" >&5 |
5277 | echo "${ECHO_T}yes" >&6 | |
24528b0c | 5278 | else |
e6cc62c6 VS |
5279 | echo "$as_me:$LINENO: result: no" >&5 |
5280 | echo "${ECHO_T}no" >&6 | |
24528b0c | 5281 | fi |
e6cc62c6 | 5282 | |
24528b0c | 5283 | |
5005acfe | 5284 | enablestring= |
e46d2a18 VS |
5285 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5 |
5286 | echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6 | |
10f2d63a | 5287 | no_cache=0 |
e46d2a18 VS |
5288 | # Check whether --enable-system_options or --disable-system_options was given. |
5289 | if test "${enable_system_options+set}" = set; then | |
5290 | enableval="$enable_system_options" | |
e6cc62c6 | 5291 | |
10f2d63a | 5292 | if test "$enableval" = yes; then |
e46d2a18 | 5293 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' |
10f2d63a | 5294 | else |
e46d2a18 | 5295 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' |
10f2d63a | 5296 | fi |
e6cc62c6 | 5297 | |
10f2d63a | 5298 | else |
e6cc62c6 | 5299 | |
e46d2a18 | 5300 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` |
10f2d63a VZ |
5301 | if test "x$LINE" != x ; then |
5302 | eval "DEFAULT_$LINE" | |
5303 | else | |
5304 | no_cache=1 | |
5305 | fi | |
5306 | ||
e46d2a18 | 5307 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS |
10f2d63a | 5308 | |
e6cc62c6 | 5309 | fi; |
10f2d63a | 5310 | |
e46d2a18 | 5311 | eval "$ac_cv_use_system_options" |
10f2d63a | 5312 | if test "$no_cache" != 1; then |
e46d2a18 | 5313 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5314 | fi |
5315 | ||
e46d2a18 | 5316 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then |
e6cc62c6 VS |
5317 | echo "$as_me:$LINENO: result: yes" >&5 |
5318 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5319 | else |
e6cc62c6 VS |
5320 | echo "$as_me:$LINENO: result: no" >&5 |
5321 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5322 | fi |
e6cc62c6 | 5323 | |
10f2d63a | 5324 | |
5005acfe | 5325 | enablestring= |
e46d2a18 VS |
5326 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5 |
5327 | echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6 | |
10f2d63a | 5328 | no_cache=0 |
e46d2a18 VS |
5329 | # Check whether --enable-textbuf or --disable-textbuf was given. |
5330 | if test "${enable_textbuf+set}" = set; then | |
5331 | enableval="$enable_textbuf" | |
e6cc62c6 | 5332 | |
10f2d63a | 5333 | if test "$enableval" = yes; then |
e46d2a18 | 5334 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' |
10f2d63a | 5335 | else |
e46d2a18 | 5336 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' |
10f2d63a | 5337 | fi |
e6cc62c6 | 5338 | |
10f2d63a | 5339 | else |
e6cc62c6 | 5340 | |
e46d2a18 | 5341 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` |
10f2d63a VZ |
5342 | if test "x$LINE" != x ; then |
5343 | eval "DEFAULT_$LINE" | |
5344 | else | |
5345 | no_cache=1 | |
5346 | fi | |
5347 | ||
e46d2a18 | 5348 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER |
10f2d63a | 5349 | |
e6cc62c6 | 5350 | fi; |
10f2d63a | 5351 | |
e46d2a18 | 5352 | eval "$ac_cv_use_textbuf" |
10f2d63a | 5353 | if test "$no_cache" != 1; then |
e46d2a18 | 5354 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5355 | fi |
5356 | ||
e46d2a18 | 5357 | if test "$wxUSE_TEXTBUFFER" = yes; then |
e6cc62c6 VS |
5358 | echo "$as_me:$LINENO: result: yes" >&5 |
5359 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5360 | else |
e6cc62c6 VS |
5361 | echo "$as_me:$LINENO: result: no" >&5 |
5362 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5363 | fi |
e6cc62c6 | 5364 | |
10f2d63a | 5365 | |
5005acfe | 5366 | enablestring= |
e46d2a18 VS |
5367 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5 |
5368 | echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6 | |
10f2d63a | 5369 | no_cache=0 |
e46d2a18 VS |
5370 | # Check whether --enable-textfile or --disable-textfile was given. |
5371 | if test "${enable_textfile+set}" = set; then | |
5372 | enableval="$enable_textfile" | |
e6cc62c6 | 5373 | |
10f2d63a | 5374 | if test "$enableval" = yes; then |
e46d2a18 | 5375 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 5376 | else |
e46d2a18 | 5377 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 5378 | fi |
e6cc62c6 | 5379 | |
10f2d63a | 5380 | else |
e6cc62c6 | 5381 | |
e46d2a18 | 5382 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
5383 | if test "x$LINE" != x ; then |
5384 | eval "DEFAULT_$LINE" | |
5385 | else | |
5386 | no_cache=1 | |
5387 | fi | |
5388 | ||
e46d2a18 | 5389 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
10f2d63a | 5390 | |
e6cc62c6 | 5391 | fi; |
10f2d63a | 5392 | |
e46d2a18 | 5393 | eval "$ac_cv_use_textfile" |
10f2d63a | 5394 | if test "$no_cache" != 1; then |
e46d2a18 | 5395 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5396 | fi |
5397 | ||
e46d2a18 | 5398 | if test "$wxUSE_TEXTFILE" = yes; then |
e6cc62c6 VS |
5399 | echo "$as_me:$LINENO: result: yes" >&5 |
5400 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5401 | else |
e6cc62c6 VS |
5402 | echo "$as_me:$LINENO: result: no" >&5 |
5403 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5404 | fi |
e6cc62c6 | 5405 | |
8284b0c5 | 5406 | |
5005acfe | 5407 | enablestring= |
e46d2a18 VS |
5408 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5 |
5409 | echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6 | |
eb4efbdc | 5410 | no_cache=0 |
e46d2a18 VS |
5411 | # Check whether --enable-timer or --disable-timer was given. |
5412 | if test "${enable_timer+set}" = set; then | |
5413 | enableval="$enable_timer" | |
e6cc62c6 | 5414 | |
eb4efbdc | 5415 | if test "$enableval" = yes; then |
e46d2a18 | 5416 | ac_cv_use_timer='wxUSE_TIMER=yes' |
eb4efbdc | 5417 | else |
e46d2a18 | 5418 | ac_cv_use_timer='wxUSE_TIMER=no' |
eb4efbdc | 5419 | fi |
e6cc62c6 | 5420 | |
eb4efbdc | 5421 | else |
e6cc62c6 | 5422 | |
e46d2a18 | 5423 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` |
eb4efbdc VZ |
5424 | if test "x$LINE" != x ; then |
5425 | eval "DEFAULT_$LINE" | |
5426 | else | |
5427 | no_cache=1 | |
5428 | fi | |
5429 | ||
e46d2a18 | 5430 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
eb4efbdc | 5431 | |
e6cc62c6 | 5432 | fi; |
eb4efbdc | 5433 | |
e46d2a18 | 5434 | eval "$ac_cv_use_timer" |
eb4efbdc | 5435 | if test "$no_cache" != 1; then |
e46d2a18 | 5436 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
eb4efbdc VZ |
5437 | fi |
5438 | ||
e46d2a18 | 5439 | if test "$wxUSE_TIMER" = yes; then |
e6cc62c6 VS |
5440 | echo "$as_me:$LINENO: result: yes" >&5 |
5441 | echo "${ECHO_T}yes" >&6 | |
eb4efbdc | 5442 | else |
e6cc62c6 VS |
5443 | echo "$as_me:$LINENO: result: no" >&5 |
5444 | echo "${ECHO_T}no" >&6 | |
eb4efbdc | 5445 | fi |
e6cc62c6 | 5446 | |
eb4efbdc | 5447 | |
5005acfe | 5448 | enablestring= |
e46d2a18 VS |
5449 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5 |
5450 | echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6 | |
4f3c5f06 | 5451 | no_cache=0 |
e46d2a18 VS |
5452 | # Check whether --enable-unicode or --disable-unicode was given. |
5453 | if test "${enable_unicode+set}" = set; then | |
5454 | enableval="$enable_unicode" | |
e6cc62c6 | 5455 | |
4f3c5f06 | 5456 | if test "$enableval" = yes; then |
e46d2a18 | 5457 | ac_cv_use_unicode='wxUSE_UNICODE=yes' |
4f3c5f06 | 5458 | else |
e46d2a18 | 5459 | ac_cv_use_unicode='wxUSE_UNICODE=no' |
4f3c5f06 | 5460 | fi |
e6cc62c6 | 5461 | |
4f3c5f06 | 5462 | else |
e6cc62c6 | 5463 | |
e46d2a18 | 5464 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` |
4f3c5f06 VZ |
5465 | if test "x$LINE" != x ; then |
5466 | eval "DEFAULT_$LINE" | |
5467 | else | |
5468 | no_cache=1 | |
5469 | fi | |
5470 | ||
e46d2a18 | 5471 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE |
4f3c5f06 | 5472 | |
e6cc62c6 | 5473 | fi; |
4f3c5f06 | 5474 | |
e46d2a18 | 5475 | eval "$ac_cv_use_unicode" |
4f3c5f06 | 5476 | if test "$no_cache" != 1; then |
e46d2a18 | 5477 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp |
4f3c5f06 VZ |
5478 | fi |
5479 | ||
e46d2a18 | 5480 | if test "$wxUSE_UNICODE" = yes; then |
e6cc62c6 VS |
5481 | echo "$as_me:$LINENO: result: yes" >&5 |
5482 | echo "${ECHO_T}yes" >&6 | |
4f3c5f06 | 5483 | else |
e6cc62c6 VS |
5484 | echo "$as_me:$LINENO: result: no" >&5 |
5485 | echo "${ECHO_T}no" >&6 | |
4f3c5f06 | 5486 | fi |
e6cc62c6 | 5487 | |
52127426 | 5488 | |
e46d2a18 VS |
5489 | enablestring= |
5490 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wave" >&5 | |
5491 | echo $ECHO_N "checking for --${enablestring:-enable}-wave... $ECHO_C" >&6 | |
5492 | no_cache=0 | |
5493 | # Check whether --enable-wave or --disable-wave was given. | |
5494 | if test "${enable_wave+set}" = set; then | |
5495 | enableval="$enable_wave" | |
5496 | ||
5497 | if test "$enableval" = yes; then | |
5498 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
5499 | else | |
5500 | ac_cv_use_wave='wxUSE_WAVE=no' | |
5501 | fi | |
5502 | ||
5503 | else | |
5504 | ||
5505 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` | |
5506 | if test "x$LINE" != x ; then | |
5507 | eval "DEFAULT_$LINE" | |
5508 | else | |
5509 | no_cache=1 | |
5510 | fi | |
5511 | ||
5512 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
5513 | ||
5514 | fi; | |
5515 | ||
5516 | eval "$ac_cv_use_wave" | |
5517 | if test "$no_cache" != 1; then | |
5518 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
5519 | fi | |
5520 | ||
5521 | if test "$wxUSE_WAVE" = yes; then | |
5522 | echo "$as_me:$LINENO: result: yes" >&5 | |
5523 | echo "${ECHO_T}yes" >&6 | |
5524 | else | |
5525 | echo "$as_me:$LINENO: result: no" >&5 | |
5526 | echo "${ECHO_T}no" >&6 | |
5527 | fi | |
5528 | ||
8284b0c5 | 5529 | |
5005acfe | 5530 | enablestring= |
e46d2a18 VS |
5531 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5 |
5532 | echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6 | |
1e6feb95 | 5533 | no_cache=0 |
e46d2a18 VS |
5534 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. |
5535 | if test "${enable_wxprintfv+set}" = set; then | |
5536 | enableval="$enable_wxprintfv" | |
e6cc62c6 | 5537 | |
1e6feb95 | 5538 | if test "$enableval" = yes; then |
e46d2a18 | 5539 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
1e6feb95 | 5540 | else |
e46d2a18 | 5541 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' |
1e6feb95 | 5542 | fi |
e6cc62c6 | 5543 | |
1e6feb95 | 5544 | else |
e6cc62c6 | 5545 | |
e46d2a18 | 5546 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
1e6feb95 VZ |
5547 | if test "x$LINE" != x ; then |
5548 | eval "DEFAULT_$LINE" | |
5549 | else | |
5550 | no_cache=1 | |
5551 | fi | |
5552 | ||
e46d2a18 | 5553 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF |
1e6feb95 | 5554 | |
e6cc62c6 | 5555 | fi; |
1e6feb95 | 5556 | |
e46d2a18 | 5557 | eval "$ac_cv_use_wxprintfv" |
1e6feb95 | 5558 | if test "$no_cache" != 1; then |
e46d2a18 | 5559 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp |
1e6feb95 VZ |
5560 | fi |
5561 | ||
e46d2a18 | 5562 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then |
e6cc62c6 VS |
5563 | echo "$as_me:$LINENO: result: yes" >&5 |
5564 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 5565 | else |
e6cc62c6 VS |
5566 | echo "$as_me:$LINENO: result: no" >&5 |
5567 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 5568 | fi |
e6cc62c6 | 5569 | |
1e6feb95 | 5570 | |
5005acfe | 5571 | enablestring= |
e46d2a18 VS |
5572 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5 |
5573 | echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6 | |
3e44f09d | 5574 | no_cache=0 |
e46d2a18 VS |
5575 | # Check whether --enable-zipstream or --disable-zipstream was given. |
5576 | if test "${enable_zipstream+set}" = set; then | |
5577 | enableval="$enable_zipstream" | |
e6cc62c6 | 5578 | |
3e44f09d | 5579 | if test "$enableval" = yes; then |
e46d2a18 | 5580 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' |
3e44f09d | 5581 | else |
e46d2a18 | 5582 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' |
3e44f09d | 5583 | fi |
e6cc62c6 | 5584 | |
3e44f09d | 5585 | else |
e6cc62c6 | 5586 | |
e46d2a18 | 5587 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
3e44f09d VZ |
5588 | if test "x$LINE" != x ; then |
5589 | eval "DEFAULT_$LINE" | |
5590 | else | |
5591 | no_cache=1 | |
5592 | fi | |
5593 | ||
e46d2a18 | 5594 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM |
3e44f09d | 5595 | |
e6cc62c6 | 5596 | fi; |
3e44f09d | 5597 | |
e46d2a18 | 5598 | eval "$ac_cv_use_zipstream" |
3e44f09d | 5599 | if test "$no_cache" != 1; then |
e46d2a18 | 5600 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp |
3e44f09d VZ |
5601 | fi |
5602 | ||
e46d2a18 | 5603 | if test "$wxUSE_ZIPSTREAM" = yes; then |
e6cc62c6 VS |
5604 | echo "$as_me:$LINENO: result: yes" >&5 |
5605 | echo "${ECHO_T}yes" >&6 | |
3e44f09d | 5606 | else |
e6cc62c6 VS |
5607 | echo "$as_me:$LINENO: result: no" >&5 |
5608 | echo "${ECHO_T}no" >&6 | |
3e44f09d | 5609 | fi |
e6cc62c6 | 5610 | |
8284b0c5 | 5611 | |
7015ef3a VZ |
5612 | enablestring= |
5613 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gzstream" >&5 | |
5614 | echo $ECHO_N "checking for --${enablestring:-enable}-gzstream... $ECHO_C" >&6 | |
5615 | no_cache=0 | |
5616 | # Check whether --enable-gzstream or --disable-gzstream was given. | |
5617 | if test "${enable_gzstream+set}" = set; then | |
5618 | enableval="$enable_gzstream" | |
5619 | ||
5620 | if test "$enableval" = yes; then | |
5621 | ac_cv_use_gzstream='wxUSE_GZSTREAM=yes' | |
5622 | else | |
5623 | ac_cv_use_gzstream='wxUSE_GZSTREAM=no' | |
5624 | fi | |
5625 | ||
5626 | else | |
5627 | ||
5628 | LINE=`grep "wxUSE_GZSTREAM" ${wx_arg_cache_file}` | |
5629 | if test "x$LINE" != x ; then | |
5630 | eval "DEFAULT_$LINE" | |
5631 | else | |
5632 | no_cache=1 | |
5633 | fi | |
5634 | ||
5635 | ac_cv_use_gzstream='wxUSE_GZSTREAM='$DEFAULT_wxUSE_GZSTREAM | |
5636 | ||
5637 | fi; | |
5638 | ||
5639 | eval "$ac_cv_use_gzstream" | |
5640 | if test "$no_cache" != 1; then | |
5641 | echo $ac_cv_use_gzstream >> ${wx_arg_cache_file}.tmp | |
5642 | fi | |
5643 | ||
5644 | if test "$wxUSE_GZSTREAM" = yes; then | |
5645 | echo "$as_me:$LINENO: result: yes" >&5 | |
5646 | echo "${ECHO_T}yes" >&6 | |
5647 | else | |
5648 | echo "$as_me:$LINENO: result: no" >&5 | |
5649 | echo "${ECHO_T}no" >&6 | |
5650 | fi | |
5651 | ||
5652 | ||
52127426 | 5653 | |
5005acfe | 5654 | enablestring= |
e6cc62c6 VS |
5655 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5 |
5656 | echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5657 | no_cache=0 |
5658 | # Check whether --enable-url or --disable-url was given. | |
5659 | if test "${enable_url+set}" = set; then | |
5660 | enableval="$enable_url" | |
e6cc62c6 | 5661 | |
4cdb0ab0 VS |
5662 | if test "$enableval" = yes; then |
5663 | ac_cv_use_url='wxUSE_URL=yes' | |
5664 | else | |
5665 | ac_cv_use_url='wxUSE_URL=no' | |
5666 | fi | |
e6cc62c6 | 5667 | |
4cdb0ab0 | 5668 | else |
e6cc62c6 | 5669 | |
4cdb0ab0 VS |
5670 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` |
5671 | if test "x$LINE" != x ; then | |
5672 | eval "DEFAULT_$LINE" | |
5673 | else | |
5674 | no_cache=1 | |
5675 | fi | |
5676 | ||
5677 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
4cdb0ab0 | 5678 | |
e6cc62c6 | 5679 | fi; |
4cdb0ab0 VS |
5680 | |
5681 | eval "$ac_cv_use_url" | |
5682 | if test "$no_cache" != 1; then | |
5683 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
5684 | fi | |
5685 | ||
5686 | if test "$wxUSE_URL" = yes; then | |
e6cc62c6 VS |
5687 | echo "$as_me:$LINENO: result: yes" >&5 |
5688 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5689 | else |
e6cc62c6 VS |
5690 | echo "$as_me:$LINENO: result: no" >&5 |
5691 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5692 | fi |
e6cc62c6 | 5693 | |
4cdb0ab0 | 5694 | |
5005acfe | 5695 | enablestring= |
e6cc62c6 VS |
5696 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5 |
5697 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5698 | no_cache=0 |
5699 | # Check whether --enable-protocol or --disable-protocol was given. | |
5700 | if test "${enable_protocol+set}" = set; then | |
5701 | enableval="$enable_protocol" | |
e6cc62c6 | 5702 | |
4cdb0ab0 VS |
5703 | if test "$enableval" = yes; then |
5704 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
5705 | else | |
5706 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
5707 | fi | |
e6cc62c6 | 5708 | |
4cdb0ab0 | 5709 | else |
e6cc62c6 | 5710 | |
4cdb0ab0 VS |
5711 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` |
5712 | if test "x$LINE" != x ; then | |
5713 | eval "DEFAULT_$LINE" | |
5714 | else | |
5715 | no_cache=1 | |
5716 | fi | |
5717 | ||
5718 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4cdb0ab0 | 5719 | |
e6cc62c6 | 5720 | fi; |
4cdb0ab0 VS |
5721 | |
5722 | eval "$ac_cv_use_protocol" | |
5723 | if test "$no_cache" != 1; then | |
5724 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
5725 | fi | |
5726 | ||
5727 | if test "$wxUSE_PROTOCOL" = yes; then | |
e6cc62c6 VS |
5728 | echo "$as_me:$LINENO: result: yes" >&5 |
5729 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5730 | else |
e6cc62c6 VS |
5731 | echo "$as_me:$LINENO: result: no" >&5 |
5732 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5733 | fi |
e6cc62c6 | 5734 | |
4cdb0ab0 | 5735 | |
5005acfe | 5736 | enablestring= |
e6cc62c6 VS |
5737 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5 |
5738 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5739 | no_cache=0 |
5740 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
5741 | if test "${enable_protocol_http+set}" = set; then | |
5742 | enableval="$enable_protocol_http" | |
e6cc62c6 | 5743 | |
4cdb0ab0 VS |
5744 | if test "$enableval" = yes; then |
5745 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
5746 | else | |
5747 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
5748 | fi | |
e6cc62c6 | 5749 | |
4cdb0ab0 | 5750 | else |
e6cc62c6 | 5751 | |
4cdb0ab0 VS |
5752 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` |
5753 | if test "x$LINE" != x ; then | |
5754 | eval "DEFAULT_$LINE" | |
5755 | else | |
5756 | no_cache=1 | |
5757 | fi | |
5758 | ||
5759 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4cdb0ab0 | 5760 | |
e6cc62c6 | 5761 | fi; |
4cdb0ab0 VS |
5762 | |
5763 | eval "$ac_cv_use_protocol_http" | |
5764 | if test "$no_cache" != 1; then | |
5765 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
5766 | fi | |
5767 | ||
5768 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
e6cc62c6 VS |
5769 | echo "$as_me:$LINENO: result: yes" >&5 |
5770 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5771 | else |
e6cc62c6 VS |
5772 | echo "$as_me:$LINENO: result: no" >&5 |
5773 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5774 | fi |
e6cc62c6 | 5775 | |
4cdb0ab0 | 5776 | |
5005acfe | 5777 | enablestring= |
e6cc62c6 VS |
5778 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5 |
5779 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5780 | no_cache=0 |
5781 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
5782 | if test "${enable_protocol_ftp+set}" = set; then | |
5783 | enableval="$enable_protocol_ftp" | |
e6cc62c6 | 5784 | |
4cdb0ab0 VS |
5785 | if test "$enableval" = yes; then |
5786 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
5787 | else | |
5788 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
5789 | fi | |
e6cc62c6 | 5790 | |
4cdb0ab0 | 5791 | else |
e6cc62c6 | 5792 | |
4cdb0ab0 VS |
5793 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` |
5794 | if test "x$LINE" != x ; then | |
5795 | eval "DEFAULT_$LINE" | |
5796 | else | |
5797 | no_cache=1 | |
5798 | fi | |
5799 | ||
5800 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4cdb0ab0 | 5801 | |
e6cc62c6 | 5802 | fi; |
4cdb0ab0 VS |
5803 | |
5804 | eval "$ac_cv_use_protocol_ftp" | |
5805 | if test "$no_cache" != 1; then | |
5806 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
5807 | fi | |
5808 | ||
5809 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
e6cc62c6 VS |
5810 | echo "$as_me:$LINENO: result: yes" >&5 |
5811 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5812 | else |
e6cc62c6 VS |
5813 | echo "$as_me:$LINENO: result: no" >&5 |
5814 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5815 | fi |
e6cc62c6 | 5816 | |
4cdb0ab0 | 5817 | |
5005acfe | 5818 | enablestring= |
e6cc62c6 VS |
5819 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5 |
5820 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5821 | no_cache=0 |
5822 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
5823 | if test "${enable_protocol_file+set}" = set; then | |
5824 | enableval="$enable_protocol_file" | |
e6cc62c6 | 5825 | |
4cdb0ab0 VS |
5826 | if test "$enableval" = yes; then |
5827 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
5828 | else | |
5829 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
5830 | fi | |
e6cc62c6 | 5831 | |
4cdb0ab0 | 5832 | else |
e6cc62c6 | 5833 | |
4cdb0ab0 VS |
5834 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` |
5835 | if test "x$LINE" != x ; then | |
5836 | eval "DEFAULT_$LINE" | |
5837 | else | |
5838 | no_cache=1 | |
5839 | fi | |
5840 | ||
5841 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4cdb0ab0 | 5842 | |
e6cc62c6 | 5843 | fi; |
4cdb0ab0 VS |
5844 | |
5845 | eval "$ac_cv_use_protocol_file" | |
5846 | if test "$no_cache" != 1; then | |
5847 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
5848 | fi | |
5849 | ||
5850 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
e6cc62c6 VS |
5851 | echo "$as_me:$LINENO: result: yes" >&5 |
5852 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5853 | else |
e6cc62c6 VS |
5854 | echo "$as_me:$LINENO: result: no" >&5 |
5855 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5856 | fi |
e6cc62c6 | 5857 | |
52127426 | 5858 | |
8284b0c5 MB |
5859 | |
5860 | ||
5861 | ||
5005acfe | 5862 | enablestring= |
e6cc62c6 VS |
5863 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5 |
5864 | echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6 | |
10f2d63a VZ |
5865 | no_cache=0 |
5866 | # Check whether --enable-threads or --disable-threads was given. | |
5867 | if test "${enable_threads+set}" = set; then | |
5868 | enableval="$enable_threads" | |
e6cc62c6 | 5869 | |
10f2d63a VZ |
5870 | if test "$enableval" = yes; then |
5871 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
5872 | else | |
5873 | ac_cv_use_threads='wxUSE_THREADS=no' | |
5874 | fi | |
e6cc62c6 | 5875 | |
10f2d63a | 5876 | else |
e6cc62c6 | 5877 | |
10f2d63a VZ |
5878 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
5879 | if test "x$LINE" != x ; then | |
5880 | eval "DEFAULT_$LINE" | |
5881 | else | |
5882 | no_cache=1 | |
5883 | fi | |
5884 | ||
5885 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
10f2d63a | 5886 | |
e6cc62c6 | 5887 | fi; |
10f2d63a VZ |
5888 | |
5889 | eval "$ac_cv_use_threads" | |
5890 | if test "$no_cache" != 1; then | |
5891 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
5892 | fi | |
5893 | ||
5894 | if test "$wxUSE_THREADS" = yes; then | |
e6cc62c6 VS |
5895 | echo "$as_me:$LINENO: result: yes" >&5 |
5896 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5897 | else |
e6cc62c6 VS |
5898 | echo "$as_me:$LINENO: result: no" >&5 |
5899 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5900 | fi |
e6cc62c6 | 5901 | |
10f2d63a | 5902 | |
b12915c1 VZ |
5903 | if test "$wxUSE_GUI" = "yes"; then |
5904 | ||
8284b0c5 MB |
5905 | |
5906 | ||
5005acfe | 5907 | enablestring= |
e6cc62c6 VS |
5908 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5 |
5909 | echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6 | |
10f2d63a VZ |
5910 | no_cache=0 |
5911 | # Check whether --enable-docview or --disable-docview was given. | |
5912 | if test "${enable_docview+set}" = set; then | |
5913 | enableval="$enable_docview" | |
e6cc62c6 | 5914 | |
10f2d63a VZ |
5915 | if test "$enableval" = yes; then |
5916 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
5917 | else | |
5918 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
5919 | fi | |
e6cc62c6 | 5920 | |
10f2d63a | 5921 | else |
e6cc62c6 | 5922 | |
10f2d63a VZ |
5923 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
5924 | if test "x$LINE" != x ; then | |
5925 | eval "DEFAULT_$LINE" | |
5926 | else | |
5927 | no_cache=1 | |
5928 | fi | |
5929 | ||
5930 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
10f2d63a | 5931 | |
e6cc62c6 | 5932 | fi; |
10f2d63a VZ |
5933 | |
5934 | eval "$ac_cv_use_docview" | |
5935 | if test "$no_cache" != 1; then | |
5936 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
5937 | fi | |
5938 | ||
5939 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
e6cc62c6 VS |
5940 | echo "$as_me:$LINENO: result: yes" >&5 |
5941 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5942 | else |
e6cc62c6 VS |
5943 | echo "$as_me:$LINENO: result: no" >&5 |
5944 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5945 | fi |
e6cc62c6 | 5946 | |
10f2d63a | 5947 | |
5005acfe | 5948 | enablestring= |
e6cc62c6 VS |
5949 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5 |
5950 | echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6 | |
10f2d63a VZ |
5951 | no_cache=0 |
5952 | # Check whether --enable-help or --disable-help was given. | |
5953 | if test "${enable_help+set}" = set; then | |
5954 | enableval="$enable_help" | |
e6cc62c6 | 5955 | |
10f2d63a VZ |
5956 | if test "$enableval" = yes; then |
5957 | ac_cv_use_help='wxUSE_HELP=yes' | |
5958 | else | |
5959 | ac_cv_use_help='wxUSE_HELP=no' | |
5960 | fi | |
e6cc62c6 | 5961 | |
10f2d63a | 5962 | else |
e6cc62c6 | 5963 | |
10f2d63a VZ |
5964 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
5965 | if test "x$LINE" != x ; then | |
5966 | eval "DEFAULT_$LINE" | |
5967 | else | |
5968 | no_cache=1 | |
5969 | fi | |
5970 | ||
5971 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
10f2d63a | 5972 | |
e6cc62c6 | 5973 | fi; |
10f2d63a VZ |
5974 | |
5975 | eval "$ac_cv_use_help" | |
5976 | if test "$no_cache" != 1; then | |
5977 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
5978 | fi | |
5979 | ||
5980 | if test "$wxUSE_HELP" = yes; then | |
e6cc62c6 VS |
5981 | echo "$as_me:$LINENO: result: yes" >&5 |
5982 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5983 | else |
e6cc62c6 VS |
5984 | echo "$as_me:$LINENO: result: no" >&5 |
5985 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5986 | fi |
e6cc62c6 | 5987 | |
10f2d63a | 5988 | |
5005acfe | 5989 | enablestring= |
e6cc62c6 VS |
5990 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5 |
5991 | echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6 | |
29fd3c0c VS |
5992 | no_cache=0 |
5993 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
5994 | if test "${enable_mshtmlhelp+set}" = set; then | |
5995 | enableval="$enable_mshtmlhelp" | |
e6cc62c6 | 5996 | |
29fd3c0c VS |
5997 | if test "$enableval" = yes; then |
5998 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
5999 | else | |
6000 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
6001 | fi | |
e6cc62c6 | 6002 | |
29fd3c0c | 6003 | else |
e6cc62c6 | 6004 | |
29fd3c0c VS |
6005 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` |
6006 | if test "x$LINE" != x ; then | |
6007 | eval "DEFAULT_$LINE" | |
6008 | else | |
6009 | no_cache=1 | |
6010 | fi | |
6011 | ||
6012 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
29fd3c0c | 6013 | |
e6cc62c6 | 6014 | fi; |
29fd3c0c VS |
6015 | |
6016 | eval "$ac_cv_use_mshtmlhelp" | |
6017 | if test "$no_cache" != 1; then | |
6018 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
6019 | fi | |
6020 | ||
6021 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
e6cc62c6 VS |
6022 | echo "$as_me:$LINENO: result: yes" >&5 |
6023 | echo "${ECHO_T}yes" >&6 | |
29fd3c0c | 6024 | else |
e6cc62c6 VS |
6025 | echo "$as_me:$LINENO: result: no" >&5 |
6026 | echo "${ECHO_T}no" >&6 | |
29fd3c0c | 6027 | fi |
e6cc62c6 | 6028 | |
29fd3c0c | 6029 | |
5005acfe | 6030 | enablestring= |
e6cc62c6 VS |
6031 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5 |
6032 | echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6 | |
3379ed37 VZ |
6033 | no_cache=0 |
6034 | # Check whether --enable-html or --disable-html was given. | |
6035 | if test "${enable_html+set}" = set; then | |
6036 | enableval="$enable_html" | |
e6cc62c6 | 6037 | |
3379ed37 VZ |
6038 | if test "$enableval" = yes; then |
6039 | ac_cv_use_html='wxUSE_HTML=yes' | |
6040 | else | |
6041 | ac_cv_use_html='wxUSE_HTML=no' | |
6042 | fi | |
e6cc62c6 | 6043 | |
3379ed37 | 6044 | else |
e6cc62c6 | 6045 | |
3379ed37 VZ |
6046 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` |
6047 | if test "x$LINE" != x ; then | |
6048 | eval "DEFAULT_$LINE" | |
6049 | else | |
6050 | no_cache=1 | |
6051 | fi | |
6052 | ||
6053 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
3379ed37 | 6054 | |
e6cc62c6 | 6055 | fi; |
3379ed37 VZ |
6056 | |
6057 | eval "$ac_cv_use_html" | |
6058 | if test "$no_cache" != 1; then | |
6059 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
6060 | fi | |
6061 | ||
6062 | if test "$wxUSE_HTML" = yes; then | |
e6cc62c6 VS |
6063 | echo "$as_me:$LINENO: result: yes" >&5 |
6064 | echo "${ECHO_T}yes" >&6 | |
3379ed37 | 6065 | else |
e6cc62c6 VS |
6066 | echo "$as_me:$LINENO: result: no" >&5 |
6067 | echo "${ECHO_T}no" >&6 | |
3379ed37 | 6068 | fi |
e6cc62c6 | 6069 | |
3379ed37 | 6070 | |
5005acfe | 6071 | enablestring= |
e6cc62c6 VS |
6072 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5 |
6073 | echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6 | |
3379ed37 VZ |
6074 | no_cache=0 |
6075 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
6076 | if test "${enable_htmlhelp+set}" = set; then | |
6077 | enableval="$enable_htmlhelp" | |
e6cc62c6 | 6078 | |
3379ed37 VZ |
6079 | if test "$enableval" = yes; then |
6080 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
6081 | else | |
6082 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
6083 | fi | |
e6cc62c6 | 6084 | |
3379ed37 | 6085 | else |
e6cc62c6 | 6086 | |
3379ed37 VZ |
6087 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` |
6088 | if test "x$LINE" != x ; then | |
6089 | eval "DEFAULT_$LINE" | |
6090 | else | |
6091 | no_cache=1 | |
6092 | fi | |
6093 | ||
6094 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
3379ed37 | 6095 | |
e6cc62c6 | 6096 | fi; |
3379ed37 VZ |
6097 | |
6098 | eval "$ac_cv_use_htmlhelp" | |
6099 | if test "$no_cache" != 1; then | |
6100 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
6101 | fi | |
6102 | ||
6103 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
e6cc62c6 VS |
6104 | echo "$as_me:$LINENO: result: yes" >&5 |
6105 | echo "${ECHO_T}yes" >&6 | |
3379ed37 | 6106 | else |
e6cc62c6 VS |
6107 | echo "$as_me:$LINENO: result: no" >&5 |
6108 | echo "${ECHO_T}no" >&6 | |
3379ed37 | 6109 | fi |
e6cc62c6 | 6110 | |
3379ed37 | 6111 | |
5005acfe | 6112 | enablestring= |
e6cc62c6 VS |
6113 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5 |
6114 | echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6 | |
10f2d63a VZ |
6115 | no_cache=0 |
6116 | # Check whether --enable-constraints or --disable-constraints was given. | |
6117 | if test "${enable_constraints+set}" = set; then | |
6118 | enableval="$enable_constraints" | |
e6cc62c6 | 6119 | |
10f2d63a VZ |
6120 | if test "$enableval" = yes; then |
6121 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
6122 | else | |
6123 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
6124 | fi | |
e6cc62c6 | 6125 | |
10f2d63a | 6126 | else |
e6cc62c6 | 6127 | |
10f2d63a VZ |
6128 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
6129 | if test "x$LINE" != x ; then | |
6130 | eval "DEFAULT_$LINE" | |
6131 | else | |
6132 | no_cache=1 | |
6133 | fi | |
6134 | ||
6135 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
10f2d63a | 6136 | |
e6cc62c6 | 6137 | fi; |
10f2d63a VZ |
6138 | |
6139 | eval "$ac_cv_use_constraints" | |
6140 | if test "$no_cache" != 1; then | |
6141 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
6142 | fi | |
6143 | ||
6144 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
e6cc62c6 VS |
6145 | echo "$as_me:$LINENO: result: yes" >&5 |
6146 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6147 | else |
e6cc62c6 VS |
6148 | echo "$as_me:$LINENO: result: no" >&5 |
6149 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6150 | fi |
e6cc62c6 | 6151 | |
10f2d63a | 6152 | |
5005acfe | 6153 | enablestring= |
e6cc62c6 VS |
6154 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5 |
6155 | echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6 | |
10f2d63a VZ |
6156 | no_cache=0 |
6157 | # Check whether --enable-printarch or --disable-printarch was given. | |
6158 | if test "${enable_printarch+set}" = set; then | |
6159 | enableval="$enable_printarch" | |
e6cc62c6 | 6160 | |
10f2d63a VZ |
6161 | if test "$enableval" = yes; then |
6162 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
6163 | else | |
6164 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
6165 | fi | |
e6cc62c6 | 6166 | |
10f2d63a | 6167 | else |
e6cc62c6 | 6168 | |
10f2d63a VZ |
6169 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
6170 | if test "x$LINE" != x ; then | |
6171 | eval "DEFAULT_$LINE" | |
6172 | else | |
6173 | no_cache=1 | |
6174 | fi | |
6175 | ||
6176 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
10f2d63a | 6177 | |
e6cc62c6 | 6178 | fi; |
10f2d63a VZ |
6179 | |
6180 | eval "$ac_cv_use_printarch" | |
6181 | if test "$no_cache" != 1; then | |
6182 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
6183 | fi | |
6184 | ||
6185 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
e6cc62c6 VS |
6186 | echo "$as_me:$LINENO: result: yes" >&5 |
6187 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6188 | else |
e6cc62c6 VS |
6189 | echo "$as_me:$LINENO: result: no" >&5 |
6190 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6191 | fi |
e6cc62c6 | 6192 | |
10f2d63a | 6193 | |
5005acfe | 6194 | enablestring= |
e6cc62c6 VS |
6195 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5 |
6196 | echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6 | |
10f2d63a VZ |
6197 | no_cache=0 |
6198 | # Check whether --enable-mdi or --disable-mdi was given. | |
6199 | if test "${enable_mdi+set}" = set; then | |
6200 | enableval="$enable_mdi" | |
e6cc62c6 | 6201 | |
10f2d63a VZ |
6202 | if test "$enableval" = yes; then |
6203 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
6204 | else | |
6205 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
6206 | fi | |
e6cc62c6 | 6207 | |
10f2d63a | 6208 | else |
e6cc62c6 | 6209 | |
10f2d63a VZ |
6210 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
6211 | if test "x$LINE" != x ; then | |
6212 | eval "DEFAULT_$LINE" | |
6213 | else | |
6214 | no_cache=1 | |
6215 | fi | |
6216 | ||
6217 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
10f2d63a | 6218 | |
e6cc62c6 | 6219 | fi; |
10f2d63a VZ |
6220 | |
6221 | eval "$ac_cv_use_mdi" | |
6222 | if test "$no_cache" != 1; then | |
6223 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
6224 | fi | |
6225 | ||
6226 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
e6cc62c6 VS |
6227 | echo "$as_me:$LINENO: result: yes" >&5 |
6228 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6229 | else |
e6cc62c6 VS |
6230 | echo "$as_me:$LINENO: result: no" >&5 |
6231 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6232 | fi |
e6cc62c6 | 6233 | |
698dcdb6 | 6234 | |
5005acfe | 6235 | enablestring= |
e6cc62c6 VS |
6236 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5 |
6237 | echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6 | |
1e6feb95 VZ |
6238 | no_cache=0 |
6239 | # Check whether --enable-loggui or --disable-loggui was given. | |
6240 | if test "${enable_loggui+set}" = set; then | |
6241 | enableval="$enable_loggui" | |
e6cc62c6 | 6242 | |
1e6feb95 VZ |
6243 | if test "$enableval" = yes; then |
6244 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
6245 | else | |
6246 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
6247 | fi | |
e6cc62c6 | 6248 | |
1e6feb95 | 6249 | else |
e6cc62c6 | 6250 | |
1e6feb95 VZ |
6251 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` |
6252 | if test "x$LINE" != x ; then | |
6253 | eval "DEFAULT_$LINE" | |
6254 | else | |
6255 | no_cache=1 | |
6256 | fi | |
6257 | ||
6258 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
1e6feb95 | 6259 | |
e6cc62c6 | 6260 | fi; |
1e6feb95 VZ |
6261 | |
6262 | eval "$ac_cv_use_loggui" | |
6263 | if test "$no_cache" != 1; then | |
6264 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
6265 | fi | |
6266 | ||
6267 | if test "$wxUSE_LOGGUI" = yes; then | |
e6cc62c6 VS |
6268 | echo "$as_me:$LINENO: result: yes" >&5 |
6269 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 6270 | else |
e6cc62c6 VS |
6271 | echo "$as_me:$LINENO: result: no" >&5 |
6272 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 6273 | fi |
e6cc62c6 | 6274 | |
1e6feb95 | 6275 | |
5005acfe | 6276 | enablestring= |
e6cc62c6 VS |
6277 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5 |
6278 | echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6 | |
1e6feb95 VZ |
6279 | no_cache=0 |
6280 | # Check whether --enable-logwin or --disable-logwin was given. | |
6281 | if test "${enable_logwin+set}" = set; then | |
6282 | enableval="$enable_logwin" | |
e6cc62c6 | 6283 | |
1e6feb95 VZ |
6284 | if test "$enableval" = yes; then |
6285 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
6286 | else | |
6287 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
6288 | fi | |
e6cc62c6 | 6289 | |
1e6feb95 | 6290 | else |
e6cc62c6 | 6291 | |
1e6feb95 VZ |
6292 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` |
6293 | if test "x$LINE" != x ; then | |
6294 | eval "DEFAULT_$LINE" | |
6295 | else | |
6296 | no_cache=1 | |
6297 | fi | |
6298 | ||
6299 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
1e6feb95 | 6300 | |
e6cc62c6 | 6301 | fi; |
1e6feb95 VZ |
6302 | |
6303 | eval "$ac_cv_use_logwin" | |
6304 | if test "$no_cache" != 1; then | |
6305 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
6306 | fi | |
6307 | ||
6308 | if test "$wxUSE_LOGWINDOW" = yes; then | |
e6cc62c6 VS |
6309 | echo "$as_me:$LINENO: result: yes" >&5 |
6310 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 6311 | else |
e6cc62c6 VS |
6312 | echo "$as_me:$LINENO: result: no" >&5 |
6313 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 6314 | fi |
e6cc62c6 | 6315 | |
1e6feb95 | 6316 | |
5005acfe | 6317 | enablestring= |
e6cc62c6 VS |
6318 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5 |
6319 | echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6 | |
69d27ff7 MB |
6320 | no_cache=0 |
6321 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
6322 | if test "${enable_logdialog+set}" = set; then | |
6323 | enableval="$enable_logdialog" | |
e6cc62c6 | 6324 | |
69d27ff7 MB |
6325 | if test "$enableval" = yes; then |
6326 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
6327 | else | |
6328 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
6329 | fi | |
e6cc62c6 | 6330 | |
69d27ff7 | 6331 | else |
e6cc62c6 | 6332 | |
69d27ff7 MB |
6333 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` |
6334 | if test "x$LINE" != x ; then | |
6335 | eval "DEFAULT_$LINE" | |
6336 | else | |
6337 | no_cache=1 | |
6338 | fi | |
6339 | ||
6340 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
69d27ff7 | 6341 | |
e6cc62c6 | 6342 | fi; |
69d27ff7 MB |
6343 | |
6344 | eval "$ac_cv_use_logdialog" | |
6345 | if test "$no_cache" != 1; then | |
6346 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
6347 | fi | |
6348 | ||
6349 | if test "$wxUSE_LOGDIALOG" = yes; then | |
e6cc62c6 VS |
6350 | echo "$as_me:$LINENO: result: yes" >&5 |
6351 | echo "${ECHO_T}yes" >&6 | |
69d27ff7 | 6352 | else |
e6cc62c6 VS |
6353 | echo "$as_me:$LINENO: result: no" >&5 |
6354 | echo "${ECHO_T}no" >&6 | |
69d27ff7 | 6355 | fi |
e6cc62c6 | 6356 | |
8284b0c5 | 6357 | |
52127426 | 6358 | |
5005acfe | 6359 | enablestring= |
e6cc62c6 VS |
6360 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5 |
6361 | echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6 | |
10f2d63a VZ |
6362 | no_cache=0 |
6363 | # Check whether --enable-postscript or --disable-postscript was given. | |
6364 | if test "${enable_postscript+set}" = set; then | |
6365 | enableval="$enable_postscript" | |
e6cc62c6 | 6366 | |
10f2d63a VZ |
6367 | if test "$enableval" = yes; then |
6368 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
6369 | else | |
6370 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
6371 | fi | |
e6cc62c6 | 6372 | |
10f2d63a | 6373 | else |
e6cc62c6 | 6374 | |
10f2d63a VZ |
6375 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
6376 | if test "x$LINE" != x ; then | |
6377 | eval "DEFAULT_$LINE" | |
6378 | else | |
6379 | no_cache=1 | |
6380 | fi | |
6381 | ||
6382 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
10f2d63a | 6383 | |
e6cc62c6 | 6384 | fi; |
10f2d63a VZ |
6385 | |
6386 | eval "$ac_cv_use_postscript" | |
6387 | if test "$no_cache" != 1; then | |
6388 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
6389 | fi | |
6390 | ||
6391 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
e6cc62c6 VS |
6392 | echo "$as_me:$LINENO: result: yes" >&5 |
6393 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6394 | else |
e6cc62c6 VS |
6395 | echo "$as_me:$LINENO: result: no" >&5 |
6396 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6397 | fi |
e6cc62c6 | 6398 | |
8284b0c5 MB |
6399 | |
6400 | ||
52127426 | 6401 | |
8284b0c5 | 6402 | |
5005acfe | 6403 | enablestring= |
e6cc62c6 VS |
6404 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5 |
6405 | echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6 | |
10f2d63a | 6406 | no_cache=0 |
3c907f20 VZ |
6407 | # Check whether --enable-prologio or --disable-prologio was given. |
6408 | if test "${enable_prologio+set}" = set; then | |
6409 | enableval="$enable_prologio" | |
e6cc62c6 | 6410 | |
10f2d63a | 6411 | if test "$enableval" = yes; then |
3c907f20 | 6412 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' |
10f2d63a | 6413 | else |
3c907f20 | 6414 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' |
10f2d63a | 6415 | fi |
e6cc62c6 | 6416 | |
10f2d63a | 6417 | else |
e6cc62c6 | 6418 | |
3c907f20 | 6419 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
10f2d63a VZ |
6420 | if test "x$LINE" != x ; then |
6421 | eval "DEFAULT_$LINE" | |
6422 | else | |
6423 | no_cache=1 | |
6424 | fi | |
6425 | ||
3c907f20 | 6426 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO |
10f2d63a | 6427 | |
e6cc62c6 | 6428 | fi; |
10f2d63a | 6429 | |
3c907f20 | 6430 | eval "$ac_cv_use_prologio" |
10f2d63a | 6431 | if test "$no_cache" != 1; then |
3c907f20 | 6432 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6433 | fi |
6434 | ||
3c907f20 | 6435 | if test "$wxUSE_PROLOGIO" = yes; then |
e6cc62c6 VS |
6436 | echo "$as_me:$LINENO: result: yes" >&5 |
6437 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6438 | else |
e6cc62c6 VS |
6439 | echo "$as_me:$LINENO: result: no" >&5 |
6440 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6441 | fi |
e6cc62c6 | 6442 | |
8284b0c5 | 6443 | |
5005acfe | 6444 | enablestring= |
e6cc62c6 VS |
6445 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5 |
6446 | echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6 | |
10f2d63a | 6447 | no_cache=0 |
3c907f20 VZ |
6448 | # Check whether --enable-resources or --disable-resources was given. |
6449 | if test "${enable_resources+set}" = set; then | |
6450 | enableval="$enable_resources" | |
e6cc62c6 | 6451 | |
10f2d63a | 6452 | if test "$enableval" = yes; then |
3c907f20 | 6453 | ac_cv_use_resources='wxUSE_RESOURCES=yes' |
10f2d63a | 6454 | else |
3c907f20 | 6455 | ac_cv_use_resources='wxUSE_RESOURCES=no' |
10f2d63a | 6456 | fi |
e6cc62c6 | 6457 | |
10f2d63a | 6458 | else |
e6cc62c6 | 6459 | |
3c907f20 | 6460 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
10f2d63a VZ |
6461 | if test "x$LINE" != x ; then |
6462 | eval "DEFAULT_$LINE" | |
6463 | else | |
6464 | no_cache=1 | |
6465 | fi | |
6466 | ||
3c907f20 | 6467 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES |
10f2d63a | 6468 | |
e6cc62c6 | 6469 | fi; |
10f2d63a | 6470 | |
3c907f20 | 6471 | eval "$ac_cv_use_resources" |
10f2d63a | 6472 | if test "$no_cache" != 1; then |
3c907f20 | 6473 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6474 | fi |
6475 | ||
3c907f20 | 6476 | if test "$wxUSE_RESOURCES" = yes; then |
e6cc62c6 VS |
6477 | echo "$as_me:$LINENO: result: yes" >&5 |
6478 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6479 | else |
e6cc62c6 VS |
6480 | echo "$as_me:$LINENO: result: no" >&5 |
6481 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6482 | fi |
e6cc62c6 | 6483 | |
8284b0c5 MB |
6484 | |
6485 | ||
52127426 | 6486 | |
5005acfe | 6487 | enablestring= |
e6cc62c6 VS |
6488 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5 |
6489 | echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6 | |
10f2d63a VZ |
6490 | no_cache=0 |
6491 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
6492 | if test "${enable_clipboard+set}" = set; then | |
6493 | enableval="$enable_clipboard" | |
e6cc62c6 | 6494 | |
10f2d63a VZ |
6495 | if test "$enableval" = yes; then |
6496 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
6497 | else | |
6498 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
6499 | fi | |
e6cc62c6 | 6500 | |
10f2d63a | 6501 | else |
e6cc62c6 | 6502 | |
10f2d63a VZ |
6503 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
6504 | if test "x$LINE" != x ; then | |
6505 | eval "DEFAULT_$LINE" | |
6506 | else | |
6507 | no_cache=1 | |
6508 | fi | |
6509 | ||
6510 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
10f2d63a | 6511 | |
e6cc62c6 | 6512 | fi; |
10f2d63a VZ |
6513 | |
6514 | eval "$ac_cv_use_clipboard" | |
6515 | if test "$no_cache" != 1; then | |
6516 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
6517 | fi | |
6518 | ||
6519 | if test "$wxUSE_CLIPBOARD" = yes; then | |
e6cc62c6 VS |
6520 | echo "$as_me:$LINENO: result: yes" >&5 |
6521 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6522 | else |
e6cc62c6 VS |
6523 | echo "$as_me:$LINENO: result: no" >&5 |
6524 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6525 | fi |
e6cc62c6 | 6526 | |
10f2d63a | 6527 | |
5005acfe | 6528 | enablestring= |
e6cc62c6 VS |
6529 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5 |
6530 | echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6 | |
10f2d63a VZ |
6531 | no_cache=0 |
6532 | # Check whether --enable-dnd or --disable-dnd was given. | |
6533 | if test "${enable_dnd+set}" = set; then | |
6534 | enableval="$enable_dnd" | |
e6cc62c6 | 6535 | |
10f2d63a VZ |
6536 | if test "$enableval" = yes; then |
6537 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
6538 | else | |
6539 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
6540 | fi | |
e6cc62c6 | 6541 | |
10f2d63a | 6542 | else |
e6cc62c6 | 6543 | |
10f2d63a VZ |
6544 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
6545 | if test "x$LINE" != x ; then | |
6546 | eval "DEFAULT_$LINE" | |
6547 | else | |
6548 | no_cache=1 | |
6549 | fi | |
6550 | ||
6551 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
10f2d63a | 6552 | |
e6cc62c6 | 6553 | fi; |
10f2d63a VZ |
6554 | |
6555 | eval "$ac_cv_use_dnd" | |
6556 | if test "$no_cache" != 1; then | |
6557 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
6558 | fi | |
6559 | ||
6560 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
e6cc62c6 VS |
6561 | echo "$as_me:$LINENO: result: yes" >&5 |
6562 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6563 | else |
e6cc62c6 VS |
6564 | echo "$as_me:$LINENO: result: no" >&5 |
6565 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6566 | fi |
e6cc62c6 | 6567 | |
10f2d63a | 6568 | |
5005acfe | 6569 | enablestring= |
e6cc62c6 VS |
6570 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 |
6571 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
b64f0a5f RL |
6572 | no_cache=0 |
6573 | # Check whether --enable-metafile or --disable-metafile was given. | |
6574 | if test "${enable_metafile+set}" = set; then | |
6575 | enableval="$enable_metafile" | |
e6cc62c6 | 6576 | |
b64f0a5f RL |
6577 | if test "$enableval" = yes; then |
6578 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
6579 | else | |
6580 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
6581 | fi | |
e6cc62c6 | 6582 | |
b64f0a5f | 6583 | else |
e6cc62c6 | 6584 | |
b64f0a5f RL |
6585 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
6586 | if test "x$LINE" != x ; then | |
6587 | eval "DEFAULT_$LINE" | |
6588 | else | |
6589 | no_cache=1 | |
6590 | fi | |
6591 | ||
6592 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
b64f0a5f | 6593 | |
e6cc62c6 | 6594 | fi; |
b64f0a5f RL |
6595 | |
6596 | eval "$ac_cv_use_metafile" | |
6597 | if test "$no_cache" != 1; then | |
6598 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
6599 | fi | |
6600 | ||
6601 | if test "$wxUSE_METAFILE" = yes; then | |
e6cc62c6 VS |
6602 | echo "$as_me:$LINENO: result: yes" >&5 |
6603 | echo "${ECHO_T}yes" >&6 | |
b64f0a5f | 6604 | else |
e6cc62c6 VS |
6605 | echo "$as_me:$LINENO: result: no" >&5 |
6606 | echo "${ECHO_T}no" >&6 | |
b64f0a5f | 6607 | fi |
e6cc62c6 | 6608 | |
52127426 | 6609 | |
8284b0c5 | 6610 | |
52127426 | 6611 | |
8284b0c5 | 6612 | |
5005acfe | 6613 | enablestring= |
e6cc62c6 VS |
6614 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5 |
6615 | echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6 | |
10f2d63a VZ |
6616 | no_cache=0 |
6617 | # Check whether --enable-controls or --disable-controls was given. | |
6618 | if test "${enable_controls+set}" = set; then | |
6619 | enableval="$enable_controls" | |
e6cc62c6 | 6620 | |
10f2d63a VZ |
6621 | if test "$enableval" = yes; then |
6622 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
6623 | else | |
6624 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
6625 | fi | |
e6cc62c6 | 6626 | |
10f2d63a | 6627 | else |
e6cc62c6 | 6628 | |
10f2d63a VZ |
6629 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
6630 | if test "x$LINE" != x ; then | |
6631 | eval "DEFAULT_$LINE" | |
6632 | else | |
6633 | no_cache=1 | |
6634 | fi | |
6635 | ||
6636 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
10f2d63a | 6637 | |
e6cc62c6 | 6638 | fi; |
10f2d63a VZ |
6639 | |
6640 | eval "$ac_cv_use_controls" | |
6641 | if test "$no_cache" != 1; then | |
6642 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
6643 | fi | |
6644 | ||
6645 | if test "$wxUSE_CONTROLS" = yes; then | |
e6cc62c6 VS |
6646 | echo "$as_me:$LINENO: result: yes" >&5 |
6647 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6648 | else |
e6cc62c6 VS |
6649 | echo "$as_me:$LINENO: result: no" >&5 |
6650 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6651 | fi |
e6cc62c6 | 6652 | |
10f2d63a VZ |
6653 | |
6654 | if test "$wxUSE_CONTROLS" = "yes"; then | |
6655 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
6656 | DEFAULT_wxUSE_BMPBUTTON=yes |
6657 | DEFAULT_wxUSE_BUTTON=yes | |
6658 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
6659 | DEFAULT_wxUSE_CARET=yes |
6660 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
6661 | DEFAULT_wxUSE_CHECKBOX=yes |
6662 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
6663 | DEFAULT_wxUSE_CHOICE=yes | |
6664 | DEFAULT_wxUSE_GAUGE=yes | |
6665 | DEFAULT_wxUSE_GRID=yes | |
10f2d63a | 6666 | DEFAULT_wxUSE_IMAGLIST=yes |
0e012a93 | 6667 | DEFAULT_wxUSE_LISTBOOK=yes |
10f2d63a VZ |
6668 | DEFAULT_wxUSE_LISTBOX=yes |
6669 | DEFAULT_wxUSE_LISTCTRL=yes | |
6670 | DEFAULT_wxUSE_NOTEBOOK=yes | |
6671 | DEFAULT_wxUSE_RADIOBOX=yes | |
6672 | DEFAULT_wxUSE_RADIOBTN=yes | |
6673 | DEFAULT_wxUSE_SASH=yes | |
6674 | DEFAULT_wxUSE_SCROLLBAR=yes | |
6675 | DEFAULT_wxUSE_SLIDER=yes | |
6676 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 6677 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
6678 | DEFAULT_wxUSE_SPLITTER=yes |
6679 | DEFAULT_wxUSE_STATBMP=yes | |
6680 | DEFAULT_wxUSE_STATBOX=yes | |
6681 | DEFAULT_wxUSE_STATLINE=yes | |
6682 | DEFAULT_wxUSE_STATUSBAR=yes | |
6683 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 6684 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 6685 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
6686 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
6687 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
6688 | DEFAULT_wxUSE_TOOLTIPS=yes |
6689 | DEFAULT_wxUSE_TREECTRL=yes | |
9f41d601 | 6690 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 6691 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
6692 | elif test "$wxUSE_CONTROLS" = "no"; then |
6693 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
6694 | DEFAULT_wxUSE_BMPBUTTON=no |
6695 | DEFAULT_wxUSE_BUTTON=no | |
6696 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
6697 | DEFAULT_wxUSE_CARET=no |
6698 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
6699 | DEFAULT_wxUSE_CHECKBOX=no |
6700 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
6701 | DEFAULT_wxUSE_CHOICE=no | |
6702 | DEFAULT_wxUSE_GAUGE=no | |
6703 | DEFAULT_wxUSE_GRID=no | |
10f2d63a | 6704 | DEFAULT_wxUSE_IMAGLIST=no |
0e012a93 | 6705 | DEFAULT_wxUSE_LISTBOOK=no |
10f2d63a VZ |
6706 | DEFAULT_wxUSE_LISTBOX=no |
6707 | DEFAULT_wxUSE_LISTCTRL=no | |
6708 | DEFAULT_wxUSE_NOTEBOOK=no | |
6709 | DEFAULT_wxUSE_RADIOBOX=no | |
6710 | DEFAULT_wxUSE_RADIOBTN=no | |
6711 | DEFAULT_wxUSE_SASH=no | |
6712 | DEFAULT_wxUSE_SCROLLBAR=no | |
6713 | DEFAULT_wxUSE_SLIDER=no | |
6714 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 6715 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
6716 | DEFAULT_wxUSE_SPLITTER=no |
6717 | DEFAULT_wxUSE_STATBMP=no | |
6718 | DEFAULT_wxUSE_STATBOX=no | |
6719 | DEFAULT_wxUSE_STATLINE=no | |
6720 | DEFAULT_wxUSE_STATUSBAR=no | |
6721 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 6722 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 6723 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
6724 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
6725 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
6726 | DEFAULT_wxUSE_TOOLTIPS=no |
6727 | DEFAULT_wxUSE_TREECTRL=no | |
9f41d601 | 6728 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 6729 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
6730 | fi |
6731 | ||
ac0c4cc3 DE |
6732 | ## FIXME: This is a blatant hack |
6733 | if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then | |
6734 | wxUSE_PRINTING_ARCHITECTURE=no | |
ac0c4cc3 | 6735 | wxUSE_DRAG_AND_DROP=no |
8b389fab DE |
6736 | # Generic notebook requires tab dialog |
6737 | DEFAULT_wxUSE_TABDIALOG=yes | |
ac0c4cc3 | 6738 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
ac0c4cc3 | 6739 | DEFAULT_wxUSE_SCROLLBAR=no |
ac0c4cc3 | 6740 | DEFAULT_wxUSE_TOOLTIPS=no |
ac0c4cc3 | 6741 | DEFAULT_wxUSE_DRAGIMAGE=no |
ac0c4cc3 DE |
6742 | fi |
6743 | ||
8284b0c5 | 6744 | |
5005acfe | 6745 | enablestring= |
e6cc62c6 VS |
6746 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5 |
6747 | echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6 | |
10f2d63a VZ |
6748 | no_cache=0 |
6749 | # Check whether --enable-accel or --disable-accel was given. | |
6750 | if test "${enable_accel+set}" = set; then | |
6751 | enableval="$enable_accel" | |
e6cc62c6 | 6752 | |
10f2d63a VZ |
6753 | if test "$enableval" = yes; then |
6754 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
6755 | else | |
6756 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
6757 | fi | |
e6cc62c6 | 6758 | |
10f2d63a | 6759 | else |
e6cc62c6 | 6760 | |
10f2d63a VZ |
6761 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
6762 | if test "x$LINE" != x ; then | |
6763 | eval "DEFAULT_$LINE" | |
6764 | else | |
6765 | no_cache=1 | |
6766 | fi | |
6767 | ||
6768 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
10f2d63a | 6769 | |
e6cc62c6 | 6770 | fi; |
10f2d63a VZ |
6771 | |
6772 | eval "$ac_cv_use_accel" | |
6773 | if test "$no_cache" != 1; then | |
6774 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
6775 | fi | |
6776 | ||
6777 | if test "$wxUSE_ACCEL" = yes; then | |
e6cc62c6 VS |
6778 | echo "$as_me:$LINENO: result: yes" >&5 |
6779 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6780 | else |
e6cc62c6 VS |
6781 | echo "$as_me:$LINENO: result: no" >&5 |
6782 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6783 | fi |
e6cc62c6 | 6784 | |
10f2d63a | 6785 | |
5005acfe | 6786 | enablestring= |
e6cc62c6 VS |
6787 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5 |
6788 | echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6 | |
10f2d63a | 6789 | no_cache=0 |
1e6feb95 VZ |
6790 | # Check whether --enable-button or --disable-button was given. |
6791 | if test "${enable_button+set}" = set; then | |
6792 | enableval="$enable_button" | |
e6cc62c6 | 6793 | |
10f2d63a | 6794 | if test "$enableval" = yes; then |
1e6feb95 | 6795 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 6796 | else |
1e6feb95 | 6797 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 6798 | fi |
e6cc62c6 | 6799 | |
10f2d63a | 6800 | else |
e6cc62c6 | 6801 | |
1e6feb95 | 6802 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
6803 | if test "x$LINE" != x ; then |
6804 | eval "DEFAULT_$LINE" | |
6805 | else | |
6806 | no_cache=1 | |
6807 | fi | |
6808 | ||
1e6feb95 | 6809 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
10f2d63a | 6810 | |
e6cc62c6 | 6811 | fi; |
10f2d63a | 6812 | |
1e6feb95 | 6813 | eval "$ac_cv_use_button" |
10f2d63a | 6814 | if test "$no_cache" != 1; then |
1e6feb95 | 6815 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6816 | fi |
6817 | ||
1e6feb95 | 6818 | if test "$wxUSE_BUTTON" = yes; then |
e6cc62c6 VS |
6819 | echo "$as_me:$LINENO: result: yes" >&5 |
6820 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6821 | else |
e6cc62c6 VS |
6822 | echo "$as_me:$LINENO: result: no" >&5 |
6823 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6824 | fi |
e6cc62c6 | 6825 | |
10f2d63a | 6826 | |
5005acfe | 6827 | enablestring= |
e6cc62c6 VS |
6828 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5 |
6829 | echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6 | |
10f2d63a VZ |
6830 | no_cache=0 |
6831 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
6832 | if test "${enable_bmpbutton+set}" = set; then | |
6833 | enableval="$enable_bmpbutton" | |
e6cc62c6 | 6834 | |
10f2d63a VZ |
6835 | if test "$enableval" = yes; then |
6836 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
6837 | else | |
6838 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
6839 | fi | |
e6cc62c6 | 6840 | |
10f2d63a | 6841 | else |
e6cc62c6 | 6842 | |
10f2d63a VZ |
6843 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
6844 | if test "x$LINE" != x ; then | |
6845 | eval "DEFAULT_$LINE" | |
6846 | else | |
6847 | no_cache=1 | |
6848 | fi | |
6849 | ||
6850 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
10f2d63a | 6851 | |
e6cc62c6 | 6852 | fi; |
10f2d63a VZ |
6853 | |
6854 | eval "$ac_cv_use_bmpbutton" | |
6855 | if test "$no_cache" != 1; then | |
6856 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
6857 | fi | |
6858 | ||
6859 | if test "$wxUSE_BMPBUTTON" = yes; then | |
e6cc62c6 VS |
6860 | echo "$as_me:$LINENO: result: yes" >&5 |
6861 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6862 | else |
e6cc62c6 VS |
6863 | echo "$as_me:$LINENO: result: no" >&5 |
6864 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6865 | fi |
e6cc62c6 | 6866 | |
10f2d63a | 6867 | |
5005acfe | 6868 | enablestring= |
e6cc62c6 VS |
6869 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5 |
6870 | echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6 | |
1e6feb95 VZ |
6871 | no_cache=0 |
6872 | # Check whether --enable-calendar or --disable-calendar was given. | |
6873 | if test "${enable_calendar+set}" = set; then | |
6874 | enableval="$enable_calendar" | |
e6cc62c6 | 6875 | |
1e6feb95 VZ |
6876 | if test "$enableval" = yes; then |
6877 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
6878 | else | |
6879 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
6880 | fi | |
e6cc62c6 | 6881 | |
1e6feb95 | 6882 | else |
e6cc62c6 | 6883 | |
1e6feb95 VZ |
6884 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` |
6885 | if test "x$LINE" != x ; then | |
6886 | eval "DEFAULT_$LINE" | |
6887 | else | |
6888 | no_cache=1 | |
6889 | fi | |
6890 | ||
6891 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
1e6feb95 | 6892 | |
e6cc62c6 | 6893 | fi; |
1e6feb95 VZ |
6894 | |
6895 | eval "$ac_cv_use_calendar" | |
6896 | if test "$no_cache" != 1; then | |
6897 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
6898 | fi | |
6899 | ||
6900 | if test "$wxUSE_CALCTRL" = yes; then | |
e6cc62c6 VS |
6901 | echo "$as_me:$LINENO: result: yes" >&5 |
6902 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 6903 | else |
e6cc62c6 VS |
6904 | echo "$as_me:$LINENO: result: no" >&5 |
6905 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 6906 | fi |
e6cc62c6 | 6907 | |
1e6feb95 | 6908 | |
5005acfe | 6909 | enablestring= |
e6cc62c6 VS |
6910 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5 |
6911 | echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6 | |
1e6feb95 VZ |
6912 | no_cache=0 |
6913 | # Check whether --enable-caret or --disable-caret was given. | |
6914 | if test "${enable_caret+set}" = set; then | |
6915 | enableval="$enable_caret" | |
e6cc62c6 | 6916 | |
1e6feb95 VZ |
6917 | if test "$enableval" = yes; then |
6918 | ac_cv_use_caret='wxUSE_CARET=yes' | |
6919 | else | |
6920 | ac_cv_use_caret='wxUSE_CARET=no' | |
6921 | fi | |
e6cc62c6 | 6922 | |
1e6feb95 | 6923 | else |
e6cc62c6 | 6924 | |
1e6feb95 VZ |
6925 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` |
6926 | if test "x$LINE" != x ; then | |
6927 | eval "DEFAULT_$LINE" | |
6928 | else | |
6929 | no_cache=1 | |
6930 | fi | |
6931 | ||
6932 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
1e6feb95 | 6933 | |
e6cc62c6 | 6934 | fi; |
1e6feb95 VZ |
6935 | |
6936 | eval "$ac_cv_use_caret" | |
6937 | if test "$no_cache" != 1; then | |
6938 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
6939 | fi | |
6940 | ||
6941 | if test "$wxUSE_CARET" = yes; then | |
e6cc62c6 VS |
6942 | echo "$as_me:$LINENO: result: yes" >&5 |
6943 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 6944 | else |
e6cc62c6 VS |
6945 | echo "$as_me:$LINENO: result: no" >&5 |
6946 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 6947 | fi |
e6cc62c6 | 6948 | |
1e6feb95 | 6949 | |
5005acfe | 6950 | enablestring= |
e6cc62c6 VS |
6951 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5 |
6952 | echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6 | |
10f2d63a VZ |
6953 | no_cache=0 |
6954 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
6955 | if test "${enable_checkbox+set}" = set; then | |
6956 | enableval="$enable_checkbox" | |
e6cc62c6 | 6957 | |
10f2d63a VZ |
6958 | if test "$enableval" = yes; then |
6959 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
6960 | else | |
6961 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
6962 | fi | |
e6cc62c6 | 6963 | |
10f2d63a | 6964 | else |
e6cc62c6 | 6965 | |
10f2d63a VZ |
6966 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
6967 | if test "x$LINE" != x ; then | |
6968 | eval "DEFAULT_$LINE" | |
6969 | else | |
6970 | no_cache=1 | |
6971 | fi | |
6972 | ||
6973 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
10f2d63a | 6974 | |
e6cc62c6 | 6975 | fi; |
10f2d63a VZ |
6976 | |
6977 | eval "$ac_cv_use_checkbox" | |
6978 | if test "$no_cache" != 1; then | |
6979 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
6980 | fi | |
6981 | ||
6982 | if test "$wxUSE_CHECKBOX" = yes; then | |
e6cc62c6 VS |
6983 | echo "$as_me:$LINENO: result: yes" >&5 |
6984 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6985 | else |
e6cc62c6 VS |
6986 | echo "$as_me:$LINENO: result: no" >&5 |
6987 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6988 | fi |
e6cc62c6 | 6989 | |
10f2d63a | 6990 | |
5005acfe | 6991 | enablestring= |
e6cc62c6 VS |
6992 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5 |
6993 | echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6 | |
10f2d63a VZ |
6994 | no_cache=0 |
6995 | # Check whether --enable-checklst or --disable-checklst was given. | |
6996 | if test "${enable_checklst+set}" = set; then | |
6997 | enableval="$enable_checklst" | |
e6cc62c6 | 6998 | |
10f2d63a VZ |
6999 | if test "$enableval" = yes; then |
7000 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
7001 | else | |
7002 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
7003 | fi | |
e6cc62c6 | 7004 | |
10f2d63a | 7005 | else |
e6cc62c6 | 7006 | |
10f2d63a VZ |
7007 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
7008 | if test "x$LINE" != x ; then | |
7009 | eval "DEFAULT_$LINE" | |
7010 | else | |
7011 | no_cache=1 | |
7012 | fi | |
7013 | ||
7014 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
10f2d63a | 7015 | |
e6cc62c6 | 7016 | fi; |
10f2d63a VZ |
7017 | |
7018 | eval "$ac_cv_use_checklst" | |
7019 | if test "$no_cache" != 1; then | |
7020 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
7021 | fi | |
7022 | ||
7023 | if test "$wxUSE_CHECKLST" = yes; then | |
e6cc62c6 VS |
7024 | echo "$as_me:$LINENO: result: yes" >&5 |
7025 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7026 | else |
e6cc62c6 VS |
7027 | echo "$as_me:$LINENO: result: no" >&5 |
7028 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7029 | fi |
e6cc62c6 | 7030 | |
10f2d63a | 7031 | |
5005acfe | 7032 | enablestring= |
e6cc62c6 VS |
7033 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5 |
7034 | echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6 | |
10f2d63a VZ |
7035 | no_cache=0 |
7036 | # Check whether --enable-choice or --disable-choice was given. | |
7037 | if test "${enable_choice+set}" = set; then | |
7038 | enableval="$enable_choice" | |
e6cc62c6 | 7039 | |
10f2d63a VZ |
7040 | if test "$enableval" = yes; then |
7041 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
7042 | else | |
7043 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
7044 | fi | |
e6cc62c6 | 7045 | |
10f2d63a | 7046 | else |
e6cc62c6 | 7047 | |
10f2d63a VZ |
7048 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
7049 | if test "x$LINE" != x ; then | |
7050 | eval "DEFAULT_$LINE" | |
7051 | else | |
7052 | no_cache=1 | |
7053 | fi | |
7054 | ||
7055 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
10f2d63a | 7056 | |
e6cc62c6 | 7057 | fi; |
10f2d63a VZ |
7058 | |
7059 | eval "$ac_cv_use_choice" | |
7060 | if test "$no_cache" != 1; then | |
7061 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
7062 | fi | |
7063 | ||
7064 | if test "$wxUSE_CHOICE" = yes; then | |
e6cc62c6 VS |
7065 | echo "$as_me:$LINENO: result: yes" >&5 |
7066 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7067 | else |
e6cc62c6 VS |
7068 | echo "$as_me:$LINENO: result: no" >&5 |
7069 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7070 | fi |
e6cc62c6 | 7071 | |
10f2d63a | 7072 | |
5005acfe | 7073 | enablestring= |
e6cc62c6 VS |
7074 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5 |
7075 | echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6 | |
10f2d63a VZ |
7076 | no_cache=0 |
7077 | # Check whether --enable-combobox or --disable-combobox was given. | |
7078 | if test "${enable_combobox+set}" = set; then | |
7079 | enableval="$enable_combobox" | |
e6cc62c6 | 7080 | |
10f2d63a VZ |
7081 | if test "$enableval" = yes; then |
7082 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
7083 | else | |
7084 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
7085 | fi | |
e6cc62c6 | 7086 | |
10f2d63a | 7087 | else |
e6cc62c6 | 7088 | |
10f2d63a VZ |
7089 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
7090 | if test "x$LINE" != x ; then | |
7091 | eval "DEFAULT_$LINE" | |
7092 | else | |
7093 | no_cache=1 | |
7094 | fi | |
7095 | ||
7096 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
10f2d63a | 7097 | |
e6cc62c6 | 7098 | fi; |
10f2d63a VZ |
7099 | |
7100 | eval "$ac_cv_use_combobox" | |
7101 | if test "$no_cache" != 1; then | |
7102 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
7103 | fi | |
7104 | ||
7105 | if test "$wxUSE_COMBOBOX" = yes; then | |
e6cc62c6 VS |
7106 | echo "$as_me:$LINENO: result: yes" >&5 |
7107 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7108 | else |
e6cc62c6 VS |
7109 | echo "$as_me:$LINENO: result: no" >&5 |
7110 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7111 | fi |
e6cc62c6 | 7112 | |
10f2d63a | 7113 | |
da494b40 | 7114 | enablestring= |
e6cc62c6 VS |
7115 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5 |
7116 | echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6 | |
da494b40 MB |
7117 | no_cache=0 |
7118 | # Check whether --enable-display or --disable-display was given. | |
7119 | if test "${enable_display+set}" = set; then | |
7120 | enableval="$enable_display" | |
e6cc62c6 | 7121 | |
da494b40 MB |
7122 | if test "$enableval" = yes; then |
7123 | ac_cv_use_display='wxUSE_DISPLAY=yes' | |
7124 | else | |
7125 | ac_cv_use_display='wxUSE_DISPLAY=no' | |
7126 | fi | |
e6cc62c6 | 7127 | |
da494b40 | 7128 | else |
e6cc62c6 | 7129 | |
da494b40 MB |
7130 | LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}` |
7131 | if test "x$LINE" != x ; then | |
7132 | eval "DEFAULT_$LINE" | |
7133 | else | |
7134 | no_cache=1 | |
7135 | fi | |
7136 | ||
7137 | ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY | |
da494b40 | 7138 | |
e6cc62c6 | 7139 | fi; |
da494b40 MB |
7140 | |
7141 | eval "$ac_cv_use_display" | |
7142 | if test "$no_cache" != 1; then | |
7143 | echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp | |
7144 | fi | |
7145 | ||
7146 | if test "$wxUSE_DISPLAY" = yes; then | |
e6cc62c6 VS |
7147 | echo "$as_me:$LINENO: result: yes" >&5 |
7148 | echo "${ECHO_T}yes" >&6 | |
da494b40 | 7149 | else |
e6cc62c6 VS |
7150 | echo "$as_me:$LINENO: result: no" >&5 |
7151 | echo "${ECHO_T}no" >&6 | |
da494b40 | 7152 | fi |
e6cc62c6 | 7153 | |
da494b40 | 7154 | |
5005acfe | 7155 | enablestring= |
e6cc62c6 VS |
7156 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5 |
7157 | echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6 | |
10f2d63a VZ |
7158 | no_cache=0 |
7159 | # Check whether --enable-gauge or --disable-gauge was given. | |
7160 | if test "${enable_gauge+set}" = set; then | |
7161 | enableval="$enable_gauge" | |
e6cc62c6 | 7162 | |
10f2d63a VZ |
7163 | if test "$enableval" = yes; then |
7164 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
7165 | else | |
7166 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
7167 | fi | |
e6cc62c6 | 7168 | |
10f2d63a | 7169 | else |
e6cc62c6 | 7170 | |
10f2d63a VZ |
7171 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
7172 | if test "x$LINE" != x ; then | |
7173 | eval "DEFAULT_$LINE" | |
7174 | else | |
7175 | no_cache=1 | |
7176 | fi | |
7177 | ||
7178 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
10f2d63a | 7179 | |
e6cc62c6 | 7180 | fi; |
10f2d63a VZ |
7181 | |
7182 | eval "$ac_cv_use_gauge" | |
7183 | if test "$no_cache" != 1; then | |
7184 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
7185 | fi | |
7186 | ||
7187 | if test "$wxUSE_GAUGE" = yes; then | |
e6cc62c6 VS |
7188 | echo "$as_me:$LINENO: result: yes" >&5 |
7189 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7190 | else |
e6cc62c6 VS |
7191 | echo "$as_me:$LINENO: result: no" >&5 |
7192 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7193 | fi |
e6cc62c6 | 7194 | |
10f2d63a | 7195 | |
5005acfe | 7196 | enablestring= |
e6cc62c6 VS |
7197 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5 |
7198 | echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6 | |
10f2d63a VZ |
7199 | no_cache=0 |
7200 | # Check whether --enable-grid or --disable-grid was given. | |
7201 | if test "${enable_grid+set}" = set; then | |
7202 | enableval="$enable_grid" | |
e6cc62c6 | 7203 | |
10f2d63a VZ |
7204 | if test "$enableval" = yes; then |
7205 | ac_cv_use_grid='wxUSE_GRID=yes' | |
7206 | else | |
7207 | ac_cv_use_grid='wxUSE_GRID=no' | |
7208 | fi | |
e6cc62c6 | 7209 | |
10f2d63a | 7210 | else |
e6cc62c6 | 7211 | |
10f2d63a VZ |
7212 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
7213 | if test "x$LINE" != x ; then | |
7214 | eval "DEFAULT_$LINE" | |
7215 | else | |
7216 | no_cache=1 | |
7217 | fi | |
7218 | ||
7219 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
10f2d63a | 7220 | |
e6cc62c6 | 7221 | fi; |
10f2d63a VZ |
7222 | |
7223 | eval "$ac_cv_use_grid" | |
7224 | if test "$no_cache" != 1; then | |
7225 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
7226 | fi | |
7227 | ||
7228 | if test "$wxUSE_GRID" = yes; then | |
e6cc62c6 VS |
7229 | echo "$as_me:$LINENO: result: yes" >&5 |
7230 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7231 | else |
e6cc62c6 VS |
7232 | echo "$as_me:$LINENO: result: no" >&5 |
7233 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7234 | fi |
e6cc62c6 | 7235 | |
10f2d63a | 7236 | |
5005acfe | 7237 | enablestring= |
e6cc62c6 VS |
7238 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5 |
7239 | echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6 | |
10f2d63a VZ |
7240 | no_cache=0 |
7241 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
7242 | if test "${enable_imaglist+set}" = set; then | |
7243 | enableval="$enable_imaglist" | |
e6cc62c6 | 7244 | |
10f2d63a VZ |
7245 | if test "$enableval" = yes; then |
7246 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
7247 | else | |
7248 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
7249 | fi | |
e6cc62c6 | 7250 | |
10f2d63a | 7251 | else |
e6cc62c6 | 7252 | |
10f2d63a VZ |
7253 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
7254 | if test "x$LINE" != x ; then | |
7255 | eval "DEFAULT_$LINE" | |
7256 | else | |
7257 | no_cache=1 | |
7258 | fi | |
7259 | ||
7260 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
10f2d63a | 7261 | |
e6cc62c6 | 7262 | fi; |
10f2d63a VZ |
7263 | |
7264 | eval "$ac_cv_use_imaglist" | |
7265 | if test "$no_cache" != 1; then | |
7266 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
7267 | fi | |
7268 | ||
7269 | if test "$wxUSE_IMAGLIST" = yes; then | |
e6cc62c6 VS |
7270 | echo "$as_me:$LINENO: result: yes" >&5 |
7271 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7272 | else |
e6cc62c6 VS |
7273 | echo "$as_me:$LINENO: result: no" >&5 |
7274 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7275 | fi |
e6cc62c6 | 7276 | |
10f2d63a | 7277 | |
0e012a93 VZ |
7278 | enablestring= |
7279 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5 | |
7280 | echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6 | |
7281 | no_cache=0 | |
7282 | # Check whether --enable-listbook or --disable-listbook was given. | |
7283 | if test "${enable_listbook+set}" = set; then | |
7284 | enableval="$enable_listbook" | |
7285 | ||
7286 | if test "$enableval" = yes; then | |
7287 | ac_cv_use_listbook='wxUSE_LISTBOOK=yes' | |
7288 | else | |
7289 | ac_cv_use_listbook='wxUSE_LISTBOOK=no' | |
7290 | fi | |
7291 | ||
7292 | else | |
7293 | ||
7294 | LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}` | |
7295 | if test "x$LINE" != x ; then | |
7296 | eval "DEFAULT_$LINE" | |
7297 | else | |
7298 | no_cache=1 | |
7299 | fi | |
7300 | ||
7301 | ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK | |
7302 | ||
7303 | fi; | |
7304 | ||
7305 | eval "$ac_cv_use_listbook" | |
7306 | if test "$no_cache" != 1; then | |
7307 | echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp | |
7308 | fi | |
7309 | ||
7310 | if test "$wxUSE_LISTBOOK" = yes; then | |
7311 | echo "$as_me:$LINENO: result: yes" >&5 | |
7312 | echo "${ECHO_T}yes" >&6 | |
7313 | else | |
7314 | echo "$as_me:$LINENO: result: no" >&5 | |
7315 | echo "${ECHO_T}no" >&6 | |
7316 | fi | |
7317 | ||
7318 | ||
5005acfe | 7319 | enablestring= |
e6cc62c6 VS |
7320 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5 |
7321 | echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6 | |
10f2d63a VZ |
7322 | no_cache=0 |
7323 | # Check whether --enable-listbox or --disable-listbox was given. | |
7324 | if test "${enable_listbox+set}" = set; then | |
7325 | enableval="$enable_listbox" | |
e6cc62c6 | 7326 | |
10f2d63a VZ |
7327 | if test "$enableval" = yes; then |
7328 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
7329 | else | |
7330 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
7331 | fi | |
e6cc62c6 | 7332 | |
10f2d63a | 7333 | else |
e6cc62c6 | 7334 | |
10f2d63a VZ |
7335 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
7336 | if test "x$LINE" != x ; then | |
7337 | eval "DEFAULT_$LINE" | |
7338 | else | |
7339 | no_cache=1 | |
7340 | fi | |
7341 | ||
7342 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
10f2d63a | 7343 | |
e6cc62c6 | 7344 | fi; |
10f2d63a VZ |
7345 | |
7346 | eval "$ac_cv_use_listbox" | |
7347 | if test "$no_cache" != 1; then | |
7348 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
7349 | fi | |
7350 | ||
7351 | if test "$wxUSE_LISTBOX" = yes; then | |
e6cc62c6 VS |
7352 | echo "$as_me:$LINENO: result: yes" >&5 |
7353 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7354 | else |
e6cc62c6 VS |
7355 | echo "$as_me:$LINENO: result: no" >&5 |
7356 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7357 | fi |
e6cc62c6 | 7358 | |
10f2d63a | 7359 | |
5005acfe | 7360 | enablestring= |
e6cc62c6 VS |
7361 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5 |
7362 | echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6 | |
10f2d63a VZ |
7363 | no_cache=0 |
7364 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
7365 | if test "${enable_listctrl+set}" = set; then | |
7366 | enableval="$enable_listctrl" | |
e6cc62c6 | 7367 | |
10f2d63a VZ |
7368 | if test "$enableval" = yes; then |
7369 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
7370 | else | |
7371 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
7372 | fi | |
e6cc62c6 | 7373 | |
10f2d63a | 7374 | else |
e6cc62c6 | 7375 | |
10f2d63a VZ |
7376 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
7377 | if test "x$LINE" != x ; then | |
7378 | eval "DEFAULT_$LINE" | |
7379 | else | |
7380 | no_cache=1 | |
7381 | fi | |
7382 | ||
7383 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
10f2d63a | 7384 | |
e6cc62c6 | 7385 | fi; |
10f2d63a VZ |
7386 | |
7387 | eval "$ac_cv_use_listctrl" | |
7388 | if test "$no_cache" != 1; then | |
7389 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
7390 | fi | |
7391 | ||
7392 | if test "$wxUSE_LISTCTRL" = yes; then | |
e6cc62c6 VS |
7393 | echo "$as_me:$LINENO: result: yes" >&5 |
7394 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7395 | else |
e6cc62c6 VS |
7396 | echo "$as_me:$LINENO: result: no" >&5 |
7397 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7398 | fi |
e6cc62c6 | 7399 | |
10f2d63a | 7400 | |
5005acfe | 7401 | enablestring= |
e6cc62c6 VS |
7402 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5 |
7403 | echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6 | |
10f2d63a VZ |
7404 | no_cache=0 |
7405 | # Check whether --enable-notebook or --disable-notebook was given. | |
7406 | if test "${enable_notebook+set}" = set; then | |
7407 | enableval="$enable_notebook" | |
e6cc62c6 | 7408 | |
10f2d63a VZ |
7409 | if test "$enableval" = yes; then |
7410 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
7411 | else | |
7412 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
7413 | fi | |
e6cc62c6 | 7414 | |
10f2d63a | 7415 | else |
e6cc62c6 | 7416 | |
10f2d63a VZ |
7417 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
7418 | if test "x$LINE" != x ; then | |
7419 | eval "DEFAULT_$LINE" | |
7420 | else | |
7421 | no_cache=1 | |
7422 | fi | |
7423 | ||
7424 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
10f2d63a | 7425 | |
e6cc62c6 | 7426 | fi; |
10f2d63a VZ |
7427 | |
7428 | eval "$ac_cv_use_notebook" | |
7429 | if test "$no_cache" != 1; then | |
7430 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
7431 | fi | |
7432 | ||
7433 | if test "$wxUSE_NOTEBOOK" = yes; then | |
e6cc62c6 VS |
7434 | echo "$as_me:$LINENO: result: yes" >&5 |
7435 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7436 | else |
e6cc62c6 VS |
7437 | echo "$as_me:$LINENO: result: no" >&5 |
7438 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7439 | fi |
e6cc62c6 | 7440 | |
10f2d63a | 7441 | |
5005acfe | 7442 | enablestring= |
e6cc62c6 VS |
7443 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5 |
7444 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6 | |
10f2d63a VZ |
7445 | no_cache=0 |
7446 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
7447 | if test "${enable_radiobox+set}" = set; then | |
7448 | enableval="$enable_radiobox" | |
e6cc62c6 | 7449 | |
10f2d63a VZ |
7450 | if test "$enableval" = yes; then |
7451 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
7452 | else | |
7453 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
7454 | fi | |
e6cc62c6 | 7455 | |
10f2d63a | 7456 | else |
e6cc62c6 | 7457 | |
10f2d63a VZ |
7458 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
7459 | if test "x$LINE" != x ; then | |
7460 | eval "DEFAULT_$LINE" | |
7461 | else | |
7462 | no_cache=1 | |
7463 | fi | |
7464 | ||
7465 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
10f2d63a | 7466 | |
e6cc62c6 | 7467 | fi; |
10f2d63a VZ |
7468 | |
7469 | eval "$ac_cv_use_radiobox" | |
7470 | if test "$no_cache" != 1; then | |
7471 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
7472 | fi | |
7473 | ||
7474 | if test "$wxUSE_RADIOBOX" = yes; then | |
e6cc62c6 VS |
7475 | echo "$as_me:$LINENO: result: yes" >&5 |
7476 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7477 | else |
e6cc62c6 VS |
7478 | echo "$as_me:$LINENO: result: no" >&5 |
7479 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7480 | fi |
e6cc62c6 | 7481 | |
10f2d63a | 7482 | |
5005acfe | 7483 | enablestring= |
e6cc62c6 VS |
7484 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5 |
7485 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6 | |
10f2d63a VZ |
7486 | no_cache=0 |
7487 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
7488 | if test "${enable_radiobtn+set}" = set; then | |
7489 | enableval="$enable_radiobtn" | |
e6cc62c6 | 7490 | |
10f2d63a VZ |
7491 | if test "$enableval" = yes; then |
7492 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
7493 | else | |
7494 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
7495 | fi | |
e6cc62c6 | 7496 | |
10f2d63a | 7497 | else |
e6cc62c6 | 7498 | |
10f2d63a VZ |
7499 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
7500 | if test "x$LINE" != x ; then | |
7501 | eval "DEFAULT_$LINE" | |
7502 | else | |
7503 | no_cache=1 | |
7504 | fi | |
7505 | ||
7506 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
10f2d63a | 7507 | |
e6cc62c6 | 7508 | fi; |
10f2d63a VZ |
7509 | |
7510 | eval "$ac_cv_use_radiobtn" | |
7511 | if test "$no_cache" != 1; then | |
7512 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
7513 | fi | |
7514 | ||
7515 | if test "$wxUSE_RADIOBTN" = yes; then | |
e6cc62c6 VS |
7516 | echo "$as_me:$LINENO: result: yes" >&5 |
7517 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7518 | else |
e6cc62c6 VS |
7519 | echo "$as_me:$LINENO: result: no" >&5 |
7520 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7521 | fi |
e6cc62c6 | 7522 | |
10f2d63a | 7523 | |
5005acfe | 7524 | enablestring= |
e6cc62c6 VS |
7525 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5 |
7526 | echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6 | |
10f2d63a VZ |
7527 | no_cache=0 |
7528 | # Check whether --enable-sash or --disable-sash was given. | |
7529 | if test "${enable_sash+set}" = set; then | |
7530 | enableval="$enable_sash" | |
e6cc62c6 | 7531 | |
10f2d63a VZ |
7532 | if test "$enableval" = yes; then |
7533 | ac_cv_use_sash='wxUSE_SASH=yes' | |
7534 | else | |
7535 | ac_cv_use_sash='wxUSE_SASH=no' | |
7536 | fi | |
e6cc62c6 | 7537 | |
10f2d63a | 7538 | else |
e6cc62c6 | 7539 | |
10f2d63a VZ |
7540 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
7541 | if test "x$LINE" != x ; then | |
7542 | eval "DEFAULT_$LINE" | |
7543 | else | |
7544 | no_cache=1 | |
7545 | fi | |
7546 | ||
7547 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
10f2d63a | 7548 | |
e6cc62c6 | 7549 | fi; |
10f2d63a VZ |
7550 | |
7551 | eval "$ac_cv_use_sash" | |
7552 | if test "$no_cache" != 1; then | |
7553 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
7554 | fi | |
7555 | ||
7556 | if test "$wxUSE_SASH" = yes; then | |
e6cc62c6 VS |
7557 | echo "$as_me:$LINENO: result: yes" >&5 |
7558 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7559 | else |
e6cc62c6 VS |
7560 | echo "$as_me:$LINENO: result: no" >&5 |
7561 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7562 | fi |
e6cc62c6 | 7563 | |
10f2d63a | 7564 | |
5005acfe | 7565 | enablestring= |
e6cc62c6 VS |
7566 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5 |
7567 | echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6 | |
10f2d63a VZ |
7568 | no_cache=0 |
7569 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
7570 | if test "${enable_scrollbar+set}" = set; then | |
7571 | enableval="$enable_scrollbar" | |
e6cc62c6 | 7572 | |
10f2d63a VZ |
7573 | if test "$enableval" = yes; then |
7574 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
7575 | else | |
7576 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
7577 | fi | |
e6cc62c6 | 7578 | |
10f2d63a | 7579 | else |
e6cc62c6 | 7580 | |
10f2d63a VZ |
7581 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
7582 | if test "x$LINE" != x ; then | |
7583 | eval "DEFAULT_$LINE" | |
7584 | else | |
7585 | no_cache=1 | |
7586 | fi | |
7587 | ||
7588 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
10f2d63a | 7589 | |
e6cc62c6 | 7590 | fi; |
10f2d63a VZ |
7591 | |
7592 | eval "$ac_cv_use_scrollbar" | |
7593 | if test "$no_cache" != 1; then | |
7594 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
7595 | fi | |
7596 | ||
7597 | if test "$wxUSE_SCROLLBAR" = yes; then | |
e6cc62c6 VS |
7598 | echo "$as_me:$LINENO: result: yes" >&5 |
7599 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7600 | else |
e6cc62c6 VS |
7601 | echo "$as_me:$LINENO: result: no" >&5 |
7602 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7603 | fi |
e6cc62c6 | 7604 | |
10f2d63a | 7605 | |
5005acfe | 7606 | enablestring= |
e6cc62c6 VS |
7607 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5 |
7608 | echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6 | |
10f2d63a VZ |
7609 | no_cache=0 |
7610 | # Check whether --enable-slider or --disable-slider was given. | |
7611 | if test "${enable_slider+set}" = set; then | |
7612 | enableval="$enable_slider" | |
e6cc62c6 | 7613 | |
10f2d63a VZ |
7614 | if test "$enableval" = yes; then |
7615 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
7616 | else | |
7617 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
7618 | fi | |
e6cc62c6 | 7619 | |
10f2d63a | 7620 | else |
e6cc62c6 | 7621 | |
10f2d63a VZ |
7622 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
7623 | if test "x$LINE" != x ; then | |
7624 | eval "DEFAULT_$LINE" | |
7625 | else | |
7626 | no_cache=1 | |
7627 | fi | |
7628 | ||
7629 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
10f2d63a | 7630 | |
e6cc62c6 | 7631 | fi; |
10f2d63a VZ |
7632 | |
7633 | eval "$ac_cv_use_slider" | |
7634 | if test "$no_cache" != 1; then | |
7635 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
7636 | fi | |
7637 | ||
7638 | if test "$wxUSE_SLIDER" = yes; then | |
e6cc62c6 VS |
7639 | echo "$as_me:$LINENO: result: yes" >&5 |
7640 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7641 | else |
e6cc62c6 VS |
7642 | echo "$as_me:$LINENO: result: no" >&5 |
7643 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7644 | fi |
e6cc62c6 | 7645 | |
10f2d63a | 7646 | |
5005acfe | 7647 | enablestring= |
e6cc62c6 VS |
7648 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5 |
7649 | echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6 | |
10f2d63a VZ |
7650 | no_cache=0 |
7651 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
7652 | if test "${enable_spinbtn+set}" = set; then | |
7653 | enableval="$enable_spinbtn" | |
e6cc62c6 | 7654 | |
10f2d63a VZ |
7655 | if test "$enableval" = yes; then |
7656 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
7657 | else | |
7658 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
7659 | fi | |
e6cc62c6 | 7660 | |
10f2d63a | 7661 | else |
e6cc62c6 | 7662 | |
10f2d63a VZ |
7663 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
7664 | if test "x$LINE" != x ; then | |
7665 | eval "DEFAULT_$LINE" | |
7666 | else | |
7667 | no_cache=1 | |
7668 | fi | |
7669 | ||
7670 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
10f2d63a | 7671 | |
e6cc62c6 | 7672 | fi; |
10f2d63a VZ |
7673 | |
7674 | eval "$ac_cv_use_spinbtn" | |
7675 | if test "$no_cache" != 1; then | |
7676 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
7677 | fi | |
7678 | ||
7679 | if test "$wxUSE_SPINBTN" = yes; then | |
e6cc62c6 VS |
7680 | echo "$as_me:$LINENO: result: yes" >&5 |
7681 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7682 | else |
e6cc62c6 VS |
7683 | echo "$as_me:$LINENO: result: no" >&5 |
7684 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7685 | fi |
e6cc62c6 | 7686 | |
10f2d63a | 7687 | |
5005acfe | 7688 | enablestring= |
e6cc62c6 VS |
7689 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5 |
7690 | echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6 | |
56cfaa52 RR |
7691 | no_cache=0 |
7692 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
7693 | if test "${enable_spinctrl+set}" = set; then | |
7694 | enableval="$enable_spinctrl" | |
e6cc62c6 | 7695 | |
56cfaa52 RR |
7696 | if test "$enableval" = yes; then |
7697 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
7698 | else | |
7699 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
7700 | fi | |
e6cc62c6 | 7701 | |
56cfaa52 | 7702 | else |
e6cc62c6 | 7703 | |
56cfaa52 RR |
7704 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
7705 | if test "x$LINE" != x ; then | |
7706 | eval "DEFAULT_$LINE" | |
7707 | else | |
7708 | no_cache=1 | |
7709 | fi | |
7710 | ||
7711 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
56cfaa52 | 7712 | |
e6cc62c6 | 7713 | fi; |
56cfaa52 RR |
7714 | |
7715 | eval "$ac_cv_use_spinctrl" | |
7716 | if test "$no_cache" != 1; then | |
7717 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
7718 | fi | |
7719 | ||
7720 | if test "$wxUSE_SPINCTRL" = yes; then | |
e6cc62c6 VS |
7721 | echo "$as_me:$LINENO: result: yes" >&5 |
7722 | echo "${ECHO_T}yes" >&6 | |
56cfaa52 | 7723 | else |
e6cc62c6 VS |
7724 | echo "$as_me:$LINENO: result: no" >&5 |
7725 | echo "${ECHO_T}no" >&6 | |
56cfaa52 | 7726 | fi |
e6cc62c6 | 7727 | |
56cfaa52 | 7728 | |
5005acfe | 7729 | enablestring= |
e6cc62c6 VS |
7730 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5 |
7731 | echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6 | |
10f2d63a VZ |
7732 | no_cache=0 |
7733 | # Check whether --enable-splitter or --disable-splitter was given. | |
7734 | if test "${enable_splitter+set}" = set; then | |
7735 | enableval="$enable_splitter" | |
e6cc62c6 | 7736 | |
10f2d63a VZ |
7737 | if test "$enableval" = yes; then |
7738 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
7739 | else | |
7740 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
7741 | fi | |
e6cc62c6 | 7742 | |
10f2d63a | 7743 | else |
e6cc62c6 | 7744 | |
10f2d63a VZ |
7745 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
7746 | if test "x$LINE" != x ; then | |
7747 | eval "DEFAULT_$LINE" | |
7748 | else | |
7749 | no_cache=1 | |
7750 | fi | |
7751 | ||
7752 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
10f2d63a | 7753 | |
e6cc62c6 | 7754 | fi; |
10f2d63a VZ |
7755 | |
7756 | eval "$ac_cv_use_splitter" | |
7757 | if test "$no_cache" != 1; then | |
7758 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
7759 | fi | |
7760 | ||
7761 | if test "$wxUSE_SPLITTER" = yes; then | |
e6cc62c6 VS |
7762 | echo "$as_me:$LINENO: result: yes" >&5 |
7763 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7764 | else |
e6cc62c6 VS |
7765 | echo "$as_me:$LINENO: result: no" >&5 |
7766 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7767 | fi |
e6cc62c6 | 7768 | |
10f2d63a | 7769 | |
5005acfe | 7770 | enablestring= |
e6cc62c6 VS |
7771 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5 |
7772 | echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6 | |
10f2d63a VZ |
7773 | no_cache=0 |
7774 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
7775 | if test "${enable_statbmp+set}" = set; then | |
7776 | enableval="$enable_statbmp" | |
e6cc62c6 | 7777 | |
10f2d63a VZ |
7778 | if test "$enableval" = yes; then |
7779 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
7780 | else | |
7781 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
7782 | fi | |
e6cc62c6 | 7783 | |
10f2d63a | 7784 | else |
e6cc62c6 | 7785 | |
10f2d63a VZ |
7786 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
7787 | if test "x$LINE" != x ; then | |
7788 | eval "DEFAULT_$LINE" | |
7789 | else | |
7790 | no_cache=1 | |
7791 | fi | |
7792 | ||
7793 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
10f2d63a | 7794 | |
e6cc62c6 | 7795 | fi; |
10f2d63a VZ |
7796 | |
7797 | eval "$ac_cv_use_statbmp" | |
7798 | if test "$no_cache" != 1; then | |
7799 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
7800 | fi | |
7801 | ||
7802 | if test "$wxUSE_STATBMP" = yes; then | |
e6cc62c6 VS |
7803 | echo "$as_me:$LINENO: result: yes" >&5 |
7804 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7805 | else |
e6cc62c6 VS |
7806 | echo "$as_me:$LINENO: result: no" >&5 |
7807 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7808 | fi |
e6cc62c6 | 7809 | |
10f2d63a | 7810 | |
5005acfe | 7811 | enablestring= |
e6cc62c6 VS |
7812 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5 |
7813 | echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6 | |
10f2d63a VZ |
7814 | no_cache=0 |
7815 | # Check whether --enable-statbox or --disable-statbox was given. | |
7816 | if test "${enable_statbox+set}" = set; then | |
7817 | enableval="$enable_statbox" | |
e6cc62c6 | 7818 | |
10f2d63a VZ |
7819 | if test "$enableval" = yes; then |
7820 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
7821 | else | |
7822 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
7823 | fi | |
e6cc62c6 | 7824 | |
10f2d63a | 7825 | else |
e6cc62c6 | 7826 | |
10f2d63a VZ |
7827 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
7828 | if test "x$LINE" != x ; then | |
7829 | eval "DEFAULT_$LINE" | |
7830 | else | |
7831 | no_cache=1 | |
7832 | fi | |
7833 | ||
7834 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
10f2d63a | 7835 | |
e6cc62c6 | 7836 | fi; |
10f2d63a VZ |
7837 | |
7838 | eval "$ac_cv_use_statbox" | |
7839 | if test "$no_cache" != 1; then | |
7840 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
7841 | fi | |
7842 | ||
7843 | if test "$wxUSE_STATBOX" = yes; then | |
e6cc62c6 VS |
7844 | echo "$as_me:$LINENO: result: yes" >&5 |
7845 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7846 | else |
e6cc62c6 VS |
7847 | echo "$as_me:$LINENO: result: no" >&5 |
7848 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7849 | fi |
e6cc62c6 | 7850 | |
10f2d63a | 7851 | |
5005acfe | 7852 | enablestring= |
e6cc62c6 VS |
7853 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5 |
7854 | echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6 | |
10f2d63a VZ |
7855 | no_cache=0 |
7856 | # Check whether --enable-statline or --disable-statline was given. | |
7857 | if test "${enable_statline+set}" = set; then | |
7858 | enableval="$enable_statline" | |
e6cc62c6 | 7859 | |
10f2d63a VZ |
7860 | if test "$enableval" = yes; then |
7861 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
7862 | else | |
7863 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
7864 | fi | |
e6cc62c6 | 7865 | |
10f2d63a | 7866 | else |
e6cc62c6 | 7867 | |
10f2d63a VZ |
7868 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
7869 | if test "x$LINE" != x ; then | |
7870 | eval "DEFAULT_$LINE" | |
7871 | else | |
7872 | no_cache=1 | |
7873 | fi | |
7874 | ||
7875 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
10f2d63a | 7876 | |
e6cc62c6 | 7877 | fi; |
10f2d63a VZ |
7878 | |
7879 | eval "$ac_cv_use_statline" | |
7880 | if test "$no_cache" != 1; then | |
7881 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
7882 | fi | |
7883 | ||
7884 | if test "$wxUSE_STATLINE" = yes; then | |
e6cc62c6 VS |
7885 | echo "$as_me:$LINENO: result: yes" >&5 |
7886 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7887 | else |
e6cc62c6 VS |
7888 | echo "$as_me:$LINENO: result: no" >&5 |
7889 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7890 | fi |
e6cc62c6 | 7891 | |
10f2d63a | 7892 | |
5005acfe | 7893 | enablestring= |
e6cc62c6 VS |
7894 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5 |
7895 | echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6 | |
1e6feb95 VZ |
7896 | no_cache=0 |
7897 | # Check whether --enable-stattext or --disable-stattext was given. | |
7898 | if test "${enable_stattext+set}" = set; then | |
7899 | enableval="$enable_stattext" | |
e6cc62c6 | 7900 | |
1e6feb95 VZ |
7901 | if test "$enableval" = yes; then |
7902 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
7903 | else | |
7904 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
7905 | fi | |
e6cc62c6 | 7906 | |
1e6feb95 | 7907 | else |
e6cc62c6 | 7908 | |
1e6feb95 VZ |
7909 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` |
7910 | if test "x$LINE" != x ; then | |
7911 | eval "DEFAULT_$LINE" | |
7912 | else | |
7913 | no_cache=1 | |
7914 | fi | |
7915 | ||
7916 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
1e6feb95 | 7917 | |
e6cc62c6 | 7918 | fi; |
1e6feb95 VZ |
7919 | |
7920 | eval "$ac_cv_use_stattext" | |
7921 | if test "$no_cache" != 1; then | |
7922 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
7923 | fi | |
7924 | ||
7925 | if test "$wxUSE_STATTEXT" = yes; then | |
e6cc62c6 VS |
7926 | echo "$as_me:$LINENO: result: yes" >&5 |
7927 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 7928 | else |
e6cc62c6 VS |
7929 | echo "$as_me:$LINENO: result: no" >&5 |
7930 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 7931 | fi |
e6cc62c6 | 7932 | |
1e6feb95 | 7933 | |
5005acfe | 7934 | enablestring= |
e6cc62c6 VS |
7935 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5 |
7936 | echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6 | |
10f2d63a VZ |
7937 | no_cache=0 |
7938 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
7939 | if test "${enable_statusbar+set}" = set; then | |
7940 | enableval="$enable_statusbar" | |
e6cc62c6 | 7941 | |
10f2d63a VZ |
7942 | if test "$enableval" = yes; then |
7943 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
7944 | else | |
7945 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
7946 | fi | |
e6cc62c6 | 7947 | |
10f2d63a | 7948 | else |
e6cc62c6 | 7949 | |
10f2d63a VZ |
7950 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
7951 | if test "x$LINE" != x ; then | |
7952 | eval "DEFAULT_$LINE" | |
7953 | else | |
7954 | no_cache=1 | |
7955 | fi | |
7956 | ||
7957 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
10f2d63a | 7958 | |
e6cc62c6 | 7959 | fi; |
10f2d63a VZ |
7960 | |
7961 | eval "$ac_cv_use_statusbar" | |
7962 | if test "$no_cache" != 1; then | |
7963 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
7964 | fi | |
7965 | ||
7966 | if test "$wxUSE_STATUSBAR" = yes; then | |
e6cc62c6 VS |
7967 | echo "$as_me:$LINENO: result: yes" >&5 |
7968 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7969 | else |
e6cc62c6 VS |
7970 | echo "$as_me:$LINENO: result: no" >&5 |
7971 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7972 | fi |
e6cc62c6 | 7973 | |
10f2d63a | 7974 | |
5005acfe | 7975 | enablestring= |
e6cc62c6 VS |
7976 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5 |
7977 | echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6 | |
10f2d63a VZ |
7978 | no_cache=0 |
7979 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
7980 | if test "${enable_tabdialog+set}" = set; then | |
7981 | enableval="$enable_tabdialog" | |
e6cc62c6 | 7982 | |
10f2d63a VZ |
7983 | if test "$enableval" = yes; then |
7984 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
7985 | else | |
7986 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
7987 | fi | |
e6cc62c6 | 7988 | |
10f2d63a | 7989 | else |
e6cc62c6 | 7990 | |
10f2d63a VZ |
7991 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
7992 | if test "x$LINE" != x ; then | |
7993 | eval "DEFAULT_$LINE" | |
7994 | else | |
7995 | no_cache=1 | |
7996 | fi | |
7997 | ||
7998 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
10f2d63a | 7999 | |
e6cc62c6 | 8000 | fi; |
10f2d63a VZ |
8001 | |
8002 | eval "$ac_cv_use_tabdialog" | |
8003 | if test "$no_cache" != 1; then | |
8004 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
8005 | fi | |
8006 | ||
8007 | if test "$wxUSE_TABDIALOG" = yes; then | |
e6cc62c6 VS |
8008 | echo "$as_me:$LINENO: result: yes" >&5 |
8009 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8010 | else |
e6cc62c6 VS |
8011 | echo "$as_me:$LINENO: result: no" >&5 |
8012 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8013 | fi |
e6cc62c6 | 8014 | |
10f2d63a | 8015 | |
5005acfe | 8016 | enablestring= |
e6cc62c6 VS |
8017 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5 |
8018 | echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6 | |
1e6feb95 VZ |
8019 | no_cache=0 |
8020 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
8021 | if test "${enable_textctrl+set}" = set; then | |
8022 | enableval="$enable_textctrl" | |
e6cc62c6 | 8023 | |
1e6feb95 VZ |
8024 | if test "$enableval" = yes; then |
8025 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
8026 | else | |
8027 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
8028 | fi | |
e6cc62c6 | 8029 | |
1e6feb95 | 8030 | else |
e6cc62c6 | 8031 | |
1e6feb95 VZ |
8032 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` |
8033 | if test "x$LINE" != x ; then | |
8034 | eval "DEFAULT_$LINE" | |
8035 | else | |
8036 | no_cache=1 | |
8037 | fi | |
8038 | ||
8039 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
1e6feb95 | 8040 | |
e6cc62c6 | 8041 | fi; |
1e6feb95 VZ |
8042 | |
8043 | eval "$ac_cv_use_textctrl" | |
8044 | if test "$no_cache" != 1; then | |
8045 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
8046 | fi | |
8047 | ||
8048 | if test "$wxUSE_TEXTCTRL" = yes; then | |
e6cc62c6 VS |
8049 | echo "$as_me:$LINENO: result: yes" >&5 |
8050 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8051 | else |
e6cc62c6 VS |
8052 | echo "$as_me:$LINENO: result: no" >&5 |
8053 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8054 | fi |
e6cc62c6 | 8055 | |
1e6feb95 | 8056 | |
5005acfe | 8057 | enablestring= |
e6cc62c6 VS |
8058 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5 |
8059 | echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6 | |
1db8dc4a VZ |
8060 | no_cache=0 |
8061 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
8062 | if test "${enable_togglebtn+set}" = set; then | |
8063 | enableval="$enable_togglebtn" | |
e6cc62c6 | 8064 | |
1db8dc4a VZ |
8065 | if test "$enableval" = yes; then |
8066 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
8067 | else | |
8068 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
8069 | fi | |
e6cc62c6 | 8070 | |
1db8dc4a | 8071 | else |
e6cc62c6 | 8072 | |
1db8dc4a VZ |
8073 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
8074 | if test "x$LINE" != x ; then | |
8075 | eval "DEFAULT_$LINE" | |
8076 | else | |
8077 | no_cache=1 | |
8078 | fi | |
8079 | ||
8080 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
1db8dc4a | 8081 | |
e6cc62c6 | 8082 | fi; |
1db8dc4a VZ |
8083 | |
8084 | eval "$ac_cv_use_togglebtn" | |
8085 | if test "$no_cache" != 1; then | |
8086 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
8087 | fi | |
8088 | ||
8089 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
e6cc62c6 VS |
8090 | echo "$as_me:$LINENO: result: yes" >&5 |
8091 | echo "${ECHO_T}yes" >&6 | |
1db8dc4a | 8092 | else |
e6cc62c6 VS |
8093 | echo "$as_me:$LINENO: result: no" >&5 |
8094 | echo "${ECHO_T}no" >&6 | |
1db8dc4a | 8095 | fi |
e6cc62c6 | 8096 | |
1db8dc4a | 8097 | |
5005acfe | 8098 | enablestring= |
e6cc62c6 VS |
8099 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5 |
8100 | echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6 | |
10f2d63a VZ |
8101 | no_cache=0 |
8102 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
8103 | if test "${enable_toolbar+set}" = set; then | |
8104 | enableval="$enable_toolbar" | |
e6cc62c6 | 8105 | |
10f2d63a VZ |
8106 | if test "$enableval" = yes; then |
8107 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
8108 | else | |
8109 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
8110 | fi | |
e6cc62c6 | 8111 | |
10f2d63a | 8112 | else |
e6cc62c6 | 8113 | |
10f2d63a VZ |
8114 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
8115 | if test "x$LINE" != x ; then | |
8116 | eval "DEFAULT_$LINE" | |
8117 | else | |
8118 | no_cache=1 | |
8119 | fi | |
8120 | ||
8121 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
10f2d63a | 8122 | |
e6cc62c6 | 8123 | fi; |
10f2d63a VZ |
8124 | |
8125 | eval "$ac_cv_use_toolbar" | |
8126 | if test "$no_cache" != 1; then | |
8127 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
8128 | fi | |
8129 | ||
8130 | if test "$wxUSE_TOOLBAR" = yes; then | |
e6cc62c6 VS |
8131 | echo "$as_me:$LINENO: result: yes" >&5 |
8132 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8133 | else |
e6cc62c6 VS |
8134 | echo "$as_me:$LINENO: result: no" >&5 |
8135 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8136 | fi |
e6cc62c6 | 8137 | |
10f2d63a | 8138 | |
5005acfe | 8139 | enablestring= |
e6cc62c6 VS |
8140 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5 |
8141 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6 | |
360d6699 VZ |
8142 | no_cache=0 |
8143 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
8144 | if test "${enable_tbarnative+set}" = set; then | |
8145 | enableval="$enable_tbarnative" | |
e6cc62c6 | 8146 | |
360d6699 VZ |
8147 | if test "$enableval" = yes; then |
8148 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
8149 | else | |
8150 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
8151 | fi | |
e6cc62c6 | 8152 | |
360d6699 | 8153 | else |
e6cc62c6 | 8154 | |
360d6699 VZ |
8155 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
8156 | if test "x$LINE" != x ; then | |
8157 | eval "DEFAULT_$LINE" | |
8158 | else | |
8159 | no_cache=1 | |
8160 | fi | |
8161 | ||
8162 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
360d6699 | 8163 | |
e6cc62c6 | 8164 | fi; |
360d6699 VZ |
8165 | |
8166 | eval "$ac_cv_use_tbarnative" | |
8167 | if test "$no_cache" != 1; then | |
8168 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
8169 | fi | |
8170 | ||
8171 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
e6cc62c6 VS |
8172 | echo "$as_me:$LINENO: result: yes" >&5 |
8173 | echo "${ECHO_T}yes" >&6 | |
360d6699 | 8174 | else |
e6cc62c6 VS |
8175 | echo "$as_me:$LINENO: result: no" >&5 |
8176 | echo "${ECHO_T}no" >&6 | |
360d6699 | 8177 | fi |
e6cc62c6 | 8178 | |
360d6699 | 8179 | |
5005acfe | 8180 | enablestring= |
e6cc62c6 VS |
8181 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5 |
8182 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6 | |
360d6699 VZ |
8183 | no_cache=0 |
8184 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
8185 | if test "${enable_tbarsmpl+set}" = set; then | |
8186 | enableval="$enable_tbarsmpl" | |
e6cc62c6 | 8187 | |
360d6699 VZ |
8188 | if test "$enableval" = yes; then |
8189 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
8190 | else | |
8191 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
8192 | fi | |
e6cc62c6 | 8193 | |
360d6699 | 8194 | else |
e6cc62c6 | 8195 | |
360d6699 VZ |
8196 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
8197 | if test "x$LINE" != x ; then | |
8198 | eval "DEFAULT_$LINE" | |
8199 | else | |
8200 | no_cache=1 | |
8201 | fi | |
8202 | ||
8203 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
360d6699 | 8204 | |
e6cc62c6 | 8205 | fi; |
360d6699 VZ |
8206 | |
8207 | eval "$ac_cv_use_tbarsmpl" | |
8208 | if test "$no_cache" != 1; then | |
8209 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
8210 | fi | |
8211 | ||
8212 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
e6cc62c6 VS |
8213 | echo "$as_me:$LINENO: result: yes" >&5 |
8214 | echo "${ECHO_T}yes" >&6 | |
360d6699 | 8215 | else |
e6cc62c6 VS |
8216 | echo "$as_me:$LINENO: result: no" >&5 |
8217 | echo "${ECHO_T}no" >&6 | |
360d6699 | 8218 | fi |
e6cc62c6 | 8219 | |
360d6699 | 8220 | |
5005acfe | 8221 | enablestring= |
e6cc62c6 VS |
8222 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5 |
8223 | echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6 | |
10f2d63a VZ |
8224 | no_cache=0 |
8225 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
8226 | if test "${enable_treectrl+set}" = set; then | |
8227 | enableval="$enable_treectrl" | |
e6cc62c6 | 8228 | |
10f2d63a VZ |
8229 | if test "$enableval" = yes; then |
8230 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
8231 | else | |
8232 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
8233 | fi | |
e6cc62c6 | 8234 | |
10f2d63a | 8235 | else |
e6cc62c6 | 8236 | |
10f2d63a VZ |
8237 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
8238 | if test "x$LINE" != x ; then | |
8239 | eval "DEFAULT_$LINE" | |
8240 | else | |
8241 | no_cache=1 | |
8242 | fi | |
8243 | ||
8244 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
10f2d63a | 8245 | |
e6cc62c6 | 8246 | fi; |
10f2d63a | 8247 | |
1e6feb95 VZ |
8248 | eval "$ac_cv_use_treectrl" |
8249 | if test "$no_cache" != 1; then | |
8250 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
8251 | fi | |
8252 | ||
8253 | if test "$wxUSE_TREECTRL" = yes; then | |
e6cc62c6 VS |
8254 | echo "$as_me:$LINENO: result: yes" >&5 |
8255 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8256 | else |
e6cc62c6 VS |
8257 | echo "$as_me:$LINENO: result: no" >&5 |
8258 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8259 | fi |
e6cc62c6 | 8260 | |
1e6feb95 | 8261 | |
5005acfe | 8262 | enablestring= |
e6cc62c6 VS |
8263 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5 |
8264 | echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6 | |
9926e4a4 VZ |
8265 | no_cache=0 |
8266 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
8267 | if test "${enable_tipwindow+set}" = set; then | |
8268 | enableval="$enable_tipwindow" | |
e6cc62c6 | 8269 | |
9926e4a4 VZ |
8270 | if test "$enableval" = yes; then |
8271 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
8272 | else | |
8273 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
8274 | fi | |
e6cc62c6 | 8275 | |
9926e4a4 | 8276 | else |
e6cc62c6 | 8277 | |
9926e4a4 VZ |
8278 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` |
8279 | if test "x$LINE" != x ; then | |
8280 | eval "DEFAULT_$LINE" | |
8281 | else | |
8282 | no_cache=1 | |
8283 | fi | |
8284 | ||
8285 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
9926e4a4 | 8286 | |
e6cc62c6 | 8287 | fi; |
9926e4a4 VZ |
8288 | |
8289 | eval "$ac_cv_use_tipwindow" | |
8290 | if test "$no_cache" != 1; then | |
8291 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
8292 | fi | |
8293 | ||
8294 | if test "$wxUSE_TIPWINDOW" = yes; then | |
e6cc62c6 VS |
8295 | echo "$as_me:$LINENO: result: yes" >&5 |
8296 | echo "${ECHO_T}yes" >&6 | |
9926e4a4 | 8297 | else |
e6cc62c6 VS |
8298 | echo "$as_me:$LINENO: result: no" >&5 |
8299 | echo "${ECHO_T}no" >&6 | |
9926e4a4 | 8300 | fi |
e6cc62c6 | 8301 | |
9926e4a4 | 8302 | |
5005acfe | 8303 | enablestring= |
e6cc62c6 VS |
8304 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5 |
8305 | echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6 | |
9f41d601 RR |
8306 | no_cache=0 |
8307 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
8308 | if test "${enable_popupwin+set}" = set; then | |
8309 | enableval="$enable_popupwin" | |
e6cc62c6 | 8310 | |
9f41d601 RR |
8311 | if test "$enableval" = yes; then |
8312 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
8313 | else | |
8314 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
8315 | fi | |
e6cc62c6 | 8316 | |
9f41d601 | 8317 | else |
e6cc62c6 | 8318 | |
9f41d601 RR |
8319 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` |
8320 | if test "x$LINE" != x ; then | |
8321 | eval "DEFAULT_$LINE" | |
8322 | else | |
8323 | no_cache=1 | |
8324 | fi | |
8325 | ||
8326 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
9f41d601 | 8327 | |
e6cc62c6 | 8328 | fi; |
9f41d601 RR |
8329 | |
8330 | eval "$ac_cv_use_popupwin" | |
8331 | if test "$no_cache" != 1; then | |
8332 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
8333 | fi | |
8334 | ||
8335 | if test "$wxUSE_POPUPWIN" = yes; then | |
e6cc62c6 VS |
8336 | echo "$as_me:$LINENO: result: yes" >&5 |
8337 | echo "${ECHO_T}yes" >&6 | |
9f41d601 | 8338 | else |
e6cc62c6 VS |
8339 | echo "$as_me:$LINENO: result: no" >&5 |
8340 | echo "${ECHO_T}no" >&6 | |
9f41d601 | 8341 | fi |
e6cc62c6 | 8342 | |
52127426 | 8343 | |
8284b0c5 MB |
8344 | |
8345 | ||
5005acfe | 8346 | enablestring= |
e6cc62c6 VS |
8347 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5 |
8348 | echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8349 | no_cache=0 |
8350 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
8351 | if test "${enable_commondlg+set}" = set; then | |
8352 | enableval="$enable_commondlg" | |
e6cc62c6 | 8353 | |
1e6feb95 VZ |
8354 | if test "$enableval" = yes; then |
8355 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
8356 | else | |
8357 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
8358 | fi | |
e6cc62c6 | 8359 | |
1e6feb95 | 8360 | else |
e6cc62c6 | 8361 | |
1e6feb95 VZ |
8362 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` |
8363 | if test "x$LINE" != x ; then | |
8364 | eval "DEFAULT_$LINE" | |
8365 | else | |
8366 | no_cache=1 | |
8367 | fi | |
8368 | ||
8369 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
1e6feb95 | 8370 | |
e6cc62c6 | 8371 | fi; |
1e6feb95 VZ |
8372 | |
8373 | eval "$ac_cv_use_commondlg" | |
8374 | if test "$no_cache" != 1; then | |
8375 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
8376 | fi | |
8377 | ||
8378 | if test "$wxUSE_COMMONDLGS" = yes; then | |
e6cc62c6 VS |
8379 | echo "$as_me:$LINENO: result: yes" >&5 |
8380 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8381 | else |
e6cc62c6 VS |
8382 | echo "$as_me:$LINENO: result: no" >&5 |
8383 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8384 | fi |
e6cc62c6 | 8385 | |
1e6feb95 | 8386 | |
5005acfe | 8387 | enablestring= |
e6cc62c6 VS |
8388 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5 |
8389 | echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8390 | no_cache=0 |
8391 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
8392 | if test "${enable_choicedlg+set}" = set; then | |
8393 | enableval="$enable_choicedlg" | |
e6cc62c6 | 8394 | |
1e6feb95 VZ |
8395 | if test "$enableval" = yes; then |
8396 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
8397 | else | |
8398 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
8399 | fi | |
e6cc62c6 | 8400 | |
1e6feb95 | 8401 | else |
e6cc62c6 | 8402 | |
1e6feb95 VZ |
8403 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` |
8404 | if test "x$LINE" != x ; then | |
8405 | eval "DEFAULT_$LINE" | |
8406 | else | |
8407 | no_cache=1 | |
8408 | fi | |
8409 | ||
8410 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
1e6feb95 | 8411 | |
e6cc62c6 | 8412 | fi; |
1e6feb95 VZ |
8413 | |
8414 | eval "$ac_cv_use_choicedlg" | |
8415 | if test "$no_cache" != 1; then | |
8416 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
8417 | fi | |
8418 | ||
8419 | if test "$wxUSE_CHOICEDLG" = yes; then | |
e6cc62c6 VS |
8420 | echo "$as_me:$LINENO: result: yes" >&5 |
8421 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8422 | else |
e6cc62c6 VS |
8423 | echo "$as_me:$LINENO: result: no" >&5 |
8424 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8425 | fi |
e6cc62c6 | 8426 | |
1e6feb95 | 8427 | |
5005acfe | 8428 | enablestring= |
e6cc62c6 VS |
8429 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5 |
8430 | echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8431 | no_cache=0 |
8432 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
8433 | if test "${enable_coldlg+set}" = set; then | |
8434 | enableval="$enable_coldlg" | |
e6cc62c6 | 8435 | |
1e6feb95 VZ |
8436 | if test "$enableval" = yes; then |
8437 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
8438 | else | |
8439 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
8440 | fi | |
e6cc62c6 | 8441 | |
1e6feb95 | 8442 | else |
e6cc62c6 | 8443 | |
1e6feb95 VZ |
8444 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` |
8445 | if test "x$LINE" != x ; then | |
8446 | eval "DEFAULT_$LINE" | |
8447 | else | |
8448 | no_cache=1 | |
8449 | fi | |
8450 | ||
8451 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
1e6feb95 | 8452 | |
e6cc62c6 | 8453 | fi; |
1e6feb95 VZ |
8454 | |
8455 | eval "$ac_cv_use_coldlg" | |
8456 | if test "$no_cache" != 1; then | |
8457 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
8458 | fi | |
8459 | ||
8460 | if test "$wxUSE_COLOURDLG" = yes; then | |
e6cc62c6 VS |
8461 | echo "$as_me:$LINENO: result: yes" >&5 |
8462 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8463 | else |
e6cc62c6 VS |
8464 | echo "$as_me:$LINENO: result: no" >&5 |
8465 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8466 | fi |
e6cc62c6 | 8467 | |
1e6feb95 | 8468 | |
5005acfe | 8469 | enablestring= |
e6cc62c6 VS |
8470 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5 |
8471 | echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8472 | no_cache=0 |
8473 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
8474 | if test "${enable_filedlg+set}" = set; then | |
8475 | enableval="$enable_filedlg" | |
e6cc62c6 | 8476 | |
1e6feb95 VZ |
8477 | if test "$enableval" = yes; then |
8478 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
8479 | else | |
8480 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
8481 | fi | |
e6cc62c6 | 8482 | |
1e6feb95 | 8483 | else |
e6cc62c6 | 8484 | |
1e6feb95 VZ |
8485 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` |
8486 | if test "x$LINE" != x ; then | |
8487 | eval "DEFAULT_$LINE" | |
8488 | else | |
8489 | no_cache=1 | |
8490 | fi | |
8491 | ||
8492 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
1e6feb95 | 8493 | |
e6cc62c6 | 8494 | fi; |
1e6feb95 VZ |
8495 | |
8496 | eval "$ac_cv_use_filedlg" | |
8497 | if test "$no_cache" != 1; then | |
8498 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
8499 | fi | |
8500 | ||
8501 | if test "$wxUSE_FILEDLG" = yes; then | |
e6cc62c6 VS |
8502 | echo "$as_me:$LINENO: result: yes" >&5 |
8503 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8504 | else |
e6cc62c6 VS |
8505 | echo "$as_me:$LINENO: result: no" >&5 |
8506 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8507 | fi |
e6cc62c6 | 8508 | |
1e6feb95 | 8509 | |
5005acfe | 8510 | enablestring= |
e6cc62c6 VS |
8511 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5 |
8512 | echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6 | |
8db37e06 | 8513 | no_cache=0 |
69d27ff7 MB |
8514 | # Check whether --enable-finddlg or --disable-finddlg was given. |
8515 | if test "${enable_finddlg+set}" = set; then | |
8516 | enableval="$enable_finddlg" | |
e6cc62c6 | 8517 | |
8db37e06 | 8518 | if test "$enableval" = yes; then |
69d27ff7 | 8519 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' |
8db37e06 | 8520 | else |
69d27ff7 | 8521 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' |
8db37e06 | 8522 | fi |
e6cc62c6 | 8523 | |
8db37e06 | 8524 | else |
e6cc62c6 | 8525 | |
8db37e06 VZ |
8526 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` |
8527 | if test "x$LINE" != x ; then | |
8528 | eval "DEFAULT_$LINE" | |
8529 | else | |
8530 | no_cache=1 | |
8531 | fi | |
8532 | ||
69d27ff7 | 8533 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG |
8db37e06 | 8534 | |
e6cc62c6 | 8535 | fi; |
8db37e06 | 8536 | |
69d27ff7 | 8537 | eval "$ac_cv_use_finddlg" |
8db37e06 | 8538 | if test "$no_cache" != 1; then |
69d27ff7 | 8539 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp |
8db37e06 VZ |
8540 | fi |
8541 | ||
8542 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
e6cc62c6 VS |
8543 | echo "$as_me:$LINENO: result: yes" >&5 |
8544 | echo "${ECHO_T}yes" >&6 | |
8db37e06 | 8545 | else |
e6cc62c6 VS |
8546 | echo "$as_me:$LINENO: result: no" >&5 |
8547 | echo "${ECHO_T}no" >&6 | |
8db37e06 | 8548 | fi |
e6cc62c6 | 8549 | |
8db37e06 | 8550 | |
5005acfe | 8551 | enablestring= |
e6cc62c6 VS |
8552 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5 |
8553 | echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8554 | no_cache=0 |
8555 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
8556 | if test "${enable_fontdlg+set}" = set; then | |
8557 | enableval="$enable_fontdlg" | |
e6cc62c6 | 8558 | |
1e6feb95 VZ |
8559 | if test "$enableval" = yes; then |
8560 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
8561 | else | |
8562 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
8563 | fi | |
e6cc62c6 | 8564 | |
1e6feb95 | 8565 | else |
e6cc62c6 | 8566 | |
1e6feb95 VZ |
8567 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` |
8568 | if test "x$LINE" != x ; then | |
8569 | eval "DEFAULT_$LINE" | |
8570 | else | |
8571 | no_cache=1 | |
8572 | fi | |
8573 | ||
8574 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
1e6feb95 | 8575 | |
e6cc62c6 | 8576 | fi; |
1e6feb95 VZ |
8577 | |
8578 | eval "$ac_cv_use_fontdlg" | |
8579 | if test "$no_cache" != 1; then | |
8580 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
8581 | fi | |
8582 | ||
8583 | if test "$wxUSE_FONTDLG" = yes; then | |
e6cc62c6 VS |
8584 | echo "$as_me:$LINENO: result: yes" >&5 |
8585 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8586 | else |
e6cc62c6 VS |
8587 | echo "$as_me:$LINENO: result: no" >&5 |
8588 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8589 | fi |
e6cc62c6 | 8590 | |
1e6feb95 | 8591 | |
5005acfe | 8592 | enablestring= |
e6cc62c6 VS |
8593 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5 |
8594 | echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8595 | no_cache=0 |
8596 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
8597 | if test "${enable_dirdlg+set}" = set; then | |
8598 | enableval="$enable_dirdlg" | |
e6cc62c6 | 8599 | |
1e6feb95 VZ |
8600 | if test "$enableval" = yes; then |
8601 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
8602 | else | |
8603 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
8604 | fi | |
e6cc62c6 | 8605 | |
1e6feb95 | 8606 | else |
e6cc62c6 | 8607 | |
1e6feb95 VZ |
8608 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` |
8609 | if test "x$LINE" != x ; then | |
8610 | eval "DEFAULT_$LINE" | |
8611 | else | |
8612 | no_cache=1 | |
8613 | fi | |
8614 | ||
8615 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
1e6feb95 | 8616 | |
e6cc62c6 | 8617 | fi; |
1e6feb95 VZ |
8618 | |
8619 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 8620 | if test "$no_cache" != 1; then |
1e6feb95 | 8621 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
8622 | fi |
8623 | ||
1e6feb95 | 8624 | if test "$wxUSE_DIRDLG" = yes; then |
e6cc62c6 VS |
8625 | echo "$as_me:$LINENO: result: yes" >&5 |
8626 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8627 | else |
e6cc62c6 VS |
8628 | echo "$as_me:$LINENO: result: no" >&5 |
8629 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8630 | fi |
e6cc62c6 | 8631 | |
698dcdb6 | 8632 | |
5005acfe | 8633 | enablestring= |
e6cc62c6 VS |
8634 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5 |
8635 | echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6 | |
10f2d63a | 8636 | no_cache=0 |
1e6feb95 VZ |
8637 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
8638 | if test "${enable_msgdlg+set}" = set; then | |
8639 | enableval="$enable_msgdlg" | |
e6cc62c6 | 8640 | |
10f2d63a | 8641 | if test "$enableval" = yes; then |
1e6feb95 | 8642 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 8643 | else |
1e6feb95 | 8644 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 8645 | fi |
e6cc62c6 | 8646 | |
10f2d63a | 8647 | else |
e6cc62c6 | 8648 | |
1e6feb95 | 8649 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
8650 | if test "x$LINE" != x ; then |
8651 | eval "DEFAULT_$LINE" | |
8652 | else | |
8653 | no_cache=1 | |
8654 | fi | |
8655 | ||
1e6feb95 | 8656 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
10f2d63a | 8657 | |
e6cc62c6 | 8658 | fi; |
10f2d63a | 8659 | |
1e6feb95 | 8660 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 8661 | if test "$no_cache" != 1; then |
1e6feb95 | 8662 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
8663 | fi |
8664 | ||
1e6feb95 | 8665 | if test "$wxUSE_MSGDLG" = yes; then |
e6cc62c6 VS |
8666 | echo "$as_me:$LINENO: result: yes" >&5 |
8667 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8668 | else |
e6cc62c6 VS |
8669 | echo "$as_me:$LINENO: result: no" >&5 |
8670 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8671 | fi |
e6cc62c6 | 8672 | |
10f2d63a | 8673 | |
5005acfe | 8674 | enablestring= |
e6cc62c6 VS |
8675 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5 |
8676 | echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6 | |
10f2d63a | 8677 | no_cache=0 |
1e6feb95 VZ |
8678 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
8679 | if test "${enable_numberdlg+set}" = set; then | |
8680 | enableval="$enable_numberdlg" | |
e6cc62c6 | 8681 | |
10f2d63a | 8682 | if test "$enableval" = yes; then |
1e6feb95 | 8683 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 8684 | else |
1e6feb95 | 8685 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 8686 | fi |
e6cc62c6 | 8687 | |
10f2d63a | 8688 | else |
e6cc62c6 | 8689 | |
1e6feb95 | 8690 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
8691 | if test "x$LINE" != x ; then |
8692 | eval "DEFAULT_$LINE" | |
8693 | else | |
8694 | no_cache=1 | |
8695 | fi | |
8696 | ||
1e6feb95 | 8697 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
10f2d63a | 8698 | |
e6cc62c6 | 8699 | fi; |
10f2d63a | 8700 | |
1e6feb95 | 8701 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 8702 | if test "$no_cache" != 1; then |
1e6feb95 | 8703 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
8704 | fi |
8705 | ||
1e6feb95 | 8706 | if test "$wxUSE_NUMBERDLG" = yes; then |
e6cc62c6 VS |
8707 | echo "$as_me:$LINENO: result: yes" >&5 |
8708 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8709 | else |
e6cc62c6 VS |
8710 | echo "$as_me:$LINENO: result: no" >&5 |
8711 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8712 | fi |
e6cc62c6 | 8713 | |
10f2d63a | 8714 | |
5005acfe | 8715 | enablestring= |
e6cc62c6 VS |
8716 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5 |
8717 | echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6 | |
cbca9943 VZ |
8718 | no_cache=0 |
8719 | # Check whether --enable-splash or --disable-splash was given. | |
8720 | if test "${enable_splash+set}" = set; then | |
8721 | enableval="$enable_splash" | |
e6cc62c6 | 8722 | |
cbca9943 VZ |
8723 | if test "$enableval" = yes; then |
8724 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
8725 | else | |
8726 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
8727 | fi | |
e6cc62c6 | 8728 | |
cbca9943 | 8729 | else |
e6cc62c6 | 8730 | |
cbca9943 VZ |
8731 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` |
8732 | if test "x$LINE" != x ; then | |
8733 | eval "DEFAULT_$LINE" | |
8734 | else | |
8735 | no_cache=1 | |
8736 | fi | |
8737 | ||
8738 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
cbca9943 | 8739 | |
e6cc62c6 | 8740 | fi; |
cbca9943 VZ |
8741 | |
8742 | eval "$ac_cv_use_splash" | |
8743 | if test "$no_cache" != 1; then | |
8744 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
8745 | fi | |
8746 | ||
8747 | if test "$wxUSE_SPLASH" = yes; then | |
e6cc62c6 VS |
8748 | echo "$as_me:$LINENO: result: yes" >&5 |
8749 | echo "${ECHO_T}yes" >&6 | |
cbca9943 | 8750 | else |
e6cc62c6 VS |
8751 | echo "$as_me:$LINENO: result: no" >&5 |
8752 | echo "${ECHO_T}no" >&6 | |
cbca9943 | 8753 | fi |
e6cc62c6 | 8754 | |
cbca9943 | 8755 | |
5005acfe | 8756 | enablestring= |
e6cc62c6 VS |
8757 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5 |
8758 | echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6 | |
10f2d63a VZ |
8759 | no_cache=0 |
8760 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
8761 | if test "${enable_textdlg+set}" = set; then | |
8762 | enableval="$enable_textdlg" | |
e6cc62c6 | 8763 | |
10f2d63a VZ |
8764 | if test "$enableval" = yes; then |
8765 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
8766 | else | |
8767 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
8768 | fi | |
e6cc62c6 | 8769 | |
10f2d63a | 8770 | else |
e6cc62c6 | 8771 | |
10f2d63a VZ |
8772 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
8773 | if test "x$LINE" != x ; then | |
8774 | eval "DEFAULT_$LINE" | |
8775 | else | |
8776 | no_cache=1 | |
8777 | fi | |
8778 | ||
8779 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
10f2d63a | 8780 | |
e6cc62c6 | 8781 | fi; |
10f2d63a VZ |
8782 | |
8783 | eval "$ac_cv_use_textdlg" | |
8784 | if test "$no_cache" != 1; then | |
8785 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
8786 | fi | |
8787 | ||
8788 | if test "$wxUSE_TEXTDLG" = yes; then | |
e6cc62c6 VS |
8789 | echo "$as_me:$LINENO: result: yes" >&5 |
8790 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8791 | else |
e6cc62c6 VS |
8792 | echo "$as_me:$LINENO: result: no" >&5 |
8793 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8794 | fi |
e6cc62c6 | 8795 | |
10f2d63a | 8796 | |
5005acfe | 8797 | enablestring= |
e6cc62c6 VS |
8798 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5 |
8799 | echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6 | |
10f2d63a VZ |
8800 | no_cache=0 |
8801 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
8802 | if test "${enable_tipdlg+set}" = set; then | |
8803 | enableval="$enable_tipdlg" | |
e6cc62c6 | 8804 | |
10f2d63a VZ |
8805 | if test "$enableval" = yes; then |
8806 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
8807 | else | |
8808 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
8809 | fi | |
e6cc62c6 | 8810 | |
10f2d63a | 8811 | else |
e6cc62c6 | 8812 | |
10f2d63a VZ |
8813 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
8814 | if test "x$LINE" != x ; then | |
8815 | eval "DEFAULT_$LINE" | |
8816 | else | |
8817 | no_cache=1 | |
8818 | fi | |
8819 | ||
8820 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
10f2d63a | 8821 | |
e6cc62c6 | 8822 | fi; |
10f2d63a VZ |
8823 | |
8824 | eval "$ac_cv_use_tipdlg" | |
8825 | if test "$no_cache" != 1; then | |
8826 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
8827 | fi | |
8828 | ||
8829 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
e6cc62c6 VS |
8830 | echo "$as_me:$LINENO: result: yes" >&5 |
8831 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8832 | else |
e6cc62c6 VS |
8833 | echo "$as_me:$LINENO: result: no" >&5 |
8834 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8835 | fi |
e6cc62c6 | 8836 | |
10f2d63a | 8837 | |
5005acfe | 8838 | enablestring= |
e6cc62c6 VS |
8839 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5 |
8840 | echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6 | |
10f2d63a VZ |
8841 | no_cache=0 |
8842 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
8843 | if test "${enable_progressdlg+set}" = set; then | |
8844 | enableval="$enable_progressdlg" | |
e6cc62c6 | 8845 | |
10f2d63a VZ |
8846 | if test "$enableval" = yes; then |
8847 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
8848 | else | |
8849 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
8850 | fi | |
e6cc62c6 | 8851 | |
10f2d63a | 8852 | else |
e6cc62c6 | 8853 | |
10f2d63a VZ |
8854 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
8855 | if test "x$LINE" != x ; then | |
8856 | eval "DEFAULT_$LINE" | |
8857 | else | |
8858 | no_cache=1 | |
8859 | fi | |
8860 | ||
8861 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
10f2d63a | 8862 | |
e6cc62c6 | 8863 | fi; |
10f2d63a VZ |
8864 | |
8865 | eval "$ac_cv_use_progressdlg" | |
8866 | if test "$no_cache" != 1; then | |
8867 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
8868 | fi | |
8869 | ||
8870 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
e6cc62c6 VS |
8871 | echo "$as_me:$LINENO: result: yes" >&5 |
8872 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8873 | else |
e6cc62c6 VS |
8874 | echo "$as_me:$LINENO: result: no" >&5 |
8875 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8876 | fi |
e6cc62c6 | 8877 | |
10f2d63a | 8878 | |
5005acfe | 8879 | enablestring= |
e6cc62c6 VS |
8880 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5 |
8881 | echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6 | |
b1f5d087 VZ |
8882 | no_cache=0 |
8883 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
8884 | if test "${enable_wizarddlg+set}" = set; then | |
8885 | enableval="$enable_wizarddlg" | |
e6cc62c6 | 8886 | |
b1f5d087 VZ |
8887 | if test "$enableval" = yes; then |
8888 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
8889 | else | |
8890 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
8891 | fi | |
e6cc62c6 | 8892 | |
b1f5d087 | 8893 | else |
e6cc62c6 | 8894 | |
b1f5d087 VZ |
8895 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` |
8896 | if test "x$LINE" != x ; then | |
8897 | eval "DEFAULT_$LINE" | |
8898 | else | |
8899 | no_cache=1 | |
8900 | fi | |
8901 | ||
8902 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
b1f5d087 | 8903 | |
e6cc62c6 | 8904 | fi; |
b1f5d087 VZ |
8905 | |
8906 | eval "$ac_cv_use_wizarddlg" | |
8907 | if test "$no_cache" != 1; then | |
8908 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
8909 | fi | |
8910 | ||
8911 | if test "$wxUSE_WIZARDDLG" = yes; then | |
e6cc62c6 VS |
8912 | echo "$as_me:$LINENO: result: yes" >&5 |
8913 | echo "${ECHO_T}yes" >&6 | |
b1f5d087 | 8914 | else |
e6cc62c6 VS |
8915 | echo "$as_me:$LINENO: result: no" >&5 |
8916 | echo "${ECHO_T}no" >&6 | |
b1f5d087 | 8917 | fi |
e6cc62c6 | 8918 | |
8284b0c5 MB |
8919 | |
8920 | ||
52127426 | 8921 | |
5005acfe | 8922 | enablestring= |
e6cc62c6 VS |
8923 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5 |
8924 | echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6 | |
1e6feb95 VZ |
8925 | no_cache=0 |
8926 | # Check whether --enable-menus or --disable-menus was given. | |
8927 | if test "${enable_menus+set}" = set; then | |
8928 | enableval="$enable_menus" | |
e6cc62c6 | 8929 | |
1e6feb95 VZ |
8930 | if test "$enableval" = yes; then |
8931 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
8932 | else | |
8933 | ac_cv_use_menus='wxUSE_MENUS=no' | |
8934 | fi | |
e6cc62c6 | 8935 | |
1e6feb95 | 8936 | else |
e6cc62c6 | 8937 | |
1e6feb95 VZ |
8938 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` |
8939 | if test "x$LINE" != x ; then | |
8940 | eval "DEFAULT_$LINE" | |
8941 | else | |
8942 | no_cache=1 | |
8943 | fi | |
8944 | ||
8945 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
1e6feb95 | 8946 | |
e6cc62c6 | 8947 | fi; |
1e6feb95 VZ |
8948 | |
8949 | eval "$ac_cv_use_menus" | |
8950 | if test "$no_cache" != 1; then | |
8951 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
8952 | fi | |
8953 | ||
8954 | if test "$wxUSE_MENUS" = yes; then | |
e6cc62c6 VS |
8955 | echo "$as_me:$LINENO: result: yes" >&5 |
8956 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8957 | else |
e6cc62c6 VS |
8958 | echo "$as_me:$LINENO: result: no" >&5 |
8959 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8960 | fi |
e6cc62c6 | 8961 | |
1e6feb95 | 8962 | |
5005acfe | 8963 | enablestring= |
e6cc62c6 VS |
8964 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5 |
8965 | echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6 | |
10f2d63a VZ |
8966 | no_cache=0 |
8967 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
8968 | if test "${enable_miniframe+set}" = set; then | |
8969 | enableval="$enable_miniframe" | |
e6cc62c6 | 8970 | |
10f2d63a VZ |
8971 | if test "$enableval" = yes; then |
8972 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
8973 | else | |
8974 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
8975 | fi | |
e6cc62c6 | 8976 | |
10f2d63a | 8977 | else |
e6cc62c6 | 8978 | |
10f2d63a VZ |
8979 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
8980 | if test "x$LINE" != x ; then | |
8981 | eval "DEFAULT_$LINE" | |
8982 | else | |
8983 | no_cache=1 | |
8984 | fi | |
8985 | ||
8986 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
10f2d63a | 8987 | |
e6cc62c6 | 8988 | fi; |
10f2d63a VZ |
8989 | |
8990 | eval "$ac_cv_use_miniframe" | |
8991 | if test "$no_cache" != 1; then | |
8992 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
8993 | fi | |
8994 | ||
8995 | if test "$wxUSE_MINIFRAME" = yes; then | |
e6cc62c6 VS |
8996 | echo "$as_me:$LINENO: result: yes" >&5 |
8997 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8998 | else |
e6cc62c6 VS |
8999 | echo "$as_me:$LINENO: result: no" >&5 |
9000 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9001 | fi |
e6cc62c6 | 9002 | |
10f2d63a | 9003 | |
5005acfe | 9004 | enablestring= |
e6cc62c6 VS |
9005 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5 |
9006 | echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6 | |
10f2d63a VZ |
9007 | no_cache=0 |
9008 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
9009 | if test "${enable_tooltips+set}" = set; then | |
9010 | enableval="$enable_tooltips" | |
e6cc62c6 | 9011 | |
10f2d63a VZ |
9012 | if test "$enableval" = yes; then |
9013 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
9014 | else | |
9015 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
9016 | fi | |
e6cc62c6 | 9017 | |
10f2d63a | 9018 | else |
e6cc62c6 | 9019 | |
10f2d63a VZ |
9020 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
9021 | if test "x$LINE" != x ; then | |
9022 | eval "DEFAULT_$LINE" | |
9023 | else | |
9024 | no_cache=1 | |
9025 | fi | |
9026 | ||
9027 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
10f2d63a | 9028 | |
e6cc62c6 | 9029 | fi; |
10f2d63a VZ |
9030 | |
9031 | eval "$ac_cv_use_tooltips" | |
9032 | if test "$no_cache" != 1; then | |
9033 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
9034 | fi | |
9035 | ||
9036 | if test "$wxUSE_TOOLTIPS" = yes; then | |
e6cc62c6 VS |
9037 | echo "$as_me:$LINENO: result: yes" >&5 |
9038 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9039 | else |
e6cc62c6 VS |
9040 | echo "$as_me:$LINENO: result: no" >&5 |
9041 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9042 | fi |
e6cc62c6 | 9043 | |
10f2d63a | 9044 | |
5005acfe | 9045 | enablestring= |
e6cc62c6 VS |
9046 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5 |
9047 | echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6 | |
10f2d63a VZ |
9048 | no_cache=0 |
9049 | # Check whether --enable-splines or --disable-splines was given. | |
9050 | if test "${enable_splines+set}" = set; then | |
9051 | enableval="$enable_splines" | |
e6cc62c6 | 9052 | |
10f2d63a VZ |
9053 | if test "$enableval" = yes; then |
9054 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
9055 | else | |
9056 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
9057 | fi | |
e6cc62c6 | 9058 | |
10f2d63a | 9059 | else |
e6cc62c6 | 9060 | |
10f2d63a VZ |
9061 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
9062 | if test "x$LINE" != x ; then | |
9063 | eval "DEFAULT_$LINE" | |
9064 | else | |
9065 | no_cache=1 | |
9066 | fi | |
9067 | ||
9068 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
10f2d63a | 9069 | |
e6cc62c6 | 9070 | fi; |
10f2d63a VZ |
9071 | |
9072 | eval "$ac_cv_use_splines" | |
9073 | if test "$no_cache" != 1; then | |
9074 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
9075 | fi | |
9076 | ||
9077 | if test "$wxUSE_SPLINES" = yes; then | |
e6cc62c6 VS |
9078 | echo "$as_me:$LINENO: result: yes" >&5 |
9079 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9080 | else |
e6cc62c6 VS |
9081 | echo "$as_me:$LINENO: result: no" >&5 |
9082 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9083 | fi |
e6cc62c6 | 9084 | |
10f2d63a | 9085 | |
5005acfe | 9086 | enablestring= |
e6cc62c6 VS |
9087 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5 |
9088 | echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6 | |
10f2d63a VZ |
9089 | no_cache=0 |
9090 | # Check whether --enable-validators or --disable-validators was given. | |
9091 | if test "${enable_validators+set}" = set; then | |
9092 | enableval="$enable_validators" | |
e6cc62c6 | 9093 | |
10f2d63a VZ |
9094 | if test "$enableval" = yes; then |
9095 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
9096 | else | |
9097 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
9098 | fi | |
e6cc62c6 | 9099 | |
10f2d63a | 9100 | else |
e6cc62c6 | 9101 | |
10f2d63a VZ |
9102 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
9103 | if test "x$LINE" != x ; then | |
9104 | eval "DEFAULT_$LINE" | |
9105 | else | |
9106 | no_cache=1 | |
9107 | fi | |
9108 | ||
9109 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
10f2d63a | 9110 | |
e6cc62c6 | 9111 | fi; |
10f2d63a VZ |
9112 | |
9113 | eval "$ac_cv_use_validators" | |
9114 | if test "$no_cache" != 1; then | |
9115 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
9116 | fi | |
9117 | ||
9118 | if test "$wxUSE_VALIDATORS" = yes; then | |
e6cc62c6 VS |
9119 | echo "$as_me:$LINENO: result: yes" >&5 |
9120 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9121 | else |
e6cc62c6 VS |
9122 | echo "$as_me:$LINENO: result: no" >&5 |
9123 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9124 | fi |
e6cc62c6 | 9125 | |
10f2d63a | 9126 | |
5005acfe | 9127 | enablestring= |
e6cc62c6 VS |
9128 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5 |
9129 | echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6 | |
10f2d63a VZ |
9130 | no_cache=0 |
9131 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
9132 | if test "${enable_busyinfo+set}" = set; then | |
9133 | enableval="$enable_busyinfo" | |
e6cc62c6 | 9134 | |
10f2d63a VZ |
9135 | if test "$enableval" = yes; then |
9136 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
9137 | else | |
9138 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
9139 | fi | |
e6cc62c6 | 9140 | |
10f2d63a | 9141 | else |
e6cc62c6 | 9142 | |
10f2d63a VZ |
9143 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
9144 | if test "x$LINE" != x ; then | |
9145 | eval "DEFAULT_$LINE" | |
9146 | else | |
9147 | no_cache=1 | |
9148 | fi | |
9149 | ||
9150 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
10f2d63a | 9151 | |
e6cc62c6 | 9152 | fi; |
10f2d63a VZ |
9153 | |
9154 | eval "$ac_cv_use_busyinfo" | |
9155 | if test "$no_cache" != 1; then | |
9156 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
9157 | fi | |
9158 | ||
9159 | if test "$wxUSE_BUSYINFO" = yes; then | |
e6cc62c6 VS |
9160 | echo "$as_me:$LINENO: result: yes" >&5 |
9161 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9162 | else |
e6cc62c6 VS |
9163 | echo "$as_me:$LINENO: result: no" >&5 |
9164 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9165 | fi |
e6cc62c6 | 9166 | |
10f2d63a | 9167 | |
5005acfe | 9168 | enablestring= |
e6cc62c6 VS |
9169 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5 |
9170 | echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6 | |
f6bcfd97 BP |
9171 | no_cache=0 |
9172 | # Check whether --enable-joystick or --disable-joystick was given. | |
9173 | if test "${enable_joystick+set}" = set; then | |
9174 | enableval="$enable_joystick" | |
e6cc62c6 | 9175 | |
f6bcfd97 BP |
9176 | if test "$enableval" = yes; then |
9177 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
9178 | else | |
9179 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
9180 | fi | |
e6cc62c6 | 9181 | |
f6bcfd97 | 9182 | else |
e6cc62c6 | 9183 | |
f6bcfd97 BP |
9184 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
9185 | if test "x$LINE" != x ; then | |
9186 | eval "DEFAULT_$LINE" | |
9187 | else | |
9188 | no_cache=1 | |
9189 | fi | |
9190 | ||
9191 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
f6bcfd97 | 9192 | |
e6cc62c6 | 9193 | fi; |
f6bcfd97 BP |
9194 | |
9195 | eval "$ac_cv_use_joystick" | |
9196 | if test "$no_cache" != 1; then | |
9197 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
9198 | fi | |
9199 | ||
9200 | if test "$wxUSE_JOYSTICK" = yes; then | |
e6cc62c6 VS |
9201 | echo "$as_me:$LINENO: result: yes" >&5 |
9202 | echo "${ECHO_T}yes" >&6 | |
f6bcfd97 | 9203 | else |
e6cc62c6 VS |
9204 | echo "$as_me:$LINENO: result: no" >&5 |
9205 | echo "${ECHO_T}no" >&6 | |
f6bcfd97 | 9206 | fi |
e6cc62c6 | 9207 | |
698dcdb6 | 9208 | |
5005acfe | 9209 | enablestring= |
e6cc62c6 VS |
9210 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 |
9211 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
1e6feb95 VZ |
9212 | no_cache=0 |
9213 | # Check whether --enable-metafile or --disable-metafile was given. | |
9214 | if test "${enable_metafile+set}" = set; then | |
9215 | enableval="$enable_metafile" | |
e6cc62c6 | 9216 | |
1e6feb95 VZ |
9217 | if test "$enableval" = yes; then |
9218 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
9219 | else | |
9220 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
9221 | fi | |
e6cc62c6 | 9222 | |
1e6feb95 | 9223 | else |
e6cc62c6 | 9224 | |
1e6feb95 VZ |
9225 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
9226 | if test "x$LINE" != x ; then | |
9227 | eval "DEFAULT_$LINE" | |
9228 | else | |
9229 | no_cache=1 | |
9230 | fi | |
9231 | ||
9232 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
1e6feb95 | 9233 | |
e6cc62c6 | 9234 | fi; |
1e6feb95 VZ |
9235 | |
9236 | eval "$ac_cv_use_metafile" | |
9237 | if test "$no_cache" != 1; then | |
9238 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
9239 | fi | |
9240 | ||
9241 | if test "$wxUSE_METAFILE" = yes; then | |
e6cc62c6 VS |
9242 | echo "$as_me:$LINENO: result: yes" >&5 |
9243 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 9244 | else |
e6cc62c6 VS |
9245 | echo "$as_me:$LINENO: result: no" >&5 |
9246 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 9247 | fi |
e6cc62c6 | 9248 | |
1e6feb95 | 9249 | |
5005acfe | 9250 | enablestring= |
e6cc62c6 VS |
9251 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5 |
9252 | echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6 | |
24fd6d87 VZ |
9253 | no_cache=0 |
9254 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
9255 | if test "${enable_dragimage+set}" = set; then | |
9256 | enableval="$enable_dragimage" | |
e6cc62c6 | 9257 | |
24fd6d87 VZ |
9258 | if test "$enableval" = yes; then |
9259 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
9260 | else | |
9261 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
9262 | fi | |
e6cc62c6 | 9263 | |
24fd6d87 | 9264 | else |
e6cc62c6 | 9265 | |
24fd6d87 VZ |
9266 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` |
9267 | if test "x$LINE" != x ; then | |
9268 | eval "DEFAULT_$LINE" | |
9269 | else | |
9270 | no_cache=1 | |
9271 | fi | |
9272 | ||
9273 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
24fd6d87 | 9274 | |
e6cc62c6 | 9275 | fi; |
24fd6d87 VZ |
9276 | |
9277 | eval "$ac_cv_use_dragimage" | |
9278 | if test "$no_cache" != 1; then | |
9279 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
9280 | fi | |
9281 | ||
9282 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
e6cc62c6 VS |
9283 | echo "$as_me:$LINENO: result: yes" >&5 |
9284 | echo "${ECHO_T}yes" >&6 | |
24fd6d87 | 9285 | else |
e6cc62c6 VS |
9286 | echo "$as_me:$LINENO: result: no" >&5 |
9287 | echo "${ECHO_T}no" >&6 | |
24fd6d87 | 9288 | fi |
e6cc62c6 | 9289 | |
52127426 | 9290 | |
7bb2947d | 9291 | enablestring= |
e6cc62c6 VS |
9292 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5 |
9293 | echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6 | |
7bb2947d MB |
9294 | no_cache=0 |
9295 | # Check whether --enable-accessibility or --disable-accessibility was given. | |
9296 | if test "${enable_accessibility+set}" = set; then | |
9297 | enableval="$enable_accessibility" | |
e6cc62c6 | 9298 | |
7bb2947d MB |
9299 | if test "$enableval" = yes; then |
9300 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes' | |
9301 | else | |
9302 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no' | |
9303 | fi | |
e6cc62c6 | 9304 | |
7bb2947d | 9305 | else |
e6cc62c6 | 9306 | |
7bb2947d MB |
9307 | LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}` |
9308 | if test "x$LINE" != x ; then | |
9309 | eval "DEFAULT_$LINE" | |
9310 | else | |
9311 | no_cache=1 | |
9312 | fi | |
9313 | ||
9314 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY | |
7bb2947d | 9315 | |
e6cc62c6 | 9316 | fi; |
7bb2947d MB |
9317 | |
9318 | eval "$ac_cv_use_accessibility" | |
9319 | if test "$no_cache" != 1; then | |
9320 | echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp | |
9321 | fi | |
9322 | ||
9323 | if test "$wxUSE_ACCESSIBILITY" = yes; then | |
e6cc62c6 VS |
9324 | echo "$as_me:$LINENO: result: yes" >&5 |
9325 | echo "${ECHO_T}yes" >&6 | |
7bb2947d | 9326 | else |
e6cc62c6 VS |
9327 | echo "$as_me:$LINENO: result: no" >&5 |
9328 | echo "${ECHO_T}no" >&6 | |
7bb2947d | 9329 | fi |
e6cc62c6 | 9330 | |
7bb2947d | 9331 | |
8284b0c5 MB |
9332 | |
9333 | ||
5005acfe | 9334 | enablestring= |
e6cc62c6 VS |
9335 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5 |
9336 | echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6 | |
edae8572 VZ |
9337 | no_cache=0 |
9338 | # Check whether --enable-palette or --disable-palette was given. | |
9339 | if test "${enable_palette+set}" = set; then | |
9340 | enableval="$enable_palette" | |
e6cc62c6 | 9341 | |
edae8572 VZ |
9342 | if test "$enableval" = yes; then |
9343 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
9344 | else | |
9345 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
9346 | fi | |
e6cc62c6 | 9347 | |
edae8572 | 9348 | else |
e6cc62c6 | 9349 | |
edae8572 VZ |
9350 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` |
9351 | if test "x$LINE" != x ; then | |
9352 | eval "DEFAULT_$LINE" | |
9353 | else | |
9354 | no_cache=1 | |
9355 | fi | |
9356 | ||
9357 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
edae8572 | 9358 | |
e6cc62c6 | 9359 | fi; |
edae8572 VZ |
9360 | |
9361 | eval "$ac_cv_use_palette" | |
9362 | if test "$no_cache" != 1; then | |
9363 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
9364 | fi | |
9365 | ||
9366 | if test "$wxUSE_PALETTE" = yes; then | |
e6cc62c6 VS |
9367 | echo "$as_me:$LINENO: result: yes" >&5 |
9368 | echo "${ECHO_T}yes" >&6 | |
edae8572 | 9369 | else |
e6cc62c6 VS |
9370 | echo "$as_me:$LINENO: result: no" >&5 |
9371 | echo "${ECHO_T}no" >&6 | |
edae8572 | 9372 | fi |
e6cc62c6 | 9373 | |
edae8572 | 9374 | |
5005acfe | 9375 | enablestring= |
e6cc62c6 VS |
9376 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5 |
9377 | echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6 | |
0046ff7c VS |
9378 | no_cache=0 |
9379 | # Check whether --enable-image or --disable-image was given. | |
9380 | if test "${enable_image+set}" = set; then | |
9381 | enableval="$enable_image" | |
e6cc62c6 | 9382 | |
0046ff7c VS |
9383 | if test "$enableval" = yes; then |
9384 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
9385 | else | |
9386 | ac_cv_use_image='wxUSE_IMAGE=no' | |
9387 | fi | |
e6cc62c6 | 9388 | |
0046ff7c | 9389 | else |
e6cc62c6 | 9390 | |
0046ff7c VS |
9391 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` |
9392 | if test "x$LINE" != x ; then | |
9393 | eval "DEFAULT_$LINE" | |
9394 | else | |
9395 | no_cache=1 | |
9396 | fi | |
9397 | ||
9398 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
0046ff7c | 9399 | |
e6cc62c6 | 9400 | fi; |
0046ff7c VS |
9401 | |
9402 | eval "$ac_cv_use_image" | |
9403 | if test "$no_cache" != 1; then | |
9404 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
9405 | fi | |
9406 | ||
9407 | if test "$wxUSE_IMAGE" = yes; then | |
e6cc62c6 VS |
9408 | echo "$as_me:$LINENO: result: yes" >&5 |
9409 | echo "${ECHO_T}yes" >&6 | |
0046ff7c | 9410 | else |
e6cc62c6 VS |
9411 | echo "$as_me:$LINENO: result: no" >&5 |
9412 | echo "${ECHO_T}no" >&6 | |
0046ff7c | 9413 | fi |
e6cc62c6 | 9414 | |
0046ff7c | 9415 | |
5005acfe | 9416 | enablestring= |
e6cc62c6 VS |
9417 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5 |
9418 | echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6 | |
10f2d63a VZ |
9419 | no_cache=0 |
9420 | # Check whether --enable-gif or --disable-gif was given. | |
9421 | if test "${enable_gif+set}" = set; then | |
9422 | enableval="$enable_gif" | |
e6cc62c6 | 9423 | |
10f2d63a VZ |
9424 | if test "$enableval" = yes; then |
9425 | ac_cv_use_gif='wxUSE_GIF=yes' | |
9426 | else | |
9427 | ac_cv_use_gif='wxUSE_GIF=no' | |
9428 | fi | |
e6cc62c6 | 9429 | |
10f2d63a | 9430 | else |
e6cc62c6 | 9431 | |
10f2d63a VZ |
9432 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` |
9433 | if test "x$LINE" != x ; then | |
9434 | eval "DEFAULT_$LINE" | |
9435 | else | |
9436 | no_cache=1 | |
9437 | fi | |
9438 | ||
9439 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
10f2d63a | 9440 | |
e6cc62c6 | 9441 | fi; |
10f2d63a VZ |
9442 | |
9443 | eval "$ac_cv_use_gif" | |
9444 | if test "$no_cache" != 1; then | |
9445 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
9446 | fi | |
9447 | ||
9448 | if test "$wxUSE_GIF" = yes; then | |
e6cc62c6 VS |
9449 | echo "$as_me:$LINENO: result: yes" >&5 |
9450 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9451 | else |
e6cc62c6 VS |
9452 | echo "$as_me:$LINENO: result: no" >&5 |
9453 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9454 | fi |
e6cc62c6 | 9455 | |
10f2d63a | 9456 | |
5005acfe | 9457 | enablestring= |
e6cc62c6 VS |
9458 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5 |
9459 | echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6 | |
10f2d63a VZ |
9460 | no_cache=0 |
9461 | # Check whether --enable-pcx or --disable-pcx was given. | |
9462 | if test "${enable_pcx+set}" = set; then | |
9463 | enableval="$enable_pcx" | |
e6cc62c6 | 9464 | |
10f2d63a VZ |
9465 | if test "$enableval" = yes; then |
9466 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
9467 | else | |
9468 | ac_cv_use_pcx='wxUSE_PCX=no' | |
9469 | fi | |
e6cc62c6 | 9470 | |
10f2d63a | 9471 | else |
e6cc62c6 | 9472 | |
10f2d63a VZ |
9473 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
9474 | if test "x$LINE" != x ; then | |
9475 | eval "DEFAULT_$LINE" | |
9476 | else | |
9477 | no_cache=1 | |
9478 | fi | |
9479 | ||
9480 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
10f2d63a | 9481 | |
e6cc62c6 | 9482 | fi; |
10f2d63a VZ |
9483 | |
9484 | eval "$ac_cv_use_pcx" | |
9485 | if test "$no_cache" != 1; then | |
9486 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
9487 | fi | |
9488 | ||
9489 | if test "$wxUSE_PCX" = yes; then | |
e6cc62c6 VS |
9490 | echo "$as_me:$LINENO: result: yes" >&5 |
9491 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9492 | else |
e6cc62c6 VS |
9493 | echo "$as_me:$LINENO: result: no" >&5 |
9494 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9495 | fi |
e6cc62c6 | 9496 | |
10f2d63a | 9497 | |
5005acfe | 9498 | enablestring= |
e6cc62c6 VS |
9499 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5 |
9500 | echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6 | |
4b6b4dfc RR |
9501 | no_cache=0 |
9502 | # Check whether --enable-iff or --disable-iff was given. | |
9503 | if test "${enable_iff+set}" = set; then | |
9504 | enableval="$enable_iff" | |
e6cc62c6 | 9505 | |
4b6b4dfc RR |
9506 | if test "$enableval" = yes; then |
9507 | ac_cv_use_iff='wxUSE_IFF=yes' | |
9508 | else | |
9509 | ac_cv_use_iff='wxUSE_IFF=no' | |
9510 | fi | |
e6cc62c6 | 9511 | |
4b6b4dfc | 9512 | else |
e6cc62c6 | 9513 | |
4b6b4dfc RR |
9514 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` |
9515 | if test "x$LINE" != x ; then | |
9516 | eval "DEFAULT_$LINE" | |
9517 | else | |
9518 | no_cache=1 | |
9519 | fi | |
9520 | ||
9521 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
4b6b4dfc | 9522 | |
e6cc62c6 | 9523 | fi; |
4b6b4dfc RR |
9524 | |
9525 | eval "$ac_cv_use_iff" | |
9526 | if test "$no_cache" != 1; then | |
9527 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
9528 | fi | |
9529 | ||
9530 | if test "$wxUSE_IFF" = yes; then | |
e6cc62c6 VS |
9531 | echo "$as_me:$LINENO: result: yes" >&5 |
9532 | echo "${ECHO_T}yes" >&6 | |
4b6b4dfc | 9533 | else |
e6cc62c6 VS |
9534 | echo "$as_me:$LINENO: result: no" >&5 |
9535 | echo "${ECHO_T}no" >&6 | |
4b6b4dfc | 9536 | fi |
e6cc62c6 | 9537 | |
4b6b4dfc | 9538 | |
5005acfe | 9539 | enablestring= |
e6cc62c6 VS |
9540 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5 |
9541 | echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6 | |
10f2d63a VZ |
9542 | no_cache=0 |
9543 | # Check whether --enable-pnm or --disable-pnm was given. | |
9544 | if test "${enable_pnm+set}" = set; then | |
9545 | enableval="$enable_pnm" | |
e6cc62c6 | 9546 | |
10f2d63a VZ |
9547 | if test "$enableval" = yes; then |
9548 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
9549 | else | |
9550 | ac_cv_use_pnm='wxUSE_PNM=no' | |
9551 | fi | |
e6cc62c6 | 9552 | |
10f2d63a | 9553 | else |
e6cc62c6 | 9554 | |
10f2d63a VZ |
9555 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
9556 | if test "x$LINE" != x ; then | |
9557 | eval "DEFAULT_$LINE" | |
9558 | else | |
9559 | no_cache=1 | |
9560 | fi | |
9561 | ||
9562 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
10f2d63a | 9563 | |
e6cc62c6 | 9564 | fi; |
10f2d63a VZ |
9565 | |
9566 | eval "$ac_cv_use_pnm" | |
9567 | if test "$no_cache" != 1; then | |
9568 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
9569 | fi | |
9570 | ||
9571 | if test "$wxUSE_PNM" = yes; then | |
e6cc62c6 VS |
9572 | echo "$as_me:$LINENO: result: yes" >&5 |
9573 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9574 | else |
e6cc62c6 VS |
9575 | echo "$as_me:$LINENO: result: no" >&5 |
9576 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9577 | fi |
e6cc62c6 | 9578 | |
10f2d63a | 9579 | |
5005acfe | 9580 | enablestring= |
e6cc62c6 VS |
9581 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5 |
9582 | echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6 | |
0046ff7c | 9583 | no_cache=0 |
69d27ff7 MB |
9584 | # Check whether --enable-xpm or --disable-xpm was given. |
9585 | if test "${enable_xpm+set}" = set; then | |
9586 | enableval="$enable_xpm" | |
e6cc62c6 | 9587 | |
0046ff7c | 9588 | if test "$enableval" = yes; then |
69d27ff7 | 9589 | ac_cv_use_xpm='wxUSE_XPM=yes' |
0046ff7c | 9590 | else |
69d27ff7 | 9591 | ac_cv_use_xpm='wxUSE_XPM=no' |
0046ff7c | 9592 | fi |
e6cc62c6 | 9593 | |
0046ff7c | 9594 | else |
e6cc62c6 | 9595 | |
0046ff7c VS |
9596 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
9597 | if test "x$LINE" != x ; then | |
9598 | eval "DEFAULT_$LINE" | |
9599 | else | |
9600 | no_cache=1 | |
9601 | fi | |
9602 | ||
69d27ff7 | 9603 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM |
0046ff7c | 9604 | |
e6cc62c6 | 9605 | fi; |
0046ff7c | 9606 | |
69d27ff7 | 9607 | eval "$ac_cv_use_xpm" |
0046ff7c | 9608 | if test "$no_cache" != 1; then |
69d27ff7 | 9609 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp |
0046ff7c VS |
9610 | fi |
9611 | ||
9612 | if test "$wxUSE_XPM" = yes; then | |
e6cc62c6 VS |
9613 | echo "$as_me:$LINENO: result: yes" >&5 |
9614 | echo "${ECHO_T}yes" >&6 | |
0046ff7c | 9615 | else |
e6cc62c6 VS |
9616 | echo "$as_me:$LINENO: result: no" >&5 |
9617 | echo "${ECHO_T}no" >&6 | |
0046ff7c | 9618 | fi |
e6cc62c6 | 9619 | |
0046ff7c | 9620 | |
5005acfe | 9621 | enablestring= |
e6cc62c6 VS |
9622 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5 |
9623 | echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6 | |
658974ae | 9624 | no_cache=0 |
c7206e64 VS |
9625 | # Check whether --enable-ico_cur or --disable-ico_cur was given. |
9626 | if test "${enable_ico_cur+set}" = set; then | |
9627 | enableval="$enable_ico_cur" | |
e6cc62c6 | 9628 | |
658974ae | 9629 | if test "$enableval" = yes; then |
c7206e64 | 9630 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' |
658974ae | 9631 | else |
c7206e64 | 9632 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' |
658974ae | 9633 | fi |
e6cc62c6 | 9634 | |
658974ae | 9635 | else |
e6cc62c6 | 9636 | |
658974ae VS |
9637 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` |
9638 | if test "x$LINE" != x ; then | |
9639 | eval "DEFAULT_$LINE" | |
9640 | else | |
9641 | no_cache=1 | |
9642 | fi | |
9643 | ||
c7206e64 | 9644 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR |
658974ae | 9645 | |
e6cc62c6 | 9646 | fi; |
658974ae | 9647 | |
c7206e64 | 9648 | eval "$ac_cv_use_ico_cur" |
658974ae | 9649 | if test "$no_cache" != 1; then |
c7206e64 | 9650 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp |
658974ae VS |
9651 | fi |
9652 | ||
9653 | if test "$wxUSE_ICO_CUR" = yes; then | |
e6cc62c6 VS |
9654 | echo "$as_me:$LINENO: result: yes" >&5 |
9655 | echo "${ECHO_T}yes" >&6 | |
658974ae | 9656 | else |
e6cc62c6 VS |
9657 | echo "$as_me:$LINENO: result: no" >&5 |
9658 | echo "${ECHO_T}no" >&6 | |
658974ae | 9659 | fi |
e6cc62c6 | 9660 | |
658974ae | 9661 | |
b12915c1 VZ |
9662 | fi |
9663 | ||
029b47ad VS |
9664 | |
9665 | ||
9666 | enablestring= | |
9667 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5 | |
9668 | echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6 | |
9669 | no_cache=0 | |
9670 | # Check whether --enable-official_build or --disable-official_build was given. | |
9671 | if test "${enable_official_build+set}" = set; then | |
9672 | enableval="$enable_official_build" | |
9673 | ||
9674 | if test "$enableval" = yes; then | |
9675 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes' | |
9676 | else | |
9677 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no' | |
9678 | fi | |
9679 | ||
9680 | else | |
9681 | ||
9682 | LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}` | |
9683 | if test "x$LINE" != x ; then | |
9684 | eval "DEFAULT_$LINE" | |
9685 | else | |
9686 | no_cache=1 | |
9687 | fi | |
9688 | ||
9689 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD | |
9690 | ||
9691 | fi; | |
9692 | ||
9693 | eval "$ac_cv_use_official_build" | |
9694 | if test "$no_cache" != 1; then | |
9695 | echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp | |
9696 | fi | |
9697 | ||
9698 | if test "$wxUSE_OFFICIAL_BUILD" = yes; then | |
9699 | echo "$as_me:$LINENO: result: yes" >&5 | |
9700 | echo "${ECHO_T}yes" >&6 | |
9701 | else | |
9702 | echo "$as_me:$LINENO: result: no" >&5 | |
9703 | echo "${ECHO_T}no" >&6 | |
9704 | fi | |
9705 | ||
9706 | # Check whether --enable-vendor or --disable-vendor was given. | |
9707 | if test "${enable_vendor+set}" = set; then | |
9708 | enableval="$enable_vendor" | |
9709 | VENDOR="$enableval" | |
9710 | fi; | |
9711 | if test "x$VENDOR" = "x"; then | |
9712 | VENDOR="custom" | |
9713 | fi | |
9714 | ||
d558c907 VS |
9715 | case "${host}" in |
9716 | *-pc-os2_emx | *-pc-os2-emx ) | |
6969f178 | 9717 | PATH_IFS=';' |
d558c907 VS |
9718 | ;; |
9719 | *) | |
9720 | PATH_IFS=':' | |
d558c907 VS |
9721 | ;; |
9722 | esac | |
9723 | ||
8284b0c5 MB |
9724 | |
9725 | ||
10f2d63a VZ |
9726 | echo "saving argument cache $wx_arg_cache_file" |
9727 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
52127426 | 9728 | |
8284b0c5 | 9729 | |
e6cc62c6 VS |
9730 | |
9731 | echo "$as_me:$LINENO: checking for toolkit" >&5 | |
9732 | echo $ECHO_N "checking for toolkit... $ECHO_C" >&6 | |
89e6bf6d VZ |
9733 | |
9734 | # In Wine, we need to default to MSW, not GTK or MOTIF | |
9735 | if test "$wxUSE_WINE" = "yes"; then | |
9736 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
9737 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
9738 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
9739 | fi | |
10f2d63a VZ |
9740 | |
9741 | if test "$wxUSE_GUI" = "yes"; then | |
9742 | ||
3a922bb4 | 9743 | if test "$USE_BEOS" = 1; then |
e6cc62c6 VS |
9744 | { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5 |
9745 | echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;} | |
9746 | { (exit 1); exit 1; }; } | |
3a922bb4 | 9747 | fi |
b12915c1 | 9748 | |
3a922bb4 RL |
9749 | if test "$TOOLKIT_GIVEN" = 1; then |
9750 | for toolkit in `echo $ALL_TOOLKITS`; do | |
9751 | var=wxUSE_$toolkit | |
9752 | eval "value=\$${var}" | |
9753 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
9754 | done | |
10f2d63a | 9755 | else |
3a922bb4 RL |
9756 | for toolkit in `echo $ALL_TOOLKITS`; do |
9757 | if test "$has_toolkit_in_cache" != 1; then | |
9758 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
9759 | else | |
9760 | var=DEFAULT_wxUSE_$toolkit | |
9761 | fi | |
9762 | eval "wxUSE_$toolkit=\$${var}" | |
9763 | done | |
10f2d63a | 9764 | fi |
10f2d63a | 9765 | |
ac0c4cc3 DE |
9766 | NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \ |
9767 | + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \ | |
9768 | + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}` | |
10f2d63a | 9769 | |
d558c907 | 9770 | case "${host}" in |
6fa882bd | 9771 | *-pc-os2_emx | *-pc-os2-emx ) |
3a922bb4 | 9772 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` |
3a922bb4 | 9773 | esac |
10f2d63a | 9774 | |
3a922bb4 RL |
9775 | case "$NUM_TOOLKITS" in |
9776 | 1) | |
9777 | ;; | |
9778 | 0) | |
e6cc62c6 VS |
9779 | { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5 |
9780 | echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;} | |
9781 | { (exit 1); exit 1; }; } | |
3a922bb4 RL |
9782 | ;; |
9783 | *) | |
e6cc62c6 VS |
9784 | { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5 |
9785 | echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;} | |
9786 | { (exit 1); exit 1; }; } | |
3a922bb4 | 9787 | esac |
10f2d63a | 9788 | |
3a922bb4 RL |
9789 | for toolkit in `echo $ALL_TOOLKITS`; do |
9790 | var=wxUSE_$toolkit | |
9791 | eval "value=\$${var}" | |
9792 | if test "x$value" != x; then | |
9793 | cache_var=CACHE_$toolkit | |
9794 | eval "cache=\$${cache_var}" | |
9795 | if test "$cache" = 1; then | |
9796 | echo "$var=$value" >> ${wx_arg_cache_file} | |
9797 | fi | |
9798 | if test "$value" = 1; then | |
89fe663f | 9799 | toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"` |
e6cc62c6 VS |
9800 | echo "$as_me:$LINENO: result: $toolkit_echo" >&5 |
9801 | echo "${ECHO_T}$toolkit_echo" >&6 | |
3a922bb4 RL |
9802 | fi |
9803 | fi | |
9804 | done | |
10f2d63a | 9805 | else |
9de9b8f0 VZ |
9806 | if test "x$host_alias" != "x"; then |
9807 | echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5 | |
e6cc62c6 | 9808 | echo "${ECHO_T}base ($host_alias hosted) only" >&6 |
9de9b8f0 VZ |
9809 | else |
9810 | echo "$as_me:$LINENO: result: base only" >&5 | |
9811 | echo "${ECHO_T}base only" >&6 | |
9812 | fi | |
10f2d63a VZ |
9813 | fi |
9814 | ||
43d99b6d VS |
9815 | wants_win32=0 |
9816 | doesnt_want_win32=0 | |
17234b26 MB |
9817 | case "${host}" in |
9818 | *-*-cygwin*) | |
9819 | if test "$wxUSE_MSW" = 1 ; then | |
43d99b6d VS |
9820 | wants_win32=1 |
9821 | else | |
9822 | doesnt_want_win32=1 | |
17234b26 MB |
9823 | fi |
9824 | ;; | |
9825 | *-*-mingw*) | |
43d99b6d | 9826 | wants_win32=1 |
17234b26 MB |
9827 | ;; |
9828 | esac | |
9829 | ||
89e6bf6d VZ |
9830 | if test "$wxUSE_WINE" = "yes"; then |
9831 | wants_win32=1 | |
9832 | CC=winegcc | |
9833 | CXX=wineg++ | |
9834 | RESCOMP=wrc | |
9835 | fi | |
9836 | ||
43d99b6d | 9837 | if test "$wants_win32" = 1 ; then |
17234b26 MB |
9838 | USE_UNIX=0 |
9839 | USE_WIN32=1 | |
e6cc62c6 | 9840 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9841 | #define __WIN32__ 1 |
e6cc62c6 | 9842 | _ACEOF |
17234b26 | 9843 | |
e6cc62c6 | 9844 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9845 | #define __WIN95__ 1 |
e6cc62c6 | 9846 | _ACEOF |
17234b26 | 9847 | |
e6cc62c6 | 9848 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9849 | #define __WINDOWS__ 1 |
e6cc62c6 | 9850 | _ACEOF |
17234b26 | 9851 | |
e6cc62c6 | 9852 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9853 | #define __GNUWIN32__ 1 |
e6cc62c6 | 9854 | _ACEOF |
17234b26 | 9855 | |
e6cc62c6 | 9856 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9857 | #define STRICT 1 |
e6cc62c6 | 9858 | _ACEOF |
17234b26 | 9859 | |
e6cc62c6 | 9860 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9861 | #define WINVER 0x0400 |
e6cc62c6 | 9862 | _ACEOF |
17234b26 | 9863 | |
43d99b6d VS |
9864 | fi |
9865 | if test "$doesnt_want_win32" = 1 ; then | |
17234b26 MB |
9866 | USE_UNIX=1 |
9867 | USE_WIN32=0 | |
9868 | fi | |
9869 | ||
9870 | if test "$USE_UNIX" = 1 ; then | |
9871 | wxUSE_UNIX=yes | |
e6cc62c6 | 9872 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9873 | #define __UNIX__ 1 |
e6cc62c6 | 9874 | _ACEOF |
17234b26 MB |
9875 | |
9876 | fi | |
9877 | ||
8284b0c5 | 9878 | |
e6cc62c6 | 9879 | cat >confcache <<\_ACEOF |
10f2d63a VZ |
9880 | # This file is a shell script that caches the results of configure |
9881 | # tests run on this system so they can be shared between configure | |
e6cc62c6 VS |
9882 | # scripts and configure runs, see configure's option --config-cache. |
9883 | # It is not useful on other systems. If it contains results you don't | |
9884 | # want to keep, you may remove or edit it. | |
10f2d63a | 9885 | # |
e6cc62c6 VS |
9886 | # config.status only pays attention to the cache file if you give it |
9887 | # the --recheck option to rerun configure. | |
10f2d63a | 9888 | # |
e6cc62c6 VS |
9889 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
9890 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
9891 | # following values. | |
9892 | ||
9893 | _ACEOF | |
9894 | ||
10f2d63a VZ |
9895 | # The following way of writing the cache mishandles newlines in values, |
9896 | # but we know of no workaround that is simple, portable, and efficient. | |
9897 | # So, don't put newlines in cache variables' values. | |
9898 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
9899 | # and sets the high bit in the cache file unless we assign to the vars. | |
e6cc62c6 VS |
9900 | { |
9901 | (set) 2>&1 | | |
9902 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
9903 | *ac_space=\ *) | |
9904 | # `set' does not quote correctly, so add quotes (double-quote | |
9905 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
9906 | sed -n \ | |
eea650d8 VS |
9907 | "s/'/'\\\\''/g; |
9908 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
e6cc62c6 VS |
9909 | ;; |
9910 | *) | |
9911 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
9912 | sed -n \ | |
eea650d8 | 9913 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
e6cc62c6 VS |
9914 | ;; |
9915 | esac; | |
9916 | } | | |
9917 | sed ' | |
9918 | t clear | |
9919 | : clear | |
9920 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
9921 | t end | |
9922 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
9923 | : end' >>confcache | |
9924 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
10f2d63a | 9925 | if test -w $cache_file; then |
e6cc62c6 VS |
9926 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
9927 | cat confcache >$cache_file | |
10f2d63a VZ |
9928 | else |
9929 | echo "not updating unwritable cache $cache_file" | |
9930 | fi | |
9931 | fi | |
9932 | rm -f confcache | |
9933 | ||
e59890c3 | 9934 | if test "$build" != "$host" ; then |
9d353d4a | 9935 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then |
3a922bb4 RL |
9936 | CC=$host_alias-gcc |
9937 | CXX=$host_alias-c++ | |
9938 | AR=$host_alias-ar | |
9939 | RANLIB=$host_alias-ranlib | |
9940 | DLLTOOL=$host_alias-dlltool | |
9941 | RESCOMP=$host_alias-windres | |
9942 | LD=$host_alias-ld | |
9943 | NM=$host_alias-nm | |
9944 | STRIP=$host_alias-strip | |
9945 | else | |
e6cc62c6 VS |
9946 | { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5 |
9947 | echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;} | |
9948 | { (exit 1); exit 1; }; } | |
3a922bb4 | 9949 | fi |
10f2d63a VZ |
9950 | fi |
9951 | ||
ec603395 | 9952 | CFLAGS=${CFLAGS:=} |
e6cc62c6 VS |
9953 | ac_ext=c |
9954 | ac_cpp='$CPP $CPPFLAGS' | |
9955 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9956 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9957 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9958 | if test -n "$ac_tool_prefix"; then | |
9959 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
9960 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
9961 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9962 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9963 | if test "${ac_cv_prog_CC+set}" = set; then | |
9964 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9965 | else | |
9966 | if test -n "$CC"; then | |
9967 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
9968 | else | |
9969 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9970 | for as_dir in $PATH | |
9971 | do | |
9972 | IFS=$as_save_IFS | |
9973 | test -z "$as_dir" && as_dir=. | |
9974 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9975 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9976 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
9977 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9978 | break 2 | |
9979 | fi | |
9980 | done | |
9981 | done | |
9982 | ||
9983 | fi | |
9984 | fi | |
9985 | CC=$ac_cv_prog_CC | |
9986 | if test -n "$CC"; then | |
9987 | echo "$as_me:$LINENO: result: $CC" >&5 | |
9988 | echo "${ECHO_T}$CC" >&6 | |
9989 | else | |
9990 | echo "$as_me:$LINENO: result: no" >&5 | |
9991 | echo "${ECHO_T}no" >&6 | |
9992 | fi | |
9993 | ||
9994 | fi | |
9995 | if test -z "$ac_cv_prog_CC"; then | |
9996 | ac_ct_CC=$CC | |
9997 | # Extract the first word of "gcc", so it can be a program name with args. | |
8284b0c5 | 9998 | set dummy gcc; ac_word=$2 |
e6cc62c6 VS |
9999 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10000 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10001 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10002 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10003 | else | |
10004 | if test -n "$ac_ct_CC"; then | |
10005 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10006 | else | |
10007 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10008 | for as_dir in $PATH | |
10009 | do | |
10010 | IFS=$as_save_IFS | |
10011 | test -z "$as_dir" && as_dir=. | |
10012 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10013 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10014 | ac_cv_prog_ac_ct_CC="gcc" | |
10015 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10016 | break 2 | |
10017 | fi | |
10018 | done | |
10019 | done | |
10020 | ||
10021 | fi | |
10022 | fi | |
10023 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10024 | if test -n "$ac_ct_CC"; then | |
10025 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10026 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10027 | else | |
10028 | echo "$as_me:$LINENO: result: no" >&5 | |
10029 | echo "${ECHO_T}no" >&6 | |
10030 | fi | |
10031 | ||
10032 | CC=$ac_ct_CC | |
10033 | else | |
10034 | CC="$ac_cv_prog_CC" | |
10035 | fi | |
10036 | ||
10037 | if test -z "$CC"; then | |
10038 | if test -n "$ac_tool_prefix"; then | |
10039 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
10040 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
10041 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10042 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10043 | if test "${ac_cv_prog_CC+set}" = set; then | |
10044 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6232543b VS |
10045 | else |
10046 | if test -n "$CC"; then | |
10047 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 10048 | else |
e6cc62c6 VS |
10049 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10050 | for as_dir in $PATH | |
10051 | do | |
10052 | IFS=$as_save_IFS | |
10053 | test -z "$as_dir" && as_dir=. | |
10054 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10055 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10056 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
10057 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10058 | break 2 | |
10059 | fi | |
10060 | done | |
10061 | done | |
10062 | ||
10f2d63a | 10063 | fi |
6232543b | 10064 | fi |
e6cc62c6 | 10065 | CC=$ac_cv_prog_CC |
6232543b | 10066 | if test -n "$CC"; then |
e6cc62c6 VS |
10067 | echo "$as_me:$LINENO: result: $CC" >&5 |
10068 | echo "${ECHO_T}$CC" >&6 | |
10069 | else | |
10070 | echo "$as_me:$LINENO: result: no" >&5 | |
10071 | echo "${ECHO_T}no" >&6 | |
10072 | fi | |
10073 | ||
10074 | fi | |
10075 | if test -z "$ac_cv_prog_CC"; then | |
10076 | ac_ct_CC=$CC | |
10077 | # Extract the first word of "cc", so it can be a program name with args. | |
10078 | set dummy cc; ac_word=$2 | |
10079 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10080 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10081 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10082 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10083 | else | |
10084 | if test -n "$ac_ct_CC"; then | |
10085 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10086 | else | |
10087 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10088 | for as_dir in $PATH | |
10089 | do | |
10090 | IFS=$as_save_IFS | |
10091 | test -z "$as_dir" && as_dir=. | |
10092 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10093 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10094 | ac_cv_prog_ac_ct_CC="cc" | |
10095 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10096 | break 2 | |
10097 | fi | |
10098 | done | |
10099 | done | |
10100 | ||
10101 | fi | |
10102 | fi | |
10103 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10104 | if test -n "$ac_ct_CC"; then | |
10105 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10106 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10107 | else | |
10108 | echo "$as_me:$LINENO: result: no" >&5 | |
10109 | echo "${ECHO_T}no" >&6 | |
10110 | fi | |
10111 | ||
10112 | CC=$ac_ct_CC | |
247f5006 | 10113 | else |
e6cc62c6 | 10114 | CC="$ac_cv_prog_CC" |
247f5006 VZ |
10115 | fi |
10116 | ||
e6cc62c6 | 10117 | fi |
5c6fa7d2 RR |
10118 | if test -z "$CC"; then |
10119 | # Extract the first word of "cc", so it can be a program name with args. | |
10120 | set dummy cc; ac_word=$2 | |
e6cc62c6 VS |
10121 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10122 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10123 | if test "${ac_cv_prog_CC+set}" = set; then | |
10124 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5c6fa7d2 RR |
10125 | else |
10126 | if test -n "$CC"; then | |
10127 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10128 | else | |
10129 | ac_prog_rejected=no | |
e6cc62c6 VS |
10130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10131 | for as_dir in $PATH | |
10132 | do | |
10133 | IFS=$as_save_IFS | |
10134 | test -z "$as_dir" && as_dir=. | |
10135 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10136 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10137 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
10138 | ac_prog_rejected=yes | |
10139 | continue | |
10140 | fi | |
10141 | ac_cv_prog_CC="cc" | |
10142 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10143 | break 2 | |
10144 | fi | |
10145 | done | |
10146 | done | |
10147 | ||
328a083c RR |
10148 | if test $ac_prog_rejected = yes; then |
10149 | # We found a bogon in the path, so make sure we never use it. | |
10150 | set dummy $ac_cv_prog_CC | |
10151 | shift | |
e6cc62c6 | 10152 | if test $# != 0; then |
328a083c | 10153 | # We chose a different compiler from the bogus one. |
1e487827 VS |
10154 | # However, it has the same basename, so the bogon will be chosen |
10155 | # first if we set CC to just the basename; use the full file name. | |
10156 | shift | |
e6cc62c6 | 10157 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
703e0a69 | 10158 | fi |
1e487827 VS |
10159 | fi |
10160 | fi | |
10161 | fi | |
e6cc62c6 | 10162 | CC=$ac_cv_prog_CC |
1e487827 | 10163 | if test -n "$CC"; then |
e6cc62c6 VS |
10164 | echo "$as_me:$LINENO: result: $CC" >&5 |
10165 | echo "${ECHO_T}$CC" >&6 | |
703e0a69 | 10166 | else |
e6cc62c6 VS |
10167 | echo "$as_me:$LINENO: result: no" >&5 |
10168 | echo "${ECHO_T}no" >&6 | |
703e0a69 | 10169 | fi |
1e487827 | 10170 | |
e6cc62c6 VS |
10171 | fi |
10172 | if test -z "$CC"; then | |
10173 | if test -n "$ac_tool_prefix"; then | |
10174 | for ac_prog in cl | |
10175 | do | |
10176 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10177 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
10178 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10179 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10180 | if test "${ac_cv_prog_CC+set}" = set; then | |
10181 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f09359cf VS |
10182 | else |
10183 | if test -n "$CC"; then | |
10184 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10185 | else | |
e6cc62c6 VS |
10186 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10187 | for as_dir in $PATH | |
10188 | do | |
10189 | IFS=$as_save_IFS | |
10190 | test -z "$as_dir" && as_dir=. | |
10191 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10192 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10193 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
10194 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10195 | break 2 | |
10196 | fi | |
10197 | done | |
10198 | done | |
10199 | ||
f09359cf VS |
10200 | fi |
10201 | fi | |
e6cc62c6 | 10202 | CC=$ac_cv_prog_CC |
f09359cf | 10203 | if test -n "$CC"; then |
e6cc62c6 VS |
10204 | echo "$as_me:$LINENO: result: $CC" >&5 |
10205 | echo "${ECHO_T}$CC" >&6 | |
f09359cf | 10206 | else |
e6cc62c6 VS |
10207 | echo "$as_me:$LINENO: result: no" >&5 |
10208 | echo "${ECHO_T}no" >&6 | |
5c6fa7d2 | 10209 | fi |
1e487827 | 10210 | |
e6cc62c6 VS |
10211 | test -n "$CC" && break |
10212 | done | |
10213 | fi | |
10214 | if test -z "$CC"; then | |
10215 | ac_ct_CC=$CC | |
10216 | for ac_prog in cl | |
10217 | do | |
10218 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10219 | set dummy $ac_prog; ac_word=$2 | |
10220 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10221 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10222 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10223 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10224 | else | |
10225 | if test -n "$ac_ct_CC"; then | |
10226 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10227 | else | |
10228 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10229 | for as_dir in $PATH | |
10230 | do | |
10231 | IFS=$as_save_IFS | |
10232 | test -z "$as_dir" && as_dir=. | |
10233 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10234 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10235 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
10236 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10237 | break 2 | |
10238 | fi | |
10239 | done | |
10240 | done | |
f09359cf | 10241 | |
e6cc62c6 VS |
10242 | fi |
10243 | fi | |
10244 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10245 | if test -n "$ac_ct_CC"; then | |
10246 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10247 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10248 | else | |
10249 | echo "$as_me:$LINENO: result: no" >&5 | |
10250 | echo "${ECHO_T}no" >&6 | |
10251 | fi | |
f09359cf | 10252 | |
e6cc62c6 VS |
10253 | test -n "$ac_ct_CC" && break |
10254 | done | |
247f5006 | 10255 | |
e6cc62c6 VS |
10256 | CC=$ac_ct_CC |
10257 | fi | |
10258 | ||
10259 | fi | |
10260 | ||
10261 | ||
10262 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
10263 | See \`config.log' for more details." >&5 | |
10264 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
10265 | See \`config.log' for more details." >&2;} | |
10266 | { (exit 1); exit 1; }; } | |
10267 | ||
10268 | # Provide some information about the compiler. | |
10269 | echo "$as_me:$LINENO:" \ | |
10270 | "checking for C compiler version" >&5 | |
10271 | ac_compiler=`set X $ac_compile; echo $2` | |
10272 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
10273 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
10274 | ac_status=$? | |
10275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10276 | (exit $ac_status); } | |
10277 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
10278 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
10279 | ac_status=$? | |
10280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10281 | (exit $ac_status); } | |
10282 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
10283 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
10284 | ac_status=$? | |
10285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10286 | (exit $ac_status); } | |
10287 | ||
10288 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
10289 | /* confdefs.h. */ |
10290 | _ACEOF | |
10291 | cat confdefs.h >>conftest.$ac_ext | |
10292 | cat >>conftest.$ac_ext <<_ACEOF | |
10293 | /* end confdefs.h. */ | |
10294 | ||
10295 | int | |
10296 | main () | |
10297 | { | |
247f5006 | 10298 | |
e6cc62c6 VS |
10299 | ; |
10300 | return 0; | |
10301 | } | |
10302 | _ACEOF | |
10303 | ac_clean_files_save=$ac_clean_files | |
10304 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
10305 | # Try to create an executable without -o first, disregard a.out. | |
10306 | # It will help us diagnose broken compilers, and finding out an intuition | |
10307 | # of exeext. | |
eea650d8 VS |
10308 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
10309 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
e6cc62c6 VS |
10310 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
10311 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
10312 | (eval $ac_link_default) 2>&5 | |
10313 | ac_status=$? | |
10314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10315 | (exit $ac_status); }; then | |
10316 | # Find the output, starting from the most likely. This scheme is | |
10317 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
10318 | # resort. | |
10319 | ||
10320 | # Be careful to initialize this variable, since it used to be cached. | |
10321 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
10322 | ac_cv_exeext= | |
10323 | # b.out is created by i960 compilers. | |
10324 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
10325 | do | |
10326 | test -f "$ac_file" || continue | |
10327 | case $ac_file in | |
10328 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
eea650d8 | 10329 | ;; |
e6cc62c6 | 10330 | conftest.$ac_ext ) |
eea650d8 VS |
10331 | # This is the source file. |
10332 | ;; | |
e6cc62c6 | 10333 | [ab].out ) |
eea650d8 VS |
10334 | # We found the default executable, but exeext='' is most |
10335 | # certainly right. | |
10336 | break;; | |
e6cc62c6 | 10337 | *.* ) |
eea650d8 VS |
10338 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
10339 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
10340 | # but it would be cool to find out if it's true. Does anybody | |
10341 | # maintain Libtool? --akim. | |
10342 | export ac_cv_exeext | |
10343 | break;; | |
e6cc62c6 | 10344 | * ) |
eea650d8 | 10345 | break;; |
e6cc62c6 VS |
10346 | esac |
10347 | done | |
10348 | else | |
10349 | echo "$as_me: failed program was:" >&5 | |
10350 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10351 | ||
10352 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
10353 | See \`config.log' for more details." >&5 | |
10354 | echo "$as_me: error: C compiler cannot create executables | |
10355 | See \`config.log' for more details." >&2;} | |
10356 | { (exit 77); exit 77; }; } | |
10357 | fi | |
10358 | ||
10359 | ac_exeext=$ac_cv_exeext | |
10360 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
10361 | echo "${ECHO_T}$ac_file" >&6 | |
10362 | ||
10363 | # Check the compiler produces executables we can run. If not, either | |
10364 | # the compiler is broken, or we cross compile. | |
10365 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
10366 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
10367 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
10368 | # If not cross compiling, check that we can run a simple program. | |
10369 | if test "$cross_compiling" != yes; then | |
10370 | if { ac_try='./$ac_file' | |
10371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10372 | (eval $ac_try) 2>&5 | |
10373 | ac_status=$? | |
10374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10375 | (exit $ac_status); }; }; then | |
10376 | cross_compiling=no | |
698dcdb6 | 10377 | else |
e6cc62c6 VS |
10378 | if test "$cross_compiling" = maybe; then |
10379 | cross_compiling=yes | |
10380 | else | |
10381 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
10382 | If you meant to cross compile, use \`--host'. | |
10383 | See \`config.log' for more details." >&5 | |
10384 | echo "$as_me: error: cannot run C compiled programs. | |
10385 | If you meant to cross compile, use \`--host'. | |
10386 | See \`config.log' for more details." >&2;} | |
10387 | { (exit 1); exit 1; }; } | |
10388 | fi | |
698dcdb6 | 10389 | fi |
52127426 | 10390 | fi |
e6cc62c6 VS |
10391 | echo "$as_me:$LINENO: result: yes" >&5 |
10392 | echo "${ECHO_T}yes" >&6 | |
10393 | ||
10394 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
10395 | ac_clean_files=$ac_clean_files_save | |
10396 | # Check the compiler produces executables we can run. If not, either | |
10397 | # the compiler is broken, or we cross compile. | |
10398 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
10399 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
10400 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
10401 | echo "${ECHO_T}$cross_compiling" >&6 | |
10402 | ||
10403 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
10404 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
10405 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10406 | (eval $ac_link) 2>&5 | |
10407 | ac_status=$? | |
10408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10409 | (exit $ac_status); }; then | |
10410 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
10411 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
10412 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
10413 | # `rm'. | |
10414 | for ac_file in conftest.exe conftest conftest.*; do | |
10415 | test -f "$ac_file" || continue | |
10416 | case $ac_file in | |
10417 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
10418 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
eea650d8 VS |
10419 | export ac_cv_exeext |
10420 | break;; | |
e6cc62c6 VS |
10421 | * ) break;; |
10422 | esac | |
10423 | done | |
5c6fa7d2 | 10424 | else |
e6cc62c6 VS |
10425 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
10426 | See \`config.log' for more details." >&5 | |
10427 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
10428 | See \`config.log' for more details." >&2;} | |
10429 | { (exit 1); exit 1; }; } | |
10430 | fi | |
10431 | ||
10432 | rm -f conftest$ac_cv_exeext | |
10433 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
10434 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
10435 | ||
10436 | rm -f conftest.$ac_ext | |
10437 | EXEEXT=$ac_cv_exeext | |
10438 | ac_exeext=$EXEEXT | |
10439 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
10440 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
10441 | if test "${ac_cv_objext+set}" = set; then | |
10442 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10443 | else | |
10444 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
10445 | /* confdefs.h. */ |
10446 | _ACEOF | |
10447 | cat confdefs.h >>conftest.$ac_ext | |
10448 | cat >>conftest.$ac_ext <<_ACEOF | |
10449 | /* end confdefs.h. */ | |
10450 | ||
10451 | int | |
10452 | main () | |
10453 | { | |
f09359cf | 10454 | |
e6cc62c6 VS |
10455 | ; |
10456 | return 0; | |
10457 | } | |
10458 | _ACEOF | |
10459 | rm -f conftest.o conftest.obj | |
10460 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10461 | (eval $ac_compile) 2>&5 | |
10462 | ac_status=$? | |
10463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10464 | (exit $ac_status); }; then | |
10465 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
10466 | case $ac_file in | |
10467 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
10468 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
10469 | break;; | |
10470 | esac | |
10471 | done | |
a0b9e27f | 10472 | else |
e6cc62c6 VS |
10473 | echo "$as_me: failed program was:" >&5 |
10474 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10475 | ||
10476 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
10477 | See \`config.log' for more details." >&5 | |
10478 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
10479 | See \`config.log' for more details." >&2;} | |
10480 | { (exit 1); exit 1; }; } | |
a0b9e27f | 10481 | fi |
247f5006 | 10482 | |
e6cc62c6 VS |
10483 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
10484 | fi | |
10485 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
10486 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
10487 | OBJEXT=$ac_cv_objext | |
10488 | ac_objext=$OBJEXT | |
10489 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
10490 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
10491 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
10492 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 10493 | else |
e6cc62c6 | 10494 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
10495 | /* confdefs.h. */ |
10496 | _ACEOF | |
10497 | cat confdefs.h >>conftest.$ac_ext | |
10498 | cat >>conftest.$ac_ext <<_ACEOF | |
10499 | /* end confdefs.h. */ | |
10500 | ||
10501 | int | |
10502 | main () | |
10503 | { | |
10504 | #ifndef __GNUC__ | |
10505 | choke me | |
10506 | #endif | |
10507 | ||
10508 | ; | |
10509 | return 0; | |
10510 | } | |
10511 | _ACEOF | |
10512 | rm -f conftest.$ac_objext | |
10513 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 10514 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 10515 | ac_status=$? |
eea650d8 VS |
10516 | grep -v '^ *+' conftest.er1 >conftest.err |
10517 | rm -f conftest.er1 | |
10518 | cat conftest.err >&5 | |
e6cc62c6 VS |
10519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10520 | (exit $ac_status); } && | |
eea650d8 VS |
10521 | { ac_try='test -z "$ac_c_werror_flag" |
10522 | || test ! -s conftest.err' | |
10523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10524 | (eval $ac_try) 2>&5 | |
10525 | ac_status=$? | |
10526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10527 | (exit $ac_status); }; } && | |
10528 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
10529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10530 | (eval $ac_try) 2>&5 | |
10531 | ac_status=$? | |
10532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10533 | (exit $ac_status); }; }; then | |
10534 | ac_compiler_gnu=yes | |
10535 | else | |
10536 | echo "$as_me: failed program was:" >&5 | |
10537 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10538 | ||
10539 | ac_compiler_gnu=no | |
10540 | fi | |
eea650d8 | 10541 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
10542 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
10543 | ||
10544 | fi | |
10545 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
10546 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
10547 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
10548 | ac_test_CFLAGS=${CFLAGS+set} | |
10549 | ac_save_CFLAGS=$CFLAGS | |
10550 | CFLAGS="-g" | |
10551 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
10552 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
10553 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
10554 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10555 | else | |
10556 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
10557 | /* confdefs.h. */ |
10558 | _ACEOF | |
10559 | cat confdefs.h >>conftest.$ac_ext | |
10560 | cat >>conftest.$ac_ext <<_ACEOF | |
10561 | /* end confdefs.h. */ | |
10562 | ||
10563 | int | |
10564 | main () | |
10565 | { | |
10566 | ||
10567 | ; | |
10568 | return 0; | |
10569 | } | |
10570 | _ACEOF | |
10571 | rm -f conftest.$ac_objext | |
10572 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 10573 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 10574 | ac_status=$? |
eea650d8 VS |
10575 | grep -v '^ *+' conftest.er1 >conftest.err |
10576 | rm -f conftest.er1 | |
10577 | cat conftest.err >&5 | |
e6cc62c6 VS |
10578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10579 | (exit $ac_status); } && | |
eea650d8 VS |
10580 | { ac_try='test -z "$ac_c_werror_flag" |
10581 | || test ! -s conftest.err' | |
10582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10583 | (eval $ac_try) 2>&5 | |
10584 | ac_status=$? | |
10585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10586 | (exit $ac_status); }; } && | |
10587 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
10588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10589 | (eval $ac_try) 2>&5 | |
10590 | ac_status=$? | |
10591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10592 | (exit $ac_status); }; }; then | |
10f2d63a VZ |
10593 | ac_cv_prog_cc_g=yes |
10594 | else | |
e6cc62c6 VS |
10595 | echo "$as_me: failed program was:" >&5 |
10596 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 10597 | |
e6cc62c6 | 10598 | ac_cv_prog_cc_g=no |
10f2d63a | 10599 | fi |
eea650d8 | 10600 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
10601 | fi |
10602 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
10603 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
f09359cf | 10604 | if test "$ac_test_CFLAGS" = set; then |
e6cc62c6 | 10605 | CFLAGS=$ac_save_CFLAGS |
f09359cf VS |
10606 | elif test $ac_cv_prog_cc_g = yes; then |
10607 | if test "$GCC" = yes; then | |
10f2d63a VZ |
10608 | CFLAGS="-g -O2" |
10609 | else | |
f09359cf | 10610 | CFLAGS="-g" |
10f2d63a | 10611 | fi |
5c0a20c3 | 10612 | else |
f09359cf VS |
10613 | if test "$GCC" = yes; then |
10614 | CFLAGS="-O2" | |
10615 | else | |
10616 | CFLAGS= | |
10617 | fi | |
10f2d63a | 10618 | fi |
e6cc62c6 VS |
10619 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
10620 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
10621 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
10622 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10623 | else | |
10624 | ac_cv_prog_cc_stdc=no | |
10625 | ac_save_CC=$CC | |
10626 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
10627 | /* confdefs.h. */ |
10628 | _ACEOF | |
10629 | cat confdefs.h >>conftest.$ac_ext | |
10630 | cat >>conftest.$ac_ext <<_ACEOF | |
10631 | /* end confdefs.h. */ | |
10632 | #include <stdarg.h> | |
10633 | #include <stdio.h> | |
10634 | #include <sys/types.h> | |
10635 | #include <sys/stat.h> | |
10636 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
10637 | struct buf { int x; }; | |
10638 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
10639 | static char *e (p, i) | |
10640 | char **p; | |
10641 | int i; | |
10642 | { | |
10643 | return p[i]; | |
10644 | } | |
10645 | static char *f (char * (*g) (char **, int), char **p, ...) | |
10646 | { | |
10647 | char *s; | |
10648 | va_list v; | |
10649 | va_start (v,p); | |
10650 | s = g (p, va_arg (v,int)); | |
10651 | va_end (v); | |
10652 | return s; | |
10653 | } | |
eea650d8 VS |
10654 | |
10655 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
10656 | function prototypes and stuff, but not '\xHH' hex character constants. | |
10657 | These don't provoke an error unfortunately, instead are silently treated | |
10658 | as 'x'. The following induces an error, until -std1 is added to get | |
10659 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
10660 | array size at least. It's necessary to write '\x00'==0 to get something | |
10661 | that's true only with -std1. */ | |
10662 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
10663 | ||
e6cc62c6 VS |
10664 | int test (int i, double x); |
10665 | struct s1 {int (*f) (int a);}; | |
10666 | struct s2 {int (*f) (double a);}; | |
10667 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
10668 | int argc; | |
10669 | char **argv; | |
10670 | int | |
10671 | main () | |
10672 | { | |
10673 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
10674 | ; | |
10675 | return 0; | |
10676 | } | |
10677 | _ACEOF | |
10678 | # Don't try gcc -ansi; that turns off useful extensions and | |
10679 | # breaks some systems' header files. | |
10680 | # AIX -qlanglvl=ansi | |
10681 | # Ultrix and OSF/1 -std1 | |
10682 | # HP-UX 10.20 and later -Ae | |
10683 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
10684 | # SVR4 -Xc -D__EXTENSIONS__ | |
10685 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
10686 | do | |
10687 | CC="$ac_save_CC $ac_arg" | |
10688 | rm -f conftest.$ac_objext | |
10689 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 10690 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 10691 | ac_status=$? |
eea650d8 VS |
10692 | grep -v '^ *+' conftest.er1 >conftest.err |
10693 | rm -f conftest.er1 | |
10694 | cat conftest.err >&5 | |
e6cc62c6 VS |
10695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10696 | (exit $ac_status); } && | |
eea650d8 VS |
10697 | { ac_try='test -z "$ac_c_werror_flag" |
10698 | || test ! -s conftest.err' | |
10699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10700 | (eval $ac_try) 2>&5 | |
10701 | ac_status=$? | |
10702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10703 | (exit $ac_status); }; } && | |
10704 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
10705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10706 | (eval $ac_try) 2>&5 | |
10707 | ac_status=$? | |
10708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10709 | (exit $ac_status); }; }; then | |
10710 | ac_cv_prog_cc_stdc=$ac_arg | |
10711 | break | |
10712 | else | |
10713 | echo "$as_me: failed program was:" >&5 | |
10714 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10715 | ||
10716 | fi | |
eea650d8 | 10717 | rm -f conftest.err conftest.$ac_objext |
e6cc62c6 VS |
10718 | done |
10719 | rm -f conftest.$ac_ext conftest.$ac_objext | |
10720 | CC=$ac_save_CC | |
10721 | ||
10722 | fi | |
10723 | ||
10724 | case "x$ac_cv_prog_cc_stdc" in | |
10725 | x|xno) | |
10726 | echo "$as_me:$LINENO: result: none needed" >&5 | |
10727 | echo "${ECHO_T}none needed" >&6 ;; | |
10728 | *) | |
10729 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
10730 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
10731 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
10732 | esac | |
10733 | ||
10734 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
10735 | # in C++ we need to declare it. In case someone uses the same compiler | |
10736 | # for both compiling C and C++ we need to have the C++ compiler decide | |
10737 | # the declaration of exit, since it's the most demanding environment. | |
10738 | cat >conftest.$ac_ext <<_ACEOF | |
10739 | #ifndef __cplusplus | |
10740 | choke me | |
10741 | #endif | |
10742 | _ACEOF | |
10743 | rm -f conftest.$ac_objext | |
10744 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 10745 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 10746 | ac_status=$? |
eea650d8 VS |
10747 | grep -v '^ *+' conftest.er1 >conftest.err |
10748 | rm -f conftest.er1 | |
10749 | cat conftest.err >&5 | |
e6cc62c6 VS |
10750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10751 | (exit $ac_status); } && | |
eea650d8 VS |
10752 | { ac_try='test -z "$ac_c_werror_flag" |
10753 | || test ! -s conftest.err' | |
10754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10755 | (eval $ac_try) 2>&5 | |
10756 | ac_status=$? | |
10757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10758 | (exit $ac_status); }; } && | |
10759 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
10760 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10761 | (eval $ac_try) 2>&5 | |
10762 | ac_status=$? | |
10763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10764 | (exit $ac_status); }; }; then | |
10765 | for ac_declaration in \ | |
eea650d8 | 10766 | '' \ |
e6cc62c6 VS |
10767 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
10768 | 'extern "C" void std::exit (int); using std::exit;' \ | |
10769 | 'extern "C" void exit (int) throw ();' \ | |
10770 | 'extern "C" void exit (int);' \ | |
10771 | 'void exit (int);' | |
10772 | do | |
10773 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
10774 | /* confdefs.h. */ |
10775 | _ACEOF | |
10776 | cat confdefs.h >>conftest.$ac_ext | |
10777 | cat >>conftest.$ac_ext <<_ACEOF | |
10778 | /* end confdefs.h. */ | |
130711ba | 10779 | $ac_declaration |
eea650d8 | 10780 | #include <stdlib.h> |
e6cc62c6 VS |
10781 | int |
10782 | main () | |
10783 | { | |
10784 | exit (42); | |
10785 | ; | |
10786 | return 0; | |
10787 | } | |
10788 | _ACEOF | |
10789 | rm -f conftest.$ac_objext | |
10790 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 10791 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 10792 | ac_status=$? |
eea650d8 VS |
10793 | grep -v '^ *+' conftest.er1 >conftest.err |
10794 | rm -f conftest.er1 | |
10795 | cat conftest.err >&5 | |
e6cc62c6 VS |
10796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10797 | (exit $ac_status); } && | |
eea650d8 VS |
10798 | { ac_try='test -z "$ac_c_werror_flag" |
10799 | || test ! -s conftest.err' | |
10800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10801 | (eval $ac_try) 2>&5 | |
10802 | ac_status=$? | |
10803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10804 | (exit $ac_status); }; } && | |
10805 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
10806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10807 | (eval $ac_try) 2>&5 | |
10808 | ac_status=$? | |
10809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10810 | (exit $ac_status); }; }; then | |
10811 | : | |
10812 | else | |
10813 | echo "$as_me: failed program was:" >&5 | |
10814 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10815 | ||
10816 | continue | |
10817 | fi | |
eea650d8 | 10818 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 10819 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
10820 | /* confdefs.h. */ |
10821 | _ACEOF | |
10822 | cat confdefs.h >>conftest.$ac_ext | |
10823 | cat >>conftest.$ac_ext <<_ACEOF | |
10824 | /* end confdefs.h. */ | |
10825 | $ac_declaration | |
10826 | int | |
10827 | main () | |
10828 | { | |
10829 | exit (42); | |
10830 | ; | |
10831 | return 0; | |
10832 | } | |
10833 | _ACEOF | |
10834 | rm -f conftest.$ac_objext | |
10835 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 10836 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 10837 | ac_status=$? |
eea650d8 VS |
10838 | grep -v '^ *+' conftest.er1 >conftest.err |
10839 | rm -f conftest.er1 | |
10840 | cat conftest.err >&5 | |
e6cc62c6 VS |
10841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10842 | (exit $ac_status); } && | |
eea650d8 VS |
10843 | { ac_try='test -z "$ac_c_werror_flag" |
10844 | || test ! -s conftest.err' | |
10845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10846 | (eval $ac_try) 2>&5 | |
10847 | ac_status=$? | |
10848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10849 | (exit $ac_status); }; } && | |
10850 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
10851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10852 | (eval $ac_try) 2>&5 | |
10853 | ac_status=$? | |
10854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10855 | (exit $ac_status); }; }; then | |
10856 | break | |
10857 | else | |
10858 | echo "$as_me: failed program was:" >&5 | |
10859 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10860 | ||
10861 | fi | |
eea650d8 | 10862 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
10863 | done |
10864 | rm -f conftest* | |
10865 | if test -n "$ac_declaration"; then | |
10866 | echo '#ifdef __cplusplus' >>confdefs.h | |
10867 | echo $ac_declaration >>confdefs.h | |
10868 | echo '#endif' >>confdefs.h | |
10869 | fi | |
10870 | ||
10871 | else | |
10872 | echo "$as_me: failed program was:" >&5 | |
10873 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10874 | ||
10875 | fi | |
eea650d8 | 10876 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
10877 | ac_ext=c |
10878 | ac_cpp='$CPP $CPPFLAGS' | |
10879 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10880 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10881 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10f2d63a VZ |
10882 | |
10883 | ||
e6cc62c6 VS |
10884 | |
10885 | ac_ext=c | |
10886 | ac_cpp='$CPP $CPPFLAGS' | |
10887 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10888 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10889 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10890 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
10891 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
10f2d63a VZ |
10892 | # On Suns, sometimes $CPP names a directory. |
10893 | if test -n "$CPP" && test -d "$CPP"; then | |
10894 | CPP= | |
10895 | fi | |
10896 | if test -z "$CPP"; then | |
e6cc62c6 VS |
10897 | if test "${ac_cv_prog_CPP+set}" = set; then |
10898 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10899 | else | |
10900 | # Double quotes because CPP needs to be expanded | |
10901 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
10902 | do | |
10903 | ac_preproc_ok=false | |
10904 | for ac_c_preproc_warn_flag in '' yes | |
10905 | do | |
10906 | # Use a header file that comes with gcc, so configuring glibc | |
10907 | # with a fresh cross-compiler works. | |
10908 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10909 | # <limits.h> exists even on freestanding compilers. | |
10f2d63a | 10910 | # On the NeXT, cc -E runs the code through the compiler's parser, |
e6cc62c6 VS |
10911 | # not just through cpp. "Syntax error" is here to catch this case. |
10912 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
10913 | /* confdefs.h. */ |
10914 | _ACEOF | |
10915 | cat confdefs.h >>conftest.$ac_ext | |
10916 | cat >>conftest.$ac_ext <<_ACEOF | |
10917 | /* end confdefs.h. */ | |
10918 | #ifdef __STDC__ | |
10919 | # include <limits.h> | |
10920 | #else | |
10921 | # include <assert.h> | |
10922 | #endif | |
eea650d8 | 10923 | Syntax error |
e6cc62c6 VS |
10924 | _ACEOF |
10925 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10926 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10927 | ac_status=$? | |
10928 | grep -v '^ *+' conftest.er1 >conftest.err | |
10929 | rm -f conftest.er1 | |
10930 | cat conftest.err >&5 | |
10931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10932 | (exit $ac_status); } >/dev/null; then | |
10933 | if test -s conftest.err; then | |
10934 | ac_cpp_err=$ac_c_preproc_warn_flag | |
eea650d8 | 10935 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
10936 | else |
10937 | ac_cpp_err= | |
10938 | fi | |
10f2d63a | 10939 | else |
e6cc62c6 VS |
10940 | ac_cpp_err=yes |
10941 | fi | |
10942 | if test -z "$ac_cpp_err"; then | |
a0b9e27f | 10943 | : |
247f5006 | 10944 | else |
e6cc62c6 VS |
10945 | echo "$as_me: failed program was:" >&5 |
10946 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10947 | ||
10948 | # Broken: fails on valid input. | |
10949 | continue | |
10950 | fi | |
10951 | rm -f conftest.err conftest.$ac_ext | |
10952 | ||
10953 | # OK, works on sane cases. Now check whether non-existent headers | |
10954 | # can be detected and how. | |
10955 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
10956 | /* confdefs.h. */ |
10957 | _ACEOF | |
10958 | cat confdefs.h >>conftest.$ac_ext | |
10959 | cat >>conftest.$ac_ext <<_ACEOF | |
10960 | /* end confdefs.h. */ | |
10961 | #include <ac_nonexistent.h> | |
10962 | _ACEOF | |
10963 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10964 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10965 | ac_status=$? | |
10966 | grep -v '^ *+' conftest.er1 >conftest.err | |
10967 | rm -f conftest.er1 | |
10968 | cat conftest.err >&5 | |
10969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10970 | (exit $ac_status); } >/dev/null; then | |
10971 | if test -s conftest.err; then | |
10972 | ac_cpp_err=$ac_c_preproc_warn_flag | |
eea650d8 | 10973 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
10974 | else |
10975 | ac_cpp_err= | |
10976 | fi | |
10f2d63a | 10977 | else |
e6cc62c6 | 10978 | ac_cpp_err=yes |
579d8138 | 10979 | fi |
e6cc62c6 VS |
10980 | if test -z "$ac_cpp_err"; then |
10981 | # Broken: success on invalid input. | |
10982 | continue | |
10983 | else | |
10984 | echo "$as_me: failed program was:" >&5 | |
10985 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10986 | ||
10987 | # Passes both tests. | |
10988 | ac_preproc_ok=: | |
10989 | break | |
52127426 | 10990 | fi |
e6cc62c6 VS |
10991 | rm -f conftest.err conftest.$ac_ext |
10992 | ||
10993 | done | |
10994 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
10995 | rm -f conftest.err conftest.$ac_ext | |
10996 | if $ac_preproc_ok; then | |
10997 | break | |
8284b0c5 | 10998 | fi |
e6cc62c6 VS |
10999 | |
11000 | done | |
11001 | ac_cv_prog_CPP=$CPP | |
11002 | ||
11003 | fi | |
11004 | CPP=$ac_cv_prog_CPP | |
11005 | else | |
11006 | ac_cv_prog_CPP=$CPP | |
11007 | fi | |
11008 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
11009 | echo "${ECHO_T}$CPP" >&6 | |
11010 | ac_preproc_ok=false | |
11011 | for ac_c_preproc_warn_flag in '' yes | |
11012 | do | |
11013 | # Use a header file that comes with gcc, so configuring glibc | |
11014 | # with a fresh cross-compiler works. | |
11015 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11016 | # <limits.h> exists even on freestanding compilers. | |
11017 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
11018 | # not just through cpp. "Syntax error" is here to catch this case. | |
11019 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
11020 | /* confdefs.h. */ |
11021 | _ACEOF | |
11022 | cat confdefs.h >>conftest.$ac_ext | |
11023 | cat >>conftest.$ac_ext <<_ACEOF | |
11024 | /* end confdefs.h. */ | |
11025 | #ifdef __STDC__ | |
11026 | # include <limits.h> | |
11027 | #else | |
11028 | # include <assert.h> | |
11029 | #endif | |
eea650d8 | 11030 | Syntax error |
e6cc62c6 VS |
11031 | _ACEOF |
11032 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11033 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11034 | ac_status=$? | |
11035 | grep -v '^ *+' conftest.er1 >conftest.err | |
11036 | rm -f conftest.er1 | |
11037 | cat conftest.err >&5 | |
11038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11039 | (exit $ac_status); } >/dev/null; then | |
11040 | if test -s conftest.err; then | |
11041 | ac_cpp_err=$ac_c_preproc_warn_flag | |
eea650d8 | 11042 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
11043 | else |
11044 | ac_cpp_err= | |
11045 | fi | |
11046 | else | |
11047 | ac_cpp_err=yes | |
11048 | fi | |
11049 | if test -z "$ac_cpp_err"; then | |
11050 | : | |
11051 | else | |
11052 | echo "$as_me: failed program was:" >&5 | |
11053 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11054 | ||
11055 | # Broken: fails on valid input. | |
11056 | continue | |
11057 | fi | |
11058 | rm -f conftest.err conftest.$ac_ext | |
11059 | ||
11060 | # OK, works on sane cases. Now check whether non-existent headers | |
11061 | # can be detected and how. | |
11062 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
11063 | /* confdefs.h. */ |
11064 | _ACEOF | |
11065 | cat confdefs.h >>conftest.$ac_ext | |
11066 | cat >>conftest.$ac_ext <<_ACEOF | |
11067 | /* end confdefs.h. */ | |
11068 | #include <ac_nonexistent.h> | |
11069 | _ACEOF | |
11070 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11071 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11072 | ac_status=$? | |
11073 | grep -v '^ *+' conftest.er1 >conftest.err | |
11074 | rm -f conftest.er1 | |
11075 | cat conftest.err >&5 | |
11076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11077 | (exit $ac_status); } >/dev/null; then | |
11078 | if test -s conftest.err; then | |
11079 | ac_cpp_err=$ac_c_preproc_warn_flag | |
eea650d8 | 11080 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
11081 | else |
11082 | ac_cpp_err= | |
11083 | fi | |
11084 | else | |
11085 | ac_cpp_err=yes | |
11086 | fi | |
11087 | if test -z "$ac_cpp_err"; then | |
11088 | # Broken: success on invalid input. | |
11089 | continue | |
11090 | else | |
11091 | echo "$as_me: failed program was:" >&5 | |
11092 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11093 | ||
11094 | # Passes both tests. | |
11095 | ac_preproc_ok=: | |
11096 | break | |
a0b9e27f | 11097 | fi |
e6cc62c6 VS |
11098 | rm -f conftest.err conftest.$ac_ext |
11099 | ||
11100 | done | |
11101 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
11102 | rm -f conftest.err conftest.$ac_ext | |
11103 | if $ac_preproc_ok; then | |
11104 | : | |
11105 | else | |
11106 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
11107 | See \`config.log' for more details." >&5 | |
11108 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
11109 | See \`config.log' for more details." >&2;} | |
11110 | { (exit 1); exit 1; }; } | |
11111 | fi | |
11112 | ||
11113 | ac_ext=c | |
11114 | ac_cpp='$CPP $CPPFLAGS' | |
11115 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11116 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11117 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11118 | ||
11119 | ||
11120 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
11121 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
11122 | if test "${ac_cv_prog_egrep+set}" = set; then | |
11123 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 11124 | else |
e6cc62c6 VS |
11125 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
11126 | then ac_cv_prog_egrep='grep -E' | |
11127 | else ac_cv_prog_egrep='egrep' | |
11128 | fi | |
10f2d63a | 11129 | fi |
e6cc62c6 VS |
11130 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
11131 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
11132 | EGREP=$ac_cv_prog_egrep | |
11133 | ||
10f2d63a | 11134 | |
e6cc62c6 VS |
11135 | if test $ac_cv_c_compiler_gnu = yes; then |
11136 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
11137 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
11138 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
11139 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11140 | else |
11141 | ac_pattern="Autoconf.*'x'" | |
e6cc62c6 | 11142 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
11143 | /* confdefs.h. */ |
11144 | _ACEOF | |
11145 | cat confdefs.h >>conftest.$ac_ext | |
11146 | cat >>conftest.$ac_ext <<_ACEOF | |
11147 | /* end confdefs.h. */ | |
10f2d63a VZ |
11148 | #include <sgtty.h> |
11149 | Autoconf TIOCGETP | |
e6cc62c6 | 11150 | _ACEOF |
10f2d63a | 11151 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
e6cc62c6 | 11152 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
10f2d63a VZ |
11153 | ac_cv_prog_gcc_traditional=yes |
11154 | else | |
10f2d63a VZ |
11155 | ac_cv_prog_gcc_traditional=no |
11156 | fi | |
11157 | rm -f conftest* | |
11158 | ||
8284b0c5 | 11159 | |
10f2d63a | 11160 | if test $ac_cv_prog_gcc_traditional = no; then |
e6cc62c6 | 11161 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
11162 | /* confdefs.h. */ |
11163 | _ACEOF | |
11164 | cat confdefs.h >>conftest.$ac_ext | |
11165 | cat >>conftest.$ac_ext <<_ACEOF | |
11166 | /* end confdefs.h. */ | |
10f2d63a VZ |
11167 | #include <termio.h> |
11168 | Autoconf TCGETA | |
e6cc62c6 | 11169 | _ACEOF |
10f2d63a | 11170 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
e6cc62c6 | 11171 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
10f2d63a VZ |
11172 | ac_cv_prog_gcc_traditional=yes |
11173 | fi | |
11174 | rm -f conftest* | |
11175 | ||
11176 | fi | |
11177 | fi | |
e6cc62c6 VS |
11178 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
11179 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
10f2d63a VZ |
11180 | if test $ac_cv_prog_gcc_traditional = yes; then |
11181 | CC="$CC -traditional" | |
11182 | fi | |
11183 | fi | |
11184 | ||
8284b0c5 MB |
11185 | |
11186 | ||
e6cc62c6 VS |
11187 | |
11188 | ac_ext=cc | |
1e487827 | 11189 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
11190 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
11191 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11192 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
8284b0c5 | 11193 | |
698dcdb6 | 11194 | |
ec603395 | 11195 | CXXFLAGS=${CXXFLAGS:=} |
e6cc62c6 VS |
11196 | ac_ext=cc |
11197 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11198 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11199 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11200 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11201 | if test -n "$ac_tool_prefix"; then | |
11202 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
11203 | do | |
11204 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
11205 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
11206 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11207 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11208 | if test "${ac_cv_prog_CXX+set}" = set; then | |
11209 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11210 | else |
11211 | if test -n "$CXX"; then | |
11212 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
11213 | else | |
e6cc62c6 VS |
11214 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11215 | for as_dir in $PATH | |
11216 | do | |
11217 | IFS=$as_save_IFS | |
11218 | test -z "$as_dir" && as_dir=. | |
11219 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11220 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11221 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
11222 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11223 | break 2 | |
11224 | fi | |
11225 | done | |
11226 | done | |
11227 | ||
10f2d63a VZ |
11228 | fi |
11229 | fi | |
e6cc62c6 | 11230 | CXX=$ac_cv_prog_CXX |
10f2d63a | 11231 | if test -n "$CXX"; then |
e6cc62c6 VS |
11232 | echo "$as_me:$LINENO: result: $CXX" >&5 |
11233 | echo "${ECHO_T}$CXX" >&6 | |
10f2d63a | 11234 | else |
e6cc62c6 VS |
11235 | echo "$as_me:$LINENO: result: no" >&5 |
11236 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
11237 | fi |
11238 | ||
e6cc62c6 VS |
11239 | test -n "$CXX" && break |
11240 | done | |
11241 | fi | |
11242 | if test -z "$CXX"; then | |
11243 | ac_ct_CXX=$CXX | |
11244 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
11245 | do | |
11246 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11247 | set dummy $ac_prog; ac_word=$2 | |
11248 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11249 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11250 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
11251 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11252 | else | |
11253 | if test -n "$ac_ct_CXX"; then | |
11254 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
11255 | else | |
11256 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11257 | for as_dir in $PATH | |
11258 | do | |
11259 | IFS=$as_save_IFS | |
11260 | test -z "$as_dir" && as_dir=. | |
11261 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11262 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11263 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
11264 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11265 | break 2 | |
11266 | fi | |
11267 | done | |
10f2d63a | 11268 | done |
a0b9e27f | 11269 | |
8284b0c5 | 11270 | fi |
a0b9e27f | 11271 | fi |
e6cc62c6 VS |
11272 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
11273 | if test -n "$ac_ct_CXX"; then | |
11274 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
11275 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
11276 | else | |
11277 | echo "$as_me:$LINENO: result: no" >&5 | |
11278 | echo "${ECHO_T}no" >&6 | |
a0b9e27f | 11279 | fi |
10f2d63a | 11280 | |
e6cc62c6 VS |
11281 | test -n "$ac_ct_CXX" && break |
11282 | done | |
11283 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
11284 | ||
11285 | CXX=$ac_ct_CXX | |
11286 | fi | |
11287 | ||
11288 | ||
11289 | # Provide some information about the compiler. | |
11290 | echo "$as_me:$LINENO:" \ | |
11291 | "checking for C++ compiler version" >&5 | |
11292 | ac_compiler=`set X $ac_compile; echo $2` | |
11293 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
11294 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
11295 | ac_status=$? | |
11296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11297 | (exit $ac_status); } | |
11298 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
11299 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
11300 | ac_status=$? | |
11301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11302 | (exit $ac_status); } | |
11303 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
11304 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
11305 | ac_status=$? | |
11306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11307 | (exit $ac_status); } | |
11308 | ||
11309 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
11310 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
11311 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
11312 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11313 | else | |
11314 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
11315 | /* confdefs.h. */ |
11316 | _ACEOF | |
11317 | cat confdefs.h >>conftest.$ac_ext | |
11318 | cat >>conftest.$ac_ext <<_ACEOF | |
11319 | /* end confdefs.h. */ | |
11320 | ||
11321 | int | |
11322 | main () | |
11323 | { | |
11324 | #ifndef __GNUC__ | |
11325 | choke me | |
11326 | #endif | |
10f2d63a | 11327 | |
e6cc62c6 VS |
11328 | ; |
11329 | return 0; | |
11330 | } | |
11331 | _ACEOF | |
11332 | rm -f conftest.$ac_objext | |
11333 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 11334 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 11335 | ac_status=$? |
eea650d8 VS |
11336 | grep -v '^ *+' conftest.er1 >conftest.err |
11337 | rm -f conftest.er1 | |
11338 | cat conftest.err >&5 | |
e6cc62c6 VS |
11339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11340 | (exit $ac_status); } && | |
eea650d8 VS |
11341 | { ac_try='test -z "$ac_cxx_werror_flag" |
11342 | || test ! -s conftest.err' | |
11343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11344 | (eval $ac_try) 2>&5 | |
11345 | ac_status=$? | |
11346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11347 | (exit $ac_status); }; } && | |
11348 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
11349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11350 | (eval $ac_try) 2>&5 | |
11351 | ac_status=$? | |
11352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11353 | (exit $ac_status); }; }; then | |
11354 | ac_compiler_gnu=yes | |
11355 | else | |
11356 | echo "$as_me: failed program was:" >&5 | |
11357 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11358 | ||
11359 | ac_compiler_gnu=no | |
11360 | fi | |
eea650d8 | 11361 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
11362 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
11363 | ||
11364 | fi | |
11365 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
11366 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
11367 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
11368 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
11369 | ac_save_CXXFLAGS=$CXXFLAGS | |
11370 | CXXFLAGS="-g" | |
11371 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
11372 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
11373 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
11374 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11375 | else | |
11376 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
11377 | /* confdefs.h. */ |
11378 | _ACEOF | |
11379 | cat confdefs.h >>conftest.$ac_ext | |
11380 | cat >>conftest.$ac_ext <<_ACEOF | |
11381 | /* end confdefs.h. */ | |
11382 | ||
11383 | int | |
11384 | main () | |
11385 | { | |
f09359cf | 11386 | |
e6cc62c6 VS |
11387 | ; |
11388 | return 0; | |
11389 | } | |
11390 | _ACEOF | |
11391 | rm -f conftest.$ac_objext | |
11392 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 11393 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 11394 | ac_status=$? |
eea650d8 VS |
11395 | grep -v '^ *+' conftest.er1 >conftest.err |
11396 | rm -f conftest.er1 | |
11397 | cat conftest.err >&5 | |
e6cc62c6 VS |
11398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11399 | (exit $ac_status); } && | |
eea650d8 VS |
11400 | { ac_try='test -z "$ac_cxx_werror_flag" |
11401 | || test ! -s conftest.err' | |
11402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11403 | (eval $ac_try) 2>&5 | |
11404 | ac_status=$? | |
11405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11406 | (exit $ac_status); }; } && | |
11407 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
11408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11409 | (eval $ac_try) 2>&5 | |
11410 | ac_status=$? | |
11411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11412 | (exit $ac_status); }; }; then | |
10f2d63a VZ |
11413 | ac_cv_prog_cxx_g=yes |
11414 | else | |
e6cc62c6 VS |
11415 | echo "$as_me: failed program was:" >&5 |
11416 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 11417 | |
e6cc62c6 | 11418 | ac_cv_prog_cxx_g=no |
10f2d63a | 11419 | fi |
eea650d8 | 11420 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
11421 | fi |
11422 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
11423 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
f09359cf | 11424 | if test "$ac_test_CXXFLAGS" = set; then |
e6cc62c6 | 11425 | CXXFLAGS=$ac_save_CXXFLAGS |
f09359cf VS |
11426 | elif test $ac_cv_prog_cxx_g = yes; then |
11427 | if test "$GXX" = yes; then | |
10f2d63a VZ |
11428 | CXXFLAGS="-g -O2" |
11429 | else | |
f09359cf | 11430 | CXXFLAGS="-g" |
10f2d63a | 11431 | fi |
5c0a20c3 | 11432 | else |
f09359cf VS |
11433 | if test "$GXX" = yes; then |
11434 | CXXFLAGS="-O2" | |
11435 | else | |
11436 | CXXFLAGS= | |
11437 | fi | |
10f2d63a | 11438 | fi |
e6cc62c6 | 11439 | for ac_declaration in \ |
eea650d8 | 11440 | '' \ |
e6cc62c6 VS |
11441 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
11442 | 'extern "C" void std::exit (int); using std::exit;' \ | |
11443 | 'extern "C" void exit (int) throw ();' \ | |
11444 | 'extern "C" void exit (int);' \ | |
11445 | 'void exit (int);' | |
11446 | do | |
11447 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
11448 | /* confdefs.h. */ |
11449 | _ACEOF | |
11450 | cat confdefs.h >>conftest.$ac_ext | |
11451 | cat >>conftest.$ac_ext <<_ACEOF | |
11452 | /* end confdefs.h. */ | |
130711ba | 11453 | $ac_declaration |
eea650d8 | 11454 | #include <stdlib.h> |
e6cc62c6 VS |
11455 | int |
11456 | main () | |
11457 | { | |
11458 | exit (42); | |
11459 | ; | |
11460 | return 0; | |
11461 | } | |
11462 | _ACEOF | |
11463 | rm -f conftest.$ac_objext | |
11464 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 11465 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 11466 | ac_status=$? |
eea650d8 VS |
11467 | grep -v '^ *+' conftest.er1 >conftest.err |
11468 | rm -f conftest.er1 | |
11469 | cat conftest.err >&5 | |
e6cc62c6 VS |
11470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11471 | (exit $ac_status); } && | |
eea650d8 VS |
11472 | { ac_try='test -z "$ac_cxx_werror_flag" |
11473 | || test ! -s conftest.err' | |
11474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11475 | (eval $ac_try) 2>&5 | |
11476 | ac_status=$? | |
11477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11478 | (exit $ac_status); }; } && | |
11479 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
11480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11481 | (eval $ac_try) 2>&5 | |
11482 | ac_status=$? | |
11483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11484 | (exit $ac_status); }; }; then | |
11485 | : | |
11486 | else | |
11487 | echo "$as_me: failed program was:" >&5 | |
11488 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11489 | ||
11490 | continue | |
11491 | fi | |
eea650d8 | 11492 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 11493 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
11494 | /* confdefs.h. */ |
11495 | _ACEOF | |
11496 | cat confdefs.h >>conftest.$ac_ext | |
11497 | cat >>conftest.$ac_ext <<_ACEOF | |
11498 | /* end confdefs.h. */ | |
11499 | $ac_declaration | |
11500 | int | |
11501 | main () | |
11502 | { | |
11503 | exit (42); | |
11504 | ; | |
11505 | return 0; | |
11506 | } | |
11507 | _ACEOF | |
11508 | rm -f conftest.$ac_objext | |
11509 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 11510 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 11511 | ac_status=$? |
eea650d8 VS |
11512 | grep -v '^ *+' conftest.er1 >conftest.err |
11513 | rm -f conftest.er1 | |
11514 | cat conftest.err >&5 | |
e6cc62c6 VS |
11515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11516 | (exit $ac_status); } && | |
eea650d8 VS |
11517 | { ac_try='test -z "$ac_cxx_werror_flag" |
11518 | || test ! -s conftest.err' | |
11519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11520 | (eval $ac_try) 2>&5 | |
11521 | ac_status=$? | |
11522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11523 | (exit $ac_status); }; } && | |
11524 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
11525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11526 | (eval $ac_try) 2>&5 | |
11527 | ac_status=$? | |
11528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11529 | (exit $ac_status); }; }; then | |
11530 | break | |
11531 | else | |
11532 | echo "$as_me: failed program was:" >&5 | |
11533 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11534 | ||
11535 | fi | |
eea650d8 | 11536 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
11537 | done |
11538 | rm -f conftest* | |
11539 | if test -n "$ac_declaration"; then | |
11540 | echo '#ifdef __cplusplus' >>confdefs.h | |
11541 | echo $ac_declaration >>confdefs.h | |
11542 | echo '#endif' >>confdefs.h | |
11543 | fi | |
11544 | ||
11545 | ac_ext=cc | |
11546 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11547 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11548 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11549 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
10f2d63a VZ |
11550 | |
11551 | ||
10f2d63a | 11552 | ac_ext=c |
10f2d63a | 11553 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
11554 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
11555 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11556 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 MB |
11557 | |
11558 | ||
e6cc62c6 VS |
11559 | if test -n "$ac_tool_prefix"; then |
11560 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
11561 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
11562 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11563 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11564 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
11565 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11566 | else |
11567 | if test -n "$RANLIB"; then | |
11568 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
11569 | else | |
e6cc62c6 VS |
11570 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11571 | for as_dir in $PATH | |
11572 | do | |
11573 | IFS=$as_save_IFS | |
11574 | test -z "$as_dir" && as_dir=. | |
11575 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11576 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11577 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
11578 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11579 | break 2 | |
11580 | fi | |
11581 | done | |
11582 | done | |
11583 | ||
10f2d63a VZ |
11584 | fi |
11585 | fi | |
e6cc62c6 | 11586 | RANLIB=$ac_cv_prog_RANLIB |
10f2d63a | 11587 | if test -n "$RANLIB"; then |
e6cc62c6 VS |
11588 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
11589 | echo "${ECHO_T}$RANLIB" >&6 | |
11590 | else | |
11591 | echo "$as_me:$LINENO: result: no" >&5 | |
11592 | echo "${ECHO_T}no" >&6 | |
11593 | fi | |
11594 | ||
11595 | fi | |
11596 | if test -z "$ac_cv_prog_RANLIB"; then | |
11597 | ac_ct_RANLIB=$RANLIB | |
11598 | # Extract the first word of "ranlib", so it can be a program name with args. | |
11599 | set dummy ranlib; ac_word=$2 | |
11600 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11601 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11602 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
11603 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
328a083c | 11604 | else |
e6cc62c6 VS |
11605 | if test -n "$ac_ct_RANLIB"; then |
11606 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
11607 | else | |
11608 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11609 | for as_dir in $PATH | |
11610 | do | |
11611 | IFS=$as_save_IFS | |
11612 | test -z "$as_dir" && as_dir=. | |
11613 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11614 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11615 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
11616 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11617 | break 2 | |
11618 | fi | |
11619 | done | |
11620 | done | |
11621 | ||
11622 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
11623 | fi | |
11624 | fi | |
11625 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
11626 | if test -n "$ac_ct_RANLIB"; then | |
11627 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
11628 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
11629 | else | |
11630 | echo "$as_me:$LINENO: result: no" >&5 | |
11631 | echo "${ECHO_T}no" >&6 | |
11632 | fi | |
11633 | ||
11634 | RANLIB=$ac_ct_RANLIB | |
11635 | else | |
11636 | RANLIB="$ac_cv_prog_RANLIB" | |
328a083c RR |
11637 | fi |
11638 | ||
10f2d63a VZ |
11639 | |
11640 | # Extract the first word of "ar", so it can be a program name with args. | |
11641 | set dummy ar; ac_word=$2 | |
e6cc62c6 VS |
11642 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11643 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11644 | if test "${ac_cv_prog_AR+set}" = set; then | |
11645 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11646 | else |
11647 | if test -n "$AR"; then | |
11648 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
11649 | else | |
e6cc62c6 VS |
11650 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11651 | for as_dir in $PATH | |
11652 | do | |
11653 | IFS=$as_save_IFS | |
11654 | test -z "$as_dir" && as_dir=. | |
11655 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11656 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11657 | ac_cv_prog_AR="ar" | |
11658 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11659 | break 2 | |
11660 | fi | |
11661 | done | |
11662 | done | |
11663 | ||
10f2d63a VZ |
11664 | fi |
11665 | fi | |
e6cc62c6 | 11666 | AR=$ac_cv_prog_AR |
10f2d63a | 11667 | if test -n "$AR"; then |
e6cc62c6 VS |
11668 | echo "$as_me:$LINENO: result: $AR" >&5 |
11669 | echo "${ECHO_T}$AR" >&6 | |
10f2d63a | 11670 | else |
e6cc62c6 VS |
11671 | echo "$as_me:$LINENO: result: no" >&5 |
11672 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
11673 | fi |
11674 | ||
911740e7 VS |
11675 | if test "x$AR" = "x" ; then |
11676 | { { echo "$as_me:$LINENO: error: ar is needed to build wxWindows" >&5 | |
11677 | echo "$as_me: error: ar is needed to build wxWindows" >&2;} | |
11678 | { (exit 1); exit 1; }; } | |
11679 | fi | |
8284b0c5 | 11680 | |
6054113a | 11681 | # Find a good install program. We prefer a C program (faster), |
10f2d63a VZ |
11682 | # so one script is as good as another. But avoid the broken or |
11683 | # incompatible versions: | |
11684 | # SysV /etc/install, /usr/sbin/install | |
11685 | # SunOS /usr/etc/install | |
11686 | # IRIX /sbin/install | |
11687 | # AIX /bin/install | |
e6cc62c6 | 11688 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
f09359cf | 11689 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
10f2d63a VZ |
11690 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
11691 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
eea650d8 | 11692 | # OS/2's system install, which has a completely different semantic |
10f2d63a | 11693 | # ./install, which can be erroneously created by make from ./install.sh. |
e6cc62c6 VS |
11694 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
11695 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
10f2d63a | 11696 | if test -z "$INSTALL"; then |
e6cc62c6 VS |
11697 | if test "${ac_cv_path_install+set}" = set; then |
11698 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11699 | else | |
11700 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11701 | for as_dir in $PATH | |
11702 | do | |
11703 | IFS=$as_save_IFS | |
11704 | test -z "$as_dir" && as_dir=. | |
11705 | # Account for people who put trailing slashes in PATH elements. | |
11706 | case $as_dir/ in | |
11707 | ./ | .// | /cC/* | \ | |
11708 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
eea650d8 | 11709 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
e6cc62c6 VS |
11710 | /usr/ucb/* ) ;; |
11711 | *) | |
11712 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
11713 | # Don't use installbsd from OSF since it installs stuff as root | |
11714 | # by default. | |
11715 | for ac_prog in ginstall scoinst install; do | |
11716 | for ac_exec_ext in '' $ac_executable_extensions; do | |
eea650d8 VS |
11717 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
11718 | if test $ac_prog = install && | |
11719 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
11720 | # AIX install. It has an incompatible calling convention. | |
11721 | : | |
11722 | elif test $ac_prog = install && | |
11723 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
11724 | # program-specific install script used by HP pwplus--don't use. | |
11725 | : | |
11726 | else | |
11727 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
11728 | break 3 | |
11729 | fi | |
11730 | fi | |
10f2d63a | 11731 | done |
e6cc62c6 VS |
11732 | done |
11733 | ;; | |
11734 | esac | |
11735 | done | |
11736 | ||
10f2d63a VZ |
11737 | |
11738 | fi | |
11739 | if test "${ac_cv_path_install+set}" = set; then | |
e6cc62c6 | 11740 | INSTALL=$ac_cv_path_install |
10f2d63a VZ |
11741 | else |
11742 | # As a last resort, use the slow shell script. We don't cache a | |
11743 | # path for INSTALL within a source directory, because that will | |
11744 | # break other packages using the cache if that directory is | |
11745 | # removed, or if the path is relative. | |
e6cc62c6 | 11746 | INSTALL=$ac_install_sh |
10f2d63a VZ |
11747 | fi |
11748 | fi | |
e6cc62c6 VS |
11749 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
11750 | echo "${ECHO_T}$INSTALL" >&6 | |
10f2d63a VZ |
11751 | |
11752 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
11753 | # It thinks the first close brace ends the variable substitution. | |
11754 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
11755 | ||
e6cc62c6 | 11756 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
f09359cf | 11757 | |
10f2d63a VZ |
11758 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
11759 | ||
8284b0c5 | 11760 | |
1d1b75ac VZ |
11761 | case ${INSTALL} in |
11762 | /* ) # Absolute | |
11763 | ;; | |
4f5a7f74 VZ |
11764 | ?:* ) # Drive letter, considered as absolute. |
11765 | ;; | |
3bd8fb5f | 11766 | *) |
1d1b75ac VZ |
11767 | INSTALL=`pwd`/${INSTALL} ;; |
11768 | esac | |
11769 | ||
4f5a7f74 VZ |
11770 | case ${host} in |
11771 | *-hp-hpux* ) | |
11772 | INSTALL_DIR="mkdir" | |
11773 | ;; | |
11774 | ||
11775 | *) INSTALL_DIR="$INSTALL -d" | |
11776 | ;; | |
11777 | esac | |
11778 | ||
8284b0c5 | 11779 | |
6054113a GD |
11780 | case "${host}" in |
11781 | ||
b5853384 | 11782 | powerpc-*-darwin* ) |
eb99ae0b GD |
11783 | INSTALL_PROGRAM="cp -fp" |
11784 | INSTALL_DATA="cp -fp" | |
6054113a GD |
11785 | ;; |
11786 | *) | |
11787 | ;; | |
d6853540 | 11788 | esac |
698dcdb6 | 11789 | |
10f2d63a VZ |
11790 | # Extract the first word of "strip", so it can be a program name with args. |
11791 | set dummy strip; ac_word=$2 | |
e6cc62c6 VS |
11792 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11793 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11794 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
11795 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11796 | else |
11797 | if test -n "$STRIP"; then | |
11798 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
11799 | else | |
e6cc62c6 VS |
11800 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11801 | for as_dir in $PATH | |
11802 | do | |
11803 | IFS=$as_save_IFS | |
11804 | test -z "$as_dir" && as_dir=. | |
11805 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11806 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11807 | ac_cv_prog_STRIP="strip" | |
11808 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11809 | break 2 | |
11810 | fi | |
11811 | done | |
11812 | done | |
11813 | ||
10f2d63a VZ |
11814 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
11815 | fi | |
11816 | fi | |
e6cc62c6 | 11817 | STRIP=$ac_cv_prog_STRIP |
10f2d63a | 11818 | if test -n "$STRIP"; then |
e6cc62c6 VS |
11819 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
11820 | echo "${ECHO_T}$STRIP" >&6 | |
10f2d63a | 11821 | else |
e6cc62c6 VS |
11822 | echo "$as_me:$LINENO: result: no" >&5 |
11823 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
11824 | fi |
11825 | ||
5c6fa7d2 | 11826 | |
e6cc62c6 VS |
11827 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 |
11828 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
11829 | if test "${wx_cv_prog_makeisgnu+set}" = set; then | |
11830 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 11831 | else |
e6cc62c6 | 11832 | |
414eab6d | 11833 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | |
d558c907 | 11834 | egrep -s GNU > /dev/null); then |
414eab6d VZ |
11835 | wx_cv_prog_makeisgnu="yes" |
11836 | else | |
11837 | wx_cv_prog_makeisgnu="no" | |
11838 | fi | |
11839 | ||
11840 | fi | |
e6cc62c6 VS |
11841 | echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5 |
11842 | echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6 | |
414eab6d VZ |
11843 | |
11844 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
11845 | IF_GNU_MAKE="" | |
11846 | else | |
11847 | IF_GNU_MAKE="#" | |
11848 | fi | |
11849 | ||
8284b0c5 MB |
11850 | |
11851 | ||
414eab6d | 11852 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then |
e6cc62c6 VS |
11853 | echo "$as_me:$LINENO: checking if make supports VPATH" >&5 |
11854 | echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6 | |
11855 | if test "${wx_cv_prog_makevpath+set}" = set; then | |
11856 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
04e7a216 | 11857 | else |
e6cc62c6 | 11858 | |
10f2d63a VZ |
11859 | cat - << EOF > confMake |
11860 | check : file | |
11861 | cp \$? \$@ | |
11862 | cp \$? final_file | |
11863 | EOF | |
11864 | ||
11865 | if test ! -d sub ; then | |
11866 | mkdir sub | |
11867 | fi | |
11868 | echo dummy > sub/file | |
f6bcfd97 | 11869 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
11870 | RESULT=$? |
11871 | rm -f sub/file check final_file confMake | |
11872 | rmdir sub | |
11873 | if test "$RESULT" = 0; then | |
04e7a216 | 11874 | wx_cv_prog_makevpath="yes" |
10f2d63a | 11875 | else |
04e7a216 VZ |
11876 | wx_cv_prog_makevpath="no" |
11877 | fi | |
11878 | ||
11879 | fi | |
e6cc62c6 VS |
11880 | echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5 |
11881 | echo "${ECHO_T}$wx_cv_prog_makevpath" >&6 | |
04e7a216 VZ |
11882 | |
11883 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
e6cc62c6 | 11884 | { { echo "$as_me:$LINENO: error: |
5c6fa7d2 RR |
11885 | You need a make-utility that is able to use the variable |
11886 | VPATH correctly. | |
11887 | If your version of make does not support VPATH correctly, | |
11888 | please install GNU-make (possibly as gmake), and start | |
11889 | configure with the following command: | |
11890 | export MAKE=gmake; ./configure for sh-type shells | |
11891 | setenv MAKE gmake; ./configure for csh-type shells | |
11892 | Also please do remember to use gmake in this case every time | |
11893 | you are trying to compile. | |
e6cc62c6 VS |
11894 | " >&5 |
11895 | echo "$as_me: error: | |
11896 | You need a make-utility that is able to use the variable | |
11897 | VPATH correctly. | |
11898 | If your version of make does not support VPATH correctly, | |
11899 | please install GNU-make (possibly as gmake), and start | |
11900 | configure with the following command: | |
11901 | export MAKE=gmake; ./configure for sh-type shells | |
11902 | setenv MAKE gmake; ./configure for csh-type shells | |
11903 | Also please do remember to use gmake in this case every time | |
11904 | you are trying to compile. | |
11905 | " >&2;} | |
11906 | { (exit 1); exit 1; }; } | |
11907 | fi fi | |
e6cc62c6 VS |
11908 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
11909 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
11910 | LN_S=$as_ln_s | |
11911 | if test "$LN_S" = "ln -s"; then | |
11912 | echo "$as_me:$LINENO: result: yes" >&5 | |
11913 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 11914 | else |
e6cc62c6 VS |
11915 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
11916 | echo "${ECHO_T}no, using $LN_S" >&6 | |
5c6fa7d2 | 11917 | fi |
5c6fa7d2 | 11918 | |
247f5006 | 11919 | |
2b5f62a0 VZ |
11920 | case "${host}" in |
11921 | *-pc-os2_emx | *-pc-os2-emx ) | |
2b5f62a0 | 11922 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then |
e6cc62c6 VS |
11923 | echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5 |
11924 | echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6 | |
11925 | if test "${ac_cv_lib_cExt_drand48+set}" = set; then | |
11926 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2b5f62a0 | 11927 | else |
e6cc62c6 | 11928 | ac_check_lib_save_LIBS=$LIBS |
2b5f62a0 | 11929 | LIBS="-lcExt $LIBS" |
e6cc62c6 | 11930 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
11931 | /* confdefs.h. */ |
11932 | _ACEOF | |
11933 | cat confdefs.h >>conftest.$ac_ext | |
11934 | cat >>conftest.$ac_ext <<_ACEOF | |
11935 | /* end confdefs.h. */ | |
11936 | ||
2b5f62a0 | 11937 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
11938 | #ifdef __cplusplus |
11939 | extern "C" | |
11940 | #endif | |
2b5f62a0 | 11941 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
11942 | builtin and then its argument prototype would still apply. */ |
11943 | char drand48 (); | |
11944 | int | |
11945 | main () | |
11946 | { | |
11947 | drand48 (); | |
11948 | ; | |
11949 | return 0; | |
11950 | } | |
11951 | _ACEOF | |
11952 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11953 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 11954 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 11955 | ac_status=$? |
eea650d8 VS |
11956 | grep -v '^ *+' conftest.er1 >conftest.err |
11957 | rm -f conftest.er1 | |
11958 | cat conftest.err >&5 | |
e6cc62c6 VS |
11959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11960 | (exit $ac_status); } && | |
eea650d8 VS |
11961 | { ac_try='test -z "$ac_c_werror_flag" |
11962 | || test ! -s conftest.err' | |
11963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11964 | (eval $ac_try) 2>&5 | |
11965 | ac_status=$? | |
11966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11967 | (exit $ac_status); }; } && | |
11968 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
11969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11970 | (eval $ac_try) 2>&5 | |
11971 | ac_status=$? | |
11972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11973 | (exit $ac_status); }; }; then | |
11974 | ac_cv_lib_cExt_drand48=yes | |
11975 | else | |
11976 | echo "$as_me: failed program was:" >&5 | |
11977 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11978 | ||
11979 | ac_cv_lib_cExt_drand48=no | |
11980 | fi | |
eea650d8 VS |
11981 | rm -f conftest.err conftest.$ac_objext \ |
11982 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
11983 | LIBS=$ac_check_lib_save_LIBS |
11984 | fi | |
11985 | echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5 | |
11986 | echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6 | |
11987 | if test $ac_cv_lib_cExt_drand48 = yes; then | |
2b5f62a0 | 11988 | LIBS="$LIBS -lcExt" |
2b5f62a0 VZ |
11989 | fi |
11990 | ||
11991 | else | |
11992 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
11993 | fi | |
73d617c9 MB |
11994 | echo "$as_me:$LINENO: checking for gcc 3 or later" >&5 |
11995 | echo $ECHO_N "checking for gcc 3 or later... $ECHO_C" >&6 | |
11996 | if test "${wx_cv_gcc3+set}" = set; then | |
11997 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11998 | else | |
11999 | ||
12000 | cat >conftest.$ac_ext <<_ACEOF | |
73d617c9 MB |
12001 | /* confdefs.h. */ |
12002 | _ACEOF | |
12003 | cat confdefs.h >>conftest.$ac_ext | |
12004 | cat >>conftest.$ac_ext <<_ACEOF | |
12005 | /* end confdefs.h. */ | |
3527f29c | 12006 | |
73d617c9 MB |
12007 | int |
12008 | main () | |
12009 | { | |
12010 | ||
12011 | #if (__GNUC__ < 3) | |
12012 | #error old gcc | |
12013 | #endif | |
12014 | ||
12015 | ; | |
12016 | return 0; | |
12017 | } | |
12018 | _ACEOF | |
12019 | rm -f conftest.$ac_objext | |
12020 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 12021 | (eval $ac_compile) 2>conftest.er1 |
73d617c9 | 12022 | ac_status=$? |
eea650d8 VS |
12023 | grep -v '^ *+' conftest.er1 >conftest.err |
12024 | rm -f conftest.er1 | |
12025 | cat conftest.err >&5 | |
73d617c9 MB |
12026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12027 | (exit $ac_status); } && | |
eea650d8 VS |
12028 | { ac_try='test -z "$ac_c_werror_flag" |
12029 | || test ! -s conftest.err' | |
12030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12031 | (eval $ac_try) 2>&5 | |
12032 | ac_status=$? | |
12033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12034 | (exit $ac_status); }; } && | |
12035 | { ac_try='test -s conftest.$ac_objext' | |
73d617c9 MB |
12036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12037 | (eval $ac_try) 2>&5 | |
12038 | ac_status=$? | |
12039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12040 | (exit $ac_status); }; }; then | |
12041 | ||
12042 | wx_cv_gcc3=yes | |
12043 | ||
12044 | else | |
12045 | echo "$as_me: failed program was:" >&5 | |
12046 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12047 | ||
12048 | ||
12049 | wx_cv_gcc3=no | |
12050 | ||
12051 | ||
12052 | fi | |
eea650d8 | 12053 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
73d617c9 MB |
12054 | |
12055 | fi | |
12056 | echo "$as_me:$LINENO: result: $wx_cv_gcc3" >&5 | |
12057 | echo "${ECHO_T}$wx_cv_gcc3" >&6 | |
12058 | if test "$wx_cv_gcc3" = "no"; then | |
12059 | LIBS="$LIBS -lstdcpp" | |
12060 | else | |
12061 | LIBS="$LIBS -lstdcxx" | |
12062 | fi | |
2b5f62a0 VZ |
12063 | ;; |
12064 | esac | |
12065 | ||
a0b9e27f | 12066 | |
01aa5863 VS |
12067 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then |
12068 | echo "$as_me:$LINENO: checking for strings.h" >&5 | |
12069 | echo $ECHO_N "checking for strings.h... $ECHO_C" >&6 | |
12070 | if test "${ac_cv_header_strings_h+set}" = set; then | |
12071 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12072 | else | |
12073 | ac_cv_header_strings_h=no | |
12074 | fi | |
12075 | echo "$as_me:$LINENO: result: $ac_cv_header_strings_h" >&5 | |
12076 | echo "${ECHO_T}$ac_cv_header_strings_h" >&6 | |
12077 | if test "$ac_cv_header_strings_h" = "no"; then | |
12078 | echo "$as_me:$LINENO: result: forced no into cache" >&5 | |
12079 | echo "${ECHO_T}forced no into cache" >&6 | |
12080 | else | |
12081 | { echo "$as_me:$LINENO: WARNING: strings.h is not compatible with Mac OS X" >&5 | |
12082 | echo "$as_me: WARNING: strings.h is not compatible with Mac OS X" >&2;} | |
12083 | fi | |
12084 | fi | |
12085 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
e6cc62c6 VS |
12086 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
12087 | if test "${ac_cv_header_stdc+set}" = set; then | |
12088 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12089 | else | |
12090 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
12091 | /* confdefs.h. */ |
12092 | _ACEOF | |
12093 | cat confdefs.h >>conftest.$ac_ext | |
12094 | cat >>conftest.$ac_ext <<_ACEOF | |
12095 | /* end confdefs.h. */ | |
12096 | #include <stdlib.h> | |
12097 | #include <stdarg.h> | |
12098 | #include <string.h> | |
12099 | #include <float.h> | |
247f5006 | 12100 | |
e6cc62c6 VS |
12101 | int |
12102 | main () | |
12103 | { | |
90dd450c | 12104 | |
e6cc62c6 VS |
12105 | ; |
12106 | return 0; | |
12107 | } | |
12108 | _ACEOF | |
12109 | rm -f conftest.$ac_objext | |
12110 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 12111 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 12112 | ac_status=$? |
eea650d8 VS |
12113 | grep -v '^ *+' conftest.er1 >conftest.err |
12114 | rm -f conftest.er1 | |
12115 | cat conftest.err >&5 | |
e6cc62c6 VS |
12116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12117 | (exit $ac_status); } && | |
eea650d8 VS |
12118 | { ac_try='test -z "$ac_c_werror_flag" |
12119 | || test ! -s conftest.err' | |
12120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12121 | (eval $ac_try) 2>&5 | |
12122 | ac_status=$? | |
12123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12124 | (exit $ac_status); }; } && | |
12125 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
12126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12127 | (eval $ac_try) 2>&5 | |
12128 | ac_status=$? | |
12129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12130 | (exit $ac_status); }; }; then | |
12131 | ac_cv_header_stdc=yes | |
8284b0c5 | 12132 | else |
e6cc62c6 VS |
12133 | echo "$as_me: failed program was:" >&5 |
12134 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12135 | ||
12136 | ac_cv_header_stdc=no | |
21d1c967 | 12137 | fi |
eea650d8 | 12138 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 12139 | |
e6cc62c6 VS |
12140 | if test $ac_cv_header_stdc = yes; then |
12141 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
12142 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
12143 | /* confdefs.h. */ |
12144 | _ACEOF | |
12145 | cat confdefs.h >>conftest.$ac_ext | |
12146 | cat >>conftest.$ac_ext <<_ACEOF | |
12147 | /* end confdefs.h. */ | |
12148 | #include <string.h> | |
12149 | ||
12150 | _ACEOF | |
12151 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12152 | $EGREP "memchr" >/dev/null 2>&1; then | |
12153 | : | |
12154 | else | |
12155 | ac_cv_header_stdc=no | |
3a922bb4 | 12156 | fi |
a0b9e27f | 12157 | rm -f conftest* |
e6cc62c6 | 12158 | |
90dd450c | 12159 | fi |
e6cc62c6 VS |
12160 | |
12161 | if test $ac_cv_header_stdc = yes; then | |
12162 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
12163 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
12164 | /* confdefs.h. */ |
12165 | _ACEOF | |
12166 | cat confdefs.h >>conftest.$ac_ext | |
12167 | cat >>conftest.$ac_ext <<_ACEOF | |
12168 | /* end confdefs.h. */ | |
12169 | #include <stdlib.h> | |
12170 | ||
12171 | _ACEOF | |
12172 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12173 | $EGREP "free" >/dev/null 2>&1; then | |
12174 | : | |
a0b9e27f | 12175 | else |
e6cc62c6 | 12176 | ac_cv_header_stdc=no |
21d1c967 | 12177 | fi |
e6cc62c6 | 12178 | rm -f conftest* |
247f5006 VZ |
12179 | |
12180 | fi | |
e6cc62c6 VS |
12181 | |
12182 | if test $ac_cv_header_stdc = yes; then | |
12183 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
12184 | if test "$cross_compiling" = yes; then | |
12185 | : | |
12186 | else | |
12187 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
12188 | /* confdefs.h. */ |
12189 | _ACEOF | |
12190 | cat confdefs.h >>conftest.$ac_ext | |
12191 | cat >>conftest.$ac_ext <<_ACEOF | |
12192 | /* end confdefs.h. */ | |
12193 | #include <ctype.h> | |
12194 | #if ((' ' & 0x0FF) == 0x020) | |
12195 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
12196 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
12197 | #else | |
12198 | # define ISLOWER(c) \ | |
eea650d8 VS |
12199 | (('a' <= (c) && (c) <= 'i') \ |
12200 | || ('j' <= (c) && (c) <= 'r') \ | |
12201 | || ('s' <= (c) && (c) <= 'z')) | |
e6cc62c6 VS |
12202 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
12203 | #endif | |
12204 | ||
12205 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
12206 | int | |
12207 | main () | |
12208 | { | |
12209 | int i; | |
12210 | for (i = 0; i < 256; i++) | |
12211 | if (XOR (islower (i), ISLOWER (i)) | |
eea650d8 | 12212 | || toupper (i) != TOUPPER (i)) |
e6cc62c6 VS |
12213 | exit(2); |
12214 | exit (0); | |
12215 | } | |
12216 | _ACEOF | |
12217 | rm -f conftest$ac_exeext | |
12218 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12219 | (eval $ac_link) 2>&5 | |
12220 | ac_status=$? | |
12221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12222 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
12223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12224 | (eval $ac_try) 2>&5 | |
12225 | ac_status=$? | |
12226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12227 | (exit $ac_status); }; }; then | |
12228 | : | |
a0b9e27f | 12229 | else |
e6cc62c6 VS |
12230 | echo "$as_me: program exited with status $ac_status" >&5 |
12231 | echo "$as_me: failed program was:" >&5 | |
12232 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12233 | ||
12234 | ( exit $ac_status ) | |
12235 | ac_cv_header_stdc=no | |
12236 | fi | |
eea650d8 | 12237 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
12238 | fi |
12239 | fi | |
12240 | fi | |
12241 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
12242 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
12243 | if test $ac_cv_header_stdc = yes; then | |
12244 | ||
12245 | cat >>confdefs.h <<\_ACEOF | |
12246 | #define STDC_HEADERS 1 | |
12247 | _ACEOF | |
12248 | ||
a0b9e27f | 12249 | fi |
e6cc62c6 VS |
12250 | |
12251 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
12252 | ||
12253 | ||
12254 | ||
12255 | ||
12256 | ||
12257 | ||
12258 | ||
12259 | ||
12260 | ||
12261 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
eea650d8 | 12262 | inttypes.h stdint.h unistd.h |
e6cc62c6 VS |
12263 | do |
12264 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12265 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12266 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12267 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12268 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12269 | else | |
12270 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
12271 | /* confdefs.h. */ |
12272 | _ACEOF | |
12273 | cat confdefs.h >>conftest.$ac_ext | |
12274 | cat >>conftest.$ac_ext <<_ACEOF | |
12275 | /* end confdefs.h. */ | |
12276 | $ac_includes_default | |
12277 | ||
12278 | #include <$ac_header> | |
12279 | _ACEOF | |
12280 | rm -f conftest.$ac_objext | |
12281 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 12282 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 12283 | ac_status=$? |
eea650d8 VS |
12284 | grep -v '^ *+' conftest.er1 >conftest.err |
12285 | rm -f conftest.er1 | |
12286 | cat conftest.err >&5 | |
e6cc62c6 VS |
12287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12288 | (exit $ac_status); } && | |
eea650d8 VS |
12289 | { ac_try='test -z "$ac_c_werror_flag" |
12290 | || test ! -s conftest.err' | |
12291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12292 | (eval $ac_try) 2>&5 | |
12293 | ac_status=$? | |
12294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12295 | (exit $ac_status); }; } && | |
12296 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
12297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12298 | (eval $ac_try) 2>&5 | |
12299 | ac_status=$? | |
12300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12301 | (exit $ac_status); }; }; then | |
12302 | eval "$as_ac_Header=yes" | |
12303 | else | |
12304 | echo "$as_me: failed program was:" >&5 | |
12305 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12306 | ||
12307 | eval "$as_ac_Header=no" | |
12308 | fi | |
eea650d8 | 12309 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
12310 | fi |
12311 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12312 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12313 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12314 | cat >>confdefs.h <<_ACEOF | |
12315 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12316 | _ACEOF | |
12317 | ||
12318 | fi | |
12319 | ||
a0b9e27f | 12320 | done |
90dd450c | 12321 | |
e6cc62c6 VS |
12322 | |
12323 | ||
12324 | for ac_header in strings.h | |
21d1c967 | 12325 | do |
e6cc62c6 VS |
12326 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12327 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12328 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12329 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12330 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12331 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12332 | fi | |
12333 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12334 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12335 | else | |
12336 | # Is the header compilable? | |
12337 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12338 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12339 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
12340 | /* confdefs.h. */ |
12341 | _ACEOF | |
12342 | cat confdefs.h >>conftest.$ac_ext | |
12343 | cat >>conftest.$ac_ext <<_ACEOF | |
12344 | /* end confdefs.h. */ | |
12345 | $ac_includes_default | |
12346 | #include <$ac_header> | |
12347 | _ACEOF | |
12348 | rm -f conftest.$ac_objext | |
12349 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 12350 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 12351 | ac_status=$? |
eea650d8 VS |
12352 | grep -v '^ *+' conftest.er1 >conftest.err |
12353 | rm -f conftest.er1 | |
12354 | cat conftest.err >&5 | |
e6cc62c6 VS |
12355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12356 | (exit $ac_status); } && | |
eea650d8 VS |
12357 | { ac_try='test -z "$ac_c_werror_flag" |
12358 | || test ! -s conftest.err' | |
12359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12360 | (eval $ac_try) 2>&5 | |
12361 | ac_status=$? | |
12362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12363 | (exit $ac_status); }; } && | |
12364 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
12365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12366 | (eval $ac_try) 2>&5 | |
12367 | ac_status=$? | |
12368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12369 | (exit $ac_status); }; }; then | |
12370 | ac_header_compiler=yes | |
12371 | else | |
12372 | echo "$as_me: failed program was:" >&5 | |
12373 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12374 | ||
12375 | ac_header_compiler=no | |
12376 | fi | |
eea650d8 | 12377 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
12378 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12379 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12380 | ||
12381 | # Is the header present? | |
12382 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12383 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12384 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
12385 | /* confdefs.h. */ |
12386 | _ACEOF | |
12387 | cat confdefs.h >>conftest.$ac_ext | |
12388 | cat >>conftest.$ac_ext <<_ACEOF | |
12389 | /* end confdefs.h. */ | |
12390 | #include <$ac_header> | |
12391 | _ACEOF | |
12392 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12393 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12394 | ac_status=$? | |
12395 | grep -v '^ *+' conftest.er1 >conftest.err | |
12396 | rm -f conftest.er1 | |
12397 | cat conftest.err >&5 | |
12398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12399 | (exit $ac_status); } >/dev/null; then | |
12400 | if test -s conftest.err; then | |
12401 | ac_cpp_err=$ac_c_preproc_warn_flag | |
eea650d8 | 12402 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
12403 | else |
12404 | ac_cpp_err= | |
12405 | fi | |
12406 | else | |
12407 | ac_cpp_err=yes | |
12408 | fi | |
12409 | if test -z "$ac_cpp_err"; then | |
12410 | ac_header_preproc=yes | |
12411 | else | |
12412 | echo "$as_me: failed program was:" >&5 | |
12413 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12414 | ||
12415 | ac_header_preproc=no | |
12416 | fi | |
12417 | rm -f conftest.err conftest.$ac_ext | |
12418 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12419 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12420 | ||
12421 | # So? What about this header? | |
eea650d8 VS |
12422 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
12423 | yes:no: ) | |
e6cc62c6 VS |
12424 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
12425 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
eea650d8 VS |
12426 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
12427 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12428 | ac_header_preproc=yes | |
e6cc62c6 | 12429 | ;; |
eea650d8 | 12430 | no:yes:* ) |
e6cc62c6 VS |
12431 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
12432 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
eea650d8 VS |
12433 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
12434 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12435 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12436 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12437 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12438 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
12439 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
12440 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
eea650d8 VS |
12441 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
12442 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
12443 | ( |
12444 | cat <<\_ASBOX | |
eea650d8 VS |
12445 | ## ----------------------------------------- ## |
12446 | ## Report this to wx-dev@lists.wxwindows.org ## | |
12447 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
12448 | _ASBOX |
12449 | ) | | |
12450 | sed "s/^/$as_me: WARNING: /" >&2 | |
12451 | ;; | |
12452 | esac | |
12453 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12454 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12455 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12456 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12457 | else | |
eea650d8 | 12458 | eval "$as_ac_Header=\$ac_header_preproc" |
a0b9e27f | 12459 | fi |
e6cc62c6 VS |
12460 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12461 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12462 | ||
a0b9e27f | 12463 | fi |
e6cc62c6 VS |
12464 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12465 | cat >>confdefs.h <<_ACEOF | |
12466 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12467 | _ACEOF | |
12468 | ||
12469 | fi | |
12470 | ||
12471 | done | |
12472 | ||
e6cc62c6 VS |
12473 | |
12474 | ||
12475 | for ac_header in stdlib.h | |
12476 | do | |
12477 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12478 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12479 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12480 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12481 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12482 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12483 | fi | |
12484 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12485 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12486 | else | |
12487 | # Is the header compilable? | |
12488 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12489 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12490 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
12491 | /* confdefs.h. */ |
12492 | _ACEOF | |
12493 | cat confdefs.h >>conftest.$ac_ext | |
12494 | cat >>conftest.$ac_ext <<_ACEOF | |
12495 | /* end confdefs.h. */ | |
12496 | $ac_includes_default | |
12497 | #include <$ac_header> | |
12498 | _ACEOF | |
12499 | rm -f conftest.$ac_objext | |
12500 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 12501 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 12502 | ac_status=$? |
eea650d8 VS |
12503 | grep -v '^ *+' conftest.er1 >conftest.err |
12504 | rm -f conftest.er1 | |
12505 | cat conftest.err >&5 | |
e6cc62c6 VS |
12506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12507 | (exit $ac_status); } && | |
eea650d8 VS |
12508 | { ac_try='test -z "$ac_c_werror_flag" |
12509 | || test ! -s conftest.err' | |
12510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12511 | (eval $ac_try) 2>&5 | |
12512 | ac_status=$? | |
12513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12514 | (exit $ac_status); }; } && | |
12515 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
12516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12517 | (eval $ac_try) 2>&5 | |
12518 | ac_status=$? | |
12519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12520 | (exit $ac_status); }; }; then | |
12521 | ac_header_compiler=yes | |
12522 | else | |
12523 | echo "$as_me: failed program was:" >&5 | |
12524 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12525 | ||
12526 | ac_header_compiler=no | |
12527 | fi | |
eea650d8 | 12528 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
12529 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12530 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12531 | ||
12532 | # Is the header present? | |
12533 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12534 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12535 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
12536 | /* confdefs.h. */ |
12537 | _ACEOF | |
12538 | cat confdefs.h >>conftest.$ac_ext | |
12539 | cat >>conftest.$ac_ext <<_ACEOF | |
12540 | /* end confdefs.h. */ | |
12541 | #include <$ac_header> | |
12542 | _ACEOF | |
12543 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12544 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12545 | ac_status=$? | |
12546 | grep -v '^ *+' conftest.er1 >conftest.err | |
12547 | rm -f conftest.er1 | |
12548 | cat conftest.err >&5 | |
12549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12550 | (exit $ac_status); } >/dev/null; then | |
12551 | if test -s conftest.err; then | |
12552 | ac_cpp_err=$ac_c_preproc_warn_flag | |
eea650d8 | 12553 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
12554 | else |
12555 | ac_cpp_err= | |
12556 | fi | |
12557 | else | |
12558 | ac_cpp_err=yes | |
12559 | fi | |
12560 | if test -z "$ac_cpp_err"; then | |
12561 | ac_header_preproc=yes | |
12562 | else | |
12563 | echo "$as_me: failed program was:" >&5 | |
12564 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12565 | ||
12566 | ac_header_preproc=no | |
12567 | fi | |
12568 | rm -f conftest.err conftest.$ac_ext | |
12569 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12570 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12571 | ||
12572 | # So? What about this header? | |
eea650d8 VS |
12573 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
12574 | yes:no: ) | |
e6cc62c6 VS |
12575 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
12576 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
eea650d8 VS |
12577 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
12578 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12579 | ac_header_preproc=yes | |
e6cc62c6 | 12580 | ;; |
eea650d8 | 12581 | no:yes:* ) |
e6cc62c6 VS |
12582 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
12583 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
eea650d8 VS |
12584 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
12585 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12586 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12587 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12588 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12589 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
12590 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
12591 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
eea650d8 VS |
12592 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
12593 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
12594 | ( |
12595 | cat <<\_ASBOX | |
eea650d8 VS |
12596 | ## ----------------------------------------- ## |
12597 | ## Report this to wx-dev@lists.wxwindows.org ## | |
12598 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
12599 | _ASBOX |
12600 | ) | | |
12601 | sed "s/^/$as_me: WARNING: /" >&2 | |
12602 | ;; | |
12603 | esac | |
12604 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12605 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12606 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12607 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 12608 | else |
eea650d8 | 12609 | eval "$as_ac_Header=\$ac_header_preproc" |
e6cc62c6 VS |
12610 | fi |
12611 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12612 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12613 | ||
21d1c967 | 12614 | fi |
e6cc62c6 VS |
12615 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12616 | cat >>confdefs.h <<_ACEOF | |
12617 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12618 | _ACEOF | |
12619 | ||
12620 | fi | |
12621 | ||
21d1c967 | 12622 | done |
4f14bcd8 | 12623 | |
5c6fa7d2 | 12624 | |
e6cc62c6 | 12625 | for ac_header in malloc.h |
21d1c967 | 12626 | do |
e6cc62c6 VS |
12627 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12628 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12629 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12630 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12631 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12632 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12633 | fi | |
12634 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12635 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12636 | else | |
12637 | # Is the header compilable? | |
12638 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12639 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12640 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
12641 | /* confdefs.h. */ |
12642 | _ACEOF | |
12643 | cat confdefs.h >>conftest.$ac_ext | |
12644 | cat >>conftest.$ac_ext <<_ACEOF | |
12645 | /* end confdefs.h. */ | |
12646 | $ac_includes_default | |
12647 | #include <$ac_header> | |
12648 | _ACEOF | |
12649 | rm -f conftest.$ac_objext | |
12650 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 12651 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 12652 | ac_status=$? |
eea650d8 VS |
12653 | grep -v '^ *+' conftest.er1 >conftest.err |
12654 | rm -f conftest.er1 | |
12655 | cat conftest.err >&5 | |
e6cc62c6 VS |
12656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12657 | (exit $ac_status); } && | |
eea650d8 VS |
12658 | { ac_try='test -z "$ac_c_werror_flag" |
12659 | || test ! -s conftest.err' | |
12660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12661 | (eval $ac_try) 2>&5 | |
12662 | ac_status=$? | |
12663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12664 | (exit $ac_status); }; } && | |
12665 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
12666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12667 | (eval $ac_try) 2>&5 | |
12668 | ac_status=$? | |
12669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12670 | (exit $ac_status); }; }; then | |
12671 | ac_header_compiler=yes | |
12672 | else | |
12673 | echo "$as_me: failed program was:" >&5 | |
12674 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12675 | ||
12676 | ac_header_compiler=no | |
12677 | fi | |
eea650d8 | 12678 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
12679 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12680 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12681 | ||
12682 | # Is the header present? | |
12683 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12684 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12685 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
12686 | /* confdefs.h. */ |
12687 | _ACEOF | |
12688 | cat confdefs.h >>conftest.$ac_ext | |
12689 | cat >>conftest.$ac_ext <<_ACEOF | |
12690 | /* end confdefs.h. */ | |
12691 | #include <$ac_header> | |
12692 | _ACEOF | |
12693 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12694 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12695 | ac_status=$? | |
12696 | grep -v '^ *+' conftest.er1 >conftest.err | |
12697 | rm -f conftest.er1 | |
12698 | cat conftest.err >&5 | |
12699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12700 | (exit $ac_status); } >/dev/null; then | |
12701 | if test -s conftest.err; then | |
12702 | ac_cpp_err=$ac_c_preproc_warn_flag | |
eea650d8 | 12703 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
12704 | else |
12705 | ac_cpp_err= | |
12706 | fi | |
12707 | else | |
12708 | ac_cpp_err=yes | |
12709 | fi | |
12710 | if test -z "$ac_cpp_err"; then | |
12711 | ac_header_preproc=yes | |
12712 | else | |
12713 | echo "$as_me: failed program was:" >&5 | |
12714 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12715 | ||
12716 | ac_header_preproc=no | |
12717 | fi | |
12718 | rm -f conftest.err conftest.$ac_ext | |
12719 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12720 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12721 | ||
12722 | # So? What about this header? | |
eea650d8 VS |
12723 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
12724 | yes:no: ) | |
e6cc62c6 VS |
12725 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
12726 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
eea650d8 VS |
12727 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
12728 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12729 | ac_header_preproc=yes | |
e6cc62c6 | 12730 | ;; |
eea650d8 | 12731 | no:yes:* ) |
e6cc62c6 VS |
12732 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
12733 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
eea650d8 VS |
12734 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
12735 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12736 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12737 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12738 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12739 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
12740 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
12741 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
eea650d8 VS |
12742 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
12743 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
12744 | ( |
12745 | cat <<\_ASBOX | |
eea650d8 VS |
12746 | ## ----------------------------------------- ## |
12747 | ## Report this to wx-dev@lists.wxwindows.org ## | |
12748 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
12749 | _ASBOX |
12750 | ) | | |
12751 | sed "s/^/$as_me: WARNING: /" >&2 | |
12752 | ;; | |
12753 | esac | |
12754 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12755 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12756 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12757 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12758 | else | |
eea650d8 | 12759 | eval "$as_ac_Header=\$ac_header_preproc" |
d4158b5d | 12760 | fi |
e6cc62c6 VS |
12761 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12762 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12763 | ||
21d1c967 | 12764 | fi |
e6cc62c6 VS |
12765 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12766 | cat >>confdefs.h <<_ACEOF | |
12767 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12768 | _ACEOF | |
12769 | ||
12770 | fi | |
12771 | ||
12772 | done | |
12773 | ||
12774 | ||
12775 | for ac_header in unistd.h | |
12776 | do | |
12777 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12778 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12779 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12780 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12781 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12782 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12783 | fi | |
12784 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12785 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12786 | else | |
12787 | # Is the header compilable? | |
12788 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12789 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12790 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
12791 | /* confdefs.h. */ |
12792 | _ACEOF | |
12793 | cat confdefs.h >>conftest.$ac_ext | |
12794 | cat >>conftest.$ac_ext <<_ACEOF | |
12795 | /* end confdefs.h. */ | |
12796 | $ac_includes_default | |
12797 | #include <$ac_header> | |
12798 | _ACEOF | |
12799 | rm -f conftest.$ac_objext | |
12800 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 12801 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 12802 | ac_status=$? |
eea650d8 VS |
12803 | grep -v '^ *+' conftest.er1 >conftest.err |
12804 | rm -f conftest.er1 | |
12805 | cat conftest.err >&5 | |
e6cc62c6 VS |
12806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12807 | (exit $ac_status); } && | |
eea650d8 VS |
12808 | { ac_try='test -z "$ac_c_werror_flag" |
12809 | || test ! -s conftest.err' | |
12810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12811 | (eval $ac_try) 2>&5 | |
12812 | ac_status=$? | |
12813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12814 | (exit $ac_status); }; } && | |
12815 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
12816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12817 | (eval $ac_try) 2>&5 | |
12818 | ac_status=$? | |
12819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12820 | (exit $ac_status); }; }; then | |
12821 | ac_header_compiler=yes | |
12822 | else | |
12823 | echo "$as_me: failed program was:" >&5 | |
12824 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12825 | ||
12826 | ac_header_compiler=no | |
12827 | fi | |
eea650d8 | 12828 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
12829 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12830 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12831 | ||
12832 | # Is the header present? | |
12833 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12834 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12835 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
12836 | /* confdefs.h. */ |
12837 | _ACEOF | |
12838 | cat confdefs.h >>conftest.$ac_ext | |
12839 | cat >>conftest.$ac_ext <<_ACEOF | |
12840 | /* end confdefs.h. */ | |
12841 | #include <$ac_header> | |
12842 | _ACEOF | |
12843 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12844 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12845 | ac_status=$? | |
12846 | grep -v '^ *+' conftest.er1 >conftest.err | |
12847 | rm -f conftest.er1 | |
12848 | cat conftest.err >&5 | |
12849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12850 | (exit $ac_status); } >/dev/null; then | |
12851 | if test -s conftest.err; then | |
12852 | ac_cpp_err=$ac_c_preproc_warn_flag | |
eea650d8 | 12853 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
12854 | else |
12855 | ac_cpp_err= | |
12856 | fi | |
a0b9e27f | 12857 | else |
e6cc62c6 VS |
12858 | ac_cpp_err=yes |
12859 | fi | |
12860 | if test -z "$ac_cpp_err"; then | |
12861 | ac_header_preproc=yes | |
12862 | else | |
12863 | echo "$as_me: failed program was:" >&5 | |
12864 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12865 | ||
12866 | ac_header_preproc=no | |
12867 | fi | |
12868 | rm -f conftest.err conftest.$ac_ext | |
12869 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12870 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12871 | ||
12872 | # So? What about this header? | |
eea650d8 VS |
12873 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
12874 | yes:no: ) | |
e6cc62c6 VS |
12875 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
12876 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
eea650d8 VS |
12877 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
12878 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12879 | ac_header_preproc=yes | |
e6cc62c6 | 12880 | ;; |
eea650d8 | 12881 | no:yes:* ) |
e6cc62c6 VS |
12882 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
12883 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
eea650d8 VS |
12884 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
12885 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12886 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12887 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12888 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12889 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
12890 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
12891 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
eea650d8 VS |
12892 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
12893 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
12894 | ( |
12895 | cat <<\_ASBOX | |
eea650d8 VS |
12896 | ## ----------------------------------------- ## |
12897 | ## Report this to wx-dev@lists.wxwindows.org ## | |
12898 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
12899 | _ASBOX |
12900 | ) | | |
12901 | sed "s/^/$as_me: WARNING: /" >&2 | |
12902 | ;; | |
12903 | esac | |
12904 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12905 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12906 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12907 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12908 | else | |
eea650d8 | 12909 | eval "$as_ac_Header=\$ac_header_preproc" |
e6cc62c6 VS |
12910 | fi |
12911 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12912 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12913 | ||
12914 | fi | |
12915 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12916 | cat >>confdefs.h <<_ACEOF | |
12917 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12918 | _ACEOF | |
12919 | ||
d4158b5d | 12920 | fi |
e6cc62c6 | 12921 | |
21d1c967 | 12922 | done |
f6bcfd97 | 12923 | |
e6cc62c6 VS |
12924 | |
12925 | for ac_header in wchar.h | |
12926 | do | |
12927 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12928 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12929 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12930 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12931 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12932 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12933 | fi | |
12934 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12935 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12936 | else | |
12937 | # Is the header compilable? | |
12938 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12939 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12940 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
12941 | /* confdefs.h. */ |
12942 | _ACEOF | |
12943 | cat confdefs.h >>conftest.$ac_ext | |
12944 | cat >>conftest.$ac_ext <<_ACEOF | |
12945 | /* end confdefs.h. */ | |
12946 | $ac_includes_default | |
12947 | #include <$ac_header> | |
12948 | _ACEOF | |
12949 | rm -f conftest.$ac_objext | |
12950 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 12951 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 12952 | ac_status=$? |
eea650d8 VS |
12953 | grep -v '^ *+' conftest.er1 >conftest.err |
12954 | rm -f conftest.er1 | |
12955 | cat conftest.err >&5 | |
e6cc62c6 VS |
12956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12957 | (exit $ac_status); } && | |
eea650d8 VS |
12958 | { ac_try='test -z "$ac_c_werror_flag" |
12959 | || test ! -s conftest.err' | |
12960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12961 | (eval $ac_try) 2>&5 | |
12962 | ac_status=$? | |
12963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12964 | (exit $ac_status); }; } && | |
12965 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
12966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12967 | (eval $ac_try) 2>&5 | |
12968 | ac_status=$? | |
12969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12970 | (exit $ac_status); }; }; then | |
12971 | ac_header_compiler=yes | |
12972 | else | |
12973 | echo "$as_me: failed program was:" >&5 | |
12974 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12975 | ||
12976 | ac_header_compiler=no | |
12977 | fi | |
eea650d8 | 12978 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
12979 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12980 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12981 | ||
12982 | # Is the header present? | |
12983 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12984 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12985 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
12986 | /* confdefs.h. */ |
12987 | _ACEOF | |
12988 | cat confdefs.h >>conftest.$ac_ext | |
12989 | cat >>conftest.$ac_ext <<_ACEOF | |
12990 | /* end confdefs.h. */ | |
12991 | #include <$ac_header> | |
12992 | _ACEOF | |
12993 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12994 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12995 | ac_status=$? | |
12996 | grep -v '^ *+' conftest.er1 >conftest.err | |
12997 | rm -f conftest.er1 | |
12998 | cat conftest.err >&5 | |
12999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13000 | (exit $ac_status); } >/dev/null; then | |
13001 | if test -s conftest.err; then | |
13002 | ac_cpp_err=$ac_c_preproc_warn_flag | |
eea650d8 | 13003 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
13004 | else |
13005 | ac_cpp_err= | |
13006 | fi | |
13007 | else | |
13008 | ac_cpp_err=yes | |
13009 | fi | |
13010 | if test -z "$ac_cpp_err"; then | |
13011 | ac_header_preproc=yes | |
13012 | else | |
13013 | echo "$as_me: failed program was:" >&5 | |
13014 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13015 | ||
13016 | ac_header_preproc=no | |
13017 | fi | |
13018 | rm -f conftest.err conftest.$ac_ext | |
13019 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13020 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13021 | ||
13022 | # So? What about this header? | |
eea650d8 VS |
13023 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13024 | yes:no: ) | |
e6cc62c6 VS |
13025 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13026 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
eea650d8 VS |
13027 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13028 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13029 | ac_header_preproc=yes | |
e6cc62c6 | 13030 | ;; |
eea650d8 | 13031 | no:yes:* ) |
e6cc62c6 VS |
13032 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13033 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
eea650d8 VS |
13034 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13035 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13036 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13037 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13038 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13039 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
13040 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13041 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
eea650d8 VS |
13042 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13043 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
13044 | ( |
13045 | cat <<\_ASBOX | |
eea650d8 VS |
13046 | ## ----------------------------------------- ## |
13047 | ## Report this to wx-dev@lists.wxwindows.org ## | |
13048 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
13049 | _ASBOX |
13050 | ) | | |
13051 | sed "s/^/$as_me: WARNING: /" >&2 | |
13052 | ;; | |
13053 | esac | |
13054 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13055 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13056 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13057 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13058 | else | |
eea650d8 | 13059 | eval "$as_ac_Header=\$ac_header_preproc" |
e6cc62c6 VS |
13060 | fi |
13061 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13062 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13063 | ||
90dd450c | 13064 | fi |
e6cc62c6 VS |
13065 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13066 | cat >>confdefs.h <<_ACEOF | |
13067 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13068 | _ACEOF | |
13069 | ||
13070 | fi | |
13071 | ||
13072 | done | |
90dd450c | 13073 | |
e6cc62c6 VS |
13074 | |
13075 | if test "$ac_cv_header_wchar_h" != "yes"; then | |
13076 | ||
13077 | for ac_header in wcstr.h | |
21d1c967 | 13078 | do |
e6cc62c6 VS |
13079 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
13080 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13081 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13082 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13083 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13084 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13085 | fi | |
13086 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13087 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13088 | else | |
13089 | # Is the header compilable? | |
13090 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13091 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13092 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
13093 | /* confdefs.h. */ |
13094 | _ACEOF | |
13095 | cat confdefs.h >>conftest.$ac_ext | |
13096 | cat >>conftest.$ac_ext <<_ACEOF | |
13097 | /* end confdefs.h. */ | |
13098 | $ac_includes_default | |
13099 | #include <$ac_header> | |
13100 | _ACEOF | |
13101 | rm -f conftest.$ac_objext | |
13102 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 13103 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 13104 | ac_status=$? |
eea650d8 VS |
13105 | grep -v '^ *+' conftest.er1 >conftest.err |
13106 | rm -f conftest.er1 | |
13107 | cat conftest.err >&5 | |
e6cc62c6 VS |
13108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13109 | (exit $ac_status); } && | |
eea650d8 VS |
13110 | { ac_try='test -z "$ac_c_werror_flag" |
13111 | || test ! -s conftest.err' | |
13112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13113 | (eval $ac_try) 2>&5 | |
13114 | ac_status=$? | |
13115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13116 | (exit $ac_status); }; } && | |
13117 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
13118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13119 | (eval $ac_try) 2>&5 | |
13120 | ac_status=$? | |
13121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13122 | (exit $ac_status); }; }; then | |
13123 | ac_header_compiler=yes | |
13124 | else | |
13125 | echo "$as_me: failed program was:" >&5 | |
13126 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13127 | ||
13128 | ac_header_compiler=no | |
13129 | fi | |
eea650d8 | 13130 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
13131 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13132 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13133 | ||
13134 | # Is the header present? | |
13135 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13136 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13137 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
13138 | /* confdefs.h. */ |
13139 | _ACEOF | |
13140 | cat confdefs.h >>conftest.$ac_ext | |
13141 | cat >>conftest.$ac_ext <<_ACEOF | |
13142 | /* end confdefs.h. */ | |
13143 | #include <$ac_header> | |
13144 | _ACEOF | |
13145 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13146 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13147 | ac_status=$? | |
13148 | grep -v '^ *+' conftest.er1 >conftest.err | |
13149 | rm -f conftest.er1 | |
13150 | cat conftest.err >&5 | |
13151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13152 | (exit $ac_status); } >/dev/null; then | |
13153 | if test -s conftest.err; then | |
13154 | ac_cpp_err=$ac_c_preproc_warn_flag | |
eea650d8 | 13155 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
13156 | else |
13157 | ac_cpp_err= | |
13158 | fi | |
13159 | else | |
13160 | ac_cpp_err=yes | |
13161 | fi | |
13162 | if test -z "$ac_cpp_err"; then | |
13163 | ac_header_preproc=yes | |
13164 | else | |
13165 | echo "$as_me: failed program was:" >&5 | |
13166 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13167 | ||
13168 | ac_header_preproc=no | |
13169 | fi | |
13170 | rm -f conftest.err conftest.$ac_ext | |
13171 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13172 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13173 | ||
13174 | # So? What about this header? | |
eea650d8 VS |
13175 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13176 | yes:no: ) | |
e6cc62c6 VS |
13177 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13178 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
eea650d8 VS |
13179 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13180 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13181 | ac_header_preproc=yes | |
e6cc62c6 | 13182 | ;; |
eea650d8 | 13183 | no:yes:* ) |
e6cc62c6 VS |
13184 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13185 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
eea650d8 VS |
13186 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13187 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13188 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13189 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13190 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13191 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
13192 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13193 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
eea650d8 VS |
13194 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13195 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
13196 | ( |
13197 | cat <<\_ASBOX | |
eea650d8 VS |
13198 | ## ----------------------------------------- ## |
13199 | ## Report this to wx-dev@lists.wxwindows.org ## | |
13200 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
13201 | _ASBOX |
13202 | ) | | |
13203 | sed "s/^/$as_me: WARNING: /" >&2 | |
13204 | ;; | |
13205 | esac | |
13206 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13207 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13208 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13209 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13210 | else | |
eea650d8 | 13211 | eval "$as_ac_Header=\$ac_header_preproc" |
3a922bb4 | 13212 | fi |
e6cc62c6 VS |
13213 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
13214 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13215 | ||
4f14bcd8 | 13216 | fi |
e6cc62c6 VS |
13217 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13218 | cat >>confdefs.h <<_ACEOF | |
13219 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13220 | _ACEOF | |
13221 | ||
13222 | fi | |
13223 | ||
13224 | done | |
13225 | ||
13226 | fi | |
13227 | ||
13228 | ||
13229 | for ac_header in fnmatch.h | |
13230 | do | |
13231 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13232 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13233 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13234 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13235 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13236 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13237 | fi | |
13238 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13239 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13240 | else | |
13241 | # Is the header compilable? | |
13242 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13243 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13244 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
13245 | /* confdefs.h. */ |
13246 | _ACEOF | |
13247 | cat confdefs.h >>conftest.$ac_ext | |
13248 | cat >>conftest.$ac_ext <<_ACEOF | |
13249 | /* end confdefs.h. */ | |
13250 | $ac_includes_default | |
13251 | #include <$ac_header> | |
13252 | _ACEOF | |
13253 | rm -f conftest.$ac_objext | |
13254 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 13255 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 13256 | ac_status=$? |
eea650d8 VS |
13257 | grep -v '^ *+' conftest.er1 >conftest.err |
13258 | rm -f conftest.er1 | |
13259 | cat conftest.err >&5 | |
e6cc62c6 VS |
13260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13261 | (exit $ac_status); } && | |
eea650d8 VS |
13262 | { ac_try='test -z "$ac_c_werror_flag" |
13263 | || test ! -s conftest.err' | |
13264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13265 | (eval $ac_try) 2>&5 | |
13266 | ac_status=$? | |
13267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13268 | (exit $ac_status); }; } && | |
13269 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
13270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13271 | (eval $ac_try) 2>&5 | |
13272 | ac_status=$? | |
13273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13274 | (exit $ac_status); }; }; then | |
13275 | ac_header_compiler=yes | |
13276 | else | |
13277 | echo "$as_me: failed program was:" >&5 | |
13278 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13279 | ||
13280 | ac_header_compiler=no | |
13281 | fi | |
eea650d8 | 13282 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
13283 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13284 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13285 | ||
13286 | # Is the header present? | |
13287 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13288 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13289 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
13290 | /* confdefs.h. */ |
13291 | _ACEOF | |
13292 | cat confdefs.h >>conftest.$ac_ext | |
13293 | cat >>conftest.$ac_ext <<_ACEOF | |
13294 | /* end confdefs.h. */ | |
13295 | #include <$ac_header> | |
13296 | _ACEOF | |
13297 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13298 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13299 | ac_status=$? | |
13300 | grep -v '^ *+' conftest.er1 >conftest.err | |
13301 | rm -f conftest.er1 | |
13302 | cat conftest.err >&5 | |
13303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13304 | (exit $ac_status); } >/dev/null; then | |
13305 | if test -s conftest.err; then | |
13306 | ac_cpp_err=$ac_c_preproc_warn_flag | |
eea650d8 | 13307 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
13308 | else |
13309 | ac_cpp_err= | |
13310 | fi | |
13311 | else | |
13312 | ac_cpp_err=yes | |
13313 | fi | |
13314 | if test -z "$ac_cpp_err"; then | |
13315 | ac_header_preproc=yes | |
13316 | else | |
13317 | echo "$as_me: failed program was:" >&5 | |
13318 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13319 | ||
13320 | ac_header_preproc=no | |
13321 | fi | |
13322 | rm -f conftest.err conftest.$ac_ext | |
13323 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13324 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13325 | ||
13326 | # So? What about this header? | |
eea650d8 VS |
13327 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13328 | yes:no: ) | |
e6cc62c6 VS |
13329 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13330 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
eea650d8 VS |
13331 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13332 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13333 | ac_header_preproc=yes | |
e6cc62c6 | 13334 | ;; |
eea650d8 | 13335 | no:yes:* ) |
e6cc62c6 VS |
13336 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13337 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
eea650d8 VS |
13338 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13339 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13340 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13341 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13342 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13343 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
13344 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13345 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
eea650d8 VS |
13346 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13347 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
13348 | ( |
13349 | cat <<\_ASBOX | |
eea650d8 VS |
13350 | ## ----------------------------------------- ## |
13351 | ## Report this to wx-dev@lists.wxwindows.org ## | |
13352 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
13353 | _ASBOX |
13354 | ) | | |
13355 | sed "s/^/$as_me: WARNING: /" >&2 | |
13356 | ;; | |
13357 | esac | |
13358 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13359 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13360 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13361 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 13362 | else |
eea650d8 | 13363 | eval "$as_ac_Header=\$ac_header_preproc" |
e6cc62c6 VS |
13364 | fi |
13365 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13366 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13367 | ||
21d1c967 | 13368 | fi |
e6cc62c6 VS |
13369 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13370 | cat >>confdefs.h <<_ACEOF | |
13371 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13372 | _ACEOF | |
13373 | ||
13374 | fi | |
13375 | ||
21d1c967 | 13376 | done |
90dd450c | 13377 | |
5c6fa7d2 | 13378 | |
a0b9e27f | 13379 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then |
e6cc62c6 VS |
13380 | |
13381 | for ac_func in fnmatch | |
21d1c967 | 13382 | do |
e6cc62c6 VS |
13383 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
13384 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13385 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
13386 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
13387 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13388 | else | |
13389 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
13390 | /* confdefs.h. */ |
13391 | _ACEOF | |
13392 | cat confdefs.h >>conftest.$ac_ext | |
13393 | cat >>conftest.$ac_ext <<_ACEOF | |
13394 | /* end confdefs.h. */ | |
eea650d8 VS |
13395 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
13396 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13397 | #define $ac_func innocuous_$ac_func | |
13398 | ||
a0b9e27f | 13399 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
13400 | which can conflict with char $ac_func (); below. |
13401 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13402 | <limits.h> exists even on freestanding compilers. */ | |
eea650d8 | 13403 | |
e6cc62c6 VS |
13404 | #ifdef __STDC__ |
13405 | # include <limits.h> | |
13406 | #else | |
13407 | # include <assert.h> | |
13408 | #endif | |
eea650d8 VS |
13409 | |
13410 | #undef $ac_func | |
13411 | ||
a0b9e27f | 13412 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
13413 | #ifdef __cplusplus |
13414 | extern "C" | |
13415 | { | |
13416 | #endif | |
a0b9e27f | 13417 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
13418 | builtin and then its argument prototype would still apply. */ |
13419 | char $ac_func (); | |
a0b9e27f MB |
13420 | /* The GNU C library defines this for functions which it implements |
13421 | to always fail with ENOSYS. Some functions are actually named | |
13422 | something starting with __ and the normal name is an alias. */ | |
13423 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13424 | choke me | |
13425 | #else | |
e6cc62c6 VS |
13426 | char (*f) () = $ac_func; |
13427 | #endif | |
13428 | #ifdef __cplusplus | |
13429 | } | |
a0b9e27f MB |
13430 | #endif |
13431 | ||
e6cc62c6 VS |
13432 | int |
13433 | main () | |
13434 | { | |
13435 | return f != $ac_func; | |
13436 | ; | |
13437 | return 0; | |
13438 | } | |
13439 | _ACEOF | |
13440 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13441 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 13442 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 13443 | ac_status=$? |
eea650d8 VS |
13444 | grep -v '^ *+' conftest.er1 >conftest.err |
13445 | rm -f conftest.er1 | |
13446 | cat conftest.err >&5 | |
e6cc62c6 VS |
13447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13448 | (exit $ac_status); } && | |
eea650d8 VS |
13449 | { ac_try='test -z "$ac_c_werror_flag" |
13450 | || test ! -s conftest.err' | |
13451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13452 | (eval $ac_try) 2>&5 | |
13453 | ac_status=$? | |
13454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13455 | (exit $ac_status); }; } && | |
13456 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
13457 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13458 | (eval $ac_try) 2>&5 | |
13459 | ac_status=$? | |
13460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13461 | (exit $ac_status); }; }; then | |
13462 | eval "$as_ac_var=yes" | |
13463 | else | |
13464 | echo "$as_me: failed program was:" >&5 | |
13465 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13466 | ||
13467 | eval "$as_ac_var=no" | |
13468 | fi | |
eea650d8 VS |
13469 | rm -f conftest.err conftest.$ac_objext \ |
13470 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
13471 | fi |
13472 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
13473 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
13474 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
13475 | cat >>confdefs.h <<_ACEOF | |
13476 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13477 | _ACEOF | |
32832908 | 13478 | |
21d1c967 GD |
13479 | fi |
13480 | done | |
90dd450c | 13481 | |
a0b9e27f | 13482 | fi |
90dd450c | 13483 | |
e6cc62c6 VS |
13484 | |
13485 | for ac_header in langinfo.h | |
21d1c967 | 13486 | do |
e6cc62c6 VS |
13487 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
13488 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13489 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13490 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13491 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13492 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13493 | fi | |
13494 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13495 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13496 | else | |
13497 | # Is the header compilable? | |
13498 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13499 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13500 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
13501 | /* confdefs.h. */ |
13502 | _ACEOF | |
13503 | cat confdefs.h >>conftest.$ac_ext | |
13504 | cat >>conftest.$ac_ext <<_ACEOF | |
13505 | /* end confdefs.h. */ | |
13506 | $ac_includes_default | |
13507 | #include <$ac_header> | |
13508 | _ACEOF | |
13509 | rm -f conftest.$ac_objext | |
13510 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 13511 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 13512 | ac_status=$? |
eea650d8 VS |
13513 | grep -v '^ *+' conftest.er1 >conftest.err |
13514 | rm -f conftest.er1 | |
13515 | cat conftest.err >&5 | |
e6cc62c6 VS |
13516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13517 | (exit $ac_status); } && | |
eea650d8 VS |
13518 | { ac_try='test -z "$ac_c_werror_flag" |
13519 | || test ! -s conftest.err' | |
13520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13521 | (eval $ac_try) 2>&5 | |
13522 | ac_status=$? | |
13523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13524 | (exit $ac_status); }; } && | |
13525 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
13526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13527 | (eval $ac_try) 2>&5 | |
13528 | ac_status=$? | |
13529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13530 | (exit $ac_status); }; }; then | |
13531 | ac_header_compiler=yes | |
13532 | else | |
13533 | echo "$as_me: failed program was:" >&5 | |
13534 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13535 | ||
13536 | ac_header_compiler=no | |
13537 | fi | |
eea650d8 | 13538 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
13539 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13540 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13541 | ||
13542 | # Is the header present? | |
13543 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13544 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13545 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
13546 | /* confdefs.h. */ |
13547 | _ACEOF | |
13548 | cat confdefs.h >>conftest.$ac_ext | |
13549 | cat >>conftest.$ac_ext <<_ACEOF | |
13550 | /* end confdefs.h. */ | |
13551 | #include <$ac_header> | |
13552 | _ACEOF | |
13553 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13554 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13555 | ac_status=$? | |
13556 | grep -v '^ *+' conftest.er1 >conftest.err | |
13557 | rm -f conftest.er1 | |
13558 | cat conftest.err >&5 | |
13559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13560 | (exit $ac_status); } >/dev/null; then | |
13561 | if test -s conftest.err; then | |
13562 | ac_cpp_err=$ac_c_preproc_warn_flag | |
eea650d8 | 13563 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
13564 | else |
13565 | ac_cpp_err= | |
13566 | fi | |
13567 | else | |
13568 | ac_cpp_err=yes | |
13569 | fi | |
13570 | if test -z "$ac_cpp_err"; then | |
13571 | ac_header_preproc=yes | |
13572 | else | |
13573 | echo "$as_me: failed program was:" >&5 | |
13574 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13575 | ||
13576 | ac_header_preproc=no | |
13577 | fi | |
13578 | rm -f conftest.err conftest.$ac_ext | |
13579 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13580 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13581 | ||
13582 | # So? What about this header? | |
eea650d8 VS |
13583 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13584 | yes:no: ) | |
e6cc62c6 VS |
13585 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13586 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
eea650d8 VS |
13587 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13588 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13589 | ac_header_preproc=yes | |
e6cc62c6 | 13590 | ;; |
eea650d8 | 13591 | no:yes:* ) |
e6cc62c6 VS |
13592 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13593 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
eea650d8 VS |
13594 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13595 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13596 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13597 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13598 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13599 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
13600 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13601 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
eea650d8 VS |
13602 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13603 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
13604 | ( |
13605 | cat <<\_ASBOX | |
eea650d8 VS |
13606 | ## ----------------------------------------- ## |
13607 | ## Report this to wx-dev@lists.wxwindows.org ## | |
13608 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
13609 | _ASBOX |
13610 | ) | | |
13611 | sed "s/^/$as_me: WARNING: /" >&2 | |
13612 | ;; | |
13613 | esac | |
13614 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13615 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13616 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13617 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13618 | else | |
eea650d8 | 13619 | eval "$as_ac_Header=\$ac_header_preproc" |
90dd450c | 13620 | fi |
e6cc62c6 VS |
13621 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
13622 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13623 | ||
4f14bcd8 | 13624 | fi |
e6cc62c6 VS |
13625 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13626 | cat >>confdefs.h <<_ACEOF | |
13627 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13628 | _ACEOF | |
13629 | ||
21d1c967 | 13630 | fi |
e6cc62c6 | 13631 | |
21d1c967 | 13632 | done |
3a922bb4 | 13633 | |
8284b0c5 | 13634 | |
4f5a7f74 VZ |
13635 | case "${host}" in |
13636 | *-pc-os2_emx | *-pc-os2-emx ) | |
13637 | if test $ac_cv_header_langinfo_h = "yes"; then | |
13638 | LIBS="$LIBS -lintl" | |
13639 | fi | |
13640 | ;; | |
13641 | esac | |
1542ea39 | 13642 | |
a0b9e27f | 13643 | if test "$wxUSE_GUI" = "yes"; then |
73d617c9 | 13644 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then |
e6cc62c6 | 13645 | |
eb69fda5 | 13646 | for ac_header in X11/Xlib.h |
21d1c967 | 13647 | do |
e6cc62c6 VS |
13648 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
13649 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13650 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13651 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13652 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13653 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13654 | fi | |
13655 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13656 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13657 | else | |
13658 | # Is the header compilable? | |
13659 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13660 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13661 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
13662 | /* confdefs.h. */ |
13663 | _ACEOF | |
13664 | cat confdefs.h >>conftest.$ac_ext | |
13665 | cat >>conftest.$ac_ext <<_ACEOF | |
13666 | /* end confdefs.h. */ | |
13667 | $ac_includes_default | |
13668 | #include <$ac_header> | |
13669 | _ACEOF | |
13670 | rm -f conftest.$ac_objext | |
13671 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 13672 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 13673 | ac_status=$? |
eea650d8 VS |
13674 | grep -v '^ *+' conftest.er1 >conftest.err |
13675 | rm -f conftest.er1 | |
13676 | cat conftest.err >&5 | |
e6cc62c6 VS |
13677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13678 | (exit $ac_status); } && | |
eea650d8 VS |
13679 | { ac_try='test -z "$ac_c_werror_flag" |
13680 | || test ! -s conftest.err' | |
13681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13682 | (eval $ac_try) 2>&5 | |
13683 | ac_status=$? | |
13684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13685 | (exit $ac_status); }; } && | |
13686 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
13687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13688 | (eval $ac_try) 2>&5 | |
13689 | ac_status=$? | |
13690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13691 | (exit $ac_status); }; }; then | |
13692 | ac_header_compiler=yes | |
13693 | else | |
13694 | echo "$as_me: failed program was:" >&5 | |
13695 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13696 | ||
13697 | ac_header_compiler=no | |
13698 | fi | |
eea650d8 | 13699 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
13700 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13701 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13702 | ||
13703 | # Is the header present? | |
13704 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13705 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13706 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
13707 | /* confdefs.h. */ |
13708 | _ACEOF | |
13709 | cat confdefs.h >>conftest.$ac_ext | |
13710 | cat >>conftest.$ac_ext <<_ACEOF | |
13711 | /* end confdefs.h. */ | |
13712 | #include <$ac_header> | |
13713 | _ACEOF | |
13714 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13715 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13716 | ac_status=$? | |
13717 | grep -v '^ *+' conftest.er1 >conftest.err | |
13718 | rm -f conftest.er1 | |
13719 | cat conftest.err >&5 | |
13720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13721 | (exit $ac_status); } >/dev/null; then | |
13722 | if test -s conftest.err; then | |
13723 | ac_cpp_err=$ac_c_preproc_warn_flag | |
eea650d8 | 13724 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
13725 | else |
13726 | ac_cpp_err= | |
13727 | fi | |
13728 | else | |
13729 | ac_cpp_err=yes | |
13730 | fi | |
13731 | if test -z "$ac_cpp_err"; then | |
13732 | ac_header_preproc=yes | |
13733 | else | |
13734 | echo "$as_me: failed program was:" >&5 | |
13735 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13736 | ||
13737 | ac_header_preproc=no | |
13738 | fi | |
13739 | rm -f conftest.err conftest.$ac_ext | |
13740 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13741 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13742 | ||
13743 | # So? What about this header? | |
eea650d8 VS |
13744 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13745 | yes:no: ) | |
e6cc62c6 VS |
13746 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13747 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
eea650d8 VS |
13748 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13749 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13750 | ac_header_preproc=yes | |
e6cc62c6 | 13751 | ;; |
eea650d8 | 13752 | no:yes:* ) |
e6cc62c6 VS |
13753 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13754 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
eea650d8 VS |
13755 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13756 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13757 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13758 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13759 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13760 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
13761 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13762 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
eea650d8 VS |
13763 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13764 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
13765 | ( |
13766 | cat <<\_ASBOX | |
eea650d8 VS |
13767 | ## ----------------------------------------- ## |
13768 | ## Report this to wx-dev@lists.wxwindows.org ## | |
13769 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
13770 | _ASBOX |
13771 | ) | | |
13772 | sed "s/^/$as_me: WARNING: /" >&2 | |
13773 | ;; | |
13774 | esac | |
13775 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13776 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13777 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13778 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13779 | else | |
eea650d8 | 13780 | eval "$as_ac_Header=\$ac_header_preproc" |
3a922bb4 | 13781 | fi |
e6cc62c6 VS |
13782 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
13783 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13784 | ||
90dd450c | 13785 | fi |
e6cc62c6 VS |
13786 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13787 | cat >>confdefs.h <<_ACEOF | |
13788 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13789 | _ACEOF | |
13790 | ||
247f5006 | 13791 | fi |
e6cc62c6 | 13792 | |
eb69fda5 VS |
13793 | done |
13794 | ||
13795 | ||
13796 | for ac_header in X11/XKBlib.h | |
13797 | do | |
13798 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13799 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13800 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13801 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13802 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13803 | else | |
13804 | cat >conftest.$ac_ext <<_ACEOF | |
eb69fda5 VS |
13805 | /* confdefs.h. */ |
13806 | _ACEOF | |
13807 | cat confdefs.h >>conftest.$ac_ext | |
13808 | cat >>conftest.$ac_ext <<_ACEOF | |
13809 | /* end confdefs.h. */ | |
13810 | ||
13811 | #if HAVE_X11_XLIB_H | |
13812 | #include <X11/Xlib.h> | |
13813 | #endif | |
13814 | ||
13815 | ||
13816 | #include <$ac_header> | |
13817 | _ACEOF | |
13818 | rm -f conftest.$ac_objext | |
13819 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 13820 | (eval $ac_compile) 2>conftest.er1 |
eb69fda5 | 13821 | ac_status=$? |
eea650d8 VS |
13822 | grep -v '^ *+' conftest.er1 >conftest.err |
13823 | rm -f conftest.er1 | |
13824 | cat conftest.err >&5 | |
eb69fda5 VS |
13825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13826 | (exit $ac_status); } && | |
eea650d8 VS |
13827 | { ac_try='test -z "$ac_c_werror_flag" |
13828 | || test ! -s conftest.err' | |
13829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13830 | (eval $ac_try) 2>&5 | |
13831 | ac_status=$? | |
13832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13833 | (exit $ac_status); }; } && | |
13834 | { ac_try='test -s conftest.$ac_objext' | |
eb69fda5 VS |
13835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13836 | (eval $ac_try) 2>&5 | |
13837 | ac_status=$? | |
13838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13839 | (exit $ac_status); }; }; then | |
13840 | eval "$as_ac_Header=yes" | |
13841 | else | |
13842 | echo "$as_me: failed program was:" >&5 | |
13843 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13844 | ||
13845 | eval "$as_ac_Header=no" | |
13846 | fi | |
eea650d8 | 13847 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
eb69fda5 VS |
13848 | fi |
13849 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13850 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13851 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13852 | cat >>confdefs.h <<_ACEOF | |
13853 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13854 | _ACEOF | |
13855 | ||
13856 | fi | |
13857 | ||
247f5006 VZ |
13858 | done |
13859 | ||
a0b9e27f MB |
13860 | fi |
13861 | fi | |
247f5006 | 13862 | |
247f5006 | 13863 | |
e6cc62c6 VS |
13864 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
13865 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
13866 | if test "${ac_cv_c_const+set}" = set; then | |
13867 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13868 | else | |
13869 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
13870 | /* confdefs.h. */ |
13871 | _ACEOF | |
13872 | cat confdefs.h >>conftest.$ac_ext | |
13873 | cat >>conftest.$ac_ext <<_ACEOF | |
13874 | /* end confdefs.h. */ | |
13875 | ||
13876 | int | |
13877 | main () | |
13878 | { | |
13879 | /* FIXME: Include the comments suggested by Paul. */ | |
13880 | #ifndef __cplusplus | |
13881 | /* Ultrix mips cc rejects this. */ | |
13882 | typedef int charset[2]; | |
13883 | const charset x; | |
13884 | /* SunOS 4.1.1 cc rejects this. */ | |
13885 | char const *const *ccp; | |
13886 | char **p; | |
13887 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
13888 | struct point {int x, y;}; | |
13889 | static struct point const zero = {0,0}; | |
13890 | /* AIX XL C 1.02.0.0 rejects this. | |
13891 | It does not let you subtract one const X* pointer from another in | |
13892 | an arm of an if-expression whose if-part is not a constant | |
13893 | expression */ | |
13894 | const char *g = "string"; | |
13895 | ccp = &g + (g ? g-g : 0); | |
13896 | /* HPUX 7.0 cc rejects these. */ | |
13897 | ++ccp; | |
13898 | p = (char**) ccp; | |
13899 | ccp = (char const *const *) p; | |
13900 | { /* SCO 3.2v4 cc rejects this. */ | |
13901 | char *t; | |
13902 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
13903 | ||
13904 | *t++ = 0; | |
13905 | } | |
13906 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
13907 | int x[] = {25, 17}; | |
13908 | const int *foo = &x[0]; | |
13909 | ++foo; | |
13910 | } | |
13911 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
13912 | typedef const int *iptr; | |
13913 | iptr p = 0; | |
13914 | ++p; | |
13915 | } | |
13916 | { /* AIX XL C 1.02.0.0 rejects this saying | |
13917 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
13918 | struct s { int j; const int *ap[3]; }; | |
13919 | struct s *b; b->j = 5; | |
13920 | } | |
13921 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
13922 | const int foo = 10; | |
13923 | } | |
13924 | #endif | |
13925 | ||
13926 | ; | |
13927 | return 0; | |
13928 | } | |
13929 | _ACEOF | |
13930 | rm -f conftest.$ac_objext | |
13931 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 13932 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 13933 | ac_status=$? |
eea650d8 VS |
13934 | grep -v '^ *+' conftest.er1 >conftest.err |
13935 | rm -f conftest.er1 | |
13936 | cat conftest.err >&5 | |
e6cc62c6 VS |
13937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13938 | (exit $ac_status); } && | |
eea650d8 VS |
13939 | { ac_try='test -z "$ac_c_werror_flag" |
13940 | || test ! -s conftest.err' | |
13941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13942 | (eval $ac_try) 2>&5 | |
13943 | ac_status=$? | |
13944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13945 | (exit $ac_status); }; } && | |
13946 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
13947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13948 | (eval $ac_try) 2>&5 | |
13949 | ac_status=$? | |
13950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13951 | (exit $ac_status); }; }; then | |
a0b9e27f | 13952 | ac_cv_c_const=yes |
247f5006 | 13953 | else |
e6cc62c6 VS |
13954 | echo "$as_me: failed program was:" >&5 |
13955 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13956 | ||
13957 | ac_cv_c_const=no | |
247f5006 | 13958 | fi |
eea650d8 | 13959 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 13960 | fi |
e6cc62c6 VS |
13961 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
13962 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
a0b9e27f | 13963 | if test $ac_cv_c_const = no; then |
e6cc62c6 VS |
13964 | |
13965 | cat >>confdefs.h <<\_ACEOF | |
13966 | #define const | |
13967 | _ACEOF | |
10f2d63a | 13968 | |
90dd450c | 13969 | fi |
81809c07 | 13970 | |
e6cc62c6 VS |
13971 | echo "$as_me:$LINENO: checking for inline" >&5 |
13972 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
13973 | if test "${ac_cv_c_inline+set}" = set; then | |
13974 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8168de4c | 13975 | else |
a0b9e27f MB |
13976 | ac_cv_c_inline=no |
13977 | for ac_kw in inline __inline__ __inline; do | |
e6cc62c6 | 13978 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
13979 | /* confdefs.h. */ |
13980 | _ACEOF | |
13981 | cat confdefs.h >>conftest.$ac_ext | |
13982 | cat >>conftest.$ac_ext <<_ACEOF | |
13983 | /* end confdefs.h. */ | |
13984 | #ifndef __cplusplus | |
13985 | typedef int foo_t; | |
13986 | static $ac_kw foo_t static_foo () {return 0; } | |
13987 | $ac_kw foo_t foo () {return 0; } | |
13988 | #endif | |
a0b9e27f | 13989 | |
e6cc62c6 VS |
13990 | _ACEOF |
13991 | rm -f conftest.$ac_objext | |
13992 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 13993 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 13994 | ac_status=$? |
eea650d8 VS |
13995 | grep -v '^ *+' conftest.er1 >conftest.err |
13996 | rm -f conftest.er1 | |
13997 | cat conftest.err >&5 | |
e6cc62c6 VS |
13998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13999 | (exit $ac_status); } && | |
eea650d8 VS |
14000 | { ac_try='test -z "$ac_c_werror_flag" |
14001 | || test ! -s conftest.err' | |
14002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14003 | (eval $ac_try) 2>&5 | |
14004 | ac_status=$? | |
14005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14006 | (exit $ac_status); }; } && | |
14007 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14009 | (eval $ac_try) 2>&5 | |
14010 | ac_status=$? | |
14011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14012 | (exit $ac_status); }; }; then | |
a0b9e27f | 14013 | ac_cv_c_inline=$ac_kw; break |
247f5006 | 14014 | else |
e6cc62c6 VS |
14015 | echo "$as_me: failed program was:" >&5 |
14016 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14017 | ||
247f5006 | 14018 | fi |
eea650d8 | 14019 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 14020 | done |
247f5006 VZ |
14021 | |
14022 | fi | |
e6cc62c6 VS |
14023 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
14024 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
eea650d8 VS |
14025 | |
14026 | ||
e6cc62c6 | 14027 | case $ac_cv_c_inline in |
a0b9e27f | 14028 | inline | yes) ;; |
eea650d8 VS |
14029 | *) |
14030 | case $ac_cv_c_inline in | |
14031 | no) ac_val=;; | |
14032 | *) ac_val=$ac_cv_c_inline;; | |
14033 | esac | |
14034 | cat >>confdefs.h <<_ACEOF | |
14035 | #ifndef __cplusplus | |
14036 | #define inline $ac_val | |
14037 | #endif | |
e6cc62c6 | 14038 | _ACEOF |
eea650d8 | 14039 | ;; |
a0b9e27f | 14040 | esac |
247f5006 | 14041 | |
247f5006 | 14042 | |
e6cc62c6 VS |
14043 | echo "$as_me:$LINENO: checking for char" >&5 |
14044 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
14045 | if test "${ac_cv_type_char+set}" = set; then | |
14046 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14047 | else | |
14048 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14049 | /* confdefs.h. */ |
14050 | _ACEOF | |
14051 | cat confdefs.h >>conftest.$ac_ext | |
14052 | cat >>conftest.$ac_ext <<_ACEOF | |
14053 | /* end confdefs.h. */ | |
14054 | $ac_includes_default | |
14055 | int | |
14056 | main () | |
14057 | { | |
14058 | if ((char *) 0) | |
14059 | return 0; | |
14060 | if (sizeof (char)) | |
14061 | return 0; | |
14062 | ; | |
14063 | return 0; | |
14064 | } | |
14065 | _ACEOF | |
14066 | rm -f conftest.$ac_objext | |
14067 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 14068 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14069 | ac_status=$? |
eea650d8 VS |
14070 | grep -v '^ *+' conftest.er1 >conftest.err |
14071 | rm -f conftest.er1 | |
14072 | cat conftest.err >&5 | |
e6cc62c6 VS |
14073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14074 | (exit $ac_status); } && | |
eea650d8 VS |
14075 | { ac_try='test -z "$ac_c_werror_flag" |
14076 | || test ! -s conftest.err' | |
14077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14078 | (eval $ac_try) 2>&5 | |
14079 | ac_status=$? | |
14080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14081 | (exit $ac_status); }; } && | |
14082 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14084 | (eval $ac_try) 2>&5 | |
14085 | ac_status=$? | |
14086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14087 | (exit $ac_status); }; }; then | |
14088 | ac_cv_type_char=yes | |
14089 | else | |
14090 | echo "$as_me: failed program was:" >&5 | |
14091 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14092 | ||
14093 | ac_cv_type_char=no | |
14094 | fi | |
eea650d8 | 14095 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14096 | fi |
14097 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
14098 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
14099 | ||
14100 | echo "$as_me:$LINENO: checking size of char" >&5 | |
14101 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
14102 | if test "${ac_cv_sizeof_char+set}" = set; then | |
14103 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14104 | else | |
14105 | if test "$ac_cv_type_char" = yes; then | |
14106 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14107 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14108 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14109 | # This bug is HP SR number 8606223364. | |
a0b9e27f | 14110 | if test "$cross_compiling" = yes; then |
e6cc62c6 VS |
14111 | # Depending upon the size, compute the lo and hi bounds. |
14112 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14113 | /* confdefs.h. */ |
14114 | _ACEOF | |
14115 | cat confdefs.h >>conftest.$ac_ext | |
14116 | cat >>conftest.$ac_ext <<_ACEOF | |
14117 | /* end confdefs.h. */ | |
14118 | $ac_includes_default | |
14119 | int | |
14120 | main () | |
14121 | { | |
14122 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | |
14123 | test_array [0] = 0 | |
14124 | ||
14125 | ; | |
14126 | return 0; | |
14127 | } | |
14128 | _ACEOF | |
14129 | rm -f conftest.$ac_objext | |
14130 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 14131 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14132 | ac_status=$? |
eea650d8 VS |
14133 | grep -v '^ *+' conftest.er1 >conftest.err |
14134 | rm -f conftest.er1 | |
14135 | cat conftest.err >&5 | |
e6cc62c6 VS |
14136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14137 | (exit $ac_status); } && | |
eea650d8 VS |
14138 | { ac_try='test -z "$ac_c_werror_flag" |
14139 | || test ! -s conftest.err' | |
14140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14141 | (eval $ac_try) 2>&5 | |
14142 | ac_status=$? | |
14143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14144 | (exit $ac_status); }; } && | |
14145 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14147 | (eval $ac_try) 2>&5 | |
14148 | ac_status=$? | |
14149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14150 | (exit $ac_status); }; }; then | |
14151 | ac_lo=0 ac_mid=0 | |
14152 | while :; do | |
14153 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14154 | /* confdefs.h. */ |
14155 | _ACEOF | |
14156 | cat confdefs.h >>conftest.$ac_ext | |
14157 | cat >>conftest.$ac_ext <<_ACEOF | |
14158 | /* end confdefs.h. */ | |
14159 | $ac_includes_default | |
14160 | int | |
14161 | main () | |
14162 | { | |
14163 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
14164 | test_array [0] = 0 | |
14165 | ||
14166 | ; | |
14167 | return 0; | |
14168 | } | |
14169 | _ACEOF | |
14170 | rm -f conftest.$ac_objext | |
14171 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 14172 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14173 | ac_status=$? |
eea650d8 VS |
14174 | grep -v '^ *+' conftest.er1 >conftest.err |
14175 | rm -f conftest.er1 | |
14176 | cat conftest.err >&5 | |
e6cc62c6 VS |
14177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14178 | (exit $ac_status); } && | |
eea650d8 VS |
14179 | { ac_try='test -z "$ac_c_werror_flag" |
14180 | || test ! -s conftest.err' | |
14181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14182 | (eval $ac_try) 2>&5 | |
14183 | ac_status=$? | |
14184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14185 | (exit $ac_status); }; } && | |
14186 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14188 | (eval $ac_try) 2>&5 | |
14189 | ac_status=$? | |
14190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14191 | (exit $ac_status); }; }; then | |
14192 | ac_hi=$ac_mid; break | |
14193 | else | |
14194 | echo "$as_me: failed program was:" >&5 | |
14195 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14196 | ||
14197 | ac_lo=`expr $ac_mid + 1` | |
eea650d8 VS |
14198 | if test $ac_lo -le $ac_mid; then |
14199 | ac_lo= ac_hi= | |
14200 | break | |
14201 | fi | |
14202 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
e6cc62c6 | 14203 | fi |
eea650d8 | 14204 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 14205 | done |
a0b9e27f | 14206 | else |
e6cc62c6 VS |
14207 | echo "$as_me: failed program was:" >&5 |
14208 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14209 | ||
14210 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14211 | /* confdefs.h. */ |
14212 | _ACEOF | |
14213 | cat confdefs.h >>conftest.$ac_ext | |
14214 | cat >>conftest.$ac_ext <<_ACEOF | |
14215 | /* end confdefs.h. */ | |
14216 | $ac_includes_default | |
14217 | int | |
14218 | main () | |
14219 | { | |
14220 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
14221 | test_array [0] = 0 | |
14222 | ||
14223 | ; | |
14224 | return 0; | |
14225 | } | |
14226 | _ACEOF | |
14227 | rm -f conftest.$ac_objext | |
14228 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 14229 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14230 | ac_status=$? |
eea650d8 VS |
14231 | grep -v '^ *+' conftest.er1 >conftest.err |
14232 | rm -f conftest.er1 | |
14233 | cat conftest.err >&5 | |
e6cc62c6 VS |
14234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14235 | (exit $ac_status); } && | |
eea650d8 VS |
14236 | { ac_try='test -z "$ac_c_werror_flag" |
14237 | || test ! -s conftest.err' | |
14238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14239 | (eval $ac_try) 2>&5 | |
14240 | ac_status=$? | |
14241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14242 | (exit $ac_status); }; } && | |
14243 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14244 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14245 | (eval $ac_try) 2>&5 | |
14246 | ac_status=$? | |
14247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14248 | (exit $ac_status); }; }; then | |
14249 | ac_hi=-1 ac_mid=-1 | |
14250 | while :; do | |
14251 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14252 | /* confdefs.h. */ |
14253 | _ACEOF | |
14254 | cat confdefs.h >>conftest.$ac_ext | |
14255 | cat >>conftest.$ac_ext <<_ACEOF | |
14256 | /* end confdefs.h. */ | |
14257 | $ac_includes_default | |
14258 | int | |
14259 | main () | |
14260 | { | |
14261 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | |
14262 | test_array [0] = 0 | |
14263 | ||
14264 | ; | |
14265 | return 0; | |
14266 | } | |
14267 | _ACEOF | |
14268 | rm -f conftest.$ac_objext | |
14269 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 14270 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14271 | ac_status=$? |
eea650d8 VS |
14272 | grep -v '^ *+' conftest.er1 >conftest.err |
14273 | rm -f conftest.er1 | |
14274 | cat conftest.err >&5 | |
e6cc62c6 VS |
14275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14276 | (exit $ac_status); } && | |
eea650d8 VS |
14277 | { ac_try='test -z "$ac_c_werror_flag" |
14278 | || test ! -s conftest.err' | |
14279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14280 | (eval $ac_try) 2>&5 | |
14281 | ac_status=$? | |
14282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14283 | (exit $ac_status); }; } && | |
14284 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14286 | (eval $ac_try) 2>&5 | |
14287 | ac_status=$? | |
14288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14289 | (exit $ac_status); }; }; then | |
14290 | ac_lo=$ac_mid; break | |
14291 | else | |
14292 | echo "$as_me: failed program was:" >&5 | |
14293 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14294 | ||
14295 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
eea650d8 VS |
14296 | if test $ac_mid -le $ac_hi; then |
14297 | ac_lo= ac_hi= | |
14298 | break | |
14299 | fi | |
14300 | ac_mid=`expr 2 '*' $ac_mid` | |
e6cc62c6 | 14301 | fi |
eea650d8 | 14302 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14303 | done |
14304 | else | |
14305 | echo "$as_me: failed program was:" >&5 | |
14306 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14307 | ||
14308 | ac_lo= ac_hi= | |
14309 | fi | |
eea650d8 | 14310 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 14311 | fi |
eea650d8 | 14312 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14313 | # Binary search between lo and hi bounds. |
14314 | while test "x$ac_lo" != "x$ac_hi"; do | |
14315 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14316 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14317 | /* confdefs.h. */ |
14318 | _ACEOF | |
14319 | cat confdefs.h >>conftest.$ac_ext | |
14320 | cat >>conftest.$ac_ext <<_ACEOF | |
14321 | /* end confdefs.h. */ | |
14322 | $ac_includes_default | |
14323 | int | |
14324 | main () | |
14325 | { | |
14326 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
14327 | test_array [0] = 0 | |
14328 | ||
14329 | ; | |
14330 | return 0; | |
14331 | } | |
14332 | _ACEOF | |
14333 | rm -f conftest.$ac_objext | |
14334 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 14335 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14336 | ac_status=$? |
eea650d8 VS |
14337 | grep -v '^ *+' conftest.er1 >conftest.err |
14338 | rm -f conftest.er1 | |
14339 | cat conftest.err >&5 | |
e6cc62c6 VS |
14340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14341 | (exit $ac_status); } && | |
eea650d8 VS |
14342 | { ac_try='test -z "$ac_c_werror_flag" |
14343 | || test ! -s conftest.err' | |
14344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14345 | (eval $ac_try) 2>&5 | |
14346 | ac_status=$? | |
14347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14348 | (exit $ac_status); }; } && | |
14349 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14351 | (eval $ac_try) 2>&5 | |
14352 | ac_status=$? | |
14353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14354 | (exit $ac_status); }; }; then | |
14355 | ac_hi=$ac_mid | |
14356 | else | |
14357 | echo "$as_me: failed program was:" >&5 | |
14358 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14359 | ||
14360 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
14361 | fi | |
eea650d8 | 14362 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14363 | done |
14364 | case $ac_lo in | |
14365 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
14366 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
14367 | See \`config.log' for more details." >&5 | |
14368 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
14369 | See \`config.log' for more details." >&2;} | |
14370 | { (exit 1); exit 1; }; } ;; | |
14371 | esac | |
14372 | else | |
14373 | if test "$cross_compiling" = yes; then | |
14374 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
14375 | See \`config.log' for more details." >&5 | |
14376 | echo "$as_me: error: cannot run test program while cross compiling | |
14377 | See \`config.log' for more details." >&2;} | |
14378 | { (exit 1); exit 1; }; } | |
14379 | else | |
14380 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14381 | /* confdefs.h. */ |
14382 | _ACEOF | |
14383 | cat confdefs.h >>conftest.$ac_ext | |
14384 | cat >>conftest.$ac_ext <<_ACEOF | |
14385 | /* end confdefs.h. */ | |
14386 | $ac_includes_default | |
14387 | long longval () { return (long) (sizeof (char)); } | |
14388 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
a0b9e27f | 14389 | #include <stdio.h> |
e6cc62c6 VS |
14390 | #include <stdlib.h> |
14391 | int | |
14392 | main () | |
247f5006 | 14393 | { |
e6cc62c6 VS |
14394 | |
14395 | FILE *f = fopen ("conftest.val", "w"); | |
14396 | if (! f) | |
14397 | exit (1); | |
14398 | if (((long) (sizeof (char))) < 0) | |
14399 | { | |
14400 | long i = longval (); | |
14401 | if (i != ((long) (sizeof (char)))) | |
14402 | exit (1); | |
14403 | fprintf (f, "%ld\n", i); | |
14404 | } | |
14405 | else | |
14406 | { | |
14407 | unsigned long i = ulongval (); | |
14408 | if (i != ((long) (sizeof (char)))) | |
14409 | exit (1); | |
14410 | fprintf (f, "%lu\n", i); | |
14411 | } | |
14412 | exit (ferror (f) || fclose (f) != 0); | |
14413 | ||
14414 | ; | |
14415 | return 0; | |
52127426 | 14416 | } |
e6cc62c6 VS |
14417 | _ACEOF |
14418 | rm -f conftest$ac_exeext | |
14419 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14420 | (eval $ac_link) 2>&5 | |
14421 | ac_status=$? | |
14422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14423 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14425 | (eval $ac_try) 2>&5 | |
14426 | ac_status=$? | |
14427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14428 | (exit $ac_status); }; }; then | |
14429 | ac_cv_sizeof_char=`cat conftest.val` | |
14430 | else | |
14431 | echo "$as_me: program exited with status $ac_status" >&5 | |
14432 | echo "$as_me: failed program was:" >&5 | |
14433 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14434 | ||
14435 | ( exit $ac_status ) | |
14436 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
14437 | See \`config.log' for more details." >&5 | |
14438 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
14439 | See \`config.log' for more details." >&2;} | |
14440 | { (exit 1); exit 1; }; } | |
14441 | fi | |
eea650d8 | 14442 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14443 | fi |
14444 | fi | |
14445 | rm -f conftest.val | |
247f5006 | 14446 | else |
a0b9e27f | 14447 | ac_cv_sizeof_char=0 |
247f5006 | 14448 | fi |
247f5006 | 14449 | fi |
e6cc62c6 VS |
14450 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 |
14451 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
14452 | cat >>confdefs.h <<_ACEOF | |
14453 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
14454 | _ACEOF | |
14455 | ||
14456 | ||
14457 | echo "$as_me:$LINENO: checking for short" >&5 | |
14458 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
14459 | if test "${ac_cv_type_short+set}" = set; then | |
14460 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14461 | else | |
14462 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14463 | /* confdefs.h. */ |
14464 | _ACEOF | |
14465 | cat confdefs.h >>conftest.$ac_ext | |
14466 | cat >>conftest.$ac_ext <<_ACEOF | |
14467 | /* end confdefs.h. */ | |
14468 | $ac_includes_default | |
14469 | int | |
14470 | main () | |
14471 | { | |
14472 | if ((short *) 0) | |
14473 | return 0; | |
14474 | if (sizeof (short)) | |
14475 | return 0; | |
14476 | ; | |
14477 | return 0; | |
14478 | } | |
14479 | _ACEOF | |
14480 | rm -f conftest.$ac_objext | |
14481 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 14482 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14483 | ac_status=$? |
eea650d8 VS |
14484 | grep -v '^ *+' conftest.er1 >conftest.err |
14485 | rm -f conftest.er1 | |
14486 | cat conftest.err >&5 | |
e6cc62c6 VS |
14487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14488 | (exit $ac_status); } && | |
eea650d8 VS |
14489 | { ac_try='test -z "$ac_c_werror_flag" |
14490 | || test ! -s conftest.err' | |
14491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14492 | (eval $ac_try) 2>&5 | |
14493 | ac_status=$? | |
14494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14495 | (exit $ac_status); }; } && | |
14496 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14498 | (eval $ac_try) 2>&5 | |
14499 | ac_status=$? | |
14500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14501 | (exit $ac_status); }; }; then | |
14502 | ac_cv_type_short=yes | |
14503 | else | |
14504 | echo "$as_me: failed program was:" >&5 | |
14505 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14506 | ||
14507 | ac_cv_type_short=no | |
14508 | fi | |
eea650d8 | 14509 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14510 | fi |
14511 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
14512 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
14513 | ||
14514 | echo "$as_me:$LINENO: checking size of short" >&5 | |
14515 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
14516 | if test "${ac_cv_sizeof_short+set}" = set; then | |
14517 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14518 | else | |
14519 | if test "$ac_cv_type_short" = yes; then | |
14520 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14521 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14522 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14523 | # This bug is HP SR number 8606223364. | |
14524 | if test "$cross_compiling" = yes; then | |
14525 | # Depending upon the size, compute the lo and hi bounds. | |
14526 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14527 | /* confdefs.h. */ |
14528 | _ACEOF | |
14529 | cat confdefs.h >>conftest.$ac_ext | |
14530 | cat >>conftest.$ac_ext <<_ACEOF | |
14531 | /* end confdefs.h. */ | |
14532 | $ac_includes_default | |
14533 | int | |
14534 | main () | |
14535 | { | |
14536 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; | |
14537 | test_array [0] = 0 | |
247f5006 | 14538 | |
e6cc62c6 VS |
14539 | ; |
14540 | return 0; | |
14541 | } | |
14542 | _ACEOF | |
14543 | rm -f conftest.$ac_objext | |
14544 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 14545 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14546 | ac_status=$? |
eea650d8 VS |
14547 | grep -v '^ *+' conftest.er1 >conftest.err |
14548 | rm -f conftest.er1 | |
14549 | cat conftest.err >&5 | |
e6cc62c6 VS |
14550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14551 | (exit $ac_status); } && | |
eea650d8 VS |
14552 | { ac_try='test -z "$ac_c_werror_flag" |
14553 | || test ! -s conftest.err' | |
14554 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14555 | (eval $ac_try) 2>&5 | |
14556 | ac_status=$? | |
14557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14558 | (exit $ac_status); }; } && | |
14559 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14561 | (eval $ac_try) 2>&5 | |
14562 | ac_status=$? | |
14563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14564 | (exit $ac_status); }; }; then | |
14565 | ac_lo=0 ac_mid=0 | |
14566 | while :; do | |
14567 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14568 | /* confdefs.h. */ |
14569 | _ACEOF | |
14570 | cat confdefs.h >>conftest.$ac_ext | |
14571 | cat >>conftest.$ac_ext <<_ACEOF | |
14572 | /* end confdefs.h. */ | |
14573 | $ac_includes_default | |
14574 | int | |
14575 | main () | |
14576 | { | |
14577 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
14578 | test_array [0] = 0 | |
14579 | ||
14580 | ; | |
14581 | return 0; | |
14582 | } | |
14583 | _ACEOF | |
14584 | rm -f conftest.$ac_objext | |
14585 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 14586 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14587 | ac_status=$? |
eea650d8 VS |
14588 | grep -v '^ *+' conftest.er1 >conftest.err |
14589 | rm -f conftest.er1 | |
14590 | cat conftest.err >&5 | |
e6cc62c6 VS |
14591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14592 | (exit $ac_status); } && | |
eea650d8 VS |
14593 | { ac_try='test -z "$ac_c_werror_flag" |
14594 | || test ! -s conftest.err' | |
14595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14596 | (eval $ac_try) 2>&5 | |
14597 | ac_status=$? | |
14598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14599 | (exit $ac_status); }; } && | |
14600 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14602 | (eval $ac_try) 2>&5 | |
14603 | ac_status=$? | |
14604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14605 | (exit $ac_status); }; }; then | |
14606 | ac_hi=$ac_mid; break | |
14607 | else | |
14608 | echo "$as_me: failed program was:" >&5 | |
14609 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14610 | ||
14611 | ac_lo=`expr $ac_mid + 1` | |
eea650d8 VS |
14612 | if test $ac_lo -le $ac_mid; then |
14613 | ac_lo= ac_hi= | |
14614 | break | |
14615 | fi | |
14616 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
247f5006 | 14617 | fi |
eea650d8 | 14618 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14619 | done |
14620 | else | |
14621 | echo "$as_me: failed program was:" >&5 | |
14622 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14623 | ||
14624 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14625 | /* confdefs.h. */ |
14626 | _ACEOF | |
14627 | cat confdefs.h >>conftest.$ac_ext | |
14628 | cat >>conftest.$ac_ext <<_ACEOF | |
14629 | /* end confdefs.h. */ | |
14630 | $ac_includes_default | |
14631 | int | |
14632 | main () | |
14633 | { | |
14634 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
14635 | test_array [0] = 0 | |
247f5006 | 14636 | |
e6cc62c6 VS |
14637 | ; |
14638 | return 0; | |
14639 | } | |
14640 | _ACEOF | |
14641 | rm -f conftest.$ac_objext | |
14642 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 14643 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14644 | ac_status=$? |
eea650d8 VS |
14645 | grep -v '^ *+' conftest.er1 >conftest.err |
14646 | rm -f conftest.er1 | |
14647 | cat conftest.err >&5 | |
e6cc62c6 VS |
14648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14649 | (exit $ac_status); } && | |
eea650d8 VS |
14650 | { ac_try='test -z "$ac_c_werror_flag" |
14651 | || test ! -s conftest.err' | |
14652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14653 | (eval $ac_try) 2>&5 | |
14654 | ac_status=$? | |
14655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14656 | (exit $ac_status); }; } && | |
14657 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14659 | (eval $ac_try) 2>&5 | |
14660 | ac_status=$? | |
14661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14662 | (exit $ac_status); }; }; then | |
14663 | ac_hi=-1 ac_mid=-1 | |
14664 | while :; do | |
14665 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14666 | /* confdefs.h. */ |
14667 | _ACEOF | |
14668 | cat confdefs.h >>conftest.$ac_ext | |
14669 | cat >>conftest.$ac_ext <<_ACEOF | |
14670 | /* end confdefs.h. */ | |
14671 | $ac_includes_default | |
14672 | int | |
14673 | main () | |
14674 | { | |
14675 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; | |
14676 | test_array [0] = 0 | |
247f5006 | 14677 | |
e6cc62c6 VS |
14678 | ; |
14679 | return 0; | |
14680 | } | |
14681 | _ACEOF | |
14682 | rm -f conftest.$ac_objext | |
14683 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 14684 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14685 | ac_status=$? |
eea650d8 VS |
14686 | grep -v '^ *+' conftest.er1 >conftest.err |
14687 | rm -f conftest.er1 | |
14688 | cat conftest.err >&5 | |
e6cc62c6 VS |
14689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14690 | (exit $ac_status); } && | |
eea650d8 VS |
14691 | { ac_try='test -z "$ac_c_werror_flag" |
14692 | || test ! -s conftest.err' | |
14693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14694 | (eval $ac_try) 2>&5 | |
14695 | ac_status=$? | |
14696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14697 | (exit $ac_status); }; } && | |
14698 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14700 | (eval $ac_try) 2>&5 | |
14701 | ac_status=$? | |
14702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14703 | (exit $ac_status); }; }; then | |
14704 | ac_lo=$ac_mid; break | |
14705 | else | |
14706 | echo "$as_me: failed program was:" >&5 | |
14707 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14708 | ||
14709 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
eea650d8 VS |
14710 | if test $ac_mid -le $ac_hi; then |
14711 | ac_lo= ac_hi= | |
14712 | break | |
14713 | fi | |
14714 | ac_mid=`expr 2 '*' $ac_mid` | |
e6cc62c6 | 14715 | fi |
eea650d8 | 14716 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 14717 | done |
247f5006 | 14718 | else |
e6cc62c6 VS |
14719 | echo "$as_me: failed program was:" >&5 |
14720 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14721 | ||
14722 | ac_lo= ac_hi= | |
14723 | fi | |
eea650d8 | 14724 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 14725 | fi |
eea650d8 | 14726 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14727 | # Binary search between lo and hi bounds. |
14728 | while test "x$ac_lo" != "x$ac_hi"; do | |
14729 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14730 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14731 | /* confdefs.h. */ |
14732 | _ACEOF | |
14733 | cat confdefs.h >>conftest.$ac_ext | |
14734 | cat >>conftest.$ac_ext <<_ACEOF | |
14735 | /* end confdefs.h. */ | |
14736 | $ac_includes_default | |
14737 | int | |
14738 | main () | |
14739 | { | |
14740 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
14741 | test_array [0] = 0 | |
14742 | ||
14743 | ; | |
14744 | return 0; | |
14745 | } | |
14746 | _ACEOF | |
14747 | rm -f conftest.$ac_objext | |
14748 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 14749 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14750 | ac_status=$? |
eea650d8 VS |
14751 | grep -v '^ *+' conftest.er1 >conftest.err |
14752 | rm -f conftest.er1 | |
14753 | cat conftest.err >&5 | |
e6cc62c6 VS |
14754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14755 | (exit $ac_status); } && | |
eea650d8 VS |
14756 | { ac_try='test -z "$ac_c_werror_flag" |
14757 | || test ! -s conftest.err' | |
14758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14759 | (eval $ac_try) 2>&5 | |
14760 | ac_status=$? | |
14761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14762 | (exit $ac_status); }; } && | |
14763 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14765 | (eval $ac_try) 2>&5 | |
14766 | ac_status=$? | |
14767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14768 | (exit $ac_status); }; }; then | |
14769 | ac_hi=$ac_mid | |
14770 | else | |
14771 | echo "$as_me: failed program was:" >&5 | |
14772 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14773 | ||
14774 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
14775 | fi | |
eea650d8 | 14776 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14777 | done |
14778 | case $ac_lo in | |
14779 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
14780 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
14781 | See \`config.log' for more details." >&5 | |
14782 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
14783 | See \`config.log' for more details." >&2;} | |
14784 | { (exit 1); exit 1; }; } ;; | |
14785 | esac | |
247f5006 | 14786 | else |
e6cc62c6 VS |
14787 | if test "$cross_compiling" = yes; then |
14788 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
14789 | See \`config.log' for more details." >&5 | |
14790 | echo "$as_me: error: cannot run test program while cross compiling | |
14791 | See \`config.log' for more details." >&2;} | |
14792 | { (exit 1); exit 1; }; } | |
14793 | else | |
14794 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14795 | /* confdefs.h. */ |
14796 | _ACEOF | |
14797 | cat confdefs.h >>conftest.$ac_ext | |
14798 | cat >>conftest.$ac_ext <<_ACEOF | |
14799 | /* end confdefs.h. */ | |
14800 | $ac_includes_default | |
14801 | long longval () { return (long) (sizeof (short)); } | |
14802 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
a0b9e27f | 14803 | #include <stdio.h> |
e6cc62c6 VS |
14804 | #include <stdlib.h> |
14805 | int | |
14806 | main () | |
a0b9e27f | 14807 | { |
e6cc62c6 VS |
14808 | |
14809 | FILE *f = fopen ("conftest.val", "w"); | |
14810 | if (! f) | |
14811 | exit (1); | |
14812 | if (((long) (sizeof (short))) < 0) | |
14813 | { | |
14814 | long i = longval (); | |
14815 | if (i != ((long) (sizeof (short)))) | |
14816 | exit (1); | |
14817 | fprintf (f, "%ld\n", i); | |
14818 | } | |
14819 | else | |
14820 | { | |
14821 | unsigned long i = ulongval (); | |
14822 | if (i != ((long) (sizeof (short)))) | |
14823 | exit (1); | |
14824 | fprintf (f, "%lu\n", i); | |
14825 | } | |
14826 | exit (ferror (f) || fclose (f) != 0); | |
14827 | ||
14828 | ; | |
14829 | return 0; | |
a0b9e27f | 14830 | } |
e6cc62c6 VS |
14831 | _ACEOF |
14832 | rm -f conftest$ac_exeext | |
14833 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14834 | (eval $ac_link) 2>&5 | |
14835 | ac_status=$? | |
14836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14837 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14839 | (eval $ac_try) 2>&5 | |
14840 | ac_status=$? | |
14841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14842 | (exit $ac_status); }; }; then | |
14843 | ac_cv_sizeof_short=`cat conftest.val` | |
14844 | else | |
14845 | echo "$as_me: program exited with status $ac_status" >&5 | |
14846 | echo "$as_me: failed program was:" >&5 | |
14847 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14848 | ||
14849 | ( exit $ac_status ) | |
14850 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
14851 | See \`config.log' for more details." >&5 | |
14852 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
14853 | See \`config.log' for more details." >&2;} | |
14854 | { (exit 1); exit 1; }; } | |
14855 | fi | |
eea650d8 | 14856 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14857 | fi |
14858 | fi | |
14859 | rm -f conftest.val | |
247f5006 | 14860 | else |
a0b9e27f | 14861 | ac_cv_sizeof_short=0 |
247f5006 | 14862 | fi |
247f5006 | 14863 | fi |
e6cc62c6 VS |
14864 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
14865 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
14866 | cat >>confdefs.h <<_ACEOF | |
14867 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
14868 | _ACEOF | |
14869 | ||
14870 | ||
14871 | echo "$as_me:$LINENO: checking for void *" >&5 | |
14872 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
14873 | if test "${ac_cv_type_void_p+set}" = set; then | |
14874 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14875 | else | |
14876 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14877 | /* confdefs.h. */ |
14878 | _ACEOF | |
14879 | cat confdefs.h >>conftest.$ac_ext | |
14880 | cat >>conftest.$ac_ext <<_ACEOF | |
14881 | /* end confdefs.h. */ | |
14882 | $ac_includes_default | |
14883 | int | |
14884 | main () | |
14885 | { | |
14886 | if ((void * *) 0) | |
14887 | return 0; | |
14888 | if (sizeof (void *)) | |
14889 | return 0; | |
14890 | ; | |
14891 | return 0; | |
14892 | } | |
14893 | _ACEOF | |
14894 | rm -f conftest.$ac_objext | |
14895 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 14896 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14897 | ac_status=$? |
eea650d8 VS |
14898 | grep -v '^ *+' conftest.er1 >conftest.err |
14899 | rm -f conftest.er1 | |
14900 | cat conftest.err >&5 | |
e6cc62c6 VS |
14901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14902 | (exit $ac_status); } && | |
eea650d8 VS |
14903 | { ac_try='test -z "$ac_c_werror_flag" |
14904 | || test ! -s conftest.err' | |
14905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14906 | (eval $ac_try) 2>&5 | |
14907 | ac_status=$? | |
14908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14909 | (exit $ac_status); }; } && | |
14910 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14912 | (eval $ac_try) 2>&5 | |
14913 | ac_status=$? | |
14914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14915 | (exit $ac_status); }; }; then | |
14916 | ac_cv_type_void_p=yes | |
14917 | else | |
14918 | echo "$as_me: failed program was:" >&5 | |
14919 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14920 | ||
14921 | ac_cv_type_void_p=no | |
14922 | fi | |
eea650d8 | 14923 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14924 | fi |
14925 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
14926 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
14927 | ||
14928 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
14929 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
14930 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
14931 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14932 | else | |
14933 | if test "$ac_cv_type_void_p" = yes; then | |
14934 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14935 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14936 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14937 | # This bug is HP SR number 8606223364. | |
14938 | if test "$cross_compiling" = yes; then | |
14939 | # Depending upon the size, compute the lo and hi bounds. | |
14940 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14941 | /* confdefs.h. */ |
14942 | _ACEOF | |
14943 | cat confdefs.h >>conftest.$ac_ext | |
14944 | cat >>conftest.$ac_ext <<_ACEOF | |
14945 | /* end confdefs.h. */ | |
14946 | $ac_includes_default | |
14947 | int | |
14948 | main () | |
14949 | { | |
14950 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
14951 | test_array [0] = 0 | |
14952 | ||
14953 | ; | |
14954 | return 0; | |
14955 | } | |
14956 | _ACEOF | |
14957 | rm -f conftest.$ac_objext | |
14958 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 14959 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14960 | ac_status=$? |
eea650d8 VS |
14961 | grep -v '^ *+' conftest.er1 >conftest.err |
14962 | rm -f conftest.er1 | |
14963 | cat conftest.err >&5 | |
e6cc62c6 VS |
14964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14965 | (exit $ac_status); } && | |
eea650d8 VS |
14966 | { ac_try='test -z "$ac_c_werror_flag" |
14967 | || test ! -s conftest.err' | |
14968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14969 | (eval $ac_try) 2>&5 | |
14970 | ac_status=$? | |
14971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14972 | (exit $ac_status); }; } && | |
14973 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14975 | (eval $ac_try) 2>&5 | |
14976 | ac_status=$? | |
14977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14978 | (exit $ac_status); }; }; then | |
14979 | ac_lo=0 ac_mid=0 | |
14980 | while :; do | |
14981 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14982 | /* confdefs.h. */ |
14983 | _ACEOF | |
14984 | cat confdefs.h >>conftest.$ac_ext | |
14985 | cat >>conftest.$ac_ext <<_ACEOF | |
14986 | /* end confdefs.h. */ | |
14987 | $ac_includes_default | |
14988 | int | |
14989 | main () | |
14990 | { | |
14991 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
14992 | test_array [0] = 0 | |
247f5006 | 14993 | |
e6cc62c6 VS |
14994 | ; |
14995 | return 0; | |
14996 | } | |
14997 | _ACEOF | |
14998 | rm -f conftest.$ac_objext | |
14999 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 15000 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15001 | ac_status=$? |
eea650d8 VS |
15002 | grep -v '^ *+' conftest.er1 >conftest.err |
15003 | rm -f conftest.er1 | |
15004 | cat conftest.err >&5 | |
e6cc62c6 VS |
15005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15006 | (exit $ac_status); } && | |
eea650d8 VS |
15007 | { ac_try='test -z "$ac_c_werror_flag" |
15008 | || test ! -s conftest.err' | |
15009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15010 | (eval $ac_try) 2>&5 | |
15011 | ac_status=$? | |
15012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15013 | (exit $ac_status); }; } && | |
15014 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15016 | (eval $ac_try) 2>&5 | |
15017 | ac_status=$? | |
15018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15019 | (exit $ac_status); }; }; then | |
15020 | ac_hi=$ac_mid; break | |
15021 | else | |
15022 | echo "$as_me: failed program was:" >&5 | |
15023 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15024 | ||
15025 | ac_lo=`expr $ac_mid + 1` | |
eea650d8 VS |
15026 | if test $ac_lo -le $ac_mid; then |
15027 | ac_lo= ac_hi= | |
15028 | break | |
15029 | fi | |
15030 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
247f5006 | 15031 | fi |
eea650d8 | 15032 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15033 | done |
15034 | else | |
15035 | echo "$as_me: failed program was:" >&5 | |
15036 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15037 | ||
15038 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15039 | /* confdefs.h. */ |
15040 | _ACEOF | |
15041 | cat confdefs.h >>conftest.$ac_ext | |
15042 | cat >>conftest.$ac_ext <<_ACEOF | |
15043 | /* end confdefs.h. */ | |
15044 | $ac_includes_default | |
15045 | int | |
15046 | main () | |
15047 | { | |
15048 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
15049 | test_array [0] = 0 | |
247f5006 | 15050 | |
e6cc62c6 VS |
15051 | ; |
15052 | return 0; | |
15053 | } | |
15054 | _ACEOF | |
15055 | rm -f conftest.$ac_objext | |
15056 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 15057 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15058 | ac_status=$? |
eea650d8 VS |
15059 | grep -v '^ *+' conftest.er1 >conftest.err |
15060 | rm -f conftest.er1 | |
15061 | cat conftest.err >&5 | |
e6cc62c6 VS |
15062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15063 | (exit $ac_status); } && | |
eea650d8 VS |
15064 | { ac_try='test -z "$ac_c_werror_flag" |
15065 | || test ! -s conftest.err' | |
15066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15067 | (eval $ac_try) 2>&5 | |
15068 | ac_status=$? | |
15069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15070 | (exit $ac_status); }; } && | |
15071 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15073 | (eval $ac_try) 2>&5 | |
15074 | ac_status=$? | |
15075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15076 | (exit $ac_status); }; }; then | |
15077 | ac_hi=-1 ac_mid=-1 | |
15078 | while :; do | |
15079 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15080 | /* confdefs.h. */ |
15081 | _ACEOF | |
15082 | cat confdefs.h >>conftest.$ac_ext | |
15083 | cat >>conftest.$ac_ext <<_ACEOF | |
15084 | /* end confdefs.h. */ | |
15085 | $ac_includes_default | |
15086 | int | |
15087 | main () | |
15088 | { | |
15089 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
15090 | test_array [0] = 0 | |
247f5006 | 15091 | |
e6cc62c6 VS |
15092 | ; |
15093 | return 0; | |
15094 | } | |
15095 | _ACEOF | |
15096 | rm -f conftest.$ac_objext | |
15097 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 15098 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15099 | ac_status=$? |
eea650d8 VS |
15100 | grep -v '^ *+' conftest.er1 >conftest.err |
15101 | rm -f conftest.er1 | |
15102 | cat conftest.err >&5 | |
e6cc62c6 VS |
15103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15104 | (exit $ac_status); } && | |
eea650d8 VS |
15105 | { ac_try='test -z "$ac_c_werror_flag" |
15106 | || test ! -s conftest.err' | |
15107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15108 | (eval $ac_try) 2>&5 | |
15109 | ac_status=$? | |
15110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15111 | (exit $ac_status); }; } && | |
15112 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15114 | (eval $ac_try) 2>&5 | |
15115 | ac_status=$? | |
15116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15117 | (exit $ac_status); }; }; then | |
15118 | ac_lo=$ac_mid; break | |
15119 | else | |
15120 | echo "$as_me: failed program was:" >&5 | |
15121 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15122 | ||
15123 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
eea650d8 VS |
15124 | if test $ac_mid -le $ac_hi; then |
15125 | ac_lo= ac_hi= | |
15126 | break | |
15127 | fi | |
15128 | ac_mid=`expr 2 '*' $ac_mid` | |
e6cc62c6 | 15129 | fi |
eea650d8 | 15130 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 15131 | done |
a0b9e27f | 15132 | else |
e6cc62c6 VS |
15133 | echo "$as_me: failed program was:" >&5 |
15134 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15135 | ||
15136 | ac_lo= ac_hi= | |
15137 | fi | |
eea650d8 | 15138 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 15139 | fi |
eea650d8 | 15140 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15141 | # Binary search between lo and hi bounds. |
15142 | while test "x$ac_lo" != "x$ac_hi"; do | |
15143 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15144 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15145 | /* confdefs.h. */ |
15146 | _ACEOF | |
15147 | cat confdefs.h >>conftest.$ac_ext | |
15148 | cat >>conftest.$ac_ext <<_ACEOF | |
15149 | /* end confdefs.h. */ | |
15150 | $ac_includes_default | |
15151 | int | |
15152 | main () | |
15153 | { | |
15154 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
15155 | test_array [0] = 0 | |
15156 | ||
15157 | ; | |
15158 | return 0; | |
15159 | } | |
15160 | _ACEOF | |
15161 | rm -f conftest.$ac_objext | |
15162 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 15163 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15164 | ac_status=$? |
eea650d8 VS |
15165 | grep -v '^ *+' conftest.er1 >conftest.err |
15166 | rm -f conftest.er1 | |
15167 | cat conftest.err >&5 | |
e6cc62c6 VS |
15168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15169 | (exit $ac_status); } && | |
eea650d8 VS |
15170 | { ac_try='test -z "$ac_c_werror_flag" |
15171 | || test ! -s conftest.err' | |
15172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15173 | (eval $ac_try) 2>&5 | |
15174 | ac_status=$? | |
15175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15176 | (exit $ac_status); }; } && | |
15177 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15179 | (eval $ac_try) 2>&5 | |
15180 | ac_status=$? | |
15181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15182 | (exit $ac_status); }; }; then | |
15183 | ac_hi=$ac_mid | |
15184 | else | |
15185 | echo "$as_me: failed program was:" >&5 | |
15186 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15187 | ||
15188 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15189 | fi | |
eea650d8 | 15190 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15191 | done |
15192 | case $ac_lo in | |
15193 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
15194 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
15195 | See \`config.log' for more details." >&5 | |
15196 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
15197 | See \`config.log' for more details." >&2;} | |
15198 | { (exit 1); exit 1; }; } ;; | |
15199 | esac | |
247f5006 | 15200 | else |
e6cc62c6 VS |
15201 | if test "$cross_compiling" = yes; then |
15202 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
15203 | See \`config.log' for more details." >&5 | |
15204 | echo "$as_me: error: cannot run test program while cross compiling | |
15205 | See \`config.log' for more details." >&2;} | |
15206 | { (exit 1); exit 1; }; } | |
15207 | else | |
15208 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15209 | /* confdefs.h. */ |
15210 | _ACEOF | |
15211 | cat confdefs.h >>conftest.$ac_ext | |
15212 | cat >>conftest.$ac_ext <<_ACEOF | |
15213 | /* end confdefs.h. */ | |
15214 | $ac_includes_default | |
15215 | long longval () { return (long) (sizeof (void *)); } | |
15216 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
247f5006 | 15217 | #include <stdio.h> |
e6cc62c6 VS |
15218 | #include <stdlib.h> |
15219 | int | |
15220 | main () | |
247f5006 | 15221 | { |
e6cc62c6 VS |
15222 | |
15223 | FILE *f = fopen ("conftest.val", "w"); | |
15224 | if (! f) | |
15225 | exit (1); | |
15226 | if (((long) (sizeof (void *))) < 0) | |
15227 | { | |
15228 | long i = longval (); | |
15229 | if (i != ((long) (sizeof (void *)))) | |
15230 | exit (1); | |
15231 | fprintf (f, "%ld\n", i); | |
15232 | } | |
15233 | else | |
15234 | { | |
15235 | unsigned long i = ulongval (); | |
15236 | if (i != ((long) (sizeof (void *)))) | |
15237 | exit (1); | |
15238 | fprintf (f, "%lu\n", i); | |
15239 | } | |
15240 | exit (ferror (f) || fclose (f) != 0); | |
15241 | ||
15242 | ; | |
15243 | return 0; | |
5c6fa7d2 | 15244 | } |
e6cc62c6 VS |
15245 | _ACEOF |
15246 | rm -f conftest$ac_exeext | |
15247 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15248 | (eval $ac_link) 2>&5 | |
15249 | ac_status=$? | |
15250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15251 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15253 | (eval $ac_try) 2>&5 | |
15254 | ac_status=$? | |
15255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15256 | (exit $ac_status); }; }; then | |
15257 | ac_cv_sizeof_void_p=`cat conftest.val` | |
15258 | else | |
15259 | echo "$as_me: program exited with status $ac_status" >&5 | |
15260 | echo "$as_me: failed program was:" >&5 | |
15261 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15262 | ||
15263 | ( exit $ac_status ) | |
15264 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
15265 | See \`config.log' for more details." >&5 | |
15266 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
15267 | See \`config.log' for more details." >&2;} | |
15268 | { (exit 1); exit 1; }; } | |
15269 | fi | |
eea650d8 | 15270 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15271 | fi |
15272 | fi | |
15273 | rm -f conftest.val | |
a0b9e27f | 15274 | else |
a0b9e27f MB |
15275 | ac_cv_sizeof_void_p=0 |
15276 | fi | |
a0b9e27f | 15277 | fi |
e6cc62c6 VS |
15278 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
15279 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
15280 | cat >>confdefs.h <<_ACEOF | |
15281 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
15282 | _ACEOF | |
15283 | ||
15284 | ||
15285 | echo "$as_me:$LINENO: checking for int" >&5 | |
15286 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
15287 | if test "${ac_cv_type_int+set}" = set; then | |
15288 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15289 | else | |
15290 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15291 | /* confdefs.h. */ |
15292 | _ACEOF | |
15293 | cat confdefs.h >>conftest.$ac_ext | |
15294 | cat >>conftest.$ac_ext <<_ACEOF | |
15295 | /* end confdefs.h. */ | |
15296 | $ac_includes_default | |
15297 | int | |
15298 | main () | |
15299 | { | |
15300 | if ((int *) 0) | |
15301 | return 0; | |
15302 | if (sizeof (int)) | |
15303 | return 0; | |
15304 | ; | |
15305 | return 0; | |
15306 | } | |
15307 | _ACEOF | |
15308 | rm -f conftest.$ac_objext | |
15309 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 15310 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15311 | ac_status=$? |
eea650d8 VS |
15312 | grep -v '^ *+' conftest.er1 >conftest.err |
15313 | rm -f conftest.er1 | |
15314 | cat conftest.err >&5 | |
e6cc62c6 VS |
15315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15316 | (exit $ac_status); } && | |
eea650d8 VS |
15317 | { ac_try='test -z "$ac_c_werror_flag" |
15318 | || test ! -s conftest.err' | |
15319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15320 | (eval $ac_try) 2>&5 | |
15321 | ac_status=$? | |
15322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15323 | (exit $ac_status); }; } && | |
15324 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15326 | (eval $ac_try) 2>&5 | |
15327 | ac_status=$? | |
15328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15329 | (exit $ac_status); }; }; then | |
15330 | ac_cv_type_int=yes | |
15331 | else | |
15332 | echo "$as_me: failed program was:" >&5 | |
15333 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15334 | ||
15335 | ac_cv_type_int=no | |
15336 | fi | |
eea650d8 | 15337 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15338 | fi |
15339 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
15340 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
15341 | ||
15342 | echo "$as_me:$LINENO: checking size of int" >&5 | |
15343 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
15344 | if test "${ac_cv_sizeof_int+set}" = set; then | |
15345 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15346 | else | |
15347 | if test "$ac_cv_type_int" = yes; then | |
15348 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15349 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15350 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15351 | # This bug is HP SR number 8606223364. | |
15352 | if test "$cross_compiling" = yes; then | |
15353 | # Depending upon the size, compute the lo and hi bounds. | |
15354 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15355 | /* confdefs.h. */ |
15356 | _ACEOF | |
15357 | cat confdefs.h >>conftest.$ac_ext | |
15358 | cat >>conftest.$ac_ext <<_ACEOF | |
15359 | /* end confdefs.h. */ | |
15360 | $ac_includes_default | |
15361 | int | |
15362 | main () | |
15363 | { | |
15364 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
15365 | test_array [0] = 0 | |
8284b0c5 | 15366 | |
e6cc62c6 VS |
15367 | ; |
15368 | return 0; | |
15369 | } | |
15370 | _ACEOF | |
15371 | rm -f conftest.$ac_objext | |
15372 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 15373 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15374 | ac_status=$? |
eea650d8 VS |
15375 | grep -v '^ *+' conftest.er1 >conftest.err |
15376 | rm -f conftest.er1 | |
15377 | cat conftest.err >&5 | |
e6cc62c6 VS |
15378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15379 | (exit $ac_status); } && | |
eea650d8 VS |
15380 | { ac_try='test -z "$ac_c_werror_flag" |
15381 | || test ! -s conftest.err' | |
15382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15383 | (eval $ac_try) 2>&5 | |
15384 | ac_status=$? | |
15385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15386 | (exit $ac_status); }; } && | |
15387 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15389 | (eval $ac_try) 2>&5 | |
15390 | ac_status=$? | |
15391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15392 | (exit $ac_status); }; }; then | |
15393 | ac_lo=0 ac_mid=0 | |
15394 | while :; do | |
15395 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15396 | /* confdefs.h. */ |
15397 | _ACEOF | |
15398 | cat confdefs.h >>conftest.$ac_ext | |
15399 | cat >>conftest.$ac_ext <<_ACEOF | |
15400 | /* end confdefs.h. */ | |
15401 | $ac_includes_default | |
15402 | int | |
15403 | main () | |
15404 | { | |
15405 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
15406 | test_array [0] = 0 | |
15407 | ||
15408 | ; | |
15409 | return 0; | |
15410 | } | |
15411 | _ACEOF | |
15412 | rm -f conftest.$ac_objext | |
15413 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 15414 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15415 | ac_status=$? |
eea650d8 VS |
15416 | grep -v '^ *+' conftest.er1 >conftest.err |
15417 | rm -f conftest.er1 | |
15418 | cat conftest.err >&5 | |
e6cc62c6 VS |
15419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15420 | (exit $ac_status); } && | |
eea650d8 VS |
15421 | { ac_try='test -z "$ac_c_werror_flag" |
15422 | || test ! -s conftest.err' | |
15423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15424 | (eval $ac_try) 2>&5 | |
15425 | ac_status=$? | |
15426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15427 | (exit $ac_status); }; } && | |
15428 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15430 | (eval $ac_try) 2>&5 | |
15431 | ac_status=$? | |
15432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15433 | (exit $ac_status); }; }; then | |
15434 | ac_hi=$ac_mid; break | |
15435 | else | |
15436 | echo "$as_me: failed program was:" >&5 | |
15437 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15438 | ||
15439 | ac_lo=`expr $ac_mid + 1` | |
eea650d8 VS |
15440 | if test $ac_lo -le $ac_mid; then |
15441 | ac_lo= ac_hi= | |
15442 | break | |
15443 | fi | |
15444 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
247f5006 | 15445 | fi |
eea650d8 | 15446 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15447 | done |
15448 | else | |
15449 | echo "$as_me: failed program was:" >&5 | |
15450 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15451 | ||
15452 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15453 | /* confdefs.h. */ |
15454 | _ACEOF | |
15455 | cat confdefs.h >>conftest.$ac_ext | |
15456 | cat >>conftest.$ac_ext <<_ACEOF | |
15457 | /* end confdefs.h. */ | |
15458 | $ac_includes_default | |
15459 | int | |
15460 | main () | |
15461 | { | |
15462 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
15463 | test_array [0] = 0 | |
247f5006 | 15464 | |
e6cc62c6 VS |
15465 | ; |
15466 | return 0; | |
15467 | } | |
15468 | _ACEOF | |
15469 | rm -f conftest.$ac_objext | |
15470 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 15471 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15472 | ac_status=$? |
eea650d8 VS |
15473 | grep -v '^ *+' conftest.er1 >conftest.err |
15474 | rm -f conftest.er1 | |
15475 | cat conftest.err >&5 | |
e6cc62c6 VS |
15476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15477 | (exit $ac_status); } && | |
eea650d8 VS |
15478 | { ac_try='test -z "$ac_c_werror_flag" |
15479 | || test ! -s conftest.err' | |
15480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15481 | (eval $ac_try) 2>&5 | |
15482 | ac_status=$? | |
15483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15484 | (exit $ac_status); }; } && | |
15485 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15487 | (eval $ac_try) 2>&5 | |
15488 | ac_status=$? | |
15489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15490 | (exit $ac_status); }; }; then | |
15491 | ac_hi=-1 ac_mid=-1 | |
15492 | while :; do | |
15493 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15494 | /* confdefs.h. */ |
15495 | _ACEOF | |
15496 | cat confdefs.h >>conftest.$ac_ext | |
15497 | cat >>conftest.$ac_ext <<_ACEOF | |
15498 | /* end confdefs.h. */ | |
15499 | $ac_includes_default | |
15500 | int | |
15501 | main () | |
15502 | { | |
15503 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
15504 | test_array [0] = 0 | |
247f5006 | 15505 | |
e6cc62c6 VS |
15506 | ; |
15507 | return 0; | |
15508 | } | |
15509 | _ACEOF | |
15510 | rm -f conftest.$ac_objext | |
15511 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 15512 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15513 | ac_status=$? |
eea650d8 VS |
15514 | grep -v '^ *+' conftest.er1 >conftest.err |
15515 | rm -f conftest.er1 | |
15516 | cat conftest.err >&5 | |
e6cc62c6 VS |
15517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15518 | (exit $ac_status); } && | |
eea650d8 VS |
15519 | { ac_try='test -z "$ac_c_werror_flag" |
15520 | || test ! -s conftest.err' | |
15521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15522 | (eval $ac_try) 2>&5 | |
15523 | ac_status=$? | |
15524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15525 | (exit $ac_status); }; } && | |
15526 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15528 | (eval $ac_try) 2>&5 | |
15529 | ac_status=$? | |
15530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15531 | (exit $ac_status); }; }; then | |
15532 | ac_lo=$ac_mid; break | |
15533 | else | |
15534 | echo "$as_me: failed program was:" >&5 | |
15535 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15536 | ||
15537 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
eea650d8 VS |
15538 | if test $ac_mid -le $ac_hi; then |
15539 | ac_lo= ac_hi= | |
15540 | break | |
15541 | fi | |
15542 | ac_mid=`expr 2 '*' $ac_mid` | |
e6cc62c6 | 15543 | fi |
eea650d8 | 15544 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 15545 | done |
247f5006 | 15546 | else |
e6cc62c6 VS |
15547 | echo "$as_me: failed program was:" >&5 |
15548 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15549 | ||
15550 | ac_lo= ac_hi= | |
15551 | fi | |
eea650d8 | 15552 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 15553 | fi |
eea650d8 | 15554 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15555 | # Binary search between lo and hi bounds. |
15556 | while test "x$ac_lo" != "x$ac_hi"; do | |
15557 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15558 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15559 | /* confdefs.h. */ |
15560 | _ACEOF | |
15561 | cat confdefs.h >>conftest.$ac_ext | |
15562 | cat >>conftest.$ac_ext <<_ACEOF | |
15563 | /* end confdefs.h. */ | |
15564 | $ac_includes_default | |
15565 | int | |
15566 | main () | |
15567 | { | |
15568 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
15569 | test_array [0] = 0 | |
15570 | ||
15571 | ; | |
15572 | return 0; | |
15573 | } | |
15574 | _ACEOF | |
15575 | rm -f conftest.$ac_objext | |
15576 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 15577 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15578 | ac_status=$? |
eea650d8 VS |
15579 | grep -v '^ *+' conftest.er1 >conftest.err |
15580 | rm -f conftest.er1 | |
15581 | cat conftest.err >&5 | |
e6cc62c6 VS |
15582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15583 | (exit $ac_status); } && | |
eea650d8 VS |
15584 | { ac_try='test -z "$ac_c_werror_flag" |
15585 | || test ! -s conftest.err' | |
15586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15587 | (eval $ac_try) 2>&5 | |
15588 | ac_status=$? | |
15589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15590 | (exit $ac_status); }; } && | |
15591 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15593 | (eval $ac_try) 2>&5 | |
15594 | ac_status=$? | |
15595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15596 | (exit $ac_status); }; }; then | |
15597 | ac_hi=$ac_mid | |
15598 | else | |
15599 | echo "$as_me: failed program was:" >&5 | |
15600 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15601 | ||
15602 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15603 | fi | |
eea650d8 | 15604 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15605 | done |
15606 | case $ac_lo in | |
15607 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
15608 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
15609 | See \`config.log' for more details." >&5 | |
15610 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
15611 | See \`config.log' for more details." >&2;} | |
15612 | { (exit 1); exit 1; }; } ;; | |
15613 | esac | |
a0b9e27f | 15614 | else |
e6cc62c6 VS |
15615 | if test "$cross_compiling" = yes; then |
15616 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
15617 | See \`config.log' for more details." >&5 | |
15618 | echo "$as_me: error: cannot run test program while cross compiling | |
15619 | See \`config.log' for more details." >&2;} | |
15620 | { (exit 1); exit 1; }; } | |
15621 | else | |
15622 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15623 | /* confdefs.h. */ |
15624 | _ACEOF | |
15625 | cat confdefs.h >>conftest.$ac_ext | |
15626 | cat >>conftest.$ac_ext <<_ACEOF | |
15627 | /* end confdefs.h. */ | |
15628 | $ac_includes_default | |
15629 | long longval () { return (long) (sizeof (int)); } | |
15630 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
a0b9e27f | 15631 | #include <stdio.h> |
e6cc62c6 VS |
15632 | #include <stdlib.h> |
15633 | int | |
15634 | main () | |
247f5006 | 15635 | { |
e6cc62c6 VS |
15636 | |
15637 | FILE *f = fopen ("conftest.val", "w"); | |
15638 | if (! f) | |
15639 | exit (1); | |
15640 | if (((long) (sizeof (int))) < 0) | |
15641 | { | |
15642 | long i = longval (); | |
15643 | if (i != ((long) (sizeof (int)))) | |
15644 | exit (1); | |
15645 | fprintf (f, "%ld\n", i); | |
15646 | } | |
15647 | else | |
15648 | { | |
15649 | unsigned long i = ulongval (); | |
15650 | if (i != ((long) (sizeof (int)))) | |
15651 | exit (1); | |
15652 | fprintf (f, "%lu\n", i); | |
15653 | } | |
15654 | exit (ferror (f) || fclose (f) != 0); | |
15655 | ||
15656 | ; | |
15657 | return 0; | |
247f5006 | 15658 | } |
e6cc62c6 VS |
15659 | _ACEOF |
15660 | rm -f conftest$ac_exeext | |
15661 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15662 | (eval $ac_link) 2>&5 | |
15663 | ac_status=$? | |
15664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15665 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15667 | (eval $ac_try) 2>&5 | |
15668 | ac_status=$? | |
15669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15670 | (exit $ac_status); }; }; then | |
15671 | ac_cv_sizeof_int=`cat conftest.val` | |
15672 | else | |
15673 | echo "$as_me: program exited with status $ac_status" >&5 | |
15674 | echo "$as_me: failed program was:" >&5 | |
15675 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15676 | ||
15677 | ( exit $ac_status ) | |
15678 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
15679 | See \`config.log' for more details." >&5 | |
15680 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
15681 | See \`config.log' for more details." >&2;} | |
15682 | { (exit 1); exit 1; }; } | |
15683 | fi | |
eea650d8 | 15684 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15685 | fi |
15686 | fi | |
15687 | rm -f conftest.val | |
6f72b082 | 15688 | else |
a0b9e27f | 15689 | ac_cv_sizeof_int=0 |
21d1c967 | 15690 | fi |
698dcdb6 | 15691 | fi |
e6cc62c6 VS |
15692 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
15693 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
15694 | cat >>confdefs.h <<_ACEOF | |
15695 | #define SIZEOF_INT $ac_cv_sizeof_int | |
15696 | _ACEOF | |
15697 | ||
15698 | ||
15699 | echo "$as_me:$LINENO: checking for long" >&5 | |
15700 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
15701 | if test "${ac_cv_type_long+set}" = set; then | |
15702 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15703 | else | |
15704 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15705 | /* confdefs.h. */ |
15706 | _ACEOF | |
15707 | cat confdefs.h >>conftest.$ac_ext | |
15708 | cat >>conftest.$ac_ext <<_ACEOF | |
15709 | /* end confdefs.h. */ | |
15710 | $ac_includes_default | |
15711 | int | |
15712 | main () | |
15713 | { | |
15714 | if ((long *) 0) | |
15715 | return 0; | |
15716 | if (sizeof (long)) | |
15717 | return 0; | |
15718 | ; | |
15719 | return 0; | |
15720 | } | |
15721 | _ACEOF | |
15722 | rm -f conftest.$ac_objext | |
15723 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 15724 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15725 | ac_status=$? |
eea650d8 VS |
15726 | grep -v '^ *+' conftest.er1 >conftest.err |
15727 | rm -f conftest.er1 | |
15728 | cat conftest.err >&5 | |
e6cc62c6 VS |
15729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15730 | (exit $ac_status); } && | |
eea650d8 VS |
15731 | { ac_try='test -z "$ac_c_werror_flag" |
15732 | || test ! -s conftest.err' | |
15733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15734 | (eval $ac_try) 2>&5 | |
15735 | ac_status=$? | |
15736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15737 | (exit $ac_status); }; } && | |
15738 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15740 | (eval $ac_try) 2>&5 | |
15741 | ac_status=$? | |
15742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15743 | (exit $ac_status); }; }; then | |
15744 | ac_cv_type_long=yes | |
15745 | else | |
15746 | echo "$as_me: failed program was:" >&5 | |
15747 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15748 | ||
15749 | ac_cv_type_long=no | |
15750 | fi | |
eea650d8 | 15751 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15752 | fi |
15753 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
15754 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
15755 | ||
15756 | echo "$as_me:$LINENO: checking size of long" >&5 | |
15757 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
15758 | if test "${ac_cv_sizeof_long+set}" = set; then | |
15759 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15760 | else | |
15761 | if test "$ac_cv_type_long" = yes; then | |
15762 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15763 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15764 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15765 | # This bug is HP SR number 8606223364. | |
15766 | if test "$cross_compiling" = yes; then | |
15767 | # Depending upon the size, compute the lo and hi bounds. | |
15768 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15769 | /* confdefs.h. */ |
15770 | _ACEOF | |
15771 | cat confdefs.h >>conftest.$ac_ext | |
15772 | cat >>conftest.$ac_ext <<_ACEOF | |
15773 | /* end confdefs.h. */ | |
15774 | $ac_includes_default | |
15775 | int | |
15776 | main () | |
15777 | { | |
15778 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
15779 | test_array [0] = 0 | |
15780 | ||
15781 | ; | |
15782 | return 0; | |
15783 | } | |
15784 | _ACEOF | |
15785 | rm -f conftest.$ac_objext | |
15786 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 15787 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15788 | ac_status=$? |
eea650d8 VS |
15789 | grep -v '^ *+' conftest.er1 >conftest.err |
15790 | rm -f conftest.er1 | |
15791 | cat conftest.err >&5 | |
e6cc62c6 VS |
15792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15793 | (exit $ac_status); } && | |
eea650d8 VS |
15794 | { ac_try='test -z "$ac_c_werror_flag" |
15795 | || test ! -s conftest.err' | |
15796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15797 | (eval $ac_try) 2>&5 | |
15798 | ac_status=$? | |
15799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15800 | (exit $ac_status); }; } && | |
15801 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15803 | (eval $ac_try) 2>&5 | |
15804 | ac_status=$? | |
15805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15806 | (exit $ac_status); }; }; then | |
15807 | ac_lo=0 ac_mid=0 | |
15808 | while :; do | |
15809 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15810 | /* confdefs.h. */ |
15811 | _ACEOF | |
15812 | cat confdefs.h >>conftest.$ac_ext | |
15813 | cat >>conftest.$ac_ext <<_ACEOF | |
15814 | /* end confdefs.h. */ | |
15815 | $ac_includes_default | |
15816 | int | |
15817 | main () | |
15818 | { | |
15819 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
15820 | test_array [0] = 0 | |
4f14bcd8 | 15821 | |
e6cc62c6 VS |
15822 | ; |
15823 | return 0; | |
15824 | } | |
15825 | _ACEOF | |
15826 | rm -f conftest.$ac_objext | |
15827 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 15828 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15829 | ac_status=$? |
eea650d8 VS |
15830 | grep -v '^ *+' conftest.er1 >conftest.err |
15831 | rm -f conftest.er1 | |
15832 | cat conftest.err >&5 | |
e6cc62c6 VS |
15833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15834 | (exit $ac_status); } && | |
eea650d8 VS |
15835 | { ac_try='test -z "$ac_c_werror_flag" |
15836 | || test ! -s conftest.err' | |
15837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15838 | (eval $ac_try) 2>&5 | |
15839 | ac_status=$? | |
15840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15841 | (exit $ac_status); }; } && | |
15842 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15844 | (eval $ac_try) 2>&5 | |
15845 | ac_status=$? | |
15846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15847 | (exit $ac_status); }; }; then | |
15848 | ac_hi=$ac_mid; break | |
15849 | else | |
15850 | echo "$as_me: failed program was:" >&5 | |
15851 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15852 | ||
15853 | ac_lo=`expr $ac_mid + 1` | |
eea650d8 VS |
15854 | if test $ac_lo -le $ac_mid; then |
15855 | ac_lo= ac_hi= | |
15856 | break | |
15857 | fi | |
15858 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
21d1c967 | 15859 | fi |
eea650d8 | 15860 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15861 | done |
15862 | else | |
15863 | echo "$as_me: failed program was:" >&5 | |
15864 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15865 | ||
15866 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15867 | /* confdefs.h. */ |
15868 | _ACEOF | |
15869 | cat confdefs.h >>conftest.$ac_ext | |
15870 | cat >>conftest.$ac_ext <<_ACEOF | |
15871 | /* end confdefs.h. */ | |
15872 | $ac_includes_default | |
15873 | int | |
15874 | main () | |
15875 | { | |
15876 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
15877 | test_array [0] = 0 | |
4f14bcd8 | 15878 | |
e6cc62c6 VS |
15879 | ; |
15880 | return 0; | |
15881 | } | |
15882 | _ACEOF | |
15883 | rm -f conftest.$ac_objext | |
15884 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 15885 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15886 | ac_status=$? |
eea650d8 VS |
15887 | grep -v '^ *+' conftest.er1 >conftest.err |
15888 | rm -f conftest.er1 | |
15889 | cat conftest.err >&5 | |
e6cc62c6 VS |
15890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15891 | (exit $ac_status); } && | |
eea650d8 VS |
15892 | { ac_try='test -z "$ac_c_werror_flag" |
15893 | || test ! -s conftest.err' | |
15894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15895 | (eval $ac_try) 2>&5 | |
15896 | ac_status=$? | |
15897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15898 | (exit $ac_status); }; } && | |
15899 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15901 | (eval $ac_try) 2>&5 | |
15902 | ac_status=$? | |
15903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15904 | (exit $ac_status); }; }; then | |
15905 | ac_hi=-1 ac_mid=-1 | |
15906 | while :; do | |
15907 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15908 | /* confdefs.h. */ |
15909 | _ACEOF | |
15910 | cat confdefs.h >>conftest.$ac_ext | |
15911 | cat >>conftest.$ac_ext <<_ACEOF | |
15912 | /* end confdefs.h. */ | |
15913 | $ac_includes_default | |
15914 | int | |
15915 | main () | |
15916 | { | |
15917 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
15918 | test_array [0] = 0 | |
5c6fa7d2 | 15919 | |
e6cc62c6 VS |
15920 | ; |
15921 | return 0; | |
15922 | } | |
15923 | _ACEOF | |
15924 | rm -f conftest.$ac_objext | |
15925 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 15926 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15927 | ac_status=$? |
eea650d8 VS |
15928 | grep -v '^ *+' conftest.er1 >conftest.err |
15929 | rm -f conftest.er1 | |
15930 | cat conftest.err >&5 | |
e6cc62c6 VS |
15931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15932 | (exit $ac_status); } && | |
eea650d8 VS |
15933 | { ac_try='test -z "$ac_c_werror_flag" |
15934 | || test ! -s conftest.err' | |
15935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15936 | (eval $ac_try) 2>&5 | |
15937 | ac_status=$? | |
15938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15939 | (exit $ac_status); }; } && | |
15940 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 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); }; }; then | |
15946 | ac_lo=$ac_mid; break | |
15947 | else | |
15948 | echo "$as_me: failed program was:" >&5 | |
15949 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15950 | ||
15951 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
eea650d8 VS |
15952 | if test $ac_mid -le $ac_hi; then |
15953 | ac_lo= ac_hi= | |
15954 | break | |
15955 | fi | |
15956 | ac_mid=`expr 2 '*' $ac_mid` | |
e6cc62c6 | 15957 | fi |
eea650d8 | 15958 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 15959 | done |
247f5006 | 15960 | else |
e6cc62c6 VS |
15961 | echo "$as_me: failed program was:" >&5 |
15962 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15963 | ||
15964 | ac_lo= ac_hi= | |
15965 | fi | |
eea650d8 | 15966 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 15967 | fi |
eea650d8 | 15968 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15969 | # Binary search between lo and hi bounds. |
15970 | while test "x$ac_lo" != "x$ac_hi"; do | |
15971 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15972 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15973 | /* confdefs.h. */ |
15974 | _ACEOF | |
15975 | cat confdefs.h >>conftest.$ac_ext | |
15976 | cat >>conftest.$ac_ext <<_ACEOF | |
15977 | /* end confdefs.h. */ | |
15978 | $ac_includes_default | |
15979 | int | |
15980 | main () | |
15981 | { | |
15982 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
15983 | test_array [0] = 0 | |
15984 | ||
15985 | ; | |
15986 | return 0; | |
15987 | } | |
15988 | _ACEOF | |
15989 | rm -f conftest.$ac_objext | |
15990 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 15991 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15992 | ac_status=$? |
eea650d8 VS |
15993 | grep -v '^ *+' conftest.er1 >conftest.err |
15994 | rm -f conftest.er1 | |
15995 | cat conftest.err >&5 | |
e6cc62c6 VS |
15996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15997 | (exit $ac_status); } && | |
eea650d8 VS |
15998 | { ac_try='test -z "$ac_c_werror_flag" |
15999 | || test ! -s conftest.err' | |
16000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16001 | (eval $ac_try) 2>&5 | |
16002 | ac_status=$? | |
16003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16004 | (exit $ac_status); }; } && | |
16005 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
16006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16007 | (eval $ac_try) 2>&5 | |
16008 | ac_status=$? | |
16009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16010 | (exit $ac_status); }; }; then | |
16011 | ac_hi=$ac_mid | |
16012 | else | |
16013 | echo "$as_me: failed program was:" >&5 | |
16014 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16015 | ||
16016 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16017 | fi | |
eea650d8 | 16018 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16019 | done |
16020 | case $ac_lo in | |
16021 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
16022 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
16023 | See \`config.log' for more details." >&5 | |
16024 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
16025 | See \`config.log' for more details." >&2;} | |
16026 | { (exit 1); exit 1; }; } ;; | |
16027 | esac | |
247f5006 | 16028 | else |
e6cc62c6 VS |
16029 | if test "$cross_compiling" = yes; then |
16030 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
16031 | See \`config.log' for more details." >&5 | |
16032 | echo "$as_me: error: cannot run test program while cross compiling | |
16033 | See \`config.log' for more details." >&2;} | |
16034 | { (exit 1); exit 1; }; } | |
16035 | else | |
16036 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
16037 | /* confdefs.h. */ |
16038 | _ACEOF | |
16039 | cat confdefs.h >>conftest.$ac_ext | |
16040 | cat >>conftest.$ac_ext <<_ACEOF | |
16041 | /* end confdefs.h. */ | |
16042 | $ac_includes_default | |
16043 | long longval () { return (long) (sizeof (long)); } | |
16044 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
a0b9e27f | 16045 | #include <stdio.h> |
e6cc62c6 VS |
16046 | #include <stdlib.h> |
16047 | int | |
16048 | main () | |
247f5006 | 16049 | { |
e6cc62c6 VS |
16050 | |
16051 | FILE *f = fopen ("conftest.val", "w"); | |
16052 | if (! f) | |
16053 | exit (1); | |
16054 | if (((long) (sizeof (long))) < 0) | |
16055 | { | |
16056 | long i = longval (); | |
16057 | if (i != ((long) (sizeof (long)))) | |
16058 | exit (1); | |
16059 | fprintf (f, "%ld\n", i); | |
16060 | } | |
16061 | else | |
16062 | { | |
16063 | unsigned long i = ulongval (); | |
16064 | if (i != ((long) (sizeof (long)))) | |
16065 | exit (1); | |
16066 | fprintf (f, "%lu\n", i); | |
16067 | } | |
16068 | exit (ferror (f) || fclose (f) != 0); | |
16069 | ||
16070 | ; | |
16071 | return 0; | |
247f5006 | 16072 | } |
e6cc62c6 VS |
16073 | _ACEOF |
16074 | rm -f conftest$ac_exeext | |
16075 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16076 | (eval $ac_link) 2>&5 | |
16077 | ac_status=$? | |
16078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16079 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16081 | (eval $ac_try) 2>&5 | |
16082 | ac_status=$? | |
16083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16084 | (exit $ac_status); }; }; then | |
16085 | ac_cv_sizeof_long=`cat conftest.val` | |
16086 | else | |
16087 | echo "$as_me: program exited with status $ac_status" >&5 | |
16088 | echo "$as_me: failed program was:" >&5 | |
16089 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16090 | ||
16091 | ( exit $ac_status ) | |
16092 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
16093 | See \`config.log' for more details." >&5 | |
16094 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
16095 | See \`config.log' for more details." >&2;} | |
16096 | { (exit 1); exit 1; }; } | |
16097 | fi | |
eea650d8 | 16098 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16099 | fi |
16100 | fi | |
16101 | rm -f conftest.val | |
247f5006 | 16102 | else |
a0b9e27f | 16103 | ac_cv_sizeof_long=0 |
247f5006 | 16104 | fi |
247f5006 | 16105 | fi |
e6cc62c6 VS |
16106 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
16107 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
16108 | cat >>confdefs.h <<_ACEOF | |
a0b9e27f | 16109 | #define SIZEOF_LONG $ac_cv_sizeof_long |
e6cc62c6 | 16110 | _ACEOF |
247f5006 | 16111 | |
a0b9e27f MB |
16112 | |
16113 | ||
16114 | case "${host}" in | |
16115 | arm-*-linux* ) | |
e6cc62c6 VS |
16116 | echo "$as_me:$LINENO: checking for long long" >&5 |
16117 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
16118 | if test "${ac_cv_type_long_long+set}" = set; then | |
16119 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16120 | else | |
16121 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
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 long *) 0) | |
16132 | return 0; | |
16133 | if (sizeof (long 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 | |
eea650d8 | 16141 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 16142 | ac_status=$? |
eea650d8 VS |
16143 | grep -v '^ *+' conftest.er1 >conftest.err |
16144 | rm -f conftest.er1 | |
16145 | cat conftest.err >&5 | |
e6cc62c6 VS |
16146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16147 | (exit $ac_status); } && | |
eea650d8 VS |
16148 | { ac_try='test -z "$ac_c_werror_flag" |
16149 | || test ! -s conftest.err' | |
16150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16151 | (eval $ac_try) 2>&5 | |
16152 | ac_status=$? | |
16153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16154 | (exit $ac_status); }; } && | |
16155 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
16156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16157 | (eval $ac_try) 2>&5 | |
16158 | ac_status=$? | |
16159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16160 | (exit $ac_status); }; }; then | |
16161 | ac_cv_type_long_long=yes | |
16162 | else | |
16163 | echo "$as_me: failed program was:" >&5 | |
16164 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16165 | ||
16166 | ac_cv_type_long_long=no | |
16167 | fi | |
eea650d8 | 16168 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16169 | fi |
16170 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
16171 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
16172 | ||
16173 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
16174 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
16175 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
16176 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16177 | else | |
16178 | if test "$ac_cv_type_long_long" = yes; then | |
16179 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16180 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16181 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16182 | # This bug is HP SR number 8606223364. | |
a0b9e27f | 16183 | if test "$cross_compiling" = yes; then |
e6cc62c6 VS |
16184 | # Depending upon the size, compute the lo and hi bounds. |
16185 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
16186 | /* confdefs.h. */ |
16187 | _ACEOF | |
16188 | cat confdefs.h >>conftest.$ac_ext | |
16189 | cat >>conftest.$ac_ext <<_ACEOF | |
16190 | /* end confdefs.h. */ | |
16191 | $ac_includes_default | |
16192 | int | |
16193 | main () | |
16194 | { | |
16195 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
16196 | test_array [0] = 0 | |
16197 | ||
16198 | ; | |
16199 | return 0; | |
16200 | } | |
16201 | _ACEOF | |
16202 | rm -f conftest.$ac_objext | |
16203 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 16204 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 16205 | ac_status=$? |
eea650d8 VS |
16206 | grep -v '^ *+' conftest.er1 >conftest.err |
16207 | rm -f conftest.er1 | |
16208 | cat conftest.err >&5 | |
e6cc62c6 VS |
16209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16210 | (exit $ac_status); } && | |
eea650d8 VS |
16211 | { ac_try='test -z "$ac_c_werror_flag" |
16212 | || test ! -s conftest.err' | |
16213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16214 | (eval $ac_try) 2>&5 | |
16215 | ac_status=$? | |
16216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16217 | (exit $ac_status); }; } && | |
16218 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
16219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16220 | (eval $ac_try) 2>&5 | |
16221 | ac_status=$? | |
16222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16223 | (exit $ac_status); }; }; then | |
16224 | ac_lo=0 ac_mid=0 | |
16225 | while :; do | |
16226 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
16227 | /* confdefs.h. */ |
16228 | _ACEOF | |
16229 | cat confdefs.h >>conftest.$ac_ext | |
16230 | cat >>conftest.$ac_ext <<_ACEOF | |
16231 | /* end confdefs.h. */ | |
16232 | $ac_includes_default | |
16233 | int | |
16234 | main () | |
16235 | { | |
16236 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
16237 | test_array [0] = 0 | |
16238 | ||
16239 | ; | |
16240 | return 0; | |
16241 | } | |
16242 | _ACEOF | |
16243 | rm -f conftest.$ac_objext | |
16244 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 16245 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 16246 | ac_status=$? |
eea650d8 VS |
16247 | grep -v '^ *+' conftest.er1 >conftest.err |
16248 | rm -f conftest.er1 | |
16249 | cat conftest.err >&5 | |
e6cc62c6 VS |
16250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16251 | (exit $ac_status); } && | |
eea650d8 VS |
16252 | { ac_try='test -z "$ac_c_werror_flag" |
16253 | || test ! -s conftest.err' | |
16254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16255 | (eval $ac_try) 2>&5 | |
16256 | ac_status=$? | |
16257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16258 | (exit $ac_status); }; } && | |
16259 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
16260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16261 | (eval $ac_try) 2>&5 | |
16262 | ac_status=$? | |
16263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16264 | (exit $ac_status); }; }; then | |
16265 | ac_hi=$ac_mid; break | |
16266 | else | |
16267 | echo "$as_me: failed program was:" >&5 | |
16268 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16269 | ||
16270 | ac_lo=`expr $ac_mid + 1` | |
eea650d8 VS |
16271 | if test $ac_lo -le $ac_mid; then |
16272 | ac_lo= ac_hi= | |
16273 | break | |
16274 | fi | |
16275 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
e6cc62c6 | 16276 | fi |
eea650d8 | 16277 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16278 | done |
16279 | else | |
16280 | echo "$as_me: failed program was:" >&5 | |
16281 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16282 | ||
16283 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
16284 | /* confdefs.h. */ |
16285 | _ACEOF | |
16286 | cat confdefs.h >>conftest.$ac_ext | |
16287 | cat >>conftest.$ac_ext <<_ACEOF | |
16288 | /* end confdefs.h. */ | |
16289 | $ac_includes_default | |
16290 | int | |
16291 | main () | |
16292 | { | |
16293 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
16294 | test_array [0] = 0 | |
16295 | ||
16296 | ; | |
16297 | return 0; | |
16298 | } | |
16299 | _ACEOF | |
16300 | rm -f conftest.$ac_objext | |
16301 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 16302 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 16303 | ac_status=$? |
eea650d8 VS |
16304 | grep -v '^ *+' conftest.er1 >conftest.err |
16305 | rm -f conftest.er1 | |
16306 | cat conftest.err >&5 | |
e6cc62c6 VS |
16307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16308 | (exit $ac_status); } && | |
eea650d8 VS |
16309 | { ac_try='test -z "$ac_c_werror_flag" |
16310 | || test ! -s conftest.err' | |
16311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16312 | (eval $ac_try) 2>&5 | |
16313 | ac_status=$? | |
16314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16315 | (exit $ac_status); }; } && | |
16316 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
16317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16318 | (eval $ac_try) 2>&5 | |
16319 | ac_status=$? | |
16320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16321 | (exit $ac_status); }; }; then | |
16322 | ac_hi=-1 ac_mid=-1 | |
16323 | while :; do | |
16324 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
16325 | /* confdefs.h. */ |
16326 | _ACEOF | |
16327 | cat confdefs.h >>conftest.$ac_ext | |
16328 | cat >>conftest.$ac_ext <<_ACEOF | |
16329 | /* end confdefs.h. */ | |
16330 | $ac_includes_default | |
16331 | int | |
16332 | main () | |
16333 | { | |
16334 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
16335 | test_array [0] = 0 | |
16336 | ||
16337 | ; | |
16338 | return 0; | |
16339 | } | |
16340 | _ACEOF | |
16341 | rm -f conftest.$ac_objext | |
16342 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 16343 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 16344 | ac_status=$? |
eea650d8 VS |
16345 | grep -v '^ *+' conftest.er1 >conftest.err |
16346 | rm -f conftest.er1 | |
16347 | cat conftest.err >&5 | |
e6cc62c6 VS |
16348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16349 | (exit $ac_status); } && | |
eea650d8 VS |
16350 | { ac_try='test -z "$ac_c_werror_flag" |
16351 | || test ! -s conftest.err' | |
16352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16353 | (eval $ac_try) 2>&5 | |
16354 | ac_status=$? | |
16355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16356 | (exit $ac_status); }; } && | |
16357 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
16358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16359 | (eval $ac_try) 2>&5 | |
16360 | ac_status=$? | |
16361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16362 | (exit $ac_status); }; }; then | |
16363 | ac_lo=$ac_mid; break | |
16364 | else | |
16365 | echo "$as_me: failed program was:" >&5 | |
16366 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16367 | ||
16368 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
eea650d8 VS |
16369 | if test $ac_mid -le $ac_hi; then |
16370 | ac_lo= ac_hi= | |
16371 | break | |
16372 | fi | |
16373 | ac_mid=`expr 2 '*' $ac_mid` | |
e6cc62c6 | 16374 | fi |
eea650d8 | 16375 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16376 | done |
16377 | else | |
16378 | echo "$as_me: failed program was:" >&5 | |
16379 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16380 | ||
16381 | ac_lo= ac_hi= | |
16382 | fi | |
eea650d8 | 16383 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 16384 | fi |
eea650d8 | 16385 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16386 | # Binary search between lo and hi bounds. |
16387 | while test "x$ac_lo" != "x$ac_hi"; do | |
16388 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16389 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
16390 | /* confdefs.h. */ |
16391 | _ACEOF | |
16392 | cat confdefs.h >>conftest.$ac_ext | |
16393 | cat >>conftest.$ac_ext <<_ACEOF | |
16394 | /* end confdefs.h. */ | |
16395 | $ac_includes_default | |
16396 | int | |
16397 | main () | |
16398 | { | |
16399 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
16400 | test_array [0] = 0 | |
16401 | ||
16402 | ; | |
16403 | return 0; | |
16404 | } | |
16405 | _ACEOF | |
16406 | rm -f conftest.$ac_objext | |
16407 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 16408 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 16409 | ac_status=$? |
eea650d8 VS |
16410 | grep -v '^ *+' conftest.er1 >conftest.err |
16411 | rm -f conftest.er1 | |
16412 | cat conftest.err >&5 | |
e6cc62c6 VS |
16413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16414 | (exit $ac_status); } && | |
eea650d8 VS |
16415 | { ac_try='test -z "$ac_c_werror_flag" |
16416 | || test ! -s conftest.err' | |
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); }; } && | |
16422 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
16423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16424 | (eval $ac_try) 2>&5 | |
16425 | ac_status=$? | |
16426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16427 | (exit $ac_status); }; }; then | |
16428 | ac_hi=$ac_mid | |
16429 | else | |
16430 | echo "$as_me: failed program was:" >&5 | |
16431 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16432 | ||
16433 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16434 | fi | |
eea650d8 | 16435 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16436 | done |
16437 | case $ac_lo in | |
16438 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
16439 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
16440 | See \`config.log' for more details." >&5 | |
16441 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
16442 | See \`config.log' for more details." >&2;} | |
16443 | { (exit 1); exit 1; }; } ;; | |
16444 | esac | |
a0b9e27f | 16445 | else |
e6cc62c6 VS |
16446 | if test "$cross_compiling" = yes; then |
16447 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
16448 | See \`config.log' for more details." >&5 | |
16449 | echo "$as_me: error: cannot run test program while cross compiling | |
16450 | See \`config.log' for more details." >&2;} | |
16451 | { (exit 1); exit 1; }; } | |
16452 | else | |
16453 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
16454 | /* confdefs.h. */ |
16455 | _ACEOF | |
16456 | cat confdefs.h >>conftest.$ac_ext | |
16457 | cat >>conftest.$ac_ext <<_ACEOF | |
16458 | /* end confdefs.h. */ | |
16459 | $ac_includes_default | |
16460 | long longval () { return (long) (sizeof (long long)); } | |
16461 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
a0b9e27f | 16462 | #include <stdio.h> |
e6cc62c6 VS |
16463 | #include <stdlib.h> |
16464 | int | |
16465 | main () | |
247f5006 | 16466 | { |
e6cc62c6 VS |
16467 | |
16468 | FILE *f = fopen ("conftest.val", "w"); | |
16469 | if (! f) | |
16470 | exit (1); | |
16471 | if (((long) (sizeof (long long))) < 0) | |
16472 | { | |
16473 | long i = longval (); | |
16474 | if (i != ((long) (sizeof (long long)))) | |
16475 | exit (1); | |
16476 | fprintf (f, "%ld\n", i); | |
16477 | } | |
16478 | else | |
16479 | { | |
16480 | unsigned long i = ulongval (); | |
16481 | if (i != ((long) (sizeof (long long)))) | |
16482 | exit (1); | |
16483 | fprintf (f, "%lu\n", i); | |
16484 | } | |
16485 | exit (ferror (f) || fclose (f) != 0); | |
16486 | ||
16487 | ; | |
16488 | return 0; | |
247f5006 | 16489 | } |
e6cc62c6 VS |
16490 | _ACEOF |
16491 | rm -f conftest$ac_exeext | |
16492 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16493 | (eval $ac_link) 2>&5 | |
16494 | ac_status=$? | |
16495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16496 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16498 | (eval $ac_try) 2>&5 | |
16499 | ac_status=$? | |
16500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16501 | (exit $ac_status); }; }; then | |
16502 | ac_cv_sizeof_long_long=`cat conftest.val` | |
16503 | else | |
16504 | echo "$as_me: program exited with status $ac_status" >&5 | |
16505 | echo "$as_me: failed program was:" >&5 | |
16506 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16507 | ||
16508 | ( exit $ac_status ) | |
16509 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
16510 | See \`config.log' for more details." >&5 | |
16511 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
16512 | See \`config.log' for more details." >&2;} | |
16513 | { (exit 1); exit 1; }; } | |
16514 | fi | |
eea650d8 | 16515 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16516 | fi |
16517 | fi | |
16518 | rm -f conftest.val | |
7b4a847f | 16519 | else |
a0b9e27f | 16520 | ac_cv_sizeof_long_long=0 |
5c6fa7d2 RR |
16521 | fi |
16522 | fi | |
e6cc62c6 VS |
16523 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
16524 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
16525 | cat >>confdefs.h <<_ACEOF | |
16526 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
16527 | _ACEOF | |
16528 | ||
16529 | ||
16530 | ;; | |
16531 | *-hp-hpux* ) | |
16532 | echo "$as_me:$LINENO: checking for long long" >&5 | |
16533 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
16534 | if test "${ac_cv_type_long_long+set}" = set; then | |
16535 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16536 | else | |
16537 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
16538 | /* confdefs.h. */ |
16539 | _ACEOF | |
16540 | cat confdefs.h >>conftest.$ac_ext | |
16541 | cat >>conftest.$ac_ext <<_ACEOF | |
16542 | /* end confdefs.h. */ | |
16543 | $ac_includes_default | |
16544 | int | |
16545 | main () | |
16546 | { | |
16547 | if ((long long *) 0) | |
16548 | return 0; | |
16549 | if (sizeof (long long)) | |
16550 | return 0; | |
16551 | ; | |
16552 | return 0; | |
16553 | } | |
16554 | _ACEOF | |
16555 | rm -f conftest.$ac_objext | |
16556 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 16557 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 16558 | ac_status=$? |
eea650d8 VS |
16559 | grep -v '^ *+' conftest.er1 >conftest.err |
16560 | rm -f conftest.er1 | |
16561 | cat conftest.err >&5 | |
e6cc62c6 VS |
16562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16563 | (exit $ac_status); } && | |
eea650d8 VS |
16564 | { ac_try='test -z "$ac_c_werror_flag" |
16565 | || test ! -s conftest.err' | |
16566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16567 | (eval $ac_try) 2>&5 | |
16568 | ac_status=$? | |
16569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16570 | (exit $ac_status); }; } && | |
16571 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
16572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16573 | (eval $ac_try) 2>&5 | |
16574 | ac_status=$? | |
16575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16576 | (exit $ac_status); }; }; then | |
16577 | ac_cv_type_long_long=yes | |
16578 | else | |
16579 | echo "$as_me: failed program was:" >&5 | |
16580 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16581 | ||
16582 | ac_cv_type_long_long=no | |
16583 | fi | |
eea650d8 | 16584 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16585 | fi |
16586 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
16587 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
16588 | ||
16589 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
16590 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
16591 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
16592 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16593 | else | |
16594 | if test "$ac_cv_type_long_long" = yes; then | |
16595 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16596 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16597 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16598 | # This bug is HP SR number 8606223364. | |
16599 | if test "$cross_compiling" = yes; then | |
16600 | # Depending upon the size, compute the lo and hi bounds. | |
16601 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
16602 | /* confdefs.h. */ |
16603 | _ACEOF | |
16604 | cat confdefs.h >>conftest.$ac_ext | |
16605 | cat >>conftest.$ac_ext <<_ACEOF | |
16606 | /* end confdefs.h. */ | |
16607 | $ac_includes_default | |
16608 | int | |
16609 | main () | |
16610 | { | |
16611 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
16612 | test_array [0] = 0 | |
16613 | ||
16614 | ; | |
16615 | return 0; | |
16616 | } | |
16617 | _ACEOF | |
16618 | rm -f conftest.$ac_objext | |
16619 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 16620 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 16621 | ac_status=$? |
eea650d8 VS |
16622 | grep -v '^ *+' conftest.er1 >conftest.err |
16623 | rm -f conftest.er1 | |
16624 | cat conftest.err >&5 | |
e6cc62c6 VS |
16625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16626 | (exit $ac_status); } && | |
eea650d8 VS |
16627 | { ac_try='test -z "$ac_c_werror_flag" |
16628 | || test ! -s conftest.err' | |
16629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16630 | (eval $ac_try) 2>&5 | |
16631 | ac_status=$? | |
16632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16633 | (exit $ac_status); }; } && | |
16634 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
16635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16636 | (eval $ac_try) 2>&5 | |
16637 | ac_status=$? | |
16638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16639 | (exit $ac_status); }; }; then | |
16640 | ac_lo=0 ac_mid=0 | |
16641 | while :; do | |
16642 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
16643 | /* confdefs.h. */ |
16644 | _ACEOF | |
16645 | cat confdefs.h >>conftest.$ac_ext | |
16646 | cat >>conftest.$ac_ext <<_ACEOF | |
16647 | /* end confdefs.h. */ | |
16648 | $ac_includes_default | |
16649 | int | |
16650 | main () | |
16651 | { | |
16652 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
16653 | test_array [0] = 0 | |
8284b0c5 | 16654 | |
e6cc62c6 VS |
16655 | ; |
16656 | return 0; | |
16657 | } | |
16658 | _ACEOF | |
16659 | rm -f conftest.$ac_objext | |
16660 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 16661 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 16662 | ac_status=$? |
eea650d8 VS |
16663 | grep -v '^ *+' conftest.er1 >conftest.err |
16664 | rm -f conftest.er1 | |
16665 | cat conftest.err >&5 | |
e6cc62c6 VS |
16666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16667 | (exit $ac_status); } && | |
eea650d8 VS |
16668 | { ac_try='test -z "$ac_c_werror_flag" |
16669 | || test ! -s conftest.err' | |
16670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16671 | (eval $ac_try) 2>&5 | |
16672 | ac_status=$? | |
16673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16674 | (exit $ac_status); }; } && | |
16675 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
16676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16677 | (eval $ac_try) 2>&5 | |
16678 | ac_status=$? | |
16679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16680 | (exit $ac_status); }; }; then | |
16681 | ac_hi=$ac_mid; break | |
16682 | else | |
16683 | echo "$as_me: failed program was:" >&5 | |
16684 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16685 | ||
16686 | ac_lo=`expr $ac_mid + 1` | |
eea650d8 VS |
16687 | if test $ac_lo -le $ac_mid; then |
16688 | ac_lo= ac_hi= | |
16689 | break | |
16690 | fi | |
16691 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a0b9e27f | 16692 | fi |
eea650d8 | 16693 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16694 | done |
16695 | else | |
16696 | echo "$as_me: failed program was:" >&5 | |
16697 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16698 | ||
16699 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
16700 | /* confdefs.h. */ |
16701 | _ACEOF | |
16702 | cat confdefs.h >>conftest.$ac_ext | |
16703 | cat >>conftest.$ac_ext <<_ACEOF | |
16704 | /* end confdefs.h. */ | |
16705 | $ac_includes_default | |
16706 | int | |
16707 | main () | |
16708 | { | |
16709 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
16710 | test_array [0] = 0 | |
a0b9e27f | 16711 | |
e6cc62c6 VS |
16712 | ; |
16713 | return 0; | |
16714 | } | |
16715 | _ACEOF | |
16716 | rm -f conftest.$ac_objext | |
16717 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 16718 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 16719 | ac_status=$? |
eea650d8 VS |
16720 | grep -v '^ *+' conftest.er1 >conftest.err |
16721 | rm -f conftest.er1 | |
16722 | cat conftest.err >&5 | |
e6cc62c6 VS |
16723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16724 | (exit $ac_status); } && | |
eea650d8 VS |
16725 | { ac_try='test -z "$ac_c_werror_flag" |
16726 | || test ! -s conftest.err' | |
16727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16728 | (eval $ac_try) 2>&5 | |
16729 | ac_status=$? | |
16730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16731 | (exit $ac_status); }; } && | |
16732 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
16733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16734 | (eval $ac_try) 2>&5 | |
16735 | ac_status=$? | |
16736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16737 | (exit $ac_status); }; }; then | |
16738 | ac_hi=-1 ac_mid=-1 | |
16739 | while :; do | |
16740 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
16741 | /* confdefs.h. */ |
16742 | _ACEOF | |
16743 | cat confdefs.h >>conftest.$ac_ext | |
16744 | cat >>conftest.$ac_ext <<_ACEOF | |
16745 | /* end confdefs.h. */ | |
16746 | $ac_includes_default | |
16747 | int | |
16748 | main () | |
16749 | { | |
16750 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
16751 | test_array [0] = 0 | |
a0b9e27f | 16752 | |
e6cc62c6 VS |
16753 | ; |
16754 | return 0; | |
16755 | } | |
16756 | _ACEOF | |
16757 | rm -f conftest.$ac_objext | |
16758 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 16759 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 16760 | ac_status=$? |
eea650d8 VS |
16761 | grep -v '^ *+' conftest.er1 >conftest.err |
16762 | rm -f conftest.er1 | |
16763 | cat conftest.err >&5 | |
e6cc62c6 VS |
16764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16765 | (exit $ac_status); } && | |
eea650d8 VS |
16766 | { ac_try='test -z "$ac_c_werror_flag" |
16767 | || test ! -s conftest.err' | |
16768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16769 | (eval $ac_try) 2>&5 | |
16770 | ac_status=$? | |
16771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16772 | (exit $ac_status); }; } && | |
16773 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
16774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16775 | (eval $ac_try) 2>&5 | |
16776 | ac_status=$? | |
16777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16778 | (exit $ac_status); }; }; then | |
16779 | ac_lo=$ac_mid; break | |
16780 | else | |
16781 | echo "$as_me: failed program was:" >&5 | |
16782 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16783 | ||
16784 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
eea650d8 VS |
16785 | if test $ac_mid -le $ac_hi; then |
16786 | ac_lo= ac_hi= | |
16787 | break | |
16788 | fi | |
16789 | ac_mid=`expr 2 '*' $ac_mid` | |
e6cc62c6 | 16790 | fi |
eea650d8 | 16791 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 16792 | done |
8284b0c5 | 16793 | else |
e6cc62c6 VS |
16794 | echo "$as_me: failed program was:" >&5 |
16795 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16796 | ||
16797 | ac_lo= ac_hi= | |
16798 | fi | |
eea650d8 | 16799 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 16800 | fi |
eea650d8 | 16801 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16802 | # Binary search between lo and hi bounds. |
16803 | while test "x$ac_lo" != "x$ac_hi"; do | |
16804 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16805 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
16806 | /* confdefs.h. */ |
16807 | _ACEOF | |
16808 | cat confdefs.h >>conftest.$ac_ext | |
16809 | cat >>conftest.$ac_ext <<_ACEOF | |
16810 | /* end confdefs.h. */ | |
16811 | $ac_includes_default | |
16812 | int | |
16813 | main () | |
16814 | { | |
16815 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
16816 | test_array [0] = 0 | |
16817 | ||
16818 | ; | |
16819 | return 0; | |
16820 | } | |
16821 | _ACEOF | |
16822 | rm -f conftest.$ac_objext | |
16823 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 16824 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 16825 | ac_status=$? |
eea650d8 VS |
16826 | grep -v '^ *+' conftest.er1 >conftest.err |
16827 | rm -f conftest.er1 | |
16828 | cat conftest.err >&5 | |
e6cc62c6 VS |
16829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16830 | (exit $ac_status); } && | |
eea650d8 VS |
16831 | { ac_try='test -z "$ac_c_werror_flag" |
16832 | || test ! -s conftest.err' | |
16833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16834 | (eval $ac_try) 2>&5 | |
16835 | ac_status=$? | |
16836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16837 | (exit $ac_status); }; } && | |
16838 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
16839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16840 | (eval $ac_try) 2>&5 | |
16841 | ac_status=$? | |
16842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16843 | (exit $ac_status); }; }; then | |
16844 | ac_hi=$ac_mid | |
16845 | else | |
16846 | echo "$as_me: failed program was:" >&5 | |
16847 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16848 | ||
16849 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16850 | fi | |
eea650d8 | 16851 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16852 | done |
16853 | case $ac_lo in | |
16854 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
16855 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
16856 | See \`config.log' for more details." >&5 | |
16857 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
16858 | See \`config.log' for more details." >&2;} | |
16859 | { (exit 1); exit 1; }; } ;; | |
16860 | esac | |
8284b0c5 | 16861 | else |
e6cc62c6 VS |
16862 | if test "$cross_compiling" = yes; then |
16863 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
16864 | See \`config.log' for more details." >&5 | |
16865 | echo "$as_me: error: cannot run test program while cross compiling | |
16866 | See \`config.log' for more details." >&2;} | |
16867 | { (exit 1); exit 1; }; } | |
16868 | else | |
16869 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
16870 | /* confdefs.h. */ |
16871 | _ACEOF | |
16872 | cat confdefs.h >>conftest.$ac_ext | |
16873 | cat >>conftest.$ac_ext <<_ACEOF | |
16874 | /* end confdefs.h. */ | |
16875 | $ac_includes_default | |
16876 | long longval () { return (long) (sizeof (long long)); } | |
16877 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
8284b0c5 | 16878 | #include <stdio.h> |
e6cc62c6 VS |
16879 | #include <stdlib.h> |
16880 | int | |
16881 | main () | |
8284b0c5 | 16882 | { |
e6cc62c6 VS |
16883 | |
16884 | FILE *f = fopen ("conftest.val", "w"); | |
16885 | if (! f) | |
16886 | exit (1); | |
16887 | if (((long) (sizeof (long long))) < 0) | |
16888 | { | |
16889 | long i = longval (); | |
16890 | if (i != ((long) (sizeof (long long)))) | |
16891 | exit (1); | |
16892 | fprintf (f, "%ld\n", i); | |
16893 | } | |
16894 | else | |
16895 | { | |
16896 | unsigned long i = ulongval (); | |
16897 | if (i != ((long) (sizeof (long long)))) | |
16898 | exit (1); | |
16899 | fprintf (f, "%lu\n", i); | |
16900 | } | |
16901 | exit (ferror (f) || fclose (f) != 0); | |
16902 | ||
16903 | ; | |
16904 | return 0; | |
8284b0c5 | 16905 | } |
e6cc62c6 VS |
16906 | _ACEOF |
16907 | rm -f conftest$ac_exeext | |
16908 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16909 | (eval $ac_link) 2>&5 | |
16910 | ac_status=$? | |
16911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16912 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16914 | (eval $ac_try) 2>&5 | |
16915 | ac_status=$? | |
16916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16917 | (exit $ac_status); }; }; then | |
16918 | ac_cv_sizeof_long_long=`cat conftest.val` | |
16919 | else | |
16920 | echo "$as_me: program exited with status $ac_status" >&5 | |
16921 | echo "$as_me: failed program was:" >&5 | |
16922 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16923 | ||
16924 | ( exit $ac_status ) | |
16925 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
16926 | See \`config.log' for more details." >&5 | |
16927 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
16928 | See \`config.log' for more details." >&2;} | |
16929 | { (exit 1); exit 1; }; } | |
16930 | fi | |
eea650d8 | 16931 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16932 | fi |
16933 | fi | |
16934 | rm -f conftest.val | |
5c6fa7d2 RR |
16935 | else |
16936 | ac_cv_sizeof_long_long=0 | |
52127426 | 16937 | fi |
4f57cf11 | 16938 | fi |
e6cc62c6 VS |
16939 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
16940 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
16941 | cat >>confdefs.h <<_ACEOF | |
4f57cf11 | 16942 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
e6cc62c6 | 16943 | _ACEOF |
4f57cf11 GD |
16944 | |
16945 | ||
16946 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
16947 | CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG" | |
16948 | fi | |
16949 | ;; | |
16950 | * ) | |
e6cc62c6 VS |
16951 | echo "$as_me:$LINENO: checking for long long" >&5 |
16952 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
16953 | if test "${ac_cv_type_long_long+set}" = set; then | |
16954 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16955 | else | |
16956 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
16957 | /* confdefs.h. */ |
16958 | _ACEOF | |
16959 | cat confdefs.h >>conftest.$ac_ext | |
16960 | cat >>conftest.$ac_ext <<_ACEOF | |
16961 | /* end confdefs.h. */ | |
16962 | $ac_includes_default | |
16963 | int | |
16964 | main () | |
16965 | { | |
16966 | if ((long long *) 0) | |
16967 | return 0; | |
16968 | if (sizeof (long long)) | |
16969 | return 0; | |
16970 | ; | |
16971 | return 0; | |
16972 | } | |
16973 | _ACEOF | |
16974 | rm -f conftest.$ac_objext | |
16975 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 16976 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 16977 | ac_status=$? |
eea650d8 VS |
16978 | grep -v '^ *+' conftest.er1 >conftest.err |
16979 | rm -f conftest.er1 | |
16980 | cat conftest.err >&5 | |
e6cc62c6 VS |
16981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16982 | (exit $ac_status); } && | |
eea650d8 VS |
16983 | { ac_try='test -z "$ac_c_werror_flag" |
16984 | || test ! -s conftest.err' | |
16985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16986 | (eval $ac_try) 2>&5 | |
16987 | ac_status=$? | |
16988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16989 | (exit $ac_status); }; } && | |
16990 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
16991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16992 | (eval $ac_try) 2>&5 | |
16993 | ac_status=$? | |
16994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16995 | (exit $ac_status); }; }; then | |
16996 | ac_cv_type_long_long=yes | |
16997 | else | |
16998 | echo "$as_me: failed program was:" >&5 | |
16999 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17000 | ||
17001 | ac_cv_type_long_long=no | |
17002 | fi | |
eea650d8 | 17003 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
17004 | fi |
17005 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
17006 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
17007 | ||
17008 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
17009 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
17010 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
17011 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17012 | else | |
17013 | if test "$ac_cv_type_long_long" = yes; then | |
17014 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17015 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17016 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17017 | # This bug is HP SR number 8606223364. | |
4f57cf11 | 17018 | if test "$cross_compiling" = yes; then |
e6cc62c6 VS |
17019 | # Depending upon the size, compute the lo and hi bounds. |
17020 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17021 | /* confdefs.h. */ |
17022 | _ACEOF | |
17023 | cat confdefs.h >>conftest.$ac_ext | |
17024 | cat >>conftest.$ac_ext <<_ACEOF | |
17025 | /* end confdefs.h. */ | |
17026 | $ac_includes_default | |
17027 | int | |
17028 | main () | |
17029 | { | |
17030 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
17031 | test_array [0] = 0 | |
17032 | ||
17033 | ; | |
17034 | return 0; | |
17035 | } | |
17036 | _ACEOF | |
17037 | rm -f conftest.$ac_objext | |
17038 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 17039 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 17040 | ac_status=$? |
eea650d8 VS |
17041 | grep -v '^ *+' conftest.er1 >conftest.err |
17042 | rm -f conftest.er1 | |
17043 | cat conftest.err >&5 | |
e6cc62c6 VS |
17044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17045 | (exit $ac_status); } && | |
eea650d8 VS |
17046 | { ac_try='test -z "$ac_c_werror_flag" |
17047 | || test ! -s conftest.err' | |
17048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17049 | (eval $ac_try) 2>&5 | |
17050 | ac_status=$? | |
17051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17052 | (exit $ac_status); }; } && | |
17053 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
17054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17055 | (eval $ac_try) 2>&5 | |
17056 | ac_status=$? | |
17057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17058 | (exit $ac_status); }; }; then | |
17059 | ac_lo=0 ac_mid=0 | |
17060 | while :; do | |
17061 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17062 | /* confdefs.h. */ |
17063 | _ACEOF | |
17064 | cat confdefs.h >>conftest.$ac_ext | |
17065 | cat >>conftest.$ac_ext <<_ACEOF | |
17066 | /* end confdefs.h. */ | |
17067 | $ac_includes_default | |
17068 | int | |
17069 | main () | |
17070 | { | |
17071 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17072 | test_array [0] = 0 | |
17073 | ||
17074 | ; | |
17075 | return 0; | |
17076 | } | |
17077 | _ACEOF | |
17078 | rm -f conftest.$ac_objext | |
17079 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 17080 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 17081 | ac_status=$? |
eea650d8 VS |
17082 | grep -v '^ *+' conftest.er1 >conftest.err |
17083 | rm -f conftest.er1 | |
17084 | cat conftest.err >&5 | |
e6cc62c6 VS |
17085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17086 | (exit $ac_status); } && | |
eea650d8 VS |
17087 | { ac_try='test -z "$ac_c_werror_flag" |
17088 | || test ! -s conftest.err' | |
17089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17090 | (eval $ac_try) 2>&5 | |
17091 | ac_status=$? | |
17092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17093 | (exit $ac_status); }; } && | |
17094 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
17095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17096 | (eval $ac_try) 2>&5 | |
17097 | ac_status=$? | |
17098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17099 | (exit $ac_status); }; }; then | |
17100 | ac_hi=$ac_mid; break | |
17101 | else | |
17102 | echo "$as_me: failed program was:" >&5 | |
17103 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17104 | ||
17105 | ac_lo=`expr $ac_mid + 1` | |
eea650d8 VS |
17106 | if test $ac_lo -le $ac_mid; then |
17107 | ac_lo= ac_hi= | |
17108 | break | |
17109 | fi | |
17110 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
e6cc62c6 | 17111 | fi |
eea650d8 | 17112 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
17113 | done |
17114 | else | |
17115 | echo "$as_me: failed program was:" >&5 | |
17116 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17117 | ||
17118 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17119 | /* confdefs.h. */ |
17120 | _ACEOF | |
17121 | cat confdefs.h >>conftest.$ac_ext | |
17122 | cat >>conftest.$ac_ext <<_ACEOF | |
17123 | /* end confdefs.h. */ | |
17124 | $ac_includes_default | |
17125 | int | |
17126 | main () | |
17127 | { | |
17128 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
17129 | test_array [0] = 0 | |
17130 | ||
17131 | ; | |
17132 | return 0; | |
17133 | } | |
17134 | _ACEOF | |
17135 | rm -f conftest.$ac_objext | |
17136 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 17137 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 17138 | ac_status=$? |
eea650d8 VS |
17139 | grep -v '^ *+' conftest.er1 >conftest.err |
17140 | rm -f conftest.er1 | |
17141 | cat conftest.err >&5 | |
e6cc62c6 VS |
17142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17143 | (exit $ac_status); } && | |
eea650d8 VS |
17144 | { ac_try='test -z "$ac_c_werror_flag" |
17145 | || test ! -s conftest.err' | |
17146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17147 | (eval $ac_try) 2>&5 | |
17148 | ac_status=$? | |
17149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17150 | (exit $ac_status); }; } && | |
17151 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
17152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17153 | (eval $ac_try) 2>&5 | |
17154 | ac_status=$? | |
17155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17156 | (exit $ac_status); }; }; then | |
17157 | ac_hi=-1 ac_mid=-1 | |
17158 | while :; do | |
17159 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17160 | /* confdefs.h. */ |
17161 | _ACEOF | |
17162 | cat confdefs.h >>conftest.$ac_ext | |
17163 | cat >>conftest.$ac_ext <<_ACEOF | |
17164 | /* end confdefs.h. */ | |
17165 | $ac_includes_default | |
17166 | int | |
17167 | main () | |
17168 | { | |
17169 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
17170 | test_array [0] = 0 | |
17171 | ||
17172 | ; | |
17173 | return 0; | |
17174 | } | |
17175 | _ACEOF | |
17176 | rm -f conftest.$ac_objext | |
17177 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 17178 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 17179 | ac_status=$? |
eea650d8 VS |
17180 | grep -v '^ *+' conftest.er1 >conftest.err |
17181 | rm -f conftest.er1 | |
17182 | cat conftest.err >&5 | |
e6cc62c6 VS |
17183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17184 | (exit $ac_status); } && | |
eea650d8 VS |
17185 | { ac_try='test -z "$ac_c_werror_flag" |
17186 | || test ! -s conftest.err' | |
17187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17188 | (eval $ac_try) 2>&5 | |
17189 | ac_status=$? | |
17190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17191 | (exit $ac_status); }; } && | |
17192 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
17193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17194 | (eval $ac_try) 2>&5 | |
17195 | ac_status=$? | |
17196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17197 | (exit $ac_status); }; }; then | |
17198 | ac_lo=$ac_mid; break | |
17199 | else | |
17200 | echo "$as_me: failed program was:" >&5 | |
17201 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17202 | ||
17203 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
eea650d8 VS |
17204 | if test $ac_mid -le $ac_hi; then |
17205 | ac_lo= ac_hi= | |
17206 | break | |
17207 | fi | |
17208 | ac_mid=`expr 2 '*' $ac_mid` | |
e6cc62c6 | 17209 | fi |
eea650d8 | 17210 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 17211 | done |
4f57cf11 | 17212 | else |
e6cc62c6 VS |
17213 | echo "$as_me: failed program was:" >&5 |
17214 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17215 | ||
17216 | ac_lo= ac_hi= | |
17217 | fi | |
eea650d8 | 17218 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 17219 | fi |
eea650d8 | 17220 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
17221 | # Binary search between lo and hi bounds. |
17222 | while test "x$ac_lo" != "x$ac_hi"; do | |
17223 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17224 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17225 | /* confdefs.h. */ |
17226 | _ACEOF | |
17227 | cat confdefs.h >>conftest.$ac_ext | |
17228 | cat >>conftest.$ac_ext <<_ACEOF | |
17229 | /* end confdefs.h. */ | |
17230 | $ac_includes_default | |
17231 | int | |
17232 | main () | |
17233 | { | |
17234 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17235 | test_array [0] = 0 | |
17236 | ||
17237 | ; | |
17238 | return 0; | |
17239 | } | |
17240 | _ACEOF | |
17241 | rm -f conftest.$ac_objext | |
17242 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 17243 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 17244 | ac_status=$? |
eea650d8 VS |
17245 | grep -v '^ *+' conftest.er1 >conftest.err |
17246 | rm -f conftest.er1 | |
17247 | cat conftest.err >&5 | |
e6cc62c6 VS |
17248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17249 | (exit $ac_status); } && | |
eea650d8 VS |
17250 | { ac_try='test -z "$ac_c_werror_flag" |
17251 | || test ! -s conftest.err' | |
17252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17253 | (eval $ac_try) 2>&5 | |
17254 | ac_status=$? | |
17255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17256 | (exit $ac_status); }; } && | |
17257 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
17258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17259 | (eval $ac_try) 2>&5 | |
17260 | ac_status=$? | |
17261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17262 | (exit $ac_status); }; }; then | |
17263 | ac_hi=$ac_mid | |
17264 | else | |
17265 | echo "$as_me: failed program was:" >&5 | |
17266 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17267 | ||
17268 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17269 | fi | |
eea650d8 | 17270 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
17271 | done |
17272 | case $ac_lo in | |
17273 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
17274 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17275 | See \`config.log' for more details." >&5 | |
17276 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17277 | See \`config.log' for more details." >&2;} | |
17278 | { (exit 1); exit 1; }; } ;; | |
17279 | esac | |
17280 | else | |
17281 | if test "$cross_compiling" = yes; then | |
17282 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
17283 | See \`config.log' for more details." >&5 | |
17284 | echo "$as_me: error: cannot run test program while cross compiling | |
17285 | See \`config.log' for more details." >&2;} | |
17286 | { (exit 1); exit 1; }; } | |
17287 | else | |
17288 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17289 | /* confdefs.h. */ |
17290 | _ACEOF | |
17291 | cat confdefs.h >>conftest.$ac_ext | |
17292 | cat >>conftest.$ac_ext <<_ACEOF | |
17293 | /* end confdefs.h. */ | |
17294 | $ac_includes_default | |
17295 | long longval () { return (long) (sizeof (long long)); } | |
17296 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
4f57cf11 | 17297 | #include <stdio.h> |
e6cc62c6 VS |
17298 | #include <stdlib.h> |
17299 | int | |
17300 | main () | |
4f57cf11 | 17301 | { |
e6cc62c6 VS |
17302 | |
17303 | FILE *f = fopen ("conftest.val", "w"); | |
17304 | if (! f) | |
17305 | exit (1); | |
17306 | if (((long) (sizeof (long long))) < 0) | |
17307 | { | |
17308 | long i = longval (); | |
17309 | if (i != ((long) (sizeof (long long)))) | |
17310 | exit (1); | |
17311 | fprintf (f, "%ld\n", i); | |
17312 | } | |
17313 | else | |
17314 | { | |
17315 | unsigned long i = ulongval (); | |
17316 | if (i != ((long) (sizeof (long long)))) | |
17317 | exit (1); | |
17318 | fprintf (f, "%lu\n", i); | |
17319 | } | |
17320 | exit (ferror (f) || fclose (f) != 0); | |
17321 | ||
17322 | ; | |
17323 | return 0; | |
4f57cf11 | 17324 | } |
e6cc62c6 VS |
17325 | _ACEOF |
17326 | rm -f conftest$ac_exeext | |
17327 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17328 | (eval $ac_link) 2>&5 | |
17329 | ac_status=$? | |
17330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17331 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17333 | (eval $ac_try) 2>&5 | |
17334 | ac_status=$? | |
17335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17336 | (exit $ac_status); }; }; then | |
17337 | ac_cv_sizeof_long_long=`cat conftest.val` | |
17338 | else | |
17339 | echo "$as_me: program exited with status $ac_status" >&5 | |
17340 | echo "$as_me: failed program was:" >&5 | |
17341 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17342 | ||
17343 | ( exit $ac_status ) | |
17344 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17345 | See \`config.log' for more details." >&5 | |
17346 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17347 | See \`config.log' for more details." >&2;} | |
17348 | { (exit 1); exit 1; }; } | |
17349 | fi | |
eea650d8 | 17350 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
17351 | fi |
17352 | fi | |
17353 | rm -f conftest.val | |
4f57cf11 | 17354 | else |
4f57cf11 GD |
17355 | ac_cv_sizeof_long_long=0 |
17356 | fi | |
7b4a847f | 17357 | fi |
e6cc62c6 VS |
17358 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
17359 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
17360 | cat >>confdefs.h <<_ACEOF | |
21d1c967 | 17361 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
e6cc62c6 | 17362 | _ACEOF |
9e691f46 | 17363 | |
8284b0c5 | 17364 | |
21d1c967 GD |
17365 | esac |
17366 | ||
e6cc62c6 VS |
17367 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
17368 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 | |
17369 | if test "${wx_cv_sizeof_wchar_t+set}" = set; then | |
17370 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 17371 | else |
e6cc62c6 | 17372 | |
21d1c967 | 17373 | if test "$cross_compiling" = yes; then |
e6cc62c6 | 17374 | |
2b5f62a0 VZ |
17375 | case "${host}" in |
17376 | *-pc-msdosdjgpp ) | |
17377 | wx_cv_sizeof_wchar_t=0 | |
17378 | ;; | |
17379 | * ) | |
17380 | wx_cv_sizeof_wchar_t=4 | |
17381 | ;; | |
17382 | esac | |
e6cc62c6 VS |
17383 | |
17384 | ||
6f72b082 | 17385 | else |
e6cc62c6 | 17386 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
17387 | /* confdefs.h. */ |
17388 | _ACEOF | |
17389 | cat confdefs.h >>conftest.$ac_ext | |
17390 | cat >>conftest.$ac_ext <<_ACEOF | |
17391 | /* end confdefs.h. */ | |
21d1c967 | 17392 | |
2b5f62a0 VZ |
17393 | /* DJGPP only has fake wchar_t: */ |
17394 | #ifdef __DJGPP__ | |
17395 | # error "fake wchar_t" | |
17396 | #endif | |
21d1c967 GD |
17397 | #ifdef HAVE_WCHAR_H |
17398 | # ifdef __CYGWIN__ | |
17399 | # include <stddef.h> | |
17400 | # endif | |
17401 | # include <wchar.h> | |
17402 | #endif | |
17403 | #ifdef HAVE_STDLIB_H | |
17404 | # include <stdlib.h> | |
17405 | #endif | |
17406 | #include <stdio.h> | |
17407 | int main() | |
17408 | { | |
17409 | FILE *f=fopen("conftestval", "w"); | |
17410 | if (!f) exit(1); | |
17411 | fprintf(f, "%i", sizeof(wchar_t)); | |
17412 | exit(0); | |
17413 | } | |
e6cc62c6 VS |
17414 | |
17415 | _ACEOF | |
17416 | rm -f conftest$ac_exeext | |
17417 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17418 | (eval $ac_link) 2>&5 | |
17419 | ac_status=$? | |
17420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17421 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17423 | (eval $ac_try) 2>&5 | |
17424 | ac_status=$? | |
17425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17426 | (exit $ac_status); }; }; then | |
21d1c967 | 17427 | wx_cv_sizeof_wchar_t=`cat conftestval` |
6f72b082 | 17428 | else |
e6cc62c6 VS |
17429 | echo "$as_me: program exited with status $ac_status" >&5 |
17430 | echo "$as_me: failed program was:" >&5 | |
17431 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17432 | ||
17433 | ( exit $ac_status ) | |
17434 | wx_cv_sizeof_wchar_t=0 | |
6f72b082 | 17435 | fi |
eea650d8 | 17436 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
6f72b082 | 17437 | fi |
6f72b082 | 17438 | |
3f345b47 | 17439 | fi |
e6cc62c6 VS |
17440 | echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5 |
17441 | echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6 | |
3f345b47 | 17442 | |
e6cc62c6 | 17443 | cat >>confdefs.h <<_ACEOF |
21d1c967 | 17444 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t |
e6cc62c6 | 17445 | _ACEOF |
90dd450c | 17446 | |
8284b0c5 | 17447 | |
21d1c967 GD |
17448 | # Check whether --enable-largefile or --disable-largefile was given. |
17449 | if test "${enable_largefile+set}" = set; then | |
17450 | enableval="$enable_largefile" | |
3f345b47 | 17451 | |
e6cc62c6 | 17452 | fi; |
21d1c967 GD |
17453 | if test "$enable_largefile" != no; then |
17454 | wx_largefile=no | |
e6cc62c6 VS |
17455 | |
17456 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
17457 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
17458 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
17459 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17460 | else | |
17461 | ||
17462 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17463 | /* confdefs.h. */ |
17464 | _ACEOF | |
17465 | cat confdefs.h >>conftest.$ac_ext | |
17466 | cat >>conftest.$ac_ext <<_ACEOF | |
17467 | /* end confdefs.h. */ | |
21d1c967 GD |
17468 | #define _FILE_OFFSET_BITS 64 |
17469 | #include <sys/types.h> | |
e6cc62c6 VS |
17470 | int |
17471 | main () | |
17472 | { | |
21d1c967 GD |
17473 | typedef struct { |
17474 | unsigned int field: sizeof(off_t) == 8; | |
17475 | } wxlf; | |
17476 | ||
e6cc62c6 VS |
17477 | ; |
17478 | return 0; | |
17479 | } | |
17480 | _ACEOF | |
17481 | rm -f conftest.$ac_objext | |
17482 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 17483 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 17484 | ac_status=$? |
eea650d8 VS |
17485 | grep -v '^ *+' conftest.er1 >conftest.err |
17486 | rm -f conftest.er1 | |
17487 | cat conftest.err >&5 | |
e6cc62c6 VS |
17488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17489 | (exit $ac_status); } && | |
eea650d8 VS |
17490 | { ac_try='test -z "$ac_c_werror_flag" |
17491 | || test ! -s conftest.err' | |
17492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17493 | (eval $ac_try) 2>&5 | |
17494 | ac_status=$? | |
17495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17496 | (exit $ac_status); }; } && | |
17497 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
17498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17499 | (eval $ac_try) 2>&5 | |
17500 | ac_status=$? | |
17501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17502 | (exit $ac_status); }; }; then | |
21d1c967 | 17503 | ac_cv_sys_file_offset_bits=64 |
f6bcfd97 | 17504 | else |
e6cc62c6 VS |
17505 | echo "$as_me: failed program was:" >&5 |
17506 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17507 | ||
17508 | ac_cv_sys_file_offset_bits=no | |
247f5006 | 17509 | fi |
eea650d8 | 17510 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 17511 | |
a0b9e27f | 17512 | |
e6cc62c6 VS |
17513 | fi |
17514 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
17515 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
21d1c967 GD |
17516 | |
17517 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
17518 | wx_largefile=yes | |
e6cc62c6 | 17519 | cat >>confdefs.h <<_ACEOF |
21d1c967 | 17520 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
e6cc62c6 | 17521 | _ACEOF |
21d1c967 GD |
17522 | |
17523 | fi | |
17524 | ||
17525 | if test "x$wx_largefile" != "xyes"; then | |
e6cc62c6 VS |
17526 | |
17527 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
17528 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
17529 | if test "${ac_cv_sys_large_files+set}" = set; then | |
17530 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17531 | else | |
17532 | ||
17533 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17534 | /* confdefs.h. */ |
17535 | _ACEOF | |
17536 | cat confdefs.h >>conftest.$ac_ext | |
17537 | cat >>conftest.$ac_ext <<_ACEOF | |
17538 | /* end confdefs.h. */ | |
21d1c967 GD |
17539 | #define _LARGE_FILES 1 |
17540 | #include <sys/types.h> | |
e6cc62c6 VS |
17541 | int |
17542 | main () | |
17543 | { | |
21d1c967 GD |
17544 | typedef struct { |
17545 | unsigned int field: sizeof(off_t) == 8; | |
17546 | } wxlf; | |
17547 | ||
e6cc62c6 VS |
17548 | ; |
17549 | return 0; | |
17550 | } | |
17551 | _ACEOF | |
17552 | rm -f conftest.$ac_objext | |
17553 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 17554 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 17555 | ac_status=$? |
eea650d8 VS |
17556 | grep -v '^ *+' conftest.er1 >conftest.err |
17557 | rm -f conftest.er1 | |
17558 | cat conftest.err >&5 | |
e6cc62c6 VS |
17559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17560 | (exit $ac_status); } && | |
eea650d8 VS |
17561 | { ac_try='test -z "$ac_c_werror_flag" |
17562 | || test ! -s conftest.err' | |
17563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17564 | (eval $ac_try) 2>&5 | |
17565 | ac_status=$? | |
17566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17567 | (exit $ac_status); }; } && | |
17568 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
17569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17570 | (eval $ac_try) 2>&5 | |
17571 | ac_status=$? | |
17572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17573 | (exit $ac_status); }; }; then | |
21d1c967 | 17574 | ac_cv_sys_large_files=1 |
f6bcfd97 | 17575 | else |
e6cc62c6 VS |
17576 | echo "$as_me: failed program was:" >&5 |
17577 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17578 | ||
17579 | ac_cv_sys_large_files=no | |
247f5006 | 17580 | fi |
eea650d8 | 17581 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 17582 | |
e6cc62c6 VS |
17583 | |
17584 | fi | |
17585 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
17586 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
3f345b47 | 17587 | |
21d1c967 GD |
17588 | if test "$ac_cv_sys_large_files" != no; then |
17589 | wx_largefile=yes | |
e6cc62c6 | 17590 | cat >>confdefs.h <<_ACEOF |
21d1c967 | 17591 | #define _LARGE_FILES $ac_cv_sys_large_files |
e6cc62c6 | 17592 | _ACEOF |
90dd450c | 17593 | |
90dd450c VZ |
17594 | fi |
17595 | ||
90dd450c | 17596 | fi |
90dd450c | 17597 | |
e6cc62c6 VS |
17598 | echo "$as_me:$LINENO: checking if large file support is available" >&5 |
17599 | echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6 | |
21d1c967 | 17600 | if test "x$wx_largefile" = "xyes"; then |
e6cc62c6 | 17601 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 17602 | #define HAVE_LARGEFILE_SUPPORT 1 |
e6cc62c6 | 17603 | _ACEOF |
90dd450c | 17604 | |
90dd450c | 17605 | fi |
e6cc62c6 VS |
17606 | echo "$as_me:$LINENO: result: $wx_largefile" >&5 |
17607 | echo "${ECHO_T}$wx_largefile" >&6 | |
21d1c967 | 17608 | fi |
90dd450c | 17609 | |
8284b0c5 | 17610 | |
f02444d0 | 17611 | if test "x$wx_largefile" = "xyes"; then |
e26c13cf RD |
17612 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then |
17613 | WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" | |
f02444d0 | 17614 | else |
e26c13cf | 17615 | WX_LARGEFILE_FLAGS="-D_LARGE_FILES" |
f02444d0 | 17616 | fi |
e26c13cf | 17617 | CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS" |
f02444d0 VZ |
17618 | fi |
17619 | ||
e6cc62c6 VS |
17620 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
17621 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
17622 | if test "${ac_cv_c_bigendian+set}" = set; then | |
17623 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 17624 | else |
21d1c967 GD |
17625 | ac_cv_c_bigendian=unknown |
17626 | # See if sys/param.h defines the BYTE_ORDER macro. | |
e6cc62c6 | 17627 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
17628 | /* confdefs.h. */ |
17629 | _ACEOF | |
17630 | cat confdefs.h >>conftest.$ac_ext | |
17631 | cat >>conftest.$ac_ext <<_ACEOF | |
17632 | /* end confdefs.h. */ | |
21d1c967 GD |
17633 | #include <sys/types.h> |
17634 | #include <sys/param.h> | |
e6cc62c6 VS |
17635 | int |
17636 | main () | |
17637 | { | |
21d1c967 GD |
17638 | |
17639 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
17640 | bogus endian macros | |
17641 | #endif | |
e6cc62c6 VS |
17642 | ; |
17643 | return 0; | |
17644 | } | |
17645 | _ACEOF | |
17646 | rm -f conftest.$ac_objext | |
17647 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 17648 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 17649 | ac_status=$? |
eea650d8 VS |
17650 | grep -v '^ *+' conftest.er1 >conftest.err |
17651 | rm -f conftest.er1 | |
17652 | cat conftest.err >&5 | |
e6cc62c6 VS |
17653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17654 | (exit $ac_status); } && | |
eea650d8 VS |
17655 | { ac_try='test -z "$ac_c_werror_flag" |
17656 | || test ! -s conftest.err' | |
17657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17658 | (eval $ac_try) 2>&5 | |
17659 | ac_status=$? | |
17660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17661 | (exit $ac_status); }; } && | |
17662 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
17663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17664 | (eval $ac_try) 2>&5 | |
17665 | ac_status=$? | |
17666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17667 | (exit $ac_status); }; }; then | |
21d1c967 | 17668 | # It does; now see whether it defined to BIG_ENDIAN or not. |
e6cc62c6 | 17669 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
17670 | /* confdefs.h. */ |
17671 | _ACEOF | |
17672 | cat confdefs.h >>conftest.$ac_ext | |
17673 | cat >>conftest.$ac_ext <<_ACEOF | |
17674 | /* end confdefs.h. */ | |
21d1c967 GD |
17675 | #include <sys/types.h> |
17676 | #include <sys/param.h> | |
e6cc62c6 VS |
17677 | int |
17678 | main () | |
17679 | { | |
21d1c967 GD |
17680 | |
17681 | #if BYTE_ORDER != BIG_ENDIAN | |
17682 | not big endian | |
17683 | #endif | |
e6cc62c6 VS |
17684 | ; |
17685 | return 0; | |
17686 | } | |
17687 | _ACEOF | |
17688 | rm -f conftest.$ac_objext | |
17689 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 17690 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 17691 | ac_status=$? |
eea650d8 VS |
17692 | grep -v '^ *+' conftest.er1 >conftest.err |
17693 | rm -f conftest.er1 | |
17694 | cat conftest.err >&5 | |
e6cc62c6 VS |
17695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17696 | (exit $ac_status); } && | |
eea650d8 VS |
17697 | { ac_try='test -z "$ac_c_werror_flag" |
17698 | || test ! -s conftest.err' | |
17699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17700 | (eval $ac_try) 2>&5 | |
17701 | ac_status=$? | |
17702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17703 | (exit $ac_status); }; } && | |
17704 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
17705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17706 | (eval $ac_try) 2>&5 | |
17707 | ac_status=$? | |
17708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17709 | (exit $ac_status); }; }; then | |
21d1c967 | 17710 | ac_cv_c_bigendian=yes |
3f345b47 | 17711 | else |
e6cc62c6 VS |
17712 | echo "$as_me: failed program was:" >&5 |
17713 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17714 | ||
17715 | ac_cv_c_bigendian=no | |
3f345b47 | 17716 | fi |
eea650d8 | 17717 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3f345b47 | 17718 | else |
e6cc62c6 VS |
17719 | echo "$as_me: failed program was:" >&5 |
17720 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17721 | ||
3f345b47 | 17722 | fi |
eea650d8 | 17723 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
21d1c967 GD |
17724 | if test $ac_cv_c_bigendian = unknown; then |
17725 | if test "$cross_compiling" = yes; then | |
17726 | ac_cv_c_bigendian=unknown | |
10f2d63a | 17727 | else |
e6cc62c6 | 17728 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
17729 | /* confdefs.h. */ |
17730 | _ACEOF | |
17731 | cat confdefs.h >>conftest.$ac_ext | |
17732 | cat >>conftest.$ac_ext <<_ACEOF | |
17733 | /* end confdefs.h. */ | |
21d1c967 GD |
17734 | main () { |
17735 | /* Are we little or big endian? From Harbison&Steele. */ | |
17736 | union | |
17737 | { | |
17738 | long l; | |
17739 | char c[sizeof (long)]; | |
17740 | } u; | |
17741 | u.l = 1; | |
17742 | exit (u.c[sizeof (long) - 1] == 1); | |
17743 | } | |
e6cc62c6 VS |
17744 | _ACEOF |
17745 | rm -f conftest$ac_exeext | |
17746 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17747 | (eval $ac_link) 2>&5 | |
17748 | ac_status=$? | |
17749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17750 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17752 | (eval $ac_try) 2>&5 | |
17753 | ac_status=$? | |
17754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17755 | (exit $ac_status); }; }; then | |
21d1c967 | 17756 | ac_cv_c_bigendian=no |
3f345b47 | 17757 | else |
e6cc62c6 VS |
17758 | echo "$as_me: program exited with status $ac_status" >&5 |
17759 | echo "$as_me: failed program was:" >&5 | |
17760 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17761 | ||
17762 | ( exit $ac_status ) | |
17763 | ac_cv_c_bigendian=yes | |
247f5006 | 17764 | fi |
eea650d8 | 17765 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
247f5006 | 17766 | fi |
3f345b47 | 17767 | fi |
8168de4c | 17768 | fi |
e6cc62c6 VS |
17769 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
17770 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
247f5006 | 17771 | if test $ac_cv_c_bigendian = unknown; then |
e6cc62c6 VS |
17772 | { 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 |
17773 | 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;} | |
247f5006 VZ |
17774 | fi |
17775 | if test $ac_cv_c_bigendian = yes; then | |
e6cc62c6 | 17776 | cat >>confdefs.h <<\_ACEOF |
247f5006 | 17777 | #define WORDS_BIGENDIAN 1 |
e6cc62c6 | 17778 | _ACEOF |
247f5006 VZ |
17779 | |
17780 | fi | |
17781 | ||
17782 | ||
e6cc62c6 VS |
17783 | |
17784 | ac_ext=cc | |
17785 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17786 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17787 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17788 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17789 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
17790 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
247f5006 | 17791 | if test -z "$CXXCPP"; then |
e6cc62c6 VS |
17792 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
17793 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17794 | else | |
17795 | # Double quotes because CXXCPP needs to be expanded | |
17796 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
17797 | do | |
17798 | ac_preproc_ok=false | |
17799 | for ac_cxx_preproc_warn_flag in '' yes | |
17800 | do | |
17801 | # Use a header file that comes with gcc, so configuring glibc | |
17802 | # with a fresh cross-compiler works. | |
17803 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17804 | # <limits.h> exists even on freestanding compilers. | |
17805 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
17806 | # not just through cpp. "Syntax error" is here to catch this case. | |
17807 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17808 | /* confdefs.h. */ |
17809 | _ACEOF | |
17810 | cat confdefs.h >>conftest.$ac_ext | |
17811 | cat >>conftest.$ac_ext <<_ACEOF | |
17812 | /* end confdefs.h. */ | |
17813 | #ifdef __STDC__ | |
17814 | # include <limits.h> | |
17815 | #else | |
17816 | # include <assert.h> | |
17817 | #endif | |
eea650d8 | 17818 | Syntax error |
e6cc62c6 VS |
17819 | _ACEOF |
17820 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17821 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17822 | ac_status=$? | |
17823 | grep -v '^ *+' conftest.er1 >conftest.err | |
17824 | rm -f conftest.er1 | |
17825 | cat conftest.err >&5 | |
17826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17827 | (exit $ac_status); } >/dev/null; then | |
17828 | if test -s conftest.err; then | |
17829 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
eea650d8 | 17830 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
e6cc62c6 VS |
17831 | else |
17832 | ac_cpp_err= | |
17833 | fi | |
247f5006 | 17834 | else |
e6cc62c6 VS |
17835 | ac_cpp_err=yes |
17836 | fi | |
17837 | if test -z "$ac_cpp_err"; then | |
17838 | : | |
17839 | else | |
17840 | echo "$as_me: failed program was:" >&5 | |
17841 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17842 | ||
17843 | # Broken: fails on valid input. | |
17844 | continue | |
17845 | fi | |
17846 | rm -f conftest.err conftest.$ac_ext | |
17847 | ||
17848 | # OK, works on sane cases. Now check whether non-existent headers | |
17849 | # can be detected and how. | |
17850 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17851 | /* confdefs.h. */ |
17852 | _ACEOF | |
17853 | cat confdefs.h >>conftest.$ac_ext | |
17854 | cat >>conftest.$ac_ext <<_ACEOF | |
17855 | /* end confdefs.h. */ | |
17856 | #include <ac_nonexistent.h> | |
17857 | _ACEOF | |
17858 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17859 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17860 | ac_status=$? | |
17861 | grep -v '^ *+' conftest.er1 >conftest.err | |
17862 | rm -f conftest.er1 | |
17863 | cat conftest.err >&5 | |
17864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17865 | (exit $ac_status); } >/dev/null; then | |
17866 | if test -s conftest.err; then | |
17867 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
eea650d8 | 17868 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
e6cc62c6 VS |
17869 | else |
17870 | ac_cpp_err= | |
17871 | fi | |
17872 | else | |
17873 | ac_cpp_err=yes | |
17874 | fi | |
17875 | if test -z "$ac_cpp_err"; then | |
17876 | # Broken: success on invalid input. | |
17877 | continue | |
17878 | else | |
17879 | echo "$as_me: failed program was:" >&5 | |
17880 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17881 | ||
17882 | # Passes both tests. | |
17883 | ac_preproc_ok=: | |
17884 | break | |
17885 | fi | |
17886 | rm -f conftest.err conftest.$ac_ext | |
17887 | ||
17888 | done | |
17889 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
17890 | rm -f conftest.err conftest.$ac_ext | |
17891 | if $ac_preproc_ok; then | |
17892 | break | |
17893 | fi | |
17894 | ||
17895 | done | |
17896 | ac_cv_prog_CXXCPP=$CXXCPP | |
17897 | ||
17898 | fi | |
17899 | CXXCPP=$ac_cv_prog_CXXCPP | |
17900 | else | |
17901 | ac_cv_prog_CXXCPP=$CXXCPP | |
17902 | fi | |
17903 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
17904 | echo "${ECHO_T}$CXXCPP" >&6 | |
17905 | ac_preproc_ok=false | |
17906 | for ac_cxx_preproc_warn_flag in '' yes | |
17907 | do | |
17908 | # Use a header file that comes with gcc, so configuring glibc | |
17909 | # with a fresh cross-compiler works. | |
17910 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17911 | # <limits.h> exists even on freestanding compilers. | |
17912 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
17913 | # not just through cpp. "Syntax error" is here to catch this case. | |
17914 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17915 | /* confdefs.h. */ |
17916 | _ACEOF | |
17917 | cat confdefs.h >>conftest.$ac_ext | |
17918 | cat >>conftest.$ac_ext <<_ACEOF | |
17919 | /* end confdefs.h. */ | |
17920 | #ifdef __STDC__ | |
17921 | # include <limits.h> | |
17922 | #else | |
17923 | # include <assert.h> | |
17924 | #endif | |
eea650d8 | 17925 | Syntax error |
e6cc62c6 VS |
17926 | _ACEOF |
17927 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17928 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17929 | ac_status=$? | |
17930 | grep -v '^ *+' conftest.er1 >conftest.err | |
17931 | rm -f conftest.er1 | |
17932 | cat conftest.err >&5 | |
17933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17934 | (exit $ac_status); } >/dev/null; then | |
17935 | if test -s conftest.err; then | |
17936 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
eea650d8 | 17937 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
e6cc62c6 VS |
17938 | else |
17939 | ac_cpp_err= | |
17940 | fi | |
17941 | else | |
17942 | ac_cpp_err=yes | |
17943 | fi | |
17944 | if test -z "$ac_cpp_err"; then | |
21d1c967 | 17945 | : |
698dcdb6 | 17946 | else |
e6cc62c6 VS |
17947 | echo "$as_me: failed program was:" >&5 |
17948 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17949 | ||
17950 | # Broken: fails on valid input. | |
17951 | continue | |
17952 | fi | |
17953 | rm -f conftest.err conftest.$ac_ext | |
17954 | ||
17955 | # OK, works on sane cases. Now check whether non-existent headers | |
17956 | # can be detected and how. | |
17957 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17958 | /* confdefs.h. */ |
17959 | _ACEOF | |
17960 | cat confdefs.h >>conftest.$ac_ext | |
17961 | cat >>conftest.$ac_ext <<_ACEOF | |
17962 | /* end confdefs.h. */ | |
17963 | #include <ac_nonexistent.h> | |
17964 | _ACEOF | |
17965 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17966 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17967 | ac_status=$? | |
17968 | grep -v '^ *+' conftest.er1 >conftest.err | |
17969 | rm -f conftest.er1 | |
17970 | cat conftest.err >&5 | |
17971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17972 | (exit $ac_status); } >/dev/null; then | |
17973 | if test -s conftest.err; then | |
17974 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
eea650d8 | 17975 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
e6cc62c6 VS |
17976 | else |
17977 | ac_cpp_err= | |
17978 | fi | |
17979 | else | |
17980 | ac_cpp_err=yes | |
247f5006 | 17981 | fi |
e6cc62c6 VS |
17982 | if test -z "$ac_cpp_err"; then |
17983 | # Broken: success on invalid input. | |
17984 | continue | |
17985 | else | |
17986 | echo "$as_me: failed program was:" >&5 | |
17987 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17988 | ||
17989 | # Passes both tests. | |
17990 | ac_preproc_ok=: | |
17991 | break | |
328a083c | 17992 | fi |
e6cc62c6 VS |
17993 | rm -f conftest.err conftest.$ac_ext |
17994 | ||
17995 | done | |
17996 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
17997 | rm -f conftest.err conftest.$ac_ext | |
17998 | if $ac_preproc_ok; then | |
17999 | : | |
18000 | else | |
18001 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
18002 | See \`config.log' for more details." >&5 | |
18003 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
18004 | See \`config.log' for more details." >&2;} | |
18005 | { (exit 1); exit 1; }; } | |
90dd450c | 18006 | fi |
e6cc62c6 VS |
18007 | |
18008 | ac_ext=cc | |
18009 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18010 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18011 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18012 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18013 | ||
1e6feb95 | 18014 | |
1725144d | 18015 | |
21d1c967 | 18016 | if test "$cross_compiling" = "yes"; then |
e6cc62c6 | 18017 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 18018 | #define wxUSE_IOSTREAMH 1 |
e6cc62c6 | 18019 | _ACEOF |
ab9b9eab | 18020 | |
21d1c967 | 18021 | else |
e6cc62c6 VS |
18022 | |
18023 | ||
18024 | ac_ext=cc | |
5c6fa7d2 | 18025 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
18026 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
18027 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18028 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18029 | ||
52127426 | 18030 | |
247f5006 | 18031 | |
e6cc62c6 | 18032 | for ac_header in iostream |
21d1c967 | 18033 | do |
e6cc62c6 VS |
18034 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
18035 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18036 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18037 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
18038 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18039 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18040 | fi | |
18041 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
18042 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
18043 | else | |
18044 | # Is the header compilable? | |
18045 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
18046 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
18047 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
18048 | /* confdefs.h. */ |
18049 | _ACEOF | |
18050 | cat confdefs.h >>conftest.$ac_ext | |
18051 | cat >>conftest.$ac_ext <<_ACEOF | |
18052 | /* end confdefs.h. */ | |
18053 | $ac_includes_default | |
18054 | #include <$ac_header> | |
18055 | _ACEOF | |
18056 | rm -f conftest.$ac_objext | |
18057 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 18058 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 18059 | ac_status=$? |
eea650d8 VS |
18060 | grep -v '^ *+' conftest.er1 >conftest.err |
18061 | rm -f conftest.er1 | |
18062 | cat conftest.err >&5 | |
e6cc62c6 VS |
18063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18064 | (exit $ac_status); } && | |
eea650d8 VS |
18065 | { ac_try='test -z "$ac_cxx_werror_flag" |
18066 | || test ! -s conftest.err' | |
18067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18068 | (eval $ac_try) 2>&5 | |
18069 | ac_status=$? | |
18070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18071 | (exit $ac_status); }; } && | |
18072 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
18073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18074 | (eval $ac_try) 2>&5 | |
18075 | ac_status=$? | |
18076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18077 | (exit $ac_status); }; }; then | |
18078 | ac_header_compiler=yes | |
18079 | else | |
18080 | echo "$as_me: failed program was:" >&5 | |
18081 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18082 | ||
18083 | ac_header_compiler=no | |
18084 | fi | |
eea650d8 | 18085 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
18086 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
18087 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18088 | ||
18089 | # Is the header present? | |
18090 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
18091 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
18092 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
18093 | /* confdefs.h. */ |
18094 | _ACEOF | |
18095 | cat confdefs.h >>conftest.$ac_ext | |
18096 | cat >>conftest.$ac_ext <<_ACEOF | |
18097 | /* end confdefs.h. */ | |
18098 | #include <$ac_header> | |
18099 | _ACEOF | |
18100 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18101 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18102 | ac_status=$? | |
18103 | grep -v '^ *+' conftest.er1 >conftest.err | |
18104 | rm -f conftest.er1 | |
18105 | cat conftest.err >&5 | |
18106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18107 | (exit $ac_status); } >/dev/null; then | |
18108 | if test -s conftest.err; then | |
18109 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
eea650d8 | 18110 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
e6cc62c6 VS |
18111 | else |
18112 | ac_cpp_err= | |
18113 | fi | |
18114 | else | |
18115 | ac_cpp_err=yes | |
18116 | fi | |
18117 | if test -z "$ac_cpp_err"; then | |
18118 | ac_header_preproc=yes | |
18119 | else | |
18120 | echo "$as_me: failed program was:" >&5 | |
18121 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18122 | ||
18123 | ac_header_preproc=no | |
18124 | fi | |
18125 | rm -f conftest.err conftest.$ac_ext | |
18126 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
18127 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18128 | ||
18129 | # So? What about this header? | |
eea650d8 VS |
18130 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
18131 | yes:no: ) | |
e6cc62c6 VS |
18132 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
18133 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
eea650d8 VS |
18134 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
18135 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
18136 | ac_header_preproc=yes | |
e6cc62c6 | 18137 | ;; |
eea650d8 | 18138 | no:yes:* ) |
e6cc62c6 VS |
18139 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
18140 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
eea650d8 VS |
18141 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
18142 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
18143 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
18144 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
18145 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
18146 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
18147 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
18148 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
eea650d8 VS |
18149 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
18150 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
18151 | ( |
18152 | cat <<\_ASBOX | |
eea650d8 VS |
18153 | ## ----------------------------------------- ## |
18154 | ## Report this to wx-dev@lists.wxwindows.org ## | |
18155 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
18156 | _ASBOX |
18157 | ) | | |
18158 | sed "s/^/$as_me: WARNING: /" >&2 | |
18159 | ;; | |
18160 | esac | |
18161 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18162 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
18163 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18164 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18165 | else | |
eea650d8 | 18166 | eval "$as_ac_Header=\$ac_header_preproc" |
ab9b9eab | 18167 | fi |
e6cc62c6 VS |
18168 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
18169 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
18170 | ||
90dd450c | 18171 | fi |
e6cc62c6 VS |
18172 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
18173 | cat >>confdefs.h <<_ACEOF | |
18174 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
18175 | _ACEOF | |
18176 | ||
90dd450c | 18177 | fi |
e6cc62c6 | 18178 | |
21d1c967 | 18179 | done |
10f2d63a | 18180 | |
8284b0c5 | 18181 | |
21d1c967 GD |
18182 | if test "$ac_cv_header_iostream" = "yes" ; then |
18183 | : | |
18184 | else | |
e6cc62c6 | 18185 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 18186 | #define wxUSE_IOSTREAMH 1 |
e6cc62c6 | 18187 | _ACEOF |
788deba1 | 18188 | |
90dd450c | 18189 | fi |
ab9b9eab | 18190 | |
21d1c967 | 18191 | ac_ext=c |
21d1c967 | 18192 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
18193 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
18194 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18195 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ab9b9eab | 18196 | |
21d1c967 | 18197 | fi |
ab9b9eab | 18198 | |
52127426 | 18199 | |
8284b0c5 | 18200 | |
e6cc62c6 VS |
18201 | echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5 |
18202 | echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6 | |
18203 | if test "${wx_cv_cpp_bool+set}" = set; then | |
18204 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 18205 | else |
e6cc62c6 VS |
18206 | |
18207 | ||
18208 | ||
18209 | ac_ext=cc | |
5c6fa7d2 | 18210 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
18211 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
18212 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18213 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21d1c967 | 18214 | |
8284b0c5 | 18215 | |
e6cc62c6 | 18216 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
18217 | /* confdefs.h. */ |
18218 | _ACEOF | |
18219 | cat confdefs.h >>conftest.$ac_ext | |
18220 | cat >>conftest.$ac_ext <<_ACEOF | |
18221 | /* end confdefs.h. */ | |
21d1c967 | 18222 | |
e6cc62c6 VS |
18223 | |
18224 | int | |
18225 | main () | |
18226 | { | |
21d1c967 GD |
18227 | |
18228 | bool b = true; | |
18229 | ||
18230 | return 0; | |
e6cc62c6 VS |
18231 | |
18232 | ; | |
18233 | return 0; | |
18234 | } | |
18235 | _ACEOF | |
18236 | rm -f conftest.$ac_objext | |
18237 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 18238 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 18239 | ac_status=$? |
eea650d8 VS |
18240 | grep -v '^ *+' conftest.er1 >conftest.err |
18241 | rm -f conftest.er1 | |
18242 | cat conftest.err >&5 | |
e6cc62c6 VS |
18243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18244 | (exit $ac_status); } && | |
eea650d8 VS |
18245 | { ac_try='test -z "$ac_cxx_werror_flag" |
18246 | || test ! -s conftest.err' | |
18247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18248 | (eval $ac_try) 2>&5 | |
18249 | ac_status=$? | |
18250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18251 | (exit $ac_status); }; } && | |
18252 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
18253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18254 | (eval $ac_try) 2>&5 | |
18255 | ac_status=$? | |
18256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18257 | (exit $ac_status); }; }; then | |
18258 | ||
21d1c967 | 18259 | wx_cv_cpp_bool=yes |
e6cc62c6 | 18260 | |
698dcdb6 | 18261 | else |
e6cc62c6 VS |
18262 | echo "$as_me: failed program was:" >&5 |
18263 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18264 | ||
18265 | ||
21d1c967 | 18266 | wx_cv_cpp_bool=no |
e6cc62c6 VS |
18267 | |
18268 | ||
698dcdb6 | 18269 | fi |
eea650d8 | 18270 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
21d1c967 GD |
18271 | |
18272 | ac_ext=c | |
21d1c967 | 18273 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
18274 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
18275 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18276 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 | 18277 | |
a0b9e27f | 18278 | |
e6cc62c6 VS |
18279 | fi |
18280 | echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5 | |
18281 | echo "${ECHO_T}$wx_cv_cpp_bool" >&6 | |
21d1c967 GD |
18282 | |
18283 | if test "$wx_cv_cpp_bool" = "yes"; then | |
e6cc62c6 | 18284 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 18285 | #define HAVE_BOOL 1 |
e6cc62c6 | 18286 | _ACEOF |
ab9b9eab | 18287 | |
21d1c967 GD |
18288 | fi |
18289 | ||
52127426 | 18290 | |
8284b0c5 | 18291 | |
e6cc62c6 VS |
18292 | echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5 |
18293 | echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6 | |
18294 | if test "${wx_cv_explicit+set}" = set; then | |
18295 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 18296 | else |
e6cc62c6 VS |
18297 | |
18298 | ||
18299 | ||
18300 | ac_ext=cc | |
5c6fa7d2 | 18301 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
18302 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
18303 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18304 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
986ecc86 | 18305 | |
8284b0c5 | 18306 | |
e6cc62c6 | 18307 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
18308 | /* confdefs.h. */ |
18309 | _ACEOF | |
18310 | cat confdefs.h >>conftest.$ac_ext | |
18311 | cat >>conftest.$ac_ext <<_ACEOF | |
18312 | /* end confdefs.h. */ | |
986ecc86 VZ |
18313 | |
18314 | class Foo { public: explicit Foo(int) {} }; | |
e6cc62c6 VS |
18315 | |
18316 | int | |
18317 | main () | |
18318 | { | |
986ecc86 VZ |
18319 | |
18320 | return 0; | |
e6cc62c6 VS |
18321 | |
18322 | ; | |
18323 | return 0; | |
18324 | } | |
18325 | _ACEOF | |
18326 | rm -f conftest.$ac_objext | |
18327 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 18328 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 18329 | ac_status=$? |
eea650d8 VS |
18330 | grep -v '^ *+' conftest.er1 >conftest.err |
18331 | rm -f conftest.er1 | |
18332 | cat conftest.err >&5 | |
e6cc62c6 VS |
18333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18334 | (exit $ac_status); } && | |
eea650d8 VS |
18335 | { ac_try='test -z "$ac_cxx_werror_flag" |
18336 | || test ! -s conftest.err' | |
18337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18338 | (eval $ac_try) 2>&5 | |
18339 | ac_status=$? | |
18340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18341 | (exit $ac_status); }; } && | |
18342 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
18343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18344 | (eval $ac_try) 2>&5 | |
18345 | ac_status=$? | |
18346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18347 | (exit $ac_status); }; }; then | |
18348 | ||
18349 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
18350 | /* confdefs.h. */ |
18351 | _ACEOF | |
18352 | cat confdefs.h >>conftest.$ac_ext | |
18353 | cat >>conftest.$ac_ext <<_ACEOF | |
18354 | /* end confdefs.h. */ | |
986ecc86 VZ |
18355 | |
18356 | class Foo { public: explicit Foo(int) {} }; | |
18357 | static void TakeFoo(const Foo& foo) { } | |
e6cc62c6 VS |
18358 | |
18359 | int | |
18360 | main () | |
18361 | { | |
986ecc86 VZ |
18362 | |
18363 | TakeFoo(17); | |
18364 | return 0; | |
e6cc62c6 VS |
18365 | |
18366 | ; | |
18367 | return 0; | |
18368 | } | |
18369 | _ACEOF | |
18370 | rm -f conftest.$ac_objext | |
18371 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 18372 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 18373 | ac_status=$? |
eea650d8 VS |
18374 | grep -v '^ *+' conftest.er1 >conftest.err |
18375 | rm -f conftest.er1 | |
18376 | cat conftest.err >&5 | |
e6cc62c6 VS |
18377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18378 | (exit $ac_status); } && | |
eea650d8 VS |
18379 | { ac_try='test -z "$ac_cxx_werror_flag" |
18380 | || test ! -s conftest.err' | |
18381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18382 | (eval $ac_try) 2>&5 | |
18383 | ac_status=$? | |
18384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18385 | (exit $ac_status); }; } && | |
18386 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
18387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18388 | (eval $ac_try) 2>&5 | |
18389 | ac_status=$? | |
18390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18391 | (exit $ac_status); }; }; then | |
986ecc86 VZ |
18392 | wx_cv_explicit=no |
18393 | else | |
e6cc62c6 VS |
18394 | echo "$as_me: failed program was:" >&5 |
18395 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18396 | ||
18397 | wx_cv_explicit=yes | |
18398 | ||
986ecc86 | 18399 | fi |
eea650d8 | 18400 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 18401 | |
986ecc86 | 18402 | else |
e6cc62c6 VS |
18403 | echo "$as_me: failed program was:" >&5 |
18404 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18405 | ||
18406 | wx_cv_explicit=no | |
18407 | ||
986ecc86 | 18408 | fi |
eea650d8 | 18409 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
986ecc86 VZ |
18410 | |
18411 | ac_ext=c | |
986ecc86 | 18412 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
18413 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
18414 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18415 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 | 18416 | |
a0b9e27f | 18417 | |
e6cc62c6 VS |
18418 | fi |
18419 | echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5 | |
18420 | echo "${ECHO_T}$wx_cv_explicit" >&6 | |
986ecc86 VZ |
18421 | |
18422 | if test "$wx_cv_explicit" = "yes"; then | |
e6cc62c6 | 18423 | cat >>confdefs.h <<\_ACEOF |
986ecc86 | 18424 | #define HAVE_EXPLICIT 1 |
e6cc62c6 | 18425 | _ACEOF |
986ecc86 VZ |
18426 | |
18427 | fi | |
18428 | ||
8284b0c5 | 18429 | |
e6cc62c6 VS |
18430 | echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5 |
18431 | echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6 | |
18432 | if test "${ac_cv_cxx_const_cast+set}" = set; then | |
18433 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
521196a2 | 18434 | else |
521196a2 | 18435 | |
521196a2 | 18436 | |
e6cc62c6 VS |
18437 | ac_ext=cc |
18438 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18439 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18440 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18441 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18442 | ||
18443 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
18444 | /* confdefs.h. */ |
18445 | _ACEOF | |
18446 | cat confdefs.h >>conftest.$ac_ext | |
18447 | cat >>conftest.$ac_ext <<_ACEOF | |
18448 | /* end confdefs.h. */ | |
18449 | ||
18450 | int | |
18451 | main () | |
18452 | { | |
521196a2 | 18453 | int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z; |
e6cc62c6 VS |
18454 | ; |
18455 | return 0; | |
18456 | } | |
18457 | _ACEOF | |
18458 | rm -f conftest.$ac_objext | |
18459 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 18460 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 18461 | ac_status=$? |
eea650d8 VS |
18462 | grep -v '^ *+' conftest.er1 >conftest.err |
18463 | rm -f conftest.er1 | |
18464 | cat conftest.err >&5 | |
e6cc62c6 VS |
18465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18466 | (exit $ac_status); } && | |
eea650d8 VS |
18467 | { ac_try='test -z "$ac_cxx_werror_flag" |
18468 | || test ! -s conftest.err' | |
18469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18470 | (eval $ac_try) 2>&5 | |
18471 | ac_status=$? | |
18472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18473 | (exit $ac_status); }; } && | |
18474 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
18475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18476 | (eval $ac_try) 2>&5 | |
18477 | ac_status=$? | |
18478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18479 | (exit $ac_status); }; }; then | |
521196a2 MB |
18480 | ac_cv_cxx_const_cast=yes |
18481 | else | |
e6cc62c6 VS |
18482 | echo "$as_me: failed program was:" >&5 |
18483 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18484 | ||
18485 | ac_cv_cxx_const_cast=no | |
521196a2 | 18486 | fi |
eea650d8 | 18487 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
521196a2 | 18488 | ac_ext=c |
521196a2 | 18489 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
18490 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
18491 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18492 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
521196a2 MB |
18493 | |
18494 | ||
18495 | fi | |
e6cc62c6 VS |
18496 | echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5 |
18497 | echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6 | |
521196a2 | 18498 | if test "$ac_cv_cxx_const_cast" = yes; then |
e6cc62c6 VS |
18499 | |
18500 | cat >>confdefs.h <<\_ACEOF | |
18501 | #define HAVE_CONST_CAST | |
18502 | _ACEOF | |
521196a2 MB |
18503 | |
18504 | fi | |
18505 | ||
18506 | ||
e87b7833 MB |
18507 | if test "$wxUSE_STL" = "yes"; then |
18508 | ac_ext=cc | |
18509 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18510 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18511 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18512 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18513 | ||
18514 | ||
18515 | echo "$as_me:$LINENO: checking for basic STL functionality" >&5 | |
18516 | echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6 | |
18517 | cat >conftest.$ac_ext <<_ACEOF | |
e87b7833 MB |
18518 | /* confdefs.h. */ |
18519 | _ACEOF | |
18520 | cat confdefs.h >>conftest.$ac_ext | |
18521 | cat >>conftest.$ac_ext <<_ACEOF | |
18522 | /* end confdefs.h. */ | |
18523 | #include <string> | |
18524 | #include <functional> | |
18525 | #include <algorithm> | |
18526 | #include <vector> | |
18527 | #include <list> | |
18528 | int | |
18529 | main () | |
18530 | { | |
18531 | std::vector<int> moo; | |
18532 | std::list<int> foo; | |
18533 | std::vector<int>::iterator it = | |
18534 | std::find_if(moo.begin(), moo.end(), | |
18535 | std::bind2nd(std::less<int>(), 3)); | |
18536 | ; | |
18537 | return 0; | |
18538 | } | |
18539 | _ACEOF | |
18540 | rm -f conftest.$ac_objext | |
18541 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 18542 | (eval $ac_compile) 2>conftest.er1 |
e87b7833 | 18543 | ac_status=$? |
eea650d8 VS |
18544 | grep -v '^ *+' conftest.er1 >conftest.err |
18545 | rm -f conftest.er1 | |
18546 | cat conftest.err >&5 | |
e87b7833 MB |
18547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18548 | (exit $ac_status); } && | |
eea650d8 VS |
18549 | { ac_try='test -z "$ac_cxx_werror_flag" |
18550 | || test ! -s conftest.err' | |
18551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18552 | (eval $ac_try) 2>&5 | |
18553 | ac_status=$? | |
18554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18555 | (exit $ac_status); }; } && | |
18556 | { ac_try='test -s conftest.$ac_objext' | |
e87b7833 MB |
18557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18558 | (eval $ac_try) 2>&5 | |
18559 | ac_status=$? | |
18560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18561 | (exit $ac_status); }; }; then | |
18562 | echo "$as_me:$LINENO: result: yes" >&5 | |
18563 | echo "${ECHO_T}yes" >&6 | |
18564 | else | |
18565 | echo "$as_me: failed program was:" >&5 | |
18566 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18567 | ||
18568 | echo "$as_me:$LINENO: result: no" >&5 | |
18569 | echo "${ECHO_T}no" >&6 | |
18570 | { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5 | |
18571 | echo "$as_me: error: Basic STL functionality missing" >&2;} | |
18572 | { (exit 1); exit 1; }; } | |
18573 | fi | |
eea650d8 | 18574 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e87b7833 MB |
18575 | |
18576 | echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5 | |
18577 | echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6 | |
18578 | cat >conftest.$ac_ext <<_ACEOF | |
e87b7833 MB |
18579 | /* confdefs.h. */ |
18580 | _ACEOF | |
18581 | cat confdefs.h >>conftest.$ac_ext | |
18582 | cat >>conftest.$ac_ext <<_ACEOF | |
18583 | /* end confdefs.h. */ | |
18584 | #include <string> | |
18585 | int | |
18586 | main () | |
18587 | { | |
18588 | std::wstring foo; | |
18589 | ; | |
18590 | return 0; | |
18591 | } | |
18592 | _ACEOF | |
18593 | rm -f conftest.$ac_objext | |
18594 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 18595 | (eval $ac_compile) 2>conftest.er1 |
e87b7833 | 18596 | ac_status=$? |
eea650d8 VS |
18597 | grep -v '^ *+' conftest.er1 >conftest.err |
18598 | rm -f conftest.er1 | |
18599 | cat conftest.err >&5 | |
e87b7833 MB |
18600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18601 | (exit $ac_status); } && | |
eea650d8 VS |
18602 | { ac_try='test -z "$ac_cxx_werror_flag" |
18603 | || test ! -s conftest.err' | |
18604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18605 | (eval $ac_try) 2>&5 | |
18606 | ac_status=$? | |
18607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18608 | (exit $ac_status); }; } && | |
18609 | { ac_try='test -s conftest.$ac_objext' | |
e87b7833 MB |
18610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18611 | (eval $ac_try) 2>&5 | |
18612 | ac_status=$? | |
18613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18614 | (exit $ac_status); }; }; then | |
18615 | echo "$as_me:$LINENO: result: yes" >&5 | |
18616 | echo "${ECHO_T}yes" >&6 | |
18617 | cat >>confdefs.h <<\_ACEOF | |
18618 | #define HAVE_STD_WSTRING 1 | |
18619 | _ACEOF | |
18620 | ||
18621 | else | |
18622 | echo "$as_me: failed program was:" >&5 | |
18623 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18624 | ||
18625 | echo "$as_me:$LINENO: result: no" >&5 | |
18626 | echo "${ECHO_T}no" >&6 | |
18627 | fi | |
eea650d8 | 18628 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e87b7833 MB |
18629 | |
18630 | echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5 | |
18631 | echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6 | |
18632 | cat >conftest.$ac_ext <<_ACEOF | |
e87b7833 MB |
18633 | /* confdefs.h. */ |
18634 | _ACEOF | |
18635 | cat confdefs.h >>conftest.$ac_ext | |
18636 | cat >>conftest.$ac_ext <<_ACEOF | |
18637 | /* end confdefs.h. */ | |
18638 | #include <string> | |
18639 | int | |
18640 | main () | |
18641 | { | |
18642 | std::string foo, bar; | |
18643 | foo.compare(bar); | |
18644 | foo.compare(1, 1, bar); | |
18645 | foo.compare(1, 1, bar, 1, 1); | |
18646 | foo.compare(""); | |
18647 | foo.compare(1, 1, ""); | |
18648 | foo.compare(1, 1, "", 2); | |
18649 | ; | |
18650 | return 0; | |
18651 | } | |
18652 | _ACEOF | |
18653 | rm -f conftest.$ac_objext | |
18654 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 18655 | (eval $ac_compile) 2>conftest.er1 |
e87b7833 | 18656 | ac_status=$? |
eea650d8 VS |
18657 | grep -v '^ *+' conftest.er1 >conftest.err |
18658 | rm -f conftest.er1 | |
18659 | cat conftest.err >&5 | |
e87b7833 MB |
18660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18661 | (exit $ac_status); } && | |
eea650d8 VS |
18662 | { ac_try='test -z "$ac_cxx_werror_flag" |
18663 | || test ! -s conftest.err' | |
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); }; } && | |
18669 | { ac_try='test -s conftest.$ac_objext' | |
e87b7833 MB |
18670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18671 | (eval $ac_try) 2>&5 | |
18672 | ac_status=$? | |
18673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18674 | (exit $ac_status); }; }; then | |
18675 | echo "$as_me:$LINENO: result: yes" >&5 | |
18676 | echo "${ECHO_T}yes" >&6 | |
18677 | cat >>confdefs.h <<\_ACEOF | |
18678 | #define HAVE_STD_STRING_COMPARE 1 | |
18679 | _ACEOF | |
18680 | ||
18681 | else | |
18682 | echo "$as_me: failed program was:" >&5 | |
18683 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18684 | ||
18685 | echo "$as_me:$LINENO: result: no" >&5 | |
18686 | echo "${ECHO_T}no" >&6 | |
18687 | fi | |
eea650d8 | 18688 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e87b7833 MB |
18689 | |
18690 | ac_ext=c | |
18691 | ac_cpp='$CPP $CPPFLAGS' | |
18692 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18693 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18694 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
18695 | ||
18696 | fi | |
18697 | ||
8284b0c5 | 18698 | |
21d1c967 GD |
18699 | SEARCH_INCLUDE="\ |
18700 | /usr/local/include \ | |
18701 | \ | |
18702 | /usr/Motif-1.2/include \ | |
18703 | /usr/Motif-2.1/include \ | |
18704 | \ | |
18705 | /usr/include/Motif1.2 \ | |
18706 | /opt/xpm/include/X11 \ | |
18707 | /opt/GBxpm/include/ \ | |
18708 | /opt/GBxpm/X11/include/ \ | |
18709 | \ | |
18710 | /usr/Motif1.2/include \ | |
18711 | /usr/dt/include \ | |
18712 | /usr/openwin/include \ | |
18713 | \ | |
18714 | /usr/include/Xm \ | |
18715 | \ | |
18716 | /usr/X11R6/include \ | |
18717 | /usr/X11R6.4/include \ | |
18718 | /usr/X11R5/include \ | |
18719 | /usr/X11R4/include \ | |
18720 | \ | |
18721 | /usr/include/X11R6 \ | |
18722 | /usr/include/X11R5 \ | |
18723 | /usr/include/X11R4 \ | |
18724 | \ | |
18725 | /usr/local/X11R6/include \ | |
18726 | /usr/local/X11R5/include \ | |
18727 | /usr/local/X11R4/include \ | |
18728 | \ | |
18729 | /usr/local/include/X11R6 \ | |
18730 | /usr/local/include/X11R5 \ | |
18731 | /usr/local/include/X11R4 \ | |
18732 | \ | |
18733 | /usr/X11/include \ | |
18734 | /usr/include/X11 \ | |
18735 | /usr/local/X11/include \ | |
18736 | /usr/local/include/X11 \ | |
18737 | \ | |
18738 | /usr/X386/include \ | |
18739 | /usr/x386/include \ | |
18740 | /usr/XFree86/include/X11 \ | |
18741 | \ | |
18742 | X:/XFree86/include \ | |
18743 | X:/XFree86/include/X11 \ | |
18744 | \ | |
18745 | /usr/include/gtk \ | |
18746 | /usr/local/include/gtk \ | |
18747 | /usr/include/glib \ | |
18748 | /usr/local/include/glib \ | |
18749 | \ | |
18750 | /usr/include/qt \ | |
18751 | /usr/local/include/qt \ | |
18752 | \ | |
18753 | /usr/include/windows \ | |
18754 | /usr/include/wine \ | |
18755 | /usr/local/include/wine \ | |
18756 | \ | |
18757 | /usr/unsupported/include \ | |
18758 | /usr/athena/include \ | |
18759 | /usr/local/x11r5/include \ | |
18760 | /usr/lpp/Xamples/include \ | |
18761 | \ | |
2b5f62a0 | 18762 | /usr/openwin/share/include" |
21d1c967 GD |
18763 | |
18764 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
18765 | ||
8284b0c5 | 18766 | |
e6cc62c6 | 18767 | cat >confcache <<\_ACEOF |
21d1c967 GD |
18768 | # This file is a shell script that caches the results of configure |
18769 | # tests run on this system so they can be shared between configure | |
e6cc62c6 VS |
18770 | # scripts and configure runs, see configure's option --config-cache. |
18771 | # It is not useful on other systems. If it contains results you don't | |
18772 | # want to keep, you may remove or edit it. | |
21d1c967 | 18773 | # |
e6cc62c6 VS |
18774 | # config.status only pays attention to the cache file if you give it |
18775 | # the --recheck option to rerun configure. | |
21d1c967 | 18776 | # |
e6cc62c6 VS |
18777 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
18778 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
18779 | # following values. | |
18780 | ||
18781 | _ACEOF | |
18782 | ||
21d1c967 GD |
18783 | # The following way of writing the cache mishandles newlines in values, |
18784 | # but we know of no workaround that is simple, portable, and efficient. | |
18785 | # So, don't put newlines in cache variables' values. | |
18786 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
18787 | # and sets the high bit in the cache file unless we assign to the vars. | |
e6cc62c6 VS |
18788 | { |
18789 | (set) 2>&1 | | |
18790 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
18791 | *ac_space=\ *) | |
18792 | # `set' does not quote correctly, so add quotes (double-quote | |
18793 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
18794 | sed -n \ | |
eea650d8 VS |
18795 | "s/'/'\\\\''/g; |
18796 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
e6cc62c6 VS |
18797 | ;; |
18798 | *) | |
18799 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
18800 | sed -n \ | |
eea650d8 | 18801 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
e6cc62c6 VS |
18802 | ;; |
18803 | esac; | |
18804 | } | | |
18805 | sed ' | |
18806 | t clear | |
18807 | : clear | |
18808 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
18809 | t end | |
18810 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
18811 | : end' >>confcache | |
18812 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
21d1c967 | 18813 | if test -w $cache_file; then |
e6cc62c6 VS |
18814 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
18815 | cat confcache >$cache_file | |
21d1c967 GD |
18816 | else |
18817 | echo "not updating unwritable cache $cache_file" | |
18818 | fi | |
ab9b9eab | 18819 | fi |
21d1c967 | 18820 | rm -f confcache |
ab9b9eab | 18821 | |
fe0895cf | 18822 | if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then |
e6cc62c6 VS |
18823 | echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5 |
18824 | echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6 | |
18825 | if test "${wx_cv_lib_glibc21+set}" = set; then | |
18826 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18827 | else | |
18828 | ||
18829 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
18830 | /* confdefs.h. */ |
18831 | _ACEOF | |
18832 | cat confdefs.h >>conftest.$ac_ext | |
18833 | cat >>conftest.$ac_ext <<_ACEOF | |
18834 | /* end confdefs.h. */ | |
21d1c967 | 18835 | #include <features.h> |
e6cc62c6 VS |
18836 | int |
18837 | main () | |
18838 | { | |
ab9b9eab | 18839 | |
21d1c967 GD |
18840 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) |
18841 | #error not glibc2.1 | |
18842 | #endif | |
e6cc62c6 VS |
18843 | |
18844 | ; | |
18845 | return 0; | |
18846 | } | |
18847 | _ACEOF | |
18848 | rm -f conftest.$ac_objext | |
18849 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 18850 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 18851 | ac_status=$? |
eea650d8 VS |
18852 | grep -v '^ *+' conftest.er1 >conftest.err |
18853 | rm -f conftest.er1 | |
18854 | cat conftest.err >&5 | |
e6cc62c6 VS |
18855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18856 | (exit $ac_status); } && | |
eea650d8 VS |
18857 | { ac_try='test -z "$ac_c_werror_flag" |
18858 | || test ! -s conftest.err' | |
18859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18860 | (eval $ac_try) 2>&5 | |
18861 | ac_status=$? | |
18862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18863 | (exit $ac_status); }; } && | |
18864 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
18865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18866 | (eval $ac_try) 2>&5 | |
18867 | ac_status=$? | |
18868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18869 | (exit $ac_status); }; }; then | |
18870 | ||
21d1c967 | 18871 | wx_cv_lib_glibc21=yes |
e6cc62c6 | 18872 | |
698dcdb6 | 18873 | else |
e6cc62c6 VS |
18874 | echo "$as_me: failed program was:" >&5 |
18875 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18876 | ||
18877 | ||
21d1c967 | 18878 | wx_cv_lib_glibc21=no |
e6cc62c6 VS |
18879 | |
18880 | ||
247f5006 | 18881 | fi |
eea650d8 | 18882 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 18883 | |
e6cc62c6 VS |
18884 | fi |
18885 | echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5 | |
18886 | echo "${ECHO_T}$wx_cv_lib_glibc21" >&6 | |
21d1c967 | 18887 | if test "$wx_cv_lib_glibc21" = "yes"; then |
e6cc62c6 | 18888 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 18889 | #define wxHAVE_GLIBC2 1 |
e6cc62c6 | 18890 | _ACEOF |
1e487827 | 18891 | |
90dd450c | 18892 | fi |
ab9b9eab VZ |
18893 | fi |
18894 | ||
5c0a20c3 VZ |
18895 | if test "x$wx_cv_lib_glibc21" = "xyes"; then |
18896 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
e6cc62c6 | 18897 | cat >>confdefs.h <<\_ACEOF |
5c0a20c3 | 18898 | #define _GNU_SOURCE 1 |
e6cc62c6 | 18899 | _ACEOF |
5c0a20c3 VZ |
18900 | |
18901 | fi | |
18902 | fi | |
18903 | ||
8284b0c5 MB |
18904 | |
18905 | ||
21d1c967 | 18906 | if test "$wxUSE_REGEX" != "no"; then |
e6cc62c6 | 18907 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 18908 | #define wxUSE_REGEX 1 |
e6cc62c6 | 18909 | _ACEOF |
698dcdb6 | 18910 | |
8284b0c5 | 18911 | |
21d1c967 | 18912 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then |
e6cc62c6 VS |
18913 | if test "${ac_cv_header_regex_h+set}" = set; then |
18914 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
18915 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
18916 | if test "${ac_cv_header_regex_h+set}" = set; then | |
18917 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18918 | fi | |
18919 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
18920 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
18921 | else | |
18922 | # Is the header compilable? | |
18923 | echo "$as_me:$LINENO: checking regex.h usability" >&5 | |
18924 | echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6 | |
18925 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
18926 | /* confdefs.h. */ |
18927 | _ACEOF | |
18928 | cat confdefs.h >>conftest.$ac_ext | |
18929 | cat >>conftest.$ac_ext <<_ACEOF | |
18930 | /* end confdefs.h. */ | |
18931 | $ac_includes_default | |
247f5006 | 18932 | #include <regex.h> |
e6cc62c6 VS |
18933 | _ACEOF |
18934 | rm -f conftest.$ac_objext | |
18935 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 18936 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 18937 | ac_status=$? |
eea650d8 VS |
18938 | grep -v '^ *+' conftest.er1 >conftest.err |
18939 | rm -f conftest.er1 | |
18940 | cat conftest.err >&5 | |
e6cc62c6 VS |
18941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18942 | (exit $ac_status); } && | |
eea650d8 VS |
18943 | { ac_try='test -z "$ac_c_werror_flag" |
18944 | || test ! -s conftest.err' | |
18945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18946 | (eval $ac_try) 2>&5 | |
18947 | ac_status=$? | |
18948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18949 | (exit $ac_status); }; } && | |
18950 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
18951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18952 | (eval $ac_try) 2>&5 | |
18953 | ac_status=$? | |
18954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18955 | (exit $ac_status); }; }; then | |
18956 | ac_header_compiler=yes | |
18957 | else | |
18958 | echo "$as_me: failed program was:" >&5 | |
18959 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18960 | ||
18961 | ac_header_compiler=no | |
18962 | fi | |
eea650d8 | 18963 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
18964 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
18965 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18966 | ||
18967 | # Is the header present? | |
18968 | echo "$as_me:$LINENO: checking regex.h presence" >&5 | |
18969 | echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6 | |
18970 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
18971 | /* confdefs.h. */ |
18972 | _ACEOF | |
18973 | cat confdefs.h >>conftest.$ac_ext | |
18974 | cat >>conftest.$ac_ext <<_ACEOF | |
18975 | /* end confdefs.h. */ | |
18976 | #include <regex.h> | |
18977 | _ACEOF | |
18978 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18979 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18980 | ac_status=$? | |
18981 | grep -v '^ *+' conftest.er1 >conftest.err | |
18982 | rm -f conftest.er1 | |
18983 | cat conftest.err >&5 | |
18984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18985 | (exit $ac_status); } >/dev/null; then | |
18986 | if test -s conftest.err; then | |
18987 | ac_cpp_err=$ac_c_preproc_warn_flag | |
eea650d8 | 18988 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
18989 | else |
18990 | ac_cpp_err= | |
18991 | fi | |
18992 | else | |
18993 | ac_cpp_err=yes | |
18994 | fi | |
18995 | if test -z "$ac_cpp_err"; then | |
18996 | ac_header_preproc=yes | |
18997 | else | |
18998 | echo "$as_me: failed program was:" >&5 | |
18999 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19000 | ||
19001 | ac_header_preproc=no | |
19002 | fi | |
19003 | rm -f conftest.err conftest.$ac_ext | |
19004 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19005 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19006 | ||
19007 | # So? What about this header? | |
eea650d8 VS |
19008 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
19009 | yes:no: ) | |
e6cc62c6 VS |
19010 | { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
19011 | echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
eea650d8 VS |
19012 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5 |
19013 | echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;} | |
19014 | ac_header_preproc=yes | |
e6cc62c6 | 19015 | ;; |
eea650d8 | 19016 | no:yes:* ) |
e6cc62c6 VS |
19017 | { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5 |
19018 | echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;} | |
eea650d8 VS |
19019 | { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5 |
19020 | echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;} | |
19021 | { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5 | |
19022 | echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;} | |
19023 | { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5 | |
19024 | echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
19025 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 |
19026 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
eea650d8 VS |
19027 | { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5 |
19028 | echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
19029 | ( |
19030 | cat <<\_ASBOX | |
eea650d8 VS |
19031 | ## ----------------------------------------- ## |
19032 | ## Report this to wx-dev@lists.wxwindows.org ## | |
19033 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
19034 | _ASBOX |
19035 | ) | | |
19036 | sed "s/^/$as_me: WARNING: /" >&2 | |
19037 | ;; | |
19038 | esac | |
19039 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
19040 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
19041 | if test "${ac_cv_header_regex_h+set}" = set; then | |
19042 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19043 | else | |
19044 | ac_cv_header_regex_h=$ac_header_preproc | |
21d1c967 | 19045 | fi |
e6cc62c6 VS |
19046 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 |
19047 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
19048 | ||
698dcdb6 | 19049 | fi |
e6cc62c6 VS |
19050 | if test $ac_cv_header_regex_h = yes; then |
19051 | ||
19052 | for ac_func in regcomp | |
21d1c967 | 19053 | do |
e6cc62c6 VS |
19054 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
19055 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
19056 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
19057 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
19058 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19059 | else | |
19060 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
19061 | /* confdefs.h. */ |
19062 | _ACEOF | |
19063 | cat confdefs.h >>conftest.$ac_ext | |
19064 | cat >>conftest.$ac_ext <<_ACEOF | |
19065 | /* end confdefs.h. */ | |
eea650d8 VS |
19066 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
19067 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19068 | #define $ac_func innocuous_$ac_func | |
19069 | ||
a0b9e27f | 19070 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
19071 | which can conflict with char $ac_func (); below. |
19072 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19073 | <limits.h> exists even on freestanding compilers. */ | |
eea650d8 | 19074 | |
e6cc62c6 VS |
19075 | #ifdef __STDC__ |
19076 | # include <limits.h> | |
19077 | #else | |
19078 | # include <assert.h> | |
19079 | #endif | |
eea650d8 VS |
19080 | |
19081 | #undef $ac_func | |
19082 | ||
21d1c967 | 19083 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
19084 | #ifdef __cplusplus |
19085 | extern "C" | |
19086 | { | |
19087 | #endif | |
21d1c967 | 19088 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
19089 | builtin and then its argument prototype would still apply. */ |
19090 | char $ac_func (); | |
21d1c967 GD |
19091 | /* The GNU C library defines this for functions which it implements |
19092 | to always fail with ENOSYS. Some functions are actually named | |
19093 | something starting with __ and the normal name is an alias. */ | |
19094 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19095 | choke me | |
19096 | #else | |
e6cc62c6 VS |
19097 | char (*f) () = $ac_func; |
19098 | #endif | |
19099 | #ifdef __cplusplus | |
19100 | } | |
21d1c967 | 19101 | #endif |
90dd450c | 19102 | |
e6cc62c6 VS |
19103 | int |
19104 | main () | |
19105 | { | |
19106 | return f != $ac_func; | |
19107 | ; | |
19108 | return 0; | |
19109 | } | |
19110 | _ACEOF | |
19111 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19112 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 19113 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 19114 | ac_status=$? |
eea650d8 VS |
19115 | grep -v '^ *+' conftest.er1 >conftest.err |
19116 | rm -f conftest.er1 | |
19117 | cat conftest.err >&5 | |
e6cc62c6 VS |
19118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19119 | (exit $ac_status); } && | |
eea650d8 VS |
19120 | { ac_try='test -z "$ac_c_werror_flag" |
19121 | || test ! -s conftest.err' | |
19122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19123 | (eval $ac_try) 2>&5 | |
19124 | ac_status=$? | |
19125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19126 | (exit $ac_status); }; } && | |
19127 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
19128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19129 | (eval $ac_try) 2>&5 | |
19130 | ac_status=$? | |
19131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19132 | (exit $ac_status); }; }; then | |
19133 | eval "$as_ac_var=yes" | |
19134 | else | |
19135 | echo "$as_me: failed program was:" >&5 | |
19136 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19137 | ||
19138 | eval "$as_ac_var=no" | |
19139 | fi | |
eea650d8 VS |
19140 | rm -f conftest.err conftest.$ac_objext \ |
19141 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
19142 | fi |
19143 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
19144 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
19145 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
19146 | cat >>confdefs.h <<_ACEOF | |
19147 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
19148 | _ACEOF | |
5c6fa7d2 | 19149 | |
698dcdb6 | 19150 | fi |
21d1c967 GD |
19151 | done |
19152 | ||
ab9b9eab VZ |
19153 | fi |
19154 | ||
8284b0c5 | 19155 | |
e6cc62c6 | 19156 | |
21d1c967 GD |
19157 | if test "x$ac_cv_func_regcomp" != "xyes"; then |
19158 | if test "$wxUSE_REGEX" = "sys" ; then | |
e6cc62c6 VS |
19159 | { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5 |
19160 | echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;} | |
19161 | { (exit 1); exit 1; }; } | |
21d1c967 | 19162 | else |
e6cc62c6 VS |
19163 | { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5 |
19164 | echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;} | |
21d1c967 GD |
19165 | wxUSE_REGEX=builtin |
19166 | fi | |
19167 | else | |
19168 | wxUSE_REGEX=sys | |
19169 | fi | |
ab9b9eab | 19170 | fi |
21d1c967 | 19171 | fi |
90dd450c | 19172 | |
8284b0c5 | 19173 | |
21d1c967 GD |
19174 | ZLIB_LINK= |
19175 | if test "$wxUSE_ZLIB" != "no" ; then | |
e6cc62c6 | 19176 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 19177 | #define wxUSE_ZLIB 1 |
e6cc62c6 | 19178 | _ACEOF |
21d1c967 | 19179 | |
8284b0c5 | 19180 | |
21d1c967 | 19181 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then |
d775acfa VZ |
19182 | if test "$USE_DARWIN" = 1; then |
19183 | system_zlib_h_ok="yes" | |
19184 | else | |
e6cc62c6 VS |
19185 | echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5 |
19186 | echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6 | |
19187 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
19188 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d643b80e VZ |
19189 | else |
19190 | if test "$cross_compiling" = yes; then | |
89e6bf6d | 19191 | unset ac_cv_header_zlib_h |
e6cc62c6 | 19192 | |
d643b80e | 19193 | else |
e6cc62c6 | 19194 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
19195 | /* confdefs.h. */ |
19196 | _ACEOF | |
19197 | cat confdefs.h >>conftest.$ac_ext | |
19198 | cat >>conftest.$ac_ext <<_ACEOF | |
19199 | /* end confdefs.h. */ | |
19200 | ||
ef33c576 | 19201 | #include <zlib.h> |
d775acfa | 19202 | #include <stdio.h> |
d643b80e | 19203 | |
d775acfa VZ |
19204 | int main() |
19205 | { | |
19206 | FILE *f=fopen("conftestval", "w"); | |
19207 | if (!f) exit(1); | |
19208 | fprintf(f, "%s", | |
19209 | ZLIB_VERSION[0] == '1' && | |
19210 | (ZLIB_VERSION[2] > '1' || | |
19211 | (ZLIB_VERSION[2] == '1' && | |
19212 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
19213 | exit(0); | |
19214 | } | |
e6cc62c6 VS |
19215 | |
19216 | _ACEOF | |
19217 | rm -f conftest$ac_exeext | |
19218 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19219 | (eval $ac_link) 2>&5 | |
19220 | ac_status=$? | |
19221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19222 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19224 | (eval $ac_try) 2>&5 | |
19225 | ac_status=$? | |
19226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19227 | (exit $ac_status); }; }; then | |
d643b80e VZ |
19228 | ac_cv_header_zlib_h=`cat conftestval` |
19229 | else | |
e6cc62c6 VS |
19230 | echo "$as_me: program exited with status $ac_status" >&5 |
19231 | echo "$as_me: failed program was:" >&5 | |
19232 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19233 | ||
19234 | ( exit $ac_status ) | |
19235 | ac_cv_header_zlib_h=no | |
d643b80e | 19236 | fi |
eea650d8 | 19237 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d643b80e VZ |
19238 | fi |
19239 | ||
d643b80e | 19240 | fi |
e6cc62c6 VS |
19241 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 |
19242 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
19243 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
19244 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
19245 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
19246 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
19247 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19248 | fi | |
19249 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
19250 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
89e6bf6d | 19251 | else |
e6cc62c6 VS |
19252 | # Is the header compilable? |
19253 | echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
19254 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 | |
19255 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
19256 | /* confdefs.h. */ |
19257 | _ACEOF | |
19258 | cat confdefs.h >>conftest.$ac_ext | |
19259 | cat >>conftest.$ac_ext <<_ACEOF | |
19260 | /* end confdefs.h. */ | |
19261 | $ac_includes_default | |
89e6bf6d | 19262 | #include <zlib.h> |
e6cc62c6 VS |
19263 | _ACEOF |
19264 | rm -f conftest.$ac_objext | |
19265 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 19266 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 19267 | ac_status=$? |
eea650d8 VS |
19268 | grep -v '^ *+' conftest.er1 >conftest.err |
19269 | rm -f conftest.er1 | |
19270 | cat conftest.err >&5 | |
e6cc62c6 VS |
19271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19272 | (exit $ac_status); } && | |
eea650d8 VS |
19273 | { ac_try='test -z "$ac_c_werror_flag" |
19274 | || test ! -s conftest.err' | |
19275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19276 | (eval $ac_try) 2>&5 | |
19277 | ac_status=$? | |
19278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19279 | (exit $ac_status); }; } && | |
19280 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
19281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19282 | (eval $ac_try) 2>&5 | |
19283 | ac_status=$? | |
19284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19285 | (exit $ac_status); }; }; then | |
19286 | ac_header_compiler=yes | |
19287 | else | |
19288 | echo "$as_me: failed program was:" >&5 | |
19289 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19290 | ||
19291 | ac_header_compiler=no | |
19292 | fi | |
eea650d8 | 19293 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
19294 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19295 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19296 | ||
19297 | # Is the header present? | |
19298 | echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
19299 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 | |
19300 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
19301 | /* confdefs.h. */ |
19302 | _ACEOF | |
19303 | cat confdefs.h >>conftest.$ac_ext | |
19304 | cat >>conftest.$ac_ext <<_ACEOF | |
19305 | /* end confdefs.h. */ | |
19306 | #include <zlib.h> | |
19307 | _ACEOF | |
19308 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19309 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19310 | ac_status=$? | |
19311 | grep -v '^ *+' conftest.er1 >conftest.err | |
19312 | rm -f conftest.er1 | |
19313 | cat conftest.err >&5 | |
19314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19315 | (exit $ac_status); } >/dev/null; then | |
19316 | if test -s conftest.err; then | |
19317 | ac_cpp_err=$ac_c_preproc_warn_flag | |
eea650d8 | 19318 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
19319 | else |
19320 | ac_cpp_err= | |
19321 | fi | |
19322 | else | |
19323 | ac_cpp_err=yes | |
19324 | fi | |
19325 | if test -z "$ac_cpp_err"; then | |
19326 | ac_header_preproc=yes | |
19327 | else | |
19328 | echo "$as_me: failed program was:" >&5 | |
19329 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19330 | ||
19331 | ac_header_preproc=no | |
19332 | fi | |
19333 | rm -f conftest.err conftest.$ac_ext | |
19334 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19335 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19336 | ||
19337 | # So? What about this header? | |
eea650d8 VS |
19338 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
19339 | yes:no: ) | |
e6cc62c6 VS |
19340 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
19341 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
eea650d8 VS |
19342 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 |
19343 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | |
19344 | ac_header_preproc=yes | |
e6cc62c6 | 19345 | ;; |
eea650d8 | 19346 | no:yes:* ) |
e6cc62c6 VS |
19347 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 |
19348 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
eea650d8 VS |
19349 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 |
19350 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
19351 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | |
19352 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | |
19353 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
19354 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
19355 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 |
19356 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
eea650d8 VS |
19357 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 |
19358 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
19359 | ( |
19360 | cat <<\_ASBOX | |
eea650d8 VS |
19361 | ## ----------------------------------------- ## |
19362 | ## Report this to wx-dev@lists.wxwindows.org ## | |
19363 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
19364 | _ASBOX |
19365 | ) | | |
19366 | sed "s/^/$as_me: WARNING: /" >&2 | |
19367 | ;; | |
19368 | esac | |
19369 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
19370 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
19371 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
19372 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
89e6bf6d | 19373 | else |
e6cc62c6 VS |
19374 | ac_cv_header_zlib_h=$ac_header_preproc |
19375 | fi | |
19376 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
19377 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
19378 | ||
89e6bf6d VZ |
19379 | fi |
19380 | ||
d643b80e | 19381 | |
e6cc62c6 | 19382 | |
d775acfa VZ |
19383 | system_zlib_h_ok=$ac_cv_header_zlib_h |
19384 | fi | |
19385 | ||
19386 | if test "$system_zlib_h_ok" = "yes"; then | |
e6cc62c6 VS |
19387 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 |
19388 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | |
19389 | if test "${ac_cv_lib_z_deflate+set}" = set; then | |
19390 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 19391 | else |
e6cc62c6 | 19392 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 19393 | LIBS="-lz $LIBS" |
e6cc62c6 | 19394 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
19395 | /* confdefs.h. */ |
19396 | _ACEOF | |
19397 | cat confdefs.h >>conftest.$ac_ext | |
19398 | cat >>conftest.$ac_ext <<_ACEOF | |
19399 | /* end confdefs.h. */ | |
19400 | ||
21d1c967 | 19401 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
19402 | #ifdef __cplusplus |
19403 | extern "C" | |
19404 | #endif | |
21d1c967 | 19405 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
19406 | builtin and then its argument prototype would still apply. */ |
19407 | char deflate (); | |
19408 | int | |
19409 | main () | |
19410 | { | |
19411 | deflate (); | |
19412 | ; | |
19413 | return 0; | |
19414 | } | |
19415 | _ACEOF | |
19416 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19417 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 19418 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 19419 | ac_status=$? |
eea650d8 VS |
19420 | grep -v '^ *+' conftest.er1 >conftest.err |
19421 | rm -f conftest.er1 | |
19422 | cat conftest.err >&5 | |
e6cc62c6 VS |
19423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19424 | (exit $ac_status); } && | |
eea650d8 VS |
19425 | { ac_try='test -z "$ac_c_werror_flag" |
19426 | || test ! -s conftest.err' | |
19427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19428 | (eval $ac_try) 2>&5 | |
19429 | ac_status=$? | |
19430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19431 | (exit $ac_status); }; } && | |
19432 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
19433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19434 | (eval $ac_try) 2>&5 | |
19435 | ac_status=$? | |
19436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19437 | (exit $ac_status); }; }; then | |
19438 | ac_cv_lib_z_deflate=yes | |
19439 | else | |
19440 | echo "$as_me: failed program was:" >&5 | |
19441 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19442 | ||
19443 | ac_cv_lib_z_deflate=no | |
19444 | fi | |
eea650d8 VS |
19445 | rm -f conftest.err conftest.$ac_objext \ |
19446 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
19447 | LIBS=$ac_check_lib_save_LIBS |
19448 | fi | |
19449 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | |
19450 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | |
19451 | if test $ac_cv_lib_z_deflate = yes; then | |
a0b9e27f | 19452 | ZLIB_LINK=" -lz" |
a0b9e27f | 19453 | fi |
698dcdb6 | 19454 | |
d643b80e | 19455 | fi |
247f5006 | 19456 | |
21d1c967 GD |
19457 | if test "x$ZLIB_LINK" = "x" ; then |
19458 | if test "$wxUSE_ZLIB" = "sys" ; then | |
e6cc62c6 VS |
19459 | { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5 |
19460 | echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;} | |
19461 | { (exit 1); exit 1; }; } | |
21d1c967 | 19462 | else |
e6cc62c6 VS |
19463 | { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5 |
19464 | echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;} | |
21d1c967 GD |
19465 | wxUSE_ZLIB=builtin |
19466 | fi | |
19467 | else | |
19468 | wxUSE_ZLIB=sys | |
19469 | fi | |
19470 | fi | |
ab9b9eab VZ |
19471 | fi |
19472 | ||
8284b0c5 | 19473 | |
21d1c967 GD |
19474 | PNG_LINK= |
19475 | if test "$wxUSE_LIBPNG" != "no" ; then | |
e6cc62c6 | 19476 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 19477 | #define wxUSE_LIBPNG 1 |
e6cc62c6 | 19478 | _ACEOF |
90dd450c | 19479 | |
8284b0c5 | 19480 | |
21d1c967 | 19481 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then |
e6cc62c6 VS |
19482 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5 |
19483 | echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;} | |
21d1c967 GD |
19484 | wxUSE_LIBPNG=sys |
19485 | fi | |
90dd450c | 19486 | |
21d1c967 | 19487 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
e6cc62c6 VS |
19488 | { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5 |
19489 | echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;} | |
21d1c967 GD |
19490 | wxUSE_LIBPNG=builtin |
19491 | fi | |
19492 | ||
19493 | if test "$wxUSE_MGL" != 1 ; then | |
19494 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
e6cc62c6 VS |
19495 | echo "$as_me:$LINENO: checking for png.h > 0.90" >&5 |
19496 | echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6 | |
19497 | if test "${ac_cv_header_png_h+set}" = set; then | |
19498 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5d3f766d VZ |
19499 | else |
19500 | if test "$cross_compiling" = yes; then | |
89e6bf6d | 19501 | unset ac_cv_header_png_h |
e6cc62c6 | 19502 | |
5d3f766d | 19503 | else |
e6cc62c6 | 19504 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
19505 | /* confdefs.h. */ |
19506 | _ACEOF | |
19507 | cat confdefs.h >>conftest.$ac_ext | |
19508 | cat >>conftest.$ac_ext <<_ACEOF | |
19509 | /* end confdefs.h. */ | |
19510 | ||
ef33c576 | 19511 | #include <png.h> |
5d3f766d VZ |
19512 | #include <stdio.h> |
19513 | ||
19514 | int main() | |
19515 | { | |
19516 | FILE *f=fopen("conftestval", "w"); | |
19517 | if (!f) exit(1); | |
19518 | fprintf(f, "%s", | |
19519 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
19520 | exit(0); | |
19521 | } | |
e6cc62c6 VS |
19522 | |
19523 | _ACEOF | |
19524 | rm -f conftest$ac_exeext | |
19525 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19526 | (eval $ac_link) 2>&5 | |
19527 | ac_status=$? | |
19528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19529 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19531 | (eval $ac_try) 2>&5 | |
19532 | ac_status=$? | |
19533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19534 | (exit $ac_status); }; }; then | |
5d3f766d VZ |
19535 | ac_cv_header_png_h=`cat conftestval` |
19536 | else | |
e6cc62c6 VS |
19537 | echo "$as_me: program exited with status $ac_status" >&5 |
19538 | echo "$as_me: failed program was:" >&5 | |
19539 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19540 | ||
19541 | ( exit $ac_status ) | |
19542 | ac_cv_header_png_h=no | |
5d3f766d | 19543 | fi |
eea650d8 | 19544 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
5d3f766d VZ |
19545 | fi |
19546 | ||
5d3f766d | 19547 | fi |
e6cc62c6 VS |
19548 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 |
19549 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
19550 | if test "${ac_cv_header_png_h+set}" = set; then | |
19551 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
19552 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
19553 | if test "${ac_cv_header_png_h+set}" = set; then | |
19554 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19555 | fi | |
19556 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
19557 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
89e6bf6d | 19558 | else |
e6cc62c6 VS |
19559 | # Is the header compilable? |
19560 | echo "$as_me:$LINENO: checking png.h usability" >&5 | |
19561 | echo $ECHO_N "checking png.h usability... $ECHO_C" >&6 | |
19562 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
19563 | /* confdefs.h. */ |
19564 | _ACEOF | |
19565 | cat confdefs.h >>conftest.$ac_ext | |
19566 | cat >>conftest.$ac_ext <<_ACEOF | |
19567 | /* end confdefs.h. */ | |
19568 | $ac_includes_default | |
89e6bf6d | 19569 | #include <png.h> |
e6cc62c6 VS |
19570 | _ACEOF |
19571 | rm -f conftest.$ac_objext | |
19572 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 19573 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 19574 | ac_status=$? |
eea650d8 VS |
19575 | grep -v '^ *+' conftest.er1 >conftest.err |
19576 | rm -f conftest.er1 | |
19577 | cat conftest.err >&5 | |
e6cc62c6 VS |
19578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19579 | (exit $ac_status); } && | |
eea650d8 VS |
19580 | { ac_try='test -z "$ac_c_werror_flag" |
19581 | || test ! -s conftest.err' | |
19582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19583 | (eval $ac_try) 2>&5 | |
19584 | ac_status=$? | |
19585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19586 | (exit $ac_status); }; } && | |
19587 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
19588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19589 | (eval $ac_try) 2>&5 | |
19590 | ac_status=$? | |
19591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19592 | (exit $ac_status); }; }; then | |
19593 | ac_header_compiler=yes | |
19594 | else | |
19595 | echo "$as_me: failed program was:" >&5 | |
19596 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19597 | ||
19598 | ac_header_compiler=no | |
19599 | fi | |
eea650d8 | 19600 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
19601 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19602 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19603 | ||
19604 | # Is the header present? | |
19605 | echo "$as_me:$LINENO: checking png.h presence" >&5 | |
19606 | echo $ECHO_N "checking png.h presence... $ECHO_C" >&6 | |
19607 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
19608 | /* confdefs.h. */ |
19609 | _ACEOF | |
19610 | cat confdefs.h >>conftest.$ac_ext | |
19611 | cat >>conftest.$ac_ext <<_ACEOF | |
19612 | /* end confdefs.h. */ | |
19613 | #include <png.h> | |
19614 | _ACEOF | |
19615 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19616 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19617 | ac_status=$? | |
19618 | grep -v '^ *+' conftest.er1 >conftest.err | |
19619 | rm -f conftest.er1 | |
19620 | cat conftest.err >&5 | |
19621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19622 | (exit $ac_status); } >/dev/null; then | |
19623 | if test -s conftest.err; then | |
19624 | ac_cpp_err=$ac_c_preproc_warn_flag | |
eea650d8 | 19625 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
19626 | else |
19627 | ac_cpp_err= | |
19628 | fi | |
19629 | else | |
19630 | ac_cpp_err=yes | |
19631 | fi | |
19632 | if test -z "$ac_cpp_err"; then | |
19633 | ac_header_preproc=yes | |
19634 | else | |
19635 | echo "$as_me: failed program was:" >&5 | |
19636 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19637 | ||
19638 | ac_header_preproc=no | |
19639 | fi | |
19640 | rm -f conftest.err conftest.$ac_ext | |
19641 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19642 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19643 | ||
19644 | # So? What about this header? | |
eea650d8 VS |
19645 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
19646 | yes:no: ) | |
e6cc62c6 VS |
19647 | { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
19648 | echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
eea650d8 VS |
19649 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5 |
19650 | echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;} | |
19651 | ac_header_preproc=yes | |
e6cc62c6 | 19652 | ;; |
eea650d8 | 19653 | no:yes:* ) |
e6cc62c6 VS |
19654 | { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5 |
19655 | echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;} | |
eea650d8 VS |
19656 | { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5 |
19657 | echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;} | |
19658 | { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5 | |
19659 | echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;} | |
19660 | { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5 | |
19661 | echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
19662 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 |
19663 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
eea650d8 VS |
19664 | { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5 |
19665 | echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
19666 | ( |
19667 | cat <<\_ASBOX | |
eea650d8 VS |
19668 | ## ----------------------------------------- ## |
19669 | ## Report this to wx-dev@lists.wxwindows.org ## | |
19670 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
19671 | _ASBOX |
19672 | ) | | |
19673 | sed "s/^/$as_me: WARNING: /" >&2 | |
19674 | ;; | |
19675 | esac | |
19676 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
19677 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
19678 | if test "${ac_cv_header_png_h+set}" = set; then | |
19679 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
89e6bf6d | 19680 | else |
e6cc62c6 VS |
19681 | ac_cv_header_png_h=$ac_header_preproc |
19682 | fi | |
19683 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
19684 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
19685 | ||
89e6bf6d VZ |
19686 | fi |
19687 | ||
5d3f766d | 19688 | |
e6cc62c6 | 19689 | |
5d3f766d | 19690 | if test "$ac_cv_header_png_h" = "yes"; then |
e6cc62c6 VS |
19691 | echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5 |
19692 | echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6 | |
19693 | if test "${ac_cv_lib_png_png_check_sig+set}" = set; then | |
19694 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 19695 | else |
e6cc62c6 | 19696 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 19697 | LIBS="-lpng -lz -lm $LIBS" |
e6cc62c6 | 19698 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
19699 | /* confdefs.h. */ |
19700 | _ACEOF | |
19701 | cat confdefs.h >>conftest.$ac_ext | |
19702 | cat >>conftest.$ac_ext <<_ACEOF | |
19703 | /* end confdefs.h. */ | |
19704 | ||
21d1c967 | 19705 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
19706 | #ifdef __cplusplus |
19707 | extern "C" | |
19708 | #endif | |
21d1c967 | 19709 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
19710 | builtin and then its argument prototype would still apply. */ |
19711 | char png_check_sig (); | |
19712 | int | |
19713 | main () | |
19714 | { | |
19715 | png_check_sig (); | |
19716 | ; | |
19717 | return 0; | |
19718 | } | |
19719 | _ACEOF | |
19720 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19721 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 19722 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 19723 | ac_status=$? |
eea650d8 VS |
19724 | grep -v '^ *+' conftest.er1 >conftest.err |
19725 | rm -f conftest.er1 | |
19726 | cat conftest.err >&5 | |
e6cc62c6 VS |
19727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19728 | (exit $ac_status); } && | |
eea650d8 VS |
19729 | { ac_try='test -z "$ac_c_werror_flag" |
19730 | || test ! -s conftest.err' | |
19731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19732 | (eval $ac_try) 2>&5 | |
19733 | ac_status=$? | |
19734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19735 | (exit $ac_status); }; } && | |
19736 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
19737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19738 | (eval $ac_try) 2>&5 | |
19739 | ac_status=$? | |
19740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19741 | (exit $ac_status); }; }; then | |
19742 | ac_cv_lib_png_png_check_sig=yes | |
19743 | else | |
19744 | echo "$as_me: failed program was:" >&5 | |
19745 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19746 | ||
19747 | ac_cv_lib_png_png_check_sig=no | |
19748 | fi | |
eea650d8 VS |
19749 | rm -f conftest.err conftest.$ac_objext \ |
19750 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
19751 | LIBS=$ac_check_lib_save_LIBS |
19752 | fi | |
19753 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5 | |
19754 | echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6 | |
19755 | if test $ac_cv_lib_png_png_check_sig = yes; then | |
a0b9e27f | 19756 | PNG_LINK=" -lpng" |
a0b9e27f | 19757 | fi |
90dd450c | 19758 | |
5d3f766d | 19759 | fi |
247f5006 | 19760 | |
21d1c967 GD |
19761 | if test "x$PNG_LINK" = "x" ; then |
19762 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
e6cc62c6 VS |
19763 | { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5 |
19764 | echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;} | |
19765 | { (exit 1); exit 1; }; } | |
21d1c967 | 19766 | else |
e6cc62c6 VS |
19767 | { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5 |
19768 | echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;} | |
21d1c967 GD |
19769 | wxUSE_LIBPNG=builtin |
19770 | fi | |
19771 | else | |
2b5f62a0 | 19772 | wxUSE_LIBPNG=sys |
21d1c967 GD |
19773 | fi |
19774 | fi | |
19775 | fi | |
90dd450c | 19776 | |
21d1c967 | 19777 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
90dd450c VZ |
19778 | fi |
19779 | ||
8284b0c5 | 19780 | |
21d1c967 GD |
19781 | JPEG_LINK= |
19782 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
e6cc62c6 | 19783 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 19784 | #define wxUSE_LIBJPEG 1 |
e6cc62c6 | 19785 | _ACEOF |
90dd450c | 19786 | |
8284b0c5 | 19787 | |
21d1c967 | 19788 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then |
e6cc62c6 VS |
19789 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5 |
19790 | echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;} | |
21d1c967 GD |
19791 | wxUSE_LIBJPEG=sys |
19792 | fi | |
90dd450c | 19793 | |
21d1c967 GD |
19794 | if test "$wxUSE_MGL" != 1 ; then |
19795 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
e6cc62c6 VS |
19796 | echo "$as_me:$LINENO: checking for jpeglib.h" >&5 |
19797 | echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6 | |
19798 | if test "${ac_cv_header_jpeglib_h+set}" = set; then | |
19799 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19800 | else | |
19801 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
19802 | /* confdefs.h. */ |
19803 | _ACEOF | |
19804 | cat confdefs.h >>conftest.$ac_ext | |
19805 | cat >>conftest.$ac_ext <<_ACEOF | |
19806 | /* end confdefs.h. */ | |
90dd450c | 19807 | |
21d1c967 GD |
19808 | #undef HAVE_STDLIB_H |
19809 | #include <stdio.h> | |
19810 | #include <jpeglib.h> | |
90dd450c | 19811 | |
e6cc62c6 VS |
19812 | int |
19813 | main () | |
19814 | { | |
19815 | ||
19816 | ||
19817 | ; | |
19818 | return 0; | |
19819 | } | |
19820 | _ACEOF | |
19821 | rm -f conftest.$ac_objext | |
19822 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 19823 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 19824 | ac_status=$? |
eea650d8 VS |
19825 | grep -v '^ *+' conftest.er1 >conftest.err |
19826 | rm -f conftest.er1 | |
19827 | cat conftest.err >&5 | |
e6cc62c6 VS |
19828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19829 | (exit $ac_status); } && | |
eea650d8 VS |
19830 | { ac_try='test -z "$ac_c_werror_flag" |
19831 | || test ! -s conftest.err' | |
19832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19833 | (eval $ac_try) 2>&5 | |
19834 | ac_status=$? | |
19835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19836 | (exit $ac_status); }; } && | |
19837 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
19838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19839 | (eval $ac_try) 2>&5 | |
19840 | ac_status=$? | |
19841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19842 | (exit $ac_status); }; }; then | |
21d1c967 | 19843 | ac_cv_header_jpeglib_h=yes |
90dd450c | 19844 | else |
e6cc62c6 VS |
19845 | echo "$as_me: failed program was:" >&5 |
19846 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19847 | ||
19848 | ac_cv_header_jpeglib_h=no | |
19849 | ||
90dd450c | 19850 | fi |
eea650d8 | 19851 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 19852 | |
90dd450c VZ |
19853 | fi |
19854 | ||
e6cc62c6 VS |
19855 | echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5 |
19856 | echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6 | |
90dd450c | 19857 | |
21d1c967 | 19858 | if test "$ac_cv_header_jpeglib_h" = "yes"; then |
e6cc62c6 VS |
19859 | echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5 |
19860 | echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6 | |
19861 | if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then | |
19862 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 19863 | else |
e6cc62c6 | 19864 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 19865 | LIBS="-ljpeg $LIBS" |
e6cc62c6 | 19866 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
19867 | /* confdefs.h. */ |
19868 | _ACEOF | |
19869 | cat confdefs.h >>conftest.$ac_ext | |
19870 | cat >>conftest.$ac_ext <<_ACEOF | |
19871 | /* end confdefs.h. */ | |
19872 | ||
21d1c967 | 19873 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
19874 | #ifdef __cplusplus |
19875 | extern "C" | |
19876 | #endif | |
21d1c967 | 19877 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
19878 | builtin and then its argument prototype would still apply. */ |
19879 | char jpeg_read_header (); | |
19880 | int | |
19881 | main () | |
19882 | { | |
19883 | jpeg_read_header (); | |
19884 | ; | |
19885 | return 0; | |
19886 | } | |
19887 | _ACEOF | |
19888 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19889 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 19890 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 19891 | ac_status=$? |
eea650d8 VS |
19892 | grep -v '^ *+' conftest.er1 >conftest.err |
19893 | rm -f conftest.er1 | |
19894 | cat conftest.err >&5 | |
e6cc62c6 VS |
19895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19896 | (exit $ac_status); } && | |
eea650d8 VS |
19897 | { ac_try='test -z "$ac_c_werror_flag" |
19898 | || test ! -s conftest.err' | |
19899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19900 | (eval $ac_try) 2>&5 | |
19901 | ac_status=$? | |
19902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19903 | (exit $ac_status); }; } && | |
19904 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
19905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19906 | (eval $ac_try) 2>&5 | |
19907 | ac_status=$? | |
19908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19909 | (exit $ac_status); }; }; then | |
19910 | ac_cv_lib_jpeg_jpeg_read_header=yes | |
19911 | else | |
19912 | echo "$as_me: failed program was:" >&5 | |
19913 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19914 | ||
19915 | ac_cv_lib_jpeg_jpeg_read_header=no | |
19916 | fi | |
eea650d8 VS |
19917 | rm -f conftest.err conftest.$ac_objext \ |
19918 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
19919 | LIBS=$ac_check_lib_save_LIBS |
19920 | fi | |
19921 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 | |
19922 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6 | |
19923 | if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then | |
21d1c967 | 19924 | JPEG_LINK=" -ljpeg" |
90dd450c VZ |
19925 | fi |
19926 | ||
21d1c967 | 19927 | fi |
90dd450c | 19928 | |
21d1c967 GD |
19929 | if test "x$JPEG_LINK" = "x" ; then |
19930 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
e6cc62c6 VS |
19931 | { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5 |
19932 | echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;} | |
19933 | { (exit 1); exit 1; }; } | |
21d1c967 | 19934 | else |
e6cc62c6 VS |
19935 | { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5 |
19936 | echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;} | |
21d1c967 GD |
19937 | wxUSE_LIBJPEG=builtin |
19938 | fi | |
19939 | else | |
19940 | wxUSE_LIBJPEG=sys | |
19941 | fi | |
19942 | fi | |
19943 | fi | |
21d1c967 | 19944 | fi |
90dd450c | 19945 | |
8284b0c5 | 19946 | |
21d1c967 | 19947 | TIFF_LINK= |
2b5f62a0 | 19948 | TIFF_PREREQ_LINKS=-lm |
21d1c967 | 19949 | if test "$wxUSE_LIBTIFF" != "no" ; then |
e6cc62c6 | 19950 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 19951 | #define wxUSE_LIBTIFF 1 |
e6cc62c6 | 19952 | _ACEOF |
21d1c967 | 19953 | |
8284b0c5 | 19954 | |
21d1c967 | 19955 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then |
2b5f62a0 VZ |
19956 | if test "$wxUSE_LIBJPEG" = "sys"; then |
19957 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
19958 | fi | |
19959 | if test "$wxUSE_ZLIB" = "sys"; then | |
19960 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
19961 | fi | |
e6cc62c6 VS |
19962 | if test "${ac_cv_header_tiffio_h+set}" = set; then |
19963 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
19964 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
19965 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
19966 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19967 | fi | |
19968 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
19969 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
19970 | else | |
19971 | # Is the header compilable? | |
19972 | echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
19973 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 | |
19974 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
19975 | /* confdefs.h. */ |
19976 | _ACEOF | |
19977 | cat confdefs.h >>conftest.$ac_ext | |
19978 | cat >>conftest.$ac_ext <<_ACEOF | |
19979 | /* end confdefs.h. */ | |
19980 | $ac_includes_default | |
247f5006 | 19981 | #include <tiffio.h> |
e6cc62c6 VS |
19982 | _ACEOF |
19983 | rm -f conftest.$ac_objext | |
19984 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 19985 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 19986 | ac_status=$? |
eea650d8 VS |
19987 | grep -v '^ *+' conftest.er1 >conftest.err |
19988 | rm -f conftest.er1 | |
19989 | cat conftest.err >&5 | |
e6cc62c6 VS |
19990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19991 | (exit $ac_status); } && | |
eea650d8 VS |
19992 | { ac_try='test -z "$ac_c_werror_flag" |
19993 | || test ! -s conftest.err' | |
19994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19995 | (eval $ac_try) 2>&5 | |
19996 | ac_status=$? | |
19997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19998 | (exit $ac_status); }; } && | |
19999 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
20000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20001 | (eval $ac_try) 2>&5 | |
20002 | ac_status=$? | |
20003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20004 | (exit $ac_status); }; }; then | |
20005 | ac_header_compiler=yes | |
20006 | else | |
20007 | echo "$as_me: failed program was:" >&5 | |
20008 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20009 | ||
20010 | ac_header_compiler=no | |
20011 | fi | |
eea650d8 | 20012 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
20013 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20014 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20015 | ||
20016 | # Is the header present? | |
20017 | echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
20018 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 | |
20019 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
20020 | /* confdefs.h. */ |
20021 | _ACEOF | |
20022 | cat confdefs.h >>conftest.$ac_ext | |
20023 | cat >>conftest.$ac_ext <<_ACEOF | |
20024 | /* end confdefs.h. */ | |
20025 | #include <tiffio.h> | |
20026 | _ACEOF | |
20027 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20028 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20029 | ac_status=$? | |
20030 | grep -v '^ *+' conftest.er1 >conftest.err | |
20031 | rm -f conftest.er1 | |
20032 | cat conftest.err >&5 | |
20033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20034 | (exit $ac_status); } >/dev/null; then | |
20035 | if test -s conftest.err; then | |
20036 | ac_cpp_err=$ac_c_preproc_warn_flag | |
eea650d8 | 20037 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
20038 | else |
20039 | ac_cpp_err= | |
20040 | fi | |
20041 | else | |
20042 | ac_cpp_err=yes | |
20043 | fi | |
20044 | if test -z "$ac_cpp_err"; then | |
20045 | ac_header_preproc=yes | |
20046 | else | |
20047 | echo "$as_me: failed program was:" >&5 | |
20048 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20049 | ||
20050 | ac_header_preproc=no | |
20051 | fi | |
20052 | rm -f conftest.err conftest.$ac_ext | |
20053 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20054 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20055 | ||
20056 | # So? What about this header? | |
eea650d8 VS |
20057 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20058 | yes:no: ) | |
e6cc62c6 VS |
20059 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
20060 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
eea650d8 VS |
20061 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5 |
20062 | echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;} | |
20063 | ac_header_preproc=yes | |
e6cc62c6 | 20064 | ;; |
eea650d8 | 20065 | no:yes:* ) |
e6cc62c6 VS |
20066 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 |
20067 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
eea650d8 VS |
20068 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 |
20069 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
20070 | { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5 | |
20071 | echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;} | |
20072 | { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5 | |
20073 | echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
20074 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
20075 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
eea650d8 VS |
20076 | { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5 |
20077 | echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
20078 | ( |
20079 | cat <<\_ASBOX | |
eea650d8 VS |
20080 | ## ----------------------------------------- ## |
20081 | ## Report this to wx-dev@lists.wxwindows.org ## | |
20082 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
20083 | _ASBOX |
20084 | ) | | |
20085 | sed "s/^/$as_me: WARNING: /" >&2 | |
20086 | ;; | |
20087 | esac | |
20088 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
20089 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
20090 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
20091 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20092 | else | |
20093 | ac_cv_header_tiffio_h=$ac_header_preproc | |
21d1c967 | 20094 | fi |
e6cc62c6 VS |
20095 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 |
20096 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
20097 | ||
21d1c967 | 20098 | fi |
e6cc62c6 | 20099 | if test $ac_cv_header_tiffio_h = yes; then |
0e012a93 VZ |
20100 | |
20101 | echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5 | |
e6cc62c6 VS |
20102 | echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6 |
20103 | if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then | |
20104 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
698dcdb6 | 20105 | else |
e6cc62c6 | 20106 | ac_check_lib_save_LIBS=$LIBS |
2b5f62a0 | 20107 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" |
e6cc62c6 | 20108 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
20109 | /* confdefs.h. */ |
20110 | _ACEOF | |
20111 | cat confdefs.h >>conftest.$ac_ext | |
20112 | cat >>conftest.$ac_ext <<_ACEOF | |
20113 | /* end confdefs.h. */ | |
20114 | ||
ab9b9eab | 20115 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
20116 | #ifdef __cplusplus |
20117 | extern "C" | |
20118 | #endif | |
ab9b9eab | 20119 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
20120 | builtin and then its argument prototype would still apply. */ |
20121 | char TIFFError (); | |
20122 | int | |
20123 | main () | |
20124 | { | |
20125 | TIFFError (); | |
20126 | ; | |
20127 | return 0; | |
20128 | } | |
20129 | _ACEOF | |
20130 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20131 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 20132 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 20133 | ac_status=$? |
eea650d8 VS |
20134 | grep -v '^ *+' conftest.er1 >conftest.err |
20135 | rm -f conftest.er1 | |
20136 | cat conftest.err >&5 | |
e6cc62c6 VS |
20137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20138 | (exit $ac_status); } && | |
eea650d8 VS |
20139 | { ac_try='test -z "$ac_c_werror_flag" |
20140 | || test ! -s conftest.err' | |
20141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20142 | (eval $ac_try) 2>&5 | |
20143 | ac_status=$? | |
20144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20145 | (exit $ac_status); }; } && | |
20146 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
20147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20148 | (eval $ac_try) 2>&5 | |
20149 | ac_status=$? | |
20150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20151 | (exit $ac_status); }; }; then | |
20152 | ac_cv_lib_tiff_TIFFError=yes | |
20153 | else | |
20154 | echo "$as_me: failed program was:" >&5 | |
20155 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20156 | ||
20157 | ac_cv_lib_tiff_TIFFError=no | |
20158 | fi | |
eea650d8 VS |
20159 | rm -f conftest.err conftest.$ac_objext \ |
20160 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
20161 | LIBS=$ac_check_lib_save_LIBS |
20162 | fi | |
20163 | echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5 | |
20164 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6 | |
20165 | if test $ac_cv_lib_tiff_TIFFError = yes; then | |
a0b9e27f | 20166 | TIFF_LINK=" -ltiff" |
a0b9e27f | 20167 | fi |
cd6d6d5b | 20168 | |
e6cc62c6 | 20169 | |
0e012a93 | 20170 | |
a0b9e27f | 20171 | fi |
8284b0c5 | 20172 | |
247f5006 | 20173 | |
e6cc62c6 | 20174 | |
21d1c967 GD |
20175 | if test "x$TIFF_LINK" = "x" ; then |
20176 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
e6cc62c6 VS |
20177 | { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5 |
20178 | echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;} | |
20179 | { (exit 1); exit 1; }; } | |
90dd450c | 20180 | else |
e6cc62c6 VS |
20181 | { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5 |
20182 | echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;} | |
21d1c967 | 20183 | wxUSE_LIBTIFF=builtin |
d8356fa3 | 20184 | fi |
d8356fa3 | 20185 | else |
21d1c967 | 20186 | wxUSE_LIBTIFF=sys |
d8356fa3 | 20187 | fi |
21d1c967 | 20188 | fi |
21d1c967 | 20189 | fi |
10f2d63a | 20190 | |
8284b0c5 | 20191 | |
672abd7a | 20192 | if test "$wxUSE_EXPAT" != "no"; then |
e06468e8 | 20193 | wxUSE_XML=yes |
672abd7a VS |
20194 | cat >>confdefs.h <<\_ACEOF |
20195 | #define wxUSE_EXPAT 1 | |
20196 | _ACEOF | |
20197 | ||
20198 | cat >>confdefs.h <<\_ACEOF | |
20199 | #define wxUSE_XML 1 | |
20200 | _ACEOF | |
20201 | ||
20202 | ||
20203 | if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then | |
20204 | if test "${ac_cv_header_expat_h+set}" = set; then | |
20205 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
20206 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
20207 | if test "${ac_cv_header_expat_h+set}" = set; then | |
20208 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20209 | fi | |
20210 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
20211 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
20212 | else | |
20213 | # Is the header compilable? | |
20214 | echo "$as_me:$LINENO: checking expat.h usability" >&5 | |
20215 | echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6 | |
20216 | cat >conftest.$ac_ext <<_ACEOF | |
672abd7a VS |
20217 | /* confdefs.h. */ |
20218 | _ACEOF | |
20219 | cat confdefs.h >>conftest.$ac_ext | |
20220 | cat >>conftest.$ac_ext <<_ACEOF | |
20221 | /* end confdefs.h. */ | |
20222 | $ac_includes_default | |
20223 | #include <expat.h> | |
20224 | _ACEOF | |
20225 | rm -f conftest.$ac_objext | |
20226 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 20227 | (eval $ac_compile) 2>conftest.er1 |
672abd7a | 20228 | ac_status=$? |
eea650d8 VS |
20229 | grep -v '^ *+' conftest.er1 >conftest.err |
20230 | rm -f conftest.er1 | |
20231 | cat conftest.err >&5 | |
672abd7a VS |
20232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20233 | (exit $ac_status); } && | |
eea650d8 VS |
20234 | { ac_try='test -z "$ac_c_werror_flag" |
20235 | || test ! -s conftest.err' | |
20236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20237 | (eval $ac_try) 2>&5 | |
20238 | ac_status=$? | |
20239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20240 | (exit $ac_status); }; } && | |
20241 | { ac_try='test -s conftest.$ac_objext' | |
672abd7a VS |
20242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20243 | (eval $ac_try) 2>&5 | |
20244 | ac_status=$? | |
20245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20246 | (exit $ac_status); }; }; then | |
20247 | ac_header_compiler=yes | |
20248 | else | |
20249 | echo "$as_me: failed program was:" >&5 | |
20250 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20251 | ||
20252 | ac_header_compiler=no | |
20253 | fi | |
eea650d8 | 20254 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
672abd7a VS |
20255 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20256 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20257 | ||
20258 | # Is the header present? | |
20259 | echo "$as_me:$LINENO: checking expat.h presence" >&5 | |
20260 | echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6 | |
20261 | cat >conftest.$ac_ext <<_ACEOF | |
672abd7a VS |
20262 | /* confdefs.h. */ |
20263 | _ACEOF | |
20264 | cat confdefs.h >>conftest.$ac_ext | |
20265 | cat >>conftest.$ac_ext <<_ACEOF | |
20266 | /* end confdefs.h. */ | |
20267 | #include <expat.h> | |
20268 | _ACEOF | |
20269 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20270 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20271 | ac_status=$? | |
20272 | grep -v '^ *+' conftest.er1 >conftest.err | |
20273 | rm -f conftest.er1 | |
20274 | cat conftest.err >&5 | |
20275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20276 | (exit $ac_status); } >/dev/null; then | |
20277 | if test -s conftest.err; then | |
20278 | ac_cpp_err=$ac_c_preproc_warn_flag | |
eea650d8 | 20279 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
672abd7a VS |
20280 | else |
20281 | ac_cpp_err= | |
20282 | fi | |
20283 | else | |
20284 | ac_cpp_err=yes | |
20285 | fi | |
20286 | if test -z "$ac_cpp_err"; then | |
20287 | ac_header_preproc=yes | |
20288 | else | |
20289 | echo "$as_me: failed program was:" >&5 | |
20290 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20291 | ||
20292 | ac_header_preproc=no | |
20293 | fi | |
20294 | rm -f conftest.err conftest.$ac_ext | |
20295 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20296 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20297 | ||
20298 | # So? What about this header? | |
eea650d8 VS |
20299 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20300 | yes:no: ) | |
672abd7a VS |
20301 | { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
20302 | echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
eea650d8 VS |
20303 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5 |
20304 | echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;} | |
20305 | ac_header_preproc=yes | |
672abd7a | 20306 | ;; |
eea650d8 | 20307 | no:yes:* ) |
672abd7a VS |
20308 | { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5 |
20309 | echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;} | |
eea650d8 VS |
20310 | { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5 |
20311 | echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;} | |
20312 | { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5 | |
20313 | echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;} | |
20314 | { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5 | |
20315 | echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
672abd7a VS |
20316 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5 |
20317 | echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;} | |
eea650d8 VS |
20318 | { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5 |
20319 | echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;} | |
672abd7a VS |
20320 | ( |
20321 | cat <<\_ASBOX | |
eea650d8 VS |
20322 | ## ----------------------------------------- ## |
20323 | ## Report this to wx-dev@lists.wxwindows.org ## | |
20324 | ## ----------------------------------------- ## | |
672abd7a VS |
20325 | _ASBOX |
20326 | ) | | |
20327 | sed "s/^/$as_me: WARNING: /" >&2 | |
20328 | ;; | |
20329 | esac | |
20330 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
20331 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
20332 | if test "${ac_cv_header_expat_h+set}" = set; then | |
20333 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20334 | else | |
20335 | ac_cv_header_expat_h=$ac_header_preproc | |
20336 | fi | |
20337 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
20338 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
20339 | ||
20340 | fi | |
5f0b6dff VS |
20341 | if test $ac_cv_header_expat_h = yes; then |
20342 | found_expat_h=1 | |
20343 | fi | |
20344 | ||
20345 | ||
20346 | if test "x$found_expat_h" = "x1"; then | |
20347 | echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5 | |
20348 | echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6 | |
20349 | if test "${wx_cv_expat_is_not_broken+set}" = set; then | |
20350 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20351 | else | |
20352 | ||
20353 | ||
672abd7a | 20354 | |
5f0b6dff VS |
20355 | ac_ext=cc |
20356 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20357 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20358 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20359 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20360 | ||
20361 | cat >conftest.$ac_ext <<_ACEOF | |
5f0b6dff VS |
20362 | /* confdefs.h. */ |
20363 | _ACEOF | |
20364 | cat confdefs.h >>conftest.$ac_ext | |
20365 | cat >>conftest.$ac_ext <<_ACEOF | |
20366 | /* end confdefs.h. */ | |
20367 | #include <expat.h> | |
20368 | int | |
20369 | main () | |
20370 | { | |
672abd7a | 20371 | |
5f0b6dff VS |
20372 | ; |
20373 | return 0; | |
20374 | } | |
20375 | _ACEOF | |
20376 | rm -f conftest.$ac_objext | |
20377 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 20378 | (eval $ac_compile) 2>conftest.er1 |
5f0b6dff | 20379 | ac_status=$? |
eea650d8 VS |
20380 | grep -v '^ *+' conftest.er1 >conftest.err |
20381 | rm -f conftest.er1 | |
20382 | cat conftest.err >&5 | |
5f0b6dff VS |
20383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20384 | (exit $ac_status); } && | |
eea650d8 VS |
20385 | { ac_try='test -z "$ac_cxx_werror_flag" |
20386 | || test ! -s conftest.err' | |
20387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20388 | (eval $ac_try) 2>&5 | |
20389 | ac_status=$? | |
20390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20391 | (exit $ac_status); }; } && | |
20392 | { ac_try='test -s conftest.$ac_objext' | |
5f0b6dff VS |
20393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20394 | (eval $ac_try) 2>&5 | |
20395 | ac_status=$? | |
20396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20397 | (exit $ac_status); }; }; then | |
20398 | wx_cv_expat_is_not_broken=yes | |
20399 | else | |
20400 | echo "$as_me: failed program was:" >&5 | |
20401 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20402 | ||
20403 | wx_cv_expat_is_not_broken=no | |
20404 | ||
20405 | fi | |
eea650d8 | 20406 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5f0b6dff VS |
20407 | ac_ext=c |
20408 | ac_cpp='$CPP $CPPFLAGS' | |
20409 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20410 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20411 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20412 | ||
20413 | ||
20414 | ||
20415 | fi | |
20416 | echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5 | |
20417 | echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6 | |
20418 | if test "$wx_cv_expat_is_not_broken" = "yes" ; then | |
20419 | echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5 | |
672abd7a VS |
20420 | echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6 |
20421 | if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then | |
20422 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20423 | else | |
20424 | ac_check_lib_save_LIBS=$LIBS | |
20425 | LIBS="-lexpat $LIBS" | |
20426 | cat >conftest.$ac_ext <<_ACEOF | |
672abd7a VS |
20427 | /* confdefs.h. */ |
20428 | _ACEOF | |
20429 | cat confdefs.h >>conftest.$ac_ext | |
20430 | cat >>conftest.$ac_ext <<_ACEOF | |
20431 | /* end confdefs.h. */ | |
20432 | ||
20433 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20434 | #ifdef __cplusplus | |
20435 | extern "C" | |
20436 | #endif | |
20437 | /* We use char because int might match the return type of a gcc2 | |
20438 | builtin and then its argument prototype would still apply. */ | |
20439 | char XML_ParserCreate (); | |
20440 | int | |
20441 | main () | |
20442 | { | |
20443 | XML_ParserCreate (); | |
20444 | ; | |
20445 | return 0; | |
20446 | } | |
20447 | _ACEOF | |
20448 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20449 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 20450 | (eval $ac_link) 2>conftest.er1 |
672abd7a | 20451 | ac_status=$? |
eea650d8 VS |
20452 | grep -v '^ *+' conftest.er1 >conftest.err |
20453 | rm -f conftest.er1 | |
20454 | cat conftest.err >&5 | |
672abd7a VS |
20455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20456 | (exit $ac_status); } && | |
eea650d8 VS |
20457 | { ac_try='test -z "$ac_c_werror_flag" |
20458 | || test ! -s conftest.err' | |
20459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20460 | (eval $ac_try) 2>&5 | |
20461 | ac_status=$? | |
20462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20463 | (exit $ac_status); }; } && | |
20464 | { ac_try='test -s conftest$ac_exeext' | |
672abd7a VS |
20465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20466 | (eval $ac_try) 2>&5 | |
20467 | ac_status=$? | |
20468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20469 | (exit $ac_status); }; }; then | |
20470 | ac_cv_lib_expat_XML_ParserCreate=yes | |
20471 | else | |
20472 | echo "$as_me: failed program was:" >&5 | |
20473 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20474 | ||
20475 | ac_cv_lib_expat_XML_ParserCreate=no | |
20476 | fi | |
eea650d8 VS |
20477 | rm -f conftest.err conftest.$ac_objext \ |
20478 | conftest$ac_exeext conftest.$ac_ext | |
672abd7a VS |
20479 | LIBS=$ac_check_lib_save_LIBS |
20480 | fi | |
20481 | echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5 | |
20482 | echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6 | |
20483 | if test $ac_cv_lib_expat_XML_ParserCreate = yes; then | |
20484 | EXPAT_LINK=" -lexpat" | |
20485 | fi | |
20486 | ||
5f0b6dff | 20487 | fi |
672abd7a VS |
20488 | fi |
20489 | if test "x$EXPAT_LINK" = "x" ; then | |
20490 | if test "$wxUSE_EXPAT" = "sys" ; then | |
20491 | { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5 | |
20492 | echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;} | |
20493 | { (exit 1); exit 1; }; } | |
20494 | else | |
20495 | { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5 | |
20496 | echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;} | |
20497 | wxUSE_EXPAT=builtin | |
20498 | fi | |
20499 | else | |
20500 | wxUSE_EXPAT=sys | |
20501 | fi | |
20502 | fi | |
20503 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
20504 | ||
20505 | ||
20506 | subdirs="$subdirs src/expat" | |
20507 | ||
20508 | fi | |
20509 | fi | |
20510 | ||
20511 | ||
20512 | ||
3527f29c VS |
20513 | if test "$wxUSE_LIBMSPACK" != "no"; then |
20514 | ||
20515 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
20516 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
20517 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
20518 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
20519 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20520 | fi | |
20521 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
20522 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
20523 | else | |
20524 | # Is the header compilable? | |
20525 | echo "$as_me:$LINENO: checking mspack.h usability" >&5 | |
20526 | echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6 | |
20527 | cat >conftest.$ac_ext <<_ACEOF | |
3527f29c VS |
20528 | /* confdefs.h. */ |
20529 | _ACEOF | |
20530 | cat confdefs.h >>conftest.$ac_ext | |
20531 | cat >>conftest.$ac_ext <<_ACEOF | |
20532 | /* end confdefs.h. */ | |
20533 | $ac_includes_default | |
20534 | #include <mspack.h> | |
20535 | _ACEOF | |
20536 | rm -f conftest.$ac_objext | |
20537 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 20538 | (eval $ac_compile) 2>conftest.er1 |
3527f29c | 20539 | ac_status=$? |
eea650d8 VS |
20540 | grep -v '^ *+' conftest.er1 >conftest.err |
20541 | rm -f conftest.er1 | |
20542 | cat conftest.err >&5 | |
3527f29c VS |
20543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20544 | (exit $ac_status); } && | |
eea650d8 VS |
20545 | { ac_try='test -z "$ac_c_werror_flag" |
20546 | || test ! -s conftest.err' | |
20547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20548 | (eval $ac_try) 2>&5 | |
20549 | ac_status=$? | |
20550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20551 | (exit $ac_status); }; } && | |
20552 | { ac_try='test -s conftest.$ac_objext' | |
3527f29c VS |
20553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20554 | (eval $ac_try) 2>&5 | |
20555 | ac_status=$? | |
20556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20557 | (exit $ac_status); }; }; then | |
20558 | ac_header_compiler=yes | |
20559 | else | |
20560 | echo "$as_me: failed program was:" >&5 | |
20561 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20562 | ||
20563 | ac_header_compiler=no | |
20564 | fi | |
eea650d8 | 20565 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3527f29c VS |
20566 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20567 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20568 | ||
20569 | # Is the header present? | |
20570 | echo "$as_me:$LINENO: checking mspack.h presence" >&5 | |
20571 | echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6 | |
20572 | cat >conftest.$ac_ext <<_ACEOF | |
3527f29c VS |
20573 | /* confdefs.h. */ |
20574 | _ACEOF | |
20575 | cat confdefs.h >>conftest.$ac_ext | |
20576 | cat >>conftest.$ac_ext <<_ACEOF | |
20577 | /* end confdefs.h. */ | |
20578 | #include <mspack.h> | |
20579 | _ACEOF | |
20580 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20581 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20582 | ac_status=$? | |
20583 | grep -v '^ *+' conftest.er1 >conftest.err | |
20584 | rm -f conftest.er1 | |
20585 | cat conftest.err >&5 | |
20586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20587 | (exit $ac_status); } >/dev/null; then | |
20588 | if test -s conftest.err; then | |
20589 | ac_cpp_err=$ac_c_preproc_warn_flag | |
eea650d8 | 20590 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
3527f29c VS |
20591 | else |
20592 | ac_cpp_err= | |
20593 | fi | |
20594 | else | |
20595 | ac_cpp_err=yes | |
20596 | fi | |
20597 | if test -z "$ac_cpp_err"; then | |
20598 | ac_header_preproc=yes | |
20599 | else | |
20600 | echo "$as_me: failed program was:" >&5 | |
20601 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20602 | ||
20603 | ac_header_preproc=no | |
20604 | fi | |
20605 | rm -f conftest.err conftest.$ac_ext | |
20606 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20607 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20608 | ||
20609 | # So? What about this header? | |
eea650d8 VS |
20610 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20611 | yes:no: ) | |
3527f29c VS |
20612 | { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
20613 | echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
eea650d8 VS |
20614 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5 |
20615 | echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;} | |
20616 | ac_header_preproc=yes | |
3527f29c | 20617 | ;; |
eea650d8 | 20618 | no:yes:* ) |
3527f29c VS |
20619 | { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5 |
20620 | echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;} | |
eea650d8 VS |
20621 | { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5 |
20622 | echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;} | |
20623 | { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5 | |
20624 | echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;} | |
20625 | { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5 | |
20626 | echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
3527f29c VS |
20627 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5 |
20628 | echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;} | |
eea650d8 VS |
20629 | { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5 |
20630 | echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;} | |
3527f29c VS |
20631 | ( |
20632 | cat <<\_ASBOX | |
eea650d8 VS |
20633 | ## ----------------------------------------- ## |
20634 | ## Report this to wx-dev@lists.wxwindows.org ## | |
20635 | ## ----------------------------------------- ## | |
3527f29c VS |
20636 | _ASBOX |
20637 | ) | | |
20638 | sed "s/^/$as_me: WARNING: /" >&2 | |
20639 | ;; | |
20640 | esac | |
20641 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
20642 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
20643 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
20644 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20645 | else | |
20646 | ac_cv_header_mspack_h=$ac_header_preproc | |
20647 | fi | |
20648 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
20649 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
20650 | ||
20651 | fi | |
20652 | if test $ac_cv_header_mspack_h = yes; then | |
20653 | found_mspack_h=1 | |
20654 | fi | |
20655 | ||
20656 | ||
20657 | if test "x$found_mspack_h" = "x1"; then | |
20658 | echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5 | |
20659 | echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6 | |
20660 | if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then | |
20661 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20662 | else | |
20663 | ac_check_lib_save_LIBS=$LIBS | |
20664 | LIBS="-lmspack $LIBS" | |
20665 | cat >conftest.$ac_ext <<_ACEOF | |
3527f29c VS |
20666 | /* confdefs.h. */ |
20667 | _ACEOF | |
20668 | cat confdefs.h >>conftest.$ac_ext | |
20669 | cat >>conftest.$ac_ext <<_ACEOF | |
20670 | /* end confdefs.h. */ | |
20671 | ||
20672 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20673 | #ifdef __cplusplus | |
20674 | extern "C" | |
20675 | #endif | |
20676 | /* We use char because int might match the return type of a gcc2 | |
20677 | builtin and then its argument prototype would still apply. */ | |
20678 | char mspack_create_chm_decompressor (); | |
20679 | int | |
20680 | main () | |
20681 | { | |
20682 | mspack_create_chm_decompressor (); | |
20683 | ; | |
20684 | return 0; | |
20685 | } | |
20686 | _ACEOF | |
20687 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20688 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 20689 | (eval $ac_link) 2>conftest.er1 |
3527f29c | 20690 | ac_status=$? |
eea650d8 VS |
20691 | grep -v '^ *+' conftest.er1 >conftest.err |
20692 | rm -f conftest.er1 | |
20693 | cat conftest.err >&5 | |
3527f29c VS |
20694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20695 | (exit $ac_status); } && | |
eea650d8 VS |
20696 | { ac_try='test -z "$ac_c_werror_flag" |
20697 | || test ! -s conftest.err' | |
20698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20699 | (eval $ac_try) 2>&5 | |
20700 | ac_status=$? | |
20701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20702 | (exit $ac_status); }; } && | |
20703 | { ac_try='test -s conftest$ac_exeext' | |
3527f29c VS |
20704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20705 | (eval $ac_try) 2>&5 | |
20706 | ac_status=$? | |
20707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20708 | (exit $ac_status); }; }; then | |
20709 | ac_cv_lib_mspack_mspack_create_chm_decompressor=yes | |
20710 | else | |
20711 | echo "$as_me: failed program was:" >&5 | |
20712 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20713 | ||
20714 | ac_cv_lib_mspack_mspack_create_chm_decompressor=no | |
20715 | fi | |
eea650d8 VS |
20716 | rm -f conftest.err conftest.$ac_objext \ |
20717 | conftest$ac_exeext conftest.$ac_ext | |
3527f29c VS |
20718 | LIBS=$ac_check_lib_save_LIBS |
20719 | fi | |
20720 | echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5 | |
20721 | echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6 | |
20722 | if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then | |
20723 | MSPACK_LINK=" -lmspack" | |
20724 | fi | |
20725 | ||
20726 | fi | |
20727 | if test "x$MSPACK_LINK" = "x" ; then | |
20728 | wxUSE_LIBMSPACK=no | |
20729 | else | |
20730 | cat >>confdefs.h <<\_ACEOF | |
20731 | #define wxUSE_LIBMSPACK 1 | |
20732 | _ACEOF | |
20733 | ||
20734 | fi | |
20735 | fi | |
20736 | ||
20737 | ||
20738 | ||
21d1c967 | 20739 | AFMINSTALL= |
2b5f62a0 | 20740 | WIN32INSTALL= |
90dd450c | 20741 | |
21d1c967 GD |
20742 | TOOLKIT= |
20743 | TOOLKIT_INCLUDE= | |
20744 | WIDGET_SET= | |
20745 | ||
20746 | if test "$USE_WIN32" = 1 ; then | |
e6cc62c6 VS |
20747 | |
20748 | for ac_header in w32api.h | |
21d1c967 | 20749 | do |
e6cc62c6 VS |
20750 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
20751 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
20752 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
20753 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
20754 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
20755 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20756 | fi | |
20757 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
20758 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
20759 | else | |
20760 | # Is the header compilable? | |
20761 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
20762 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
20763 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
20764 | /* confdefs.h. */ |
20765 | _ACEOF | |
20766 | cat confdefs.h >>conftest.$ac_ext | |
20767 | cat >>conftest.$ac_ext <<_ACEOF | |
20768 | /* end confdefs.h. */ | |
20769 | $ac_includes_default | |
20770 | #include <$ac_header> | |
20771 | _ACEOF | |
20772 | rm -f conftest.$ac_objext | |
20773 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 20774 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 20775 | ac_status=$? |
eea650d8 VS |
20776 | grep -v '^ *+' conftest.er1 >conftest.err |
20777 | rm -f conftest.er1 | |
20778 | cat conftest.err >&5 | |
e6cc62c6 VS |
20779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20780 | (exit $ac_status); } && | |
eea650d8 VS |
20781 | { ac_try='test -z "$ac_c_werror_flag" |
20782 | || test ! -s conftest.err' | |
20783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20784 | (eval $ac_try) 2>&5 | |
20785 | ac_status=$? | |
20786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20787 | (exit $ac_status); }; } && | |
20788 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
20789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20790 | (eval $ac_try) 2>&5 | |
20791 | ac_status=$? | |
20792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20793 | (exit $ac_status); }; }; then | |
20794 | ac_header_compiler=yes | |
20795 | else | |
20796 | echo "$as_me: failed program was:" >&5 | |
20797 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20798 | ||
20799 | ac_header_compiler=no | |
20800 | fi | |
eea650d8 | 20801 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
20802 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20803 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20804 | ||
20805 | # Is the header present? | |
20806 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
20807 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
20808 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
20809 | /* confdefs.h. */ |
20810 | _ACEOF | |
20811 | cat confdefs.h >>conftest.$ac_ext | |
20812 | cat >>conftest.$ac_ext <<_ACEOF | |
20813 | /* end confdefs.h. */ | |
20814 | #include <$ac_header> | |
20815 | _ACEOF | |
20816 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20817 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20818 | ac_status=$? | |
20819 | grep -v '^ *+' conftest.er1 >conftest.err | |
20820 | rm -f conftest.er1 | |
20821 | cat conftest.err >&5 | |
20822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20823 | (exit $ac_status); } >/dev/null; then | |
20824 | if test -s conftest.err; then | |
20825 | ac_cpp_err=$ac_c_preproc_warn_flag | |
eea650d8 | 20826 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
20827 | else |
20828 | ac_cpp_err= | |
20829 | fi | |
20830 | else | |
20831 | ac_cpp_err=yes | |
20832 | fi | |
20833 | if test -z "$ac_cpp_err"; then | |
20834 | ac_header_preproc=yes | |
20835 | else | |
20836 | echo "$as_me: failed program was:" >&5 | |
20837 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20838 | ||
20839 | ac_header_preproc=no | |
20840 | fi | |
20841 | rm -f conftest.err conftest.$ac_ext | |
20842 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20843 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20844 | ||
20845 | # So? What about this header? | |
eea650d8 VS |
20846 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20847 | yes:no: ) | |
e6cc62c6 VS |
20848 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
20849 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
eea650d8 VS |
20850 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
20851 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
20852 | ac_header_preproc=yes | |
e6cc62c6 | 20853 | ;; |
eea650d8 | 20854 | no:yes:* ) |
e6cc62c6 VS |
20855 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
20856 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
eea650d8 VS |
20857 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
20858 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
20859 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
20860 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
20861 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
20862 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
20863 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
20864 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
eea650d8 VS |
20865 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
20866 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
20867 | ( |
20868 | cat <<\_ASBOX | |
eea650d8 VS |
20869 | ## ----------------------------------------- ## |
20870 | ## Report this to wx-dev@lists.wxwindows.org ## | |
20871 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
20872 | _ASBOX |
20873 | ) | | |
20874 | sed "s/^/$as_me: WARNING: /" >&2 | |
20875 | ;; | |
20876 | esac | |
20877 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
20878 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
20879 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
20880 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20881 | else | |
eea650d8 | 20882 | eval "$as_ac_Header=\$ac_header_preproc" |
f79bd02d | 20883 | fi |
e6cc62c6 VS |
20884 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
20885 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
20886 | ||
21d1c967 | 20887 | fi |
e6cc62c6 VS |
20888 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
20889 | cat >>confdefs.h <<_ACEOF | |
20890 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
20891 | _ACEOF | |
20892 | ||
21d1c967 | 20893 | fi |
e6cc62c6 | 20894 | |
21d1c967 | 20895 | done |
f79bd02d | 20896 | |
e6cc62c6 VS |
20897 | if test "${ac_cv_header_windows_h+set}" = set; then |
20898 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
20899 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
20900 | if test "${ac_cv_header_windows_h+set}" = set; then | |
20901 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20902 | fi | |
20903 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
20904 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
20905 | else | |
20906 | # Is the header compilable? | |
20907 | echo "$as_me:$LINENO: checking windows.h usability" >&5 | |
20908 | echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6 | |
20909 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
20910 | /* confdefs.h. */ |
20911 | _ACEOF | |
20912 | cat confdefs.h >>conftest.$ac_ext | |
20913 | cat >>conftest.$ac_ext <<_ACEOF | |
20914 | /* end confdefs.h. */ | |
20915 | $ac_includes_default | |
247f5006 | 20916 | #include <windows.h> |
e6cc62c6 VS |
20917 | _ACEOF |
20918 | rm -f conftest.$ac_objext | |
20919 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 20920 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 20921 | ac_status=$? |
eea650d8 VS |
20922 | grep -v '^ *+' conftest.er1 >conftest.err |
20923 | rm -f conftest.er1 | |
20924 | cat conftest.err >&5 | |
e6cc62c6 VS |
20925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20926 | (exit $ac_status); } && | |
eea650d8 VS |
20927 | { ac_try='test -z "$ac_c_werror_flag" |
20928 | || test ! -s conftest.err' | |
20929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20930 | (eval $ac_try) 2>&5 | |
20931 | ac_status=$? | |
20932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20933 | (exit $ac_status); }; } && | |
20934 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
20935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20936 | (eval $ac_try) 2>&5 | |
20937 | ac_status=$? | |
20938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20939 | (exit $ac_status); }; }; then | |
20940 | ac_header_compiler=yes | |
20941 | else | |
20942 | echo "$as_me: failed program was:" >&5 | |
20943 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20944 | ||
20945 | ac_header_compiler=no | |
20946 | fi | |
eea650d8 | 20947 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
20948 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20949 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20950 | ||
20951 | # Is the header present? | |
20952 | echo "$as_me:$LINENO: checking windows.h presence" >&5 | |
20953 | echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6 | |
20954 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
20955 | /* confdefs.h. */ |
20956 | _ACEOF | |
20957 | cat confdefs.h >>conftest.$ac_ext | |
20958 | cat >>conftest.$ac_ext <<_ACEOF | |
20959 | /* end confdefs.h. */ | |
20960 | #include <windows.h> | |
20961 | _ACEOF | |
20962 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20963 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20964 | ac_status=$? | |
20965 | grep -v '^ *+' conftest.er1 >conftest.err | |
20966 | rm -f conftest.er1 | |
20967 | cat conftest.err >&5 | |
20968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20969 | (exit $ac_status); } >/dev/null; then | |
20970 | if test -s conftest.err; then | |
20971 | ac_cpp_err=$ac_c_preproc_warn_flag | |
eea650d8 | 20972 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
20973 | else |
20974 | ac_cpp_err= | |
20975 | fi | |
20976 | else | |
20977 | ac_cpp_err=yes | |
20978 | fi | |
20979 | if test -z "$ac_cpp_err"; then | |
20980 | ac_header_preproc=yes | |
20981 | else | |
20982 | echo "$as_me: failed program was:" >&5 | |
20983 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20984 | ||
20985 | ac_header_preproc=no | |
20986 | fi | |
20987 | rm -f conftest.err conftest.$ac_ext | |
20988 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20989 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20990 | ||
20991 | # So? What about this header? | |
eea650d8 VS |
20992 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20993 | yes:no: ) | |
e6cc62c6 VS |
20994 | { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
20995 | echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
eea650d8 VS |
20996 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5 |
20997 | echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;} | |
20998 | ac_header_preproc=yes | |
e6cc62c6 | 20999 | ;; |
eea650d8 | 21000 | no:yes:* ) |
e6cc62c6 VS |
21001 | { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5 |
21002 | echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;} | |
eea650d8 VS |
21003 | { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5 |
21004 | echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;} | |
21005 | { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5 | |
21006 | echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;} | |
21007 | { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21008 | echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
21009 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 |
21010 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
eea650d8 VS |
21011 | { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5 |
21012 | echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
21013 | ( |
21014 | cat <<\_ASBOX | |
eea650d8 VS |
21015 | ## ----------------------------------------- ## |
21016 | ## Report this to wx-dev@lists.wxwindows.org ## | |
21017 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
21018 | _ASBOX |
21019 | ) | | |
21020 | sed "s/^/$as_me: WARNING: /" >&2 | |
21021 | ;; | |
21022 | esac | |
21023 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
21024 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
21025 | if test "${ac_cv_header_windows_h+set}" = set; then | |
21026 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21027 | else | |
21028 | ac_cv_header_windows_h=$ac_header_preproc | |
90dd450c | 21029 | fi |
e6cc62c6 VS |
21030 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 |
21031 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
21032 | ||
90dd450c | 21033 | fi |
e6cc62c6 | 21034 | if test $ac_cv_header_windows_h = yes; then |
21d1c967 | 21035 | : |
90dd450c | 21036 | else |
21d1c967 | 21037 | |
e6cc62c6 VS |
21038 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5 |
21039 | echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;} | |
21040 | { (exit 1); exit 1; }; } | |
21041 | ||
5c6fa7d2 | 21042 | fi |
7b4a847f | 21043 | |
5c6fa7d2 | 21044 | |
e6cc62c6 | 21045 | |
b3dfbbc9 | 21046 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32" |
21d1c967 | 21047 | |
7bb2947d MB |
21048 | if test "$wxUSE_ACCESSIBILITY" = "yes" ; then |
21049 | LIBS="$LIBS -loleacc" | |
21050 | fi | |
21051 | ||
21d1c967 GD |
21052 | case "${host}" in |
21053 | *-*-cygwin* ) | |
b3dfbbc9 | 21054 | LIBS="$LIBS -lkernel32 -luser32" |
21d1c967 | 21055 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" |
f79bd02d | 21056 | esac |
f79bd02d | 21057 | |
8647bec6 RG |
21058 | if test "$wxUSE_ODBC" = "sys" ; then |
21059 | wxUSE_ODBC = "yes" | |
21d1c967 | 21060 | fi |
8647bec6 RG |
21061 | if test "$wxUSE_ODBC" = "yes" ; then |
21062 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
e6cc62c6 | 21063 | cat >>confdefs.h <<\_ACEOF |
8647bec6 | 21064 | #define wxUSE_ODBC 1 |
e6cc62c6 | 21065 | _ACEOF |
f79bd02d | 21066 | |
8647bec6 | 21067 | fi |
e6cc62c6 | 21068 | |
21d1c967 GD |
21069 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
21070 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
2b5f62a0 VZ |
21071 | |
21072 | WIN32INSTALL=win32install | |
f79bd02d | 21073 | fi |
f79bd02d | 21074 | |
21d1c967 GD |
21075 | if test "$wxUSE_GUI" = "yes"; then |
21076 | USE_GUI=1 | |
f79bd02d | 21077 | |
21d1c967 | 21078 | GUI_TK_LIBRARY= |
f79bd02d | 21079 | |
21d1c967 GD |
21080 | WXGTK12= |
21081 | WXGTK127= | |
21082 | WXGTK20= | |
f79bd02d | 21083 | |
21d1c967 GD |
21084 | if test "$wxUSE_MSW" = 1 ; then |
21085 | TOOLKIT=MSW | |
21086 | GUIDIST=MSW_DIST | |
ffef10f6 VS |
21087 | |
21088 | case "${host}" in | |
21089 | *-*-mingw32* ) | |
21090 | WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
21091 | esac | |
f79bd02d JS |
21092 | fi |
21093 | ||
21d1c967 | 21094 | if test "$wxUSE_GTK" = 1; then |
e6cc62c6 VS |
21095 | echo "$as_me:$LINENO: checking for GTK+ version" >&5 |
21096 | echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6 | |
21d1c967 GD |
21097 | |
21098 | gtk_version_cached=1 | |
e6cc62c6 VS |
21099 | if test "${wx_cv_lib_gtk+set}" = set; then |
21100 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f79bd02d | 21101 | else |
e6cc62c6 | 21102 | |
21d1c967 | 21103 | gtk_version_cached=0 |
e6cc62c6 VS |
21104 | echo "$as_me:$LINENO: result: " >&5 |
21105 | echo "${ECHO_T}" >&6 | |
f79bd02d | 21106 | |
21d1c967 GD |
21107 | GTK_MODULES= |
21108 | if test "$wxUSE_THREADS" = "yes"; then | |
21109 | GTK_MODULES=gthread | |
21110 | fi | |
f79bd02d | 21111 | |
2b5f62a0 | 21112 | wx_cv_lib_gtk= |
21d1c967 GD |
21113 | if test "x$wxUSE_GTK2" = "xyes"; then |
21114 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
21115 | if test "${enable_gtktest+set}" = set; then | |
21116 | enableval="$enable_gtktest" | |
e6cc62c6 | 21117 | |
f79bd02d | 21118 | else |
21d1c967 | 21119 | enable_gtktest=yes |
e6cc62c6 | 21120 | fi; |
f79bd02d | 21121 | |
21d1c967 GD |
21122 | pkg_config_args=gtk+-2.0 |
21123 | for module in . $GTK_MODULES | |
21124 | do | |
21125 | case "$module" in | |
e6cc62c6 | 21126 | gthread) |
21d1c967 GD |
21127 | pkg_config_args="$pkg_config_args gthread-2.0" |
21128 | ;; | |
21129 | esac | |
21130 | done | |
21131 | ||
21132 | no_gtk="" | |
f79bd02d | 21133 | |
21d1c967 GD |
21134 | # Extract the first word of "pkg-config", so it can be a program name with args. |
21135 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
21136 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
21137 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
21138 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
21139 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 21140 | else |
e6cc62c6 VS |
21141 | case $PKG_CONFIG in |
21142 | [\\/]* | ?:[\\/]*) | |
21d1c967 GD |
21143 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
21144 | ;; | |
21d1c967 | 21145 | *) |
e6cc62c6 VS |
21146 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
21147 | for as_dir in $PATH | |
21148 | do | |
21149 | IFS=$as_save_IFS | |
21150 | test -z "$as_dir" && as_dir=. | |
21151 | for ac_exec_ext in '' $ac_executable_extensions; do | |
21152 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
21153 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
21154 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
21155 | break 2 | |
21156 | fi | |
21157 | done | |
21158 | done | |
21159 | ||
21d1c967 GD |
21160 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
21161 | ;; | |
21162 | esac | |
f79bd02d | 21163 | fi |
e6cc62c6 VS |
21164 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
21165 | ||
21d1c967 | 21166 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
21167 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
21168 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
f79bd02d | 21169 | else |
e6cc62c6 VS |
21170 | echo "$as_me:$LINENO: result: no" >&5 |
21171 | echo "${ECHO_T}no" >&6 | |
f79bd02d JS |
21172 | fi |
21173 | ||
8284b0c5 | 21174 | |
21d1c967 GD |
21175 | if test x$PKG_CONFIG != xno ; then |
21176 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
21177 | : | |
21178 | else | |
21179 | echo *** pkg-config too old; version 0.7 or better required. | |
21180 | no_gtk=yes | |
21181 | PKG_CONFIG=no | |
21182 | fi | |
21183 | else | |
21184 | no_gtk=yes | |
21185 | fi | |
f79bd02d | 21186 | |
21d1c967 | 21187 | min_gtk_version=2.0.0 |
e6cc62c6 VS |
21188 | echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 |
21189 | echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6 | |
f79bd02d | 21190 | |
21d1c967 GD |
21191 | if test x$PKG_CONFIG != xno ; then |
21192 | ## don't try to run the test against uninstalled libtool libs | |
21193 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
21194 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
21195 | enable_gtktest=no | |
21196 | fi | |
f79bd02d | 21197 | |
21d1c967 GD |
21198 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then |
21199 | : | |
21200 | else | |
21201 | no_gtk=yes | |
21202 | fi | |
21203 | fi | |
f79bd02d | 21204 | |
21d1c967 GD |
21205 | if test x"$no_gtk" = x ; then |
21206 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
21207 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
21208 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
21209 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
21210 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
21211 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
21212 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
21213 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
21214 | if test "x$enable_gtktest" = "xyes" ; then | |
21215 | ac_save_CFLAGS="$CFLAGS" | |
21216 | ac_save_LIBS="$LIBS" | |
21217 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
21218 | LIBS="$GTK_LIBS $LIBS" | |
21219 | rm -f conf.gtktest | |
21220 | if test "$cross_compiling" = yes; then | |
21221 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 21222 | else |
e6cc62c6 | 21223 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
21224 | /* confdefs.h. */ |
21225 | _ACEOF | |
21226 | cat confdefs.h >>conftest.$ac_ext | |
21227 | cat >>conftest.$ac_ext <<_ACEOF | |
21228 | /* end confdefs.h. */ | |
f79bd02d | 21229 | |
21d1c967 GD |
21230 | #include <gtk/gtk.h> |
21231 | #include <stdio.h> | |
21232 | #include <stdlib.h> | |
f79bd02d | 21233 | |
e6cc62c6 | 21234 | int |
21d1c967 GD |
21235 | main () |
21236 | { | |
21237 | int major, minor, micro; | |
21238 | char *tmp_version; | |
f79bd02d | 21239 | |
21d1c967 | 21240 | system ("touch conf.gtktest"); |
f79bd02d | 21241 | |
21d1c967 GD |
21242 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
21243 | tmp_version = g_strdup("$min_gtk_version"); | |
21244 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
21245 | printf("%s, bad version string\n", "$min_gtk_version"); | |
21246 | exit(1); | |
21247 | } | |
f79bd02d | 21248 | |
21d1c967 GD |
21249 | if ((gtk_major_version != $gtk_config_major_version) || |
21250 | (gtk_minor_version != $gtk_config_minor_version) || | |
21251 | (gtk_micro_version != $gtk_config_micro_version)) | |
21252 | { | |
e6cc62c6 | 21253 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
21254 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
21255 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
21256 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
21257 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
21258 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
21259 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
21260 | printf("*** required on your system.\n"); | |
21261 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
21262 | printf("*** to point to the correct configuration files\n"); | |
e6cc62c6 | 21263 | } |
21d1c967 GD |
21264 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || |
21265 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
21266 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
21267 | { | |
21268 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
21269 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
21270 | printf("*** library (version %d.%d.%d)\n", | |
21271 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
21272 | } | |
21273 | else | |
21274 | { | |
21275 | if ((gtk_major_version > major) || | |
21276 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
21277 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
21278 | { | |
21279 | return 0; | |
21280 | } | |
21281 | else | |
21282 | { | |
21283 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
21284 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
21285 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
21286 | major, minor, micro); | |
21287 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
21288 | printf("***\n"); | |
21289 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
21290 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
21291 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
21292 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
21293 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
21294 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
21295 | printf("*** so that the correct libraries are found at run-time))\n"); | |
21296 | } | |
21297 | } | |
21298 | return 1; | |
21299 | } | |
f79bd02d | 21300 | |
e6cc62c6 VS |
21301 | _ACEOF |
21302 | rm -f conftest$ac_exeext | |
21303 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21304 | (eval $ac_link) 2>&5 | |
21305 | ac_status=$? | |
21306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21307 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21309 | (eval $ac_try) 2>&5 | |
21310 | ac_status=$? | |
21311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21312 | (exit $ac_status); }; }; then | |
21d1c967 | 21313 | : |
f79bd02d | 21314 | else |
e6cc62c6 VS |
21315 | echo "$as_me: program exited with status $ac_status" >&5 |
21316 | echo "$as_me: failed program was:" >&5 | |
21317 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21318 | ||
21319 | ( exit $ac_status ) | |
21320 | no_gtk=yes | |
f79bd02d | 21321 | fi |
eea650d8 | 21322 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
f79bd02d | 21323 | fi |
21d1c967 GD |
21324 | CFLAGS="$ac_save_CFLAGS" |
21325 | LIBS="$ac_save_LIBS" | |
21326 | fi | |
21327 | fi | |
21328 | if test "x$no_gtk" = x ; then | |
e6cc62c6 VS |
21329 | echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 |
21330 | echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6 | |
21331 | wx_cv_lib_gtk=2.0 | |
21d1c967 | 21332 | else |
e6cc62c6 VS |
21333 | echo "$as_me:$LINENO: result: no" >&5 |
21334 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
21335 | if test "$PKG_CONFIG" = "no" ; then |
21336 | echo "*** A new enough version of pkg-config was not found." | |
21337 | echo "*** See http://pkgconfig.sourceforge.net" | |
21338 | else | |
21339 | if test -f conf.gtktest ; then | |
21340 | : | |
21341 | else | |
21342 | echo "*** Could not run GTK+ test program, checking why..." | |
579d8138 VS |
21343 | ac_save_CFLAGS="$CFLAGS" |
21344 | ac_save_LIBS="$LIBS" | |
21d1c967 GD |
21345 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
21346 | LIBS="$LIBS $GTK_LIBS" | |
e6cc62c6 | 21347 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
21348 | /* confdefs.h. */ |
21349 | _ACEOF | |
21350 | cat confdefs.h >>conftest.$ac_ext | |
21351 | cat >>conftest.$ac_ext <<_ACEOF | |
21352 | /* end confdefs.h. */ | |
21d1c967 GD |
21353 | |
21354 | #include <gtk/gtk.h> | |
21355 | #include <stdio.h> | |
f79bd02d | 21356 | |
e6cc62c6 VS |
21357 | int |
21358 | main () | |
21359 | { | |
21360 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
21361 | ; | |
21362 | return 0; | |
21363 | } | |
21364 | _ACEOF | |
21365 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21366 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 21367 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 21368 | ac_status=$? |
eea650d8 VS |
21369 | grep -v '^ *+' conftest.er1 >conftest.err |
21370 | rm -f conftest.er1 | |
21371 | cat conftest.err >&5 | |
e6cc62c6 VS |
21372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21373 | (exit $ac_status); } && | |
eea650d8 VS |
21374 | { ac_try='test -z "$ac_c_werror_flag" |
21375 | || test ! -s conftest.err' | |
21376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21377 | (eval $ac_try) 2>&5 | |
21378 | ac_status=$? | |
21379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21380 | (exit $ac_status); }; } && | |
21381 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
21382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21383 | (eval $ac_try) 2>&5 | |
21384 | ac_status=$? | |
21385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21386 | (exit $ac_status); }; }; then | |
21d1c967 GD |
21387 | echo "*** The test program compiled, but did not run. This usually means" |
21388 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
21389 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
21390 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
21391 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
21392 | echo "*** is required on your system" | |
21393 | echo "***" | |
21394 | echo "*** If you have an old version installed, it is best to remove it, although" | |
e6cc62c6 | 21395 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" |
f79bd02d | 21396 | else |
e6cc62c6 VS |
21397 | echo "$as_me: failed program was:" >&5 |
21398 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21399 | ||
21400 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
579d8138 | 21401 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." |
f79bd02d | 21402 | fi |
eea650d8 VS |
21403 | rm -f conftest.err conftest.$ac_objext \ |
21404 | conftest$ac_exeext conftest.$ac_ext | |
21d1c967 GD |
21405 | CFLAGS="$ac_save_CFLAGS" |
21406 | LIBS="$ac_save_LIBS" | |
21407 | fi | |
21408 | fi | |
21409 | GTK_CFLAGS="" | |
21410 | GTK_LIBS="" | |
21411 | : | |
21412 | fi | |
e6cc62c6 VS |
21413 | |
21414 | ||
21d1c967 | 21415 | rm -f conf.gtktest |
f79bd02d | 21416 | |
2b5f62a0 | 21417 | else |
e6cc62c6 VS |
21418 | |
21419 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
21d1c967 GD |
21420 | if test "${with_gtk_prefix+set}" = set; then |
21421 | withval="$with_gtk_prefix" | |
21422 | gtk_config_prefix="$withval" | |
21423 | else | |
21424 | gtk_config_prefix="" | |
e6cc62c6 | 21425 | fi; |
f79bd02d | 21426 | |
21d1c967 GD |
21427 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
21428 | if test "${with_gtk_exec_prefix+set}" = set; then | |
21429 | withval="$with_gtk_exec_prefix" | |
21430 | gtk_config_exec_prefix="$withval" | |
21431 | else | |
21432 | gtk_config_exec_prefix="" | |
e6cc62c6 | 21433 | fi; |
21d1c967 GD |
21434 | # Check whether --enable-gtktest or --disable-gtktest was given. |
21435 | if test "${enable_gtktest+set}" = set; then | |
21436 | enableval="$enable_gtktest" | |
e6cc62c6 | 21437 | |
21d1c967 GD |
21438 | else |
21439 | enable_gtktest=yes | |
e6cc62c6 | 21440 | fi; |
21d1c967 GD |
21441 | |
21442 | for module in . $GTK_MODULES | |
21443 | do | |
21444 | case "$module" in | |
e6cc62c6 | 21445 | gthread) |
21d1c967 GD |
21446 | gtk_config_args="$gtk_config_args gthread" |
21447 | ;; | |
21448 | esac | |
21449 | done | |
21450 | ||
21451 | if test x$gtk_config_exec_prefix != x ; then | |
21452 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
21453 | if test x${GTK_CONFIG+set} != xset ; then | |
21454 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
21455 | fi | |
21456 | fi | |
21457 | if test x$gtk_config_prefix != x ; then | |
21458 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
21459 | if test x${GTK_CONFIG+set} != xset ; then | |
21460 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
21461 | fi | |
21462 | fi | |
21463 | ||
21464 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
21465 | set dummy gtk-config; ac_word=$2 | |
e6cc62c6 VS |
21466 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
21467 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
21468 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
21469 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 21470 | else |
e6cc62c6 VS |
21471 | case $GTK_CONFIG in |
21472 | [\\/]* | ?:[\\/]*) | |
21d1c967 GD |
21473 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
21474 | ;; | |
21d1c967 | 21475 | *) |
e6cc62c6 VS |
21476 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
21477 | for as_dir in $PATH | |
21478 | do | |
21479 | IFS=$as_save_IFS | |
21480 | test -z "$as_dir" && as_dir=. | |
21481 | for ac_exec_ext in '' $ac_executable_extensions; do | |
21482 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
21483 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
21484 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
21485 | break 2 | |
21486 | fi | |
21487 | done | |
21488 | done | |
21489 | ||
21d1c967 GD |
21490 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
21491 | ;; | |
21492 | esac | |
21493 | fi | |
e6cc62c6 VS |
21494 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG |
21495 | ||
21d1c967 | 21496 | if test -n "$GTK_CONFIG"; then |
e6cc62c6 VS |
21497 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 |
21498 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
21d1c967 | 21499 | else |
e6cc62c6 VS |
21500 | echo "$as_me:$LINENO: result: no" >&5 |
21501 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
21502 | fi |
21503 | ||
21504 | min_gtk_version=1.2.7 | |
e6cc62c6 VS |
21505 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 |
21506 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
21d1c967 GD |
21507 | no_gtk="" |
21508 | if test "$GTK_CONFIG" = "no" ; then | |
21509 | no_gtk=yes | |
21510 | else | |
21511 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
21512 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
21513 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
21514 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
21515 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
21516 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
21517 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
21518 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
21519 | if test "x$enable_gtktest" = "xyes" ; then | |
21520 | ac_save_CFLAGS="$CFLAGS" | |
21521 | ac_save_LIBS="$LIBS" | |
21522 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
21523 | LIBS="$GTK_LIBS $LIBS" | |
21524 | rm -f conf.gtktest | |
21525 | if test "$cross_compiling" = yes; then | |
21526 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 21527 | else |
e6cc62c6 | 21528 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
21529 | /* confdefs.h. */ |
21530 | _ACEOF | |
21531 | cat confdefs.h >>conftest.$ac_ext | |
21532 | cat >>conftest.$ac_ext <<_ACEOF | |
21533 | /* end confdefs.h. */ | |
f79bd02d | 21534 | |
21d1c967 GD |
21535 | #include <gtk/gtk.h> |
21536 | #include <stdio.h> | |
21537 | #include <stdlib.h> | |
f79bd02d | 21538 | |
e6cc62c6 | 21539 | int |
21d1c967 GD |
21540 | main () |
21541 | { | |
21542 | int major, minor, micro; | |
21543 | char *tmp_version; | |
21544 | ||
21545 | system ("touch conf.gtktest"); | |
21546 | ||
21547 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
21548 | tmp_version = g_strdup("$min_gtk_version"); | |
21549 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
21550 | printf("%s, bad version string\n", "$min_gtk_version"); | |
21551 | exit(1); | |
21552 | } | |
90dd450c | 21553 | |
21d1c967 GD |
21554 | if ((gtk_major_version != $gtk_config_major_version) || |
21555 | (gtk_minor_version != $gtk_config_minor_version) || | |
21556 | (gtk_micro_version != $gtk_config_micro_version)) | |
21557 | { | |
e6cc62c6 | 21558 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
21559 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
21560 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
21561 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
21562 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
21563 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
21564 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
21565 | printf("*** required on your system.\n"); | |
21566 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
21567 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
21568 | printf("*** before re-running configure\n"); | |
e6cc62c6 | 21569 | } |
21d1c967 GD |
21570 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
21571 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
21572 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
21573 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
21574 | { | |
21575 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
21576 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
21577 | printf("*** library (version %d.%d.%d)\n", | |
21578 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
21579 | } | |
21580 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
21581 | else | |
21582 | { | |
21583 | if ((gtk_major_version > major) || | |
21584 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
21585 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
21586 | { | |
21587 | return 0; | |
21588 | } | |
21589 | else | |
21590 | { | |
21591 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
21592 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
21593 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
21594 | major, minor, micro); | |
21595 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
21596 | printf("***\n"); | |
21597 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
21598 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
21599 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
21600 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
21601 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
21602 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
21603 | printf("*** so that the correct libraries are found at run-time))\n"); | |
21604 | } | |
21605 | } | |
21606 | return 1; | |
21607 | } | |
21608 | ||
e6cc62c6 VS |
21609 | _ACEOF |
21610 | rm -f conftest$ac_exeext | |
21611 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21612 | (eval $ac_link) 2>&5 | |
21613 | ac_status=$? | |
21614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21615 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21617 | (eval $ac_try) 2>&5 | |
21618 | ac_status=$? | |
21619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21620 | (exit $ac_status); }; }; then | |
21d1c967 GD |
21621 | : |
21622 | else | |
e6cc62c6 VS |
21623 | echo "$as_me: program exited with status $ac_status" >&5 |
21624 | echo "$as_me: failed program was:" >&5 | |
21625 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21626 | ||
21627 | ( exit $ac_status ) | |
21628 | no_gtk=yes | |
21d1c967 | 21629 | fi |
eea650d8 | 21630 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 21631 | fi |
21d1c967 GD |
21632 | CFLAGS="$ac_save_CFLAGS" |
21633 | LIBS="$ac_save_LIBS" | |
21634 | fi | |
21635 | fi | |
21636 | if test "x$no_gtk" = x ; then | |
e6cc62c6 VS |
21637 | echo "$as_me:$LINENO: result: yes" >&5 |
21638 | echo "${ECHO_T}yes" >&6 | |
21639 | wx_cv_lib_gtk=1.2.7 | |
21d1c967 | 21640 | else |
e6cc62c6 VS |
21641 | echo "$as_me:$LINENO: result: no" >&5 |
21642 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
21643 | if test "$GTK_CONFIG" = "no" ; then |
21644 | echo "*** The gtk-config script installed by GTK could not be found" | |
21645 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
21646 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
21647 | echo "*** full path to gtk-config." | |
21648 | else | |
21649 | if test -f conf.gtktest ; then | |
21650 | : | |
21651 | else | |
21652 | echo "*** Could not run GTK test program, checking why..." | |
21653 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
21654 | LIBS="$LIBS $GTK_LIBS" | |
e6cc62c6 | 21655 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
21656 | /* confdefs.h. */ |
21657 | _ACEOF | |
21658 | cat confdefs.h >>conftest.$ac_ext | |
21659 | cat >>conftest.$ac_ext <<_ACEOF | |
21660 | /* end confdefs.h. */ | |
21d1c967 GD |
21661 | |
21662 | #include <gtk/gtk.h> | |
21663 | #include <stdio.h> | |
21664 | ||
e6cc62c6 VS |
21665 | int |
21666 | main () | |
21667 | { | |
21668 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
21669 | ; | |
21670 | return 0; | |
21671 | } | |
21672 | _ACEOF | |
21673 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21674 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 21675 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 21676 | ac_status=$? |
eea650d8 VS |
21677 | grep -v '^ *+' conftest.er1 >conftest.err |
21678 | rm -f conftest.er1 | |
21679 | cat conftest.err >&5 | |
e6cc62c6 VS |
21680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21681 | (exit $ac_status); } && | |
eea650d8 VS |
21682 | { ac_try='test -z "$ac_c_werror_flag" |
21683 | || test ! -s conftest.err' | |
21684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21685 | (eval $ac_try) 2>&5 | |
21686 | ac_status=$? | |
21687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21688 | (exit $ac_status); }; } && | |
21689 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 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); }; }; then | |
21d1c967 GD |
21695 | echo "*** The test program compiled, but did not run. This usually means" |
21696 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
21697 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
21698 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
21699 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
21700 | echo "*** is required on your system" | |
21701 | echo "***" | |
21702 | echo "*** If you have an old version installed, it is best to remove it, although" | |
21703 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
21704 | echo "***" | |
21705 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
21706 | echo "*** came with the system with the command" | |
21707 | echo "***" | |
e6cc62c6 | 21708 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
f79bd02d | 21709 | else |
e6cc62c6 VS |
21710 | echo "$as_me: failed program was:" >&5 |
21711 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21712 | ||
21713 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21d1c967 GD |
21714 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
21715 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
e6cc62c6 | 21716 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
f79bd02d | 21717 | fi |
eea650d8 VS |
21718 | rm -f conftest.err conftest.$ac_objext \ |
21719 | conftest$ac_exeext conftest.$ac_ext | |
21d1c967 GD |
21720 | CFLAGS="$ac_save_CFLAGS" |
21721 | LIBS="$ac_save_LIBS" | |
21722 | fi | |
21723 | fi | |
21724 | GTK_CFLAGS="" | |
21725 | GTK_LIBS="" | |
21726 | : | |
21727 | fi | |
e6cc62c6 VS |
21728 | |
21729 | ||
21d1c967 GD |
21730 | rm -f conf.gtktest |
21731 | ||
21d1c967 | 21732 | |
2b5f62a0 | 21733 | if test -z "$wx_cv_lib_gtk"; then |
e6cc62c6 VS |
21734 | |
21735 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
21d1c967 GD |
21736 | if test "${with_gtk_prefix+set}" = set; then |
21737 | withval="$with_gtk_prefix" | |
21738 | gtk_config_prefix="$withval" | |
21739 | else | |
21740 | gtk_config_prefix="" | |
e6cc62c6 | 21741 | fi; |
f79bd02d | 21742 | |
21d1c967 GD |
21743 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
21744 | if test "${with_gtk_exec_prefix+set}" = set; then | |
21745 | withval="$with_gtk_exec_prefix" | |
21746 | gtk_config_exec_prefix="$withval" | |
21747 | else | |
21748 | gtk_config_exec_prefix="" | |
e6cc62c6 | 21749 | fi; |
21d1c967 GD |
21750 | # Check whether --enable-gtktest or --disable-gtktest was given. |
21751 | if test "${enable_gtktest+set}" = set; then | |
21752 | enableval="$enable_gtktest" | |
e6cc62c6 | 21753 | |
90dd450c | 21754 | else |
21d1c967 | 21755 | enable_gtktest=yes |
e6cc62c6 | 21756 | fi; |
21d1c967 GD |
21757 | |
21758 | for module in . $GTK_MODULES | |
21759 | do | |
21760 | case "$module" in | |
e6cc62c6 | 21761 | gthread) |
21d1c967 GD |
21762 | gtk_config_args="$gtk_config_args gthread" |
21763 | ;; | |
21764 | esac | |
21765 | done | |
21766 | ||
21767 | if test x$gtk_config_exec_prefix != x ; then | |
21768 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
21769 | if test x${GTK_CONFIG+set} != xset ; then | |
21770 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
21771 | fi | |
21772 | fi | |
21773 | if test x$gtk_config_prefix != x ; then | |
21774 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
21775 | if test x${GTK_CONFIG+set} != xset ; then | |
21776 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
21777 | fi | |
21778 | fi | |
21779 | ||
21780 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
21781 | set dummy gtk-config; ac_word=$2 | |
e6cc62c6 VS |
21782 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
21783 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
21784 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
21785 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 21786 | else |
e6cc62c6 VS |
21787 | case $GTK_CONFIG in |
21788 | [\\/]* | ?:[\\/]*) | |
21d1c967 GD |
21789 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
21790 | ;; | |
21d1c967 | 21791 | *) |
e6cc62c6 VS |
21792 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
21793 | for as_dir in $PATH | |
21794 | do | |
21795 | IFS=$as_save_IFS | |
21796 | test -z "$as_dir" && as_dir=. | |
21797 | for ac_exec_ext in '' $ac_executable_extensions; do | |
21798 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
21799 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
21800 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
21801 | break 2 | |
21802 | fi | |
21803 | done | |
21804 | done | |
21805 | ||
21d1c967 GD |
21806 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
21807 | ;; | |
21808 | esac | |
21809 | fi | |
e6cc62c6 VS |
21810 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG |
21811 | ||
21d1c967 | 21812 | if test -n "$GTK_CONFIG"; then |
e6cc62c6 VS |
21813 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 |
21814 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
21d1c967 | 21815 | else |
e6cc62c6 VS |
21816 | echo "$as_me:$LINENO: result: no" >&5 |
21817 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
21818 | fi |
21819 | ||
21820 | min_gtk_version=1.2.3 | |
e6cc62c6 VS |
21821 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 |
21822 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
21d1c967 GD |
21823 | no_gtk="" |
21824 | if test "$GTK_CONFIG" = "no" ; then | |
21825 | no_gtk=yes | |
21826 | else | |
21827 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
21828 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
21829 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
21830 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
21831 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
21832 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
21833 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
21834 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
21835 | if test "x$enable_gtktest" = "xyes" ; then | |
21836 | ac_save_CFLAGS="$CFLAGS" | |
21837 | ac_save_LIBS="$LIBS" | |
21838 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
21839 | LIBS="$GTK_LIBS $LIBS" | |
21840 | rm -f conf.gtktest | |
21841 | if test "$cross_compiling" = yes; then | |
21842 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
21843 | else | |
e6cc62c6 | 21844 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
21845 | /* confdefs.h. */ |
21846 | _ACEOF | |
21847 | cat confdefs.h >>conftest.$ac_ext | |
21848 | cat >>conftest.$ac_ext <<_ACEOF | |
21849 | /* end confdefs.h. */ | |
21d1c967 GD |
21850 | |
21851 | #include <gtk/gtk.h> | |
21852 | #include <stdio.h> | |
21853 | #include <stdlib.h> | |
21854 | ||
e6cc62c6 | 21855 | int |
21d1c967 GD |
21856 | main () |
21857 | { | |
21858 | int major, minor, micro; | |
21859 | char *tmp_version; | |
21860 | ||
21861 | system ("touch conf.gtktest"); | |
21862 | ||
21863 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
21864 | tmp_version = g_strdup("$min_gtk_version"); | |
21865 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
21866 | printf("%s, bad version string\n", "$min_gtk_version"); | |
21867 | exit(1); | |
21868 | } | |
21869 | ||
21870 | if ((gtk_major_version != $gtk_config_major_version) || | |
21871 | (gtk_minor_version != $gtk_config_minor_version) || | |
21872 | (gtk_micro_version != $gtk_config_micro_version)) | |
21873 | { | |
e6cc62c6 | 21874 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
21875 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
21876 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
21877 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
21878 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
21879 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
21880 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
21881 | printf("*** required on your system.\n"); | |
21882 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
21883 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
21884 | printf("*** before re-running configure\n"); | |
e6cc62c6 | 21885 | } |
21d1c967 GD |
21886 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
21887 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
21888 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
21889 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
21890 | { | |
21891 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
21892 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
21893 | printf("*** library (version %d.%d.%d)\n", | |
21894 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
21895 | } | |
21896 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
21897 | else | |
21898 | { | |
21899 | if ((gtk_major_version > major) || | |
21900 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
21901 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
21902 | { | |
21903 | return 0; | |
21904 | } | |
21905 | else | |
21906 | { | |
21907 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
21908 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
21909 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
21910 | major, minor, micro); | |
21911 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
21912 | printf("***\n"); | |
21913 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
21914 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
21915 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
21916 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
21917 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
21918 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
21919 | printf("*** so that the correct libraries are found at run-time))\n"); | |
21920 | } | |
21921 | } | |
21922 | return 1; | |
21923 | } | |
21924 | ||
e6cc62c6 VS |
21925 | _ACEOF |
21926 | rm -f conftest$ac_exeext | |
21927 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21928 | (eval $ac_link) 2>&5 | |
21929 | ac_status=$? | |
21930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21931 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21933 | (eval $ac_try) 2>&5 | |
21934 | ac_status=$? | |
21935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21936 | (exit $ac_status); }; }; then | |
21d1c967 GD |
21937 | : |
21938 | else | |
e6cc62c6 VS |
21939 | echo "$as_me: program exited with status $ac_status" >&5 |
21940 | echo "$as_me: failed program was:" >&5 | |
21941 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21942 | ||
21943 | ( exit $ac_status ) | |
21944 | no_gtk=yes | |
21d1c967 | 21945 | fi |
eea650d8 | 21946 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 21947 | fi |
21d1c967 GD |
21948 | CFLAGS="$ac_save_CFLAGS" |
21949 | LIBS="$ac_save_LIBS" | |
21950 | fi | |
21951 | fi | |
21952 | if test "x$no_gtk" = x ; then | |
e6cc62c6 VS |
21953 | echo "$as_me:$LINENO: result: yes" >&5 |
21954 | echo "${ECHO_T}yes" >&6 | |
21955 | wx_cv_lib_gtk=1.2.3 | |
21d1c967 | 21956 | else |
e6cc62c6 VS |
21957 | echo "$as_me:$LINENO: result: no" >&5 |
21958 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
21959 | if test "$GTK_CONFIG" = "no" ; then |
21960 | echo "*** The gtk-config script installed by GTK could not be found" | |
21961 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
21962 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
21963 | echo "*** full path to gtk-config." | |
21964 | else | |
21965 | if test -f conf.gtktest ; then | |
21966 | : | |
21967 | else | |
21968 | echo "*** Could not run GTK test program, checking why..." | |
21969 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
21970 | LIBS="$LIBS $GTK_LIBS" | |
e6cc62c6 | 21971 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
21972 | /* confdefs.h. */ |
21973 | _ACEOF | |
21974 | cat confdefs.h >>conftest.$ac_ext | |
21975 | cat >>conftest.$ac_ext <<_ACEOF | |
21976 | /* end confdefs.h. */ | |
21d1c967 GD |
21977 | |
21978 | #include <gtk/gtk.h> | |
21979 | #include <stdio.h> | |
f79bd02d | 21980 | |
e6cc62c6 VS |
21981 | int |
21982 | main () | |
21983 | { | |
21984 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
21985 | ; | |
21986 | return 0; | |
21987 | } | |
21988 | _ACEOF | |
21989 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21990 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 21991 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 21992 | ac_status=$? |
eea650d8 VS |
21993 | grep -v '^ *+' conftest.er1 >conftest.err |
21994 | rm -f conftest.er1 | |
21995 | cat conftest.err >&5 | |
e6cc62c6 VS |
21996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21997 | (exit $ac_status); } && | |
eea650d8 VS |
21998 | { ac_try='test -z "$ac_c_werror_flag" |
21999 | || test ! -s conftest.err' | |
22000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22001 | (eval $ac_try) 2>&5 | |
22002 | ac_status=$? | |
22003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22004 | (exit $ac_status); }; } && | |
22005 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
22006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22007 | (eval $ac_try) 2>&5 | |
22008 | ac_status=$? | |
22009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22010 | (exit $ac_status); }; }; then | |
21d1c967 GD |
22011 | echo "*** The test program compiled, but did not run. This usually means" |
22012 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
22013 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
22014 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
22015 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
22016 | echo "*** is required on your system" | |
22017 | echo "***" | |
22018 | echo "*** If you have an old version installed, it is best to remove it, although" | |
22019 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
22020 | echo "***" | |
22021 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
22022 | echo "*** came with the system with the command" | |
22023 | echo "***" | |
e6cc62c6 | 22024 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
f79bd02d | 22025 | else |
e6cc62c6 VS |
22026 | echo "$as_me: failed program was:" >&5 |
22027 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22028 | ||
22029 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21d1c967 GD |
22030 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
22031 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
e6cc62c6 | 22032 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
f79bd02d | 22033 | fi |
eea650d8 VS |
22034 | rm -f conftest.err conftest.$ac_objext \ |
22035 | conftest$ac_exeext conftest.$ac_ext | |
21d1c967 GD |
22036 | CFLAGS="$ac_save_CFLAGS" |
22037 | LIBS="$ac_save_LIBS" | |
22038 | fi | |
22039 | fi | |
22040 | GTK_CFLAGS="" | |
22041 | GTK_LIBS="" | |
22042 | : | |
22043 | fi | |
e6cc62c6 VS |
22044 | |
22045 | ||
21d1c967 | 22046 | rm -f conf.gtktest |
f79bd02d | 22047 | |
2b5f62a0 | 22048 | fi |
21d1c967 GD |
22049 | fi |
22050 | ||
22051 | if test -z "$wx_cv_lib_gtk"; then | |
22052 | wx_cv_lib_gtk=none | |
22053 | else | |
22054 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
22055 | wx_cv_libs_gtk=$GTK_LIBS | |
22056 | fi | |
e6cc62c6 VS |
22057 | |
22058 | ||
5c6fa7d2 | 22059 | fi |
52127426 | 22060 | |
8284b0c5 | 22061 | |
21d1c967 | 22062 | if test "$gtk_version_cached" = 1; then |
e6cc62c6 VS |
22063 | echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5 |
22064 | echo "${ECHO_T}$wx_cv_lib_gtk" >&6 | |
21d1c967 GD |
22065 | fi |
22066 | ||
22067 | case "$wx_cv_lib_gtk" in | |
22068 | 2.0) WXGTK20=1 | |
2b5f62a0 | 22069 | TOOLKIT_VERSION=2 |
21d1c967 GD |
22070 | ;; |
22071 | 1.2.7) WXGTK127=1 | |
22072 | WXGTK12=1 | |
22073 | ;; | |
22074 | 1.2.3) WXGTK12=1 | |
22075 | ;; | |
e6cc62c6 VS |
22076 | *) { { echo "$as_me:$LINENO: error: |
22077 | Please check that gtk-config is in path, the directory | |
22078 | where GTK+ libraries are installed (returned by | |
22079 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
22080 | equivalent variable and GTK+ is version 1.2.3 or above. | |
22081 | " >&5 | |
22082 | echo "$as_me: error: | |
247f5006 VZ |
22083 | Please check that gtk-config is in path, the directory |
22084 | where GTK+ libraries are installed (returned by | |
22085 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
22086 | equivalent variable and GTK+ is version 1.2.3 or above. | |
e6cc62c6 VS |
22087 | " >&2;} |
22088 | { (exit 1); exit 1; }; } | |
21d1c967 GD |
22089 | ;; |
22090 | esac | |
22091 | ||
b13cd66e VZ |
22092 | if test "$WXGTK20" = 1; then |
22093 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
e6cc62c6 | 22094 | |
f09359cf VS |
22095 | succeeded=no |
22096 | ||
22097 | if test -z "$PKG_CONFIG"; then | |
22098 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
22099 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
22100 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
22101 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22102 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
22103 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f09359cf | 22104 | else |
e6cc62c6 VS |
22105 | case $PKG_CONFIG in |
22106 | [\\/]* | ?:[\\/]*) | |
f09359cf VS |
22107 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
22108 | ;; | |
f09359cf | 22109 | *) |
e6cc62c6 VS |
22110 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
22111 | for as_dir in $PATH | |
22112 | do | |
22113 | IFS=$as_save_IFS | |
22114 | test -z "$as_dir" && as_dir=. | |
22115 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22116 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22117 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22118 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22119 | break 2 | |
22120 | fi | |
22121 | done | |
22122 | done | |
22123 | ||
f09359cf VS |
22124 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
22125 | ;; | |
22126 | esac | |
22127 | fi | |
e6cc62c6 VS |
22128 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
22129 | ||
f09359cf | 22130 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
22131 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
22132 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
f09359cf | 22133 | else |
e6cc62c6 VS |
22134 | echo "$as_me:$LINENO: result: no" >&5 |
22135 | echo "${ECHO_T}no" >&6 | |
f09359cf VS |
22136 | fi |
22137 | ||
22138 | fi | |
22139 | ||
22140 | if test "$PKG_CONFIG" = "no" ; then | |
22141 | echo "*** The pkg-config script could not be found. Make sure it is" | |
22142 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
22143 | echo "*** to the full path to pkg-config." | |
22144 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
22145 | else | |
22146 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
22147 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
e6cc62c6 VS |
22148 | echo "$as_me:$LINENO: checking for pangoft2" >&5 |
22149 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
f09359cf VS |
22150 | |
22151 | if $PKG_CONFIG --exists "pangoft2" ; then | |
e6cc62c6 VS |
22152 | echo "$as_me:$LINENO: result: yes" >&5 |
22153 | echo "${ECHO_T}yes" >&6 | |
f09359cf VS |
22154 | succeeded=yes |
22155 | ||
e6cc62c6 VS |
22156 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 |
22157 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
f09359cf | 22158 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` |
e6cc62c6 VS |
22159 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 |
22160 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
f09359cf | 22161 | |
e6cc62c6 VS |
22162 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 |
22163 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
f09359cf | 22164 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` |
e6cc62c6 VS |
22165 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 |
22166 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
f09359cf VS |
22167 | else |
22168 | PANGOFT2_CFLAGS="" | |
22169 | PANGOFT2_LIBS="" | |
e6cc62c6 | 22170 | ## If we have a custom action on failure, don't print errors, but |
f09359cf VS |
22171 | ## do set a variable so people can do so. |
22172 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
e6cc62c6 | 22173 | |
f09359cf VS |
22174 | fi |
22175 | ||
e6cc62c6 VS |
22176 | |
22177 | ||
f09359cf VS |
22178 | else |
22179 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
22180 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
22181 | fi | |
22182 | fi | |
22183 | ||
22184 | if test $succeeded = yes; then | |
e6cc62c6 | 22185 | |
b13cd66e | 22186 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" |
c74dc163 | 22187 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" |
e6cc62c6 | 22188 | |
f09359cf | 22189 | else |
e6cc62c6 VS |
22190 | |
22191 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
22192 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
b13cd66e | 22193 | wxUSE_PRINTING_ARCHITECTURE="no" |
e6cc62c6 VS |
22194 | |
22195 | ||
f09359cf VS |
22196 | fi |
22197 | ||
b13cd66e | 22198 | fi |
2b5f62a0 VZ |
22199 | else |
22200 | if test "$wxUSE_UNICODE" = "yes"; then | |
e6cc62c6 VS |
22201 | { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5 |
22202 | echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;} | |
2b5f62a0 VZ |
22203 | wxUSE_UNICODE=no |
22204 | fi | |
22205 | fi | |
22206 | ||
22207 | if test "$USE_DARWIN" != 1; then | |
e6cc62c6 VS |
22208 | |
22209 | for ac_func in poll | |
2b5f62a0 | 22210 | do |
e6cc62c6 VS |
22211 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
22212 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
22213 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
22214 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
22215 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22216 | else | |
22217 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
22218 | /* confdefs.h. */ |
22219 | _ACEOF | |
22220 | cat confdefs.h >>conftest.$ac_ext | |
22221 | cat >>conftest.$ac_ext <<_ACEOF | |
22222 | /* end confdefs.h. */ | |
eea650d8 VS |
22223 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
22224 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
22225 | #define $ac_func innocuous_$ac_func | |
22226 | ||
2b5f62a0 | 22227 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
22228 | which can conflict with char $ac_func (); below. |
22229 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
22230 | <limits.h> exists even on freestanding compilers. */ | |
eea650d8 | 22231 | |
e6cc62c6 VS |
22232 | #ifdef __STDC__ |
22233 | # include <limits.h> | |
22234 | #else | |
22235 | # include <assert.h> | |
22236 | #endif | |
eea650d8 VS |
22237 | |
22238 | #undef $ac_func | |
22239 | ||
2b5f62a0 | 22240 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22241 | #ifdef __cplusplus |
22242 | extern "C" | |
22243 | { | |
22244 | #endif | |
2b5f62a0 | 22245 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22246 | builtin and then its argument prototype would still apply. */ |
22247 | char $ac_func (); | |
2b5f62a0 VZ |
22248 | /* The GNU C library defines this for functions which it implements |
22249 | to always fail with ENOSYS. Some functions are actually named | |
22250 | something starting with __ and the normal name is an alias. */ | |
22251 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
22252 | choke me | |
22253 | #else | |
e6cc62c6 VS |
22254 | char (*f) () = $ac_func; |
22255 | #endif | |
22256 | #ifdef __cplusplus | |
22257 | } | |
2b5f62a0 VZ |
22258 | #endif |
22259 | ||
e6cc62c6 VS |
22260 | int |
22261 | main () | |
22262 | { | |
22263 | return f != $ac_func; | |
22264 | ; | |
22265 | return 0; | |
22266 | } | |
22267 | _ACEOF | |
22268 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22269 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 22270 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 22271 | ac_status=$? |
eea650d8 VS |
22272 | grep -v '^ *+' conftest.er1 >conftest.err |
22273 | rm -f conftest.er1 | |
22274 | cat conftest.err >&5 | |
e6cc62c6 VS |
22275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22276 | (exit $ac_status); } && | |
eea650d8 VS |
22277 | { ac_try='test -z "$ac_c_werror_flag" |
22278 | || test ! -s conftest.err' | |
22279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22280 | (eval $ac_try) 2>&5 | |
22281 | ac_status=$? | |
22282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22283 | (exit $ac_status); }; } && | |
22284 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
22285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22286 | (eval $ac_try) 2>&5 | |
22287 | ac_status=$? | |
22288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22289 | (exit $ac_status); }; }; then | |
22290 | eval "$as_ac_var=yes" | |
22291 | else | |
22292 | echo "$as_me: failed program was:" >&5 | |
22293 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22294 | ||
22295 | eval "$as_ac_var=no" | |
22296 | fi | |
eea650d8 VS |
22297 | rm -f conftest.err conftest.$ac_objext \ |
22298 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
22299 | fi |
22300 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
22301 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
22302 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
22303 | cat >>confdefs.h <<_ACEOF | |
22304 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
22305 | _ACEOF | |
2b5f62a0 | 22306 | |
2b5f62a0 VZ |
22307 | fi |
22308 | done | |
22309 | ||
f09359cf VS |
22310 | fi |
22311 | ||
21d1c967 | 22312 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" |
c74dc163 | 22313 | GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY" |
21d1c967 GD |
22314 | |
22315 | AFMINSTALL=afminstall | |
22316 | TOOLKIT=GTK | |
22317 | GUIDIST=GTK_DIST | |
22318 | ||
e6cc62c6 VS |
22319 | echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5 |
22320 | echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6 | |
22321 | if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then | |
22322 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 22323 | else |
e6cc62c6 | 22324 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 22325 | LIBS="-lgdk $LIBS" |
e6cc62c6 | 22326 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
22327 | /* confdefs.h. */ |
22328 | _ACEOF | |
22329 | cat confdefs.h >>conftest.$ac_ext | |
22330 | cat >>conftest.$ac_ext <<_ACEOF | |
22331 | /* end confdefs.h. */ | |
22332 | ||
5c6fa7d2 | 22333 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22334 | #ifdef __cplusplus |
22335 | extern "C" | |
22336 | #endif | |
5c6fa7d2 | 22337 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22338 | builtin and then its argument prototype would still apply. */ |
22339 | char gdk_im_open (); | |
22340 | int | |
22341 | main () | |
22342 | { | |
22343 | gdk_im_open (); | |
22344 | ; | |
22345 | return 0; | |
22346 | } | |
22347 | _ACEOF | |
22348 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22349 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 22350 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 22351 | ac_status=$? |
eea650d8 VS |
22352 | grep -v '^ *+' conftest.er1 >conftest.err |
22353 | rm -f conftest.er1 | |
22354 | cat conftest.err >&5 | |
e6cc62c6 VS |
22355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22356 | (exit $ac_status); } && | |
eea650d8 VS |
22357 | { ac_try='test -z "$ac_c_werror_flag" |
22358 | || test ! -s conftest.err' | |
22359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22360 | (eval $ac_try) 2>&5 | |
22361 | ac_status=$? | |
22362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22363 | (exit $ac_status); }; } && | |
22364 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
22365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22366 | (eval $ac_try) 2>&5 | |
22367 | ac_status=$? | |
22368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22369 | (exit $ac_status); }; }; then | |
22370 | ac_cv_lib_gdk_gdk_im_open=yes | |
22371 | else | |
22372 | echo "$as_me: failed program was:" >&5 | |
22373 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22374 | ||
22375 | ac_cv_lib_gdk_gdk_im_open=no | |
22376 | fi | |
eea650d8 VS |
22377 | rm -f conftest.err conftest.$ac_objext \ |
22378 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
22379 | LIBS=$ac_check_lib_save_LIBS |
22380 | fi | |
22381 | echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5 | |
22382 | echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6 | |
22383 | if test $ac_cv_lib_gdk_gdk_im_open = yes; then | |
22384 | cat >>confdefs.h <<\_ACEOF | |
21d1c967 | 22385 | #define HAVE_XIM 1 |
e6cc62c6 | 22386 | _ACEOF |
21d1c967 | 22387 | |
90dd450c | 22388 | fi |
1e6feb95 | 22389 | |
21d1c967 | 22390 | fi |
1e6feb95 | 22391 | |
21d1c967 | 22392 | if test "$wxUSE_MGL" = 1; then |
e6cc62c6 VS |
22393 | echo "$as_me:$LINENO: checking for SciTech MGL library" >&5 |
22394 | echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6 | |
21d1c967 | 22395 | if test "x$MGL_ROOT" = x ; then |
e6cc62c6 VS |
22396 | echo "$as_me:$LINENO: result: not found" >&5 |
22397 | echo "${ECHO_T}not found" >&6 | |
22398 | { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5 | |
22399 | echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;} | |
22400 | { (exit 1); exit 1; }; } | |
21d1c967 | 22401 | else |
e6cc62c6 VS |
22402 | echo "$as_me:$LINENO: result: $MGL_ROOT" >&5 |
22403 | echo "${ECHO_T}$MGL_ROOT" >&6 | |
21d1c967 GD |
22404 | fi |
22405 | ||
e6cc62c6 VS |
22406 | echo "$as_me:$LINENO: checking for libmgl location" >&5 |
22407 | echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6 | |
e46d2a18 | 22408 | case "${host}" in |
21d1c967 | 22409 | *-*-linux* ) |
e46d2a18 VS |
22410 | if test "x$wxUSE_SHARED" = xyes ; then |
22411 | mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc" | |
63a76696 | 22412 | else |
e46d2a18 | 22413 | mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so" |
63a76696 | 22414 | fi |
21d1c967 GD |
22415 | ;; |
22416 | *-pc-msdosdjgpp ) | |
63a76696 | 22417 | mgl_os_candidates="dos32/dj2" |
21d1c967 GD |
22418 | ;; |
22419 | *) | |
e6cc62c6 VS |
22420 | { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5 |
22421 | echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;} | |
22422 | { (exit 1); exit 1; }; } | |
21d1c967 | 22423 | esac |
1e6feb95 | 22424 | |
21d1c967 | 22425 | mgl_lib_type="" |
63a76696 VS |
22426 | mgl_os="" |
22427 | ||
22428 | for mgl_os_i in $mgl_os_candidates ; do | |
22429 | if test "x$mgl_os" = x ; then | |
22430 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
22431 | if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \ | |
22432 | -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then | |
22433 | mgl_lib_type=debug | |
22434 | mgl_os=$mgl_os_i | |
22435 | fi | |
22436 | fi | |
22437 | if test "x$mgl_lib_type" = x ; then | |
22438 | if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \ | |
22439 | -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then | |
22440 | mgl_lib_type=release | |
22441 | mgl_os=$mgl_os_i | |
22442 | fi | |
22443 | fi | |
21d1c967 | 22444 | fi |
63a76696 | 22445 | done |
2224580a | 22446 | |
63a76696 | 22447 | if test "x$mgl_os" = x ; then |
e6cc62c6 VS |
22448 | echo "$as_me:$LINENO: result: not found" >&5 |
22449 | echo "${ECHO_T}not found" >&6 | |
22450 | { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5 | |
22451 | echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;} | |
22452 | { (exit 1); exit 1; }; } | |
63a76696 | 22453 | fi |
e6cc62c6 VS |
22454 | echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5 |
22455 | echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6 | |
1542ea39 | 22456 | |
1d1b75ac VZ |
22457 | wxUSE_UNIVERSAL="yes" |
22458 | ||
21d1c967 GD |
22459 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" |
22460 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
22461 | ||
90dd450c | 22462 | AFMINSTALL=afminstall |
21d1c967 GD |
22463 | TOOLKIT=MGL |
22464 | GUIDIST=MGL_DIST | |
22465 | fi | |
dad6c0ea | 22466 | |
21d1c967 | 22467 | if test "$wxUSE_MICROWIN" = 1; then |
e6cc62c6 VS |
22468 | echo "$as_me:$LINENO: checking for MicroWindows" >&5 |
22469 | echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6 | |
21d1c967 | 22470 | if test "x$MICROWINDOWS" = x ; then |
e6cc62c6 VS |
22471 | echo "$as_me:$LINENO: result: not found" >&5 |
22472 | echo "${ECHO_T}not found" >&6 | |
22473 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5 | |
22474 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;} | |
22475 | { (exit 1); exit 1; }; } | |
21d1c967 | 22476 | else |
e6cc62c6 VS |
22477 | echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5 |
22478 | echo "${ECHO_T}$MICROWINDOWS" >&6 | |
21d1c967 | 22479 | fi |
f6bcfd97 | 22480 | |
21d1c967 | 22481 | if test -f $MICROWINDOWS/lib/libmwin.a; then |
e6cc62c6 VS |
22482 | echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5 |
22483 | echo "${ECHO_T}MicroWindows' libraries found." >&6 | |
21d1c967 | 22484 | else |
e6cc62c6 VS |
22485 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5 |
22486 | echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;} | |
22487 | { (exit 1); exit 1; }; } | |
90dd450c | 22488 | fi |
0b2effe9 | 22489 | |
21d1c967 GD |
22490 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" |
22491 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
22492 | ||
1d1b75ac VZ |
22493 | wxUSE_UNIVERSAL="yes" |
22494 | ||
21d1c967 GD |
22495 | AFMINSTALL=afminstall |
22496 | TOOLKIT=MICROWIN | |
22497 | GUIDIST=MICROWIN_DIST | |
1d1b75ac VZ |
22498 | |
22499 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
21d1c967 | 22500 | fi |
f6bcfd97 | 22501 | |
21d1c967 | 22502 | if test "$wxUSE_X11" = 1; then |
e6cc62c6 VS |
22503 | echo "$as_me:$LINENO: checking for X" >&5 |
22504 | echo $ECHO_N "checking for X... $ECHO_C" >&6 | |
22505 | ||
d8356fa3 | 22506 | |
21d1c967 GD |
22507 | # Check whether --with-x or --without-x was given. |
22508 | if test "${with_x+set}" = set; then | |
22509 | withval="$with_x" | |
2224580a | 22510 | |
e6cc62c6 | 22511 | fi; |
21d1c967 GD |
22512 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
22513 | if test "x$with_x" = xno; then | |
22514 | # The user explicitly disabled X. | |
22515 | have_x=disabled | |
22516 | else | |
22517 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
22518 | # Both variables are already set. | |
22519 | have_x=yes | |
22520 | else | |
e6cc62c6 VS |
22521 | if test "${ac_cv_have_x+set}" = set; then |
22522 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 GD |
22523 | else |
22524 | # One or both of the vars are not set, and there is no cached value. | |
e6cc62c6 VS |
22525 | ac_x_includes=no ac_x_libraries=no |
22526 | rm -fr conftest.dir | |
22527 | if mkdir conftest.dir; then | |
22528 | cd conftest.dir | |
21d1c967 | 22529 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
e6cc62c6 | 22530 | cat >Imakefile <<'_ACEOF' |
21d1c967 GD |
22531 | acfindx: |
22532 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
e6cc62c6 | 22533 | _ACEOF |
21d1c967 GD |
22534 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
22535 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
22536 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
22537 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
22538 | for ac_extension in a so sl; do | |
22539 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
eea650d8 VS |
22540 | test -f $ac_im_libdir/libX11.$ac_extension; then |
22541 | ac_im_usrlibdir=$ac_im_libdir; break | |
21d1c967 GD |
22542 | fi |
22543 | done | |
22544 | # Screen out bogus values from the imake configuration. They are | |
22545 | # bogus both because they are the default anyway, and because | |
22546 | # using them would break gcc on systems where it needs fixed includes. | |
e6cc62c6 | 22547 | case $ac_im_incroot in |
21d1c967 | 22548 | /usr/include) ;; |
e6cc62c6 | 22549 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
21d1c967 | 22550 | esac |
e6cc62c6 | 22551 | case $ac_im_usrlibdir in |
21d1c967 | 22552 | /usr/lib | /lib) ;; |
e6cc62c6 | 22553 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
21d1c967 GD |
22554 | esac |
22555 | fi | |
22556 | cd .. | |
e6cc62c6 | 22557 | rm -fr conftest.dir |
21d1c967 | 22558 | fi |
10f2d63a | 22559 | |
e6cc62c6 VS |
22560 | # Standard set of common directories for X headers. |
22561 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
22562 | ac_x_header_dirs=' | |
22563 | /usr/X11/include | |
22564 | /usr/X11R6/include | |
22565 | /usr/X11R5/include | |
22566 | /usr/X11R4/include | |
22567 | ||
22568 | /usr/include/X11 | |
22569 | /usr/include/X11R6 | |
22570 | /usr/include/X11R5 | |
22571 | /usr/include/X11R4 | |
22572 | ||
22573 | /usr/local/X11/include | |
22574 | /usr/local/X11R6/include | |
22575 | /usr/local/X11R5/include | |
22576 | /usr/local/X11R4/include | |
22577 | ||
22578 | /usr/local/include/X11 | |
22579 | /usr/local/include/X11R6 | |
22580 | /usr/local/include/X11R5 | |
22581 | /usr/local/include/X11R4 | |
22582 | ||
22583 | /usr/X386/include | |
22584 | /usr/x386/include | |
22585 | /usr/XFree86/include/X11 | |
22586 | ||
22587 | /usr/include | |
22588 | /usr/local/include | |
22589 | /usr/unsupported/include | |
22590 | /usr/athena/include | |
22591 | /usr/local/x11r5/include | |
22592 | /usr/lpp/Xamples/include | |
22593 | ||
22594 | /usr/openwin/include | |
22595 | /usr/openwin/share/include' | |
22596 | ||
22597 | if test "$ac_x_includes" = no; then | |
22598 | # Guess where to find include files, by looking for Intrinsic.h. | |
21d1c967 | 22599 | # First, try using that file with no special directory specified. |
e6cc62c6 | 22600 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
22601 | /* confdefs.h. */ |
22602 | _ACEOF | |
22603 | cat confdefs.h >>conftest.$ac_ext | |
22604 | cat >>conftest.$ac_ext <<_ACEOF | |
22605 | /* end confdefs.h. */ | |
22606 | #include <X11/Intrinsic.h> | |
22607 | _ACEOF | |
22608 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22609 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22610 | ac_status=$? | |
22611 | grep -v '^ *+' conftest.er1 >conftest.err | |
22612 | rm -f conftest.er1 | |
22613 | cat conftest.err >&5 | |
22614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22615 | (exit $ac_status); } >/dev/null; then | |
22616 | if test -s conftest.err; then | |
22617 | ac_cpp_err=$ac_c_preproc_warn_flag | |
eea650d8 | 22618 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
22619 | else |
22620 | ac_cpp_err= | |
22621 | fi | |
22622 | else | |
22623 | ac_cpp_err=yes | |
22624 | fi | |
22625 | if test -z "$ac_cpp_err"; then | |
21d1c967 GD |
22626 | # We can compile using X headers with no special include directory. |
22627 | ac_x_includes= | |
90dd450c | 22628 | else |
e6cc62c6 VS |
22629 | echo "$as_me: failed program was:" >&5 |
22630 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22631 | ||
22632 | for ac_dir in $ac_x_header_dirs; do | |
22633 | if test -r "$ac_dir/X11/Intrinsic.h"; then | |
22634 | ac_x_includes=$ac_dir | |
22635 | break | |
22636 | fi | |
22637 | done | |
3a922bb4 | 22638 | fi |
e6cc62c6 VS |
22639 | rm -f conftest.err conftest.$ac_ext |
22640 | fi # $ac_x_includes = no | |
10f2d63a | 22641 | |
e6cc62c6 | 22642 | if test "$ac_x_libraries" = no; then |
21d1c967 | 22643 | # Check for the libraries. |
21d1c967 GD |
22644 | # See if we find them without any special options. |
22645 | # Don't add to $LIBS permanently. | |
e6cc62c6 VS |
22646 | ac_save_LIBS=$LIBS |
22647 | LIBS="-lXt $LIBS" | |
22648 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
22649 | /* confdefs.h. */ |
22650 | _ACEOF | |
22651 | cat confdefs.h >>conftest.$ac_ext | |
22652 | cat >>conftest.$ac_ext <<_ACEOF | |
22653 | /* end confdefs.h. */ | |
22654 | #include <X11/Intrinsic.h> | |
22655 | int | |
22656 | main () | |
22657 | { | |
22658 | XtMalloc (0) | |
22659 | ; | |
22660 | return 0; | |
22661 | } | |
22662 | _ACEOF | |
22663 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22664 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 22665 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 22666 | ac_status=$? |
eea650d8 VS |
22667 | grep -v '^ *+' conftest.er1 >conftest.err |
22668 | rm -f conftest.er1 | |
22669 | cat conftest.err >&5 | |
e6cc62c6 VS |
22670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22671 | (exit $ac_status); } && | |
eea650d8 VS |
22672 | { ac_try='test -z "$ac_c_werror_flag" |
22673 | || test ! -s conftest.err' | |
22674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22675 | (eval $ac_try) 2>&5 | |
22676 | ac_status=$? | |
22677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22678 | (exit $ac_status); }; } && | |
22679 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
22680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22681 | (eval $ac_try) 2>&5 | |
22682 | ac_status=$? | |
22683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22684 | (exit $ac_status); }; }; then | |
22685 | LIBS=$ac_save_LIBS | |
21d1c967 GD |
22686 | # We can link X programs with no special library path. |
22687 | ac_x_libraries= | |
3a922bb4 | 22688 | else |
e6cc62c6 VS |
22689 | echo "$as_me: failed program was:" >&5 |
22690 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22691 | ||
22692 | LIBS=$ac_save_LIBS | |
22693 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
21d1c967 | 22694 | do |
e6cc62c6 | 22695 | # Don't even attempt the hair of trying to link an X program! |
21d1c967 | 22696 | for ac_extension in a so sl; do |
e6cc62c6 | 22697 | if test -r $ac_dir/libXt.$ac_extension; then |
21d1c967 GD |
22698 | ac_x_libraries=$ac_dir |
22699 | break 2 | |
22700 | fi | |
22701 | done | |
22702 | done | |
3a922bb4 | 22703 | fi |
eea650d8 VS |
22704 | rm -f conftest.err conftest.$ac_objext \ |
22705 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 | 22706 | fi # $ac_x_libraries = no |
90dd450c | 22707 | |
e6cc62c6 | 22708 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
21d1c967 GD |
22709 | # Didn't find X anywhere. Cache the known absence of X. |
22710 | ac_cv_have_x="have_x=no" | |
22711 | else | |
22712 | # Record where we found X for the cache. | |
22713 | ac_cv_have_x="have_x=yes \ | |
eea650d8 | 22714 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
90dd450c | 22715 | fi |
21d1c967 | 22716 | fi |
e6cc62c6 | 22717 | |
21d1c967 GD |
22718 | fi |
22719 | eval "$ac_cv_have_x" | |
22720 | fi # $with_x != no | |
90dd450c | 22721 | |
21d1c967 | 22722 | if test "$have_x" != yes; then |
e6cc62c6 VS |
22723 | echo "$as_me:$LINENO: result: $have_x" >&5 |
22724 | echo "${ECHO_T}$have_x" >&6 | |
21d1c967 GD |
22725 | no_x=yes |
22726 | else | |
22727 | # If each of the values was on the command line, it overrides each guess. | |
22728 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
22729 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
22730 | # Update the cache value to reflect the command line values. | |
22731 | ac_cv_have_x="have_x=yes \ | |
22732 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
e6cc62c6 VS |
22733 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
22734 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 | |
21d1c967 | 22735 | fi |
90dd450c | 22736 | |
21d1c967 | 22737 | if test "$no_x" = yes; then |
90dd450c | 22738 | # Not all programs may use this symbol, but it does not hurt to define it. |
e6cc62c6 VS |
22739 | |
22740 | cat >>confdefs.h <<\_ACEOF | |
90dd450c | 22741 | #define X_DISPLAY_MISSING 1 |
e6cc62c6 | 22742 | _ACEOF |
90dd450c VZ |
22743 | |
22744 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
22745 | else | |
22746 | if test -n "$x_includes"; then | |
22747 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
62d0491b | 22748 | fi |
3a922bb4 | 22749 | |
90dd450c VZ |
22750 | # It would also be nice to do this for all -L options, not just this one. |
22751 | if test -n "$x_libraries"; then | |
22752 | X_LIBS="$X_LIBS -L$x_libraries" | |
22753 | # For Solaris; some versions of Sun CC require a space after -R and | |
22754 | # others require no space. Words are not sufficient . . . . | |
e6cc62c6 | 22755 | case `(uname -sr) 2>/dev/null` in |
90dd450c | 22756 | "SunOS 5"*) |
e6cc62c6 VS |
22757 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
22758 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
22759 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
22760 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
22761 | /* confdefs.h. */ |
22762 | _ACEOF | |
22763 | cat confdefs.h >>conftest.$ac_ext | |
22764 | cat >>conftest.$ac_ext <<_ACEOF | |
22765 | /* end confdefs.h. */ | |
22766 | ||
22767 | int | |
22768 | main () | |
22769 | { | |
90dd450c | 22770 | |
e6cc62c6 VS |
22771 | ; |
22772 | return 0; | |
22773 | } | |
22774 | _ACEOF | |
22775 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22776 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 22777 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 22778 | ac_status=$? |
eea650d8 VS |
22779 | grep -v '^ *+' conftest.er1 >conftest.err |
22780 | rm -f conftest.er1 | |
22781 | cat conftest.err >&5 | |
e6cc62c6 VS |
22782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22783 | (exit $ac_status); } && | |
eea650d8 VS |
22784 | { ac_try='test -z "$ac_c_werror_flag" |
22785 | || test ! -s conftest.err' | |
22786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22787 | (eval $ac_try) 2>&5 | |
22788 | ac_status=$? | |
22789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22790 | (exit $ac_status); }; } && | |
22791 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
22792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22793 | (eval $ac_try) 2>&5 | |
22794 | ac_status=$? | |
22795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22796 | (exit $ac_status); }; }; then | |
90dd450c | 22797 | ac_R_nospace=yes |
3a922bb4 | 22798 | else |
e6cc62c6 VS |
22799 | echo "$as_me: failed program was:" >&5 |
22800 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22801 | ||
22802 | ac_R_nospace=no | |
3a922bb4 | 22803 | fi |
eea650d8 VS |
22804 | rm -f conftest.err conftest.$ac_objext \ |
22805 | conftest$ac_exeext conftest.$ac_ext | |
90dd450c | 22806 | if test $ac_R_nospace = yes; then |
e6cc62c6 VS |
22807 | echo "$as_me:$LINENO: result: no" >&5 |
22808 | echo "${ECHO_T}no" >&6 | |
90dd450c VZ |
22809 | X_LIBS="$X_LIBS -R$x_libraries" |
22810 | else | |
22811 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
e6cc62c6 | 22812 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
22813 | /* confdefs.h. */ |
22814 | _ACEOF | |
22815 | cat confdefs.h >>conftest.$ac_ext | |
22816 | cat >>conftest.$ac_ext <<_ACEOF | |
22817 | /* end confdefs.h. */ | |
22818 | ||
22819 | int | |
22820 | main () | |
22821 | { | |
6f754473 | 22822 | |
e6cc62c6 VS |
22823 | ; |
22824 | return 0; | |
22825 | } | |
22826 | _ACEOF | |
22827 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22828 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 22829 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 22830 | ac_status=$? |
eea650d8 VS |
22831 | grep -v '^ *+' conftest.er1 >conftest.err |
22832 | rm -f conftest.er1 | |
22833 | cat conftest.err >&5 | |
e6cc62c6 VS |
22834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22835 | (exit $ac_status); } && | |
eea650d8 VS |
22836 | { ac_try='test -z "$ac_c_werror_flag" |
22837 | || test ! -s conftest.err' | |
22838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22839 | (eval $ac_try) 2>&5 | |
22840 | ac_status=$? | |
22841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22842 | (exit $ac_status); }; } && | |
22843 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
22844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22845 | (eval $ac_try) 2>&5 | |
22846 | ac_status=$? | |
22847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22848 | (exit $ac_status); }; }; then | |
90dd450c VZ |
22849 | ac_R_space=yes |
22850 | else | |
e6cc62c6 VS |
22851 | echo "$as_me: failed program was:" >&5 |
22852 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22853 | ||
22854 | ac_R_space=no | |
90dd450c | 22855 | fi |
eea650d8 VS |
22856 | rm -f conftest.err conftest.$ac_objext \ |
22857 | conftest$ac_exeext conftest.$ac_ext | |
90dd450c | 22858 | if test $ac_R_space = yes; then |
e6cc62c6 VS |
22859 | echo "$as_me:$LINENO: result: yes" >&5 |
22860 | echo "${ECHO_T}yes" >&6 | |
90dd450c VZ |
22861 | X_LIBS="$X_LIBS -R $x_libraries" |
22862 | else | |
e6cc62c6 VS |
22863 | echo "$as_me:$LINENO: result: neither works" >&5 |
22864 | echo "${ECHO_T}neither works" >&6 | |
90dd450c VZ |
22865 | fi |
22866 | fi | |
e6cc62c6 | 22867 | LIBS=$ac_xsave_LIBS |
90dd450c VZ |
22868 | esac |
22869 | fi | |
22870 | ||
22871 | # Check for system-dependent libraries X programs must link with. | |
22872 | # Do this before checking for the system-independent R6 libraries | |
22873 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
6f754473 | 22874 | |
90dd450c VZ |
22875 | if test "$ISC" = yes; then |
22876 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
22877 | else | |
e6cc62c6 VS |
22878 | # Martyn Johnson says this is needed for Ultrix, if the X |
22879 | # libraries were built with DECnet support. And Karl Berry says | |
90dd450c | 22880 | # the Alpha needs dnet_stub (dnet does not exist). |
e6cc62c6 VS |
22881 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
22882 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
22883 | /* confdefs.h. */ |
22884 | _ACEOF | |
22885 | cat confdefs.h >>conftest.$ac_ext | |
22886 | cat >>conftest.$ac_ext <<_ACEOF | |
22887 | /* end confdefs.h. */ | |
22888 | ||
247f5006 | 22889 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22890 | #ifdef __cplusplus |
22891 | extern "C" | |
22892 | #endif | |
247f5006 | 22893 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22894 | builtin and then its argument prototype would still apply. */ |
22895 | char XOpenDisplay (); | |
22896 | int | |
22897 | main () | |
22898 | { | |
22899 | XOpenDisplay (); | |
22900 | ; | |
22901 | return 0; | |
22902 | } | |
22903 | _ACEOF | |
22904 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22905 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 22906 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 22907 | ac_status=$? |
eea650d8 VS |
22908 | grep -v '^ *+' conftest.er1 >conftest.err |
22909 | rm -f conftest.er1 | |
22910 | cat conftest.err >&5 | |
e6cc62c6 VS |
22911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22912 | (exit $ac_status); } && | |
eea650d8 VS |
22913 | { ac_try='test -z "$ac_c_werror_flag" |
22914 | || test ! -s conftest.err' | |
22915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22916 | (eval $ac_try) 2>&5 | |
22917 | ac_status=$? | |
22918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22919 | (exit $ac_status); }; } && | |
22920 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
22921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22922 | (eval $ac_try) 2>&5 | |
22923 | ac_status=$? | |
22924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22925 | (exit $ac_status); }; }; then | |
22926 | : | |
22927 | else | |
22928 | echo "$as_me: failed program was:" >&5 | |
22929 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 22930 | |
e6cc62c6 VS |
22931 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
22932 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
22933 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
22934 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 22935 | else |
e6cc62c6 VS |
22936 | ac_check_lib_save_LIBS=$LIBS |
22937 | LIBS="-ldnet $LIBS" | |
22938 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
22939 | /* confdefs.h. */ |
22940 | _ACEOF | |
22941 | cat confdefs.h >>conftest.$ac_ext | |
22942 | cat >>conftest.$ac_ext <<_ACEOF | |
22943 | /* end confdefs.h. */ | |
a0b9e27f | 22944 | |
e6cc62c6 VS |
22945 | /* Override any gcc2 internal prototype to avoid an error. */ |
22946 | #ifdef __cplusplus | |
22947 | extern "C" | |
22948 | #endif | |
22949 | /* We use char because int might match the return type of a gcc2 | |
22950 | builtin and then its argument prototype would still apply. */ | |
22951 | char dnet_ntoa (); | |
22952 | int | |
22953 | main () | |
22954 | { | |
22955 | dnet_ntoa (); | |
22956 | ; | |
22957 | return 0; | |
22958 | } | |
22959 | _ACEOF | |
22960 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22961 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 22962 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 22963 | ac_status=$? |
eea650d8 VS |
22964 | grep -v '^ *+' conftest.er1 >conftest.err |
22965 | rm -f conftest.er1 | |
22966 | cat conftest.err >&5 | |
e6cc62c6 VS |
22967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22968 | (exit $ac_status); } && | |
eea650d8 VS |
22969 | { ac_try='test -z "$ac_c_werror_flag" |
22970 | || test ! -s conftest.err' | |
22971 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22972 | (eval $ac_try) 2>&5 | |
22973 | ac_status=$? | |
22974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22975 | (exit $ac_status); }; } && | |
22976 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
22977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22978 | (eval $ac_try) 2>&5 | |
22979 | ac_status=$? | |
22980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22981 | (exit $ac_status); }; }; then | |
22982 | ac_cv_lib_dnet_dnet_ntoa=yes | |
22983 | else | |
22984 | echo "$as_me: failed program was:" >&5 | |
22985 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22986 | ||
22987 | ac_cv_lib_dnet_dnet_ntoa=no | |
22988 | fi | |
eea650d8 VS |
22989 | rm -f conftest.err conftest.$ac_objext \ |
22990 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
22991 | LIBS=$ac_check_lib_save_LIBS |
22992 | fi | |
22993 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
22994 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
22995 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
90dd450c | 22996 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
3a922bb4 RL |
22997 | fi |
22998 | ||
90dd450c | 22999 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
e6cc62c6 VS |
23000 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
23001 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
23002 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
23003 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 23004 | else |
e6cc62c6 | 23005 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 23006 | LIBS="-ldnet_stub $LIBS" |
e6cc62c6 | 23007 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
23008 | /* confdefs.h. */ |
23009 | _ACEOF | |
23010 | cat confdefs.h >>conftest.$ac_ext | |
23011 | cat >>conftest.$ac_ext <<_ACEOF | |
23012 | /* end confdefs.h. */ | |
23013 | ||
90dd450c | 23014 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23015 | #ifdef __cplusplus |
23016 | extern "C" | |
23017 | #endif | |
90dd450c | 23018 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23019 | builtin and then its argument prototype would still apply. */ |
23020 | char dnet_ntoa (); | |
23021 | int | |
23022 | main () | |
23023 | { | |
23024 | dnet_ntoa (); | |
23025 | ; | |
23026 | return 0; | |
23027 | } | |
23028 | _ACEOF | |
23029 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23030 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 23031 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 23032 | ac_status=$? |
eea650d8 VS |
23033 | grep -v '^ *+' conftest.er1 >conftest.err |
23034 | rm -f conftest.er1 | |
23035 | cat conftest.err >&5 | |
e6cc62c6 VS |
23036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23037 | (exit $ac_status); } && | |
eea650d8 VS |
23038 | { ac_try='test -z "$ac_c_werror_flag" |
23039 | || test ! -s conftest.err' | |
23040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23041 | (eval $ac_try) 2>&5 | |
23042 | ac_status=$? | |
23043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23044 | (exit $ac_status); }; } && | |
23045 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
23046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23047 | (eval $ac_try) 2>&5 | |
23048 | ac_status=$? | |
23049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23050 | (exit $ac_status); }; }; then | |
23051 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
23052 | else | |
23053 | echo "$as_me: failed program was:" >&5 | |
23054 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23055 | ||
23056 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
23057 | fi | |
eea650d8 VS |
23058 | rm -f conftest.err conftest.$ac_objext \ |
23059 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
23060 | LIBS=$ac_check_lib_save_LIBS |
23061 | fi | |
23062 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
23063 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
23064 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
90dd450c | 23065 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
3a922bb4 RL |
23066 | fi |
23067 | ||
90dd450c | 23068 | fi |
e6cc62c6 | 23069 | fi |
eea650d8 VS |
23070 | rm -f conftest.err conftest.$ac_objext \ |
23071 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 | 23072 | LIBS="$ac_xsave_LIBS" |
978f1259 | 23073 | |
90dd450c VZ |
23074 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
23075 | # to get the SysV transport functions. | |
e6cc62c6 | 23076 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
90dd450c VZ |
23077 | # needs -lnsl. |
23078 | # The nsl library prevents programs from opening the X display | |
e6cc62c6 VS |
23079 | # on Irix 5.2, according to T.E. Dickey. |
23080 | # The functions gethostbyname, getservbyname, and inet_addr are | |
23081 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
23082 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
23083 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
23084 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
23085 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23086 | else | |
23087 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
23088 | /* confdefs.h. */ |
23089 | _ACEOF | |
23090 | cat confdefs.h >>conftest.$ac_ext | |
23091 | cat >>conftest.$ac_ext <<_ACEOF | |
23092 | /* end confdefs.h. */ | |
eea650d8 VS |
23093 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
23094 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
23095 | #define gethostbyname innocuous_gethostbyname | |
23096 | ||
90dd450c | 23097 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
23098 | which can conflict with char gethostbyname (); below. |
23099 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23100 | <limits.h> exists even on freestanding compilers. */ | |
eea650d8 | 23101 | |
e6cc62c6 VS |
23102 | #ifdef __STDC__ |
23103 | # include <limits.h> | |
23104 | #else | |
23105 | # include <assert.h> | |
23106 | #endif | |
eea650d8 VS |
23107 | |
23108 | #undef gethostbyname | |
23109 | ||
90dd450c | 23110 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23111 | #ifdef __cplusplus |
23112 | extern "C" | |
23113 | { | |
23114 | #endif | |
90dd450c | 23115 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23116 | builtin and then its argument prototype would still apply. */ |
23117 | char gethostbyname (); | |
90dd450c VZ |
23118 | /* The GNU C library defines this for functions which it implements |
23119 | to always fail with ENOSYS. Some functions are actually named | |
23120 | something starting with __ and the normal name is an alias. */ | |
23121 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
23122 | choke me | |
23123 | #else | |
e6cc62c6 VS |
23124 | char (*f) () = gethostbyname; |
23125 | #endif | |
23126 | #ifdef __cplusplus | |
23127 | } | |
90dd450c | 23128 | #endif |
978f1259 | 23129 | |
e6cc62c6 VS |
23130 | int |
23131 | main () | |
23132 | { | |
23133 | return f != gethostbyname; | |
23134 | ; | |
23135 | return 0; | |
23136 | } | |
23137 | _ACEOF | |
23138 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23139 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 23140 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 23141 | ac_status=$? |
eea650d8 VS |
23142 | grep -v '^ *+' conftest.er1 >conftest.err |
23143 | rm -f conftest.er1 | |
23144 | cat conftest.err >&5 | |
e6cc62c6 VS |
23145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23146 | (exit $ac_status); } && | |
eea650d8 VS |
23147 | { ac_try='test -z "$ac_c_werror_flag" |
23148 | || test ! -s conftest.err' | |
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' | |
e6cc62c6 VS |
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 | ac_cv_func_gethostbyname=yes | |
23161 | else | |
23162 | echo "$as_me: failed program was:" >&5 | |
23163 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23164 | ||
23165 | ac_cv_func_gethostbyname=no | |
23166 | fi | |
eea650d8 VS |
23167 | rm -f conftest.err conftest.$ac_objext \ |
23168 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
23169 | fi |
23170 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
23171 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
698dcdb6 | 23172 | |
90dd450c | 23173 | if test $ac_cv_func_gethostbyname = no; then |
e6cc62c6 VS |
23174 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
23175 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
23176 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
23177 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 23178 | else |
e6cc62c6 | 23179 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 23180 | LIBS="-lnsl $LIBS" |
e6cc62c6 | 23181 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
23182 | /* confdefs.h. */ |
23183 | _ACEOF | |
23184 | cat confdefs.h >>conftest.$ac_ext | |
23185 | cat >>conftest.$ac_ext <<_ACEOF | |
23186 | /* end confdefs.h. */ | |
23187 | ||
90dd450c | 23188 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23189 | #ifdef __cplusplus |
23190 | extern "C" | |
23191 | #endif | |
90dd450c | 23192 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23193 | builtin and then its argument prototype would still apply. */ |
23194 | char gethostbyname (); | |
23195 | int | |
23196 | main () | |
23197 | { | |
23198 | gethostbyname (); | |
23199 | ; | |
23200 | return 0; | |
23201 | } | |
23202 | _ACEOF | |
23203 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23204 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 23205 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 23206 | ac_status=$? |
eea650d8 VS |
23207 | grep -v '^ *+' conftest.er1 >conftest.err |
23208 | rm -f conftest.er1 | |
23209 | cat conftest.err >&5 | |
e6cc62c6 VS |
23210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23211 | (exit $ac_status); } && | |
eea650d8 VS |
23212 | { ac_try='test -z "$ac_c_werror_flag" |
23213 | || test ! -s conftest.err' | |
23214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23215 | (eval $ac_try) 2>&5 | |
23216 | ac_status=$? | |
23217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23218 | (exit $ac_status); }; } && | |
23219 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
23220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23221 | (eval $ac_try) 2>&5 | |
23222 | ac_status=$? | |
23223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23224 | (exit $ac_status); }; }; then | |
23225 | ac_cv_lib_nsl_gethostbyname=yes | |
23226 | else | |
23227 | echo "$as_me: failed program was:" >&5 | |
23228 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23229 | ||
23230 | ac_cv_lib_nsl_gethostbyname=no | |
23231 | fi | |
eea650d8 VS |
23232 | rm -f conftest.err conftest.$ac_objext \ |
23233 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
23234 | LIBS=$ac_check_lib_save_LIBS |
23235 | fi | |
23236 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
23237 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
23238 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
23239 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
a0b9e27f | 23240 | fi |
247f5006 | 23241 | |
e6cc62c6 | 23242 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
eea650d8 | 23243 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 |
e6cc62c6 VS |
23244 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 |
23245 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
23246 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 23247 | else |
e6cc62c6 VS |
23248 | ac_check_lib_save_LIBS=$LIBS |
23249 | LIBS="-lbsd $LIBS" | |
23250 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
23251 | /* confdefs.h. */ |
23252 | _ACEOF | |
23253 | cat confdefs.h >>conftest.$ac_ext | |
23254 | cat >>conftest.$ac_ext <<_ACEOF | |
23255 | /* end confdefs.h. */ | |
23256 | ||
23257 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23258 | #ifdef __cplusplus | |
23259 | extern "C" | |
23260 | #endif | |
23261 | /* We use char because int might match the return type of a gcc2 | |
23262 | builtin and then its argument prototype would still apply. */ | |
23263 | char gethostbyname (); | |
23264 | int | |
23265 | main () | |
23266 | { | |
23267 | gethostbyname (); | |
23268 | ; | |
23269 | return 0; | |
23270 | } | |
23271 | _ACEOF | |
23272 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23273 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 23274 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 23275 | ac_status=$? |
eea650d8 VS |
23276 | grep -v '^ *+' conftest.er1 >conftest.err |
23277 | rm -f conftest.er1 | |
23278 | cat conftest.err >&5 | |
e6cc62c6 VS |
23279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23280 | (exit $ac_status); } && | |
eea650d8 VS |
23281 | { ac_try='test -z "$ac_c_werror_flag" |
23282 | || test ! -s conftest.err' | |
23283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23284 | (eval $ac_try) 2>&5 | |
23285 | ac_status=$? | |
23286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23287 | (exit $ac_status); }; } && | |
23288 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
23289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23290 | (eval $ac_try) 2>&5 | |
23291 | ac_status=$? | |
23292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23293 | (exit $ac_status); }; }; then | |
23294 | ac_cv_lib_bsd_gethostbyname=yes | |
23295 | else | |
23296 | echo "$as_me: failed program was:" >&5 | |
23297 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23298 | ||
23299 | ac_cv_lib_bsd_gethostbyname=no | |
23300 | fi | |
eea650d8 VS |
23301 | rm -f conftest.err conftest.$ac_objext \ |
23302 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
23303 | LIBS=$ac_check_lib_save_LIBS |
23304 | fi | |
23305 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
23306 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
23307 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
23308 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
90dd450c | 23309 | fi |
b12915c1 | 23310 | |
e6cc62c6 | 23311 | fi |
90dd450c VZ |
23312 | fi |
23313 | ||
23314 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
23315 | # socket/setsockopt and other routines are undefined under SCO ODT | |
23316 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
e6cc62c6 VS |
23317 | # on later versions), says Simon Leinen: it contains gethostby* |
23318 | # variants that don't use the name server (or something). -lsocket | |
23319 | # must be given before -lnsl if both are needed. We assume that | |
23320 | # if connect needs -lnsl, so does gethostbyname. | |
23321 | echo "$as_me:$LINENO: checking for connect" >&5 | |
23322 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
23323 | if test "${ac_cv_func_connect+set}" = set; then | |
23324 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23325 | else | |
23326 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
23327 | /* confdefs.h. */ |
23328 | _ACEOF | |
23329 | cat confdefs.h >>conftest.$ac_ext | |
23330 | cat >>conftest.$ac_ext <<_ACEOF | |
23331 | /* end confdefs.h. */ | |
eea650d8 VS |
23332 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
23333 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
23334 | #define connect innocuous_connect | |
23335 | ||
90dd450c | 23336 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
23337 | which can conflict with char connect (); below. |
23338 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23339 | <limits.h> exists even on freestanding compilers. */ | |
eea650d8 | 23340 | |
e6cc62c6 VS |
23341 | #ifdef __STDC__ |
23342 | # include <limits.h> | |
23343 | #else | |
23344 | # include <assert.h> | |
23345 | #endif | |
eea650d8 VS |
23346 | |
23347 | #undef connect | |
23348 | ||
90dd450c | 23349 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23350 | #ifdef __cplusplus |
23351 | extern "C" | |
23352 | { | |
23353 | #endif | |
90dd450c | 23354 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23355 | builtin and then its argument prototype would still apply. */ |
23356 | char connect (); | |
90dd450c VZ |
23357 | /* The GNU C library defines this for functions which it implements |
23358 | to always fail with ENOSYS. Some functions are actually named | |
23359 | something starting with __ and the normal name is an alias. */ | |
23360 | #if defined (__stub_connect) || defined (__stub___connect) | |
23361 | choke me | |
23362 | #else | |
e6cc62c6 VS |
23363 | char (*f) () = connect; |
23364 | #endif | |
23365 | #ifdef __cplusplus | |
23366 | } | |
90dd450c VZ |
23367 | #endif |
23368 | ||
e6cc62c6 VS |
23369 | int |
23370 | main () | |
23371 | { | |
23372 | return f != connect; | |
23373 | ; | |
23374 | return 0; | |
23375 | } | |
23376 | _ACEOF | |
23377 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23378 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 23379 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 23380 | ac_status=$? |
eea650d8 VS |
23381 | grep -v '^ *+' conftest.er1 >conftest.err |
23382 | rm -f conftest.er1 | |
23383 | cat conftest.err >&5 | |
e6cc62c6 VS |
23384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23385 | (exit $ac_status); } && | |
eea650d8 VS |
23386 | { ac_try='test -z "$ac_c_werror_flag" |
23387 | || test ! -s conftest.err' | |
23388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23389 | (eval $ac_try) 2>&5 | |
23390 | ac_status=$? | |
23391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23392 | (exit $ac_status); }; } && | |
23393 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
23394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23395 | (eval $ac_try) 2>&5 | |
23396 | ac_status=$? | |
23397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23398 | (exit $ac_status); }; }; then | |
23399 | ac_cv_func_connect=yes | |
23400 | else | |
23401 | echo "$as_me: failed program was:" >&5 | |
23402 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23403 | ||
23404 | ac_cv_func_connect=no | |
23405 | fi | |
eea650d8 VS |
23406 | rm -f conftest.err conftest.$ac_objext \ |
23407 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
23408 | fi |
23409 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
23410 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
55e80573 | 23411 | |
90dd450c | 23412 | if test $ac_cv_func_connect = no; then |
e6cc62c6 VS |
23413 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
23414 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
23415 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
23416 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 23417 | else |
e6cc62c6 | 23418 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 23419 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
e6cc62c6 | 23420 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
23421 | /* confdefs.h. */ |
23422 | _ACEOF | |
23423 | cat confdefs.h >>conftest.$ac_ext | |
23424 | cat >>conftest.$ac_ext <<_ACEOF | |
23425 | /* end confdefs.h. */ | |
23426 | ||
90dd450c | 23427 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23428 | #ifdef __cplusplus |
23429 | extern "C" | |
23430 | #endif | |
90dd450c | 23431 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23432 | builtin and then its argument prototype would still apply. */ |
23433 | char connect (); | |
23434 | int | |
23435 | main () | |
23436 | { | |
23437 | connect (); | |
23438 | ; | |
23439 | return 0; | |
23440 | } | |
23441 | _ACEOF | |
23442 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23443 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 23444 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 23445 | ac_status=$? |
eea650d8 VS |
23446 | grep -v '^ *+' conftest.er1 >conftest.err |
23447 | rm -f conftest.er1 | |
23448 | cat conftest.err >&5 | |
e6cc62c6 VS |
23449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23450 | (exit $ac_status); } && | |
eea650d8 VS |
23451 | { ac_try='test -z "$ac_c_werror_flag" |
23452 | || test ! -s conftest.err' | |
23453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23454 | (eval $ac_try) 2>&5 | |
23455 | ac_status=$? | |
23456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23457 | (exit $ac_status); }; } && | |
23458 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
23459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23460 | (eval $ac_try) 2>&5 | |
23461 | ac_status=$? | |
23462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23463 | (exit $ac_status); }; }; then | |
23464 | ac_cv_lib_socket_connect=yes | |
23465 | else | |
23466 | echo "$as_me: failed program was:" >&5 | |
23467 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23468 | ||
23469 | ac_cv_lib_socket_connect=no | |
23470 | fi | |
eea650d8 VS |
23471 | rm -f conftest.err conftest.$ac_objext \ |
23472 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
23473 | LIBS=$ac_check_lib_save_LIBS |
23474 | fi | |
23475 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
23476 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
23477 | if test $ac_cv_lib_socket_connect = yes; then | |
90dd450c | 23478 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
90dd450c | 23479 | fi |
77e13408 | 23480 | |
90dd450c | 23481 | fi |
25d0687a | 23482 | |
e6cc62c6 VS |
23483 | # Guillermo Gomez says -lposix is necessary on A/UX. |
23484 | echo "$as_me:$LINENO: checking for remove" >&5 | |
23485 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
23486 | if test "${ac_cv_func_remove+set}" = set; then | |
23487 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23488 | else | |
23489 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
23490 | /* confdefs.h. */ |
23491 | _ACEOF | |
23492 | cat confdefs.h >>conftest.$ac_ext | |
23493 | cat >>conftest.$ac_ext <<_ACEOF | |
23494 | /* end confdefs.h. */ | |
eea650d8 VS |
23495 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
23496 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
23497 | #define remove innocuous_remove | |
23498 | ||
90dd450c | 23499 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
23500 | which can conflict with char remove (); below. |
23501 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23502 | <limits.h> exists even on freestanding compilers. */ | |
eea650d8 | 23503 | |
e6cc62c6 VS |
23504 | #ifdef __STDC__ |
23505 | # include <limits.h> | |
23506 | #else | |
23507 | # include <assert.h> | |
23508 | #endif | |
eea650d8 VS |
23509 | |
23510 | #undef remove | |
23511 | ||
90dd450c | 23512 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23513 | #ifdef __cplusplus |
23514 | extern "C" | |
23515 | { | |
23516 | #endif | |
90dd450c | 23517 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23518 | builtin and then its argument prototype would still apply. */ |
23519 | char remove (); | |
90dd450c VZ |
23520 | /* The GNU C library defines this for functions which it implements |
23521 | to always fail with ENOSYS. Some functions are actually named | |
23522 | something starting with __ and the normal name is an alias. */ | |
23523 | #if defined (__stub_remove) || defined (__stub___remove) | |
23524 | choke me | |
23525 | #else | |
e6cc62c6 VS |
23526 | char (*f) () = remove; |
23527 | #endif | |
23528 | #ifdef __cplusplus | |
23529 | } | |
90dd450c | 23530 | #endif |
55e80573 | 23531 | |
e6cc62c6 VS |
23532 | int |
23533 | main () | |
23534 | { | |
23535 | return f != remove; | |
23536 | ; | |
23537 | return 0; | |
23538 | } | |
23539 | _ACEOF | |
23540 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23541 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 23542 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 23543 | ac_status=$? |
eea650d8 VS |
23544 | grep -v '^ *+' conftest.er1 >conftest.err |
23545 | rm -f conftest.er1 | |
23546 | cat conftest.err >&5 | |
e6cc62c6 VS |
23547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23548 | (exit $ac_status); } && | |
eea650d8 VS |
23549 | { ac_try='test -z "$ac_c_werror_flag" |
23550 | || test ! -s conftest.err' | |
23551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23552 | (eval $ac_try) 2>&5 | |
23553 | ac_status=$? | |
23554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23555 | (exit $ac_status); }; } && | |
23556 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
23557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23558 | (eval $ac_try) 2>&5 | |
23559 | ac_status=$? | |
23560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23561 | (exit $ac_status); }; }; then | |
23562 | ac_cv_func_remove=yes | |
23563 | else | |
23564 | echo "$as_me: failed program was:" >&5 | |
23565 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23566 | ||
23567 | ac_cv_func_remove=no | |
23568 | fi | |
eea650d8 VS |
23569 | rm -f conftest.err conftest.$ac_objext \ |
23570 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
23571 | fi |
23572 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
23573 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
10f2d63a | 23574 | |
90dd450c | 23575 | if test $ac_cv_func_remove = no; then |
e6cc62c6 VS |
23576 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
23577 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
23578 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
23579 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 23580 | else |
e6cc62c6 | 23581 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 23582 | LIBS="-lposix $LIBS" |
e6cc62c6 | 23583 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
23584 | /* confdefs.h. */ |
23585 | _ACEOF | |
23586 | cat confdefs.h >>conftest.$ac_ext | |
23587 | cat >>conftest.$ac_ext <<_ACEOF | |
23588 | /* end confdefs.h. */ | |
23589 | ||
90dd450c | 23590 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23591 | #ifdef __cplusplus |
23592 | extern "C" | |
23593 | #endif | |
90dd450c | 23594 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23595 | builtin and then its argument prototype would still apply. */ |
23596 | char remove (); | |
23597 | int | |
23598 | main () | |
23599 | { | |
23600 | remove (); | |
23601 | ; | |
23602 | return 0; | |
23603 | } | |
23604 | _ACEOF | |
23605 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23606 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 23607 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 23608 | ac_status=$? |
eea650d8 VS |
23609 | grep -v '^ *+' conftest.er1 >conftest.err |
23610 | rm -f conftest.er1 | |
23611 | cat conftest.err >&5 | |
e6cc62c6 VS |
23612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23613 | (exit $ac_status); } && | |
eea650d8 VS |
23614 | { ac_try='test -z "$ac_c_werror_flag" |
23615 | || test ! -s conftest.err' | |
23616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23617 | (eval $ac_try) 2>&5 | |
23618 | ac_status=$? | |
23619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23620 | (exit $ac_status); }; } && | |
23621 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
23622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23623 | (eval $ac_try) 2>&5 | |
23624 | ac_status=$? | |
23625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23626 | (exit $ac_status); }; }; then | |
23627 | ac_cv_lib_posix_remove=yes | |
23628 | else | |
23629 | echo "$as_me: failed program was:" >&5 | |
23630 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23631 | ||
23632 | ac_cv_lib_posix_remove=no | |
23633 | fi | |
eea650d8 VS |
23634 | rm -f conftest.err conftest.$ac_objext \ |
23635 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
23636 | LIBS=$ac_check_lib_save_LIBS |
23637 | fi | |
23638 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
23639 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
23640 | if test $ac_cv_lib_posix_remove = yes; then | |
90dd450c | 23641 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
90dd450c | 23642 | fi |
f6bcfd97 | 23643 | |
6fa882bd RR |
23644 | fi |
23645 | ||
90dd450c | 23646 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
e6cc62c6 VS |
23647 | echo "$as_me:$LINENO: checking for shmat" >&5 |
23648 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
23649 | if test "${ac_cv_func_shmat+set}" = set; then | |
23650 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23651 | else | |
23652 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
23653 | /* confdefs.h. */ |
23654 | _ACEOF | |
23655 | cat confdefs.h >>conftest.$ac_ext | |
23656 | cat >>conftest.$ac_ext <<_ACEOF | |
23657 | /* end confdefs.h. */ | |
eea650d8 VS |
23658 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
23659 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
23660 | #define shmat innocuous_shmat | |
23661 | ||
90dd450c | 23662 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
23663 | which can conflict with char shmat (); below. |
23664 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23665 | <limits.h> exists even on freestanding compilers. */ | |
eea650d8 | 23666 | |
e6cc62c6 VS |
23667 | #ifdef __STDC__ |
23668 | # include <limits.h> | |
23669 | #else | |
23670 | # include <assert.h> | |
23671 | #endif | |
eea650d8 VS |
23672 | |
23673 | #undef shmat | |
23674 | ||
90dd450c | 23675 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23676 | #ifdef __cplusplus |
23677 | extern "C" | |
23678 | { | |
23679 | #endif | |
90dd450c | 23680 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23681 | builtin and then its argument prototype would still apply. */ |
23682 | char shmat (); | |
90dd450c VZ |
23683 | /* The GNU C library defines this for functions which it implements |
23684 | to always fail with ENOSYS. Some functions are actually named | |
23685 | something starting with __ and the normal name is an alias. */ | |
23686 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
23687 | choke me | |
23688 | #else | |
e6cc62c6 VS |
23689 | char (*f) () = shmat; |
23690 | #endif | |
23691 | #ifdef __cplusplus | |
23692 | } | |
90dd450c | 23693 | #endif |
10f2d63a | 23694 | |
e6cc62c6 VS |
23695 | int |
23696 | main () | |
23697 | { | |
23698 | return f != shmat; | |
23699 | ; | |
23700 | return 0; | |
23701 | } | |
23702 | _ACEOF | |
23703 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23704 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 23705 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 23706 | ac_status=$? |
eea650d8 VS |
23707 | grep -v '^ *+' conftest.er1 >conftest.err |
23708 | rm -f conftest.er1 | |
23709 | cat conftest.err >&5 | |
e6cc62c6 VS |
23710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23711 | (exit $ac_status); } && | |
eea650d8 VS |
23712 | { ac_try='test -z "$ac_c_werror_flag" |
23713 | || test ! -s conftest.err' | |
23714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23715 | (eval $ac_try) 2>&5 | |
23716 | ac_status=$? | |
23717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23718 | (exit $ac_status); }; } && | |
23719 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
23720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23721 | (eval $ac_try) 2>&5 | |
23722 | ac_status=$? | |
23723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23724 | (exit $ac_status); }; }; then | |
23725 | ac_cv_func_shmat=yes | |
23726 | else | |
23727 | echo "$as_me: failed program was:" >&5 | |
23728 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23729 | ||
23730 | ac_cv_func_shmat=no | |
23731 | fi | |
eea650d8 VS |
23732 | rm -f conftest.err conftest.$ac_objext \ |
23733 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
23734 | fi |
23735 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
23736 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
d08b457b | 23737 | |
90dd450c | 23738 | if test $ac_cv_func_shmat = no; then |
e6cc62c6 VS |
23739 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
23740 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
23741 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
23742 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d08b457b | 23743 | else |
e6cc62c6 | 23744 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 23745 | LIBS="-lipc $LIBS" |
e6cc62c6 | 23746 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
23747 | /* confdefs.h. */ |
23748 | _ACEOF | |
23749 | cat confdefs.h >>conftest.$ac_ext | |
23750 | cat >>conftest.$ac_ext <<_ACEOF | |
23751 | /* end confdefs.h. */ | |
23752 | ||
8284b0c5 | 23753 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23754 | #ifdef __cplusplus |
23755 | extern "C" | |
23756 | #endif | |
90dd450c | 23757 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23758 | builtin and then its argument prototype would still apply. */ |
23759 | char shmat (); | |
23760 | int | |
23761 | main () | |
23762 | { | |
23763 | shmat (); | |
23764 | ; | |
23765 | return 0; | |
23766 | } | |
23767 | _ACEOF | |
23768 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23769 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 23770 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 23771 | ac_status=$? |
eea650d8 VS |
23772 | grep -v '^ *+' conftest.er1 >conftest.err |
23773 | rm -f conftest.er1 | |
23774 | cat conftest.err >&5 | |
e6cc62c6 VS |
23775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23776 | (exit $ac_status); } && | |
eea650d8 VS |
23777 | { ac_try='test -z "$ac_c_werror_flag" |
23778 | || test ! -s conftest.err' | |
23779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23780 | (eval $ac_try) 2>&5 | |
23781 | ac_status=$? | |
23782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23783 | (exit $ac_status); }; } && | |
23784 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
23785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23786 | (eval $ac_try) 2>&5 | |
23787 | ac_status=$? | |
23788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23789 | (exit $ac_status); }; }; then | |
23790 | ac_cv_lib_ipc_shmat=yes | |
23791 | else | |
23792 | echo "$as_me: failed program was:" >&5 | |
23793 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23794 | ||
23795 | ac_cv_lib_ipc_shmat=no | |
23796 | fi | |
eea650d8 VS |
23797 | rm -f conftest.err conftest.$ac_objext \ |
23798 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
23799 | LIBS=$ac_check_lib_save_LIBS |
23800 | fi | |
23801 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
23802 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
23803 | if test $ac_cv_lib_ipc_shmat = yes; then | |
90dd450c | 23804 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
d08b457b GD |
23805 | fi |
23806 | ||
d558c907 | 23807 | fi |
90dd450c | 23808 | fi |
3a922bb4 | 23809 | |
90dd450c | 23810 | # Check for libraries that X11R6 Xt/Xaw programs need. |
e6cc62c6 | 23811 | ac_save_LDFLAGS=$LDFLAGS |
90dd450c VZ |
23812 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
23813 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
23814 | # check for ICE first), but we must link in the order -lSM -lICE or | |
23815 | # we get undefined symbols. So assume we have SM if we have ICE. | |
23816 | # These have to be linked with before -lX11, unlike the other | |
23817 | # libraries we check for below, so use a different variable. | |
e6cc62c6 VS |
23818 | # John Interrante, Karl Berry |
23819 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
23820 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
23821 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
23822 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23823 | else | |
23824 | ac_check_lib_save_LIBS=$LIBS | |
f09359cf | 23825 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
e6cc62c6 | 23826 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
23827 | /* confdefs.h. */ |
23828 | _ACEOF | |
23829 | cat confdefs.h >>conftest.$ac_ext | |
23830 | cat >>conftest.$ac_ext <<_ACEOF | |
23831 | /* end confdefs.h. */ | |
23832 | ||
90dd450c | 23833 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23834 | #ifdef __cplusplus |
23835 | extern "C" | |
23836 | #endif | |
90dd450c | 23837 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23838 | builtin and then its argument prototype would still apply. */ |
23839 | char IceConnectionNumber (); | |
23840 | int | |
23841 | main () | |
23842 | { | |
23843 | IceConnectionNumber (); | |
23844 | ; | |
23845 | return 0; | |
23846 | } | |
23847 | _ACEOF | |
23848 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23849 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 23850 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 23851 | ac_status=$? |
eea650d8 VS |
23852 | grep -v '^ *+' conftest.er1 >conftest.err |
23853 | rm -f conftest.er1 | |
23854 | cat conftest.err >&5 | |
e6cc62c6 VS |
23855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23856 | (exit $ac_status); } && | |
eea650d8 VS |
23857 | { ac_try='test -z "$ac_c_werror_flag" |
23858 | || test ! -s conftest.err' | |
23859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23860 | (eval $ac_try) 2>&5 | |
23861 | ac_status=$? | |
23862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23863 | (exit $ac_status); }; } && | |
23864 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
23865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23866 | (eval $ac_try) 2>&5 | |
23867 | ac_status=$? | |
23868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23869 | (exit $ac_status); }; }; then | |
23870 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
23871 | else | |
23872 | echo "$as_me: failed program was:" >&5 | |
23873 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23874 | ||
23875 | ac_cv_lib_ICE_IceConnectionNumber=no | |
23876 | fi | |
eea650d8 VS |
23877 | rm -f conftest.err conftest.$ac_objext \ |
23878 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
23879 | LIBS=$ac_check_lib_save_LIBS |
23880 | fi | |
23881 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
23882 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
23883 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
90dd450c | 23884 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
9cfadba2 | 23885 | fi |
10f2d63a | 23886 | |
e6cc62c6 | 23887 | LDFLAGS=$ac_save_LDFLAGS |
90dd450c VZ |
23888 | |
23889 | fi | |
23890 | ||
8284b0c5 | 23891 | |
90dd450c | 23892 | if test "$no_x" = "yes"; then |
e6cc62c6 VS |
23893 | { { echo "$as_me:$LINENO: error: X11 not found" >&5 |
23894 | echo "$as_me: error: X11 not found" >&2;} | |
23895 | { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; } | |
90dd450c VZ |
23896 | fi |
23897 | ||
23898 | GUI_TK_LIBRARY="$X_LIBS" | |
23899 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
23900 | AFMINSTALL=afminstall | |
23901 | COMPILED_X_PROGRAM=0 | |
23902 | ||
21d1c967 | 23903 | if test "$wxUSE_NANOX" = "yes"; then |
e6cc62c6 VS |
23904 | echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5 |
23905 | echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6 | |
21d1c967 | 23906 | if test "x$MICROWIN" = x ; then |
e6cc62c6 VS |
23907 | echo "$as_me:$LINENO: result: not found" >&5 |
23908 | echo "${ECHO_T}not found" >&6 | |
23909 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5 | |
23910 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;} | |
23911 | { (exit 1); exit 1; }; } | |
90dd450c | 23912 | else |
e6cc62c6 VS |
23913 | echo "$as_me:$LINENO: result: $MICROWIN" >&5 |
23914 | echo "${ECHO_T}$MICROWIN" >&6 | |
23915 | cat >>confdefs.h <<\_ACEOF | |
21d1c967 | 23916 | #define wxUSE_NANOX 1 |
e6cc62c6 | 23917 | _ACEOF |
21d1c967 | 23918 | |
90dd450c VZ |
23919 | fi |
23920 | fi | |
23921 | ||
2b5f62a0 | 23922 | if test "$wxUSE_UNICODE" = "yes"; then |
e6cc62c6 | 23923 | |
2b5f62a0 | 23924 | succeeded=no |
90dd450c | 23925 | |
2b5f62a0 VZ |
23926 | if test -z "$PKG_CONFIG"; then |
23927 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
23928 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
23929 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
23930 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
23931 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
23932 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 23933 | else |
e6cc62c6 VS |
23934 | case $PKG_CONFIG in |
23935 | [\\/]* | ?:[\\/]*) | |
2b5f62a0 VZ |
23936 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
23937 | ;; | |
2b5f62a0 | 23938 | *) |
e6cc62c6 VS |
23939 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
23940 | for as_dir in $PATH | |
23941 | do | |
23942 | IFS=$as_save_IFS | |
23943 | test -z "$as_dir" && as_dir=. | |
23944 | for ac_exec_ext in '' $ac_executable_extensions; do | |
23945 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
23946 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
23947 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
23948 | break 2 | |
23949 | fi | |
23950 | done | |
23951 | done | |
23952 | ||
2b5f62a0 VZ |
23953 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
23954 | ;; | |
23955 | esac | |
23956 | fi | |
e6cc62c6 VS |
23957 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
23958 | ||
2b5f62a0 | 23959 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
23960 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
23961 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
2b5f62a0 | 23962 | else |
e6cc62c6 VS |
23963 | echo "$as_me:$LINENO: result: no" >&5 |
23964 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
23965 | fi |
23966 | ||
23967 | fi | |
23968 | ||
23969 | if test "$PKG_CONFIG" = "no" ; then | |
23970 | echo "*** The pkg-config script could not be found. Make sure it is" | |
23971 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
23972 | echo "*** to the full path to pkg-config." | |
23973 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
23974 | else | |
23975 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
23976 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
e6cc62c6 VS |
23977 | echo "$as_me:$LINENO: checking for pangox" >&5 |
23978 | echo $ECHO_N "checking for pangox... $ECHO_C" >&6 | |
2b5f62a0 VZ |
23979 | |
23980 | if $PKG_CONFIG --exists "pangox" ; then | |
e6cc62c6 VS |
23981 | echo "$as_me:$LINENO: result: yes" >&5 |
23982 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 VZ |
23983 | succeeded=yes |
23984 | ||
e6cc62c6 VS |
23985 | echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5 |
23986 | echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6 | |
2b5f62a0 | 23987 | PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"` |
e6cc62c6 VS |
23988 | echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5 |
23989 | echo "${ECHO_T}$PANGOX_CFLAGS" >&6 | |
2b5f62a0 | 23990 | |
e6cc62c6 VS |
23991 | echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5 |
23992 | echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6 | |
2b5f62a0 | 23993 | PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"` |
e6cc62c6 VS |
23994 | echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5 |
23995 | echo "${ECHO_T}$PANGOX_LIBS" >&6 | |
2b5f62a0 VZ |
23996 | else |
23997 | PANGOX_CFLAGS="" | |
23998 | PANGOX_LIBS="" | |
e6cc62c6 | 23999 | ## If we have a custom action on failure, don't print errors, but |
2b5f62a0 VZ |
24000 | ## do set a variable so people can do so. |
24001 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
e6cc62c6 | 24002 | |
2b5f62a0 VZ |
24003 | fi |
24004 | ||
e6cc62c6 VS |
24005 | |
24006 | ||
2b5f62a0 VZ |
24007 | else |
24008 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
24009 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
24010 | fi | |
24011 | fi | |
24012 | ||
24013 | if test $succeeded = yes; then | |
e6cc62c6 | 24014 | |
2b5f62a0 | 24015 | CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS" |
c74dc163 | 24016 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS" |
e6cc62c6 | 24017 | |
2b5f62a0 | 24018 | else |
e6cc62c6 VS |
24019 | |
24020 | { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5 | |
24021 | echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;} | |
24022 | { (exit 1); exit 1; }; } | |
24023 | ||
24024 | ||
2b5f62a0 VZ |
24025 | fi |
24026 | ||
e6cc62c6 | 24027 | |
2b5f62a0 VZ |
24028 | succeeded=no |
24029 | ||
24030 | if test -z "$PKG_CONFIG"; then | |
24031 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
24032 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
24033 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
24034 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
24035 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
24036 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2b5f62a0 | 24037 | else |
e6cc62c6 VS |
24038 | case $PKG_CONFIG in |
24039 | [\\/]* | ?:[\\/]*) | |
2b5f62a0 VZ |
24040 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
24041 | ;; | |
2b5f62a0 | 24042 | *) |
e6cc62c6 VS |
24043 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
24044 | for as_dir in $PATH | |
24045 | do | |
24046 | IFS=$as_save_IFS | |
24047 | test -z "$as_dir" && as_dir=. | |
24048 | for ac_exec_ext in '' $ac_executable_extensions; do | |
24049 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
24050 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
24051 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
24052 | break 2 | |
24053 | fi | |
24054 | done | |
24055 | done | |
24056 | ||
2b5f62a0 VZ |
24057 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
24058 | ;; | |
24059 | esac | |
24060 | fi | |
e6cc62c6 VS |
24061 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
24062 | ||
2b5f62a0 | 24063 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
24064 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
24065 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
2b5f62a0 | 24066 | else |
e6cc62c6 VS |
24067 | echo "$as_me:$LINENO: result: no" >&5 |
24068 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
24069 | fi |
24070 | ||
24071 | fi | |
24072 | ||
24073 | if test "$PKG_CONFIG" = "no" ; then | |
24074 | echo "*** The pkg-config script could not be found. Make sure it is" | |
24075 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
24076 | echo "*** to the full path to pkg-config." | |
24077 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
24078 | else | |
24079 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
24080 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
e6cc62c6 VS |
24081 | echo "$as_me:$LINENO: checking for pangoft2" >&5 |
24082 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
2b5f62a0 VZ |
24083 | |
24084 | if $PKG_CONFIG --exists "pangoft2" ; then | |
e6cc62c6 VS |
24085 | echo "$as_me:$LINENO: result: yes" >&5 |
24086 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 VZ |
24087 | succeeded=yes |
24088 | ||
e6cc62c6 VS |
24089 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 |
24090 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
2b5f62a0 | 24091 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` |
e6cc62c6 VS |
24092 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 |
24093 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
2b5f62a0 | 24094 | |
e6cc62c6 VS |
24095 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 |
24096 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
2b5f62a0 | 24097 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` |
e6cc62c6 VS |
24098 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 |
24099 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
2b5f62a0 VZ |
24100 | else |
24101 | PANGOFT2_CFLAGS="" | |
24102 | PANGOFT2_LIBS="" | |
e6cc62c6 | 24103 | ## If we have a custom action on failure, don't print errors, but |
2b5f62a0 VZ |
24104 | ## do set a variable so people can do so. |
24105 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
e6cc62c6 | 24106 | |
2b5f62a0 VZ |
24107 | fi |
24108 | ||
e6cc62c6 VS |
24109 | |
24110 | ||
2b5f62a0 VZ |
24111 | else |
24112 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
24113 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
24114 | fi | |
24115 | fi | |
24116 | ||
24117 | if test $succeeded = yes; then | |
e6cc62c6 | 24118 | |
2b5f62a0 | 24119 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" |
c74dc163 | 24120 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" |
e6cc62c6 | 24121 | |
2b5f62a0 | 24122 | else |
e6cc62c6 VS |
24123 | |
24124 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
24125 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
2b5f62a0 | 24126 | wxUSE_PRINTING_ARCHITECTURE="no" |
e6cc62c6 VS |
24127 | |
24128 | ||
2b5f62a0 VZ |
24129 | fi |
24130 | ||
e6cc62c6 | 24131 | |
2b5f62a0 VZ |
24132 | succeeded=no |
24133 | ||
24134 | if test -z "$PKG_CONFIG"; then | |
24135 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
24136 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
24137 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
24138 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
24139 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
24140 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2b5f62a0 | 24141 | else |
e6cc62c6 VS |
24142 | case $PKG_CONFIG in |
24143 | [\\/]* | ?:[\\/]*) | |
2b5f62a0 VZ |
24144 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
24145 | ;; | |
2b5f62a0 | 24146 | *) |
e6cc62c6 VS |
24147 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
24148 | for as_dir in $PATH | |
24149 | do | |
24150 | IFS=$as_save_IFS | |
24151 | test -z "$as_dir" && as_dir=. | |
24152 | for ac_exec_ext in '' $ac_executable_extensions; do | |
24153 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
24154 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
24155 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
24156 | break 2 | |
24157 | fi | |
24158 | done | |
24159 | done | |
24160 | ||
2b5f62a0 VZ |
24161 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
24162 | ;; | |
24163 | esac | |
24164 | fi | |
e6cc62c6 VS |
24165 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
24166 | ||
2b5f62a0 | 24167 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
24168 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
24169 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
2b5f62a0 | 24170 | else |
e6cc62c6 VS |
24171 | echo "$as_me:$LINENO: result: no" >&5 |
24172 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
24173 | fi |
24174 | ||
24175 | fi | |
24176 | ||
24177 | if test "$PKG_CONFIG" = "no" ; then | |
24178 | echo "*** The pkg-config script could not be found. Make sure it is" | |
24179 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
24180 | echo "*** to the full path to pkg-config." | |
24181 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
24182 | else | |
24183 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
24184 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
e6cc62c6 VS |
24185 | echo "$as_me:$LINENO: checking for pangoxft" >&5 |
24186 | echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6 | |
2b5f62a0 VZ |
24187 | |
24188 | if $PKG_CONFIG --exists "pangoxft" ; then | |
e6cc62c6 VS |
24189 | echo "$as_me:$LINENO: result: yes" >&5 |
24190 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 VZ |
24191 | succeeded=yes |
24192 | ||
e6cc62c6 VS |
24193 | echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5 |
24194 | echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6 | |
2b5f62a0 | 24195 | PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"` |
e6cc62c6 VS |
24196 | echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5 |
24197 | echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6 | |
2b5f62a0 | 24198 | |
e6cc62c6 VS |
24199 | echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5 |
24200 | echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6 | |
2b5f62a0 | 24201 | PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"` |
e6cc62c6 VS |
24202 | echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5 |
24203 | echo "${ECHO_T}$PANGOXFT_LIBS" >&6 | |
2b5f62a0 VZ |
24204 | else |
24205 | PANGOXFT_CFLAGS="" | |
24206 | PANGOXFT_LIBS="" | |
e6cc62c6 | 24207 | ## If we have a custom action on failure, don't print errors, but |
2b5f62a0 VZ |
24208 | ## do set a variable so people can do so. |
24209 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
e6cc62c6 | 24210 | |
2b5f62a0 VZ |
24211 | fi |
24212 | ||
e6cc62c6 VS |
24213 | |
24214 | ||
2b5f62a0 VZ |
24215 | else |
24216 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
24217 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
24218 | fi | |
24219 | fi | |
24220 | ||
24221 | if test $succeeded = yes; then | |
e6cc62c6 | 24222 | |
2b5f62a0 | 24223 | CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS" |
c74dc163 | 24224 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS" |
e6cc62c6 | 24225 | |
2b5f62a0 | 24226 | else |
e6cc62c6 VS |
24227 | |
24228 | { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5 | |
24229 | echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;} | |
24230 | ||
24231 | ||
2b5f62a0 VZ |
24232 | fi |
24233 | ||
24234 | fi | |
24235 | ||
24236 | wxUSE_UNIVERSAL="yes" | |
24237 | ||
24238 | if test "$wxUSE_NANOX" = "yes"; then | |
24239 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
fe0895cf | 24240 | 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" |
2b5f62a0 VZ |
24241 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" |
24242 | else | |
93a543aa | 24243 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11" |
2b5f62a0 VZ |
24244 | fi |
24245 | ||
24246 | TOOLKIT_VPATH="\${top_srcdir}/src/x11" | |
24247 | TOOLKIT=X11 | |
24248 | GUIDIST=X11_DIST | |
24249 | fi | |
24250 | ||
21d1c967 GD |
24251 | if test "$wxUSE_MOTIF" = 1; then |
24252 | if test "$no_x" = yes; then | |
24253 | # Not all programs may use this symbol, but it does not hurt to define it. | |
e6cc62c6 VS |
24254 | |
24255 | cat >>confdefs.h <<\_ACEOF | |
21d1c967 | 24256 | #define X_DISPLAY_MISSING 1 |
e6cc62c6 | 24257 | _ACEOF |
21d1c967 GD |
24258 | |
24259 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
24260 | else | |
24261 | if test -n "$x_includes"; then | |
24262 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
90dd450c VZ |
24263 | fi |
24264 | ||
21d1c967 GD |
24265 | # It would also be nice to do this for all -L options, not just this one. |
24266 | if test -n "$x_libraries"; then | |
24267 | X_LIBS="$X_LIBS -L$x_libraries" | |
24268 | # For Solaris; some versions of Sun CC require a space after -R and | |
24269 | # others require no space. Words are not sufficient . . . . | |
e6cc62c6 | 24270 | case `(uname -sr) 2>/dev/null` in |
21d1c967 | 24271 | "SunOS 5"*) |
e6cc62c6 VS |
24272 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
24273 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
24274 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
24275 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
24276 | /* confdefs.h. */ |
24277 | _ACEOF | |
24278 | cat confdefs.h >>conftest.$ac_ext | |
24279 | cat >>conftest.$ac_ext <<_ACEOF | |
24280 | /* end confdefs.h. */ | |
24281 | ||
24282 | int | |
24283 | main () | |
24284 | { | |
21d1c967 | 24285 | |
e6cc62c6 VS |
24286 | ; |
24287 | return 0; | |
24288 | } | |
24289 | _ACEOF | |
24290 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24291 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 24292 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 24293 | ac_status=$? |
eea650d8 VS |
24294 | grep -v '^ *+' conftest.er1 >conftest.err |
24295 | rm -f conftest.er1 | |
24296 | cat conftest.err >&5 | |
e6cc62c6 VS |
24297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24298 | (exit $ac_status); } && | |
eea650d8 VS |
24299 | { ac_try='test -z "$ac_c_werror_flag" |
24300 | || test ! -s conftest.err' | |
24301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24302 | (eval $ac_try) 2>&5 | |
24303 | ac_status=$? | |
24304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24305 | (exit $ac_status); }; } && | |
24306 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
24307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24308 | (eval $ac_try) 2>&5 | |
24309 | ac_status=$? | |
24310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24311 | (exit $ac_status); }; }; then | |
21d1c967 | 24312 | ac_R_nospace=yes |
698dcdb6 | 24313 | else |
e6cc62c6 VS |
24314 | echo "$as_me: failed program was:" >&5 |
24315 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24316 | ||
24317 | ac_R_nospace=no | |
10f2d63a | 24318 | fi |
eea650d8 VS |
24319 | rm -f conftest.err conftest.$ac_objext \ |
24320 | conftest$ac_exeext conftest.$ac_ext | |
21d1c967 | 24321 | if test $ac_R_nospace = yes; then |
e6cc62c6 VS |
24322 | echo "$as_me:$LINENO: result: no" >&5 |
24323 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
24324 | X_LIBS="$X_LIBS -R$x_libraries" |
24325 | else | |
24326 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
e6cc62c6 | 24327 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
24328 | /* confdefs.h. */ |
24329 | _ACEOF | |
24330 | cat confdefs.h >>conftest.$ac_ext | |
24331 | cat >>conftest.$ac_ext <<_ACEOF | |
24332 | /* end confdefs.h. */ | |
24333 | ||
24334 | int | |
24335 | main () | |
24336 | { | |
f0c87536 | 24337 | |
e6cc62c6 VS |
24338 | ; |
24339 | return 0; | |
24340 | } | |
24341 | _ACEOF | |
24342 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24343 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 24344 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 24345 | ac_status=$? |
eea650d8 VS |
24346 | grep -v '^ *+' conftest.er1 >conftest.err |
24347 | rm -f conftest.er1 | |
24348 | cat conftest.err >&5 | |
e6cc62c6 VS |
24349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24350 | (exit $ac_status); } && | |
eea650d8 VS |
24351 | { ac_try='test -z "$ac_c_werror_flag" |
24352 | || test ! -s conftest.err' | |
24353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24354 | (eval $ac_try) 2>&5 | |
24355 | ac_status=$? | |
24356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24357 | (exit $ac_status); }; } && | |
24358 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
24359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24360 | (eval $ac_try) 2>&5 | |
24361 | ac_status=$? | |
24362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24363 | (exit $ac_status); }; }; then | |
21d1c967 GD |
24364 | ac_R_space=yes |
24365 | else | |
e6cc62c6 VS |
24366 | echo "$as_me: failed program was:" >&5 |
24367 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24368 | ||
24369 | ac_R_space=no | |
21d1c967 | 24370 | fi |
eea650d8 VS |
24371 | rm -f conftest.err conftest.$ac_objext \ |
24372 | conftest$ac_exeext conftest.$ac_ext | |
21d1c967 | 24373 | if test $ac_R_space = yes; then |
e6cc62c6 VS |
24374 | echo "$as_me:$LINENO: result: yes" >&5 |
24375 | echo "${ECHO_T}yes" >&6 | |
21d1c967 GD |
24376 | X_LIBS="$X_LIBS -R $x_libraries" |
24377 | else | |
e6cc62c6 VS |
24378 | echo "$as_me:$LINENO: result: neither works" >&5 |
24379 | echo "${ECHO_T}neither works" >&6 | |
21d1c967 GD |
24380 | fi |
24381 | fi | |
e6cc62c6 | 24382 | LIBS=$ac_xsave_LIBS |
21d1c967 GD |
24383 | esac |
24384 | fi | |
90dd450c | 24385 | |
21d1c967 GD |
24386 | # Check for system-dependent libraries X programs must link with. |
24387 | # Do this before checking for the system-independent R6 libraries | |
24388 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
24389 | ||
24390 | if test "$ISC" = yes; then | |
24391 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
24392 | else | |
e6cc62c6 VS |
24393 | # Martyn Johnson says this is needed for Ultrix, if the X |
24394 | # libraries were built with DECnet support. And Karl Berry says | |
21d1c967 | 24395 | # the Alpha needs dnet_stub (dnet does not exist). |
e6cc62c6 VS |
24396 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
24397 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
24398 | /* confdefs.h. */ |
24399 | _ACEOF | |
24400 | cat confdefs.h >>conftest.$ac_ext | |
24401 | cat >>conftest.$ac_ext <<_ACEOF | |
24402 | /* end confdefs.h. */ | |
24403 | ||
247f5006 | 24404 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
24405 | #ifdef __cplusplus |
24406 | extern "C" | |
24407 | #endif | |
247f5006 | 24408 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
24409 | builtin and then its argument prototype would still apply. */ |
24410 | char XOpenDisplay (); | |
24411 | int | |
24412 | main () | |
24413 | { | |
24414 | XOpenDisplay (); | |
24415 | ; | |
24416 | return 0; | |
24417 | } | |
24418 | _ACEOF | |
24419 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24420 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 24421 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 24422 | ac_status=$? |
eea650d8 VS |
24423 | grep -v '^ *+' conftest.er1 >conftest.err |
24424 | rm -f conftest.er1 | |
24425 | cat conftest.err >&5 | |
e6cc62c6 VS |
24426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24427 | (exit $ac_status); } && | |
eea650d8 VS |
24428 | { ac_try='test -z "$ac_c_werror_flag" |
24429 | || test ! -s conftest.err' | |
24430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24431 | (eval $ac_try) 2>&5 | |
24432 | ac_status=$? | |
24433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24434 | (exit $ac_status); }; } && | |
24435 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
24436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24437 | (eval $ac_try) 2>&5 | |
24438 | ac_status=$? | |
24439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24440 | (exit $ac_status); }; }; then | |
24441 | : | |
24442 | else | |
24443 | echo "$as_me: failed program was:" >&5 | |
24444 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 24445 | |
e6cc62c6 VS |
24446 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
24447 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
24448 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
24449 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 24450 | else |
e6cc62c6 VS |
24451 | ac_check_lib_save_LIBS=$LIBS |
24452 | LIBS="-ldnet $LIBS" | |
24453 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
24454 | /* confdefs.h. */ |
24455 | _ACEOF | |
24456 | cat confdefs.h >>conftest.$ac_ext | |
24457 | cat >>conftest.$ac_ext <<_ACEOF | |
24458 | /* end confdefs.h. */ | |
a0b9e27f | 24459 | |
e6cc62c6 VS |
24460 | /* Override any gcc2 internal prototype to avoid an error. */ |
24461 | #ifdef __cplusplus | |
24462 | extern "C" | |
24463 | #endif | |
24464 | /* We use char because int might match the return type of a gcc2 | |
24465 | builtin and then its argument prototype would still apply. */ | |
24466 | char dnet_ntoa (); | |
24467 | int | |
24468 | main () | |
24469 | { | |
24470 | dnet_ntoa (); | |
24471 | ; | |
24472 | return 0; | |
24473 | } | |
24474 | _ACEOF | |
24475 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24476 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 24477 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 24478 | ac_status=$? |
eea650d8 VS |
24479 | grep -v '^ *+' conftest.er1 >conftest.err |
24480 | rm -f conftest.er1 | |
24481 | cat conftest.err >&5 | |
e6cc62c6 VS |
24482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24483 | (exit $ac_status); } && | |
eea650d8 VS |
24484 | { ac_try='test -z "$ac_c_werror_flag" |
24485 | || test ! -s conftest.err' | |
24486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24487 | (eval $ac_try) 2>&5 | |
24488 | ac_status=$? | |
24489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24490 | (exit $ac_status); }; } && | |
24491 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
24492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24493 | (eval $ac_try) 2>&5 | |
24494 | ac_status=$? | |
24495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24496 | (exit $ac_status); }; }; then | |
24497 | ac_cv_lib_dnet_dnet_ntoa=yes | |
24498 | else | |
24499 | echo "$as_me: failed program was:" >&5 | |
24500 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24501 | ||
24502 | ac_cv_lib_dnet_dnet_ntoa=no | |
24503 | fi | |
eea650d8 VS |
24504 | rm -f conftest.err conftest.$ac_objext \ |
24505 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
24506 | LIBS=$ac_check_lib_save_LIBS |
24507 | fi | |
24508 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
24509 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
24510 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
21d1c967 | 24511 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
0fb0dd83 | 24512 | fi |
0fb0dd83 | 24513 | |
21d1c967 | 24514 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
e6cc62c6 VS |
24515 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
24516 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
24517 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
24518 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 24519 | else |
e6cc62c6 | 24520 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 24521 | LIBS="-ldnet_stub $LIBS" |
e6cc62c6 | 24522 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
24523 | /* confdefs.h. */ |
24524 | _ACEOF | |
24525 | cat confdefs.h >>conftest.$ac_ext | |
24526 | cat >>conftest.$ac_ext <<_ACEOF | |
24527 | /* end confdefs.h. */ | |
24528 | ||
21d1c967 | 24529 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
24530 | #ifdef __cplusplus |
24531 | extern "C" | |
24532 | #endif | |
21d1c967 | 24533 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
24534 | builtin and then its argument prototype would still apply. */ |
24535 | char dnet_ntoa (); | |
24536 | int | |
24537 | main () | |
24538 | { | |
24539 | dnet_ntoa (); | |
24540 | ; | |
24541 | return 0; | |
24542 | } | |
24543 | _ACEOF | |
24544 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24545 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 24546 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 24547 | ac_status=$? |
eea650d8 VS |
24548 | grep -v '^ *+' conftest.er1 >conftest.err |
24549 | rm -f conftest.er1 | |
24550 | cat conftest.err >&5 | |
e6cc62c6 VS |
24551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24552 | (exit $ac_status); } && | |
eea650d8 VS |
24553 | { ac_try='test -z "$ac_c_werror_flag" |
24554 | || test ! -s conftest.err' | |
24555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24556 | (eval $ac_try) 2>&5 | |
24557 | ac_status=$? | |
24558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24559 | (exit $ac_status); }; } && | |
24560 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
24561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24562 | (eval $ac_try) 2>&5 | |
24563 | ac_status=$? | |
24564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24565 | (exit $ac_status); }; }; then | |
24566 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
24567 | else | |
24568 | echo "$as_me: failed program was:" >&5 | |
24569 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24570 | ||
24571 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
24572 | fi | |
eea650d8 VS |
24573 | rm -f conftest.err conftest.$ac_objext \ |
24574 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
24575 | LIBS=$ac_check_lib_save_LIBS |
24576 | fi | |
24577 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
24578 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
24579 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
21d1c967 | 24580 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
90dd450c VZ |
24581 | fi |
24582 | ||
21d1c967 | 24583 | fi |
e6cc62c6 | 24584 | fi |
eea650d8 VS |
24585 | rm -f conftest.err conftest.$ac_objext \ |
24586 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 | 24587 | LIBS="$ac_xsave_LIBS" |
90dd450c | 24588 | |
21d1c967 GD |
24589 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
24590 | # to get the SysV transport functions. | |
e6cc62c6 | 24591 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
21d1c967 GD |
24592 | # needs -lnsl. |
24593 | # The nsl library prevents programs from opening the X display | |
e6cc62c6 VS |
24594 | # on Irix 5.2, according to T.E. Dickey. |
24595 | # The functions gethostbyname, getservbyname, and inet_addr are | |
24596 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
24597 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
24598 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
24599 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
24600 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24601 | else | |
24602 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
24603 | /* confdefs.h. */ |
24604 | _ACEOF | |
24605 | cat confdefs.h >>conftest.$ac_ext | |
24606 | cat >>conftest.$ac_ext <<_ACEOF | |
24607 | /* end confdefs.h. */ | |
eea650d8 VS |
24608 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
24609 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24610 | #define gethostbyname innocuous_gethostbyname | |
24611 | ||
21d1c967 | 24612 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
24613 | which can conflict with char gethostbyname (); below. |
24614 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24615 | <limits.h> exists even on freestanding compilers. */ | |
eea650d8 | 24616 | |
e6cc62c6 VS |
24617 | #ifdef __STDC__ |
24618 | # include <limits.h> | |
24619 | #else | |
24620 | # include <assert.h> | |
24621 | #endif | |
eea650d8 VS |
24622 | |
24623 | #undef gethostbyname | |
24624 | ||
21d1c967 | 24625 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
24626 | #ifdef __cplusplus |
24627 | extern "C" | |
24628 | { | |
24629 | #endif | |
21d1c967 | 24630 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
24631 | builtin and then its argument prototype would still apply. */ |
24632 | char gethostbyname (); | |
21d1c967 GD |
24633 | /* The GNU C library defines this for functions which it implements |
24634 | to always fail with ENOSYS. Some functions are actually named | |
24635 | something starting with __ and the normal name is an alias. */ | |
24636 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
24637 | choke me | |
24638 | #else | |
e6cc62c6 VS |
24639 | char (*f) () = gethostbyname; |
24640 | #endif | |
24641 | #ifdef __cplusplus | |
24642 | } | |
21d1c967 | 24643 | #endif |
90dd450c | 24644 | |
e6cc62c6 VS |
24645 | int |
24646 | main () | |
24647 | { | |
24648 | return f != gethostbyname; | |
24649 | ; | |
24650 | return 0; | |
24651 | } | |
24652 | _ACEOF | |
24653 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24654 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 24655 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 24656 | ac_status=$? |
eea650d8 VS |
24657 | grep -v '^ *+' conftest.er1 >conftest.err |
24658 | rm -f conftest.er1 | |
24659 | cat conftest.err >&5 | |
e6cc62c6 VS |
24660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24661 | (exit $ac_status); } && | |
eea650d8 VS |
24662 | { ac_try='test -z "$ac_c_werror_flag" |
24663 | || test ! -s conftest.err' | |
24664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24665 | (eval $ac_try) 2>&5 | |
24666 | ac_status=$? | |
24667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24668 | (exit $ac_status); }; } && | |
24669 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
24670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24671 | (eval $ac_try) 2>&5 | |
24672 | ac_status=$? | |
24673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24674 | (exit $ac_status); }; }; then | |
24675 | ac_cv_func_gethostbyname=yes | |
24676 | else | |
24677 | echo "$as_me: failed program was:" >&5 | |
24678 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24679 | ||
24680 | ac_cv_func_gethostbyname=no | |
24681 | fi | |
eea650d8 VS |
24682 | rm -f conftest.err conftest.$ac_objext \ |
24683 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
24684 | fi |
24685 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
24686 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
90dd450c | 24687 | |
21d1c967 | 24688 | if test $ac_cv_func_gethostbyname = no; then |
e6cc62c6 VS |
24689 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
24690 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
24691 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
24692 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 24693 | else |
e6cc62c6 | 24694 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 24695 | LIBS="-lnsl $LIBS" |
e6cc62c6 | 24696 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
24697 | /* confdefs.h. */ |
24698 | _ACEOF | |
24699 | cat confdefs.h >>conftest.$ac_ext | |
24700 | cat >>conftest.$ac_ext <<_ACEOF | |
24701 | /* end confdefs.h. */ | |
24702 | ||
21d1c967 | 24703 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
24704 | #ifdef __cplusplus |
24705 | extern "C" | |
24706 | #endif | |
21d1c967 | 24707 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
24708 | builtin and then its argument prototype would still apply. */ |
24709 | char gethostbyname (); | |
24710 | int | |
24711 | main () | |
24712 | { | |
24713 | gethostbyname (); | |
24714 | ; | |
24715 | return 0; | |
24716 | } | |
24717 | _ACEOF | |
24718 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24719 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 24720 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 24721 | ac_status=$? |
eea650d8 VS |
24722 | grep -v '^ *+' conftest.er1 >conftest.err |
24723 | rm -f conftest.er1 | |
24724 | cat conftest.err >&5 | |
e6cc62c6 VS |
24725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24726 | (exit $ac_status); } && | |
eea650d8 VS |
24727 | { ac_try='test -z "$ac_c_werror_flag" |
24728 | || test ! -s conftest.err' | |
24729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24730 | (eval $ac_try) 2>&5 | |
24731 | ac_status=$? | |
24732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24733 | (exit $ac_status); }; } && | |
24734 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
24735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24736 | (eval $ac_try) 2>&5 | |
24737 | ac_status=$? | |
24738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24739 | (exit $ac_status); }; }; then | |
24740 | ac_cv_lib_nsl_gethostbyname=yes | |
24741 | else | |
24742 | echo "$as_me: failed program was:" >&5 | |
24743 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24744 | ||
24745 | ac_cv_lib_nsl_gethostbyname=no | |
24746 | fi | |
eea650d8 VS |
24747 | rm -f conftest.err conftest.$ac_objext \ |
24748 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
24749 | LIBS=$ac_check_lib_save_LIBS |
24750 | fi | |
24751 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
24752 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
24753 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
24754 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
a0b9e27f | 24755 | fi |
247f5006 | 24756 | |
e6cc62c6 | 24757 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
eea650d8 | 24758 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 |
e6cc62c6 VS |
24759 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 |
24760 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
24761 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 24762 | else |
e6cc62c6 VS |
24763 | ac_check_lib_save_LIBS=$LIBS |
24764 | LIBS="-lbsd $LIBS" | |
24765 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
24766 | /* confdefs.h. */ |
24767 | _ACEOF | |
24768 | cat confdefs.h >>conftest.$ac_ext | |
24769 | cat >>conftest.$ac_ext <<_ACEOF | |
24770 | /* end confdefs.h. */ | |
24771 | ||
24772 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24773 | #ifdef __cplusplus | |
24774 | extern "C" | |
24775 | #endif | |
24776 | /* We use char because int might match the return type of a gcc2 | |
24777 | builtin and then its argument prototype would still apply. */ | |
24778 | char gethostbyname (); | |
24779 | int | |
24780 | main () | |
24781 | { | |
24782 | gethostbyname (); | |
24783 | ; | |
24784 | return 0; | |
24785 | } | |
24786 | _ACEOF | |
24787 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24788 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 24789 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 24790 | ac_status=$? |
eea650d8 VS |
24791 | grep -v '^ *+' conftest.er1 >conftest.err |
24792 | rm -f conftest.er1 | |
24793 | cat conftest.err >&5 | |
e6cc62c6 VS |
24794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24795 | (exit $ac_status); } && | |
eea650d8 VS |
24796 | { ac_try='test -z "$ac_c_werror_flag" |
24797 | || test ! -s conftest.err' | |
24798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24799 | (eval $ac_try) 2>&5 | |
24800 | ac_status=$? | |
24801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24802 | (exit $ac_status); }; } && | |
24803 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
24804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24805 | (eval $ac_try) 2>&5 | |
24806 | ac_status=$? | |
24807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24808 | (exit $ac_status); }; }; then | |
24809 | ac_cv_lib_bsd_gethostbyname=yes | |
24810 | else | |
24811 | echo "$as_me: failed program was:" >&5 | |
24812 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24813 | ||
24814 | ac_cv_lib_bsd_gethostbyname=no | |
24815 | fi | |
eea650d8 VS |
24816 | rm -f conftest.err conftest.$ac_objext \ |
24817 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
24818 | LIBS=$ac_check_lib_save_LIBS |
24819 | fi | |
24820 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
24821 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
24822 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
24823 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
21d1c967 | 24824 | fi |
90dd450c | 24825 | |
e6cc62c6 | 24826 | fi |
90dd450c VZ |
24827 | fi |
24828 | ||
21d1c967 GD |
24829 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
24830 | # socket/setsockopt and other routines are undefined under SCO ODT | |
24831 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
e6cc62c6 VS |
24832 | # on later versions), says Simon Leinen: it contains gethostby* |
24833 | # variants that don't use the name server (or something). -lsocket | |
24834 | # must be given before -lnsl if both are needed. We assume that | |
24835 | # if connect needs -lnsl, so does gethostbyname. | |
24836 | echo "$as_me:$LINENO: checking for connect" >&5 | |
24837 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
24838 | if test "${ac_cv_func_connect+set}" = set; then | |
24839 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24840 | else | |
24841 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
24842 | /* confdefs.h. */ |
24843 | _ACEOF | |
24844 | cat confdefs.h >>conftest.$ac_ext | |
24845 | cat >>conftest.$ac_ext <<_ACEOF | |
24846 | /* end confdefs.h. */ | |
eea650d8 VS |
24847 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
24848 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24849 | #define connect innocuous_connect | |
24850 | ||
21d1c967 | 24851 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
24852 | which can conflict with char connect (); below. |
24853 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24854 | <limits.h> exists even on freestanding compilers. */ | |
eea650d8 | 24855 | |
e6cc62c6 VS |
24856 | #ifdef __STDC__ |
24857 | # include <limits.h> | |
24858 | #else | |
24859 | # include <assert.h> | |
24860 | #endif | |
eea650d8 VS |
24861 | |
24862 | #undef connect | |
24863 | ||
21d1c967 | 24864 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
24865 | #ifdef __cplusplus |
24866 | extern "C" | |
24867 | { | |
24868 | #endif | |
21d1c967 | 24869 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
24870 | builtin and then its argument prototype would still apply. */ |
24871 | char connect (); | |
21d1c967 GD |
24872 | /* The GNU C library defines this for functions which it implements |
24873 | to always fail with ENOSYS. Some functions are actually named | |
24874 | something starting with __ and the normal name is an alias. */ | |
24875 | #if defined (__stub_connect) || defined (__stub___connect) | |
24876 | choke me | |
24877 | #else | |
e6cc62c6 VS |
24878 | char (*f) () = connect; |
24879 | #endif | |
24880 | #ifdef __cplusplus | |
24881 | } | |
21d1c967 | 24882 | #endif |
90dd450c | 24883 | |
e6cc62c6 VS |
24884 | int |
24885 | main () | |
24886 | { | |
24887 | return f != connect; | |
24888 | ; | |
24889 | return 0; | |
24890 | } | |
24891 | _ACEOF | |
24892 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24893 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 24894 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 24895 | ac_status=$? |
eea650d8 VS |
24896 | grep -v '^ *+' conftest.er1 >conftest.err |
24897 | rm -f conftest.er1 | |
24898 | cat conftest.err >&5 | |
e6cc62c6 VS |
24899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24900 | (exit $ac_status); } && | |
eea650d8 VS |
24901 | { ac_try='test -z "$ac_c_werror_flag" |
24902 | || test ! -s conftest.err' | |
24903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24904 | (eval $ac_try) 2>&5 | |
24905 | ac_status=$? | |
24906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24907 | (exit $ac_status); }; } && | |
24908 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
24909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24910 | (eval $ac_try) 2>&5 | |
24911 | ac_status=$? | |
24912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24913 | (exit $ac_status); }; }; then | |
24914 | ac_cv_func_connect=yes | |
24915 | else | |
24916 | echo "$as_me: failed program was:" >&5 | |
24917 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24918 | ||
24919 | ac_cv_func_connect=no | |
24920 | fi | |
eea650d8 VS |
24921 | rm -f conftest.err conftest.$ac_objext \ |
24922 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
24923 | fi |
24924 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
24925 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
1f8ae82f | 24926 | |
21d1c967 | 24927 | if test $ac_cv_func_connect = no; then |
e6cc62c6 VS |
24928 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
24929 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
24930 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
24931 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
0fbb762e | 24932 | else |
e6cc62c6 | 24933 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 24934 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
e6cc62c6 | 24935 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
24936 | /* confdefs.h. */ |
24937 | _ACEOF | |
24938 | cat confdefs.h >>conftest.$ac_ext | |
24939 | cat >>conftest.$ac_ext <<_ACEOF | |
24940 | /* end confdefs.h. */ | |
24941 | ||
21d1c967 | 24942 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
24943 | #ifdef __cplusplus |
24944 | extern "C" | |
24945 | #endif | |
21d1c967 | 24946 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
24947 | builtin and then its argument prototype would still apply. */ |
24948 | char connect (); | |
24949 | int | |
24950 | main () | |
24951 | { | |
24952 | connect (); | |
24953 | ; | |
24954 | return 0; | |
24955 | } | |
24956 | _ACEOF | |
24957 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24958 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 24959 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 24960 | ac_status=$? |
eea650d8 VS |
24961 | grep -v '^ *+' conftest.er1 >conftest.err |
24962 | rm -f conftest.er1 | |
24963 | cat conftest.err >&5 | |
e6cc62c6 VS |
24964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24965 | (exit $ac_status); } && | |
eea650d8 VS |
24966 | { ac_try='test -z "$ac_c_werror_flag" |
24967 | || test ! -s conftest.err' | |
24968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24969 | (eval $ac_try) 2>&5 | |
24970 | ac_status=$? | |
24971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24972 | (exit $ac_status); }; } && | |
24973 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
24974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24975 | (eval $ac_try) 2>&5 | |
24976 | ac_status=$? | |
24977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24978 | (exit $ac_status); }; }; then | |
24979 | ac_cv_lib_socket_connect=yes | |
24980 | else | |
24981 | echo "$as_me: failed program was:" >&5 | |
24982 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24983 | ||
24984 | ac_cv_lib_socket_connect=no | |
24985 | fi | |
eea650d8 VS |
24986 | rm -f conftest.err conftest.$ac_objext \ |
24987 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
24988 | LIBS=$ac_check_lib_save_LIBS |
24989 | fi | |
24990 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
24991 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
24992 | if test $ac_cv_lib_socket_connect = yes; then | |
21d1c967 | 24993 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
21d1c967 | 24994 | fi |
90dd450c | 24995 | |
21d1c967 | 24996 | fi |
90dd450c | 24997 | |
e6cc62c6 VS |
24998 | # Guillermo Gomez says -lposix is necessary on A/UX. |
24999 | echo "$as_me:$LINENO: checking for remove" >&5 | |
25000 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
25001 | if test "${ac_cv_func_remove+set}" = set; then | |
25002 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25003 | else | |
25004 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
25005 | /* confdefs.h. */ |
25006 | _ACEOF | |
25007 | cat confdefs.h >>conftest.$ac_ext | |
25008 | cat >>conftest.$ac_ext <<_ACEOF | |
25009 | /* end confdefs.h. */ | |
eea650d8 VS |
25010 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
25011 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25012 | #define remove innocuous_remove | |
25013 | ||
21d1c967 | 25014 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
25015 | which can conflict with char remove (); below. |
25016 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25017 | <limits.h> exists even on freestanding compilers. */ | |
eea650d8 | 25018 | |
e6cc62c6 VS |
25019 | #ifdef __STDC__ |
25020 | # include <limits.h> | |
25021 | #else | |
25022 | # include <assert.h> | |
25023 | #endif | |
eea650d8 VS |
25024 | |
25025 | #undef remove | |
25026 | ||
21d1c967 | 25027 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
25028 | #ifdef __cplusplus |
25029 | extern "C" | |
25030 | { | |
25031 | #endif | |
21d1c967 | 25032 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
25033 | builtin and then its argument prototype would still apply. */ |
25034 | char remove (); | |
21d1c967 GD |
25035 | /* The GNU C library defines this for functions which it implements |
25036 | to always fail with ENOSYS. Some functions are actually named | |
25037 | something starting with __ and the normal name is an alias. */ | |
25038 | #if defined (__stub_remove) || defined (__stub___remove) | |
25039 | choke me | |
25040 | #else | |
e6cc62c6 VS |
25041 | char (*f) () = remove; |
25042 | #endif | |
25043 | #ifdef __cplusplus | |
25044 | } | |
21d1c967 | 25045 | #endif |
90dd450c | 25046 | |
e6cc62c6 VS |
25047 | int |
25048 | main () | |
25049 | { | |
25050 | return f != remove; | |
25051 | ; | |
25052 | return 0; | |
25053 | } | |
25054 | _ACEOF | |
25055 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25056 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 25057 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 25058 | ac_status=$? |
eea650d8 VS |
25059 | grep -v '^ *+' conftest.er1 >conftest.err |
25060 | rm -f conftest.er1 | |
25061 | cat conftest.err >&5 | |
e6cc62c6 VS |
25062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25063 | (exit $ac_status); } && | |
eea650d8 VS |
25064 | { ac_try='test -z "$ac_c_werror_flag" |
25065 | || test ! -s conftest.err' | |
25066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25067 | (eval $ac_try) 2>&5 | |
25068 | ac_status=$? | |
25069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25070 | (exit $ac_status); }; } && | |
25071 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
25072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25073 | (eval $ac_try) 2>&5 | |
25074 | ac_status=$? | |
25075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25076 | (exit $ac_status); }; }; then | |
25077 | ac_cv_func_remove=yes | |
25078 | else | |
25079 | echo "$as_me: failed program was:" >&5 | |
25080 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25081 | ||
25082 | ac_cv_func_remove=no | |
25083 | fi | |
eea650d8 VS |
25084 | rm -f conftest.err conftest.$ac_objext \ |
25085 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
25086 | fi |
25087 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
25088 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
90dd450c | 25089 | |
21d1c967 | 25090 | if test $ac_cv_func_remove = no; then |
e6cc62c6 VS |
25091 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
25092 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
25093 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
25094 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 25095 | else |
e6cc62c6 | 25096 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 25097 | LIBS="-lposix $LIBS" |
e6cc62c6 | 25098 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
25099 | /* confdefs.h. */ |
25100 | _ACEOF | |
25101 | cat confdefs.h >>conftest.$ac_ext | |
25102 | cat >>conftest.$ac_ext <<_ACEOF | |
25103 | /* end confdefs.h. */ | |
25104 | ||
21d1c967 | 25105 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
25106 | #ifdef __cplusplus |
25107 | extern "C" | |
25108 | #endif | |
21d1c967 | 25109 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
25110 | builtin and then its argument prototype would still apply. */ |
25111 | char remove (); | |
25112 | int | |
25113 | main () | |
25114 | { | |
25115 | remove (); | |
25116 | ; | |
25117 | return 0; | |
25118 | } | |
25119 | _ACEOF | |
25120 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25121 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 25122 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 25123 | ac_status=$? |
eea650d8 VS |
25124 | grep -v '^ *+' conftest.er1 >conftest.err |
25125 | rm -f conftest.er1 | |
25126 | cat conftest.err >&5 | |
e6cc62c6 VS |
25127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25128 | (exit $ac_status); } && | |
eea650d8 VS |
25129 | { ac_try='test -z "$ac_c_werror_flag" |
25130 | || test ! -s conftest.err' | |
25131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25132 | (eval $ac_try) 2>&5 | |
25133 | ac_status=$? | |
25134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25135 | (exit $ac_status); }; } && | |
25136 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
25137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25138 | (eval $ac_try) 2>&5 | |
25139 | ac_status=$? | |
25140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25141 | (exit $ac_status); }; }; then | |
25142 | ac_cv_lib_posix_remove=yes | |
25143 | else | |
25144 | echo "$as_me: failed program was:" >&5 | |
25145 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25146 | ||
25147 | ac_cv_lib_posix_remove=no | |
25148 | fi | |
eea650d8 VS |
25149 | rm -f conftest.err conftest.$ac_objext \ |
25150 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
25151 | LIBS=$ac_check_lib_save_LIBS |
25152 | fi | |
25153 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
25154 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
25155 | if test $ac_cv_lib_posix_remove = yes; then | |
21d1c967 | 25156 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
21d1c967 | 25157 | fi |
19bc6aad | 25158 | |
90dd450c | 25159 | fi |
19bc6aad | 25160 | |
21d1c967 | 25161 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
e6cc62c6 VS |
25162 | echo "$as_me:$LINENO: checking for shmat" >&5 |
25163 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
25164 | if test "${ac_cv_func_shmat+set}" = set; then | |
25165 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25166 | else | |
25167 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
25168 | /* confdefs.h. */ |
25169 | _ACEOF | |
25170 | cat confdefs.h >>conftest.$ac_ext | |
25171 | cat >>conftest.$ac_ext <<_ACEOF | |
25172 | /* end confdefs.h. */ | |
eea650d8 VS |
25173 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
25174 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25175 | #define shmat innocuous_shmat | |
25176 | ||
21d1c967 | 25177 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
25178 | which can conflict with char shmat (); below. |
25179 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25180 | <limits.h> exists even on freestanding compilers. */ | |
eea650d8 | 25181 | |
e6cc62c6 VS |
25182 | #ifdef __STDC__ |
25183 | # include <limits.h> | |
25184 | #else | |
25185 | # include <assert.h> | |
25186 | #endif | |
eea650d8 VS |
25187 | |
25188 | #undef shmat | |
25189 | ||
21d1c967 | 25190 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
25191 | #ifdef __cplusplus |
25192 | extern "C" | |
25193 | { | |
25194 | #endif | |
21d1c967 | 25195 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
25196 | builtin and then its argument prototype would still apply. */ |
25197 | char shmat (); | |
21d1c967 GD |
25198 | /* The GNU C library defines this for functions which it implements |
25199 | to always fail with ENOSYS. Some functions are actually named | |
25200 | something starting with __ and the normal name is an alias. */ | |
25201 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
25202 | choke me | |
25203 | #else | |
e6cc62c6 VS |
25204 | char (*f) () = shmat; |
25205 | #endif | |
25206 | #ifdef __cplusplus | |
25207 | } | |
21d1c967 | 25208 | #endif |
90dd450c | 25209 | |
e6cc62c6 VS |
25210 | int |
25211 | main () | |
25212 | { | |
25213 | return f != shmat; | |
25214 | ; | |
25215 | return 0; | |
25216 | } | |
25217 | _ACEOF | |
25218 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25219 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 25220 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 25221 | ac_status=$? |
eea650d8 VS |
25222 | grep -v '^ *+' conftest.er1 >conftest.err |
25223 | rm -f conftest.er1 | |
25224 | cat conftest.err >&5 | |
e6cc62c6 VS |
25225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25226 | (exit $ac_status); } && | |
eea650d8 VS |
25227 | { ac_try='test -z "$ac_c_werror_flag" |
25228 | || test ! -s conftest.err' | |
25229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25230 | (eval $ac_try) 2>&5 | |
25231 | ac_status=$? | |
25232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25233 | (exit $ac_status); }; } && | |
25234 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
25235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25236 | (eval $ac_try) 2>&5 | |
25237 | ac_status=$? | |
25238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25239 | (exit $ac_status); }; }; then | |
25240 | ac_cv_func_shmat=yes | |
25241 | else | |
25242 | echo "$as_me: failed program was:" >&5 | |
25243 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25244 | ||
25245 | ac_cv_func_shmat=no | |
25246 | fi | |
eea650d8 VS |
25247 | rm -f conftest.err conftest.$ac_objext \ |
25248 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
25249 | fi |
25250 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
25251 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
19bc6aad | 25252 | |
21d1c967 | 25253 | if test $ac_cv_func_shmat = no; then |
e6cc62c6 VS |
25254 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
25255 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
25256 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
25257 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5c6fa7d2 | 25258 | else |
e6cc62c6 | 25259 | ac_check_lib_save_LIBS=$LIBS |
5c6fa7d2 | 25260 | LIBS="-lipc $LIBS" |
e6cc62c6 | 25261 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
25262 | /* confdefs.h. */ |
25263 | _ACEOF | |
25264 | cat confdefs.h >>conftest.$ac_ext | |
25265 | cat >>conftest.$ac_ext <<_ACEOF | |
25266 | /* end confdefs.h. */ | |
25267 | ||
5c6fa7d2 | 25268 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
25269 | #ifdef __cplusplus |
25270 | extern "C" | |
25271 | #endif | |
5c6fa7d2 | 25272 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
25273 | builtin and then its argument prototype would still apply. */ |
25274 | char shmat (); | |
25275 | int | |
25276 | main () | |
25277 | { | |
25278 | shmat (); | |
25279 | ; | |
25280 | return 0; | |
25281 | } | |
25282 | _ACEOF | |
25283 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25284 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 25285 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 25286 | ac_status=$? |
eea650d8 VS |
25287 | grep -v '^ *+' conftest.er1 >conftest.err |
25288 | rm -f conftest.er1 | |
25289 | cat conftest.err >&5 | |
e6cc62c6 VS |
25290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25291 | (exit $ac_status); } && | |
eea650d8 VS |
25292 | { ac_try='test -z "$ac_c_werror_flag" |
25293 | || test ! -s conftest.err' | |
25294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25295 | (eval $ac_try) 2>&5 | |
25296 | ac_status=$? | |
25297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25298 | (exit $ac_status); }; } && | |
25299 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
25300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25301 | (eval $ac_try) 2>&5 | |
25302 | ac_status=$? | |
25303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25304 | (exit $ac_status); }; }; then | |
25305 | ac_cv_lib_ipc_shmat=yes | |
25306 | else | |
25307 | echo "$as_me: failed program was:" >&5 | |
25308 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25309 | ||
25310 | ac_cv_lib_ipc_shmat=no | |
25311 | fi | |
eea650d8 VS |
25312 | rm -f conftest.err conftest.$ac_objext \ |
25313 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
25314 | LIBS=$ac_check_lib_save_LIBS |
25315 | fi | |
25316 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
25317 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
25318 | if test $ac_cv_lib_ipc_shmat = yes; then | |
21d1c967 | 25319 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
9f8148b1 | 25320 | fi |
90dd450c | 25321 | |
90dd450c | 25322 | fi |
21d1c967 | 25323 | fi |
10f2d63a | 25324 | |
21d1c967 | 25325 | # Check for libraries that X11R6 Xt/Xaw programs need. |
e6cc62c6 | 25326 | ac_save_LDFLAGS=$LDFLAGS |
21d1c967 GD |
25327 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
25328 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
25329 | # check for ICE first), but we must link in the order -lSM -lICE or | |
25330 | # we get undefined symbols. So assume we have SM if we have ICE. | |
25331 | # These have to be linked with before -lX11, unlike the other | |
25332 | # libraries we check for below, so use a different variable. | |
e6cc62c6 VS |
25333 | # John Interrante, Karl Berry |
25334 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
25335 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
25336 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
25337 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25338 | else | |
25339 | ac_check_lib_save_LIBS=$LIBS | |
f09359cf | 25340 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
e6cc62c6 | 25341 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
25342 | /* confdefs.h. */ |
25343 | _ACEOF | |
25344 | cat confdefs.h >>conftest.$ac_ext | |
25345 | cat >>conftest.$ac_ext <<_ACEOF | |
25346 | /* end confdefs.h. */ | |
25347 | ||
21d1c967 | 25348 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
25349 | #ifdef __cplusplus |
25350 | extern "C" | |
25351 | #endif | |
21d1c967 | 25352 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
25353 | builtin and then its argument prototype would still apply. */ |
25354 | char IceConnectionNumber (); | |
25355 | int | |
25356 | main () | |
25357 | { | |
25358 | IceConnectionNumber (); | |
25359 | ; | |
25360 | return 0; | |
25361 | } | |
25362 | _ACEOF | |
25363 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25364 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 25365 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 25366 | ac_status=$? |
eea650d8 VS |
25367 | grep -v '^ *+' conftest.er1 >conftest.err |
25368 | rm -f conftest.er1 | |
25369 | cat conftest.err >&5 | |
e6cc62c6 VS |
25370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25371 | (exit $ac_status); } && | |
eea650d8 VS |
25372 | { ac_try='test -z "$ac_c_werror_flag" |
25373 | || test ! -s conftest.err' | |
25374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25375 | (eval $ac_try) 2>&5 | |
25376 | ac_status=$? | |
25377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25378 | (exit $ac_status); }; } && | |
25379 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
25380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25381 | (eval $ac_try) 2>&5 | |
25382 | ac_status=$? | |
25383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25384 | (exit $ac_status); }; }; then | |
25385 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
25386 | else | |
25387 | echo "$as_me: failed program was:" >&5 | |
25388 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25389 | ||
25390 | ac_cv_lib_ICE_IceConnectionNumber=no | |
25391 | fi | |
eea650d8 VS |
25392 | rm -f conftest.err conftest.$ac_objext \ |
25393 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
25394 | LIBS=$ac_check_lib_save_LIBS |
25395 | fi | |
25396 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
25397 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
25398 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
21d1c967 | 25399 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
29fd3c0c | 25400 | fi |
21d1c967 | 25401 | |
e6cc62c6 | 25402 | LDFLAGS=$ac_save_LDFLAGS |
29fd3c0c | 25403 | |
10f2d63a VZ |
25404 | fi |
25405 | ||
8284b0c5 | 25406 | |
21d1c967 | 25407 | if test "$no_x" = "yes"; then |
e6cc62c6 VS |
25408 | { { echo "$as_me:$LINENO: error: X11 not found" >&5 |
25409 | echo "$as_me: error: X11 not found" >&2;} | |
25410 | { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; } | |
21d1c967 GD |
25411 | fi |
25412 | ||
2b5f62a0 VZ |
25413 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'` |
25414 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
21d1c967 GD |
25415 | AFMINSTALL=afminstall |
25416 | COMPILED_X_PROGRAM=0 | |
25417 | ||
e6cc62c6 VS |
25418 | echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5 |
25419 | echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6 | |
25420 | ||
21d1c967 | 25421 | ac_find_includes= |
2b5f62a0 | 25422 | for ac_dir in $SEARCH_INCLUDE /usr/include; |
21d1c967 GD |
25423 | do |
25424 | if test -f "$ac_dir/Xm/Xm.h"; then | |
25425 | ac_find_includes=$ac_dir | |
25426 | break | |
25427 | fi | |
25428 | done | |
25429 | ||
25430 | if test "$ac_find_includes" != "" ; then | |
e6cc62c6 VS |
25431 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 |
25432 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
25433 | ||
2b5f62a0 | 25434 | if test "x$ac_find_includes" = "x/usr/include"; then |
dd0e4a90 VZ |
25435 | ac_path_to_include="" |
25436 | else | |
2b5f62a0 VZ |
25437 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null |
25438 | result=$? | |
25439 | if test $result = 0; then | |
25440 | ac_path_to_include="" | |
25441 | else | |
25442 | ac_path_to_include=" -I$ac_find_includes" | |
25443 | fi | |
dd0e4a90 VZ |
25444 | fi |
25445 | ||
25446 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" | |
21d1c967 | 25447 | else |
e6cc62c6 | 25448 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
25449 | /* confdefs.h. */ |
25450 | _ACEOF | |
25451 | cat confdefs.h >>conftest.$ac_ext | |
25452 | cat >>conftest.$ac_ext <<_ACEOF | |
25453 | /* end confdefs.h. */ | |
21d1c967 GD |
25454 | |
25455 | #include <Xm/Xm.h> | |
e6cc62c6 VS |
25456 | |
25457 | int | |
25458 | main () | |
25459 | { | |
21d1c967 GD |
25460 | |
25461 | int version; | |
25462 | version = xmUseVersion; | |
e6cc62c6 VS |
25463 | |
25464 | ; | |
25465 | return 0; | |
25466 | } | |
25467 | _ACEOF | |
25468 | rm -f conftest.$ac_objext | |
25469 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 25470 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 25471 | ac_status=$? |
eea650d8 VS |
25472 | grep -v '^ *+' conftest.er1 >conftest.err |
25473 | rm -f conftest.er1 | |
25474 | cat conftest.err >&5 | |
e6cc62c6 VS |
25475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25476 | (exit $ac_status); } && | |
eea650d8 VS |
25477 | { ac_try='test -z "$ac_c_werror_flag" |
25478 | || test ! -s conftest.err' | |
25479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25480 | (eval $ac_try) 2>&5 | |
25481 | ac_status=$? | |
25482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25483 | (exit $ac_status); }; } && | |
25484 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
25485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25486 | (eval $ac_try) 2>&5 | |
25487 | ac_status=$? | |
25488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25489 | (exit $ac_status); }; }; then | |
25490 | ||
25491 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
25492 | echo "${ECHO_T}found in default search path" >&6 | |
21d1c967 | 25493 | COMPILED_X_PROGRAM=1 |
e6cc62c6 | 25494 | |
10f2d63a | 25495 | else |
e6cc62c6 VS |
25496 | echo "$as_me: failed program was:" >&5 |
25497 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25498 | ||
25499 | ||
25500 | echo "$as_me:$LINENO: result: no" >&5 | |
25501 | echo "${ECHO_T}no" >&6 | |
25502 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5 | |
25503 | echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;} | |
25504 | { (exit 1); exit 1; }; } | |
25505 | ||
25506 | ||
10f2d63a | 25507 | fi |
eea650d8 | 25508 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 25509 | fi |
10f2d63a | 25510 | |
21d1c967 | 25511 | if test "$COMPILED_X_PROGRAM" = 0; then |
e6cc62c6 VS |
25512 | echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5 |
25513 | echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6 | |
25514 | ||
21d1c967 | 25515 | ac_find_libraries= |
2b5f62a0 | 25516 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
25517 | do |
25518 | for ac_extension in a so sl dylib; do | |
25519 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
25520 | ac_find_libraries=$ac_dir | |
25521 | break 2 | |
25522 | fi | |
25523 | done | |
25524 | done | |
25525 | ||
25526 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 VS |
25527 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 |
25528 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
25529 | ||
21d1c967 | 25530 | |
21d1c967 GD |
25531 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
25532 | result=$? | |
25533 | if test $result = 0; then | |
25534 | ac_path_to_link="" | |
25535 | else | |
25536 | ac_path_to_link=" -L$ac_find_libraries" | |
25537 | fi | |
25538 | ||
21d1c967 | 25539 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
21d1c967 | 25540 | else |
dd0e4a90 VZ |
25541 | save_CFLAGS=$CFLAGS |
25542 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
25543 | ||
e6cc62c6 | 25544 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
25545 | /* confdefs.h. */ |
25546 | _ACEOF | |
25547 | cat confdefs.h >>conftest.$ac_ext | |
25548 | cat >>conftest.$ac_ext <<_ACEOF | |
25549 | /* end confdefs.h. */ | |
21d1c967 GD |
25550 | |
25551 | #include <Xm/Xm.h> | |
e6cc62c6 VS |
25552 | |
25553 | int | |
25554 | main () | |
25555 | { | |
21d1c967 GD |
25556 | |
25557 | int version; | |
25558 | version = xmUseVersion; | |
e6cc62c6 VS |
25559 | |
25560 | ; | |
25561 | return 0; | |
25562 | } | |
25563 | _ACEOF | |
25564 | rm -f conftest.$ac_objext | |
25565 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 25566 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 25567 | ac_status=$? |
eea650d8 VS |
25568 | grep -v '^ *+' conftest.er1 >conftest.err |
25569 | rm -f conftest.er1 | |
25570 | cat conftest.err >&5 | |
e6cc62c6 VS |
25571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25572 | (exit $ac_status); } && | |
eea650d8 VS |
25573 | { ac_try='test -z "$ac_c_werror_flag" |
25574 | || test ! -s conftest.err' | |
25575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25576 | (eval $ac_try) 2>&5 | |
25577 | ac_status=$? | |
25578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25579 | (exit $ac_status); }; } && | |
25580 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
25581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25582 | (eval $ac_try) 2>&5 | |
25583 | ac_status=$? | |
25584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25585 | (exit $ac_status); }; }; then | |
25586 | ||
25587 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
25588 | echo "${ECHO_T}found in default search path" >&6 | |
21d1c967 | 25589 | COMPILED_X_PROGRAM=1 |
e6cc62c6 | 25590 | |
d836ee96 | 25591 | else |
e6cc62c6 VS |
25592 | echo "$as_me: failed program was:" >&5 |
25593 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25594 | ||
25595 | ||
25596 | echo "$as_me:$LINENO: result: no" >&5 | |
25597 | echo "${ECHO_T}no" >&6 | |
25598 | { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5 | |
25599 | echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;} | |
25600 | { (exit 1); exit 1; }; } | |
25601 | ||
25602 | ||
d836ee96 | 25603 | fi |
eea650d8 | 25604 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
dd0e4a90 VZ |
25605 | |
25606 | CFLAGS=$save_CFLAGS | |
21d1c967 GD |
25607 | fi |
25608 | fi | |
25609 | ||
e6cc62c6 VS |
25610 | echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5 |
25611 | echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6 | |
6a30f1c8 MB |
25612 | libp_link="" |
25613 | libsm_ice_link="" | |
25614 | libs_found=0 | |
25615 | for libp in "" " -lXp"; do | |
25616 | if test "$libs_found" = "0"; then | |
7015ef3a | 25617 | for libsm_ice in "" " -lSM -lICE"; do |
e26c13cf | 25618 | if test "$libs_found" = "0"; then |
6a30f1c8 | 25619 | save_LIBS="$LIBS" |
93a543aa | 25620 | LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" |
dd0e4a90 VZ |
25621 | save_CFLAGS=$CFLAGS |
25622 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
25623 | ||
e6cc62c6 | 25624 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
25625 | /* confdefs.h. */ |
25626 | _ACEOF | |
25627 | cat confdefs.h >>conftest.$ac_ext | |
25628 | cat >>conftest.$ac_ext <<_ACEOF | |
25629 | /* end confdefs.h. */ | |
17234b26 | 25630 | |
6a30f1c8 MB |
25631 | #include <Xm/Xm.h> |
25632 | #include <Xm/List.h> | |
e6cc62c6 VS |
25633 | |
25634 | int | |
25635 | main () | |
25636 | { | |
6a30f1c8 MB |
25637 | |
25638 | XmString string = NULL; | |
25639 | Widget w = NULL; | |
25640 | int position = 0; | |
25641 | XmListAddItem(w, string, position); | |
e6cc62c6 VS |
25642 | |
25643 | ; | |
25644 | return 0; | |
25645 | } | |
25646 | _ACEOF | |
25647 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25648 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 25649 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 25650 | ac_status=$? |
eea650d8 VS |
25651 | grep -v '^ *+' conftest.er1 >conftest.err |
25652 | rm -f conftest.er1 | |
25653 | cat conftest.err >&5 | |
e6cc62c6 VS |
25654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25655 | (exit $ac_status); } && | |
eea650d8 VS |
25656 | { ac_try='test -z "$ac_c_werror_flag" |
25657 | || test ! -s conftest.err' | |
25658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25659 | (eval $ac_try) 2>&5 | |
25660 | ac_status=$? | |
25661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25662 | (exit $ac_status); }; } && | |
25663 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
25664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25665 | (eval $ac_try) 2>&5 | |
25666 | ac_status=$? | |
25667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25668 | (exit $ac_status); }; }; then | |
25669 | ||
6a30f1c8 MB |
25670 | libp_link="$libp" |
25671 | libsm_ice_link="$libsm_ice" | |
e6cc62c6 VS |
25672 | echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5 |
25673 | echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6 | |
6a30f1c8 | 25674 | libs_found=1 |
e6cc62c6 | 25675 | |
6a30f1c8 | 25676 | else |
e6cc62c6 VS |
25677 | echo "$as_me: failed program was:" >&5 |
25678 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25679 | ||
25680 | ||
25681 | ||
6a30f1c8 | 25682 | fi |
eea650d8 VS |
25683 | rm -f conftest.err conftest.$ac_objext \ |
25684 | conftest$ac_exeext conftest.$ac_ext | |
dd0e4a90 | 25685 | |
6a30f1c8 | 25686 | LIBS="$save_LIBS" |
dd0e4a90 | 25687 | CFLAGS=$save_CFLAGS |
6a30f1c8 MB |
25688 | fi |
25689 | done | |
25690 | fi | |
25691 | done | |
25692 | ||
25693 | if test "$libs_found" = "0"; then | |
e6cc62c6 VS |
25694 | echo "$as_me:$LINENO: result: can't find the right libraries" >&5 |
25695 | echo "${ECHO_T}can't find the right libraries" >&6 | |
25696 | { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5 | |
25697 | echo "$as_me: error: can't link a simple motif program" >&2;} | |
25698 | { (exit 1); exit 1; }; } | |
6a30f1c8 MB |
25699 | fi |
25700 | ||
da494b40 MB |
25701 | save_CFLAGS=$CFLAGS |
25702 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
e6cc62c6 VS |
25703 | echo "$as_me:$LINENO: checking for Motif 2" >&5 |
25704 | echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6 | |
25705 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
25706 | /* confdefs.h. */ |
25707 | _ACEOF | |
25708 | cat confdefs.h >>conftest.$ac_ext | |
25709 | cat >>conftest.$ac_ext <<_ACEOF | |
25710 | /* end confdefs.h. */ | |
da494b40 MB |
25711 | |
25712 | #include <Xm/Xm.h> | |
e6cc62c6 VS |
25713 | |
25714 | int | |
25715 | main () | |
25716 | { | |
da494b40 MB |
25717 | |
25718 | #if XmVersion < 2000 | |
25719 | #error "Not Motif 2" | |
25720 | #endif | |
e6cc62c6 VS |
25721 | |
25722 | ; | |
25723 | return 0; | |
25724 | } | |
25725 | _ACEOF | |
25726 | rm -f conftest.$ac_objext | |
25727 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 25728 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 25729 | ac_status=$? |
eea650d8 VS |
25730 | grep -v '^ *+' conftest.er1 >conftest.err |
25731 | rm -f conftest.er1 | |
25732 | cat conftest.err >&5 | |
e6cc62c6 VS |
25733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25734 | (exit $ac_status); } && | |
eea650d8 VS |
25735 | { ac_try='test -z "$ac_c_werror_flag" |
25736 | || test ! -s conftest.err' | |
25737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25738 | (eval $ac_try) 2>&5 | |
25739 | ac_status=$? | |
25740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25741 | (exit $ac_status); }; } && | |
25742 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
25743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25744 | (eval $ac_try) 2>&5 | |
25745 | ac_status=$? | |
25746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25747 | (exit $ac_status); }; }; then | |
25748 | ||
25749 | cat >>confdefs.h <<\_ACEOF | |
da494b40 | 25750 | #define __WXMOTIF20__ 1 |
e6cc62c6 VS |
25751 | _ACEOF |
25752 | ||
25753 | echo "$as_me:$LINENO: result: found" >&5 | |
25754 | echo "${ECHO_T}found" >&6 | |
da494b40 | 25755 | |
da494b40 | 25756 | else |
e6cc62c6 VS |
25757 | echo "$as_me: failed program was:" >&5 |
25758 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25759 | ||
25760 | ||
25761 | cat >>confdefs.h <<\_ACEOF | |
da494b40 | 25762 | #define __WXMOTIF20__ 0 |
e6cc62c6 VS |
25763 | _ACEOF |
25764 | ||
25765 | echo "$as_me:$LINENO: result: not found" >&5 | |
25766 | echo "${ECHO_T}not found" >&6 | |
da494b40 | 25767 | |
da494b40 | 25768 | fi |
eea650d8 | 25769 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
da494b40 MB |
25770 | CFLAGS=$save_CFLAGS |
25771 | ||
93a543aa | 25772 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" |
69c44812 | 25773 | TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11" |
21d1c967 GD |
25774 | TOOLKIT=MOTIF |
25775 | GUIDIST=MOTIF_DIST | |
f7f78039 MB |
25776 | fi |
25777 | ||
89fe663f VZ |
25778 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
25779 | if test "$wxUSE_LIBXPM" = "sys"; then | |
25780 | echo "$as_me:$LINENO: checking for Xpm library" >&5 | |
25781 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
25782 | ||
25783 | ac_find_libraries= | |
25784 | for ac_dir in $SEARCH_LIB /usr/lib; | |
25785 | do | |
25786 | for ac_extension in a so sl dylib; do | |
25787 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
25788 | ac_find_libraries=$ac_dir | |
25789 | break 2 | |
25790 | fi | |
25791 | done | |
25792 | done | |
25793 | ||
25794 | if test "$ac_find_libraries" != "" ; then | |
25795 | ||
25796 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
25797 | result=$? | |
25798 | if test $result = 0; then | |
25799 | ac_path_to_link="" | |
25800 | else | |
25801 | ac_path_to_link=" -L$ac_find_libraries" | |
25802 | fi | |
25803 | ||
25804 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
25805 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
25806 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
25807 | ||
25808 | echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
25809 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 | |
25810 | if test "${wx_cv_x11_xpm_h+set}" = set; then | |
25811 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25812 | else | |
25813 | ||
25814 | save_CFLAGS=$CFLAGS | |
25815 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
25816 | ||
25817 | cat >conftest.$ac_ext <<_ACEOF | |
89fe663f VZ |
25818 | /* confdefs.h. */ |
25819 | _ACEOF | |
25820 | cat confdefs.h >>conftest.$ac_ext | |
25821 | cat >>conftest.$ac_ext <<_ACEOF | |
25822 | /* end confdefs.h. */ | |
25823 | ||
25824 | #include <X11/xpm.h> | |
25825 | ||
25826 | int | |
25827 | main () | |
25828 | { | |
25829 | ||
25830 | int version; | |
25831 | version = XpmLibraryVersion(); | |
25832 | ||
25833 | ; | |
25834 | return 0; | |
25835 | } | |
25836 | _ACEOF | |
25837 | rm -f conftest.$ac_objext | |
25838 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 25839 | (eval $ac_compile) 2>conftest.er1 |
89fe663f | 25840 | ac_status=$? |
eea650d8 VS |
25841 | grep -v '^ *+' conftest.er1 >conftest.err |
25842 | rm -f conftest.er1 | |
25843 | cat conftest.err >&5 | |
89fe663f VZ |
25844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25845 | (exit $ac_status); } && | |
eea650d8 VS |
25846 | { ac_try='test -z "$ac_c_werror_flag" |
25847 | || test ! -s conftest.err' | |
25848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25849 | (eval $ac_try) 2>&5 | |
25850 | ac_status=$? | |
25851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25852 | (exit $ac_status); }; } && | |
25853 | { ac_try='test -s conftest.$ac_objext' | |
89fe663f VZ |
25854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25855 | (eval $ac_try) 2>&5 | |
25856 | ac_status=$? | |
25857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25858 | (exit $ac_status); }; }; then | |
25859 | wx_cv_x11_xpm_h=yes | |
25860 | else | |
25861 | echo "$as_me: failed program was:" >&5 | |
25862 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25863 | ||
25864 | wx_cv_x11_xpm_h=no | |
25865 | ||
25866 | fi | |
eea650d8 | 25867 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
89fe663f VZ |
25868 | |
25869 | CFLAGS=$save_CFLAGS | |
25870 | ||
25871 | ||
25872 | fi | |
25873 | echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5 | |
25874 | echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6 | |
25875 | ||
25876 | if test $wx_cv_x11_xpm_h = "yes"; then | |
93a543aa | 25877 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm" |
89fe663f VZ |
25878 | cat >>confdefs.h <<\_ACEOF |
25879 | #define wxHAVE_LIB_XPM 1 | |
25880 | _ACEOF | |
25881 | ||
25882 | else | |
25883 | { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5 | |
25884 | echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;} | |
25885 | fi | |
25886 | fi | |
25887 | ||
25888 | fi | |
f7f78039 | 25889 | |
89fe663f VZ |
25890 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 |
25891 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 | |
25892 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
25893 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25894 | else | |
25895 | ac_check_lib_save_LIBS=$LIBS | |
25896 | LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS" | |
25897 | cat >conftest.$ac_ext <<_ACEOF | |
89fe663f VZ |
25898 | /* confdefs.h. */ |
25899 | _ACEOF | |
25900 | cat confdefs.h >>conftest.$ac_ext | |
25901 | cat >>conftest.$ac_ext <<_ACEOF | |
25902 | /* end confdefs.h. */ | |
25903 | ||
25904 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25905 | #ifdef __cplusplus | |
25906 | extern "C" | |
25907 | #endif | |
25908 | /* We use char because int might match the return type of a gcc2 | |
25909 | builtin and then its argument prototype would still apply. */ | |
25910 | char XShapeQueryExtension (); | |
25911 | int | |
25912 | main () | |
25913 | { | |
25914 | XShapeQueryExtension (); | |
25915 | ; | |
25916 | return 0; | |
25917 | } | |
25918 | _ACEOF | |
25919 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25920 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 25921 | (eval $ac_link) 2>conftest.er1 |
89fe663f | 25922 | ac_status=$? |
eea650d8 VS |
25923 | grep -v '^ *+' conftest.er1 >conftest.err |
25924 | rm -f conftest.er1 | |
25925 | cat conftest.err >&5 | |
89fe663f VZ |
25926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25927 | (exit $ac_status); } && | |
eea650d8 VS |
25928 | { ac_try='test -z "$ac_c_werror_flag" |
25929 | || test ! -s conftest.err' | |
25930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25931 | (eval $ac_try) 2>&5 | |
25932 | ac_status=$? | |
25933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25934 | (exit $ac_status); }; } && | |
25935 | { ac_try='test -s conftest$ac_exeext' | |
89fe663f VZ |
25936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25937 | (eval $ac_try) 2>&5 | |
25938 | ac_status=$? | |
25939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25940 | (exit $ac_status); }; }; then | |
25941 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
25942 | else | |
25943 | echo "$as_me: failed program was:" >&5 | |
25944 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25945 | ||
25946 | ac_cv_lib_Xext_XShapeQueryExtension=no | |
25947 | fi | |
eea650d8 VS |
25948 | rm -f conftest.err conftest.$ac_objext \ |
25949 | conftest$ac_exeext conftest.$ac_ext | |
89fe663f VZ |
25950 | LIBS=$ac_check_lib_save_LIBS |
25951 | fi | |
25952 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 | |
25953 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 | |
25954 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
25955 | ||
25956 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext" | |
25957 | wxHAVE_XEXT_LIB=1 | |
25958 | ||
25959 | fi | |
25960 | ||
25961 | ||
25962 | if test "$wxHAVE_XEXT_LIB" = 1; then | |
25963 | save_CFLAGS="$CFLAGS" | |
25964 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
25965 | ||
25966 | echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5 | |
e6cc62c6 | 25967 | echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6 |
89fe663f | 25968 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
25969 | /* confdefs.h. */ |
25970 | _ACEOF | |
25971 | cat confdefs.h >>conftest.$ac_ext | |
25972 | cat >>conftest.$ac_ext <<_ACEOF | |
25973 | /* end confdefs.h. */ | |
25974 | ||
89fe663f VZ |
25975 | #include <X11/Xlib.h> |
25976 | #include <X11/extensions/shape.h> | |
e6cc62c6 VS |
25977 | |
25978 | int | |
25979 | main () | |
25980 | { | |
f7f78039 | 25981 | |
89fe663f VZ |
25982 | int dummy1, dummy2; |
25983 | XShapeQueryExtension((Display*)NULL, | |
25984 | (int*)NULL, (int*)NULL); | |
e6cc62c6 VS |
25985 | |
25986 | ; | |
25987 | return 0; | |
25988 | } | |
25989 | _ACEOF | |
25990 | rm -f conftest.$ac_objext | |
25991 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 25992 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 25993 | ac_status=$? |
eea650d8 VS |
25994 | grep -v '^ *+' conftest.er1 >conftest.err |
25995 | rm -f conftest.er1 | |
25996 | cat conftest.err >&5 | |
e6cc62c6 VS |
25997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25998 | (exit $ac_status); } && | |
eea650d8 VS |
25999 | { ac_try='test -z "$ac_c_werror_flag" |
26000 | || test ! -s conftest.err' | |
26001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26002 | (eval $ac_try) 2>&5 | |
26003 | ac_status=$? | |
26004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26005 | (exit $ac_status); }; } && | |
26006 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
26007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26008 | (eval $ac_try) 2>&5 | |
26009 | ac_status=$? | |
26010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26011 | (exit $ac_status); }; }; then | |
26012 | ||
89fe663f | 26013 | cat >>confdefs.h <<\_ACEOF |
f7f78039 | 26014 | #define HAVE_XSHAPE 1 |
e6cc62c6 VS |
26015 | _ACEOF |
26016 | ||
89fe663f | 26017 | echo "$as_me:$LINENO: result: found" >&5 |
e6cc62c6 | 26018 | echo "${ECHO_T}found" >&6 |
f7f78039 | 26019 | |
f7f78039 | 26020 | else |
e6cc62c6 VS |
26021 | echo "$as_me: failed program was:" >&5 |
26022 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26023 | ||
26024 | ||
89fe663f | 26025 | echo "$as_me:$LINENO: result: not found" >&5 |
e6cc62c6 VS |
26026 | echo "${ECHO_T}not found" >&6 |
26027 | ||
f7f78039 | 26028 | fi |
eea650d8 | 26029 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
89fe663f VZ |
26030 | CFLAGS="$save_CFLAGS" |
26031 | ||
26032 | fi | |
21d1c967 GD |
26033 | fi |
26034 | ||
26035 | if test "$wxUSE_MAC" = 1; then | |
8e91c6f3 VZ |
26036 | echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5 |
26037 | echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6 | |
26038 | if test "$GCC" = yes; then | |
26039 | echo "$as_me:$LINENO: result: gcc" >&5 | |
26040 | echo "${ECHO_T}gcc" >&6 | |
26041 | CPPFLAGS_PASCAL="-fpascal-strings" | |
26042 | elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then | |
26043 | echo "$as_me:$LINENO: result: xlc" >&5 | |
26044 | echo "${ECHO_T}xlc" >&6 | |
26045 | CPPFLAGS_PASCAL="-qmacpstr" | |
26046 | else | |
26047 | echo "$as_me:$LINENO: result: none" >&5 | |
26048 | echo "${ECHO_T}none" >&6 | |
26049 | fi | |
26050 | ||
26051 | CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon" | |
21d1c967 | 26052 | |
0c98a14e | 26053 | TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex" |
21d1c967 GD |
26054 | TOOLKIT=MAC |
26055 | GUIDIST=MACX_DIST | |
cf615ebb | 26056 | WXBASEPORT="_carbon" |
21d1c967 GD |
26057 | fi |
26058 | ||
ac0c4cc3 DE |
26059 | if test "$wxUSE_COCOA" = 1; then |
26060 | TOOLKIT_VPATH="\${top_srcdir}/src/cocoa" | |
26061 | TOOLKIT=COCOA | |
26062 | GUIDIST=COCOA_DIST | |
26063 | fi | |
26064 | ||
21d1c967 GD |
26065 | if test "$wxUSE_PM" = 1; then |
26066 | TOOLKIT=PM | |
26067 | GUIDIST=GTK_DIST | |
26068 | fi | |
26069 | ||
26070 | if test "$TOOLKIT" = "PM" ; then | |
26071 | TOOLKIT_DIR="os2" | |
26072 | else | |
26073 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
26074 | fi | |
26075 | ||
26076 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" | |
26077 | ||
26078 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
26079 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
26080 | ||
26081 | ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}" | |
26082 | ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}" | |
26083 | ||
26084 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
26085 | if test "$wxUSE_X11" = 1; then | |
26086 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes" | |
26087 | else | |
26088 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
26089 | fi | |
26090 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" | |
26091 | WIDGET_SET=univ | |
26092 | else | |
26093 | ALL_OBJECTS="\$(GUIOBJS)" | |
26094 | ALL_SOURCES="\$(ALL_SOURCES)" | |
26095 | ALL_HEADERS="\$(ALL_HEADERS)" | |
26096 | fi | |
26097 | ||
26098 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
26099 | ||
26100 | if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then | |
26101 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
26102 | fi | |
26103 | ||
26104 | if test "$wxUSE_HTML" = "yes"; then | |
26105 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
26106 | fi | |
26107 | ||
26108 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
26109 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" | |
26110 | fi | |
26111 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
26112 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
26113 | fi | |
26114 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
26115 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
26116 | fi | |
26117 | ||
26118 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
26119 | DISTDIR="wx\$(TOOLKIT)" | |
90dd450c | 26120 | else |
21d1c967 GD |
26121 | USE_GUI=0 |
26122 | ||
26123 | TOOLKIT_DIR="base" | |
26124 | ||
26125 | if test "$USE_WIN32" = 1 ; then | |
26126 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
26127 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
26128 | ||
26129 | TOOLKIT="MSW" | |
26130 | else | |
26131 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" | |
26132 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
26133 | fi | |
26134 | ||
26135 | ALL_SOURCES="\$(ALL_SOURCES)" | |
26136 | ALL_HEADERS="\$(ALL_HEADERS)" | |
26137 | ||
26138 | PORT_FILES="\${top_srcdir}/src/files.lst" | |
26139 | ||
26140 | GUIDIST="BASE_DIST" | |
26141 | DISTDIR="wxBase" | |
d836ee96 VZ |
26142 | fi |
26143 | ||
8284b0c5 | 26144 | |
8647bec6 RG |
26145 | |
26146 | ||
26147 | IODBC_C_SRC="" | |
26148 | ||
26149 | ||
26150 | if test "$TOOLKIT" != "MSW" ; then | |
26151 | ||
bb41dcbe | 26152 | if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then |
8647bec6 | 26153 | |
bb41dcbe | 26154 | if test "${ac_cv_header_sql_h+set}" = set; then |
e6cc62c6 VS |
26155 | echo "$as_me:$LINENO: checking for sql.h" >&5 |
26156 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
26157 | if test "${ac_cv_header_sql_h+set}" = set; then | |
26158 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26159 | fi | |
26160 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
26161 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
26162 | else | |
26163 | # Is the header compilable? | |
26164 | echo "$as_me:$LINENO: checking sql.h usability" >&5 | |
26165 | echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6 | |
26166 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
26167 | /* confdefs.h. */ |
26168 | _ACEOF | |
26169 | cat confdefs.h >>conftest.$ac_ext | |
26170 | cat >>conftest.$ac_ext <<_ACEOF | |
26171 | /* end confdefs.h. */ | |
26172 | $ac_includes_default | |
8647bec6 | 26173 | #include <sql.h> |
e6cc62c6 VS |
26174 | _ACEOF |
26175 | rm -f conftest.$ac_objext | |
26176 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 26177 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 26178 | ac_status=$? |
eea650d8 VS |
26179 | grep -v '^ *+' conftest.er1 >conftest.err |
26180 | rm -f conftest.er1 | |
26181 | cat conftest.err >&5 | |
e6cc62c6 VS |
26182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26183 | (exit $ac_status); } && | |
eea650d8 VS |
26184 | { ac_try='test -z "$ac_c_werror_flag" |
26185 | || test ! -s conftest.err' | |
26186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26187 | (eval $ac_try) 2>&5 | |
26188 | ac_status=$? | |
26189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26190 | (exit $ac_status); }; } && | |
26191 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
26192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26193 | (eval $ac_try) 2>&5 | |
26194 | ac_status=$? | |
26195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26196 | (exit $ac_status); }; }; then | |
26197 | ac_header_compiler=yes | |
26198 | else | |
26199 | echo "$as_me: failed program was:" >&5 | |
26200 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26201 | ||
26202 | ac_header_compiler=no | |
26203 | fi | |
eea650d8 | 26204 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
26205 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
26206 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
26207 | ||
26208 | # Is the header present? | |
26209 | echo "$as_me:$LINENO: checking sql.h presence" >&5 | |
26210 | echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6 | |
26211 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
26212 | /* confdefs.h. */ |
26213 | _ACEOF | |
26214 | cat confdefs.h >>conftest.$ac_ext | |
26215 | cat >>conftest.$ac_ext <<_ACEOF | |
26216 | /* end confdefs.h. */ | |
26217 | #include <sql.h> | |
26218 | _ACEOF | |
26219 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
26220 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
26221 | ac_status=$? | |
26222 | grep -v '^ *+' conftest.er1 >conftest.err | |
26223 | rm -f conftest.er1 | |
26224 | cat conftest.err >&5 | |
26225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26226 | (exit $ac_status); } >/dev/null; then | |
26227 | if test -s conftest.err; then | |
26228 | ac_cpp_err=$ac_c_preproc_warn_flag | |
eea650d8 | 26229 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
26230 | else |
26231 | ac_cpp_err= | |
26232 | fi | |
26233 | else | |
26234 | ac_cpp_err=yes | |
26235 | fi | |
26236 | if test -z "$ac_cpp_err"; then | |
26237 | ac_header_preproc=yes | |
26238 | else | |
26239 | echo "$as_me: failed program was:" >&5 | |
26240 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26241 | ||
26242 | ac_header_preproc=no | |
26243 | fi | |
26244 | rm -f conftest.err conftest.$ac_ext | |
26245 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
26246 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
26247 | ||
26248 | # So? What about this header? | |
eea650d8 VS |
26249 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
26250 | yes:no: ) | |
e6cc62c6 VS |
26251 | { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
26252 | echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
eea650d8 VS |
26253 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5 |
26254 | echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;} | |
26255 | ac_header_preproc=yes | |
e6cc62c6 | 26256 | ;; |
eea650d8 | 26257 | no:yes:* ) |
e6cc62c6 VS |
26258 | { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5 |
26259 | echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;} | |
eea650d8 VS |
26260 | { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5 |
26261 | echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;} | |
26262 | { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5 | |
26263 | echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;} | |
26264 | { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5 | |
26265 | echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
26266 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 |
26267 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
eea650d8 VS |
26268 | { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5 |
26269 | echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
26270 | ( |
26271 | cat <<\_ASBOX | |
eea650d8 VS |
26272 | ## ----------------------------------------- ## |
26273 | ## Report this to wx-dev@lists.wxwindows.org ## | |
26274 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
26275 | _ASBOX |
26276 | ) | | |
26277 | sed "s/^/$as_me: WARNING: /" >&2 | |
26278 | ;; | |
26279 | esac | |
26280 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
26281 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
26282 | if test "${ac_cv_header_sql_h+set}" = set; then | |
26283 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8647bec6 | 26284 | else |
e6cc62c6 VS |
26285 | ac_cv_header_sql_h=$ac_header_preproc |
26286 | fi | |
26287 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
26288 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
26289 | ||
bb41dcbe VS |
26290 | fi |
26291 | if test $ac_cv_header_sql_h = yes; then | |
26292 | found_sql_h=1 | |
8647bec6 RG |
26293 | fi |
26294 | ||
e6cc62c6 | 26295 | |
bb41dcbe | 26296 | if test "x$found_sql_h" = "x1" ; then |
e46d2a18 VS |
26297 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5 |
26298 | echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6 | |
26299 | if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then | |
e6cc62c6 | 26300 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8647bec6 | 26301 | else |
bb41dcbe | 26302 | ac_check_lib_save_LIBS=$LIBS |
e46d2a18 | 26303 | LIBS="-liodbc $LIBS" |
e6cc62c6 | 26304 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
26305 | /* confdefs.h. */ |
26306 | _ACEOF | |
26307 | cat confdefs.h >>conftest.$ac_ext | |
26308 | cat >>conftest.$ac_ext <<_ACEOF | |
26309 | /* end confdefs.h. */ | |
26310 | ||
8647bec6 | 26311 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
26312 | #ifdef __cplusplus |
26313 | extern "C" | |
26314 | #endif | |
8647bec6 | 26315 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 | 26316 | builtin and then its argument prototype would still apply. */ |
e46d2a18 | 26317 | char SQLAllocEnv (); |
e6cc62c6 VS |
26318 | int |
26319 | main () | |
26320 | { | |
e46d2a18 | 26321 | SQLAllocEnv (); |
e6cc62c6 VS |
26322 | ; |
26323 | return 0; | |
26324 | } | |
26325 | _ACEOF | |
26326 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26327 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 26328 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 26329 | ac_status=$? |
eea650d8 VS |
26330 | grep -v '^ *+' conftest.er1 >conftest.err |
26331 | rm -f conftest.er1 | |
26332 | cat conftest.err >&5 | |
e6cc62c6 VS |
26333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26334 | (exit $ac_status); } && | |
eea650d8 VS |
26335 | { ac_try='test -z "$ac_c_werror_flag" |
26336 | || test ! -s conftest.err' | |
26337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26338 | (eval $ac_try) 2>&5 | |
26339 | ac_status=$? | |
26340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26341 | (exit $ac_status); }; } && | |
26342 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
26343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26344 | (eval $ac_try) 2>&5 | |
26345 | ac_status=$? | |
26346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26347 | (exit $ac_status); }; }; then | |
e46d2a18 | 26348 | ac_cv_lib_iodbc_SQLAllocEnv=yes |
8647bec6 | 26349 | else |
e6cc62c6 VS |
26350 | echo "$as_me: failed program was:" >&5 |
26351 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26352 | ||
e46d2a18 | 26353 | ac_cv_lib_iodbc_SQLAllocEnv=no |
8647bec6 | 26354 | fi |
eea650d8 VS |
26355 | rm -f conftest.err conftest.$ac_objext \ |
26356 | conftest$ac_exeext conftest.$ac_ext | |
bb41dcbe VS |
26357 | LIBS=$ac_check_lib_save_LIBS |
26358 | fi | |
e46d2a18 VS |
26359 | echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5 |
26360 | echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6 | |
26361 | if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then | |
bb41dcbe VS |
26362 | ODBC_LINK=" -liodbc" |
26363 | else | |
26364 | ||
e46d2a18 VS |
26365 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5 |
26366 | echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6 | |
26367 | if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then | |
bb41dcbe VS |
26368 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
26369 | else | |
26370 | ac_check_lib_save_LIBS=$LIBS | |
e46d2a18 | 26371 | LIBS="-lunixodbc $LIBS" |
bb41dcbe | 26372 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
26373 | /* confdefs.h. */ |
26374 | _ACEOF | |
26375 | cat confdefs.h >>conftest.$ac_ext | |
26376 | cat >>conftest.$ac_ext <<_ACEOF | |
26377 | /* end confdefs.h. */ | |
26378 | ||
8647bec6 | 26379 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
26380 | #ifdef __cplusplus |
26381 | extern "C" | |
26382 | #endif | |
8647bec6 | 26383 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 | 26384 | builtin and then its argument prototype would still apply. */ |
e46d2a18 | 26385 | char SQLAllocEnv (); |
e6cc62c6 VS |
26386 | int |
26387 | main () | |
26388 | { | |
e46d2a18 | 26389 | SQLAllocEnv (); |
e6cc62c6 VS |
26390 | ; |
26391 | return 0; | |
26392 | } | |
26393 | _ACEOF | |
26394 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26395 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 26396 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 26397 | ac_status=$? |
eea650d8 VS |
26398 | grep -v '^ *+' conftest.er1 >conftest.err |
26399 | rm -f conftest.er1 | |
26400 | cat conftest.err >&5 | |
e6cc62c6 VS |
26401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26402 | (exit $ac_status); } && | |
eea650d8 VS |
26403 | { ac_try='test -z "$ac_c_werror_flag" |
26404 | || test ! -s conftest.err' | |
26405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26406 | (eval $ac_try) 2>&5 | |
26407 | ac_status=$? | |
26408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26409 | (exit $ac_status); }; } && | |
26410 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
26411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26412 | (eval $ac_try) 2>&5 | |
26413 | ac_status=$? | |
26414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26415 | (exit $ac_status); }; }; then | |
e46d2a18 | 26416 | ac_cv_lib_unixodbc_SQLAllocEnv=yes |
8647bec6 | 26417 | else |
e6cc62c6 VS |
26418 | echo "$as_me: failed program was:" >&5 |
26419 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26420 | ||
e46d2a18 | 26421 | ac_cv_lib_unixodbc_SQLAllocEnv=no |
8647bec6 | 26422 | fi |
eea650d8 VS |
26423 | rm -f conftest.err conftest.$ac_objext \ |
26424 | conftest$ac_exeext conftest.$ac_ext | |
bb41dcbe | 26425 | LIBS=$ac_check_lib_save_LIBS |
e6cc62c6 | 26426 | fi |
e46d2a18 VS |
26427 | echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5 |
26428 | echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6 | |
26429 | if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then | |
bb41dcbe VS |
26430 | ODBC_LINK=" -lunixodbc" |
26431 | else | |
26432 | ||
e46d2a18 VS |
26433 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5 |
26434 | echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6 | |
26435 | if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then | |
bb41dcbe VS |
26436 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
26437 | else | |
26438 | ac_check_lib_save_LIBS=$LIBS | |
e46d2a18 | 26439 | LIBS="-lodbc $LIBS" |
bb41dcbe | 26440 | cat >conftest.$ac_ext <<_ACEOF |
bb41dcbe VS |
26441 | /* confdefs.h. */ |
26442 | _ACEOF | |
26443 | cat confdefs.h >>conftest.$ac_ext | |
26444 | cat >>conftest.$ac_ext <<_ACEOF | |
26445 | /* end confdefs.h. */ | |
e6cc62c6 | 26446 | |
bb41dcbe VS |
26447 | /* Override any gcc2 internal prototype to avoid an error. */ |
26448 | #ifdef __cplusplus | |
26449 | extern "C" | |
26450 | #endif | |
26451 | /* We use char because int might match the return type of a gcc2 | |
26452 | builtin and then its argument prototype would still apply. */ | |
e46d2a18 | 26453 | char SQLAllocEnv (); |
bb41dcbe VS |
26454 | int |
26455 | main () | |
26456 | { | |
e46d2a18 | 26457 | SQLAllocEnv (); |
bb41dcbe VS |
26458 | ; |
26459 | return 0; | |
26460 | } | |
26461 | _ACEOF | |
26462 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26463 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 26464 | (eval $ac_link) 2>conftest.er1 |
bb41dcbe | 26465 | ac_status=$? |
eea650d8 VS |
26466 | grep -v '^ *+' conftest.er1 >conftest.err |
26467 | rm -f conftest.er1 | |
26468 | cat conftest.err >&5 | |
bb41dcbe VS |
26469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26470 | (exit $ac_status); } && | |
eea650d8 VS |
26471 | { ac_try='test -z "$ac_c_werror_flag" |
26472 | || test ! -s conftest.err' | |
26473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26474 | (eval $ac_try) 2>&5 | |
26475 | ac_status=$? | |
26476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26477 | (exit $ac_status); }; } && | |
26478 | { ac_try='test -s conftest$ac_exeext' | |
bb41dcbe VS |
26479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26480 | (eval $ac_try) 2>&5 | |
26481 | ac_status=$? | |
26482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26483 | (exit $ac_status); }; }; then | |
e46d2a18 | 26484 | ac_cv_lib_odbc_SQLAllocEnv=yes |
e6cc62c6 | 26485 | else |
bb41dcbe VS |
26486 | echo "$as_me: failed program was:" >&5 |
26487 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26488 | ||
e46d2a18 | 26489 | ac_cv_lib_odbc_SQLAllocEnv=no |
bb41dcbe | 26490 | fi |
eea650d8 VS |
26491 | rm -f conftest.err conftest.$ac_objext \ |
26492 | conftest$ac_exeext conftest.$ac_ext | |
bb41dcbe VS |
26493 | LIBS=$ac_check_lib_save_LIBS |
26494 | fi | |
e46d2a18 VS |
26495 | echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5 |
26496 | echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6 | |
26497 | if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then | |
bb41dcbe VS |
26498 | ODBC_LINK=" -lodbc" |
26499 | fi | |
26500 | ||
26501 | ||
26502 | fi | |
e6cc62c6 | 26503 | |
e6cc62c6 | 26504 | |
8647bec6 | 26505 | fi |
e6cc62c6 | 26506 | |
fd3d7534 | 26507 | fi |
bb41dcbe VS |
26508 | if test "x$ODBC_LINK" = "x" ; then |
26509 | if test "$wxUSE_ODBC" = "sys" ; then | |
26510 | { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5 | |
26511 | echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;} | |
26512 | { (exit 1); exit 1; }; } | |
26513 | else | |
26514 | { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5 | |
26515 | echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;} | |
26516 | wxUSE_ODBC=builtin | |
26517 | fi | |
26518 | else | |
26519 | wxUSE_ODBC=sys | |
8647bec6 | 26520 | fi |
8647bec6 | 26521 | fi |
bb41dcbe VS |
26522 | if test "$wxUSE_ODBC" != "no" ; then |
26523 | cat >>confdefs.h <<\_ACEOF | |
26524 | #define wxUSE_ODBC 1 | |
26525 | _ACEOF | |
e6cc62c6 | 26526 | |
0bdb08e7 VS |
26527 | if test "$wxUSE_ODBC" = "builtin" ; then |
26528 | cat >>confdefs.h <<\_ACEOF | |
26529 | #define wxUSE_BUILTIN_IODBC 1 | |
26530 | _ACEOF | |
26531 | ||
26532 | fi | |
bb41dcbe VS |
26533 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" |
26534 | ||
26535 | WXODBCFLAG="-D_IODBC_" | |
26536 | fi | |
6232543b | 26537 | fi |
21d1c967 GD |
26538 | |
26539 | if test "$wxUSE_REGEX" = "builtin" ; then | |
26540 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" | |
1e487827 | 26541 | fi |
21d1c967 GD |
26542 | if test "$wxUSE_ZLIB" = "builtin" ; then |
26543 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
bd3277fe VZ |
26544 | fi |
26545 | ||
8284b0c5 | 26546 | |
4d264332 | 26547 | USE_OPENGL=0 |
21d1c967 | 26548 | if test "$wxUSE_OPENGL" = "yes"; then |
ac0c4cc3 | 26549 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then |
21d1c967 GD |
26550 | OPENGL_LIBS="-framework OpenGL -framework AGL" |
26551 | elif test "$wxUSE_MSW" = 1; then | |
26552 | OPENGL_LIBS="-lopengl32 -lglu32" | |
26553 | else | |
01aa5863 VS |
26554 | |
26555 | ||
26556 | ac_find_includes= | |
26557 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
26558 | do | |
26559 | if test -f "$ac_dir/GL/gl.h"; then | |
26560 | ac_find_includes=$ac_dir | |
26561 | break | |
26562 | fi | |
26563 | done | |
26564 | ||
26565 | if test "$ac_find_includes" != "" ; then | |
26566 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
26567 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
01aa5863 VS |
26568 | |
26569 | if test "x$ac_find_includes" = "x/usr/include"; then | |
26570 | ac_path_to_include="" | |
26571 | else | |
26572 | echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null | |
26573 | result=$? | |
26574 | if test $result = 0; then | |
26575 | ac_path_to_include="" | |
26576 | else | |
26577 | ac_path_to_include=" -I$ac_find_includes" | |
26578 | fi | |
26579 | fi | |
26580 | ||
26581 | CPPFLAGS="$CPPFLAGS$ac_path_to_include" | |
01aa5863 VS |
26582 | fi |
26583 | ||
e6cc62c6 VS |
26584 | if test "${ac_cv_header_GL_gl_h+set}" = set; then |
26585 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
26586 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
26587 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
26588 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26589 | fi | |
26590 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
26591 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
26592 | else | |
26593 | # Is the header compilable? | |
26594 | echo "$as_me:$LINENO: checking GL/gl.h usability" >&5 | |
26595 | echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6 | |
26596 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
26597 | /* confdefs.h. */ |
26598 | _ACEOF | |
26599 | cat confdefs.h >>conftest.$ac_ext | |
26600 | cat >>conftest.$ac_ext <<_ACEOF | |
26601 | /* end confdefs.h. */ | |
26602 | $ac_includes_default | |
21d1c967 | 26603 | #include <GL/gl.h> |
e6cc62c6 VS |
26604 | _ACEOF |
26605 | rm -f conftest.$ac_objext | |
26606 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 26607 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 26608 | ac_status=$? |
eea650d8 VS |
26609 | grep -v '^ *+' conftest.er1 >conftest.err |
26610 | rm -f conftest.er1 | |
26611 | cat conftest.err >&5 | |
e6cc62c6 VS |
26612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26613 | (exit $ac_status); } && | |
eea650d8 VS |
26614 | { ac_try='test -z "$ac_c_werror_flag" |
26615 | || test ! -s conftest.err' | |
26616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26617 | (eval $ac_try) 2>&5 | |
26618 | ac_status=$? | |
26619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26620 | (exit $ac_status); }; } && | |
26621 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
26622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26623 | (eval $ac_try) 2>&5 | |
26624 | ac_status=$? | |
26625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26626 | (exit $ac_status); }; }; then | |
26627 | ac_header_compiler=yes | |
26628 | else | |
26629 | echo "$as_me: failed program was:" >&5 | |
26630 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26631 | ||
26632 | ac_header_compiler=no | |
26633 | fi | |
eea650d8 | 26634 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
26635 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
26636 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
26637 | ||
26638 | # Is the header present? | |
26639 | echo "$as_me:$LINENO: checking GL/gl.h presence" >&5 | |
26640 | echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6 | |
26641 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
26642 | /* confdefs.h. */ |
26643 | _ACEOF | |
26644 | cat confdefs.h >>conftest.$ac_ext | |
26645 | cat >>conftest.$ac_ext <<_ACEOF | |
26646 | /* end confdefs.h. */ | |
26647 | #include <GL/gl.h> | |
26648 | _ACEOF | |
26649 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
26650 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
26651 | ac_status=$? | |
26652 | grep -v '^ *+' conftest.er1 >conftest.err | |
26653 | rm -f conftest.er1 | |
26654 | cat conftest.err >&5 | |
26655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26656 | (exit $ac_status); } >/dev/null; then | |
26657 | if test -s conftest.err; then | |
26658 | ac_cpp_err=$ac_c_preproc_warn_flag | |
eea650d8 | 26659 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
26660 | else |
26661 | ac_cpp_err= | |
26662 | fi | |
26663 | else | |
26664 | ac_cpp_err=yes | |
26665 | fi | |
26666 | if test -z "$ac_cpp_err"; then | |
26667 | ac_header_preproc=yes | |
26668 | else | |
26669 | echo "$as_me: failed program was:" >&5 | |
26670 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26671 | ||
26672 | ac_header_preproc=no | |
26673 | fi | |
26674 | rm -f conftest.err conftest.$ac_ext | |
26675 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
26676 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
26677 | ||
26678 | # So? What about this header? | |
eea650d8 VS |
26679 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
26680 | yes:no: ) | |
e6cc62c6 VS |
26681 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
26682 | echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
eea650d8 VS |
26683 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5 |
26684 | echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;} | |
26685 | ac_header_preproc=yes | |
e6cc62c6 | 26686 | ;; |
eea650d8 | 26687 | no:yes:* ) |
e6cc62c6 VS |
26688 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5 |
26689 | echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;} | |
eea650d8 VS |
26690 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5 |
26691 | echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;} | |
26692 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5 | |
26693 | echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;} | |
26694 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
26695 | echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
26696 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 |
26697 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
eea650d8 VS |
26698 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5 |
26699 | echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
26700 | ( |
26701 | cat <<\_ASBOX | |
eea650d8 VS |
26702 | ## ----------------------------------------- ## |
26703 | ## Report this to wx-dev@lists.wxwindows.org ## | |
26704 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
26705 | _ASBOX |
26706 | ) | | |
26707 | sed "s/^/$as_me: WARNING: /" >&2 | |
26708 | ;; | |
26709 | esac | |
26710 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
26711 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
26712 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
26713 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26714 | else | |
26715 | ac_cv_header_GL_gl_h=$ac_header_preproc | |
703e0a69 | 26716 | fi |
e6cc62c6 VS |
26717 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 |
26718 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
26719 | ||
698dcdb6 | 26720 | fi |
e6cc62c6 VS |
26721 | if test $ac_cv_header_GL_gl_h = yes; then |
26722 | ||
89e3b3e4 VZ |
26723 | found_gl=0 |
26724 | ||
e6cc62c6 VS |
26725 | echo "$as_me:$LINENO: checking for -lGL" >&5 |
26726 | echo $ECHO_N "checking for -lGL... $ECHO_C" >&6 | |
26727 | ||
21d1c967 | 26728 | ac_find_libraries= |
2b5f62a0 | 26729 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
26730 | do |
26731 | for ac_extension in a so sl dylib; do | |
26732 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
26733 | ac_find_libraries=$ac_dir | |
26734 | break 2 | |
26735 | fi | |
26736 | done | |
26737 | done | |
26738 | ||
26739 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 | 26740 | |
21d1c967 GD |
26741 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
26742 | result=$? | |
26743 | if test $result = 0; then | |
26744 | ac_path_to_link="" | |
26745 | else | |
26746 | ac_path_to_link=" -L$ac_find_libraries" | |
26747 | fi | |
26748 | ||
89e3b3e4 VZ |
26749 | if test "$ac_path_to_link" != " -L/usr/lib" ; then |
26750 | LDFLAGS_GL="$ac_path_to_link" | |
21d1c967 | 26751 | fi |
89e3b3e4 | 26752 | |
e6cc62c6 | 26753 | |
89e3b3e4 VZ |
26754 | ac_find_libraries= |
26755 | for ac_dir in $SEARCH_LIB /usr/lib; | |
26756 | do | |
26757 | for ac_extension in a so sl dylib; do | |
26758 | if test -f "$ac_dir/libGLU.$ac_extension"; then | |
26759 | ac_find_libraries=$ac_dir | |
26760 | break 2 | |
26761 | fi | |
26762 | done | |
26763 | done | |
26764 | ||
26765 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 | 26766 | |
89e3b3e4 VZ |
26767 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
26768 | result=$? | |
26769 | if test $result = 0; then | |
26770 | ac_path_to_link="" | |
26771 | else | |
26772 | ac_path_to_link=" -L$ac_find_libraries" | |
26773 | fi | |
26774 | ||
26775 | if test "$ac_path_to_link" != " -L/usr/lib" -a \ | |
26776 | "$ac_path_to_link" != "$LDFLAGS_GL"; then | |
26777 | LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link" | |
26778 | fi | |
26779 | ||
26780 | found_gl=1 | |
26781 | OPENGL_LIBS="-lGL -lGLU" | |
e6cc62c6 VS |
26782 | echo "$as_me:$LINENO: result: yes" >&5 |
26783 | echo "${ECHO_T}yes" >&6 | |
89e3b3e4 VZ |
26784 | fi |
26785 | fi | |
26786 | ||
bb41dcbe | 26787 | if test "$found_gl" != 1; then |
e6cc62c6 VS |
26788 | echo "$as_me:$LINENO: result: no" >&5 |
26789 | echo "${ECHO_T}no" >&6 | |
26790 | echo "$as_me:$LINENO: checking for -lMesaGL" >&5 | |
26791 | echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6 | |
26792 | ||
21d1c967 | 26793 | ac_find_libraries= |
2b5f62a0 | 26794 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
26795 | do |
26796 | for ac_extension in a so sl dylib; do | |
26797 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
26798 | ac_find_libraries=$ac_dir | |
26799 | break 2 | |
26800 | fi | |
26801 | done | |
26802 | done | |
26803 | ||
26804 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 | 26805 | |
21d1c967 GD |
26806 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
26807 | result=$? | |
26808 | if test $result = 0; then | |
26809 | ac_path_to_link="" | |
26810 | else | |
26811 | ac_path_to_link=" -L$ac_find_libraries" | |
26812 | fi | |
26813 | ||
26814 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
26815 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
e6cc62c6 VS |
26816 | echo "$as_me:$LINENO: result: yes" >&5 |
26817 | echo "${ECHO_T}yes" >&6 | |
21d1c967 | 26818 | else |
e6cc62c6 VS |
26819 | echo "$as_me:$LINENO: result: no" >&5 |
26820 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
26821 | fi |
26822 | fi | |
e6cc62c6 | 26823 | |
5c6fa7d2 | 26824 | fi |
52127426 | 26825 | |
8284b0c5 | 26826 | |
e6cc62c6 | 26827 | |
21d1c967 | 26828 | if test "x$OPENGL_LIBS" = "x"; then |
e6cc62c6 VS |
26829 | { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5 |
26830 | echo "$as_me: error: OpenGL libraries not available" >&2;} | |
26831 | { (exit 1); exit 1; }; } | |
21d1c967 GD |
26832 | fi |
26833 | fi | |
90dd450c | 26834 | |
21d1c967 | 26835 | if test "$wxUSE_OPENGL" = "yes"; then |
4d264332 | 26836 | USE_OPENGL=1 |
e6cc62c6 | 26837 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 26838 | #define wxUSE_OPENGL 1 |
e6cc62c6 | 26839 | _ACEOF |
21d1c967 | 26840 | |
e6cc62c6 | 26841 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 26842 | #define wxUSE_GLCANVAS 1 |
e6cc62c6 | 26843 | _ACEOF |
21d1c967 | 26844 | |
520755bb | 26845 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf" |
21d1c967 | 26846 | fi |
10f2d63a | 26847 | fi |
21d1c967 GD |
26848 | |
26849 | if test -z "$TOOLKIT_VPATH" ; then | |
26850 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
10f2d63a | 26851 | fi |
21d1c967 GD |
26852 | |
26853 | if test -n "$TOOLKIT" ; then | |
26854 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
26855 | fi | |
26856 | ||
fe0895cf | 26857 | UNICODE=0 |
21d1c967 GD |
26858 | lib_unicode_suffix= |
26859 | if test "$wxUSE_UNICODE" = "yes"; then | |
26860 | lib_unicode_suffix=u | |
fe0895cf | 26861 | UNICODE=1 |
90dd450c | 26862 | fi |
698dcdb6 | 26863 | |
21d1c967 | 26864 | lib_debug_suffix= |
6c67131a | 26865 | DEBUG_FLAG=0 |
21d1c967 GD |
26866 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then |
26867 | lib_debug_suffix=d | |
6c67131a VS |
26868 | DEBUG_FLAG=1 |
26869 | fi | |
26870 | ||
26871 | DEBUG_INFO=0 | |
26872 | if test "$wxUSE_DEBUG_INFO" = "yes"; then | |
26873 | DEBUG_INFO=1 | |
21d1c967 | 26874 | fi |
698dcdb6 | 26875 | |
1cbb95a2 | 26876 | WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` |
2b5f62a0 VZ |
26877 | |
26878 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}" | |
26879 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
21d1c967 GD |
26880 | |
26881 | if test "$cross_compiling" = "yes"; then | |
26882 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
26883 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
ea66c762 | 26884 | HOST_SUFFIX="-${host_alias}" |
21d1c967 GD |
26885 | fi |
26886 | ||
26887 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
26888 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
cf615ebb VS |
26889 | WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}" |
26890 | WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}" | |
21d1c967 GD |
26891 | |
26892 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
26893 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
26894 | ||
26895 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
26896 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
26897 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
26898 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
26899 | ||
26900 | case "${host}" in | |
26901 | *-*-cygwin* | *-*-mingw32* ) | |
ec67c474 VS |
26902 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}" |
26903 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
21d1c967 GD |
26904 | ;; |
26905 | ||
26906 | *-*-darwin* ) | |
e6cc62c6 | 26907 | |
05159a27 GD |
26908 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}" |
26909 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}" | |
26910 | ||
26911 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}" | |
26912 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
26913 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}" | |
26914 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
26915 | ||
21d1c967 | 26916 | if test "$wxUSE_MAC" = 1; then |
f346733b GD |
26917 | WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r" |
26918 | WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc" | |
21d1c967 GD |
26919 | fi |
26920 | ;; | |
26921 | esac | |
26922 | ||
26923 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
26924 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
26925 | ||
26926 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
26927 | WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a" | |
26928 | ||
26929 | if test "$wxUSE_OPENGL" = "yes"; then | |
26930 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}" | |
26931 | WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}" | |
26932 | fi | |
26933 | ||
8284b0c5 MB |
26934 | |
26935 | ||
21d1c967 GD |
26936 | if test "$wxUSE_SHARED" = "yes"; then |
26937 | case "${host}" in | |
26938 | *-pc-os2_emx | *-pc-os2-emx | \ | |
26939 | *-pc-msdosdjgpp ) | |
26940 | wxUSE_SHARED=no | |
e6cc62c6 VS |
26941 | { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5 |
26942 | echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;} | |
21d1c967 GD |
26943 | ;; |
26944 | esac | |
26945 | fi | |
26946 | ||
fe0895cf | 26947 | SHARED=0 |
2b5f62a0 | 26948 | if test "$wxUSE_SHARED" = "yes"; then |
fe0895cf | 26949 | SHARED=1 |
2b5f62a0 | 26950 | |
e6cc62c6 | 26951 | |
2b5f62a0 VZ |
26952 | found_versioning=no |
26953 | ||
e6cc62c6 | 26954 | |
2b5f62a0 | 26955 | if test $found_versioning = no ; then |
e6cc62c6 VS |
26956 | echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5 |
26957 | echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6 | |
26958 | if test "${wx_cv_version_script+set}" = set; then | |
26959 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2b5f62a0 | 26960 | else |
e6cc62c6 | 26961 | |
2b5f62a0 VZ |
26962 | echo "VER_1 { *; };" >conftest.sym |
26963 | echo "int main() { return 0; }" >conftest.cpp | |
e6cc62c6 | 26964 | |
2b5f62a0 VZ |
26965 | if { ac_try=' |
26966 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
e6cc62c6 VS |
26967 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr' |
26968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26969 | (eval $ac_try) 2>&5 | |
26970 | ac_status=$? | |
26971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26972 | (exit $ac_status); }; } ; then | |
2b5f62a0 VZ |
26973 | if test -s conftest.stderr ; then |
26974 | wx_cv_version_script=no | |
26975 | else | |
26976 | wx_cv_version_script=yes | |
26977 | fi | |
26978 | else | |
26979 | wx_cv_version_script=no | |
26980 | fi | |
26981 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp | |
2b5f62a0 | 26982 | |
e6cc62c6 VS |
26983 | fi |
26984 | echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5 | |
26985 | echo "${ECHO_T}$wx_cv_version_script" >&6 | |
2b5f62a0 | 26986 | if test $wx_cv_version_script = yes ; then |
e6cc62c6 | 26987 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script" |
2b5f62a0 VZ |
26988 | fi |
26989 | fi | |
21d1c967 | 26990 | |
21d1c967 | 26991 | |
21d1c967 | 26992 | case "${host}" in |
fe0895cf | 26993 | *-*-linux* | *-*-gnu* ) |
e6cc62c6 | 26994 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" |
345b8952 | 26995 | ;; |
21d1c967 GD |
26996 | |
26997 | *-*-solaris2* ) | |
26998 | if test "$GCC" = yes ; then | |
26999 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
fe0895cf VS |
27000 | |
27001 | saveLdflags="$LDFLAGS" | |
27002 | LDFLAGS="$saveLdflags -Wl,-rpath,/" | |
e6cc62c6 VS |
27003 | echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5 |
27004 | echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6 | |
27005 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
27006 | /* confdefs.h. */ |
27007 | _ACEOF | |
27008 | cat confdefs.h >>conftest.$ac_ext | |
27009 | cat >>conftest.$ac_ext <<_ACEOF | |
27010 | /* end confdefs.h. */ | |
27011 | ||
27012 | int | |
27013 | main () | |
27014 | { | |
fe0895cf | 27015 | |
e6cc62c6 VS |
27016 | ; |
27017 | return 0; | |
27018 | } | |
27019 | _ACEOF | |
27020 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27021 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 27022 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 27023 | ac_status=$? |
eea650d8 VS |
27024 | grep -v '^ *+' conftest.er1 >conftest.err |
27025 | rm -f conftest.er1 | |
27026 | cat conftest.err >&5 | |
e6cc62c6 VS |
27027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27028 | (exit $ac_status); } && | |
eea650d8 VS |
27029 | { ac_try='test -z "$ac_c_werror_flag" |
27030 | || test ! -s conftest.err' | |
27031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27032 | (eval $ac_try) 2>&5 | |
27033 | ac_status=$? | |
27034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27035 | (exit $ac_status); }; } && | |
27036 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
27037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27038 | (eval $ac_try) 2>&5 | |
27039 | ac_status=$? | |
27040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27041 | (exit $ac_status); }; }; then | |
27042 | ||
27043 | echo "$as_me:$LINENO: result: yes" >&5 | |
27044 | echo "${ECHO_T}yes" >&6 | |
27045 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
27046 | ||
27047 | else | |
27048 | echo "$as_me: failed program was:" >&5 | |
27049 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27050 | ||
27051 | ||
27052 | echo "$as_me:$LINENO: result: no" >&5 | |
27053 | echo "${ECHO_T}no" >&6 | |
27054 | echo "$as_me:$LINENO: checking if the linker accepts -R" >&5 | |
27055 | echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6 | |
fe0895cf | 27056 | LDFLAGS="$saveLdflags -Wl,-R,/" |
e6cc62c6 | 27057 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
27058 | /* confdefs.h. */ |
27059 | _ACEOF | |
27060 | cat confdefs.h >>conftest.$ac_ext | |
27061 | cat >>conftest.$ac_ext <<_ACEOF | |
27062 | /* end confdefs.h. */ | |
27063 | ||
27064 | int | |
27065 | main () | |
27066 | { | |
27067 | ||
27068 | ; | |
27069 | return 0; | |
27070 | } | |
27071 | _ACEOF | |
27072 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27073 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 27074 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 27075 | ac_status=$? |
eea650d8 VS |
27076 | grep -v '^ *+' conftest.er1 >conftest.err |
27077 | rm -f conftest.er1 | |
27078 | cat conftest.err >&5 | |
e6cc62c6 VS |
27079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27080 | (exit $ac_status); } && | |
eea650d8 VS |
27081 | { ac_try='test -z "$ac_c_werror_flag" |
27082 | || test ! -s conftest.err' | |
27083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27084 | (eval $ac_try) 2>&5 | |
27085 | ac_status=$? | |
27086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27087 | (exit $ac_status); }; } && | |
27088 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
27089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27090 | (eval $ac_try) 2>&5 | |
27091 | ac_status=$? | |
27092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27093 | (exit $ac_status); }; }; then | |
27094 | ||
27095 | echo "$as_me:$LINENO: result: yes" >&5 | |
27096 | echo "${ECHO_T}yes" >&6 | |
27097 | SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib" | |
27098 | else | |
27099 | echo "$as_me: failed program was:" >&5 | |
27100 | sed 's/^/| /' conftest.$ac_ext >&5 | |
fe0895cf | 27101 | |
fe0895cf | 27102 | |
e6cc62c6 VS |
27103 | echo "$as_me:$LINENO: result: no" >&5 |
27104 | echo "${ECHO_T}no" >&6 | |
27105 | ||
fe0895cf | 27106 | fi |
eea650d8 VS |
27107 | rm -f conftest.err conftest.$ac_objext \ |
27108 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
27109 | |
27110 | fi | |
eea650d8 VS |
27111 | rm -f conftest.err conftest.$ac_objext \ |
27112 | conftest$ac_exeext conftest.$ac_ext | |
fe0895cf | 27113 | LDFLAGS="$saveLdflags" |
21d1c967 GD |
27114 | else |
27115 | SHARED_LD="${CXX} -G -o" | |
27116 | PIC_FLAG="-KPIC" | |
e6cc62c6 | 27117 | SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib" |
21d1c967 GD |
27118 | fi |
27119 | ;; | |
0f1bc9c2 VS |
27120 | |
27121 | powerpc-*-darwin* ) | |
ef0add05 VS |
27122 | SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@" |
27123 | cat <<EOF >change-install-names | |
27124 | #!/bin/sh | |
27125 | libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\` | |
27126 | inst_cmd="install_name_tool " | |
27127 | for i in \${libnames} ; do | |
27128 | inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}" | |
27129 | done | |
27130 | \${inst_cmd} \${3} | |
27131 | EOF | |
27132 | chmod +x change-install-names | |
0f1bc9c2 VS |
27133 | ;; |
27134 | ||
21d1c967 GD |
27135 | esac |
27136 | ||
27137 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
27138 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
27139 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" | |
27140 | fi | |
27141 | ||
27142 | WX_TARGET_LIBRARY_TYPE="so" | |
27143 | INSTALL_LIBRARY='$(INSTALL_PROGRAM)' | |
90dd450c | 27144 | fi |
10f2d63a | 27145 | |
21d1c967 GD |
27146 | if test "$wxUSE_SHARED" = "no"; then |
27147 | ||
27148 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then | |
27149 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
27150 | fi | |
27151 | ||
ac0c4cc3 | 27152 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
21d1c967 GD |
27153 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" |
27154 | fi | |
27155 | ||
27156 | if test "$wxUSE_OPENGL" = "yes"; then | |
27157 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
27158 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
27159 | else | |
27160 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
27161 | fi | |
27162 | ||
27163 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
27164 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
27165 | ||
27166 | WX_TARGET_LIBRARY_TYPE="a" | |
27167 | INSTALL_LIBRARY='$(INSTALL_DATA)' | |
2bffed64 VZ |
27168 | |
27169 | STATIC_FLAG="yes" | |
27170 | else | |
27171 | STATIC_FLAG="no" | |
90dd450c | 27172 | fi |
1e487827 | 27173 | |
93fac604 VZ |
27174 | MACRESCOMP="@#" |
27175 | MACSETFILE="@#" | |
36825681 | 27176 | MACRESWXCONFIG="#" |
21d1c967 | 27177 | if test "$wxUSE_MAC" = 1; then |
e6cc62c6 | 27178 | LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}" |
21d1c967 GD |
27179 | WX_ALL="${WX_ALL} ${LIBWXMACRES}" |
27180 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res" | |
27181 | # Extract the first word of "Rez", so it can be a program name with args. | |
27182 | set dummy Rez; ac_word=$2 | |
e6cc62c6 VS |
27183 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
27184 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27185 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
27186 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b93d0d08 | 27187 | else |
21d1c967 GD |
27188 | if test -n "$RESCOMP"; then |
27189 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
b93d0d08 | 27190 | else |
e6cc62c6 VS |
27191 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
27192 | for as_dir in $PATH | |
27193 | do | |
27194 | IFS=$as_save_IFS | |
27195 | test -z "$as_dir" && as_dir=. | |
27196 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27197 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27198 | ac_cv_prog_RESCOMP="Rez" | |
27199 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27200 | break 2 | |
27201 | fi | |
27202 | done | |
27203 | done | |
27204 | ||
21d1c967 | 27205 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" |
b93d0d08 | 27206 | fi |
b93d0d08 | 27207 | fi |
e6cc62c6 | 27208 | RESCOMP=$ac_cv_prog_RESCOMP |
21d1c967 | 27209 | if test -n "$RESCOMP"; then |
e6cc62c6 VS |
27210 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 |
27211 | echo "${ECHO_T}$RESCOMP" >&6 | |
90dd450c | 27212 | else |
e6cc62c6 VS |
27213 | echo "$as_me:$LINENO: result: no" >&5 |
27214 | echo "${ECHO_T}no" >&6 | |
90dd450c | 27215 | fi |
b93d0d08 | 27216 | |
21d1c967 GD |
27217 | # Extract the first word of "DeRez", so it can be a program name with args. |
27218 | set dummy DeRez; ac_word=$2 | |
e6cc62c6 VS |
27219 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
27220 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27221 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
27222 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3a922bb4 | 27223 | else |
21d1c967 GD |
27224 | if test -n "$DEREZ"; then |
27225 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
4f14bcd8 | 27226 | else |
e6cc62c6 VS |
27227 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
27228 | for as_dir in $PATH | |
27229 | do | |
27230 | IFS=$as_save_IFS | |
27231 | test -z "$as_dir" && as_dir=. | |
27232 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27233 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27234 | ac_cv_prog_DEREZ="DeRez" | |
27235 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27236 | break 2 | |
27237 | fi | |
27238 | done | |
27239 | done | |
27240 | ||
21d1c967 | 27241 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" |
3a922bb4 | 27242 | fi |
90dd450c | 27243 | fi |
e6cc62c6 | 27244 | DEREZ=$ac_cv_prog_DEREZ |
21d1c967 | 27245 | if test -n "$DEREZ"; then |
e6cc62c6 VS |
27246 | echo "$as_me:$LINENO: result: $DEREZ" >&5 |
27247 | echo "${ECHO_T}$DEREZ" >&6 | |
90dd450c | 27248 | else |
e6cc62c6 VS |
27249 | echo "$as_me:$LINENO: result: no" >&5 |
27250 | echo "${ECHO_T}no" >&6 | |
3a922bb4 | 27251 | fi |
698dcdb6 | 27252 | |
36825681 GD |
27253 | # Extract the first word of "SetFile", so it can be a program name with args. |
27254 | set dummy SetFile; ac_word=$2 | |
e6cc62c6 VS |
27255 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
27256 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27257 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
27258 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36825681 GD |
27259 | else |
27260 | if test -n "$SETFILE"; then | |
27261 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
27262 | else | |
e6cc62c6 VS |
27263 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
27264 | for as_dir in $PATH | |
27265 | do | |
27266 | IFS=$as_save_IFS | |
27267 | test -z "$as_dir" && as_dir=. | |
27268 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27269 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27270 | ac_cv_prog_SETFILE="SetFile" | |
27271 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27272 | break 2 | |
27273 | fi | |
27274 | done | |
27275 | done | |
27276 | ||
36825681 GD |
27277 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" |
27278 | fi | |
27279 | fi | |
e6cc62c6 | 27280 | SETFILE=$ac_cv_prog_SETFILE |
36825681 | 27281 | if test -n "$SETFILE"; then |
e6cc62c6 VS |
27282 | echo "$as_me:$LINENO: result: $SETFILE" >&5 |
27283 | echo "${ECHO_T}$SETFILE" >&6 | |
36825681 | 27284 | else |
e6cc62c6 VS |
27285 | echo "$as_me:$LINENO: result: no" >&5 |
27286 | echo "${ECHO_T}no" >&6 | |
36825681 GD |
27287 | fi |
27288 | ||
21d1c967 | 27289 | MACOSX_BUNDLE="bundle" |
36825681 GD |
27290 | MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o" |
27291 | MACSETFILE="\$(SETFILE)" | |
9711d31e | 27292 | MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" |
64440d77 DE |
27293 | elif test "$wxUSE_COCOA" = 1; then |
27294 | # Extract the first word of "Rez", so it can be a program name with args. | |
27295 | set dummy Rez; ac_word=$2 | |
e6cc62c6 VS |
27296 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
27297 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27298 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
27299 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
64440d77 DE |
27300 | else |
27301 | if test -n "$RESCOMP"; then | |
27302 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
27303 | else | |
e6cc62c6 VS |
27304 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
27305 | for as_dir in $PATH | |
27306 | do | |
27307 | IFS=$as_save_IFS | |
27308 | test -z "$as_dir" && as_dir=. | |
27309 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27310 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27311 | ac_cv_prog_RESCOMP="Rez" | |
27312 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27313 | break 2 | |
27314 | fi | |
27315 | done | |
27316 | done | |
27317 | ||
64440d77 DE |
27318 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" |
27319 | fi | |
27320 | fi | |
e6cc62c6 | 27321 | RESCOMP=$ac_cv_prog_RESCOMP |
64440d77 | 27322 | if test -n "$RESCOMP"; then |
e6cc62c6 VS |
27323 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 |
27324 | echo "${ECHO_T}$RESCOMP" >&6 | |
64440d77 | 27325 | else |
e6cc62c6 VS |
27326 | echo "$as_me:$LINENO: result: no" >&5 |
27327 | echo "${ECHO_T}no" >&6 | |
64440d77 DE |
27328 | fi |
27329 | ||
27330 | # Extract the first word of "DeRez", so it can be a program name with args. | |
27331 | set dummy DeRez; ac_word=$2 | |
e6cc62c6 VS |
27332 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
27333 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27334 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
27335 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
64440d77 DE |
27336 | else |
27337 | if test -n "$DEREZ"; then | |
27338 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
27339 | else | |
e6cc62c6 VS |
27340 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
27341 | for as_dir in $PATH | |
27342 | do | |
27343 | IFS=$as_save_IFS | |
27344 | test -z "$as_dir" && as_dir=. | |
27345 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27346 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27347 | ac_cv_prog_DEREZ="DeRez" | |
27348 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27349 | break 2 | |
27350 | fi | |
27351 | done | |
27352 | done | |
27353 | ||
64440d77 DE |
27354 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" |
27355 | fi | |
27356 | fi | |
e6cc62c6 | 27357 | DEREZ=$ac_cv_prog_DEREZ |
64440d77 | 27358 | if test -n "$DEREZ"; then |
e6cc62c6 VS |
27359 | echo "$as_me:$LINENO: result: $DEREZ" >&5 |
27360 | echo "${ECHO_T}$DEREZ" >&6 | |
64440d77 | 27361 | else |
e6cc62c6 VS |
27362 | echo "$as_me:$LINENO: result: no" >&5 |
27363 | echo "${ECHO_T}no" >&6 | |
64440d77 DE |
27364 | fi |
27365 | ||
27366 | # Extract the first word of "SetFile", so it can be a program name with args. | |
27367 | set dummy SetFile; ac_word=$2 | |
e6cc62c6 VS |
27368 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
27369 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27370 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
27371 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
64440d77 DE |
27372 | else |
27373 | if test -n "$SETFILE"; then | |
27374 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
27375 | else | |
e6cc62c6 VS |
27376 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
27377 | for as_dir in $PATH | |
27378 | do | |
27379 | IFS=$as_save_IFS | |
27380 | test -z "$as_dir" && as_dir=. | |
27381 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27382 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27383 | ac_cv_prog_SETFILE="SetFile" | |
27384 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27385 | break 2 | |
27386 | fi | |
27387 | done | |
27388 | done | |
27389 | ||
64440d77 DE |
27390 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" |
27391 | fi | |
27392 | fi | |
e6cc62c6 | 27393 | SETFILE=$ac_cv_prog_SETFILE |
64440d77 | 27394 | if test -n "$SETFILE"; then |
e6cc62c6 VS |
27395 | echo "$as_me:$LINENO: result: $SETFILE" >&5 |
27396 | echo "${ECHO_T}$SETFILE" >&6 | |
64440d77 | 27397 | else |
e6cc62c6 VS |
27398 | echo "$as_me:$LINENO: result: no" >&5 |
27399 | echo "${ECHO_T}no" >&6 | |
64440d77 DE |
27400 | fi |
27401 | ||
27402 | MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o" | |
27403 | MACSETFILE="\$(SETFILE)" | |
9711d31e | 27404 | MACRESWXCONFIG="echo -n | ${RESCOMP} -d __DARWIN__ -t APPL \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" |
21d1c967 GD |
27405 | else |
27406 | if test "$wxUSE_PM" = 1; then | |
36825681 | 27407 | MACRESCOMP="emxbind -ep" |
90dd450c | 27408 | fi |
4f14bcd8 | 27409 | fi |
10f2d63a | 27410 | |
8284b0c5 | 27411 | |
e6cc62c6 VS |
27412 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
27413 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
27414 | if test "${ac_cv_type_mode_t+set}" = set; then | |
27415 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
52127426 | 27416 | else |
e6cc62c6 | 27417 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
27418 | /* confdefs.h. */ |
27419 | _ACEOF | |
27420 | cat confdefs.h >>conftest.$ac_ext | |
27421 | cat >>conftest.$ac_ext <<_ACEOF | |
27422 | /* end confdefs.h. */ | |
27423 | $ac_includes_default | |
27424 | int | |
27425 | main () | |
27426 | { | |
27427 | if ((mode_t *) 0) | |
27428 | return 0; | |
27429 | if (sizeof (mode_t)) | |
27430 | return 0; | |
27431 | ; | |
27432 | return 0; | |
27433 | } | |
27434 | _ACEOF | |
27435 | rm -f conftest.$ac_objext | |
27436 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 27437 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 27438 | ac_status=$? |
eea650d8 VS |
27439 | grep -v '^ *+' conftest.er1 >conftest.err |
27440 | rm -f conftest.er1 | |
27441 | cat conftest.err >&5 | |
e6cc62c6 VS |
27442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27443 | (exit $ac_status); } && | |
eea650d8 VS |
27444 | { ac_try='test -z "$ac_c_werror_flag" |
27445 | || test ! -s conftest.err' | |
27446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27447 | (eval $ac_try) 2>&5 | |
27448 | ac_status=$? | |
27449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27450 | (exit $ac_status); }; } && | |
27451 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
27452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27453 | (eval $ac_try) 2>&5 | |
27454 | ac_status=$? | |
27455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27456 | (exit $ac_status); }; }; then | |
27457 | ac_cv_type_mode_t=yes | |
a0b9e27f | 27458 | else |
e6cc62c6 VS |
27459 | echo "$as_me: failed program was:" >&5 |
27460 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 27461 | |
e6cc62c6 | 27462 | ac_cv_type_mode_t=no |
a0b9e27f | 27463 | fi |
eea650d8 | 27464 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
52127426 | 27465 | fi |
e6cc62c6 VS |
27466 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
27467 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
27468 | if test $ac_cv_type_mode_t = yes; then | |
247f5006 VZ |
27469 | : |
27470 | else | |
a0b9e27f | 27471 | |
e6cc62c6 VS |
27472 | cat >>confdefs.h <<_ACEOF |
27473 | #define mode_t int | |
27474 | _ACEOF | |
8284b0c5 MB |
27475 | |
27476 | fi | |
27477 | ||
e6cc62c6 VS |
27478 | echo "$as_me:$LINENO: checking for off_t" >&5 |
27479 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
27480 | if test "${ac_cv_type_off_t+set}" = set; then | |
27481 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 27482 | else |
e6cc62c6 | 27483 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
27484 | /* confdefs.h. */ |
27485 | _ACEOF | |
27486 | cat confdefs.h >>conftest.$ac_ext | |
27487 | cat >>conftest.$ac_ext <<_ACEOF | |
27488 | /* end confdefs.h. */ | |
27489 | $ac_includes_default | |
27490 | int | |
27491 | main () | |
27492 | { | |
27493 | if ((off_t *) 0) | |
27494 | return 0; | |
27495 | if (sizeof (off_t)) | |
27496 | return 0; | |
27497 | ; | |
27498 | return 0; | |
27499 | } | |
27500 | _ACEOF | |
27501 | rm -f conftest.$ac_objext | |
27502 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 27503 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 27504 | ac_status=$? |
eea650d8 VS |
27505 | grep -v '^ *+' conftest.er1 >conftest.err |
27506 | rm -f conftest.er1 | |
27507 | cat conftest.err >&5 | |
e6cc62c6 VS |
27508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27509 | (exit $ac_status); } && | |
eea650d8 VS |
27510 | { ac_try='test -z "$ac_c_werror_flag" |
27511 | || test ! -s conftest.err' | |
27512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27513 | (eval $ac_try) 2>&5 | |
27514 | ac_status=$? | |
27515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27516 | (exit $ac_status); }; } && | |
27517 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
27518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27519 | (eval $ac_try) 2>&5 | |
27520 | ac_status=$? | |
27521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27522 | (exit $ac_status); }; }; then | |
27523 | ac_cv_type_off_t=yes | |
5c6fa7d2 | 27524 | else |
e6cc62c6 VS |
27525 | echo "$as_me: failed program was:" >&5 |
27526 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 27527 | |
e6cc62c6 | 27528 | ac_cv_type_off_t=no |
8284b0c5 | 27529 | fi |
eea650d8 | 27530 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
8284b0c5 | 27531 | fi |
e6cc62c6 VS |
27532 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
27533 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
27534 | if test $ac_cv_type_off_t = yes; then | |
27535 | : | |
247f5006 VZ |
27536 | else |
27537 | ||
e6cc62c6 | 27538 | cat >>confdefs.h <<_ACEOF |
90dd450c | 27539 | #define off_t long |
e6cc62c6 | 27540 | _ACEOF |
10f2d63a | 27541 | |
90dd450c | 27542 | fi |
10f2d63a | 27543 | |
e6cc62c6 VS |
27544 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
27545 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
27546 | if test "${ac_cv_type_pid_t+set}" = set; then | |
27547 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4f14bcd8 | 27548 | else |
e6cc62c6 | 27549 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
27550 | /* confdefs.h. */ |
27551 | _ACEOF | |
27552 | cat confdefs.h >>conftest.$ac_ext | |
27553 | cat >>conftest.$ac_ext <<_ACEOF | |
27554 | /* end confdefs.h. */ | |
27555 | $ac_includes_default | |
27556 | int | |
27557 | main () | |
27558 | { | |
27559 | if ((pid_t *) 0) | |
27560 | return 0; | |
27561 | if (sizeof (pid_t)) | |
27562 | return 0; | |
27563 | ; | |
27564 | return 0; | |
27565 | } | |
27566 | _ACEOF | |
27567 | rm -f conftest.$ac_objext | |
27568 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 27569 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 27570 | ac_status=$? |
eea650d8 VS |
27571 | grep -v '^ *+' conftest.er1 >conftest.err |
27572 | rm -f conftest.er1 | |
27573 | cat conftest.err >&5 | |
e6cc62c6 VS |
27574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27575 | (exit $ac_status); } && | |
eea650d8 VS |
27576 | { ac_try='test -z "$ac_c_werror_flag" |
27577 | || test ! -s conftest.err' | |
27578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27579 | (eval $ac_try) 2>&5 | |
27580 | ac_status=$? | |
27581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27582 | (exit $ac_status); }; } && | |
27583 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
27584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27585 | (eval $ac_try) 2>&5 | |
27586 | ac_status=$? | |
27587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27588 | (exit $ac_status); }; }; then | |
90dd450c | 27589 | ac_cv_type_pid_t=yes |
698dcdb6 | 27590 | else |
e6cc62c6 VS |
27591 | echo "$as_me: failed program was:" >&5 |
27592 | sed 's/^/| /' conftest.$ac_ext >&5 | |
247f5006 | 27593 | |
e6cc62c6 VS |
27594 | ac_cv_type_pid_t=no |
27595 | fi | |
eea650d8 | 27596 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 27597 | fi |
e6cc62c6 VS |
27598 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
27599 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
27600 | if test $ac_cv_type_pid_t = yes; then | |
27601 | : | |
27602 | else | |
27603 | ||
27604 | cat >>confdefs.h <<_ACEOF | |
90dd450c | 27605 | #define pid_t int |
e6cc62c6 | 27606 | _ACEOF |
10f2d63a | 27607 | |
7b4a847f RR |
27608 | fi |
27609 | ||
e6cc62c6 VS |
27610 | echo "$as_me:$LINENO: checking for size_t" >&5 |
27611 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
27612 | if test "${ac_cv_type_size_t+set}" = set; then | |
27613 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7b4a847f | 27614 | else |
e6cc62c6 | 27615 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
27616 | /* confdefs.h. */ |
27617 | _ACEOF | |
27618 | cat confdefs.h >>conftest.$ac_ext | |
27619 | cat >>conftest.$ac_ext <<_ACEOF | |
27620 | /* end confdefs.h. */ | |
27621 | $ac_includes_default | |
27622 | int | |
27623 | main () | |
27624 | { | |
27625 | if ((size_t *) 0) | |
27626 | return 0; | |
27627 | if (sizeof (size_t)) | |
27628 | return 0; | |
27629 | ; | |
27630 | return 0; | |
27631 | } | |
27632 | _ACEOF | |
27633 | rm -f conftest.$ac_objext | |
27634 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 27635 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 27636 | ac_status=$? |
eea650d8 VS |
27637 | grep -v '^ *+' conftest.er1 >conftest.err |
27638 | rm -f conftest.er1 | |
27639 | cat conftest.err >&5 | |
e6cc62c6 VS |
27640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27641 | (exit $ac_status); } && | |
eea650d8 VS |
27642 | { ac_try='test -z "$ac_c_werror_flag" |
27643 | || test ! -s conftest.err' | |
27644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27645 | (eval $ac_try) 2>&5 | |
27646 | ac_status=$? | |
27647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27648 | (exit $ac_status); }; } && | |
27649 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
27650 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27651 | (eval $ac_try) 2>&5 | |
27652 | ac_status=$? | |
27653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27654 | (exit $ac_status); }; }; then | |
90dd450c | 27655 | ac_cv_type_size_t=yes |
18dbb1f6 | 27656 | else |
e6cc62c6 VS |
27657 | echo "$as_me: failed program was:" >&5 |
27658 | sed 's/^/| /' conftest.$ac_ext >&5 | |
247f5006 | 27659 | |
e6cc62c6 | 27660 | ac_cv_type_size_t=no |
a0b9e27f | 27661 | fi |
eea650d8 | 27662 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
27663 | fi |
27664 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
27665 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
27666 | if test $ac_cv_type_size_t = yes; then | |
27667 | : | |
27668 | else | |
27669 | ||
27670 | cat >>confdefs.h <<_ACEOF | |
90dd450c | 27671 | #define size_t unsigned |
e6cc62c6 | 27672 | _ACEOF |
90dd450c VZ |
27673 | |
27674 | fi | |
27675 | ||
e6cc62c6 VS |
27676 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
27677 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 | |
27678 | if test "${ac_cv_type_uid_t+set}" = set; then | |
27679 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b3e8d00a | 27680 | else |
e6cc62c6 | 27681 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
27682 | /* confdefs.h. */ |
27683 | _ACEOF | |
27684 | cat confdefs.h >>conftest.$ac_ext | |
27685 | cat >>conftest.$ac_ext <<_ACEOF | |
27686 | /* end confdefs.h. */ | |
90dd450c | 27687 | #include <sys/types.h> |
e6cc62c6 VS |
27688 | |
27689 | _ACEOF | |
90dd450c | 27690 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
e6cc62c6 | 27691 | $EGREP "uid_t" >/dev/null 2>&1; then |
90dd450c | 27692 | ac_cv_type_uid_t=yes |
b3e8d00a | 27693 | else |
90dd450c | 27694 | ac_cv_type_uid_t=no |
b3e8d00a | 27695 | fi |
90dd450c | 27696 | rm -f conftest* |
b3e8d00a | 27697 | |
4f14bcd8 | 27698 | fi |
e6cc62c6 VS |
27699 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
27700 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 | |
a0b9e27f | 27701 | if test $ac_cv_type_uid_t = no; then |
e6cc62c6 VS |
27702 | |
27703 | cat >>confdefs.h <<\_ACEOF | |
90dd450c | 27704 | #define uid_t int |
e6cc62c6 | 27705 | _ACEOF |
247f5006 | 27706 | |
e6cc62c6 VS |
27707 | |
27708 | cat >>confdefs.h <<\_ACEOF | |
90dd450c | 27709 | #define gid_t int |
e6cc62c6 | 27710 | _ACEOF |
4f14bcd8 | 27711 | |
b3e8d00a | 27712 | fi |
b3e8d00a | 27713 | |
8284b0c5 MB |
27714 | |
27715 | ||
e6cc62c6 VS |
27716 | |
27717 | ac_ext=cc | |
4f14bcd8 | 27718 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
27719 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
27720 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
27721 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
27722 | ||
27723 | echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5 | |
27724 | echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6 | |
27725 | if test "${wx_cv_size_t_is_uint+set}" = set; then | |
27726 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27727 | else | |
27728 | ||
27729 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
27730 | /* confdefs.h. */ |
27731 | _ACEOF | |
27732 | cat confdefs.h >>conftest.$ac_ext | |
27733 | cat >>conftest.$ac_ext <<_ACEOF | |
27734 | /* end confdefs.h. */ | |
90dd450c | 27735 | #include <stddef.h> |
e6cc62c6 VS |
27736 | int |
27737 | main () | |
27738 | { | |
90dd450c VZ |
27739 | |
27740 | return 0; } | |
27741 | ||
27742 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
27743 | ||
27744 | int bar() { | |
e6cc62c6 VS |
27745 | |
27746 | ; | |
27747 | return 0; | |
27748 | } | |
27749 | _ACEOF | |
27750 | rm -f conftest.$ac_objext | |
27751 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 27752 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 27753 | ac_status=$? |
eea650d8 VS |
27754 | grep -v '^ *+' conftest.er1 >conftest.err |
27755 | rm -f conftest.er1 | |
27756 | cat conftest.err >&5 | |
e6cc62c6 VS |
27757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27758 | (exit $ac_status); } && | |
eea650d8 VS |
27759 | { ac_try='test -z "$ac_cxx_werror_flag" |
27760 | || test ! -s conftest.err' | |
27761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27762 | (eval $ac_try) 2>&5 | |
27763 | ac_status=$? | |
27764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27765 | (exit $ac_status); }; } && | |
27766 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
27767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27768 | (eval $ac_try) 2>&5 | |
27769 | ac_status=$? | |
27770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27771 | (exit $ac_status); }; }; then | |
90dd450c | 27772 | wx_cv_size_t_is_uint=no |
698dcdb6 | 27773 | else |
e6cc62c6 VS |
27774 | echo "$as_me: failed program was:" >&5 |
27775 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27776 | ||
27777 | wx_cv_size_t_is_uint=yes | |
8284b0c5 | 27778 | |
247f5006 | 27779 | fi |
eea650d8 | 27780 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 27781 | |
a0b9e27f | 27782 | |
e6cc62c6 VS |
27783 | fi |
27784 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5 | |
27785 | echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6 | |
4f14bcd8 | 27786 | |
90dd450c | 27787 | if test "$wx_cv_size_t_is_uint" = "yes"; then |
e6cc62c6 | 27788 | cat >>confdefs.h <<\_ACEOF |
90dd450c | 27789 | #define wxSIZE_T_IS_UINT 1 |
e6cc62c6 | 27790 | _ACEOF |
698dcdb6 | 27791 | |
90dd450c | 27792 | else |
e6cc62c6 VS |
27793 | echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5 |
27794 | echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6 | |
27795 | if test "${wx_cv_size_t_is_ulong+set}" = set; then | |
27796 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
698dcdb6 | 27797 | else |
e6cc62c6 | 27798 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
27799 | /* confdefs.h. */ |
27800 | _ACEOF | |
27801 | cat confdefs.h >>conftest.$ac_ext | |
27802 | cat >>conftest.$ac_ext <<_ACEOF | |
27803 | /* end confdefs.h. */ | |
90dd450c | 27804 | #include <stddef.h> |
e6cc62c6 VS |
27805 | int |
27806 | main () | |
27807 | { | |
90dd450c VZ |
27808 | |
27809 | return 0; } | |
27810 | ||
27811 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
27812 | ||
27813 | int bar() { | |
e6cc62c6 VS |
27814 | |
27815 | ; | |
27816 | return 0; | |
27817 | } | |
27818 | _ACEOF | |
27819 | rm -f conftest.$ac_objext | |
27820 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 27821 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 27822 | ac_status=$? |
eea650d8 VS |
27823 | grep -v '^ *+' conftest.er1 >conftest.err |
27824 | rm -f conftest.er1 | |
27825 | cat conftest.err >&5 | |
e6cc62c6 VS |
27826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27827 | (exit $ac_status); } && | |
eea650d8 VS |
27828 | { ac_try='test -z "$ac_cxx_werror_flag" |
27829 | || test ! -s conftest.err' | |
27830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27831 | (eval $ac_try) 2>&5 | |
27832 | ac_status=$? | |
27833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27834 | (exit $ac_status); }; } && | |
27835 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
27836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27837 | (eval $ac_try) 2>&5 | |
27838 | ac_status=$? | |
27839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27840 | (exit $ac_status); }; }; then | |
90dd450c | 27841 | wx_cv_size_t_is_ulong=no |
698dcdb6 | 27842 | else |
e6cc62c6 VS |
27843 | echo "$as_me: failed program was:" >&5 |
27844 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27845 | ||
27846 | wx_cv_size_t_is_ulong=yes | |
27847 | ||
247f5006 | 27848 | fi |
eea650d8 | 27849 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 27850 | |
e6cc62c6 VS |
27851 | fi |
27852 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5 | |
27853 | echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6 | |
10f2d63a | 27854 | |
90dd450c | 27855 | if test "$wx_cv_size_t_is_ulong" = "yes"; then |
e6cc62c6 | 27856 | cat >>confdefs.h <<\_ACEOF |
90dd450c | 27857 | #define wxSIZE_T_IS_ULONG 1 |
e6cc62c6 | 27858 | _ACEOF |
4f14bcd8 GD |
27859 | |
27860 | fi | |
90dd450c | 27861 | fi |
1e487827 | 27862 | |
90dd450c | 27863 | ac_ext=c |
4f14bcd8 | 27864 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
27865 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
27866 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
27867 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
698dcdb6 | 27868 | |
5c6fa7d2 | 27869 | |
8284b0c5 | 27870 | |
e6cc62c6 VS |
27871 | echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5 |
27872 | echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6 | |
27873 | if test "${wx_cv_struct_pw_gecos+set}" = set; then | |
27874 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 27875 | else |
e6cc62c6 VS |
27876 | |
27877 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
27878 | /* confdefs.h. */ |
27879 | _ACEOF | |
27880 | cat confdefs.h >>conftest.$ac_ext | |
27881 | cat >>conftest.$ac_ext <<_ACEOF | |
27882 | /* end confdefs.h. */ | |
90dd450c | 27883 | #include <pwd.h> |
e6cc62c6 VS |
27884 | int |
27885 | main () | |
27886 | { | |
f6bcfd97 | 27887 | |
90dd450c VZ |
27888 | char *p; |
27889 | struct passwd *pw; | |
27890 | p = pw->pw_gecos; | |
e6cc62c6 VS |
27891 | |
27892 | ; | |
27893 | return 0; | |
27894 | } | |
27895 | _ACEOF | |
27896 | rm -f conftest.$ac_objext | |
27897 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 27898 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 27899 | ac_status=$? |
eea650d8 VS |
27900 | grep -v '^ *+' conftest.er1 >conftest.err |
27901 | rm -f conftest.er1 | |
27902 | cat conftest.err >&5 | |
e6cc62c6 VS |
27903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27904 | (exit $ac_status); } && | |
eea650d8 VS |
27905 | { ac_try='test -z "$ac_c_werror_flag" |
27906 | || test ! -s conftest.err' | |
27907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27908 | (eval $ac_try) 2>&5 | |
27909 | ac_status=$? | |
27910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27911 | (exit $ac_status); }; } && | |
27912 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
27913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27914 | (eval $ac_try) 2>&5 | |
27915 | ac_status=$? | |
27916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27917 | (exit $ac_status); }; }; then | |
27918 | ||
90dd450c | 27919 | wx_cv_struct_pw_gecos=yes |
e6cc62c6 | 27920 | |
10f2d63a | 27921 | else |
e6cc62c6 VS |
27922 | echo "$as_me: failed program was:" >&5 |
27923 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27924 | ||
27925 | ||
90dd450c | 27926 | wx_cv_struct_pw_gecos=no |
e6cc62c6 | 27927 | |
247f5006 VZ |
27928 | |
27929 | fi | |
eea650d8 | 27930 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 27931 | |
e6cc62c6 VS |
27932 | |
27933 | fi | |
27934 | echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5 | |
27935 | echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6 | |
c521c494 | 27936 | |
90dd450c | 27937 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
e6cc62c6 | 27938 | cat >>confdefs.h <<\_ACEOF |
90dd450c | 27939 | #define HAVE_PW_GECOS 1 |
e6cc62c6 | 27940 | _ACEOF |
c521c494 | 27941 | |
90dd450c | 27942 | fi |
4f14bcd8 | 27943 | |
8284b0c5 | 27944 | |
d29b553b | 27945 | if test "$wx_cv_sizeof_wchar_t" != "0"; then |
e6cc62c6 | 27946 | cat >>confdefs.h <<\_ACEOF |
d74f4b5a | 27947 | #define wxUSE_WCHAR_T 1 |
e6cc62c6 | 27948 | _ACEOF |
d74f4b5a | 27949 | |
8284b0c5 | 27950 | |
d74f4b5a VZ |
27951 | WCSLEN_FOUND=0 |
27952 | WCHAR_LINK= | |
e6cc62c6 VS |
27953 | |
27954 | for ac_func in wcslen | |
7a30264c | 27955 | do |
e6cc62c6 VS |
27956 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27957 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27958 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27959 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27960 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27961 | else | |
27962 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
27963 | /* confdefs.h. */ |
27964 | _ACEOF | |
27965 | cat confdefs.h >>conftest.$ac_ext | |
27966 | cat >>conftest.$ac_ext <<_ACEOF | |
27967 | /* end confdefs.h. */ | |
eea650d8 VS |
27968 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
27969 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
27970 | #define $ac_func innocuous_$ac_func | |
27971 | ||
7a30264c | 27972 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27973 | which can conflict with char $ac_func (); below. |
27974 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27975 | <limits.h> exists even on freestanding compilers. */ | |
eea650d8 | 27976 | |
e6cc62c6 VS |
27977 | #ifdef __STDC__ |
27978 | # include <limits.h> | |
27979 | #else | |
27980 | # include <assert.h> | |
27981 | #endif | |
eea650d8 VS |
27982 | |
27983 | #undef $ac_func | |
27984 | ||
4f14bcd8 | 27985 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27986 | #ifdef __cplusplus |
27987 | extern "C" | |
27988 | { | |
27989 | #endif | |
4f14bcd8 | 27990 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27991 | builtin and then its argument prototype would still apply. */ |
27992 | char $ac_func (); | |
7a30264c VZ |
27993 | /* The GNU C library defines this for functions which it implements |
27994 | to always fail with ENOSYS. Some functions are actually named | |
27995 | something starting with __ and the normal name is an alias. */ | |
27996 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27997 | choke me | |
27998 | #else | |
e6cc62c6 VS |
27999 | char (*f) () = $ac_func; |
28000 | #endif | |
28001 | #ifdef __cplusplus | |
28002 | } | |
7a30264c VZ |
28003 | #endif |
28004 | ||
e6cc62c6 VS |
28005 | int |
28006 | main () | |
28007 | { | |
28008 | return f != $ac_func; | |
28009 | ; | |
28010 | return 0; | |
28011 | } | |
28012 | _ACEOF | |
28013 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28014 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 28015 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 28016 | ac_status=$? |
eea650d8 VS |
28017 | grep -v '^ *+' conftest.er1 >conftest.err |
28018 | rm -f conftest.er1 | |
28019 | cat conftest.err >&5 | |
e6cc62c6 VS |
28020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28021 | (exit $ac_status); } && | |
eea650d8 VS |
28022 | { ac_try='test -z "$ac_c_werror_flag" |
28023 | || test ! -s conftest.err' | |
28024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28025 | (eval $ac_try) 2>&5 | |
28026 | ac_status=$? | |
28027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28028 | (exit $ac_status); }; } && | |
28029 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
28030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28031 | (eval $ac_try) 2>&5 | |
28032 | ac_status=$? | |
28033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28034 | (exit $ac_status); }; }; then | |
28035 | eval "$as_ac_var=yes" | |
28036 | else | |
28037 | echo "$as_me: failed program was:" >&5 | |
28038 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28039 | ||
28040 | eval "$as_ac_var=no" | |
28041 | fi | |
eea650d8 VS |
28042 | rm -f conftest.err conftest.$ac_objext \ |
28043 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
28044 | fi |
28045 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28046 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28047 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28048 | cat >>confdefs.h <<_ACEOF | |
28049 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28050 | _ACEOF | |
d74f4b5a | 28051 | WCSLEN_FOUND=1 |
7a30264c VZ |
28052 | fi |
28053 | done | |
9d8deca0 | 28054 | |
8284b0c5 | 28055 | |
d74f4b5a | 28056 | if test "$WCSLEN_FOUND" = 0; then |
7a30264c | 28057 | if test "$TOOLKIT" = "MSW"; then |
e6cc62c6 VS |
28058 | echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5 |
28059 | echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6 | |
28060 | if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then | |
28061 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 28062 | else |
e6cc62c6 | 28063 | ac_check_lib_save_LIBS=$LIBS |
7a30264c | 28064 | LIBS="-lmsvcrt $LIBS" |
e6cc62c6 | 28065 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
28066 | /* confdefs.h. */ |
28067 | _ACEOF | |
28068 | cat confdefs.h >>conftest.$ac_ext | |
28069 | cat >>conftest.$ac_ext <<_ACEOF | |
28070 | /* end confdefs.h. */ | |
28071 | ||
4f14bcd8 | 28072 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28073 | #ifdef __cplusplus |
28074 | extern "C" | |
28075 | #endif | |
4f14bcd8 | 28076 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28077 | builtin and then its argument prototype would still apply. */ |
28078 | char wcslen (); | |
28079 | int | |
28080 | main () | |
28081 | { | |
28082 | wcslen (); | |
28083 | ; | |
28084 | return 0; | |
28085 | } | |
28086 | _ACEOF | |
28087 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28088 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 28089 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 28090 | ac_status=$? |
eea650d8 VS |
28091 | grep -v '^ *+' conftest.er1 >conftest.err |
28092 | rm -f conftest.er1 | |
28093 | cat conftest.err >&5 | |
e6cc62c6 VS |
28094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28095 | (exit $ac_status); } && | |
eea650d8 VS |
28096 | { ac_try='test -z "$ac_c_werror_flag" |
28097 | || test ! -s conftest.err' | |
28098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28099 | (eval $ac_try) 2>&5 | |
28100 | ac_status=$? | |
28101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28102 | (exit $ac_status); }; } && | |
28103 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
28104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28105 | (eval $ac_try) 2>&5 | |
28106 | ac_status=$? | |
28107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28108 | (exit $ac_status); }; }; then | |
28109 | ac_cv_lib_msvcrt_wcslen=yes | |
28110 | else | |
28111 | echo "$as_me: failed program was:" >&5 | |
28112 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28113 | ||
28114 | ac_cv_lib_msvcrt_wcslen=no | |
28115 | fi | |
eea650d8 VS |
28116 | rm -f conftest.err conftest.$ac_objext \ |
28117 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
28118 | LIBS=$ac_check_lib_save_LIBS |
28119 | fi | |
28120 | echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5 | |
28121 | echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6 | |
28122 | if test $ac_cv_lib_msvcrt_wcslen = yes; then | |
d74f4b5a | 28123 | WCHAR_OK=1 |
d29b553b | 28124 | fi |
698dcdb6 | 28125 | |
7a30264c | 28126 | else |
e6cc62c6 VS |
28127 | echo "$as_me:$LINENO: checking for wcslen in -lw" >&5 |
28128 | echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6 | |
28129 | if test "${ac_cv_lib_w_wcslen+set}" = set; then | |
28130 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
698dcdb6 | 28131 | else |
e6cc62c6 | 28132 | ac_check_lib_save_LIBS=$LIBS |
7a30264c | 28133 | LIBS="-lw $LIBS" |
e6cc62c6 | 28134 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
28135 | /* confdefs.h. */ |
28136 | _ACEOF | |
28137 | cat confdefs.h >>conftest.$ac_ext | |
28138 | cat >>conftest.$ac_ext <<_ACEOF | |
28139 | /* end confdefs.h. */ | |
28140 | ||
4f14bcd8 | 28141 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28142 | #ifdef __cplusplus |
28143 | extern "C" | |
28144 | #endif | |
4f14bcd8 | 28145 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28146 | builtin and then its argument prototype would still apply. */ |
28147 | char wcslen (); | |
28148 | int | |
28149 | main () | |
28150 | { | |
28151 | wcslen (); | |
28152 | ; | |
28153 | return 0; | |
28154 | } | |
28155 | _ACEOF | |
28156 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28157 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 28158 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 28159 | ac_status=$? |
eea650d8 VS |
28160 | grep -v '^ *+' conftest.er1 >conftest.err |
28161 | rm -f conftest.er1 | |
28162 | cat conftest.err >&5 | |
e6cc62c6 VS |
28163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28164 | (exit $ac_status); } && | |
eea650d8 VS |
28165 | { ac_try='test -z "$ac_c_werror_flag" |
28166 | || test ! -s conftest.err' | |
28167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28168 | (eval $ac_try) 2>&5 | |
28169 | ac_status=$? | |
28170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28171 | (exit $ac_status); }; } && | |
28172 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
28173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28174 | (eval $ac_try) 2>&5 | |
28175 | ac_status=$? | |
28176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28177 | (exit $ac_status); }; }; then | |
28178 | ac_cv_lib_w_wcslen=yes | |
28179 | else | |
28180 | echo "$as_me: failed program was:" >&5 | |
28181 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28182 | ||
28183 | ac_cv_lib_w_wcslen=no | |
28184 | fi | |
eea650d8 VS |
28185 | rm -f conftest.err conftest.$ac_objext \ |
28186 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
28187 | LIBS=$ac_check_lib_save_LIBS |
28188 | fi | |
28189 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5 | |
28190 | echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6 | |
28191 | if test $ac_cv_lib_w_wcslen = yes; then | |
a0b9e27f | 28192 | |
7a30264c | 28193 | WCHAR_LINK=" -lw" |
d74f4b5a | 28194 | WCSLEN_FOUND=1 |
e6cc62c6 | 28195 | |
4f14bcd8 | 28196 | fi |
10f2d63a | 28197 | |
7a30264c | 28198 | fi |
d29b553b | 28199 | fi |
95c8801c | 28200 | |
d74f4b5a | 28201 | if test "$WCSLEN_FOUND" = 1; then |
e6cc62c6 | 28202 | cat >>confdefs.h <<\_ACEOF |
d74f4b5a | 28203 | #define HAVE_WCSLEN 1 |
e6cc62c6 | 28204 | _ACEOF |
10f2d63a | 28205 | |
d74f4b5a | 28206 | fi |
52127426 | 28207 | |
e6cc62c6 VS |
28208 | |
28209 | for ac_func in wcsrtombs | |
eb4efbdc | 28210 | do |
e6cc62c6 VS |
28211 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
28212 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28213 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28214 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28215 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28216 | else | |
28217 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
28218 | /* confdefs.h. */ |
28219 | _ACEOF | |
28220 | cat confdefs.h >>conftest.$ac_ext | |
28221 | cat >>conftest.$ac_ext <<_ACEOF | |
28222 | /* end confdefs.h. */ | |
eea650d8 VS |
28223 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
28224 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28225 | #define $ac_func innocuous_$ac_func | |
28226 | ||
eb4efbdc | 28227 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
28228 | which can conflict with char $ac_func (); below. |
28229 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28230 | <limits.h> exists even on freestanding compilers. */ | |
eea650d8 | 28231 | |
e6cc62c6 VS |
28232 | #ifdef __STDC__ |
28233 | # include <limits.h> | |
28234 | #else | |
28235 | # include <assert.h> | |
28236 | #endif | |
eea650d8 VS |
28237 | |
28238 | #undef $ac_func | |
28239 | ||
eb4efbdc | 28240 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28241 | #ifdef __cplusplus |
28242 | extern "C" | |
28243 | { | |
28244 | #endif | |
4f14bcd8 | 28245 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28246 | builtin and then its argument prototype would still apply. */ |
28247 | char $ac_func (); | |
10f2d63a VZ |
28248 | /* The GNU C library defines this for functions which it implements |
28249 | to always fail with ENOSYS. Some functions are actually named | |
28250 | something starting with __ and the normal name is an alias. */ | |
247f5006 | 28251 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
10f2d63a VZ |
28252 | choke me |
28253 | #else | |
e6cc62c6 VS |
28254 | char (*f) () = $ac_func; |
28255 | #endif | |
28256 | #ifdef __cplusplus | |
28257 | } | |
10f2d63a VZ |
28258 | #endif |
28259 | ||
e6cc62c6 VS |
28260 | int |
28261 | main () | |
28262 | { | |
28263 | return f != $ac_func; | |
28264 | ; | |
28265 | return 0; | |
28266 | } | |
28267 | _ACEOF | |
28268 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28269 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 28270 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 28271 | ac_status=$? |
eea650d8 VS |
28272 | grep -v '^ *+' conftest.er1 >conftest.err |
28273 | rm -f conftest.er1 | |
28274 | cat conftest.err >&5 | |
e6cc62c6 VS |
28275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28276 | (exit $ac_status); } && | |
eea650d8 VS |
28277 | { ac_try='test -z "$ac_c_werror_flag" |
28278 | || test ! -s conftest.err' | |
28279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28280 | (eval $ac_try) 2>&5 | |
28281 | ac_status=$? | |
28282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28283 | (exit $ac_status); }; } && | |
28284 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
28285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28286 | (eval $ac_try) 2>&5 | |
28287 | ac_status=$? | |
28288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28289 | (exit $ac_status); }; }; then | |
28290 | eval "$as_ac_var=yes" | |
28291 | else | |
28292 | echo "$as_me: failed program was:" >&5 | |
28293 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28294 | ||
28295 | eval "$as_ac_var=no" | |
28296 | fi | |
eea650d8 VS |
28297 | rm -f conftest.err conftest.$ac_objext \ |
28298 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
28299 | fi |
28300 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28301 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28302 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28303 | cat >>confdefs.h <<_ACEOF | |
28304 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28305 | _ACEOF | |
270a909e | 28306 | |
4f14bcd8 | 28307 | fi |
247f5006 | 28308 | done |
1e487827 | 28309 | |
af15babd | 28310 | else |
e6cc62c6 VS |
28311 | { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5 |
28312 | echo "$as_me: WARNING: Wide character support is unavailable" >&2;} | |
7b4a847f | 28313 | fi |
52127426 | 28314 | |
8284b0c5 | 28315 | |
e6cc62c6 VS |
28316 | |
28317 | ac_ext=cc | |
247f5006 | 28318 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
28319 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
28320 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28321 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
28322 | ||
af15babd | 28323 | |
247f5006 VZ |
28324 | |
28325 | for ac_func in vsnprintf | |
28326 | do | |
e6cc62c6 VS |
28327 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
28328 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28329 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28330 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28331 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28332 | else | |
28333 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
28334 | /* confdefs.h. */ |
28335 | _ACEOF | |
28336 | cat confdefs.h >>conftest.$ac_ext | |
28337 | cat >>conftest.$ac_ext <<_ACEOF | |
28338 | /* end confdefs.h. */ | |
eea650d8 VS |
28339 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
28340 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28341 | #define $ac_func innocuous_$ac_func | |
28342 | ||
247f5006 | 28343 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
28344 | which can conflict with char $ac_func (); below. |
28345 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28346 | <limits.h> exists even on freestanding compilers. */ | |
eea650d8 | 28347 | |
e6cc62c6 VS |
28348 | #ifdef __STDC__ |
28349 | # include <limits.h> | |
28350 | #else | |
28351 | # include <assert.h> | |
28352 | #endif | |
eea650d8 VS |
28353 | |
28354 | #undef $ac_func | |
28355 | ||
247f5006 VZ |
28356 | /* Override any gcc2 internal prototype to avoid an error. */ |
28357 | #ifdef __cplusplus | |
28358 | extern "C" | |
e6cc62c6 | 28359 | { |
247f5006 VZ |
28360 | #endif |
28361 | /* We use char because int might match the return type of a gcc2 | |
e6cc62c6 VS |
28362 | builtin and then its argument prototype would still apply. */ |
28363 | char $ac_func (); | |
247f5006 VZ |
28364 | /* The GNU C library defines this for functions which it implements |
28365 | to always fail with ENOSYS. Some functions are actually named | |
28366 | something starting with __ and the normal name is an alias. */ | |
28367 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28368 | choke me | |
28369 | #else | |
e6cc62c6 VS |
28370 | char (*f) () = $ac_func; |
28371 | #endif | |
28372 | #ifdef __cplusplus | |
28373 | } | |
247f5006 | 28374 | #endif |
af15babd | 28375 | |
e6cc62c6 VS |
28376 | int |
28377 | main () | |
28378 | { | |
28379 | return f != $ac_func; | |
28380 | ; | |
28381 | return 0; | |
28382 | } | |
28383 | _ACEOF | |
28384 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28385 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 28386 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 28387 | ac_status=$? |
eea650d8 VS |
28388 | grep -v '^ *+' conftest.er1 >conftest.err |
28389 | rm -f conftest.er1 | |
28390 | cat conftest.err >&5 | |
e6cc62c6 VS |
28391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28392 | (exit $ac_status); } && | |
eea650d8 VS |
28393 | { ac_try='test -z "$ac_cxx_werror_flag" |
28394 | || test ! -s conftest.err' | |
28395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28396 | (eval $ac_try) 2>&5 | |
28397 | ac_status=$? | |
28398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28399 | (exit $ac_status); }; } && | |
28400 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
28401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28402 | (eval $ac_try) 2>&5 | |
28403 | ac_status=$? | |
28404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28405 | (exit $ac_status); }; }; then | |
28406 | eval "$as_ac_var=yes" | |
28407 | else | |
28408 | echo "$as_me: failed program was:" >&5 | |
28409 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28410 | ||
28411 | eval "$as_ac_var=no" | |
28412 | fi | |
eea650d8 VS |
28413 | rm -f conftest.err conftest.$ac_objext \ |
28414 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
28415 | fi |
28416 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28417 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28418 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28419 | cat >>confdefs.h <<_ACEOF | |
28420 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28421 | _ACEOF | |
52127426 | 28422 | |
5c6fa7d2 | 28423 | fi |
247f5006 | 28424 | done |
8284b0c5 | 28425 | |
4f14bcd8 | 28426 | |
8d90d2f2 | 28427 | if test "$ac_cv_func_vsnprintf" = "yes"; then |
e6cc62c6 VS |
28428 | echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5 |
28429 | echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6 | |
28430 | if test "${wx_cv_func_vsnprintf_decl+set}" = set; then | |
28431 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8d90d2f2 | 28432 | else |
e6cc62c6 VS |
28433 | |
28434 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
28435 | /* confdefs.h. */ |
28436 | _ACEOF | |
28437 | cat confdefs.h >>conftest.$ac_ext | |
28438 | cat >>conftest.$ac_ext <<_ACEOF | |
28439 | /* end confdefs.h. */ | |
8d90d2f2 VZ |
28440 | |
28441 | #include <stdio.h> | |
28442 | #include <stdarg.h> | |
e6cc62c6 VS |
28443 | |
28444 | int | |
28445 | main () | |
28446 | { | |
8d90d2f2 VZ |
28447 | |
28448 | char *buf; | |
28449 | va_list ap; | |
28450 | vsnprintf(buf, 10u, "%s", ap); | |
e6cc62c6 VS |
28451 | |
28452 | ; | |
28453 | return 0; | |
28454 | } | |
28455 | _ACEOF | |
28456 | rm -f conftest.$ac_objext | |
28457 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 28458 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 28459 | ac_status=$? |
eea650d8 VS |
28460 | grep -v '^ *+' conftest.er1 >conftest.err |
28461 | rm -f conftest.er1 | |
28462 | cat conftest.err >&5 | |
e6cc62c6 VS |
28463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28464 | (exit $ac_status); } && | |
eea650d8 VS |
28465 | { ac_try='test -z "$ac_cxx_werror_flag" |
28466 | || test ! -s conftest.err' | |
28467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28468 | (eval $ac_try) 2>&5 | |
28469 | ac_status=$? | |
28470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28471 | (exit $ac_status); }; } && | |
28472 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
28473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28474 | (eval $ac_try) 2>&5 | |
28475 | ac_status=$? | |
28476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28477 | (exit $ac_status); }; }; then | |
8d90d2f2 VZ |
28478 | wx_cv_func_vsnprintf_decl=yes |
28479 | else | |
e6cc62c6 VS |
28480 | echo "$as_me: failed program was:" >&5 |
28481 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28482 | ||
28483 | wx_cv_func_vsnprintf_decl=no | |
28484 | ||
8d90d2f2 | 28485 | fi |
eea650d8 | 28486 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 28487 | |
8d90d2f2 | 28488 | |
e6cc62c6 VS |
28489 | fi |
28490 | echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5 | |
28491 | echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6 | |
8d90d2f2 VZ |
28492 | |
28493 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
e6cc62c6 | 28494 | cat >>confdefs.h <<\_ACEOF |
8d90d2f2 | 28495 | #define HAVE_VSNPRINTF_DECL 1 |
e6cc62c6 | 28496 | _ACEOF |
8d90d2f2 VZ |
28497 | |
28498 | fi | |
28499 | fi | |
28500 | ||
247f5006 | 28501 | if test "$wxUSE_UNICODE" = yes; then |
e6cc62c6 VS |
28502 | |
28503 | ||
28504 | ||
28505 | for ac_func in fputwc wprintf vswprintf | |
d74f4b5a | 28506 | do |
e6cc62c6 VS |
28507 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
28508 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28509 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28510 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28511 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28512 | else | |
28513 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
28514 | /* confdefs.h. */ |
28515 | _ACEOF | |
28516 | cat confdefs.h >>conftest.$ac_ext | |
28517 | cat >>conftest.$ac_ext <<_ACEOF | |
28518 | /* end confdefs.h. */ | |
eea650d8 VS |
28519 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
28520 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28521 | #define $ac_func innocuous_$ac_func | |
28522 | ||
d74f4b5a | 28523 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
28524 | which can conflict with char $ac_func (); below. |
28525 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28526 | <limits.h> exists even on freestanding compilers. */ | |
eea650d8 | 28527 | |
e6cc62c6 VS |
28528 | #ifdef __STDC__ |
28529 | # include <limits.h> | |
28530 | #else | |
28531 | # include <assert.h> | |
28532 | #endif | |
eea650d8 VS |
28533 | |
28534 | #undef $ac_func | |
28535 | ||
d74f4b5a | 28536 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 VZ |
28537 | #ifdef __cplusplus |
28538 | extern "C" | |
e6cc62c6 | 28539 | { |
247f5006 | 28540 | #endif |
d74f4b5a | 28541 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28542 | builtin and then its argument prototype would still apply. */ |
28543 | char $ac_func (); | |
d74f4b5a VZ |
28544 | /* The GNU C library defines this for functions which it implements |
28545 | to always fail with ENOSYS. Some functions are actually named | |
28546 | something starting with __ and the normal name is an alias. */ | |
28547 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28548 | choke me | |
28549 | #else | |
e6cc62c6 VS |
28550 | char (*f) () = $ac_func; |
28551 | #endif | |
28552 | #ifdef __cplusplus | |
28553 | } | |
d74f4b5a VZ |
28554 | #endif |
28555 | ||
e6cc62c6 VS |
28556 | int |
28557 | main () | |
28558 | { | |
28559 | return f != $ac_func; | |
28560 | ; | |
28561 | return 0; | |
28562 | } | |
28563 | _ACEOF | |
28564 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28565 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 28566 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 28567 | ac_status=$? |
eea650d8 VS |
28568 | grep -v '^ *+' conftest.er1 >conftest.err |
28569 | rm -f conftest.er1 | |
28570 | cat conftest.err >&5 | |
e6cc62c6 VS |
28571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28572 | (exit $ac_status); } && | |
eea650d8 VS |
28573 | { ac_try='test -z "$ac_cxx_werror_flag" |
28574 | || test ! -s conftest.err' | |
28575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28576 | (eval $ac_try) 2>&5 | |
28577 | ac_status=$? | |
28578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28579 | (exit $ac_status); }; } && | |
28580 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
28581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28582 | (eval $ac_try) 2>&5 | |
28583 | ac_status=$? | |
28584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28585 | (exit $ac_status); }; }; then | |
28586 | eval "$as_ac_var=yes" | |
28587 | else | |
28588 | echo "$as_me: failed program was:" >&5 | |
28589 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28590 | ||
28591 | eval "$as_ac_var=no" | |
28592 | fi | |
eea650d8 VS |
28593 | rm -f conftest.err conftest.$ac_objext \ |
28594 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
28595 | fi |
28596 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28597 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28598 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28599 | cat >>confdefs.h <<_ACEOF | |
28600 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28601 | _ACEOF | |
d74f4b5a | 28602 | |
d74f4b5a VZ |
28603 | fi |
28604 | done | |
28605 | ||
8d90d2f2 | 28606 | |
e6cc62c6 VS |
28607 | echo "$as_me:$LINENO: checking for _vsnwprintf" >&5 |
28608 | echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6 | |
28609 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
28610 | /* confdefs.h. */ |
28611 | _ACEOF | |
28612 | cat confdefs.h >>conftest.$ac_ext | |
28613 | cat >>conftest.$ac_ext <<_ACEOF | |
28614 | /* end confdefs.h. */ | |
79668cae | 28615 | #include <wchar.h> |
e6cc62c6 VS |
28616 | int |
28617 | main () | |
28618 | { | |
79668cae | 28619 | &_vsnwprintf; |
e6cc62c6 VS |
28620 | ; |
28621 | return 0; | |
28622 | } | |
28623 | _ACEOF | |
28624 | rm -f conftest.$ac_objext | |
28625 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 28626 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 28627 | ac_status=$? |
eea650d8 VS |
28628 | grep -v '^ *+' conftest.er1 >conftest.err |
28629 | rm -f conftest.er1 | |
28630 | cat conftest.err >&5 | |
e6cc62c6 VS |
28631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28632 | (exit $ac_status); } && | |
eea650d8 VS |
28633 | { ac_try='test -z "$ac_cxx_werror_flag" |
28634 | || test ! -s conftest.err' | |
28635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28636 | (eval $ac_try) 2>&5 | |
28637 | ac_status=$? | |
28638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28639 | (exit $ac_status); }; } && | |
28640 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
28641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28642 | (eval $ac_try) 2>&5 | |
28643 | ac_status=$? | |
28644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28645 | (exit $ac_status); }; }; then | |
28646 | echo "$as_me:$LINENO: result: yes" >&5 | |
28647 | echo "${ECHO_T}yes" >&6 | |
28648 | cat >>confdefs.h <<\_ACEOF | |
79668cae | 28649 | #define HAVE__VSNWPRINTF 1 |
e6cc62c6 | 28650 | _ACEOF |
79668cae MB |
28651 | |
28652 | else | |
e6cc62c6 VS |
28653 | echo "$as_me: failed program was:" >&5 |
28654 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28655 | ||
28656 | echo "$as_me:$LINENO: result: no" >&5 | |
28657 | echo "${ECHO_T}no" >&6 | |
79668cae | 28658 | fi |
eea650d8 | 28659 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext; |
d74f4b5a VZ |
28660 | fi |
28661 | ||
247f5006 VZ |
28662 | ac_ext=c |
28663 | ac_cpp='$CPP $CPPFLAGS' | |
e6cc62c6 VS |
28664 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
28665 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28666 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
247f5006 VZ |
28667 | |
28668 | ||
28669 | ||
28670 | ||
4f14bcd8 | 28671 | if test "$TOOLKIT" != "MSW"; then |
af15babd | 28672 | |
8284b0c5 MB |
28673 | |
28674 | ||
e6cc62c6 VS |
28675 | |
28676 | ac_ext=cc | |
4f14bcd8 | 28677 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
28678 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
28679 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28680 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
8284b0c5 | 28681 | |
52127426 | 28682 | |
e6cc62c6 VS |
28683 | |
28684 | ||
28685 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
b040e242 VS |
28686 | if test "${with_libiconv_prefix+set}" = set; then |
28687 | withval="$with_libiconv_prefix" | |
e6cc62c6 | 28688 | |
b040e242 VS |
28689 | for dir in `echo "$withval" | tr : ' '`; do |
28690 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
28691 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
28692 | done | |
b040e242 | 28693 | |
e6cc62c6 | 28694 | fi; |
b040e242 | 28695 | |
e6cc62c6 VS |
28696 | echo "$as_me:$LINENO: checking for iconv" >&5 |
28697 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
28698 | if test "${am_cv_func_iconv+set}" = set; then | |
28699 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
af15babd | 28700 | else |
e6cc62c6 | 28701 | |
b040e242 VS |
28702 | am_cv_func_iconv="no, consider installing GNU libiconv" |
28703 | am_cv_lib_iconv=no | |
e6cc62c6 | 28704 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
28705 | /* confdefs.h. */ |
28706 | _ACEOF | |
28707 | cat confdefs.h >>conftest.$ac_ext | |
28708 | cat >>conftest.$ac_ext <<_ACEOF | |
28709 | /* end confdefs.h. */ | |
b040e242 | 28710 | #include <stdlib.h> |
4f14bcd8 | 28711 | #include <iconv.h> |
e6cc62c6 VS |
28712 | int |
28713 | main () | |
28714 | { | |
b040e242 VS |
28715 | iconv_t cd = iconv_open("",""); |
28716 | iconv(cd,NULL,NULL,NULL,NULL); | |
28717 | iconv_close(cd); | |
e6cc62c6 VS |
28718 | ; |
28719 | return 0; | |
28720 | } | |
28721 | _ACEOF | |
28722 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28723 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 28724 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 28725 | ac_status=$? |
eea650d8 VS |
28726 | grep -v '^ *+' conftest.er1 >conftest.err |
28727 | rm -f conftest.er1 | |
28728 | cat conftest.err >&5 | |
e6cc62c6 VS |
28729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28730 | (exit $ac_status); } && | |
eea650d8 VS |
28731 | { ac_try='test -z "$ac_cxx_werror_flag" |
28732 | || test ! -s conftest.err' | |
28733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28734 | (eval $ac_try) 2>&5 | |
28735 | ac_status=$? | |
28736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28737 | (exit $ac_status); }; } && | |
28738 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
28739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28740 | (eval $ac_try) 2>&5 | |
28741 | ac_status=$? | |
28742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28743 | (exit $ac_status); }; }; then | |
b040e242 | 28744 | am_cv_func_iconv=yes |
af15babd | 28745 | else |
e6cc62c6 VS |
28746 | echo "$as_me: failed program was:" >&5 |
28747 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28748 | ||
b040e242 | 28749 | fi |
eea650d8 VS |
28750 | rm -f conftest.err conftest.$ac_objext \ |
28751 | conftest$ac_exeext conftest.$ac_ext | |
b040e242 VS |
28752 | if test "$am_cv_func_iconv" != yes; then |
28753 | am_save_LIBS="$LIBS" | |
28754 | LIBS="$LIBS -liconv" | |
e6cc62c6 | 28755 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
28756 | /* confdefs.h. */ |
28757 | _ACEOF | |
28758 | cat confdefs.h >>conftest.$ac_ext | |
28759 | cat >>conftest.$ac_ext <<_ACEOF | |
28760 | /* end confdefs.h. */ | |
b040e242 VS |
28761 | #include <stdlib.h> |
28762 | #include <iconv.h> | |
e6cc62c6 VS |
28763 | int |
28764 | main () | |
28765 | { | |
b040e242 VS |
28766 | iconv_t cd = iconv_open("",""); |
28767 | iconv(cd,NULL,NULL,NULL,NULL); | |
28768 | iconv_close(cd); | |
e6cc62c6 VS |
28769 | ; |
28770 | return 0; | |
28771 | } | |
28772 | _ACEOF | |
28773 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28774 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 28775 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 28776 | ac_status=$? |
eea650d8 VS |
28777 | grep -v '^ *+' conftest.er1 >conftest.err |
28778 | rm -f conftest.er1 | |
28779 | cat conftest.err >&5 | |
e6cc62c6 VS |
28780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28781 | (exit $ac_status); } && | |
eea650d8 VS |
28782 | { ac_try='test -z "$ac_cxx_werror_flag" |
28783 | || test ! -s conftest.err' | |
28784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28785 | (eval $ac_try) 2>&5 | |
28786 | ac_status=$? | |
28787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28788 | (exit $ac_status); }; } && | |
28789 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
28790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28791 | (eval $ac_try) 2>&5 | |
28792 | ac_status=$? | |
28793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28794 | (exit $ac_status); }; }; then | |
b040e242 VS |
28795 | am_cv_lib_iconv=yes |
28796 | am_cv_func_iconv=yes | |
28797 | else | |
e6cc62c6 VS |
28798 | echo "$as_me: failed program was:" >&5 |
28799 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28800 | ||
af15babd | 28801 | fi |
eea650d8 VS |
28802 | rm -f conftest.err conftest.$ac_objext \ |
28803 | conftest$ac_exeext conftest.$ac_ext | |
b040e242 VS |
28804 | LIBS="$am_save_LIBS" |
28805 | fi | |
247f5006 | 28806 | |
e6cc62c6 VS |
28807 | fi |
28808 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
28809 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
a0b9e27f | 28810 | if test "$am_cv_func_iconv" = yes; then |
e6cc62c6 VS |
28811 | |
28812 | cat >>confdefs.h <<\_ACEOF | |
b040e242 | 28813 | #define HAVE_ICONV 1 |
e6cc62c6 | 28814 | _ACEOF |
b040e242 | 28815 | |
e6cc62c6 VS |
28816 | echo "$as_me:$LINENO: checking if iconv needs const" >&5 |
28817 | echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6 | |
28818 | if test "${wx_cv_func_iconv_const+set}" = set; then | |
28819 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b040e242 | 28820 | else |
e6cc62c6 | 28821 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
28822 | /* confdefs.h. */ |
28823 | _ACEOF | |
28824 | cat confdefs.h >>conftest.$ac_ext | |
28825 | cat >>conftest.$ac_ext <<_ACEOF | |
28826 | /* end confdefs.h. */ | |
b040e242 VS |
28827 | |
28828 | #include <stdlib.h> | |
28829 | #include <iconv.h> | |
28830 | extern | |
28831 | #ifdef __cplusplus | |
28832 | "C" | |
28833 | #endif | |
28834 | #if defined(__STDC__) || defined(__cplusplus) | |
28835 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
28836 | #else | |
28837 | size_t iconv(); | |
28838 | #endif | |
af15babd | 28839 | |
e6cc62c6 VS |
28840 | int |
28841 | main () | |
28842 | { | |
28843 | ||
28844 | ; | |
28845 | return 0; | |
28846 | } | |
28847 | _ACEOF | |
28848 | rm -f conftest.$ac_objext | |
28849 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 28850 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 28851 | ac_status=$? |
eea650d8 VS |
28852 | grep -v '^ *+' conftest.er1 >conftest.err |
28853 | rm -f conftest.er1 | |
28854 | cat conftest.err >&5 | |
e6cc62c6 VS |
28855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28856 | (exit $ac_status); } && | |
eea650d8 VS |
28857 | { ac_try='test -z "$ac_cxx_werror_flag" |
28858 | || test ! -s conftest.err' | |
28859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28860 | (eval $ac_try) 2>&5 | |
28861 | ac_status=$? | |
28862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28863 | (exit $ac_status); }; } && | |
28864 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
28865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28866 | (eval $ac_try) 2>&5 | |
28867 | ac_status=$? | |
28868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28869 | (exit $ac_status); }; }; then | |
b7043674 | 28870 | wx_cv_func_iconv_const="no" |
b040e242 | 28871 | else |
e6cc62c6 VS |
28872 | echo "$as_me: failed program was:" >&5 |
28873 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28874 | ||
28875 | wx_cv_func_iconv_const="yes" | |
28876 | ||
247f5006 | 28877 | fi |
eea650d8 | 28878 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 28879 | |
e6cc62c6 VS |
28880 | fi |
28881 | echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5 | |
28882 | echo "${ECHO_T}$wx_cv_func_iconv_const" >&6 | |
b7043674 VZ |
28883 | |
28884 | iconv_const= | |
1c405bb5 | 28885 | if test "x$wx_cv_func_iconv_const" = "xyes"; then |
b7043674 VZ |
28886 | iconv_const="const" |
28887 | fi | |
28888 | ||
e6cc62c6 VS |
28889 | |
28890 | cat >>confdefs.h <<_ACEOF | |
f09359cf | 28891 | #define ICONV_CONST $iconv_const |
e6cc62c6 | 28892 | _ACEOF |
b040e242 VS |
28893 | |
28894 | fi | |
28895 | LIBICONV= | |
28896 | if test "$am_cv_lib_iconv" = yes; then | |
28897 | LIBICONV="-liconv" | |
28898 | fi | |
e6cc62c6 | 28899 | |
b040e242 VS |
28900 | |
28901 | LIBS="$LIBICONV $LIBS" | |
4f14bcd8 | 28902 | ac_ext=c |
4f14bcd8 | 28903 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
28904 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
28905 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28906 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7b4a847f | 28907 | |
5c6fa7d2 | 28908 | |
8284b0c5 | 28909 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
e6cc62c6 VS |
28910 | |
28911 | for ac_func in sigaction | |
af15babd | 28912 | do |
e6cc62c6 VS |
28913 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
28914 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28915 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28916 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28917 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28918 | else | |
28919 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
28920 | /* confdefs.h. */ |
28921 | _ACEOF | |
28922 | cat confdefs.h >>conftest.$ac_ext | |
28923 | cat >>conftest.$ac_ext <<_ACEOF | |
28924 | /* end confdefs.h. */ | |
eea650d8 VS |
28925 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
28926 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28927 | #define $ac_func innocuous_$ac_func | |
28928 | ||
af15babd | 28929 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
28930 | which can conflict with char $ac_func (); below. |
28931 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28932 | <limits.h> exists even on freestanding compilers. */ | |
eea650d8 | 28933 | |
e6cc62c6 VS |
28934 | #ifdef __STDC__ |
28935 | # include <limits.h> | |
28936 | #else | |
28937 | # include <assert.h> | |
28938 | #endif | |
eea650d8 VS |
28939 | |
28940 | #undef $ac_func | |
28941 | ||
af15babd | 28942 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28943 | #ifdef __cplusplus |
28944 | extern "C" | |
28945 | { | |
28946 | #endif | |
af15babd | 28947 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28948 | builtin and then its argument prototype would still apply. */ |
28949 | char $ac_func (); | |
af15babd VZ |
28950 | /* The GNU C library defines this for functions which it implements |
28951 | to always fail with ENOSYS. Some functions are actually named | |
28952 | something starting with __ and the normal name is an alias. */ | |
28953 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28954 | choke me | |
28955 | #else | |
e6cc62c6 VS |
28956 | char (*f) () = $ac_func; |
28957 | #endif | |
28958 | #ifdef __cplusplus | |
28959 | } | |
af15babd VZ |
28960 | #endif |
28961 | ||
e6cc62c6 VS |
28962 | int |
28963 | main () | |
28964 | { | |
28965 | return f != $ac_func; | |
28966 | ; | |
28967 | return 0; | |
28968 | } | |
28969 | _ACEOF | |
28970 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28971 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 28972 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 28973 | ac_status=$? |
eea650d8 VS |
28974 | grep -v '^ *+' conftest.er1 >conftest.err |
28975 | rm -f conftest.er1 | |
28976 | cat conftest.err >&5 | |
e6cc62c6 VS |
28977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28978 | (exit $ac_status); } && | |
eea650d8 VS |
28979 | { ac_try='test -z "$ac_c_werror_flag" |
28980 | || test ! -s conftest.err' | |
28981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28982 | (eval $ac_try) 2>&5 | |
28983 | ac_status=$? | |
28984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28985 | (exit $ac_status); }; } && | |
28986 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
28987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28988 | (eval $ac_try) 2>&5 | |
28989 | ac_status=$? | |
28990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28991 | (exit $ac_status); }; }; then | |
28992 | eval "$as_ac_var=yes" | |
28993 | else | |
28994 | echo "$as_me: failed program was:" >&5 | |
28995 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28996 | ||
28997 | eval "$as_ac_var=no" | |
28998 | fi | |
eea650d8 VS |
28999 | rm -f conftest.err conftest.$ac_objext \ |
29000 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
29001 | fi |
29002 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29003 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29004 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29005 | cat >>confdefs.h <<_ACEOF | |
29006 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29007 | _ACEOF | |
7b4a847f | 29008 | |
4f14bcd8 GD |
29009 | fi |
29010 | done | |
29011 | ||
8284b0c5 | 29012 | |
4f14bcd8 | 29013 | if test "$ac_cv_func_sigaction" = "no"; then |
e6cc62c6 VS |
29014 | { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5 |
29015 | echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;} | |
4f14bcd8 GD |
29016 | wxUSE_ON_FATAL_EXCEPTION=no |
29017 | fi | |
29018 | ||
29019 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
e6cc62c6 VS |
29020 | |
29021 | ||
29022 | ac_ext=cc | |
5c6fa7d2 | 29023 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
29024 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
29025 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29026 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
7b4a847f | 29027 | |
5c6fa7d2 | 29028 | |
e6cc62c6 VS |
29029 | echo "$as_me:$LINENO: checking for sa_handler type" >&5 |
29030 | echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6 | |
29031 | if test "${wx_cv_type_sa_handler+set}" = set; then | |
29032 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 29033 | else |
e6cc62c6 VS |
29034 | |
29035 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
29036 | /* confdefs.h. */ |
29037 | _ACEOF | |
29038 | cat confdefs.h >>conftest.$ac_ext | |
29039 | cat >>conftest.$ac_ext <<_ACEOF | |
29040 | /* end confdefs.h. */ | |
4f14bcd8 | 29041 | #include <signal.h> |
e6cc62c6 VS |
29042 | int |
29043 | main () | |
29044 | { | |
4f14bcd8 GD |
29045 | |
29046 | extern void testSigHandler(int); | |
29047 | ||
29048 | struct sigaction sa; | |
29049 | sa.sa_handler = testSigHandler; | |
e6cc62c6 VS |
29050 | |
29051 | ; | |
29052 | return 0; | |
29053 | } | |
29054 | _ACEOF | |
29055 | rm -f conftest.$ac_objext | |
29056 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 29057 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 29058 | ac_status=$? |
eea650d8 VS |
29059 | grep -v '^ *+' conftest.er1 >conftest.err |
29060 | rm -f conftest.er1 | |
29061 | cat conftest.err >&5 | |
e6cc62c6 VS |
29062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29063 | (exit $ac_status); } && | |
eea650d8 VS |
29064 | { ac_try='test -z "$ac_cxx_werror_flag" |
29065 | || test ! -s conftest.err' | |
29066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29067 | (eval $ac_try) 2>&5 | |
29068 | ac_status=$? | |
29069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29070 | (exit $ac_status); }; } && | |
29071 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
29072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29073 | (eval $ac_try) 2>&5 | |
29074 | ac_status=$? | |
29075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29076 | (exit $ac_status); }; }; then | |
29077 | ||
4f14bcd8 | 29078 | wx_cv_type_sa_handler=int |
e6cc62c6 | 29079 | |
af15babd | 29080 | else |
e6cc62c6 VS |
29081 | echo "$as_me: failed program was:" >&5 |
29082 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29083 | ||
29084 | ||
4f14bcd8 | 29085 | wx_cv_type_sa_handler=void |
e6cc62c6 | 29086 | |
247f5006 | 29087 | fi |
eea650d8 | 29088 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 29089 | |
e6cc62c6 VS |
29090 | fi |
29091 | echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5 | |
29092 | echo "${ECHO_T}$wx_cv_type_sa_handler" >&6 | |
4f14bcd8 GD |
29093 | |
29094 | ac_ext=c | |
4f14bcd8 | 29095 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
29096 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
29097 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29098 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
579d8138 | 29099 | |
8284b0c5 | 29100 | |
e6cc62c6 | 29101 | cat >>confdefs.h <<_ACEOF |
4f14bcd8 | 29102 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler |
e6cc62c6 | 29103 | _ACEOF |
af15babd | 29104 | |
4f14bcd8 GD |
29105 | fi |
29106 | fi | |
af15babd | 29107 | |
e6cc62c6 VS |
29108 | |
29109 | ||
a1d22ad7 | 29110 | for ac_func in mkstemp mktemp |
af15babd | 29111 | do |
e6cc62c6 VS |
29112 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
29113 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29114 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29115 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29116 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29117 | else | |
29118 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
29119 | /* confdefs.h. */ |
29120 | _ACEOF | |
29121 | cat confdefs.h >>conftest.$ac_ext | |
29122 | cat >>conftest.$ac_ext <<_ACEOF | |
29123 | /* end confdefs.h. */ | |
eea650d8 VS |
29124 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29125 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29126 | #define $ac_func innocuous_$ac_func | |
29127 | ||
af15babd | 29128 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
29129 | which can conflict with char $ac_func (); below. |
29130 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29131 | <limits.h> exists even on freestanding compilers. */ | |
eea650d8 | 29132 | |
e6cc62c6 VS |
29133 | #ifdef __STDC__ |
29134 | # include <limits.h> | |
29135 | #else | |
29136 | # include <assert.h> | |
29137 | #endif | |
eea650d8 VS |
29138 | |
29139 | #undef $ac_func | |
29140 | ||
af15babd | 29141 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29142 | #ifdef __cplusplus |
29143 | extern "C" | |
29144 | { | |
29145 | #endif | |
af15babd | 29146 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29147 | builtin and then its argument prototype would still apply. */ |
29148 | char $ac_func (); | |
af15babd VZ |
29149 | /* The GNU C library defines this for functions which it implements |
29150 | to always fail with ENOSYS. Some functions are actually named | |
29151 | something starting with __ and the normal name is an alias. */ | |
29152 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29153 | choke me | |
29154 | #else | |
e6cc62c6 VS |
29155 | char (*f) () = $ac_func; |
29156 | #endif | |
29157 | #ifdef __cplusplus | |
29158 | } | |
af15babd VZ |
29159 | #endif |
29160 | ||
e6cc62c6 VS |
29161 | int |
29162 | main () | |
29163 | { | |
29164 | return f != $ac_func; | |
29165 | ; | |
29166 | return 0; | |
29167 | } | |
29168 | _ACEOF | |
29169 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29170 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 29171 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 29172 | ac_status=$? |
eea650d8 VS |
29173 | grep -v '^ *+' conftest.er1 >conftest.err |
29174 | rm -f conftest.er1 | |
29175 | cat conftest.err >&5 | |
e6cc62c6 VS |
29176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29177 | (exit $ac_status); } && | |
eea650d8 VS |
29178 | { ac_try='test -z "$ac_c_werror_flag" |
29179 | || test ! -s conftest.err' | |
29180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29181 | (eval $ac_try) 2>&5 | |
29182 | ac_status=$? | |
29183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29184 | (exit $ac_status); }; } && | |
29185 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
29186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29187 | (eval $ac_try) 2>&5 | |
29188 | ac_status=$? | |
29189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29190 | (exit $ac_status); }; }; then | |
29191 | eval "$as_ac_var=yes" | |
29192 | else | |
29193 | echo "$as_me: failed program was:" >&5 | |
29194 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29195 | ||
29196 | eval "$as_ac_var=no" | |
29197 | fi | |
eea650d8 VS |
29198 | rm -f conftest.err conftest.$ac_objext \ |
29199 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
29200 | fi |
29201 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29202 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29203 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29204 | cat >>confdefs.h <<_ACEOF | |
29205 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29206 | _ACEOF | |
ade35f11 | 29207 | break |
ade35f11 VZ |
29208 | fi |
29209 | done | |
29210 | ||
8284b0c5 | 29211 | |
e6cc62c6 VS |
29212 | echo "$as_me:$LINENO: checking for statfs" >&5 |
29213 | echo $ECHO_N "checking for statfs... $ECHO_C" >&6 | |
29214 | if test "${wx_cv_func_statfs+set}" = set; then | |
29215 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4f14bcd8 | 29216 | else |
e6cc62c6 | 29217 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
29218 | /* confdefs.h. */ |
29219 | _ACEOF | |
29220 | cat confdefs.h >>conftest.$ac_ext | |
29221 | cat >>conftest.$ac_ext <<_ACEOF | |
29222 | /* end confdefs.h. */ | |
4f14bcd8 GD |
29223 | |
29224 | #if defined(__BSD__) | |
29225 | #include <sys/param.h> | |
29226 | #include <sys/mount.h> | |
29227 | #else | |
29228 | #include <sys/vfs.h> | |
29229 | #endif | |
e6cc62c6 VS |
29230 | |
29231 | int | |
29232 | main () | |
29233 | { | |
4f14bcd8 GD |
29234 | |
29235 | long l; | |
29236 | struct statfs fs; | |
29237 | statfs("/", &fs); | |
29238 | l = fs.f_bsize; | |
29239 | l += fs.f_blocks; | |
29240 | l += fs.f_bavail; | |
e6cc62c6 VS |
29241 | |
29242 | ; | |
29243 | return 0; | |
29244 | } | |
29245 | _ACEOF | |
29246 | rm -f conftest.$ac_objext | |
29247 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 29248 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 29249 | ac_status=$? |
eea650d8 VS |
29250 | grep -v '^ *+' conftest.er1 >conftest.err |
29251 | rm -f conftest.er1 | |
29252 | cat conftest.err >&5 | |
e6cc62c6 VS |
29253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29254 | (exit $ac_status); } && | |
eea650d8 VS |
29255 | { ac_try='test -z "$ac_c_werror_flag" |
29256 | || test ! -s conftest.err' | |
29257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29258 | (eval $ac_try) 2>&5 | |
29259 | ac_status=$? | |
29260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29261 | (exit $ac_status); }; } && | |
29262 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
29263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29264 | (eval $ac_try) 2>&5 | |
29265 | ac_status=$? | |
29266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29267 | (exit $ac_status); }; }; then | |
29268 | ||
4f14bcd8 | 29269 | wx_cv_func_statfs=yes |
e6cc62c6 | 29270 | |
4f14bcd8 | 29271 | else |
e6cc62c6 VS |
29272 | echo "$as_me: failed program was:" >&5 |
29273 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29274 | ||
29275 | ||
4f14bcd8 | 29276 | wx_cv_func_statfs=no |
e6cc62c6 | 29277 | |
8284b0c5 | 29278 | |
247f5006 | 29279 | fi |
eea650d8 | 29280 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 29281 | |
e6cc62c6 VS |
29282 | fi |
29283 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5 | |
29284 | echo "${ECHO_T}$wx_cv_func_statfs" >&6 | |
4f14bcd8 GD |
29285 | |
29286 | if test "$wx_cv_func_statfs" = "yes"; then | |
54ab82b3 | 29287 | wx_cv_type_statvfs_t="struct statfs" |
e6cc62c6 | 29288 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 29289 | #define HAVE_STATFS 1 |
e6cc62c6 | 29290 | _ACEOF |
4f14bcd8 GD |
29291 | |
29292 | else | |
e6cc62c6 VS |
29293 | echo "$as_me:$LINENO: checking for statvfs" >&5 |
29294 | echo $ECHO_N "checking for statvfs... $ECHO_C" >&6 | |
29295 | if test "${wx_cv_func_statvfs+set}" = set; then | |
29296 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
af15babd | 29297 | else |
e6cc62c6 | 29298 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
29299 | /* confdefs.h. */ |
29300 | _ACEOF | |
29301 | cat confdefs.h >>conftest.$ac_ext | |
29302 | cat >>conftest.$ac_ext <<_ACEOF | |
29303 | /* end confdefs.h. */ | |
af15babd | 29304 | |
54ab82b3 VZ |
29305 | #include <stddef.h> |
29306 | #include <sys/statvfs.h> | |
e6cc62c6 VS |
29307 | |
29308 | int | |
29309 | main () | |
29310 | { | |
af15babd | 29311 | |
54ab82b3 | 29312 | statvfs("/", NULL); |
e6cc62c6 VS |
29313 | |
29314 | ; | |
29315 | return 0; | |
29316 | } | |
29317 | _ACEOF | |
29318 | rm -f conftest.$ac_objext | |
29319 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 29320 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 29321 | ac_status=$? |
eea650d8 VS |
29322 | grep -v '^ *+' conftest.er1 >conftest.err |
29323 | rm -f conftest.er1 | |
29324 | cat conftest.err >&5 | |
e6cc62c6 VS |
29325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29326 | (exit $ac_status); } && | |
eea650d8 VS |
29327 | { ac_try='test -z "$ac_c_werror_flag" |
29328 | || test ! -s conftest.err' | |
29329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29330 | (eval $ac_try) 2>&5 | |
29331 | ac_status=$? | |
29332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29333 | (exit $ac_status); }; } && | |
29334 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
29335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29336 | (eval $ac_try) 2>&5 | |
29337 | ac_status=$? | |
29338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29339 | (exit $ac_status); }; }; then | |
54ab82b3 | 29340 | wx_cv_func_statvfs=yes |
af15babd | 29341 | else |
e6cc62c6 VS |
29342 | echo "$as_me: failed program was:" >&5 |
29343 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29344 | ||
29345 | wx_cv_func_statvfs=no | |
29346 | ||
247f5006 | 29347 | fi |
eea650d8 | 29348 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 29349 | |
e6cc62c6 VS |
29350 | fi |
29351 | echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5 | |
29352 | echo "${ECHO_T}$wx_cv_func_statvfs" >&6 | |
af15babd | 29353 | |
4f14bcd8 | 29354 | if test "$wx_cv_func_statvfs" = "yes"; then |
e6cc62c6 VS |
29355 | |
29356 | ||
29357 | ac_ext=cc | |
54ab82b3 | 29358 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
29359 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
29360 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29361 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
54ab82b3 VZ |
29362 | |
29363 | ||
e6cc62c6 VS |
29364 | echo "$as_me:$LINENO: checking for statvfs argument type" >&5 |
29365 | echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6 | |
29366 | if test "${wx_cv_type_statvfs_t+set}" = set; then | |
29367 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
54ab82b3 | 29368 | else |
e6cc62c6 | 29369 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
29370 | /* confdefs.h. */ |
29371 | _ACEOF | |
29372 | cat confdefs.h >>conftest.$ac_ext | |
29373 | cat >>conftest.$ac_ext <<_ACEOF | |
29374 | /* end confdefs.h. */ | |
54ab82b3 VZ |
29375 | |
29376 | #include <sys/statvfs.h> | |
e6cc62c6 VS |
29377 | |
29378 | int | |
29379 | main () | |
29380 | { | |
54ab82b3 VZ |
29381 | |
29382 | long l; | |
29383 | statvfs_t fs; | |
29384 | statvfs("/", &fs); | |
29385 | l = fs.f_bsize; | |
29386 | l += fs.f_blocks; | |
29387 | l += fs.f_bavail; | |
e6cc62c6 VS |
29388 | |
29389 | ; | |
29390 | return 0; | |
29391 | } | |
29392 | _ACEOF | |
29393 | rm -f conftest.$ac_objext | |
29394 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 29395 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 29396 | ac_status=$? |
eea650d8 VS |
29397 | grep -v '^ *+' conftest.er1 >conftest.err |
29398 | rm -f conftest.er1 | |
29399 | cat conftest.err >&5 | |
e6cc62c6 VS |
29400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29401 | (exit $ac_status); } && | |
eea650d8 VS |
29402 | { ac_try='test -z "$ac_cxx_werror_flag" |
29403 | || test ! -s conftest.err' | |
29404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29405 | (eval $ac_try) 2>&5 | |
29406 | ac_status=$? | |
29407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29408 | (exit $ac_status); }; } && | |
29409 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
29410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29411 | (eval $ac_try) 2>&5 | |
29412 | ac_status=$? | |
29413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29414 | (exit $ac_status); }; }; then | |
54ab82b3 VZ |
29415 | wx_cv_type_statvfs_t=statvfs_t |
29416 | else | |
e6cc62c6 VS |
29417 | echo "$as_me: failed program was:" >&5 |
29418 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29419 | ||
29420 | ||
29421 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
29422 | /* confdefs.h. */ |
29423 | _ACEOF | |
29424 | cat confdefs.h >>conftest.$ac_ext | |
29425 | cat >>conftest.$ac_ext <<_ACEOF | |
29426 | /* end confdefs.h. */ | |
54ab82b3 VZ |
29427 | |
29428 | #include <sys/statvfs.h> | |
e6cc62c6 VS |
29429 | |
29430 | int | |
29431 | main () | |
29432 | { | |
54ab82b3 VZ |
29433 | |
29434 | long l; | |
65d8ef1e | 29435 | struct statvfs fs; |
54ab82b3 VZ |
29436 | statvfs("/", &fs); |
29437 | l = fs.f_bsize; | |
29438 | l += fs.f_blocks; | |
29439 | l += fs.f_bavail; | |
e6cc62c6 VS |
29440 | |
29441 | ; | |
29442 | return 0; | |
29443 | } | |
29444 | _ACEOF | |
29445 | rm -f conftest.$ac_objext | |
29446 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 29447 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 29448 | ac_status=$? |
eea650d8 VS |
29449 | grep -v '^ *+' conftest.er1 >conftest.err |
29450 | rm -f conftest.er1 | |
29451 | cat conftest.err >&5 | |
e6cc62c6 VS |
29452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29453 | (exit $ac_status); } && | |
eea650d8 VS |
29454 | { ac_try='test -z "$ac_cxx_werror_flag" |
29455 | || test ! -s conftest.err' | |
29456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29457 | (eval $ac_try) 2>&5 | |
29458 | ac_status=$? | |
29459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29460 | (exit $ac_status); }; } && | |
29461 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
29462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29463 | (eval $ac_try) 2>&5 | |
29464 | ac_status=$? | |
29465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29466 | (exit $ac_status); }; }; then | |
54ab82b3 VZ |
29467 | wx_cv_type_statvfs_t="struct statvfs" |
29468 | else | |
e6cc62c6 VS |
29469 | echo "$as_me: failed program was:" >&5 |
29470 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29471 | ||
29472 | wx_cv_type_statvfs_t="unknown" | |
29473 | ||
54ab82b3 | 29474 | fi |
eea650d8 | 29475 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
29476 | |
29477 | ||
54ab82b3 | 29478 | fi |
eea650d8 | 29479 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
54ab82b3 | 29480 | |
e6cc62c6 VS |
29481 | fi |
29482 | echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5 | |
29483 | echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6 | |
54ab82b3 VZ |
29484 | |
29485 | ac_ext=c | |
54ab82b3 | 29486 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
29487 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
29488 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29489 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
54ab82b3 VZ |
29490 | |
29491 | ||
29492 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
e6cc62c6 | 29493 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 29494 | #define HAVE_STATVFS 1 |
e6cc62c6 | 29495 | _ACEOF |
af15babd | 29496 | |
54ab82b3 | 29497 | fi |
4f14bcd8 | 29498 | else |
54ab82b3 | 29499 | wx_cv_type_statvfs_t="unknown" |
4f14bcd8 GD |
29500 | fi |
29501 | fi | |
af15babd | 29502 | |
54ab82b3 | 29503 | if test "$wx_cv_type_statvfs_t" != "unknown"; then |
e6cc62c6 | 29504 | cat >>confdefs.h <<_ACEOF |
54ab82b3 | 29505 | #define WX_STATFS_T $wx_cv_type_statvfs_t |
e6cc62c6 | 29506 | _ACEOF |
54ab82b3 VZ |
29507 | |
29508 | else | |
e6cc62c6 VS |
29509 | { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5 |
29510 | echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;} | |
54ab82b3 VZ |
29511 | fi |
29512 | ||
4f14bcd8 | 29513 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
e6cc62c6 VS |
29514 | |
29515 | ||
29516 | for ac_func in fcntl flock | |
af15babd | 29517 | do |
e6cc62c6 VS |
29518 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
29519 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29520 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29521 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29522 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29523 | else | |
29524 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
29525 | /* confdefs.h. */ |
29526 | _ACEOF | |
29527 | cat confdefs.h >>conftest.$ac_ext | |
29528 | cat >>conftest.$ac_ext <<_ACEOF | |
29529 | /* end confdefs.h. */ | |
eea650d8 VS |
29530 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29531 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29532 | #define $ac_func innocuous_$ac_func | |
29533 | ||
af15babd | 29534 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
29535 | which can conflict with char $ac_func (); below. |
29536 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29537 | <limits.h> exists even on freestanding compilers. */ | |
eea650d8 | 29538 | |
e6cc62c6 VS |
29539 | #ifdef __STDC__ |
29540 | # include <limits.h> | |
29541 | #else | |
29542 | # include <assert.h> | |
29543 | #endif | |
eea650d8 VS |
29544 | |
29545 | #undef $ac_func | |
29546 | ||
af15babd | 29547 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29548 | #ifdef __cplusplus |
29549 | extern "C" | |
29550 | { | |
29551 | #endif | |
af15babd | 29552 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29553 | builtin and then its argument prototype would still apply. */ |
29554 | char $ac_func (); | |
af15babd VZ |
29555 | /* The GNU C library defines this for functions which it implements |
29556 | to always fail with ENOSYS. Some functions are actually named | |
29557 | something starting with __ and the normal name is an alias. */ | |
29558 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29559 | choke me | |
29560 | #else | |
e6cc62c6 VS |
29561 | char (*f) () = $ac_func; |
29562 | #endif | |
29563 | #ifdef __cplusplus | |
29564 | } | |
af15babd VZ |
29565 | #endif |
29566 | ||
e6cc62c6 VS |
29567 | int |
29568 | main () | |
29569 | { | |
29570 | return f != $ac_func; | |
29571 | ; | |
29572 | return 0; | |
29573 | } | |
29574 | _ACEOF | |
29575 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29576 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 29577 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 29578 | ac_status=$? |
eea650d8 VS |
29579 | grep -v '^ *+' conftest.er1 >conftest.err |
29580 | rm -f conftest.er1 | |
29581 | cat conftest.err >&5 | |
e6cc62c6 VS |
29582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29583 | (exit $ac_status); } && | |
eea650d8 VS |
29584 | { ac_try='test -z "$ac_c_werror_flag" |
29585 | || test ! -s conftest.err' | |
29586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29587 | (eval $ac_try) 2>&5 | |
29588 | ac_status=$? | |
29589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29590 | (exit $ac_status); }; } && | |
29591 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
29592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29593 | (eval $ac_try) 2>&5 | |
29594 | ac_status=$? | |
29595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29596 | (exit $ac_status); }; }; then | |
29597 | eval "$as_ac_var=yes" | |
29598 | else | |
29599 | echo "$as_me: failed program was:" >&5 | |
29600 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29601 | ||
29602 | eval "$as_ac_var=no" | |
29603 | fi | |
eea650d8 VS |
29604 | rm -f conftest.err conftest.$ac_objext \ |
29605 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
29606 | fi |
29607 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29608 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29609 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29610 | cat >>confdefs.h <<_ACEOF | |
29611 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29612 | _ACEOF | |
4f14bcd8 | 29613 | break |
af15babd VZ |
29614 | fi |
29615 | done | |
29616 | ||
8284b0c5 | 29617 | |
4f14bcd8 | 29618 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
e6cc62c6 VS |
29619 | { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5 |
29620 | echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;} | |
4f14bcd8 GD |
29621 | wxUSE_SNGLINST_CHECKER=no |
29622 | fi | |
29623 | fi | |
af15babd | 29624 | |
e6cc62c6 | 29625 | |
4f14bcd8 | 29626 | for ac_func in timegm |
af15babd | 29627 | do |
e6cc62c6 VS |
29628 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
29629 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29630 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29631 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29632 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29633 | else | |
29634 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
29635 | /* confdefs.h. */ |
29636 | _ACEOF | |
29637 | cat confdefs.h >>conftest.$ac_ext | |
29638 | cat >>conftest.$ac_ext <<_ACEOF | |
29639 | /* end confdefs.h. */ | |
eea650d8 VS |
29640 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29641 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29642 | #define $ac_func innocuous_$ac_func | |
29643 | ||
af15babd | 29644 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
29645 | which can conflict with char $ac_func (); below. |
29646 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29647 | <limits.h> exists even on freestanding compilers. */ | |
eea650d8 | 29648 | |
e6cc62c6 VS |
29649 | #ifdef __STDC__ |
29650 | # include <limits.h> | |
29651 | #else | |
29652 | # include <assert.h> | |
29653 | #endif | |
eea650d8 VS |
29654 | |
29655 | #undef $ac_func | |
29656 | ||
af15babd | 29657 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29658 | #ifdef __cplusplus |
29659 | extern "C" | |
29660 | { | |
29661 | #endif | |
af15babd | 29662 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29663 | builtin and then its argument prototype would still apply. */ |
29664 | char $ac_func (); | |
af15babd VZ |
29665 | /* The GNU C library defines this for functions which it implements |
29666 | to always fail with ENOSYS. Some functions are actually named | |
29667 | something starting with __ and the normal name is an alias. */ | |
247f5006 VZ |
29668 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
29669 | choke me | |
29670 | #else | |
e6cc62c6 VS |
29671 | char (*f) () = $ac_func; |
29672 | #endif | |
29673 | #ifdef __cplusplus | |
29674 | } | |
247f5006 VZ |
29675 | #endif |
29676 | ||
e6cc62c6 VS |
29677 | int |
29678 | main () | |
29679 | { | |
29680 | return f != $ac_func; | |
29681 | ; | |
29682 | return 0; | |
29683 | } | |
29684 | _ACEOF | |
29685 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29686 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 29687 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 29688 | ac_status=$? |
eea650d8 VS |
29689 | grep -v '^ *+' conftest.er1 >conftest.err |
29690 | rm -f conftest.er1 | |
29691 | cat conftest.err >&5 | |
e6cc62c6 VS |
29692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29693 | (exit $ac_status); } && | |
eea650d8 VS |
29694 | { ac_try='test -z "$ac_c_werror_flag" |
29695 | || test ! -s conftest.err' | |
29696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29697 | (eval $ac_try) 2>&5 | |
29698 | ac_status=$? | |
29699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29700 | (exit $ac_status); }; } && | |
29701 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
29702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29703 | (eval $ac_try) 2>&5 | |
29704 | ac_status=$? | |
29705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29706 | (exit $ac_status); }; }; then | |
29707 | eval "$as_ac_var=yes" | |
29708 | else | |
29709 | echo "$as_me: failed program was:" >&5 | |
29710 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29711 | ||
29712 | eval "$as_ac_var=no" | |
29713 | fi | |
eea650d8 VS |
29714 | rm -f conftest.err conftest.$ac_objext \ |
29715 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
29716 | fi |
29717 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29718 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29719 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29720 | cat >>confdefs.h <<_ACEOF | |
29721 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29722 | _ACEOF | |
703e0a69 | 29723 | |
af15babd VZ |
29724 | fi |
29725 | done | |
29726 | ||
8284b0c5 | 29727 | |
e6cc62c6 VS |
29728 | |
29729 | ||
4f14bcd8 | 29730 | for ac_func in putenv setenv |
10f2d63a | 29731 | do |
e6cc62c6 VS |
29732 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
29733 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29734 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29735 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29736 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29737 | else | |
29738 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
29739 | /* confdefs.h. */ |
29740 | _ACEOF | |
29741 | cat confdefs.h >>conftest.$ac_ext | |
29742 | cat >>conftest.$ac_ext <<_ACEOF | |
29743 | /* end confdefs.h. */ | |
eea650d8 VS |
29744 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29745 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29746 | #define $ac_func innocuous_$ac_func | |
29747 | ||
af15babd | 29748 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
29749 | which can conflict with char $ac_func (); below. |
29750 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29751 | <limits.h> exists even on freestanding compilers. */ | |
eea650d8 | 29752 | |
e6cc62c6 VS |
29753 | #ifdef __STDC__ |
29754 | # include <limits.h> | |
29755 | #else | |
29756 | # include <assert.h> | |
29757 | #endif | |
eea650d8 VS |
29758 | |
29759 | #undef $ac_func | |
29760 | ||
af15babd | 29761 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29762 | #ifdef __cplusplus |
29763 | extern "C" | |
29764 | { | |
29765 | #endif | |
af15babd | 29766 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29767 | builtin and then its argument prototype would still apply. */ |
29768 | char $ac_func (); | |
af15babd VZ |
29769 | /* The GNU C library defines this for functions which it implements |
29770 | to always fail with ENOSYS. Some functions are actually named | |
29771 | something starting with __ and the normal name is an alias. */ | |
29772 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29773 | choke me | |
29774 | #else | |
e6cc62c6 VS |
29775 | char (*f) () = $ac_func; |
29776 | #endif | |
29777 | #ifdef __cplusplus | |
29778 | } | |
af15babd VZ |
29779 | #endif |
29780 | ||
e6cc62c6 VS |
29781 | int |
29782 | main () | |
29783 | { | |
29784 | return f != $ac_func; | |
29785 | ; | |
29786 | return 0; | |
29787 | } | |
29788 | _ACEOF | |
29789 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29790 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 29791 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 29792 | ac_status=$? |
eea650d8 VS |
29793 | grep -v '^ *+' conftest.er1 >conftest.err |
29794 | rm -f conftest.er1 | |
29795 | cat conftest.err >&5 | |
e6cc62c6 VS |
29796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29797 | (exit $ac_status); } && | |
eea650d8 VS |
29798 | { ac_try='test -z "$ac_c_werror_flag" |
29799 | || test ! -s conftest.err' | |
29800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29801 | (eval $ac_try) 2>&5 | |
29802 | ac_status=$? | |
29803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29804 | (exit $ac_status); }; } && | |
29805 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
29806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29807 | (eval $ac_try) 2>&5 | |
29808 | ac_status=$? | |
29809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29810 | (exit $ac_status); }; }; then | |
29811 | eval "$as_ac_var=yes" | |
29812 | else | |
29813 | echo "$as_me: failed program was:" >&5 | |
29814 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29815 | ||
29816 | eval "$as_ac_var=no" | |
29817 | fi | |
eea650d8 VS |
29818 | rm -f conftest.err conftest.$ac_objext \ |
29819 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
29820 | fi |
29821 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29822 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29823 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29824 | cat >>confdefs.h <<_ACEOF | |
29825 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29826 | _ACEOF | |
4f14bcd8 | 29827 | break |
af15babd | 29828 | fi |
af15babd VZ |
29829 | done |
29830 | ||
8284b0c5 | 29831 | |
4f14bcd8 GD |
29832 | HAVE_SOME_SLEEP_FUNC=0 |
29833 | if test "$USE_BEOS" = 1; then | |
e6cc62c6 | 29834 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 29835 | #define HAVE_SLEEP 1 |
e6cc62c6 | 29836 | _ACEOF |
af15babd | 29837 | |
4f14bcd8 | 29838 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
29839 | fi |
29840 | ||
4f14bcd8 | 29841 | if test "$USE_DARWIN" = 1; then |
e6cc62c6 | 29842 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 29843 | #define HAVE_USLEEP 1 |
e6cc62c6 | 29844 | _ACEOF |
10f2d63a | 29845 | |
4f14bcd8 | 29846 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
29847 | fi |
29848 | ||
4f14bcd8 GD |
29849 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
29850 | POSIX4_LINK= | |
e6cc62c6 VS |
29851 | |
29852 | for ac_func in nanosleep | |
4f14bcd8 | 29853 | do |
e6cc62c6 VS |
29854 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
29855 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29856 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29857 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29858 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29859 | else | |
29860 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
29861 | /* confdefs.h. */ |
29862 | _ACEOF | |
29863 | cat confdefs.h >>conftest.$ac_ext | |
29864 | cat >>conftest.$ac_ext <<_ACEOF | |
29865 | /* end confdefs.h. */ | |
eea650d8 VS |
29866 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29867 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29868 | #define $ac_func innocuous_$ac_func | |
29869 | ||
4f14bcd8 | 29870 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
29871 | which can conflict with char $ac_func (); below. |
29872 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29873 | <limits.h> exists even on freestanding compilers. */ | |
eea650d8 | 29874 | |
e6cc62c6 VS |
29875 | #ifdef __STDC__ |
29876 | # include <limits.h> | |
29877 | #else | |
29878 | # include <assert.h> | |
29879 | #endif | |
eea650d8 VS |
29880 | |
29881 | #undef $ac_func | |
29882 | ||
10f2d63a | 29883 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29884 | #ifdef __cplusplus |
29885 | extern "C" | |
29886 | { | |
29887 | #endif | |
10f2d63a | 29888 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29889 | builtin and then its argument prototype would still apply. */ |
29890 | char $ac_func (); | |
4f14bcd8 GD |
29891 | /* The GNU C library defines this for functions which it implements |
29892 | to always fail with ENOSYS. Some functions are actually named | |
29893 | something starting with __ and the normal name is an alias. */ | |
29894 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29895 | choke me | |
29896 | #else | |
e6cc62c6 VS |
29897 | char (*f) () = $ac_func; |
29898 | #endif | |
29899 | #ifdef __cplusplus | |
29900 | } | |
4f14bcd8 GD |
29901 | #endif |
29902 | ||
e6cc62c6 VS |
29903 | int |
29904 | main () | |
29905 | { | |
29906 | return f != $ac_func; | |
29907 | ; | |
29908 | return 0; | |
29909 | } | |
29910 | _ACEOF | |
29911 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29912 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 29913 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 29914 | ac_status=$? |
eea650d8 VS |
29915 | grep -v '^ *+' conftest.er1 >conftest.err |
29916 | rm -f conftest.er1 | |
29917 | cat conftest.err >&5 | |
e6cc62c6 VS |
29918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29919 | (exit $ac_status); } && | |
eea650d8 VS |
29920 | { ac_try='test -z "$ac_c_werror_flag" |
29921 | || test ! -s conftest.err' | |
29922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29923 | (eval $ac_try) 2>&5 | |
29924 | ac_status=$? | |
29925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29926 | (exit $ac_status); }; } && | |
29927 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
29928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29929 | (eval $ac_try) 2>&5 | |
29930 | ac_status=$? | |
29931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29932 | (exit $ac_status); }; }; then | |
29933 | eval "$as_ac_var=yes" | |
29934 | else | |
29935 | echo "$as_me: failed program was:" >&5 | |
29936 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29937 | ||
29938 | eval "$as_ac_var=no" | |
29939 | fi | |
eea650d8 VS |
29940 | rm -f conftest.err conftest.$ac_objext \ |
29941 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
29942 | fi |
29943 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29944 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29945 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29946 | cat >>confdefs.h <<_ACEOF | |
29947 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29948 | _ACEOF | |
29949 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 29950 | #define HAVE_NANOSLEEP 1 |
e6cc62c6 | 29951 | _ACEOF |
4f14bcd8 | 29952 | |
10f2d63a | 29953 | else |
e6cc62c6 VS |
29954 | |
29955 | echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5 | |
29956 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6 | |
29957 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then | |
29958 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 29959 | else |
e6cc62c6 | 29960 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 29961 | LIBS="-lposix4 $LIBS" |
e6cc62c6 | 29962 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
29963 | /* confdefs.h. */ |
29964 | _ACEOF | |
29965 | cat confdefs.h >>conftest.$ac_ext | |
29966 | cat >>conftest.$ac_ext <<_ACEOF | |
29967 | /* end confdefs.h. */ | |
29968 | ||
10f2d63a | 29969 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29970 | #ifdef __cplusplus |
29971 | extern "C" | |
29972 | #endif | |
10f2d63a | 29973 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29974 | builtin and then its argument prototype would still apply. */ |
29975 | char nanosleep (); | |
29976 | int | |
29977 | main () | |
29978 | { | |
29979 | nanosleep (); | |
29980 | ; | |
29981 | return 0; | |
29982 | } | |
29983 | _ACEOF | |
29984 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29985 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 29986 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 29987 | ac_status=$? |
eea650d8 VS |
29988 | grep -v '^ *+' conftest.er1 >conftest.err |
29989 | rm -f conftest.er1 | |
29990 | cat conftest.err >&5 | |
e6cc62c6 VS |
29991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29992 | (exit $ac_status); } && | |
eea650d8 VS |
29993 | { ac_try='test -z "$ac_c_werror_flag" |
29994 | || test ! -s conftest.err' | |
29995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29996 | (eval $ac_try) 2>&5 | |
29997 | ac_status=$? | |
29998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29999 | (exit $ac_status); }; } && | |
30000 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
30001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30002 | (eval $ac_try) 2>&5 | |
30003 | ac_status=$? | |
30004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30005 | (exit $ac_status); }; }; then | |
30006 | ac_cv_lib_posix4_nanosleep=yes | |
30007 | else | |
30008 | echo "$as_me: failed program was:" >&5 | |
30009 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30010 | ||
30011 | ac_cv_lib_posix4_nanosleep=no | |
30012 | fi | |
eea650d8 VS |
30013 | rm -f conftest.err conftest.$ac_objext \ |
30014 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
30015 | LIBS=$ac_check_lib_save_LIBS |
30016 | fi | |
30017 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5 | |
30018 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6 | |
30019 | if test $ac_cv_lib_posix4_nanosleep = yes; then | |
30020 | ||
30021 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 30022 | #define HAVE_NANOSLEEP 1 |
e6cc62c6 | 30023 | _ACEOF |
4f14bcd8 | 30024 | |
3d63bc3a | 30025 | POSIX4_LINK=" -lposix4" |
e6cc62c6 | 30026 | |
10f2d63a | 30027 | else |
10f2d63a | 30028 | |
e6cc62c6 VS |
30029 | |
30030 | for ac_func in usleep | |
4f14bcd8 | 30031 | do |
e6cc62c6 VS |
30032 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
30033 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30034 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30035 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30036 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30037 | else | |
30038 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
30039 | /* confdefs.h. */ |
30040 | _ACEOF | |
30041 | cat confdefs.h >>conftest.$ac_ext | |
30042 | cat >>conftest.$ac_ext <<_ACEOF | |
30043 | /* end confdefs.h. */ | |
eea650d8 VS |
30044 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30045 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30046 | #define $ac_func innocuous_$ac_func | |
30047 | ||
4f14bcd8 | 30048 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30049 | which can conflict with char $ac_func (); below. |
30050 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30051 | <limits.h> exists even on freestanding compilers. */ | |
eea650d8 | 30052 | |
e6cc62c6 VS |
30053 | #ifdef __STDC__ |
30054 | # include <limits.h> | |
30055 | #else | |
30056 | # include <assert.h> | |
30057 | #endif | |
eea650d8 VS |
30058 | |
30059 | #undef $ac_func | |
30060 | ||
4f14bcd8 | 30061 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30062 | #ifdef __cplusplus |
30063 | extern "C" | |
30064 | { | |
30065 | #endif | |
4f14bcd8 | 30066 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30067 | builtin and then its argument prototype would still apply. */ |
30068 | char $ac_func (); | |
4f14bcd8 GD |
30069 | /* The GNU C library defines this for functions which it implements |
30070 | to always fail with ENOSYS. Some functions are actually named | |
30071 | something starting with __ and the normal name is an alias. */ | |
30072 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30073 | choke me | |
30074 | #else | |
e6cc62c6 VS |
30075 | char (*f) () = $ac_func; |
30076 | #endif | |
30077 | #ifdef __cplusplus | |
30078 | } | |
4f14bcd8 GD |
30079 | #endif |
30080 | ||
e6cc62c6 VS |
30081 | int |
30082 | main () | |
30083 | { | |
30084 | return f != $ac_func; | |
30085 | ; | |
30086 | return 0; | |
30087 | } | |
30088 | _ACEOF | |
30089 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30090 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 30091 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 30092 | ac_status=$? |
eea650d8 VS |
30093 | grep -v '^ *+' conftest.er1 >conftest.err |
30094 | rm -f conftest.er1 | |
30095 | cat conftest.err >&5 | |
e6cc62c6 VS |
30096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30097 | (exit $ac_status); } && | |
eea650d8 VS |
30098 | { ac_try='test -z "$ac_c_werror_flag" |
30099 | || test ! -s conftest.err' | |
30100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30101 | (eval $ac_try) 2>&5 | |
30102 | ac_status=$? | |
30103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30104 | (exit $ac_status); }; } && | |
30105 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
30106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30107 | (eval $ac_try) 2>&5 | |
30108 | ac_status=$? | |
30109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30110 | (exit $ac_status); }; }; then | |
30111 | eval "$as_ac_var=yes" | |
30112 | else | |
30113 | echo "$as_me: failed program was:" >&5 | |
30114 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30115 | ||
30116 | eval "$as_ac_var=no" | |
30117 | fi | |
eea650d8 VS |
30118 | rm -f conftest.err conftest.$ac_objext \ |
30119 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
30120 | fi |
30121 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30122 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30123 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30124 | cat >>confdefs.h <<_ACEOF | |
30125 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30126 | _ACEOF | |
30127 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 30128 | #define HAVE_USLEEP 1 |
e6cc62c6 | 30129 | _ACEOF |
4f14bcd8 | 30130 | |
698dcdb6 | 30131 | else |
e6cc62c6 VS |
30132 | { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5 |
30133 | echo "$as_me: WARNING: wxSleep() function will not work" >&2;} | |
30134 | ||
10f2d63a | 30135 | fi |
4f14bcd8 | 30136 | done |
10f2d63a | 30137 | |
e6cc62c6 VS |
30138 | |
30139 | ||
6232543b | 30140 | fi |
10f2d63a | 30141 | |
e6cc62c6 VS |
30142 | |
30143 | ||
1e487827 | 30144 | fi |
4f14bcd8 | 30145 | done |
703e0a69 | 30146 | |
10f2d63a VZ |
30147 | fi |
30148 | ||
e6cc62c6 VS |
30149 | |
30150 | ||
4f14bcd8 | 30151 | for ac_func in uname gethostname |
70846f0a | 30152 | do |
e6cc62c6 VS |
30153 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
30154 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30155 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30156 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30157 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30158 | else | |
30159 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
30160 | /* confdefs.h. */ |
30161 | _ACEOF | |
30162 | cat confdefs.h >>conftest.$ac_ext | |
30163 | cat >>conftest.$ac_ext <<_ACEOF | |
30164 | /* end confdefs.h. */ | |
eea650d8 VS |
30165 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30166 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30167 | #define $ac_func innocuous_$ac_func | |
30168 | ||
70846f0a | 30169 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30170 | which can conflict with char $ac_func (); below. |
30171 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30172 | <limits.h> exists even on freestanding compilers. */ | |
eea650d8 | 30173 | |
e6cc62c6 VS |
30174 | #ifdef __STDC__ |
30175 | # include <limits.h> | |
30176 | #else | |
30177 | # include <assert.h> | |
30178 | #endif | |
eea650d8 VS |
30179 | |
30180 | #undef $ac_func | |
30181 | ||
70846f0a | 30182 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30183 | #ifdef __cplusplus |
30184 | extern "C" | |
30185 | { | |
30186 | #endif | |
70846f0a | 30187 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30188 | builtin and then its argument prototype would still apply. */ |
30189 | char $ac_func (); | |
70846f0a VZ |
30190 | /* The GNU C library defines this for functions which it implements |
30191 | to always fail with ENOSYS. Some functions are actually named | |
30192 | something starting with __ and the normal name is an alias. */ | |
30193 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30194 | choke me | |
30195 | #else | |
e6cc62c6 VS |
30196 | char (*f) () = $ac_func; |
30197 | #endif | |
30198 | #ifdef __cplusplus | |
30199 | } | |
70846f0a VZ |
30200 | #endif |
30201 | ||
e6cc62c6 VS |
30202 | int |
30203 | main () | |
30204 | { | |
30205 | return f != $ac_func; | |
30206 | ; | |
30207 | return 0; | |
30208 | } | |
30209 | _ACEOF | |
30210 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30211 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 30212 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 30213 | ac_status=$? |
eea650d8 VS |
30214 | grep -v '^ *+' conftest.er1 >conftest.err |
30215 | rm -f conftest.er1 | |
30216 | cat conftest.err >&5 | |
e6cc62c6 VS |
30217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30218 | (exit $ac_status); } && | |
eea650d8 VS |
30219 | { ac_try='test -z "$ac_c_werror_flag" |
30220 | || test ! -s conftest.err' | |
30221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30222 | (eval $ac_try) 2>&5 | |
30223 | ac_status=$? | |
30224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30225 | (exit $ac_status); }; } && | |
30226 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
30227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30228 | (eval $ac_try) 2>&5 | |
30229 | ac_status=$? | |
30230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30231 | (exit $ac_status); }; }; then | |
30232 | eval "$as_ac_var=yes" | |
30233 | else | |
30234 | echo "$as_me: failed program was:" >&5 | |
30235 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30236 | ||
30237 | eval "$as_ac_var=no" | |
30238 | fi | |
eea650d8 VS |
30239 | rm -f conftest.err conftest.$ac_objext \ |
30240 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
30241 | fi |
30242 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30243 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30244 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30245 | cat >>confdefs.h <<_ACEOF | |
30246 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30247 | _ACEOF | |
4f14bcd8 | 30248 | break |
70846f0a VZ |
30249 | fi |
30250 | done | |
30251 | ||
8284b0c5 MB |
30252 | |
30253 | ||
e6cc62c6 VS |
30254 | |
30255 | ac_ext=cc | |
4f14bcd8 | 30256 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
30257 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
30258 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30259 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
30260 | ||
8284b0c5 | 30261 | |
4f14bcd8 GD |
30262 | |
30263 | for ac_func in strtok_r | |
10f2d63a | 30264 | do |
e6cc62c6 VS |
30265 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
30266 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30267 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30268 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30269 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30270 | else | |
30271 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
30272 | /* confdefs.h. */ |
30273 | _ACEOF | |
30274 | cat confdefs.h >>conftest.$ac_ext | |
30275 | cat >>conftest.$ac_ext <<_ACEOF | |
30276 | /* end confdefs.h. */ | |
eea650d8 VS |
30277 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30278 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30279 | #define $ac_func innocuous_$ac_func | |
30280 | ||
4f14bcd8 | 30281 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30282 | which can conflict with char $ac_func (); below. |
30283 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30284 | <limits.h> exists even on freestanding compilers. */ | |
eea650d8 | 30285 | |
e6cc62c6 VS |
30286 | #ifdef __STDC__ |
30287 | # include <limits.h> | |
30288 | #else | |
30289 | # include <assert.h> | |
30290 | #endif | |
eea650d8 VS |
30291 | |
30292 | #undef $ac_func | |
30293 | ||
4f14bcd8 GD |
30294 | /* Override any gcc2 internal prototype to avoid an error. */ |
30295 | #ifdef __cplusplus | |
30296 | extern "C" | |
e6cc62c6 | 30297 | { |
4f14bcd8 GD |
30298 | #endif |
30299 | /* We use char because int might match the return type of a gcc2 | |
e6cc62c6 VS |
30300 | builtin and then its argument prototype would still apply. */ |
30301 | char $ac_func (); | |
4f14bcd8 GD |
30302 | /* The GNU C library defines this for functions which it implements |
30303 | to always fail with ENOSYS. Some functions are actually named | |
30304 | something starting with __ and the normal name is an alias. */ | |
30305 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30306 | choke me | |
30307 | #else | |
e6cc62c6 VS |
30308 | char (*f) () = $ac_func; |
30309 | #endif | |
30310 | #ifdef __cplusplus | |
30311 | } | |
4f14bcd8 GD |
30312 | #endif |
30313 | ||
e6cc62c6 VS |
30314 | int |
30315 | main () | |
30316 | { | |
30317 | return f != $ac_func; | |
30318 | ; | |
30319 | return 0; | |
30320 | } | |
30321 | _ACEOF | |
30322 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30323 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 30324 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 30325 | ac_status=$? |
eea650d8 VS |
30326 | grep -v '^ *+' conftest.er1 >conftest.err |
30327 | rm -f conftest.er1 | |
30328 | cat conftest.err >&5 | |
e6cc62c6 VS |
30329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30330 | (exit $ac_status); } && | |
eea650d8 VS |
30331 | { ac_try='test -z "$ac_cxx_werror_flag" |
30332 | || test ! -s conftest.err' | |
30333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30334 | (eval $ac_try) 2>&5 | |
30335 | ac_status=$? | |
30336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30337 | (exit $ac_status); }; } && | |
30338 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
30339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30340 | (eval $ac_try) 2>&5 | |
30341 | ac_status=$? | |
30342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30343 | (exit $ac_status); }; }; then | |
30344 | eval "$as_ac_var=yes" | |
30345 | else | |
30346 | echo "$as_me: failed program was:" >&5 | |
30347 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30348 | ||
30349 | eval "$as_ac_var=no" | |
30350 | fi | |
eea650d8 VS |
30351 | rm -f conftest.err conftest.$ac_objext \ |
30352 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
30353 | fi |
30354 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30355 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30356 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30357 | cat >>confdefs.h <<_ACEOF | |
30358 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30359 | _ACEOF | |
4f14bcd8 | 30360 | |
10f2d63a VZ |
30361 | fi |
30362 | done | |
30363 | ||
8284b0c5 | 30364 | |
4f14bcd8 | 30365 | ac_ext=c |
4f14bcd8 | 30366 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
30367 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
30368 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30369 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7b4a847f | 30370 | |
5c6fa7d2 | 30371 | |
8284b0c5 | 30372 | INET_LINK= |
e6cc62c6 | 30373 | |
4f14bcd8 GD |
30374 | for ac_func in inet_addr |
30375 | do | |
e6cc62c6 VS |
30376 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
30377 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30378 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30379 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30380 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30381 | else | |
30382 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
30383 | /* confdefs.h. */ |
30384 | _ACEOF | |
30385 | cat confdefs.h >>conftest.$ac_ext | |
30386 | cat >>conftest.$ac_ext <<_ACEOF | |
30387 | /* end confdefs.h. */ | |
eea650d8 VS |
30388 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30389 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30390 | #define $ac_func innocuous_$ac_func | |
30391 | ||
4f14bcd8 | 30392 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30393 | which can conflict with char $ac_func (); below. |
30394 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30395 | <limits.h> exists even on freestanding compilers. */ | |
eea650d8 | 30396 | |
e6cc62c6 VS |
30397 | #ifdef __STDC__ |
30398 | # include <limits.h> | |
30399 | #else | |
30400 | # include <assert.h> | |
30401 | #endif | |
eea650d8 VS |
30402 | |
30403 | #undef $ac_func | |
30404 | ||
10f2d63a | 30405 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30406 | #ifdef __cplusplus |
30407 | extern "C" | |
30408 | { | |
30409 | #endif | |
10f2d63a | 30410 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30411 | builtin and then its argument prototype would still apply. */ |
30412 | char $ac_func (); | |
4f14bcd8 GD |
30413 | /* The GNU C library defines this for functions which it implements |
30414 | to always fail with ENOSYS. Some functions are actually named | |
30415 | something starting with __ and the normal name is an alias. */ | |
30416 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30417 | choke me | |
30418 | #else | |
e6cc62c6 VS |
30419 | char (*f) () = $ac_func; |
30420 | #endif | |
30421 | #ifdef __cplusplus | |
30422 | } | |
4f14bcd8 GD |
30423 | #endif |
30424 | ||
e6cc62c6 VS |
30425 | int |
30426 | main () | |
30427 | { | |
30428 | return f != $ac_func; | |
30429 | ; | |
30430 | return 0; | |
30431 | } | |
30432 | _ACEOF | |
30433 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30434 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 30435 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 30436 | ac_status=$? |
eea650d8 VS |
30437 | grep -v '^ *+' conftest.er1 >conftest.err |
30438 | rm -f conftest.er1 | |
30439 | cat conftest.err >&5 | |
e6cc62c6 VS |
30440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30441 | (exit $ac_status); } && | |
eea650d8 VS |
30442 | { ac_try='test -z "$ac_c_werror_flag" |
30443 | || test ! -s conftest.err' | |
30444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30445 | (eval $ac_try) 2>&5 | |
30446 | ac_status=$? | |
30447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30448 | (exit $ac_status); }; } && | |
30449 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
30450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30451 | (eval $ac_try) 2>&5 | |
30452 | ac_status=$? | |
30453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30454 | (exit $ac_status); }; }; then | |
30455 | eval "$as_ac_var=yes" | |
30456 | else | |
30457 | echo "$as_me: failed program was:" >&5 | |
30458 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30459 | ||
30460 | eval "$as_ac_var=no" | |
30461 | fi | |
eea650d8 VS |
30462 | rm -f conftest.err conftest.$ac_objext \ |
30463 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
30464 | fi |
30465 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30466 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30467 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30468 | cat >>confdefs.h <<_ACEOF | |
30469 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30470 | _ACEOF | |
30471 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 30472 | #define HAVE_INET_ADDR 1 |
e6cc62c6 | 30473 | _ACEOF |
10f2d63a VZ |
30474 | |
30475 | else | |
e6cc62c6 VS |
30476 | |
30477 | echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5 | |
30478 | echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6 | |
30479 | if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then | |
30480 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 30481 | else |
e6cc62c6 | 30482 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 30483 | LIBS="-lnsl $LIBS" |
e6cc62c6 | 30484 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
30485 | /* confdefs.h. */ |
30486 | _ACEOF | |
30487 | cat confdefs.h >>conftest.$ac_ext | |
30488 | cat >>conftest.$ac_ext <<_ACEOF | |
30489 | /* end confdefs.h. */ | |
30490 | ||
10f2d63a | 30491 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30492 | #ifdef __cplusplus |
30493 | extern "C" | |
30494 | #endif | |
10f2d63a | 30495 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30496 | builtin and then its argument prototype would still apply. */ |
30497 | char inet_addr (); | |
30498 | int | |
30499 | main () | |
30500 | { | |
30501 | inet_addr (); | |
30502 | ; | |
30503 | return 0; | |
30504 | } | |
30505 | _ACEOF | |
30506 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30507 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 30508 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 30509 | ac_status=$? |
eea650d8 VS |
30510 | grep -v '^ *+' conftest.er1 >conftest.err |
30511 | rm -f conftest.er1 | |
30512 | cat conftest.err >&5 | |
e6cc62c6 VS |
30513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30514 | (exit $ac_status); } && | |
eea650d8 VS |
30515 | { ac_try='test -z "$ac_c_werror_flag" |
30516 | || test ! -s conftest.err' | |
30517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30518 | (eval $ac_try) 2>&5 | |
30519 | ac_status=$? | |
30520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30521 | (exit $ac_status); }; } && | |
30522 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
30523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30524 | (eval $ac_try) 2>&5 | |
30525 | ac_status=$? | |
30526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30527 | (exit $ac_status); }; }; then | |
30528 | ac_cv_lib_nsl_inet_addr=yes | |
30529 | else | |
30530 | echo "$as_me: failed program was:" >&5 | |
30531 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30532 | ||
30533 | ac_cv_lib_nsl_inet_addr=no | |
30534 | fi | |
eea650d8 VS |
30535 | rm -f conftest.err conftest.$ac_objext \ |
30536 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
30537 | LIBS=$ac_check_lib_save_LIBS |
30538 | fi | |
30539 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5 | |
30540 | echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6 | |
30541 | if test $ac_cv_lib_nsl_inet_addr = yes; then | |
4f14bcd8 | 30542 | INET_LINK="nsl" |
10f2d63a | 30543 | else |
0e012a93 VZ |
30544 | |
30545 | echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5 | |
e6cc62c6 VS |
30546 | echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6 |
30547 | if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then | |
30548 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 30549 | else |
e6cc62c6 | 30550 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 30551 | LIBS="-lresolv $LIBS" |
e6cc62c6 | 30552 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
30553 | /* confdefs.h. */ |
30554 | _ACEOF | |
30555 | cat confdefs.h >>conftest.$ac_ext | |
30556 | cat >>conftest.$ac_ext <<_ACEOF | |
30557 | /* end confdefs.h. */ | |
30558 | ||
5c6fa7d2 | 30559 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30560 | #ifdef __cplusplus |
30561 | extern "C" | |
30562 | #endif | |
5c6fa7d2 | 30563 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30564 | builtin and then its argument prototype would still apply. */ |
30565 | char inet_addr (); | |
30566 | int | |
30567 | main () | |
30568 | { | |
30569 | inet_addr (); | |
30570 | ; | |
30571 | return 0; | |
30572 | } | |
30573 | _ACEOF | |
30574 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30575 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 30576 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 30577 | ac_status=$? |
eea650d8 VS |
30578 | grep -v '^ *+' conftest.er1 >conftest.err |
30579 | rm -f conftest.er1 | |
30580 | cat conftest.err >&5 | |
e6cc62c6 VS |
30581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30582 | (exit $ac_status); } && | |
eea650d8 VS |
30583 | { ac_try='test -z "$ac_c_werror_flag" |
30584 | || test ! -s conftest.err' | |
30585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30586 | (eval $ac_try) 2>&5 | |
30587 | ac_status=$? | |
30588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30589 | (exit $ac_status); }; } && | |
30590 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
30591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30592 | (eval $ac_try) 2>&5 | |
30593 | ac_status=$? | |
30594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30595 | (exit $ac_status); }; }; then | |
30596 | ac_cv_lib_resolv_inet_addr=yes | |
30597 | else | |
30598 | echo "$as_me: failed program was:" >&5 | |
30599 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30600 | ||
30601 | ac_cv_lib_resolv_inet_addr=no | |
30602 | fi | |
eea650d8 VS |
30603 | rm -f conftest.err conftest.$ac_objext \ |
30604 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
30605 | LIBS=$ac_check_lib_save_LIBS |
30606 | fi | |
30607 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5 | |
30608 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6 | |
30609 | if test $ac_cv_lib_resolv_inet_addr = yes; then | |
4f14bcd8 | 30610 | INET_LINK="resolv" |
698dcdb6 | 30611 | else |
0e012a93 VZ |
30612 | |
30613 | echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5 | |
e6cc62c6 VS |
30614 | echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6 |
30615 | if test "${ac_cv_lib_socket_inet_addr+set}" = set; then | |
30616 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3c011993 | 30617 | else |
e6cc62c6 | 30618 | ac_check_lib_save_LIBS=$LIBS |
3c011993 | 30619 | LIBS="-lsocket $LIBS" |
e6cc62c6 | 30620 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
30621 | /* confdefs.h. */ |
30622 | _ACEOF | |
30623 | cat confdefs.h >>conftest.$ac_ext | |
30624 | cat >>conftest.$ac_ext <<_ACEOF | |
30625 | /* end confdefs.h. */ | |
30626 | ||
3c011993 | 30627 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30628 | #ifdef __cplusplus |
30629 | extern "C" | |
30630 | #endif | |
3c011993 | 30631 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30632 | builtin and then its argument prototype would still apply. */ |
30633 | char inet_addr (); | |
30634 | int | |
30635 | main () | |
30636 | { | |
30637 | inet_addr (); | |
30638 | ; | |
30639 | return 0; | |
30640 | } | |
30641 | _ACEOF | |
30642 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30643 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 30644 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 30645 | ac_status=$? |
eea650d8 VS |
30646 | grep -v '^ *+' conftest.er1 >conftest.err |
30647 | rm -f conftest.er1 | |
30648 | cat conftest.err >&5 | |
e6cc62c6 VS |
30649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30650 | (exit $ac_status); } && | |
eea650d8 VS |
30651 | { ac_try='test -z "$ac_c_werror_flag" |
30652 | || test ! -s conftest.err' | |
30653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30654 | (eval $ac_try) 2>&5 | |
30655 | ac_status=$? | |
30656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30657 | (exit $ac_status); }; } && | |
30658 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
30659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30660 | (eval $ac_try) 2>&5 | |
30661 | ac_status=$? | |
30662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30663 | (exit $ac_status); }; }; then | |
30664 | ac_cv_lib_socket_inet_addr=yes | |
30665 | else | |
30666 | echo "$as_me: failed program was:" >&5 | |
30667 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30668 | ||
30669 | ac_cv_lib_socket_inet_addr=no | |
30670 | fi | |
eea650d8 VS |
30671 | rm -f conftest.err conftest.$ac_objext \ |
30672 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
30673 | LIBS=$ac_check_lib_save_LIBS |
30674 | fi | |
30675 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5 | |
30676 | echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6 | |
30677 | if test $ac_cv_lib_socket_inet_addr = yes; then | |
30678 | INET_LINK="socket" | |
4f14bcd8 | 30679 | |
8284b0c5 | 30680 | fi |
e6cc62c6 | 30681 | |
698dcdb6 | 30682 | |
0e012a93 | 30683 | |
7b4a847f | 30684 | fi |
e6cc62c6 VS |
30685 | |
30686 | ||
0e012a93 | 30687 | |
a0b9e27f | 30688 | fi |
579d8138 | 30689 | |
e6cc62c6 VS |
30690 | |
30691 | ||
5c6fa7d2 | 30692 | fi |
e6cc62c6 VS |
30693 | done |
30694 | ||
30695 | ||
30696 | ||
30697 | for ac_func in inet_aton | |
30698 | do | |
30699 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30700 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30701 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30702 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30703 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30704 | else | |
30705 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
30706 | /* confdefs.h. */ |
30707 | _ACEOF | |
30708 | cat confdefs.h >>conftest.$ac_ext | |
30709 | cat >>conftest.$ac_ext <<_ACEOF | |
30710 | /* end confdefs.h. */ | |
eea650d8 VS |
30711 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30712 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30713 | #define $ac_func innocuous_$ac_func | |
30714 | ||
e6cc62c6 VS |
30715 | /* System header to define __stub macros and hopefully few prototypes, |
30716 | which can conflict with char $ac_func (); below. | |
30717 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30718 | <limits.h> exists even on freestanding compilers. */ | |
eea650d8 | 30719 | |
e6cc62c6 VS |
30720 | #ifdef __STDC__ |
30721 | # include <limits.h> | |
30722 | #else | |
30723 | # include <assert.h> | |
30724 | #endif | |
eea650d8 VS |
30725 | |
30726 | #undef $ac_func | |
30727 | ||
e6cc62c6 VS |
30728 | /* Override any gcc2 internal prototype to avoid an error. */ |
30729 | #ifdef __cplusplus | |
30730 | extern "C" | |
30731 | { | |
30732 | #endif | |
30733 | /* We use char because int might match the return type of a gcc2 | |
30734 | builtin and then its argument prototype would still apply. */ | |
30735 | char $ac_func (); | |
30736 | /* The GNU C library defines this for functions which it implements | |
30737 | to always fail with ENOSYS. Some functions are actually named | |
30738 | something starting with __ and the normal name is an alias. */ | |
30739 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30740 | choke me | |
30741 | #else | |
30742 | char (*f) () = $ac_func; | |
30743 | #endif | |
30744 | #ifdef __cplusplus | |
30745 | } | |
30746 | #endif | |
30747 | ||
30748 | int | |
30749 | main () | |
30750 | { | |
30751 | return f != $ac_func; | |
30752 | ; | |
30753 | return 0; | |
30754 | } | |
30755 | _ACEOF | |
30756 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30757 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 30758 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 30759 | ac_status=$? |
eea650d8 VS |
30760 | grep -v '^ *+' conftest.er1 >conftest.err |
30761 | rm -f conftest.er1 | |
30762 | cat conftest.err >&5 | |
e6cc62c6 VS |
30763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30764 | (exit $ac_status); } && | |
eea650d8 VS |
30765 | { ac_try='test -z "$ac_c_werror_flag" |
30766 | || test ! -s conftest.err' | |
30767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30768 | (eval $ac_try) 2>&5 | |
30769 | ac_status=$? | |
30770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30771 | (exit $ac_status); }; } && | |
30772 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
30773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30774 | (eval $ac_try) 2>&5 | |
30775 | ac_status=$? | |
30776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30777 | (exit $ac_status); }; }; then | |
30778 | eval "$as_ac_var=yes" | |
30779 | else | |
30780 | echo "$as_me: failed program was:" >&5 | |
30781 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30782 | ||
30783 | eval "$as_ac_var=no" | |
30784 | fi | |
eea650d8 VS |
30785 | rm -f conftest.err conftest.$ac_objext \ |
30786 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
30787 | fi |
30788 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30789 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30790 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30791 | cat >>confdefs.h <<_ACEOF | |
30792 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30793 | _ACEOF | |
30794 | cat >>confdefs.h <<\_ACEOF | |
30795 | #define HAVE_INET_ATON 1 | |
30796 | _ACEOF | |
30797 | ||
30798 | else | |
30799 | ||
30800 | as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh` | |
30801 | echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5 | |
30802 | echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6 | |
30803 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then | |
30804 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30805 | else | |
30806 | ac_check_lib_save_LIBS=$LIBS | |
30807 | LIBS="-l$INET_LINK $LIBS" | |
30808 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
30809 | /* confdefs.h. */ |
30810 | _ACEOF | |
30811 | cat confdefs.h >>conftest.$ac_ext | |
30812 | cat >>conftest.$ac_ext <<_ACEOF | |
30813 | /* end confdefs.h. */ | |
30814 | ||
30815 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30816 | #ifdef __cplusplus | |
30817 | extern "C" | |
30818 | #endif | |
30819 | /* We use char because int might match the return type of a gcc2 | |
30820 | builtin and then its argument prototype would still apply. */ | |
30821 | char inet_aton (); | |
30822 | int | |
30823 | main () | |
30824 | { | |
30825 | inet_aton (); | |
30826 | ; | |
30827 | return 0; | |
30828 | } | |
30829 | _ACEOF | |
30830 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30831 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 30832 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 30833 | ac_status=$? |
eea650d8 VS |
30834 | grep -v '^ *+' conftest.er1 >conftest.err |
30835 | rm -f conftest.er1 | |
30836 | cat conftest.err >&5 | |
e6cc62c6 VS |
30837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30838 | (exit $ac_status); } && | |
eea650d8 VS |
30839 | { ac_try='test -z "$ac_c_werror_flag" |
30840 | || test ! -s conftest.err' | |
30841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30842 | (eval $ac_try) 2>&5 | |
30843 | ac_status=$? | |
30844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30845 | (exit $ac_status); }; } && | |
30846 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
30847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30848 | (eval $ac_try) 2>&5 | |
30849 | ac_status=$? | |
30850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30851 | (exit $ac_status); }; }; then | |
30852 | eval "$as_ac_Lib=yes" | |
30853 | else | |
30854 | echo "$as_me: failed program was:" >&5 | |
30855 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30856 | ||
30857 | eval "$as_ac_Lib=no" | |
30858 | fi | |
eea650d8 VS |
30859 | rm -f conftest.err conftest.$ac_objext \ |
30860 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
30861 | LIBS=$ac_check_lib_save_LIBS |
30862 | fi | |
30863 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 | |
30864 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 | |
30865 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then | |
30866 | cat >>confdefs.h <<\_ACEOF | |
30867 | #define HAVE_INET_ATON 1 | |
30868 | _ACEOF | |
52127426 | 30869 | |
a0b9e27f | 30870 | fi |
247f5006 | 30871 | |
8284b0c5 | 30872 | |
698dcdb6 | 30873 | fi |
4f14bcd8 GD |
30874 | done |
30875 | ||
8284b0c5 | 30876 | |
e6cc62c6 VS |
30877 | if test "x$INET_LINK" != "x"; then |
30878 | cat >>confdefs.h <<\_ACEOF | |
30879 | #define HAVE_INET_ADDR 1 | |
30880 | _ACEOF | |
30881 | ||
30882 | INET_LINK=" -l$INET_LINK" | |
30883 | fi | |
30884 | ||
30885 | fi | |
a0b9e27f | 30886 | |
a0b9e27f | 30887 | |
4f14bcd8 | 30888 | |
edd891e2 VS |
30889 | EXTRALIBS_ESD= |
30890 | echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5 | |
30891 | echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6 | |
30892 | if test "${ac_cv_lib_esd_esd_close+set}" = set; then | |
30893 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30894 | else | |
30895 | ac_check_lib_save_LIBS=$LIBS | |
30896 | LIBS="-lesd $LIBS" | |
30897 | cat >conftest.$ac_ext <<_ACEOF | |
edd891e2 VS |
30898 | /* confdefs.h. */ |
30899 | _ACEOF | |
30900 | cat confdefs.h >>conftest.$ac_ext | |
30901 | cat >>conftest.$ac_ext <<_ACEOF | |
30902 | /* end confdefs.h. */ | |
30903 | ||
30904 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30905 | #ifdef __cplusplus | |
30906 | extern "C" | |
30907 | #endif | |
30908 | /* We use char because int might match the return type of a gcc2 | |
30909 | builtin and then its argument prototype would still apply. */ | |
30910 | char esd_close (); | |
30911 | int | |
30912 | main () | |
30913 | { | |
30914 | esd_close (); | |
30915 | ; | |
30916 | return 0; | |
30917 | } | |
30918 | _ACEOF | |
30919 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30920 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 30921 | (eval $ac_link) 2>conftest.er1 |
edd891e2 | 30922 | ac_status=$? |
eea650d8 VS |
30923 | grep -v '^ *+' conftest.er1 >conftest.err |
30924 | rm -f conftest.er1 | |
30925 | cat conftest.err >&5 | |
edd891e2 VS |
30926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30927 | (exit $ac_status); } && | |
eea650d8 VS |
30928 | { ac_try='test -z "$ac_c_werror_flag" |
30929 | || test ! -s conftest.err' | |
30930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30931 | (eval $ac_try) 2>&5 | |
30932 | ac_status=$? | |
30933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30934 | (exit $ac_status); }; } && | |
30935 | { ac_try='test -s conftest$ac_exeext' | |
edd891e2 VS |
30936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30937 | (eval $ac_try) 2>&5 | |
30938 | ac_status=$? | |
30939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30940 | (exit $ac_status); }; }; then | |
30941 | ac_cv_lib_esd_esd_close=yes | |
30942 | else | |
30943 | echo "$as_me: failed program was:" >&5 | |
30944 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30945 | ||
30946 | ac_cv_lib_esd_esd_close=no | |
30947 | fi | |
eea650d8 VS |
30948 | rm -f conftest.err conftest.$ac_objext \ |
30949 | conftest$ac_exeext conftest.$ac_ext | |
edd891e2 VS |
30950 | LIBS=$ac_check_lib_save_LIBS |
30951 | fi | |
30952 | echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5 | |
30953 | echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6 | |
30954 | if test $ac_cv_lib_esd_esd_close = yes; then | |
30955 | ||
30956 | ||
30957 | for ac_header in esd.h | |
30958 | do | |
30959 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
30960 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
30961 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
30962 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
30963 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
e6cc62c6 VS |
30964 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
30965 | fi | |
edd891e2 VS |
30966 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
30967 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
e6cc62c6 VS |
30968 | else |
30969 | # Is the header compilable? | |
edd891e2 VS |
30970 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
30971 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
e6cc62c6 | 30972 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
30973 | /* confdefs.h. */ |
30974 | _ACEOF | |
30975 | cat confdefs.h >>conftest.$ac_ext | |
30976 | cat >>conftest.$ac_ext <<_ACEOF | |
30977 | /* end confdefs.h. */ | |
30978 | $ac_includes_default | |
edd891e2 | 30979 | #include <$ac_header> |
e6cc62c6 VS |
30980 | _ACEOF |
30981 | rm -f conftest.$ac_objext | |
30982 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 30983 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 30984 | ac_status=$? |
eea650d8 VS |
30985 | grep -v '^ *+' conftest.er1 >conftest.err |
30986 | rm -f conftest.er1 | |
30987 | cat conftest.err >&5 | |
e6cc62c6 VS |
30988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30989 | (exit $ac_status); } && | |
eea650d8 VS |
30990 | { ac_try='test -z "$ac_c_werror_flag" |
30991 | || test ! -s conftest.err' | |
30992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30993 | (eval $ac_try) 2>&5 | |
30994 | ac_status=$? | |
30995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30996 | (exit $ac_status); }; } && | |
30997 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
30998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30999 | (eval $ac_try) 2>&5 | |
31000 | ac_status=$? | |
31001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31002 | (exit $ac_status); }; }; then | |
31003 | ac_header_compiler=yes | |
31004 | else | |
31005 | echo "$as_me: failed program was:" >&5 | |
31006 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31007 | ||
31008 | ac_header_compiler=no | |
31009 | fi | |
eea650d8 | 31010 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
31011 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
31012 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
31013 | ||
31014 | # Is the header present? | |
edd891e2 VS |
31015 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
31016 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
e6cc62c6 | 31017 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
31018 | /* confdefs.h. */ |
31019 | _ACEOF | |
31020 | cat confdefs.h >>conftest.$ac_ext | |
31021 | cat >>conftest.$ac_ext <<_ACEOF | |
31022 | /* end confdefs.h. */ | |
edd891e2 | 31023 | #include <$ac_header> |
e6cc62c6 VS |
31024 | _ACEOF |
31025 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
31026 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
31027 | ac_status=$? | |
31028 | grep -v '^ *+' conftest.er1 >conftest.err | |
31029 | rm -f conftest.er1 | |
31030 | cat conftest.err >&5 | |
31031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31032 | (exit $ac_status); } >/dev/null; then | |
31033 | if test -s conftest.err; then | |
31034 | ac_cpp_err=$ac_c_preproc_warn_flag | |
eea650d8 | 31035 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
31036 | else |
31037 | ac_cpp_err= | |
31038 | fi | |
a0b9e27f | 31039 | else |
e6cc62c6 VS |
31040 | ac_cpp_err=yes |
31041 | fi | |
31042 | if test -z "$ac_cpp_err"; then | |
31043 | ac_header_preproc=yes | |
31044 | else | |
31045 | echo "$as_me: failed program was:" >&5 | |
31046 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31047 | ||
31048 | ac_header_preproc=no | |
31049 | fi | |
31050 | rm -f conftest.err conftest.$ac_ext | |
31051 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
31052 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
31053 | ||
31054 | # So? What about this header? | |
eea650d8 VS |
31055 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
31056 | yes:no: ) | |
edd891e2 VS |
31057 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
31058 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
eea650d8 VS |
31059 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
31060 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
31061 | ac_header_preproc=yes | |
e6cc62c6 | 31062 | ;; |
eea650d8 | 31063 | no:yes:* ) |
edd891e2 VS |
31064 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
31065 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
eea650d8 VS |
31066 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
31067 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
31068 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
31069 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
31070 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
31071 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
edd891e2 VS |
31072 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
31073 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
eea650d8 VS |
31074 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
31075 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
31076 | ( |
31077 | cat <<\_ASBOX | |
eea650d8 VS |
31078 | ## ----------------------------------------- ## |
31079 | ## Report this to wx-dev@lists.wxwindows.org ## | |
31080 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
31081 | _ASBOX |
31082 | ) | | |
31083 | sed "s/^/$as_me: WARNING: /" >&2 | |
31084 | ;; | |
31085 | esac | |
edd891e2 VS |
31086 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
31087 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31088 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
e6cc62c6 VS |
31089 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
31090 | else | |
eea650d8 | 31091 | eval "$as_ac_Header=\$ac_header_preproc" |
a0b9e27f | 31092 | fi |
edd891e2 VS |
31093 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
31094 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
a0b9e27f | 31095 | |
e6cc62c6 | 31096 | fi |
edd891e2 VS |
31097 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
31098 | cat >>confdefs.h <<_ACEOF | |
31099 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
e6cc62c6 | 31100 | _ACEOF |
e6cc62c6 | 31101 | |
edd891e2 | 31102 | EXTRALIBS_ESD="-lesd" |
4f14bcd8 | 31103 | |
a0b9e27f | 31104 | fi |
247f5006 | 31105 | |
edd891e2 | 31106 | done |
8284b0c5 | 31107 | |
4f14bcd8 | 31108 | |
6232543b | 31109 | fi |
10f2d63a | 31110 | |
703e0a69 | 31111 | |
8284b0c5 | 31112 | |
d19d1899 MB |
31113 | echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5 |
31114 | echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6 | |
31115 | cat >conftest.$ac_ext <<_ACEOF | |
d19d1899 MB |
31116 | /* confdefs.h. */ |
31117 | _ACEOF | |
31118 | cat confdefs.h >>conftest.$ac_ext | |
31119 | cat >>conftest.$ac_ext <<_ACEOF | |
31120 | /* end confdefs.h. */ | |
31121 | #ifdef __linux__ | |
31122 | #include <linux/cdrom.h> | |
31123 | #else | |
31124 | /* For Solaris */ | |
31125 | #include <sys/cdio.h> | |
31126 | #endif | |
31127 | ||
31128 | int | |
31129 | main () | |
31130 | { | |
31131 | struct cdrom_tocentry entry, old_entry; | |
31132 | ; | |
31133 | return 0; | |
31134 | } | |
31135 | _ACEOF | |
31136 | rm -f conftest.$ac_objext | |
31137 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 31138 | (eval $ac_compile) 2>conftest.er1 |
d19d1899 | 31139 | ac_status=$? |
eea650d8 VS |
31140 | grep -v '^ *+' conftest.er1 >conftest.err |
31141 | rm -f conftest.er1 | |
31142 | cat conftest.err >&5 | |
d19d1899 MB |
31143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31144 | (exit $ac_status); } && | |
eea650d8 VS |
31145 | { ac_try='test -z "$ac_c_werror_flag" |
31146 | || test ! -s conftest.err' | |
31147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31148 | (eval $ac_try) 2>&5 | |
31149 | ac_status=$? | |
31150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31151 | (exit $ac_status); }; } && | |
31152 | { ac_try='test -s conftest.$ac_objext' | |
d19d1899 MB |
31153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31154 | (eval $ac_try) 2>&5 | |
31155 | ac_status=$? | |
31156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31157 | (exit $ac_status); }; }; then | |
31158 | echo "$as_me:$LINENO: result: yes" >&5 | |
31159 | echo "${ECHO_T}yes" >&6 | |
31160 | cat >>confdefs.h <<\_ACEOF | |
31161 | #define HAVE_KNOWN_CDROM_INTERFACE 1 | |
31162 | _ACEOF | |
31163 | ||
31164 | else | |
31165 | echo "$as_me: failed program was:" >&5 | |
31166 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31167 | ||
31168 | echo "$as_me:$LINENO: result: no" >&5 | |
31169 | echo "${ECHO_T}no" >&6 | |
31170 | fi | |
eea650d8 | 31171 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
31172 | |
31173 | ||
31174 | cat >confcache <<\_ACEOF | |
4f14bcd8 GD |
31175 | # This file is a shell script that caches the results of configure |
31176 | # tests run on this system so they can be shared between configure | |
e6cc62c6 VS |
31177 | # scripts and configure runs, see configure's option --config-cache. |
31178 | # It is not useful on other systems. If it contains results you don't | |
31179 | # want to keep, you may remove or edit it. | |
4f14bcd8 | 31180 | # |
e6cc62c6 VS |
31181 | # config.status only pays attention to the cache file if you give it |
31182 | # the --recheck option to rerun configure. | |
4f14bcd8 | 31183 | # |
e6cc62c6 VS |
31184 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
31185 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
31186 | # following values. | |
31187 | ||
31188 | _ACEOF | |
31189 | ||
4f14bcd8 GD |
31190 | # The following way of writing the cache mishandles newlines in values, |
31191 | # but we know of no workaround that is simple, portable, and efficient. | |
31192 | # So, don't put newlines in cache variables' values. | |
31193 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
31194 | # and sets the high bit in the cache file unless we assign to the vars. | |
e6cc62c6 VS |
31195 | { |
31196 | (set) 2>&1 | | |
31197 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
31198 | *ac_space=\ *) | |
31199 | # `set' does not quote correctly, so add quotes (double-quote | |
31200 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
31201 | sed -n \ | |
eea650d8 VS |
31202 | "s/'/'\\\\''/g; |
31203 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
e6cc62c6 VS |
31204 | ;; |
31205 | *) | |
31206 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
31207 | sed -n \ | |
eea650d8 | 31208 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
e6cc62c6 VS |
31209 | ;; |
31210 | esac; | |
31211 | } | | |
31212 | sed ' | |
31213 | t clear | |
31214 | : clear | |
31215 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
31216 | t end | |
31217 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
31218 | : end' >>confcache | |
31219 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
4f14bcd8 | 31220 | if test -w $cache_file; then |
e6cc62c6 VS |
31221 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
31222 | cat confcache >$cache_file | |
f6bcfd97 | 31223 | else |
4f14bcd8 | 31224 | echo "not updating unwritable cache $cache_file" |
f6bcfd97 | 31225 | fi |
4f14bcd8 GD |
31226 | fi |
31227 | rm -f confcache | |
f6bcfd97 | 31228 | |
8284b0c5 | 31229 | |
009fead0 | 31230 | CPP_MT_FLAG= |
73d617c9 | 31231 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then |
4f14bcd8 | 31232 | |
e6cc62c6 | 31233 | |
7274f1c7 | 31234 | THREADS_LINK= |
009fead0 | 31235 | THREADS_CFLAGS= |
7274f1c7 RL |
31236 | |
31237 | if test "$wxUSE_THREADS" = "yes" ; then | |
89e6bf6d | 31238 | if test "$USE_BEOS" = 1; then |
e6cc62c6 VS |
31239 | { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5 |
31240 | echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;} | |
7274f1c7 RL |
31241 | wxUSE_THREADS="no" |
31242 | fi | |
4f14bcd8 | 31243 | fi |
4f14bcd8 | 31244 | |
7274f1c7 | 31245 | if test "$wxUSE_THREADS" = "yes" ; then |
e6cc62c6 VS |
31246 | |
31247 | ||
009fead0 VZ |
31248 | THREAD_OPTS="-pthread" |
31249 | case "${host}" in | |
31250 | *-*-solaris2* | *-*-sunos4* ) | |
31251 | if test "x$GCC" = "xyes"; then | |
126be6b4 | 31252 | THREAD_OPTS="-pthreads $THREAD_OPTS" |
009fead0 VZ |
31253 | else |
31254 | THREAD_OPTS="-mt $THREAD_OPTS" | |
31255 | fi | |
31256 | ;; | |
31257 | *-*-freebsd*) | |
31258 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
31259 | ;; | |
17234b26 MB |
31260 | *-*-darwin* | *-*-cygwin* ) |
31261 | THREAD_OPTS="" | |
4101db81 | 31262 | ;; |
8f4a9a10 | 31263 | *-*-aix*) |
009fead0 VZ |
31264 | THREAD_OPTS="pthreads" |
31265 | ;; | |
4f5a7f74 VZ |
31266 | *-hp-hpux* ) |
31267 | if test "x$GCC" != "xyes"; then | |
31268 | THREAD_OPTS="" | |
31269 | fi | |
89e3b3e4 VZ |
31270 | ;; |
31271 | ||
31272 | *-*-irix* ) | |
31273 | if test "x$GCC" = "xyes"; then | |
31274 | THREAD_OPTS="" | |
31275 | fi | |
31276 | ;; | |
31277 | ||
31278 | *-*-*UnixWare*) | |
31279 | if test "x$GCC" != "xyes"; then | |
31280 | THREAD_OPTS="-Ethread" | |
31281 | fi | |
31282 | ;; | |
009fead0 | 31283 | esac |
4f14bcd8 | 31284 | |
02a1dfba | 31285 | THREAD_OPTS="$THREAD_OPTS pthread none" |
595e0e44 | 31286 | |
009fead0 VZ |
31287 | THREADS_OK=no |
31288 | for flag in $THREAD_OPTS; do | |
31289 | case $flag in | |
31290 | none) | |
e6cc62c6 VS |
31291 | echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 |
31292 | echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6 | |
009fead0 | 31293 | ;; |
698dcdb6 | 31294 | |
009fead0 | 31295 | -*) |
e6cc62c6 VS |
31296 | echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 |
31297 | echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6 | |
009fead0 VZ |
31298 | THREADS_CFLAGS="$flag" |
31299 | ;; | |
698dcdb6 | 31300 | |
009fead0 | 31301 | *) |
e6cc62c6 VS |
31302 | echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 |
31303 | echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6 | |
009fead0 VZ |
31304 | THREADS_LINK="-l$flag" |
31305 | ;; | |
31306 | esac | |
10f2d63a | 31307 | |
009fead0 VZ |
31308 | save_LIBS="$LIBS" |
31309 | save_CFLAGS="$CFLAGS" | |
31310 | LIBS="$THREADS_LINK $LIBS" | |
04727afd | 31311 | CFLAGS="$THREADS_CFLAGS $CFLAGS" |
10f2d63a | 31312 | |
e6cc62c6 | 31313 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
31314 | /* confdefs.h. */ |
31315 | _ACEOF | |
31316 | cat confdefs.h >>conftest.$ac_ext | |
31317 | cat >>conftest.$ac_ext <<_ACEOF | |
31318 | /* end confdefs.h. */ | |
009fead0 | 31319 | #include <pthread.h> |
e6cc62c6 VS |
31320 | int |
31321 | main () | |
31322 | { | |
009fead0 | 31323 | pthread_create(0,0,0,0); |
e6cc62c6 VS |
31324 | ; |
31325 | return 0; | |
31326 | } | |
31327 | _ACEOF | |
31328 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31329 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 31330 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 31331 | ac_status=$? |
eea650d8 VS |
31332 | grep -v '^ *+' conftest.er1 >conftest.err |
31333 | rm -f conftest.er1 | |
31334 | cat conftest.err >&5 | |
e6cc62c6 VS |
31335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31336 | (exit $ac_status); } && | |
eea650d8 VS |
31337 | { ac_try='test -z "$ac_c_werror_flag" |
31338 | || test ! -s conftest.err' | |
31339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31340 | (eval $ac_try) 2>&5 | |
31341 | ac_status=$? | |
31342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31343 | (exit $ac_status); }; } && | |
31344 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
31345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31346 | (eval $ac_try) 2>&5 | |
31347 | ac_status=$? | |
31348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31349 | (exit $ac_status); }; }; then | |
009fead0 | 31350 | THREADS_OK=yes |
10f2d63a | 31351 | else |
e6cc62c6 VS |
31352 | echo "$as_me: failed program was:" >&5 |
31353 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31354 | ||
6232543b | 31355 | fi |
eea650d8 VS |
31356 | rm -f conftest.err conftest.$ac_objext \ |
31357 | conftest$ac_exeext conftest.$ac_ext | |
698dcdb6 | 31358 | |
009fead0 VZ |
31359 | LIBS="$save_LIBS" |
31360 | CFLAGS="$save_CFLAGS" | |
d9b9876f | 31361 | |
e6cc62c6 VS |
31362 | echo "$as_me:$LINENO: result: $THREADS_OK" >&5 |
31363 | echo "${ECHO_T}$THREADS_OK" >&6 | |
009fead0 VZ |
31364 | if test "x$THREADS_OK" = "xyes"; then |
31365 | break; | |
31366 | fi | |
d9b9876f | 31367 | |
009fead0 VZ |
31368 | THREADS_LINK="" |
31369 | THREADS_CFLAGS="" | |
31370 | done | |
4f14bcd8 | 31371 | |
009fead0 VZ |
31372 | if test "x$THREADS_OK" != "xyes"; then |
31373 | wxUSE_THREADS=no | |
e6cc62c6 VS |
31374 | { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5 |
31375 | echo "$as_me: WARNING: No thread support on this system... disabled" >&2;} | |
009fead0 | 31376 | else |
db82f09e VZ |
31377 | LDFLAGS="$THREADS_CFLAGS $LDFLAGS" |
31378 | LIBS="$THREADS_LINK $LIBS" | |
fe5a9cab | 31379 | |
e6cc62c6 VS |
31380 | echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 |
31381 | echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6 | |
009fead0 VZ |
31382 | flag=no |
31383 | case "${host}" in | |
2b5f62a0 VZ |
31384 | *-aix*) |
31385 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
31386 | flag="-D_THREAD_SAFE" | |
31387 | ;; | |
31388 | *-freebsd*) | |
009fead0 VZ |
31389 | flag="-D_THREAD_SAFE" |
31390 | ;; | |
06313569 GD |
31391 | *-hp-hpux* ) |
31392 | flag="-D_REENTRANT" | |
4f5a7f74 VZ |
31393 | if test "x$GCC" != "xyes"; then |
31394 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
31395 | fi | |
06313569 | 31396 | ;; |
009fead0 VZ |
31397 | *solaris* | alpha*-osf*) |
31398 | flag="-D_REENTRANT" | |
31399 | ;; | |
31400 | esac | |
e6cc62c6 VS |
31401 | echo "$as_me:$LINENO: result: ${flag}" >&5 |
31402 | echo "${ECHO_T}${flag}" >&6 | |
009fead0 | 31403 | if test "x$flag" != xno; then |
04727afd | 31404 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" |
009fead0 VZ |
31405 | fi |
31406 | ||
009fead0 | 31407 | if test "x$THREADS_CFLAGS" != "x"; then |
04727afd | 31408 | CFLAGS="$CFLAGS $THREADS_CFLAGS" |
009fead0 VZ |
31409 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" |
31410 | fi | |
31411 | fi | |
4f14bcd8 | 31412 | fi |
4f14bcd8 | 31413 | |
7274f1c7 | 31414 | if test "$wxUSE_THREADS" = "yes" ; then |
e6cc62c6 VS |
31415 | |
31416 | for ac_func in thr_setconcurrency | |
4f14bcd8 | 31417 | do |
e6cc62c6 VS |
31418 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
31419 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31420 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31421 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31422 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31423 | else | |
31424 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
31425 | /* confdefs.h. */ |
31426 | _ACEOF | |
31427 | cat confdefs.h >>conftest.$ac_ext | |
31428 | cat >>conftest.$ac_ext <<_ACEOF | |
31429 | /* end confdefs.h. */ | |
eea650d8 VS |
31430 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31431 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31432 | #define $ac_func innocuous_$ac_func | |
31433 | ||
4f14bcd8 | 31434 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
31435 | which can conflict with char $ac_func (); below. |
31436 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31437 | <limits.h> exists even on freestanding compilers. */ | |
eea650d8 | 31438 | |
e6cc62c6 VS |
31439 | #ifdef __STDC__ |
31440 | # include <limits.h> | |
31441 | #else | |
31442 | # include <assert.h> | |
31443 | #endif | |
eea650d8 VS |
31444 | |
31445 | #undef $ac_func | |
31446 | ||
4f14bcd8 | 31447 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31448 | #ifdef __cplusplus |
31449 | extern "C" | |
31450 | { | |
31451 | #endif | |
4f14bcd8 | 31452 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31453 | builtin and then its argument prototype would still apply. */ |
31454 | char $ac_func (); | |
4f14bcd8 GD |
31455 | /* The GNU C library defines this for functions which it implements |
31456 | to always fail with ENOSYS. Some functions are actually named | |
31457 | something starting with __ and the normal name is an alias. */ | |
31458 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31459 | choke me | |
31460 | #else | |
e6cc62c6 VS |
31461 | char (*f) () = $ac_func; |
31462 | #endif | |
31463 | #ifdef __cplusplus | |
31464 | } | |
4f14bcd8 GD |
31465 | #endif |
31466 | ||
e6cc62c6 VS |
31467 | int |
31468 | main () | |
31469 | { | |
31470 | return f != $ac_func; | |
31471 | ; | |
31472 | return 0; | |
31473 | } | |
31474 | _ACEOF | |
31475 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31476 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 31477 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 31478 | ac_status=$? |
eea650d8 VS |
31479 | grep -v '^ *+' conftest.er1 >conftest.err |
31480 | rm -f conftest.er1 | |
31481 | cat conftest.err >&5 | |
e6cc62c6 VS |
31482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31483 | (exit $ac_status); } && | |
eea650d8 VS |
31484 | { ac_try='test -z "$ac_c_werror_flag" |
31485 | || test ! -s conftest.err' | |
31486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31487 | (eval $ac_try) 2>&5 | |
31488 | ac_status=$? | |
31489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31490 | (exit $ac_status); }; } && | |
31491 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
31492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31493 | (eval $ac_try) 2>&5 | |
31494 | ac_status=$? | |
31495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31496 | (exit $ac_status); }; }; then | |
31497 | eval "$as_ac_var=yes" | |
31498 | else | |
31499 | echo "$as_me: failed program was:" >&5 | |
31500 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31501 | ||
31502 | eval "$as_ac_var=no" | |
31503 | fi | |
eea650d8 VS |
31504 | rm -f conftest.err conftest.$ac_objext \ |
31505 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
31506 | fi |
31507 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31508 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31509 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31510 | cat >>confdefs.h <<_ACEOF | |
31511 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31512 | _ACEOF | |
698dcdb6 | 31513 | |
10f2d63a | 31514 | fi |
4f14bcd8 | 31515 | done |
10f2d63a | 31516 | |
8284b0c5 | 31517 | |
e6cc62c6 VS |
31518 | |
31519 | for ac_header in sched.h | |
4f14bcd8 | 31520 | do |
e6cc62c6 VS |
31521 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
31522 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31523 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31524 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31525 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31526 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31527 | fi | |
31528 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31529 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31530 | else | |
31531 | # Is the header compilable? | |
31532 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
31533 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
31534 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
31535 | /* confdefs.h. */ |
31536 | _ACEOF | |
31537 | cat confdefs.h >>conftest.$ac_ext | |
31538 | cat >>conftest.$ac_ext <<_ACEOF | |
31539 | /* end confdefs.h. */ | |
31540 | $ac_includes_default | |
31541 | #include <$ac_header> | |
31542 | _ACEOF | |
31543 | rm -f conftest.$ac_objext | |
31544 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 31545 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 31546 | ac_status=$? |
eea650d8 VS |
31547 | grep -v '^ *+' conftest.er1 >conftest.err |
31548 | rm -f conftest.er1 | |
31549 | cat conftest.err >&5 | |
e6cc62c6 VS |
31550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31551 | (exit $ac_status); } && | |
eea650d8 VS |
31552 | { ac_try='test -z "$ac_c_werror_flag" |
31553 | || test ! -s conftest.err' | |
31554 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31555 | (eval $ac_try) 2>&5 | |
31556 | ac_status=$? | |
31557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31558 | (exit $ac_status); }; } && | |
31559 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
31560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31561 | (eval $ac_try) 2>&5 | |
31562 | ac_status=$? | |
31563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31564 | (exit $ac_status); }; }; then | |
31565 | ac_header_compiler=yes | |
31566 | else | |
31567 | echo "$as_me: failed program was:" >&5 | |
31568 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31569 | ||
31570 | ac_header_compiler=no | |
31571 | fi | |
eea650d8 | 31572 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
31573 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
31574 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
31575 | ||
31576 | # Is the header present? | |
31577 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
31578 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
31579 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
31580 | /* confdefs.h. */ |
31581 | _ACEOF | |
31582 | cat confdefs.h >>conftest.$ac_ext | |
31583 | cat >>conftest.$ac_ext <<_ACEOF | |
31584 | /* end confdefs.h. */ | |
31585 | #include <$ac_header> | |
31586 | _ACEOF | |
31587 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
31588 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
31589 | ac_status=$? | |
31590 | grep -v '^ *+' conftest.er1 >conftest.err | |
31591 | rm -f conftest.er1 | |
31592 | cat conftest.err >&5 | |
31593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31594 | (exit $ac_status); } >/dev/null; then | |
31595 | if test -s conftest.err; then | |
31596 | ac_cpp_err=$ac_c_preproc_warn_flag | |
eea650d8 | 31597 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
31598 | else |
31599 | ac_cpp_err= | |
31600 | fi | |
31601 | else | |
31602 | ac_cpp_err=yes | |
31603 | fi | |
31604 | if test -z "$ac_cpp_err"; then | |
31605 | ac_header_preproc=yes | |
31606 | else | |
31607 | echo "$as_me: failed program was:" >&5 | |
31608 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31609 | ||
31610 | ac_header_preproc=no | |
31611 | fi | |
31612 | rm -f conftest.err conftest.$ac_ext | |
31613 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
31614 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
31615 | ||
31616 | # So? What about this header? | |
eea650d8 VS |
31617 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
31618 | yes:no: ) | |
e6cc62c6 VS |
31619 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
31620 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
eea650d8 VS |
31621 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
31622 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
31623 | ac_header_preproc=yes | |
e6cc62c6 | 31624 | ;; |
eea650d8 | 31625 | no:yes:* ) |
e6cc62c6 VS |
31626 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
31627 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
eea650d8 VS |
31628 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
31629 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
31630 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
31631 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
31632 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
31633 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
31634 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
31635 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
eea650d8 VS |
31636 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
31637 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
31638 | ( |
31639 | cat <<\_ASBOX | |
eea650d8 VS |
31640 | ## ----------------------------------------- ## |
31641 | ## Report this to wx-dev@lists.wxwindows.org ## | |
31642 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
31643 | _ASBOX |
31644 | ) | | |
31645 | sed "s/^/$as_me: WARNING: /" >&2 | |
31646 | ;; | |
31647 | esac | |
31648 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31649 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31650 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31651 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31652 | else | |
eea650d8 | 31653 | eval "$as_ac_Header=\$ac_header_preproc" |
13111b2a | 31654 | fi |
e6cc62c6 VS |
31655 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
31656 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31657 | ||
10f2d63a | 31658 | fi |
e6cc62c6 VS |
31659 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
31660 | cat >>confdefs.h <<_ACEOF | |
31661 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
31662 | _ACEOF | |
31663 | ||
f6bcfd97 | 31664 | fi |
e6cc62c6 | 31665 | |
4f14bcd8 | 31666 | done |
f6bcfd97 | 31667 | |
009fead0 | 31668 | if test "$ac_cv_header_sched_h" = "yes"; then |
e6cc62c6 VS |
31669 | echo "$as_me:$LINENO: checking for sched_yield" >&5 |
31670 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 | |
31671 | if test "${ac_cv_func_sched_yield+set}" = set; then | |
31672 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31673 | else | |
31674 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
31675 | /* confdefs.h. */ |
31676 | _ACEOF | |
31677 | cat confdefs.h >>conftest.$ac_ext | |
31678 | cat >>conftest.$ac_ext <<_ACEOF | |
31679 | /* end confdefs.h. */ | |
eea650d8 VS |
31680 | /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield. |
31681 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31682 | #define sched_yield innocuous_sched_yield | |
31683 | ||
009fead0 | 31684 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
31685 | which can conflict with char sched_yield (); below. |
31686 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31687 | <limits.h> exists even on freestanding compilers. */ | |
eea650d8 | 31688 | |
e6cc62c6 VS |
31689 | #ifdef __STDC__ |
31690 | # include <limits.h> | |
31691 | #else | |
31692 | # include <assert.h> | |
31693 | #endif | |
eea650d8 VS |
31694 | |
31695 | #undef sched_yield | |
31696 | ||
4f14bcd8 | 31697 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31698 | #ifdef __cplusplus |
31699 | extern "C" | |
31700 | { | |
31701 | #endif | |
4f14bcd8 | 31702 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31703 | builtin and then its argument prototype would still apply. */ |
31704 | char sched_yield (); | |
009fead0 VZ |
31705 | /* The GNU C library defines this for functions which it implements |
31706 | to always fail with ENOSYS. Some functions are actually named | |
31707 | something starting with __ and the normal name is an alias. */ | |
31708 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
31709 | choke me | |
31710 | #else | |
e6cc62c6 VS |
31711 | char (*f) () = sched_yield; |
31712 | #endif | |
31713 | #ifdef __cplusplus | |
31714 | } | |
009fead0 VZ |
31715 | #endif |
31716 | ||
e6cc62c6 VS |
31717 | int |
31718 | main () | |
31719 | { | |
31720 | return f != sched_yield; | |
31721 | ; | |
31722 | return 0; | |
31723 | } | |
31724 | _ACEOF | |
31725 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31726 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 31727 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 31728 | ac_status=$? |
eea650d8 VS |
31729 | grep -v '^ *+' conftest.er1 >conftest.err |
31730 | rm -f conftest.er1 | |
31731 | cat conftest.err >&5 | |
e6cc62c6 VS |
31732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31733 | (exit $ac_status); } && | |
eea650d8 VS |
31734 | { ac_try='test -z "$ac_c_werror_flag" |
31735 | || test ! -s conftest.err' | |
31736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31737 | (eval $ac_try) 2>&5 | |
31738 | ac_status=$? | |
31739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31740 | (exit $ac_status); }; } && | |
31741 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
31742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31743 | (eval $ac_try) 2>&5 | |
31744 | ac_status=$? | |
31745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31746 | (exit $ac_status); }; }; then | |
31747 | ac_cv_func_sched_yield=yes | |
31748 | else | |
31749 | echo "$as_me: failed program was:" >&5 | |
31750 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31751 | ||
31752 | ac_cv_func_sched_yield=no | |
31753 | fi | |
eea650d8 VS |
31754 | rm -f conftest.err conftest.$ac_objext \ |
31755 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
31756 | fi |
31757 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 | |
31758 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 | |
31759 | if test $ac_cv_func_sched_yield = yes; then | |
31760 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 31761 | #define HAVE_SCHED_YIELD 1 |
e6cc62c6 | 31762 | _ACEOF |
10f2d63a | 31763 | |
4f14bcd8 | 31764 | else |
009fead0 | 31765 | |
e6cc62c6 VS |
31766 | echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5 |
31767 | echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6 | |
31768 | if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then | |
31769 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4f14bcd8 | 31770 | else |
e6cc62c6 | 31771 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 31772 | LIBS="-lposix4 $LIBS" |
e6cc62c6 | 31773 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
31774 | /* confdefs.h. */ |
31775 | _ACEOF | |
31776 | cat confdefs.h >>conftest.$ac_ext | |
31777 | cat >>conftest.$ac_ext <<_ACEOF | |
31778 | /* end confdefs.h. */ | |
31779 | ||
4f14bcd8 | 31780 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31781 | #ifdef __cplusplus |
31782 | extern "C" | |
31783 | #endif | |
4f14bcd8 | 31784 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31785 | builtin and then its argument prototype would still apply. */ |
31786 | char sched_yield (); | |
31787 | int | |
31788 | main () | |
31789 | { | |
31790 | sched_yield (); | |
31791 | ; | |
31792 | return 0; | |
31793 | } | |
31794 | _ACEOF | |
31795 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31796 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 31797 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 31798 | ac_status=$? |
eea650d8 VS |
31799 | grep -v '^ *+' conftest.er1 >conftest.err |
31800 | rm -f conftest.er1 | |
31801 | cat conftest.err >&5 | |
e6cc62c6 VS |
31802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31803 | (exit $ac_status); } && | |
eea650d8 VS |
31804 | { ac_try='test -z "$ac_c_werror_flag" |
31805 | || test ! -s conftest.err' | |
31806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31807 | (eval $ac_try) 2>&5 | |
31808 | ac_status=$? | |
31809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31810 | (exit $ac_status); }; } && | |
31811 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
31812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31813 | (eval $ac_try) 2>&5 | |
31814 | ac_status=$? | |
31815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31816 | (exit $ac_status); }; }; then | |
31817 | ac_cv_lib_posix4_sched_yield=yes | |
31818 | else | |
31819 | echo "$as_me: failed program was:" >&5 | |
31820 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31821 | ||
31822 | ac_cv_lib_posix4_sched_yield=no | |
31823 | fi | |
eea650d8 VS |
31824 | rm -f conftest.err conftest.$ac_objext \ |
31825 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
31826 | LIBS=$ac_check_lib_save_LIBS |
31827 | fi | |
31828 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5 | |
31829 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6 | |
31830 | if test $ac_cv_lib_posix4_sched_yield = yes; then | |
31831 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 31832 | #define HAVE_SCHED_YIELD 1 |
e6cc62c6 | 31833 | _ACEOF |
3d63bc3a | 31834 | POSIX4_LINK=" -lposix4" |
4f14bcd8 | 31835 | else |
e6cc62c6 VS |
31836 | { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5 |
31837 | echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;} | |
31838 | ||
54276ccf VZ |
31839 | fi |
31840 | ||
e6cc62c6 VS |
31841 | |
31842 | ||
4f14bcd8 | 31843 | fi |
698dcdb6 | 31844 | |
009fead0 | 31845 | fi |
10f2d63a | 31846 | |
7274f1c7 | 31847 | HAVE_PRIOR_FUNCS=0 |
e6cc62c6 VS |
31848 | echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5 |
31849 | echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6 | |
31850 | if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then | |
31851 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31852 | else | |
31853 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
31854 | /* confdefs.h. */ |
31855 | _ACEOF | |
31856 | cat confdefs.h >>conftest.$ac_ext | |
31857 | cat >>conftest.$ac_ext <<_ACEOF | |
31858 | /* end confdefs.h. */ | |
eea650d8 VS |
31859 | /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy. |
31860 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31861 | #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy | |
31862 | ||
009fead0 | 31863 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
31864 | which can conflict with char pthread_attr_getschedpolicy (); below. |
31865 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31866 | <limits.h> exists even on freestanding compilers. */ | |
eea650d8 | 31867 | |
e6cc62c6 VS |
31868 | #ifdef __STDC__ |
31869 | # include <limits.h> | |
31870 | #else | |
31871 | # include <assert.h> | |
31872 | #endif | |
eea650d8 VS |
31873 | |
31874 | #undef pthread_attr_getschedpolicy | |
31875 | ||
4f14bcd8 | 31876 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31877 | #ifdef __cplusplus |
31878 | extern "C" | |
31879 | { | |
31880 | #endif | |
4f14bcd8 | 31881 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31882 | builtin and then its argument prototype would still apply. */ |
31883 | char pthread_attr_getschedpolicy (); | |
009fead0 VZ |
31884 | /* The GNU C library defines this for functions which it implements |
31885 | to always fail with ENOSYS. Some functions are actually named | |
31886 | something starting with __ and the normal name is an alias. */ | |
31887 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
31888 | choke me | |
31889 | #else | |
e6cc62c6 VS |
31890 | char (*f) () = pthread_attr_getschedpolicy; |
31891 | #endif | |
31892 | #ifdef __cplusplus | |
31893 | } | |
009fead0 VZ |
31894 | #endif |
31895 | ||
e6cc62c6 VS |
31896 | int |
31897 | main () | |
31898 | { | |
31899 | return f != pthread_attr_getschedpolicy; | |
31900 | ; | |
31901 | return 0; | |
31902 | } | |
31903 | _ACEOF | |
31904 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31905 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 31906 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 31907 | ac_status=$? |
eea650d8 VS |
31908 | grep -v '^ *+' conftest.er1 >conftest.err |
31909 | rm -f conftest.er1 | |
31910 | cat conftest.err >&5 | |
e6cc62c6 VS |
31911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31912 | (exit $ac_status); } && | |
eea650d8 VS |
31913 | { ac_try='test -z "$ac_c_werror_flag" |
31914 | || test ! -s conftest.err' | |
31915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31916 | (eval $ac_try) 2>&5 | |
31917 | ac_status=$? | |
31918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31919 | (exit $ac_status); }; } && | |
31920 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
31921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31922 | (eval $ac_try) 2>&5 | |
31923 | ac_status=$? | |
31924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31925 | (exit $ac_status); }; }; then | |
31926 | ac_cv_func_pthread_attr_getschedpolicy=yes | |
31927 | else | |
31928 | echo "$as_me: failed program was:" >&5 | |
31929 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31930 | ||
31931 | ac_cv_func_pthread_attr_getschedpolicy=no | |
31932 | fi | |
eea650d8 VS |
31933 | rm -f conftest.err conftest.$ac_objext \ |
31934 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
31935 | fi |
31936 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5 | |
31937 | echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6 | |
31938 | if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then | |
31939 | echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5 | |
31940 | echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6 | |
31941 | if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then | |
31942 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31943 | else | |
31944 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
31945 | /* confdefs.h. */ |
31946 | _ACEOF | |
31947 | cat confdefs.h >>conftest.$ac_ext | |
31948 | cat >>conftest.$ac_ext <<_ACEOF | |
31949 | /* end confdefs.h. */ | |
eea650d8 VS |
31950 | /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam. |
31951 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31952 | #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam | |
31953 | ||
a0b9e27f | 31954 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
31955 | which can conflict with char pthread_attr_setschedparam (); below. |
31956 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31957 | <limits.h> exists even on freestanding compilers. */ | |
eea650d8 | 31958 | |
e6cc62c6 VS |
31959 | #ifdef __STDC__ |
31960 | # include <limits.h> | |
31961 | #else | |
31962 | # include <assert.h> | |
31963 | #endif | |
eea650d8 VS |
31964 | |
31965 | #undef pthread_attr_setschedparam | |
31966 | ||
422107f9 | 31967 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31968 | #ifdef __cplusplus |
31969 | extern "C" | |
31970 | { | |
31971 | #endif | |
422107f9 | 31972 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31973 | builtin and then its argument prototype would still apply. */ |
31974 | char pthread_attr_setschedparam (); | |
009fead0 VZ |
31975 | /* The GNU C library defines this for functions which it implements |
31976 | to always fail with ENOSYS. Some functions are actually named | |
31977 | something starting with __ and the normal name is an alias. */ | |
31978 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
31979 | choke me | |
31980 | #else | |
e6cc62c6 VS |
31981 | char (*f) () = pthread_attr_setschedparam; |
31982 | #endif | |
31983 | #ifdef __cplusplus | |
31984 | } | |
009fead0 VZ |
31985 | #endif |
31986 | ||
e6cc62c6 VS |
31987 | int |
31988 | main () | |
31989 | { | |
31990 | return f != pthread_attr_setschedparam; | |
31991 | ; | |
31992 | return 0; | |
31993 | } | |
31994 | _ACEOF | |
31995 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31996 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 31997 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 31998 | ac_status=$? |
eea650d8 VS |
31999 | grep -v '^ *+' conftest.er1 >conftest.err |
32000 | rm -f conftest.er1 | |
32001 | cat conftest.err >&5 | |
e6cc62c6 VS |
32002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32003 | (exit $ac_status); } && | |
eea650d8 VS |
32004 | { ac_try='test -z "$ac_c_werror_flag" |
32005 | || test ! -s conftest.err' | |
32006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32007 | (eval $ac_try) 2>&5 | |
32008 | ac_status=$? | |
32009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32010 | (exit $ac_status); }; } && | |
32011 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
32012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32013 | (eval $ac_try) 2>&5 | |
32014 | ac_status=$? | |
32015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32016 | (exit $ac_status); }; }; then | |
32017 | ac_cv_func_pthread_attr_setschedparam=yes | |
32018 | else | |
32019 | echo "$as_me: failed program was:" >&5 | |
32020 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32021 | ||
32022 | ac_cv_func_pthread_attr_setschedparam=no | |
32023 | fi | |
eea650d8 VS |
32024 | rm -f conftest.err conftest.$ac_objext \ |
32025 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
32026 | fi |
32027 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5 | |
32028 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6 | |
32029 | if test $ac_cv_func_pthread_attr_setschedparam = yes; then | |
32030 | echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5 | |
32031 | echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6 | |
32032 | if test "${ac_cv_func_sched_get_priority_max+set}" = set; then | |
32033 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32034 | else | |
32035 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
32036 | /* confdefs.h. */ |
32037 | _ACEOF | |
32038 | cat confdefs.h >>conftest.$ac_ext | |
32039 | cat >>conftest.$ac_ext <<_ACEOF | |
32040 | /* end confdefs.h. */ | |
eea650d8 VS |
32041 | /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max. |
32042 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32043 | #define sched_get_priority_max innocuous_sched_get_priority_max | |
32044 | ||
ef33c576 | 32045 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
32046 | which can conflict with char sched_get_priority_max (); below. |
32047 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32048 | <limits.h> exists even on freestanding compilers. */ | |
eea650d8 | 32049 | |
e6cc62c6 VS |
32050 | #ifdef __STDC__ |
32051 | # include <limits.h> | |
32052 | #else | |
32053 | # include <assert.h> | |
32054 | #endif | |
eea650d8 VS |
32055 | |
32056 | #undef sched_get_priority_max | |
32057 | ||
4f14bcd8 | 32058 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
32059 | #ifdef __cplusplus |
32060 | extern "C" | |
32061 | { | |
32062 | #endif | |
4f14bcd8 | 32063 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
32064 | builtin and then its argument prototype would still apply. */ |
32065 | char sched_get_priority_max (); | |
009fead0 VZ |
32066 | /* The GNU C library defines this for functions which it implements |
32067 | to always fail with ENOSYS. Some functions are actually named | |
32068 | something starting with __ and the normal name is an alias. */ | |
32069 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
32070 | choke me | |
32071 | #else | |
e6cc62c6 VS |
32072 | char (*f) () = sched_get_priority_max; |
32073 | #endif | |
32074 | #ifdef __cplusplus | |
32075 | } | |
009fead0 VZ |
32076 | #endif |
32077 | ||
e6cc62c6 VS |
32078 | int |
32079 | main () | |
32080 | { | |
32081 | return f != sched_get_priority_max; | |
32082 | ; | |
32083 | return 0; | |
32084 | } | |
32085 | _ACEOF | |
32086 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32087 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 32088 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 32089 | ac_status=$? |
eea650d8 VS |
32090 | grep -v '^ *+' conftest.er1 >conftest.err |
32091 | rm -f conftest.er1 | |
32092 | cat conftest.err >&5 | |
e6cc62c6 VS |
32093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32094 | (exit $ac_status); } && | |
eea650d8 VS |
32095 | { ac_try='test -z "$ac_c_werror_flag" |
32096 | || test ! -s conftest.err' | |
32097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32098 | (eval $ac_try) 2>&5 | |
32099 | ac_status=$? | |
32100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32101 | (exit $ac_status); }; } && | |
32102 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
32103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32104 | (eval $ac_try) 2>&5 | |
32105 | ac_status=$? | |
32106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32107 | (exit $ac_status); }; }; then | |
32108 | ac_cv_func_sched_get_priority_max=yes | |
32109 | else | |
32110 | echo "$as_me: failed program was:" >&5 | |
32111 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32112 | ||
32113 | ac_cv_func_sched_get_priority_max=no | |
32114 | fi | |
eea650d8 VS |
32115 | rm -f conftest.err conftest.$ac_objext \ |
32116 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
32117 | fi |
32118 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5 | |
32119 | echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6 | |
32120 | if test $ac_cv_func_sched_get_priority_max = yes; then | |
4f14bcd8 GD |
32121 | HAVE_PRIOR_FUNCS=1 |
32122 | else | |
e6cc62c6 VS |
32123 | echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5 |
32124 | echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6 | |
32125 | if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then | |
32126 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
422107f9 | 32127 | else |
e6cc62c6 | 32128 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 32129 | LIBS="-lposix4 $LIBS" |
e6cc62c6 | 32130 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
32131 | /* confdefs.h. */ |
32132 | _ACEOF | |
32133 | cat confdefs.h >>conftest.$ac_ext | |
32134 | cat >>conftest.$ac_ext <<_ACEOF | |
32135 | /* end confdefs.h. */ | |
32136 | ||
422107f9 | 32137 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
32138 | #ifdef __cplusplus |
32139 | extern "C" | |
32140 | #endif | |
422107f9 | 32141 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
32142 | builtin and then its argument prototype would still apply. */ |
32143 | char sched_get_priority_max (); | |
32144 | int | |
32145 | main () | |
32146 | { | |
32147 | sched_get_priority_max (); | |
32148 | ; | |
32149 | return 0; | |
32150 | } | |
32151 | _ACEOF | |
32152 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32153 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 32154 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 32155 | ac_status=$? |
eea650d8 VS |
32156 | grep -v '^ *+' conftest.er1 >conftest.err |
32157 | rm -f conftest.er1 | |
32158 | cat conftest.err >&5 | |
e6cc62c6 VS |
32159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32160 | (exit $ac_status); } && | |
eea650d8 VS |
32161 | { ac_try='test -z "$ac_c_werror_flag" |
32162 | || test ! -s conftest.err' | |
32163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32164 | (eval $ac_try) 2>&5 | |
32165 | ac_status=$? | |
32166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32167 | (exit $ac_status); }; } && | |
32168 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
32169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32170 | (eval $ac_try) 2>&5 | |
32171 | ac_status=$? | |
32172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32173 | (exit $ac_status); }; }; then | |
32174 | ac_cv_lib_posix4_sched_get_priority_max=yes | |
32175 | else | |
32176 | echo "$as_me: failed program was:" >&5 | |
32177 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32178 | ||
32179 | ac_cv_lib_posix4_sched_get_priority_max=no | |
32180 | fi | |
eea650d8 VS |
32181 | rm -f conftest.err conftest.$ac_objext \ |
32182 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
32183 | LIBS=$ac_check_lib_save_LIBS |
32184 | fi | |
32185 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5 | |
32186 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6 | |
32187 | if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then | |
698dcdb6 | 32188 | |
7274f1c7 RL |
32189 | HAVE_PRIOR_FUNCS=1 |
32190 | POSIX4_LINK=" -lposix4" | |
e6cc62c6 | 32191 | |
4f14bcd8 | 32192 | fi |
463abc64 | 32193 | |
e6cc62c6 | 32194 | |
328a083c | 32195 | fi |
463abc64 | 32196 | |
e6cc62c6 | 32197 | |
7b4a847f | 32198 | fi |
579d8138 | 32199 | |
e6cc62c6 | 32200 | |
5c6fa7d2 | 32201 | fi |
52127426 | 32202 | |
8284b0c5 | 32203 | |
7274f1c7 | 32204 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
e6cc62c6 | 32205 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 32206 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
e6cc62c6 | 32207 | _ACEOF |
463abc64 | 32208 | |
7274f1c7 | 32209 | else |
e6cc62c6 VS |
32210 | { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5 |
32211 | echo "$as_me: WARNING: Setting thread priority will not work" >&2;} | |
7274f1c7 | 32212 | fi |
463abc64 | 32213 | |
e6cc62c6 VS |
32214 | echo "$as_me:$LINENO: checking for pthread_cancel" >&5 |
32215 | echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6 | |
32216 | if test "${ac_cv_func_pthread_cancel+set}" = set; then | |
32217 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32218 | else | |
32219 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
32220 | /* confdefs.h. */ |
32221 | _ACEOF | |
32222 | cat confdefs.h >>conftest.$ac_ext | |
32223 | cat >>conftest.$ac_ext <<_ACEOF | |
32224 | /* end confdefs.h. */ | |
eea650d8 VS |
32225 | /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel. |
32226 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32227 | #define pthread_cancel innocuous_pthread_cancel | |
32228 | ||
009fead0 | 32229 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
32230 | which can conflict with char pthread_cancel (); below. |
32231 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32232 | <limits.h> exists even on freestanding compilers. */ | |
eea650d8 | 32233 | |
e6cc62c6 VS |
32234 | #ifdef __STDC__ |
32235 | # include <limits.h> | |
32236 | #else | |
32237 | # include <assert.h> | |
32238 | #endif | |
eea650d8 VS |
32239 | |
32240 | #undef pthread_cancel | |
32241 | ||
422107f9 | 32242 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
32243 | #ifdef __cplusplus |
32244 | extern "C" | |
32245 | { | |
32246 | #endif | |
422107f9 | 32247 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
32248 | builtin and then its argument prototype would still apply. */ |
32249 | char pthread_cancel (); | |
009fead0 VZ |
32250 | /* The GNU C library defines this for functions which it implements |
32251 | to always fail with ENOSYS. Some functions are actually named | |
32252 | something starting with __ and the normal name is an alias. */ | |
32253 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
32254 | choke me | |
32255 | #else | |
e6cc62c6 VS |
32256 | char (*f) () = pthread_cancel; |
32257 | #endif | |
32258 | #ifdef __cplusplus | |
32259 | } | |
009fead0 VZ |
32260 | #endif |
32261 | ||
e6cc62c6 VS |
32262 | int |
32263 | main () | |
32264 | { | |
32265 | return f != pthread_cancel; | |
32266 | ; | |
32267 | return 0; | |
32268 | } | |
32269 | _ACEOF | |
32270 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32271 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 32272 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 32273 | ac_status=$? |
eea650d8 VS |
32274 | grep -v '^ *+' conftest.er1 >conftest.err |
32275 | rm -f conftest.er1 | |
32276 | cat conftest.err >&5 | |
e6cc62c6 VS |
32277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32278 | (exit $ac_status); } && | |
eea650d8 VS |
32279 | { ac_try='test -z "$ac_c_werror_flag" |
32280 | || test ! -s conftest.err' | |
32281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32282 | (eval $ac_try) 2>&5 | |
32283 | ac_status=$? | |
32284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32285 | (exit $ac_status); }; } && | |
32286 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
32287 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32288 | (eval $ac_try) 2>&5 | |
32289 | ac_status=$? | |
32290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32291 | (exit $ac_status); }; }; then | |
32292 | ac_cv_func_pthread_cancel=yes | |
32293 | else | |
32294 | echo "$as_me: failed program was:" >&5 | |
32295 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32296 | ||
32297 | ac_cv_func_pthread_cancel=no | |
32298 | fi | |
eea650d8 VS |
32299 | rm -f conftest.err conftest.$ac_objext \ |
32300 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
32301 | fi |
32302 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5 | |
32303 | echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6 | |
32304 | if test $ac_cv_func_pthread_cancel = yes; then | |
32305 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 32306 | #define HAVE_PTHREAD_CANCEL 1 |
e6cc62c6 | 32307 | _ACEOF |
4f14bcd8 | 32308 | |
698dcdb6 | 32309 | else |
e6cc62c6 VS |
32310 | { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5 |
32311 | echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;} | |
422107f9 VZ |
32312 | fi |
32313 | ||
5c6fa7d2 | 32314 | |
4f14bcd8 | 32315 | |
e6cc62c6 VS |
32316 | |
32317 | echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5 | |
32318 | echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6 | |
32319 | if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then | |
32320 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
698dcdb6 | 32321 | else |
e6cc62c6 VS |
32322 | |
32323 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
32324 | /* confdefs.h. */ |
32325 | _ACEOF | |
32326 | cat confdefs.h >>conftest.$ac_ext | |
32327 | cat >>conftest.$ac_ext <<_ACEOF | |
32328 | /* end confdefs.h. */ | |
4f14bcd8 | 32329 | #include <pthread.h> |
e6cc62c6 VS |
32330 | int |
32331 | main () | |
32332 | { | |
4f14bcd8 | 32333 | |
7274f1c7 RL |
32334 | pthread_mutexattr_t attr; |
32335 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
e6cc62c6 VS |
32336 | |
32337 | ; | |
32338 | return 0; | |
32339 | } | |
32340 | _ACEOF | |
32341 | rm -f conftest.$ac_objext | |
32342 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 32343 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 32344 | ac_status=$? |
eea650d8 VS |
32345 | grep -v '^ *+' conftest.er1 >conftest.err |
32346 | rm -f conftest.er1 | |
32347 | cat conftest.err >&5 | |
e6cc62c6 VS |
32348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32349 | (exit $ac_status); } && | |
eea650d8 VS |
32350 | { ac_try='test -z "$ac_c_werror_flag" |
32351 | || test ! -s conftest.err' | |
32352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32353 | (eval $ac_try) 2>&5 | |
32354 | ac_status=$? | |
32355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32356 | (exit $ac_status); }; } && | |
32357 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
32358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32359 | (eval $ac_try) 2>&5 | |
32360 | ac_status=$? | |
32361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32362 | (exit $ac_status); }; }; then | |
32363 | ||
7274f1c7 | 32364 | wx_cv_type_pthread_mutexattr_t=yes |
e6cc62c6 | 32365 | |
3fed1840 | 32366 | else |
e6cc62c6 VS |
32367 | echo "$as_me: failed program was:" >&5 |
32368 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32369 | ||
32370 | ||
7274f1c7 | 32371 | wx_cv_type_pthread_mutexattr_t=no |
e6cc62c6 VS |
32372 | |
32373 | ||
247f5006 | 32374 | fi |
eea650d8 | 32375 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 32376 | |
e6cc62c6 VS |
32377 | fi |
32378 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5 | |
32379 | echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6 | |
4f14bcd8 | 32380 | |
7274f1c7 | 32381 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then |
e6cc62c6 | 32382 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 32383 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
e6cc62c6 | 32384 | _ACEOF |
4f14bcd8 | 32385 | |
7274f1c7 | 32386 | else |
e6cc62c6 VS |
32387 | echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
32388 | echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6 | |
32389 | if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then | |
32390 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32391 | else | |
32392 | ||
32393 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
32394 | /* confdefs.h. */ |
32395 | _ACEOF | |
32396 | cat confdefs.h >>conftest.$ac_ext | |
32397 | cat >>conftest.$ac_ext <<_ACEOF | |
32398 | /* end confdefs.h. */ | |
4f14bcd8 | 32399 | #include <pthread.h> |
e6cc62c6 VS |
32400 | int |
32401 | main () | |
32402 | { | |
4f14bcd8 | 32403 | |
7274f1c7 | 32404 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; |
e6cc62c6 VS |
32405 | |
32406 | ; | |
32407 | return 0; | |
32408 | } | |
32409 | _ACEOF | |
32410 | rm -f conftest.$ac_objext | |
32411 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 32412 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 32413 | ac_status=$? |
eea650d8 VS |
32414 | grep -v '^ *+' conftest.er1 >conftest.err |
32415 | rm -f conftest.er1 | |
32416 | cat conftest.err >&5 | |
e6cc62c6 VS |
32417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32418 | (exit $ac_status); } && | |
eea650d8 VS |
32419 | { ac_try='test -z "$ac_c_werror_flag" |
32420 | || test ! -s conftest.err' | |
32421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32422 | (eval $ac_try) 2>&5 | |
32423 | ac_status=$? | |
32424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32425 | (exit $ac_status); }; } && | |
32426 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
32427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32428 | (eval $ac_try) 2>&5 | |
32429 | ac_status=$? | |
32430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32431 | (exit $ac_status); }; }; then | |
32432 | ||
7274f1c7 | 32433 | wx_cv_type_pthread_rec_mutex_init=yes |
e6cc62c6 | 32434 | |
698dcdb6 | 32435 | else |
e6cc62c6 VS |
32436 | echo "$as_me: failed program was:" >&5 |
32437 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32438 | ||
32439 | ||
7274f1c7 | 32440 | wx_cv_type_pthread_rec_mutex_init=no |
e6cc62c6 VS |
32441 | |
32442 | ||
247f5006 | 32443 | fi |
eea650d8 | 32444 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 32445 | |
e6cc62c6 VS |
32446 | fi |
32447 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5 | |
32448 | echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6 | |
7274f1c7 | 32449 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
e6cc62c6 | 32450 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 32451 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
e6cc62c6 | 32452 | _ACEOF |
3fed1840 | 32453 | |
7274f1c7 | 32454 | else |
e6cc62c6 VS |
32455 | { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5 |
32456 | echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;} | |
7274f1c7 RL |
32457 | fi |
32458 | fi | |
7274f1c7 | 32459 | fi |
3fed1840 | 32460 | |
a0b9e27f MB |
32461 | else |
32462 | if test "$wxUSE_THREADS" = "yes" ; then | |
32463 | case "${host}" in | |
32464 | *-*-mingw32* ) | |
e6cc62c6 VS |
32465 | echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5 |
32466 | echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6 | |
32467 | if test "${wx_cv_cflags_mthread+set}" = set; then | |
32468 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca8e52b3 | 32469 | else |
e6cc62c6 | 32470 | |
ca8e52b3 VZ |
32471 | CFLAGS_OLD="$CFLAGS" |
32472 | CFLAGS="$CFLAGS -mthreads" | |
e6cc62c6 | 32473 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
32474 | /* confdefs.h. */ |
32475 | _ACEOF | |
32476 | cat confdefs.h >>conftest.$ac_ext | |
32477 | cat >>conftest.$ac_ext <<_ACEOF | |
32478 | /* end confdefs.h. */ | |
32479 | ||
32480 | int | |
32481 | main () | |
32482 | { | |
ca8e52b3 | 32483 | |
e6cc62c6 VS |
32484 | ; |
32485 | return 0; | |
32486 | } | |
32487 | _ACEOF | |
32488 | rm -f conftest.$ac_objext | |
32489 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 32490 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 32491 | ac_status=$? |
eea650d8 VS |
32492 | grep -v '^ *+' conftest.er1 >conftest.err |
32493 | rm -f conftest.er1 | |
32494 | cat conftest.err >&5 | |
e6cc62c6 VS |
32495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32496 | (exit $ac_status); } && | |
eea650d8 VS |
32497 | { ac_try='test -z "$ac_c_werror_flag" |
32498 | || test ! -s conftest.err' | |
32499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32500 | (eval $ac_try) 2>&5 | |
32501 | ac_status=$? | |
32502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32503 | (exit $ac_status); }; } && | |
32504 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
32505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32506 | (eval $ac_try) 2>&5 | |
32507 | ac_status=$? | |
32508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32509 | (exit $ac_status); }; }; then | |
ca8e52b3 VZ |
32510 | wx_cv_cflags_mthread=yes |
32511 | else | |
e6cc62c6 VS |
32512 | echo "$as_me: failed program was:" >&5 |
32513 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32514 | ||
32515 | wx_cv_cflags_mthread=no | |
32516 | ||
ca8e52b3 | 32517 | fi |
eea650d8 | 32518 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 32519 | |
ca8e52b3 | 32520 | |
e6cc62c6 VS |
32521 | fi |
32522 | echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5 | |
32523 | echo "${ECHO_T}$wx_cv_cflags_mthread" >&6 | |
ca8e52b3 VZ |
32524 | |
32525 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
32526 | CXXFLAGS="$CXXFLAGS -mthreads" | |
32527 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads" | |
32528 | LDFLAGS="$LDFLAGS -mthreads" | |
32529 | else | |
32530 | CFLAGS="$CFLAGS_OLD" | |
32531 | fi | |
a0b9e27f | 32532 | ;; |
73d617c9 MB |
32533 | *-pc-os2*emx ) |
32534 | CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__" | |
32535 | CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__" | |
32536 | LDFLAGS="$LDFLAGS -Zmt" | |
32537 | ;; | |
a0b9e27f MB |
32538 | esac |
32539 | fi | |
4f14bcd8 GD |
32540 | fi |
32541 | ||
32542 | if test "$wxUSE_THREADS" = "yes"; then | |
e6cc62c6 | 32543 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 32544 | #define wxUSE_THREADS 1 |
e6cc62c6 | 32545 | _ACEOF |
7b6058cd | 32546 | |
8284b0c5 | 32547 | |
4f14bcd8 | 32548 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" |
698dcdb6 | 32549 | else |
4f14bcd8 | 32550 | if test "$ac_cv_func_strtok_r" = "yes"; then |
e6cc62c6 VS |
32551 | echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5 |
32552 | echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6 | |
4f14bcd8 GD |
32553 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
32554 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
e6cc62c6 VS |
32555 | echo "$as_me:$LINENO: result: yes" >&5 |
32556 | echo "${ECHO_T}yes" >&6 | |
4f14bcd8 | 32557 | else |
e6cc62c6 VS |
32558 | echo "$as_me:$LINENO: result: no" >&5 |
32559 | echo "${ECHO_T}no" >&6 | |
4f14bcd8 GD |
32560 | fi |
32561 | fi | |
32562 | fi | |
32563 | ||
32564 | if test "$WXGTK20" = 1 ; then | |
e6cc62c6 | 32565 | cat >>confdefs.h <<_ACEOF |
4f14bcd8 | 32566 | #define __WXGTK20__ $WXGTK20 |
e6cc62c6 | 32567 | _ACEOF |
4f14bcd8 GD |
32568 | |
32569 | WXGTK12=1 | |
10f2d63a | 32570 | fi |
4f14bcd8 GD |
32571 | |
32572 | if test "$WXGTK12" = 1 ; then | |
e6cc62c6 | 32573 | cat >>confdefs.h <<_ACEOF |
4f14bcd8 | 32574 | #define __WXGTK12__ $WXGTK12 |
e6cc62c6 | 32575 | _ACEOF |
4f14bcd8 | 32576 | |
10f2d63a | 32577 | fi |
698dcdb6 | 32578 | |
4f14bcd8 | 32579 | if test "$WXGTK127" = 1 ; then |
e6cc62c6 | 32580 | cat >>confdefs.h <<_ACEOF |
4f14bcd8 | 32581 | #define __WXGTK127__ $WXGTK127 |
e6cc62c6 | 32582 | _ACEOF |
4f14bcd8 | 32583 | |
698dcdb6 | 32584 | fi |
10f2d63a | 32585 | |
4f14bcd8 GD |
32586 | WXDEBUG= |
32587 | ||
32588 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
32589 | WXDEBUG="-g" | |
32590 | wxUSE_OPTIMISE=no | |
698dcdb6 | 32591 | fi |
4f14bcd8 GD |
32592 | |
32593 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
32594 | wxUSE_DEBUG_INFO=yes | |
32595 | WXDEBUG="-ggdb" | |
10f2d63a VZ |
32596 | fi |
32597 | ||
4f14bcd8 | 32598 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then |
e6cc62c6 | 32599 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 32600 | #define WXDEBUG 1 |
e6cc62c6 | 32601 | _ACEOF |
4f14bcd8 GD |
32602 | |
32603 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
10f2d63a | 32604 | else |
4f14bcd8 GD |
32605 | if test "$wxUSE_GTK" = 1 ; then |
32606 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
32607 | fi | |
32608 | fi | |
32609 | ||
32610 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
e6cc62c6 | 32611 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 32612 | #define wxUSE_MEMORY_TRACING 1 |
e6cc62c6 | 32613 | _ACEOF |
4f14bcd8 | 32614 | |
e6cc62c6 | 32615 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 32616 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 |
e6cc62c6 | 32617 | _ACEOF |
4f14bcd8 | 32618 | |
e6cc62c6 | 32619 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 32620 | #define wxUSE_DEBUG_NEW_ALWAYS 1 |
e6cc62c6 | 32621 | _ACEOF |
4f14bcd8 GD |
32622 | |
32623 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
32624 | fi | |
32625 | ||
32626 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
3d63bc3a | 32627 | DMALLOC_LIBS="-ldmalloc" |
4f14bcd8 GD |
32628 | fi |
32629 | ||
32630 | PROFILE= | |
32631 | if test "$wxUSE_PROFILE" = "yes" ; then | |
3d63bc3a | 32632 | PROFILE=" -pg" |
10f2d63a VZ |
32633 | fi |
32634 | ||
009fead0 VZ |
32635 | CODE_GEN_FLAGS= |
32636 | CODE_GEN_FLAGS_CXX= | |
88e30f2b | 32637 | if test "$GCC" = "yes" ; then |
4f14bcd8 GD |
32638 | if test "$wxUSE_NO_RTTI" = "yes" ; then |
32639 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
3a922bb4 | 32640 | fi |
4f14bcd8 GD |
32641 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
32642 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
32643 | fi | |
32644 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
32645 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
32646 | fi | |
1d1b75ac | 32647 | |
2b5f62a0 | 32648 | case "${host}" in |
1d1b75ac VZ |
32649 | powerpc*-*-aix* ) |
32650 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
32651 | ;; | |
2b5f62a0 VZ |
32652 | *-hppa* ) |
32653 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections" | |
32654 | ;; | |
1d1b75ac | 32655 | esac |
4f14bcd8 GD |
32656 | fi |
32657 | ||
af7b5345 | 32658 | OPTIMISE= |
4f14bcd8 | 32659 | if test "$wxUSE_OPTIMISE" = "no" ; then |
af7b5345 VZ |
32660 | if test "$GCC" = yes ; then |
32661 | OPTIMISE="-O0" | |
32662 | fi | |
4f14bcd8 GD |
32663 | else |
32664 | if test "$GCC" = yes ; then | |
32665 | OPTIMISE="-O2" | |
af7b5345 VZ |
32666 | |
32667 | case "${host}" in | |
4f14bcd8 GD |
32668 | i586-*-*|i686-*-* ) |
32669 | OPTIMISE="${OPTIMISE} " | |
32670 | ;; | |
32671 | esac | |
32672 | else | |
32673 | OPTIMISE="-O" | |
32674 | fi | |
32675 | fi | |
32676 | ||
8d90d2f2 | 32677 | |
65d8ef1e | 32678 | if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then |
e6cc62c6 | 32679 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 32680 | #define WXWIN_COMPATIBILITY_2_2 1 |
e6cc62c6 | 32681 | _ACEOF |
4f14bcd8 | 32682 | |
8d90d2f2 VZ |
32683 | |
32684 | WXWIN_COMPATIBILITY_2_4="yes" | |
10f2d63a VZ |
32685 | fi |
32686 | ||
65d8ef1e | 32687 | if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then |
e6cc62c6 | 32688 | cat >>confdefs.h <<\_ACEOF |
65d8ef1e | 32689 | #define WXWIN_COMPATIBILITY_2_4 1 |
e6cc62c6 | 32690 | _ACEOF |
65d8ef1e VS |
32691 | |
32692 | fi | |
32693 | ||
8284b0c5 | 32694 | |
10f2d63a | 32695 | if test "$wxUSE_GUI" = "yes"; then |
e6cc62c6 | 32696 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32697 | #define wxUSE_GUI 1 |
e6cc62c6 | 32698 | _ACEOF |
10f2d63a | 32699 | |
8284b0c5 | 32700 | |
10f2d63a | 32701 | else |
e6cc62c6 | 32702 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32703 | #define wxUSE_NOGUI 1 |
e6cc62c6 | 32704 | _ACEOF |
10f2d63a VZ |
32705 | |
32706 | fi | |
32707 | ||
8284b0c5 | 32708 | |
10f2d63a | 32709 | if test "$wxUSE_UNIX" = "yes"; then |
e6cc62c6 | 32710 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32711 | #define wxUSE_UNIX 1 |
e6cc62c6 | 32712 | _ACEOF |
10f2d63a VZ |
32713 | |
32714 | fi | |
32715 | ||
8284b0c5 | 32716 | |
df5168c4 MB |
32717 | if test "$wxUSE_STL" = "yes"; then |
32718 | cat >>confdefs.h <<\_ACEOF | |
32719 | #define wxUSE_STL 1 | |
32720 | _ACEOF | |
32721 | ||
32722 | fi | |
32723 | ||
10f2d63a | 32724 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
e6cc62c6 | 32725 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32726 | #define wxUSE_APPLE_IEEE 1 |
e6cc62c6 | 32727 | _ACEOF |
10f2d63a VZ |
32728 | |
32729 | fi | |
32730 | ||
1e6feb95 | 32731 | if test "$wxUSE_TIMER" = "yes"; then |
e6cc62c6 | 32732 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32733 | #define wxUSE_TIMER 1 |
e6cc62c6 | 32734 | _ACEOF |
1e6feb95 VZ |
32735 | |
32736 | fi | |
32737 | ||
10f2d63a | 32738 | if test "$wxUSE_WAVE" = "yes"; then |
e6cc62c6 | 32739 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32740 | #define wxUSE_WAVE 1 |
e6cc62c6 | 32741 | _ACEOF |
10f2d63a VZ |
32742 | |
32743 | fi | |
32744 | ||
1e6feb95 | 32745 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
e6cc62c6 | 32746 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32747 | #define wxUSE_CMDLINE_PARSER 1 |
e6cc62c6 | 32748 | _ACEOF |
1e6feb95 VZ |
32749 | |
32750 | fi | |
32751 | ||
32752 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
e6cc62c6 | 32753 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32754 | #define wxUSE_STOPWATCH 1 |
e6cc62c6 | 32755 | _ACEOF |
1e6feb95 VZ |
32756 | |
32757 | fi | |
32758 | ||
32759 | if test "$wxUSE_DATETIME" = "yes"; then | |
e6cc62c6 | 32760 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32761 | #define wxUSE_DATETIME 1 |
e6cc62c6 | 32762 | _ACEOF |
1e6feb95 VZ |
32763 | |
32764 | fi | |
32765 | ||
10f2d63a | 32766 | if test "$wxUSE_FILE" = "yes"; then |
e6cc62c6 | 32767 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32768 | #define wxUSE_FILE 1 |
e6cc62c6 | 32769 | _ACEOF |
10f2d63a VZ |
32770 | |
32771 | fi | |
32772 | ||
1e6feb95 | 32773 | if test "$wxUSE_FFILE" = "yes"; then |
e6cc62c6 | 32774 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32775 | #define wxUSE_FFILE 1 |
e6cc62c6 | 32776 | _ACEOF |
1e6feb95 VZ |
32777 | |
32778 | fi | |
32779 | ||
24528b0c | 32780 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
e6cc62c6 | 32781 | cat >>confdefs.h <<\_ACEOF |
24528b0c | 32782 | #define wxUSE_FILESYSTEM 1 |
e6cc62c6 | 32783 | _ACEOF |
24528b0c VS |
32784 | |
32785 | fi | |
32786 | ||
10f2d63a | 32787 | if test "$wxUSE_FS_ZIP" = "yes"; then |
e6cc62c6 | 32788 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32789 | #define wxUSE_FS_ZIP 1 |
e6cc62c6 | 32790 | _ACEOF |
10f2d63a VZ |
32791 | |
32792 | fi | |
32793 | ||
32794 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
e6cc62c6 | 32795 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32796 | #define wxUSE_ZIPSTREAM 1 |
e6cc62c6 | 32797 | _ACEOF |
10f2d63a VZ |
32798 | |
32799 | fi | |
32800 | ||
7015ef3a VZ |
32801 | if test "$wxUSE_GZSTREAM" = "yes"; then |
32802 | cat >>confdefs.h <<\_ACEOF | |
32803 | #define wxUSE_GZSTREAM 1 | |
32804 | _ACEOF | |
32805 | ||
32806 | fi | |
32807 | ||
eb4efbdc | 32808 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
e6cc62c6 | 32809 | cat >>confdefs.h <<\_ACEOF |
eb4efbdc | 32810 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
e6cc62c6 | 32811 | _ACEOF |
eb4efbdc VZ |
32812 | |
32813 | fi | |
32814 | ||
4f3c5f06 | 32815 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
e6cc62c6 | 32816 | cat >>confdefs.h <<\_ACEOF |
4f3c5f06 | 32817 | #define wxUSE_SNGLINST_CHECKER 1 |
e6cc62c6 | 32818 | _ACEOF |
4f3c5f06 VZ |
32819 | |
32820 | fi | |
32821 | ||
10f2d63a | 32822 | if test "$wxUSE_BUSYINFO" = "yes"; then |
e6cc62c6 | 32823 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32824 | #define wxUSE_BUSYINFO 1 |
e6cc62c6 | 32825 | _ACEOF |
10f2d63a VZ |
32826 | |
32827 | fi | |
32828 | ||
32829 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
e6cc62c6 | 32830 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32831 | #define wxUSE_STD_IOSTREAM 1 |
e6cc62c6 | 32832 | _ACEOF |
10f2d63a VZ |
32833 | |
32834 | fi | |
32835 | ||
a3a584a7 | 32836 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
e6cc62c6 | 32837 | cat >>confdefs.h <<\_ACEOF |
a3a584a7 | 32838 | #define wxUSE_TEXTBUFFER 1 |
e6cc62c6 | 32839 | _ACEOF |
a3a584a7 VZ |
32840 | |
32841 | fi | |
32842 | ||
10f2d63a | 32843 | if test "$wxUSE_TEXTFILE" = "yes"; then |
a3a584a7 | 32844 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then |
e6cc62c6 VS |
32845 | { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5 |
32846 | echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;} | |
10f2d63a | 32847 | else |
e6cc62c6 | 32848 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32849 | #define wxUSE_TEXTFILE 1 |
e6cc62c6 | 32850 | _ACEOF |
10f2d63a VZ |
32851 | |
32852 | fi | |
32853 | fi | |
32854 | ||
32855 | if test "$wxUSE_CONFIG" = "yes" ; then | |
32856 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
e6cc62c6 VS |
32857 | { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5 |
32858 | echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;} | |
10f2d63a | 32859 | else |
e6cc62c6 | 32860 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32861 | #define wxUSE_CONFIG 1 |
e6cc62c6 | 32862 | _ACEOF |
10f2d63a VZ |
32863 | |
32864 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
32865 | fi | |
32866 | fi | |
32867 | ||
32868 | if test "$wxUSE_INTL" = "yes" ; then | |
32869 | if test "$wxUSE_FILE" != "yes"; then | |
e6cc62c6 VS |
32870 | { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5 |
32871 | echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;} | |
10f2d63a | 32872 | else |
e6cc62c6 | 32873 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32874 | #define wxUSE_INTL 1 |
e6cc62c6 | 32875 | _ACEOF |
10f2d63a VZ |
32876 | |
32877 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 32878 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
32879 | fi |
32880 | fi | |
32881 | ||
32882 | if test "$wxUSE_LOG" = "yes"; then | |
e6cc62c6 | 32883 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32884 | #define wxUSE_LOG 1 |
e6cc62c6 | 32885 | _ACEOF |
10f2d63a | 32886 | |
8284b0c5 | 32887 | |
d73be714 | 32888 | if test "$wxUSE_LOGGUI" = "yes"; then |
e6cc62c6 | 32889 | cat >>confdefs.h <<\_ACEOF |
d73be714 | 32890 | #define wxUSE_LOGGUI 1 |
e6cc62c6 | 32891 | _ACEOF |
d73be714 VZ |
32892 | |
32893 | fi | |
32894 | ||
32895 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
e6cc62c6 | 32896 | cat >>confdefs.h <<\_ACEOF |
d73be714 | 32897 | #define wxUSE_LOGWINDOW 1 |
e6cc62c6 | 32898 | _ACEOF |
69d27ff7 MB |
32899 | |
32900 | fi | |
32901 | ||
32902 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
e6cc62c6 | 32903 | cat >>confdefs.h <<\_ACEOF |
69d27ff7 | 32904 | #define wxUSE_LOG_DIALOG 1 |
e6cc62c6 | 32905 | _ACEOF |
d73be714 VZ |
32906 | |
32907 | fi | |
10f2d63a VZ |
32908 | fi |
32909 | ||
32910 | if test "$wxUSE_LONGLONG" = "yes"; then | |
e6cc62c6 | 32911 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32912 | #define wxUSE_LONGLONG 1 |
e6cc62c6 | 32913 | _ACEOF |
10f2d63a VZ |
32914 | |
32915 | fi | |
32916 | ||
e8f65ba6 | 32917 | if test "$wxUSE_GEOMETRY" = "yes"; then |
e6cc62c6 | 32918 | cat >>confdefs.h <<\_ACEOF |
e8f65ba6 | 32919 | #define wxUSE_GEOMETRY 1 |
e6cc62c6 | 32920 | _ACEOF |
e8f65ba6 RR |
32921 | |
32922 | fi | |
32923 | ||
10f2d63a | 32924 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
e6cc62c6 | 32925 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32926 | #define wxUSE_DIALUP_MANAGER 1 |
e6cc62c6 | 32927 | _ACEOF |
10f2d63a | 32928 | |
70f7a477 | 32929 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
32930 | fi |
32931 | ||
32932 | if test "$wxUSE_STREAMS" = "yes" ; then | |
e6cc62c6 | 32933 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32934 | #define wxUSE_STREAMS 1 |
e6cc62c6 | 32935 | _ACEOF |
10f2d63a VZ |
32936 | |
32937 | fi | |
32938 | ||
5c6fa7d2 | 32939 | |
8284b0c5 | 32940 | if test "$wxUSE_DATETIME" = "yes"; then |
e6cc62c6 VS |
32941 | |
32942 | for ac_func in strptime | |
83307f33 | 32943 | do |
e6cc62c6 VS |
32944 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
32945 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32946 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32947 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32948 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32949 | else | |
32950 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
32951 | /* confdefs.h. */ |
32952 | _ACEOF | |
32953 | cat confdefs.h >>conftest.$ac_ext | |
32954 | cat >>conftest.$ac_ext <<_ACEOF | |
32955 | /* end confdefs.h. */ | |
eea650d8 VS |
32956 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32957 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32958 | #define $ac_func innocuous_$ac_func | |
32959 | ||
83307f33 | 32960 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
32961 | which can conflict with char $ac_func (); below. |
32962 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32963 | <limits.h> exists even on freestanding compilers. */ | |
eea650d8 | 32964 | |
e6cc62c6 VS |
32965 | #ifdef __STDC__ |
32966 | # include <limits.h> | |
32967 | #else | |
32968 | # include <assert.h> | |
32969 | #endif | |
eea650d8 VS |
32970 | |
32971 | #undef $ac_func | |
32972 | ||
83307f33 | 32973 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
32974 | #ifdef __cplusplus |
32975 | extern "C" | |
32976 | { | |
32977 | #endif | |
83307f33 | 32978 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
32979 | builtin and then its argument prototype would still apply. */ |
32980 | char $ac_func (); | |
83307f33 VZ |
32981 | /* The GNU C library defines this for functions which it implements |
32982 | to always fail with ENOSYS. Some functions are actually named | |
32983 | something starting with __ and the normal name is an alias. */ | |
32984 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32985 | choke me | |
32986 | #else | |
e6cc62c6 VS |
32987 | char (*f) () = $ac_func; |
32988 | #endif | |
32989 | #ifdef __cplusplus | |
32990 | } | |
83307f33 VZ |
32991 | #endif |
32992 | ||
e6cc62c6 VS |
32993 | int |
32994 | main () | |
32995 | { | |
32996 | return f != $ac_func; | |
32997 | ; | |
32998 | return 0; | |
32999 | } | |
33000 | _ACEOF | |
33001 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33002 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 33003 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 33004 | ac_status=$? |
eea650d8 VS |
33005 | grep -v '^ *+' conftest.er1 >conftest.err |
33006 | rm -f conftest.er1 | |
33007 | cat conftest.err >&5 | |
e6cc62c6 VS |
33008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33009 | (exit $ac_status); } && | |
eea650d8 VS |
33010 | { ac_try='test -z "$ac_c_werror_flag" |
33011 | || test ! -s conftest.err' | |
33012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33013 | (eval $ac_try) 2>&5 | |
33014 | ac_status=$? | |
33015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33016 | (exit $ac_status); }; } && | |
33017 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
33018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33019 | (eval $ac_try) 2>&5 | |
33020 | ac_status=$? | |
33021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33022 | (exit $ac_status); }; }; then | |
33023 | eval "$as_ac_var=yes" | |
33024 | else | |
33025 | echo "$as_me: failed program was:" >&5 | |
33026 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33027 | ||
33028 | eval "$as_ac_var=no" | |
33029 | fi | |
eea650d8 VS |
33030 | rm -f conftest.err conftest.$ac_objext \ |
33031 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
33032 | fi |
33033 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33034 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33035 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33036 | cat >>confdefs.h <<_ACEOF | |
33037 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33038 | _ACEOF | |
83307f33 | 33039 | |
83307f33 VZ |
33040 | fi |
33041 | done | |
33042 | ||
5c6fa7d2 | 33043 | |
e6cc62c6 VS |
33044 | echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5 |
33045 | echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6 | |
33046 | if test "${wx_cv_var_timezone+set}" = set; then | |
33047 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 33048 | else |
e6cc62c6 VS |
33049 | |
33050 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
33051 | /* confdefs.h. */ |
33052 | _ACEOF | |
33053 | cat confdefs.h >>conftest.$ac_ext | |
33054 | cat >>conftest.$ac_ext <<_ACEOF | |
33055 | /* end confdefs.h. */ | |
360d6699 | 33056 | |
b4085ce6 | 33057 | #include <time.h> |
e6cc62c6 VS |
33058 | |
33059 | int | |
33060 | main () | |
33061 | { | |
360d6699 VZ |
33062 | |
33063 | int tz; | |
4f11a343 | 33064 | tz = timezone; |
e6cc62c6 VS |
33065 | |
33066 | ; | |
33067 | return 0; | |
33068 | } | |
33069 | _ACEOF | |
33070 | rm -f conftest.$ac_objext | |
33071 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 33072 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 33073 | ac_status=$? |
eea650d8 VS |
33074 | grep -v '^ *+' conftest.er1 >conftest.err |
33075 | rm -f conftest.er1 | |
33076 | cat conftest.err >&5 | |
e6cc62c6 VS |
33077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33078 | (exit $ac_status); } && | |
eea650d8 VS |
33079 | { ac_try='test -z "$ac_c_werror_flag" |
33080 | || test ! -s conftest.err' | |
33081 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33082 | (eval $ac_try) 2>&5 | |
33083 | ac_status=$? | |
33084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33085 | (exit $ac_status); }; } && | |
33086 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
33087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33088 | (eval $ac_try) 2>&5 | |
33089 | ac_status=$? | |
33090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33091 | (exit $ac_status); }; }; then | |
33092 | ||
4f11a343 | 33093 | wx_cv_var_timezone=timezone |
e6cc62c6 | 33094 | |
360d6699 | 33095 | else |
e6cc62c6 VS |
33096 | echo "$as_me: failed program was:" >&5 |
33097 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33098 | ||
33099 | ||
33100 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
33101 | /* confdefs.h. */ |
33102 | _ACEOF | |
33103 | cat confdefs.h >>conftest.$ac_ext | |
33104 | cat >>conftest.$ac_ext <<_ACEOF | |
33105 | /* end confdefs.h. */ | |
360d6699 | 33106 | |
b4085ce6 | 33107 | #include <time.h> |
e6cc62c6 VS |
33108 | |
33109 | int | |
33110 | main () | |
33111 | { | |
360d6699 VZ |
33112 | |
33113 | int tz; | |
33114 | tz = _timezone; | |
e6cc62c6 VS |
33115 | |
33116 | ; | |
33117 | return 0; | |
33118 | } | |
33119 | _ACEOF | |
33120 | rm -f conftest.$ac_objext | |
33121 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 33122 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 33123 | ac_status=$? |
eea650d8 VS |
33124 | grep -v '^ *+' conftest.er1 >conftest.err |
33125 | rm -f conftest.er1 | |
33126 | cat conftest.err >&5 | |
e6cc62c6 VS |
33127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33128 | (exit $ac_status); } && | |
eea650d8 VS |
33129 | { ac_try='test -z "$ac_c_werror_flag" |
33130 | || test ! -s conftest.err' | |
33131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33132 | (eval $ac_try) 2>&5 | |
33133 | ac_status=$? | |
33134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33135 | (exit $ac_status); }; } && | |
33136 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
33137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33138 | (eval $ac_try) 2>&5 | |
33139 | ac_status=$? | |
33140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33141 | (exit $ac_status); }; }; then | |
33142 | ||
360d6699 | 33143 | wx_cv_var_timezone=_timezone |
e6cc62c6 | 33144 | |
5357c8e8 | 33145 | else |
e6cc62c6 VS |
33146 | echo "$as_me: failed program was:" >&5 |
33147 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33148 | ||
33149 | ||
33150 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
33151 | /* confdefs.h. */ |
33152 | _ACEOF | |
33153 | cat confdefs.h >>conftest.$ac_ext | |
33154 | cat >>conftest.$ac_ext <<_ACEOF | |
33155 | /* end confdefs.h. */ | |
5357c8e8 | 33156 | |
b4085ce6 | 33157 | #include <time.h> |
e6cc62c6 VS |
33158 | |
33159 | int | |
33160 | main () | |
33161 | { | |
5357c8e8 VZ |
33162 | |
33163 | int tz; | |
4f11a343 | 33164 | tz = __timezone; |
e6cc62c6 VS |
33165 | |
33166 | ; | |
33167 | return 0; | |
33168 | } | |
33169 | _ACEOF | |
33170 | rm -f conftest.$ac_objext | |
33171 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 33172 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 33173 | ac_status=$? |
eea650d8 VS |
33174 | grep -v '^ *+' conftest.er1 >conftest.err |
33175 | rm -f conftest.er1 | |
33176 | cat conftest.err >&5 | |
e6cc62c6 VS |
33177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33178 | (exit $ac_status); } && | |
eea650d8 VS |
33179 | { ac_try='test -z "$ac_c_werror_flag" |
33180 | || test ! -s conftest.err' | |
33181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33182 | (eval $ac_try) 2>&5 | |
33183 | ac_status=$? | |
33184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33185 | (exit $ac_status); }; } && | |
33186 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
33187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33188 | (eval $ac_try) 2>&5 | |
33189 | ac_status=$? | |
33190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33191 | (exit $ac_status); }; }; then | |
33192 | ||
4f11a343 | 33193 | wx_cv_var_timezone=__timezone |
e6cc62c6 | 33194 | |
360d6699 | 33195 | else |
e6cc62c6 VS |
33196 | echo "$as_me: failed program was:" >&5 |
33197 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33198 | ||
33199 | ||
f9bc1684 | 33200 | if test "$USE_DOS" = 0 ; then |
e6cc62c6 VS |
33201 | { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5 |
33202 | echo "$as_me: WARNING: no timezone variable" >&2;} | |
f9bc1684 | 33203 | fi |
e6cc62c6 VS |
33204 | |
33205 | ||
7b4a847f | 33206 | fi |
eea650d8 | 33207 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
33208 | |
33209 | ||
5c6fa7d2 | 33210 | fi |
eea650d8 | 33211 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
33212 | |
33213 | ||
247f5006 | 33214 | fi |
eea650d8 | 33215 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 33216 | |
e6cc62c6 VS |
33217 | |
33218 | fi | |
33219 | echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5 | |
33220 | echo "${ECHO_T}$wx_cv_var_timezone" >&6 | |
698dcdb6 | 33221 | |
f9bc1684 | 33222 | if test "x$wx_cv_var_timezone" != x ; then |
e6cc62c6 | 33223 | cat >>confdefs.h <<_ACEOF |
360d6699 | 33224 | #define WX_TIMEZONE $wx_cv_var_timezone |
e6cc62c6 | 33225 | _ACEOF |
360d6699 | 33226 | |
f9bc1684 | 33227 | fi |
698dcdb6 | 33228 | |
e6cc62c6 VS |
33229 | |
33230 | for ac_func in localtime | |
afc31813 | 33231 | do |
e6cc62c6 VS |
33232 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
33233 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33234 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33235 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33236 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33237 | else | |
33238 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
33239 | /* confdefs.h. */ |
33240 | _ACEOF | |
33241 | cat confdefs.h >>conftest.$ac_ext | |
33242 | cat >>conftest.$ac_ext <<_ACEOF | |
33243 | /* end confdefs.h. */ | |
eea650d8 VS |
33244 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33245 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33246 | #define $ac_func innocuous_$ac_func | |
33247 | ||
afc31813 | 33248 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
33249 | which can conflict with char $ac_func (); below. |
33250 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33251 | <limits.h> exists even on freestanding compilers. */ | |
eea650d8 | 33252 | |
e6cc62c6 VS |
33253 | #ifdef __STDC__ |
33254 | # include <limits.h> | |
33255 | #else | |
33256 | # include <assert.h> | |
33257 | #endif | |
eea650d8 VS |
33258 | |
33259 | #undef $ac_func | |
33260 | ||
afc31813 | 33261 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
33262 | #ifdef __cplusplus |
33263 | extern "C" | |
33264 | { | |
33265 | #endif | |
afc31813 | 33266 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
33267 | builtin and then its argument prototype would still apply. */ |
33268 | char $ac_func (); | |
afc31813 VZ |
33269 | /* The GNU C library defines this for functions which it implements |
33270 | to always fail with ENOSYS. Some functions are actually named | |
33271 | something starting with __ and the normal name is an alias. */ | |
33272 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33273 | choke me | |
33274 | #else | |
e6cc62c6 VS |
33275 | char (*f) () = $ac_func; |
33276 | #endif | |
33277 | #ifdef __cplusplus | |
33278 | } | |
afc31813 VZ |
33279 | #endif |
33280 | ||
e6cc62c6 VS |
33281 | int |
33282 | main () | |
33283 | { | |
33284 | return f != $ac_func; | |
33285 | ; | |
33286 | return 0; | |
33287 | } | |
33288 | _ACEOF | |
33289 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33290 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 33291 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 33292 | ac_status=$? |
eea650d8 VS |
33293 | grep -v '^ *+' conftest.er1 >conftest.err |
33294 | rm -f conftest.er1 | |
33295 | cat conftest.err >&5 | |
e6cc62c6 VS |
33296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33297 | (exit $ac_status); } && | |
eea650d8 VS |
33298 | { ac_try='test -z "$ac_c_werror_flag" |
33299 | || test ! -s conftest.err' | |
33300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33301 | (eval $ac_try) 2>&5 | |
33302 | ac_status=$? | |
33303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33304 | (exit $ac_status); }; } && | |
33305 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
33306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33307 | (eval $ac_try) 2>&5 | |
33308 | ac_status=$? | |
33309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33310 | (exit $ac_status); }; }; then | |
33311 | eval "$as_ac_var=yes" | |
33312 | else | |
33313 | echo "$as_me: failed program was:" >&5 | |
33314 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33315 | ||
33316 | eval "$as_ac_var=no" | |
33317 | fi | |
eea650d8 VS |
33318 | rm -f conftest.err conftest.$ac_objext \ |
33319 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
33320 | fi |
33321 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33322 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33323 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33324 | cat >>confdefs.h <<_ACEOF | |
33325 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33326 | _ACEOF | |
afc31813 | 33327 | |
afc31813 VZ |
33328 | fi |
33329 | done | |
33330 | ||
5c6fa7d2 | 33331 | |
8284b0c5 | 33332 | if test "$ac_cv_func_localtime" = "yes"; then |
e6cc62c6 VS |
33333 | echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5 |
33334 | echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 | |
33335 | if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then | |
33336 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 33337 | else |
e6cc62c6 VS |
33338 | |
33339 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
33340 | /* confdefs.h. */ |
33341 | _ACEOF | |
33342 | cat confdefs.h >>conftest.$ac_ext | |
33343 | cat >>conftest.$ac_ext <<_ACEOF | |
33344 | /* end confdefs.h. */ | |
0470b1e6 | 33345 | |
b4085ce6 | 33346 | #include <time.h> |
e6cc62c6 VS |
33347 | |
33348 | int | |
33349 | main () | |
33350 | { | |
0470b1e6 VZ |
33351 | |
33352 | struct tm tm; | |
33353 | tm.tm_gmtoff++; | |
e6cc62c6 VS |
33354 | |
33355 | ; | |
33356 | return 0; | |
33357 | } | |
33358 | _ACEOF | |
33359 | rm -f conftest.$ac_objext | |
33360 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 33361 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 33362 | ac_status=$? |
eea650d8 VS |
33363 | grep -v '^ *+' conftest.er1 >conftest.err |
33364 | rm -f conftest.er1 | |
33365 | cat conftest.err >&5 | |
e6cc62c6 VS |
33366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33367 | (exit $ac_status); } && | |
eea650d8 VS |
33368 | { ac_try='test -z "$ac_c_werror_flag" |
33369 | || test ! -s conftest.err' | |
33370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33371 | (eval $ac_try) 2>&5 | |
33372 | ac_status=$? | |
33373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33374 | (exit $ac_status); }; } && | |
33375 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
33376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33377 | (eval $ac_try) 2>&5 | |
33378 | ac_status=$? | |
33379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33380 | (exit $ac_status); }; }; then | |
33381 | ||
f03a98d8 | 33382 | wx_cv_struct_tm_has_gmtoff=yes |
e6cc62c6 | 33383 | |
0470b1e6 | 33384 | else |
e6cc62c6 VS |
33385 | echo "$as_me: failed program was:" >&5 |
33386 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33387 | ||
33388 | wx_cv_struct_tm_has_gmtoff=no | |
33389 | ||
247f5006 | 33390 | fi |
eea650d8 | 33391 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 33392 | |
e6cc62c6 VS |
33393 | fi |
33394 | echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5 | |
33395 | echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6 | |
6232543b VS |
33396 | fi |
33397 | ||
33398 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
e6cc62c6 | 33399 | cat >>confdefs.h <<\_ACEOF |
6232543b | 33400 | #define WX_GMTOFF_IN_TM 1 |
e6cc62c6 | 33401 | _ACEOF |
0470b1e6 | 33402 | |
3fcdd07b VZ |
33403 | fi |
33404 | ||
e6cc62c6 VS |
33405 | |
33406 | ||
33407 | for ac_func in gettimeofday ftime | |
3fcdd07b | 33408 | do |
e6cc62c6 VS |
33409 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
33410 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33411 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33412 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33413 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33414 | else | |
33415 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
33416 | /* confdefs.h. */ |
33417 | _ACEOF | |
33418 | cat confdefs.h >>conftest.$ac_ext | |
33419 | cat >>conftest.$ac_ext <<_ACEOF | |
33420 | /* end confdefs.h. */ | |
eea650d8 VS |
33421 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33422 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33423 | #define $ac_func innocuous_$ac_func | |
33424 | ||
3fcdd07b | 33425 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
33426 | which can conflict with char $ac_func (); below. |
33427 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33428 | <limits.h> exists even on freestanding compilers. */ | |
eea650d8 | 33429 | |
e6cc62c6 VS |
33430 | #ifdef __STDC__ |
33431 | # include <limits.h> | |
33432 | #else | |
33433 | # include <assert.h> | |
33434 | #endif | |
eea650d8 VS |
33435 | |
33436 | #undef $ac_func | |
33437 | ||
3fcdd07b | 33438 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
33439 | #ifdef __cplusplus |
33440 | extern "C" | |
33441 | { | |
33442 | #endif | |
3fcdd07b | 33443 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
33444 | builtin and then its argument prototype would still apply. */ |
33445 | char $ac_func (); | |
3fcdd07b VZ |
33446 | /* The GNU C library defines this for functions which it implements |
33447 | to always fail with ENOSYS. Some functions are actually named | |
33448 | something starting with __ and the normal name is an alias. */ | |
33449 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33450 | choke me | |
33451 | #else | |
e6cc62c6 VS |
33452 | char (*f) () = $ac_func; |
33453 | #endif | |
33454 | #ifdef __cplusplus | |
33455 | } | |
3fcdd07b VZ |
33456 | #endif |
33457 | ||
e6cc62c6 VS |
33458 | int |
33459 | main () | |
33460 | { | |
33461 | return f != $ac_func; | |
33462 | ; | |
33463 | return 0; | |
33464 | } | |
33465 | _ACEOF | |
33466 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33467 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 33468 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 33469 | ac_status=$? |
eea650d8 VS |
33470 | grep -v '^ *+' conftest.er1 >conftest.err |
33471 | rm -f conftest.er1 | |
33472 | cat conftest.err >&5 | |
e6cc62c6 VS |
33473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33474 | (exit $ac_status); } && | |
eea650d8 VS |
33475 | { ac_try='test -z "$ac_c_werror_flag" |
33476 | || test ! -s conftest.err' | |
33477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33478 | (eval $ac_try) 2>&5 | |
33479 | ac_status=$? | |
33480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33481 | (exit $ac_status); }; } && | |
33482 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
33483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33484 | (eval $ac_try) 2>&5 | |
33485 | ac_status=$? | |
33486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33487 | (exit $ac_status); }; }; then | |
33488 | eval "$as_ac_var=yes" | |
33489 | else | |
33490 | echo "$as_me: failed program was:" >&5 | |
33491 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33492 | ||
33493 | eval "$as_ac_var=no" | |
33494 | fi | |
eea650d8 VS |
33495 | rm -f conftest.err conftest.$ac_objext \ |
33496 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
33497 | fi |
33498 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33499 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33500 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33501 | cat >>confdefs.h <<_ACEOF | |
33502 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33503 | _ACEOF | |
3fcdd07b | 33504 | break |
3fcdd07b VZ |
33505 | fi |
33506 | done | |
33507 | ||
698dcdb6 | 33508 | |
8284b0c5 | 33509 | if test "$ac_cv_func_gettimeofday" = "yes"; then |
e6cc62c6 VS |
33510 | echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5 |
33511 | echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6 | |
33512 | if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then | |
33513 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33514 | else | |
33515 | ||
33516 | ||
33517 | ||
33518 | ac_ext=cc | |
5c6fa7d2 | 33519 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
33520 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
33521 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
33522 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
52127426 | 33523 | |
8284b0c5 | 33524 | |
e6cc62c6 | 33525 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
33526 | /* confdefs.h. */ |
33527 | _ACEOF | |
33528 | cat confdefs.h >>conftest.$ac_ext | |
33529 | cat >>conftest.$ac_ext <<_ACEOF | |
33530 | /* end confdefs.h. */ | |
afc31813 VZ |
33531 | |
33532 | #include <sys/time.h> | |
33533 | #include <unistd.h> | |
e6cc62c6 VS |
33534 | |
33535 | int | |
33536 | main () | |
33537 | { | |
afc31813 VZ |
33538 | |
33539 | struct timeval tv; | |
776862b4 | 33540 | gettimeofday(&tv, NULL); |
e6cc62c6 VS |
33541 | |
33542 | ; | |
33543 | return 0; | |
33544 | } | |
33545 | _ACEOF | |
33546 | rm -f conftest.$ac_objext | |
33547 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 33548 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 33549 | ac_status=$? |
eea650d8 VS |
33550 | grep -v '^ *+' conftest.er1 >conftest.err |
33551 | rm -f conftest.er1 | |
33552 | cat conftest.err >&5 | |
e6cc62c6 VS |
33553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33554 | (exit $ac_status); } && | |
eea650d8 VS |
33555 | { ac_try='test -z "$ac_cxx_werror_flag" |
33556 | || test ! -s conftest.err' | |
33557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33558 | (eval $ac_try) 2>&5 | |
33559 | ac_status=$? | |
33560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33561 | (exit $ac_status); }; } && | |
33562 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 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); }; }; then | |
afc31813 | 33568 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a | 33569 | else |
e6cc62c6 VS |
33570 | echo "$as_me: failed program was:" >&5 |
33571 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33572 | ||
33573 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
33574 | /* confdefs.h. */ |
33575 | _ACEOF | |
33576 | cat confdefs.h >>conftest.$ac_ext | |
33577 | cat >>conftest.$ac_ext <<_ACEOF | |
33578 | /* end confdefs.h. */ | |
afc31813 VZ |
33579 | |
33580 | #include <sys/time.h> | |
33581 | #include <unistd.h> | |
e6cc62c6 VS |
33582 | |
33583 | int | |
33584 | main () | |
33585 | { | |
afc31813 VZ |
33586 | |
33587 | struct timeval tv; | |
33588 | gettimeofday(&tv); | |
e6cc62c6 VS |
33589 | |
33590 | ; | |
33591 | return 0; | |
33592 | } | |
33593 | _ACEOF | |
33594 | rm -f conftest.$ac_objext | |
33595 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 33596 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 33597 | ac_status=$? |
eea650d8 VS |
33598 | grep -v '^ *+' conftest.er1 >conftest.err |
33599 | rm -f conftest.er1 | |
33600 | cat conftest.err >&5 | |
e6cc62c6 VS |
33601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33602 | (exit $ac_status); } && | |
eea650d8 VS |
33603 | { ac_try='test -z "$ac_cxx_werror_flag" |
33604 | || test ! -s conftest.err' | |
33605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33606 | (eval $ac_try) 2>&5 | |
33607 | ac_status=$? | |
33608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33609 | (exit $ac_status); }; } && | |
33610 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
33611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33612 | (eval $ac_try) 2>&5 | |
33613 | ac_status=$? | |
33614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33615 | (exit $ac_status); }; }; then | |
afc31813 | 33616 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a | 33617 | else |
e6cc62c6 VS |
33618 | echo "$as_me: failed program was:" >&5 |
33619 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33620 | ||
33621 | ||
33622 | { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5 | |
33623 | echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;} | |
776862b4 | 33624 | wx_cv_func_gettimeofday_has_2_args=unknown |
e6cc62c6 VS |
33625 | |
33626 | ||
10f2d63a | 33627 | fi |
eea650d8 | 33628 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 33629 | |
10f2d63a | 33630 | fi |
eea650d8 | 33631 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
afc31813 | 33632 | ac_ext=c |
10f2d63a | 33633 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
33634 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
33635 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
33636 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 | 33637 | |
a0b9e27f | 33638 | |
e6cc62c6 VS |
33639 | fi |
33640 | echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5 | |
33641 | echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6 | |
c63c7106 | 33642 | |
afc31813 | 33643 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
e6cc62c6 | 33644 | cat >>confdefs.h <<\_ACEOF |
afc31813 | 33645 | #define WX_GETTIMEOFDAY_NO_TZ 1 |
e6cc62c6 | 33646 | _ACEOF |
afc31813 VZ |
33647 | |
33648 | fi | |
33649 | fi | |
33650 | ||
afc31813 VZ |
33651 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" |
33652 | fi | |
33653 | ||
8284b0c5 | 33654 | |
52127426 | 33655 | if test "$wxUSE_SOCKETS" = "yes"; then |
6c657b52 | 33656 | if test "$wxUSE_MGL" = "1"; then |
e6cc62c6 VS |
33657 | { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5 |
33658 | echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;} | |
6c657b52 VS |
33659 | wxUSE_SOCKETS="no" |
33660 | fi | |
3879ecda VZ |
33661 | if test "$wxUSE_COCOA" = "1"; then |
33662 | { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under Cocoa... disabled" >&5 | |
33663 | echo "$as_me: WARNING: wxSocket not yet supported under Cocoa... disabled" >&2;} | |
33664 | wxUSE_SOCKETS="no" | |
33665 | fi | |
0feee163 | 33666 | fi |
b089607b | 33667 | |
0feee163 VZ |
33668 | if test "$wxUSE_SOCKETS" = "yes"; then |
33669 | if test "$TOOLKIT" != "MSW"; then | |
e6cc62c6 VS |
33670 | echo "$as_me:$LINENO: checking for socket" >&5 |
33671 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 | |
33672 | if test "${ac_cv_func_socket+set}" = set; then | |
33673 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33674 | else | |
33675 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
33676 | /* confdefs.h. */ |
33677 | _ACEOF | |
33678 | cat confdefs.h >>conftest.$ac_ext | |
33679 | cat >>conftest.$ac_ext <<_ACEOF | |
33680 | /* end confdefs.h. */ | |
eea650d8 VS |
33681 | /* Define socket to an innocuous variant, in case <limits.h> declares socket. |
33682 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33683 | #define socket innocuous_socket | |
33684 | ||
c63c7106 | 33685 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
33686 | which can conflict with char socket (); below. |
33687 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33688 | <limits.h> exists even on freestanding compilers. */ | |
eea650d8 | 33689 | |
e6cc62c6 VS |
33690 | #ifdef __STDC__ |
33691 | # include <limits.h> | |
33692 | #else | |
33693 | # include <assert.h> | |
33694 | #endif | |
eea650d8 VS |
33695 | |
33696 | #undef socket | |
33697 | ||
c63c7106 | 33698 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
33699 | #ifdef __cplusplus |
33700 | extern "C" | |
33701 | { | |
33702 | #endif | |
c63c7106 | 33703 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
33704 | builtin and then its argument prototype would still apply. */ |
33705 | char socket (); | |
c63c7106 VZ |
33706 | /* The GNU C library defines this for functions which it implements |
33707 | to always fail with ENOSYS. Some functions are actually named | |
33708 | something starting with __ and the normal name is an alias. */ | |
33709 | #if defined (__stub_socket) || defined (__stub___socket) | |
33710 | choke me | |
33711 | #else | |
e6cc62c6 VS |
33712 | char (*f) () = socket; |
33713 | #endif | |
33714 | #ifdef __cplusplus | |
33715 | } | |
c63c7106 VZ |
33716 | #endif |
33717 | ||
e6cc62c6 VS |
33718 | int |
33719 | main () | |
33720 | { | |
33721 | return f != socket; | |
33722 | ; | |
33723 | return 0; | |
33724 | } | |
33725 | _ACEOF | |
33726 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33727 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 33728 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 33729 | ac_status=$? |
eea650d8 VS |
33730 | grep -v '^ *+' conftest.er1 >conftest.err |
33731 | rm -f conftest.er1 | |
33732 | cat conftest.err >&5 | |
e6cc62c6 VS |
33733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33734 | (exit $ac_status); } && | |
eea650d8 VS |
33735 | { ac_try='test -z "$ac_c_werror_flag" |
33736 | || test ! -s conftest.err' | |
33737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33738 | (eval $ac_try) 2>&5 | |
33739 | ac_status=$? | |
33740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33741 | (exit $ac_status); }; } && | |
33742 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 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); }; }; then | |
33748 | ac_cv_func_socket=yes | |
33749 | else | |
33750 | echo "$as_me: failed program was:" >&5 | |
33751 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33752 | ||
33753 | ac_cv_func_socket=no | |
33754 | fi | |
eea650d8 VS |
33755 | rm -f conftest.err conftest.$ac_objext \ |
33756 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
33757 | fi |
33758 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 | |
33759 | echo "${ECHO_T}$ac_cv_func_socket" >&6 | |
33760 | if test $ac_cv_func_socket = yes; then | |
c63c7106 VZ |
33761 | : |
33762 | else | |
0e012a93 VZ |
33763 | |
33764 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 | |
e6cc62c6 VS |
33765 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
33766 | if test "${ac_cv_lib_socket_socket+set}" = set; then | |
33767 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c63c7106 | 33768 | else |
e6cc62c6 | 33769 | ac_check_lib_save_LIBS=$LIBS |
c63c7106 | 33770 | LIBS="-lsocket $LIBS" |
e6cc62c6 | 33771 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
33772 | /* confdefs.h. */ |
33773 | _ACEOF | |
33774 | cat confdefs.h >>conftest.$ac_ext | |
33775 | cat >>conftest.$ac_ext <<_ACEOF | |
33776 | /* end confdefs.h. */ | |
33777 | ||
c63c7106 | 33778 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
33779 | #ifdef __cplusplus |
33780 | extern "C" | |
33781 | #endif | |
c63c7106 | 33782 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
33783 | builtin and then its argument prototype would still apply. */ |
33784 | char socket (); | |
33785 | int | |
33786 | main () | |
33787 | { | |
33788 | socket (); | |
33789 | ; | |
33790 | return 0; | |
33791 | } | |
33792 | _ACEOF | |
33793 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33794 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 33795 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 33796 | ac_status=$? |
eea650d8 VS |
33797 | grep -v '^ *+' conftest.er1 >conftest.err |
33798 | rm -f conftest.er1 | |
33799 | cat conftest.err >&5 | |
e6cc62c6 VS |
33800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33801 | (exit $ac_status); } && | |
eea650d8 VS |
33802 | { ac_try='test -z "$ac_c_werror_flag" |
33803 | || test ! -s conftest.err' | |
33804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33805 | (eval $ac_try) 2>&5 | |
33806 | ac_status=$? | |
33807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33808 | (exit $ac_status); }; } && | |
33809 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
33810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33811 | (eval $ac_try) 2>&5 | |
33812 | ac_status=$? | |
33813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33814 | (exit $ac_status); }; }; then | |
33815 | ac_cv_lib_socket_socket=yes | |
33816 | else | |
33817 | echo "$as_me: failed program was:" >&5 | |
33818 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33819 | ||
33820 | ac_cv_lib_socket_socket=no | |
33821 | fi | |
eea650d8 VS |
33822 | rm -f conftest.err conftest.$ac_objext \ |
33823 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
33824 | LIBS=$ac_check_lib_save_LIBS |
33825 | fi | |
33826 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 | |
33827 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 | |
33828 | if test $ac_cv_lib_socket_socket = yes; then | |
d558c907 | 33829 | if test "$INET_LINK" != " -lsocket"; then |
0e012a93 VZ |
33830 | INET_LINK="$INET_LINK -lsocket" |
33831 | fi | |
c63c7106 | 33832 | else |
afc31813 | 33833 | |
0e012a93 | 33834 | { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5 |
e6cc62c6 | 33835 | echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;} |
0e012a93 | 33836 | wxUSE_SOCKETS=no |
e6cc62c6 VS |
33837 | |
33838 | ||
6232543b | 33839 | fi |
b089607b | 33840 | |
e6cc62c6 | 33841 | |
0e012a93 | 33842 | |
1e487827 | 33843 | fi |
afc31813 | 33844 | |
3a922bb4 | 33845 | fi |
0feee163 | 33846 | fi |
51a9faba | 33847 | |
0feee163 VZ |
33848 | if test "$wxUSE_SOCKETS" = "yes" ; then |
33849 | if test "$TOOLKIT" != "MSW"; then | |
e6cc62c6 VS |
33850 | echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5 |
33851 | echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6 | |
33852 | if test "${wx_cv_type_getsockname3+set}" = set; then | |
33853 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 33854 | else |
e6cc62c6 VS |
33855 | |
33856 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
33857 | /* confdefs.h. */ |
33858 | _ACEOF | |
33859 | cat confdefs.h >>conftest.$ac_ext | |
33860 | cat >>conftest.$ac_ext <<_ACEOF | |
33861 | /* end confdefs.h. */ | |
51a9faba | 33862 | |
3a922bb4 RL |
33863 | #include <sys/types.h> |
33864 | #include <sys/socket.h> | |
e6cc62c6 VS |
33865 | |
33866 | int | |
33867 | main () | |
33868 | { | |
51a9faba | 33869 | |
3a922bb4 RL |
33870 | socklen_t len; |
33871 | getsockname(0, 0, &len); | |
e6cc62c6 VS |
33872 | |
33873 | ; | |
33874 | return 0; | |
33875 | } | |
33876 | _ACEOF | |
33877 | rm -f conftest.$ac_objext | |
33878 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 33879 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 33880 | ac_status=$? |
eea650d8 VS |
33881 | grep -v '^ *+' conftest.er1 >conftest.err |
33882 | rm -f conftest.er1 | |
33883 | cat conftest.err >&5 | |
e6cc62c6 VS |
33884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33885 | (exit $ac_status); } && | |
eea650d8 VS |
33886 | { ac_try='test -z "$ac_c_werror_flag" |
33887 | || test ! -s conftest.err' | |
33888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33889 | (eval $ac_try) 2>&5 | |
33890 | ac_status=$? | |
33891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33892 | (exit $ac_status); }; } && | |
33893 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
33894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33895 | (eval $ac_try) 2>&5 | |
33896 | ac_status=$? | |
33897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33898 | (exit $ac_status); }; }; then | |
51a9faba | 33899 | wx_cv_type_getsockname3=socklen_t |
afc31813 | 33900 | else |
e6cc62c6 VS |
33901 | echo "$as_me: failed program was:" >&5 |
33902 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33903 | ||
33904 | ||
9711d31e GD |
33905 | CFLAGS_OLD="$CFLAGS" |
33906 | if test "$GCC" = yes ; then | |
33907 | CFLAGS="$CFLAGS -Werror" | |
33908 | fi | |
33909 | ||
e6cc62c6 | 33910 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
33911 | /* confdefs.h. */ |
33912 | _ACEOF | |
33913 | cat confdefs.h >>conftest.$ac_ext | |
33914 | cat >>conftest.$ac_ext <<_ACEOF | |
33915 | /* end confdefs.h. */ | |
51a9faba | 33916 | |
9711d31e GD |
33917 | #include <sys/types.h> |
33918 | #include <sys/socket.h> | |
e6cc62c6 VS |
33919 | |
33920 | int | |
33921 | main () | |
33922 | { | |
51a9faba | 33923 | |
9711d31e GD |
33924 | size_t len; |
33925 | getsockname(0, 0, &len); | |
e6cc62c6 VS |
33926 | |
33927 | ; | |
33928 | return 0; | |
33929 | } | |
33930 | _ACEOF | |
33931 | rm -f conftest.$ac_objext | |
33932 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 33933 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 33934 | ac_status=$? |
eea650d8 VS |
33935 | grep -v '^ *+' conftest.er1 >conftest.err |
33936 | rm -f conftest.er1 | |
33937 | cat conftest.err >&5 | |
e6cc62c6 VS |
33938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33939 | (exit $ac_status); } && | |
eea650d8 VS |
33940 | { ac_try='test -z "$ac_c_werror_flag" |
33941 | || test ! -s conftest.err' | |
33942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33943 | (eval $ac_try) 2>&5 | |
33944 | ac_status=$? | |
33945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33946 | (exit $ac_status); }; } && | |
33947 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
33948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33949 | (eval $ac_try) 2>&5 | |
33950 | ac_status=$? | |
33951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33952 | (exit $ac_status); }; }; then | |
51a9faba | 33953 | wx_cv_type_getsockname3=size_t |
afc31813 | 33954 | else |
e6cc62c6 VS |
33955 | echo "$as_me: failed program was:" >&5 |
33956 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33957 | ||
33958 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
33959 | /* confdefs.h. */ |
33960 | _ACEOF | |
33961 | cat confdefs.h >>conftest.$ac_ext | |
33962 | cat >>conftest.$ac_ext <<_ACEOF | |
33963 | /* end confdefs.h. */ | |
51a9faba | 33964 | |
9711d31e GD |
33965 | #include <sys/types.h> |
33966 | #include <sys/socket.h> | |
e6cc62c6 VS |
33967 | |
33968 | int | |
33969 | main () | |
33970 | { | |
51a9faba | 33971 | |
9711d31e GD |
33972 | int len; |
33973 | getsockname(0, 0, &len); | |
e6cc62c6 VS |
33974 | |
33975 | ; | |
33976 | return 0; | |
33977 | } | |
33978 | _ACEOF | |
33979 | rm -f conftest.$ac_objext | |
33980 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 33981 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 33982 | ac_status=$? |
eea650d8 VS |
33983 | grep -v '^ *+' conftest.er1 >conftest.err |
33984 | rm -f conftest.er1 | |
33985 | cat conftest.err >&5 | |
e6cc62c6 VS |
33986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33987 | (exit $ac_status); } && | |
eea650d8 VS |
33988 | { ac_try='test -z "$ac_c_werror_flag" |
33989 | || test ! -s conftest.err' | |
33990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33991 | (eval $ac_try) 2>&5 | |
33992 | ac_status=$? | |
33993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33994 | (exit $ac_status); }; } && | |
33995 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
33996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33997 | (eval $ac_try) 2>&5 | |
33998 | ac_status=$? | |
33999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34000 | (exit $ac_status); }; }; then | |
51a9faba | 34001 | wx_cv_type_getsockname3=int |
afc31813 | 34002 | else |
e6cc62c6 VS |
34003 | echo "$as_me: failed program was:" >&5 |
34004 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34005 | ||
34006 | wx_cv_type_getsockname3=unknown | |
34007 | ||
afc31813 | 34008 | fi |
eea650d8 | 34009 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 34010 | |
afc31813 | 34011 | fi |
eea650d8 | 34012 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
9711d31e GD |
34013 | |
34014 | CFLAGS="$CFLAGS_OLD" | |
e6cc62c6 VS |
34015 | |
34016 | ||
247f5006 | 34017 | fi |
eea650d8 | 34018 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 34019 | |
e6cc62c6 VS |
34020 | fi |
34021 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5 | |
34022 | echo "${ECHO_T}$wx_cv_type_getsockname3" >&6 | |
51a9faba | 34023 | |
3a922bb4 RL |
34024 | if test "$wx_cv_type_getsockname3" = "unknown"; then |
34025 | wxUSE_SOCKETS=no | |
e6cc62c6 VS |
34026 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 |
34027 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
3a922bb4 | 34028 | else |
e6cc62c6 | 34029 | cat >>confdefs.h <<_ACEOF |
51a9faba | 34030 | #define SOCKLEN_T $wx_cv_type_getsockname3 |
e6cc62c6 | 34031 | _ACEOF |
51a9faba | 34032 | |
3a922bb4 | 34033 | fi |
51a9faba VZ |
34034 | fi |
34035 | fi | |
afc31813 | 34036 | |
51a9faba | 34037 | if test "$wxUSE_SOCKETS" = "yes" ; then |
e6cc62c6 | 34038 | cat >>confdefs.h <<\_ACEOF |
afc31813 | 34039 | #define wxUSE_SOCKETS 1 |
e6cc62c6 | 34040 | _ACEOF |
afc31813 | 34041 | |
70f7a477 | 34042 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
34043 | fi |
34044 | ||
3879ecda VZ |
34045 | if test "$wxUSE_PROTOCOL" = "yes"; then |
34046 | if test "$wxUSE_SOCKETS" != "yes"; then | |
34047 | { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5 | |
34048 | echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;} | |
34049 | wxUSE_PROTOCOL=no | |
34050 | fi | |
34051 | fi | |
34052 | ||
34053 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
34054 | cat >>confdefs.h <<\_ACEOF | |
34055 | #define wxUSE_PROTOCOL 1 | |
34056 | _ACEOF | |
34057 | ||
34058 | ||
34059 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then | |
34060 | cat >>confdefs.h <<\_ACEOF | |
34061 | #define wxUSE_PROTOCOL_HTTP 1 | |
34062 | _ACEOF | |
34063 | ||
34064 | fi | |
34065 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
34066 | cat >>confdefs.h <<\_ACEOF | |
34067 | #define wxUSE_PROTOCOL_FTP 1 | |
34068 | _ACEOF | |
34069 | ||
34070 | fi | |
34071 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
34072 | cat >>confdefs.h <<\_ACEOF | |
34073 | #define wxUSE_PROTOCOL_FILE 1 | |
34074 | _ACEOF | |
34075 | ||
34076 | fi | |
34077 | else | |
34078 | if test "$wxUSE_FS_INET" = "yes"; then | |
34079 | { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5 | |
34080 | echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;} | |
34081 | wxUSE_FS_INET="no" | |
34082 | fi | |
34083 | fi | |
34084 | ||
34085 | if test "$wxUSE_URL" = "yes"; then | |
34086 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
34087 | { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5 | |
34088 | echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;} | |
34089 | wxUSE_URL=no | |
34090 | fi | |
34091 | if test "$wxUSE_URL" = "yes"; then | |
34092 | cat >>confdefs.h <<\_ACEOF | |
34093 | #define wxUSE_URL 1 | |
34094 | _ACEOF | |
34095 | ||
34096 | fi | |
34097 | fi | |
34098 | ||
34099 | if test "$wxUSE_FS_INET" = "yes"; then | |
34100 | cat >>confdefs.h <<\_ACEOF | |
34101 | #define wxUSE_FS_INET 1 | |
34102 | _ACEOF | |
34103 | ||
34104 | fi | |
34105 | ||
8284b0c5 | 34106 | |
dc3d889d VZ |
34107 | if test "$wxUSE_GUI" = "yes"; then |
34108 | ||
ac0c4cc3 | 34109 | if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then |
e6cc62c6 VS |
34110 | { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5 |
34111 | echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;} | |
156b2523 | 34112 | wxUSE_JOYSTICK=no |
156b2523 GD |
34113 | fi |
34114 | ||
131f235d | 34115 | if test "$TOOLKIT" != "MSW"; then |
3a922bb4 | 34116 | if test "$wxUSE_JOYSTICK" = "yes"; then |
e6cc62c6 VS |
34117 | |
34118 | for ac_header in linux/joystick.h | |
10f2d63a | 34119 | do |
e6cc62c6 VS |
34120 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
34121 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
34122 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
34123 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
34124 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
34125 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34126 | fi | |
34127 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
34128 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
34129 | else | |
34130 | # Is the header compilable? | |
34131 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
34132 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
34133 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
34134 | /* confdefs.h. */ |
34135 | _ACEOF | |
34136 | cat confdefs.h >>conftest.$ac_ext | |
34137 | cat >>conftest.$ac_ext <<_ACEOF | |
34138 | /* end confdefs.h. */ | |
34139 | $ac_includes_default | |
34140 | #include <$ac_header> | |
34141 | _ACEOF | |
34142 | rm -f conftest.$ac_objext | |
34143 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 34144 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 34145 | ac_status=$? |
eea650d8 VS |
34146 | grep -v '^ *+' conftest.er1 >conftest.err |
34147 | rm -f conftest.er1 | |
34148 | cat conftest.err >&5 | |
e6cc62c6 VS |
34149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34150 | (exit $ac_status); } && | |
eea650d8 VS |
34151 | { ac_try='test -z "$ac_c_werror_flag" |
34152 | || test ! -s conftest.err' | |
34153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34154 | (eval $ac_try) 2>&5 | |
34155 | ac_status=$? | |
34156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34157 | (exit $ac_status); }; } && | |
34158 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
34159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34160 | (eval $ac_try) 2>&5 | |
34161 | ac_status=$? | |
34162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34163 | (exit $ac_status); }; }; then | |
34164 | ac_header_compiler=yes | |
34165 | else | |
34166 | echo "$as_me: failed program was:" >&5 | |
34167 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34168 | ||
34169 | ac_header_compiler=no | |
34170 | fi | |
eea650d8 | 34171 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
34172 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
34173 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
34174 | ||
34175 | # Is the header present? | |
34176 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
34177 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
34178 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
34179 | /* confdefs.h. */ |
34180 | _ACEOF | |
34181 | cat confdefs.h >>conftest.$ac_ext | |
34182 | cat >>conftest.$ac_ext <<_ACEOF | |
34183 | /* end confdefs.h. */ | |
34184 | #include <$ac_header> | |
34185 | _ACEOF | |
34186 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
34187 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
34188 | ac_status=$? | |
34189 | grep -v '^ *+' conftest.er1 >conftest.err | |
34190 | rm -f conftest.er1 | |
34191 | cat conftest.err >&5 | |
34192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34193 | (exit $ac_status); } >/dev/null; then | |
34194 | if test -s conftest.err; then | |
34195 | ac_cpp_err=$ac_c_preproc_warn_flag | |
eea650d8 | 34196 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
34197 | else |
34198 | ac_cpp_err= | |
34199 | fi | |
34200 | else | |
34201 | ac_cpp_err=yes | |
34202 | fi | |
34203 | if test -z "$ac_cpp_err"; then | |
34204 | ac_header_preproc=yes | |
34205 | else | |
34206 | echo "$as_me: failed program was:" >&5 | |
34207 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34208 | ||
34209 | ac_header_preproc=no | |
34210 | fi | |
34211 | rm -f conftest.err conftest.$ac_ext | |
34212 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
34213 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
34214 | ||
34215 | # So? What about this header? | |
eea650d8 VS |
34216 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
34217 | yes:no: ) | |
e6cc62c6 VS |
34218 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
34219 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
eea650d8 VS |
34220 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
34221 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
34222 | ac_header_preproc=yes | |
e6cc62c6 | 34223 | ;; |
eea650d8 | 34224 | no:yes:* ) |
e6cc62c6 VS |
34225 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
34226 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
eea650d8 VS |
34227 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
34228 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
34229 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
34230 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
34231 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
34232 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
34233 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
34234 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
eea650d8 VS |
34235 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
34236 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
34237 | ( |
34238 | cat <<\_ASBOX | |
eea650d8 VS |
34239 | ## ----------------------------------------- ## |
34240 | ## Report this to wx-dev@lists.wxwindows.org ## | |
34241 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
34242 | _ASBOX |
34243 | ) | | |
34244 | sed "s/^/$as_me: WARNING: /" >&2 | |
34245 | ;; | |
34246 | esac | |
34247 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
34248 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
34249 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
34250 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34251 | else | |
eea650d8 | 34252 | eval "$as_ac_Header=\$ac_header_preproc" |
247f5006 | 34253 | fi |
e6cc62c6 VS |
34254 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
34255 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
34256 | ||
10f2d63a | 34257 | fi |
e6cc62c6 VS |
34258 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
34259 | cat >>confdefs.h <<_ACEOF | |
34260 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
34261 | _ACEOF | |
34262 | ||
247f5006 | 34263 | fi |
e6cc62c6 | 34264 | |
10f2d63a VZ |
34265 | done |
34266 | ||
3a922bb4 RL |
34267 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
34268 | wxUSE_JOYSTICK=no | |
e6cc62c6 VS |
34269 | { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5 |
34270 | echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;} | |
3a922bb4 RL |
34271 | fi |
34272 | fi | |
34273 | fi | |
b089607b | 34274 | |
3a922bb4 | 34275 | if test "$wxUSE_JOYSTICK" = "yes"; then |
e6cc62c6 | 34276 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 34277 | #define wxUSE_JOYSTICK 1 |
e6cc62c6 | 34278 | _ACEOF |
10f2d63a | 34279 | |
3a922bb4 RL |
34280 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
34281 | fi | |
dc3d889d VZ |
34282 | fi |
34283 | ||
8284b0c5 | 34284 | |
73d617c9 | 34285 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then |
b089607b | 34286 | |
3a922bb4 RL |
34287 | HAVE_DL_FUNCS=0 |
34288 | HAVE_SHL_FUNCS=0 | |
0b9ab0bd | 34289 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then |
3a922bb4 RL |
34290 | if test "$USE_DARWIN" = 1; then |
34291 | HAVE_DL_FUNCS=1 | |
34292 | else | |
e6cc62c6 VS |
34293 | |
34294 | for ac_func in dlopen | |
10f2d63a | 34295 | do |
e6cc62c6 VS |
34296 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
34297 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34298 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34299 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34300 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34301 | else | |
34302 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
34303 | /* confdefs.h. */ |
34304 | _ACEOF | |
34305 | cat confdefs.h >>conftest.$ac_ext | |
34306 | cat >>conftest.$ac_ext <<_ACEOF | |
34307 | /* end confdefs.h. */ | |
eea650d8 VS |
34308 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34309 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34310 | #define $ac_func innocuous_$ac_func | |
34311 | ||
10f2d63a | 34312 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
34313 | which can conflict with char $ac_func (); below. |
34314 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34315 | <limits.h> exists even on freestanding compilers. */ | |
eea650d8 | 34316 | |
e6cc62c6 VS |
34317 | #ifdef __STDC__ |
34318 | # include <limits.h> | |
34319 | #else | |
34320 | # include <assert.h> | |
34321 | #endif | |
eea650d8 VS |
34322 | |
34323 | #undef $ac_func | |
34324 | ||
10f2d63a | 34325 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
34326 | #ifdef __cplusplus |
34327 | extern "C" | |
34328 | { | |
34329 | #endif | |
10f2d63a | 34330 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
34331 | builtin and then its argument prototype would still apply. */ |
34332 | char $ac_func (); | |
10f2d63a VZ |
34333 | /* The GNU C library defines this for functions which it implements |
34334 | to always fail with ENOSYS. Some functions are actually named | |
34335 | something starting with __ and the normal name is an alias. */ | |
34336 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34337 | choke me | |
34338 | #else | |
e6cc62c6 VS |
34339 | char (*f) () = $ac_func; |
34340 | #endif | |
34341 | #ifdef __cplusplus | |
34342 | } | |
10f2d63a VZ |
34343 | #endif |
34344 | ||
e6cc62c6 VS |
34345 | int |
34346 | main () | |
34347 | { | |
34348 | return f != $ac_func; | |
34349 | ; | |
34350 | return 0; | |
34351 | } | |
34352 | _ACEOF | |
34353 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34354 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 34355 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 34356 | ac_status=$? |
eea650d8 VS |
34357 | grep -v '^ *+' conftest.er1 >conftest.err |
34358 | rm -f conftest.er1 | |
34359 | cat conftest.err >&5 | |
e6cc62c6 VS |
34360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34361 | (exit $ac_status); } && | |
eea650d8 VS |
34362 | { ac_try='test -z "$ac_c_werror_flag" |
34363 | || test ! -s conftest.err' | |
34364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34365 | (eval $ac_try) 2>&5 | |
34366 | ac_status=$? | |
34367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34368 | (exit $ac_status); }; } && | |
34369 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
34370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34371 | (eval $ac_try) 2>&5 | |
34372 | ac_status=$? | |
34373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34374 | (exit $ac_status); }; }; then | |
34375 | eval "$as_ac_var=yes" | |
34376 | else | |
34377 | echo "$as_me: failed program was:" >&5 | |
34378 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34379 | ||
34380 | eval "$as_ac_var=no" | |
34381 | fi | |
eea650d8 VS |
34382 | rm -f conftest.err conftest.$ac_objext \ |
34383 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
34384 | fi |
34385 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34386 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34387 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34388 | cat >>confdefs.h <<_ACEOF | |
34389 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34390 | _ACEOF | |
34391 | ||
34392 | cat >>confdefs.h <<\_ACEOF | |
10f2d63a | 34393 | #define HAVE_DLOPEN 1 |
e6cc62c6 | 34394 | _ACEOF |
10f2d63a | 34395 | |
3a922bb4 | 34396 | HAVE_DL_FUNCS=1 |
e6cc62c6 | 34397 | |
10f2d63a | 34398 | else |
e6cc62c6 VS |
34399 | |
34400 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
34401 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
34402 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
34403 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 34404 | else |
e6cc62c6 | 34405 | ac_check_lib_save_LIBS=$LIBS |
10f2d63a | 34406 | LIBS="-ldl $LIBS" |
e6cc62c6 | 34407 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
34408 | /* confdefs.h. */ |
34409 | _ACEOF | |
34410 | cat confdefs.h >>conftest.$ac_ext | |
34411 | cat >>conftest.$ac_ext <<_ACEOF | |
34412 | /* end confdefs.h. */ | |
34413 | ||
10f2d63a | 34414 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
34415 | #ifdef __cplusplus |
34416 | extern "C" | |
34417 | #endif | |
10f2d63a | 34418 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
34419 | builtin and then its argument prototype would still apply. */ |
34420 | char dlopen (); | |
34421 | int | |
34422 | main () | |
34423 | { | |
34424 | dlopen (); | |
34425 | ; | |
34426 | return 0; | |
34427 | } | |
34428 | _ACEOF | |
34429 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34430 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 34431 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 34432 | ac_status=$? |
eea650d8 VS |
34433 | grep -v '^ *+' conftest.er1 >conftest.err |
34434 | rm -f conftest.er1 | |
34435 | cat conftest.err >&5 | |
e6cc62c6 VS |
34436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34437 | (exit $ac_status); } && | |
eea650d8 VS |
34438 | { ac_try='test -z "$ac_c_werror_flag" |
34439 | || test ! -s conftest.err' | |
34440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34441 | (eval $ac_try) 2>&5 | |
34442 | ac_status=$? | |
34443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34444 | (exit $ac_status); }; } && | |
34445 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
34446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34447 | (eval $ac_try) 2>&5 | |
34448 | ac_status=$? | |
34449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34450 | (exit $ac_status); }; }; then | |
34451 | ac_cv_lib_dl_dlopen=yes | |
34452 | else | |
34453 | echo "$as_me: failed program was:" >&5 | |
34454 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34455 | ||
34456 | ac_cv_lib_dl_dlopen=no | |
34457 | fi | |
eea650d8 VS |
34458 | rm -f conftest.err conftest.$ac_objext \ |
34459 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
34460 | LIBS=$ac_check_lib_save_LIBS |
34461 | fi | |
34462 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
34463 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
34464 | if test $ac_cv_lib_dl_dlopen = yes; then | |
34465 | ||
34466 | cat >>confdefs.h <<\_ACEOF | |
10f2d63a | 34467 | #define HAVE_DLOPEN 1 |
e6cc62c6 | 34468 | _ACEOF |
10f2d63a | 34469 | |
3a922bb4 | 34470 | HAVE_DL_FUNCS=1 |
3d63bc3a | 34471 | DL_LINK=" -ldl$DL_LINK" |
e6cc62c6 | 34472 | |
10f2d63a | 34473 | else |
10f2d63a | 34474 | |
e6cc62c6 VS |
34475 | |
34476 | for ac_func in shl_load | |
10f2d63a | 34477 | do |
e6cc62c6 VS |
34478 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
34479 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34480 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34481 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34482 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34483 | else | |
34484 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
34485 | /* confdefs.h. */ |
34486 | _ACEOF | |
34487 | cat confdefs.h >>conftest.$ac_ext | |
34488 | cat >>conftest.$ac_ext <<_ACEOF | |
34489 | /* end confdefs.h. */ | |
eea650d8 VS |
34490 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34491 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34492 | #define $ac_func innocuous_$ac_func | |
34493 | ||
10f2d63a | 34494 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
34495 | which can conflict with char $ac_func (); below. |
34496 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34497 | <limits.h> exists even on freestanding compilers. */ | |
eea650d8 | 34498 | |
e6cc62c6 VS |
34499 | #ifdef __STDC__ |
34500 | # include <limits.h> | |
34501 | #else | |
34502 | # include <assert.h> | |
34503 | #endif | |
eea650d8 VS |
34504 | |
34505 | #undef $ac_func | |
34506 | ||
10f2d63a | 34507 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
34508 | #ifdef __cplusplus |
34509 | extern "C" | |
34510 | { | |
34511 | #endif | |
10f2d63a | 34512 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
34513 | builtin and then its argument prototype would still apply. */ |
34514 | char $ac_func (); | |
10f2d63a VZ |
34515 | /* The GNU C library defines this for functions which it implements |
34516 | to always fail with ENOSYS. Some functions are actually named | |
34517 | something starting with __ and the normal name is an alias. */ | |
34518 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34519 | choke me | |
34520 | #else | |
e6cc62c6 VS |
34521 | char (*f) () = $ac_func; |
34522 | #endif | |
34523 | #ifdef __cplusplus | |
34524 | } | |
10f2d63a VZ |
34525 | #endif |
34526 | ||
e6cc62c6 VS |
34527 | int |
34528 | main () | |
34529 | { | |
34530 | return f != $ac_func; | |
34531 | ; | |
34532 | return 0; | |
34533 | } | |
34534 | _ACEOF | |
34535 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34536 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 34537 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 34538 | ac_status=$? |
eea650d8 VS |
34539 | grep -v '^ *+' conftest.er1 >conftest.err |
34540 | rm -f conftest.er1 | |
34541 | cat conftest.err >&5 | |
e6cc62c6 VS |
34542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34543 | (exit $ac_status); } && | |
eea650d8 VS |
34544 | { ac_try='test -z "$ac_c_werror_flag" |
34545 | || test ! -s conftest.err' | |
34546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34547 | (eval $ac_try) 2>&5 | |
34548 | ac_status=$? | |
34549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34550 | (exit $ac_status); }; } && | |
34551 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
34552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34553 | (eval $ac_try) 2>&5 | |
34554 | ac_status=$? | |
34555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34556 | (exit $ac_status); }; }; then | |
34557 | eval "$as_ac_var=yes" | |
34558 | else | |
34559 | echo "$as_me: failed program was:" >&5 | |
34560 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34561 | ||
34562 | eval "$as_ac_var=no" | |
34563 | fi | |
eea650d8 VS |
34564 | rm -f conftest.err conftest.$ac_objext \ |
34565 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
34566 | fi |
34567 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34568 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34569 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34570 | cat >>confdefs.h <<_ACEOF | |
34571 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34572 | _ACEOF | |
34573 | ||
34574 | cat >>confdefs.h <<\_ACEOF | |
10f2d63a | 34575 | #define HAVE_SHL_LOAD 1 |
e6cc62c6 | 34576 | _ACEOF |
10f2d63a | 34577 | |
3a922bb4 | 34578 | HAVE_SHL_FUNCS=1 |
e6cc62c6 | 34579 | |
10f2d63a | 34580 | else |
e6cc62c6 VS |
34581 | |
34582 | echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5 | |
34583 | echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6 | |
34584 | if test "${ac_cv_lib_shl_load_dld+set}" = set; then | |
34585 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f6bcfd97 | 34586 | else |
e6cc62c6 | 34587 | ac_check_lib_save_LIBS=$LIBS |
f6bcfd97 | 34588 | LIBS="-lshl_load $LIBS" |
e6cc62c6 | 34589 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
34590 | /* confdefs.h. */ |
34591 | _ACEOF | |
34592 | cat confdefs.h >>conftest.$ac_ext | |
34593 | cat >>conftest.$ac_ext <<_ACEOF | |
34594 | /* end confdefs.h. */ | |
34595 | ||
8284b0c5 | 34596 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
34597 | #ifdef __cplusplus |
34598 | extern "C" | |
34599 | #endif | |
f6bcfd97 | 34600 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
34601 | builtin and then its argument prototype would still apply. */ |
34602 | char dld (); | |
34603 | int | |
34604 | main () | |
34605 | { | |
34606 | dld (); | |
34607 | ; | |
34608 | return 0; | |
34609 | } | |
34610 | _ACEOF | |
34611 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34612 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 34613 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 34614 | ac_status=$? |
eea650d8 VS |
34615 | grep -v '^ *+' conftest.er1 >conftest.err |
34616 | rm -f conftest.er1 | |
34617 | cat conftest.err >&5 | |
e6cc62c6 VS |
34618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34619 | (exit $ac_status); } && | |
eea650d8 VS |
34620 | { ac_try='test -z "$ac_c_werror_flag" |
34621 | || test ! -s conftest.err' | |
34622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34623 | (eval $ac_try) 2>&5 | |
34624 | ac_status=$? | |
34625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34626 | (exit $ac_status); }; } && | |
34627 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
34628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34629 | (eval $ac_try) 2>&5 | |
34630 | ac_status=$? | |
34631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34632 | (exit $ac_status); }; }; then | |
34633 | ac_cv_lib_shl_load_dld=yes | |
34634 | else | |
34635 | echo "$as_me: failed program was:" >&5 | |
34636 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34637 | ||
34638 | ac_cv_lib_shl_load_dld=no | |
34639 | fi | |
eea650d8 VS |
34640 | rm -f conftest.err conftest.$ac_objext \ |
34641 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
34642 | LIBS=$ac_check_lib_save_LIBS |
34643 | fi | |
34644 | echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5 | |
34645 | echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6 | |
34646 | if test $ac_cv_lib_shl_load_dld = yes; then | |
f6bcfd97 | 34647 | |
3a922bb4 | 34648 | HAVE_SHL_FUNCS=1 |
3d63bc3a | 34649 | DL_LINK=" -ldld$DL_LINK" |
e6cc62c6 | 34650 | |
f6bcfd97 BP |
34651 | fi |
34652 | ||
e6cc62c6 | 34653 | |
10f2d63a VZ |
34654 | fi |
34655 | done | |
34656 | ||
e6cc62c6 | 34657 | |
10f2d63a VZ |
34658 | fi |
34659 | ||
e6cc62c6 | 34660 | |
10f2d63a VZ |
34661 | fi |
34662 | done | |
34663 | ||
5c6fa7d2 | 34664 | |
8284b0c5 | 34665 | if test "$HAVE_DL_FUNCS" = 1; then |
e6cc62c6 VS |
34666 | |
34667 | for ac_func in dlerror | |
f6bcfd97 | 34668 | do |
e6cc62c6 VS |
34669 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
34670 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34671 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34672 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34673 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34674 | else | |
34675 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
34676 | /* confdefs.h. */ |
34677 | _ACEOF | |
34678 | cat confdefs.h >>conftest.$ac_ext | |
34679 | cat >>conftest.$ac_ext <<_ACEOF | |
34680 | /* end confdefs.h. */ | |
eea650d8 VS |
34681 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34682 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34683 | #define $ac_func innocuous_$ac_func | |
34684 | ||
f6bcfd97 | 34685 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
34686 | which can conflict with char $ac_func (); below. |
34687 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34688 | <limits.h> exists even on freestanding compilers. */ | |
eea650d8 | 34689 | |
e6cc62c6 VS |
34690 | #ifdef __STDC__ |
34691 | # include <limits.h> | |
34692 | #else | |
34693 | # include <assert.h> | |
34694 | #endif | |
eea650d8 VS |
34695 | |
34696 | #undef $ac_func | |
34697 | ||
f6bcfd97 | 34698 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
34699 | #ifdef __cplusplus |
34700 | extern "C" | |
34701 | { | |
34702 | #endif | |
f6bcfd97 | 34703 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
34704 | builtin and then its argument prototype would still apply. */ |
34705 | char $ac_func (); | |
f6bcfd97 BP |
34706 | /* The GNU C library defines this for functions which it implements |
34707 | to always fail with ENOSYS. Some functions are actually named | |
34708 | something starting with __ and the normal name is an alias. */ | |
34709 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34710 | choke me | |
34711 | #else | |
e6cc62c6 VS |
34712 | char (*f) () = $ac_func; |
34713 | #endif | |
34714 | #ifdef __cplusplus | |
34715 | } | |
f6bcfd97 BP |
34716 | #endif |
34717 | ||
e6cc62c6 VS |
34718 | int |
34719 | main () | |
34720 | { | |
34721 | return f != $ac_func; | |
34722 | ; | |
34723 | return 0; | |
34724 | } | |
34725 | _ACEOF | |
34726 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34727 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 34728 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 34729 | ac_status=$? |
eea650d8 VS |
34730 | grep -v '^ *+' conftest.er1 >conftest.err |
34731 | rm -f conftest.er1 | |
34732 | cat conftest.err >&5 | |
e6cc62c6 VS |
34733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34734 | (exit $ac_status); } && | |
eea650d8 VS |
34735 | { ac_try='test -z "$ac_c_werror_flag" |
34736 | || test ! -s conftest.err' | |
34737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34738 | (eval $ac_try) 2>&5 | |
34739 | ac_status=$? | |
34740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34741 | (exit $ac_status); }; } && | |
34742 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
34743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34744 | (eval $ac_try) 2>&5 | |
34745 | ac_status=$? | |
34746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34747 | (exit $ac_status); }; }; then | |
34748 | eval "$as_ac_var=yes" | |
34749 | else | |
34750 | echo "$as_me: failed program was:" >&5 | |
34751 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34752 | ||
34753 | eval "$as_ac_var=no" | |
34754 | fi | |
eea650d8 VS |
34755 | rm -f conftest.err conftest.$ac_objext \ |
34756 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
34757 | fi |
34758 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34759 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34760 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34761 | cat >>confdefs.h <<_ACEOF | |
34762 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34763 | _ACEOF | |
34764 | cat >>confdefs.h <<\_ACEOF | |
f6bcfd97 | 34765 | #define HAVE_DLERROR 1 |
e6cc62c6 | 34766 | _ACEOF |
f6bcfd97 BP |
34767 | |
34768 | else | |
0e012a93 VZ |
34769 | |
34770 | echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5 | |
e6cc62c6 VS |
34771 | echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6 |
34772 | if test "${ac_cv_lib_dl_dlerror+set}" = set; then | |
34773 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f6bcfd97 | 34774 | else |
e6cc62c6 | 34775 | ac_check_lib_save_LIBS=$LIBS |
f6bcfd97 | 34776 | LIBS="-ldl $LIBS" |
e6cc62c6 | 34777 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
34778 | /* confdefs.h. */ |
34779 | _ACEOF | |
34780 | cat confdefs.h >>conftest.$ac_ext | |
34781 | cat >>conftest.$ac_ext <<_ACEOF | |
34782 | /* end confdefs.h. */ | |
34783 | ||
f6bcfd97 | 34784 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
34785 | #ifdef __cplusplus |
34786 | extern "C" | |
34787 | #endif | |
f6bcfd97 | 34788 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
34789 | builtin and then its argument prototype would still apply. */ |
34790 | char dlerror (); | |
34791 | int | |
34792 | main () | |
34793 | { | |
34794 | dlerror (); | |
34795 | ; | |
34796 | return 0; | |
34797 | } | |
34798 | _ACEOF | |
34799 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34800 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 34801 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 34802 | ac_status=$? |
eea650d8 VS |
34803 | grep -v '^ *+' conftest.er1 >conftest.err |
34804 | rm -f conftest.er1 | |
34805 | cat conftest.err >&5 | |
e6cc62c6 VS |
34806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34807 | (exit $ac_status); } && | |
eea650d8 VS |
34808 | { ac_try='test -z "$ac_c_werror_flag" |
34809 | || test ! -s conftest.err' | |
34810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34811 | (eval $ac_try) 2>&5 | |
34812 | ac_status=$? | |
34813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34814 | (exit $ac_status); }; } && | |
34815 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
34816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34817 | (eval $ac_try) 2>&5 | |
34818 | ac_status=$? | |
34819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34820 | (exit $ac_status); }; }; then | |
34821 | ac_cv_lib_dl_dlerror=yes | |
34822 | else | |
34823 | echo "$as_me: failed program was:" >&5 | |
34824 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34825 | ||
34826 | ac_cv_lib_dl_dlerror=no | |
34827 | fi | |
eea650d8 VS |
34828 | rm -f conftest.err conftest.$ac_objext \ |
34829 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
34830 | LIBS=$ac_check_lib_save_LIBS |
34831 | fi | |
34832 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5 | |
34833 | echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6 | |
34834 | if test $ac_cv_lib_dl_dlerror = yes; then | |
34835 | cat >>confdefs.h <<\_ACEOF | |
f6bcfd97 | 34836 | #define HAVE_DLERROR 1 |
e6cc62c6 | 34837 | _ACEOF |
f6bcfd97 | 34838 | |
f6bcfd97 BP |
34839 | fi |
34840 | ||
0e012a93 VZ |
34841 | |
34842 | ||
f6bcfd97 BP |
34843 | fi |
34844 | done | |
34845 | ||
3a922bb4 RL |
34846 | fi |
34847 | fi | |
f6bcfd97 | 34848 | |
3a922bb4 RL |
34849 | if test "$HAVE_DL_FUNCS" = 0; then |
34850 | if test "$HAVE_SHL_FUNCS" = 0; then | |
34851 | if test "$USE_UNIX" = 1; then | |
e6cc62c6 VS |
34852 | { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5 |
34853 | echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;} | |
0b9ab0bd | 34854 | wxUSE_DYNAMIC_LOADER=no |
3a922bb4 RL |
34855 | wxUSE_DYNLIB_CLASS=no |
34856 | else | |
e6cc62c6 VS |
34857 | { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5 |
34858 | echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;} | |
3a922bb4 RL |
34859 | fi |
34860 | fi | |
10f2d63a VZ |
34861 | fi |
34862 | fi | |
34863 | fi | |
34864 | ||
0b9ab0bd | 34865 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then |
e6cc62c6 | 34866 | cat >>confdefs.h <<\_ACEOF |
0b9ab0bd | 34867 | #define wxUSE_DYNAMIC_LOADER 1 |
e6cc62c6 | 34868 | _ACEOF |
0b9ab0bd | 34869 | |
1948bb32 VS |
34870 | fi |
34871 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
e6cc62c6 | 34872 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 34873 | #define wxUSE_DYNLIB_CLASS 1 |
e6cc62c6 | 34874 | _ACEOF |
10f2d63a VZ |
34875 | |
34876 | fi | |
34877 | ||
8284b0c5 | 34878 | |
1e6feb95 | 34879 | if test "$wxUSE_FONTMAP" = "yes" ; then |
e6cc62c6 | 34880 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 34881 | #define wxUSE_FONTMAP 1 |
e6cc62c6 | 34882 | _ACEOF |
1e6feb95 VZ |
34883 | |
34884 | fi | |
34885 | ||
10f2d63a | 34886 | if test "$wxUSE_UNICODE" = "yes" ; then |
e6cc62c6 | 34887 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 34888 | #define wxUSE_UNICODE 1 |
e6cc62c6 | 34889 | _ACEOF |
10f2d63a | 34890 | |
8284b0c5 | 34891 | |
eb854003 | 34892 | if test "$USE_WIN32" != 1; then |
bbc3925a VS |
34893 | wxUSE_UNICODE_MSLU=no |
34894 | fi | |
a72a4bfa | 34895 | |
eb854003 | 34896 | if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then |
e6cc62c6 VS |
34897 | echo "$as_me:$LINENO: checking for main in -lunicows" >&5 |
34898 | echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6 | |
34899 | if test "${ac_cv_lib_unicows_main+set}" = set; then | |
34900 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a72a4bfa | 34901 | else |
e6cc62c6 | 34902 | ac_check_lib_save_LIBS=$LIBS |
a72a4bfa | 34903 | LIBS="-lunicows $LIBS" |
e6cc62c6 | 34904 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
34905 | /* confdefs.h. */ |
34906 | _ACEOF | |
34907 | cat confdefs.h >>conftest.$ac_ext | |
34908 | cat >>conftest.$ac_ext <<_ACEOF | |
34909 | /* end confdefs.h. */ | |
a72a4bfa | 34910 | |
8284b0c5 | 34911 | |
e6cc62c6 VS |
34912 | int |
34913 | main () | |
34914 | { | |
34915 | main (); | |
34916 | ; | |
34917 | return 0; | |
34918 | } | |
34919 | _ACEOF | |
34920 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34921 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 34922 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 34923 | ac_status=$? |
eea650d8 VS |
34924 | grep -v '^ *+' conftest.er1 >conftest.err |
34925 | rm -f conftest.er1 | |
34926 | cat conftest.err >&5 | |
e6cc62c6 VS |
34927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34928 | (exit $ac_status); } && | |
eea650d8 VS |
34929 | { ac_try='test -z "$ac_c_werror_flag" |
34930 | || test ! -s conftest.err' | |
34931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34932 | (eval $ac_try) 2>&5 | |
34933 | ac_status=$? | |
34934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34935 | (exit $ac_status); }; } && | |
34936 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
34937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34938 | (eval $ac_try) 2>&5 | |
34939 | ac_status=$? | |
34940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34941 | (exit $ac_status); }; }; then | |
34942 | ac_cv_lib_unicows_main=yes | |
34943 | else | |
34944 | echo "$as_me: failed program was:" >&5 | |
34945 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34946 | ||
34947 | ac_cv_lib_unicows_main=no | |
34948 | fi | |
eea650d8 VS |
34949 | rm -f conftest.err conftest.$ac_objext \ |
34950 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
34951 | LIBS=$ac_check_lib_save_LIBS |
34952 | fi | |
34953 | echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5 | |
34954 | echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6 | |
34955 | if test $ac_cv_lib_unicows_main = yes; then | |
34956 | ||
34957 | cat >>confdefs.h <<\_ACEOF | |
a72a4bfa | 34958 | #define wxUSE_UNICODE_MSLU 1 |
e6cc62c6 VS |
34959 | _ACEOF |
34960 | ||
a72a4bfa | 34961 | |
a72a4bfa | 34962 | else |
a72a4bfa | 34963 | |
e6cc62c6 VS |
34964 | { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. |
34965 | Applications will only run on Windows NT/2000/XP!" >&5 | |
34966 | echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
34967 | Applications will only run on Windows NT/2000/XP!" >&2;} | |
a72a4bfa | 34968 | wxUSE_UNICODE_MSLU=no |
e6cc62c6 | 34969 | |
a72a4bfa VS |
34970 | fi |
34971 | ||
34972 | fi | |
10f2d63a VZ |
34973 | fi |
34974 | ||
10f2d63a | 34975 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then |
e6cc62c6 | 34976 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 34977 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
e6cc62c6 | 34978 | _ACEOF |
10f2d63a VZ |
34979 | |
34980 | fi | |
34981 | ||
8284b0c5 | 34982 | |
10f2d63a | 34983 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
e6cc62c6 | 34984 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 34985 | #define wxUSE_POSTSCRIPT 1 |
e6cc62c6 | 34986 | _ACEOF |
10f2d63a VZ |
34987 | |
34988 | fi | |
34989 | ||
e6cc62c6 | 34990 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 34991 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
e6cc62c6 | 34992 | _ACEOF |
10f2d63a | 34993 | |
8284b0c5 | 34994 | |
e6cc62c6 | 34995 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 34996 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
e6cc62c6 | 34997 | _ACEOF |
10f2d63a | 34998 | |
8284b0c5 MB |
34999 | |
35000 | ||
10f2d63a | 35001 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
e6cc62c6 | 35002 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35003 | #define wxUSE_CONSTRAINTS 1 |
e6cc62c6 | 35004 | _ACEOF |
10f2d63a VZ |
35005 | |
35006 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
35007 | fi | |
35008 | ||
3879ecda | 35009 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then |
1772d20c | 35010 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35011 | #define wxUSE_MDI_ARCHITECTURE 1 |
e6cc62c6 | 35012 | _ACEOF |
10f2d63a | 35013 | |
1772d20c | 35014 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
10f2d63a VZ |
35015 | fi |
35016 | ||
35017 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
e6cc62c6 | 35018 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35019 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
e6cc62c6 | 35020 | _ACEOF |
10f2d63a VZ |
35021 | |
35022 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
35023 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
35024 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
35025 | fi | |
35026 | fi | |
35027 | ||
35028 | if test "$wxUSE_HELP" = "yes"; then | |
e6cc62c6 | 35029 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35030 | #define wxUSE_HELP 1 |
e6cc62c6 | 35031 | _ACEOF |
10f2d63a VZ |
35032 | |
35033 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
3379ed37 | 35034 | |
77e13408 | 35035 | if test "$wxUSE_MSW" = 1; then |
031d8228 | 35036 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then |
e6cc62c6 | 35037 | cat >>confdefs.h <<\_ACEOF |
29fd3c0c | 35038 | #define wxUSE_MS_HTML_HELP 1 |
e6cc62c6 | 35039 | _ACEOF |
29fd3c0c | 35040 | |
3e44f09d | 35041 | fi |
3379ed37 | 35042 | fi |
031d8228 VS |
35043 | |
35044 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
35045 | if test "$wxUSE_HTML" = "yes"; then | |
e6cc62c6 | 35046 | cat >>confdefs.h <<\_ACEOF |
031d8228 | 35047 | #define wxUSE_WXHTML_HELP 1 |
e6cc62c6 | 35048 | _ACEOF |
031d8228 VS |
35049 | |
35050 | else | |
e6cc62c6 VS |
35051 | { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5 |
35052 | echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;} | |
031d8228 VS |
35053 | wxUSE_WXHTML_HELP=no |
35054 | fi | |
35055 | fi | |
10f2d63a VZ |
35056 | fi |
35057 | ||
35058 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
35059 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
e6cc62c6 VS |
35060 | { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5 |
35061 | echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;} | |
10f2d63a | 35062 | else |
e6cc62c6 | 35063 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35064 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
e6cc62c6 | 35065 | _ACEOF |
10f2d63a VZ |
35066 | |
35067 | fi | |
35068 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
35069 | fi | |
35070 | ||
e6cc62c6 VS |
35071 | if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then |
35072 | { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5 | |
35073 | echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;} | |
35074 | { (exit 1); exit 1; }; } | |
35075 | fi | |
35076 | ||
35077 | ||
35078 | if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ | |
35079 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
35080 | -o "$wxUSE_OLE" = "yes" \ | |
35081 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
35082 | ||
35083 | for ac_header in ole2.h | |
35084 | do | |
35085 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
35086 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35087 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
35088 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
35089 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35090 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35091 | fi | |
35092 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
35093 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
35094 | else | |
35095 | # Is the header compilable? | |
35096 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
35097 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
35098 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
35099 | /* confdefs.h. */ |
35100 | _ACEOF | |
35101 | cat confdefs.h >>conftest.$ac_ext | |
35102 | cat >>conftest.$ac_ext <<_ACEOF | |
35103 | /* end confdefs.h. */ | |
35104 | $ac_includes_default | |
35105 | #include <$ac_header> | |
35106 | _ACEOF | |
35107 | rm -f conftest.$ac_objext | |
35108 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 35109 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 35110 | ac_status=$? |
eea650d8 VS |
35111 | grep -v '^ *+' conftest.er1 >conftest.err |
35112 | rm -f conftest.er1 | |
35113 | cat conftest.err >&5 | |
e6cc62c6 VS |
35114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35115 | (exit $ac_status); } && | |
eea650d8 VS |
35116 | { ac_try='test -z "$ac_c_werror_flag" |
35117 | || test ! -s conftest.err' | |
35118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35119 | (eval $ac_try) 2>&5 | |
35120 | ac_status=$? | |
35121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35122 | (exit $ac_status); }; } && | |
35123 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
35124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35125 | (eval $ac_try) 2>&5 | |
35126 | ac_status=$? | |
35127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35128 | (exit $ac_status); }; }; then | |
35129 | ac_header_compiler=yes | |
35130 | else | |
35131 | echo "$as_me: failed program was:" >&5 | |
35132 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35133 | ||
35134 | ac_header_compiler=no | |
35135 | fi | |
eea650d8 | 35136 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
35137 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
35138 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
35139 | ||
35140 | # Is the header present? | |
35141 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
35142 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
35143 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
35144 | /* confdefs.h. */ |
35145 | _ACEOF | |
35146 | cat confdefs.h >>conftest.$ac_ext | |
35147 | cat >>conftest.$ac_ext <<_ACEOF | |
35148 | /* end confdefs.h. */ | |
35149 | #include <$ac_header> | |
35150 | _ACEOF | |
35151 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
35152 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
35153 | ac_status=$? | |
35154 | grep -v '^ *+' conftest.er1 >conftest.err | |
35155 | rm -f conftest.er1 | |
35156 | cat conftest.err >&5 | |
35157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35158 | (exit $ac_status); } >/dev/null; then | |
35159 | if test -s conftest.err; then | |
35160 | ac_cpp_err=$ac_c_preproc_warn_flag | |
eea650d8 | 35161 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
35162 | else |
35163 | ac_cpp_err= | |
35164 | fi | |
35165 | else | |
35166 | ac_cpp_err=yes | |
35167 | fi | |
35168 | if test -z "$ac_cpp_err"; then | |
35169 | ac_header_preproc=yes | |
35170 | else | |
35171 | echo "$as_me: failed program was:" >&5 | |
35172 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35173 | ||
35174 | ac_header_preproc=no | |
35175 | fi | |
35176 | rm -f conftest.err conftest.$ac_ext | |
35177 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
35178 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
35179 | ||
35180 | # So? What about this header? | |
eea650d8 VS |
35181 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
35182 | yes:no: ) | |
e6cc62c6 VS |
35183 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
35184 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
eea650d8 VS |
35185 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
35186 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
35187 | ac_header_preproc=yes | |
e6cc62c6 | 35188 | ;; |
eea650d8 | 35189 | no:yes:* ) |
e6cc62c6 VS |
35190 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
35191 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
eea650d8 VS |
35192 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
35193 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
35194 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
35195 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
35196 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
35197 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
35198 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
35199 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
eea650d8 VS |
35200 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
35201 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
35202 | ( |
35203 | cat <<\_ASBOX | |
eea650d8 VS |
35204 | ## ----------------------------------------- ## |
35205 | ## Report this to wx-dev@lists.wxwindows.org ## | |
35206 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
35207 | _ASBOX |
35208 | ) | | |
35209 | sed "s/^/$as_me: WARNING: /" >&2 | |
35210 | ;; | |
35211 | esac | |
35212 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
35213 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
35214 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35215 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35216 | else | |
eea650d8 | 35217 | eval "$as_ac_Header=\$ac_header_preproc" |
e6cc62c6 VS |
35218 | fi |
35219 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
35220 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
35221 | ||
10f2d63a | 35222 | fi |
e6cc62c6 VS |
35223 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
35224 | cat >>confdefs.h <<_ACEOF | |
35225 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
35226 | _ACEOF | |
10f2d63a | 35227 | |
10f2d63a | 35228 | fi |
e6cc62c6 | 35229 | |
10f2d63a VZ |
35230 | done |
35231 | ||
8284b0c5 | 35232 | |
2b9bdf71 VZ |
35233 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
35234 | if test "$GCC" = yes ; then | |
8284b0c5 MB |
35235 | |
35236 | ||
e6cc62c6 VS |
35237 | ac_ext=cc |
35238 | ac_cpp='$CXXCPP $CPPFLAGS' | |
35239 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35240 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35241 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
35242 | ||
35243 | ||
35244 | echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5 | |
35245 | echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6 | |
35246 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
35247 | /* confdefs.h. */ |
35248 | _ACEOF | |
35249 | cat confdefs.h >>conftest.$ac_ext | |
35250 | cat >>conftest.$ac_ext <<_ACEOF | |
35251 | /* end confdefs.h. */ | |
8284b0c5 MB |
35252 | #include <windows.h> |
35253 | #include <ole2.h> | |
e6cc62c6 VS |
35254 | int |
35255 | main () | |
35256 | { | |
8284b0c5 | 35257 | |
e6cc62c6 VS |
35258 | ; |
35259 | return 0; | |
35260 | } | |
35261 | _ACEOF | |
35262 | rm -f conftest.$ac_objext | |
35263 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 35264 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 35265 | ac_status=$? |
eea650d8 VS |
35266 | grep -v '^ *+' conftest.er1 >conftest.err |
35267 | rm -f conftest.er1 | |
35268 | cat conftest.err >&5 | |
e6cc62c6 VS |
35269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35270 | (exit $ac_status); } && | |
eea650d8 VS |
35271 | { ac_try='test -z "$ac_cxx_werror_flag" |
35272 | || test ! -s conftest.err' | |
35273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35274 | (eval $ac_try) 2>&5 | |
35275 | ac_status=$? | |
35276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35277 | (exit $ac_status); }; } && | |
35278 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
35279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35280 | (eval $ac_try) 2>&5 | |
35281 | ac_status=$? | |
35282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35283 | (exit $ac_status); }; }; then | |
35284 | echo "$as_me:$LINENO: result: no" >&5 | |
35285 | echo "${ECHO_T}no" >&6 | |
35286 | else | |
35287 | echo "$as_me: failed program was:" >&5 | |
35288 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35289 | ||
35290 | echo "$as_me:$LINENO: result: yes" >&5 | |
35291 | echo "${ECHO_T}yes" >&6 | |
8284b0c5 MB |
35292 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
35293 | fi | |
eea650d8 | 35294 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
8284b0c5 | 35295 | ac_ext=c |
8284b0c5 | 35296 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
35297 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
35298 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35299 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 | 35300 | |
2b9bdf71 | 35301 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" |
3d63bc3a | 35302 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
e6cc62c6 | 35303 | cat >>confdefs.h <<\_ACEOF |
4f11a343 | 35304 | #define wxUSE_OLE 1 |
e6cc62c6 | 35305 | _ACEOF |
4f11a343 | 35306 | |
8284b0c5 | 35307 | |
2b9bdf71 VZ |
35308 | fi |
35309 | ||
e6cc62c6 | 35310 | cat >>confdefs.h <<\_ACEOF |
2b9bdf71 | 35311 | #define wxUSE_DATAOBJ 1 |
e6cc62c6 | 35312 | _ACEOF |
2b9bdf71 VZ |
35313 | |
35314 | else | |
e6cc62c6 VS |
35315 | { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5 |
35316 | echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;} | |
2b9bdf71 VZ |
35317 | |
35318 | wxUSE_CLIPBOARD=no | |
35319 | wxUSE_DRAG_AND_DROP=no | |
35320 | wxUSE_DATAOBJ=no | |
3bce6687 JS |
35321 | wxUSE_OLE=no |
35322 | fi | |
35323 | ||
35324 | if test "$wxUSE_METAFILE" = "yes"; then | |
e6cc62c6 | 35325 | cat >>confdefs.h <<\_ACEOF |
3bce6687 | 35326 | #define wxUSE_METAFILE 1 |
e6cc62c6 | 35327 | _ACEOF |
3bce6687 JS |
35328 | |
35329 | ||
e6cc62c6 | 35330 | cat >>confdefs.h <<\_ACEOF |
3bce6687 | 35331 | #define wxUSE_ENH_METAFILE 1 |
e6cc62c6 | 35332 | _ACEOF |
3bce6687 JS |
35333 | |
35334 | fi | |
35335 | fi | |
35336 | ||
2b9bdf71 VZ |
35337 | if test "$wxUSE_IPC" = "yes"; then |
35338 | if test "$wxUSE_SOCKETS" != "yes"; then | |
e6cc62c6 VS |
35339 | { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5 |
35340 | echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;} | |
2b9bdf71 VZ |
35341 | fi |
35342 | ||
e6cc62c6 | 35343 | cat >>confdefs.h <<\_ACEOF |
2b9bdf71 | 35344 | #define wxUSE_IPC 1 |
e6cc62c6 | 35345 | _ACEOF |
2b9bdf71 VZ |
35346 | |
35347 | fi | |
35348 | ||
35349 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
6c657b52 | 35350 | if test "$wxUSE_MGL" = 1; then |
e6cc62c6 VS |
35351 | { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5 |
35352 | echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;} | |
6c657b52 VS |
35353 | wxUSE_CLIPBOARD=no |
35354 | fi | |
35355 | ||
35356 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
e6cc62c6 | 35357 | cat >>confdefs.h <<\_ACEOF |
2b9bdf71 | 35358 | #define wxUSE_CLIPBOARD 1 |
e6cc62c6 | 35359 | _ACEOF |
2b9bdf71 | 35360 | |
8284b0c5 | 35361 | |
e6cc62c6 | 35362 | cat >>confdefs.h <<\_ACEOF |
673f4220 | 35363 | #define wxUSE_DATAOBJ 1 |
e6cc62c6 | 35364 | _ACEOF |
673f4220 | 35365 | |
6c657b52 | 35366 | fi |
2b9bdf71 VZ |
35367 | fi |
35368 | ||
35369 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
35370 | if test "$wxUSE_GTK" = 1; then | |
35371 | if test "$WXGTK12" != 1; then | |
e6cc62c6 VS |
35372 | { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5 |
35373 | echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;} | |
10f2d63a VZ |
35374 | wxUSE_DRAG_AND_DROP=no |
35375 | fi | |
35376 | fi | |
35377 | ||
2b9bdf71 | 35378 | if test "$wxUSE_MOTIF" = 1; then |
e6cc62c6 VS |
35379 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5 |
35380 | echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;} | |
2b9bdf71 VZ |
35381 | wxUSE_DRAG_AND_DROP=no |
35382 | fi | |
35383 | ||
f79bd02d | 35384 | if test "$wxUSE_X11" = 1; then |
e6cc62c6 VS |
35385 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5 |
35386 | echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;} | |
f79bd02d JS |
35387 | wxUSE_DRAG_AND_DROP=no |
35388 | fi | |
35389 | ||
6c657b52 | 35390 | if test "$wxUSE_MGL" = 1; then |
e6cc62c6 VS |
35391 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5 |
35392 | echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;} | |
6c657b52 VS |
35393 | wxUSE_DRAG_AND_DROP=no |
35394 | fi | |
35395 | ||
10f2d63a | 35396 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then |
e6cc62c6 | 35397 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35398 | #define wxUSE_DRAG_AND_DROP 1 |
e6cc62c6 | 35399 | _ACEOF |
10f2d63a VZ |
35400 | |
35401 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
35402 | fi | |
35403 | ||
35404 | fi | |
35405 | ||
35406 | if test "$wxUSE_SPLINES" = "yes" ; then | |
e6cc62c6 | 35407 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35408 | #define wxUSE_SPLINES 1 |
e6cc62c6 | 35409 | _ACEOF |
10f2d63a VZ |
35410 | |
35411 | fi | |
35412 | ||
8284b0c5 | 35413 | |
1e6feb95 VZ |
35414 | USES_CONTROLS=0 |
35415 | if test "$wxUSE_CONTROLS" = "yes"; then | |
35416 | USES_CONTROLS=1 | |
35417 | fi | |
35418 | ||
10f2d63a | 35419 | if test "$wxUSE_ACCEL" = "yes"; then |
e6cc62c6 | 35420 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35421 | #define wxUSE_ACCEL 1 |
e6cc62c6 | 35422 | _ACEOF |
10f2d63a | 35423 | |
1e6feb95 VZ |
35424 | USES_CONTROLS=1 |
35425 | fi | |
35426 | ||
35427 | if test "$wxUSE_BUTTON" = "yes"; then | |
e6cc62c6 | 35428 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 35429 | #define wxUSE_BUTTON 1 |
e6cc62c6 | 35430 | _ACEOF |
1e6feb95 VZ |
35431 | |
35432 | USES_CONTROLS=1 | |
35433 | fi | |
35434 | ||
35435 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
e6cc62c6 | 35436 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 35437 | #define wxUSE_BMPBUTTON 1 |
e6cc62c6 | 35438 | _ACEOF |
1e6feb95 VZ |
35439 | |
35440 | USES_CONTROLS=1 | |
35441 | fi | |
35442 | ||
35443 | if test "$wxUSE_CALCTRL" = "yes"; then | |
e6cc62c6 | 35444 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 35445 | #define wxUSE_CALENDARCTRL 1 |
e6cc62c6 | 35446 | _ACEOF |
1e6feb95 VZ |
35447 | |
35448 | USES_CONTROLS=1 | |
35449 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
35450 | fi |
35451 | ||
35452 | if test "$wxUSE_CARET" = "yes"; then | |
e6cc62c6 | 35453 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35454 | #define wxUSE_CARET 1 |
e6cc62c6 | 35455 | _ACEOF |
10f2d63a | 35456 | |
1e6feb95 | 35457 | USES_CONTROLS=1 |
10f2d63a VZ |
35458 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
35459 | fi | |
35460 | ||
35461 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
e6cc62c6 | 35462 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35463 | #define wxUSE_COMBOBOX 1 |
e6cc62c6 | 35464 | _ACEOF |
10f2d63a | 35465 | |
1e6feb95 | 35466 | USES_CONTROLS=1 |
10f2d63a VZ |
35467 | fi |
35468 | ||
35469 | if test "$wxUSE_CHOICE" = "yes"; then | |
e6cc62c6 | 35470 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35471 | #define wxUSE_CHOICE 1 |
e6cc62c6 | 35472 | _ACEOF |
10f2d63a | 35473 | |
1e6feb95 | 35474 | USES_CONTROLS=1 |
10f2d63a VZ |
35475 | fi |
35476 | ||
35477 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
e6cc62c6 | 35478 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35479 | #define wxUSE_CHECKBOX 1 |
e6cc62c6 | 35480 | _ACEOF |
10f2d63a | 35481 | |
1e6feb95 | 35482 | USES_CONTROLS=1 |
10f2d63a VZ |
35483 | fi |
35484 | ||
35485 | if test "$wxUSE_CHECKLST" = "yes"; then | |
e6cc62c6 | 35486 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35487 | #define wxUSE_CHECKLISTBOX 1 |
e6cc62c6 | 35488 | _ACEOF |
10f2d63a | 35489 | |
1e6feb95 | 35490 | USES_CONTROLS=1 |
10f2d63a VZ |
35491 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
35492 | fi | |
35493 | ||
da494b40 | 35494 | if test "$wxUSE_DISPLAY" = "yes"; then |
e6cc62c6 | 35495 | cat >>confdefs.h <<\_ACEOF |
da494b40 | 35496 | #define wxUSE_DISPLAY 1 |
e6cc62c6 | 35497 | _ACEOF |
da494b40 MB |
35498 | |
35499 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display" | |
35500 | fi | |
35501 | ||
10f2d63a | 35502 | if test "$wxUSE_GAUGE" = "yes"; then |
e6cc62c6 | 35503 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35504 | #define wxUSE_GAUGE 1 |
e6cc62c6 | 35505 | _ACEOF |
10f2d63a | 35506 | |
1e6feb95 | 35507 | USES_CONTROLS=1 |
10f2d63a VZ |
35508 | fi |
35509 | ||
d6a55c4b | 35510 | if test "$wxUSE_GRID" = "yes"; then |
e6cc62c6 | 35511 | cat >>confdefs.h <<\_ACEOF |
d6a55c4b | 35512 | #define wxUSE_GRID 1 |
e6cc62c6 | 35513 | _ACEOF |
10f2d63a | 35514 | |
1e6feb95 | 35515 | USES_CONTROLS=1 |
d6a55c4b | 35516 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
35517 | fi |
35518 | ||
35519 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
e6cc62c6 | 35520 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35521 | #define wxUSE_IMAGLIST 1 |
e6cc62c6 | 35522 | _ACEOF |
10f2d63a VZ |
35523 | |
35524 | fi | |
35525 | ||
0e012a93 VZ |
35526 | if test "$wxUSE_LISTBOOK" = "yes"; then |
35527 | cat >>confdefs.h <<\_ACEOF | |
35528 | #define wxUSE_LISTBOOK 1 | |
35529 | _ACEOF | |
35530 | ||
35531 | USES_CONTROLS=1 | |
35532 | fi | |
35533 | ||
10f2d63a | 35534 | if test "$wxUSE_LISTBOX" = "yes"; then |
e6cc62c6 | 35535 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35536 | #define wxUSE_LISTBOX 1 |
e6cc62c6 | 35537 | _ACEOF |
10f2d63a | 35538 | |
1e6feb95 | 35539 | USES_CONTROLS=1 |
10f2d63a VZ |
35540 | fi |
35541 | ||
35542 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
35543 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
e6cc62c6 | 35544 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35545 | #define wxUSE_LISTCTRL 1 |
e6cc62c6 | 35546 | _ACEOF |
10f2d63a | 35547 | |
1e6feb95 | 35548 | USES_CONTROLS=1 |
10f2d63a VZ |
35549 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
35550 | else | |
e6cc62c6 VS |
35551 | { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5 |
35552 | echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;} | |
10f2d63a VZ |
35553 | fi |
35554 | fi | |
35555 | ||
35556 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
e6cc62c6 | 35557 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35558 | #define wxUSE_NOTEBOOK 1 |
e6cc62c6 | 35559 | _ACEOF |
10f2d63a | 35560 | |
1e6feb95 | 35561 | USES_CONTROLS=1 |
10f2d63a VZ |
35562 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
35563 | fi | |
35564 | ||
24176f2c | 35565 | |
10f2d63a | 35566 | if test "$wxUSE_RADIOBOX" = "yes"; then |
e6cc62c6 | 35567 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35568 | #define wxUSE_RADIOBOX 1 |
e6cc62c6 | 35569 | _ACEOF |
10f2d63a | 35570 | |
1e6feb95 | 35571 | USES_CONTROLS=1 |
10f2d63a VZ |
35572 | fi |
35573 | ||
35574 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
e6cc62c6 | 35575 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35576 | #define wxUSE_RADIOBTN 1 |
e6cc62c6 | 35577 | _ACEOF |
10f2d63a | 35578 | |
1e6feb95 | 35579 | USES_CONTROLS=1 |
10f2d63a VZ |
35580 | fi |
35581 | ||
35582 | if test "$wxUSE_SASH" = "yes"; then | |
e6cc62c6 | 35583 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35584 | #define wxUSE_SASH 1 |
e6cc62c6 | 35585 | _ACEOF |
10f2d63a VZ |
35586 | |
35587 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
35588 | fi | |
35589 | ||
35590 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
e6cc62c6 | 35591 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35592 | #define wxUSE_SCROLLBAR 1 |
e6cc62c6 | 35593 | _ACEOF |
10f2d63a | 35594 | |
1e6feb95 | 35595 | USES_CONTROLS=1 |
741a9306 | 35596 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
35597 | fi |
35598 | ||
35599 | if test "$wxUSE_SLIDER" = "yes"; then | |
e6cc62c6 | 35600 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35601 | #define wxUSE_SLIDER 1 |
e6cc62c6 | 35602 | _ACEOF |
10f2d63a | 35603 | |
1e6feb95 | 35604 | USES_CONTROLS=1 |
10f2d63a VZ |
35605 | fi |
35606 | ||
35607 | if test "$wxUSE_SPINBTN" = "yes"; then | |
e6cc62c6 | 35608 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35609 | #define wxUSE_SPINBTN 1 |
e6cc62c6 | 35610 | _ACEOF |
10f2d63a | 35611 | |
1e6feb95 | 35612 | USES_CONTROLS=1 |
10f2d63a VZ |
35613 | fi |
35614 | ||
56cfaa52 | 35615 | if test "$wxUSE_SPINCTRL" = "yes"; then |
e6cc62c6 | 35616 | cat >>confdefs.h <<\_ACEOF |
56cfaa52 | 35617 | #define wxUSE_SPINCTRL 1 |
e6cc62c6 | 35618 | _ACEOF |
56cfaa52 | 35619 | |
1e6feb95 | 35620 | USES_CONTROLS=1 |
56cfaa52 RR |
35621 | fi |
35622 | ||
10f2d63a | 35623 | if test "$wxUSE_SPLITTER" = "yes"; then |
e6cc62c6 | 35624 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35625 | #define wxUSE_SPLITTER 1 |
e6cc62c6 | 35626 | _ACEOF |
10f2d63a VZ |
35627 | |
35628 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
35629 | fi | |
35630 | ||
35631 | if test "$wxUSE_STATBMP" = "yes"; then | |
e6cc62c6 | 35632 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35633 | #define wxUSE_STATBMP 1 |
e6cc62c6 | 35634 | _ACEOF |
10f2d63a | 35635 | |
1e6feb95 | 35636 | USES_CONTROLS=1 |
10f2d63a VZ |
35637 | fi |
35638 | ||
35639 | if test "$wxUSE_STATBOX" = "yes"; then | |
e6cc62c6 | 35640 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35641 | #define wxUSE_STATBOX 1 |
e6cc62c6 | 35642 | _ACEOF |
10f2d63a | 35643 | |
1e6feb95 VZ |
35644 | USES_CONTROLS=1 |
35645 | fi | |
35646 | ||
35647 | if test "$wxUSE_STATTEXT" = "yes"; then | |
e6cc62c6 | 35648 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 35649 | #define wxUSE_STATTEXT 1 |
e6cc62c6 | 35650 | _ACEOF |
1e6feb95 VZ |
35651 | |
35652 | USES_CONTROLS=1 | |
10f2d63a VZ |
35653 | fi |
35654 | ||
35655 | if test "$wxUSE_STATLINE" = "yes"; then | |
e6cc62c6 | 35656 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35657 | #define wxUSE_STATLINE 1 |
e6cc62c6 | 35658 | _ACEOF |
10f2d63a | 35659 | |
89e6bf6d | 35660 | USES_CONTROLS=1 |
10f2d63a VZ |
35661 | fi |
35662 | ||
35663 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
e6cc62c6 | 35664 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35665 | #define wxUSE_STATUSBAR 1 |
e6cc62c6 | 35666 | _ACEOF |
10f2d63a | 35667 | |
1e6feb95 | 35668 | USES_CONTROLS=1 |
698dcdb6 | 35669 | |
2286341c | 35670 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
35671 | fi |
35672 | ||
35673 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
e6cc62c6 | 35674 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35675 | #define wxUSE_TAB_DIALOG 1 |
e6cc62c6 | 35676 | _ACEOF |
10f2d63a VZ |
35677 | |
35678 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
35679 | fi | |
35680 | ||
1e6feb95 | 35681 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
e6cc62c6 | 35682 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 35683 | #define wxUSE_TEXTCTRL 1 |
e6cc62c6 | 35684 | _ACEOF |
1e6feb95 VZ |
35685 | |
35686 | USES_CONTROLS=1 | |
35687 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
35688 | fi | |
35689 | ||
1db8dc4a | 35690 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
ac0c4cc3 | 35691 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
e6cc62c6 VS |
35692 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5 |
35693 | echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;} | |
156b2523 GD |
35694 | wxUSE_TOGGLEBTN=no |
35695 | fi | |
35696 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
e6cc62c6 VS |
35697 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5 |
35698 | echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;} | |
a45d7ab7 GD |
35699 | wxUSE_TOGGLEBTN=no |
35700 | fi | |
35701 | ||
35702 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
e6cc62c6 | 35703 | cat >>confdefs.h <<\_ACEOF |
1db8dc4a | 35704 | #define wxUSE_TOGGLEBTN 1 |
e6cc62c6 | 35705 | _ACEOF |
1db8dc4a | 35706 | |
1e6feb95 | 35707 | USES_CONTROLS=1 |
a45d7ab7 | 35708 | fi |
1db8dc4a VZ |
35709 | fi |
35710 | ||
360d6699 | 35711 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
e6cc62c6 | 35712 | cat >>confdefs.h <<\_ACEOF |
360d6699 | 35713 | #define wxUSE_TOOLBAR_SIMPLE 1 |
e6cc62c6 | 35714 | _ACEOF |
360d6699 VZ |
35715 | |
35716 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 35717 | USES_CONTROLS=1 |
360d6699 VZ |
35718 | fi |
35719 | ||
10f2d63a | 35720 | if test "$wxUSE_TOOLBAR" = "yes"; then |
e6cc62c6 | 35721 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35722 | #define wxUSE_TOOLBAR 1 |
e6cc62c6 | 35723 | _ACEOF |
10f2d63a | 35724 | |
1e6feb95 | 35725 | USES_CONTROLS=1 |
698dcdb6 | 35726 | |
360d6699 VZ |
35727 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
35728 | wxUSE_TOOLBAR_NATIVE="yes" | |
35729 | fi | |
35730 | ||
1e6feb95 | 35731 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
e6cc62c6 | 35732 | cat >>confdefs.h <<\_ACEOF |
360d6699 | 35733 | #define wxUSE_TOOLBAR_NATIVE 1 |
e6cc62c6 | 35734 | _ACEOF |
360d6699 | 35735 | |
1e6feb95 VZ |
35736 | USES_CONTROLS=1 |
35737 | fi | |
35738 | ||
35739 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
35740 | fi |
35741 | ||
10f2d63a VZ |
35742 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
35743 | if test "$wxUSE_MOTIF" = 1; then | |
e6cc62c6 VS |
35744 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5 |
35745 | echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;} | |
10f2d63a | 35746 | else |
89e6bf6d | 35747 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
e6cc62c6 VS |
35748 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5 |
35749 | echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;} | |
10f2d63a | 35750 | else |
e6cc62c6 | 35751 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35752 | #define wxUSE_TOOLTIPS 1 |
e6cc62c6 | 35753 | _ACEOF |
10f2d63a VZ |
35754 | |
35755 | fi | |
35756 | fi | |
35757 | fi | |
35758 | ||
35759 | if test "$wxUSE_TREECTRL" = "yes"; then | |
35760 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
e6cc62c6 | 35761 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35762 | #define wxUSE_TREECTRL 1 |
e6cc62c6 | 35763 | _ACEOF |
10f2d63a | 35764 | |
1e6feb95 | 35765 | USES_CONTROLS=1 |
10f2d63a VZ |
35766 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
35767 | else | |
e6cc62c6 VS |
35768 | { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5 |
35769 | echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;} | |
10f2d63a VZ |
35770 | fi |
35771 | fi | |
35772 | ||
9f41d601 | 35773 | if test "$wxUSE_POPUPWIN" = "yes"; then |
ac0c4cc3 | 35774 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
e6cc62c6 VS |
35775 | { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5 |
35776 | echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;} | |
6abe4b65 | 35777 | else |
833a51f6 MB |
35778 | if test "$wxUSE_PM" = 1; then |
35779 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5 | |
e6cc62c6 | 35780 | echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;} |
833a51f6 MB |
35781 | else |
35782 | cat >>confdefs.h <<\_ACEOF | |
9f41d601 | 35783 | #define wxUSE_POPUPWIN 1 |
e6cc62c6 | 35784 | _ACEOF |
9f41d601 | 35785 | |
8284b0c5 | 35786 | |
833a51f6 | 35787 | USES_CONTROLS=1 |
485cf710 | 35788 | fi |
6abe4b65 | 35789 | fi |
9f41d601 RR |
35790 | fi |
35791 | ||
dd964dcc | 35792 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
3c011993 | 35793 | if test "$wxUSE_PM" = 1; then |
e6cc62c6 VS |
35794 | { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5 |
35795 | echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;} | |
3bd8fb5f | 35796 | else |
e6cc62c6 | 35797 | cat >>confdefs.h <<\_ACEOF |
dd964dcc | 35798 | #define wxUSE_TIPWINDOW 1 |
e6cc62c6 | 35799 | _ACEOF |
dd964dcc | 35800 | |
3c011993 | 35801 | fi |
dd964dcc VZ |
35802 | fi |
35803 | ||
1e6feb95 | 35804 | if test "$USES_CONTROLS" = 1; then |
e6cc62c6 | 35805 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 35806 | #define wxUSE_CONTROLS 1 |
e6cc62c6 | 35807 | _ACEOF |
10f2d63a | 35808 | |
10f2d63a VZ |
35809 | fi |
35810 | ||
8284b0c5 | 35811 | |
e46d2a18 VS |
35812 | if test "$wxUSE_ACCESSIBILITY" = "yes"; then |
35813 | cat >>confdefs.h <<\_ACEOF | |
35814 | #define wxUSE_ACCESSIBILITY 1 | |
35815 | _ACEOF | |
35816 | ||
35817 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access" | |
35818 | fi | |
1e6feb95 | 35819 | |
24fd6d87 | 35820 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
e6cc62c6 | 35821 | cat >>confdefs.h <<\_ACEOF |
24fd6d87 | 35822 | #define wxUSE_DRAGIMAGE 1 |
e6cc62c6 | 35823 | _ACEOF |
24fd6d87 VZ |
35824 | |
35825 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
35826 | fi | |
35827 | ||
e46d2a18 | 35828 | if test "$wxUSE_EXCEPTIONS" = "yes"; then |
e6cc62c6 | 35829 | cat >>confdefs.h <<\_ACEOF |
e46d2a18 | 35830 | #define wxUSE_EXCEPTIONS 1 |
e6cc62c6 | 35831 | _ACEOF |
7bb2947d | 35832 | |
e46d2a18 VS |
35833 | fi |
35834 | ||
35835 | USE_HTML=0 | |
35836 | if test "$wxUSE_HTML" = "yes"; then | |
35837 | cat >>confdefs.h <<\_ACEOF | |
35838 | #define wxUSE_HTML 1 | |
35839 | _ACEOF | |
35840 | ||
35841 | USE_HTML=1 | |
35842 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox" | |
7bb2947d MB |
35843 | fi |
35844 | ||
1e6feb95 | 35845 | if test "$wxUSE_MENUS" = "yes"; then |
e6cc62c6 | 35846 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 35847 | #define wxUSE_MENUS 1 |
e6cc62c6 | 35848 | _ACEOF |
10f2d63a | 35849 | |
1e6feb95 | 35850 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
35851 | fi |
35852 | ||
1e6feb95 | 35853 | if test "$wxUSE_METAFILE" = "yes"; then |
e6cc62c6 | 35854 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 35855 | #define wxUSE_METAFILE 1 |
e6cc62c6 | 35856 | _ACEOF |
10f2d63a | 35857 | |
10f2d63a VZ |
35858 | fi |
35859 | ||
1e6feb95 | 35860 | if test "$wxUSE_MIMETYPE" = "yes"; then |
e6cc62c6 | 35861 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 35862 | #define wxUSE_MIMETYPE 1 |
e6cc62c6 | 35863 | _ACEOF |
10f2d63a | 35864 | |
10f2d63a VZ |
35865 | fi |
35866 | ||
35867 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
e6cc62c6 | 35868 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 35869 | #define wxUSE_MINIFRAME 1 |
e6cc62c6 | 35870 | _ACEOF |
10f2d63a VZ |
35871 | |
35872 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
35873 | fi | |
35874 | ||
e46d2a18 | 35875 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then |
e6cc62c6 | 35876 | cat >>confdefs.h <<\_ACEOF |
e46d2a18 | 35877 | #define wxUSE_SYSTEM_OPTIONS 1 |
e6cc62c6 | 35878 | _ACEOF |
10f2d63a | 35879 | |
e46d2a18 VS |
35880 | if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \ |
35881 | "$TOOLKIT" = "MOTIF"; then | |
35882 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" | |
35883 | fi | |
10f2d63a VZ |
35884 | fi |
35885 | ||
e46d2a18 | 35886 | |
10f2d63a | 35887 | if test "$wxUSE_VALIDATORS" = "yes"; then |
e6cc62c6 | 35888 | cat >>confdefs.h <<\_ACEOF |
1e487827 | 35889 | #define wxUSE_VALIDATORS 1 |
e6cc62c6 | 35890 | _ACEOF |
703e0a69 | 35891 | |
698dcdb6 VZ |
35892 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
35893 | fi | |
35894 | ||
edae8572 | 35895 | if test "$wxUSE_PALETTE" = "yes" ; then |
e6cc62c6 | 35896 | cat >>confdefs.h <<\_ACEOF |
edae8572 | 35897 | #define wxUSE_PALETTE 1 |
e6cc62c6 | 35898 | _ACEOF |
edae8572 VZ |
35899 | |
35900 | fi | |
35901 | ||
e46d2a18 VS |
35902 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then |
35903 | LIBS=" -lunicows $LIBS" | |
35904 | fi | |
35905 | ||
35906 | ||
698dcdb6 | 35907 | if test "$wxUSE_IMAGE" = "yes" ; then |
e46d2a18 | 35908 | cat >>confdefs.h <<\_ACEOF |
698dcdb6 | 35909 | #define wxUSE_IMAGE 1 |
e6cc62c6 | 35910 | _ACEOF |
698dcdb6 | 35911 | |
698dcdb6 | 35912 | |
e46d2a18 VS |
35913 | if test "$wxUSE_GIF" = "yes" ; then |
35914 | cat >>confdefs.h <<\_ACEOF | |
698dcdb6 | 35915 | #define wxUSE_GIF 1 |
e6cc62c6 | 35916 | _ACEOF |
698dcdb6 | 35917 | |
e46d2a18 | 35918 | fi |
698dcdb6 | 35919 | |
e46d2a18 VS |
35920 | if test "$wxUSE_PCX" = "yes" ; then |
35921 | cat >>confdefs.h <<\_ACEOF | |
698dcdb6 | 35922 | #define wxUSE_PCX 1 |
e6cc62c6 | 35923 | _ACEOF |
698dcdb6 | 35924 | |
e46d2a18 | 35925 | fi |
698dcdb6 | 35926 | |
e46d2a18 VS |
35927 | if test "$wxUSE_IFF" = "yes" ; then |
35928 | cat >>confdefs.h <<\_ACEOF | |
4b6b4dfc | 35929 | #define wxUSE_IFF 1 |
e6cc62c6 | 35930 | _ACEOF |
4b6b4dfc | 35931 | |
e46d2a18 | 35932 | fi |
4b6b4dfc | 35933 | |
e46d2a18 VS |
35934 | if test "$wxUSE_PNM" = "yes" ; then |
35935 | cat >>confdefs.h <<\_ACEOF | |
698dcdb6 | 35936 | #define wxUSE_PNM 1 |
e6cc62c6 | 35937 | _ACEOF |
698dcdb6 | 35938 | |
e46d2a18 | 35939 | fi |
698dcdb6 | 35940 | |
e46d2a18 VS |
35941 | if test "$wxUSE_XPM" = "yes" ; then |
35942 | cat >>confdefs.h <<\_ACEOF | |
698dcdb6 | 35943 | #define wxUSE_XPM 1 |
e6cc62c6 | 35944 | _ACEOF |
698dcdb6 | 35945 | |
e46d2a18 | 35946 | fi |
698dcdb6 | 35947 | |
e46d2a18 VS |
35948 | if test "$wxUSE_ICO_CUR" = "yes" ; then |
35949 | cat >>confdefs.h <<\_ACEOF | |
658974ae | 35950 | #define wxUSE_ICO_CUR 1 |
e6cc62c6 | 35951 | _ACEOF |
658974ae | 35952 | |
e46d2a18 | 35953 | fi |
a72a4bfa VS |
35954 | fi |
35955 | ||
8284b0c5 | 35956 | |
1e6feb95 | 35957 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
e6cc62c6 | 35958 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 35959 | #define wxUSE_CHOICEDLG 1 |
e6cc62c6 | 35960 | _ACEOF |
1e6feb95 VZ |
35961 | |
35962 | fi | |
35963 | ||
35964 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
e6cc62c6 | 35965 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 35966 | #define wxUSE_COLOURDLG 1 |
e6cc62c6 | 35967 | _ACEOF |
1e6feb95 VZ |
35968 | |
35969 | fi | |
35970 | ||
35971 | if test "$wxUSE_FILEDLG" = "yes"; then | |
e6cc62c6 | 35972 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 35973 | #define wxUSE_FILEDLG 1 |
e6cc62c6 | 35974 | _ACEOF |
1e6feb95 VZ |
35975 | |
35976 | fi | |
35977 | ||
8db37e06 | 35978 | if test "$wxUSE_FINDREPLDLG" = "yes"; then |
e6cc62c6 | 35979 | cat >>confdefs.h <<\_ACEOF |
8db37e06 | 35980 | #define wxUSE_FINDREPLDLG 1 |
e6cc62c6 | 35981 | _ACEOF |
8db37e06 VZ |
35982 | |
35983 | fi | |
35984 | ||
1e6feb95 | 35985 | if test "$wxUSE_FONTDLG" = "yes"; then |
e6cc62c6 | 35986 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 35987 | #define wxUSE_FONTDLG 1 |
e6cc62c6 | 35988 | _ACEOF |
1e6feb95 VZ |
35989 | |
35990 | fi | |
35991 | ||
35992 | if test "$wxUSE_DIRDLG" = "yes"; then | |
ae1daed0 | 35993 | if test "$wxUSE_TREECTRL" != "yes"; then |
e6cc62c6 VS |
35994 | { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5 |
35995 | echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;} | |
1e6feb95 | 35996 | else |
e6cc62c6 | 35997 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 35998 | #define wxUSE_DIRDLG 1 |
e6cc62c6 | 35999 | _ACEOF |
1e6feb95 | 36000 | |
1e6feb95 VZ |
36001 | fi |
36002 | fi | |
36003 | ||
36004 | if test "$wxUSE_MSGDLG" = "yes"; then | |
e6cc62c6 | 36005 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 36006 | #define wxUSE_MSGDLG 1 |
e6cc62c6 | 36007 | _ACEOF |
1e6feb95 VZ |
36008 | |
36009 | fi | |
36010 | ||
36011 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
e6cc62c6 | 36012 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 36013 | #define wxUSE_NUMBERDLG 1 |
e6cc62c6 | 36014 | _ACEOF |
1e6feb95 VZ |
36015 | |
36016 | fi | |
36017 | ||
36018 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
36019 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
e6cc62c6 VS |
36020 | { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5 |
36021 | echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;} | |
1e6feb95 | 36022 | else |
e6cc62c6 | 36023 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 36024 | #define wxUSE_PROGRESSDLG 1 |
e6cc62c6 | 36025 | _ACEOF |
1e6feb95 VZ |
36026 | |
36027 | fi | |
36028 | fi | |
36029 | ||
cbca9943 | 36030 | if test "$wxUSE_SPLASH" = "yes"; then |
e6cc62c6 | 36031 | cat >>confdefs.h <<\_ACEOF |
cbca9943 | 36032 | #define wxUSE_SPLASH 1 |
e6cc62c6 | 36033 | _ACEOF |
cbca9943 VZ |
36034 | |
36035 | fi | |
36036 | ||
1e6feb95 VZ |
36037 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then |
36038 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
e6cc62c6 VS |
36039 | { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5 |
36040 | echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;} | |
1e6feb95 | 36041 | else |
e6cc62c6 | 36042 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 36043 | #define wxUSE_STARTUP_TIPS 1 |
e6cc62c6 | 36044 | _ACEOF |
1e6feb95 | 36045 | |
7b4a847f RR |
36046 | fi |
36047 | fi | |
579d8138 | 36048 | |
8284b0c5 | 36049 | if test "$wxUSE_TEXTDLG" = "yes"; then |
e6cc62c6 | 36050 | cat >>confdefs.h <<\_ACEOF |
8284b0c5 | 36051 | #define wxUSE_TEXTDLG 1 |
e6cc62c6 | 36052 | _ACEOF |
8284b0c5 MB |
36053 | |
36054 | fi | |
36055 | ||
36056 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
e6cc62c6 | 36057 | cat >>confdefs.h <<\_ACEOF |
8284b0c5 | 36058 | #define wxUSE_WIZARDDLG 1 |
e6cc62c6 | 36059 | _ACEOF |
8284b0c5 MB |
36060 | |
36061 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
36062 | fi | |
36063 | ||
36064 | ||
36065 | if test "$cross_compiling" = "yes"; then | |
36066 | OSINFO="\"$host\"" | |
36067 | else | |
36068 | OSINFO=`uname -s -r -m` | |
36069 | OSINFO="\"$OSINFO\"" | |
36070 | fi | |
36071 | ||
e6cc62c6 | 36072 | cat >>confdefs.h <<_ACEOF |
8284b0c5 | 36073 | #define WXWIN_OS_DESCRIPTION $OSINFO |
e6cc62c6 | 36074 | _ACEOF |
8284b0c5 MB |
36075 | |
36076 | ||
36077 | ||
36078 | if test "x$prefix" != "xNONE"; then | |
36079 | wxPREFIX=$prefix | |
36080 | else | |
36081 | wxPREFIX=$ac_default_prefix | |
36082 | fi | |
36083 | ||
e6cc62c6 | 36084 | cat >>confdefs.h <<_ACEOF |
8284b0c5 | 36085 | #define wxINSTALL_PREFIX "$wxPREFIX" |
e6cc62c6 | 36086 | _ACEOF |
8284b0c5 MB |
36087 | |
36088 | ||
e6cc62c6 | 36089 | top_builddir_wxconfig=`pwd` |
52c71b80 | 36090 | |
8284b0c5 MB |
36091 | |
36092 | ||
edd891e2 VS |
36093 | CORE_BASE_LIBS="net base" |
36094 | CORE_GUI_LIBS="adv core" | |
36095 | ||
36096 | if test "$wxUSE_XML" = "yes" ; then | |
36097 | CORE_BASE_LIBS="xml $CORE_BASE_LIBS" | |
36098 | fi | |
45293562 VS |
36099 | if test "$wxUSE_ODBC" != "no" ; then |
36100 | CORE_BASE_LIBS="odbc $CORE_BASE_LIBS" | |
36101 | CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS" | |
edd891e2 VS |
36102 | fi |
36103 | if test "$wxUSE_HTML" = "yes" ; then | |
36104 | CORE_GUI_LIBS="html $CORE_GUI_LIBS" | |
36105 | fi | |
36106 | ||
57e7d4ac VS |
36107 | if test "$wxUSE_GUI" != "yes"; then |
36108 | CORE_GUI_LIBS="" | |
36109 | fi | |
36110 | ||
edd891e2 VS |
36111 | |
36112 | ||
36113 | ||
36114 | ||
36115 | ||
36116 | ||
8284b0c5 MB |
36117 | |
36118 | if test "$wxUSE_MAC" = 1 ; then | |
36119 | LDFLAGS="$LDFLAGS -framework Carbon -framework System" | |
36120 | fi | |
ac0c4cc3 DE |
36121 | if test "$wxUSE_COCOA" = 1 ; then |
36122 | LDFLAGS="$LDFLAGS -framework Cocoa -framework System" | |
36123 | fi | |
8284b0c5 MB |
36124 | |
36125 | ||
2b5f62a0 VZ |
36126 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" |
36127 | ||
36128 | have_cos=0 | |
36129 | have_floor=0 | |
e6cc62c6 | 36130 | |
2b5f62a0 VZ |
36131 | for ac_func in cos |
36132 | do | |
e6cc62c6 VS |
36133 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
36134 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36135 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36136 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36137 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36138 | else | |
36139 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
36140 | /* confdefs.h. */ |
36141 | _ACEOF | |
36142 | cat confdefs.h >>conftest.$ac_ext | |
36143 | cat >>conftest.$ac_ext <<_ACEOF | |
36144 | /* end confdefs.h. */ | |
eea650d8 VS |
36145 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36146 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36147 | #define $ac_func innocuous_$ac_func | |
36148 | ||
2b5f62a0 | 36149 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
36150 | which can conflict with char $ac_func (); below. |
36151 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36152 | <limits.h> exists even on freestanding compilers. */ | |
eea650d8 | 36153 | |
e6cc62c6 VS |
36154 | #ifdef __STDC__ |
36155 | # include <limits.h> | |
36156 | #else | |
36157 | # include <assert.h> | |
36158 | #endif | |
eea650d8 VS |
36159 | |
36160 | #undef $ac_func | |
36161 | ||
2b5f62a0 | 36162 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
36163 | #ifdef __cplusplus |
36164 | extern "C" | |
36165 | { | |
36166 | #endif | |
2b5f62a0 | 36167 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
36168 | builtin and then its argument prototype would still apply. */ |
36169 | char $ac_func (); | |
2b5f62a0 VZ |
36170 | /* The GNU C library defines this for functions which it implements |
36171 | to always fail with ENOSYS. Some functions are actually named | |
36172 | something starting with __ and the normal name is an alias. */ | |
36173 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36174 | choke me | |
36175 | #else | |
e6cc62c6 VS |
36176 | char (*f) () = $ac_func; |
36177 | #endif | |
36178 | #ifdef __cplusplus | |
36179 | } | |
2b5f62a0 VZ |
36180 | #endif |
36181 | ||
e6cc62c6 VS |
36182 | int |
36183 | main () | |
36184 | { | |
36185 | return f != $ac_func; | |
36186 | ; | |
36187 | return 0; | |
36188 | } | |
36189 | _ACEOF | |
36190 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36191 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 36192 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 36193 | ac_status=$? |
eea650d8 VS |
36194 | grep -v '^ *+' conftest.er1 >conftest.err |
36195 | rm -f conftest.er1 | |
36196 | cat conftest.err >&5 | |
e6cc62c6 VS |
36197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36198 | (exit $ac_status); } && | |
eea650d8 VS |
36199 | { ac_try='test -z "$ac_c_werror_flag" |
36200 | || test ! -s conftest.err' | |
36201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36202 | (eval $ac_try) 2>&5 | |
36203 | ac_status=$? | |
36204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36205 | (exit $ac_status); }; } && | |
36206 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
36207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36208 | (eval $ac_try) 2>&5 | |
36209 | ac_status=$? | |
36210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36211 | (exit $ac_status); }; }; then | |
36212 | eval "$as_ac_var=yes" | |
36213 | else | |
36214 | echo "$as_me: failed program was:" >&5 | |
36215 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36216 | ||
36217 | eval "$as_ac_var=no" | |
36218 | fi | |
eea650d8 VS |
36219 | rm -f conftest.err conftest.$ac_objext \ |
36220 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
36221 | fi |
36222 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36223 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36224 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36225 | cat >>confdefs.h <<_ACEOF | |
36226 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36227 | _ACEOF | |
2b5f62a0 | 36228 | have_cos=1 |
2b5f62a0 VZ |
36229 | fi |
36230 | done | |
36231 | ||
e6cc62c6 | 36232 | |
2b5f62a0 VZ |
36233 | for ac_func in floor |
36234 | do | |
e6cc62c6 VS |
36235 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
36236 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36237 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36238 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36239 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36240 | else | |
36241 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
36242 | /* confdefs.h. */ |
36243 | _ACEOF | |
36244 | cat confdefs.h >>conftest.$ac_ext | |
36245 | cat >>conftest.$ac_ext <<_ACEOF | |
36246 | /* end confdefs.h. */ | |
eea650d8 VS |
36247 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36248 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36249 | #define $ac_func innocuous_$ac_func | |
36250 | ||
2b5f62a0 | 36251 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
36252 | which can conflict with char $ac_func (); below. |
36253 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36254 | <limits.h> exists even on freestanding compilers. */ | |
eea650d8 | 36255 | |
e6cc62c6 VS |
36256 | #ifdef __STDC__ |
36257 | # include <limits.h> | |
36258 | #else | |
36259 | # include <assert.h> | |
36260 | #endif | |
eea650d8 VS |
36261 | |
36262 | #undef $ac_func | |
36263 | ||
2b5f62a0 | 36264 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
36265 | #ifdef __cplusplus |
36266 | extern "C" | |
36267 | { | |
36268 | #endif | |
2b5f62a0 | 36269 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
36270 | builtin and then its argument prototype would still apply. */ |
36271 | char $ac_func (); | |
2b5f62a0 VZ |
36272 | /* The GNU C library defines this for functions which it implements |
36273 | to always fail with ENOSYS. Some functions are actually named | |
36274 | something starting with __ and the normal name is an alias. */ | |
36275 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36276 | choke me | |
36277 | #else | |
e6cc62c6 VS |
36278 | char (*f) () = $ac_func; |
36279 | #endif | |
36280 | #ifdef __cplusplus | |
36281 | } | |
2b5f62a0 VZ |
36282 | #endif |
36283 | ||
e6cc62c6 VS |
36284 | int |
36285 | main () | |
36286 | { | |
36287 | return f != $ac_func; | |
36288 | ; | |
36289 | return 0; | |
36290 | } | |
36291 | _ACEOF | |
36292 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36293 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 36294 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 36295 | ac_status=$? |
eea650d8 VS |
36296 | grep -v '^ *+' conftest.er1 >conftest.err |
36297 | rm -f conftest.er1 | |
36298 | cat conftest.err >&5 | |
e6cc62c6 VS |
36299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36300 | (exit $ac_status); } && | |
eea650d8 VS |
36301 | { ac_try='test -z "$ac_c_werror_flag" |
36302 | || test ! -s conftest.err' | |
36303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36304 | (eval $ac_try) 2>&5 | |
36305 | ac_status=$? | |
36306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36307 | (exit $ac_status); }; } && | |
36308 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
36309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36310 | (eval $ac_try) 2>&5 | |
36311 | ac_status=$? | |
36312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36313 | (exit $ac_status); }; }; then | |
36314 | eval "$as_ac_var=yes" | |
36315 | else | |
36316 | echo "$as_me: failed program was:" >&5 | |
36317 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36318 | ||
36319 | eval "$as_ac_var=no" | |
36320 | fi | |
eea650d8 VS |
36321 | rm -f conftest.err conftest.$ac_objext \ |
36322 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
36323 | fi |
36324 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36325 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36326 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36327 | cat >>confdefs.h <<_ACEOF | |
36328 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36329 | _ACEOF | |
2b5f62a0 | 36330 | have_floor=1 |
2b5f62a0 VZ |
36331 | fi |
36332 | done | |
36333 | ||
e6cc62c6 VS |
36334 | echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5 |
36335 | echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6 | |
2b5f62a0 | 36336 | if test "$have_cos" = 1 -a "$have_floor" = 1; then |
e6cc62c6 VS |
36337 | echo "$as_me:$LINENO: result: yes" >&5 |
36338 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 | 36339 | else |
e6cc62c6 VS |
36340 | echo "$as_me:$LINENO: result: no" >&5 |
36341 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
36342 | LIBS="$LIBS -lm" |
36343 | # use different functions to avoid configure caching | |
36344 | have_sin=0 | |
36345 | have_ceil=0 | |
e6cc62c6 VS |
36346 | |
36347 | for ac_func in sin | |
2b5f62a0 | 36348 | do |
e6cc62c6 VS |
36349 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
36350 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36351 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36352 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36353 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36354 | else | |
36355 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
36356 | /* confdefs.h. */ |
36357 | _ACEOF | |
36358 | cat confdefs.h >>conftest.$ac_ext | |
36359 | cat >>conftest.$ac_ext <<_ACEOF | |
36360 | /* end confdefs.h. */ | |
eea650d8 VS |
36361 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36362 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36363 | #define $ac_func innocuous_$ac_func | |
36364 | ||
2b5f62a0 | 36365 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
36366 | which can conflict with char $ac_func (); below. |
36367 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36368 | <limits.h> exists even on freestanding compilers. */ | |
eea650d8 | 36369 | |
e6cc62c6 VS |
36370 | #ifdef __STDC__ |
36371 | # include <limits.h> | |
36372 | #else | |
36373 | # include <assert.h> | |
36374 | #endif | |
eea650d8 VS |
36375 | |
36376 | #undef $ac_func | |
36377 | ||
2b5f62a0 | 36378 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
36379 | #ifdef __cplusplus |
36380 | extern "C" | |
36381 | { | |
36382 | #endif | |
2b5f62a0 | 36383 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
36384 | builtin and then its argument prototype would still apply. */ |
36385 | char $ac_func (); | |
2b5f62a0 VZ |
36386 | /* The GNU C library defines this for functions which it implements |
36387 | to always fail with ENOSYS. Some functions are actually named | |
36388 | something starting with __ and the normal name is an alias. */ | |
36389 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36390 | choke me | |
36391 | #else | |
e6cc62c6 VS |
36392 | char (*f) () = $ac_func; |
36393 | #endif | |
36394 | #ifdef __cplusplus | |
36395 | } | |
2b5f62a0 VZ |
36396 | #endif |
36397 | ||
e6cc62c6 VS |
36398 | int |
36399 | main () | |
36400 | { | |
36401 | return f != $ac_func; | |
36402 | ; | |
36403 | return 0; | |
36404 | } | |
36405 | _ACEOF | |
36406 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36407 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 36408 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 36409 | ac_status=$? |
eea650d8 VS |
36410 | grep -v '^ *+' conftest.er1 >conftest.err |
36411 | rm -f conftest.er1 | |
36412 | cat conftest.err >&5 | |
e6cc62c6 VS |
36413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36414 | (exit $ac_status); } && | |
eea650d8 VS |
36415 | { ac_try='test -z "$ac_c_werror_flag" |
36416 | || test ! -s conftest.err' | |
36417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36418 | (eval $ac_try) 2>&5 | |
36419 | ac_status=$? | |
36420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36421 | (exit $ac_status); }; } && | |
36422 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
36423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36424 | (eval $ac_try) 2>&5 | |
36425 | ac_status=$? | |
36426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36427 | (exit $ac_status); }; }; then | |
36428 | eval "$as_ac_var=yes" | |
36429 | else | |
36430 | echo "$as_me: failed program was:" >&5 | |
36431 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36432 | ||
36433 | eval "$as_ac_var=no" | |
36434 | fi | |
eea650d8 VS |
36435 | rm -f conftest.err conftest.$ac_objext \ |
36436 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
36437 | fi |
36438 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36439 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36440 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36441 | cat >>confdefs.h <<_ACEOF | |
36442 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36443 | _ACEOF | |
2b5f62a0 | 36444 | have_sin=1 |
2b5f62a0 VZ |
36445 | fi |
36446 | done | |
36447 | ||
e6cc62c6 VS |
36448 | |
36449 | for ac_func in ceil | |
2b5f62a0 | 36450 | do |
e6cc62c6 VS |
36451 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
36452 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36453 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36454 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36455 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36456 | else | |
36457 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
36458 | /* confdefs.h. */ |
36459 | _ACEOF | |
36460 | cat confdefs.h >>conftest.$ac_ext | |
36461 | cat >>conftest.$ac_ext <<_ACEOF | |
36462 | /* end confdefs.h. */ | |
eea650d8 VS |
36463 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36464 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36465 | #define $ac_func innocuous_$ac_func | |
36466 | ||
2b5f62a0 | 36467 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
36468 | which can conflict with char $ac_func (); below. |
36469 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36470 | <limits.h> exists even on freestanding compilers. */ | |
eea650d8 | 36471 | |
e6cc62c6 VS |
36472 | #ifdef __STDC__ |
36473 | # include <limits.h> | |
36474 | #else | |
36475 | # include <assert.h> | |
36476 | #endif | |
eea650d8 VS |
36477 | |
36478 | #undef $ac_func | |
36479 | ||
2b5f62a0 | 36480 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
36481 | #ifdef __cplusplus |
36482 | extern "C" | |
36483 | { | |
36484 | #endif | |
2b5f62a0 | 36485 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
36486 | builtin and then its argument prototype would still apply. */ |
36487 | char $ac_func (); | |
2b5f62a0 VZ |
36488 | /* The GNU C library defines this for functions which it implements |
36489 | to always fail with ENOSYS. Some functions are actually named | |
36490 | something starting with __ and the normal name is an alias. */ | |
36491 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36492 | choke me | |
36493 | #else | |
e6cc62c6 VS |
36494 | char (*f) () = $ac_func; |
36495 | #endif | |
36496 | #ifdef __cplusplus | |
36497 | } | |
2b5f62a0 VZ |
36498 | #endif |
36499 | ||
e6cc62c6 VS |
36500 | int |
36501 | main () | |
36502 | { | |
36503 | return f != $ac_func; | |
36504 | ; | |
36505 | return 0; | |
36506 | } | |
36507 | _ACEOF | |
36508 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36509 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
eea650d8 | 36510 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 36511 | ac_status=$? |
eea650d8 VS |
36512 | grep -v '^ *+' conftest.er1 >conftest.err |
36513 | rm -f conftest.er1 | |
36514 | cat conftest.err >&5 | |
e6cc62c6 VS |
36515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36516 | (exit $ac_status); } && | |
eea650d8 VS |
36517 | { ac_try='test -z "$ac_c_werror_flag" |
36518 | || test ! -s conftest.err' | |
36519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36520 | (eval $ac_try) 2>&5 | |
36521 | ac_status=$? | |
36522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36523 | (exit $ac_status); }; } && | |
36524 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
36525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36526 | (eval $ac_try) 2>&5 | |
36527 | ac_status=$? | |
36528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36529 | (exit $ac_status); }; }; then | |
36530 | eval "$as_ac_var=yes" | |
36531 | else | |
36532 | echo "$as_me: failed program was:" >&5 | |
36533 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36534 | ||
36535 | eval "$as_ac_var=no" | |
36536 | fi | |
eea650d8 VS |
36537 | rm -f conftest.err conftest.$ac_objext \ |
36538 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
36539 | fi |
36540 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36541 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36542 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36543 | cat >>confdefs.h <<_ACEOF | |
36544 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36545 | _ACEOF | |
2b5f62a0 | 36546 | have_ceil=1 |
2b5f62a0 VZ |
36547 | fi |
36548 | done | |
36549 | ||
e6cc62c6 VS |
36550 | echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5 |
36551 | echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6 | |
2b5f62a0 | 36552 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then |
e6cc62c6 VS |
36553 | echo "$as_me:$LINENO: result: yes" >&5 |
36554 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 | 36555 | else |
e6cc62c6 VS |
36556 | echo "$as_me:$LINENO: result: no" >&5 |
36557 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
36558 | # not sure we should warn the user, crash, etc. |
36559 | fi | |
36560 | fi | |
8284b0c5 MB |
36561 | |
36562 | if test "$wxUSE_GUI" = "yes"; then | |
36563 | ||
e6cc62c6 | 36564 | |
8284b0c5 MB |
36565 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \ |
36566 | drawing dynamic erase event exec font image \ | |
1dd02ac0 | 36567 | minimal propsize rotate shaped widgets render" |
b625909c VS |
36568 | |
36569 | if test "$wxUSE_MONOLITHIC" != "yes"; then | |
36570 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console" | |
36571 | fi | |
8284b0c5 MB |
36572 | else |
36573 | SAMPLES_SUBDIRS="console" | |
36574 | fi | |
36575 | ||
36576 | ||
e6cc62c6 | 36577 | INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \ |
eea650d8 | 36578 | -I\${top_srcdir}/include $TOOLKIT_INCLUDE" |
8284b0c5 | 36579 | |
fddeb06b VS |
36580 | if test "$GXX" = yes ; then |
36581 | CXXWARNINGS="-Wall" | |
36582 | fi | |
36583 | ||
36584 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE" | |
36585 | ||
95318f7d | 36586 | CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'` |
fddeb06b VS |
36587 | CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` |
36588 | CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
c74dc163 VS |
36589 | |
36590 | ||
fddeb06b | 36591 | LIBS=`echo $LIBS | sed 's/ \+/ /g'` |
c74dc163 | 36592 | EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS" |
672abd7a | 36593 | EXTRALIBS_XML="$EXPAT_LINK" |
3527f29c | 36594 | EXTRALIBS_HTML="$MSPACK_LINK" |
bb41dcbe | 36595 | EXTRALIBS_ODBC="$ODBC_LINK" |
c74dc163 VS |
36596 | if test "$wxUSE_GUI" = "yes"; then |
36597 | EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'` | |
36598 | fi | |
34b08d2c VS |
36599 | if test "$wxUSE_OPENGL" = "yes"; then |
36600 | EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS" | |
36601 | fi | |
fddeb06b VS |
36602 | |
36603 | LDFLAGS="$LDFLAGS $PROFILE" | |
36604 | ||
8284b0c5 MB |
36605 | if test "$wxUSE_GTK" = 1; then |
36606 | WXCONFIG_INCLUDE= | |
36607 | else | |
36608 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
36609 | fi | |
36610 | ||
67c13b6c VS |
36611 | WXCONFIG_EXTRALIBS="$LIBS" |
36612 | ||
36613 | if test "$wxUSE_REGEX" = "builtin" ; then | |
36614 | wxconfig_3rdparty="$wxconfig_3rdparty regex" | |
36615 | fi | |
36616 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
36617 | wxconfig_3rdparty="$wxconfig_3rdparty expat" | |
36618 | fi | |
36619 | if test "$wxUSE_ODBC" = "builtin" ; then | |
36620 | wxconfig_3rdparty="$wxconfig_3rdparty odbc" | |
36621 | fi | |
36622 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
36623 | wxconfig_3rdparty="$wxconfig_3rdparty tiff" | |
36624 | fi | |
36625 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
36626 | wxconfig_3rdparty="$wxconfig_3rdparty jpeg" | |
36627 | fi | |
36628 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
36629 | wxconfig_3rdparty="$wxconfig_3rdparty png" | |
36630 | fi | |
36631 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
36632 | wxconfig_3rdparty="$wxconfig_3rdparty zlib" | |
36633 | fi | |
bb41dcbe VS |
36634 | if test "$wxUSE_ODBC" = "builtin" ; then |
36635 | wxconfig_3rdparty="$wxconfig_3rdparty odbc" | |
36636 | fi | |
67c13b6c VS |
36637 | |
36638 | for i in $wxconfig_3rdparty ; do | |
36639 | WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}" | |
36640 | done | |
36641 | ||
36642 | ||
fe0895cf VS |
36643 | if test "x$wxUSE_UNIVERSAL" = "xyes" ; then |
36644 | WXUNIV=1 | |
36645 | else | |
36646 | WXUNIV=0 | |
8284b0c5 MB |
36647 | fi |
36648 | ||
8284b0c5 MB |
36649 | |
36650 | ||
36651 | ||
36652 | ||
36653 | ||
36654 | ||
36655 | ||
672abd7a | 36656 | |
9747f85d VS |
36657 | if test $wxUSE_MONOLITHIC = "yes" ; then |
36658 | MONOLITHIC=1 | |
36659 | else | |
36660 | MONOLITHIC=0 | |
36661 | fi | |
8284b0c5 | 36662 | |
bb41dcbe VS |
36663 | if test $wxUSE_ODBC != "no" ; then |
36664 | USE_ODBC=1 | |
36665 | else | |
36666 | USE_ODBC=0 | |
36667 | fi | |
36668 | ||
029b47ad VS |
36669 | if test $wxUSE_OFFICIAL_BUILD = "yes" ; then |
36670 | OFFICIAL_BUILD=1 | |
36671 | else | |
36672 | OFFICIAL_BUILD=0 | |
36673 | fi | |
36674 | ||
8ee2dd05 VS |
36675 | |
36676 | ||
36677 | ||
8284b0c5 MB |
36678 | |
36679 | ||
36680 | ||
36681 | ||
36682 | ||
36683 | ||
c74dc163 | 36684 | |
34b08d2c | 36685 | |
672abd7a | 36686 | |
cf615ebb | 36687 | |
6c67131a VS |
36688 | |
36689 | ||
bb41dcbe | 36690 | |
3527f29c | 36691 | |
89fe663f | 36692 | TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"` |
8284b0c5 MB |
36693 | |
36694 | ||
36695 | ||
36696 | ||
36697 | ||
ea66c762 | 36698 | |
0f1bc9c2 | 36699 | |
fe0895cf | 36700 | if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then |
e6cc62c6 VS |
36701 | |
36702 | if test -n "$ac_tool_prefix"; then | |
36703 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
36704 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
36705 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
36706 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
36707 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
36708 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 36709 | else |
fe0895cf VS |
36710 | if test -n "$RANLIB"; then |
36711 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
10f2d63a | 36712 | else |
e6cc62c6 VS |
36713 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
36714 | for as_dir in $PATH | |
36715 | do | |
36716 | IFS=$as_save_IFS | |
36717 | test -z "$as_dir" && as_dir=. | |
36718 | for ac_exec_ext in '' $ac_executable_extensions; do | |
36719 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
36720 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
36721 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
36722 | break 2 | |
36723 | fi | |
36724 | done | |
36725 | done | |
36726 | ||
10f2d63a | 36727 | fi |
10f2d63a | 36728 | fi |
e6cc62c6 | 36729 | RANLIB=$ac_cv_prog_RANLIB |
fe0895cf | 36730 | if test -n "$RANLIB"; then |
e6cc62c6 VS |
36731 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
36732 | echo "${ECHO_T}$RANLIB" >&6 | |
36733 | else | |
36734 | echo "$as_me:$LINENO: result: no" >&5 | |
36735 | echo "${ECHO_T}no" >&6 | |
36736 | fi | |
36737 | ||
36738 | fi | |
36739 | if test -z "$ac_cv_prog_RANLIB"; then | |
36740 | ac_ct_RANLIB=$RANLIB | |
36741 | # Extract the first word of "ranlib", so it can be a program name with args. | |
36742 | set dummy ranlib; ac_word=$2 | |
36743 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
36744 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
36745 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
36746 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36747 | else | |
36748 | if test -n "$ac_ct_RANLIB"; then | |
36749 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
36750 | else | |
36751 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
36752 | for as_dir in $PATH | |
36753 | do | |
36754 | IFS=$as_save_IFS | |
36755 | test -z "$as_dir" && as_dir=. | |
36756 | for ac_exec_ext in '' $ac_executable_extensions; do | |
36757 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
36758 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
36759 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
36760 | break 2 | |
36761 | fi | |
36762 | done | |
36763 | done | |
36764 | ||
36765 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
36766 | fi | |
36767 | fi | |
36768 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
36769 | if test -n "$ac_ct_RANLIB"; then | |
36770 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
36771 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
10f2d63a | 36772 | else |
e6cc62c6 VS |
36773 | echo "$as_me:$LINENO: result: no" >&5 |
36774 | echo "${ECHO_T}no" >&6 | |
36775 | fi | |
36776 | ||
36777 | RANLIB=$ac_ct_RANLIB | |
36778 | else | |
36779 | RANLIB="$ac_cv_prog_RANLIB" | |
00cf1208 | 36780 | fi |
665bbe97 | 36781 | |
fe0895cf VS |
36782 | # Find a good install program. We prefer a C program (faster), |
36783 | # so one script is as good as another. But avoid the broken or | |
36784 | # incompatible versions: | |
36785 | # SysV /etc/install, /usr/sbin/install | |
36786 | # SunOS /usr/etc/install | |
36787 | # IRIX /sbin/install | |
36788 | # AIX /bin/install | |
e6cc62c6 | 36789 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
fe0895cf VS |
36790 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
36791 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
36792 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
eea650d8 | 36793 | # OS/2's system install, which has a completely different semantic |
fe0895cf | 36794 | # ./install, which can be erroneously created by make from ./install.sh. |
e6cc62c6 VS |
36795 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
36796 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
fe0895cf | 36797 | if test -z "$INSTALL"; then |
e6cc62c6 VS |
36798 | if test "${ac_cv_path_install+set}" = set; then |
36799 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36800 | else | |
36801 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
36802 | for as_dir in $PATH | |
36803 | do | |
36804 | IFS=$as_save_IFS | |
36805 | test -z "$as_dir" && as_dir=. | |
36806 | # Account for people who put trailing slashes in PATH elements. | |
36807 | case $as_dir/ in | |
36808 | ./ | .// | /cC/* | \ | |
36809 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
eea650d8 | 36810 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
e6cc62c6 VS |
36811 | /usr/ucb/* ) ;; |
36812 | *) | |
36813 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
36814 | # Don't use installbsd from OSF since it installs stuff as root | |
36815 | # by default. | |
36816 | for ac_prog in ginstall scoinst install; do | |
36817 | for ac_exec_ext in '' $ac_executable_extensions; do | |
eea650d8 VS |
36818 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
36819 | if test $ac_prog = install && | |
36820 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
36821 | # AIX install. It has an incompatible calling convention. | |
36822 | : | |
36823 | elif test $ac_prog = install && | |
36824 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
36825 | # program-specific install script used by HP pwplus--don't use. | |
36826 | : | |
36827 | else | |
36828 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
36829 | break 3 | |
36830 | fi | |
36831 | fi | |
fe0895cf | 36832 | done |
e6cc62c6 VS |
36833 | done |
36834 | ;; | |
36835 | esac | |
36836 | done | |
36837 | ||
fe0895cf VS |
36838 | |
36839 | fi | |
36840 | if test "${ac_cv_path_install+set}" = set; then | |
e6cc62c6 | 36841 | INSTALL=$ac_cv_path_install |
fe0895cf VS |
36842 | else |
36843 | # As a last resort, use the slow shell script. We don't cache a | |
36844 | # path for INSTALL within a source directory, because that will | |
36845 | # break other packages using the cache if that directory is | |
36846 | # removed, or if the path is relative. | |
e6cc62c6 | 36847 | INSTALL=$ac_install_sh |
fe0895cf VS |
36848 | fi |
36849 | fi | |
e6cc62c6 VS |
36850 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
36851 | echo "${ECHO_T}$INSTALL" >&6 | |
fe0895cf VS |
36852 | |
36853 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
36854 | # It thinks the first close brace ends the variable substitution. | |
36855 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
36856 | ||
e6cc62c6 | 36857 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
fe0895cf VS |
36858 | |
36859 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
36860 | ||
e6cc62c6 VS |
36861 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
36862 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
36863 | LN_S=$as_ln_s | |
36864 | if test "$LN_S" = "ln -s"; then | |
36865 | echo "$as_me:$LINENO: result: yes" >&5 | |
36866 | echo "${ECHO_T}yes" >&6 | |
fe0895cf | 36867 | else |
e6cc62c6 VS |
36868 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
36869 | echo "${ECHO_T}no, using $LN_S" >&6 | |
fe0895cf VS |
36870 | fi |
36871 | ||
36872 | ||
e6cc62c6 VS |
36873 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
36874 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
eea650d8 | 36875 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
e6cc62c6 VS |
36876 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
36877 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf | 36878 | else |
e6cc62c6 | 36879 | cat >conftest.make <<\_ACEOF |
fe0895cf | 36880 | all: |
e6cc62c6 VS |
36881 | @echo 'ac_maketemp="$(MAKE)"' |
36882 | _ACEOF | |
fe0895cf | 36883 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
e6cc62c6 | 36884 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
fe0895cf VS |
36885 | if test -n "$ac_maketemp"; then |
36886 | eval ac_cv_prog_make_${ac_make}_set=yes | |
36887 | else | |
36888 | eval ac_cv_prog_make_${ac_make}_set=no | |
36889 | fi | |
e6cc62c6 | 36890 | rm -f conftest.make |
fe0895cf VS |
36891 | fi |
36892 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
e6cc62c6 VS |
36893 | echo "$as_me:$LINENO: result: yes" >&5 |
36894 | echo "${ECHO_T}yes" >&6 | |
fe0895cf VS |
36895 | SET_MAKE= |
36896 | else | |
e6cc62c6 VS |
36897 | echo "$as_me:$LINENO: result: no" >&5 |
36898 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
36899 | SET_MAKE="MAKE=${MAKE-make}" |
36900 | fi | |
36901 | ||
e6cc62c6 VS |
36902 | |
36903 | ||
874d12cf VS |
36904 | if test -n "$ac_tool_prefix"; then |
36905 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
36906 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
e6cc62c6 VS |
36907 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
36908 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
36909 | if test "${ac_cv_prog_AR+set}" = set; then | |
36910 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
36911 | else |
36912 | if test -n "$AR"; then | |
36913 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
36914 | else | |
e6cc62c6 VS |
36915 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
36916 | for as_dir in $PATH | |
36917 | do | |
36918 | IFS=$as_save_IFS | |
36919 | test -z "$as_dir" && as_dir=. | |
36920 | for ac_exec_ext in '' $ac_executable_extensions; do | |
36921 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
874d12cf | 36922 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
e6cc62c6 VS |
36923 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
36924 | break 2 | |
36925 | fi | |
36926 | done | |
36927 | done | |
36928 | ||
fe0895cf VS |
36929 | fi |
36930 | fi | |
e6cc62c6 | 36931 | AR=$ac_cv_prog_AR |
fe0895cf | 36932 | if test -n "$AR"; then |
e6cc62c6 VS |
36933 | echo "$as_me:$LINENO: result: $AR" >&5 |
36934 | echo "${ECHO_T}$AR" >&6 | |
fe0895cf | 36935 | else |
e6cc62c6 VS |
36936 | echo "$as_me:$LINENO: result: no" >&5 |
36937 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
36938 | fi |
36939 | ||
874d12cf VS |
36940 | fi |
36941 | if test -z "$ac_cv_prog_AR"; then | |
36942 | ac_ct_AR=$AR | |
36943 | # Extract the first word of "ar", so it can be a program name with args. | |
36944 | set dummy ar; ac_word=$2 | |
36945 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
36946 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
36947 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
36948 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36949 | else | |
36950 | if test -n "$ac_ct_AR"; then | |
36951 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
36952 | else | |
36953 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
36954 | for as_dir in $PATH | |
36955 | do | |
36956 | IFS=$as_save_IFS | |
36957 | test -z "$as_dir" && as_dir=. | |
36958 | for ac_exec_ext in '' $ac_executable_extensions; do | |
36959 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
36960 | ac_cv_prog_ac_ct_AR="ar" | |
36961 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
36962 | break 2 | |
36963 | fi | |
36964 | done | |
36965 | done | |
36966 | ||
36967 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" | |
36968 | fi | |
36969 | fi | |
36970 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
36971 | if test -n "$ac_ct_AR"; then | |
36972 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
36973 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
36974 | else | |
36975 | echo "$as_me:$LINENO: result: no" >&5 | |
36976 | echo "${ECHO_T}no" >&6 | |
36977 | fi | |
36978 | ||
36979 | AR=$ac_ct_AR | |
36980 | else | |
36981 | AR="$ac_cv_prog_AR" | |
36982 | fi | |
36983 | ||
36984 | if test -n "$ac_tool_prefix"; then | |
36985 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
36986 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
e6cc62c6 VS |
36987 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
36988 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
36989 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
36990 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
36991 | else |
36992 | if test -n "$STRIP"; then | |
36993 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
36994 | else | |
e6cc62c6 VS |
36995 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
36996 | for as_dir in $PATH | |
36997 | do | |
36998 | IFS=$as_save_IFS | |
36999 | test -z "$as_dir" && as_dir=. | |
37000 | for ac_exec_ext in '' $ac_executable_extensions; do | |
37001 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
874d12cf | 37002 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
e6cc62c6 VS |
37003 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
37004 | break 2 | |
37005 | fi | |
37006 | done | |
37007 | done | |
37008 | ||
fe0895cf VS |
37009 | fi |
37010 | fi | |
e6cc62c6 | 37011 | STRIP=$ac_cv_prog_STRIP |
fe0895cf | 37012 | if test -n "$STRIP"; then |
e6cc62c6 VS |
37013 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
37014 | echo "${ECHO_T}$STRIP" >&6 | |
fe0895cf | 37015 | else |
e6cc62c6 VS |
37016 | echo "$as_me:$LINENO: result: no" >&5 |
37017 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
37018 | fi |
37019 | ||
874d12cf VS |
37020 | fi |
37021 | if test -z "$ac_cv_prog_STRIP"; then | |
37022 | ac_ct_STRIP=$STRIP | |
37023 | # Extract the first word of "strip", so it can be a program name with args. | |
37024 | set dummy strip; ac_word=$2 | |
37025 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
37026 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
37027 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
37028 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37029 | else | |
37030 | if test -n "$ac_ct_STRIP"; then | |
37031 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
37032 | else | |
37033 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
37034 | for as_dir in $PATH | |
37035 | do | |
37036 | IFS=$as_save_IFS | |
37037 | test -z "$as_dir" && as_dir=. | |
37038 | for ac_exec_ext in '' $ac_executable_extensions; do | |
37039 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
37040 | ac_cv_prog_ac_ct_STRIP="strip" | |
37041 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
37042 | break 2 | |
37043 | fi | |
37044 | done | |
37045 | done | |
37046 | ||
37047 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
37048 | fi | |
37049 | fi | |
37050 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
37051 | if test -n "$ac_ct_STRIP"; then | |
37052 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
37053 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
37054 | else | |
37055 | echo "$as_me:$LINENO: result: no" >&5 | |
37056 | echo "${ECHO_T}no" >&6 | |
37057 | fi | |
37058 | ||
37059 | STRIP=$ac_ct_STRIP | |
37060 | else | |
37061 | STRIP="$ac_cv_prog_STRIP" | |
37062 | fi | |
37063 | ||
37064 | if test -n "$ac_tool_prefix"; then | |
37065 | # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. | |
37066 | set dummy ${ac_tool_prefix}nm; ac_word=$2 | |
37067 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
37068 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
37069 | if test "${ac_cv_prog_NM+set}" = set; then | |
37070 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37071 | else | |
37072 | if test -n "$NM"; then | |
37073 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
37074 | else | |
37075 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
37076 | for as_dir in $PATH | |
37077 | do | |
37078 | IFS=$as_save_IFS | |
37079 | test -z "$as_dir" && as_dir=. | |
37080 | for ac_exec_ext in '' $ac_executable_extensions; do | |
37081 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
37082 | ac_cv_prog_NM="${ac_tool_prefix}nm" | |
37083 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
37084 | break 2 | |
37085 | fi | |
37086 | done | |
37087 | done | |
37088 | ||
37089 | fi | |
37090 | fi | |
37091 | NM=$ac_cv_prog_NM | |
37092 | if test -n "$NM"; then | |
37093 | echo "$as_me:$LINENO: result: $NM" >&5 | |
37094 | echo "${ECHO_T}$NM" >&6 | |
37095 | else | |
37096 | echo "$as_me:$LINENO: result: no" >&5 | |
37097 | echo "${ECHO_T}no" >&6 | |
37098 | fi | |
37099 | ||
37100 | fi | |
37101 | if test -z "$ac_cv_prog_NM"; then | |
37102 | ac_ct_NM=$NM | |
37103 | # Extract the first word of "nm", so it can be a program name with args. | |
37104 | set dummy nm; ac_word=$2 | |
37105 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
37106 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
37107 | if test "${ac_cv_prog_ac_ct_NM+set}" = set; then | |
37108 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37109 | else | |
37110 | if test -n "$ac_ct_NM"; then | |
37111 | ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. | |
37112 | else | |
37113 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
37114 | for as_dir in $PATH | |
37115 | do | |
37116 | IFS=$as_save_IFS | |
37117 | test -z "$as_dir" && as_dir=. | |
37118 | for ac_exec_ext in '' $ac_executable_extensions; do | |
37119 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
37120 | ac_cv_prog_ac_ct_NM="nm" | |
37121 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
37122 | break 2 | |
37123 | fi | |
37124 | done | |
37125 | done | |
37126 | ||
37127 | test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":" | |
37128 | fi | |
37129 | fi | |
37130 | ac_ct_NM=$ac_cv_prog_ac_ct_NM | |
37131 | if test -n "$ac_ct_NM"; then | |
37132 | echo "$as_me:$LINENO: result: $ac_ct_NM" >&5 | |
37133 | echo "${ECHO_T}$ac_ct_NM" >&6 | |
37134 | else | |
37135 | echo "$as_me:$LINENO: result: no" >&5 | |
37136 | echo "${ECHO_T}no" >&6 | |
37137 | fi | |
37138 | ||
37139 | NM=$ac_ct_NM | |
37140 | else | |
37141 | NM="$ac_cv_prog_NM" | |
37142 | fi | |
37143 | ||
fe0895cf VS |
37144 | |
37145 | case ${host} in | |
37146 | *-hp-hpux* ) | |
37147 | INSTALL_DIR="mkdir" | |
37148 | ;; | |
37149 | *) INSTALL_DIR="$INSTALL -d" | |
37150 | ;; | |
37151 | esac | |
e6cc62c6 | 37152 | |
fe0895cf | 37153 | |
6b9d41a5 VS |
37154 | LDFLAGS_GUI= |
37155 | case ${host} in | |
37156 | *-*-cygwin* | *-*-mingw32* ) | |
37157 | LDFLAGS_GUI="-Wl,--subsystem,windows -mwindows" | |
37158 | esac | |
37159 | ||
37160 | ||
fe0895cf | 37161 | fi |
e6cc62c6 VS |
37162 | |
37163 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
37164 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
49b0a3aa | 37165 | if test "${bakefile_cv_prog_makeisgnu+set}" = set; then |
e6cc62c6 | 37166 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
fe0895cf | 37167 | else |
e6cc62c6 | 37168 | |
fe0895cf VS |
37169 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | |
37170 | egrep -s GNU > /dev/null); then | |
37171 | bakefile_cv_prog_makeisgnu="yes" | |
37172 | else | |
37173 | bakefile_cv_prog_makeisgnu="no" | |
37174 | fi | |
fe0895cf | 37175 | |
e6cc62c6 | 37176 | fi |
49b0a3aa VS |
37177 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5 |
37178 | echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6 | |
fe0895cf VS |
37179 | |
37180 | if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then | |
37181 | IF_GNU_MAKE="" | |
37182 | else | |
37183 | IF_GNU_MAKE="#" | |
37184 | fi | |
fe0895cf | 37185 | |
e6cc62c6 VS |
37186 | |
37187 | ||
fe0895cf VS |
37188 | PLATFORM_UNIX=0 |
37189 | PLATFORM_WIN32=0 | |
37190 | PLATFORM_MSDOS=0 | |
37191 | PLATFORM_MAC=0 | |
37192 | PLATFORM_MACOSX=0 | |
96c1699d | 37193 | PLATFORM_OS2=0 |
e6cc62c6 | 37194 | |
fe0895cf VS |
37195 | case "${host}" in |
37196 | *-*-cygwin* | *-*-mingw32* ) | |
37197 | PLATFORM_WIN32=1 | |
37198 | ;; | |
96c1699d | 37199 | *-pc-msdosdjgpp ) |
fe0895cf VS |
37200 | PLATFORM_MSDOS=1 |
37201 | ;; | |
96c1699d VS |
37202 | *-pc-os2_emx | *-pc-os2-emx ) |
37203 | PLATFORM_OS2=1 | |
37204 | ;; | |
fe0895cf VS |
37205 | powerpc-*-darwin* ) |
37206 | PLATFORM_MAC=1 | |
37207 | PLATFORM_MACOSX=1 | |
37208 | ;; | |
37209 | * ) | |
37210 | PLATFORM_UNIX=1 | |
37211 | ;; | |
37212 | esac | |
37213 | ||
fe0895cf | 37214 | |
e6cc62c6 VS |
37215 | |
37216 | ||
37217 | ||
37218 | ||
37219 | ||
37220 | ||
96c1699d | 37221 | |
fe0895cf | 37222 | SO_SUFFIX="so" |
131f235d | 37223 | SO_SUFFIX_MODULE="so" |
fe0895cf | 37224 | EXEEXT="" |
4b1f6360 | 37225 | LIBPREFIX=lib |
fe0895cf | 37226 | DLLPREFIX=lib |
131f235d | 37227 | DLLPREFIX_MODULE= |
e6cc62c6 | 37228 | |
fe0895cf VS |
37229 | case "${host}" in |
37230 | *-hp-hpux* ) | |
37231 | SO_SUFFIX="sl" | |
131f235d | 37232 | SO_SUFFIX_MODULE="sl" |
fe0895cf VS |
37233 | ;; |
37234 | *-*-aix* ) | |
37235 | SO_SUFFIX="a" | |
131f235d | 37236 | SO_SUFFIX_MODULE="a" |
fe0895cf VS |
37237 | ;; |
37238 | *-*-cygwin* | *-*-mingw32* ) | |
37239 | SO_SUFFIX="dll" | |
131f235d | 37240 | SO_SUFFIX_MODULE="dll" |
fe0895cf VS |
37241 | EXEEXT=".exe" |
37242 | DLLPREFIX="" | |
37243 | ;; | |
4b1f6360 VS |
37244 | *-pc-msdosdjgpp ) |
37245 | EXEEXT=".exe" | |
37246 | DLLPREFIX="" | |
37247 | ;; | |
37248 | *-pc-os2_emx | *-pc-os2-emx ) | |
fe0895cf VS |
37249 | EXEEXT=".exe" |
37250 | DLLPREFIX="" | |
4b1f6360 | 37251 | LIBPREFIX="" |
fe0895cf VS |
37252 | ;; |
37253 | powerpc-*-darwin* ) | |
37254 | SO_SUFFIX="dylib" | |
131f235d | 37255 | SO_SUFFIX_MODULE="bundle" |
fe0895cf VS |
37256 | ;; |
37257 | esac | |
37258 | ||
fe0895cf | 37259 | |
e6cc62c6 VS |
37260 | |
37261 | ||
37262 | ||
37263 | ||
131f235d VS |
37264 | |
37265 | ||
4b1f6360 | 37266 | |
fe0895cf VS |
37267 | SHARED_LD_CC="\$(CC) -shared -o" |
37268 | SHARED_LD_CXX="\$(CXX) -shared -o" | |
37269 | ||
37270 | if test "x$GCC" = "xyes"; then | |
37271 | PIC_FLAG="-fPIC" | |
37272 | fi | |
37273 | ||
37274 | case "${host}" in | |
37275 | *-hp-hpux* ) | |
37276 | if test "x$GCC" = "xyes"; then | |
37277 | SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o" | |
37278 | SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o" | |
37279 | else | |
37280 | LDFLAGS="$LDFLAGS -L/usr/lib" | |
37281 | ||
37282 | SHARED_LD_CC="${CC} -b -o" | |
37283 | SHARED_LD_CXX="${CXX} -b -o" | |
37284 | PIC_FLAG="+Z" | |
37285 | fi | |
37286 | ;; | |
37287 | ||
37288 | *-*-linux* ) | |
37289 | if test "x$GCC" != "xyes"; then | |
e6cc62c6 VS |
37290 | echo "$as_me:$LINENO: checking for Intel compiler" >&5 |
37291 | echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6 | |
37292 | if test "${bakefile_cv_prog_icc+set}" = set; then | |
37293 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf | 37294 | else |
fe0895cf | 37295 | |
e6cc62c6 | 37296 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
37297 | /* confdefs.h. */ |
37298 | _ACEOF | |
37299 | cat confdefs.h >>conftest.$ac_ext | |
37300 | cat >>conftest.$ac_ext <<_ACEOF | |
37301 | /* end confdefs.h. */ | |
37302 | ||
37303 | int | |
37304 | main () | |
37305 | { | |
fe0895cf VS |
37306 | |
37307 | #ifndef __INTEL_COMPILER | |
37308 | #error Not icc | |
37309 | #endif | |
e6cc62c6 VS |
37310 | |
37311 | ; | |
37312 | return 0; | |
37313 | } | |
37314 | _ACEOF | |
37315 | rm -f conftest.$ac_objext | |
37316 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 37317 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 37318 | ac_status=$? |
eea650d8 VS |
37319 | grep -v '^ *+' conftest.er1 >conftest.err |
37320 | rm -f conftest.er1 | |
37321 | cat conftest.err >&5 | |
e6cc62c6 VS |
37322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37323 | (exit $ac_status); } && | |
eea650d8 VS |
37324 | { ac_try='test -z "$ac_c_werror_flag" |
37325 | || test ! -s conftest.err' | |
37326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
37327 | (eval $ac_try) 2>&5 | |
37328 | ac_status=$? | |
37329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37330 | (exit $ac_status); }; } && | |
37331 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
37332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37333 | (eval $ac_try) 2>&5 | |
37334 | ac_status=$? | |
37335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37336 | (exit $ac_status); }; }; then | |
fe0895cf VS |
37337 | bakefile_cv_prog_icc=yes |
37338 | else | |
e6cc62c6 VS |
37339 | echo "$as_me: failed program was:" >&5 |
37340 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37341 | ||
37342 | bakefile_cv_prog_icc=no | |
37343 | ||
fe0895cf | 37344 | fi |
eea650d8 | 37345 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
fe0895cf | 37346 | |
e6cc62c6 VS |
37347 | fi |
37348 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5 | |
37349 | echo "${ECHO_T}$bakefile_cv_prog_icc" >&6 | |
fe0895cf VS |
37350 | if test "$bakefile_cv_prog_icc" = "yes"; then |
37351 | PIC_FLAG="-KPIC" | |
37352 | fi | |
37353 | fi | |
37354 | ;; | |
37355 | ||
37356 | *-*-solaris2* ) | |
37357 | if test "x$GCC" != xyes ; then | |
37358 | SHARED_LD_CC="${CC} -G -o" | |
37359 | SHARED_LD_CXX="${CXX} -G -o" | |
37360 | PIC_FLAG="-KPIC" | |
37361 | fi | |
37362 | ;; | |
37363 | ||
37364 | *-*-darwin* ) | |
37365 | CFLAGS="$CFLAGS -fno-common" | |
37366 | CXXFLAGS="$CXXFLAGS -fno-common" | |
e6cc62c6 VS |
37367 | |
37368 | ||
2a879853 | 37369 | echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5 |
43948499 RD |
37370 | echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6 |
37371 | if test "${wx_cv_gcc31+set}" = set; then | |
37372 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37373 | else | |
37374 | ||
2a879853 | 37375 | cat >conftest.$ac_ext <<_ACEOF |
43948499 RD |
37376 | /* confdefs.h. */ |
37377 | _ACEOF | |
37378 | cat confdefs.h >>conftest.$ac_ext | |
37379 | cat >>conftest.$ac_ext <<_ACEOF | |
37380 | /* end confdefs.h. */ | |
37381 | ||
37382 | int | |
37383 | main () | |
37384 | { | |
37385 | ||
2a879853 VS |
37386 | #if (__GNUC__ < 3) || \ |
37387 | ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1)) | |
37388 | #error old gcc | |
37389 | #endif | |
43948499 RD |
37390 | |
37391 | ; | |
37392 | return 0; | |
37393 | } | |
37394 | _ACEOF | |
37395 | rm -f conftest.$ac_objext | |
37396 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 37397 | (eval $ac_compile) 2>conftest.er1 |
43948499 | 37398 | ac_status=$? |
eea650d8 VS |
37399 | grep -v '^ *+' conftest.er1 >conftest.err |
37400 | rm -f conftest.er1 | |
37401 | cat conftest.err >&5 | |
43948499 RD |
37402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37403 | (exit $ac_status); } && | |
eea650d8 VS |
37404 | { ac_try='test -z "$ac_c_werror_flag" |
37405 | || test ! -s conftest.err' | |
37406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
37407 | (eval $ac_try) 2>&5 | |
37408 | ac_status=$? | |
37409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37410 | (exit $ac_status); }; } && | |
37411 | { ac_try='test -s conftest.$ac_objext' | |
43948499 RD |
37412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37413 | (eval $ac_try) 2>&5 | |
37414 | ac_status=$? | |
37415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37416 | (exit $ac_status); }; }; then | |
37417 | ||
2a879853 | 37418 | wx_cv_gcc31=yes |
43948499 RD |
37419 | |
37420 | else | |
37421 | echo "$as_me: failed program was:" >&5 | |
37422 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37423 | ||
37424 | ||
2a879853 | 37425 | wx_cv_gcc31=no |
43948499 RD |
37426 | |
37427 | ||
37428 | fi | |
eea650d8 | 37429 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
43948499 RD |
37430 | |
37431 | fi | |
37432 | echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5 | |
37433 | echo "${ECHO_T}$wx_cv_gcc31" >&6 | |
2a879853 | 37434 | if test "$wx_cv_gcc31" = "no"; then |
43948499 | 37435 | cat <<EOF >shared-ld-sh |
fe0895cf VS |
37436 | #!/bin/sh |
37437 | #----------------------------------------------------------------------------- | |
37438 | #-- Name: distrib/mac/shared-ld-sh | |
37439 | #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X | |
37440 | #-- Author: Gilles Depeyrot | |
37441 | #-- Copyright: (c) 2002 Gilles Depeyrot | |
37442 | #-- Licence: any use permitted | |
37443 | #----------------------------------------------------------------------------- | |
37444 | ||
37445 | verbose=0 | |
37446 | args="" | |
37447 | objects="" | |
131f235d | 37448 | linking_flag="-dynamiclib" |
fe0895cf VS |
37449 | |
37450 | while test \${#} -gt 0; do | |
37451 | case \${1} in | |
37452 | ||
37453 | -v) | |
37454 | verbose=1 | |
37455 | ;; | |
37456 | ||
37457 | -o|-compatibility_version|-current_version|-framework|-undefined|-install_name) | |
37458 | # collect these options and values | |
37459 | args="\${args} \${1} \${2}" | |
37460 | shift | |
37461 | ;; | |
37462 | ||
37463 | -l*|-L*|-flat_namespace) | |
37464 | # collect these options | |
37465 | args="\${args} \${1}" | |
37466 | ;; | |
37467 | ||
131f235d VS |
37468 | -dynamiclib|-bundle) |
37469 | linking_flag="\${1}" | |
fe0895cf VS |
37470 | ;; |
37471 | ||
37472 | -*) | |
37473 | echo "shared-ld: unhandled option '\${1}'" | |
37474 | exit 1 | |
37475 | ;; | |
37476 | ||
4d264332 | 37477 | *.o | *.a | *.dylib) |
fe0895cf VS |
37478 | # collect object files |
37479 | objects="\${objects} \${1}" | |
37480 | ;; | |
37481 | ||
37482 | *) | |
37483 | echo "shared-ld: unhandled argument '\${1}'" | |
37484 | exit 1 | |
37485 | ;; | |
37486 | ||
37487 | esac | |
37488 | shift | |
37489 | done | |
37490 | ||
37491 | # | |
37492 | # Link one module containing all the others | |
37493 | # | |
37494 | if test \${verbose} = 1; then | |
37495 | echo "c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o" | |
37496 | fi | |
37497 | c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o | |
37498 | status=\$? | |
37499 | if test \${status} != 0; then | |
37500 | exit \${status} | |
37501 | fi | |
37502 | ||
37503 | # | |
37504 | # Link the shared library from the single module created | |
37505 | # | |
37506 | if test \${verbose} = 1; then | |
2a879853 | 37507 | echo "cc \${linking_flag} master.\$\$.o \${args}" |
fe0895cf | 37508 | fi |
131f235d | 37509 | c++ \${linking_flag} master.\$\$.o \${args} |
fe0895cf VS |
37510 | status=\$? |
37511 | if test \${status} != 0; then | |
37512 | exit \${status} | |
37513 | fi | |
37514 | ||
37515 | # | |
37516 | # Remove intermediate module | |
37517 | # | |
37518 | rm -f master.\$\$.o | |
37519 | ||
37520 | exit 0 | |
37521 | EOF | |
43948499 | 37522 | chmod +x shared-ld-sh |
fe0895cf | 37523 | |
7f523214 VS |
37524 | SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o" |
37525 | SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o" | |
2a879853 VS |
37526 | SHARED_LD_CXX="$SHARED_LD_CC" |
37527 | SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC" | |
37528 | else | |
7f523214 VS |
37529 | SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o" |
37530 | SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o" | |
37531 | SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o" | |
37532 | SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o" | |
2a879853 VS |
37533 | fi |
37534 | ||
fe0895cf | 37535 | PIC_FLAG="-dynamic -fPIC" |
2a879853 | 37536 | ;; |
fe0895cf VS |
37537 | |
37538 | *-*-aix* ) | |
37539 | if test "x$GCC" != "xyes"; then | |
37540 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
37541 | set dummy makeC++SharedLib; ac_word=$2 | |
e6cc62c6 VS |
37542 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
37543 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
37544 | if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then | |
37545 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
37546 | else |
37547 | if test -n "$AIX_CXX_LD"; then | |
37548 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
37549 | else | |
e6cc62c6 VS |
37550 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
37551 | for as_dir in $PATH | |
37552 | do | |
37553 | IFS=$as_save_IFS | |
37554 | test -z "$as_dir" && as_dir=. | |
37555 | for ac_exec_ext in '' $ac_executable_extensions; do | |
37556 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
37557 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
37558 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
37559 | break 2 | |
37560 | fi | |
37561 | done | |
37562 | done | |
37563 | ||
fe0895cf VS |
37564 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" |
37565 | fi | |
37566 | fi | |
e6cc62c6 | 37567 | AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD |
fe0895cf | 37568 | if test -n "$AIX_CXX_LD"; then |
e6cc62c6 VS |
37569 | echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5 |
37570 | echo "${ECHO_T}$AIX_CXX_LD" >&6 | |
fe0895cf | 37571 | else |
e6cc62c6 VS |
37572 | echo "$as_me:$LINENO: result: no" >&5 |
37573 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
37574 | fi |
37575 | ||
37576 | SHARED_LD_CC="$AIX_CC_LD -p 0 -o" | |
37577 | SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o" | |
37578 | fi | |
37579 | ;; | |
37580 | ||
37581 | *-*-beos* ) | |
37582 | SHARED_LD_CC="${LD} -shared -o" | |
37583 | SHARED_LD_CXX="${LD} -shared -o" | |
37584 | ;; | |
37585 | ||
37586 | *-*-irix* ) | |
37587 | if test "x$GCC" != "xyes"; then | |
37588 | PIC_FLAG="-KPIC" | |
37589 | fi | |
37590 | ;; | |
e6cc62c6 | 37591 | |
fe0895cf VS |
37592 | *-*-cygwin* | *-*-mingw32* ) |
37593 | PIC_FLAG="" | |
37594 | ;; | |
e6cc62c6 | 37595 | |
fe0895cf VS |
37596 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ |
37597 | *-*-sunos4* | \ | |
37598 | *-*-osf* | \ | |
37599 | *-*-dgux5* | \ | |
4b1f6360 | 37600 | *-pc-os2_emx | *-pc-os2-emx | \ |
fe0895cf VS |
37601 | *-*-sysv5* ) |
37602 | ;; | |
37603 | ||
37604 | *) | |
e6cc62c6 VS |
37605 | { { echo "$as_me:$LINENO: error: unknown system type $host." >&5 |
37606 | echo "$as_me: error: unknown system type $host." >&2;} | |
37607 | { (exit 1); exit 1; }; } | |
fe0895cf VS |
37608 | esac |
37609 | ||
131f235d VS |
37610 | if test "x$SHARED_LD_MODULE_CC" = "x" ; then |
37611 | SHARED_LD_MODULE_CC="$SHARED_LD_CC" | |
37612 | fi | |
37613 | if test "x$SHARED_LD_MODULE_CXX" = "x" ; then | |
239394fb | 37614 | SHARED_LD_MODULE_CXX="$SHARED_LD_CXX" |
131f235d VS |
37615 | fi |
37616 | ||
37617 | ||
37618 | ||
fe0895cf | 37619 | |
e6cc62c6 VS |
37620 | |
37621 | ||
37622 | ||
37623 | ||
fe0895cf VS |
37624 | USE_SOVERSION=0 |
37625 | USE_SOVERLINUX=0 | |
37626 | USE_SOVERSOLARIS=0 | |
37627 | USE_SOSYMLINKS=0 | |
37628 | USE_MACVERSION=0 | |
37629 | SONAME_FLAG= | |
37630 | ||
37631 | case "${host}" in | |
37632 | *-*-linux* ) | |
37633 | SONAME_FLAG="-Wl,-soname," | |
37634 | USE_SOVERSION=1 | |
37635 | USE_SOVERLINUX=1 | |
37636 | USE_SOSYMLINKS=1 | |
37637 | ;; | |
37638 | ||
37639 | *-*-solaris2* ) | |
37640 | SONAME_FLAG="-h " | |
37641 | USE_SOVERSION=1 | |
37642 | USE_SOVERSOLARIS=1 | |
37643 | USE_SOSYMLINKS=1 | |
37644 | ;; | |
37645 | ||
37646 | *-*-darwin* ) | |
37647 | USE_MACVERSION=1 | |
37648 | USE_SOVERSION=1 | |
37649 | USE_SOSYMLINKS=1 | |
e6cc62c6 | 37650 | ;; |
fe0895cf VS |
37651 | esac |
37652 | ||
fe0895cf | 37653 | |
e6cc62c6 VS |
37654 | |
37655 | ||
37656 | ||
37657 | ||
37658 | ||
37659 | ||
37660 | ||
49b0a3aa VS |
37661 | echo "$as_me:$LINENO: checking for dependency tracking method" >&5 |
37662 | echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6 | |
37663 | DEPS_TRACKING=0 | |
37664 | ||
fe0895cf | 37665 | if test "x$GCC" = "xyes"; then |
49b0a3aa VS |
37666 | DEPSMODE=gcc |
37667 | DEPS_TRACKING=1 | |
3e5c3c83 VS |
37668 | case "${host}" in |
37669 | powerpc-*-darwin* ) | |
37670 | DEPSFLAG_GCC="-no-cpp-precomp -MMD" | |
37671 | ;; | |
37672 | * ) | |
37673 | DEPSFLAG_GCC="-MMD" | |
37674 | ;; | |
37675 | esac | |
49b0a3aa VS |
37676 | echo "$as_me:$LINENO: result: gcc" >&5 |
37677 | echo "${ECHO_T}gcc" >&6 | |
37678 | else | |
37679 | echo "$as_me:$LINENO: result: none" >&5 | |
37680 | echo "${ECHO_T}none" >&6 | |
37681 | fi | |
37682 | ||
37683 | if test $DEPS_TRACKING = 1 ; then | |
37684 | cat <<EOF >bk-deps | |
37685 | #!/bin/sh | |
37686 | ||
45842500 VS |
37687 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf |
37688 | # script. It is used to track C/C++ files dependencies in portable way. | |
49b0a3aa VS |
37689 | # |
37690 | # Permission is given to use this file in any way. | |
37691 | ||
37692 | DEPSMODE=$DEPSMODE | |
37693 | DEPSDIR=.deps | |
3e5c3c83 | 37694 | DEPSFLAG_GCC="$DEPSFLAG_GCC" |
49b0a3aa VS |
37695 | |
37696 | mkdir -p \$DEPSDIR | |
37697 | ||
37698 | if test \$DEPSMODE = gcc ; then | |
3e5c3c83 | 37699 | \${*} \${DEPSFLAG_GCC} |
49b0a3aa VS |
37700 | status=\${?} |
37701 | if test \${status} != 0 ; then | |
37702 | exit \${status} | |
37703 | fi | |
37704 | # move created file to the location we want it in: | |
37705 | while test \${#} -gt 0; do | |
37706 | case "\${1}" in | |
37707 | -o ) | |
37708 | shift | |
37709 | objfile=\${1} | |
37710 | ;; | |
37711 | -* ) | |
37712 | ;; | |
37713 | * ) | |
37714 | srcfile=\${1} | |
37715 | ;; | |
37716 | esac | |
37717 | shift | |
37718 | done | |
37719 | depfile=\`basename \$srcfile | sed -e 's/\..*$/.d/g'\` | |
37720 | depobjname=\`echo \$depfile |sed -e 's/\.d/.o/g'\` | |
6b9d41a5 VS |
37721 | if test -f \$depfile ; then |
37722 | sed -e "s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d | |
37723 | rm -f \$depfile | |
37724 | else | |
37725 | depfile=\`basename \$objfile | sed -e 's/\..*$/.d/g'\` | |
37726 | if test -f \$depfile ; then | |
9d0be83a | 37727 | sed -e "/^\$objfile/!s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d |
6b9d41a5 VS |
37728 | rm -f \$depfile |
37729 | fi | |
37730 | fi | |
49b0a3aa VS |
37731 | exit 0 |
37732 | else | |
37733 | \${*} | |
37734 | exit \${?} | |
37735 | fi | |
37736 | EOF | |
37737 | chmod +x bk-deps | |
fe0895cf | 37738 | fi |
fe0895cf | 37739 | |
e6cc62c6 VS |
37740 | |
37741 | ||
37742 | ||
fe0895cf VS |
37743 | RESCOMP= |
37744 | SETFILE= | |
37745 | ||
e6cc62c6 | 37746 | case ${host} in |
fe0895cf VS |
37747 | *-*-cygwin* | *-*-mingw32* ) |
37748 | if test "$build" != "$host" ; then | |
37749 | RESCOMP=$host_alias-windres | |
37750 | else | |
37751 | # Extract the first word of "windres", so it can be a program name with args. | |
37752 | set dummy windres; ac_word=$2 | |
e6cc62c6 VS |
37753 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
37754 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
37755 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
37756 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
37757 | else |
37758 | if test -n "$RESCOMP"; then | |
37759 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
37760 | else | |
e6cc62c6 VS |
37761 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
37762 | for as_dir in $PATH | |
37763 | do | |
37764 | IFS=$as_save_IFS | |
37765 | test -z "$as_dir" && as_dir=. | |
37766 | for ac_exec_ext in '' $ac_executable_extensions; do | |
37767 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
37768 | ac_cv_prog_RESCOMP="windres" | |
37769 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
37770 | break 2 | |
37771 | fi | |
37772 | done | |
37773 | done | |
37774 | ||
fe0895cf VS |
37775 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres" |
37776 | fi | |
37777 | fi | |
e6cc62c6 | 37778 | RESCOMP=$ac_cv_prog_RESCOMP |
fe0895cf | 37779 | if test -n "$RESCOMP"; then |
e6cc62c6 VS |
37780 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 |
37781 | echo "${ECHO_T}$RESCOMP" >&6 | |
fe0895cf | 37782 | else |
e6cc62c6 VS |
37783 | echo "$as_me:$LINENO: result: no" >&5 |
37784 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
37785 | fi |
37786 | ||
37787 | fi | |
37788 | ;; | |
e6cc62c6 | 37789 | |
fe0895cf VS |
37790 | *-*-darwin* ) |
37791 | # Extract the first word of "Rez", so it can be a program name with args. | |
37792 | set dummy Rez; ac_word=$2 | |
e6cc62c6 VS |
37793 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
37794 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
37795 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
37796 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
37797 | else |
37798 | if test -n "$RESCOMP"; then | |
37799 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
37800 | else | |
e6cc62c6 VS |
37801 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
37802 | for as_dir in $PATH | |
37803 | do | |
37804 | IFS=$as_save_IFS | |
37805 | test -z "$as_dir" && as_dir=. | |
37806 | for ac_exec_ext in '' $ac_executable_extensions; do | |
37807 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
37808 | ac_cv_prog_RESCOMP="Rez" | |
37809 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
37810 | break 2 | |
37811 | fi | |
37812 | done | |
37813 | done | |
37814 | ||
fe0895cf VS |
37815 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" |
37816 | fi | |
37817 | fi | |
e6cc62c6 | 37818 | RESCOMP=$ac_cv_prog_RESCOMP |
fe0895cf | 37819 | if test -n "$RESCOMP"; then |
e6cc62c6 VS |
37820 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 |
37821 | echo "${ECHO_T}$RESCOMP" >&6 | |
fe0895cf | 37822 | else |
e6cc62c6 VS |
37823 | echo "$as_me:$LINENO: result: no" >&5 |
37824 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
37825 | fi |
37826 | ||
37827 | # Extract the first word of "SetFile", so it can be a program name with args. | |
37828 | set dummy SetFile; ac_word=$2 | |
e6cc62c6 VS |
37829 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
37830 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
37831 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
37832 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
37833 | else |
37834 | if test -n "$SETFILE"; then | |
37835 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
37836 | else | |
e6cc62c6 VS |
37837 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
37838 | for as_dir in $PATH | |
37839 | do | |
37840 | IFS=$as_save_IFS | |
37841 | test -z "$as_dir" && as_dir=. | |
37842 | for ac_exec_ext in '' $ac_executable_extensions; do | |
37843 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
37844 | ac_cv_prog_SETFILE="SetFile" | |
37845 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
37846 | break 2 | |
37847 | fi | |
37848 | done | |
37849 | done | |
37850 | ||
fe0895cf VS |
37851 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" |
37852 | fi | |
37853 | fi | |
e6cc62c6 | 37854 | SETFILE=$ac_cv_prog_SETFILE |
fe0895cf | 37855 | if test -n "$SETFILE"; then |
e6cc62c6 VS |
37856 | echo "$as_me:$LINENO: result: $SETFILE" >&5 |
37857 | echo "${ECHO_T}$SETFILE" >&6 | |
fe0895cf | 37858 | else |
e6cc62c6 VS |
37859 | echo "$as_me:$LINENO: result: no" >&5 |
37860 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
37861 | fi |
37862 | ||
37863 | ;; | |
37864 | esac | |
37865 | ||
fe0895cf VS |
37866 | |
37867 | ||
e6cc62c6 VS |
37868 | |
37869 | ||
37870 | ||
37871 | ||
45842500 | 37872 | |
45842500 VS |
37873 | # Check whether --enable-precomp-headers or --disable-precomp-headers was given. |
37874 | if test "${enable_precomp_headers+set}" = set; then | |
37875 | enableval="$enable_precomp_headers" | |
37876 | bk_use_pch="$enableval" | |
37877 | fi; | |
37878 | ||
37879 | GCC_PCH=0 | |
37880 | ||
37881 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then | |
37882 | if test "x$GCC" = "xyes"; then | |
37883 | echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5 | |
37884 | echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6 | |
37885 | cat >conftest.$ac_ext <<_ACEOF | |
45842500 VS |
37886 | /* confdefs.h. */ |
37887 | _ACEOF | |
37888 | cat confdefs.h >>conftest.$ac_ext | |
37889 | cat >>conftest.$ac_ext <<_ACEOF | |
37890 | /* end confdefs.h. */ | |
37891 | ||
37892 | int | |
37893 | main () | |
37894 | { | |
37895 | ||
8bcf2d20 VS |
37896 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) |
37897 | #error "no pch support" | |
37898 | #endif | |
37899 | #if (__GNUC__ < 3) | |
37900 | #error "no pch support" | |
37901 | #endif | |
37902 | #if (__GNUC__ == 3) && \ | |
37903 | ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ | |
37904 | ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) | |
37905 | #error "no pch support" | |
45842500 VS |
37906 | #endif |
37907 | ||
37908 | ; | |
37909 | return 0; | |
37910 | } | |
37911 | _ACEOF | |
37912 | rm -f conftest.$ac_objext | |
37913 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
eea650d8 | 37914 | (eval $ac_compile) 2>conftest.er1 |
45842500 | 37915 | ac_status=$? |
eea650d8 VS |
37916 | grep -v '^ *+' conftest.er1 >conftest.err |
37917 | rm -f conftest.er1 | |
37918 | cat conftest.err >&5 | |
45842500 VS |
37919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37920 | (exit $ac_status); } && | |
eea650d8 VS |
37921 | { ac_try='test -z "$ac_c_werror_flag" |
37922 | || test ! -s conftest.err' | |
37923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
37924 | (eval $ac_try) 2>&5 | |
37925 | ac_status=$? | |
37926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37927 | (exit $ac_status); }; } && | |
37928 | { ac_try='test -s conftest.$ac_objext' | |
45842500 VS |
37929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37930 | (eval $ac_try) 2>&5 | |
37931 | ac_status=$? | |
37932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37933 | (exit $ac_status); }; }; then | |
37934 | ||
37935 | echo "$as_me:$LINENO: result: yes" >&5 | |
37936 | echo "${ECHO_T}yes" >&6 | |
37937 | CPPFLAGS="-fpch-deps $CPPFLAGS" | |
37938 | GCC_PCH=1 | |
37939 | ||
37940 | else | |
37941 | echo "$as_me: failed program was:" >&5 | |
37942 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37943 | ||
37944 | ||
37945 | echo "$as_me:$LINENO: result: no" >&5 | |
37946 | echo "${ECHO_T}no" >&6 | |
37947 | ||
37948 | fi | |
eea650d8 | 37949 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
45842500 VS |
37950 | if test $GCC_PCH = 1 ; then |
37951 | cat <<EOF >bk-make-pch | |
37952 | #!/bin/sh | |
37953 | ||
37954 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
37955 | # script. It is used to generated precompiled headers. | |
37956 | # | |
37957 | # Permission is given to use this file in any way. | |
37958 | ||
37959 | outfile="\${1}" | |
37960 | header="\${2}" | |
37961 | shift | |
37962 | shift | |
37963 | ||
37964 | compiler= | |
37965 | headerfile= | |
37966 | while test \${#} -gt 0; do | |
37967 | case "\${1}" in | |
37968 | -I* ) | |
37969 | incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\` | |
37970 | if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then | |
37971 | headerfile="\${incdir}/\${header}" | |
37972 | fi | |
37973 | ;; | |
37974 | esac | |
37975 | compiler="\${compiler} \${1}" | |
37976 | shift | |
37977 | done | |
37978 | ||
37979 | if test "x\${headerfile}" = "x" ; then | |
37980 | echo "error: can't find header \${header} in include paths" >2 | |
37981 | else | |
37982 | if test -f \${outfile} ; then | |
37983 | rm -f \${outfile} | |
37984 | else | |
37985 | mkdir -p \`dirname \${outfile}\` | |
37986 | fi | |
37987 | depsfile=".deps/\`basename \${outfile}\`.d" | |
37988 | mkdir -p .deps | |
37989 | # can do this because gcc is >= 3.4: | |
37990 | \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}" | |
37991 | exit \${?} | |
37992 | fi | |
37993 | EOF | |
37994 | chmod +x bk-make-pch | |
37995 | fi | |
37996 | fi | |
37997 | fi | |
37998 | ||
37999 | ||
38000 | ||
38001 | ||
38002 | ||
d78c94f2 | 38003 | COND_BUILD_DEBUG="#" |
6f628073 | 38004 | if test "x$BUILD" = "xdebug" ; then |
d78c94f2 | 38005 | COND_BUILD_DEBUG="" |
6f628073 VS |
38006 | fi |
38007 | ||
6c67131a VS |
38008 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" |
38009 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
38010 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
38011 | fi | |
38012 | ||
38013 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
38014 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
38015 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
38016 | fi | |
38017 | ||
d78c94f2 | 38018 | COND_BUILD_RELEASE="#" |
6f628073 | 38019 | if test "x$BUILD" = "xrelease" ; then |
d78c94f2 | 38020 | COND_BUILD_RELEASE="" |
6b9d41a5 VS |
38021 | fi |
38022 | ||
6c67131a VS |
38023 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" |
38024 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
38025 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
38026 | fi | |
38027 | ||
38028 | COND_DEBUG_FLAG_1="#" | |
38029 | if test "x$DEBUG_FLAG" = "x1" ; then | |
38030 | COND_DEBUG_FLAG_1="" | |
38031 | fi | |
38032 | ||
38033 | COND_DEBUG_INFO_0="#" | |
38034 | if test "x$DEBUG_INFO" = "x0" ; then | |
38035 | COND_DEBUG_INFO_0="" | |
38036 | fi | |
38037 | ||
38038 | COND_DEBUG_INFO_1="#" | |
38039 | if test "x$DEBUG_INFO" = "x1" ; then | |
38040 | COND_DEBUG_INFO_1="" | |
38041 | fi | |
38042 | ||
f95cd8fa VS |
38043 | COND_DEPS_TRACKING_0="#" |
38044 | if test "x$DEPS_TRACKING" = "x0" ; then | |
38045 | COND_DEPS_TRACKING_0="" | |
6b9d41a5 VS |
38046 | fi |
38047 | ||
8ee2dd05 VS |
38048 | COND_DEPS_TRACKING_1="#" |
38049 | if test "x$DEPS_TRACKING" = "x1" ; then | |
38050 | COND_DEPS_TRACKING_1="" | |
38051 | fi | |
38052 | ||
45842500 VS |
38053 | COND_GCC_PCH_1="#" |
38054 | if test "x$GCC_PCH" = "x1" ; then | |
38055 | COND_GCC_PCH_1="" | |
38056 | fi | |
38057 | ||
6f628073 VS |
38058 | COND_MONOLITHIC_0="#" |
38059 | if test "x$MONOLITHIC" = "x0" ; then | |
38060 | COND_MONOLITHIC_0="" | |
6b9d41a5 VS |
38061 | fi |
38062 | ||
6f628073 VS |
38063 | COND_MONOLITHIC_0_SHARED_0="#" |
38064 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
38065 | COND_MONOLITHIC_0_SHARED_0="" | |
38066 | fi | |
38067 | ||
38068 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" | |
38069 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
38070 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
fe0895cf | 38071 | fi |
e6cc62c6 | 38072 | |
8772a1a7 VS |
38073 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#" |
38074 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
38075 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="" | |
38076 | fi | |
38077 | ||
250700e4 RD |
38078 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#" |
38079 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then | |
38080 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="" | |
38081 | fi | |
38082 | ||
eb69fda5 VS |
38083 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#" |
38084 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
38085 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="" | |
38086 | fi | |
38087 | ||
8ee2dd05 VS |
38088 | COND_MONOLITHIC_0_SHARED_1="#" |
38089 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
38090 | COND_MONOLITHIC_0_SHARED_1="" | |
fe0895cf | 38091 | fi |
e6cc62c6 | 38092 | |
6f628073 VS |
38093 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" |
38094 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
38095 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
38096 | fi | |
38097 | ||
8772a1a7 VS |
38098 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#" |
38099 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
38100 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="" | |
38101 | fi | |
38102 | ||
250700e4 RD |
38103 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#" |
38104 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then | |
38105 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="" | |
38106 | fi | |
38107 | ||
eb69fda5 VS |
38108 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#" |
38109 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
38110 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="" | |
38111 | fi | |
38112 | ||
3af038c0 VS |
38113 | COND_MONOLITHIC_1="#" |
38114 | if test "x$MONOLITHIC" = "x1" ; then | |
38115 | COND_MONOLITHIC_1="" | |
38116 | fi | |
38117 | ||
6f628073 VS |
38118 | COND_MONOLITHIC_1_SHARED_0="#" |
38119 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
38120 | COND_MONOLITHIC_1_SHARED_0="" | |
38121 | fi | |
38122 | ||
38123 | COND_MONOLITHIC_1_SHARED_1="#" | |
38124 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
38125 | COND_MONOLITHIC_1_SHARED_1="" | |
38126 | fi | |
38127 | ||
3af038c0 VS |
38128 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" |
38129 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
38130 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
38131 | fi | |
38132 | ||
38133 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
38134 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
38135 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
38136 | fi | |
38137 | ||
6f628073 VS |
38138 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" |
38139 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
38140 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
38141 | fi | |
38142 | ||
3af038c0 VS |
38143 | COND_PLATFORM_MACOSX_1="#" |
38144 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
38145 | COND_PLATFORM_MACOSX_1="" | |
38146 | fi | |
38147 | ||
250700e4 RD |
38148 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" |
38149 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
38150 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
38151 | fi | |
38152 | ||
38153 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
38154 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
38155 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
38156 | fi | |
38157 | ||
38158 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
38159 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
38160 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
38161 | fi | |
38162 | ||
3527f29c VS |
38163 | COND_PLATFORM_MACOSX_1_USE_GUI_1="#" |
38164 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
38165 | COND_PLATFORM_MACOSX_1_USE_GUI_1="" | |
38166 | fi | |
38167 | ||
8ee2dd05 VS |
38168 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" |
38169 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
38170 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
38171 | fi | |
38172 | ||
45842500 VS |
38173 | COND_PLATFORM_MAC_1="#" |
38174 | if test "x$PLATFORM_MAC" = "x1" ; then | |
38175 | COND_PLATFORM_MAC_1="" | |
38176 | fi | |
38177 | ||
3d8c1de0 VS |
38178 | COND_PLATFORM_OS2_1="#" |
38179 | if test "x$PLATFORM_OS2" = "x1" ; then | |
38180 | COND_PLATFORM_OS2_1="" | |
38181 | fi | |
38182 | ||
8772a1a7 VS |
38183 | COND_PLATFORM_UNIX_0="#" |
38184 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
38185 | COND_PLATFORM_UNIX_0="" | |
38186 | fi | |
38187 | ||
3af038c0 VS |
38188 | COND_PLATFORM_UNIX_1="#" |
38189 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
38190 | COND_PLATFORM_UNIX_1="" | |
38191 | fi | |
38192 | ||
3527f29c VS |
38193 | COND_PLATFORM_UNIX_1_USE_GUI_1="#" |
38194 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
38195 | COND_PLATFORM_UNIX_1_USE_GUI_1="" | |
38196 | fi | |
38197 | ||
3af038c0 VS |
38198 | COND_PLATFORM_WIN32_0="#" |
38199 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
38200 | COND_PLATFORM_WIN32_0="" | |
38201 | fi | |
38202 | ||
38203 | COND_PLATFORM_WIN32_1="#" | |
38204 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
38205 | COND_PLATFORM_WIN32_1="" | |
38206 | fi | |
38207 | ||
45842500 VS |
38208 | COND_SHARED_0="#" |
38209 | if test "x$SHARED" = "x0" ; then | |
38210 | COND_SHARED_0="" | |
38211 | fi | |
38212 | ||
250700e4 RD |
38213 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" |
38214 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
38215 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
38216 | fi | |
38217 | ||
52a5a009 VS |
38218 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" |
38219 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
38220 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
38221 | fi | |
38222 | ||
38223 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
38224 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
38225 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
38226 | fi | |
38227 | ||
38228 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
38229 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
38230 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
38231 | fi | |
38232 | ||
38233 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#" | |
38234 | if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
38235 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="" | |
38236 | fi | |
38237 | ||
38238 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="#" | |
38239 | if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then | |
38240 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="" | |
38241 | fi | |
38242 | ||
38243 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="#" | |
38244 | if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then | |
38245 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="" | |
38246 | fi | |
38247 | ||
38248 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#" | |
38249 | if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
38250 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="" | |
38251 | fi | |
38252 | ||
45842500 VS |
38253 | COND_SHARED_1="#" |
38254 | if test "x$SHARED" = "x1" ; then | |
38255 | COND_SHARED_1="" | |
38256 | fi | |
38257 | ||
250700e4 RD |
38258 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" |
38259 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
38260 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
38261 | fi | |
38262 | ||
6f628073 VS |
38263 | COND_TOOLKIT_COCOA="#" |
38264 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
38265 | COND_TOOLKIT_COCOA="" | |
8ee2dd05 VS |
38266 | fi |
38267 | ||
6f628073 VS |
38268 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" |
38269 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
38270 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
8ee2dd05 VS |
38271 | fi |
38272 | ||
6f628073 VS |
38273 | COND_TOOLKIT_GTK="#" |
38274 | if test "x$TOOLKIT" = "xGTK" ; then | |
38275 | COND_TOOLKIT_GTK="" | |
f95cd8fa VS |
38276 | fi |
38277 | ||
6f628073 VS |
38278 | COND_TOOLKIT_GTK_USE_GUI_1="#" |
38279 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
38280 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
f95cd8fa VS |
38281 | fi |
38282 | ||
6f628073 VS |
38283 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#" |
38284 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
38285 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="" | |
8ee2dd05 VS |
38286 | fi |
38287 | ||
3af038c0 VS |
38288 | COND_TOOLKIT_MAC="#" |
38289 | if test "x$TOOLKIT" = "xMAC" ; then | |
38290 | COND_TOOLKIT_MAC="" | |
38291 | fi | |
38292 | ||
8772a1a7 VS |
38293 | COND_TOOLKIT_MAC_USE_GUI_1="#" |
38294 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
38295 | COND_TOOLKIT_MAC_USE_GUI_1="" | |
38296 | fi | |
38297 | ||
6f628073 VS |
38298 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" |
38299 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
38300 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
8ee2dd05 VS |
38301 | fi |
38302 | ||
6f628073 VS |
38303 | COND_TOOLKIT_MGL="#" |
38304 | if test "x$TOOLKIT" = "xMGL" ; then | |
38305 | COND_TOOLKIT_MGL="" | |
8ee2dd05 VS |
38306 | fi |
38307 | ||
6f628073 VS |
38308 | COND_TOOLKIT_MGL_USE_GUI_1="#" |
38309 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
38310 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
8ee2dd05 VS |
38311 | fi |
38312 | ||
6f628073 VS |
38313 | COND_TOOLKIT_MOTIF="#" |
38314 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
38315 | COND_TOOLKIT_MOTIF="" | |
f95cd8fa VS |
38316 | fi |
38317 | ||
6f628073 VS |
38318 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" |
38319 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
38320 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
fe0895cf | 38321 | fi |
e6cc62c6 | 38322 | |
6f628073 VS |
38323 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" |
38324 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
38325 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
8ee2dd05 VS |
38326 | fi |
38327 | ||
6f628073 VS |
38328 | COND_TOOLKIT_MSW="#" |
38329 | if test "x$TOOLKIT" = "xMSW" ; then | |
38330 | COND_TOOLKIT_MSW="" | |
8ee2dd05 VS |
38331 | fi |
38332 | ||
6f628073 VS |
38333 | COND_TOOLKIT_MSW_USE_GUI_1="#" |
38334 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
38335 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
fe0895cf | 38336 | fi |
e6cc62c6 | 38337 | |
6f628073 VS |
38338 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" |
38339 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
38340 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
fe0895cf | 38341 | fi |
e6cc62c6 | 38342 | |
96c1699d VS |
38343 | COND_TOOLKIT_PM="#" |
38344 | if test "x$TOOLKIT" = "xPM" ; then | |
38345 | COND_TOOLKIT_PM="" | |
38346 | fi | |
38347 | ||
38348 | COND_TOOLKIT_PM_USE_GUI_1="#" | |
38349 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then | |
38350 | COND_TOOLKIT_PM_USE_GUI_1="" | |
38351 | fi | |
38352 | ||
38353 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#" | |
38354 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
38355 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="" | |
38356 | fi | |
38357 | ||
6f628073 VS |
38358 | COND_TOOLKIT_X11="#" |
38359 | if test "x$TOOLKIT" = "xX11" ; then | |
38360 | COND_TOOLKIT_X11="" | |
9747f85d VS |
38361 | fi |
38362 | ||
6f628073 VS |
38363 | COND_TOOLKIT_X11_USE_GUI_1="#" |
38364 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
38365 | COND_TOOLKIT_X11_USE_GUI_1="" | |
f95cd8fa VS |
38366 | fi |
38367 | ||
3af038c0 VS |
38368 | COND_UNICODE_1="#" |
38369 | if test "x$UNICODE" = "x1" ; then | |
38370 | COND_UNICODE_1="" | |
38371 | fi | |
38372 | ||
7015ef3a VZ |
38373 | COND_USE_EXCEPTIONS_0="#" |
38374 | if test "x$USE_EXCEPTIONS" = "x0" ; then | |
38375 | COND_USE_EXCEPTIONS_0="" | |
38376 | fi | |
38377 | ||
38378 | COND_USE_EXCEPTIONS_1="#" | |
38379 | if test "x$USE_EXCEPTIONS" = "x1" ; then | |
38380 | COND_USE_EXCEPTIONS_1="" | |
38381 | fi | |
38382 | ||
3af038c0 VS |
38383 | COND_USE_GUI_0="#" |
38384 | if test "x$USE_GUI" = "x0" ; then | |
38385 | COND_USE_GUI_0="" | |
38386 | fi | |
38387 | ||
38388 | COND_USE_GUI_1="#" | |
38389 | if test "x$USE_GUI" = "x1" ; then | |
38390 | COND_USE_GUI_1="" | |
38391 | fi | |
38392 | ||
e6cc62c6 | 38393 | COND_USE_GUI_1_WXUNIV_0="#" |
c7dfb5bb VS |
38394 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then |
38395 | COND_USE_GUI_1_WXUNIV_0="" | |
fe0895cf | 38396 | fi |
e6cc62c6 VS |
38397 | |
38398 | COND_USE_GUI_1_WXUNIV_1="#" | |
c7dfb5bb VS |
38399 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then |
38400 | COND_USE_GUI_1_WXUNIV_1="" | |
e6cc62c6 VS |
38401 | fi |
38402 | ||
66a96744 VS |
38403 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" |
38404 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
38405 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
38406 | fi | |
38407 | ||
38408 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
38409 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
38410 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
38411 | fi | |
38412 | ||
38413 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
38414 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
38415 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
38416 | fi | |
38417 | ||
57e7d4ac VS |
38418 | COND_USE_ODBC_1="#" |
38419 | if test "x$USE_ODBC" = "x1" ; then | |
38420 | COND_USE_ODBC_1="" | |
38421 | fi | |
38422 | ||
6f628073 VS |
38423 | COND_USE_SOSYMLINKS_1="#" |
38424 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
38425 | COND_USE_SOSYMLINKS_1="" | |
b625909c VS |
38426 | fi |
38427 | ||
6f628073 VS |
38428 | COND_USE_SOVERLINUX_1="#" |
38429 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
38430 | COND_USE_SOVERLINUX_1="" | |
b625909c VS |
38431 | fi |
38432 | ||
6f628073 VS |
38433 | COND_USE_SOVERSION_0="#" |
38434 | if test "x$USE_SOVERSION" = "x0" ; then | |
38435 | COND_USE_SOVERSION_0="" | |
fddeb06b | 38436 | fi |
fe0895cf | 38437 | |
6f628073 VS |
38438 | COND_USE_SOVERSOLARIS_1="#" |
38439 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
38440 | COND_USE_SOVERSOLARIS_1="" | |
fddeb06b | 38441 | fi |
fe0895cf | 38442 | |
3af038c0 VS |
38443 | COND_WXUNIV_1="#" |
38444 | if test "x$WXUNIV" = "x1" ; then | |
38445 | COND_WXUNIV_1="" | |
38446 | fi | |
38447 | ||
66a96744 VS |
38448 | COND_WXUSE_EXPAT_BUILTIN="#" |
38449 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
38450 | COND_WXUSE_EXPAT_BUILTIN="" | |
38451 | fi | |
38452 | ||
02980527 VS |
38453 | COND_WXUSE_LIBJPEG_BUILTIN="#" |
38454 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
38455 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
38456 | fi | |
38457 | ||
38458 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
38459 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
38460 | COND_WXUSE_LIBPNG_BUILTIN="" | |
38461 | fi | |
38462 | ||
38463 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
38464 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
38465 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
38466 | fi | |
38467 | ||
38468 | COND_WXUSE_ODBC_BUILTIN="#" | |
38469 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
38470 | COND_WXUSE_ODBC_BUILTIN="" | |
38471 | fi | |
38472 | ||
38473 | COND_WXUSE_REGEX_BUILTIN="#" | |
38474 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
38475 | COND_WXUSE_REGEX_BUILTIN="" | |
38476 | fi | |
38477 | ||
38478 | COND_WXUSE_ZLIB_BUILTIN="#" | |
38479 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
38480 | COND_WXUSE_ZLIB_BUILTIN="" | |
38481 | fi | |
38482 | ||
1772d20c | 38483 | |
fe0895cf | 38484 | |
fe0895cf | 38485 | |
fe0895cf | 38486 | |
45842500 | 38487 | if test $GCC_PCH = 1 ; then |
130711ba | 38488 | CODE_GEN_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CODE_GEN_FLAGS" |
45842500 VS |
38489 | CPPFLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CPPFLAGS" |
38490 | else | |
38491 | case "${host}" in | |
38492 | powerpc-*-darwin* ) | |
130711ba VS |
38493 | CODE_GEN_FLAGS="-DNO_GCC_PRAGMA $CODE_GEN_FLAGS" |
38494 | CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS" | |
45842500 | 38495 | ;; |
45842500 VS |
38496 | esac |
38497 | fi | |
fe0895cf VS |
38498 | |
38499 | ||
fddeb06b | 38500 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" |
fe0895cf VS |
38501 | |
38502 | ||
38503 | ||
38504 | ||
38505 | ||
38506 | ||
38507 | ||
38508 | ||
38509 | ||
38510 | ||
38511 | ||
38512 | ||
38513 | ||
38514 | ||
38515 | ||
38516 | ||
38517 | ||
38518 | ||
38519 | ||
38520 | ||
38521 | ||
38522 | ||
38523 | ||
38524 | ||
38525 | ||
38526 | ||
38527 | ||
38528 | ||
38529 | ||
38530 | ||
38531 | ||
38532 | ||
38533 | ||
38534 | ||
38535 | ||
38536 | ||
38537 | ||
38538 | ||
38539 | ||
38540 | ||
38541 | ||
38542 | ||
38543 | ||
38544 | ||
38545 | ||
38546 | ||
38547 | ||
38548 | ||
38549 | ||
38550 | ||
38551 | ||
38552 | ||
38553 | ||
38554 | ||
38555 | ||
38556 | ||
38557 | ||
38558 | ||
38559 | ||
38560 | ||
38561 | ||
38562 | ||
38563 | ||
38564 | ||
38565 | ||
38566 | ||
38567 | ||
38568 | ||
38569 | ||
38570 | ||
38571 | ||
38572 | ||
38573 | ||
38574 | ||
38575 | ||
38576 | ||
38577 | ||
38578 | ||
38579 | ||
38580 | ||
38581 | ||
38582 | ||
38583 | ||
38584 | ||
38585 | ||
38586 | ||
38587 | ||
38588 | ||
38589 | ||
38590 | ||
38591 | ||
38592 | ||
38593 | ||
38594 | ||
fe0895cf | 38595 | |
f0290fca VS |
38596 | |
38597 | ||
67c13b6c | 38598 | |
e6cc62c6 VS |
38599 | |
38600 | ||
38601 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
38602 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
eea650d8 | 38603 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
e6cc62c6 VS |
38604 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
38605 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38606 | else | |
38607 | cat >conftest.make <<\_ACEOF | |
38608 | all: | |
38609 | @echo 'ac_maketemp="$(MAKE)"' | |
38610 | _ACEOF | |
38611 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
38612 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
38613 | if test -n "$ac_maketemp"; then | |
38614 | eval ac_cv_prog_make_${ac_make}_set=yes | |
38615 | else | |
38616 | eval ac_cv_prog_make_${ac_make}_set=no | |
38617 | fi | |
38618 | rm -f conftest.make | |
38619 | fi | |
38620 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
38621 | echo "$as_me:$LINENO: result: yes" >&5 | |
38622 | echo "${ECHO_T}yes" >&6 | |
38623 | SET_MAKE= | |
38624 | else | |
38625 | echo "$as_me:$LINENO: result: no" >&5 | |
38626 | echo "${ECHO_T}no" >&6 | |
38627 | SET_MAKE="MAKE=${MAKE-make}" | |
38628 | fi | |
38629 | ||
38630 | ||
38631 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then | |
38632 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
38633 | fi | |
38634 | ||
38635 | ac_config_headers="$ac_config_headers setup.h" | |
38636 | ||
38637 | ||
81345eef | 38638 | ac_config_files="$ac_config_files wx-config version-script Makefile" |
e6cc62c6 VS |
38639 | |
38640 | ||
38641 | ac_config_commands="$ac_config_commands default" | |
38642 | ||
38643 | ||
9de9b8f0 | 38644 | |
6c3e36af VZ |
38645 | if test "$wxUSE_GUI" = "yes"; then |
38646 | SUBDIRS="samples demos utils contrib" | |
38647 | else SUBDIRS="samples utils" | |
38648 | fi | |
e6cc62c6 | 38649 | |
166263e6 | 38650 | for subdir in `echo $SUBDIRS`; do |
9747f85d | 38651 | if test -d ${srcdir}/${subdir} ; then |
6c3e36af | 38652 | if test "$wxUSE_GUI" = "yes"; then |
166263e6 | 38653 | if test ${subdir} = "samples"; then |
8772a1a7 VS |
38654 | makefiles="samples/Makefile.in $makefiles" |
38655 | for sample in `echo $SAMPLES_SUBDIRS`; do | |
166263e6 VZ |
38656 | if test -d $srcdir/samples/$sample; then |
38657 | makefiles="samples/$sample/Makefile.in $makefiles" | |
38658 | fi | |
38659 | done | |
38660 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` | |
38661 | fi | |
6c3e36af | 38662 | else if test ${subdir} = "samples"; then |
8772a1a7 | 38663 | makefiles="samples/Makefile.in samples/console/Makefile.in" |
6c3e36af | 38664 | else makefiles="utils/HelpGen/Makefile.in \ |
2bf8cafb VS |
38665 | utils/HelpGen/src/Makefile.in \ |
38666 | utils/tex2rtf/Makefile.in \ | |
38667 | utils/tex2rtf/src/Makefile.in" | |
6c3e36af VZ |
38668 | fi |
38669 | fi | |
38670 | ||
9747f85d VS |
38671 | for mkin in $makefiles ; do |
38672 | mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'` | |
38673 | ac_config_files="$ac_config_files $mk" | |
e6cc62c6 | 38674 | |
9747f85d VS |
38675 | done |
38676 | fi | |
38677 | done | |
e6cc62c6 | 38678 | |
9de9b8f0 | 38679 | |
e6cc62c6 VS |
38680 | cat >confcache <<\_ACEOF |
38681 | # This file is a shell script that caches the results of configure | |
38682 | # tests run on this system so they can be shared between configure | |
38683 | # scripts and configure runs, see configure's option --config-cache. | |
38684 | # It is not useful on other systems. If it contains results you don't | |
38685 | # want to keep, you may remove or edit it. | |
38686 | # | |
38687 | # config.status only pays attention to the cache file if you give it | |
38688 | # the --recheck option to rerun configure. | |
38689 | # | |
38690 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
38691 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
38692 | # following values. | |
38693 | ||
38694 | _ACEOF | |
38695 | ||
38696 | # The following way of writing the cache mishandles newlines in values, | |
38697 | # but we know of no workaround that is simple, portable, and efficient. | |
38698 | # So, don't put newlines in cache variables' values. | |
38699 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
38700 | # and sets the high bit in the cache file unless we assign to the vars. | |
38701 | { | |
38702 | (set) 2>&1 | | |
38703 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
38704 | *ac_space=\ *) | |
38705 | # `set' does not quote correctly, so add quotes (double-quote | |
38706 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
38707 | sed -n \ | |
eea650d8 VS |
38708 | "s/'/'\\\\''/g; |
38709 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
e6cc62c6 VS |
38710 | ;; |
38711 | *) | |
38712 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
38713 | sed -n \ | |
eea650d8 | 38714 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
e6cc62c6 VS |
38715 | ;; |
38716 | esac; | |
38717 | } | | |
38718 | sed ' | |
38719 | t clear | |
38720 | : clear | |
38721 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
38722 | t end | |
38723 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
38724 | : end' >>confcache | |
38725 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
38726 | if test -w $cache_file; then | |
38727 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
38728 | cat confcache >$cache_file | |
38729 | else | |
38730 | echo "not updating unwritable cache $cache_file" | |
38731 | fi | |
38732 | fi | |
38733 | rm -f confcache | |
38734 | ||
38735 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
38736 | # Let make expand exec_prefix. | |
38737 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
38738 | ||
38739 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
38740 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
38741 | # trailing colons and then remove the whole line if VPATH becomes empty | |
38742 | # (actually we leave an empty line to preserve line numbers). | |
38743 | if test "x$srcdir" = x.; then | |
eea650d8 | 38744 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
e6cc62c6 VS |
38745 | s/:*\$(srcdir):*/:/; |
38746 | s/:*\${srcdir}:*/:/; | |
38747 | s/:*@srcdir@:*/:/; | |
eea650d8 | 38748 | s/^\([^=]*=[ ]*\):*/\1/; |
e6cc62c6 | 38749 | s/:*$//; |
eea650d8 | 38750 | s/^[^=]*=[ ]*$//; |
e6cc62c6 VS |
38751 | }' |
38752 | fi | |
38753 | ||
38754 | DEFS=-DHAVE_CONFIG_H | |
38755 | ||
38756 | ac_libobjs= | |
38757 | ac_ltlibobjs= | |
38758 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
38759 | # 1. Remove the extension, and $U if already installed. | |
38760 | ac_i=`echo "$ac_i" | | |
eea650d8 | 38761 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
e6cc62c6 VS |
38762 | # 2. Add them. |
38763 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
38764 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
38765 | done | |
38766 | LIBOBJS=$ac_libobjs | |
38767 | ||
38768 | LTLIBOBJS=$ac_ltlibobjs | |
38769 | ||
38770 | ||
38771 | ||
38772 | : ${CONFIG_STATUS=./config.status} | |
38773 | ac_clean_files_save=$ac_clean_files | |
38774 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
38775 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
38776 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
38777 | cat >$CONFIG_STATUS <<_ACEOF | |
38778 | #! $SHELL | |
38779 | # Generated by $as_me. | |
38780 | # Run this file to recreate the current configuration. | |
38781 | # Compiler output produced by configure, useful for debugging | |
38782 | # configure, is in config.log if it exists. | |
38783 | ||
38784 | debug=false | |
38785 | ac_cs_recheck=false | |
38786 | ac_cs_silent=false | |
38787 | SHELL=\${CONFIG_SHELL-$SHELL} | |
38788 | _ACEOF | |
38789 | ||
38790 | cat >>$CONFIG_STATUS <<\_ACEOF | |
38791 | ## --------------------- ## | |
38792 | ## M4sh Initialization. ## | |
38793 | ## --------------------- ## | |
38794 | ||
38795 | # Be Bourne compatible | |
38796 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
38797 | emulate sh | |
38798 | NULLCMD=: | |
38799 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
38800 | # is contrary to our usage. Disable this feature. | |
38801 | alias -g '${1+"$@"}'='"$@"' | |
38802 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
38803 | set -o posix | |
38804 | fi | |
eea650d8 | 38805 | DUALCASE=1; export DUALCASE # for MKS sh |
e6cc62c6 VS |
38806 | |
38807 | # Support unset when possible. | |
eea650d8 | 38808 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
e6cc62c6 VS |
38809 | as_unset=unset |
38810 | else | |
38811 | as_unset=false | |
38812 | fi | |
38813 | ||
38814 | ||
38815 | # Work around bugs in pre-3.0 UWIN ksh. | |
38816 | $as_unset ENV MAIL MAILPATH | |
38817 | PS1='$ ' | |
38818 | PS2='> ' | |
38819 | PS4='+ ' | |
38820 | ||
38821 | # NLS nuisances. | |
38822 | for as_var in \ | |
38823 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
38824 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
38825 | LC_TELEPHONE LC_TIME | |
38826 | do | |
eea650d8 | 38827 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
e6cc62c6 VS |
38828 | eval $as_var=C; export $as_var |
38829 | else | |
38830 | $as_unset $as_var | |
38831 | fi | |
38832 | done | |
38833 | ||
38834 | # Required to use basename. | |
38835 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
38836 | as_expr=expr | |
38837 | else | |
38838 | as_expr=false | |
38839 | fi | |
38840 | ||
38841 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
38842 | as_basename=basename | |
38843 | else | |
38844 | as_basename=false | |
38845 | fi | |
38846 | ||
38847 | ||
38848 | # Name of the executable. | |
38849 | as_me=`$as_basename "$0" || | |
38850 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
38851 | X"$0" : 'X\(//\)$' \| \ | |
38852 | X"$0" : 'X\(/\)$' \| \ | |
38853 | . : '\(.\)' 2>/dev/null || | |
38854 | echo X/"$0" | | |
38855 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
38856 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
38857 | /^X\/\(\/\).*/{ s//\1/; q; } | |
38858 | s/.*/./; q'` | |
38859 | ||
38860 | ||
38861 | # PATH needs CR, and LINENO needs CR and PATH. | |
38862 | # Avoid depending upon Character Ranges. | |
38863 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
38864 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
38865 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
38866 | as_cr_digits='0123456789' | |
38867 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
38868 | ||
38869 | # The user is always right. | |
38870 | if test "${PATH_SEPARATOR+set}" != set; then | |
38871 | echo "#! /bin/sh" >conf$$.sh | |
38872 | echo "exit 0" >>conf$$.sh | |
38873 | chmod +x conf$$.sh | |
38874 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
38875 | PATH_SEPARATOR=';' | |
38876 | else | |
38877 | PATH_SEPARATOR=: | |
38878 | fi | |
38879 | rm -f conf$$.sh | |
38880 | fi | |
38881 | ||
38882 | ||
38883 | as_lineno_1=$LINENO | |
38884 | as_lineno_2=$LINENO | |
38885 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
38886 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
38887 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
38888 | # Find who we are. Look in the path if we contain no path at all | |
38889 | # relative or not. | |
38890 | case $0 in | |
38891 | *[\\/]* ) as_myself=$0 ;; | |
38892 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38893 | for as_dir in $PATH | |
38894 | do | |
38895 | IFS=$as_save_IFS | |
38896 | test -z "$as_dir" && as_dir=. | |
38897 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
38898 | done | |
38899 | ||
38900 | ;; | |
38901 | esac | |
38902 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
38903 | # in which case we are not to be found in the path. | |
38904 | if test "x$as_myself" = x; then | |
38905 | as_myself=$0 | |
38906 | fi | |
38907 | if test ! -f "$as_myself"; then | |
38908 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
38909 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
38910 | { (exit 1); exit 1; }; } | |
38911 | fi | |
38912 | case $CONFIG_SHELL in | |
38913 | '') | |
38914 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38915 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
38916 | do | |
38917 | IFS=$as_save_IFS | |
38918 | test -z "$as_dir" && as_dir=. | |
38919 | for as_base in sh bash ksh sh5; do | |
38920 | case $as_dir in | |
38921 | /*) | |
38922 | if ("$as_dir/$as_base" -c ' | |
38923 | as_lineno_1=$LINENO | |
38924 | as_lineno_2=$LINENO | |
38925 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
38926 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
38927 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
38928 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
38929 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
38930 | CONFIG_SHELL=$as_dir/$as_base | |
38931 | export CONFIG_SHELL | |
38932 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
38933 | fi;; | |
38934 | esac | |
38935 | done | |
38936 | done | |
38937 | ;; | |
38938 | esac | |
38939 | ||
38940 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
38941 | # uniformly replaced by the line number. The first 'sed' inserts a | |
38942 | # line-number line before each line; the second 'sed' does the real | |
38943 | # work. The second script uses 'N' to pair each line-number line | |
38944 | # with the numbered line, and appends trailing '-' during | |
38945 | # substitution so that $LINENO is not a special case at line end. | |
38946 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
38947 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
38948 | sed '=' <$as_myself | | |
38949 | sed ' | |
38950 | N | |
38951 | s,$,-, | |
38952 | : loop | |
38953 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
38954 | t loop | |
38955 | s,-$,, | |
38956 | s,^['$as_cr_digits']*\n,, | |
38957 | ' >$as_me.lineno && | |
38958 | chmod +x $as_me.lineno || | |
38959 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
38960 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
38961 | { (exit 1); exit 1; }; } | |
38962 | ||
38963 | # Don't try to exec as it changes $[0], causing all sort of problems | |
38964 | # (the dirname of $[0] is not the place where we might find the | |
38965 | # original and so on. Autoconf is especially sensible to this). | |
38966 | . ./$as_me.lineno | |
38967 | # Exit status is that of the last command. | |
38968 | exit | |
38969 | } | |
38970 | ||
38971 | ||
38972 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
38973 | *c*,-n*) ECHO_N= ECHO_C=' | |
38974 | ' ECHO_T=' ' ;; | |
38975 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
38976 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
38977 | esac | |
38978 | ||
38979 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
38980 | as_expr=expr | |
38981 | else | |
38982 | as_expr=false | |
38983 | fi | |
38984 | ||
38985 | rm -f conf$$ conf$$.exe conf$$.file | |
38986 | echo >conf$$.file | |
38987 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
38988 | # We could just check for DJGPP; but this test a) works b) is more generic | |
38989 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
38990 | if test -f conf$$.exe; then | |
38991 | # Don't use ln at all; we don't have any links | |
38992 | as_ln_s='cp -p' | |
38993 | else | |
38994 | as_ln_s='ln -s' | |
38995 | fi | |
38996 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
38997 | as_ln_s=ln | |
38998 | else | |
38999 | as_ln_s='cp -p' | |
39000 | fi | |
39001 | rm -f conf$$ conf$$.exe conf$$.file | |
39002 | ||
39003 | if mkdir -p . 2>/dev/null; then | |
39004 | as_mkdir_p=: | |
39005 | else | |
eea650d8 | 39006 | test -d ./-p && rmdir ./-p |
e6cc62c6 VS |
39007 | as_mkdir_p=false |
39008 | fi | |
39009 | ||
39010 | as_executable_p="test -f" | |
39011 | ||
39012 | # Sed expression to map a string onto a valid CPP name. | |
eea650d8 | 39013 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
e6cc62c6 VS |
39014 | |
39015 | # Sed expression to map a string onto a valid variable name. | |
eea650d8 | 39016 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
e6cc62c6 VS |
39017 | |
39018 | ||
39019 | # IFS | |
39020 | # We need space, tab and new line, in precisely that order. | |
39021 | as_nl=' | |
39022 | ' | |
39023 | IFS=" $as_nl" | |
39024 | ||
39025 | # CDPATH. | |
39026 | $as_unset CDPATH | |
39027 | ||
39028 | exec 6>&1 | |
39029 | ||
39030 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
39031 | # report actual input values of CONFIG_FILES etc. instead of their | |
39032 | # values after options handling. Logging --version etc. is OK. | |
39033 | exec 5>>config.log | |
39034 | { | |
39035 | echo | |
39036 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
39037 | ## Running $as_me. ## | |
39038 | _ASBOX | |
39039 | } >&5 | |
39040 | cat >&5 <<_CSEOF | |
39041 | ||
e46d2a18 | 39042 | This file was extended by wxWindows $as_me 2.5.1, which was |
eea650d8 | 39043 | generated by GNU Autoconf 2.58. Invocation command line was |
e6cc62c6 VS |
39044 | |
39045 | CONFIG_FILES = $CONFIG_FILES | |
39046 | CONFIG_HEADERS = $CONFIG_HEADERS | |
39047 | CONFIG_LINKS = $CONFIG_LINKS | |
39048 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
39049 | $ $0 $@ | |
39050 | ||
39051 | _CSEOF | |
39052 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
39053 | echo >&5 | |
39054 | _ACEOF | |
39055 | ||
39056 | # Files that config.status was made for. | |
39057 | if test -n "$ac_config_files"; then | |
39058 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
39059 | fi | |
39060 | ||
39061 | if test -n "$ac_config_headers"; then | |
39062 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
39063 | fi | |
39064 | ||
39065 | if test -n "$ac_config_links"; then | |
39066 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
39067 | fi | |
39068 | ||
39069 | if test -n "$ac_config_commands"; then | |
39070 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
39071 | fi | |
39072 | ||
39073 | cat >>$CONFIG_STATUS <<\_ACEOF | |
39074 | ||
39075 | ac_cs_usage="\ | |
39076 | \`$as_me' instantiates files from templates according to the | |
39077 | current configuration. | |
39078 | ||
39079 | Usage: $0 [OPTIONS] [FILE]... | |
39080 | ||
39081 | -h, --help print this help, then exit | |
39082 | -V, --version print version number, then exit | |
39083 | -q, --quiet do not print progress messages | |
39084 | -d, --debug don't remove temporary files | |
39085 | --recheck update $as_me by reconfiguring in the same conditions | |
39086 | --file=FILE[:TEMPLATE] | |
eea650d8 | 39087 | instantiate the configuration file FILE |
e6cc62c6 | 39088 | --header=FILE[:TEMPLATE] |
eea650d8 | 39089 | instantiate the configuration header FILE |
e6cc62c6 VS |
39090 | |
39091 | Configuration files: | |
39092 | $config_files | |
39093 | ||
39094 | Configuration headers: | |
39095 | $config_headers | |
39096 | ||
39097 | Configuration commands: | |
39098 | $config_commands | |
39099 | ||
39100 | Report bugs to <bug-autoconf@gnu.org>." | |
39101 | _ACEOF | |
39102 | ||
39103 | cat >>$CONFIG_STATUS <<_ACEOF | |
39104 | ac_cs_version="\\ | |
e46d2a18 | 39105 | wxWindows config.status 2.5.1 |
eea650d8 | 39106 | configured by $0, generated by GNU Autoconf 2.58, |
e6cc62c6 VS |
39107 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
39108 | ||
eea650d8 | 39109 | Copyright (C) 2003 Free Software Foundation, Inc. |
e6cc62c6 VS |
39110 | This config.status script is free software; the Free Software Foundation |
39111 | gives unlimited permission to copy, distribute and modify it." | |
39112 | srcdir=$srcdir | |
39113 | INSTALL="$INSTALL" | |
39114 | _ACEOF | |
39115 | ||
39116 | cat >>$CONFIG_STATUS <<\_ACEOF | |
39117 | # If no file are specified by the user, then we need to provide default | |
39118 | # value. By we need to know if files were specified by the user. | |
39119 | ac_need_defaults=: | |
39120 | while test $# != 0 | |
39121 | do | |
39122 | case $1 in | |
39123 | --*=*) | |
39124 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
39125 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
39126 | ac_shift=: | |
39127 | ;; | |
39128 | -*) | |
39129 | ac_option=$1 | |
39130 | ac_optarg=$2 | |
39131 | ac_shift=shift | |
39132 | ;; | |
39133 | *) # This is not an option, so the user has probably given explicit | |
39134 | # arguments. | |
39135 | ac_option=$1 | |
39136 | ac_need_defaults=false;; | |
39137 | esac | |
39138 | ||
39139 | case $ac_option in | |
39140 | # Handling of the options. | |
39141 | _ACEOF | |
39142 | cat >>$CONFIG_STATUS <<\_ACEOF | |
39143 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
39144 | ac_cs_recheck=: ;; | |
39145 | --version | --vers* | -V ) | |
39146 | echo "$ac_cs_version"; exit 0 ;; | |
39147 | --he | --h) | |
39148 | # Conflict between --help and --header | |
39149 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
39150 | Try \`$0 --help' for more information." >&5 | |
39151 | echo "$as_me: error: ambiguous option: $1 | |
39152 | Try \`$0 --help' for more information." >&2;} | |
39153 | { (exit 1); exit 1; }; };; | |
39154 | --help | --hel | -h ) | |
39155 | echo "$ac_cs_usage"; exit 0 ;; | |
39156 | --debug | --d* | -d ) | |
39157 | debug=: ;; | |
39158 | --file | --fil | --fi | --f ) | |
39159 | $ac_shift | |
39160 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
39161 | ac_need_defaults=false;; | |
39162 | --header | --heade | --head | --hea ) | |
39163 | $ac_shift | |
39164 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
39165 | ac_need_defaults=false;; | |
39166 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
39167 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
39168 | ac_cs_silent=: ;; | |
39169 | ||
39170 | # This is an error. | |
39171 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
39172 | Try \`$0 --help' for more information." >&5 | |
39173 | echo "$as_me: error: unrecognized option: $1 | |
39174 | Try \`$0 --help' for more information." >&2;} | |
39175 | { (exit 1); exit 1; }; } ;; | |
39176 | ||
39177 | *) ac_config_targets="$ac_config_targets $1" ;; | |
39178 | ||
39179 | esac | |
39180 | shift | |
39181 | done | |
39182 | ||
39183 | ac_configure_extra_args= | |
39184 | ||
39185 | if $ac_cs_silent; then | |
39186 | exec 6>/dev/null | |
39187 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
fe0895cf VS |
39188 | fi |
39189 | ||
e6cc62c6 VS |
39190 | _ACEOF |
39191 | cat >>$CONFIG_STATUS <<_ACEOF | |
39192 | if \$ac_cs_recheck; then | |
39193 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
39194 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
fe0895cf VS |
39195 | fi |
39196 | ||
e6cc62c6 | 39197 | _ACEOF |
fe0895cf | 39198 | |
e6cc62c6 | 39199 | cat >>$CONFIG_STATUS <<_ACEOF |
10f2d63a | 39200 | # |
e6cc62c6 | 39201 | # INIT-COMMANDS section. |
10f2d63a | 39202 | # |
10f2d63a | 39203 | |
a0b9e27f | 39204 | |
e6cc62c6 VS |
39205 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" |
39206 | LN_S="${LN_S}" | |
10f2d63a | 39207 | |
10f2d63a | 39208 | |
10f2d63a | 39209 | |
e6cc62c6 | 39210 | _ACEOF |
8284b0c5 | 39211 | |
52127426 | 39212 | |
247f5006 | 39213 | |
e6cc62c6 VS |
39214 | cat >>$CONFIG_STATUS <<\_ACEOF |
39215 | for ac_config_target in $ac_config_targets | |
247f5006 | 39216 | do |
e6cc62c6 VS |
39217 | case "$ac_config_target" in |
39218 | # Handling of arguments. | |
81345eef VZ |
39219 | "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;; |
39220 | "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;; | |
39221 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
9747f85d | 39222 | "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;; |
e6cc62c6 VS |
39223 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
39224 | "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;; | |
39225 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
39226 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
39227 | { (exit 1); exit 1; }; };; | |
247f5006 VZ |
39228 | esac |
39229 | done | |
39230 | ||
e6cc62c6 VS |
39231 | # If the user did not use the arguments to specify the items to instantiate, |
39232 | # then the envvar interface is used. Set only those that are not. | |
39233 | # We use the long form for the default assignment because of an extremely | |
39234 | # bizarre bug on SunOS 4.1.3. | |
39235 | if $ac_need_defaults; then | |
39236 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
39237 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
39238 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
39239 | fi | |
39240 | ||
39241 | # Have a temporary directory for convenience. Make it in the build tree | |
39242 | # simply because there is no reason to put it here, and in addition, | |
39243 | # creating and moving files from /tmp can sometimes cause problems. | |
39244 | # Create a temporary directory, and hook for its removal unless debugging. | |
39245 | $debug || | |
39246 | { | |
39247 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
39248 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
39249 | } | |
247f5006 | 39250 | |
e6cc62c6 | 39251 | # Create a (secure) tmp directory for tmp files. |
247f5006 | 39252 | |
e6cc62c6 VS |
39253 | { |
39254 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
39255 | test -n "$tmp" && test -d "$tmp" | |
39256 | } || | |
39257 | { | |
39258 | tmp=./confstat$$-$RANDOM | |
39259 | (umask 077 && mkdir $tmp) | |
39260 | } || | |
39261 | { | |
39262 | echo "$me: cannot create a temporary directory in ." >&2 | |
39263 | { (exit 1); exit 1; } | |
39264 | } | |
39265 | ||
39266 | _ACEOF | |
39267 | ||
39268 | cat >>$CONFIG_STATUS <<_ACEOF | |
39269 | ||
39270 | # | |
39271 | # CONFIG_FILES section. | |
39272 | # | |
247f5006 | 39273 | |
e6cc62c6 VS |
39274 | # No need to generate the scripts if there are no CONFIG_FILES. |
39275 | # This happens for instance when ./config.status config.h | |
39276 | if test -n "\$CONFIG_FILES"; then | |
39277 | # Protect against being on the right side of a sed subst in config.status. | |
39278 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
39279 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
39280 | s,@SHELL@,$SHELL,;t t | |
39281 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
39282 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
39283 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
39284 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
39285 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
39286 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
39287 | s,@exec_prefix@,$exec_prefix,;t t | |
39288 | s,@prefix@,$prefix,;t t | |
39289 | s,@program_transform_name@,$program_transform_name,;t t | |
39290 | s,@bindir@,$bindir,;t t | |
39291 | s,@sbindir@,$sbindir,;t t | |
39292 | s,@libexecdir@,$libexecdir,;t t | |
39293 | s,@datadir@,$datadir,;t t | |
39294 | s,@sysconfdir@,$sysconfdir,;t t | |
39295 | s,@sharedstatedir@,$sharedstatedir,;t t | |
39296 | s,@localstatedir@,$localstatedir,;t t | |
39297 | s,@libdir@,$libdir,;t t | |
39298 | s,@includedir@,$includedir,;t t | |
39299 | s,@oldincludedir@,$oldincludedir,;t t | |
39300 | s,@infodir@,$infodir,;t t | |
39301 | s,@mandir@,$mandir,;t t | |
39302 | s,@build_alias@,$build_alias,;t t | |
39303 | s,@host_alias@,$host_alias,;t t | |
39304 | s,@target_alias@,$target_alias,;t t | |
39305 | s,@DEFS@,$DEFS,;t t | |
39306 | s,@ECHO_C@,$ECHO_C,;t t | |
39307 | s,@ECHO_N@,$ECHO_N,;t t | |
39308 | s,@ECHO_T@,$ECHO_T,;t t | |
39309 | s,@LIBS@,$LIBS,;t t | |
39310 | s,@build@,$build,;t t | |
39311 | s,@build_cpu@,$build_cpu,;t t | |
39312 | s,@build_vendor@,$build_vendor,;t t | |
39313 | s,@build_os@,$build_os,;t t | |
39314 | s,@host@,$host,;t t | |
39315 | s,@host_cpu@,$host_cpu,;t t | |
39316 | s,@host_vendor@,$host_vendor,;t t | |
39317 | s,@host_os@,$host_os,;t t | |
39318 | s,@target@,$target,;t t | |
39319 | s,@target_cpu@,$target_cpu,;t t | |
39320 | s,@target_vendor@,$target_vendor,;t t | |
39321 | s,@target_os@,$target_os,;t t | |
39322 | s,@CC@,$CC,;t t | |
39323 | s,@CFLAGS@,$CFLAGS,;t t | |
39324 | s,@LDFLAGS@,$LDFLAGS,;t t | |
39325 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
39326 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
39327 | s,@EXEEXT@,$EXEEXT,;t t | |
39328 | s,@OBJEXT@,$OBJEXT,;t t | |
39329 | s,@CPP@,$CPP,;t t | |
39330 | s,@EGREP@,$EGREP,;t t | |
39331 | s,@CXX@,$CXX,;t t | |
39332 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
39333 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
39334 | s,@RANLIB@,$RANLIB,;t t | |
39335 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
39336 | s,@AR@,$AR,;t t | |
39337 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
39338 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
39339 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
39340 | s,@STRIP@,$STRIP,;t t | |
39341 | s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t | |
e6cc62c6 VS |
39342 | s,@LN_S@,$LN_S,;t t |
39343 | s,@CXXCPP@,$CXXCPP,;t t | |
672abd7a | 39344 | s,@subdirs@,$subdirs,;t t |
e6cc62c6 VS |
39345 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t |
39346 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
39347 | s,@GTK_LIBS@,$GTK_LIBS,;t t | |
39348 | s,@GTK_CONFIG@,$GTK_CONFIG,;t t | |
39349 | s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t | |
39350 | s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t | |
39351 | s,@X_CFLAGS@,$X_CFLAGS,;t t | |
39352 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t | |
39353 | s,@X_LIBS@,$X_LIBS,;t t | |
39354 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t | |
39355 | s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t | |
39356 | s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t | |
39357 | s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t | |
39358 | s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t | |
e6cc62c6 VS |
39359 | s,@RESCOMP@,$RESCOMP,;t t |
39360 | s,@DEREZ@,$DEREZ,;t t | |
39361 | s,@SETFILE@,$SETFILE,;t t | |
39362 | s,@LIBICONV@,$LIBICONV,;t t | |
edd891e2 VS |
39363 | s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t |
39364 | s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t | |
39365 | s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t | |
e6cc62c6 VS |
39366 | s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t |
39367 | s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t | |
672abd7a | 39368 | s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t |
e6cc62c6 VS |
39369 | s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t |
39370 | s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t | |
39371 | s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t | |
39372 | s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t | |
8ee2dd05 VS |
39373 | s,@VENDOR@,$VENDOR,;t t |
39374 | s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t | |
e6cc62c6 VS |
39375 | s,@WXUNIV@,$WXUNIV,;t t |
39376 | s,@MONOLITHIC@,$MONOLITHIC,;t t | |
39377 | s,@EXTRALIBS@,$EXTRALIBS,;t t | |
672abd7a | 39378 | s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t |
3527f29c | 39379 | s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t |
bb41dcbe | 39380 | s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t |
c74dc163 | 39381 | s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t |
34b08d2c | 39382 | s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t |
e6cc62c6 VS |
39383 | s,@UNICODE@,$UNICODE,;t t |
39384 | s,@BUILD@,$BUILD,;t t | |
6c67131a VS |
39385 | s,@DEBUG_INFO@,$DEBUG_INFO,;t t |
39386 | s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t | |
e6cc62c6 VS |
39387 | s,@SHARED@,$SHARED,;t t |
39388 | s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t | |
39389 | s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t | |
39390 | s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t | |
0f1bc9c2 | 39391 | s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t |
ea66c762 | 39392 | s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t |
e6cc62c6 VS |
39393 | s,@SET_MAKE@,$SET_MAKE,;t t |
39394 | s,@MAKE_SET@,$MAKE_SET,;t t | |
874d12cf VS |
39395 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
39396 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
39397 | s,@NM@,$NM,;t t | |
39398 | s,@ac_ct_NM@,$ac_ct_NM,;t t | |
e6cc62c6 | 39399 | s,@INSTALL_DIR@,$INSTALL_DIR,;t t |
6b9d41a5 | 39400 | s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t |
e6cc62c6 VS |
39401 | s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t |
39402 | s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t | |
39403 | s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t | |
39404 | s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t | |
39405 | s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t | |
96c1699d | 39406 | s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t |
e6cc62c6 | 39407 | s,@SO_SUFFIX@,$SO_SUFFIX,;t t |
131f235d | 39408 | s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t |
4b1f6360 | 39409 | s,@LIBPREFIX@,$LIBPREFIX,;t t |
e6cc62c6 | 39410 | s,@DLLPREFIX@,$DLLPREFIX,;t t |
131f235d | 39411 | s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t |
dc838d98 | 39412 | s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t |
e6cc62c6 VS |
39413 | s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t |
39414 | s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t | |
131f235d VS |
39415 | s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t |
39416 | s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t | |
e6cc62c6 VS |
39417 | s,@PIC_FLAG@,$PIC_FLAG,;t t |
39418 | s,@USE_SOVERSION@,$USE_SOVERSION,;t t | |
39419 | s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t | |
39420 | s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t | |
39421 | s,@USE_MACVERSION@,$USE_MACVERSION,;t t | |
39422 | s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t | |
39423 | s,@SONAME_FLAG@,$SONAME_FLAG,;t t | |
49b0a3aa | 39424 | s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t |
45842500 | 39425 | s,@GCC_PCH@,$GCC_PCH,;t t |
d78c94f2 | 39426 | s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t |
6c67131a VS |
39427 | s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t |
39428 | s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t | |
d78c94f2 | 39429 | s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t |
6c67131a VS |
39430 | s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t |
39431 | s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t | |
39432 | s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t | |
39433 | s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t | |
f95cd8fa | 39434 | s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t |
8ee2dd05 | 39435 | s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t |
45842500 | 39436 | s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t |
6f628073 | 39437 | s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t |
6f628073 VS |
39438 | s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t |
39439 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t | |
8772a1a7 | 39440 | 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 |
250700e4 | 39441 | s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t |
eb69fda5 | 39442 | s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t |
8ee2dd05 | 39443 | s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t |
6f628073 | 39444 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t |
8772a1a7 | 39445 | 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 |
250700e4 | 39446 | s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t |
eb69fda5 | 39447 | s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t |
3af038c0 | 39448 | s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t |
6f628073 VS |
39449 | s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t |
39450 | s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t | |
3af038c0 VS |
39451 | s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t |
39452 | s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t | |
6f628073 | 39453 | s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t |
3af038c0 | 39454 | s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t |
250700e4 RD |
39455 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t |
39456 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t | |
39457 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t | |
3527f29c | 39458 | s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t |
8ee2dd05 | 39459 | s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t |
45842500 | 39460 | s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t |
3d8c1de0 | 39461 | s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t |
8772a1a7 | 39462 | s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t |
3af038c0 | 39463 | s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t |
3527f29c | 39464 | s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t |
3af038c0 VS |
39465 | s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t |
39466 | s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t | |
45842500 | 39467 | s,@COND_SHARED_0@,$COND_SHARED_0,;t t |
250700e4 | 39468 | s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t |
52a5a009 VS |
39469 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t |
39470 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
39471 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
39472 | s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t | |
39473 | s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t | |
39474 | s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t | |
39475 | s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t | |
45842500 | 39476 | s,@COND_SHARED_1@,$COND_SHARED_1,;t t |
250700e4 | 39477 | s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t |
6f628073 VS |
39478 | s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t |
39479 | s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t | |
39480 | s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t | |
39481 | s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t | |
8ee2dd05 | 39482 | s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t |
3af038c0 | 39483 | s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t |
8772a1a7 | 39484 | s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t |
6f628073 VS |
39485 | s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t |
39486 | s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t | |
39487 | s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t | |
6f628073 VS |
39488 | s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t |
39489 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t | |
39490 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t | |
8ee2dd05 | 39491 | s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t |
6f628073 VS |
39492 | s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t |
39493 | s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t | |
96c1699d VS |
39494 | s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t |
39495 | s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t | |
39496 | s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t | |
6f628073 VS |
39497 | s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t |
39498 | s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t | |
3af038c0 | 39499 | s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t |
7015ef3a VZ |
39500 | s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t |
39501 | s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t | |
3af038c0 VS |
39502 | s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t |
39503 | s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t | |
9747f85d VS |
39504 | s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t |
39505 | s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t | |
66a96744 VS |
39506 | s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t |
39507 | s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
39508 | s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
57e7d4ac | 39509 | s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t |
6f628073 VS |
39510 | s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t |
39511 | s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t | |
39512 | s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t | |
39513 | s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t | |
3af038c0 | 39514 | s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t |
66a96744 | 39515 | s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t |
3af038c0 VS |
39516 | s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t |
39517 | s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t | |
39518 | s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t | |
39519 | s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t | |
39520 | s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t | |
39521 | s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t | |
e6cc62c6 VS |
39522 | s,@PATH_IFS@,$PATH_IFS,;t t |
39523 | s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t | |
39524 | s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t | |
39525 | s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t | |
39526 | s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t | |
39527 | s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t | |
cf615ebb VS |
39528 | s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t |
39529 | s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t | |
e6cc62c6 VS |
39530 | s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t |
39531 | s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t | |
39532 | s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t | |
39533 | s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t | |
39534 | s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t | |
39535 | s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t | |
39536 | s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t | |
39537 | s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t | |
39538 | s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t | |
39539 | s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t | |
39540 | s,@WX_ALL@,$WX_ALL,;t t | |
39541 | s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t | |
39542 | s,@SHARED_LD@,$SHARED_LD,;t t | |
e6cc62c6 VS |
39543 | s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t |
39544 | s,@STATIC_FLAG@,$STATIC_FLAG,;t t | |
39545 | s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t | |
39546 | s,@USE_GUI@,$USE_GUI,;t t | |
39547 | s,@AFMINSTALL@,$AFMINSTALL,;t t | |
39548 | s,@WIN32INSTALL@,$WIN32INSTALL,;t t | |
39549 | s,@TOOLKIT@,$TOOLKIT,;t t | |
39550 | s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t | |
39551 | s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t | |
39552 | s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t | |
39553 | s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t | |
39554 | s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t | |
39555 | s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t | |
39556 | s,@cross_compiling@,$cross_compiling,;t t | |
67c13b6c | 39557 | s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t |
e6cc62c6 VS |
39558 | s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t |
39559 | s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t | |
39560 | s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t | |
39561 | s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t | |
39562 | s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t | |
39563 | s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t | |
ffef10f6 | 39564 | s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t |
e6cc62c6 | 39565 | s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t |
f0290fca VS |
39566 | s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t |
39567 | s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t | |
e6cc62c6 VS |
39568 | s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t |
39569 | s,@ALL_HEADERS@,$ALL_HEADERS,;t t | |
39570 | s,@ALL_SOURCES@,$ALL_SOURCES,;t t | |
39571 | s,@GUIDIST@,$GUIDIST,;t t | |
39572 | s,@PORT_FILES@,$PORT_FILES,;t t | |
39573 | s,@DISTDIR@,$DISTDIR,;t t | |
39574 | s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t | |
39575 | s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t | |
39576 | s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t | |
39577 | s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t | |
39578 | s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t | |
39579 | s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t | |
39580 | s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t | |
39581 | s,@RESFLAGS@,$RESFLAGS,;t t | |
39582 | s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t | |
39583 | s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t | |
39584 | s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t | |
39585 | s,@MACOSX_BUNDLE@,$MACOSX_BUNDLE,;t t | |
39586 | s,@LIBWXMACRES@,$LIBWXMACRES,;t t | |
39587 | s,@MACRESCOMP@,$MACRESCOMP,;t t | |
39588 | s,@MACSETFILE@,$MACSETFILE,;t t | |
39589 | s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t | |
39590 | s,@GCC@,$GCC,;t t | |
39591 | s,@DLLTOOL@,$DLLTOOL,;t t | |
39592 | s,@AS@,$AS,;t t | |
e6cc62c6 VS |
39593 | s,@LD@,$LD,;t t |
39594 | s,@MAKEINFO@,$MAKEINFO,;t t | |
39595 | s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t | |
e6cc62c6 VS |
39596 | s,@LIBOBJS@,$LIBOBJS,;t t |
39597 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
247f5006 VZ |
39598 | CEOF |
39599 | ||
e6cc62c6 VS |
39600 | _ACEOF |
39601 | ||
39602 | cat >>$CONFIG_STATUS <<\_ACEOF | |
39603 | # Split the substitutions into bite-sized pieces for seds with | |
39604 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
39605 | ac_max_sed_lines=48 | |
39606 | ac_sed_frag=1 # Number of current file. | |
39607 | ac_beg=1 # First line for current file. | |
39608 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
39609 | ac_more_lines=: | |
39610 | ac_sed_cmds= | |
39611 | while $ac_more_lines; do | |
39612 | if test $ac_beg -gt 1; then | |
39613 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
247f5006 | 39614 | else |
e6cc62c6 VS |
39615 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
39616 | fi | |
39617 | if test ! -s $tmp/subs.frag; then | |
39618 | ac_more_lines=false | |
39619 | else | |
39620 | # The purpose of the label and of the branching condition is to | |
39621 | # speed up the sed processing (if there are no `@' at all, there | |
39622 | # is no need to browse any of the substitutions). | |
39623 | # These are the two extra sed commands mentioned above. | |
39624 | (echo ':t | |
39625 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
39626 | if test -z "$ac_sed_cmds"; then | |
eea650d8 | 39627 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
e6cc62c6 | 39628 | else |
eea650d8 | 39629 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
e6cc62c6 VS |
39630 | fi |
39631 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
39632 | ac_beg=$ac_end | |
39633 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
247f5006 | 39634 | fi |
e6cc62c6 VS |
39635 | done |
39636 | if test -z "$ac_sed_cmds"; then | |
39637 | ac_sed_cmds=cat | |
10f2d63a | 39638 | fi |
e6cc62c6 | 39639 | fi # test -n "$CONFIG_FILES" |
10f2d63a | 39640 | |
e6cc62c6 VS |
39641 | _ACEOF |
39642 | cat >>$CONFIG_STATUS <<\_ACEOF | |
39643 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
a0b9e27f | 39644 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
e6cc62c6 VS |
39645 | case $ac_file in |
39646 | - | *:- | *:-:* ) # input from stdin | |
eea650d8 VS |
39647 | cat >$tmp/stdin |
39648 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
39649 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
e6cc62c6 | 39650 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
eea650d8 | 39651 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
e6cc62c6 | 39652 | * ) ac_file_in=$ac_file.in ;; |
10f2d63a | 39653 | esac |
247f5006 | 39654 | |
e6cc62c6 VS |
39655 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
39656 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
39657 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
eea650d8 VS |
39658 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
39659 | X"$ac_file" : 'X\(//\)$' \| \ | |
39660 | X"$ac_file" : 'X\(/\)' \| \ | |
39661 | . : '\(.\)' 2>/dev/null || | |
e6cc62c6 VS |
39662 | echo X"$ac_file" | |
39663 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
39664 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
39665 | /^X\(\/\/\)$/{ s//\1/; q; } | |
39666 | /^X\(\/\).*/{ s//\1/; q; } | |
39667 | s/.*/./; q'` | |
39668 | { if $as_mkdir_p; then | |
39669 | mkdir -p "$ac_dir" | |
a0b9e27f | 39670 | else |
e6cc62c6 VS |
39671 | as_dir="$ac_dir" |
39672 | as_dirs= | |
39673 | while test ! -d "$as_dir"; do | |
39674 | as_dirs="$as_dir $as_dirs" | |
39675 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
39676 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
eea650d8 VS |
39677 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
39678 | X"$as_dir" : 'X\(//\)$' \| \ | |
39679 | X"$as_dir" : 'X\(/\)' \| \ | |
39680 | . : '\(.\)' 2>/dev/null || | |
e6cc62c6 VS |
39681 | echo X"$as_dir" | |
39682 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
39683 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
39684 | /^X\(\/\/\)$/{ s//\1/; q; } | |
39685 | /^X\(\/\).*/{ s//\1/; q; } | |
39686 | s/.*/./; q'` | |
39687 | done | |
39688 | test ! -n "$as_dirs" || mkdir $as_dirs | |
39689 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
39690 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
39691 | { (exit 1); exit 1; }; }; } | |
39692 | ||
39693 | ac_builddir=. | |
39694 | ||
39695 | if test "$ac_dir" != .; then | |
39696 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
39697 | # A "../" for each directory in $ac_dir_suffix. | |
39698 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
39699 | else | |
39700 | ac_dir_suffix= ac_top_builddir= | |
39701 | fi | |
247f5006 | 39702 | |
e6cc62c6 VS |
39703 | case $srcdir in |
39704 | .) # No --srcdir option. We are building in place. | |
39705 | ac_srcdir=. | |
39706 | if test -z "$ac_top_builddir"; then | |
39707 | ac_top_srcdir=. | |
39708 | else | |
39709 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
39710 | fi ;; | |
39711 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
39712 | ac_srcdir=$srcdir$ac_dir_suffix; | |
39713 | ac_top_srcdir=$srcdir ;; | |
247f5006 | 39714 | *) # Relative path. |
e6cc62c6 VS |
39715 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
39716 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
39717 | esac | |
eea650d8 VS |
39718 | case "$ac_dir" in |
39719 | .) ac_abs_builddir=$ac_builddir;; | |
39720 | *) | |
39721 | case $ac_builddir in | |
39722 | .) ac_abs_builddir="$ac_dir";; | |
39723 | [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;; | |
39724 | *) ac_abs_builddir="$ac_dir"/$ac_builddir;; | |
39725 | esac;; | |
39726 | esac | |
39727 | case "$ac_dir" in | |
39728 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
39729 | *) | |
39730 | case ${ac_top_builddir}. in | |
39731 | .) ac_abs_top_builddir="$ac_dir";; | |
39732 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
39733 | *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;; | |
39734 | esac;; | |
39735 | esac | |
39736 | case "$ac_dir" in | |
39737 | .) ac_abs_srcdir=$ac_srcdir;; | |
39738 | *) | |
39739 | case $ac_srcdir in | |
39740 | .) ac_abs_srcdir="$ac_dir";; | |
39741 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
39742 | *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;; | |
39743 | esac;; | |
39744 | esac | |
39745 | case "$ac_dir" in | |
39746 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
39747 | *) | |
39748 | case $ac_top_srcdir in | |
39749 | .) ac_abs_top_srcdir="$ac_dir";; | |
39750 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
39751 | *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;; | |
39752 | esac;; | |
39753 | esac | |
10f2d63a | 39754 | |
247f5006 | 39755 | |
e6cc62c6 VS |
39756 | case $INSTALL in |
39757 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
39758 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
a0b9e27f | 39759 | esac |
247f5006 | 39760 | |
e6cc62c6 VS |
39761 | if test x"$ac_file" != x-; then |
39762 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
39763 | echo "$as_me: creating $ac_file" >&6;} | |
39764 | rm -f "$ac_file" | |
39765 | fi | |
39766 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
39767 | # use $as_me), people would be surprised to read: | |
39768 | # /* config.h. Generated by config.status. */ | |
39769 | if test x"$ac_file" = x-; then | |
39770 | configure_input= | |
39771 | else | |
39772 | configure_input="$ac_file. " | |
39773 | fi | |
39774 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
eea650d8 | 39775 | sed 's,.*/,,'` by configure." |
e6cc62c6 VS |
39776 | |
39777 | # First look for the input files in the build tree, otherwise in the | |
39778 | # src tree. | |
39779 | ac_file_inputs=`IFS=: | |
39780 | for f in $ac_file_in; do | |
39781 | case $f in | |
39782 | -) echo $tmp/stdin ;; | |
39783 | [\\/$]*) | |
eea650d8 VS |
39784 | # Absolute (can't be DOS-style, as IFS=:) |
39785 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
e6cc62c6 VS |
39786 | echo "$as_me: error: cannot find input file: $f" >&2;} |
39787 | { (exit 1); exit 1; }; } | |
eea650d8 | 39788 | echo "$f";; |
e6cc62c6 | 39789 | *) # Relative |
eea650d8 VS |
39790 | if test -f "$f"; then |
39791 | # Build tree | |
39792 | echo "$f" | |
39793 | elif test -f "$srcdir/$f"; then | |
39794 | # Source tree | |
39795 | echo "$srcdir/$f" | |
39796 | else | |
39797 | # /dev/null tree | |
39798 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
e6cc62c6 VS |
39799 | echo "$as_me: error: cannot find input file: $f" >&2;} |
39800 | { (exit 1); exit 1; }; } | |
eea650d8 | 39801 | fi;; |
e6cc62c6 VS |
39802 | esac |
39803 | done` || { (exit 1); exit 1; } | |
39804 | _ACEOF | |
39805 | cat >>$CONFIG_STATUS <<_ACEOF | |
39806 | sed "$ac_vpsub | |
39807 | $extrasub | |
39808 | _ACEOF | |
39809 | cat >>$CONFIG_STATUS <<\_ACEOF | |
39810 | :t | |
39811 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
39812 | s,@configure_input@,$configure_input,;t t | |
39813 | s,@srcdir@,$ac_srcdir,;t t | |
39814 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
39815 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
39816 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
39817 | s,@builddir@,$ac_builddir,;t t | |
39818 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
39819 | s,@top_builddir@,$ac_top_builddir,;t t | |
39820 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
39821 | s,@INSTALL@,$ac_INSTALL,;t t | |
39822 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
39823 | rm -f $tmp/stdin | |
39824 | if test x"$ac_file" != x-; then | |
39825 | mv $tmp/out $ac_file | |
39826 | else | |
39827 | cat $tmp/out | |
39828 | rm -f $tmp/out | |
39829 | fi | |
39830 | ||
39831 | done | |
39832 | _ACEOF | |
39833 | cat >>$CONFIG_STATUS <<\_ACEOF | |
39834 | ||
39835 | # | |
39836 | # CONFIG_HEADER section. | |
39837 | # | |
10f2d63a VZ |
39838 | |
39839 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
39840 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
39841 | # | |
39842 | # ac_d sets the value in "#define NAME VALUE" lines. | |
eea650d8 VS |
39843 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
39844 | ac_dB='[ ].*$,\1#\2' | |
e6cc62c6 VS |
39845 | ac_dC=' ' |
39846 | ac_dD=',;t' | |
39847 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
eea650d8 | 39848 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
e6cc62c6 | 39849 | ac_uB='$,\1#\2define\3' |
10f2d63a | 39850 | ac_uC=' ' |
e6cc62c6 VS |
39851 | ac_uD=',;t' |
39852 | ||
39853 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
10f2d63a | 39854 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
e6cc62c6 VS |
39855 | case $ac_file in |
39856 | - | *:- | *:-:* ) # input from stdin | |
eea650d8 VS |
39857 | cat >$tmp/stdin |
39858 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
39859 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
e6cc62c6 | 39860 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
eea650d8 | 39861 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
e6cc62c6 | 39862 | * ) ac_file_in=$ac_file.in ;; |
10f2d63a VZ |
39863 | esac |
39864 | ||
e6cc62c6 VS |
39865 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
39866 | echo "$as_me: creating $ac_file" >&6;} | |
39867 | ||
39868 | # First look for the input files in the build tree, otherwise in the | |
39869 | # src tree. | |
39870 | ac_file_inputs=`IFS=: | |
39871 | for f in $ac_file_in; do | |
39872 | case $f in | |
39873 | -) echo $tmp/stdin ;; | |
39874 | [\\/$]*) | |
eea650d8 VS |
39875 | # Absolute (can't be DOS-style, as IFS=:) |
39876 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
e6cc62c6 VS |
39877 | echo "$as_me: error: cannot find input file: $f" >&2;} |
39878 | { (exit 1); exit 1; }; } | |
eea650d8 VS |
39879 | # Do quote $f, to prevent DOS paths from being IFS'd. |
39880 | echo "$f";; | |
e6cc62c6 | 39881 | *) # Relative |
eea650d8 VS |
39882 | if test -f "$f"; then |
39883 | # Build tree | |
39884 | echo "$f" | |
39885 | elif test -f "$srcdir/$f"; then | |
39886 | # Source tree | |
39887 | echo "$srcdir/$f" | |
39888 | else | |
39889 | # /dev/null tree | |
39890 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
e6cc62c6 VS |
39891 | echo "$as_me: error: cannot find input file: $f" >&2;} |
39892 | { (exit 1); exit 1; }; } | |
eea650d8 | 39893 | fi;; |
e6cc62c6 VS |
39894 | esac |
39895 | done` || { (exit 1); exit 1; } | |
39896 | # Remove the trailing spaces. | |
eea650d8 | 39897 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
e6cc62c6 VS |
39898 | |
39899 | _ACEOF | |
39900 | ||
39901 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
39902 | # `conftest.undefs', that substitutes the proper values into | |
39903 | # config.h.in to produce config.h. The first handles `#define' | |
39904 | # templates, and the second `#undef' templates. | |
39905 | # And first: Protect against being on the right side of a sed subst in | |
39906 | # config.status. Protect against being in an unquoted here document | |
39907 | # in config.status. | |
39908 | rm -f conftest.defines conftest.undefs | |
39909 | # Using a here document instead of a string reduces the quoting nightmare. | |
39910 | # Putting comments in sed scripts is not portable. | |
39911 | # | |
39912 | # `end' is used to avoid that the second main sed command (meant for | |
39913 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
39914 | # See the Autoconf documentation for `clear'. | |
39915 | cat >confdef2sed.sed <<\_ACEOF | |
39916 | s/[\\&,]/\\&/g | |
39917 | s,[\\$`],\\&,g | |
39918 | t clear | |
39919 | : clear | |
eea650d8 | 39920 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
e6cc62c6 | 39921 | t end |
eea650d8 | 39922 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
e6cc62c6 VS |
39923 | : end |
39924 | _ACEOF | |
39925 | # If some macros were called several times there might be several times | |
39926 | # the same #defines, which is useless. Nevertheless, we may not want to | |
39927 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
39928 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
39929 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
39930 | rm -f confdef2sed.sed | |
10f2d63a VZ |
39931 | |
39932 | # This sed command replaces #undef with comments. This is necessary, for | |
39933 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
39934 | # on some systems where configure will not decide to define it. | |
e6cc62c6 | 39935 | cat >>conftest.undefs <<\_ACEOF |
eea650d8 | 39936 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
e6cc62c6 VS |
39937 | _ACEOF |
39938 | ||
39939 | # Break up conftest.defines because some shells have a limit on the size | |
39940 | # of here documents, and old seds have small limits too (100 cmds). | |
39941 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
eea650d8 | 39942 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
e6cc62c6 VS |
39943 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
39944 | echo ' :' >>$CONFIG_STATUS | |
39945 | rm -f conftest.tail | |
39946 | while grep . conftest.defines >/dev/null | |
39947 | do | |
39948 | # Write a limited-size here document to $tmp/defines.sed. | |
39949 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
39950 | # Speed up: don't consider the non `#define' lines. | |
eea650d8 | 39951 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
e6cc62c6 VS |
39952 | # Work around the forget-to-reset-the-flag bug. |
39953 | echo 't clr' >>$CONFIG_STATUS | |
39954 | echo ': clr' >>$CONFIG_STATUS | |
39955 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
39956 | echo 'CEOF | |
39957 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
39958 | rm -f $tmp/in | |
39959 | mv $tmp/out $tmp/in | |
39960 | ' >>$CONFIG_STATUS | |
39961 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
39962 | rm -f conftest.defines | |
39963 | mv conftest.tail conftest.defines | |
39964 | done | |
39965 | rm -f conftest.defines | |
39966 | echo ' fi # grep' >>$CONFIG_STATUS | |
39967 | echo >>$CONFIG_STATUS | |
10f2d63a | 39968 | |
e6cc62c6 VS |
39969 | # Break up conftest.undefs because some shells have a limit on the size |
39970 | # of here documents, and old seds have small limits too (100 cmds). | |
39971 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
10f2d63a | 39972 | rm -f conftest.tail |
e6cc62c6 | 39973 | while grep . conftest.undefs >/dev/null |
10f2d63a | 39974 | do |
e6cc62c6 VS |
39975 | # Write a limited-size here document to $tmp/undefs.sed. |
39976 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
39977 | # Speed up: don't consider the non `#undef' | |
eea650d8 | 39978 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
e6cc62c6 VS |
39979 | # Work around the forget-to-reset-the-flag bug. |
39980 | echo 't clr' >>$CONFIG_STATUS | |
39981 | echo ': clr' >>$CONFIG_STATUS | |
39982 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
10f2d63a | 39983 | echo 'CEOF |
e6cc62c6 VS |
39984 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
39985 | rm -f $tmp/in | |
39986 | mv $tmp/out $tmp/in | |
39987 | ' >>$CONFIG_STATUS | |
39988 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
39989 | rm -f conftest.undefs | |
39990 | mv conftest.tail conftest.undefs | |
10f2d63a | 39991 | done |
e6cc62c6 VS |
39992 | rm -f conftest.undefs |
39993 | ||
39994 | cat >>$CONFIG_STATUS <<\_ACEOF | |
39995 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
39996 | # use $as_me), people would be surprised to read: | |
39997 | # /* config.h. Generated by config.status. */ | |
39998 | if test x"$ac_file" = x-; then | |
39999 | echo "/* Generated by configure. */" >$tmp/config.h | |
10f2d63a | 40000 | else |
e6cc62c6 | 40001 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
247f5006 | 40002 | fi |
e6cc62c6 VS |
40003 | cat $tmp/in >>$tmp/config.h |
40004 | rm -f $tmp/in | |
40005 | if test x"$ac_file" != x-; then | |
40006 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
40007 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
40008 | echo "$as_me: $ac_file is unchanged" >&6;} | |
40009 | else | |
40010 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
40011 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
eea650d8 VS |
40012 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
40013 | X"$ac_file" : 'X\(//\)$' \| \ | |
40014 | X"$ac_file" : 'X\(/\)' \| \ | |
40015 | . : '\(.\)' 2>/dev/null || | |
e6cc62c6 VS |
40016 | echo X"$ac_file" | |
40017 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
40018 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
40019 | /^X\(\/\/\)$/{ s//\1/; q; } | |
40020 | /^X\(\/\).*/{ s//\1/; q; } | |
40021 | s/.*/./; q'` | |
40022 | { if $as_mkdir_p; then | |
40023 | mkdir -p "$ac_dir" | |
40024 | else | |
40025 | as_dir="$ac_dir" | |
40026 | as_dirs= | |
40027 | while test ! -d "$as_dir"; do | |
40028 | as_dirs="$as_dir $as_dirs" | |
40029 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
40030 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
eea650d8 VS |
40031 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
40032 | X"$as_dir" : 'X\(//\)$' \| \ | |
40033 | X"$as_dir" : 'X\(/\)' \| \ | |
40034 | . : '\(.\)' 2>/dev/null || | |
e6cc62c6 VS |
40035 | echo X"$as_dir" | |
40036 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
40037 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
40038 | /^X\(\/\/\)$/{ s//\1/; q; } | |
40039 | /^X\(\/\).*/{ s//\1/; q; } | |
40040 | s/.*/./; q'` | |
40041 | done | |
40042 | test ! -n "$as_dirs" || mkdir $as_dirs | |
40043 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
40044 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
40045 | { (exit 1); exit 1; }; }; } | |
a0b9e27f | 40046 | |
e6cc62c6 VS |
40047 | rm -f $ac_file |
40048 | mv $tmp/config.h $ac_file | |
40049 | fi | |
40050 | else | |
40051 | cat $tmp/config.h | |
40052 | rm -f $tmp/config.h | |
40053 | fi | |
40054 | done | |
40055 | _ACEOF | |
40056 | cat >>$CONFIG_STATUS <<\_ACEOF | |
10f2d63a | 40057 | |
e6cc62c6 VS |
40058 | # |
40059 | # CONFIG_COMMANDS section. | |
40060 | # | |
40061 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
40062 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
40063 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
40064 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
40065 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
eea650d8 VS |
40066 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
40067 | X"$ac_dest" : 'X\(//\)$' \| \ | |
40068 | X"$ac_dest" : 'X\(/\)' \| \ | |
40069 | . : '\(.\)' 2>/dev/null || | |
e6cc62c6 VS |
40070 | echo X"$ac_dest" | |
40071 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
40072 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
40073 | /^X\(\/\/\)$/{ s//\1/; q; } | |
40074 | /^X\(\/\).*/{ s//\1/; q; } | |
40075 | s/.*/./; q'` | |
eea650d8 VS |
40076 | { if $as_mkdir_p; then |
40077 | mkdir -p "$ac_dir" | |
40078 | else | |
40079 | as_dir="$ac_dir" | |
40080 | as_dirs= | |
40081 | while test ! -d "$as_dir"; do | |
40082 | as_dirs="$as_dir $as_dirs" | |
40083 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
40084 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
40085 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
40086 | X"$as_dir" : 'X\(//\)$' \| \ | |
40087 | X"$as_dir" : 'X\(/\)' \| \ | |
40088 | . : '\(.\)' 2>/dev/null || | |
40089 | echo X"$as_dir" | | |
40090 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
40091 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
40092 | /^X\(\/\/\)$/{ s//\1/; q; } | |
40093 | /^X\(\/\).*/{ s//\1/; q; } | |
40094 | s/.*/./; q'` | |
40095 | done | |
40096 | test ! -n "$as_dirs" || mkdir $as_dirs | |
40097 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
40098 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
40099 | { (exit 1); exit 1; }; }; } | |
40100 | ||
e6cc62c6 VS |
40101 | ac_builddir=. |
40102 | ||
40103 | if test "$ac_dir" != .; then | |
40104 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
40105 | # A "../" for each directory in $ac_dir_suffix. | |
40106 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
40107 | else | |
40108 | ac_dir_suffix= ac_top_builddir= | |
40109 | fi | |
40110 | ||
40111 | case $srcdir in | |
40112 | .) # No --srcdir option. We are building in place. | |
40113 | ac_srcdir=. | |
40114 | if test -z "$ac_top_builddir"; then | |
40115 | ac_top_srcdir=. | |
40116 | else | |
40117 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
40118 | fi ;; | |
40119 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
40120 | ac_srcdir=$srcdir$ac_dir_suffix; | |
40121 | ac_top_srcdir=$srcdir ;; | |
40122 | *) # Relative path. | |
40123 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
40124 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
40125 | esac | |
eea650d8 VS |
40126 | case "$ac_dir" in |
40127 | .) ac_abs_builddir=$ac_builddir;; | |
40128 | *) | |
40129 | case $ac_builddir in | |
40130 | .) ac_abs_builddir="$ac_dir";; | |
40131 | [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;; | |
40132 | *) ac_abs_builddir="$ac_dir"/$ac_builddir;; | |
40133 | esac;; | |
40134 | esac | |
40135 | case "$ac_dir" in | |
40136 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
40137 | *) | |
40138 | case ${ac_top_builddir}. in | |
40139 | .) ac_abs_top_builddir="$ac_dir";; | |
40140 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
40141 | *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;; | |
40142 | esac;; | |
40143 | esac | |
40144 | case "$ac_dir" in | |
40145 | .) ac_abs_srcdir=$ac_srcdir;; | |
40146 | *) | |
40147 | case $ac_srcdir in | |
40148 | .) ac_abs_srcdir="$ac_dir";; | |
40149 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
40150 | *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;; | |
40151 | esac;; | |
40152 | esac | |
40153 | case "$ac_dir" in | |
40154 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
40155 | *) | |
40156 | case $ac_top_srcdir in | |
40157 | .) ac_abs_top_srcdir="$ac_dir";; | |
40158 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
40159 | *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;; | |
40160 | esac;; | |
40161 | esac | |
e6cc62c6 VS |
40162 | |
40163 | ||
40164 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
40165 | echo "$as_me: executing $ac_dest commands" >&6;} | |
40166 | case $ac_dest in | |
40167 | default ) | |
652d930d | 40168 | if test ! -h wx-config; then |
991a5759 | 40169 | chmod +x wx-config |
3a922bb4 RL |
40170 | mv wx-config wx${TOOLCHAIN_NAME}-config |
40171 | ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config | |
991a5759 | 40172 | fi |
665bbe97 | 40173 | |
00cf1208 RR |
40174 | if test ! -d lib; then |
40175 | mkdir lib | |
40176 | fi | |
40177 | if test ! -d lib/wx; then | |
40178 | mkdir lib/wx | |
40179 | fi | |
40180 | if test ! -d lib/wx/include; then | |
40181 | mkdir lib/wx/include | |
40182 | fi | |
3a922bb4 RL |
40183 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then |
40184 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
00cf1208 | 40185 | fi |
3a922bb4 RL |
40186 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then |
40187 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
00cf1208 RR |
40188 | fi |
40189 | if test -f setup.h; then | |
3a922bb4 | 40190 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h |
00cf1208 | 40191 | fi |
e6cc62c6 VS |
40192 | ;; |
40193 | esac | |
40194 | done | |
40195 | _ACEOF | |
2224580a | 40196 | |
e6cc62c6 | 40197 | cat >>$CONFIG_STATUS <<\_ACEOF |
2224580a | 40198 | |
e6cc62c6 VS |
40199 | { (exit 0); exit 0; } |
40200 | _ACEOF | |
40201 | chmod +x $CONFIG_STATUS | |
40202 | ac_clean_files=$ac_clean_files_save | |
40203 | ||
40204 | ||
40205 | # configure is writing to config.log, and then calls config.status. | |
40206 | # config.status does its own redirection, appending to config.log. | |
40207 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
40208 | # by configure, so config.status won't be able to write to it; its | |
40209 | # output is simply discarded. So we exec the FD to /dev/null, | |
40210 | # effectively closing config.log, so it can be properly (re)opened and | |
40211 | # appended to by config.status. When coming back to configure, we | |
40212 | # need to make the FD available again. | |
40213 | if test "$no_create" != yes; then | |
40214 | ac_cs_success=: | |
40215 | ac_config_status_args= | |
40216 | test "$silent" = yes && | |
40217 | ac_config_status_args="$ac_config_status_args --quiet" | |
40218 | exec 5>/dev/null | |
40219 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
40220 | exec 5>>config.log | |
40221 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
40222 | # would make configure fail if this is the last instruction. | |
40223 | $ac_cs_success || { (exit 1); exit 1; } | |
2224580a VZ |
40224 | fi |
40225 | ||
672abd7a VS |
40226 | # |
40227 | # CONFIG_SUBDIRS section. | |
40228 | # | |
40229 | if test "$no_recursion" != yes; then | |
40230 | ||
40231 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
40232 | ac_sub_configure_args= | |
40233 | ac_prev= | |
40234 | for ac_arg in $ac_configure_args; do | |
40235 | if test -n "$ac_prev"; then | |
40236 | ac_prev= | |
40237 | continue | |
40238 | fi | |
40239 | case $ac_arg in | |
40240 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
40241 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
40242 | ac_prev=cache_file ;; | |
40243 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
40244 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
40245 | | --c=*) | |
40246 | ;; | |
40247 | --config-cache | -C) | |
40248 | ;; | |
40249 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
40250 | ac_prev=srcdir ;; | |
40251 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
40252 | ;; | |
40253 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
40254 | ac_prev=prefix ;; | |
40255 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
40256 | ;; | |
40257 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
40258 | esac | |
40259 | done | |
40260 | ||
40261 | # Always prepend --prefix to ensure using the same prefix | |
40262 | # in subdir configurations. | |
40263 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
40264 | ||
40265 | ac_popdir=`pwd` | |
40266 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
40267 | ||
40268 | # Do not complain, so a configure script can configure whichever | |
40269 | # parts of a large source tree are present. | |
40270 | test -d $srcdir/$ac_dir || continue | |
40271 | ||
40272 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 | |
40273 | echo "$as_me: configuring in $ac_dir" >&6;} | |
40274 | { if $as_mkdir_p; then | |
40275 | mkdir -p "$ac_dir" | |
40276 | else | |
40277 | as_dir="$ac_dir" | |
40278 | as_dirs= | |
40279 | while test ! -d "$as_dir"; do | |
40280 | as_dirs="$as_dir $as_dirs" | |
40281 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
40282 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
eea650d8 VS |
40283 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
40284 | X"$as_dir" : 'X\(//\)$' \| \ | |
40285 | X"$as_dir" : 'X\(/\)' \| \ | |
40286 | . : '\(.\)' 2>/dev/null || | |
672abd7a VS |
40287 | echo X"$as_dir" | |
40288 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
40289 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
40290 | /^X\(\/\/\)$/{ s//\1/; q; } | |
40291 | /^X\(\/\).*/{ s//\1/; q; } | |
40292 | s/.*/./; q'` | |
40293 | done | |
40294 | test ! -n "$as_dirs" || mkdir $as_dirs | |
40295 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
40296 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
40297 | { (exit 1); exit 1; }; }; } | |
40298 | ||
40299 | ac_builddir=. | |
40300 | ||
40301 | if test "$ac_dir" != .; then | |
40302 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
40303 | # A "../" for each directory in $ac_dir_suffix. | |
40304 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
40305 | else | |
40306 | ac_dir_suffix= ac_top_builddir= | |
40307 | fi | |
40308 | ||
40309 | case $srcdir in | |
40310 | .) # No --srcdir option. We are building in place. | |
40311 | ac_srcdir=. | |
40312 | if test -z "$ac_top_builddir"; then | |
40313 | ac_top_srcdir=. | |
40314 | else | |
40315 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
40316 | fi ;; | |
40317 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
40318 | ac_srcdir=$srcdir$ac_dir_suffix; | |
40319 | ac_top_srcdir=$srcdir ;; | |
40320 | *) # Relative path. | |
40321 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
40322 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
40323 | esac | |
eea650d8 VS |
40324 | case "$ac_dir" in |
40325 | .) ac_abs_builddir=$ac_builddir;; | |
40326 | *) | |
40327 | case $ac_builddir in | |
40328 | .) ac_abs_builddir="$ac_dir";; | |
40329 | [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;; | |
40330 | *) ac_abs_builddir="$ac_dir"/$ac_builddir;; | |
40331 | esac;; | |
40332 | esac | |
40333 | case "$ac_dir" in | |
40334 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
40335 | *) | |
40336 | case ${ac_top_builddir}. in | |
40337 | .) ac_abs_top_builddir="$ac_dir";; | |
40338 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
40339 | *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;; | |
40340 | esac;; | |
40341 | esac | |
40342 | case "$ac_dir" in | |
40343 | .) ac_abs_srcdir=$ac_srcdir;; | |
40344 | *) | |
40345 | case $ac_srcdir in | |
40346 | .) ac_abs_srcdir="$ac_dir";; | |
40347 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
40348 | *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;; | |
40349 | esac;; | |
40350 | esac | |
40351 | case "$ac_dir" in | |
40352 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
40353 | *) | |
40354 | case $ac_top_srcdir in | |
40355 | .) ac_abs_top_srcdir="$ac_dir";; | |
40356 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
40357 | *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;; | |
40358 | esac;; | |
40359 | esac | |
672abd7a VS |
40360 | |
40361 | ||
40362 | cd $ac_dir | |
40363 | ||
40364 | # Check for guested configure; otherwise get Cygnus style configure. | |
40365 | if test -f $ac_srcdir/configure.gnu; then | |
40366 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
40367 | elif test -f $ac_srcdir/configure; then | |
40368 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
40369 | elif test -f $ac_srcdir/configure.in; then | |
40370 | ac_sub_configure=$ac_configure | |
40371 | else | |
40372 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | |
40373 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
40374 | ac_sub_configure= | |
40375 | fi | |
40376 | ||
40377 | # The recursion is here. | |
40378 | if test -n "$ac_sub_configure"; then | |
40379 | # Make the cache file name correct relative to the subdirectory. | |
40380 | case $cache_file in | |
40381 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
40382 | *) # Relative path. | |
eea650d8 | 40383 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
672abd7a VS |
40384 | esac |
40385 | ||
40386 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | |
40387 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
40388 | # The eval makes quoting arguments work. | |
40389 | eval $ac_sub_configure $ac_sub_configure_args \ | |
eea650d8 VS |
40390 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || |
40391 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
672abd7a VS |
40392 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
40393 | { (exit 1); exit 1; }; } | |
40394 | fi | |
40395 | ||
40396 | cd $ac_popdir | |
40397 | done | |
40398 | fi | |
40399 | ||
8284b0c5 | 40400 | |
2b5f62a0 VZ |
40401 | echo |
40402 | echo "Configured wxWindows ${WX_VERSION} for \`${host}'" | |
40403 | echo "" | |
89fe663f | 40404 | echo " Which GUI toolkit should wxWindows use? ${TOOLKIT_LOWERCASE:-base only}" |
9747f85d | 40405 | echo " Should wxWindows be compiled into single library? ${wxUSE_MONOLITHIC:-yes}" |
2b5f62a0 VZ |
40406 | |
40407 | echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}" | |
40408 | echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}" | |
40409 | echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
40410 | ||
0c98a14e | 40411 | echo " What level of wxWindows compatibility should be enabled?" |
65d8ef1e VS |
40412 | echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}" |
40413 | echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}" | |
0c98a14e | 40414 | |
2b5f62a0 VZ |
40415 | echo " Which libraries should wxWindows use?" |
40416 | echo " jpeg ${wxUSE_LIBJPEG-none}" | |
40417 | echo " png ${wxUSE_LIBPNG-none}" | |
40418 | echo " regex ${wxUSE_REGEX}" | |
40419 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
89fe663f VZ |
40420 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
40421 | echo " xpm ${wxUSE_LIBXPM-none}" | |
40422 | fi | |
2b5f62a0 | 40423 | echo " zlib ${wxUSE_ZLIB}" |
fd3d7534 | 40424 | echo " odbc ${wxUSE_ODBC}" |
5f0b6dff | 40425 | echo " expat ${wxUSE_EXPAT}" |
3527f29c | 40426 | echo " libmspack ${wxUSE_LIBMSPACK}" |
2b5f62a0 VZ |
40427 | |
40428 | echo "" | |
40429 |