]>
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. | |
789c5f4a | 4 | # Generated by GNU Autoconf 2.57 for wxWindows 2.5.1. |
e6cc62c6 VS |
5 | # |
6 | # Report bugs to <wx-dev@lists.wxwindows.org>. | |
7 | # | |
789c5f4a VZ |
8 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
9 | # Free Software Foundation, Inc. | |
e6cc62c6 VS |
10 | # This configure script is free software; the Free Software Foundation |
11 | # gives unlimited permission to copy, distribute and modify it. | |
12 | ## --------------------- ## | |
13 | ## M4sh Initialization. ## | |
14 | ## --------------------- ## | |
fe0895cf | 15 | |
e6cc62c6 VS |
16 | # Be Bourne compatible |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
18 | emulate sh | |
19 | NULLCMD=: | |
20 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
21 | # is contrary to our usage. Disable this feature. | |
22 | alias -g '${1+"$@"}'='"$@"' | |
23 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
24 | set -o posix | |
25 | fi | |
fe0895cf | 26 | |
e6cc62c6 | 27 | # Support unset when possible. |
789c5f4a | 28 | if (FOO=FOO; unset FOO) >/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 | |
789c5f4a | 47 | if (set +x; test -n "`(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 | |
224 | as_mkdir_p=false | |
225 | fi | |
fe0895cf | 226 | |
e6cc62c6 | 227 | as_executable_p="test -f" |
fe0895cf | 228 | |
e6cc62c6 | 229 | # Sed expression to map a string onto a valid CPP name. |
789c5f4a | 230 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
fe0895cf | 231 | |
e6cc62c6 | 232 | # Sed expression to map a string onto a valid variable name. |
789c5f4a | 233 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
fe0895cf VS |
234 | |
235 | ||
e6cc62c6 VS |
236 | # IFS |
237 | # We need space, tab and new line, in precisely that order. | |
238 | as_nl=' | |
239 | ' | |
240 | IFS=" $as_nl" | |
fe0895cf | 241 | |
e6cc62c6 VS |
242 | # CDPATH. |
243 | $as_unset CDPATH | |
fe0895cf VS |
244 | |
245 | ||
e6cc62c6 VS |
246 | # Name of the host. |
247 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
248 | # so uname gets run too. | |
249 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
fe0895cf | 250 | |
e6cc62c6 | 251 | exec 6>&1 |
fe0895cf | 252 | |
a0b9e27f | 253 | # |
e6cc62c6 VS |
254 | # Initializations. |
255 | # | |
a0b9e27f | 256 | ac_default_prefix=/usr/local |
e6cc62c6 VS |
257 | ac_config_libobj_dir=. |
258 | cross_compiling=no | |
259 | subdirs= | |
260 | MFLAGS= | |
261 | MAKEFLAGS= | |
262 | SHELL=${CONFIG_SHELL-/bin/sh} | |
263 | ||
264 | # Maximum number of lines to put in a shell here document. | |
265 | # This variable seems obsolete. It should probably be removed, and | |
266 | # only ac_max_sed_lines should be used. | |
267 | : ${ac_max_here_lines=38} | |
268 | ||
269 | # Identity of this package. | |
270 | PACKAGE_NAME='wxWindows' | |
271 | PACKAGE_TARNAME='wxwindows' | |
e46d2a18 VS |
272 | PACKAGE_VERSION='2.5.1' |
273 | PACKAGE_STRING='wxWindows 2.5.1' | |
e6cc62c6 VS |
274 | PACKAGE_BUGREPORT='wx-dev@lists.wxwindows.org' |
275 | ||
276 | ac_unique_file="wx-config.in" | |
277 | # Factoring default headers for most tests. | |
278 | ac_includes_default="\ | |
279 | #include <stdio.h> | |
280 | #if HAVE_SYS_TYPES_H | |
281 | # include <sys/types.h> | |
282 | #endif | |
283 | #if HAVE_SYS_STAT_H | |
284 | # include <sys/stat.h> | |
285 | #endif | |
286 | #if STDC_HEADERS | |
287 | # include <stdlib.h> | |
288 | # include <stddef.h> | |
289 | #else | |
290 | # if HAVE_STDLIB_H | |
291 | # include <stdlib.h> | |
292 | # endif | |
293 | #endif | |
294 | #if HAVE_STRING_H | |
295 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
296 | # include <memory.h> | |
297 | # endif | |
298 | # include <string.h> | |
299 | #endif | |
300 | #if HAVE_STRINGS_H | |
301 | # include <strings.h> | |
302 | #endif | |
303 | #if HAVE_INTTYPES_H | |
304 | # include <inttypes.h> | |
305 | #else | |
306 | # if HAVE_STDINT_H | |
307 | # include <stdint.h> | |
308 | # endif | |
309 | #endif | |
310 | #if HAVE_UNISTD_H | |
311 | # include <unistd.h> | |
312 | #endif" | |
313 | ||
672abd7a | 314 | ac_subdirs_all="$ac_subdirs_all src/expat" |
f93ca9fd | 315 | 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 SDL_CONFIG SDL_CFLAGS SDL_LIBS 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 USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL 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_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_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_UNIX_1_USE_PLUGINS_0 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_PLUGINS_0 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_WITH_PLUGIN_SDL_1 COND_WITH_SDL_1 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN 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 LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL AS LD MAKEINFO INSTALL_LIBRARY LIBOBJS LTLIBOBJS' |
e6cc62c6 | 316 | ac_subst_files='' |
10f2d63a VZ |
317 | |
318 | # Initialize some variables set by options. | |
e6cc62c6 VS |
319 | ac_init_help= |
320 | ac_init_version=false | |
10f2d63a VZ |
321 | # The variables have the same names as the options, with |
322 | # dashes changed to underlines. | |
e6cc62c6 | 323 | cache_file=/dev/null |
10f2d63a | 324 | exec_prefix=NONE |
10f2d63a | 325 | no_create= |
10f2d63a VZ |
326 | no_recursion= |
327 | prefix=NONE | |
328 | program_prefix=NONE | |
329 | program_suffix=NONE | |
330 | program_transform_name=s,x,x, | |
331 | silent= | |
332 | site= | |
333 | srcdir= | |
10f2d63a VZ |
334 | verbose= |
335 | x_includes=NONE | |
336 | x_libraries=NONE | |
e6cc62c6 VS |
337 | |
338 | # Installation directory options. | |
339 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
340 | # and all the variables that are supposed to be based on exec_prefix | |
341 | # by default will actually change. | |
342 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
10f2d63a VZ |
343 | bindir='${exec_prefix}/bin' |
344 | sbindir='${exec_prefix}/sbin' | |
345 | libexecdir='${exec_prefix}/libexec' | |
346 | datadir='${prefix}/share' | |
347 | sysconfdir='${prefix}/etc' | |
348 | sharedstatedir='${prefix}/com' | |
349 | localstatedir='${prefix}/var' | |
350 | libdir='${exec_prefix}/lib' | |
351 | includedir='${prefix}/include' | |
352 | oldincludedir='/usr/include' | |
353 | infodir='${prefix}/info' | |
354 | mandir='${prefix}/man' | |
355 | ||
10f2d63a VZ |
356 | ac_prev= |
357 | for ac_option | |
358 | do | |
10f2d63a VZ |
359 | # If the previous option needs an argument, assign it. |
360 | if test -n "$ac_prev"; then | |
361 | eval "$ac_prev=\$ac_option" | |
362 | ac_prev= | |
363 | continue | |
364 | fi | |
365 | ||
e6cc62c6 | 366 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
10f2d63a VZ |
367 | |
368 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
369 | ||
e6cc62c6 | 370 | case $ac_option in |
10f2d63a VZ |
371 | |
372 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
373 | ac_prev=bindir ;; | |
374 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
e6cc62c6 | 375 | bindir=$ac_optarg ;; |
10f2d63a VZ |
376 | |
377 | -build | --build | --buil | --bui | --bu) | |
e6cc62c6 | 378 | ac_prev=build_alias ;; |
10f2d63a | 379 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
e6cc62c6 | 380 | build_alias=$ac_optarg ;; |
10f2d63a VZ |
381 | |
382 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
383 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
384 | ac_prev=cache_file ;; | |
385 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
386 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
e6cc62c6 VS |
387 | cache_file=$ac_optarg ;; |
388 | ||
389 | --config-cache | -C) | |
390 | cache_file=config.cache ;; | |
10f2d63a VZ |
391 | |
392 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
393 | ac_prev=datadir ;; | |
394 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
395 | | --da=*) | |
e6cc62c6 | 396 | datadir=$ac_optarg ;; |
10f2d63a VZ |
397 | |
398 | -disable-* | --disable-*) | |
e6cc62c6 | 399 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
10f2d63a | 400 | # Reject names that are not valid shell variable names. |
e6cc62c6 VS |
401 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
402 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
403 | { (exit 1); exit 1; }; } | |
404 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
405 | eval "enable_$ac_feature=no" ;; | |
10f2d63a VZ |
406 | |
407 | -enable-* | --enable-*) | |
e6cc62c6 | 408 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
10f2d63a | 409 | # Reject names that are not valid shell variable names. |
e6cc62c6 VS |
410 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
411 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
412 | { (exit 1); exit 1; }; } | |
413 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
414 | case $ac_option in | |
415 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
10f2d63a VZ |
416 | *) ac_optarg=yes ;; |
417 | esac | |
e6cc62c6 | 418 | eval "enable_$ac_feature='$ac_optarg'" ;; |
10f2d63a VZ |
419 | |
420 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
421 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
422 | | --exec | --exe | --ex) | |
423 | ac_prev=exec_prefix ;; | |
424 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
425 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
426 | | --exec=* | --exe=* | --ex=*) | |
e6cc62c6 | 427 | exec_prefix=$ac_optarg ;; |
10f2d63a VZ |
428 | |
429 | -gas | --gas | --ga | --g) | |
430 | # Obsolete; use --with-gas. | |
431 | with_gas=yes ;; | |
432 | ||
e6cc62c6 VS |
433 | -help | --help | --hel | --he | -h) |
434 | ac_init_help=long ;; | |
435 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
436 | ac_init_help=recursive ;; | |
437 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
438 | ac_init_help=short ;; | |
10f2d63a VZ |
439 | |
440 | -host | --host | --hos | --ho) | |
e6cc62c6 | 441 | ac_prev=host_alias ;; |
10f2d63a | 442 | -host=* | --host=* | --hos=* | --ho=*) |
e6cc62c6 | 443 | host_alias=$ac_optarg ;; |
10f2d63a VZ |
444 | |
445 | -includedir | --includedir | --includedi | --included | --include \ | |
446 | | --includ | --inclu | --incl | --inc) | |
447 | ac_prev=includedir ;; | |
448 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
449 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
e6cc62c6 | 450 | includedir=$ac_optarg ;; |
10f2d63a VZ |
451 | |
452 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
453 | ac_prev=infodir ;; | |
454 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
e6cc62c6 | 455 | infodir=$ac_optarg ;; |
10f2d63a VZ |
456 | |
457 | -libdir | --libdir | --libdi | --libd) | |
458 | ac_prev=libdir ;; | |
459 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
e6cc62c6 | 460 | libdir=$ac_optarg ;; |
10f2d63a VZ |
461 | |
462 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
463 | | --libexe | --libex | --libe) | |
464 | ac_prev=libexecdir ;; | |
465 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
466 | | --libexe=* | --libex=* | --libe=*) | |
e6cc62c6 | 467 | libexecdir=$ac_optarg ;; |
10f2d63a VZ |
468 | |
469 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
470 | | --localstate | --localstat | --localsta | --localst \ | |
471 | | --locals | --local | --loca | --loc | --lo) | |
472 | ac_prev=localstatedir ;; | |
473 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
474 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
475 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
e6cc62c6 | 476 | localstatedir=$ac_optarg ;; |
10f2d63a VZ |
477 | |
478 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
479 | ac_prev=mandir ;; | |
480 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
e6cc62c6 | 481 | mandir=$ac_optarg ;; |
10f2d63a VZ |
482 | |
483 | -nfp | --nfp | --nf) | |
484 | # Obsolete; use --without-fp. | |
485 | with_fp=no ;; | |
486 | ||
487 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
e6cc62c6 | 488 | | --no-cr | --no-c | -n) |
10f2d63a VZ |
489 | no_create=yes ;; |
490 | ||
491 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
492 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
493 | no_recursion=yes ;; | |
494 | ||
495 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
496 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
497 | | --oldin | --oldi | --old | --ol | --o) | |
498 | ac_prev=oldincludedir ;; | |
499 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
500 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
501 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
e6cc62c6 | 502 | oldincludedir=$ac_optarg ;; |
10f2d63a VZ |
503 | |
504 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
505 | ac_prev=prefix ;; | |
506 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
e6cc62c6 | 507 | prefix=$ac_optarg ;; |
10f2d63a VZ |
508 | |
509 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
510 | | --program-pre | --program-pr | --program-p) | |
511 | ac_prev=program_prefix ;; | |
512 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
513 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
e6cc62c6 | 514 | program_prefix=$ac_optarg ;; |
10f2d63a VZ |
515 | |
516 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
517 | | --program-suf | --program-su | --program-s) | |
518 | ac_prev=program_suffix ;; | |
519 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
520 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
e6cc62c6 | 521 | program_suffix=$ac_optarg ;; |
10f2d63a VZ |
522 | |
523 | -program-transform-name | --program-transform-name \ | |
524 | | --program-transform-nam | --program-transform-na \ | |
525 | | --program-transform-n | --program-transform- \ | |
526 | | --program-transform | --program-transfor \ | |
527 | | --program-transfo | --program-transf \ | |
528 | | --program-trans | --program-tran \ | |
529 | | --progr-tra | --program-tr | --program-t) | |
530 | ac_prev=program_transform_name ;; | |
531 | -program-transform-name=* | --program-transform-name=* \ | |
532 | | --program-transform-nam=* | --program-transform-na=* \ | |
533 | | --program-transform-n=* | --program-transform-=* \ | |
534 | | --program-transform=* | --program-transfor=* \ | |
535 | | --program-transfo=* | --program-transf=* \ | |
536 | | --program-trans=* | --program-tran=* \ | |
537 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
e6cc62c6 | 538 | program_transform_name=$ac_optarg ;; |
10f2d63a VZ |
539 | |
540 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
541 | | -silent | --silent | --silen | --sile | --sil) | |
542 | silent=yes ;; | |
543 | ||
544 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
545 | ac_prev=sbindir ;; | |
546 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
547 | | --sbi=* | --sb=*) | |
e6cc62c6 | 548 | sbindir=$ac_optarg ;; |
10f2d63a VZ |
549 | |
550 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
551 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
552 | | --sharedst | --shareds | --shared | --share | --shar \ | |
553 | | --sha | --sh) | |
554 | ac_prev=sharedstatedir ;; | |
555 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
556 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
557 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
558 | | --sha=* | --sh=*) | |
e6cc62c6 | 559 | sharedstatedir=$ac_optarg ;; |
10f2d63a VZ |
560 | |
561 | -site | --site | --sit) | |
562 | ac_prev=site ;; | |
563 | -site=* | --site=* | --sit=*) | |
e6cc62c6 | 564 | site=$ac_optarg ;; |
10f2d63a VZ |
565 | |
566 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
567 | ac_prev=srcdir ;; | |
568 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
e6cc62c6 | 569 | srcdir=$ac_optarg ;; |
10f2d63a VZ |
570 | |
571 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
572 | | --syscon | --sysco | --sysc | --sys | --sy) | |
573 | ac_prev=sysconfdir ;; | |
574 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
575 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
e6cc62c6 | 576 | sysconfdir=$ac_optarg ;; |
10f2d63a VZ |
577 | |
578 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
e6cc62c6 | 579 | ac_prev=target_alias ;; |
10f2d63a | 580 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
e6cc62c6 | 581 | target_alias=$ac_optarg ;; |
10f2d63a VZ |
582 | |
583 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
584 | verbose=yes ;; | |
585 | ||
e6cc62c6 VS |
586 | -version | --version | --versio | --versi | --vers | -V) |
587 | ac_init_version=: ;; | |
10f2d63a VZ |
588 | |
589 | -with-* | --with-*) | |
e6cc62c6 | 590 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
10f2d63a | 591 | # Reject names that are not valid shell variable names. |
e6cc62c6 VS |
592 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
593 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
594 | { (exit 1); exit 1; }; } | |
10f2d63a | 595 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
e6cc62c6 VS |
596 | case $ac_option in |
597 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
10f2d63a VZ |
598 | *) ac_optarg=yes ;; |
599 | esac | |
e6cc62c6 | 600 | eval "with_$ac_package='$ac_optarg'" ;; |
10f2d63a VZ |
601 | |
602 | -without-* | --without-*) | |
e6cc62c6 | 603 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
10f2d63a | 604 | # Reject names that are not valid shell variable names. |
e6cc62c6 VS |
605 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
606 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
607 | { (exit 1); exit 1; }; } | |
608 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
609 | eval "with_$ac_package=no" ;; | |
10f2d63a VZ |
610 | |
611 | --x) | |
612 | # Obsolete; use --with-x. | |
613 | with_x=yes ;; | |
614 | ||
615 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
616 | | --x-incl | --x-inc | --x-in | --x-i) | |
617 | ac_prev=x_includes ;; | |
618 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
619 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
e6cc62c6 | 620 | x_includes=$ac_optarg ;; |
10f2d63a VZ |
621 | |
622 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
623 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
624 | ac_prev=x_libraries ;; | |
625 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
626 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
e6cc62c6 | 627 | x_libraries=$ac_optarg ;; |
10f2d63a | 628 | |
e6cc62c6 VS |
629 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
630 | Try \`$0 --help' for more information." >&2 | |
631 | { (exit 1); exit 1; }; } | |
10f2d63a VZ |
632 | ;; |
633 | ||
e6cc62c6 VS |
634 | *=*) |
635 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
636 | # Reject names that are not valid shell variable names. | |
637 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
638 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
639 | { (exit 1); exit 1; }; } | |
640 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
641 | eval "$ac_envvar='$ac_optarg'" | |
642 | export $ac_envvar ;; | |
643 | ||
10f2d63a | 644 | *) |
e6cc62c6 VS |
645 | # FIXME: should be removed in autoconf 3.0. |
646 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
647 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
648 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
649 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
10f2d63a VZ |
650 | ;; |
651 | ||
652 | esac | |
653 | done | |
654 | ||
655 | if test -n "$ac_prev"; then | |
e6cc62c6 VS |
656 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
657 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
658 | { (exit 1); exit 1; }; } | |
a0b9e27f | 659 | fi |
a0b9e27f | 660 | |
e6cc62c6 VS |
661 | # Be sure to have absolute paths. |
662 | for ac_var in exec_prefix prefix | |
663 | do | |
664 | eval ac_val=$`echo $ac_var` | |
665 | case $ac_val in | |
666 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
667 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
668 | { (exit 1); exit 1; }; };; | |
669 | esac | |
670 | done | |
8284b0c5 | 671 | |
e6cc62c6 VS |
672 | # Be sure to have absolute paths. |
673 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
789c5f4a | 674 | localstatedir libdir includedir oldincludedir infodir mandir |
10f2d63a | 675 | do |
e6cc62c6 VS |
676 | eval ac_val=$`echo $ac_var` |
677 | case $ac_val in | |
678 | [\\/$]* | ?:[\\/]* ) ;; | |
679 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
680 | { (exit 1); exit 1; }; };; | |
10f2d63a VZ |
681 | esac |
682 | done | |
683 | ||
e6cc62c6 VS |
684 | # There might be people who depend on the old broken behavior: `$host' |
685 | # used to hold the argument of --host etc. | |
686 | # FIXME: To remove some day. | |
687 | build=$build_alias | |
688 | host=$host_alias | |
689 | target=$target_alias | |
690 | ||
691 | # FIXME: To remove some day. | |
692 | if test "x$host_alias" != x; then | |
693 | if test "x$build_alias" = x; then | |
694 | cross_compiling=maybe | |
695 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
696 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
697 | elif test "x$build_alias" != "x$host_alias"; then | |
698 | cross_compiling=yes | |
699 | fi | |
700 | fi | |
247f5006 | 701 | |
e6cc62c6 VS |
702 | ac_tool_prefix= |
703 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
704 | ||
705 | test "$silent" = yes && exec 6>/dev/null | |
10f2d63a | 706 | |
10f2d63a VZ |
707 | |
708 | # Find the source files, if location was not specified. | |
709 | if test -z "$srcdir"; then | |
710 | ac_srcdir_defaulted=yes | |
711 | # Try the directory containing this script, then its parent. | |
e6cc62c6 VS |
712 | ac_confdir=`(dirname "$0") 2>/dev/null || |
713 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
789c5f4a VZ |
714 | X"$0" : 'X\(//\)[^/]' \| \ |
715 | X"$0" : 'X\(//\)$' \| \ | |
716 | X"$0" : 'X\(/\)' \| \ | |
717 | . : '\(.\)' 2>/dev/null || | |
e6cc62c6 VS |
718 | echo X"$0" | |
719 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
720 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
721 | /^X\(\/\/\)$/{ s//\1/; q; } | |
722 | /^X\(\/\).*/{ s//\1/; q; } | |
723 | s/.*/./; q'` | |
10f2d63a VZ |
724 | srcdir=$ac_confdir |
725 | if test ! -r $srcdir/$ac_unique_file; then | |
726 | srcdir=.. | |
727 | fi | |
728 | else | |
729 | ac_srcdir_defaulted=no | |
730 | fi | |
731 | if test ! -r $srcdir/$ac_unique_file; then | |
732 | if test "$ac_srcdir_defaulted" = yes; then | |
e6cc62c6 VS |
733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
734 | { (exit 1); exit 1; }; } | |
10f2d63a | 735 | else |
e6cc62c6 VS |
736 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
737 | { (exit 1); exit 1; }; } | |
10f2d63a VZ |
738 | fi |
739 | fi | |
e6cc62c6 VS |
740 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
741 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
742 | { (exit 1); exit 1; }; } | |
743 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
744 | ac_env_build_alias_set=${build_alias+set} | |
745 | ac_env_build_alias_value=$build_alias | |
746 | ac_cv_env_build_alias_set=${build_alias+set} | |
747 | ac_cv_env_build_alias_value=$build_alias | |
748 | ac_env_host_alias_set=${host_alias+set} | |
749 | ac_env_host_alias_value=$host_alias | |
750 | ac_cv_env_host_alias_set=${host_alias+set} | |
751 | ac_cv_env_host_alias_value=$host_alias | |
752 | ac_env_target_alias_set=${target_alias+set} | |
753 | ac_env_target_alias_value=$target_alias | |
754 | ac_cv_env_target_alias_set=${target_alias+set} | |
755 | ac_cv_env_target_alias_value=$target_alias | |
756 | ac_env_CC_set=${CC+set} | |
757 | ac_env_CC_value=$CC | |
758 | ac_cv_env_CC_set=${CC+set} | |
759 | ac_cv_env_CC_value=$CC | |
760 | ac_env_CFLAGS_set=${CFLAGS+set} | |
761 | ac_env_CFLAGS_value=$CFLAGS | |
762 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
763 | ac_cv_env_CFLAGS_value=$CFLAGS | |
764 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
765 | ac_env_LDFLAGS_value=$LDFLAGS | |
766 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
767 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
768 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
769 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
770 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
771 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
772 | ac_env_CPP_set=${CPP+set} | |
773 | ac_env_CPP_value=$CPP | |
774 | ac_cv_env_CPP_set=${CPP+set} | |
775 | ac_cv_env_CPP_value=$CPP | |
776 | ac_env_CXX_set=${CXX+set} | |
777 | ac_env_CXX_value=$CXX | |
778 | ac_cv_env_CXX_set=${CXX+set} | |
779 | ac_cv_env_CXX_value=$CXX | |
780 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} | |
781 | ac_env_CXXFLAGS_value=$CXXFLAGS | |
782 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} | |
783 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS | |
784 | ac_env_CXXCPP_set=${CXXCPP+set} | |
785 | ac_env_CXXCPP_value=$CXXCPP | |
786 | ac_cv_env_CXXCPP_set=${CXXCPP+set} | |
787 | ac_cv_env_CXXCPP_value=$CXXCPP | |
328a083c | 788 | |
e6cc62c6 VS |
789 | # |
790 | # Report the --help message. | |
791 | # | |
792 | if test "$ac_init_help" = "long"; then | |
793 | # Omit some internal or obsolete options to make the list less imposing. | |
794 | # This message is too long to be a string in the A/UX 3.1 sh. | |
795 | cat <<_ACEOF | |
e46d2a18 | 796 | \`configure' configures wxWindows 2.5.1 to adapt to many kinds of systems. |
10f2d63a | 797 | |
e6cc62c6 | 798 | Usage: $0 [OPTION]... [VAR=VALUE]... |
10f2d63a | 799 | |
e6cc62c6 VS |
800 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
801 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
8284b0c5 | 802 | |
e6cc62c6 VS |
803 | Defaults for the options are specified in brackets. |
804 | ||
805 | Configuration: | |
806 | -h, --help display this help and exit | |
807 | --help=short display options specific to this package | |
808 | --help=recursive display the short help of all the included packages | |
809 | -V, --version display version information and exit | |
810 | -q, --quiet, --silent do not print \`checking...' messages | |
811 | --cache-file=FILE cache test results in FILE [disabled] | |
812 | -C, --config-cache alias for \`--cache-file=config.cache' | |
813 | -n, --no-create do not create output files | |
814 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
815 | ||
816 | _ACEOF | |
817 | ||
818 | cat <<_ACEOF | |
819 | Installation directories: | |
820 | --prefix=PREFIX install architecture-independent files in PREFIX | |
789c5f4a | 821 | [$ac_default_prefix] |
e6cc62c6 | 822 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
789c5f4a | 823 | [PREFIX] |
e6cc62c6 VS |
824 | |
825 | By default, \`make install' will install all the files in | |
826 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
827 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
828 | for instance \`--prefix=\$HOME'. | |
829 | ||
830 | For better control, use the options below. | |
831 | ||
832 | Fine tuning of the installation directories: | |
833 | --bindir=DIR user executables [EPREFIX/bin] | |
834 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
835 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
836 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
837 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
838 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
839 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
840 | --libdir=DIR object code libraries [EPREFIX/lib] | |
841 | --includedir=DIR C header files [PREFIX/include] | |
842 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
843 | --infodir=DIR info documentation [PREFIX/info] | |
844 | --mandir=DIR man documentation [PREFIX/man] | |
845 | _ACEOF | |
846 | ||
847 | cat <<\_ACEOF | |
848 | ||
849 | X features: | |
850 | --x-includes=DIR X include files are in DIR | |
851 | --x-libraries=DIR X library files are in DIR | |
852 | ||
853 | System types: | |
854 | --build=BUILD configure for building on BUILD [guessed] | |
855 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
856 | --target=TARGET configure for building compilers for TARGET [HOST] | |
857 | _ACEOF | |
858 | fi | |
859 | ||
860 | if test -n "$ac_init_help"; then | |
861 | case $ac_init_help in | |
e46d2a18 | 862 | short | recursive ) echo "Configuration of wxWindows 2.5.1:";; |
e6cc62c6 VS |
863 | esac |
864 | cat <<\_ACEOF | |
865 | ||
866 | Optional Features: | |
867 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
868 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
869 | --enable-gui use GUI classes | |
f93ca9fd VS |
870 | --enable-monolithic build wxWindows as single library |
871 | --enable-plugins build parts of wxWindows as loadable components | |
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 |
002ed9af | 930 | --enable-sound use wxSound 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 | |
f93ca9fd | 1034 | --disable-sdltest Do not try to compile and run a test SDL program |
45842500 | 1035 | --disable-precomp-headers don't use precompiled headers even if compiler can |
e6cc62c6 VS |
1036 | |
1037 | Optional Packages: | |
1038 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1039 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1040 | --with-gtk use GTK+ | |
1041 | --with-motif use Motif/Lesstif | |
1042 | --with-mac use Mac OS X | |
1043 | --with-cocoa use Cocoa | |
1044 | --with-wine use Wine | |
1045 | --with-msw use MS-Windows | |
1046 | --with-pm use OS/2 Presentation Manager | |
1047 | --with-mgl use SciTech MGL | |
1048 | --with-microwin use MicroWindows | |
1049 | --with-x11 use X11 | |
1050 | --with-libpng use libpng (PNG image format) | |
1051 | --with-libjpeg use libjpeg (JPEG file format) | |
1052 | --with-libtiff use libtiff (TIFF file format) | |
89fe663f | 1053 | --with-libxpm use libxpm (XPM file format) |
3527f29c | 1054 | --with-libmspack use libmspack (CHM help files loading) |
f93ca9fd | 1055 | --with-sdl use SDL for audio on Unix |
e6cc62c6 VS |
1056 | --with-opengl use OpenGL (or Mesa) |
1057 | --with-dmalloc use dmalloc library (http://dmalloc.com/) | |
1058 | --with-regex enable support for wxRegEx class | |
1059 | --with-zlib use zlib for LZW compression | |
1060 | --with-odbc use the IODBC and wxODBC classes | |
672abd7a | 1061 | --with-expat enable XML support using expat parser |
e6cc62c6 VS |
1062 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) |
1063 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) | |
1064 | --with-x use the X Window System | |
1065 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib | |
f93ca9fd VS |
1066 | --with-sdl-prefix=PFX Prefix where SDL is installed (optional) |
1067 | --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) | |
e6cc62c6 VS |
1068 | |
1069 | Some influential environment variables: | |
1070 | CC C compiler command | |
1071 | CFLAGS C compiler flags | |
1072 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1073 | nonstandard directory <lib dir> | |
1074 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1075 | headers in a nonstandard directory <include dir> | |
1076 | CPP C preprocessor | |
1077 | CXX C++ compiler command | |
1078 | CXXFLAGS C++ compiler flags | |
1079 | CXXCPP C++ preprocessor | |
1080 | ||
1081 | Use these variables to override the choices made by `configure' or to help | |
1082 | it to find libraries and programs with nonstandard names/locations. | |
1083 | ||
1084 | Report bugs to <wx-dev@lists.wxwindows.org>. | |
1085 | _ACEOF | |
1086 | fi | |
1087 | ||
1088 | if test "$ac_init_help" = "recursive"; then | |
1089 | # If there are subdirs, report their specific --help. | |
1090 | ac_popdir=`pwd` | |
1091 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1092 | test -d $ac_dir || continue | |
1093 | ac_builddir=. | |
1094 | ||
1095 | if test "$ac_dir" != .; then | |
1096 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1097 | # A "../" for each directory in $ac_dir_suffix. | |
1098 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1099 | else | |
1100 | ac_dir_suffix= ac_top_builddir= | |
1101 | fi | |
1102 | ||
1103 | case $srcdir in | |
1104 | .) # No --srcdir option. We are building in place. | |
1105 | ac_srcdir=. | |
1106 | if test -z "$ac_top_builddir"; then | |
1107 | ac_top_srcdir=. | |
1108 | else | |
1109 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1110 | fi ;; | |
1111 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1112 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1113 | ac_top_srcdir=$srcdir ;; | |
1114 | *) # Relative path. | |
1115 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1116 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1117 | esac | |
789c5f4a VZ |
1118 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
1119 | # absolute. | |
1120 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
1121 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | |
1122 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
1123 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
e6cc62c6 VS |
1124 | |
1125 | cd $ac_dir | |
1126 | # Check for guested configure; otherwise get Cygnus style configure. | |
1127 | if test -f $ac_srcdir/configure.gnu; then | |
1128 | echo | |
1129 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1130 | elif test -f $ac_srcdir/configure; then | |
1131 | echo | |
1132 | $SHELL $ac_srcdir/configure --help=recursive | |
1133 | elif test -f $ac_srcdir/configure.ac || | |
789c5f4a | 1134 | test -f $ac_srcdir/configure.in; then |
e6cc62c6 VS |
1135 | echo |
1136 | $ac_configure --help | |
1137 | else | |
1138 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1139 | fi | |
1140 | cd $ac_popdir | |
1141 | done | |
1142 | fi | |
8284b0c5 | 1143 | |
e6cc62c6 VS |
1144 | test -n "$ac_init_help" && exit 0 |
1145 | if $ac_init_version; then | |
1146 | cat <<\_ACEOF | |
e46d2a18 | 1147 | wxWindows configure 2.5.1 |
789c5f4a | 1148 | generated by GNU Autoconf 2.57 |
10f2d63a | 1149 | |
789c5f4a VZ |
1150 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
1151 | Free Software Foundation, Inc. | |
e6cc62c6 VS |
1152 | This configure script is free software; the Free Software Foundation |
1153 | gives unlimited permission to copy, distribute and modify it. | |
1154 | _ACEOF | |
1155 | exit 0 | |
7c66a493 | 1156 | fi |
e6cc62c6 VS |
1157 | exec 5>config.log |
1158 | cat >&5 <<_ACEOF | |
1159 | This file contains any messages produced by compilers while | |
1160 | running configure, to aid debugging if configure makes a mistake. | |
1161 | ||
e46d2a18 | 1162 | It was created by wxWindows $as_me 2.5.1, which was |
789c5f4a | 1163 | generated by GNU Autoconf 2.57. Invocation command line was |
e6cc62c6 VS |
1164 | |
1165 | $ $0 $@ | |
1166 | ||
1167 | _ACEOF | |
1168 | { | |
1169 | cat <<_ASUNAME | |
1170 | ## --------- ## | |
1171 | ## Platform. ## | |
1172 | ## --------- ## | |
1173 | ||
1174 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1175 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1176 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1177 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1178 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1179 | ||
1180 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1181 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1182 | ||
1183 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1184 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1185 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1186 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1187 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1188 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1189 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1190 | ||
1191 | _ASUNAME | |
1192 | ||
1193 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1194 | for as_dir in $PATH | |
1195 | do | |
1196 | IFS=$as_save_IFS | |
1197 | test -z "$as_dir" && as_dir=. | |
1198 | echo "PATH: $as_dir" | |
1199 | done | |
1200 | ||
1201 | } >&5 | |
1202 | ||
1203 | cat >&5 <<_ACEOF | |
1204 | ||
1205 | ||
1206 | ## ----------- ## | |
1207 | ## Core tests. ## | |
1208 | ## ----------- ## | |
1209 | ||
1210 | _ACEOF | |
1211 | ||
1212 | ||
1213 | # Keep a trace of the command line. | |
1214 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1215 | # Strip out --silent because we don't want to record it for future runs. | |
1216 | # Also quote any args containing shell meta-characters. | |
1217 | # Make two passes to allow for proper duplicate-argument suppression. | |
1218 | ac_configure_args= | |
1219 | ac_configure_args0= | |
1220 | ac_configure_args1= | |
1221 | ac_sep= | |
1222 | ac_must_keep_next=false | |
1223 | for ac_pass in 1 2 | |
1224 | do | |
1225 | for ac_arg | |
1226 | do | |
1227 | case $ac_arg in | |
1228 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1229 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1230 | | -silent | --silent | --silen | --sile | --sil) | |
1231 | continue ;; | |
1232 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1233 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1234 | esac | |
1235 | case $ac_pass in | |
1236 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1237 | 2) | |
1238 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1239 | if test $ac_must_keep_next = true; then | |
789c5f4a | 1240 | ac_must_keep_next=false # Got value, back to normal. |
e6cc62c6 | 1241 | else |
789c5f4a VZ |
1242 | case $ac_arg in |
1243 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1244 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1245 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1246 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1247 | case "$ac_configure_args0 " in | |
1248 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1249 | esac | |
1250 | ;; | |
1251 | -* ) ac_must_keep_next=true ;; | |
1252 | esac | |
e6cc62c6 VS |
1253 | fi |
1254 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1255 | # Get rid of the leading space. | |
1256 | ac_sep=" " | |
1257 | ;; | |
1258 | esac | |
1259 | done | |
1260 | done | |
1261 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1262 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1263 | ||
1264 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1265 | # config.log. We remove comments because anyway the quotes in there | |
1266 | # would cause problems or look ugly. | |
1267 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1268 | # such as our DU 5.0 friend, will then `close' the trap. | |
1269 | trap 'exit_status=$? | |
1270 | # Save into config.log some information that might help in debugging. | |
1271 | { | |
1272 | echo | |
1273 | ||
1274 | cat <<\_ASBOX | |
1275 | ## ---------------- ## | |
1276 | ## Cache variables. ## | |
1277 | ## ---------------- ## | |
1278 | _ASBOX | |
1279 | echo | |
1280 | # The following way of writing the cache mishandles newlines in values, | |
1281 | { | |
1282 | (set) 2>&1 | | |
1283 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1284 | *ac_space=\ *) | |
1285 | sed -n \ | |
789c5f4a VZ |
1286 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1287 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
e6cc62c6 VS |
1288 | ;; |
1289 | *) | |
1290 | sed -n \ | |
789c5f4a | 1291 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
e6cc62c6 VS |
1292 | ;; |
1293 | esac; | |
1294 | } | |
1295 | echo | |
1296 | ||
1297 | cat <<\_ASBOX | |
1298 | ## ----------------- ## | |
1299 | ## Output variables. ## | |
1300 | ## ----------------- ## | |
1301 | _ASBOX | |
1302 | echo | |
1303 | for ac_var in $ac_subst_vars | |
1304 | do | |
1305 | eval ac_val=$`echo $ac_var` | |
1306 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1307 | done | sort | |
1308 | echo | |
1309 | ||
1310 | if test -n "$ac_subst_files"; then | |
1311 | cat <<\_ASBOX | |
1312 | ## ------------- ## | |
1313 | ## Output files. ## | |
1314 | ## ------------- ## | |
1315 | _ASBOX | |
1316 | echo | |
1317 | for ac_var in $ac_subst_files | |
1318 | do | |
1319 | eval ac_val=$`echo $ac_var` | |
789c5f4a | 1320 | echo "$ac_var='"'"'$ac_val'"'"'" |
e6cc62c6 VS |
1321 | done | sort |
1322 | echo | |
1323 | fi | |
1324 | ||
1325 | if test -s confdefs.h; then | |
1326 | cat <<\_ASBOX | |
1327 | ## ----------- ## | |
1328 | ## confdefs.h. ## | |
1329 | ## ----------- ## | |
1330 | _ASBOX | |
1331 | echo | |
1332 | sed "/^$/d" confdefs.h | sort | |
1333 | echo | |
1334 | fi | |
1335 | test "$ac_signal" != 0 && | |
1336 | echo "$as_me: caught signal $ac_signal" | |
1337 | echo "$as_me: exit $exit_status" | |
1338 | } >&5 | |
789c5f4a | 1339 | rm -f core core.* *.core && |
e6cc62c6 VS |
1340 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1341 | exit $exit_status | |
1342 | ' 0 | |
1343 | for ac_signal in 1 2 13 15; do | |
1344 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1345 | done | |
1346 | ac_signal=0 | |
1347 | ||
1348 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1349 | rm -rf conftest* confdefs.h | |
1350 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1351 | echo >confdefs.h | |
1352 | ||
1353 | # Predefined preprocessor variables. | |
1354 | ||
1355 | cat >>confdefs.h <<_ACEOF | |
1356 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1357 | _ACEOF | |
1358 | ||
1359 | ||
1360 | cat >>confdefs.h <<_ACEOF | |
1361 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1362 | _ACEOF | |
1363 | ||
1364 | ||
1365 | cat >>confdefs.h <<_ACEOF | |
1366 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1367 | _ACEOF | |
1368 | ||
1369 | ||
1370 | cat >>confdefs.h <<_ACEOF | |
1371 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1372 | _ACEOF | |
1373 | ||
1374 | ||
1375 | cat >>confdefs.h <<_ACEOF | |
1376 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1377 | _ACEOF | |
1378 | ||
1379 | ||
1380 | # Let the site file select an alternate cache file if it wants to. | |
1381 | # Prefer explicitly selected file to automatically selected ones. | |
1382 | if test -z "$CONFIG_SITE"; then | |
1383 | if test "x$prefix" != xNONE; then | |
1384 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1385 | else | |
1386 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1387 | fi | |
1388 | fi | |
1389 | for ac_site_file in $CONFIG_SITE; do | |
1390 | if test -r "$ac_site_file"; then | |
1391 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1392 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1393 | sed 's/^/| /' "$ac_site_file" >&5 | |
1394 | . "$ac_site_file" | |
1395 | fi | |
1396 | done | |
1397 | ||
1398 | if test -r "$cache_file"; then | |
1399 | # Some versions of bash will fail to source /dev/null (special | |
1400 | # files actually), so we avoid doing that. | |
1401 | if test -f "$cache_file"; then | |
1402 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1403 | echo "$as_me: loading cache $cache_file" >&6;} | |
1404 | case $cache_file in | |
1405 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1406 | *) . ./$cache_file;; | |
1407 | esac | |
1408 | fi | |
1409 | else | |
1410 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1411 | echo "$as_me: creating cache $cache_file" >&6;} | |
1412 | >$cache_file | |
1413 | fi | |
1414 | ||
1415 | # Check that the precious variables saved in the cache have kept the same | |
1416 | # value. | |
1417 | ac_cache_corrupted=false | |
1418 | for ac_var in `(set) 2>&1 | | |
789c5f4a | 1419 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
e6cc62c6 VS |
1420 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1421 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1422 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1423 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1424 | case $ac_old_set,$ac_new_set in | |
1425 | set,) | |
1426 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1427 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1428 | ac_cache_corrupted=: ;; | |
1429 | ,set) | |
1430 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1431 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1432 | ac_cache_corrupted=: ;; | |
1433 | ,);; | |
1434 | *) | |
1435 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
789c5f4a | 1436 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
e6cc62c6 | 1437 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
789c5f4a | 1438 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
e6cc62c6 | 1439 | echo "$as_me: former value: $ac_old_val" >&2;} |
789c5f4a | 1440 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
e6cc62c6 | 1441 | echo "$as_me: current value: $ac_new_val" >&2;} |
789c5f4a | 1442 | ac_cache_corrupted=: |
e6cc62c6 VS |
1443 | fi;; |
1444 | esac | |
1445 | # Pass precious variables to config.status. | |
1446 | if test "$ac_new_set" = set; then | |
1447 | case $ac_new_val in | |
1448 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1449 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1450 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1451 | esac | |
1452 | case " $ac_configure_args " in | |
1453 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1454 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1455 | esac | |
1456 | fi | |
1457 | done | |
1458 | if $ac_cache_corrupted; then | |
1459 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1460 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1461 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1462 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1463 | { (exit 1); exit 1; }; } | |
1464 | fi | |
1465 | ||
1466 | ac_ext=c | |
1467 | ac_cpp='$CPP $CPPFLAGS' | |
1468 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1469 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1470 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1471 | ||
1472 | ||
1473 | ||
1474 | ||
1475 | ||
1476 | ||
1477 | ||
1478 | ||
1479 | ||
1480 | ||
1481 | ||
1482 | ||
1483 | ||
1484 | ||
1485 | ||
1486 | ||
1487 | ||
698dcdb6 | 1488 | |
8284b0c5 | 1489 | |
7c66a493 | 1490 | |
a0b9e27f MB |
1491 | |
1492 | ||
a0b9e27f | 1493 | |
a0b9e27f | 1494 | |
a0b9e27f | 1495 | |
a0b9e27f | 1496 | |
a0b9e27f | 1497 | |
a0b9e27f | 1498 | |
e6cc62c6 VS |
1499 | |
1500 | ||
1501 | ac_aux_dir= | |
1502 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1503 | if test -f $ac_dir/install-sh; then | |
1504 | ac_aux_dir=$ac_dir | |
1505 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1506 | break | |
1507 | elif test -f $ac_dir/install.sh; then | |
1508 | ac_aux_dir=$ac_dir | |
1509 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1510 | break | |
1511 | elif test -f $ac_dir/shtool; then | |
1512 | ac_aux_dir=$ac_dir | |
1513 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1514 | break | |
1515 | fi | |
1516 | done | |
1517 | if test -z "$ac_aux_dir"; then | |
1518 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1519 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1520 | { (exit 1); exit 1; }; } | |
1521 | fi | |
1522 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1523 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1524 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1525 | ||
1526 | # Make sure we can run config.sub. | |
1527 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1528 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1529 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1530 | { (exit 1); exit 1; }; } | |
1531 | ||
1532 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1533 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1534 | if test "${ac_cv_build+set}" = set; then | |
1535 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1536 | else | |
1537 | ac_cv_build_alias=$build_alias | |
1538 | test -z "$ac_cv_build_alias" && | |
1539 | ac_cv_build_alias=`$ac_config_guess` | |
1540 | test -z "$ac_cv_build_alias" && | |
1541 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1542 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1543 | { (exit 1); exit 1; }; } | |
1544 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1545 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1546 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1547 | { (exit 1); exit 1; }; } | |
1548 | ||
1549 | fi | |
1550 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1551 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1552 | build=$ac_cv_build | |
1553 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1554 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1555 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1556 | ||
1557 | ||
1558 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1559 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1560 | if test "${ac_cv_host+set}" = set; then | |
1561 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1562 | else | |
1563 | ac_cv_host_alias=$host_alias | |
1564 | test -z "$ac_cv_host_alias" && | |
1565 | ac_cv_host_alias=$ac_cv_build_alias | |
1566 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1567 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1568 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1569 | { (exit 1); exit 1; }; } | |
1570 | ||
1571 | fi | |
1572 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1573 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1574 | host=$ac_cv_host | |
1575 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1576 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1577 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1578 | ||
1579 | ||
1580 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1581 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1582 | if test "${ac_cv_target+set}" = set; then | |
1583 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1584 | else | |
1585 | ac_cv_target_alias=$target_alias | |
1586 | test "x$ac_cv_target_alias" = "x" && | |
1587 | ac_cv_target_alias=$ac_cv_host_alias | |
1588 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1589 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1590 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1591 | { (exit 1); exit 1; }; } | |
1592 | ||
1593 | fi | |
1594 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1595 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1596 | target=$ac_cv_target | |
1597 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1598 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1599 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1600 | ||
1601 | ||
1602 | # The aliases save the names the user supplied, while $host etc. | |
1603 | # will get canonicalized. | |
1604 | test -n "$target_alias" && | |
7c66a493 VZ |
1605 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1606 | NONENONEs,x,x, && | |
1607 | program_prefix=${target_alias}- | |
8284b0c5 MB |
1608 | |
1609 | ||
a0b9e27f | 1610 | |
10f2d63a | 1611 | WX_MAJOR_VERSION_NUMBER=2 |
34bed6d9 | 1612 | WX_MINOR_VERSION_NUMBER=5 |
e46d2a18 | 1613 | WX_RELEASE_NUMBER=1 |
10f2d63a | 1614 | |
10f2d63a | 1615 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 1616 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c | 1617 | |
978f1259 RL |
1618 | WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER |
1619 | ||
7015ef3a | 1620 | WX_CURRENT=1 |
6426998c RL |
1621 | WX_REVISION=0 |
1622 | WX_AGE=0 | |
1623 | ||
8284b0c5 MB |
1624 | |
1625 | ||
10f2d63a | 1626 | USE_UNIX=1 |
73d617c9 | 1627 | USE_OS2=0 |
10f2d63a | 1628 | USE_WIN32=0 |
f9bc1684 | 1629 | USE_DOS=0 |
b12915c1 | 1630 | USE_BEOS=0 |
1216f52d | 1631 | USE_MAC=0 |
b12915c1 | 1632 | |
10f2d63a | 1633 | USE_AIX= |
fe0895cf VS |
1634 | USE_BSD= USE_DARWIN= USE_FREEBSD= |
1635 | USE_GNU= USE_HPUX= | |
89e3b3e4 | 1636 | USE_LINUX= |
f6bcfd97 | 1637 | USE_NETBSD= |
89e3b3e4 | 1638 | USE_OPENBSD= |
fe0895cf VS |
1639 | USE_OSF= USE_SGI= |
1640 | USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS= | |
10f2d63a | 1641 | USE_ULTRIX= |
89e3b3e4 VZ |
1642 | USE_UNIXWARE= |
1643 | ||
1644 | USE_ALPHA= | |
10f2d63a | 1645 | |
ab9b9eab VZ |
1646 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
1647 | ||
ac0c4cc3 | 1648 | ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11" |
10f2d63a | 1649 | |
ac0c4cc3 | 1650 | DEFAULT_wxUSE_COCOA=0 |
10f2d63a | 1651 | DEFAULT_wxUSE_GTK=0 |
1e6feb95 VZ |
1652 | DEFAULT_wxUSE_MAC=0 |
1653 | DEFAULT_wxUSE_MGL=0 | |
1725144d | 1654 | DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1655 | DEFAULT_wxUSE_MOTIF=0 |
1656 | DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1657 | DEFAULT_wxUSE_PM=0 |
f79bd02d | 1658 | DEFAULT_wxUSE_X11=0 |
10f2d63a | 1659 | |
ac0c4cc3 | 1660 | DEFAULT_DEFAULT_wxUSE_COCOA=0 |
10f2d63a | 1661 | DEFAULT_DEFAULT_wxUSE_GTK=0 |
1e6feb95 VZ |
1662 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
1663 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1725144d | 1664 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1665 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 |
1666 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1667 | DEFAULT_DEFAULT_wxUSE_PM=0 |
f79bd02d | 1668 | DEFAULT_DEFAULT_wxUSE_X11=0 |
10f2d63a | 1669 | |
d6a55c4b | 1670 | PROGRAM_EXT= |
3a922bb4 | 1671 | SO_SUFFIX=so |
fe0895cf | 1672 | SAMPLES_RPATH_FLAG= |
0f1bc9c2 | 1673 | SAMPLES_RPATH_POSTLINK= |
d6a55c4b | 1674 | |
10f2d63a VZ |
1675 | case "${host}" in |
1676 | *-hp-hpux* ) | |
1677 | USE_HPUX=1 | |
1678 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1679 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
3a922bb4 | 1680 | SO_SUFFIX=sl |
e6cc62c6 | 1681 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1682 | #define __HPUX__ 1 |
e6cc62c6 | 1683 | _ACEOF |
10f2d63a VZ |
1684 | |
1685 | ;; | |
1686 | *-*-linux* ) | |
1687 | USE_LINUX=1 | |
e6cc62c6 | 1688 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1689 | #define __LINUX__ 1 |
e6cc62c6 | 1690 | _ACEOF |
10f2d63a VZ |
1691 | |
1692 | TMP=`uname -m` | |
1693 | if test "x$TMP" = "xalpha"; then | |
1694 | USE_ALPHA=1 | |
e6cc62c6 | 1695 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1696 | #define __ALPHA__ 1 |
e6cc62c6 | 1697 | _ACEOF |
fe0895cf VS |
1698 | |
1699 | fi | |
1700 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1701 | ;; | |
1702 | *-*-gnu* ) | |
1703 | USE_GNU=1 | |
e6cc62c6 | 1704 | cat >>confdefs.h <<\_ACEOF |
fe0895cf | 1705 | #define __GNU__ 1 |
e6cc62c6 | 1706 | _ACEOF |
fe0895cf VS |
1707 | |
1708 | TMP=`uname -m` | |
1709 | if test "x$TMP" = "xalpha"; then | |
1710 | USE_ALPHA=1 | |
e6cc62c6 | 1711 | cat >>confdefs.h <<\_ACEOF |
fe0895cf | 1712 | #define __ALPHA__ 1 |
e6cc62c6 | 1713 | _ACEOF |
10f2d63a VZ |
1714 | |
1715 | fi | |
1716 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1717 | ;; | |
1718 | *-*-irix5* | *-*-irix6* ) | |
1719 | USE_SGI=1 | |
1720 | USE_SVR4=1 | |
e6cc62c6 | 1721 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1722 | #define __SGI__ 1 |
e6cc62c6 | 1723 | _ACEOF |
10f2d63a | 1724 | |
e6cc62c6 | 1725 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1726 | #define __SVR4__ 1 |
e6cc62c6 | 1727 | _ACEOF |
10f2d63a VZ |
1728 | |
1729 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1730 | ;; | |
1731 | *-*-solaris2* ) | |
1732 | USE_SUN=1 | |
1733 | USE_SOLARIS=1 | |
1734 | USE_SVR4=1 | |
e6cc62c6 | 1735 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1736 | #define __SUN__ 1 |
e6cc62c6 | 1737 | _ACEOF |
10f2d63a | 1738 | |
e6cc62c6 | 1739 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1740 | #define __SOLARIS__ 1 |
e6cc62c6 | 1741 | _ACEOF |
10f2d63a | 1742 | |
e6cc62c6 | 1743 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1744 | #define __SVR4__ 1 |
e6cc62c6 | 1745 | _ACEOF |
10f2d63a VZ |
1746 | |
1747 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1748 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1749 | ;; |
1750 | *-*-sunos4* ) | |
1751 | USE_SUN=1 | |
1752 | USE_SUNOS=1 | |
1753 | USE_BSD=1 | |
e6cc62c6 | 1754 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1755 | #define __SUN__ 1 |
e6cc62c6 | 1756 | _ACEOF |
10f2d63a | 1757 | |
e6cc62c6 | 1758 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1759 | #define __SUNOS__ 1 |
e6cc62c6 | 1760 | _ACEOF |
10f2d63a | 1761 | |
e6cc62c6 | 1762 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1763 | #define __BSD__ 1 |
e6cc62c6 | 1764 | _ACEOF |
10f2d63a VZ |
1765 | |
1766 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1767 | ;; | |
f6bcfd97 | 1768 | *-*-freebsd*) |
10f2d63a VZ |
1769 | USE_BSD=1 |
1770 | USE_FREEBSD=1 | |
e6cc62c6 | 1771 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1772 | #define __FREEBSD__ 1 |
e6cc62c6 | 1773 | _ACEOF |
10f2d63a | 1774 | |
e6cc62c6 | 1775 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1776 | #define __BSD__ 1 |
e6cc62c6 | 1777 | _ACEOF |
95c8801c VS |
1778 | |
1779 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1780 | ;; | |
1781 | *-*-openbsd*) | |
1782 | USE_BSD=1 | |
1783 | USE_OPENBSD=1 | |
e6cc62c6 | 1784 | cat >>confdefs.h <<\_ACEOF |
2b5f62a0 | 1785 | #define __OPENBSD__ 1 |
e6cc62c6 | 1786 | _ACEOF |
95c8801c | 1787 | |
e6cc62c6 | 1788 | cat >>confdefs.h <<\_ACEOF |
2b5f62a0 | 1789 | #define __BSD__ 1 |
e6cc62c6 | 1790 | _ACEOF |
f6bcfd97 BP |
1791 | |
1792 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1793 | ;; | |
1794 | *-*-netbsd*) | |
1795 | USE_BSD=1 | |
1796 | USE_NETBSD=1 | |
e6cc62c6 | 1797 | cat >>confdefs.h <<\_ACEOF |
2b5f62a0 | 1798 | #define __NETBSD__ 1 |
e6cc62c6 | 1799 | _ACEOF |
f6bcfd97 | 1800 | |
e6cc62c6 | 1801 | cat >>confdefs.h <<\_ACEOF |
2b5f62a0 | 1802 | #define __BSD__ 1 |
e6cc62c6 | 1803 | _ACEOF |
10f2d63a VZ |
1804 | |
1805 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1806 | ;; | |
1807 | *-*-osf* ) | |
1808 | USE_ALPHA=1 | |
1809 | USE_OSF=1 | |
e6cc62c6 | 1810 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1811 | #define __ALPHA__ 1 |
e6cc62c6 | 1812 | _ACEOF |
10f2d63a | 1813 | |
e6cc62c6 | 1814 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1815 | #define __OSF__ 1 |
e6cc62c6 | 1816 | _ACEOF |
10f2d63a VZ |
1817 | |
1818 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1819 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1820 | ;; |
1821 | *-*-dgux5* ) | |
1822 | USE_ALPHA=1 | |
1823 | USE_SVR4=1 | |
e6cc62c6 | 1824 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1825 | #define __ALPHA__ 1 |
e6cc62c6 | 1826 | _ACEOF |
10f2d63a | 1827 | |
e6cc62c6 | 1828 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1829 | #define __SVR4__ 1 |
e6cc62c6 | 1830 | _ACEOF |
10f2d63a VZ |
1831 | |
1832 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1833 | ;; | |
1834 | *-*-sysv5* ) | |
1835 | USE_SYSV=1 | |
1836 | USE_SVR4=1 | |
e6cc62c6 | 1837 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1838 | #define __SYSV__ 1 |
e6cc62c6 | 1839 | _ACEOF |
10f2d63a | 1840 | |
e6cc62c6 | 1841 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1842 | #define __SVR4__ 1 |
e6cc62c6 | 1843 | _ACEOF |
10f2d63a VZ |
1844 | |
1845 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1846 | ;; | |
1847 | *-*-aix* ) | |
1848 | USE_AIX=1 | |
1849 | USE_SYSV=1 | |
1850 | USE_SVR4=1 | |
2b5f62a0 | 1851 | SO_SUFFIX=a |
e6cc62c6 | 1852 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1853 | #define __AIX__ 1 |
e6cc62c6 | 1854 | _ACEOF |
10f2d63a | 1855 | |
e6cc62c6 | 1856 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1857 | #define __SYSV__ 1 |
e6cc62c6 | 1858 | _ACEOF |
10f2d63a | 1859 | |
e6cc62c6 | 1860 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1861 | #define __SVR4__ 1 |
e6cc62c6 | 1862 | _ACEOF |
10f2d63a VZ |
1863 | |
1864 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1865 | ;; | |
1866 | ||
89e3b3e4 VZ |
1867 | *-*-*UnixWare*) |
1868 | USE_SYSV=1 | |
1869 | USE_SVR4=1 | |
1870 | USE_UNIXWARE=1 | |
e6cc62c6 | 1871 | cat >>confdefs.h <<\_ACEOF |
89e3b3e4 | 1872 | #define __UNIXWARE__ 1 |
e6cc62c6 | 1873 | _ACEOF |
89e3b3e4 VZ |
1874 | |
1875 | ;; | |
1876 | ||
1c8183e2 | 1877 | *-*-cygwin* | *-*-mingw32* ) |
17234b26 | 1878 | SO_SUFFIX=dll |
cf27ef00 | 1879 | PROGRAM_EXT=".exe" |
7b7a7637 | 1880 | RESCOMP=windres |
10f2d63a VZ |
1881 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1882 | ;; | |
1883 | ||
f9bc1684 VS |
1884 | *-pc-msdosdjgpp ) |
1885 | USE_UNIX=0 | |
1886 | USE_DOS=1 | |
e6cc62c6 | 1887 | cat >>confdefs.h <<\_ACEOF |
f9bc1684 | 1888 | #define __DOS__ 1 |
e6cc62c6 | 1889 | _ACEOF |
f9bc1684 VS |
1890 | |
1891 | PROGRAM_EXT=".exe" | |
1892 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
24f5e003 | 1893 | LIBS="$LIBS -lstdc++" |
f9bc1684 VS |
1894 | ;; |
1895 | ||
6fa882bd | 1896 | *-pc-os2_emx | *-pc-os2-emx ) |
e6cc62c6 | 1897 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1898 | #define __EMX__ 1 |
e6cc62c6 | 1899 | _ACEOF |
10f2d63a | 1900 | |
73d617c9 | 1901 | USE_OS2=1 |
7015ef3a VZ |
1902 | cat >>confdefs.h <<\_ACEOF |
1903 | #define __OS2__ 1 | |
1904 | _ACEOF | |
1905 | ||
cf27ef00 | 1906 | PROGRAM_EXT=".exe" |
e07802fc | 1907 | DEFAULT_DEFAULT_wxUSE_PM=1 |
eb69fda5 | 1908 | CXX=gcc |
73d617c9 | 1909 | LDFLAGS="$LDFLAGS -Zcrtdll -Zsysv-signals" |
d5fc095c VS |
1910 | ac_executable_extensions=".exe" |
1911 | export ac_executable_extensions | |
1912 | ac_save_IFS="$IFS" | |
e46d2a18 | 1913 | IFS='\\' |
d5fc095c VS |
1914 | ac_TEMP_PATH= |
1915 | for ac_dir in $PATH; do | |
1916 | IFS=$ac_save_IFS | |
1917 | if test -z "$ac_TEMP_PATH"; then | |
1918 | ac_TEMP_PATH="$ac_dir" | |
1919 | else | |
1920 | ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir" | |
1921 | fi | |
1922 | done | |
1923 | export PATH="$ac_TEMP_PATH" | |
1924 | unset ac_TEMP_PATH | |
10f2d63a VZ |
1925 | ;; |
1926 | ||
d08b457b GD |
1927 | powerpc-*-darwin* ) |
1928 | USE_BSD=1 | |
f11bdd03 | 1929 | USE_DARWIN=1 |
3a922bb4 | 1930 | SO_SUFFIX=dylib |
e6cc62c6 | 1931 | cat >>confdefs.h <<\_ACEOF |
f11bdd03 | 1932 | #define __BSD__ 1 |
e6cc62c6 | 1933 | _ACEOF |
b4085ce6 | 1934 | |
e6cc62c6 | 1935 | cat >>confdefs.h <<\_ACEOF |
f11bdd03 | 1936 | #define __DARWIN__ 1 |
e6cc62c6 | 1937 | _ACEOF |
d08b457b | 1938 | |
e6cc62c6 | 1939 | cat >>confdefs.h <<\_ACEOF |
d08b457b | 1940 | #define __POWERPC__ 1 |
e6cc62c6 | 1941 | _ACEOF |
82d43113 | 1942 | |
e6cc62c6 | 1943 | cat >>confdefs.h <<\_ACEOF |
82d43113 | 1944 | #define TARGET_CARBON 1 |
e6cc62c6 | 1945 | _ACEOF |
b4085ce6 GD |
1946 | |
1947 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1948 | ;; | |
1949 | ||
b12915c1 VZ |
1950 | *-*-beos* ) |
1951 | USE_BEOS=1 | |
e6cc62c6 | 1952 | cat >>confdefs.h <<\_ACEOF |
b12915c1 | 1953 | #define __BEOS__ 1 |
e6cc62c6 | 1954 | _ACEOF |
b12915c1 VZ |
1955 | |
1956 | ;; | |
1957 | ||
10f2d63a | 1958 | *) |
e6cc62c6 VS |
1959 | { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5 |
1960 | echo "$as_me: error: unknown system type ${host}." >&2;} | |
1961 | { (exit 1); exit 1; }; } | |
10f2d63a VZ |
1962 | esac |
1963 | ||
8284b0c5 MB |
1964 | |
1965 | ||
1966 | ||
1967 | wx_arg_cache_file="configarg.cache" | |
1968 | echo "loading argument cache $wx_arg_cache_file" | |
10f2d63a VZ |
1969 | rm -f ${wx_arg_cache_file}.tmp |
1970 | touch ${wx_arg_cache_file}.tmp | |
1971 | touch ${wx_arg_cache_file} | |
e6cc62c6 | 1972 | |
10f2d63a VZ |
1973 | |
1974 | DEBUG_CONFIGURE=0 | |
1975 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 | 1976 | DEFAULT_wxUSE_UNIVERSAL=no |
df5168c4 | 1977 | DEFAULT_wxUSE_STL=no |
1e6feb95 | 1978 | |
d8356fa3 VZ |
1979 | DEFAULT_wxUSE_NANOX=no |
1980 | ||
10f2d63a VZ |
1981 | DEFAULT_wxUSE_THREADS=yes |
1982 | ||
1983 | DEFAULT_wxUSE_SHARED=yes | |
1e6feb95 | 1984 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
1985 | DEFAULT_wxUSE_PROFILE=no |
1986 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
1987 | DEFAULT_wxUSE_NO_RTTI=no |
1988 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
1989 | DEFAULT_wxUSE_PERMISSIVE=no |
1990 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1991 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1992 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1993 | DEFAULT_wxUSE_MEM_TRACING=no | |
1994 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1995 | DEFAULT_wxUSE_DMALLOC=no | |
1996 | DEFAULT_wxUSE_APPLE_IEEE=no | |
1997 | ||
e46d2a18 | 1998 | DEFAULT_wxUSE_EXCEPTIONS=no |
10f2d63a | 1999 | DEFAULT_wxUSE_LOG=yes |
1e6feb95 VZ |
2000 | DEFAULT_wxUSE_LOGWINDOW=no |
2001 | DEFAULT_wxUSE_LOGGUI=no | |
69d27ff7 | 2002 | DEFAULT_wxUSE_LOGDIALOG=no |
10f2d63a VZ |
2003 | |
2004 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 2005 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a | 2006 | |
3e44f09d | 2007 | DEFAULT_wxUSE_REGEX=no |
672abd7a VS |
2008 | DEFAULT_wxUSE_XML=no |
2009 | DEFAULT_wxUSE_EXPAT=no | |
10f2d63a VZ |
2010 | DEFAULT_wxUSE_ZLIB=no |
2011 | DEFAULT_wxUSE_LIBPNG=no | |
2012 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 2013 | DEFAULT_wxUSE_LIBTIFF=no |
89fe663f | 2014 | DEFAULT_wxUSE_LIBXPM=no |
f93ca9fd VS |
2015 | DEFAULT_wxUSE_LIBMSPACK=no |
2016 | DEFAULT_wxUSE_LIBSDL=no | |
10f2d63a | 2017 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 2018 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 2019 | |
eb4efbdc | 2020 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 2021 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 2022 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
2023 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
2024 | DEFAULT_wxUSE_DATETIME=no | |
1e6feb95 VZ |
2025 | DEFAULT_wxUSE_TIMER=no |
2026 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 2027 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 2028 | DEFAULT_wxUSE_FFILE=no |
a3a584a7 | 2029 | DEFAULT_wxUSE_TEXTBUFFER=no |
10f2d63a | 2030 | DEFAULT_wxUSE_TEXTFILE=no |
002ed9af | 2031 | DEFAULT_wxUSE_SOUND=no |
10f2d63a VZ |
2032 | DEFAULT_wxUSE_INTL=no |
2033 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 2034 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
2035 | DEFAULT_wxUSE_STREAMS=no |
2036 | DEFAULT_wxUSE_SOCKETS=no | |
3bce6687 JS |
2037 | DEFAULT_wxUSE_OLE=no |
2038 | DEFAULT_wxUSE_DATAOBJ=no | |
10f2d63a | 2039 | DEFAULT_wxUSE_DIALUP_MANAGER=no |
10f2d63a | 2040 | DEFAULT_wxUSE_JOYSTICK=no |
6bff71f8 | 2041 | DEFAULT_wxUSE_DYNLIB_CLASS=no |
0b9ab0bd | 2042 | DEFAULT_wxUSE_DYNAMIC_LOADER=no |
10f2d63a | 2043 | DEFAULT_wxUSE_LONGLONG=no |
e8f65ba6 | 2044 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
2045 | |
2046 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
2047 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
2048 | DEFAULT_wxUSE_POSTSCRIPT=no | |
2049 | ||
10f2d63a VZ |
2050 | DEFAULT_wxUSE_CLIPBOARD=no |
2051 | DEFAULT_wxUSE_TOOLTIPS=no | |
2052 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
24fd6d87 | 2053 | DEFAULT_wxUSE_DRAGIMAGE=no |
10f2d63a VZ |
2054 | DEFAULT_wxUSE_SPLINES=no |
2055 | ||
2056 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
2057 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
2058 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
2059 | ||
10f2d63a VZ |
2060 | DEFAULT_wxUSE_RESOURCES=no |
2061 | DEFAULT_wxUSE_CONSTRAINTS=no | |
2062 | DEFAULT_wxUSE_IPC=no | |
2063 | DEFAULT_wxUSE_HELP=no | |
29fd3c0c | 2064 | DEFAULT_wxUSE_MS_HTML_HELP=no |
3379ed37 | 2065 | DEFAULT_wxUSE_WXHTML_HELP=no |
24176f2c | 2066 | DEFAULT_wxUSE_TREELAYOUT=no |
10f2d63a | 2067 | DEFAULT_wxUSE_METAFILE=no |
1e6feb95 | 2068 | DEFAULT_wxUSE_MIMETYPE=no |
4cdb0ab0 VS |
2069 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no |
2070 | DEFAULT_wxUSE_PROTOCOL=no | |
2071 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
2072 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
2073 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
2074 | DEFAULT_wxUSE_URL=no | |
3bd8fb5f | 2075 | |
10f2d63a | 2076 | DEFAULT_wxUSE_COMMONDLGS=no |
1e6feb95 VZ |
2077 | DEFAULT_wxUSE_CHOICEDLG=no |
2078 | DEFAULT_wxUSE_COLOURDLG=no | |
10f2d63a | 2079 | DEFAULT_wxUSE_DIRDLG=no |
1e6feb95 | 2080 | DEFAULT_wxUSE_FILEDLG=no |
8db37e06 | 2081 | DEFAULT_wxUSE_FINDREPLDLG=no |
1e6feb95 VZ |
2082 | DEFAULT_wxUSE_FONTDLG=no |
2083 | DEFAULT_wxUSE_MSGDLG=no | |
2084 | DEFAULT_wxUSE_NUMBERDLG=no | |
10f2d63a | 2085 | DEFAULT_wxUSE_TEXTDLG=no |
cbca9943 | 2086 | DEFAULT_wxUSE_SPLASH=no |
10f2d63a VZ |
2087 | DEFAULT_wxUSE_STARTUP_TIPS=no |
2088 | DEFAULT_wxUSE_PROGRESSDLG=no | |
b1f5d087 VZ |
2089 | DEFAULT_wxUSE_WIZARDDLG=no |
2090 | ||
1e6feb95 | 2091 | DEFAULT_wxUSE_MENUS=no |
10f2d63a VZ |
2092 | DEFAULT_wxUSE_MINIFRAME=no |
2093 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 2094 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
2095 | DEFAULT_wxUSE_FS_INET=no |
2096 | DEFAULT_wxUSE_FS_ZIP=no | |
2097 | DEFAULT_wxUSE_BUSYINFO=no | |
2098 | DEFAULT_wxUSE_ZIPSTREAM=no | |
7015ef3a | 2099 | DEFAULT_wxUSE_GZSTREAM=no |
1e6feb95 | 2100 | DEFAULT_wxUSE_VALIDATORS=no |
10f2d63a VZ |
2101 | |
2102 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 | 2103 | DEFAULT_wxUSE_BUTTON=no |
10f2d63a | 2104 | DEFAULT_wxUSE_BMPBUTTON=no |
1e6feb95 VZ |
2105 | DEFAULT_wxUSE_CALCTRL=no |
2106 | DEFAULT_wxUSE_CARET=no | |
10f2d63a VZ |
2107 | DEFAULT_wxUSE_CHECKBOX=no |
2108 | DEFAULT_wxUSE_CHECKLST=no | |
1e6feb95 | 2109 | DEFAULT_wxUSE_CHOICE=no |
10f2d63a | 2110 | DEFAULT_wxUSE_COMBOBOX=no |
da494b40 | 2111 | DEFAULT_wxUSE_DISPLAY=no |
10f2d63a VZ |
2112 | DEFAULT_wxUSE_GAUGE=no |
2113 | DEFAULT_wxUSE_GRID=no | |
10f2d63a | 2114 | DEFAULT_wxUSE_IMAGLIST=no |
0e012a93 | 2115 | DEFAULT_wxUSE_LISTBOOK=no |
10f2d63a VZ |
2116 | DEFAULT_wxUSE_LISTBOX=no |
2117 | DEFAULT_wxUSE_LISTCTRL=no | |
2118 | DEFAULT_wxUSE_NOTEBOOK=no | |
2119 | DEFAULT_wxUSE_RADIOBOX=no | |
2120 | DEFAULT_wxUSE_RADIOBTN=no | |
2121 | DEFAULT_wxUSE_SASH=no | |
2122 | DEFAULT_wxUSE_SCROLLBAR=no | |
2123 | DEFAULT_wxUSE_SLIDER=no | |
2124 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 2125 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
2126 | DEFAULT_wxUSE_SPLITTER=no |
2127 | DEFAULT_wxUSE_STATBMP=no | |
2128 | DEFAULT_wxUSE_STATBOX=no | |
2129 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 2130 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
2131 | DEFAULT_wxUSE_STATUSBAR=yes |
2132 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 2133 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 2134 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 2135 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
2136 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
2137 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a | 2138 | DEFAULT_wxUSE_TREECTRL=no |
9f41d601 | 2139 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 2140 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
2141 | |
2142 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 2143 | DEFAULT_wxUSE_UNICODE_MSLU=no |
10f2d63a VZ |
2144 | DEFAULT_wxUSE_WCSRTOMBS=no |
2145 | ||
edae8572 | 2146 | DEFAULT_wxUSE_PALETTE=no |
0046ff7c | 2147 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
2148 | DEFAULT_wxUSE_GIF=no |
2149 | DEFAULT_wxUSE_PCX=no | |
2150 | DEFAULT_wxUSE_PNM=no | |
4b6b4dfc | 2151 | DEFAULT_wxUSE_IFF=no |
0046ff7c | 2152 | DEFAULT_wxUSE_XPM=no |
658974ae | 2153 | DEFAULT_wxUSE_ICO_CUR=no |
7bb2947d | 2154 | DEFAULT_wxUSE_ACCESSIBILITY=no |
9747f85d | 2155 | |
e9e0dc15 | 2156 | DEFAULT_wxUSE_MONOLITHIC=no |
f93ca9fd | 2157 | DEFAULT_wxUSE_PLUGINS=no |
029b47ad | 2158 | DEFAULT_wxUSE_OFFICIAL_BUILD=no |
10f2d63a | 2159 | else |
1e6feb95 | 2160 | DEFAULT_wxUSE_UNIVERSAL=no |
df5168c4 | 2161 | DEFAULT_wxUSE_STL=no |
1e6feb95 | 2162 | |
d8356fa3 VZ |
2163 | DEFAULT_wxUSE_NANOX=no |
2164 | ||
10f2d63a VZ |
2165 | DEFAULT_wxUSE_THREADS=yes |
2166 | ||
2167 | DEFAULT_wxUSE_SHARED=yes | |
2168 | DEFAULT_wxUSE_OPTIMISE=yes | |
2169 | DEFAULT_wxUSE_PROFILE=no | |
2170 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
2171 | DEFAULT_wxUSE_NO_RTTI=no |
2172 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
2173 | DEFAULT_wxUSE_PERMISSIVE=no |
2174 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2175 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2176 | DEFAULT_wxUSE_DEBUG_GDB=no | |
2177 | DEFAULT_wxUSE_MEM_TRACING=no | |
2178 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2179 | DEFAULT_wxUSE_DMALLOC=no | |
2180 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
2181 | ||
e46d2a18 | 2182 | DEFAULT_wxUSE_EXCEPTIONS=yes |
10f2d63a | 2183 | DEFAULT_wxUSE_LOG=yes |
d73be714 VZ |
2184 | DEFAULT_wxUSE_LOGWINDOW=yes |
2185 | DEFAULT_wxUSE_LOGGUI=yes | |
69d27ff7 | 2186 | DEFAULT_wxUSE_LOGDIALOG=yes |
10f2d63a VZ |
2187 | |
2188 | DEFAULT_wxUSE_GUI=yes | |
2189 | ||
aa2d9ecc | 2190 | DEFAULT_wxUSE_REGEX=yes |
672abd7a | 2191 | DEFAULT_wxUSE_XML=yes |
aa2d9ecc VZ |
2192 | DEFAULT_wxUSE_EXPAT=yes |
2193 | DEFAULT_wxUSE_ZLIB=yes | |
2194 | DEFAULT_wxUSE_LIBPNG=yes | |
2195 | DEFAULT_wxUSE_LIBJPEG=yes | |
2196 | DEFAULT_wxUSE_LIBTIFF=yes | |
2197 | DEFAULT_wxUSE_LIBXPM=yes | |
3527f29c | 2198 | DEFAULT_wxUSE_LIBMSPACK=yes |
f93ca9fd | 2199 | DEFAULT_wxUSE_LIBSDL=no |
16b52fa1 | 2200 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 2201 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 2202 | |
eb4efbdc | 2203 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 2204 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 2205 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
2206 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
2207 | DEFAULT_wxUSE_DATETIME=yes | |
1e6feb95 VZ |
2208 | DEFAULT_wxUSE_TIMER=yes |
2209 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 2210 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 2211 | DEFAULT_wxUSE_FFILE=yes |
a3a584a7 | 2212 | DEFAULT_wxUSE_TEXTBUFFER=yes |
10f2d63a | 2213 | DEFAULT_wxUSE_TEXTFILE=yes |
002ed9af | 2214 | DEFAULT_wxUSE_SOUND=yes |
10f2d63a VZ |
2215 | DEFAULT_wxUSE_INTL=yes |
2216 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 2217 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
2218 | DEFAULT_wxUSE_STREAMS=yes |
2219 | DEFAULT_wxUSE_SOCKETS=yes | |
3bce6687 JS |
2220 | DEFAULT_wxUSE_OLE=yes |
2221 | DEFAULT_wxUSE_DATAOBJ=yes | |
10f2d63a | 2222 | DEFAULT_wxUSE_DIALUP_MANAGER=yes |
10f2d63a | 2223 | DEFAULT_wxUSE_JOYSTICK=yes |
6bff71f8 | 2224 | DEFAULT_wxUSE_DYNLIB_CLASS=yes |
9337b578 | 2225 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes |
b685cd9b | 2226 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 2227 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
2228 | |
2229 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
2230 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
2231 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
2232 | ||
10f2d63a VZ |
2233 | DEFAULT_wxUSE_CLIPBOARD=yes |
2234 | DEFAULT_wxUSE_TOOLTIPS=yes | |
2235 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
24fd6d87 | 2236 | DEFAULT_wxUSE_DRAGIMAGE=yes |
10f2d63a VZ |
2237 | DEFAULT_wxUSE_SPLINES=yes |
2238 | ||
2239 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
2240 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
2241 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
2242 | ||
2b5f62a0 | 2243 | DEFAULT_wxUSE_RESOURCES=no |
10f2d63a VZ |
2244 | DEFAULT_wxUSE_CONSTRAINTS=yes |
2245 | DEFAULT_wxUSE_IPC=yes | |
2246 | DEFAULT_wxUSE_HELP=yes | |
29fd3c0c | 2247 | DEFAULT_wxUSE_MS_HTML_HELP=yes |
3379ed37 | 2248 | DEFAULT_wxUSE_WXHTML_HELP=yes |
24176f2c | 2249 | DEFAULT_wxUSE_TREELAYOUT=yes |
10f2d63a | 2250 | DEFAULT_wxUSE_METAFILE=yes |
1e6feb95 | 2251 | DEFAULT_wxUSE_MIMETYPE=yes |
3e44f09d | 2252 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
4cdb0ab0 VS |
2253 | DEFAULT_wxUSE_PROTOCOL=yes |
2254 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
2255 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
2256 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
2257 | DEFAULT_wxUSE_URL=yes | |
10f2d63a VZ |
2258 | |
2259 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
2260 | DEFAULT_wxUSE_CHOICEDLG=yes |
2261 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 2262 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 | 2263 | DEFAULT_wxUSE_FILEDLG=yes |
8db37e06 | 2264 | DEFAULT_wxUSE_FINDREPLDLG=yes |
1e6feb95 VZ |
2265 | DEFAULT_wxUSE_FONTDLG=yes |
2266 | DEFAULT_wxUSE_MSGDLG=yes | |
2267 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a | 2268 | DEFAULT_wxUSE_TEXTDLG=yes |
cbca9943 | 2269 | DEFAULT_wxUSE_SPLASH=yes |
10f2d63a VZ |
2270 | DEFAULT_wxUSE_STARTUP_TIPS=yes |
2271 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
f33f19dd VZ |
2272 | DEFAULT_wxUSE_WIZARDDLG=yes |
2273 | ||
1e6feb95 | 2274 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
2275 | DEFAULT_wxUSE_MINIFRAME=yes |
2276 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 2277 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
2278 | DEFAULT_wxUSE_FS_INET=yes |
2279 | DEFAULT_wxUSE_FS_ZIP=yes | |
2280 | DEFAULT_wxUSE_BUSYINFO=yes | |
2281 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
7015ef3a | 2282 | DEFAULT_wxUSE_GZSTREAM=yes |
10f2d63a VZ |
2283 | DEFAULT_wxUSE_VALIDATORS=yes |
2284 | ||
2285 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 2286 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 2287 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
2288 | DEFAULT_wxUSE_CALCTRL=yes |
2289 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
2290 | DEFAULT_wxUSE_CHECKBOX=yes |
2291 | DEFAULT_wxUSE_CHECKLST=yes | |
2292 | DEFAULT_wxUSE_CHOICE=yes | |
2293 | DEFAULT_wxUSE_COMBOBOX=yes | |
da494b40 | 2294 | DEFAULT_wxUSE_DISPLAY=no |
10f2d63a VZ |
2295 | DEFAULT_wxUSE_GAUGE=yes |
2296 | DEFAULT_wxUSE_GRID=yes | |
10f2d63a | 2297 | DEFAULT_wxUSE_IMAGLIST=yes |
0e012a93 | 2298 | DEFAULT_wxUSE_LISTBOOK=yes |
10f2d63a VZ |
2299 | DEFAULT_wxUSE_LISTBOX=yes |
2300 | DEFAULT_wxUSE_LISTCTRL=yes | |
2301 | DEFAULT_wxUSE_NOTEBOOK=yes | |
2302 | DEFAULT_wxUSE_RADIOBOX=yes | |
2303 | DEFAULT_wxUSE_RADIOBTN=yes | |
2304 | DEFAULT_wxUSE_SASH=yes | |
2305 | DEFAULT_wxUSE_SCROLLBAR=yes | |
2306 | DEFAULT_wxUSE_SLIDER=yes | |
2307 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 2308 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
2309 | DEFAULT_wxUSE_SPLITTER=yes |
2310 | DEFAULT_wxUSE_STATBMP=yes | |
2311 | DEFAULT_wxUSE_STATBOX=yes | |
2312 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 2313 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
2314 | DEFAULT_wxUSE_STATUSBAR=yes |
2315 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 2316 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 2317 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 2318 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
2319 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
2320 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a | 2321 | DEFAULT_wxUSE_TREECTRL=yes |
9f41d601 | 2322 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 2323 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
2324 | |
2325 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 2326 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
10f2d63a VZ |
2327 | DEFAULT_wxUSE_WCSRTOMBS=no |
2328 | ||
edae8572 | 2329 | DEFAULT_wxUSE_PALETTE=yes |
0046ff7c | 2330 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
2331 | DEFAULT_wxUSE_GIF=yes |
2332 | DEFAULT_wxUSE_PCX=yes | |
cc0e8480 | 2333 | DEFAULT_wxUSE_IFF=no |
10f2d63a | 2334 | DEFAULT_wxUSE_PNM=yes |
0046ff7c | 2335 | DEFAULT_wxUSE_XPM=yes |
658974ae | 2336 | DEFAULT_wxUSE_ICO_CUR=yes |
7bb2947d | 2337 | DEFAULT_wxUSE_ACCESSIBILITY=no |
9747f85d | 2338 | |
e9e0dc15 | 2339 | DEFAULT_wxUSE_MONOLITHIC=no |
f93ca9fd | 2340 | DEFAULT_wxUSE_PLUGINS=no |
029b47ad | 2341 | DEFAULT_wxUSE_OFFICIAL_BUILD=no |
10f2d63a VZ |
2342 | fi |
2343 | ||
8284b0c5 MB |
2344 | |
2345 | ||
10f2d63a | 2346 | for toolkit in `echo $ALL_TOOLKITS`; do |
d74f4b5a VZ |
2347 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` |
2348 | if test "x$LINE" != "x" ; then | |
10f2d63a VZ |
2349 | has_toolkit_in_cache=1 |
2350 | eval "DEFAULT_$LINE" | |
2351 | eval "CACHE_$toolkit=1" | |
2352 | fi | |
2353 | done | |
2354 | ||
8284b0c5 MB |
2355 | |
2356 | ||
5005acfe | 2357 | enablestring= |
e6cc62c6 VS |
2358 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5 |
2359 | echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6 | |
10f2d63a VZ |
2360 | no_cache=0 |
2361 | # Check whether --enable-gui or --disable-gui was given. | |
2362 | if test "${enable_gui+set}" = set; then | |
2363 | enableval="$enable_gui" | |
e6cc62c6 | 2364 | |
10f2d63a VZ |
2365 | if test "$enableval" = yes; then |
2366 | ac_cv_use_gui='wxUSE_GUI=yes' | |
2367 | else | |
2368 | ac_cv_use_gui='wxUSE_GUI=no' | |
2369 | fi | |
e6cc62c6 | 2370 | |
10f2d63a | 2371 | else |
e6cc62c6 | 2372 | |
10f2d63a VZ |
2373 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
2374 | if test "x$LINE" != x ; then | |
2375 | eval "DEFAULT_$LINE" | |
2376 | else | |
2377 | no_cache=1 | |
2378 | fi | |
2379 | ||
2380 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
10f2d63a | 2381 | |
e6cc62c6 | 2382 | fi; |
10f2d63a VZ |
2383 | |
2384 | eval "$ac_cv_use_gui" | |
2385 | if test "$no_cache" != 1; then | |
2386 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
2387 | fi | |
2388 | ||
2389 | if test "$wxUSE_GUI" = yes; then | |
e6cc62c6 VS |
2390 | echo "$as_me:$LINENO: result: yes" >&5 |
2391 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 2392 | else |
e6cc62c6 VS |
2393 | echo "$as_me:$LINENO: result: no" >&5 |
2394 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 2395 | fi |
e6cc62c6 | 2396 | |
10f2d63a | 2397 | |
9747f85d VS |
2398 | enablestring= |
2399 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5 | |
2400 | echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6 | |
2401 | no_cache=0 | |
2402 | # Check whether --enable-monolithic or --disable-monolithic was given. | |
2403 | if test "${enable_monolithic+set}" = set; then | |
2404 | enableval="$enable_monolithic" | |
2405 | ||
2406 | if test "$enableval" = yes; then | |
2407 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes' | |
2408 | else | |
2409 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=no' | |
2410 | fi | |
2411 | ||
2412 | else | |
2413 | ||
2414 | LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}` | |
2415 | if test "x$LINE" != x ; then | |
2416 | eval "DEFAULT_$LINE" | |
2417 | else | |
2418 | no_cache=1 | |
2419 | fi | |
2420 | ||
2421 | ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC | |
2422 | ||
2423 | fi; | |
2424 | ||
2425 | eval "$ac_cv_use_monolithic" | |
2426 | if test "$no_cache" != 1; then | |
2427 | echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp | |
2428 | fi | |
2429 | ||
2430 | if test "$wxUSE_MONOLITHIC" = yes; then | |
2431 | echo "$as_me:$LINENO: result: yes" >&5 | |
2432 | echo "${ECHO_T}yes" >&6 | |
2433 | else | |
2434 | echo "$as_me:$LINENO: result: no" >&5 | |
2435 | echo "${ECHO_T}no" >&6 | |
2436 | fi | |
2437 | ||
2438 | ||
f93ca9fd VS |
2439 | enablestring= |
2440 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5 | |
2441 | echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6 | |
2442 | no_cache=0 | |
2443 | # Check whether --enable-plugins or --disable-plugins was given. | |
2444 | if test "${enable_plugins+set}" = set; then | |
2445 | enableval="$enable_plugins" | |
2446 | ||
2447 | if test "$enableval" = yes; then | |
2448 | ac_cv_use_plugins='wxUSE_PLUGINS=yes' | |
2449 | else | |
2450 | ac_cv_use_plugins='wxUSE_PLUGINS=no' | |
2451 | fi | |
2452 | ||
2453 | else | |
2454 | ||
2455 | LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}` | |
2456 | if test "x$LINE" != x ; then | |
2457 | eval "DEFAULT_$LINE" | |
2458 | else | |
2459 | no_cache=1 | |
2460 | fi | |
2461 | ||
2462 | ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS | |
2463 | ||
2464 | fi; | |
2465 | ||
2466 | eval "$ac_cv_use_plugins" | |
2467 | if test "$no_cache" != 1; then | |
2468 | echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp | |
2469 | fi | |
2470 | ||
2471 | if test "$wxUSE_PLUGINS" = yes; then | |
2472 | echo "$as_me:$LINENO: result: yes" >&5 | |
2473 | echo "${ECHO_T}yes" >&6 | |
2474 | else | |
2475 | echo "$as_me:$LINENO: result: no" >&5 | |
2476 | echo "${ECHO_T}no" >&6 | |
2477 | fi | |
2478 | ||
2479 | ||
b12915c1 | 2480 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 2481 | |
8284b0c5 | 2482 | |
5005acfe | 2483 | enablestring= |
e6cc62c6 VS |
2484 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5 |
2485 | echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6 | |
1e6feb95 VZ |
2486 | no_cache=0 |
2487 | # Check whether --enable-universal or --disable-universal was given. | |
2488 | if test "${enable_universal+set}" = set; then | |
2489 | enableval="$enable_universal" | |
e6cc62c6 | 2490 | |
1e6feb95 VZ |
2491 | if test "$enableval" = yes; then |
2492 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
2493 | else | |
2494 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
2495 | fi | |
e6cc62c6 | 2496 | |
1e6feb95 | 2497 | else |
e6cc62c6 | 2498 | |
1e6feb95 VZ |
2499 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` |
2500 | if test "x$LINE" != x ; then | |
2501 | eval "DEFAULT_$LINE" | |
2502 | else | |
2503 | no_cache=1 | |
2504 | fi | |
2505 | ||
2506 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
1e6feb95 | 2507 | |
e6cc62c6 | 2508 | fi; |
1e6feb95 VZ |
2509 | |
2510 | eval "$ac_cv_use_universal" | |
2511 | if test "$no_cache" != 1; then | |
2512 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
2513 | fi | |
2514 | ||
2515 | if test "$wxUSE_UNIVERSAL" = yes; then | |
e6cc62c6 VS |
2516 | echo "$as_me:$LINENO: result: yes" >&5 |
2517 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 2518 | else |
e6cc62c6 VS |
2519 | echo "$as_me:$LINENO: result: no" >&5 |
2520 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 2521 | fi |
e6cc62c6 VS |
2522 | |
2523 | ||
10f2d63a VZ |
2524 | # Check whether --with-gtk or --without-gtk was given. |
2525 | if test "${with_gtk+set}" = set; then | |
2526 | withval="$with_gtk" | |
2527 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2528 | fi; |
10f2d63a VZ |
2529 | |
2530 | # Check whether --with-motif or --without-motif was given. | |
2531 | if test "${with_motif+set}" = set; then | |
2532 | withval="$with_motif" | |
2533 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2534 | fi; |
10f2d63a | 2535 | |
b4085ce6 GD |
2536 | # Check whether --with-mac or --without-mac was given. |
2537 | if test "${with_mac+set}" = set; then | |
2538 | withval="$with_mac" | |
2539 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2540 | fi; |
b4085ce6 | 2541 | |
ac0c4cc3 DE |
2542 | # Check whether --with-cocoa or --without-cocoa was given. |
2543 | if test "${with_cocoa+set}" = set; then | |
2544 | withval="$with_cocoa" | |
2545 | wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2546 | fi; |
ac0c4cc3 | 2547 | |
10f2d63a VZ |
2548 | # Check whether --with-wine or --without-wine was given. |
2549 | if test "${with_wine+set}" = set; then | |
2550 | withval="$with_wine" | |
89e6bf6d | 2551 | wxUSE_WINE="$withval" CACHE_WINE=1 |
e6cc62c6 | 2552 | fi; |
10f2d63a | 2553 | |
77e13408 RL |
2554 | # Check whether --with-msw or --without-msw was given. |
2555 | if test "${with_msw+set}" = set; then | |
2556 | withval="$with_msw" | |
b4efce5e | 2557 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 |
e6cc62c6 | 2558 | fi; |
10f2d63a | 2559 | |
e07802fc VZ |
2560 | # Check whether --with-pm or --without-pm was given. |
2561 | if test "${with_pm+set}" = set; then | |
2562 | withval="$with_pm" | |
2563 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2564 | fi; |
698dcdb6 | 2565 | |
1e6feb95 VZ |
2566 | # Check whether --with-mgl or --without-mgl was given. |
2567 | if test "${with_mgl+set}" = set; then | |
2568 | withval="$with_mgl" | |
6c657b52 | 2569 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 |
e6cc62c6 | 2570 | fi; |
1e6feb95 | 2571 | |
1725144d RR |
2572 | # Check whether --with-microwin or --without-microwin was given. |
2573 | if test "${with_microwin+set}" = set; then | |
2574 | withval="$with_microwin" | |
2575 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2576 | fi; |
1725144d | 2577 | |
f79bd02d JS |
2578 | # Check whether --with-x11 or --without-x11 was given. |
2579 | if test "${with_x11+set}" = set; then | |
2580 | withval="$with_x11" | |
3c011993 | 2581 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 |
e6cc62c6 | 2582 | fi; |
a0b9e27f | 2583 | |
5005acfe | 2584 | enablestring= |
e6cc62c6 VS |
2585 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5 |
2586 | echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6 | |
d8356fa3 | 2587 | no_cache=0 |
ba875e66 VZ |
2588 | # Check whether --enable-nanox or --disable-nanox was given. |
2589 | if test "${enable_nanox+set}" = set; then | |
2590 | enableval="$enable_nanox" | |
e6cc62c6 | 2591 | |
d8356fa3 | 2592 | if test "$enableval" = yes; then |
ba875e66 | 2593 | ac_cv_use_nanox='wxUSE_NANOX=yes' |
d8356fa3 | 2594 | else |
ba875e66 | 2595 | ac_cv_use_nanox='wxUSE_NANOX=no' |
d8356fa3 | 2596 | fi |
e6cc62c6 | 2597 | |
d8356fa3 | 2598 | else |
e6cc62c6 | 2599 | |
d8356fa3 VZ |
2600 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` |
2601 | if test "x$LINE" != x ; then | |
2602 | eval "DEFAULT_$LINE" | |
2603 | else | |
2604 | no_cache=1 | |
2605 | fi | |
2606 | ||
ba875e66 | 2607 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX |
d8356fa3 | 2608 | |
e6cc62c6 | 2609 | fi; |
d8356fa3 | 2610 | |
ba875e66 | 2611 | eval "$ac_cv_use_nanox" |
d8356fa3 | 2612 | if test "$no_cache" != 1; then |
ba875e66 | 2613 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp |
d8356fa3 VZ |
2614 | fi |
2615 | ||
2616 | if test "$wxUSE_NANOX" = yes; then | |
e6cc62c6 VS |
2617 | echo "$as_me:$LINENO: result: yes" >&5 |
2618 | echo "${ECHO_T}yes" >&6 | |
d8356fa3 | 2619 | else |
e6cc62c6 VS |
2620 | echo "$as_me:$LINENO: result: no" >&5 |
2621 | echo "${ECHO_T}no" >&6 | |
d8356fa3 | 2622 | fi |
e6cc62c6 | 2623 | |
8284b0c5 | 2624 | |
d74f4b5a | 2625 | |
5005acfe | 2626 | enablestring= |
e6cc62c6 VS |
2627 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5 |
2628 | echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6 | |
d74f4b5a VZ |
2629 | no_cache=0 |
2630 | # Check whether --enable-gtk2 or --disable-gtk2 was given. | |
8168de4c VZ |
2631 | if test "${enable_gtk2+set}" = set; then |
2632 | enableval="$enable_gtk2" | |
e6cc62c6 | 2633 | |
d74f4b5a VZ |
2634 | if test "$enableval" = yes; then |
2635 | ac_cv_use_gtk2='wxUSE_GTK2=yes' | |
2636 | else | |
2637 | ac_cv_use_gtk2='wxUSE_GTK2=no' | |
2638 | fi | |
e6cc62c6 | 2639 | |
10f2d63a | 2640 | else |
e6cc62c6 | 2641 | |
d74f4b5a VZ |
2642 | LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}` |
2643 | if test "x$LINE" != x ; then | |
2644 | eval "DEFAULT_$LINE" | |
2645 | else | |
2646 | no_cache=1 | |
2647 | fi | |
2648 | ||
2649 | ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2 | |
52127426 | 2650 | |
e6cc62c6 | 2651 | fi; |
328a083c | 2652 | |
d74f4b5a VZ |
2653 | eval "$ac_cv_use_gtk2" |
2654 | if test "$no_cache" != 1; then | |
2655 | echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp | |
2656 | fi | |
2657 | ||
2658 | if test "$wxUSE_GTK2" = yes; then | |
e6cc62c6 VS |
2659 | echo "$as_me:$LINENO: result: yes" >&5 |
2660 | echo "${ECHO_T}yes" >&6 | |
d74f4b5a | 2661 | else |
e6cc62c6 VS |
2662 | echo "$as_me:$LINENO: result: no" >&5 |
2663 | echo "${ECHO_T}no" >&6 | |
d74f4b5a | 2664 | fi |
d74f4b5a | 2665 | |
5c6fa7d2 | 2666 | |
e6cc62c6 VS |
2667 | |
2668 | echo "$as_me:$LINENO: checking for --with-libpng" >&5 | |
2669 | echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6 | |
8284b0c5 | 2670 | no_cache=0 |
e6cc62c6 VS |
2671 | |
2672 | # Check whether --with-libpng or --without-libpng was given. | |
b12915c1 VZ |
2673 | if test "${with_libpng+set}" = set; then |
2674 | withval="$with_libpng" | |
e6cc62c6 | 2675 | |
10f2d63a | 2676 | if test "$withval" = yes; then |
b12915c1 | 2677 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 2678 | elif test "$withval" = no; then |
b12915c1 | 2679 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
2680 | elif test "$withval" = sys; then |
2681 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
4f14bcd8 GD |
2682 | elif test "$withval" = builtin; then |
2683 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
422107f9 | 2684 | else |
e6cc62c6 VS |
2685 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 |
2686 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2687 | { (exit 1); exit 1; }; } | |
10f2d63a | 2688 | fi |
e6cc62c6 | 2689 | |
10f2d63a | 2690 | else |
e6cc62c6 | 2691 | |
b12915c1 | 2692 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2693 | if test "x$LINE" != x ; then |
2694 | eval "DEFAULT_$LINE" | |
2695 | else | |
2696 | no_cache=1 | |
2697 | fi | |
2698 | ||
b12915c1 | 2699 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
10f2d63a | 2700 | |
e6cc62c6 | 2701 | fi; |
10f2d63a | 2702 | |
b12915c1 | 2703 | eval "$ac_cv_use_libpng" |
10f2d63a | 2704 | if test "$no_cache" != 1; then |
b12915c1 | 2705 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2706 | fi |
2707 | ||
b12915c1 | 2708 | if test "$wxUSE_LIBPNG" = yes; then |
e6cc62c6 VS |
2709 | echo "$as_me:$LINENO: result: yes" >&5 |
2710 | echo "${ECHO_T}yes" >&6 | |
422107f9 | 2711 | elif test "$wxUSE_LIBPNG" = no; then |
e6cc62c6 VS |
2712 | echo "$as_me:$LINENO: result: no" >&5 |
2713 | echo "${ECHO_T}no" >&6 | |
422107f9 | 2714 | elif test "$wxUSE_LIBPNG" = sys; then |
e6cc62c6 VS |
2715 | echo "$as_me:$LINENO: result: system version" >&5 |
2716 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 2717 | elif test "$wxUSE_LIBPNG" = builtin; then |
e6cc62c6 VS |
2718 | echo "$as_me:$LINENO: result: builtin version" >&5 |
2719 | echo "${ECHO_T}builtin version" >&6 | |
422107f9 | 2720 | else |
e6cc62c6 VS |
2721 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 |
2722 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2723 | { (exit 1); exit 1; }; } | |
10f2d63a | 2724 | fi |
10f2d63a | 2725 | |
e6cc62c6 VS |
2726 | |
2727 | echo "$as_me:$LINENO: checking for --with-libjpeg" >&5 | |
2728 | echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6 | |
10f2d63a | 2729 | no_cache=0 |
e6cc62c6 VS |
2730 | |
2731 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
b12915c1 VZ |
2732 | if test "${with_libjpeg+set}" = set; then |
2733 | withval="$with_libjpeg" | |
e6cc62c6 | 2734 | |
10f2d63a | 2735 | if test "$withval" = yes; then |
b12915c1 | 2736 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 2737 | elif test "$withval" = no; then |
b12915c1 | 2738 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
2739 | elif test "$withval" = sys; then |
2740 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
4f14bcd8 GD |
2741 | elif test "$withval" = builtin; then |
2742 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
422107f9 | 2743 | else |
e6cc62c6 VS |
2744 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 |
2745 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2746 | { (exit 1); exit 1; }; } | |
10f2d63a | 2747 | fi |
e6cc62c6 | 2748 | |
10f2d63a | 2749 | else |
e6cc62c6 | 2750 | |
b12915c1 | 2751 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2752 | if test "x$LINE" != x ; then |
2753 | eval "DEFAULT_$LINE" | |
2754 | else | |
2755 | no_cache=1 | |
2756 | fi | |
2757 | ||
b12915c1 | 2758 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
10f2d63a | 2759 | |
e6cc62c6 | 2760 | fi; |
10f2d63a | 2761 | |
b12915c1 | 2762 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 2763 | if test "$no_cache" != 1; then |
b12915c1 | 2764 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2765 | fi |
2766 | ||
b12915c1 | 2767 | if test "$wxUSE_LIBJPEG" = yes; then |
e6cc62c6 VS |
2768 | echo "$as_me:$LINENO: result: yes" >&5 |
2769 | echo "${ECHO_T}yes" >&6 | |
422107f9 | 2770 | elif test "$wxUSE_LIBJPEG" = no; then |
e6cc62c6 VS |
2771 | echo "$as_me:$LINENO: result: no" >&5 |
2772 | echo "${ECHO_T}no" >&6 | |
422107f9 | 2773 | elif test "$wxUSE_LIBJPEG" = sys; then |
e6cc62c6 VS |
2774 | echo "$as_me:$LINENO: result: system version" >&5 |
2775 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 2776 | elif test "$wxUSE_LIBJPEG" = builtin; then |
e6cc62c6 VS |
2777 | echo "$as_me:$LINENO: result: builtin version" >&5 |
2778 | echo "${ECHO_T}builtin version" >&6 | |
422107f9 | 2779 | else |
e6cc62c6 VS |
2780 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 |
2781 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2782 | { (exit 1); exit 1; }; } | |
10f2d63a | 2783 | fi |
10f2d63a | 2784 | |
e6cc62c6 VS |
2785 | |
2786 | echo "$as_me:$LINENO: checking for --with-libtiff" >&5 | |
2787 | echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6 | |
10f2d63a | 2788 | no_cache=0 |
e6cc62c6 VS |
2789 | |
2790 | # Check whether --with-libtiff or --without-libtiff was given. | |
b12915c1 VZ |
2791 | if test "${with_libtiff+set}" = set; then |
2792 | withval="$with_libtiff" | |
e6cc62c6 | 2793 | |
10f2d63a | 2794 | if test "$withval" = yes; then |
b12915c1 | 2795 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 2796 | elif test "$withval" = no; then |
b12915c1 | 2797 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
2798 | elif test "$withval" = sys; then |
2799 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
4f14bcd8 GD |
2800 | elif test "$withval" = builtin; then |
2801 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
0dcf9893 | 2802 | else |
e6cc62c6 VS |
2803 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 |
2804 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2805 | { (exit 1); exit 1; }; } | |
10f2d63a | 2806 | fi |
e6cc62c6 | 2807 | |
10f2d63a | 2808 | else |
e6cc62c6 | 2809 | |
b12915c1 | 2810 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
2811 | if test "x$LINE" != x ; then |
2812 | eval "DEFAULT_$LINE" | |
2813 | else | |
2814 | no_cache=1 | |
2815 | fi | |
2816 | ||
b12915c1 | 2817 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
10f2d63a | 2818 | |
e6cc62c6 | 2819 | fi; |
10f2d63a | 2820 | |
b12915c1 | 2821 | eval "$ac_cv_use_libtiff" |
10f2d63a | 2822 | if test "$no_cache" != 1; then |
b12915c1 | 2823 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2824 | fi |
2825 | ||
b12915c1 | 2826 | if test "$wxUSE_LIBTIFF" = yes; then |
e6cc62c6 VS |
2827 | echo "$as_me:$LINENO: result: yes" >&5 |
2828 | echo "${ECHO_T}yes" >&6 | |
0dcf9893 | 2829 | elif test "$wxUSE_LIBTIFF" = no; then |
e6cc62c6 VS |
2830 | echo "$as_me:$LINENO: result: no" >&5 |
2831 | echo "${ECHO_T}no" >&6 | |
0dcf9893 | 2832 | elif test "$wxUSE_LIBTIFF" = sys; then |
e6cc62c6 VS |
2833 | echo "$as_me:$LINENO: result: system version" >&5 |
2834 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 2835 | elif test "$wxUSE_LIBTIFF" = builtin; then |
e6cc62c6 VS |
2836 | echo "$as_me:$LINENO: result: builtin version" >&5 |
2837 | echo "${ECHO_T}builtin version" >&6 | |
0dcf9893 | 2838 | else |
e6cc62c6 VS |
2839 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 |
2840 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2841 | { (exit 1); exit 1; }; } | |
10f2d63a | 2842 | fi |
10f2d63a | 2843 | |
e6cc62c6 | 2844 | |
89fe663f VZ |
2845 | echo "$as_me:$LINENO: checking for --with-libxpm" >&5 |
2846 | echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6 | |
2847 | no_cache=0 | |
2848 | ||
2849 | # Check whether --with-libxpm or --without-libxpm was given. | |
2850 | if test "${with_libxpm+set}" = set; then | |
2851 | withval="$with_libxpm" | |
2852 | ||
2853 | if test "$withval" = yes; then | |
2854 | ac_cv_use_libxpm='wxUSE_LIBXPM=yes' | |
2855 | elif test "$withval" = no; then | |
2856 | ac_cv_use_libxpm='wxUSE_LIBXPM=no' | |
2857 | elif test "$withval" = sys; then | |
2858 | ac_cv_use_libxpm='wxUSE_LIBXPM=sys' | |
2859 | elif test "$withval" = builtin; then | |
2860 | ac_cv_use_libxpm='wxUSE_LIBXPM=builtin' | |
2861 | else | |
2862 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
2863 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
2864 | { (exit 1); exit 1; }; } | |
2865 | fi | |
2866 | ||
2867 | else | |
2868 | ||
2869 | LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}` | |
2870 | if test "x$LINE" != x ; then | |
2871 | eval "DEFAULT_$LINE" | |
2872 | else | |
2873 | no_cache=1 | |
2874 | fi | |
2875 | ||
2876 | ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM | |
2877 | ||
2878 | fi; | |
2879 | ||
2880 | eval "$ac_cv_use_libxpm" | |
2881 | if test "$no_cache" != 1; then | |
2882 | echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp | |
2883 | fi | |
2884 | ||
2885 | if test "$wxUSE_LIBXPM" = yes; then | |
2886 | echo "$as_me:$LINENO: result: yes" >&5 | |
2887 | echo "${ECHO_T}yes" >&6 | |
2888 | elif test "$wxUSE_LIBXPM" = no; then | |
2889 | echo "$as_me:$LINENO: result: no" >&5 | |
2890 | echo "${ECHO_T}no" >&6 | |
2891 | elif test "$wxUSE_LIBXPM" = sys; then | |
2892 | echo "$as_me:$LINENO: result: system version" >&5 | |
2893 | echo "${ECHO_T}system version" >&6 | |
2894 | elif test "$wxUSE_LIBXPM" = builtin; then | |
2895 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2896 | echo "${ECHO_T}builtin version" >&6 | |
2897 | else | |
2898 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
2899 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
2900 | { (exit 1); exit 1; }; } | |
2901 | fi | |
2902 | ||
2903 | ||
3527f29c VS |
2904 | echo "$as_me:$LINENO: checking for --with-libmspack" >&5 |
2905 | echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6 | |
2906 | no_cache=0 | |
2907 | ||
2908 | # Check whether --with-libmspack or --without-libmspack was given. | |
2909 | if test "${with_libmspack+set}" = set; then | |
2910 | withval="$with_libmspack" | |
2911 | ||
2912 | if test "$withval" = yes; then | |
2913 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes' | |
2914 | else | |
2915 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=no' | |
2916 | fi | |
2917 | ||
2918 | else | |
2919 | ||
2920 | LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}` | |
2921 | if test "x$LINE" != x ; then | |
2922 | eval "DEFAULT_$LINE" | |
2923 | else | |
2924 | no_cache=1 | |
2925 | fi | |
2926 | ||
2927 | ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK | |
2928 | ||
2929 | fi; | |
2930 | ||
2931 | eval "$ac_cv_use_libmspack" | |
2932 | if test "$no_cache" != 1; then | |
2933 | echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp | |
2934 | fi | |
2935 | ||
2936 | if test "$wxUSE_LIBMSPACK" = yes; then | |
2937 | echo "$as_me:$LINENO: result: yes" >&5 | |
2938 | echo "${ECHO_T}yes" >&6 | |
2939 | else | |
2940 | echo "$as_me:$LINENO: result: no" >&5 | |
2941 | echo "${ECHO_T}no" >&6 | |
2942 | fi | |
2943 | ||
2944 | ||
f93ca9fd VS |
2945 | echo "$as_me:$LINENO: checking for --with-sdl" >&5 |
2946 | echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6 | |
2947 | no_cache=0 | |
2948 | ||
2949 | # Check whether --with-sdl or --without-sdl was given. | |
2950 | if test "${with_sdl+set}" = set; then | |
2951 | withval="$with_sdl" | |
2952 | ||
2953 | if test "$withval" = yes; then | |
2954 | ac_cv_use_sdl='wxUSE_LIBSDL=yes' | |
2955 | else | |
2956 | ac_cv_use_sdl='wxUSE_LIBSDL=no' | |
2957 | fi | |
2958 | ||
2959 | else | |
2960 | ||
2961 | LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}` | |
2962 | if test "x$LINE" != x ; then | |
2963 | eval "DEFAULT_$LINE" | |
2964 | else | |
2965 | no_cache=1 | |
2966 | fi | |
2967 | ||
2968 | ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL | |
2969 | ||
2970 | fi; | |
2971 | ||
2972 | eval "$ac_cv_use_sdl" | |
2973 | if test "$no_cache" != 1; then | |
2974 | echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp | |
2975 | fi | |
2976 | ||
2977 | if test "$wxUSE_LIBSDL" = yes; then | |
2978 | echo "$as_me:$LINENO: result: yes" >&5 | |
2979 | echo "${ECHO_T}yes" >&6 | |
2980 | else | |
2981 | echo "$as_me:$LINENO: result: no" >&5 | |
2982 | echo "${ECHO_T}no" >&6 | |
2983 | fi | |
2984 | ||
2985 | ||
e6cc62c6 VS |
2986 | echo "$as_me:$LINENO: checking for --with-opengl" >&5 |
2987 | echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6 | |
10f2d63a | 2988 | no_cache=0 |
e6cc62c6 VS |
2989 | |
2990 | # Check whether --with-opengl or --without-opengl was given. | |
b12915c1 VZ |
2991 | if test "${with_opengl+set}" = set; then |
2992 | withval="$with_opengl" | |
e6cc62c6 | 2993 | |
10f2d63a | 2994 | if test "$withval" = yes; then |
b12915c1 | 2995 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 2996 | else |
b12915c1 | 2997 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 2998 | fi |
e6cc62c6 | 2999 | |
10f2d63a | 3000 | else |
e6cc62c6 | 3001 | |
b12915c1 | 3002 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
3003 | if test "x$LINE" != x ; then |
3004 | eval "DEFAULT_$LINE" | |
3005 | else | |
3006 | no_cache=1 | |
3007 | fi | |
3008 | ||
b12915c1 | 3009 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
10f2d63a | 3010 | |
e6cc62c6 | 3011 | fi; |
10f2d63a | 3012 | |
b12915c1 | 3013 | eval "$ac_cv_use_opengl" |
10f2d63a | 3014 | if test "$no_cache" != 1; then |
b12915c1 | 3015 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3016 | fi |
3017 | ||
b12915c1 | 3018 | if test "$wxUSE_OPENGL" = yes; then |
e6cc62c6 VS |
3019 | echo "$as_me:$LINENO: result: yes" >&5 |
3020 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3021 | else |
e6cc62c6 VS |
3022 | echo "$as_me:$LINENO: result: no" >&5 |
3023 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3024 | fi |
e6cc62c6 | 3025 | |
10f2d63a | 3026 | |
b12915c1 VZ |
3027 | fi |
3028 | ||
5c6fa7d2 | 3029 | |
e6cc62c6 VS |
3030 | echo "$as_me:$LINENO: checking for --with-dmalloc" >&5 |
3031 | echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6 | |
8284b0c5 | 3032 | no_cache=0 |
e6cc62c6 VS |
3033 | |
3034 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
b12915c1 VZ |
3035 | if test "${with_dmalloc+set}" = set; then |
3036 | withval="$with_dmalloc" | |
e6cc62c6 | 3037 | |
c7a2bf27 | 3038 | if test "$withval" = yes; then |
b12915c1 | 3039 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 3040 | else |
b12915c1 | 3041 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 3042 | fi |
e6cc62c6 | 3043 | |
c7a2bf27 | 3044 | else |
e6cc62c6 | 3045 | |
b12915c1 | 3046 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
3047 | if test "x$LINE" != x ; then |
3048 | eval "DEFAULT_$LINE" | |
3049 | else | |
3050 | no_cache=1 | |
3051 | fi | |
3052 | ||
b12915c1 | 3053 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
c7a2bf27 | 3054 | |
e6cc62c6 | 3055 | fi; |
c7a2bf27 | 3056 | |
b12915c1 | 3057 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 3058 | if test "$no_cache" != 1; then |
b12915c1 | 3059 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
3060 | fi |
3061 | ||
b12915c1 | 3062 | if test "$wxUSE_DMALLOC" = yes; then |
e6cc62c6 VS |
3063 | echo "$as_me:$LINENO: result: yes" >&5 |
3064 | echo "${ECHO_T}yes" >&6 | |
c7a2bf27 | 3065 | else |
e6cc62c6 VS |
3066 | echo "$as_me:$LINENO: result: no" >&5 |
3067 | echo "${ECHO_T}no" >&6 | |
c7a2bf27 | 3068 | fi |
c7a2bf27 | 3069 | |
e6cc62c6 VS |
3070 | |
3071 | echo "$as_me:$LINENO: checking for --with-regex" >&5 | |
3072 | echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6 | |
3e44f09d | 3073 | no_cache=0 |
e6cc62c6 VS |
3074 | |
3075 | # Check whether --with-regex or --without-regex was given. | |
3e44f09d VZ |
3076 | if test "${with_regex+set}" = set; then |
3077 | withval="$with_regex" | |
e6cc62c6 | 3078 | |
3e44f09d VZ |
3079 | if test "$withval" = yes; then |
3080 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
3081 | elif test "$withval" = no; then | |
3082 | ac_cv_use_regex='wxUSE_REGEX=no' | |
3083 | elif test "$withval" = sys; then | |
3084 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
4f14bcd8 GD |
3085 | elif test "$withval" = builtin; then |
3086 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3e44f09d | 3087 | else |
e6cc62c6 VS |
3088 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 |
3089 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3090 | { (exit 1); exit 1; }; } | |
3e44f09d | 3091 | fi |
e6cc62c6 | 3092 | |
3e44f09d | 3093 | else |
e6cc62c6 | 3094 | |
3e44f09d VZ |
3095 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` |
3096 | if test "x$LINE" != x ; then | |
3097 | eval "DEFAULT_$LINE" | |
3098 | else | |
3099 | no_cache=1 | |
3100 | fi | |
3101 | ||
3102 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
3e44f09d | 3103 | |
e6cc62c6 | 3104 | fi; |
3e44f09d VZ |
3105 | |
3106 | eval "$ac_cv_use_regex" | |
3107 | if test "$no_cache" != 1; then | |
3108 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
3109 | fi | |
3110 | ||
3111 | if test "$wxUSE_REGEX" = yes; then | |
e6cc62c6 VS |
3112 | echo "$as_me:$LINENO: result: yes" >&5 |
3113 | echo "${ECHO_T}yes" >&6 | |
3e44f09d | 3114 | elif test "$wxUSE_REGEX" = no; then |
e6cc62c6 VS |
3115 | echo "$as_me:$LINENO: result: no" >&5 |
3116 | echo "${ECHO_T}no" >&6 | |
3e44f09d | 3117 | elif test "$wxUSE_REGEX" = sys; then |
e6cc62c6 VS |
3118 | echo "$as_me:$LINENO: result: system version" >&5 |
3119 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 3120 | elif test "$wxUSE_REGEX" = builtin; then |
e6cc62c6 VS |
3121 | echo "$as_me:$LINENO: result: builtin version" >&5 |
3122 | echo "${ECHO_T}builtin version" >&6 | |
3e44f09d | 3123 | else |
e6cc62c6 VS |
3124 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 |
3125 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3126 | { (exit 1); exit 1; }; } | |
3e44f09d | 3127 | fi |
3e44f09d | 3128 | |
e6cc62c6 VS |
3129 | |
3130 | echo "$as_me:$LINENO: checking for --with-zlib" >&5 | |
3131 | echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6 | |
10f2d63a | 3132 | no_cache=0 |
e6cc62c6 VS |
3133 | |
3134 | # Check whether --with-zlib or --without-zlib was given. | |
b12915c1 VZ |
3135 | if test "${with_zlib+set}" = set; then |
3136 | withval="$with_zlib" | |
e6cc62c6 | 3137 | |
10f2d63a | 3138 | if test "$withval" = yes; then |
b12915c1 | 3139 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 3140 | elif test "$withval" = no; then |
b12915c1 | 3141 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
3142 | elif test "$withval" = sys; then |
3143 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
4f14bcd8 GD |
3144 | elif test "$withval" = builtin; then |
3145 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
422107f9 | 3146 | else |
e6cc62c6 VS |
3147 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 |
3148 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3149 | { (exit 1); exit 1; }; } | |
10f2d63a | 3150 | fi |
e6cc62c6 | 3151 | |
10f2d63a | 3152 | else |
e6cc62c6 | 3153 | |
b12915c1 | 3154 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
3155 | if test "x$LINE" != x ; then |
3156 | eval "DEFAULT_$LINE" | |
3157 | else | |
3158 | no_cache=1 | |
3159 | fi | |
3160 | ||
b12915c1 | 3161 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
10f2d63a | 3162 | |
e6cc62c6 | 3163 | fi; |
10f2d63a | 3164 | |
b12915c1 | 3165 | eval "$ac_cv_use_zlib" |
10f2d63a | 3166 | if test "$no_cache" != 1; then |
b12915c1 | 3167 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3168 | fi |
3169 | ||
b12915c1 | 3170 | if test "$wxUSE_ZLIB" = yes; then |
e6cc62c6 VS |
3171 | echo "$as_me:$LINENO: result: yes" >&5 |
3172 | echo "${ECHO_T}yes" >&6 | |
422107f9 | 3173 | elif test "$wxUSE_ZLIB" = no; then |
e6cc62c6 VS |
3174 | echo "$as_me:$LINENO: result: no" >&5 |
3175 | echo "${ECHO_T}no" >&6 | |
422107f9 | 3176 | elif test "$wxUSE_ZLIB" = sys; then |
e6cc62c6 VS |
3177 | echo "$as_me:$LINENO: result: system version" >&5 |
3178 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 3179 | elif test "$wxUSE_ZLIB" = builtin; then |
e6cc62c6 VS |
3180 | echo "$as_me:$LINENO: result: builtin version" >&5 |
3181 | echo "${ECHO_T}builtin version" >&6 | |
422107f9 | 3182 | else |
e6cc62c6 VS |
3183 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 |
3184 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3185 | { (exit 1); exit 1; }; } | |
10f2d63a | 3186 | fi |
10f2d63a | 3187 | |
e6cc62c6 VS |
3188 | |
3189 | echo "$as_me:$LINENO: checking for --with-odbc" >&5 | |
3190 | echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6 | |
10f2d63a | 3191 | no_cache=0 |
e6cc62c6 VS |
3192 | |
3193 | # Check whether --with-odbc or --without-odbc was given. | |
10f2d63a VZ |
3194 | if test "${with_odbc+set}" = set; then |
3195 | withval="$with_odbc" | |
e6cc62c6 | 3196 | |
10f2d63a VZ |
3197 | if test "$withval" = yes; then |
3198 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
8647bec6 | 3199 | elif test "$withval" = no; then |
10f2d63a | 3200 | ac_cv_use_odbc='wxUSE_ODBC=no' |
8647bec6 RG |
3201 | elif test "$withval" = sys; then |
3202 | ac_cv_use_odbc='wxUSE_ODBC=sys' | |
3203 | elif test "$withval" = builtin; then | |
3204 | ac_cv_use_odbc='wxUSE_ODBC=builtin' | |
3205 | else | |
e6cc62c6 VS |
3206 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 |
3207 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3208 | { (exit 1); exit 1; }; } | |
10f2d63a | 3209 | fi |
e6cc62c6 | 3210 | |
10f2d63a | 3211 | else |
e6cc62c6 | 3212 | |
10f2d63a VZ |
3213 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
3214 | if test "x$LINE" != x ; then | |
3215 | eval "DEFAULT_$LINE" | |
3216 | else | |
3217 | no_cache=1 | |
3218 | fi | |
3219 | ||
3220 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
10f2d63a | 3221 | |
e6cc62c6 | 3222 | fi; |
10f2d63a VZ |
3223 | |
3224 | eval "$ac_cv_use_odbc" | |
3225 | if test "$no_cache" != 1; then | |
3226 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
3227 | fi | |
3228 | ||
3229 | if test "$wxUSE_ODBC" = yes; then | |
e6cc62c6 VS |
3230 | echo "$as_me:$LINENO: result: yes" >&5 |
3231 | echo "${ECHO_T}yes" >&6 | |
8647bec6 | 3232 | elif test "$wxUSE_ODBC" = no; then |
e6cc62c6 VS |
3233 | echo "$as_me:$LINENO: result: no" >&5 |
3234 | echo "${ECHO_T}no" >&6 | |
8647bec6 | 3235 | elif test "$wxUSE_ODBC" = sys; then |
e6cc62c6 VS |
3236 | echo "$as_me:$LINENO: result: system version" >&5 |
3237 | echo "${ECHO_T}system version" >&6 | |
8647bec6 | 3238 | elif test "$wxUSE_ODBC" = builtin; then |
e6cc62c6 VS |
3239 | echo "$as_me:$LINENO: result: builtin version" >&5 |
3240 | echo "${ECHO_T}builtin version" >&6 | |
8647bec6 | 3241 | else |
e6cc62c6 VS |
3242 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 |
3243 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3244 | { (exit 1); exit 1; }; } | |
10f2d63a | 3245 | fi |
e6cc62c6 | 3246 | |
52127426 | 3247 | |
672abd7a VS |
3248 | echo "$as_me:$LINENO: checking for --with-expat" >&5 |
3249 | echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6 | |
3250 | no_cache=0 | |
3251 | ||
3252 | # Check whether --with-expat or --without-expat was given. | |
3253 | if test "${with_expat+set}" = set; then | |
3254 | withval="$with_expat" | |
3255 | ||
3256 | if test "$withval" = yes; then | |
3257 | ac_cv_use_expat='wxUSE_EXPAT=yes' | |
3258 | elif test "$withval" = no; then | |
3259 | ac_cv_use_expat='wxUSE_EXPAT=no' | |
3260 | elif test "$withval" = sys; then | |
3261 | ac_cv_use_expat='wxUSE_EXPAT=sys' | |
3262 | elif test "$withval" = builtin; then | |
3263 | ac_cv_use_expat='wxUSE_EXPAT=builtin' | |
3264 | else | |
3265 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3266 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3267 | { (exit 1); exit 1; }; } | |
3268 | fi | |
3269 | ||
3270 | else | |
3271 | ||
3272 | LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}` | |
3273 | if test "x$LINE" != x ; then | |
3274 | eval "DEFAULT_$LINE" | |
3275 | else | |
3276 | no_cache=1 | |
3277 | fi | |
3278 | ||
3279 | ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT | |
3280 | ||
3281 | fi; | |
3282 | ||
3283 | eval "$ac_cv_use_expat" | |
3284 | if test "$no_cache" != 1; then | |
3285 | echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp | |
3286 | fi | |
3287 | ||
3288 | if test "$wxUSE_EXPAT" = yes; then | |
3289 | echo "$as_me:$LINENO: result: yes" >&5 | |
3290 | echo "${ECHO_T}yes" >&6 | |
3291 | elif test "$wxUSE_EXPAT" = no; then | |
3292 | echo "$as_me:$LINENO: result: no" >&5 | |
3293 | echo "${ECHO_T}no" >&6 | |
3294 | elif test "$wxUSE_EXPAT" = sys; then | |
3295 | echo "$as_me:$LINENO: result: system version" >&5 | |
3296 | echo "${ECHO_T}system version" >&6 | |
3297 | elif test "$wxUSE_EXPAT" = builtin; then | |
3298 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3299 | echo "${ECHO_T}builtin version" >&6 | |
3300 | else | |
3301 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3302 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3303 | { (exit 1); exit 1; }; } | |
3304 | fi | |
3305 | ||
3306 | ||
8284b0c5 MB |
3307 | |
3308 | ||
5005acfe | 3309 | enablestring= |
e6cc62c6 VS |
3310 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5 |
3311 | echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6 | |
10f2d63a VZ |
3312 | no_cache=0 |
3313 | # Check whether --enable-shared or --disable-shared was given. | |
3314 | if test "${enable_shared+set}" = set; then | |
3315 | enableval="$enable_shared" | |
e6cc62c6 | 3316 | |
10f2d63a VZ |
3317 | if test "$enableval" = yes; then |
3318 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
3319 | else | |
3320 | ac_cv_use_shared='wxUSE_SHARED=no' | |
3321 | fi | |
e6cc62c6 | 3322 | |
10f2d63a | 3323 | else |
e6cc62c6 | 3324 | |
10f2d63a VZ |
3325 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
3326 | if test "x$LINE" != x ; then | |
3327 | eval "DEFAULT_$LINE" | |
3328 | else | |
3329 | no_cache=1 | |
3330 | fi | |
3331 | ||
3332 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
10f2d63a | 3333 | |
e6cc62c6 | 3334 | fi; |
10f2d63a VZ |
3335 | |
3336 | eval "$ac_cv_use_shared" | |
3337 | if test "$no_cache" != 1; then | |
3338 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
3339 | fi | |
3340 | ||
3341 | if test "$wxUSE_SHARED" = yes; then | |
e6cc62c6 VS |
3342 | echo "$as_me:$LINENO: result: yes" >&5 |
3343 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3344 | else |
e6cc62c6 VS |
3345 | echo "$as_me:$LINENO: result: no" >&5 |
3346 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3347 | fi |
e6cc62c6 | 3348 | |
10f2d63a | 3349 | |
5005acfe | 3350 | enablestring= |
e6cc62c6 VS |
3351 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5 |
3352 | echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6 | |
10f2d63a VZ |
3353 | no_cache=0 |
3354 | # Check whether --enable-optimise or --disable-optimise was given. | |
3355 | if test "${enable_optimise+set}" = set; then | |
3356 | enableval="$enable_optimise" | |
e6cc62c6 | 3357 | |
10f2d63a VZ |
3358 | if test "$enableval" = yes; then |
3359 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
3360 | else | |
3361 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
3362 | fi | |
e6cc62c6 | 3363 | |
10f2d63a | 3364 | else |
e6cc62c6 | 3365 | |
10f2d63a VZ |
3366 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
3367 | if test "x$LINE" != x ; then | |
3368 | eval "DEFAULT_$LINE" | |
3369 | else | |
3370 | no_cache=1 | |
3371 | fi | |
3372 | ||
3373 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
10f2d63a | 3374 | |
e6cc62c6 | 3375 | fi; |
10f2d63a VZ |
3376 | |
3377 | eval "$ac_cv_use_optimise" | |
3378 | if test "$no_cache" != 1; then | |
3379 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
3380 | fi | |
3381 | ||
3382 | if test "$wxUSE_OPTIMISE" = yes; then | |
e6cc62c6 VS |
3383 | echo "$as_me:$LINENO: result: yes" >&5 |
3384 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3385 | else |
e6cc62c6 VS |
3386 | echo "$as_me:$LINENO: result: no" >&5 |
3387 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3388 | fi |
e6cc62c6 | 3389 | |
10f2d63a | 3390 | |
5005acfe | 3391 | enablestring= |
e6cc62c6 VS |
3392 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5 |
3393 | echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6 | |
10f2d63a VZ |
3394 | no_cache=0 |
3395 | # Check whether --enable-debug or --disable-debug was given. | |
3396 | if test "${enable_debug+set}" = set; then | |
3397 | enableval="$enable_debug" | |
e6cc62c6 | 3398 | |
10f2d63a VZ |
3399 | if test "$enableval" = yes; then |
3400 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
3401 | else | |
3402 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
3403 | fi | |
e6cc62c6 | 3404 | |
10f2d63a | 3405 | else |
e6cc62c6 | 3406 | |
10f2d63a VZ |
3407 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
3408 | if test "x$LINE" != x ; then | |
3409 | eval "DEFAULT_$LINE" | |
3410 | else | |
3411 | no_cache=1 | |
3412 | fi | |
3413 | ||
3414 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
10f2d63a | 3415 | |
e6cc62c6 | 3416 | fi; |
10f2d63a VZ |
3417 | |
3418 | eval "$ac_cv_use_debug" | |
3419 | if test "$no_cache" != 1; then | |
3420 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
3421 | fi | |
3422 | ||
3423 | if test "$wxUSE_DEBUG" = yes; then | |
e6cc62c6 VS |
3424 | echo "$as_me:$LINENO: result: yes" >&5 |
3425 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3426 | else |
e6cc62c6 VS |
3427 | echo "$as_me:$LINENO: result: no" >&5 |
3428 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3429 | fi |
e6cc62c6 | 3430 | |
52127426 | 3431 | |
df5168c4 MB |
3432 | enablestring= |
3433 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5 | |
3434 | echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6 | |
3435 | no_cache=0 | |
3436 | # Check whether --enable-stl or --disable-stl was given. | |
3437 | if test "${enable_stl+set}" = set; then | |
3438 | enableval="$enable_stl" | |
3439 | ||
3440 | if test "$enableval" = yes; then | |
3441 | ac_cv_use_stl='wxUSE_STL=yes' | |
3442 | else | |
3443 | ac_cv_use_stl='wxUSE_STL=no' | |
3444 | fi | |
3445 | ||
3446 | else | |
3447 | ||
3448 | LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}` | |
3449 | if test "x$LINE" != x ; then | |
3450 | eval "DEFAULT_$LINE" | |
3451 | else | |
3452 | no_cache=1 | |
3453 | fi | |
3454 | ||
3455 | ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL | |
3456 | ||
3457 | fi; | |
3458 | ||
3459 | eval "$ac_cv_use_stl" | |
3460 | if test "$no_cache" != 1; then | |
3461 | echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp | |
3462 | fi | |
3463 | ||
3464 | if test "$wxUSE_STL" = yes; then | |
3465 | echo "$as_me:$LINENO: result: yes" >&5 | |
3466 | echo "${ECHO_T}yes" >&6 | |
3467 | else | |
3468 | echo "$as_me:$LINENO: result: no" >&5 | |
3469 | echo "${ECHO_T}no" >&6 | |
3470 | fi | |
3471 | ||
3472 | ||
10f2d63a VZ |
3473 | if test "$wxUSE_DEBUG" = "yes"; then |
3474 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
3475 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
6c67131a | 3476 | BUILD=debug |
10f2d63a VZ |
3477 | elif test "$wxUSE_DEBUG" = "no"; then |
3478 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
3479 | DEFAULT_wxUSE_DEBUG_INFO=no | |
6c67131a | 3480 | BUILD=release |
10f2d63a VZ |
3481 | fi |
3482 | ||
8284b0c5 | 3483 | |
5005acfe | 3484 | enablestring= |
e6cc62c6 VS |
3485 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5 |
3486 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6 | |
10f2d63a VZ |
3487 | no_cache=0 |
3488 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
3489 | if test "${enable_debug_flag+set}" = set; then | |
3490 | enableval="$enable_debug_flag" | |
e6cc62c6 | 3491 | |
10f2d63a VZ |
3492 | if test "$enableval" = yes; then |
3493 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
3494 | else | |
3495 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
3496 | fi | |
e6cc62c6 | 3497 | |
10f2d63a | 3498 | else |
e6cc62c6 | 3499 | |
10f2d63a VZ |
3500 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
3501 | if test "x$LINE" != x ; then | |
3502 | eval "DEFAULT_$LINE" | |
3503 | else | |
3504 | no_cache=1 | |
3505 | fi | |
3506 | ||
3507 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
10f2d63a | 3508 | |
e6cc62c6 | 3509 | fi; |
10f2d63a VZ |
3510 | |
3511 | eval "$ac_cv_use_debug_flag" | |
3512 | if test "$no_cache" != 1; then | |
3513 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
3514 | fi | |
3515 | ||
3516 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
e6cc62c6 VS |
3517 | echo "$as_me:$LINENO: result: yes" >&5 |
3518 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3519 | else |
e6cc62c6 VS |
3520 | echo "$as_me:$LINENO: result: no" >&5 |
3521 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3522 | fi |
e6cc62c6 | 3523 | |
10f2d63a | 3524 | |
5005acfe | 3525 | enablestring= |
e6cc62c6 VS |
3526 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5 |
3527 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6 | |
10f2d63a VZ |
3528 | no_cache=0 |
3529 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
3530 | if test "${enable_debug_info+set}" = set; then | |
3531 | enableval="$enable_debug_info" | |
e6cc62c6 | 3532 | |
10f2d63a VZ |
3533 | if test "$enableval" = yes; then |
3534 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
3535 | else | |
3536 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
3537 | fi | |
e6cc62c6 | 3538 | |
10f2d63a | 3539 | else |
e6cc62c6 | 3540 | |
10f2d63a VZ |
3541 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
3542 | if test "x$LINE" != x ; then | |
3543 | eval "DEFAULT_$LINE" | |
3544 | else | |
3545 | no_cache=1 | |
3546 | fi | |
3547 | ||
3548 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
10f2d63a | 3549 | |
e6cc62c6 | 3550 | fi; |
10f2d63a VZ |
3551 | |
3552 | eval "$ac_cv_use_debug_info" | |
3553 | if test "$no_cache" != 1; then | |
3554 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
3555 | fi | |
3556 | ||
3557 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
e6cc62c6 VS |
3558 | echo "$as_me:$LINENO: result: yes" >&5 |
3559 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3560 | else |
e6cc62c6 VS |
3561 | echo "$as_me:$LINENO: result: no" >&5 |
3562 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3563 | fi |
e6cc62c6 | 3564 | |
10f2d63a | 3565 | |
5005acfe | 3566 | enablestring= |
e6cc62c6 VS |
3567 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5 |
3568 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6 | |
10f2d63a VZ |
3569 | no_cache=0 |
3570 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
3571 | if test "${enable_debug_gdb+set}" = set; then | |
3572 | enableval="$enable_debug_gdb" | |
e6cc62c6 | 3573 | |
10f2d63a VZ |
3574 | if test "$enableval" = yes; then |
3575 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
3576 | else | |
3577 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
3578 | fi | |
e6cc62c6 | 3579 | |
10f2d63a | 3580 | else |
e6cc62c6 | 3581 | |
10f2d63a VZ |
3582 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
3583 | if test "x$LINE" != x ; then | |
3584 | eval "DEFAULT_$LINE" | |
3585 | else | |
3586 | no_cache=1 | |
3587 | fi | |
3588 | ||
3589 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
10f2d63a | 3590 | |
e6cc62c6 | 3591 | fi; |
10f2d63a VZ |
3592 | |
3593 | eval "$ac_cv_use_debug_gdb" | |
3594 | if test "$no_cache" != 1; then | |
3595 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
3596 | fi | |
3597 | ||
3598 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
e6cc62c6 VS |
3599 | echo "$as_me:$LINENO: result: yes" >&5 |
3600 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3601 | else |
e6cc62c6 VS |
3602 | echo "$as_me:$LINENO: result: no" >&5 |
3603 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3604 | fi |
e6cc62c6 | 3605 | |
10f2d63a | 3606 | |
5005acfe | 3607 | enablestring= |
e6cc62c6 VS |
3608 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5 |
3609 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6 | |
10f2d63a VZ |
3610 | no_cache=0 |
3611 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
3612 | if test "${enable_debug_cntxt+set}" = set; then | |
3613 | enableval="$enable_debug_cntxt" | |
e6cc62c6 | 3614 | |
10f2d63a VZ |
3615 | if test "$enableval" = yes; then |
3616 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
3617 | else | |
3618 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
3619 | fi | |
e6cc62c6 | 3620 | |
10f2d63a | 3621 | else |
e6cc62c6 | 3622 | |
10f2d63a VZ |
3623 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
3624 | if test "x$LINE" != x ; then | |
3625 | eval "DEFAULT_$LINE" | |
3626 | else | |
3627 | no_cache=1 | |
3628 | fi | |
3629 | ||
3630 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
10f2d63a | 3631 | |
e6cc62c6 | 3632 | fi; |
10f2d63a VZ |
3633 | |
3634 | eval "$ac_cv_use_debug_cntxt" | |
3635 | if test "$no_cache" != 1; then | |
3636 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
3637 | fi | |
3638 | ||
3639 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
e6cc62c6 VS |
3640 | echo "$as_me:$LINENO: result: yes" >&5 |
3641 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3642 | else |
e6cc62c6 VS |
3643 | echo "$as_me:$LINENO: result: no" >&5 |
3644 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3645 | fi |
e6cc62c6 | 3646 | |
10f2d63a | 3647 | |
5005acfe | 3648 | enablestring= |
e6cc62c6 VS |
3649 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5 |
3650 | echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6 | |
10f2d63a VZ |
3651 | no_cache=0 |
3652 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
3653 | if test "${enable_mem_tracing+set}" = set; then | |
3654 | enableval="$enable_mem_tracing" | |
e6cc62c6 | 3655 | |
10f2d63a VZ |
3656 | if test "$enableval" = yes; then |
3657 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
3658 | else | |
3659 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
3660 | fi | |
e6cc62c6 | 3661 | |
10f2d63a | 3662 | else |
e6cc62c6 | 3663 | |
10f2d63a VZ |
3664 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
3665 | if test "x$LINE" != x ; then | |
3666 | eval "DEFAULT_$LINE" | |
3667 | else | |
3668 | no_cache=1 | |
3669 | fi | |
3670 | ||
3671 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
10f2d63a | 3672 | |
e6cc62c6 | 3673 | fi; |
10f2d63a VZ |
3674 | |
3675 | eval "$ac_cv_use_mem_tracing" | |
3676 | if test "$no_cache" != 1; then | |
3677 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
3678 | fi | |
3679 | ||
3680 | if test "$wxUSE_MEM_TRACING" = yes; then | |
e6cc62c6 VS |
3681 | echo "$as_me:$LINENO: result: yes" >&5 |
3682 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3683 | else |
e6cc62c6 VS |
3684 | echo "$as_me:$LINENO: result: no" >&5 |
3685 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3686 | fi |
e6cc62c6 | 3687 | |
10f2d63a | 3688 | |
5005acfe | 3689 | enablestring= |
e6cc62c6 VS |
3690 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5 |
3691 | echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6 | |
10f2d63a VZ |
3692 | no_cache=0 |
3693 | # Check whether --enable-profile or --disable-profile was given. | |
3694 | if test "${enable_profile+set}" = set; then | |
3695 | enableval="$enable_profile" | |
e6cc62c6 | 3696 | |
10f2d63a VZ |
3697 | if test "$enableval" = yes; then |
3698 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
3699 | else | |
3700 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
3701 | fi | |
e6cc62c6 | 3702 | |
10f2d63a | 3703 | else |
e6cc62c6 | 3704 | |
10f2d63a VZ |
3705 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
3706 | if test "x$LINE" != x ; then | |
3707 | eval "DEFAULT_$LINE" | |
3708 | else | |
3709 | no_cache=1 | |
3710 | fi | |
3711 | ||
3712 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
10f2d63a | 3713 | |
e6cc62c6 | 3714 | fi; |
10f2d63a VZ |
3715 | |
3716 | eval "$ac_cv_use_profile" | |
3717 | if test "$no_cache" != 1; then | |
3718 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
3719 | fi | |
3720 | ||
3721 | if test "$wxUSE_PROFILE" = yes; then | |
e6cc62c6 VS |
3722 | echo "$as_me:$LINENO: result: yes" >&5 |
3723 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3724 | else |
e6cc62c6 VS |
3725 | echo "$as_me:$LINENO: result: no" >&5 |
3726 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3727 | fi |
e6cc62c6 | 3728 | |
10f2d63a | 3729 | |
5005acfe | 3730 | enablestring= |
e6cc62c6 VS |
3731 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5 |
3732 | echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6 | |
10f2d63a VZ |
3733 | no_cache=0 |
3734 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
3735 | if test "${enable_no_rtti+set}" = set; then | |
3736 | enableval="$enable_no_rtti" | |
e6cc62c6 | 3737 | |
10f2d63a VZ |
3738 | if test "$enableval" = yes; then |
3739 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
3740 | else | |
3741 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
3742 | fi | |
e6cc62c6 | 3743 | |
10f2d63a | 3744 | else |
e6cc62c6 | 3745 | |
10f2d63a VZ |
3746 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` |
3747 | if test "x$LINE" != x ; then | |
3748 | eval "DEFAULT_$LINE" | |
3749 | else | |
3750 | no_cache=1 | |
3751 | fi | |
3752 | ||
3753 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
10f2d63a | 3754 | |
e6cc62c6 | 3755 | fi; |
10f2d63a VZ |
3756 | |
3757 | eval "$ac_cv_use_no_rtti" | |
3758 | if test "$no_cache" != 1; then | |
3759 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
3760 | fi | |
3761 | ||
3762 | if test "$wxUSE_NO_RTTI" = yes; then | |
e6cc62c6 VS |
3763 | echo "$as_me:$LINENO: result: yes" >&5 |
3764 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3765 | else |
e6cc62c6 VS |
3766 | echo "$as_me:$LINENO: result: no" >&5 |
3767 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3768 | fi |
e6cc62c6 | 3769 | |
10f2d63a | 3770 | |
5005acfe | 3771 | enablestring= |
e6cc62c6 VS |
3772 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5 |
3773 | echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6 | |
10f2d63a VZ |
3774 | no_cache=0 |
3775 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
3776 | if test "${enable_no_exceptions+set}" = set; then | |
3777 | enableval="$enable_no_exceptions" | |
e6cc62c6 | 3778 | |
10f2d63a VZ |
3779 | if test "$enableval" = yes; then |
3780 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
3781 | else | |
3782 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
3783 | fi | |
e6cc62c6 | 3784 | |
10f2d63a | 3785 | else |
e6cc62c6 | 3786 | |
10f2d63a VZ |
3787 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
3788 | if test "x$LINE" != x ; then | |
3789 | eval "DEFAULT_$LINE" | |
3790 | else | |
3791 | no_cache=1 | |
3792 | fi | |
3793 | ||
3794 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
10f2d63a | 3795 | |
e6cc62c6 | 3796 | fi; |
10f2d63a VZ |
3797 | |
3798 | eval "$ac_cv_use_no_exceptions" | |
3799 | if test "$no_cache" != 1; then | |
3800 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
3801 | fi | |
3802 | ||
3803 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
e6cc62c6 VS |
3804 | echo "$as_me:$LINENO: result: yes" >&5 |
3805 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3806 | else |
e6cc62c6 VS |
3807 | echo "$as_me:$LINENO: result: no" >&5 |
3808 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3809 | fi |
e6cc62c6 | 3810 | |
10f2d63a | 3811 | |
5005acfe | 3812 | enablestring= |
e6cc62c6 VS |
3813 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5 |
3814 | echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6 | |
10f2d63a VZ |
3815 | no_cache=0 |
3816 | # Check whether --enable-permissive or --disable-permissive was given. | |
3817 | if test "${enable_permissive+set}" = set; then | |
3818 | enableval="$enable_permissive" | |
e6cc62c6 | 3819 | |
10f2d63a VZ |
3820 | if test "$enableval" = yes; then |
3821 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
3822 | else | |
3823 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
3824 | fi | |
e6cc62c6 | 3825 | |
10f2d63a | 3826 | else |
e6cc62c6 | 3827 | |
10f2d63a VZ |
3828 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` |
3829 | if test "x$LINE" != x ; then | |
3830 | eval "DEFAULT_$LINE" | |
3831 | else | |
3832 | no_cache=1 | |
3833 | fi | |
3834 | ||
3835 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
10f2d63a | 3836 | |
e6cc62c6 | 3837 | fi; |
10f2d63a VZ |
3838 | |
3839 | eval "$ac_cv_use_permissive" | |
3840 | if test "$no_cache" != 1; then | |
3841 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
3842 | fi | |
3843 | ||
3844 | if test "$wxUSE_PERMISSIVE" = yes; then | |
e6cc62c6 VS |
3845 | echo "$as_me:$LINENO: result: yes" >&5 |
3846 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3847 | else |
e6cc62c6 VS |
3848 | echo "$as_me:$LINENO: result: no" >&5 |
3849 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3850 | fi |
e6cc62c6 | 3851 | |
10f2d63a | 3852 | |
5005acfe | 3853 | enablestring= |
e6cc62c6 VS |
3854 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5 |
3855 | echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6 | |
10f2d63a VZ |
3856 | no_cache=0 |
3857 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
3858 | if test "${enable_no_deps+set}" = set; then | |
3859 | enableval="$enable_no_deps" | |
e6cc62c6 | 3860 | |
10f2d63a VZ |
3861 | if test "$enableval" = yes; then |
3862 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
3863 | else | |
3864 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
3865 | fi | |
e6cc62c6 | 3866 | |
10f2d63a | 3867 | else |
e6cc62c6 | 3868 | |
10f2d63a VZ |
3869 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
3870 | if test "x$LINE" != x ; then | |
3871 | eval "DEFAULT_$LINE" | |
3872 | else | |
3873 | no_cache=1 | |
3874 | fi | |
3875 | ||
3876 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
10f2d63a | 3877 | |
e6cc62c6 | 3878 | fi; |
10f2d63a VZ |
3879 | |
3880 | eval "$ac_cv_use_no_deps" | |
3881 | if test "$no_cache" != 1; then | |
3882 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
3883 | fi | |
3884 | ||
3885 | if test "$wxUSE_NO_DEPS" = yes; then | |
e6cc62c6 VS |
3886 | echo "$as_me:$LINENO: result: yes" >&5 |
3887 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3888 | else |
e6cc62c6 VS |
3889 | echo "$as_me:$LINENO: result: no" >&5 |
3890 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3891 | fi |
e6cc62c6 | 3892 | |
52127426 | 3893 | |
8284b0c5 | 3894 | |
65d8ef1e | 3895 | enablestring= |
e6cc62c6 VS |
3896 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5 |
3897 | echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6 | |
54276ccf VZ |
3898 | no_cache=0 |
3899 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
3900 | if test "${enable_compat22+set}" = set; then | |
3901 | enableval="$enable_compat22" | |
e6cc62c6 | 3902 | |
54276ccf VZ |
3903 | if test "$enableval" = yes; then |
3904 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
3905 | else | |
3906 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
3907 | fi | |
e6cc62c6 | 3908 | |
54276ccf | 3909 | else |
e6cc62c6 | 3910 | |
54276ccf VZ |
3911 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` |
3912 | if test "x$LINE" != x ; then | |
3913 | eval "DEFAULT_$LINE" | |
3914 | else | |
3915 | no_cache=1 | |
3916 | fi | |
3917 | ||
3918 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
54276ccf | 3919 | |
e6cc62c6 | 3920 | fi; |
54276ccf VZ |
3921 | |
3922 | eval "$ac_cv_use_compat22" | |
3923 | if test "$no_cache" != 1; then | |
3924 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
3925 | fi | |
3926 | ||
3927 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
e6cc62c6 VS |
3928 | echo "$as_me:$LINENO: result: yes" >&5 |
3929 | echo "${ECHO_T}yes" >&6 | |
54276ccf | 3930 | else |
e6cc62c6 VS |
3931 | echo "$as_me:$LINENO: result: no" >&5 |
3932 | echo "${ECHO_T}no" >&6 | |
54276ccf | 3933 | fi |
e6cc62c6 | 3934 | |
54276ccf | 3935 | |
65d8ef1e | 3936 | enablestring=disable |
e6cc62c6 VS |
3937 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5 |
3938 | echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6 | |
65d8ef1e VS |
3939 | no_cache=0 |
3940 | # Check whether --enable-compat24 or --disable-compat24 was given. | |
3941 | if test "${enable_compat24+set}" = set; then | |
3942 | enableval="$enable_compat24" | |
e6cc62c6 | 3943 | |
65d8ef1e VS |
3944 | if test "$enableval" = yes; then |
3945 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes' | |
3946 | else | |
3947 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no' | |
3948 | fi | |
e6cc62c6 | 3949 | |
65d8ef1e | 3950 | else |
e6cc62c6 | 3951 | |
65d8ef1e VS |
3952 | LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}` |
3953 | if test "x$LINE" != x ; then | |
3954 | eval "DEFAULT_$LINE" | |
3955 | else | |
3956 | no_cache=1 | |
3957 | fi | |
3958 | ||
3959 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4 | |
65d8ef1e | 3960 | |
e6cc62c6 | 3961 | fi; |
65d8ef1e VS |
3962 | |
3963 | eval "$ac_cv_use_compat24" | |
3964 | if test "$no_cache" != 1; then | |
3965 | echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp | |
3966 | fi | |
3967 | ||
3968 | if test "$WXWIN_COMPATIBILITY_2_4" = yes; then | |
e6cc62c6 VS |
3969 | echo "$as_me:$LINENO: result: yes" >&5 |
3970 | echo "${ECHO_T}yes" >&6 | |
65d8ef1e | 3971 | else |
e6cc62c6 VS |
3972 | echo "$as_me:$LINENO: result: no" >&5 |
3973 | echo "${ECHO_T}no" >&6 | |
65d8ef1e | 3974 | fi |
e6cc62c6 | 3975 | |
65d8ef1e | 3976 | |
3bd8fb5f RD |
3977 | # Check whether --enable-rpath or --disable-rpath was given. |
3978 | if test "${enable_rpath+set}" = set; then | |
3979 | enableval="$enable_rpath" | |
3980 | wxRPATH_DIR="$enableval" | |
e6cc62c6 | 3981 | fi; |
3bd8fb5f RD |
3982 | |
3983 | if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then | |
3984 | WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR" | |
3985 | fi | |
3986 | ||
8284b0c5 MB |
3987 | |
3988 | ||
3989 | ||
5005acfe | 3990 | enablestring= |
e6cc62c6 VS |
3991 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5 |
3992 | echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6 | |
10f2d63a VZ |
3993 | no_cache=0 |
3994 | # Check whether --enable-intl or --disable-intl was given. | |
3995 | if test "${enable_intl+set}" = set; then | |
3996 | enableval="$enable_intl" | |
e6cc62c6 | 3997 | |
10f2d63a VZ |
3998 | if test "$enableval" = yes; then |
3999 | ac_cv_use_intl='wxUSE_INTL=yes' | |
4000 | else | |
4001 | ac_cv_use_intl='wxUSE_INTL=no' | |
4002 | fi | |
e6cc62c6 | 4003 | |
10f2d63a | 4004 | else |
e6cc62c6 | 4005 | |
10f2d63a VZ |
4006 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
4007 | if test "x$LINE" != x ; then | |
4008 | eval "DEFAULT_$LINE" | |
4009 | else | |
4010 | no_cache=1 | |
4011 | fi | |
4012 | ||
4013 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
10f2d63a | 4014 | |
e6cc62c6 | 4015 | fi; |
10f2d63a VZ |
4016 | |
4017 | eval "$ac_cv_use_intl" | |
4018 | if test "$no_cache" != 1; then | |
4019 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
4020 | fi | |
4021 | ||
4022 | if test "$wxUSE_INTL" = yes; then | |
e6cc62c6 VS |
4023 | echo "$as_me:$LINENO: result: yes" >&5 |
4024 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4025 | else |
e6cc62c6 VS |
4026 | echo "$as_me:$LINENO: result: no" >&5 |
4027 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4028 | fi |
e6cc62c6 | 4029 | |
10f2d63a | 4030 | |
5005acfe | 4031 | enablestring= |
e6cc62c6 VS |
4032 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5 |
4033 | echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6 | |
10f2d63a VZ |
4034 | no_cache=0 |
4035 | # Check whether --enable-config or --disable-config was given. | |
4036 | if test "${enable_config+set}" = set; then | |
4037 | enableval="$enable_config" | |
e6cc62c6 | 4038 | |
10f2d63a VZ |
4039 | if test "$enableval" = yes; then |
4040 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
4041 | else | |
4042 | ac_cv_use_config='wxUSE_CONFIG=no' | |
4043 | fi | |
e6cc62c6 | 4044 | |
10f2d63a | 4045 | else |
e6cc62c6 | 4046 | |
10f2d63a VZ |
4047 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
4048 | if test "x$LINE" != x ; then | |
4049 | eval "DEFAULT_$LINE" | |
4050 | else | |
4051 | no_cache=1 | |
4052 | fi | |
4053 | ||
4054 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
10f2d63a | 4055 | |
e6cc62c6 | 4056 | fi; |
10f2d63a VZ |
4057 | |
4058 | eval "$ac_cv_use_config" | |
4059 | if test "$no_cache" != 1; then | |
4060 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
4061 | fi | |
4062 | ||
4063 | if test "$wxUSE_CONFIG" = yes; then | |
e6cc62c6 VS |
4064 | echo "$as_me:$LINENO: result: yes" >&5 |
4065 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4066 | else |
e6cc62c6 VS |
4067 | echo "$as_me:$LINENO: result: no" >&5 |
4068 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4069 | fi |
e6cc62c6 | 4070 | |
52127426 | 4071 | |
8284b0c5 | 4072 | |
5005acfe | 4073 | enablestring= |
e6cc62c6 VS |
4074 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5 |
4075 | echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6 | |
a1622950 VZ |
4076 | no_cache=0 |
4077 | # Check whether --enable-protocols or --disable-protocols was given. | |
4078 | if test "${enable_protocols+set}" = set; then | |
4079 | enableval="$enable_protocols" | |
e6cc62c6 | 4080 | |
a1622950 VZ |
4081 | if test "$enableval" = yes; then |
4082 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
4083 | else | |
4084 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
4085 | fi | |
e6cc62c6 | 4086 | |
a1622950 | 4087 | else |
e6cc62c6 | 4088 | |
a1622950 VZ |
4089 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` |
4090 | if test "x$LINE" != x ; then | |
4091 | eval "DEFAULT_$LINE" | |
4092 | else | |
4093 | no_cache=1 | |
4094 | fi | |
4095 | ||
4096 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
a1622950 | 4097 | |
e6cc62c6 | 4098 | fi; |
a1622950 VZ |
4099 | |
4100 | eval "$ac_cv_use_protocols" | |
4101 | if test "$no_cache" != 1; then | |
4102 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
4103 | fi | |
4104 | ||
4105 | if test "$wxUSE_PROTOCOL" = yes; then | |
e6cc62c6 VS |
4106 | echo "$as_me:$LINENO: result: yes" >&5 |
4107 | echo "${ECHO_T}yes" >&6 | |
a1622950 | 4108 | else |
e6cc62c6 VS |
4109 | echo "$as_me:$LINENO: result: no" >&5 |
4110 | echo "${ECHO_T}no" >&6 | |
a1622950 | 4111 | fi |
e6cc62c6 | 4112 | |
a1622950 | 4113 | |
5005acfe | 4114 | enablestring= |
e6cc62c6 VS |
4115 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5 |
4116 | echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6 | |
a1622950 VZ |
4117 | no_cache=0 |
4118 | # Check whether --enable-ftp or --disable-ftp was given. | |
4119 | if test "${enable_ftp+set}" = set; then | |
4120 | enableval="$enable_ftp" | |
e6cc62c6 | 4121 | |
a1622950 VZ |
4122 | if test "$enableval" = yes; then |
4123 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4124 | else | |
4125 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
4126 | fi | |
e6cc62c6 | 4127 | |
a1622950 | 4128 | else |
e6cc62c6 | 4129 | |
a1622950 VZ |
4130 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` |
4131 | if test "x$LINE" != x ; then | |
4132 | eval "DEFAULT_$LINE" | |
4133 | else | |
4134 | no_cache=1 | |
4135 | fi | |
4136 | ||
4137 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
a1622950 | 4138 | |
e6cc62c6 | 4139 | fi; |
a1622950 VZ |
4140 | |
4141 | eval "$ac_cv_use_ftp" | |
4142 | if test "$no_cache" != 1; then | |
4143 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
4144 | fi | |
4145 | ||
4146 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
e6cc62c6 VS |
4147 | echo "$as_me:$LINENO: result: yes" >&5 |
4148 | echo "${ECHO_T}yes" >&6 | |
a1622950 | 4149 | else |
e6cc62c6 VS |
4150 | echo "$as_me:$LINENO: result: no" >&5 |
4151 | echo "${ECHO_T}no" >&6 | |
a1622950 | 4152 | fi |
e6cc62c6 | 4153 | |
a1622950 | 4154 | |
5005acfe | 4155 | enablestring= |
e6cc62c6 VS |
4156 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5 |
4157 | echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6 | |
a1622950 VZ |
4158 | no_cache=0 |
4159 | # Check whether --enable-http or --disable-http was given. | |
4160 | if test "${enable_http+set}" = set; then | |
4161 | enableval="$enable_http" | |
e6cc62c6 | 4162 | |
a1622950 VZ |
4163 | if test "$enableval" = yes; then |
4164 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
4165 | else | |
4166 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
4167 | fi | |
e6cc62c6 | 4168 | |
a1622950 | 4169 | else |
e6cc62c6 | 4170 | |
a1622950 VZ |
4171 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` |
4172 | if test "x$LINE" != x ; then | |
4173 | eval "DEFAULT_$LINE" | |
4174 | else | |
4175 | no_cache=1 | |
4176 | fi | |
4177 | ||
4178 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
a1622950 | 4179 | |
e6cc62c6 | 4180 | fi; |
a1622950 VZ |
4181 | |
4182 | eval "$ac_cv_use_http" | |
4183 | if test "$no_cache" != 1; then | |
4184 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
4185 | fi | |
4186 | ||
4187 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
e6cc62c6 VS |
4188 | echo "$as_me:$LINENO: result: yes" >&5 |
4189 | echo "${ECHO_T}yes" >&6 | |
a1622950 | 4190 | else |
e6cc62c6 VS |
4191 | echo "$as_me:$LINENO: result: no" >&5 |
4192 | echo "${ECHO_T}no" >&6 | |
a1622950 | 4193 | fi |
e6cc62c6 | 4194 | |
a1622950 | 4195 | |
5005acfe | 4196 | enablestring= |
e6cc62c6 VS |
4197 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5 |
4198 | echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6 | |
a1622950 VZ |
4199 | no_cache=0 |
4200 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
4201 | if test "${enable_fileproto+set}" = set; then | |
4202 | enableval="$enable_fileproto" | |
e6cc62c6 | 4203 | |
a1622950 VZ |
4204 | if test "$enableval" = yes; then |
4205 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
4206 | else | |
4207 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
4208 | fi | |
e6cc62c6 | 4209 | |
a1622950 | 4210 | else |
e6cc62c6 | 4211 | |
a1622950 VZ |
4212 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` |
4213 | if test "x$LINE" != x ; then | |
4214 | eval "DEFAULT_$LINE" | |
4215 | else | |
4216 | no_cache=1 | |
4217 | fi | |
4218 | ||
4219 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
a1622950 | 4220 | |
e6cc62c6 | 4221 | fi; |
a1622950 VZ |
4222 | |
4223 | eval "$ac_cv_use_fileproto" | |
4224 | if test "$no_cache" != 1; then | |
4225 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
4226 | fi | |
4227 | ||
4228 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
e6cc62c6 VS |
4229 | echo "$as_me:$LINENO: result: yes" >&5 |
4230 | echo "${ECHO_T}yes" >&6 | |
a1622950 | 4231 | else |
e6cc62c6 VS |
4232 | echo "$as_me:$LINENO: result: no" >&5 |
4233 | echo "${ECHO_T}no" >&6 | |
a1622950 | 4234 | fi |
e6cc62c6 | 4235 | |
a1622950 | 4236 | |
5005acfe | 4237 | enablestring= |
e6cc62c6 VS |
4238 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5 |
4239 | echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6 | |
10f2d63a VZ |
4240 | no_cache=0 |
4241 | # Check whether --enable-sockets or --disable-sockets was given. | |
4242 | if test "${enable_sockets+set}" = set; then | |
4243 | enableval="$enable_sockets" | |
e6cc62c6 | 4244 | |
10f2d63a VZ |
4245 | if test "$enableval" = yes; then |
4246 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
4247 | else | |
4248 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
4249 | fi | |
e6cc62c6 | 4250 | |
10f2d63a | 4251 | else |
e6cc62c6 | 4252 | |
10f2d63a VZ |
4253 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
4254 | if test "x$LINE" != x ; then | |
4255 | eval "DEFAULT_$LINE" | |
4256 | else | |
4257 | no_cache=1 | |
4258 | fi | |
4259 | ||
4260 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
10f2d63a | 4261 | |
e6cc62c6 | 4262 | fi; |
10f2d63a VZ |
4263 | |
4264 | eval "$ac_cv_use_sockets" | |
4265 | if test "$no_cache" != 1; then | |
4266 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
4267 | fi | |
4268 | ||
4269 | if test "$wxUSE_SOCKETS" = yes; then | |
e6cc62c6 VS |
4270 | echo "$as_me:$LINENO: result: yes" >&5 |
4271 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4272 | else |
e6cc62c6 VS |
4273 | echo "$as_me:$LINENO: result: no" >&5 |
4274 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4275 | fi |
e6cc62c6 | 4276 | |
8284b0c5 | 4277 | |
5005acfe | 4278 | enablestring= |
e6cc62c6 VS |
4279 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5 |
4280 | echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6 | |
3bce6687 JS |
4281 | no_cache=0 |
4282 | # Check whether --enable-ole or --disable-ole was given. | |
4283 | if test "${enable_ole+set}" = set; then | |
4284 | enableval="$enable_ole" | |
e6cc62c6 | 4285 | |
3bce6687 JS |
4286 | if test "$enableval" = yes; then |
4287 | ac_cv_use_ole='wxUSE_OLE=yes' | |
4288 | else | |
4289 | ac_cv_use_ole='wxUSE_OLE=no' | |
4290 | fi | |
e6cc62c6 | 4291 | |
3bce6687 | 4292 | else |
e6cc62c6 | 4293 | |
3bce6687 JS |
4294 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` |
4295 | if test "x$LINE" != x ; then | |
4296 | eval "DEFAULT_$LINE" | |
4297 | else | |
4298 | no_cache=1 | |
4299 | fi | |
4300 | ||
4301 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
3bce6687 | 4302 | |
e6cc62c6 | 4303 | fi; |
3bce6687 JS |
4304 | |
4305 | eval "$ac_cv_use_ole" | |
4306 | if test "$no_cache" != 1; then | |
4307 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
4308 | fi | |
4309 | ||
4310 | if test "$wxUSE_OLE" = yes; then | |
e6cc62c6 VS |
4311 | echo "$as_me:$LINENO: result: yes" >&5 |
4312 | echo "${ECHO_T}yes" >&6 | |
3bce6687 | 4313 | else |
e6cc62c6 VS |
4314 | echo "$as_me:$LINENO: result: no" >&5 |
4315 | echo "${ECHO_T}no" >&6 | |
3bce6687 | 4316 | fi |
e6cc62c6 | 4317 | |
3bce6687 | 4318 | |
5005acfe | 4319 | enablestring= |
e6cc62c6 VS |
4320 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5 |
4321 | echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6 | |
3bce6687 JS |
4322 | no_cache=0 |
4323 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
4324 | if test "${enable_dataobj+set}" = set; then | |
4325 | enableval="$enable_dataobj" | |
e6cc62c6 | 4326 | |
3bce6687 JS |
4327 | if test "$enableval" = yes; then |
4328 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
4329 | else | |
4330 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
4331 | fi | |
e6cc62c6 | 4332 | |
3bce6687 | 4333 | else |
e6cc62c6 | 4334 | |
3bce6687 JS |
4335 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` |
4336 | if test "x$LINE" != x ; then | |
4337 | eval "DEFAULT_$LINE" | |
4338 | else | |
4339 | no_cache=1 | |
4340 | fi | |
4341 | ||
4342 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
3bce6687 | 4343 | |
e6cc62c6 | 4344 | fi; |
3bce6687 JS |
4345 | |
4346 | eval "$ac_cv_use_dataobj" | |
4347 | if test "$no_cache" != 1; then | |
4348 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
4349 | fi | |
4350 | ||
4351 | if test "$wxUSE_DATAOBJ" = yes; then | |
e6cc62c6 VS |
4352 | echo "$as_me:$LINENO: result: yes" >&5 |
4353 | echo "${ECHO_T}yes" >&6 | |
3bce6687 | 4354 | else |
e6cc62c6 VS |
4355 | echo "$as_me:$LINENO: result: no" >&5 |
4356 | echo "${ECHO_T}no" >&6 | |
3bce6687 | 4357 | fi |
e6cc62c6 | 4358 | |
3bce6687 | 4359 | |
52127426 | 4360 | |
5005acfe | 4361 | enablestring= |
e6cc62c6 VS |
4362 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5 |
4363 | echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6 | |
10f2d63a | 4364 | no_cache=0 |
eb4efbdc VZ |
4365 | # Check whether --enable-ipc or --disable-ipc was given. |
4366 | if test "${enable_ipc+set}" = set; then | |
4367 | enableval="$enable_ipc" | |
e6cc62c6 | 4368 | |
10f2d63a | 4369 | if test "$enableval" = yes; then |
eb4efbdc | 4370 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 4371 | else |
eb4efbdc | 4372 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 4373 | fi |
e6cc62c6 | 4374 | |
10f2d63a | 4375 | else |
e6cc62c6 | 4376 | |
eb4efbdc | 4377 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
4378 | if test "x$LINE" != x ; then |
4379 | eval "DEFAULT_$LINE" | |
4380 | else | |
4381 | no_cache=1 | |
4382 | fi | |
4383 | ||
eb4efbdc | 4384 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
10f2d63a | 4385 | |
e6cc62c6 | 4386 | fi; |
10f2d63a | 4387 | |
eb4efbdc | 4388 | eval "$ac_cv_use_ipc" |
10f2d63a | 4389 | if test "$no_cache" != 1; then |
eb4efbdc | 4390 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4391 | fi |
4392 | ||
eb4efbdc | 4393 | if test "$wxUSE_IPC" = yes; then |
e6cc62c6 VS |
4394 | echo "$as_me:$LINENO: result: yes" >&5 |
4395 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4396 | else |
e6cc62c6 VS |
4397 | echo "$as_me:$LINENO: result: no" >&5 |
4398 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4399 | fi |
e6cc62c6 | 4400 | |
52127426 | 4401 | |
8284b0c5 | 4402 | |
5005acfe | 4403 | enablestring= |
e46d2a18 VS |
4404 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5 |
4405 | echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6 | |
10f2d63a | 4406 | no_cache=0 |
e46d2a18 VS |
4407 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. |
4408 | if test "${enable_apple_ieee+set}" = set; then | |
4409 | enableval="$enable_apple_ieee" | |
e6cc62c6 | 4410 | |
10f2d63a | 4411 | if test "$enableval" = yes; then |
e46d2a18 | 4412 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' |
10f2d63a | 4413 | else |
e46d2a18 | 4414 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' |
10f2d63a | 4415 | fi |
e6cc62c6 | 4416 | |
10f2d63a | 4417 | else |
e6cc62c6 | 4418 | |
e46d2a18 | 4419 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4420 | if test "x$LINE" != x ; then |
4421 | eval "DEFAULT_$LINE" | |
4422 | else | |
4423 | no_cache=1 | |
4424 | fi | |
4425 | ||
e46d2a18 | 4426 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE |
10f2d63a | 4427 | |
e6cc62c6 | 4428 | fi; |
10f2d63a | 4429 | |
e46d2a18 | 4430 | eval "$ac_cv_use_apple_ieee" |
10f2d63a | 4431 | if test "$no_cache" != 1; then |
e46d2a18 | 4432 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4433 | fi |
4434 | ||
e46d2a18 | 4435 | if test "$wxUSE_APPLE_IEEE" = yes; then |
e6cc62c6 VS |
4436 | echo "$as_me:$LINENO: result: yes" >&5 |
4437 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4438 | else |
e6cc62c6 VS |
4439 | echo "$as_me:$LINENO: result: no" >&5 |
4440 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4441 | fi |
e6cc62c6 | 4442 | |
10f2d63a | 4443 | |
5005acfe | 4444 | enablestring= |
e46d2a18 VS |
4445 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5 |
4446 | echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6 | |
10f2d63a | 4447 | no_cache=0 |
e46d2a18 VS |
4448 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. |
4449 | if test "${enable_catch_segvs+set}" = set; then | |
4450 | enableval="$enable_catch_segvs" | |
e6cc62c6 | 4451 | |
10f2d63a | 4452 | if test "$enableval" = yes; then |
e46d2a18 | 4453 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' |
10f2d63a | 4454 | else |
e46d2a18 | 4455 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' |
10f2d63a | 4456 | fi |
e6cc62c6 | 4457 | |
10f2d63a | 4458 | else |
e6cc62c6 | 4459 | |
e46d2a18 | 4460 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
10f2d63a VZ |
4461 | if test "x$LINE" != x ; then |
4462 | eval "DEFAULT_$LINE" | |
4463 | else | |
4464 | no_cache=1 | |
4465 | fi | |
4466 | ||
e46d2a18 | 4467 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION |
10f2d63a | 4468 | |
e6cc62c6 | 4469 | fi; |
10f2d63a | 4470 | |
e46d2a18 | 4471 | eval "$ac_cv_use_catch_segvs" |
10f2d63a | 4472 | if test "$no_cache" != 1; then |
e46d2a18 | 4473 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4474 | fi |
4475 | ||
e46d2a18 | 4476 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then |
e6cc62c6 VS |
4477 | echo "$as_me:$LINENO: result: yes" >&5 |
4478 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4479 | else |
e6cc62c6 VS |
4480 | echo "$as_me:$LINENO: result: no" >&5 |
4481 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4482 | fi |
e6cc62c6 | 4483 | |
10f2d63a | 4484 | |
5005acfe | 4485 | enablestring= |
e46d2a18 VS |
4486 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5 |
4487 | echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6 | |
10f2d63a | 4488 | no_cache=0 |
e46d2a18 VS |
4489 | # Check whether --enable-cmdline or --disable-cmdline was given. |
4490 | if test "${enable_cmdline+set}" = set; then | |
4491 | enableval="$enable_cmdline" | |
e6cc62c6 | 4492 | |
10f2d63a | 4493 | if test "$enableval" = yes; then |
e46d2a18 | 4494 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' |
10f2d63a | 4495 | else |
e46d2a18 | 4496 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' |
10f2d63a | 4497 | fi |
e6cc62c6 | 4498 | |
10f2d63a | 4499 | else |
e6cc62c6 | 4500 | |
e46d2a18 | 4501 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` |
10f2d63a VZ |
4502 | if test "x$LINE" != x ; then |
4503 | eval "DEFAULT_$LINE" | |
4504 | else | |
4505 | no_cache=1 | |
4506 | fi | |
4507 | ||
e46d2a18 | 4508 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER |
10f2d63a | 4509 | |
e6cc62c6 | 4510 | fi; |
10f2d63a | 4511 | |
e46d2a18 | 4512 | eval "$ac_cv_use_cmdline" |
10f2d63a | 4513 | if test "$no_cache" != 1; then |
e46d2a18 | 4514 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4515 | fi |
4516 | ||
e46d2a18 | 4517 | if test "$wxUSE_CMDLINE_PARSER" = yes; then |
e6cc62c6 VS |
4518 | echo "$as_me:$LINENO: result: yes" >&5 |
4519 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4520 | else |
e6cc62c6 VS |
4521 | echo "$as_me:$LINENO: result: no" >&5 |
4522 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4523 | fi |
e6cc62c6 | 4524 | |
10f2d63a | 4525 | |
5005acfe | 4526 | enablestring= |
e46d2a18 VS |
4527 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5 |
4528 | echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6 | |
10f2d63a | 4529 | no_cache=0 |
e46d2a18 VS |
4530 | # Check whether --enable-datetime or --disable-datetime was given. |
4531 | if test "${enable_datetime+set}" = set; then | |
4532 | enableval="$enable_datetime" | |
e6cc62c6 | 4533 | |
10f2d63a | 4534 | if test "$enableval" = yes; then |
e46d2a18 | 4535 | ac_cv_use_datetime='wxUSE_DATETIME=yes' |
10f2d63a | 4536 | else |
e46d2a18 | 4537 | ac_cv_use_datetime='wxUSE_DATETIME=no' |
10f2d63a | 4538 | fi |
e6cc62c6 | 4539 | |
10f2d63a | 4540 | else |
e6cc62c6 | 4541 | |
e46d2a18 | 4542 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` |
10f2d63a VZ |
4543 | if test "x$LINE" != x ; then |
4544 | eval "DEFAULT_$LINE" | |
4545 | else | |
4546 | no_cache=1 | |
4547 | fi | |
4548 | ||
e46d2a18 | 4549 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME |
10f2d63a | 4550 | |
e6cc62c6 | 4551 | fi; |
10f2d63a | 4552 | |
e46d2a18 | 4553 | eval "$ac_cv_use_datetime" |
10f2d63a | 4554 | if test "$no_cache" != 1; then |
e46d2a18 | 4555 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4556 | fi |
4557 | ||
e46d2a18 | 4558 | if test "$wxUSE_DATETIME" = yes; then |
e6cc62c6 VS |
4559 | echo "$as_me:$LINENO: result: yes" >&5 |
4560 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4561 | else |
e6cc62c6 VS |
4562 | echo "$as_me:$LINENO: result: no" >&5 |
4563 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4564 | fi |
e6cc62c6 | 4565 | |
10f2d63a | 4566 | |
5005acfe | 4567 | enablestring= |
e46d2a18 VS |
4568 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5 |
4569 | echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6 | |
10f2d63a | 4570 | no_cache=0 |
e46d2a18 VS |
4571 | # Check whether --enable-dialupman or --disable-dialupman was given. |
4572 | if test "${enable_dialupman+set}" = set; then | |
4573 | enableval="$enable_dialupman" | |
e6cc62c6 | 4574 | |
10f2d63a | 4575 | if test "$enableval" = yes; then |
e46d2a18 | 4576 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 4577 | else |
e46d2a18 | 4578 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 4579 | fi |
e6cc62c6 | 4580 | |
10f2d63a | 4581 | else |
e6cc62c6 | 4582 | |
e46d2a18 | 4583 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
4584 | if test "x$LINE" != x ; then |
4585 | eval "DEFAULT_$LINE" | |
4586 | else | |
4587 | no_cache=1 | |
4588 | fi | |
4589 | ||
e46d2a18 | 4590 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
10f2d63a | 4591 | |
e6cc62c6 | 4592 | fi; |
10f2d63a | 4593 | |
e46d2a18 | 4594 | eval "$ac_cv_use_dialupman" |
10f2d63a | 4595 | if test "$no_cache" != 1; then |
e46d2a18 | 4596 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4597 | fi |
4598 | ||
e46d2a18 | 4599 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
e6cc62c6 VS |
4600 | echo "$as_me:$LINENO: result: yes" >&5 |
4601 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4602 | else |
e6cc62c6 VS |
4603 | echo "$as_me:$LINENO: result: no" >&5 |
4604 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4605 | fi |
e6cc62c6 | 4606 | |
10f2d63a | 4607 | |
5005acfe | 4608 | enablestring= |
e6cc62c6 VS |
4609 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5 |
4610 | echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6 | |
10f2d63a VZ |
4611 | no_cache=0 |
4612 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
4613 | if test "${enable_dynlib+set}" = set; then | |
4614 | enableval="$enable_dynlib" | |
e6cc62c6 | 4615 | |
10f2d63a VZ |
4616 | if test "$enableval" = yes; then |
4617 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
4618 | else | |
4619 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
4620 | fi | |
e6cc62c6 | 4621 | |
10f2d63a | 4622 | else |
e6cc62c6 | 4623 | |
10f2d63a VZ |
4624 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
4625 | if test "x$LINE" != x ; then | |
4626 | eval "DEFAULT_$LINE" | |
4627 | else | |
4628 | no_cache=1 | |
4629 | fi | |
4630 | ||
4631 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
10f2d63a | 4632 | |
e6cc62c6 | 4633 | fi; |
10f2d63a VZ |
4634 | |
4635 | eval "$ac_cv_use_dynlib" | |
4636 | if test "$no_cache" != 1; then | |
4637 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
4638 | fi | |
4639 | ||
4640 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
e6cc62c6 VS |
4641 | echo "$as_me:$LINENO: result: yes" >&5 |
4642 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4643 | else |
e6cc62c6 VS |
4644 | echo "$as_me:$LINENO: result: no" >&5 |
4645 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4646 | fi |
e6cc62c6 | 4647 | |
10f2d63a | 4648 | |
5005acfe | 4649 | enablestring= |
e6cc62c6 VS |
4650 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5 |
4651 | echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6 | |
0b9ab0bd RL |
4652 | no_cache=0 |
4653 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
4654 | if test "${enable_dynamicloader+set}" = set; then | |
4655 | enableval="$enable_dynamicloader" | |
e6cc62c6 | 4656 | |
0b9ab0bd RL |
4657 | if test "$enableval" = yes; then |
4658 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
4659 | else | |
4660 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
4661 | fi | |
e6cc62c6 | 4662 | |
0b9ab0bd | 4663 | else |
e6cc62c6 | 4664 | |
0b9ab0bd RL |
4665 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` |
4666 | if test "x$LINE" != x ; then | |
4667 | eval "DEFAULT_$LINE" | |
4668 | else | |
4669 | no_cache=1 | |
4670 | fi | |
4671 | ||
4672 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
0b9ab0bd | 4673 | |
e6cc62c6 | 4674 | fi; |
0b9ab0bd RL |
4675 | |
4676 | eval "$ac_cv_use_dynamicloader" | |
4677 | if test "$no_cache" != 1; then | |
4678 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
4679 | fi | |
4680 | ||
4681 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
e6cc62c6 VS |
4682 | echo "$as_me:$LINENO: result: yes" >&5 |
4683 | echo "${ECHO_T}yes" >&6 | |
0b9ab0bd | 4684 | else |
e6cc62c6 VS |
4685 | echo "$as_me:$LINENO: result: no" >&5 |
4686 | echo "${ECHO_T}no" >&6 | |
0b9ab0bd | 4687 | fi |
e6cc62c6 | 4688 | |
0b9ab0bd | 4689 | |
5005acfe | 4690 | enablestring= |
e46d2a18 VS |
4691 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5 |
4692 | echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6 | |
10f2d63a | 4693 | no_cache=0 |
e46d2a18 VS |
4694 | # Check whether --enable-exceptions or --disable-exceptions was given. |
4695 | if test "${enable_exceptions+set}" = set; then | |
4696 | enableval="$enable_exceptions" | |
e6cc62c6 | 4697 | |
10f2d63a | 4698 | if test "$enableval" = yes; then |
e46d2a18 | 4699 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes' |
10f2d63a | 4700 | else |
e46d2a18 | 4701 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no' |
10f2d63a | 4702 | fi |
e6cc62c6 | 4703 | |
10f2d63a | 4704 | else |
e6cc62c6 | 4705 | |
e46d2a18 | 4706 | LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}` |
10f2d63a VZ |
4707 | if test "x$LINE" != x ; then |
4708 | eval "DEFAULT_$LINE" | |
4709 | else | |
4710 | no_cache=1 | |
4711 | fi | |
4712 | ||
e46d2a18 | 4713 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS |
10f2d63a | 4714 | |
e6cc62c6 | 4715 | fi; |
10f2d63a | 4716 | |
e46d2a18 | 4717 | eval "$ac_cv_use_exceptions" |
10f2d63a | 4718 | if test "$no_cache" != 1; then |
e46d2a18 | 4719 | echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4720 | fi |
4721 | ||
e46d2a18 | 4722 | if test "$wxUSE_EXCEPTIONS" = yes; then |
e6cc62c6 VS |
4723 | echo "$as_me:$LINENO: result: yes" >&5 |
4724 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4725 | else |
e6cc62c6 VS |
4726 | echo "$as_me:$LINENO: result: no" >&5 |
4727 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4728 | fi |
e6cc62c6 | 4729 | |
10f2d63a | 4730 | |
5005acfe | 4731 | enablestring= |
e46d2a18 VS |
4732 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5 |
4733 | echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6 | |
e8f65ba6 | 4734 | no_cache=0 |
e46d2a18 VS |
4735 | # Check whether --enable-ffile or --disable-ffile was given. |
4736 | if test "${enable_ffile+set}" = set; then | |
4737 | enableval="$enable_ffile" | |
e6cc62c6 | 4738 | |
e8f65ba6 | 4739 | if test "$enableval" = yes; then |
e46d2a18 | 4740 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
e8f65ba6 | 4741 | else |
e46d2a18 | 4742 | ac_cv_use_ffile='wxUSE_FFILE=no' |
e8f65ba6 | 4743 | fi |
e6cc62c6 | 4744 | |
e8f65ba6 | 4745 | else |
e6cc62c6 | 4746 | |
e46d2a18 | 4747 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
e8f65ba6 RR |
4748 | if test "x$LINE" != x ; then |
4749 | eval "DEFAULT_$LINE" | |
4750 | else | |
4751 | no_cache=1 | |
4752 | fi | |
4753 | ||
e46d2a18 | 4754 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
e8f65ba6 | 4755 | |
e6cc62c6 | 4756 | fi; |
e8f65ba6 | 4757 | |
e46d2a18 | 4758 | eval "$ac_cv_use_ffile" |
e8f65ba6 | 4759 | if test "$no_cache" != 1; then |
e46d2a18 | 4760 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
e8f65ba6 RR |
4761 | fi |
4762 | ||
e46d2a18 | 4763 | if test "$wxUSE_FFILE" = yes; then |
e6cc62c6 VS |
4764 | echo "$as_me:$LINENO: result: yes" >&5 |
4765 | echo "${ECHO_T}yes" >&6 | |
e8f65ba6 | 4766 | else |
e6cc62c6 VS |
4767 | echo "$as_me:$LINENO: result: no" >&5 |
4768 | echo "${ECHO_T}no" >&6 | |
e8f65ba6 | 4769 | fi |
e6cc62c6 | 4770 | |
e8f65ba6 | 4771 | |
5005acfe | 4772 | enablestring= |
e46d2a18 VS |
4773 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5 |
4774 | echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6 | |
10f2d63a | 4775 | no_cache=0 |
e46d2a18 VS |
4776 | # Check whether --enable-file or --disable-file was given. |
4777 | if test "${enable_file+set}" = set; then | |
4778 | enableval="$enable_file" | |
e6cc62c6 | 4779 | |
10f2d63a | 4780 | if test "$enableval" = yes; then |
e46d2a18 | 4781 | ac_cv_use_file='wxUSE_FILE=yes' |
10f2d63a | 4782 | else |
e46d2a18 | 4783 | ac_cv_use_file='wxUSE_FILE=no' |
10f2d63a | 4784 | fi |
e6cc62c6 | 4785 | |
10f2d63a | 4786 | else |
e6cc62c6 | 4787 | |
e46d2a18 | 4788 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4789 | if test "x$LINE" != x ; then |
4790 | eval "DEFAULT_$LINE" | |
4791 | else | |
4792 | no_cache=1 | |
4793 | fi | |
4794 | ||
e46d2a18 | 4795 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE |
10f2d63a | 4796 | |
e6cc62c6 | 4797 | fi; |
10f2d63a | 4798 | |
e46d2a18 | 4799 | eval "$ac_cv_use_file" |
10f2d63a | 4800 | if test "$no_cache" != 1; then |
e46d2a18 | 4801 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4802 | fi |
4803 | ||
e46d2a18 | 4804 | if test "$wxUSE_FILE" = yes; then |
e6cc62c6 VS |
4805 | echo "$as_me:$LINENO: result: yes" >&5 |
4806 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4807 | else |
e6cc62c6 VS |
4808 | echo "$as_me:$LINENO: result: no" >&5 |
4809 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4810 | fi |
e6cc62c6 | 4811 | |
10f2d63a | 4812 | |
5005acfe | 4813 | enablestring= |
e46d2a18 VS |
4814 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5 |
4815 | echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6 | |
10f2d63a | 4816 | no_cache=0 |
e46d2a18 VS |
4817 | # Check whether --enable-filesystem or --disable-filesystem was given. |
4818 | if test "${enable_filesystem+set}" = set; then | |
4819 | enableval="$enable_filesystem" | |
e6cc62c6 | 4820 | |
10f2d63a | 4821 | if test "$enableval" = yes; then |
e46d2a18 | 4822 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' |
10f2d63a | 4823 | else |
e46d2a18 | 4824 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' |
10f2d63a | 4825 | fi |
e6cc62c6 | 4826 | |
10f2d63a | 4827 | else |
e6cc62c6 | 4828 | |
e46d2a18 | 4829 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
10f2d63a VZ |
4830 | if test "x$LINE" != x ; then |
4831 | eval "DEFAULT_$LINE" | |
4832 | else | |
4833 | no_cache=1 | |
4834 | fi | |
4835 | ||
e46d2a18 | 4836 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM |
10f2d63a | 4837 | |
e6cc62c6 | 4838 | fi; |
10f2d63a | 4839 | |
e46d2a18 | 4840 | eval "$ac_cv_use_filesystem" |
10f2d63a | 4841 | if test "$no_cache" != 1; then |
e46d2a18 | 4842 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4843 | fi |
4844 | ||
e46d2a18 | 4845 | if test "$wxUSE_FILESYSTEM" = yes; then |
e6cc62c6 VS |
4846 | echo "$as_me:$LINENO: result: yes" >&5 |
4847 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4848 | else |
e6cc62c6 VS |
4849 | echo "$as_me:$LINENO: result: no" >&5 |
4850 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4851 | fi |
e6cc62c6 | 4852 | |
10f2d63a | 4853 | |
5005acfe | 4854 | enablestring= |
e46d2a18 VS |
4855 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5 |
4856 | echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6 | |
10f2d63a | 4857 | no_cache=0 |
e46d2a18 VS |
4858 | # Check whether --enable-fontmap or --disable-fontmap was given. |
4859 | if test "${enable_fontmap+set}" = set; then | |
4860 | enableval="$enable_fontmap" | |
e6cc62c6 | 4861 | |
10f2d63a | 4862 | if test "$enableval" = yes; then |
e46d2a18 | 4863 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 4864 | else |
e46d2a18 | 4865 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 4866 | fi |
e6cc62c6 | 4867 | |
10f2d63a | 4868 | else |
e6cc62c6 | 4869 | |
e46d2a18 | 4870 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` |
10f2d63a VZ |
4871 | if test "x$LINE" != x ; then |
4872 | eval "DEFAULT_$LINE" | |
4873 | else | |
4874 | no_cache=1 | |
4875 | fi | |
4876 | ||
e46d2a18 | 4877 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
10f2d63a | 4878 | |
e6cc62c6 | 4879 | fi; |
10f2d63a | 4880 | |
e46d2a18 | 4881 | eval "$ac_cv_use_fontmap" |
10f2d63a | 4882 | if test "$no_cache" != 1; then |
e46d2a18 | 4883 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4884 | fi |
4885 | ||
e46d2a18 | 4886 | if test "$wxUSE_FONTMAP" = yes; then |
e6cc62c6 VS |
4887 | echo "$as_me:$LINENO: result: yes" >&5 |
4888 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4889 | else |
e6cc62c6 VS |
4890 | echo "$as_me:$LINENO: result: no" >&5 |
4891 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4892 | fi |
e6cc62c6 | 4893 | |
10f2d63a | 4894 | |
5005acfe | 4895 | enablestring= |
e46d2a18 VS |
4896 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5 |
4897 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6 | |
10f2d63a | 4898 | no_cache=0 |
e46d2a18 VS |
4899 | # Check whether --enable-fs_inet or --disable-fs_inet was given. |
4900 | if test "${enable_fs_inet+set}" = set; then | |
4901 | enableval="$enable_fs_inet" | |
e6cc62c6 | 4902 | |
10f2d63a | 4903 | if test "$enableval" = yes; then |
e46d2a18 | 4904 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' |
10f2d63a | 4905 | else |
e46d2a18 | 4906 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' |
10f2d63a | 4907 | fi |
e6cc62c6 | 4908 | |
10f2d63a | 4909 | else |
e6cc62c6 | 4910 | |
e46d2a18 | 4911 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
10f2d63a VZ |
4912 | if test "x$LINE" != x ; then |
4913 | eval "DEFAULT_$LINE" | |
4914 | else | |
4915 | no_cache=1 | |
4916 | fi | |
4917 | ||
e46d2a18 | 4918 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET |
10f2d63a | 4919 | |
e6cc62c6 | 4920 | fi; |
10f2d63a | 4921 | |
e46d2a18 | 4922 | eval "$ac_cv_use_fs_inet" |
10f2d63a | 4923 | if test "$no_cache" != 1; then |
e46d2a18 | 4924 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4925 | fi |
4926 | ||
e46d2a18 | 4927 | if test "$wxUSE_FS_INET" = yes; then |
e6cc62c6 VS |
4928 | echo "$as_me:$LINENO: result: yes" >&5 |
4929 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4930 | else |
e6cc62c6 VS |
4931 | echo "$as_me:$LINENO: result: no" >&5 |
4932 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4933 | fi |
e6cc62c6 | 4934 | |
10f2d63a | 4935 | |
5005acfe | 4936 | enablestring= |
e46d2a18 VS |
4937 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5 |
4938 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6 | |
a3a584a7 | 4939 | no_cache=0 |
e46d2a18 VS |
4940 | # Check whether --enable-fs_zip or --disable-fs_zip was given. |
4941 | if test "${enable_fs_zip+set}" = set; then | |
4942 | enableval="$enable_fs_zip" | |
e6cc62c6 | 4943 | |
a3a584a7 | 4944 | if test "$enableval" = yes; then |
e46d2a18 | 4945 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' |
a3a584a7 | 4946 | else |
e46d2a18 | 4947 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' |
a3a584a7 | 4948 | fi |
e6cc62c6 | 4949 | |
a3a584a7 | 4950 | else |
e6cc62c6 | 4951 | |
e46d2a18 | 4952 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
a3a584a7 VZ |
4953 | if test "x$LINE" != x ; then |
4954 | eval "DEFAULT_$LINE" | |
4955 | else | |
4956 | no_cache=1 | |
4957 | fi | |
4958 | ||
e46d2a18 | 4959 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP |
a3a584a7 | 4960 | |
e6cc62c6 | 4961 | fi; |
a3a584a7 | 4962 | |
e46d2a18 | 4963 | eval "$ac_cv_use_fs_zip" |
a3a584a7 | 4964 | if test "$no_cache" != 1; then |
e46d2a18 | 4965 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp |
a3a584a7 VZ |
4966 | fi |
4967 | ||
e46d2a18 | 4968 | if test "$wxUSE_FS_ZIP" = yes; then |
e6cc62c6 VS |
4969 | echo "$as_me:$LINENO: result: yes" >&5 |
4970 | echo "${ECHO_T}yes" >&6 | |
a3a584a7 | 4971 | else |
e6cc62c6 VS |
4972 | echo "$as_me:$LINENO: result: no" >&5 |
4973 | echo "${ECHO_T}no" >&6 | |
a3a584a7 | 4974 | fi |
e6cc62c6 | 4975 | |
a3a584a7 | 4976 | |
5005acfe | 4977 | enablestring= |
e46d2a18 VS |
4978 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5 |
4979 | echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6 | |
10f2d63a | 4980 | no_cache=0 |
e46d2a18 VS |
4981 | # Check whether --enable-geometry or --disable-geometry was given. |
4982 | if test "${enable_geometry+set}" = set; then | |
4983 | enableval="$enable_geometry" | |
e6cc62c6 | 4984 | |
10f2d63a | 4985 | if test "$enableval" = yes; then |
e46d2a18 | 4986 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' |
10f2d63a | 4987 | else |
e46d2a18 | 4988 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' |
10f2d63a | 4989 | fi |
e6cc62c6 | 4990 | |
10f2d63a | 4991 | else |
e6cc62c6 | 4992 | |
e46d2a18 | 4993 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
10f2d63a VZ |
4994 | if test "x$LINE" != x ; then |
4995 | eval "DEFAULT_$LINE" | |
4996 | else | |
4997 | no_cache=1 | |
4998 | fi | |
4999 | ||
e46d2a18 | 5000 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY |
10f2d63a | 5001 | |
e6cc62c6 | 5002 | fi; |
10f2d63a | 5003 | |
e46d2a18 | 5004 | eval "$ac_cv_use_geometry" |
10f2d63a | 5005 | if test "$no_cache" != 1; then |
e46d2a18 | 5006 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5007 | fi |
5008 | ||
e46d2a18 | 5009 | if test "$wxUSE_GEOMETRY" = yes; then |
e6cc62c6 VS |
5010 | echo "$as_me:$LINENO: result: yes" >&5 |
5011 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5012 | else |
e6cc62c6 VS |
5013 | echo "$as_me:$LINENO: result: no" >&5 |
5014 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5015 | fi |
e6cc62c6 | 5016 | |
10f2d63a | 5017 | |
5005acfe | 5018 | enablestring= |
e46d2a18 VS |
5019 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5 |
5020 | echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6 | |
10f2d63a | 5021 | no_cache=0 |
e46d2a18 VS |
5022 | # Check whether --enable-log or --disable-log was given. |
5023 | if test "${enable_log+set}" = set; then | |
5024 | enableval="$enable_log" | |
e6cc62c6 | 5025 | |
10f2d63a | 5026 | if test "$enableval" = yes; then |
e46d2a18 | 5027 | ac_cv_use_log='wxUSE_LOG=yes' |
10f2d63a | 5028 | else |
e46d2a18 | 5029 | ac_cv_use_log='wxUSE_LOG=no' |
10f2d63a | 5030 | fi |
e6cc62c6 | 5031 | |
10f2d63a | 5032 | else |
e6cc62c6 | 5033 | |
e46d2a18 | 5034 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
10f2d63a VZ |
5035 | if test "x$LINE" != x ; then |
5036 | eval "DEFAULT_$LINE" | |
5037 | else | |
5038 | no_cache=1 | |
5039 | fi | |
5040 | ||
e46d2a18 | 5041 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG |
10f2d63a | 5042 | |
e6cc62c6 | 5043 | fi; |
10f2d63a | 5044 | |
e46d2a18 | 5045 | eval "$ac_cv_use_log" |
10f2d63a | 5046 | if test "$no_cache" != 1; then |
e46d2a18 | 5047 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5048 | fi |
5049 | ||
e46d2a18 | 5050 | if test "$wxUSE_LOG" = yes; then |
e6cc62c6 VS |
5051 | echo "$as_me:$LINENO: result: yes" >&5 |
5052 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5053 | else |
e6cc62c6 VS |
5054 | echo "$as_me:$LINENO: result: no" >&5 |
5055 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5056 | fi |
e6cc62c6 | 5057 | |
10f2d63a | 5058 | |
5005acfe | 5059 | enablestring= |
e46d2a18 VS |
5060 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5 |
5061 | echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6 | |
10f2d63a | 5062 | no_cache=0 |
e46d2a18 VS |
5063 | # Check whether --enable-longlong or --disable-longlong was given. |
5064 | if test "${enable_longlong+set}" = set; then | |
5065 | enableval="$enable_longlong" | |
e6cc62c6 | 5066 | |
1e6feb95 | 5067 | if test "$enableval" = yes; then |
e46d2a18 | 5068 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' |
1e6feb95 | 5069 | else |
e46d2a18 | 5070 | ac_cv_use_longlong='wxUSE_LONGLONG=no' |
1e6feb95 | 5071 | fi |
e6cc62c6 | 5072 | |
1e6feb95 | 5073 | else |
e6cc62c6 | 5074 | |
e46d2a18 | 5075 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
1e6feb95 VZ |
5076 | if test "x$LINE" != x ; then |
5077 | eval "DEFAULT_$LINE" | |
5078 | else | |
5079 | no_cache=1 | |
5080 | fi | |
5081 | ||
e46d2a18 | 5082 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG |
1e6feb95 | 5083 | |
e6cc62c6 | 5084 | fi; |
1e6feb95 | 5085 | |
e46d2a18 | 5086 | eval "$ac_cv_use_longlong" |
1e6feb95 | 5087 | if test "$no_cache" != 1; then |
e46d2a18 | 5088 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp |
1e6feb95 VZ |
5089 | fi |
5090 | ||
e46d2a18 VS |
5091 | if test "$wxUSE_LONGLONG" = yes; then |
5092 | echo "$as_me:$LINENO: result: yes" >&5 | |
5093 | echo "${ECHO_T}yes" >&6 | |
5094 | else | |
5095 | echo "$as_me:$LINENO: result: no" >&5 | |
5096 | echo "${ECHO_T}no" >&6 | |
5097 | fi | |
5098 | ||
5099 | ||
5100 | enablestring= | |
5101 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5 | |
5102 | echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6 | |
5103 | no_cache=0 | |
5104 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
5105 | if test "${enable_mimetype+set}" = set; then | |
5106 | enableval="$enable_mimetype" | |
5107 | ||
5108 | if test "$enableval" = yes; then | |
5109 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
5110 | else | |
5111 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
5112 | fi | |
5113 | ||
5114 | else | |
5115 | ||
5116 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
5117 | if test "x$LINE" != x ; then | |
5118 | eval "DEFAULT_$LINE" | |
5119 | else | |
5120 | no_cache=1 | |
5121 | fi | |
5122 | ||
5123 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
5124 | ||
5125 | fi; | |
5126 | ||
5127 | eval "$ac_cv_use_mimetype" | |
5128 | if test "$no_cache" != 1; then | |
5129 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
5130 | fi | |
5131 | ||
5132 | if test "$wxUSE_MIMETYPE" = yes; then | |
e6cc62c6 VS |
5133 | echo "$as_me:$LINENO: result: yes" >&5 |
5134 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 5135 | else |
e6cc62c6 VS |
5136 | echo "$as_me:$LINENO: result: no" >&5 |
5137 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 5138 | fi |
e6cc62c6 | 5139 | |
1e6feb95 | 5140 | |
5005acfe | 5141 | enablestring= |
e6cc62c6 VS |
5142 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5 |
5143 | echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6 | |
a72a4bfa VS |
5144 | no_cache=0 |
5145 | # Check whether --enable-mslu or --disable-mslu was given. | |
5146 | if test "${enable_mslu+set}" = set; then | |
5147 | enableval="$enable_mslu" | |
e6cc62c6 | 5148 | |
a72a4bfa VS |
5149 | if test "$enableval" = yes; then |
5150 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
5151 | else | |
5152 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
5153 | fi | |
e6cc62c6 | 5154 | |
a72a4bfa | 5155 | else |
e6cc62c6 | 5156 | |
a72a4bfa VS |
5157 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` |
5158 | if test "x$LINE" != x ; then | |
5159 | eval "DEFAULT_$LINE" | |
5160 | else | |
5161 | no_cache=1 | |
5162 | fi | |
5163 | ||
5164 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
a72a4bfa | 5165 | |
e6cc62c6 | 5166 | fi; |
a72a4bfa VS |
5167 | |
5168 | eval "$ac_cv_use_mslu" | |
5169 | if test "$no_cache" != 1; then | |
5170 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
5171 | fi | |
5172 | ||
5173 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
e6cc62c6 VS |
5174 | echo "$as_me:$LINENO: result: yes" >&5 |
5175 | echo "${ECHO_T}yes" >&6 | |
a72a4bfa | 5176 | else |
e6cc62c6 VS |
5177 | echo "$as_me:$LINENO: result: no" >&5 |
5178 | echo "${ECHO_T}no" >&6 | |
a72a4bfa | 5179 | fi |
e6cc62c6 | 5180 | |
a72a4bfa | 5181 | |
5005acfe | 5182 | enablestring= |
e46d2a18 VS |
5183 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5 |
5184 | echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6 | |
1e6feb95 | 5185 | no_cache=0 |
e46d2a18 VS |
5186 | # Check whether --enable-snglinst or --disable-snglinst was given. |
5187 | if test "${enable_snglinst+set}" = set; then | |
5188 | enableval="$enable_snglinst" | |
e6cc62c6 | 5189 | |
1e6feb95 | 5190 | if test "$enableval" = yes; then |
e46d2a18 | 5191 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' |
10f2d63a | 5192 | else |
e46d2a18 | 5193 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' |
10f2d63a | 5194 | fi |
e6cc62c6 | 5195 | |
10f2d63a | 5196 | else |
e6cc62c6 | 5197 | |
e46d2a18 | 5198 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
10f2d63a VZ |
5199 | if test "x$LINE" != x ; then |
5200 | eval "DEFAULT_$LINE" | |
5201 | else | |
5202 | no_cache=1 | |
5203 | fi | |
5204 | ||
e46d2a18 | 5205 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER |
10f2d63a | 5206 | |
e6cc62c6 | 5207 | fi; |
10f2d63a | 5208 | |
e46d2a18 | 5209 | eval "$ac_cv_use_snglinst" |
10f2d63a | 5210 | if test "$no_cache" != 1; then |
e46d2a18 | 5211 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5212 | fi |
5213 | ||
e46d2a18 VS |
5214 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then |
5215 | echo "$as_me:$LINENO: result: yes" >&5 | |
5216 | echo "${ECHO_T}yes" >&6 | |
5217 | else | |
5218 | echo "$as_me:$LINENO: result: no" >&5 | |
5219 | echo "${ECHO_T}no" >&6 | |
5220 | fi | |
5221 | ||
5222 | ||
5223 | enablestring= | |
5224 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5 | |
5225 | echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6 | |
5226 | no_cache=0 | |
5227 | # Check whether --enable-streams or --disable-streams was given. | |
5228 | if test "${enable_streams+set}" = set; then | |
5229 | enableval="$enable_streams" | |
5230 | ||
5231 | if test "$enableval" = yes; then | |
5232 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
5233 | else | |
5234 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
5235 | fi | |
5236 | ||
5237 | else | |
5238 | ||
5239 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
5240 | if test "x$LINE" != x ; then | |
5241 | eval "DEFAULT_$LINE" | |
5242 | else | |
5243 | no_cache=1 | |
5244 | fi | |
5245 | ||
5246 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
5247 | ||
5248 | fi; | |
5249 | ||
5250 | eval "$ac_cv_use_streams" | |
5251 | if test "$no_cache" != 1; then | |
5252 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
5253 | fi | |
5254 | ||
5255 | if test "$wxUSE_STREAMS" = yes; then | |
e6cc62c6 VS |
5256 | echo "$as_me:$LINENO: result: yes" >&5 |
5257 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5258 | else |
e6cc62c6 VS |
5259 | echo "$as_me:$LINENO: result: no" >&5 |
5260 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5261 | fi |
e6cc62c6 | 5262 | |
10f2d63a | 5263 | |
5005acfe | 5264 | enablestring= |
e6cc62c6 VS |
5265 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5 |
5266 | echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6 | |
10f2d63a VZ |
5267 | no_cache=0 |
5268 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
5269 | if test "${enable_std_iostreams+set}" = set; then | |
5270 | enableval="$enable_std_iostreams" | |
e6cc62c6 | 5271 | |
10f2d63a VZ |
5272 | if test "$enableval" = yes; then |
5273 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
5274 | else | |
5275 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
5276 | fi | |
e6cc62c6 | 5277 | |
10f2d63a | 5278 | else |
e6cc62c6 | 5279 | |
10f2d63a VZ |
5280 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
5281 | if test "x$LINE" != x ; then | |
5282 | eval "DEFAULT_$LINE" | |
5283 | else | |
5284 | no_cache=1 | |
5285 | fi | |
5286 | ||
5287 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
10f2d63a | 5288 | |
e6cc62c6 | 5289 | fi; |
10f2d63a VZ |
5290 | |
5291 | eval "$ac_cv_use_std_iostreams" | |
5292 | if test "$no_cache" != 1; then | |
5293 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
5294 | fi | |
5295 | ||
5296 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
e6cc62c6 VS |
5297 | echo "$as_me:$LINENO: result: yes" >&5 |
5298 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5299 | else |
e6cc62c6 VS |
5300 | echo "$as_me:$LINENO: result: no" >&5 |
5301 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5302 | fi |
e6cc62c6 | 5303 | |
10f2d63a | 5304 | |
5005acfe | 5305 | enablestring= |
e46d2a18 VS |
5306 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5 |
5307 | echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6 | |
24528b0c | 5308 | no_cache=0 |
e46d2a18 VS |
5309 | # Check whether --enable-stopwatch or --disable-stopwatch was given. |
5310 | if test "${enable_stopwatch+set}" = set; then | |
5311 | enableval="$enable_stopwatch" | |
e6cc62c6 | 5312 | |
24528b0c | 5313 | if test "$enableval" = yes; then |
e46d2a18 | 5314 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' |
24528b0c | 5315 | else |
e46d2a18 | 5316 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' |
24528b0c | 5317 | fi |
e6cc62c6 | 5318 | |
24528b0c | 5319 | else |
e6cc62c6 | 5320 | |
e46d2a18 | 5321 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` |
24528b0c VS |
5322 | if test "x$LINE" != x ; then |
5323 | eval "DEFAULT_$LINE" | |
5324 | else | |
5325 | no_cache=1 | |
5326 | fi | |
5327 | ||
e46d2a18 | 5328 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH |
24528b0c | 5329 | |
e6cc62c6 | 5330 | fi; |
24528b0c | 5331 | |
e46d2a18 | 5332 | eval "$ac_cv_use_stopwatch" |
24528b0c | 5333 | if test "$no_cache" != 1; then |
e46d2a18 | 5334 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp |
24528b0c VS |
5335 | fi |
5336 | ||
e46d2a18 | 5337 | if test "$wxUSE_STOPWATCH" = yes; then |
e6cc62c6 VS |
5338 | echo "$as_me:$LINENO: result: yes" >&5 |
5339 | echo "${ECHO_T}yes" >&6 | |
24528b0c | 5340 | else |
e6cc62c6 VS |
5341 | echo "$as_me:$LINENO: result: no" >&5 |
5342 | echo "${ECHO_T}no" >&6 | |
24528b0c | 5343 | fi |
e6cc62c6 | 5344 | |
24528b0c | 5345 | |
5005acfe | 5346 | enablestring= |
e46d2a18 VS |
5347 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5 |
5348 | echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6 | |
10f2d63a | 5349 | no_cache=0 |
e46d2a18 VS |
5350 | # Check whether --enable-system_options or --disable-system_options was given. |
5351 | if test "${enable_system_options+set}" = set; then | |
5352 | enableval="$enable_system_options" | |
e6cc62c6 | 5353 | |
10f2d63a | 5354 | if test "$enableval" = yes; then |
e46d2a18 | 5355 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' |
10f2d63a | 5356 | else |
e46d2a18 | 5357 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' |
10f2d63a | 5358 | fi |
e6cc62c6 | 5359 | |
10f2d63a | 5360 | else |
e6cc62c6 | 5361 | |
e46d2a18 | 5362 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` |
10f2d63a VZ |
5363 | if test "x$LINE" != x ; then |
5364 | eval "DEFAULT_$LINE" | |
5365 | else | |
5366 | no_cache=1 | |
5367 | fi | |
5368 | ||
e46d2a18 | 5369 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS |
10f2d63a | 5370 | |
e6cc62c6 | 5371 | fi; |
10f2d63a | 5372 | |
e46d2a18 | 5373 | eval "$ac_cv_use_system_options" |
10f2d63a | 5374 | if test "$no_cache" != 1; then |
e46d2a18 | 5375 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5376 | fi |
5377 | ||
e46d2a18 | 5378 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then |
e6cc62c6 VS |
5379 | echo "$as_me:$LINENO: result: yes" >&5 |
5380 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5381 | else |
e6cc62c6 VS |
5382 | echo "$as_me:$LINENO: result: no" >&5 |
5383 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5384 | fi |
e6cc62c6 | 5385 | |
10f2d63a | 5386 | |
5005acfe | 5387 | enablestring= |
e46d2a18 VS |
5388 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5 |
5389 | echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6 | |
10f2d63a | 5390 | no_cache=0 |
e46d2a18 VS |
5391 | # Check whether --enable-textbuf or --disable-textbuf was given. |
5392 | if test "${enable_textbuf+set}" = set; then | |
5393 | enableval="$enable_textbuf" | |
e6cc62c6 | 5394 | |
10f2d63a | 5395 | if test "$enableval" = yes; then |
e46d2a18 | 5396 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' |
10f2d63a | 5397 | else |
e46d2a18 | 5398 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' |
10f2d63a | 5399 | fi |
e6cc62c6 | 5400 | |
10f2d63a | 5401 | else |
e6cc62c6 | 5402 | |
e46d2a18 | 5403 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` |
10f2d63a VZ |
5404 | if test "x$LINE" != x ; then |
5405 | eval "DEFAULT_$LINE" | |
5406 | else | |
5407 | no_cache=1 | |
5408 | fi | |
5409 | ||
e46d2a18 | 5410 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER |
10f2d63a | 5411 | |
e6cc62c6 | 5412 | fi; |
10f2d63a | 5413 | |
e46d2a18 | 5414 | eval "$ac_cv_use_textbuf" |
10f2d63a | 5415 | if test "$no_cache" != 1; then |
e46d2a18 | 5416 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5417 | fi |
5418 | ||
e46d2a18 | 5419 | if test "$wxUSE_TEXTBUFFER" = yes; then |
e6cc62c6 VS |
5420 | echo "$as_me:$LINENO: result: yes" >&5 |
5421 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5422 | else |
e6cc62c6 VS |
5423 | echo "$as_me:$LINENO: result: no" >&5 |
5424 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5425 | fi |
e6cc62c6 | 5426 | |
10f2d63a | 5427 | |
5005acfe | 5428 | enablestring= |
e46d2a18 VS |
5429 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5 |
5430 | echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6 | |
10f2d63a | 5431 | no_cache=0 |
e46d2a18 VS |
5432 | # Check whether --enable-textfile or --disable-textfile was given. |
5433 | if test "${enable_textfile+set}" = set; then | |
5434 | enableval="$enable_textfile" | |
e6cc62c6 | 5435 | |
10f2d63a | 5436 | if test "$enableval" = yes; then |
e46d2a18 | 5437 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 5438 | else |
e46d2a18 | 5439 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 5440 | fi |
e6cc62c6 | 5441 | |
10f2d63a | 5442 | else |
e6cc62c6 | 5443 | |
e46d2a18 | 5444 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
5445 | if test "x$LINE" != x ; then |
5446 | eval "DEFAULT_$LINE" | |
5447 | else | |
5448 | no_cache=1 | |
5449 | fi | |
5450 | ||
e46d2a18 | 5451 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
10f2d63a | 5452 | |
e6cc62c6 | 5453 | fi; |
10f2d63a | 5454 | |
e46d2a18 | 5455 | eval "$ac_cv_use_textfile" |
10f2d63a | 5456 | if test "$no_cache" != 1; then |
e46d2a18 | 5457 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5458 | fi |
5459 | ||
e46d2a18 | 5460 | if test "$wxUSE_TEXTFILE" = yes; then |
e6cc62c6 VS |
5461 | echo "$as_me:$LINENO: result: yes" >&5 |
5462 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5463 | else |
e6cc62c6 VS |
5464 | echo "$as_me:$LINENO: result: no" >&5 |
5465 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5466 | fi |
e6cc62c6 | 5467 | |
8284b0c5 | 5468 | |
5005acfe | 5469 | enablestring= |
e46d2a18 VS |
5470 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5 |
5471 | echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6 | |
eb4efbdc | 5472 | no_cache=0 |
e46d2a18 VS |
5473 | # Check whether --enable-timer or --disable-timer was given. |
5474 | if test "${enable_timer+set}" = set; then | |
5475 | enableval="$enable_timer" | |
e6cc62c6 | 5476 | |
eb4efbdc | 5477 | if test "$enableval" = yes; then |
e46d2a18 | 5478 | ac_cv_use_timer='wxUSE_TIMER=yes' |
eb4efbdc | 5479 | else |
e46d2a18 | 5480 | ac_cv_use_timer='wxUSE_TIMER=no' |
eb4efbdc | 5481 | fi |
e6cc62c6 | 5482 | |
eb4efbdc | 5483 | else |
e6cc62c6 | 5484 | |
e46d2a18 | 5485 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` |
eb4efbdc VZ |
5486 | if test "x$LINE" != x ; then |
5487 | eval "DEFAULT_$LINE" | |
5488 | else | |
5489 | no_cache=1 | |
5490 | fi | |
5491 | ||
e46d2a18 | 5492 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
eb4efbdc | 5493 | |
e6cc62c6 | 5494 | fi; |
eb4efbdc | 5495 | |
e46d2a18 | 5496 | eval "$ac_cv_use_timer" |
eb4efbdc | 5497 | if test "$no_cache" != 1; then |
e46d2a18 | 5498 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
eb4efbdc VZ |
5499 | fi |
5500 | ||
e46d2a18 | 5501 | if test "$wxUSE_TIMER" = yes; then |
e6cc62c6 VS |
5502 | echo "$as_me:$LINENO: result: yes" >&5 |
5503 | echo "${ECHO_T}yes" >&6 | |
eb4efbdc | 5504 | else |
e6cc62c6 VS |
5505 | echo "$as_me:$LINENO: result: no" >&5 |
5506 | echo "${ECHO_T}no" >&6 | |
eb4efbdc | 5507 | fi |
e6cc62c6 | 5508 | |
eb4efbdc | 5509 | |
5005acfe | 5510 | enablestring= |
e46d2a18 VS |
5511 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5 |
5512 | echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6 | |
4f3c5f06 | 5513 | no_cache=0 |
e46d2a18 VS |
5514 | # Check whether --enable-unicode or --disable-unicode was given. |
5515 | if test "${enable_unicode+set}" = set; then | |
5516 | enableval="$enable_unicode" | |
e6cc62c6 | 5517 | |
4f3c5f06 | 5518 | if test "$enableval" = yes; then |
e46d2a18 | 5519 | ac_cv_use_unicode='wxUSE_UNICODE=yes' |
4f3c5f06 | 5520 | else |
e46d2a18 | 5521 | ac_cv_use_unicode='wxUSE_UNICODE=no' |
4f3c5f06 | 5522 | fi |
e6cc62c6 | 5523 | |
4f3c5f06 | 5524 | else |
e6cc62c6 | 5525 | |
e46d2a18 | 5526 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` |
4f3c5f06 VZ |
5527 | if test "x$LINE" != x ; then |
5528 | eval "DEFAULT_$LINE" | |
5529 | else | |
5530 | no_cache=1 | |
5531 | fi | |
5532 | ||
e46d2a18 | 5533 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE |
4f3c5f06 | 5534 | |
e6cc62c6 | 5535 | fi; |
4f3c5f06 | 5536 | |
e46d2a18 | 5537 | eval "$ac_cv_use_unicode" |
4f3c5f06 | 5538 | if test "$no_cache" != 1; then |
e46d2a18 | 5539 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp |
4f3c5f06 VZ |
5540 | fi |
5541 | ||
e46d2a18 | 5542 | if test "$wxUSE_UNICODE" = yes; then |
e6cc62c6 VS |
5543 | echo "$as_me:$LINENO: result: yes" >&5 |
5544 | echo "${ECHO_T}yes" >&6 | |
4f3c5f06 | 5545 | else |
e6cc62c6 VS |
5546 | echo "$as_me:$LINENO: result: no" >&5 |
5547 | echo "${ECHO_T}no" >&6 | |
4f3c5f06 | 5548 | fi |
e6cc62c6 | 5549 | |
52127426 | 5550 | |
e46d2a18 | 5551 | enablestring= |
002ed9af VS |
5552 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5 |
5553 | echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6 | |
e46d2a18 | 5554 | no_cache=0 |
002ed9af VS |
5555 | # Check whether --enable-sound or --disable-sound was given. |
5556 | if test "${enable_sound+set}" = set; then | |
5557 | enableval="$enable_sound" | |
e46d2a18 VS |
5558 | |
5559 | if test "$enableval" = yes; then | |
002ed9af | 5560 | ac_cv_use_sound='wxUSE_SOUND=yes' |
e46d2a18 | 5561 | else |
002ed9af | 5562 | ac_cv_use_sound='wxUSE_SOUND=no' |
e46d2a18 VS |
5563 | fi |
5564 | ||
5565 | else | |
5566 | ||
002ed9af | 5567 | LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}` |
e46d2a18 VS |
5568 | if test "x$LINE" != x ; then |
5569 | eval "DEFAULT_$LINE" | |
5570 | else | |
5571 | no_cache=1 | |
5572 | fi | |
5573 | ||
002ed9af | 5574 | ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND |
e46d2a18 VS |
5575 | |
5576 | fi; | |
5577 | ||
002ed9af | 5578 | eval "$ac_cv_use_sound" |
e46d2a18 | 5579 | if test "$no_cache" != 1; then |
002ed9af | 5580 | echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp |
e46d2a18 VS |
5581 | fi |
5582 | ||
002ed9af | 5583 | if test "$wxUSE_SOUND" = yes; then |
e46d2a18 VS |
5584 | echo "$as_me:$LINENO: result: yes" >&5 |
5585 | echo "${ECHO_T}yes" >&6 | |
5586 | else | |
5587 | echo "$as_me:$LINENO: result: no" >&5 | |
5588 | echo "${ECHO_T}no" >&6 | |
5589 | fi | |
5590 | ||
8284b0c5 | 5591 | |
5005acfe | 5592 | enablestring= |
e46d2a18 VS |
5593 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5 |
5594 | echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6 | |
1e6feb95 | 5595 | no_cache=0 |
e46d2a18 VS |
5596 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. |
5597 | if test "${enable_wxprintfv+set}" = set; then | |
5598 | enableval="$enable_wxprintfv" | |
e6cc62c6 | 5599 | |
1e6feb95 | 5600 | if test "$enableval" = yes; then |
e46d2a18 | 5601 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
1e6feb95 | 5602 | else |
e46d2a18 | 5603 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' |
1e6feb95 | 5604 | fi |
e6cc62c6 | 5605 | |
1e6feb95 | 5606 | else |
e6cc62c6 | 5607 | |
e46d2a18 | 5608 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
1e6feb95 VZ |
5609 | if test "x$LINE" != x ; then |
5610 | eval "DEFAULT_$LINE" | |
5611 | else | |
5612 | no_cache=1 | |
5613 | fi | |
5614 | ||
e46d2a18 | 5615 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF |
1e6feb95 | 5616 | |
e6cc62c6 | 5617 | fi; |
1e6feb95 | 5618 | |
e46d2a18 | 5619 | eval "$ac_cv_use_wxprintfv" |
1e6feb95 | 5620 | if test "$no_cache" != 1; then |
e46d2a18 | 5621 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp |
1e6feb95 VZ |
5622 | fi |
5623 | ||
e46d2a18 | 5624 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then |
e6cc62c6 VS |
5625 | echo "$as_me:$LINENO: result: yes" >&5 |
5626 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 5627 | else |
e6cc62c6 VS |
5628 | echo "$as_me:$LINENO: result: no" >&5 |
5629 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 5630 | fi |
e6cc62c6 | 5631 | |
1e6feb95 | 5632 | |
5005acfe | 5633 | enablestring= |
e46d2a18 VS |
5634 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5 |
5635 | echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6 | |
3e44f09d | 5636 | no_cache=0 |
e46d2a18 VS |
5637 | # Check whether --enable-zipstream or --disable-zipstream was given. |
5638 | if test "${enable_zipstream+set}" = set; then | |
5639 | enableval="$enable_zipstream" | |
e6cc62c6 | 5640 | |
3e44f09d | 5641 | if test "$enableval" = yes; then |
e46d2a18 | 5642 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' |
3e44f09d | 5643 | else |
e46d2a18 | 5644 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' |
3e44f09d | 5645 | fi |
e6cc62c6 | 5646 | |
3e44f09d | 5647 | else |
e6cc62c6 | 5648 | |
e46d2a18 | 5649 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
3e44f09d VZ |
5650 | if test "x$LINE" != x ; then |
5651 | eval "DEFAULT_$LINE" | |
5652 | else | |
5653 | no_cache=1 | |
5654 | fi | |
5655 | ||
e46d2a18 | 5656 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM |
3e44f09d | 5657 | |
e6cc62c6 | 5658 | fi; |
3e44f09d | 5659 | |
e46d2a18 | 5660 | eval "$ac_cv_use_zipstream" |
3e44f09d | 5661 | if test "$no_cache" != 1; then |
e46d2a18 | 5662 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp |
3e44f09d VZ |
5663 | fi |
5664 | ||
e46d2a18 | 5665 | if test "$wxUSE_ZIPSTREAM" = yes; then |
e6cc62c6 VS |
5666 | echo "$as_me:$LINENO: result: yes" >&5 |
5667 | echo "${ECHO_T}yes" >&6 | |
3e44f09d | 5668 | else |
e6cc62c6 VS |
5669 | echo "$as_me:$LINENO: result: no" >&5 |
5670 | echo "${ECHO_T}no" >&6 | |
3e44f09d | 5671 | fi |
e6cc62c6 | 5672 | |
8284b0c5 | 5673 | |
7015ef3a VZ |
5674 | enablestring= |
5675 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gzstream" >&5 | |
5676 | echo $ECHO_N "checking for --${enablestring:-enable}-gzstream... $ECHO_C" >&6 | |
5677 | no_cache=0 | |
5678 | # Check whether --enable-gzstream or --disable-gzstream was given. | |
5679 | if test "${enable_gzstream+set}" = set; then | |
5680 | enableval="$enable_gzstream" | |
5681 | ||
5682 | if test "$enableval" = yes; then | |
5683 | ac_cv_use_gzstream='wxUSE_GZSTREAM=yes' | |
5684 | else | |
5685 | ac_cv_use_gzstream='wxUSE_GZSTREAM=no' | |
5686 | fi | |
5687 | ||
5688 | else | |
5689 | ||
5690 | LINE=`grep "wxUSE_GZSTREAM" ${wx_arg_cache_file}` | |
5691 | if test "x$LINE" != x ; then | |
5692 | eval "DEFAULT_$LINE" | |
5693 | else | |
5694 | no_cache=1 | |
5695 | fi | |
5696 | ||
5697 | ac_cv_use_gzstream='wxUSE_GZSTREAM='$DEFAULT_wxUSE_GZSTREAM | |
5698 | ||
5699 | fi; | |
5700 | ||
5701 | eval "$ac_cv_use_gzstream" | |
5702 | if test "$no_cache" != 1; then | |
5703 | echo $ac_cv_use_gzstream >> ${wx_arg_cache_file}.tmp | |
5704 | fi | |
5705 | ||
5706 | if test "$wxUSE_GZSTREAM" = yes; then | |
5707 | echo "$as_me:$LINENO: result: yes" >&5 | |
5708 | echo "${ECHO_T}yes" >&6 | |
5709 | else | |
5710 | echo "$as_me:$LINENO: result: no" >&5 | |
5711 | echo "${ECHO_T}no" >&6 | |
5712 | fi | |
5713 | ||
5714 | ||
52127426 | 5715 | |
5005acfe | 5716 | enablestring= |
e6cc62c6 VS |
5717 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5 |
5718 | echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5719 | no_cache=0 |
5720 | # Check whether --enable-url or --disable-url was given. | |
5721 | if test "${enable_url+set}" = set; then | |
5722 | enableval="$enable_url" | |
e6cc62c6 | 5723 | |
4cdb0ab0 VS |
5724 | if test "$enableval" = yes; then |
5725 | ac_cv_use_url='wxUSE_URL=yes' | |
5726 | else | |
5727 | ac_cv_use_url='wxUSE_URL=no' | |
5728 | fi | |
e6cc62c6 | 5729 | |
4cdb0ab0 | 5730 | else |
e6cc62c6 | 5731 | |
4cdb0ab0 VS |
5732 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` |
5733 | if test "x$LINE" != x ; then | |
5734 | eval "DEFAULT_$LINE" | |
5735 | else | |
5736 | no_cache=1 | |
5737 | fi | |
5738 | ||
5739 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
4cdb0ab0 | 5740 | |
e6cc62c6 | 5741 | fi; |
4cdb0ab0 VS |
5742 | |
5743 | eval "$ac_cv_use_url" | |
5744 | if test "$no_cache" != 1; then | |
5745 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
5746 | fi | |
5747 | ||
5748 | if test "$wxUSE_URL" = yes; then | |
e6cc62c6 VS |
5749 | echo "$as_me:$LINENO: result: yes" >&5 |
5750 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5751 | else |
e6cc62c6 VS |
5752 | echo "$as_me:$LINENO: result: no" >&5 |
5753 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5754 | fi |
e6cc62c6 | 5755 | |
4cdb0ab0 | 5756 | |
5005acfe | 5757 | enablestring= |
e6cc62c6 VS |
5758 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5 |
5759 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5760 | no_cache=0 |
5761 | # Check whether --enable-protocol or --disable-protocol was given. | |
5762 | if test "${enable_protocol+set}" = set; then | |
5763 | enableval="$enable_protocol" | |
e6cc62c6 | 5764 | |
4cdb0ab0 VS |
5765 | if test "$enableval" = yes; then |
5766 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
5767 | else | |
5768 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
5769 | fi | |
e6cc62c6 | 5770 | |
4cdb0ab0 | 5771 | else |
e6cc62c6 | 5772 | |
4cdb0ab0 VS |
5773 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` |
5774 | if test "x$LINE" != x ; then | |
5775 | eval "DEFAULT_$LINE" | |
5776 | else | |
5777 | no_cache=1 | |
5778 | fi | |
5779 | ||
5780 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4cdb0ab0 | 5781 | |
e6cc62c6 | 5782 | fi; |
4cdb0ab0 VS |
5783 | |
5784 | eval "$ac_cv_use_protocol" | |
5785 | if test "$no_cache" != 1; then | |
5786 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
5787 | fi | |
5788 | ||
5789 | if test "$wxUSE_PROTOCOL" = yes; then | |
e6cc62c6 VS |
5790 | echo "$as_me:$LINENO: result: yes" >&5 |
5791 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5792 | else |
e6cc62c6 VS |
5793 | echo "$as_me:$LINENO: result: no" >&5 |
5794 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5795 | fi |
e6cc62c6 | 5796 | |
4cdb0ab0 | 5797 | |
5005acfe | 5798 | enablestring= |
e6cc62c6 VS |
5799 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5 |
5800 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5801 | no_cache=0 |
5802 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
5803 | if test "${enable_protocol_http+set}" = set; then | |
5804 | enableval="$enable_protocol_http" | |
e6cc62c6 | 5805 | |
4cdb0ab0 VS |
5806 | if test "$enableval" = yes; then |
5807 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
5808 | else | |
5809 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
5810 | fi | |
e6cc62c6 | 5811 | |
4cdb0ab0 | 5812 | else |
e6cc62c6 | 5813 | |
4cdb0ab0 VS |
5814 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` |
5815 | if test "x$LINE" != x ; then | |
5816 | eval "DEFAULT_$LINE" | |
5817 | else | |
5818 | no_cache=1 | |
5819 | fi | |
5820 | ||
5821 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4cdb0ab0 | 5822 | |
e6cc62c6 | 5823 | fi; |
4cdb0ab0 VS |
5824 | |
5825 | eval "$ac_cv_use_protocol_http" | |
5826 | if test "$no_cache" != 1; then | |
5827 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
5828 | fi | |
5829 | ||
5830 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
e6cc62c6 VS |
5831 | echo "$as_me:$LINENO: result: yes" >&5 |
5832 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5833 | else |
e6cc62c6 VS |
5834 | echo "$as_me:$LINENO: result: no" >&5 |
5835 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5836 | fi |
e6cc62c6 | 5837 | |
4cdb0ab0 | 5838 | |
5005acfe | 5839 | enablestring= |
e6cc62c6 VS |
5840 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5 |
5841 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5842 | no_cache=0 |
5843 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
5844 | if test "${enable_protocol_ftp+set}" = set; then | |
5845 | enableval="$enable_protocol_ftp" | |
e6cc62c6 | 5846 | |
4cdb0ab0 VS |
5847 | if test "$enableval" = yes; then |
5848 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
5849 | else | |
5850 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
5851 | fi | |
e6cc62c6 | 5852 | |
4cdb0ab0 | 5853 | else |
e6cc62c6 | 5854 | |
4cdb0ab0 VS |
5855 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` |
5856 | if test "x$LINE" != x ; then | |
5857 | eval "DEFAULT_$LINE" | |
5858 | else | |
5859 | no_cache=1 | |
5860 | fi | |
5861 | ||
5862 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4cdb0ab0 | 5863 | |
e6cc62c6 | 5864 | fi; |
4cdb0ab0 VS |
5865 | |
5866 | eval "$ac_cv_use_protocol_ftp" | |
5867 | if test "$no_cache" != 1; then | |
5868 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
5869 | fi | |
5870 | ||
5871 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
e6cc62c6 VS |
5872 | echo "$as_me:$LINENO: result: yes" >&5 |
5873 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5874 | else |
e6cc62c6 VS |
5875 | echo "$as_me:$LINENO: result: no" >&5 |
5876 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5877 | fi |
e6cc62c6 | 5878 | |
4cdb0ab0 | 5879 | |
5005acfe | 5880 | enablestring= |
e6cc62c6 VS |
5881 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5 |
5882 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5883 | no_cache=0 |
5884 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
5885 | if test "${enable_protocol_file+set}" = set; then | |
5886 | enableval="$enable_protocol_file" | |
e6cc62c6 | 5887 | |
4cdb0ab0 VS |
5888 | if test "$enableval" = yes; then |
5889 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
5890 | else | |
5891 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
5892 | fi | |
e6cc62c6 | 5893 | |
4cdb0ab0 | 5894 | else |
e6cc62c6 | 5895 | |
4cdb0ab0 VS |
5896 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` |
5897 | if test "x$LINE" != x ; then | |
5898 | eval "DEFAULT_$LINE" | |
5899 | else | |
5900 | no_cache=1 | |
5901 | fi | |
5902 | ||
5903 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4cdb0ab0 | 5904 | |
e6cc62c6 | 5905 | fi; |
4cdb0ab0 VS |
5906 | |
5907 | eval "$ac_cv_use_protocol_file" | |
5908 | if test "$no_cache" != 1; then | |
5909 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
5910 | fi | |
5911 | ||
5912 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
e6cc62c6 VS |
5913 | echo "$as_me:$LINENO: result: yes" >&5 |
5914 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5915 | else |
e6cc62c6 VS |
5916 | echo "$as_me:$LINENO: result: no" >&5 |
5917 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5918 | fi |
e6cc62c6 | 5919 | |
52127426 | 5920 | |
8284b0c5 MB |
5921 | |
5922 | ||
5923 | ||
5005acfe | 5924 | enablestring= |
e6cc62c6 VS |
5925 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5 |
5926 | echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6 | |
10f2d63a VZ |
5927 | no_cache=0 |
5928 | # Check whether --enable-threads or --disable-threads was given. | |
5929 | if test "${enable_threads+set}" = set; then | |
5930 | enableval="$enable_threads" | |
e6cc62c6 | 5931 | |
10f2d63a VZ |
5932 | if test "$enableval" = yes; then |
5933 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
5934 | else | |
5935 | ac_cv_use_threads='wxUSE_THREADS=no' | |
5936 | fi | |
e6cc62c6 | 5937 | |
10f2d63a | 5938 | else |
e6cc62c6 | 5939 | |
10f2d63a VZ |
5940 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
5941 | if test "x$LINE" != x ; then | |
5942 | eval "DEFAULT_$LINE" | |
5943 | else | |
5944 | no_cache=1 | |
5945 | fi | |
5946 | ||
5947 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
10f2d63a | 5948 | |
e6cc62c6 | 5949 | fi; |
10f2d63a VZ |
5950 | |
5951 | eval "$ac_cv_use_threads" | |
5952 | if test "$no_cache" != 1; then | |
5953 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
5954 | fi | |
5955 | ||
5956 | if test "$wxUSE_THREADS" = yes; then | |
e6cc62c6 VS |
5957 | echo "$as_me:$LINENO: result: yes" >&5 |
5958 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5959 | else |
e6cc62c6 VS |
5960 | echo "$as_me:$LINENO: result: no" >&5 |
5961 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5962 | fi |
e6cc62c6 | 5963 | |
10f2d63a | 5964 | |
b12915c1 VZ |
5965 | if test "$wxUSE_GUI" = "yes"; then |
5966 | ||
8284b0c5 MB |
5967 | |
5968 | ||
5005acfe | 5969 | enablestring= |
e6cc62c6 VS |
5970 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5 |
5971 | echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6 | |
10f2d63a VZ |
5972 | no_cache=0 |
5973 | # Check whether --enable-docview or --disable-docview was given. | |
5974 | if test "${enable_docview+set}" = set; then | |
5975 | enableval="$enable_docview" | |
e6cc62c6 | 5976 | |
10f2d63a VZ |
5977 | if test "$enableval" = yes; then |
5978 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
5979 | else | |
5980 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
5981 | fi | |
e6cc62c6 | 5982 | |
10f2d63a | 5983 | else |
e6cc62c6 | 5984 | |
10f2d63a VZ |
5985 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
5986 | if test "x$LINE" != x ; then | |
5987 | eval "DEFAULT_$LINE" | |
5988 | else | |
5989 | no_cache=1 | |
5990 | fi | |
5991 | ||
5992 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
10f2d63a | 5993 | |
e6cc62c6 | 5994 | fi; |
10f2d63a VZ |
5995 | |
5996 | eval "$ac_cv_use_docview" | |
5997 | if test "$no_cache" != 1; then | |
5998 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
5999 | fi | |
6000 | ||
6001 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
e6cc62c6 VS |
6002 | echo "$as_me:$LINENO: result: yes" >&5 |
6003 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6004 | else |
e6cc62c6 VS |
6005 | echo "$as_me:$LINENO: result: no" >&5 |
6006 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6007 | fi |
e6cc62c6 | 6008 | |
10f2d63a | 6009 | |
5005acfe | 6010 | enablestring= |
e6cc62c6 VS |
6011 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5 |
6012 | echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6 | |
10f2d63a VZ |
6013 | no_cache=0 |
6014 | # Check whether --enable-help or --disable-help was given. | |
6015 | if test "${enable_help+set}" = set; then | |
6016 | enableval="$enable_help" | |
e6cc62c6 | 6017 | |
10f2d63a VZ |
6018 | if test "$enableval" = yes; then |
6019 | ac_cv_use_help='wxUSE_HELP=yes' | |
6020 | else | |
6021 | ac_cv_use_help='wxUSE_HELP=no' | |
6022 | fi | |
e6cc62c6 | 6023 | |
10f2d63a | 6024 | else |
e6cc62c6 | 6025 | |
10f2d63a VZ |
6026 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
6027 | if test "x$LINE" != x ; then | |
6028 | eval "DEFAULT_$LINE" | |
6029 | else | |
6030 | no_cache=1 | |
6031 | fi | |
6032 | ||
6033 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
10f2d63a | 6034 | |
e6cc62c6 | 6035 | fi; |
10f2d63a VZ |
6036 | |
6037 | eval "$ac_cv_use_help" | |
6038 | if test "$no_cache" != 1; then | |
6039 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
6040 | fi | |
6041 | ||
6042 | if test "$wxUSE_HELP" = yes; then | |
e6cc62c6 VS |
6043 | echo "$as_me:$LINENO: result: yes" >&5 |
6044 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6045 | else |
e6cc62c6 VS |
6046 | echo "$as_me:$LINENO: result: no" >&5 |
6047 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6048 | fi |
e6cc62c6 | 6049 | |
10f2d63a | 6050 | |
5005acfe | 6051 | enablestring= |
e6cc62c6 VS |
6052 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5 |
6053 | echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6 | |
29fd3c0c VS |
6054 | no_cache=0 |
6055 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
6056 | if test "${enable_mshtmlhelp+set}" = set; then | |
6057 | enableval="$enable_mshtmlhelp" | |
e6cc62c6 | 6058 | |
29fd3c0c VS |
6059 | if test "$enableval" = yes; then |
6060 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
6061 | else | |
6062 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
6063 | fi | |
e6cc62c6 | 6064 | |
29fd3c0c | 6065 | else |
e6cc62c6 | 6066 | |
29fd3c0c VS |
6067 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` |
6068 | if test "x$LINE" != x ; then | |
6069 | eval "DEFAULT_$LINE" | |
6070 | else | |
6071 | no_cache=1 | |
6072 | fi | |
6073 | ||
6074 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
29fd3c0c | 6075 | |
e6cc62c6 | 6076 | fi; |
29fd3c0c VS |
6077 | |
6078 | eval "$ac_cv_use_mshtmlhelp" | |
6079 | if test "$no_cache" != 1; then | |
6080 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
6081 | fi | |
6082 | ||
6083 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
e6cc62c6 VS |
6084 | echo "$as_me:$LINENO: result: yes" >&5 |
6085 | echo "${ECHO_T}yes" >&6 | |
29fd3c0c | 6086 | else |
e6cc62c6 VS |
6087 | echo "$as_me:$LINENO: result: no" >&5 |
6088 | echo "${ECHO_T}no" >&6 | |
29fd3c0c | 6089 | fi |
e6cc62c6 | 6090 | |
29fd3c0c | 6091 | |
5005acfe | 6092 | enablestring= |
e6cc62c6 VS |
6093 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5 |
6094 | echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6 | |
3379ed37 VZ |
6095 | no_cache=0 |
6096 | # Check whether --enable-html or --disable-html was given. | |
6097 | if test "${enable_html+set}" = set; then | |
6098 | enableval="$enable_html" | |
e6cc62c6 | 6099 | |
3379ed37 VZ |
6100 | if test "$enableval" = yes; then |
6101 | ac_cv_use_html='wxUSE_HTML=yes' | |
6102 | else | |
6103 | ac_cv_use_html='wxUSE_HTML=no' | |
6104 | fi | |
e6cc62c6 | 6105 | |
3379ed37 | 6106 | else |
e6cc62c6 | 6107 | |
3379ed37 VZ |
6108 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` |
6109 | if test "x$LINE" != x ; then | |
6110 | eval "DEFAULT_$LINE" | |
6111 | else | |
6112 | no_cache=1 | |
6113 | fi | |
6114 | ||
6115 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
3379ed37 | 6116 | |
e6cc62c6 | 6117 | fi; |
3379ed37 VZ |
6118 | |
6119 | eval "$ac_cv_use_html" | |
6120 | if test "$no_cache" != 1; then | |
6121 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
6122 | fi | |
6123 | ||
6124 | if test "$wxUSE_HTML" = yes; then | |
e6cc62c6 VS |
6125 | echo "$as_me:$LINENO: result: yes" >&5 |
6126 | echo "${ECHO_T}yes" >&6 | |
3379ed37 | 6127 | else |
e6cc62c6 VS |
6128 | echo "$as_me:$LINENO: result: no" >&5 |
6129 | echo "${ECHO_T}no" >&6 | |
3379ed37 | 6130 | fi |
e6cc62c6 | 6131 | |
3379ed37 | 6132 | |
5005acfe | 6133 | enablestring= |
e6cc62c6 VS |
6134 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5 |
6135 | echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6 | |
3379ed37 VZ |
6136 | no_cache=0 |
6137 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
6138 | if test "${enable_htmlhelp+set}" = set; then | |
6139 | enableval="$enable_htmlhelp" | |
e6cc62c6 | 6140 | |
3379ed37 VZ |
6141 | if test "$enableval" = yes; then |
6142 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
6143 | else | |
6144 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
6145 | fi | |
e6cc62c6 | 6146 | |
3379ed37 | 6147 | else |
e6cc62c6 | 6148 | |
3379ed37 VZ |
6149 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` |
6150 | if test "x$LINE" != x ; then | |
6151 | eval "DEFAULT_$LINE" | |
6152 | else | |
6153 | no_cache=1 | |
6154 | fi | |
6155 | ||
6156 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
3379ed37 | 6157 | |
e6cc62c6 | 6158 | fi; |
3379ed37 VZ |
6159 | |
6160 | eval "$ac_cv_use_htmlhelp" | |
6161 | if test "$no_cache" != 1; then | |
6162 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
6163 | fi | |
6164 | ||
6165 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
e6cc62c6 VS |
6166 | echo "$as_me:$LINENO: result: yes" >&5 |
6167 | echo "${ECHO_T}yes" >&6 | |
3379ed37 | 6168 | else |
e6cc62c6 VS |
6169 | echo "$as_me:$LINENO: result: no" >&5 |
6170 | echo "${ECHO_T}no" >&6 | |
3379ed37 | 6171 | fi |
e6cc62c6 | 6172 | |
3379ed37 | 6173 | |
5005acfe | 6174 | enablestring= |
e6cc62c6 VS |
6175 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5 |
6176 | echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6 | |
10f2d63a VZ |
6177 | no_cache=0 |
6178 | # Check whether --enable-constraints or --disable-constraints was given. | |
6179 | if test "${enable_constraints+set}" = set; then | |
6180 | enableval="$enable_constraints" | |
e6cc62c6 | 6181 | |
10f2d63a VZ |
6182 | if test "$enableval" = yes; then |
6183 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
6184 | else | |
6185 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
6186 | fi | |
e6cc62c6 | 6187 | |
10f2d63a | 6188 | else |
e6cc62c6 | 6189 | |
10f2d63a VZ |
6190 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
6191 | if test "x$LINE" != x ; then | |
6192 | eval "DEFAULT_$LINE" | |
6193 | else | |
6194 | no_cache=1 | |
6195 | fi | |
6196 | ||
6197 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
10f2d63a | 6198 | |
e6cc62c6 | 6199 | fi; |
10f2d63a VZ |
6200 | |
6201 | eval "$ac_cv_use_constraints" | |
6202 | if test "$no_cache" != 1; then | |
6203 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
6204 | fi | |
6205 | ||
6206 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
e6cc62c6 VS |
6207 | echo "$as_me:$LINENO: result: yes" >&5 |
6208 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6209 | else |
e6cc62c6 VS |
6210 | echo "$as_me:$LINENO: result: no" >&5 |
6211 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6212 | fi |
e6cc62c6 | 6213 | |
10f2d63a | 6214 | |
5005acfe | 6215 | enablestring= |
e6cc62c6 VS |
6216 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5 |
6217 | echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6 | |
10f2d63a VZ |
6218 | no_cache=0 |
6219 | # Check whether --enable-printarch or --disable-printarch was given. | |
6220 | if test "${enable_printarch+set}" = set; then | |
6221 | enableval="$enable_printarch" | |
e6cc62c6 | 6222 | |
10f2d63a VZ |
6223 | if test "$enableval" = yes; then |
6224 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
6225 | else | |
6226 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
6227 | fi | |
e6cc62c6 | 6228 | |
10f2d63a | 6229 | else |
e6cc62c6 | 6230 | |
10f2d63a VZ |
6231 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
6232 | if test "x$LINE" != x ; then | |
6233 | eval "DEFAULT_$LINE" | |
6234 | else | |
6235 | no_cache=1 | |
6236 | fi | |
6237 | ||
6238 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
10f2d63a | 6239 | |
e6cc62c6 | 6240 | fi; |
10f2d63a VZ |
6241 | |
6242 | eval "$ac_cv_use_printarch" | |
6243 | if test "$no_cache" != 1; then | |
6244 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
6245 | fi | |
6246 | ||
6247 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
e6cc62c6 VS |
6248 | echo "$as_me:$LINENO: result: yes" >&5 |
6249 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6250 | else |
e6cc62c6 VS |
6251 | echo "$as_me:$LINENO: result: no" >&5 |
6252 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6253 | fi |
e6cc62c6 | 6254 | |
10f2d63a | 6255 | |
5005acfe | 6256 | enablestring= |
e6cc62c6 VS |
6257 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5 |
6258 | echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6 | |
10f2d63a VZ |
6259 | no_cache=0 |
6260 | # Check whether --enable-mdi or --disable-mdi was given. | |
6261 | if test "${enable_mdi+set}" = set; then | |
6262 | enableval="$enable_mdi" | |
e6cc62c6 | 6263 | |
10f2d63a VZ |
6264 | if test "$enableval" = yes; then |
6265 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
6266 | else | |
6267 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
6268 | fi | |
e6cc62c6 | 6269 | |
10f2d63a | 6270 | else |
e6cc62c6 | 6271 | |
10f2d63a VZ |
6272 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
6273 | if test "x$LINE" != x ; then | |
6274 | eval "DEFAULT_$LINE" | |
6275 | else | |
6276 | no_cache=1 | |
6277 | fi | |
6278 | ||
6279 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
10f2d63a | 6280 | |
e6cc62c6 | 6281 | fi; |
10f2d63a VZ |
6282 | |
6283 | eval "$ac_cv_use_mdi" | |
6284 | if test "$no_cache" != 1; then | |
6285 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
6286 | fi | |
6287 | ||
6288 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
e6cc62c6 VS |
6289 | echo "$as_me:$LINENO: result: yes" >&5 |
6290 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6291 | else |
e6cc62c6 VS |
6292 | echo "$as_me:$LINENO: result: no" >&5 |
6293 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6294 | fi |
e6cc62c6 | 6295 | |
698dcdb6 | 6296 | |
5005acfe | 6297 | enablestring= |
e6cc62c6 VS |
6298 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5 |
6299 | echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6 | |
1e6feb95 VZ |
6300 | no_cache=0 |
6301 | # Check whether --enable-loggui or --disable-loggui was given. | |
6302 | if test "${enable_loggui+set}" = set; then | |
6303 | enableval="$enable_loggui" | |
e6cc62c6 | 6304 | |
1e6feb95 VZ |
6305 | if test "$enableval" = yes; then |
6306 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
6307 | else | |
6308 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
6309 | fi | |
e6cc62c6 | 6310 | |
1e6feb95 | 6311 | else |
e6cc62c6 | 6312 | |
1e6feb95 VZ |
6313 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` |
6314 | if test "x$LINE" != x ; then | |
6315 | eval "DEFAULT_$LINE" | |
6316 | else | |
6317 | no_cache=1 | |
6318 | fi | |
6319 | ||
6320 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
1e6feb95 | 6321 | |
e6cc62c6 | 6322 | fi; |
1e6feb95 VZ |
6323 | |
6324 | eval "$ac_cv_use_loggui" | |
6325 | if test "$no_cache" != 1; then | |
6326 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
6327 | fi | |
6328 | ||
6329 | if test "$wxUSE_LOGGUI" = yes; then | |
e6cc62c6 VS |
6330 | echo "$as_me:$LINENO: result: yes" >&5 |
6331 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 6332 | else |
e6cc62c6 VS |
6333 | echo "$as_me:$LINENO: result: no" >&5 |
6334 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 6335 | fi |
e6cc62c6 | 6336 | |
1e6feb95 | 6337 | |
5005acfe | 6338 | enablestring= |
e6cc62c6 VS |
6339 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5 |
6340 | echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6 | |
1e6feb95 VZ |
6341 | no_cache=0 |
6342 | # Check whether --enable-logwin or --disable-logwin was given. | |
6343 | if test "${enable_logwin+set}" = set; then | |
6344 | enableval="$enable_logwin" | |
e6cc62c6 | 6345 | |
1e6feb95 VZ |
6346 | if test "$enableval" = yes; then |
6347 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
6348 | else | |
6349 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
6350 | fi | |
e6cc62c6 | 6351 | |
1e6feb95 | 6352 | else |
e6cc62c6 | 6353 | |
1e6feb95 VZ |
6354 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` |
6355 | if test "x$LINE" != x ; then | |
6356 | eval "DEFAULT_$LINE" | |
6357 | else | |
6358 | no_cache=1 | |
6359 | fi | |
6360 | ||
6361 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
1e6feb95 | 6362 | |
e6cc62c6 | 6363 | fi; |
1e6feb95 VZ |
6364 | |
6365 | eval "$ac_cv_use_logwin" | |
6366 | if test "$no_cache" != 1; then | |
6367 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
6368 | fi | |
6369 | ||
6370 | if test "$wxUSE_LOGWINDOW" = yes; then | |
e6cc62c6 VS |
6371 | echo "$as_me:$LINENO: result: yes" >&5 |
6372 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 6373 | else |
e6cc62c6 VS |
6374 | echo "$as_me:$LINENO: result: no" >&5 |
6375 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 6376 | fi |
e6cc62c6 | 6377 | |
1e6feb95 | 6378 | |
5005acfe | 6379 | enablestring= |
e6cc62c6 VS |
6380 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5 |
6381 | echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6 | |
69d27ff7 MB |
6382 | no_cache=0 |
6383 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
6384 | if test "${enable_logdialog+set}" = set; then | |
6385 | enableval="$enable_logdialog" | |
e6cc62c6 | 6386 | |
69d27ff7 MB |
6387 | if test "$enableval" = yes; then |
6388 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
6389 | else | |
6390 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
6391 | fi | |
e6cc62c6 | 6392 | |
69d27ff7 | 6393 | else |
e6cc62c6 | 6394 | |
69d27ff7 MB |
6395 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` |
6396 | if test "x$LINE" != x ; then | |
6397 | eval "DEFAULT_$LINE" | |
6398 | else | |
6399 | no_cache=1 | |
6400 | fi | |
6401 | ||
6402 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
69d27ff7 | 6403 | |
e6cc62c6 | 6404 | fi; |
69d27ff7 MB |
6405 | |
6406 | eval "$ac_cv_use_logdialog" | |
6407 | if test "$no_cache" != 1; then | |
6408 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
6409 | fi | |
6410 | ||
6411 | if test "$wxUSE_LOGDIALOG" = yes; then | |
e6cc62c6 VS |
6412 | echo "$as_me:$LINENO: result: yes" >&5 |
6413 | echo "${ECHO_T}yes" >&6 | |
69d27ff7 | 6414 | else |
e6cc62c6 VS |
6415 | echo "$as_me:$LINENO: result: no" >&5 |
6416 | echo "${ECHO_T}no" >&6 | |
69d27ff7 | 6417 | fi |
e6cc62c6 | 6418 | |
8284b0c5 | 6419 | |
52127426 | 6420 | |
5005acfe | 6421 | enablestring= |
e6cc62c6 VS |
6422 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5 |
6423 | echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6 | |
10f2d63a VZ |
6424 | no_cache=0 |
6425 | # Check whether --enable-postscript or --disable-postscript was given. | |
6426 | if test "${enable_postscript+set}" = set; then | |
6427 | enableval="$enable_postscript" | |
e6cc62c6 | 6428 | |
10f2d63a VZ |
6429 | if test "$enableval" = yes; then |
6430 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
6431 | else | |
6432 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
6433 | fi | |
e6cc62c6 | 6434 | |
10f2d63a | 6435 | else |
e6cc62c6 | 6436 | |
10f2d63a VZ |
6437 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
6438 | if test "x$LINE" != x ; then | |
6439 | eval "DEFAULT_$LINE" | |
6440 | else | |
6441 | no_cache=1 | |
6442 | fi | |
6443 | ||
6444 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
10f2d63a | 6445 | |
e6cc62c6 | 6446 | fi; |
10f2d63a VZ |
6447 | |
6448 | eval "$ac_cv_use_postscript" | |
6449 | if test "$no_cache" != 1; then | |
6450 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
6451 | fi | |
6452 | ||
6453 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
e6cc62c6 VS |
6454 | echo "$as_me:$LINENO: result: yes" >&5 |
6455 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6456 | else |
e6cc62c6 VS |
6457 | echo "$as_me:$LINENO: result: no" >&5 |
6458 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6459 | fi |
e6cc62c6 | 6460 | |
8284b0c5 MB |
6461 | |
6462 | ||
52127426 | 6463 | |
8284b0c5 | 6464 | |
5005acfe | 6465 | enablestring= |
e6cc62c6 VS |
6466 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5 |
6467 | echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6 | |
10f2d63a | 6468 | no_cache=0 |
3c907f20 VZ |
6469 | # Check whether --enable-prologio or --disable-prologio was given. |
6470 | if test "${enable_prologio+set}" = set; then | |
6471 | enableval="$enable_prologio" | |
e6cc62c6 | 6472 | |
10f2d63a | 6473 | if test "$enableval" = yes; then |
3c907f20 | 6474 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' |
10f2d63a | 6475 | else |
3c907f20 | 6476 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' |
10f2d63a | 6477 | fi |
e6cc62c6 | 6478 | |
10f2d63a | 6479 | else |
e6cc62c6 | 6480 | |
3c907f20 | 6481 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
10f2d63a VZ |
6482 | if test "x$LINE" != x ; then |
6483 | eval "DEFAULT_$LINE" | |
6484 | else | |
6485 | no_cache=1 | |
6486 | fi | |
6487 | ||
3c907f20 | 6488 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO |
10f2d63a | 6489 | |
e6cc62c6 | 6490 | fi; |
10f2d63a | 6491 | |
3c907f20 | 6492 | eval "$ac_cv_use_prologio" |
10f2d63a | 6493 | if test "$no_cache" != 1; then |
3c907f20 | 6494 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6495 | fi |
6496 | ||
3c907f20 | 6497 | if test "$wxUSE_PROLOGIO" = yes; then |
e6cc62c6 VS |
6498 | echo "$as_me:$LINENO: result: yes" >&5 |
6499 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6500 | else |
e6cc62c6 VS |
6501 | echo "$as_me:$LINENO: result: no" >&5 |
6502 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6503 | fi |
e6cc62c6 | 6504 | |
8284b0c5 | 6505 | |
5005acfe | 6506 | enablestring= |
e6cc62c6 VS |
6507 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5 |
6508 | echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6 | |
10f2d63a | 6509 | no_cache=0 |
3c907f20 VZ |
6510 | # Check whether --enable-resources or --disable-resources was given. |
6511 | if test "${enable_resources+set}" = set; then | |
6512 | enableval="$enable_resources" | |
e6cc62c6 | 6513 | |
10f2d63a | 6514 | if test "$enableval" = yes; then |
3c907f20 | 6515 | ac_cv_use_resources='wxUSE_RESOURCES=yes' |
10f2d63a | 6516 | else |
3c907f20 | 6517 | ac_cv_use_resources='wxUSE_RESOURCES=no' |
10f2d63a | 6518 | fi |
e6cc62c6 | 6519 | |
10f2d63a | 6520 | else |
e6cc62c6 | 6521 | |
3c907f20 | 6522 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
10f2d63a VZ |
6523 | if test "x$LINE" != x ; then |
6524 | eval "DEFAULT_$LINE" | |
6525 | else | |
6526 | no_cache=1 | |
6527 | fi | |
6528 | ||
3c907f20 | 6529 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES |
10f2d63a | 6530 | |
e6cc62c6 | 6531 | fi; |
10f2d63a | 6532 | |
3c907f20 | 6533 | eval "$ac_cv_use_resources" |
10f2d63a | 6534 | if test "$no_cache" != 1; then |
3c907f20 | 6535 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6536 | fi |
6537 | ||
3c907f20 | 6538 | if test "$wxUSE_RESOURCES" = yes; then |
e6cc62c6 VS |
6539 | echo "$as_me:$LINENO: result: yes" >&5 |
6540 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6541 | else |
e6cc62c6 VS |
6542 | echo "$as_me:$LINENO: result: no" >&5 |
6543 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6544 | fi |
e6cc62c6 | 6545 | |
8284b0c5 MB |
6546 | |
6547 | ||
52127426 | 6548 | |
5005acfe | 6549 | enablestring= |
e6cc62c6 VS |
6550 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5 |
6551 | echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6 | |
10f2d63a VZ |
6552 | no_cache=0 |
6553 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
6554 | if test "${enable_clipboard+set}" = set; then | |
6555 | enableval="$enable_clipboard" | |
e6cc62c6 | 6556 | |
10f2d63a VZ |
6557 | if test "$enableval" = yes; then |
6558 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
6559 | else | |
6560 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
6561 | fi | |
e6cc62c6 | 6562 | |
10f2d63a | 6563 | else |
e6cc62c6 | 6564 | |
10f2d63a VZ |
6565 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
6566 | if test "x$LINE" != x ; then | |
6567 | eval "DEFAULT_$LINE" | |
6568 | else | |
6569 | no_cache=1 | |
6570 | fi | |
6571 | ||
6572 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
10f2d63a | 6573 | |
e6cc62c6 | 6574 | fi; |
10f2d63a VZ |
6575 | |
6576 | eval "$ac_cv_use_clipboard" | |
6577 | if test "$no_cache" != 1; then | |
6578 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
6579 | fi | |
6580 | ||
6581 | if test "$wxUSE_CLIPBOARD" = yes; then | |
e6cc62c6 VS |
6582 | echo "$as_me:$LINENO: result: yes" >&5 |
6583 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6584 | else |
e6cc62c6 VS |
6585 | echo "$as_me:$LINENO: result: no" >&5 |
6586 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6587 | fi |
e6cc62c6 | 6588 | |
10f2d63a | 6589 | |
5005acfe | 6590 | enablestring= |
e6cc62c6 VS |
6591 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5 |
6592 | echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6 | |
10f2d63a VZ |
6593 | no_cache=0 |
6594 | # Check whether --enable-dnd or --disable-dnd was given. | |
6595 | if test "${enable_dnd+set}" = set; then | |
6596 | enableval="$enable_dnd" | |
e6cc62c6 | 6597 | |
10f2d63a VZ |
6598 | if test "$enableval" = yes; then |
6599 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
6600 | else | |
6601 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
6602 | fi | |
e6cc62c6 | 6603 | |
10f2d63a | 6604 | else |
e6cc62c6 | 6605 | |
10f2d63a VZ |
6606 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
6607 | if test "x$LINE" != x ; then | |
6608 | eval "DEFAULT_$LINE" | |
6609 | else | |
6610 | no_cache=1 | |
6611 | fi | |
6612 | ||
6613 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
10f2d63a | 6614 | |
e6cc62c6 | 6615 | fi; |
10f2d63a VZ |
6616 | |
6617 | eval "$ac_cv_use_dnd" | |
6618 | if test "$no_cache" != 1; then | |
6619 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
6620 | fi | |
6621 | ||
6622 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
e6cc62c6 VS |
6623 | echo "$as_me:$LINENO: result: yes" >&5 |
6624 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6625 | else |
e6cc62c6 VS |
6626 | echo "$as_me:$LINENO: result: no" >&5 |
6627 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6628 | fi |
e6cc62c6 | 6629 | |
10f2d63a | 6630 | |
5005acfe | 6631 | enablestring= |
e6cc62c6 VS |
6632 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 |
6633 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
b64f0a5f RL |
6634 | no_cache=0 |
6635 | # Check whether --enable-metafile or --disable-metafile was given. | |
6636 | if test "${enable_metafile+set}" = set; then | |
6637 | enableval="$enable_metafile" | |
e6cc62c6 | 6638 | |
b64f0a5f RL |
6639 | if test "$enableval" = yes; then |
6640 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
6641 | else | |
6642 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
6643 | fi | |
e6cc62c6 | 6644 | |
b64f0a5f | 6645 | else |
e6cc62c6 | 6646 | |
b64f0a5f RL |
6647 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
6648 | if test "x$LINE" != x ; then | |
6649 | eval "DEFAULT_$LINE" | |
6650 | else | |
6651 | no_cache=1 | |
6652 | fi | |
6653 | ||
6654 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
b64f0a5f | 6655 | |
e6cc62c6 | 6656 | fi; |
b64f0a5f RL |
6657 | |
6658 | eval "$ac_cv_use_metafile" | |
6659 | if test "$no_cache" != 1; then | |
6660 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
6661 | fi | |
6662 | ||
6663 | if test "$wxUSE_METAFILE" = yes; then | |
e6cc62c6 VS |
6664 | echo "$as_me:$LINENO: result: yes" >&5 |
6665 | echo "${ECHO_T}yes" >&6 | |
b64f0a5f | 6666 | else |
e6cc62c6 VS |
6667 | echo "$as_me:$LINENO: result: no" >&5 |
6668 | echo "${ECHO_T}no" >&6 | |
b64f0a5f | 6669 | fi |
e6cc62c6 | 6670 | |
52127426 | 6671 | |
8284b0c5 | 6672 | |
52127426 | 6673 | |
8284b0c5 | 6674 | |
5005acfe | 6675 | enablestring= |
e6cc62c6 VS |
6676 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5 |
6677 | echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6 | |
10f2d63a VZ |
6678 | no_cache=0 |
6679 | # Check whether --enable-controls or --disable-controls was given. | |
6680 | if test "${enable_controls+set}" = set; then | |
6681 | enableval="$enable_controls" | |
e6cc62c6 | 6682 | |
10f2d63a VZ |
6683 | if test "$enableval" = yes; then |
6684 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
6685 | else | |
6686 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
6687 | fi | |
e6cc62c6 | 6688 | |
10f2d63a | 6689 | else |
e6cc62c6 | 6690 | |
10f2d63a VZ |
6691 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
6692 | if test "x$LINE" != x ; then | |
6693 | eval "DEFAULT_$LINE" | |
6694 | else | |
6695 | no_cache=1 | |
6696 | fi | |
6697 | ||
6698 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
10f2d63a | 6699 | |
e6cc62c6 | 6700 | fi; |
10f2d63a VZ |
6701 | |
6702 | eval "$ac_cv_use_controls" | |
6703 | if test "$no_cache" != 1; then | |
6704 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
6705 | fi | |
6706 | ||
6707 | if test "$wxUSE_CONTROLS" = yes; then | |
e6cc62c6 VS |
6708 | echo "$as_me:$LINENO: result: yes" >&5 |
6709 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6710 | else |
e6cc62c6 VS |
6711 | echo "$as_me:$LINENO: result: no" >&5 |
6712 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6713 | fi |
e6cc62c6 | 6714 | |
10f2d63a VZ |
6715 | |
6716 | if test "$wxUSE_CONTROLS" = "yes"; then | |
6717 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
6718 | DEFAULT_wxUSE_BMPBUTTON=yes |
6719 | DEFAULT_wxUSE_BUTTON=yes | |
6720 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
6721 | DEFAULT_wxUSE_CARET=yes |
6722 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
6723 | DEFAULT_wxUSE_CHECKBOX=yes |
6724 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
6725 | DEFAULT_wxUSE_CHOICE=yes | |
6726 | DEFAULT_wxUSE_GAUGE=yes | |
6727 | DEFAULT_wxUSE_GRID=yes | |
10f2d63a | 6728 | DEFAULT_wxUSE_IMAGLIST=yes |
0e012a93 | 6729 | DEFAULT_wxUSE_LISTBOOK=yes |
10f2d63a VZ |
6730 | DEFAULT_wxUSE_LISTBOX=yes |
6731 | DEFAULT_wxUSE_LISTCTRL=yes | |
6732 | DEFAULT_wxUSE_NOTEBOOK=yes | |
6733 | DEFAULT_wxUSE_RADIOBOX=yes | |
6734 | DEFAULT_wxUSE_RADIOBTN=yes | |
6735 | DEFAULT_wxUSE_SASH=yes | |
6736 | DEFAULT_wxUSE_SCROLLBAR=yes | |
6737 | DEFAULT_wxUSE_SLIDER=yes | |
6738 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 6739 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
6740 | DEFAULT_wxUSE_SPLITTER=yes |
6741 | DEFAULT_wxUSE_STATBMP=yes | |
6742 | DEFAULT_wxUSE_STATBOX=yes | |
6743 | DEFAULT_wxUSE_STATLINE=yes | |
6744 | DEFAULT_wxUSE_STATUSBAR=yes | |
6745 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 6746 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 6747 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
6748 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
6749 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
6750 | DEFAULT_wxUSE_TOOLTIPS=yes |
6751 | DEFAULT_wxUSE_TREECTRL=yes | |
9f41d601 | 6752 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 6753 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
6754 | elif test "$wxUSE_CONTROLS" = "no"; then |
6755 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
6756 | DEFAULT_wxUSE_BMPBUTTON=no |
6757 | DEFAULT_wxUSE_BUTTON=no | |
6758 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
6759 | DEFAULT_wxUSE_CARET=no |
6760 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
6761 | DEFAULT_wxUSE_CHECKBOX=no |
6762 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
6763 | DEFAULT_wxUSE_CHOICE=no | |
6764 | DEFAULT_wxUSE_GAUGE=no | |
6765 | DEFAULT_wxUSE_GRID=no | |
10f2d63a | 6766 | DEFAULT_wxUSE_IMAGLIST=no |
0e012a93 | 6767 | DEFAULT_wxUSE_LISTBOOK=no |
10f2d63a VZ |
6768 | DEFAULT_wxUSE_LISTBOX=no |
6769 | DEFAULT_wxUSE_LISTCTRL=no | |
6770 | DEFAULT_wxUSE_NOTEBOOK=no | |
6771 | DEFAULT_wxUSE_RADIOBOX=no | |
6772 | DEFAULT_wxUSE_RADIOBTN=no | |
6773 | DEFAULT_wxUSE_SASH=no | |
6774 | DEFAULT_wxUSE_SCROLLBAR=no | |
6775 | DEFAULT_wxUSE_SLIDER=no | |
6776 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 6777 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
6778 | DEFAULT_wxUSE_SPLITTER=no |
6779 | DEFAULT_wxUSE_STATBMP=no | |
6780 | DEFAULT_wxUSE_STATBOX=no | |
6781 | DEFAULT_wxUSE_STATLINE=no | |
6782 | DEFAULT_wxUSE_STATUSBAR=no | |
6783 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 6784 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 6785 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
6786 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
6787 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
6788 | DEFAULT_wxUSE_TOOLTIPS=no |
6789 | DEFAULT_wxUSE_TREECTRL=no | |
9f41d601 | 6790 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 6791 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
6792 | fi |
6793 | ||
ac0c4cc3 DE |
6794 | ## FIXME: This is a blatant hack |
6795 | if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then | |
6796 | wxUSE_PRINTING_ARCHITECTURE=no | |
ac0c4cc3 | 6797 | wxUSE_DRAG_AND_DROP=no |
8b389fab DE |
6798 | # Generic notebook requires tab dialog |
6799 | DEFAULT_wxUSE_TABDIALOG=yes | |
ac0c4cc3 | 6800 | DEFAULT_wxUSE_SCROLLBAR=no |
ac0c4cc3 | 6801 | DEFAULT_wxUSE_TOOLTIPS=no |
ac0c4cc3 | 6802 | DEFAULT_wxUSE_DRAGIMAGE=no |
ac0c4cc3 DE |
6803 | fi |
6804 | ||
8284b0c5 | 6805 | |
5005acfe | 6806 | enablestring= |
e6cc62c6 VS |
6807 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5 |
6808 | echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6 | |
10f2d63a VZ |
6809 | no_cache=0 |
6810 | # Check whether --enable-accel or --disable-accel was given. | |
6811 | if test "${enable_accel+set}" = set; then | |
6812 | enableval="$enable_accel" | |
e6cc62c6 | 6813 | |
10f2d63a VZ |
6814 | if test "$enableval" = yes; then |
6815 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
6816 | else | |
6817 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
6818 | fi | |
e6cc62c6 | 6819 | |
10f2d63a | 6820 | else |
e6cc62c6 | 6821 | |
10f2d63a VZ |
6822 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
6823 | if test "x$LINE" != x ; then | |
6824 | eval "DEFAULT_$LINE" | |
6825 | else | |
6826 | no_cache=1 | |
6827 | fi | |
6828 | ||
6829 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
10f2d63a | 6830 | |
e6cc62c6 | 6831 | fi; |
10f2d63a VZ |
6832 | |
6833 | eval "$ac_cv_use_accel" | |
6834 | if test "$no_cache" != 1; then | |
6835 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
6836 | fi | |
6837 | ||
6838 | if test "$wxUSE_ACCEL" = yes; then | |
e6cc62c6 VS |
6839 | echo "$as_me:$LINENO: result: yes" >&5 |
6840 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6841 | else |
e6cc62c6 VS |
6842 | echo "$as_me:$LINENO: result: no" >&5 |
6843 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6844 | fi |
e6cc62c6 | 6845 | |
10f2d63a | 6846 | |
5005acfe | 6847 | enablestring= |
e6cc62c6 VS |
6848 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5 |
6849 | echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6 | |
10f2d63a | 6850 | no_cache=0 |
1e6feb95 VZ |
6851 | # Check whether --enable-button or --disable-button was given. |
6852 | if test "${enable_button+set}" = set; then | |
6853 | enableval="$enable_button" | |
e6cc62c6 | 6854 | |
10f2d63a | 6855 | if test "$enableval" = yes; then |
1e6feb95 | 6856 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 6857 | else |
1e6feb95 | 6858 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 6859 | fi |
e6cc62c6 | 6860 | |
10f2d63a | 6861 | else |
e6cc62c6 | 6862 | |
1e6feb95 | 6863 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
6864 | if test "x$LINE" != x ; then |
6865 | eval "DEFAULT_$LINE" | |
6866 | else | |
6867 | no_cache=1 | |
6868 | fi | |
6869 | ||
1e6feb95 | 6870 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
10f2d63a | 6871 | |
e6cc62c6 | 6872 | fi; |
10f2d63a | 6873 | |
1e6feb95 | 6874 | eval "$ac_cv_use_button" |
10f2d63a | 6875 | if test "$no_cache" != 1; then |
1e6feb95 | 6876 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6877 | fi |
6878 | ||
1e6feb95 | 6879 | if test "$wxUSE_BUTTON" = yes; then |
e6cc62c6 VS |
6880 | echo "$as_me:$LINENO: result: yes" >&5 |
6881 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6882 | else |
e6cc62c6 VS |
6883 | echo "$as_me:$LINENO: result: no" >&5 |
6884 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6885 | fi |
e6cc62c6 | 6886 | |
10f2d63a | 6887 | |
5005acfe | 6888 | enablestring= |
e6cc62c6 VS |
6889 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5 |
6890 | echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6 | |
10f2d63a VZ |
6891 | no_cache=0 |
6892 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
6893 | if test "${enable_bmpbutton+set}" = set; then | |
6894 | enableval="$enable_bmpbutton" | |
e6cc62c6 | 6895 | |
10f2d63a VZ |
6896 | if test "$enableval" = yes; then |
6897 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
6898 | else | |
6899 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
6900 | fi | |
e6cc62c6 | 6901 | |
10f2d63a | 6902 | else |
e6cc62c6 | 6903 | |
10f2d63a VZ |
6904 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
6905 | if test "x$LINE" != x ; then | |
6906 | eval "DEFAULT_$LINE" | |
6907 | else | |
6908 | no_cache=1 | |
6909 | fi | |
6910 | ||
6911 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
10f2d63a | 6912 | |
e6cc62c6 | 6913 | fi; |
10f2d63a VZ |
6914 | |
6915 | eval "$ac_cv_use_bmpbutton" | |
6916 | if test "$no_cache" != 1; then | |
6917 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
6918 | fi | |
6919 | ||
6920 | if test "$wxUSE_BMPBUTTON" = yes; then | |
e6cc62c6 VS |
6921 | echo "$as_me:$LINENO: result: yes" >&5 |
6922 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6923 | else |
e6cc62c6 VS |
6924 | echo "$as_me:$LINENO: result: no" >&5 |
6925 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6926 | fi |
e6cc62c6 | 6927 | |
10f2d63a | 6928 | |
5005acfe | 6929 | enablestring= |
e6cc62c6 VS |
6930 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5 |
6931 | echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6 | |
1e6feb95 VZ |
6932 | no_cache=0 |
6933 | # Check whether --enable-calendar or --disable-calendar was given. | |
6934 | if test "${enable_calendar+set}" = set; then | |
6935 | enableval="$enable_calendar" | |
e6cc62c6 | 6936 | |
1e6feb95 VZ |
6937 | if test "$enableval" = yes; then |
6938 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
6939 | else | |
6940 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
6941 | fi | |
e6cc62c6 | 6942 | |
1e6feb95 | 6943 | else |
e6cc62c6 | 6944 | |
1e6feb95 VZ |
6945 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` |
6946 | if test "x$LINE" != x ; then | |
6947 | eval "DEFAULT_$LINE" | |
6948 | else | |
6949 | no_cache=1 | |
6950 | fi | |
6951 | ||
6952 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
1e6feb95 | 6953 | |
e6cc62c6 | 6954 | fi; |
1e6feb95 VZ |
6955 | |
6956 | eval "$ac_cv_use_calendar" | |
6957 | if test "$no_cache" != 1; then | |
6958 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
6959 | fi | |
6960 | ||
6961 | if test "$wxUSE_CALCTRL" = yes; then | |
e6cc62c6 VS |
6962 | echo "$as_me:$LINENO: result: yes" >&5 |
6963 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 6964 | else |
e6cc62c6 VS |
6965 | echo "$as_me:$LINENO: result: no" >&5 |
6966 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 6967 | fi |
e6cc62c6 | 6968 | |
1e6feb95 | 6969 | |
5005acfe | 6970 | enablestring= |
e6cc62c6 VS |
6971 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5 |
6972 | echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6 | |
1e6feb95 VZ |
6973 | no_cache=0 |
6974 | # Check whether --enable-caret or --disable-caret was given. | |
6975 | if test "${enable_caret+set}" = set; then | |
6976 | enableval="$enable_caret" | |
e6cc62c6 | 6977 | |
1e6feb95 VZ |
6978 | if test "$enableval" = yes; then |
6979 | ac_cv_use_caret='wxUSE_CARET=yes' | |
6980 | else | |
6981 | ac_cv_use_caret='wxUSE_CARET=no' | |
6982 | fi | |
e6cc62c6 | 6983 | |
1e6feb95 | 6984 | else |
e6cc62c6 | 6985 | |
1e6feb95 VZ |
6986 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` |
6987 | if test "x$LINE" != x ; then | |
6988 | eval "DEFAULT_$LINE" | |
6989 | else | |
6990 | no_cache=1 | |
6991 | fi | |
6992 | ||
6993 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
1e6feb95 | 6994 | |
e6cc62c6 | 6995 | fi; |
1e6feb95 VZ |
6996 | |
6997 | eval "$ac_cv_use_caret" | |
6998 | if test "$no_cache" != 1; then | |
6999 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
7000 | fi | |
7001 | ||
7002 | if test "$wxUSE_CARET" = yes; then | |
e6cc62c6 VS |
7003 | echo "$as_me:$LINENO: result: yes" >&5 |
7004 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 7005 | else |
e6cc62c6 VS |
7006 | echo "$as_me:$LINENO: result: no" >&5 |
7007 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 7008 | fi |
e6cc62c6 | 7009 | |
1e6feb95 | 7010 | |
5005acfe | 7011 | enablestring= |
e6cc62c6 VS |
7012 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5 |
7013 | echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6 | |
10f2d63a VZ |
7014 | no_cache=0 |
7015 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
7016 | if test "${enable_checkbox+set}" = set; then | |
7017 | enableval="$enable_checkbox" | |
e6cc62c6 | 7018 | |
10f2d63a VZ |
7019 | if test "$enableval" = yes; then |
7020 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
7021 | else | |
7022 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
7023 | fi | |
e6cc62c6 | 7024 | |
10f2d63a | 7025 | else |
e6cc62c6 | 7026 | |
10f2d63a VZ |
7027 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
7028 | if test "x$LINE" != x ; then | |
7029 | eval "DEFAULT_$LINE" | |
7030 | else | |
7031 | no_cache=1 | |
7032 | fi | |
7033 | ||
7034 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
10f2d63a | 7035 | |
e6cc62c6 | 7036 | fi; |
10f2d63a VZ |
7037 | |
7038 | eval "$ac_cv_use_checkbox" | |
7039 | if test "$no_cache" != 1; then | |
7040 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
7041 | fi | |
7042 | ||
7043 | if test "$wxUSE_CHECKBOX" = yes; then | |
e6cc62c6 VS |
7044 | echo "$as_me:$LINENO: result: yes" >&5 |
7045 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7046 | else |
e6cc62c6 VS |
7047 | echo "$as_me:$LINENO: result: no" >&5 |
7048 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7049 | fi |
e6cc62c6 | 7050 | |
10f2d63a | 7051 | |
5005acfe | 7052 | enablestring= |
e6cc62c6 VS |
7053 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5 |
7054 | echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6 | |
10f2d63a VZ |
7055 | no_cache=0 |
7056 | # Check whether --enable-checklst or --disable-checklst was given. | |
7057 | if test "${enable_checklst+set}" = set; then | |
7058 | enableval="$enable_checklst" | |
e6cc62c6 | 7059 | |
10f2d63a VZ |
7060 | if test "$enableval" = yes; then |
7061 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
7062 | else | |
7063 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
7064 | fi | |
e6cc62c6 | 7065 | |
10f2d63a | 7066 | else |
e6cc62c6 | 7067 | |
10f2d63a VZ |
7068 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
7069 | if test "x$LINE" != x ; then | |
7070 | eval "DEFAULT_$LINE" | |
7071 | else | |
7072 | no_cache=1 | |
7073 | fi | |
7074 | ||
7075 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
10f2d63a | 7076 | |
e6cc62c6 | 7077 | fi; |
10f2d63a VZ |
7078 | |
7079 | eval "$ac_cv_use_checklst" | |
7080 | if test "$no_cache" != 1; then | |
7081 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
7082 | fi | |
7083 | ||
7084 | if test "$wxUSE_CHECKLST" = yes; then | |
e6cc62c6 VS |
7085 | echo "$as_me:$LINENO: result: yes" >&5 |
7086 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7087 | else |
e6cc62c6 VS |
7088 | echo "$as_me:$LINENO: result: no" >&5 |
7089 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7090 | fi |
e6cc62c6 | 7091 | |
10f2d63a | 7092 | |
5005acfe | 7093 | enablestring= |
e6cc62c6 VS |
7094 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5 |
7095 | echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6 | |
10f2d63a VZ |
7096 | no_cache=0 |
7097 | # Check whether --enable-choice or --disable-choice was given. | |
7098 | if test "${enable_choice+set}" = set; then | |
7099 | enableval="$enable_choice" | |
e6cc62c6 | 7100 | |
10f2d63a VZ |
7101 | if test "$enableval" = yes; then |
7102 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
7103 | else | |
7104 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
7105 | fi | |
e6cc62c6 | 7106 | |
10f2d63a | 7107 | else |
e6cc62c6 | 7108 | |
10f2d63a VZ |
7109 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
7110 | if test "x$LINE" != x ; then | |
7111 | eval "DEFAULT_$LINE" | |
7112 | else | |
7113 | no_cache=1 | |
7114 | fi | |
7115 | ||
7116 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
10f2d63a | 7117 | |
e6cc62c6 | 7118 | fi; |
10f2d63a VZ |
7119 | |
7120 | eval "$ac_cv_use_choice" | |
7121 | if test "$no_cache" != 1; then | |
7122 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
7123 | fi | |
7124 | ||
7125 | if test "$wxUSE_CHOICE" = yes; then | |
e6cc62c6 VS |
7126 | echo "$as_me:$LINENO: result: yes" >&5 |
7127 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7128 | else |
e6cc62c6 VS |
7129 | echo "$as_me:$LINENO: result: no" >&5 |
7130 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7131 | fi |
e6cc62c6 | 7132 | |
10f2d63a | 7133 | |
5005acfe | 7134 | enablestring= |
e6cc62c6 VS |
7135 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5 |
7136 | echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6 | |
10f2d63a VZ |
7137 | no_cache=0 |
7138 | # Check whether --enable-combobox or --disable-combobox was given. | |
7139 | if test "${enable_combobox+set}" = set; then | |
7140 | enableval="$enable_combobox" | |
e6cc62c6 | 7141 | |
10f2d63a VZ |
7142 | if test "$enableval" = yes; then |
7143 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
7144 | else | |
7145 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
7146 | fi | |
e6cc62c6 | 7147 | |
10f2d63a | 7148 | else |
e6cc62c6 | 7149 | |
10f2d63a VZ |
7150 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
7151 | if test "x$LINE" != x ; then | |
7152 | eval "DEFAULT_$LINE" | |
7153 | else | |
7154 | no_cache=1 | |
7155 | fi | |
7156 | ||
7157 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
10f2d63a | 7158 | |
e6cc62c6 | 7159 | fi; |
10f2d63a VZ |
7160 | |
7161 | eval "$ac_cv_use_combobox" | |
7162 | if test "$no_cache" != 1; then | |
7163 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
7164 | fi | |
7165 | ||
7166 | if test "$wxUSE_COMBOBOX" = yes; then | |
e6cc62c6 VS |
7167 | echo "$as_me:$LINENO: result: yes" >&5 |
7168 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7169 | else |
e6cc62c6 VS |
7170 | echo "$as_me:$LINENO: result: no" >&5 |
7171 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7172 | fi |
e6cc62c6 | 7173 | |
10f2d63a | 7174 | |
da494b40 | 7175 | enablestring= |
e6cc62c6 VS |
7176 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5 |
7177 | echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6 | |
da494b40 MB |
7178 | no_cache=0 |
7179 | # Check whether --enable-display or --disable-display was given. | |
7180 | if test "${enable_display+set}" = set; then | |
7181 | enableval="$enable_display" | |
e6cc62c6 | 7182 | |
da494b40 MB |
7183 | if test "$enableval" = yes; then |
7184 | ac_cv_use_display='wxUSE_DISPLAY=yes' | |
7185 | else | |
7186 | ac_cv_use_display='wxUSE_DISPLAY=no' | |
7187 | fi | |
e6cc62c6 | 7188 | |
da494b40 | 7189 | else |
e6cc62c6 | 7190 | |
da494b40 MB |
7191 | LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}` |
7192 | if test "x$LINE" != x ; then | |
7193 | eval "DEFAULT_$LINE" | |
7194 | else | |
7195 | no_cache=1 | |
7196 | fi | |
7197 | ||
7198 | ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY | |
da494b40 | 7199 | |
e6cc62c6 | 7200 | fi; |
da494b40 MB |
7201 | |
7202 | eval "$ac_cv_use_display" | |
7203 | if test "$no_cache" != 1; then | |
7204 | echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp | |
7205 | fi | |
7206 | ||
7207 | if test "$wxUSE_DISPLAY" = yes; then | |
e6cc62c6 VS |
7208 | echo "$as_me:$LINENO: result: yes" >&5 |
7209 | echo "${ECHO_T}yes" >&6 | |
da494b40 | 7210 | else |
e6cc62c6 VS |
7211 | echo "$as_me:$LINENO: result: no" >&5 |
7212 | echo "${ECHO_T}no" >&6 | |
da494b40 | 7213 | fi |
e6cc62c6 | 7214 | |
da494b40 | 7215 | |
5005acfe | 7216 | enablestring= |
e6cc62c6 VS |
7217 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5 |
7218 | echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6 | |
10f2d63a VZ |
7219 | no_cache=0 |
7220 | # Check whether --enable-gauge or --disable-gauge was given. | |
7221 | if test "${enable_gauge+set}" = set; then | |
7222 | enableval="$enable_gauge" | |
e6cc62c6 | 7223 | |
10f2d63a VZ |
7224 | if test "$enableval" = yes; then |
7225 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
7226 | else | |
7227 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
7228 | fi | |
e6cc62c6 | 7229 | |
10f2d63a | 7230 | else |
e6cc62c6 | 7231 | |
10f2d63a VZ |
7232 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
7233 | if test "x$LINE" != x ; then | |
7234 | eval "DEFAULT_$LINE" | |
7235 | else | |
7236 | no_cache=1 | |
7237 | fi | |
7238 | ||
7239 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
10f2d63a | 7240 | |
e6cc62c6 | 7241 | fi; |
10f2d63a VZ |
7242 | |
7243 | eval "$ac_cv_use_gauge" | |
7244 | if test "$no_cache" != 1; then | |
7245 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
7246 | fi | |
7247 | ||
7248 | if test "$wxUSE_GAUGE" = yes; then | |
e6cc62c6 VS |
7249 | echo "$as_me:$LINENO: result: yes" >&5 |
7250 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7251 | else |
e6cc62c6 VS |
7252 | echo "$as_me:$LINENO: result: no" >&5 |
7253 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7254 | fi |
e6cc62c6 | 7255 | |
10f2d63a | 7256 | |
5005acfe | 7257 | enablestring= |
e6cc62c6 VS |
7258 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5 |
7259 | echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6 | |
10f2d63a VZ |
7260 | no_cache=0 |
7261 | # Check whether --enable-grid or --disable-grid was given. | |
7262 | if test "${enable_grid+set}" = set; then | |
7263 | enableval="$enable_grid" | |
e6cc62c6 | 7264 | |
10f2d63a VZ |
7265 | if test "$enableval" = yes; then |
7266 | ac_cv_use_grid='wxUSE_GRID=yes' | |
7267 | else | |
7268 | ac_cv_use_grid='wxUSE_GRID=no' | |
7269 | fi | |
e6cc62c6 | 7270 | |
10f2d63a | 7271 | else |
e6cc62c6 | 7272 | |
10f2d63a VZ |
7273 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
7274 | if test "x$LINE" != x ; then | |
7275 | eval "DEFAULT_$LINE" | |
7276 | else | |
7277 | no_cache=1 | |
7278 | fi | |
7279 | ||
7280 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
10f2d63a | 7281 | |
e6cc62c6 | 7282 | fi; |
10f2d63a VZ |
7283 | |
7284 | eval "$ac_cv_use_grid" | |
7285 | if test "$no_cache" != 1; then | |
7286 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
7287 | fi | |
7288 | ||
7289 | if test "$wxUSE_GRID" = yes; then | |
e6cc62c6 VS |
7290 | echo "$as_me:$LINENO: result: yes" >&5 |
7291 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7292 | else |
e6cc62c6 VS |
7293 | echo "$as_me:$LINENO: result: no" >&5 |
7294 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7295 | fi |
e6cc62c6 | 7296 | |
10f2d63a | 7297 | |
5005acfe | 7298 | enablestring= |
e6cc62c6 VS |
7299 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5 |
7300 | echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6 | |
10f2d63a VZ |
7301 | no_cache=0 |
7302 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
7303 | if test "${enable_imaglist+set}" = set; then | |
7304 | enableval="$enable_imaglist" | |
e6cc62c6 | 7305 | |
10f2d63a VZ |
7306 | if test "$enableval" = yes; then |
7307 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
7308 | else | |
7309 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
7310 | fi | |
e6cc62c6 | 7311 | |
10f2d63a | 7312 | else |
e6cc62c6 | 7313 | |
10f2d63a VZ |
7314 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
7315 | if test "x$LINE" != x ; then | |
7316 | eval "DEFAULT_$LINE" | |
7317 | else | |
7318 | no_cache=1 | |
7319 | fi | |
7320 | ||
7321 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
10f2d63a | 7322 | |
e6cc62c6 | 7323 | fi; |
10f2d63a VZ |
7324 | |
7325 | eval "$ac_cv_use_imaglist" | |
7326 | if test "$no_cache" != 1; then | |
7327 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
7328 | fi | |
7329 | ||
7330 | if test "$wxUSE_IMAGLIST" = yes; then | |
e6cc62c6 VS |
7331 | echo "$as_me:$LINENO: result: yes" >&5 |
7332 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7333 | else |
e6cc62c6 VS |
7334 | echo "$as_me:$LINENO: result: no" >&5 |
7335 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7336 | fi |
e6cc62c6 | 7337 | |
10f2d63a | 7338 | |
0e012a93 VZ |
7339 | enablestring= |
7340 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5 | |
7341 | echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6 | |
7342 | no_cache=0 | |
7343 | # Check whether --enable-listbook or --disable-listbook was given. | |
7344 | if test "${enable_listbook+set}" = set; then | |
7345 | enableval="$enable_listbook" | |
7346 | ||
7347 | if test "$enableval" = yes; then | |
7348 | ac_cv_use_listbook='wxUSE_LISTBOOK=yes' | |
7349 | else | |
7350 | ac_cv_use_listbook='wxUSE_LISTBOOK=no' | |
7351 | fi | |
7352 | ||
7353 | else | |
7354 | ||
7355 | LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}` | |
7356 | if test "x$LINE" != x ; then | |
7357 | eval "DEFAULT_$LINE" | |
7358 | else | |
7359 | no_cache=1 | |
7360 | fi | |
7361 | ||
7362 | ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK | |
7363 | ||
7364 | fi; | |
7365 | ||
7366 | eval "$ac_cv_use_listbook" | |
7367 | if test "$no_cache" != 1; then | |
7368 | echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp | |
7369 | fi | |
7370 | ||
7371 | if test "$wxUSE_LISTBOOK" = yes; then | |
7372 | echo "$as_me:$LINENO: result: yes" >&5 | |
7373 | echo "${ECHO_T}yes" >&6 | |
7374 | else | |
7375 | echo "$as_me:$LINENO: result: no" >&5 | |
7376 | echo "${ECHO_T}no" >&6 | |
7377 | fi | |
7378 | ||
7379 | ||
5005acfe | 7380 | enablestring= |
e6cc62c6 VS |
7381 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5 |
7382 | echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6 | |
10f2d63a VZ |
7383 | no_cache=0 |
7384 | # Check whether --enable-listbox or --disable-listbox was given. | |
7385 | if test "${enable_listbox+set}" = set; then | |
7386 | enableval="$enable_listbox" | |
e6cc62c6 | 7387 | |
10f2d63a VZ |
7388 | if test "$enableval" = yes; then |
7389 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
7390 | else | |
7391 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
7392 | fi | |
e6cc62c6 | 7393 | |
10f2d63a | 7394 | else |
e6cc62c6 | 7395 | |
10f2d63a VZ |
7396 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
7397 | if test "x$LINE" != x ; then | |
7398 | eval "DEFAULT_$LINE" | |
7399 | else | |
7400 | no_cache=1 | |
7401 | fi | |
7402 | ||
7403 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
10f2d63a | 7404 | |
e6cc62c6 | 7405 | fi; |
10f2d63a VZ |
7406 | |
7407 | eval "$ac_cv_use_listbox" | |
7408 | if test "$no_cache" != 1; then | |
7409 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
7410 | fi | |
7411 | ||
7412 | if test "$wxUSE_LISTBOX" = yes; then | |
e6cc62c6 VS |
7413 | echo "$as_me:$LINENO: result: yes" >&5 |
7414 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7415 | else |
e6cc62c6 VS |
7416 | echo "$as_me:$LINENO: result: no" >&5 |
7417 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7418 | fi |
e6cc62c6 | 7419 | |
10f2d63a | 7420 | |
5005acfe | 7421 | enablestring= |
e6cc62c6 VS |
7422 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5 |
7423 | echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6 | |
10f2d63a VZ |
7424 | no_cache=0 |
7425 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
7426 | if test "${enable_listctrl+set}" = set; then | |
7427 | enableval="$enable_listctrl" | |
e6cc62c6 | 7428 | |
10f2d63a VZ |
7429 | if test "$enableval" = yes; then |
7430 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
7431 | else | |
7432 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
7433 | fi | |
e6cc62c6 | 7434 | |
10f2d63a | 7435 | else |
e6cc62c6 | 7436 | |
10f2d63a VZ |
7437 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
7438 | if test "x$LINE" != x ; then | |
7439 | eval "DEFAULT_$LINE" | |
7440 | else | |
7441 | no_cache=1 | |
7442 | fi | |
7443 | ||
7444 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
10f2d63a | 7445 | |
e6cc62c6 | 7446 | fi; |
10f2d63a VZ |
7447 | |
7448 | eval "$ac_cv_use_listctrl" | |
7449 | if test "$no_cache" != 1; then | |
7450 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
7451 | fi | |
7452 | ||
7453 | if test "$wxUSE_LISTCTRL" = yes; then | |
e6cc62c6 VS |
7454 | echo "$as_me:$LINENO: result: yes" >&5 |
7455 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7456 | else |
e6cc62c6 VS |
7457 | echo "$as_me:$LINENO: result: no" >&5 |
7458 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7459 | fi |
e6cc62c6 | 7460 | |
10f2d63a | 7461 | |
5005acfe | 7462 | enablestring= |
e6cc62c6 VS |
7463 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5 |
7464 | echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6 | |
10f2d63a VZ |
7465 | no_cache=0 |
7466 | # Check whether --enable-notebook or --disable-notebook was given. | |
7467 | if test "${enable_notebook+set}" = set; then | |
7468 | enableval="$enable_notebook" | |
e6cc62c6 | 7469 | |
10f2d63a VZ |
7470 | if test "$enableval" = yes; then |
7471 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
7472 | else | |
7473 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
7474 | fi | |
e6cc62c6 | 7475 | |
10f2d63a | 7476 | else |
e6cc62c6 | 7477 | |
10f2d63a VZ |
7478 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
7479 | if test "x$LINE" != x ; then | |
7480 | eval "DEFAULT_$LINE" | |
7481 | else | |
7482 | no_cache=1 | |
7483 | fi | |
7484 | ||
7485 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
10f2d63a | 7486 | |
e6cc62c6 | 7487 | fi; |
10f2d63a VZ |
7488 | |
7489 | eval "$ac_cv_use_notebook" | |
7490 | if test "$no_cache" != 1; then | |
7491 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
7492 | fi | |
7493 | ||
7494 | if test "$wxUSE_NOTEBOOK" = yes; then | |
e6cc62c6 VS |
7495 | echo "$as_me:$LINENO: result: yes" >&5 |
7496 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7497 | else |
e6cc62c6 VS |
7498 | echo "$as_me:$LINENO: result: no" >&5 |
7499 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7500 | fi |
e6cc62c6 | 7501 | |
10f2d63a | 7502 | |
5005acfe | 7503 | enablestring= |
e6cc62c6 VS |
7504 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5 |
7505 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6 | |
10f2d63a VZ |
7506 | no_cache=0 |
7507 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
7508 | if test "${enable_radiobox+set}" = set; then | |
7509 | enableval="$enable_radiobox" | |
e6cc62c6 | 7510 | |
10f2d63a VZ |
7511 | if test "$enableval" = yes; then |
7512 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
7513 | else | |
7514 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
7515 | fi | |
e6cc62c6 | 7516 | |
10f2d63a | 7517 | else |
e6cc62c6 | 7518 | |
10f2d63a VZ |
7519 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
7520 | if test "x$LINE" != x ; then | |
7521 | eval "DEFAULT_$LINE" | |
7522 | else | |
7523 | no_cache=1 | |
7524 | fi | |
7525 | ||
7526 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
10f2d63a | 7527 | |
e6cc62c6 | 7528 | fi; |
10f2d63a VZ |
7529 | |
7530 | eval "$ac_cv_use_radiobox" | |
7531 | if test "$no_cache" != 1; then | |
7532 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
7533 | fi | |
7534 | ||
7535 | if test "$wxUSE_RADIOBOX" = yes; then | |
e6cc62c6 VS |
7536 | echo "$as_me:$LINENO: result: yes" >&5 |
7537 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7538 | else |
e6cc62c6 VS |
7539 | echo "$as_me:$LINENO: result: no" >&5 |
7540 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7541 | fi |
e6cc62c6 | 7542 | |
10f2d63a | 7543 | |
5005acfe | 7544 | enablestring= |
e6cc62c6 VS |
7545 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5 |
7546 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6 | |
10f2d63a VZ |
7547 | no_cache=0 |
7548 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
7549 | if test "${enable_radiobtn+set}" = set; then | |
7550 | enableval="$enable_radiobtn" | |
e6cc62c6 | 7551 | |
10f2d63a VZ |
7552 | if test "$enableval" = yes; then |
7553 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
7554 | else | |
7555 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
7556 | fi | |
e6cc62c6 | 7557 | |
10f2d63a | 7558 | else |
e6cc62c6 | 7559 | |
10f2d63a VZ |
7560 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
7561 | if test "x$LINE" != x ; then | |
7562 | eval "DEFAULT_$LINE" | |
7563 | else | |
7564 | no_cache=1 | |
7565 | fi | |
7566 | ||
7567 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
10f2d63a | 7568 | |
e6cc62c6 | 7569 | fi; |
10f2d63a VZ |
7570 | |
7571 | eval "$ac_cv_use_radiobtn" | |
7572 | if test "$no_cache" != 1; then | |
7573 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
7574 | fi | |
7575 | ||
7576 | if test "$wxUSE_RADIOBTN" = yes; then | |
e6cc62c6 VS |
7577 | echo "$as_me:$LINENO: result: yes" >&5 |
7578 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7579 | else |
e6cc62c6 VS |
7580 | echo "$as_me:$LINENO: result: no" >&5 |
7581 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7582 | fi |
e6cc62c6 | 7583 | |
10f2d63a | 7584 | |
5005acfe | 7585 | enablestring= |
e6cc62c6 VS |
7586 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5 |
7587 | echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6 | |
10f2d63a VZ |
7588 | no_cache=0 |
7589 | # Check whether --enable-sash or --disable-sash was given. | |
7590 | if test "${enable_sash+set}" = set; then | |
7591 | enableval="$enable_sash" | |
e6cc62c6 | 7592 | |
10f2d63a VZ |
7593 | if test "$enableval" = yes; then |
7594 | ac_cv_use_sash='wxUSE_SASH=yes' | |
7595 | else | |
7596 | ac_cv_use_sash='wxUSE_SASH=no' | |
7597 | fi | |
e6cc62c6 | 7598 | |
10f2d63a | 7599 | else |
e6cc62c6 | 7600 | |
10f2d63a VZ |
7601 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
7602 | if test "x$LINE" != x ; then | |
7603 | eval "DEFAULT_$LINE" | |
7604 | else | |
7605 | no_cache=1 | |
7606 | fi | |
7607 | ||
7608 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
10f2d63a | 7609 | |
e6cc62c6 | 7610 | fi; |
10f2d63a VZ |
7611 | |
7612 | eval "$ac_cv_use_sash" | |
7613 | if test "$no_cache" != 1; then | |
7614 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
7615 | fi | |
7616 | ||
7617 | if test "$wxUSE_SASH" = yes; then | |
e6cc62c6 VS |
7618 | echo "$as_me:$LINENO: result: yes" >&5 |
7619 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7620 | else |
e6cc62c6 VS |
7621 | echo "$as_me:$LINENO: result: no" >&5 |
7622 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7623 | fi |
e6cc62c6 | 7624 | |
10f2d63a | 7625 | |
5005acfe | 7626 | enablestring= |
e6cc62c6 VS |
7627 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5 |
7628 | echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6 | |
10f2d63a VZ |
7629 | no_cache=0 |
7630 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
7631 | if test "${enable_scrollbar+set}" = set; then | |
7632 | enableval="$enable_scrollbar" | |
e6cc62c6 | 7633 | |
10f2d63a VZ |
7634 | if test "$enableval" = yes; then |
7635 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
7636 | else | |
7637 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
7638 | fi | |
e6cc62c6 | 7639 | |
10f2d63a | 7640 | else |
e6cc62c6 | 7641 | |
10f2d63a VZ |
7642 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
7643 | if test "x$LINE" != x ; then | |
7644 | eval "DEFAULT_$LINE" | |
7645 | else | |
7646 | no_cache=1 | |
7647 | fi | |
7648 | ||
7649 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
10f2d63a | 7650 | |
e6cc62c6 | 7651 | fi; |
10f2d63a VZ |
7652 | |
7653 | eval "$ac_cv_use_scrollbar" | |
7654 | if test "$no_cache" != 1; then | |
7655 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
7656 | fi | |
7657 | ||
7658 | if test "$wxUSE_SCROLLBAR" = yes; then | |
e6cc62c6 VS |
7659 | echo "$as_me:$LINENO: result: yes" >&5 |
7660 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7661 | else |
e6cc62c6 VS |
7662 | echo "$as_me:$LINENO: result: no" >&5 |
7663 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7664 | fi |
e6cc62c6 | 7665 | |
10f2d63a | 7666 | |
5005acfe | 7667 | enablestring= |
e6cc62c6 VS |
7668 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5 |
7669 | echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6 | |
10f2d63a VZ |
7670 | no_cache=0 |
7671 | # Check whether --enable-slider or --disable-slider was given. | |
7672 | if test "${enable_slider+set}" = set; then | |
7673 | enableval="$enable_slider" | |
e6cc62c6 | 7674 | |
10f2d63a VZ |
7675 | if test "$enableval" = yes; then |
7676 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
7677 | else | |
7678 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
7679 | fi | |
e6cc62c6 | 7680 | |
10f2d63a | 7681 | else |
e6cc62c6 | 7682 | |
10f2d63a VZ |
7683 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
7684 | if test "x$LINE" != x ; then | |
7685 | eval "DEFAULT_$LINE" | |
7686 | else | |
7687 | no_cache=1 | |
7688 | fi | |
7689 | ||
7690 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
10f2d63a | 7691 | |
e6cc62c6 | 7692 | fi; |
10f2d63a VZ |
7693 | |
7694 | eval "$ac_cv_use_slider" | |
7695 | if test "$no_cache" != 1; then | |
7696 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
7697 | fi | |
7698 | ||
7699 | if test "$wxUSE_SLIDER" = yes; then | |
e6cc62c6 VS |
7700 | echo "$as_me:$LINENO: result: yes" >&5 |
7701 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7702 | else |
e6cc62c6 VS |
7703 | echo "$as_me:$LINENO: result: no" >&5 |
7704 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7705 | fi |
e6cc62c6 | 7706 | |
10f2d63a | 7707 | |
5005acfe | 7708 | enablestring= |
e6cc62c6 VS |
7709 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5 |
7710 | echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6 | |
10f2d63a VZ |
7711 | no_cache=0 |
7712 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
7713 | if test "${enable_spinbtn+set}" = set; then | |
7714 | enableval="$enable_spinbtn" | |
e6cc62c6 | 7715 | |
10f2d63a VZ |
7716 | if test "$enableval" = yes; then |
7717 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
7718 | else | |
7719 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
7720 | fi | |
e6cc62c6 | 7721 | |
10f2d63a | 7722 | else |
e6cc62c6 | 7723 | |
10f2d63a VZ |
7724 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
7725 | if test "x$LINE" != x ; then | |
7726 | eval "DEFAULT_$LINE" | |
7727 | else | |
7728 | no_cache=1 | |
7729 | fi | |
7730 | ||
7731 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
10f2d63a | 7732 | |
e6cc62c6 | 7733 | fi; |
10f2d63a VZ |
7734 | |
7735 | eval "$ac_cv_use_spinbtn" | |
7736 | if test "$no_cache" != 1; then | |
7737 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
7738 | fi | |
7739 | ||
7740 | if test "$wxUSE_SPINBTN" = yes; then | |
e6cc62c6 VS |
7741 | echo "$as_me:$LINENO: result: yes" >&5 |
7742 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7743 | else |
e6cc62c6 VS |
7744 | echo "$as_me:$LINENO: result: no" >&5 |
7745 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7746 | fi |
e6cc62c6 | 7747 | |
10f2d63a | 7748 | |
5005acfe | 7749 | enablestring= |
e6cc62c6 VS |
7750 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5 |
7751 | echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6 | |
56cfaa52 RR |
7752 | no_cache=0 |
7753 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
7754 | if test "${enable_spinctrl+set}" = set; then | |
7755 | enableval="$enable_spinctrl" | |
e6cc62c6 | 7756 | |
56cfaa52 RR |
7757 | if test "$enableval" = yes; then |
7758 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
7759 | else | |
7760 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
7761 | fi | |
e6cc62c6 | 7762 | |
56cfaa52 | 7763 | else |
e6cc62c6 | 7764 | |
56cfaa52 RR |
7765 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
7766 | if test "x$LINE" != x ; then | |
7767 | eval "DEFAULT_$LINE" | |
7768 | else | |
7769 | no_cache=1 | |
7770 | fi | |
7771 | ||
7772 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
56cfaa52 | 7773 | |
e6cc62c6 | 7774 | fi; |
56cfaa52 RR |
7775 | |
7776 | eval "$ac_cv_use_spinctrl" | |
7777 | if test "$no_cache" != 1; then | |
7778 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
7779 | fi | |
7780 | ||
7781 | if test "$wxUSE_SPINCTRL" = yes; then | |
e6cc62c6 VS |
7782 | echo "$as_me:$LINENO: result: yes" >&5 |
7783 | echo "${ECHO_T}yes" >&6 | |
56cfaa52 | 7784 | else |
e6cc62c6 VS |
7785 | echo "$as_me:$LINENO: result: no" >&5 |
7786 | echo "${ECHO_T}no" >&6 | |
56cfaa52 | 7787 | fi |
e6cc62c6 | 7788 | |
56cfaa52 | 7789 | |
5005acfe | 7790 | enablestring= |
e6cc62c6 VS |
7791 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5 |
7792 | echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6 | |
10f2d63a VZ |
7793 | no_cache=0 |
7794 | # Check whether --enable-splitter or --disable-splitter was given. | |
7795 | if test "${enable_splitter+set}" = set; then | |
7796 | enableval="$enable_splitter" | |
e6cc62c6 | 7797 | |
10f2d63a VZ |
7798 | if test "$enableval" = yes; then |
7799 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
7800 | else | |
7801 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
7802 | fi | |
e6cc62c6 | 7803 | |
10f2d63a | 7804 | else |
e6cc62c6 | 7805 | |
10f2d63a VZ |
7806 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
7807 | if test "x$LINE" != x ; then | |
7808 | eval "DEFAULT_$LINE" | |
7809 | else | |
7810 | no_cache=1 | |
7811 | fi | |
7812 | ||
7813 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
10f2d63a | 7814 | |
e6cc62c6 | 7815 | fi; |
10f2d63a VZ |
7816 | |
7817 | eval "$ac_cv_use_splitter" | |
7818 | if test "$no_cache" != 1; then | |
7819 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
7820 | fi | |
7821 | ||
7822 | if test "$wxUSE_SPLITTER" = yes; then | |
e6cc62c6 VS |
7823 | echo "$as_me:$LINENO: result: yes" >&5 |
7824 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7825 | else |
e6cc62c6 VS |
7826 | echo "$as_me:$LINENO: result: no" >&5 |
7827 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7828 | fi |
e6cc62c6 | 7829 | |
10f2d63a | 7830 | |
5005acfe | 7831 | enablestring= |
e6cc62c6 VS |
7832 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5 |
7833 | echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6 | |
10f2d63a VZ |
7834 | no_cache=0 |
7835 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
7836 | if test "${enable_statbmp+set}" = set; then | |
7837 | enableval="$enable_statbmp" | |
e6cc62c6 | 7838 | |
10f2d63a VZ |
7839 | if test "$enableval" = yes; then |
7840 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
7841 | else | |
7842 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
7843 | fi | |
e6cc62c6 | 7844 | |
10f2d63a | 7845 | else |
e6cc62c6 | 7846 | |
10f2d63a VZ |
7847 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
7848 | if test "x$LINE" != x ; then | |
7849 | eval "DEFAULT_$LINE" | |
7850 | else | |
7851 | no_cache=1 | |
7852 | fi | |
7853 | ||
7854 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
10f2d63a | 7855 | |
e6cc62c6 | 7856 | fi; |
10f2d63a VZ |
7857 | |
7858 | eval "$ac_cv_use_statbmp" | |
7859 | if test "$no_cache" != 1; then | |
7860 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
7861 | fi | |
7862 | ||
7863 | if test "$wxUSE_STATBMP" = yes; then | |
e6cc62c6 VS |
7864 | echo "$as_me:$LINENO: result: yes" >&5 |
7865 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7866 | else |
e6cc62c6 VS |
7867 | echo "$as_me:$LINENO: result: no" >&5 |
7868 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7869 | fi |
e6cc62c6 | 7870 | |
10f2d63a | 7871 | |
5005acfe | 7872 | enablestring= |
e6cc62c6 VS |
7873 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5 |
7874 | echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6 | |
10f2d63a VZ |
7875 | no_cache=0 |
7876 | # Check whether --enable-statbox or --disable-statbox was given. | |
7877 | if test "${enable_statbox+set}" = set; then | |
7878 | enableval="$enable_statbox" | |
e6cc62c6 | 7879 | |
10f2d63a VZ |
7880 | if test "$enableval" = yes; then |
7881 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
7882 | else | |
7883 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
7884 | fi | |
e6cc62c6 | 7885 | |
10f2d63a | 7886 | else |
e6cc62c6 | 7887 | |
10f2d63a VZ |
7888 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
7889 | if test "x$LINE" != x ; then | |
7890 | eval "DEFAULT_$LINE" | |
7891 | else | |
7892 | no_cache=1 | |
7893 | fi | |
7894 | ||
7895 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
10f2d63a | 7896 | |
e6cc62c6 | 7897 | fi; |
10f2d63a VZ |
7898 | |
7899 | eval "$ac_cv_use_statbox" | |
7900 | if test "$no_cache" != 1; then | |
7901 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
7902 | fi | |
7903 | ||
7904 | if test "$wxUSE_STATBOX" = yes; then | |
e6cc62c6 VS |
7905 | echo "$as_me:$LINENO: result: yes" >&5 |
7906 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7907 | else |
e6cc62c6 VS |
7908 | echo "$as_me:$LINENO: result: no" >&5 |
7909 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7910 | fi |
e6cc62c6 | 7911 | |
10f2d63a | 7912 | |
5005acfe | 7913 | enablestring= |
e6cc62c6 VS |
7914 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5 |
7915 | echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6 | |
10f2d63a VZ |
7916 | no_cache=0 |
7917 | # Check whether --enable-statline or --disable-statline was given. | |
7918 | if test "${enable_statline+set}" = set; then | |
7919 | enableval="$enable_statline" | |
e6cc62c6 | 7920 | |
10f2d63a VZ |
7921 | if test "$enableval" = yes; then |
7922 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
7923 | else | |
7924 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
7925 | fi | |
e6cc62c6 | 7926 | |
10f2d63a | 7927 | else |
e6cc62c6 | 7928 | |
10f2d63a VZ |
7929 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
7930 | if test "x$LINE" != x ; then | |
7931 | eval "DEFAULT_$LINE" | |
7932 | else | |
7933 | no_cache=1 | |
7934 | fi | |
7935 | ||
7936 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
10f2d63a | 7937 | |
e6cc62c6 | 7938 | fi; |
10f2d63a VZ |
7939 | |
7940 | eval "$ac_cv_use_statline" | |
7941 | if test "$no_cache" != 1; then | |
7942 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
7943 | fi | |
7944 | ||
7945 | if test "$wxUSE_STATLINE" = yes; then | |
e6cc62c6 VS |
7946 | echo "$as_me:$LINENO: result: yes" >&5 |
7947 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7948 | else |
e6cc62c6 VS |
7949 | echo "$as_me:$LINENO: result: no" >&5 |
7950 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7951 | fi |
e6cc62c6 | 7952 | |
10f2d63a | 7953 | |
5005acfe | 7954 | enablestring= |
e6cc62c6 VS |
7955 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5 |
7956 | echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6 | |
1e6feb95 VZ |
7957 | no_cache=0 |
7958 | # Check whether --enable-stattext or --disable-stattext was given. | |
7959 | if test "${enable_stattext+set}" = set; then | |
7960 | enableval="$enable_stattext" | |
e6cc62c6 | 7961 | |
1e6feb95 VZ |
7962 | if test "$enableval" = yes; then |
7963 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
7964 | else | |
7965 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
7966 | fi | |
e6cc62c6 | 7967 | |
1e6feb95 | 7968 | else |
e6cc62c6 | 7969 | |
1e6feb95 VZ |
7970 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` |
7971 | if test "x$LINE" != x ; then | |
7972 | eval "DEFAULT_$LINE" | |
7973 | else | |
7974 | no_cache=1 | |
7975 | fi | |
7976 | ||
7977 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
1e6feb95 | 7978 | |
e6cc62c6 | 7979 | fi; |
1e6feb95 VZ |
7980 | |
7981 | eval "$ac_cv_use_stattext" | |
7982 | if test "$no_cache" != 1; then | |
7983 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
7984 | fi | |
7985 | ||
7986 | if test "$wxUSE_STATTEXT" = yes; then | |
e6cc62c6 VS |
7987 | echo "$as_me:$LINENO: result: yes" >&5 |
7988 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 7989 | else |
e6cc62c6 VS |
7990 | echo "$as_me:$LINENO: result: no" >&5 |
7991 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 7992 | fi |
e6cc62c6 | 7993 | |
1e6feb95 | 7994 | |
5005acfe | 7995 | enablestring= |
e6cc62c6 VS |
7996 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5 |
7997 | echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6 | |
10f2d63a VZ |
7998 | no_cache=0 |
7999 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
8000 | if test "${enable_statusbar+set}" = set; then | |
8001 | enableval="$enable_statusbar" | |
e6cc62c6 | 8002 | |
10f2d63a VZ |
8003 | if test "$enableval" = yes; then |
8004 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
8005 | else | |
8006 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
8007 | fi | |
e6cc62c6 | 8008 | |
10f2d63a | 8009 | else |
e6cc62c6 | 8010 | |
10f2d63a VZ |
8011 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
8012 | if test "x$LINE" != x ; then | |
8013 | eval "DEFAULT_$LINE" | |
8014 | else | |
8015 | no_cache=1 | |
8016 | fi | |
8017 | ||
8018 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
10f2d63a | 8019 | |
e6cc62c6 | 8020 | fi; |
10f2d63a VZ |
8021 | |
8022 | eval "$ac_cv_use_statusbar" | |
8023 | if test "$no_cache" != 1; then | |
8024 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
8025 | fi | |
8026 | ||
8027 | if test "$wxUSE_STATUSBAR" = yes; then | |
e6cc62c6 VS |
8028 | echo "$as_me:$LINENO: result: yes" >&5 |
8029 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8030 | else |
e6cc62c6 VS |
8031 | echo "$as_me:$LINENO: result: no" >&5 |
8032 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8033 | fi |
e6cc62c6 | 8034 | |
10f2d63a | 8035 | |
5005acfe | 8036 | enablestring= |
e6cc62c6 VS |
8037 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5 |
8038 | echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6 | |
10f2d63a VZ |
8039 | no_cache=0 |
8040 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
8041 | if test "${enable_tabdialog+set}" = set; then | |
8042 | enableval="$enable_tabdialog" | |
e6cc62c6 | 8043 | |
10f2d63a VZ |
8044 | if test "$enableval" = yes; then |
8045 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
8046 | else | |
8047 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
8048 | fi | |
e6cc62c6 | 8049 | |
10f2d63a | 8050 | else |
e6cc62c6 | 8051 | |
10f2d63a VZ |
8052 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
8053 | if test "x$LINE" != x ; then | |
8054 | eval "DEFAULT_$LINE" | |
8055 | else | |
8056 | no_cache=1 | |
8057 | fi | |
8058 | ||
8059 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
10f2d63a | 8060 | |
e6cc62c6 | 8061 | fi; |
10f2d63a VZ |
8062 | |
8063 | eval "$ac_cv_use_tabdialog" | |
8064 | if test "$no_cache" != 1; then | |
8065 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
8066 | fi | |
8067 | ||
8068 | if test "$wxUSE_TABDIALOG" = yes; then | |
e6cc62c6 VS |
8069 | echo "$as_me:$LINENO: result: yes" >&5 |
8070 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8071 | else |
e6cc62c6 VS |
8072 | echo "$as_me:$LINENO: result: no" >&5 |
8073 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8074 | fi |
e6cc62c6 | 8075 | |
10f2d63a | 8076 | |
5005acfe | 8077 | enablestring= |
e6cc62c6 VS |
8078 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5 |
8079 | echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6 | |
1e6feb95 VZ |
8080 | no_cache=0 |
8081 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
8082 | if test "${enable_textctrl+set}" = set; then | |
8083 | enableval="$enable_textctrl" | |
e6cc62c6 | 8084 | |
1e6feb95 VZ |
8085 | if test "$enableval" = yes; then |
8086 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
8087 | else | |
8088 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
8089 | fi | |
e6cc62c6 | 8090 | |
1e6feb95 | 8091 | else |
e6cc62c6 | 8092 | |
1e6feb95 VZ |
8093 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` |
8094 | if test "x$LINE" != x ; then | |
8095 | eval "DEFAULT_$LINE" | |
8096 | else | |
8097 | no_cache=1 | |
8098 | fi | |
8099 | ||
8100 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
1e6feb95 | 8101 | |
e6cc62c6 | 8102 | fi; |
1e6feb95 VZ |
8103 | |
8104 | eval "$ac_cv_use_textctrl" | |
8105 | if test "$no_cache" != 1; then | |
8106 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
8107 | fi | |
8108 | ||
8109 | if test "$wxUSE_TEXTCTRL" = yes; then | |
e6cc62c6 VS |
8110 | echo "$as_me:$LINENO: result: yes" >&5 |
8111 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8112 | else |
e6cc62c6 VS |
8113 | echo "$as_me:$LINENO: result: no" >&5 |
8114 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8115 | fi |
e6cc62c6 | 8116 | |
1e6feb95 | 8117 | |
5005acfe | 8118 | enablestring= |
e6cc62c6 VS |
8119 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5 |
8120 | echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6 | |
1db8dc4a VZ |
8121 | no_cache=0 |
8122 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
8123 | if test "${enable_togglebtn+set}" = set; then | |
8124 | enableval="$enable_togglebtn" | |
e6cc62c6 | 8125 | |
1db8dc4a VZ |
8126 | if test "$enableval" = yes; then |
8127 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
8128 | else | |
8129 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
8130 | fi | |
e6cc62c6 | 8131 | |
1db8dc4a | 8132 | else |
e6cc62c6 | 8133 | |
1db8dc4a VZ |
8134 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
8135 | if test "x$LINE" != x ; then | |
8136 | eval "DEFAULT_$LINE" | |
8137 | else | |
8138 | no_cache=1 | |
8139 | fi | |
8140 | ||
8141 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
1db8dc4a | 8142 | |
e6cc62c6 | 8143 | fi; |
1db8dc4a VZ |
8144 | |
8145 | eval "$ac_cv_use_togglebtn" | |
8146 | if test "$no_cache" != 1; then | |
8147 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
8148 | fi | |
8149 | ||
8150 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
e6cc62c6 VS |
8151 | echo "$as_me:$LINENO: result: yes" >&5 |
8152 | echo "${ECHO_T}yes" >&6 | |
1db8dc4a | 8153 | else |
e6cc62c6 VS |
8154 | echo "$as_me:$LINENO: result: no" >&5 |
8155 | echo "${ECHO_T}no" >&6 | |
1db8dc4a | 8156 | fi |
e6cc62c6 | 8157 | |
1db8dc4a | 8158 | |
5005acfe | 8159 | enablestring= |
e6cc62c6 VS |
8160 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5 |
8161 | echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6 | |
10f2d63a VZ |
8162 | no_cache=0 |
8163 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
8164 | if test "${enable_toolbar+set}" = set; then | |
8165 | enableval="$enable_toolbar" | |
e6cc62c6 | 8166 | |
10f2d63a VZ |
8167 | if test "$enableval" = yes; then |
8168 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
8169 | else | |
8170 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
8171 | fi | |
e6cc62c6 | 8172 | |
10f2d63a | 8173 | else |
e6cc62c6 | 8174 | |
10f2d63a VZ |
8175 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
8176 | if test "x$LINE" != x ; then | |
8177 | eval "DEFAULT_$LINE" | |
8178 | else | |
8179 | no_cache=1 | |
8180 | fi | |
8181 | ||
8182 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
10f2d63a | 8183 | |
e6cc62c6 | 8184 | fi; |
10f2d63a VZ |
8185 | |
8186 | eval "$ac_cv_use_toolbar" | |
8187 | if test "$no_cache" != 1; then | |
8188 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
8189 | fi | |
8190 | ||
8191 | if test "$wxUSE_TOOLBAR" = yes; then | |
e6cc62c6 VS |
8192 | echo "$as_me:$LINENO: result: yes" >&5 |
8193 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8194 | else |
e6cc62c6 VS |
8195 | echo "$as_me:$LINENO: result: no" >&5 |
8196 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8197 | fi |
e6cc62c6 | 8198 | |
10f2d63a | 8199 | |
5005acfe | 8200 | enablestring= |
e6cc62c6 VS |
8201 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5 |
8202 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6 | |
360d6699 VZ |
8203 | no_cache=0 |
8204 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
8205 | if test "${enable_tbarnative+set}" = set; then | |
8206 | enableval="$enable_tbarnative" | |
e6cc62c6 | 8207 | |
360d6699 VZ |
8208 | if test "$enableval" = yes; then |
8209 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
8210 | else | |
8211 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
8212 | fi | |
e6cc62c6 | 8213 | |
360d6699 | 8214 | else |
e6cc62c6 | 8215 | |
360d6699 VZ |
8216 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
8217 | if test "x$LINE" != x ; then | |
8218 | eval "DEFAULT_$LINE" | |
8219 | else | |
8220 | no_cache=1 | |
8221 | fi | |
8222 | ||
8223 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
360d6699 | 8224 | |
e6cc62c6 | 8225 | fi; |
360d6699 VZ |
8226 | |
8227 | eval "$ac_cv_use_tbarnative" | |
8228 | if test "$no_cache" != 1; then | |
8229 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
8230 | fi | |
8231 | ||
8232 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
e6cc62c6 VS |
8233 | echo "$as_me:$LINENO: result: yes" >&5 |
8234 | echo "${ECHO_T}yes" >&6 | |
360d6699 | 8235 | else |
e6cc62c6 VS |
8236 | echo "$as_me:$LINENO: result: no" >&5 |
8237 | echo "${ECHO_T}no" >&6 | |
360d6699 | 8238 | fi |
e6cc62c6 | 8239 | |
360d6699 | 8240 | |
5005acfe | 8241 | enablestring= |
e6cc62c6 VS |
8242 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5 |
8243 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6 | |
360d6699 VZ |
8244 | no_cache=0 |
8245 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
8246 | if test "${enable_tbarsmpl+set}" = set; then | |
8247 | enableval="$enable_tbarsmpl" | |
e6cc62c6 | 8248 | |
360d6699 VZ |
8249 | if test "$enableval" = yes; then |
8250 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
8251 | else | |
8252 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
8253 | fi | |
e6cc62c6 | 8254 | |
360d6699 | 8255 | else |
e6cc62c6 | 8256 | |
360d6699 VZ |
8257 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
8258 | if test "x$LINE" != x ; then | |
8259 | eval "DEFAULT_$LINE" | |
8260 | else | |
8261 | no_cache=1 | |
8262 | fi | |
8263 | ||
8264 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
360d6699 | 8265 | |
e6cc62c6 | 8266 | fi; |
360d6699 VZ |
8267 | |
8268 | eval "$ac_cv_use_tbarsmpl" | |
8269 | if test "$no_cache" != 1; then | |
8270 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
8271 | fi | |
8272 | ||
8273 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
e6cc62c6 VS |
8274 | echo "$as_me:$LINENO: result: yes" >&5 |
8275 | echo "${ECHO_T}yes" >&6 | |
360d6699 | 8276 | else |
e6cc62c6 VS |
8277 | echo "$as_me:$LINENO: result: no" >&5 |
8278 | echo "${ECHO_T}no" >&6 | |
360d6699 | 8279 | fi |
e6cc62c6 | 8280 | |
360d6699 | 8281 | |
5005acfe | 8282 | enablestring= |
e6cc62c6 VS |
8283 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5 |
8284 | echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6 | |
10f2d63a VZ |
8285 | no_cache=0 |
8286 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
8287 | if test "${enable_treectrl+set}" = set; then | |
8288 | enableval="$enable_treectrl" | |
e6cc62c6 | 8289 | |
10f2d63a VZ |
8290 | if test "$enableval" = yes; then |
8291 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
8292 | else | |
8293 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
8294 | fi | |
e6cc62c6 | 8295 | |
10f2d63a | 8296 | else |
e6cc62c6 | 8297 | |
10f2d63a VZ |
8298 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
8299 | if test "x$LINE" != x ; then | |
8300 | eval "DEFAULT_$LINE" | |
8301 | else | |
8302 | no_cache=1 | |
8303 | fi | |
8304 | ||
8305 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
10f2d63a | 8306 | |
e6cc62c6 | 8307 | fi; |
10f2d63a | 8308 | |
1e6feb95 VZ |
8309 | eval "$ac_cv_use_treectrl" |
8310 | if test "$no_cache" != 1; then | |
8311 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
8312 | fi | |
8313 | ||
8314 | if test "$wxUSE_TREECTRL" = yes; then | |
e6cc62c6 VS |
8315 | echo "$as_me:$LINENO: result: yes" >&5 |
8316 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8317 | else |
e6cc62c6 VS |
8318 | echo "$as_me:$LINENO: result: no" >&5 |
8319 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8320 | fi |
e6cc62c6 | 8321 | |
1e6feb95 | 8322 | |
5005acfe | 8323 | enablestring= |
e6cc62c6 VS |
8324 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5 |
8325 | echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6 | |
9926e4a4 VZ |
8326 | no_cache=0 |
8327 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
8328 | if test "${enable_tipwindow+set}" = set; then | |
8329 | enableval="$enable_tipwindow" | |
e6cc62c6 | 8330 | |
9926e4a4 VZ |
8331 | if test "$enableval" = yes; then |
8332 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
8333 | else | |
8334 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
8335 | fi | |
e6cc62c6 | 8336 | |
9926e4a4 | 8337 | else |
e6cc62c6 | 8338 | |
9926e4a4 VZ |
8339 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` |
8340 | if test "x$LINE" != x ; then | |
8341 | eval "DEFAULT_$LINE" | |
8342 | else | |
8343 | no_cache=1 | |
8344 | fi | |
8345 | ||
8346 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
9926e4a4 | 8347 | |
e6cc62c6 | 8348 | fi; |
9926e4a4 VZ |
8349 | |
8350 | eval "$ac_cv_use_tipwindow" | |
8351 | if test "$no_cache" != 1; then | |
8352 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
8353 | fi | |
8354 | ||
8355 | if test "$wxUSE_TIPWINDOW" = yes; then | |
e6cc62c6 VS |
8356 | echo "$as_me:$LINENO: result: yes" >&5 |
8357 | echo "${ECHO_T}yes" >&6 | |
9926e4a4 | 8358 | else |
e6cc62c6 VS |
8359 | echo "$as_me:$LINENO: result: no" >&5 |
8360 | echo "${ECHO_T}no" >&6 | |
9926e4a4 | 8361 | fi |
e6cc62c6 | 8362 | |
9926e4a4 | 8363 | |
5005acfe | 8364 | enablestring= |
e6cc62c6 VS |
8365 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5 |
8366 | echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6 | |
9f41d601 RR |
8367 | no_cache=0 |
8368 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
8369 | if test "${enable_popupwin+set}" = set; then | |
8370 | enableval="$enable_popupwin" | |
e6cc62c6 | 8371 | |
9f41d601 RR |
8372 | if test "$enableval" = yes; then |
8373 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
8374 | else | |
8375 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
8376 | fi | |
e6cc62c6 | 8377 | |
9f41d601 | 8378 | else |
e6cc62c6 | 8379 | |
9f41d601 RR |
8380 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` |
8381 | if test "x$LINE" != x ; then | |
8382 | eval "DEFAULT_$LINE" | |
8383 | else | |
8384 | no_cache=1 | |
8385 | fi | |
8386 | ||
8387 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
9f41d601 | 8388 | |
e6cc62c6 | 8389 | fi; |
9f41d601 RR |
8390 | |
8391 | eval "$ac_cv_use_popupwin" | |
8392 | if test "$no_cache" != 1; then | |
8393 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
8394 | fi | |
8395 | ||
8396 | if test "$wxUSE_POPUPWIN" = yes; then | |
e6cc62c6 VS |
8397 | echo "$as_me:$LINENO: result: yes" >&5 |
8398 | echo "${ECHO_T}yes" >&6 | |
9f41d601 | 8399 | else |
e6cc62c6 VS |
8400 | echo "$as_me:$LINENO: result: no" >&5 |
8401 | echo "${ECHO_T}no" >&6 | |
9f41d601 | 8402 | fi |
e6cc62c6 | 8403 | |
52127426 | 8404 | |
8284b0c5 MB |
8405 | |
8406 | ||
5005acfe | 8407 | enablestring= |
e6cc62c6 VS |
8408 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5 |
8409 | echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8410 | no_cache=0 |
8411 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
8412 | if test "${enable_commondlg+set}" = set; then | |
8413 | enableval="$enable_commondlg" | |
e6cc62c6 | 8414 | |
1e6feb95 VZ |
8415 | if test "$enableval" = yes; then |
8416 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
8417 | else | |
8418 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
8419 | fi | |
e6cc62c6 | 8420 | |
1e6feb95 | 8421 | else |
e6cc62c6 | 8422 | |
1e6feb95 VZ |
8423 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` |
8424 | if test "x$LINE" != x ; then | |
8425 | eval "DEFAULT_$LINE" | |
8426 | else | |
8427 | no_cache=1 | |
8428 | fi | |
8429 | ||
8430 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
1e6feb95 | 8431 | |
e6cc62c6 | 8432 | fi; |
1e6feb95 VZ |
8433 | |
8434 | eval "$ac_cv_use_commondlg" | |
8435 | if test "$no_cache" != 1; then | |
8436 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
8437 | fi | |
8438 | ||
8439 | if test "$wxUSE_COMMONDLGS" = yes; then | |
e6cc62c6 VS |
8440 | echo "$as_me:$LINENO: result: yes" >&5 |
8441 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8442 | else |
e6cc62c6 VS |
8443 | echo "$as_me:$LINENO: result: no" >&5 |
8444 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8445 | fi |
e6cc62c6 | 8446 | |
1e6feb95 | 8447 | |
5005acfe | 8448 | enablestring= |
e6cc62c6 VS |
8449 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5 |
8450 | echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8451 | no_cache=0 |
8452 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
8453 | if test "${enable_choicedlg+set}" = set; then | |
8454 | enableval="$enable_choicedlg" | |
e6cc62c6 | 8455 | |
1e6feb95 VZ |
8456 | if test "$enableval" = yes; then |
8457 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
8458 | else | |
8459 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
8460 | fi | |
e6cc62c6 | 8461 | |
1e6feb95 | 8462 | else |
e6cc62c6 | 8463 | |
1e6feb95 VZ |
8464 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` |
8465 | if test "x$LINE" != x ; then | |
8466 | eval "DEFAULT_$LINE" | |
8467 | else | |
8468 | no_cache=1 | |
8469 | fi | |
8470 | ||
8471 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
1e6feb95 | 8472 | |
e6cc62c6 | 8473 | fi; |
1e6feb95 VZ |
8474 | |
8475 | eval "$ac_cv_use_choicedlg" | |
8476 | if test "$no_cache" != 1; then | |
8477 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
8478 | fi | |
8479 | ||
8480 | if test "$wxUSE_CHOICEDLG" = yes; then | |
e6cc62c6 VS |
8481 | echo "$as_me:$LINENO: result: yes" >&5 |
8482 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8483 | else |
e6cc62c6 VS |
8484 | echo "$as_me:$LINENO: result: no" >&5 |
8485 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8486 | fi |
e6cc62c6 | 8487 | |
1e6feb95 | 8488 | |
5005acfe | 8489 | enablestring= |
e6cc62c6 VS |
8490 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5 |
8491 | echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8492 | no_cache=0 |
8493 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
8494 | if test "${enable_coldlg+set}" = set; then | |
8495 | enableval="$enable_coldlg" | |
e6cc62c6 | 8496 | |
1e6feb95 VZ |
8497 | if test "$enableval" = yes; then |
8498 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
8499 | else | |
8500 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
8501 | fi | |
e6cc62c6 | 8502 | |
1e6feb95 | 8503 | else |
e6cc62c6 | 8504 | |
1e6feb95 VZ |
8505 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` |
8506 | if test "x$LINE" != x ; then | |
8507 | eval "DEFAULT_$LINE" | |
8508 | else | |
8509 | no_cache=1 | |
8510 | fi | |
8511 | ||
8512 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
1e6feb95 | 8513 | |
e6cc62c6 | 8514 | fi; |
1e6feb95 VZ |
8515 | |
8516 | eval "$ac_cv_use_coldlg" | |
8517 | if test "$no_cache" != 1; then | |
8518 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
8519 | fi | |
8520 | ||
8521 | if test "$wxUSE_COLOURDLG" = yes; then | |
e6cc62c6 VS |
8522 | echo "$as_me:$LINENO: result: yes" >&5 |
8523 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8524 | else |
e6cc62c6 VS |
8525 | echo "$as_me:$LINENO: result: no" >&5 |
8526 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8527 | fi |
e6cc62c6 | 8528 | |
1e6feb95 | 8529 | |
5005acfe | 8530 | enablestring= |
e6cc62c6 VS |
8531 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5 |
8532 | echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8533 | no_cache=0 |
8534 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
8535 | if test "${enable_filedlg+set}" = set; then | |
8536 | enableval="$enable_filedlg" | |
e6cc62c6 | 8537 | |
1e6feb95 VZ |
8538 | if test "$enableval" = yes; then |
8539 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
8540 | else | |
8541 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
8542 | fi | |
e6cc62c6 | 8543 | |
1e6feb95 | 8544 | else |
e6cc62c6 | 8545 | |
1e6feb95 VZ |
8546 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` |
8547 | if test "x$LINE" != x ; then | |
8548 | eval "DEFAULT_$LINE" | |
8549 | else | |
8550 | no_cache=1 | |
8551 | fi | |
8552 | ||
8553 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
1e6feb95 | 8554 | |
e6cc62c6 | 8555 | fi; |
1e6feb95 VZ |
8556 | |
8557 | eval "$ac_cv_use_filedlg" | |
8558 | if test "$no_cache" != 1; then | |
8559 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
8560 | fi | |
8561 | ||
8562 | if test "$wxUSE_FILEDLG" = yes; then | |
e6cc62c6 VS |
8563 | echo "$as_me:$LINENO: result: yes" >&5 |
8564 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8565 | else |
e6cc62c6 VS |
8566 | echo "$as_me:$LINENO: result: no" >&5 |
8567 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8568 | fi |
e6cc62c6 | 8569 | |
1e6feb95 | 8570 | |
5005acfe | 8571 | enablestring= |
e6cc62c6 VS |
8572 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5 |
8573 | echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6 | |
8db37e06 | 8574 | no_cache=0 |
69d27ff7 MB |
8575 | # Check whether --enable-finddlg or --disable-finddlg was given. |
8576 | if test "${enable_finddlg+set}" = set; then | |
8577 | enableval="$enable_finddlg" | |
e6cc62c6 | 8578 | |
8db37e06 | 8579 | if test "$enableval" = yes; then |
69d27ff7 | 8580 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' |
8db37e06 | 8581 | else |
69d27ff7 | 8582 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' |
8db37e06 | 8583 | fi |
e6cc62c6 | 8584 | |
8db37e06 | 8585 | else |
e6cc62c6 | 8586 | |
8db37e06 VZ |
8587 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` |
8588 | if test "x$LINE" != x ; then | |
8589 | eval "DEFAULT_$LINE" | |
8590 | else | |
8591 | no_cache=1 | |
8592 | fi | |
8593 | ||
69d27ff7 | 8594 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG |
8db37e06 | 8595 | |
e6cc62c6 | 8596 | fi; |
8db37e06 | 8597 | |
69d27ff7 | 8598 | eval "$ac_cv_use_finddlg" |
8db37e06 | 8599 | if test "$no_cache" != 1; then |
69d27ff7 | 8600 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp |
8db37e06 VZ |
8601 | fi |
8602 | ||
8603 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
e6cc62c6 VS |
8604 | echo "$as_me:$LINENO: result: yes" >&5 |
8605 | echo "${ECHO_T}yes" >&6 | |
8db37e06 | 8606 | else |
e6cc62c6 VS |
8607 | echo "$as_me:$LINENO: result: no" >&5 |
8608 | echo "${ECHO_T}no" >&6 | |
8db37e06 | 8609 | fi |
e6cc62c6 | 8610 | |
8db37e06 | 8611 | |
5005acfe | 8612 | enablestring= |
e6cc62c6 VS |
8613 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5 |
8614 | echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8615 | no_cache=0 |
8616 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
8617 | if test "${enable_fontdlg+set}" = set; then | |
8618 | enableval="$enable_fontdlg" | |
e6cc62c6 | 8619 | |
1e6feb95 VZ |
8620 | if test "$enableval" = yes; then |
8621 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
8622 | else | |
8623 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
8624 | fi | |
e6cc62c6 | 8625 | |
1e6feb95 | 8626 | else |
e6cc62c6 | 8627 | |
1e6feb95 VZ |
8628 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` |
8629 | if test "x$LINE" != x ; then | |
8630 | eval "DEFAULT_$LINE" | |
8631 | else | |
8632 | no_cache=1 | |
8633 | fi | |
8634 | ||
8635 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
1e6feb95 | 8636 | |
e6cc62c6 | 8637 | fi; |
1e6feb95 VZ |
8638 | |
8639 | eval "$ac_cv_use_fontdlg" | |
8640 | if test "$no_cache" != 1; then | |
8641 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
8642 | fi | |
8643 | ||
8644 | if test "$wxUSE_FONTDLG" = yes; then | |
e6cc62c6 VS |
8645 | echo "$as_me:$LINENO: result: yes" >&5 |
8646 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8647 | else |
e6cc62c6 VS |
8648 | echo "$as_me:$LINENO: result: no" >&5 |
8649 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8650 | fi |
e6cc62c6 | 8651 | |
1e6feb95 | 8652 | |
5005acfe | 8653 | enablestring= |
e6cc62c6 VS |
8654 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5 |
8655 | echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8656 | no_cache=0 |
8657 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
8658 | if test "${enable_dirdlg+set}" = set; then | |
8659 | enableval="$enable_dirdlg" | |
e6cc62c6 | 8660 | |
1e6feb95 VZ |
8661 | if test "$enableval" = yes; then |
8662 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
8663 | else | |
8664 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
8665 | fi | |
e6cc62c6 | 8666 | |
1e6feb95 | 8667 | else |
e6cc62c6 | 8668 | |
1e6feb95 VZ |
8669 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` |
8670 | if test "x$LINE" != x ; then | |
8671 | eval "DEFAULT_$LINE" | |
8672 | else | |
8673 | no_cache=1 | |
8674 | fi | |
8675 | ||
8676 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
1e6feb95 | 8677 | |
e6cc62c6 | 8678 | fi; |
1e6feb95 VZ |
8679 | |
8680 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 8681 | if test "$no_cache" != 1; then |
1e6feb95 | 8682 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
8683 | fi |
8684 | ||
1e6feb95 | 8685 | if test "$wxUSE_DIRDLG" = yes; then |
e6cc62c6 VS |
8686 | echo "$as_me:$LINENO: result: yes" >&5 |
8687 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8688 | else |
e6cc62c6 VS |
8689 | echo "$as_me:$LINENO: result: no" >&5 |
8690 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8691 | fi |
e6cc62c6 | 8692 | |
698dcdb6 | 8693 | |
5005acfe | 8694 | enablestring= |
e6cc62c6 VS |
8695 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5 |
8696 | echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6 | |
10f2d63a | 8697 | no_cache=0 |
1e6feb95 VZ |
8698 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
8699 | if test "${enable_msgdlg+set}" = set; then | |
8700 | enableval="$enable_msgdlg" | |
e6cc62c6 | 8701 | |
10f2d63a | 8702 | if test "$enableval" = yes; then |
1e6feb95 | 8703 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 8704 | else |
1e6feb95 | 8705 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 8706 | fi |
e6cc62c6 | 8707 | |
10f2d63a | 8708 | else |
e6cc62c6 | 8709 | |
1e6feb95 | 8710 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
8711 | if test "x$LINE" != x ; then |
8712 | eval "DEFAULT_$LINE" | |
8713 | else | |
8714 | no_cache=1 | |
8715 | fi | |
8716 | ||
1e6feb95 | 8717 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
10f2d63a | 8718 | |
e6cc62c6 | 8719 | fi; |
10f2d63a | 8720 | |
1e6feb95 | 8721 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 8722 | if test "$no_cache" != 1; then |
1e6feb95 | 8723 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
8724 | fi |
8725 | ||
1e6feb95 | 8726 | if test "$wxUSE_MSGDLG" = yes; then |
e6cc62c6 VS |
8727 | echo "$as_me:$LINENO: result: yes" >&5 |
8728 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8729 | else |
e6cc62c6 VS |
8730 | echo "$as_me:$LINENO: result: no" >&5 |
8731 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8732 | fi |
e6cc62c6 | 8733 | |
10f2d63a | 8734 | |
5005acfe | 8735 | enablestring= |
e6cc62c6 VS |
8736 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5 |
8737 | echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6 | |
10f2d63a | 8738 | no_cache=0 |
1e6feb95 VZ |
8739 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
8740 | if test "${enable_numberdlg+set}" = set; then | |
8741 | enableval="$enable_numberdlg" | |
e6cc62c6 | 8742 | |
10f2d63a | 8743 | if test "$enableval" = yes; then |
1e6feb95 | 8744 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 8745 | else |
1e6feb95 | 8746 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 8747 | fi |
e6cc62c6 | 8748 | |
10f2d63a | 8749 | else |
e6cc62c6 | 8750 | |
1e6feb95 | 8751 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
8752 | if test "x$LINE" != x ; then |
8753 | eval "DEFAULT_$LINE" | |
8754 | else | |
8755 | no_cache=1 | |
8756 | fi | |
8757 | ||
1e6feb95 | 8758 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
10f2d63a | 8759 | |
e6cc62c6 | 8760 | fi; |
10f2d63a | 8761 | |
1e6feb95 | 8762 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 8763 | if test "$no_cache" != 1; then |
1e6feb95 | 8764 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
8765 | fi |
8766 | ||
1e6feb95 | 8767 | if test "$wxUSE_NUMBERDLG" = yes; then |
e6cc62c6 VS |
8768 | echo "$as_me:$LINENO: result: yes" >&5 |
8769 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8770 | else |
e6cc62c6 VS |
8771 | echo "$as_me:$LINENO: result: no" >&5 |
8772 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8773 | fi |
e6cc62c6 | 8774 | |
10f2d63a | 8775 | |
5005acfe | 8776 | enablestring= |
e6cc62c6 VS |
8777 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5 |
8778 | echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6 | |
cbca9943 VZ |
8779 | no_cache=0 |
8780 | # Check whether --enable-splash or --disable-splash was given. | |
8781 | if test "${enable_splash+set}" = set; then | |
8782 | enableval="$enable_splash" | |
e6cc62c6 | 8783 | |
cbca9943 VZ |
8784 | if test "$enableval" = yes; then |
8785 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
8786 | else | |
8787 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
8788 | fi | |
e6cc62c6 | 8789 | |
cbca9943 | 8790 | else |
e6cc62c6 | 8791 | |
cbca9943 VZ |
8792 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` |
8793 | if test "x$LINE" != x ; then | |
8794 | eval "DEFAULT_$LINE" | |
8795 | else | |
8796 | no_cache=1 | |
8797 | fi | |
8798 | ||
8799 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
cbca9943 | 8800 | |
e6cc62c6 | 8801 | fi; |
cbca9943 VZ |
8802 | |
8803 | eval "$ac_cv_use_splash" | |
8804 | if test "$no_cache" != 1; then | |
8805 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
8806 | fi | |
8807 | ||
8808 | if test "$wxUSE_SPLASH" = yes; then | |
e6cc62c6 VS |
8809 | echo "$as_me:$LINENO: result: yes" >&5 |
8810 | echo "${ECHO_T}yes" >&6 | |
cbca9943 | 8811 | else |
e6cc62c6 VS |
8812 | echo "$as_me:$LINENO: result: no" >&5 |
8813 | echo "${ECHO_T}no" >&6 | |
cbca9943 | 8814 | fi |
e6cc62c6 | 8815 | |
cbca9943 | 8816 | |
5005acfe | 8817 | enablestring= |
e6cc62c6 VS |
8818 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5 |
8819 | echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6 | |
10f2d63a VZ |
8820 | no_cache=0 |
8821 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
8822 | if test "${enable_textdlg+set}" = set; then | |
8823 | enableval="$enable_textdlg" | |
e6cc62c6 | 8824 | |
10f2d63a VZ |
8825 | if test "$enableval" = yes; then |
8826 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
8827 | else | |
8828 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
8829 | fi | |
e6cc62c6 | 8830 | |
10f2d63a | 8831 | else |
e6cc62c6 | 8832 | |
10f2d63a VZ |
8833 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
8834 | if test "x$LINE" != x ; then | |
8835 | eval "DEFAULT_$LINE" | |
8836 | else | |
8837 | no_cache=1 | |
8838 | fi | |
8839 | ||
8840 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
10f2d63a | 8841 | |
e6cc62c6 | 8842 | fi; |
10f2d63a VZ |
8843 | |
8844 | eval "$ac_cv_use_textdlg" | |
8845 | if test "$no_cache" != 1; then | |
8846 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
8847 | fi | |
8848 | ||
8849 | if test "$wxUSE_TEXTDLG" = yes; then | |
e6cc62c6 VS |
8850 | echo "$as_me:$LINENO: result: yes" >&5 |
8851 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8852 | else |
e6cc62c6 VS |
8853 | echo "$as_me:$LINENO: result: no" >&5 |
8854 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8855 | fi |
e6cc62c6 | 8856 | |
10f2d63a | 8857 | |
5005acfe | 8858 | enablestring= |
e6cc62c6 VS |
8859 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5 |
8860 | echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6 | |
10f2d63a VZ |
8861 | no_cache=0 |
8862 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
8863 | if test "${enable_tipdlg+set}" = set; then | |
8864 | enableval="$enable_tipdlg" | |
e6cc62c6 | 8865 | |
10f2d63a VZ |
8866 | if test "$enableval" = yes; then |
8867 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
8868 | else | |
8869 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
8870 | fi | |
e6cc62c6 | 8871 | |
10f2d63a | 8872 | else |
e6cc62c6 | 8873 | |
10f2d63a VZ |
8874 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
8875 | if test "x$LINE" != x ; then | |
8876 | eval "DEFAULT_$LINE" | |
8877 | else | |
8878 | no_cache=1 | |
8879 | fi | |
8880 | ||
8881 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
10f2d63a | 8882 | |
e6cc62c6 | 8883 | fi; |
10f2d63a VZ |
8884 | |
8885 | eval "$ac_cv_use_tipdlg" | |
8886 | if test "$no_cache" != 1; then | |
8887 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
8888 | fi | |
8889 | ||
8890 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
e6cc62c6 VS |
8891 | echo "$as_me:$LINENO: result: yes" >&5 |
8892 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8893 | else |
e6cc62c6 VS |
8894 | echo "$as_me:$LINENO: result: no" >&5 |
8895 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8896 | fi |
e6cc62c6 | 8897 | |
10f2d63a | 8898 | |
5005acfe | 8899 | enablestring= |
e6cc62c6 VS |
8900 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5 |
8901 | echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6 | |
10f2d63a VZ |
8902 | no_cache=0 |
8903 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
8904 | if test "${enable_progressdlg+set}" = set; then | |
8905 | enableval="$enable_progressdlg" | |
e6cc62c6 | 8906 | |
10f2d63a VZ |
8907 | if test "$enableval" = yes; then |
8908 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
8909 | else | |
8910 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
8911 | fi | |
e6cc62c6 | 8912 | |
10f2d63a | 8913 | else |
e6cc62c6 | 8914 | |
10f2d63a VZ |
8915 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
8916 | if test "x$LINE" != x ; then | |
8917 | eval "DEFAULT_$LINE" | |
8918 | else | |
8919 | no_cache=1 | |
8920 | fi | |
8921 | ||
8922 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
10f2d63a | 8923 | |
e6cc62c6 | 8924 | fi; |
10f2d63a VZ |
8925 | |
8926 | eval "$ac_cv_use_progressdlg" | |
8927 | if test "$no_cache" != 1; then | |
8928 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
8929 | fi | |
8930 | ||
8931 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
e6cc62c6 VS |
8932 | echo "$as_me:$LINENO: result: yes" >&5 |
8933 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8934 | else |
e6cc62c6 VS |
8935 | echo "$as_me:$LINENO: result: no" >&5 |
8936 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8937 | fi |
e6cc62c6 | 8938 | |
10f2d63a | 8939 | |
5005acfe | 8940 | enablestring= |
e6cc62c6 VS |
8941 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5 |
8942 | echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6 | |
b1f5d087 VZ |
8943 | no_cache=0 |
8944 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
8945 | if test "${enable_wizarddlg+set}" = set; then | |
8946 | enableval="$enable_wizarddlg" | |
e6cc62c6 | 8947 | |
b1f5d087 VZ |
8948 | if test "$enableval" = yes; then |
8949 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
8950 | else | |
8951 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
8952 | fi | |
e6cc62c6 | 8953 | |
b1f5d087 | 8954 | else |
e6cc62c6 | 8955 | |
b1f5d087 VZ |
8956 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` |
8957 | if test "x$LINE" != x ; then | |
8958 | eval "DEFAULT_$LINE" | |
8959 | else | |
8960 | no_cache=1 | |
8961 | fi | |
8962 | ||
8963 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
b1f5d087 | 8964 | |
e6cc62c6 | 8965 | fi; |
b1f5d087 VZ |
8966 | |
8967 | eval "$ac_cv_use_wizarddlg" | |
8968 | if test "$no_cache" != 1; then | |
8969 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
8970 | fi | |
8971 | ||
8972 | if test "$wxUSE_WIZARDDLG" = yes; then | |
e6cc62c6 VS |
8973 | echo "$as_me:$LINENO: result: yes" >&5 |
8974 | echo "${ECHO_T}yes" >&6 | |
b1f5d087 | 8975 | else |
e6cc62c6 VS |
8976 | echo "$as_me:$LINENO: result: no" >&5 |
8977 | echo "${ECHO_T}no" >&6 | |
b1f5d087 | 8978 | fi |
e6cc62c6 | 8979 | |
8284b0c5 MB |
8980 | |
8981 | ||
52127426 | 8982 | |
5005acfe | 8983 | enablestring= |
e6cc62c6 VS |
8984 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5 |
8985 | echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6 | |
1e6feb95 VZ |
8986 | no_cache=0 |
8987 | # Check whether --enable-menus or --disable-menus was given. | |
8988 | if test "${enable_menus+set}" = set; then | |
8989 | enableval="$enable_menus" | |
e6cc62c6 | 8990 | |
1e6feb95 VZ |
8991 | if test "$enableval" = yes; then |
8992 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
8993 | else | |
8994 | ac_cv_use_menus='wxUSE_MENUS=no' | |
8995 | fi | |
e6cc62c6 | 8996 | |
1e6feb95 | 8997 | else |
e6cc62c6 | 8998 | |
1e6feb95 VZ |
8999 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` |
9000 | if test "x$LINE" != x ; then | |
9001 | eval "DEFAULT_$LINE" | |
9002 | else | |
9003 | no_cache=1 | |
9004 | fi | |
9005 | ||
9006 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
1e6feb95 | 9007 | |
e6cc62c6 | 9008 | fi; |
1e6feb95 VZ |
9009 | |
9010 | eval "$ac_cv_use_menus" | |
9011 | if test "$no_cache" != 1; then | |
9012 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
9013 | fi | |
9014 | ||
9015 | if test "$wxUSE_MENUS" = yes; then | |
e6cc62c6 VS |
9016 | echo "$as_me:$LINENO: result: yes" >&5 |
9017 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 9018 | else |
e6cc62c6 VS |
9019 | echo "$as_me:$LINENO: result: no" >&5 |
9020 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 9021 | fi |
e6cc62c6 | 9022 | |
1e6feb95 | 9023 | |
5005acfe | 9024 | enablestring= |
e6cc62c6 VS |
9025 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5 |
9026 | echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6 | |
10f2d63a VZ |
9027 | no_cache=0 |
9028 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
9029 | if test "${enable_miniframe+set}" = set; then | |
9030 | enableval="$enable_miniframe" | |
e6cc62c6 | 9031 | |
10f2d63a VZ |
9032 | if test "$enableval" = yes; then |
9033 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
9034 | else | |
9035 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
9036 | fi | |
e6cc62c6 | 9037 | |
10f2d63a | 9038 | else |
e6cc62c6 | 9039 | |
10f2d63a VZ |
9040 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
9041 | if test "x$LINE" != x ; then | |
9042 | eval "DEFAULT_$LINE" | |
9043 | else | |
9044 | no_cache=1 | |
9045 | fi | |
9046 | ||
9047 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
10f2d63a | 9048 | |
e6cc62c6 | 9049 | fi; |
10f2d63a VZ |
9050 | |
9051 | eval "$ac_cv_use_miniframe" | |
9052 | if test "$no_cache" != 1; then | |
9053 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
9054 | fi | |
9055 | ||
9056 | if test "$wxUSE_MINIFRAME" = yes; then | |
e6cc62c6 VS |
9057 | echo "$as_me:$LINENO: result: yes" >&5 |
9058 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9059 | else |
e6cc62c6 VS |
9060 | echo "$as_me:$LINENO: result: no" >&5 |
9061 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9062 | fi |
e6cc62c6 | 9063 | |
10f2d63a | 9064 | |
5005acfe | 9065 | enablestring= |
e6cc62c6 VS |
9066 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5 |
9067 | echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6 | |
10f2d63a VZ |
9068 | no_cache=0 |
9069 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
9070 | if test "${enable_tooltips+set}" = set; then | |
9071 | enableval="$enable_tooltips" | |
e6cc62c6 | 9072 | |
10f2d63a VZ |
9073 | if test "$enableval" = yes; then |
9074 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
9075 | else | |
9076 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
9077 | fi | |
e6cc62c6 | 9078 | |
10f2d63a | 9079 | else |
e6cc62c6 | 9080 | |
10f2d63a VZ |
9081 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
9082 | if test "x$LINE" != x ; then | |
9083 | eval "DEFAULT_$LINE" | |
9084 | else | |
9085 | no_cache=1 | |
9086 | fi | |
9087 | ||
9088 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
10f2d63a | 9089 | |
e6cc62c6 | 9090 | fi; |
10f2d63a VZ |
9091 | |
9092 | eval "$ac_cv_use_tooltips" | |
9093 | if test "$no_cache" != 1; then | |
9094 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
9095 | fi | |
9096 | ||
9097 | if test "$wxUSE_TOOLTIPS" = yes; then | |
e6cc62c6 VS |
9098 | echo "$as_me:$LINENO: result: yes" >&5 |
9099 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9100 | else |
e6cc62c6 VS |
9101 | echo "$as_me:$LINENO: result: no" >&5 |
9102 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9103 | fi |
e6cc62c6 | 9104 | |
10f2d63a | 9105 | |
5005acfe | 9106 | enablestring= |
e6cc62c6 VS |
9107 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5 |
9108 | echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6 | |
10f2d63a VZ |
9109 | no_cache=0 |
9110 | # Check whether --enable-splines or --disable-splines was given. | |
9111 | if test "${enable_splines+set}" = set; then | |
9112 | enableval="$enable_splines" | |
e6cc62c6 | 9113 | |
10f2d63a VZ |
9114 | if test "$enableval" = yes; then |
9115 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
9116 | else | |
9117 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
9118 | fi | |
e6cc62c6 | 9119 | |
10f2d63a | 9120 | else |
e6cc62c6 | 9121 | |
10f2d63a VZ |
9122 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
9123 | if test "x$LINE" != x ; then | |
9124 | eval "DEFAULT_$LINE" | |
9125 | else | |
9126 | no_cache=1 | |
9127 | fi | |
9128 | ||
9129 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
10f2d63a | 9130 | |
e6cc62c6 | 9131 | fi; |
10f2d63a VZ |
9132 | |
9133 | eval "$ac_cv_use_splines" | |
9134 | if test "$no_cache" != 1; then | |
9135 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
9136 | fi | |
9137 | ||
9138 | if test "$wxUSE_SPLINES" = yes; then | |
e6cc62c6 VS |
9139 | echo "$as_me:$LINENO: result: yes" >&5 |
9140 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9141 | else |
e6cc62c6 VS |
9142 | echo "$as_me:$LINENO: result: no" >&5 |
9143 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9144 | fi |
e6cc62c6 | 9145 | |
10f2d63a | 9146 | |
5005acfe | 9147 | enablestring= |
e6cc62c6 VS |
9148 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5 |
9149 | echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6 | |
10f2d63a VZ |
9150 | no_cache=0 |
9151 | # Check whether --enable-validators or --disable-validators was given. | |
9152 | if test "${enable_validators+set}" = set; then | |
9153 | enableval="$enable_validators" | |
e6cc62c6 | 9154 | |
10f2d63a VZ |
9155 | if test "$enableval" = yes; then |
9156 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
9157 | else | |
9158 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
9159 | fi | |
e6cc62c6 | 9160 | |
10f2d63a | 9161 | else |
e6cc62c6 | 9162 | |
10f2d63a VZ |
9163 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
9164 | if test "x$LINE" != x ; then | |
9165 | eval "DEFAULT_$LINE" | |
9166 | else | |
9167 | no_cache=1 | |
9168 | fi | |
9169 | ||
9170 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
10f2d63a | 9171 | |
e6cc62c6 | 9172 | fi; |
10f2d63a VZ |
9173 | |
9174 | eval "$ac_cv_use_validators" | |
9175 | if test "$no_cache" != 1; then | |
9176 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
9177 | fi | |
9178 | ||
9179 | if test "$wxUSE_VALIDATORS" = yes; then | |
e6cc62c6 VS |
9180 | echo "$as_me:$LINENO: result: yes" >&5 |
9181 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9182 | else |
e6cc62c6 VS |
9183 | echo "$as_me:$LINENO: result: no" >&5 |
9184 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9185 | fi |
e6cc62c6 | 9186 | |
10f2d63a | 9187 | |
5005acfe | 9188 | enablestring= |
e6cc62c6 VS |
9189 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5 |
9190 | echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6 | |
10f2d63a VZ |
9191 | no_cache=0 |
9192 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
9193 | if test "${enable_busyinfo+set}" = set; then | |
9194 | enableval="$enable_busyinfo" | |
e6cc62c6 | 9195 | |
10f2d63a VZ |
9196 | if test "$enableval" = yes; then |
9197 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
9198 | else | |
9199 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
9200 | fi | |
e6cc62c6 | 9201 | |
10f2d63a | 9202 | else |
e6cc62c6 | 9203 | |
10f2d63a VZ |
9204 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
9205 | if test "x$LINE" != x ; then | |
9206 | eval "DEFAULT_$LINE" | |
9207 | else | |
9208 | no_cache=1 | |
9209 | fi | |
9210 | ||
9211 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
10f2d63a | 9212 | |
e6cc62c6 | 9213 | fi; |
10f2d63a VZ |
9214 | |
9215 | eval "$ac_cv_use_busyinfo" | |
9216 | if test "$no_cache" != 1; then | |
9217 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
9218 | fi | |
9219 | ||
9220 | if test "$wxUSE_BUSYINFO" = yes; then | |
e6cc62c6 VS |
9221 | echo "$as_me:$LINENO: result: yes" >&5 |
9222 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9223 | else |
e6cc62c6 VS |
9224 | echo "$as_me:$LINENO: result: no" >&5 |
9225 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9226 | fi |
e6cc62c6 | 9227 | |
10f2d63a | 9228 | |
5005acfe | 9229 | enablestring= |
e6cc62c6 VS |
9230 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5 |
9231 | echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6 | |
f6bcfd97 BP |
9232 | no_cache=0 |
9233 | # Check whether --enable-joystick or --disable-joystick was given. | |
9234 | if test "${enable_joystick+set}" = set; then | |
9235 | enableval="$enable_joystick" | |
e6cc62c6 | 9236 | |
f6bcfd97 BP |
9237 | if test "$enableval" = yes; then |
9238 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
9239 | else | |
9240 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
9241 | fi | |
e6cc62c6 | 9242 | |
f6bcfd97 | 9243 | else |
e6cc62c6 | 9244 | |
f6bcfd97 BP |
9245 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
9246 | if test "x$LINE" != x ; then | |
9247 | eval "DEFAULT_$LINE" | |
9248 | else | |
9249 | no_cache=1 | |
9250 | fi | |
9251 | ||
9252 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
f6bcfd97 | 9253 | |
e6cc62c6 | 9254 | fi; |
f6bcfd97 BP |
9255 | |
9256 | eval "$ac_cv_use_joystick" | |
9257 | if test "$no_cache" != 1; then | |
9258 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
9259 | fi | |
9260 | ||
9261 | if test "$wxUSE_JOYSTICK" = yes; then | |
e6cc62c6 VS |
9262 | echo "$as_me:$LINENO: result: yes" >&5 |
9263 | echo "${ECHO_T}yes" >&6 | |
f6bcfd97 | 9264 | else |
e6cc62c6 VS |
9265 | echo "$as_me:$LINENO: result: no" >&5 |
9266 | echo "${ECHO_T}no" >&6 | |
f6bcfd97 | 9267 | fi |
e6cc62c6 | 9268 | |
698dcdb6 | 9269 | |
5005acfe | 9270 | enablestring= |
e6cc62c6 VS |
9271 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 |
9272 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
1e6feb95 VZ |
9273 | no_cache=0 |
9274 | # Check whether --enable-metafile or --disable-metafile was given. | |
9275 | if test "${enable_metafile+set}" = set; then | |
9276 | enableval="$enable_metafile" | |
e6cc62c6 | 9277 | |
1e6feb95 VZ |
9278 | if test "$enableval" = yes; then |
9279 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
9280 | else | |
9281 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
9282 | fi | |
e6cc62c6 | 9283 | |
1e6feb95 | 9284 | else |
e6cc62c6 | 9285 | |
1e6feb95 VZ |
9286 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
9287 | if test "x$LINE" != x ; then | |
9288 | eval "DEFAULT_$LINE" | |
9289 | else | |
9290 | no_cache=1 | |
9291 | fi | |
9292 | ||
9293 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
1e6feb95 | 9294 | |
e6cc62c6 | 9295 | fi; |
1e6feb95 VZ |
9296 | |
9297 | eval "$ac_cv_use_metafile" | |
9298 | if test "$no_cache" != 1; then | |
9299 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
9300 | fi | |
9301 | ||
9302 | if test "$wxUSE_METAFILE" = yes; then | |
e6cc62c6 VS |
9303 | echo "$as_me:$LINENO: result: yes" >&5 |
9304 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 9305 | else |
e6cc62c6 VS |
9306 | echo "$as_me:$LINENO: result: no" >&5 |
9307 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 9308 | fi |
e6cc62c6 | 9309 | |
1e6feb95 | 9310 | |
5005acfe | 9311 | enablestring= |
e6cc62c6 VS |
9312 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5 |
9313 | echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6 | |
24fd6d87 VZ |
9314 | no_cache=0 |
9315 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
9316 | if test "${enable_dragimage+set}" = set; then | |
9317 | enableval="$enable_dragimage" | |
e6cc62c6 | 9318 | |
24fd6d87 VZ |
9319 | if test "$enableval" = yes; then |
9320 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
9321 | else | |
9322 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
9323 | fi | |
e6cc62c6 | 9324 | |
24fd6d87 | 9325 | else |
e6cc62c6 | 9326 | |
24fd6d87 VZ |
9327 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` |
9328 | if test "x$LINE" != x ; then | |
9329 | eval "DEFAULT_$LINE" | |
9330 | else | |
9331 | no_cache=1 | |
9332 | fi | |
9333 | ||
9334 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
24fd6d87 | 9335 | |
e6cc62c6 | 9336 | fi; |
24fd6d87 VZ |
9337 | |
9338 | eval "$ac_cv_use_dragimage" | |
9339 | if test "$no_cache" != 1; then | |
9340 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
9341 | fi | |
9342 | ||
9343 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
e6cc62c6 VS |
9344 | echo "$as_me:$LINENO: result: yes" >&5 |
9345 | echo "${ECHO_T}yes" >&6 | |
24fd6d87 | 9346 | else |
e6cc62c6 VS |
9347 | echo "$as_me:$LINENO: result: no" >&5 |
9348 | echo "${ECHO_T}no" >&6 | |
24fd6d87 | 9349 | fi |
e6cc62c6 | 9350 | |
52127426 | 9351 | |
7bb2947d | 9352 | enablestring= |
e6cc62c6 VS |
9353 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5 |
9354 | echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6 | |
7bb2947d MB |
9355 | no_cache=0 |
9356 | # Check whether --enable-accessibility or --disable-accessibility was given. | |
9357 | if test "${enable_accessibility+set}" = set; then | |
9358 | enableval="$enable_accessibility" | |
e6cc62c6 | 9359 | |
7bb2947d MB |
9360 | if test "$enableval" = yes; then |
9361 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes' | |
9362 | else | |
9363 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no' | |
9364 | fi | |
e6cc62c6 | 9365 | |
7bb2947d | 9366 | else |
e6cc62c6 | 9367 | |
7bb2947d MB |
9368 | LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}` |
9369 | if test "x$LINE" != x ; then | |
9370 | eval "DEFAULT_$LINE" | |
9371 | else | |
9372 | no_cache=1 | |
9373 | fi | |
9374 | ||
9375 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY | |
7bb2947d | 9376 | |
e6cc62c6 | 9377 | fi; |
7bb2947d MB |
9378 | |
9379 | eval "$ac_cv_use_accessibility" | |
9380 | if test "$no_cache" != 1; then | |
9381 | echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp | |
9382 | fi | |
9383 | ||
9384 | if test "$wxUSE_ACCESSIBILITY" = yes; then | |
e6cc62c6 VS |
9385 | echo "$as_me:$LINENO: result: yes" >&5 |
9386 | echo "${ECHO_T}yes" >&6 | |
7bb2947d | 9387 | else |
e6cc62c6 VS |
9388 | echo "$as_me:$LINENO: result: no" >&5 |
9389 | echo "${ECHO_T}no" >&6 | |
7bb2947d | 9390 | fi |
e6cc62c6 | 9391 | |
7bb2947d | 9392 | |
8284b0c5 MB |
9393 | |
9394 | ||
5005acfe | 9395 | enablestring= |
e6cc62c6 VS |
9396 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5 |
9397 | echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6 | |
edae8572 VZ |
9398 | no_cache=0 |
9399 | # Check whether --enable-palette or --disable-palette was given. | |
9400 | if test "${enable_palette+set}" = set; then | |
9401 | enableval="$enable_palette" | |
e6cc62c6 | 9402 | |
edae8572 VZ |
9403 | if test "$enableval" = yes; then |
9404 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
9405 | else | |
9406 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
9407 | fi | |
e6cc62c6 | 9408 | |
edae8572 | 9409 | else |
e6cc62c6 | 9410 | |
edae8572 VZ |
9411 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` |
9412 | if test "x$LINE" != x ; then | |
9413 | eval "DEFAULT_$LINE" | |
9414 | else | |
9415 | no_cache=1 | |
9416 | fi | |
9417 | ||
9418 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
edae8572 | 9419 | |
e6cc62c6 | 9420 | fi; |
edae8572 VZ |
9421 | |
9422 | eval "$ac_cv_use_palette" | |
9423 | if test "$no_cache" != 1; then | |
9424 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
9425 | fi | |
9426 | ||
9427 | if test "$wxUSE_PALETTE" = yes; then | |
e6cc62c6 VS |
9428 | echo "$as_me:$LINENO: result: yes" >&5 |
9429 | echo "${ECHO_T}yes" >&6 | |
edae8572 | 9430 | else |
e6cc62c6 VS |
9431 | echo "$as_me:$LINENO: result: no" >&5 |
9432 | echo "${ECHO_T}no" >&6 | |
edae8572 | 9433 | fi |
e6cc62c6 | 9434 | |
edae8572 | 9435 | |
5005acfe | 9436 | enablestring= |
e6cc62c6 VS |
9437 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5 |
9438 | echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6 | |
0046ff7c VS |
9439 | no_cache=0 |
9440 | # Check whether --enable-image or --disable-image was given. | |
9441 | if test "${enable_image+set}" = set; then | |
9442 | enableval="$enable_image" | |
e6cc62c6 | 9443 | |
0046ff7c VS |
9444 | if test "$enableval" = yes; then |
9445 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
9446 | else | |
9447 | ac_cv_use_image='wxUSE_IMAGE=no' | |
9448 | fi | |
e6cc62c6 | 9449 | |
0046ff7c | 9450 | else |
e6cc62c6 | 9451 | |
0046ff7c VS |
9452 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` |
9453 | if test "x$LINE" != x ; then | |
9454 | eval "DEFAULT_$LINE" | |
9455 | else | |
9456 | no_cache=1 | |
9457 | fi | |
9458 | ||
9459 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
0046ff7c | 9460 | |
e6cc62c6 | 9461 | fi; |
0046ff7c VS |
9462 | |
9463 | eval "$ac_cv_use_image" | |
9464 | if test "$no_cache" != 1; then | |
9465 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
9466 | fi | |
9467 | ||
9468 | if test "$wxUSE_IMAGE" = yes; then | |
e6cc62c6 VS |
9469 | echo "$as_me:$LINENO: result: yes" >&5 |
9470 | echo "${ECHO_T}yes" >&6 | |
0046ff7c | 9471 | else |
e6cc62c6 VS |
9472 | echo "$as_me:$LINENO: result: no" >&5 |
9473 | echo "${ECHO_T}no" >&6 | |
0046ff7c | 9474 | fi |
e6cc62c6 | 9475 | |
0046ff7c | 9476 | |
5005acfe | 9477 | enablestring= |
e6cc62c6 VS |
9478 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5 |
9479 | echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6 | |
10f2d63a VZ |
9480 | no_cache=0 |
9481 | # Check whether --enable-gif or --disable-gif was given. | |
9482 | if test "${enable_gif+set}" = set; then | |
9483 | enableval="$enable_gif" | |
e6cc62c6 | 9484 | |
10f2d63a VZ |
9485 | if test "$enableval" = yes; then |
9486 | ac_cv_use_gif='wxUSE_GIF=yes' | |
9487 | else | |
9488 | ac_cv_use_gif='wxUSE_GIF=no' | |
9489 | fi | |
e6cc62c6 | 9490 | |
10f2d63a | 9491 | else |
e6cc62c6 | 9492 | |
10f2d63a VZ |
9493 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` |
9494 | if test "x$LINE" != x ; then | |
9495 | eval "DEFAULT_$LINE" | |
9496 | else | |
9497 | no_cache=1 | |
9498 | fi | |
9499 | ||
9500 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
10f2d63a | 9501 | |
e6cc62c6 | 9502 | fi; |
10f2d63a VZ |
9503 | |
9504 | eval "$ac_cv_use_gif" | |
9505 | if test "$no_cache" != 1; then | |
9506 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
9507 | fi | |
9508 | ||
9509 | if test "$wxUSE_GIF" = yes; then | |
e6cc62c6 VS |
9510 | echo "$as_me:$LINENO: result: yes" >&5 |
9511 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9512 | else |
e6cc62c6 VS |
9513 | echo "$as_me:$LINENO: result: no" >&5 |
9514 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9515 | fi |
e6cc62c6 | 9516 | |
10f2d63a | 9517 | |
5005acfe | 9518 | enablestring= |
e6cc62c6 VS |
9519 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5 |
9520 | echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6 | |
10f2d63a VZ |
9521 | no_cache=0 |
9522 | # Check whether --enable-pcx or --disable-pcx was given. | |
9523 | if test "${enable_pcx+set}" = set; then | |
9524 | enableval="$enable_pcx" | |
e6cc62c6 | 9525 | |
10f2d63a VZ |
9526 | if test "$enableval" = yes; then |
9527 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
9528 | else | |
9529 | ac_cv_use_pcx='wxUSE_PCX=no' | |
9530 | fi | |
e6cc62c6 | 9531 | |
10f2d63a | 9532 | else |
e6cc62c6 | 9533 | |
10f2d63a VZ |
9534 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
9535 | if test "x$LINE" != x ; then | |
9536 | eval "DEFAULT_$LINE" | |
9537 | else | |
9538 | no_cache=1 | |
9539 | fi | |
9540 | ||
9541 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
10f2d63a | 9542 | |
e6cc62c6 | 9543 | fi; |
10f2d63a VZ |
9544 | |
9545 | eval "$ac_cv_use_pcx" | |
9546 | if test "$no_cache" != 1; then | |
9547 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
9548 | fi | |
9549 | ||
9550 | if test "$wxUSE_PCX" = yes; then | |
e6cc62c6 VS |
9551 | echo "$as_me:$LINENO: result: yes" >&5 |
9552 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9553 | else |
e6cc62c6 VS |
9554 | echo "$as_me:$LINENO: result: no" >&5 |
9555 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9556 | fi |
e6cc62c6 | 9557 | |
10f2d63a | 9558 | |
5005acfe | 9559 | enablestring= |
e6cc62c6 VS |
9560 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5 |
9561 | echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6 | |
4b6b4dfc RR |
9562 | no_cache=0 |
9563 | # Check whether --enable-iff or --disable-iff was given. | |
9564 | if test "${enable_iff+set}" = set; then | |
9565 | enableval="$enable_iff" | |
e6cc62c6 | 9566 | |
4b6b4dfc RR |
9567 | if test "$enableval" = yes; then |
9568 | ac_cv_use_iff='wxUSE_IFF=yes' | |
9569 | else | |
9570 | ac_cv_use_iff='wxUSE_IFF=no' | |
9571 | fi | |
e6cc62c6 | 9572 | |
4b6b4dfc | 9573 | else |
e6cc62c6 | 9574 | |
4b6b4dfc RR |
9575 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` |
9576 | if test "x$LINE" != x ; then | |
9577 | eval "DEFAULT_$LINE" | |
9578 | else | |
9579 | no_cache=1 | |
9580 | fi | |
9581 | ||
9582 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
4b6b4dfc | 9583 | |
e6cc62c6 | 9584 | fi; |
4b6b4dfc RR |
9585 | |
9586 | eval "$ac_cv_use_iff" | |
9587 | if test "$no_cache" != 1; then | |
9588 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
9589 | fi | |
9590 | ||
9591 | if test "$wxUSE_IFF" = yes; then | |
e6cc62c6 VS |
9592 | echo "$as_me:$LINENO: result: yes" >&5 |
9593 | echo "${ECHO_T}yes" >&6 | |
4b6b4dfc | 9594 | else |
e6cc62c6 VS |
9595 | echo "$as_me:$LINENO: result: no" >&5 |
9596 | echo "${ECHO_T}no" >&6 | |
4b6b4dfc | 9597 | fi |
e6cc62c6 | 9598 | |
4b6b4dfc | 9599 | |
5005acfe | 9600 | enablestring= |
e6cc62c6 VS |
9601 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5 |
9602 | echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6 | |
10f2d63a VZ |
9603 | no_cache=0 |
9604 | # Check whether --enable-pnm or --disable-pnm was given. | |
9605 | if test "${enable_pnm+set}" = set; then | |
9606 | enableval="$enable_pnm" | |
e6cc62c6 | 9607 | |
10f2d63a VZ |
9608 | if test "$enableval" = yes; then |
9609 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
9610 | else | |
9611 | ac_cv_use_pnm='wxUSE_PNM=no' | |
9612 | fi | |
e6cc62c6 | 9613 | |
10f2d63a | 9614 | else |
e6cc62c6 | 9615 | |
10f2d63a VZ |
9616 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
9617 | if test "x$LINE" != x ; then | |
9618 | eval "DEFAULT_$LINE" | |
9619 | else | |
9620 | no_cache=1 | |
9621 | fi | |
9622 | ||
9623 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
10f2d63a | 9624 | |
e6cc62c6 | 9625 | fi; |
10f2d63a VZ |
9626 | |
9627 | eval "$ac_cv_use_pnm" | |
9628 | if test "$no_cache" != 1; then | |
9629 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
9630 | fi | |
9631 | ||
9632 | if test "$wxUSE_PNM" = yes; then | |
e6cc62c6 VS |
9633 | echo "$as_me:$LINENO: result: yes" >&5 |
9634 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9635 | else |
e6cc62c6 VS |
9636 | echo "$as_me:$LINENO: result: no" >&5 |
9637 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9638 | fi |
e6cc62c6 | 9639 | |
10f2d63a | 9640 | |
5005acfe | 9641 | enablestring= |
e6cc62c6 VS |
9642 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5 |
9643 | echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6 | |
0046ff7c | 9644 | no_cache=0 |
69d27ff7 MB |
9645 | # Check whether --enable-xpm or --disable-xpm was given. |
9646 | if test "${enable_xpm+set}" = set; then | |
9647 | enableval="$enable_xpm" | |
e6cc62c6 | 9648 | |
0046ff7c | 9649 | if test "$enableval" = yes; then |
69d27ff7 | 9650 | ac_cv_use_xpm='wxUSE_XPM=yes' |
0046ff7c | 9651 | else |
69d27ff7 | 9652 | ac_cv_use_xpm='wxUSE_XPM=no' |
0046ff7c | 9653 | fi |
e6cc62c6 | 9654 | |
0046ff7c | 9655 | else |
e6cc62c6 | 9656 | |
0046ff7c VS |
9657 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
9658 | if test "x$LINE" != x ; then | |
9659 | eval "DEFAULT_$LINE" | |
9660 | else | |
9661 | no_cache=1 | |
9662 | fi | |
9663 | ||
69d27ff7 | 9664 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM |
0046ff7c | 9665 | |
e6cc62c6 | 9666 | fi; |
0046ff7c | 9667 | |
69d27ff7 | 9668 | eval "$ac_cv_use_xpm" |
0046ff7c | 9669 | if test "$no_cache" != 1; then |
69d27ff7 | 9670 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp |
0046ff7c VS |
9671 | fi |
9672 | ||
9673 | if test "$wxUSE_XPM" = yes; then | |
e6cc62c6 VS |
9674 | echo "$as_me:$LINENO: result: yes" >&5 |
9675 | echo "${ECHO_T}yes" >&6 | |
0046ff7c | 9676 | else |
e6cc62c6 VS |
9677 | echo "$as_me:$LINENO: result: no" >&5 |
9678 | echo "${ECHO_T}no" >&6 | |
0046ff7c | 9679 | fi |
e6cc62c6 | 9680 | |
0046ff7c | 9681 | |
5005acfe | 9682 | enablestring= |
e6cc62c6 VS |
9683 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5 |
9684 | echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6 | |
658974ae | 9685 | no_cache=0 |
c7206e64 VS |
9686 | # Check whether --enable-ico_cur or --disable-ico_cur was given. |
9687 | if test "${enable_ico_cur+set}" = set; then | |
9688 | enableval="$enable_ico_cur" | |
e6cc62c6 | 9689 | |
658974ae | 9690 | if test "$enableval" = yes; then |
c7206e64 | 9691 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' |
658974ae | 9692 | else |
c7206e64 | 9693 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' |
658974ae | 9694 | fi |
e6cc62c6 | 9695 | |
658974ae | 9696 | else |
e6cc62c6 | 9697 | |
658974ae VS |
9698 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` |
9699 | if test "x$LINE" != x ; then | |
9700 | eval "DEFAULT_$LINE" | |
9701 | else | |
9702 | no_cache=1 | |
9703 | fi | |
9704 | ||
c7206e64 | 9705 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR |
658974ae | 9706 | |
e6cc62c6 | 9707 | fi; |
658974ae | 9708 | |
c7206e64 | 9709 | eval "$ac_cv_use_ico_cur" |
658974ae | 9710 | if test "$no_cache" != 1; then |
c7206e64 | 9711 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp |
658974ae VS |
9712 | fi |
9713 | ||
9714 | if test "$wxUSE_ICO_CUR" = yes; then | |
e6cc62c6 VS |
9715 | echo "$as_me:$LINENO: result: yes" >&5 |
9716 | echo "${ECHO_T}yes" >&6 | |
658974ae | 9717 | else |
e6cc62c6 VS |
9718 | echo "$as_me:$LINENO: result: no" >&5 |
9719 | echo "${ECHO_T}no" >&6 | |
658974ae | 9720 | fi |
e6cc62c6 | 9721 | |
658974ae | 9722 | |
b12915c1 VZ |
9723 | fi |
9724 | ||
029b47ad VS |
9725 | |
9726 | ||
9727 | enablestring= | |
9728 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5 | |
9729 | echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6 | |
9730 | no_cache=0 | |
9731 | # Check whether --enable-official_build or --disable-official_build was given. | |
9732 | if test "${enable_official_build+set}" = set; then | |
9733 | enableval="$enable_official_build" | |
9734 | ||
9735 | if test "$enableval" = yes; then | |
9736 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes' | |
9737 | else | |
9738 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no' | |
9739 | fi | |
9740 | ||
9741 | else | |
9742 | ||
9743 | LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}` | |
9744 | if test "x$LINE" != x ; then | |
9745 | eval "DEFAULT_$LINE" | |
9746 | else | |
9747 | no_cache=1 | |
9748 | fi | |
9749 | ||
9750 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD | |
9751 | ||
9752 | fi; | |
9753 | ||
9754 | eval "$ac_cv_use_official_build" | |
9755 | if test "$no_cache" != 1; then | |
9756 | echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp | |
9757 | fi | |
9758 | ||
9759 | if test "$wxUSE_OFFICIAL_BUILD" = yes; then | |
9760 | echo "$as_me:$LINENO: result: yes" >&5 | |
9761 | echo "${ECHO_T}yes" >&6 | |
9762 | else | |
9763 | echo "$as_me:$LINENO: result: no" >&5 | |
9764 | echo "${ECHO_T}no" >&6 | |
9765 | fi | |
9766 | ||
9767 | # Check whether --enable-vendor or --disable-vendor was given. | |
9768 | if test "${enable_vendor+set}" = set; then | |
9769 | enableval="$enable_vendor" | |
9770 | VENDOR="$enableval" | |
9771 | fi; | |
9772 | if test "x$VENDOR" = "x"; then | |
9773 | VENDOR="custom" | |
9774 | fi | |
9775 | ||
d558c907 VS |
9776 | case "${host}" in |
9777 | *-pc-os2_emx | *-pc-os2-emx ) | |
6969f178 | 9778 | PATH_IFS=';' |
d558c907 VS |
9779 | ;; |
9780 | *) | |
9781 | PATH_IFS=':' | |
d558c907 VS |
9782 | ;; |
9783 | esac | |
9784 | ||
8284b0c5 MB |
9785 | |
9786 | ||
10f2d63a VZ |
9787 | echo "saving argument cache $wx_arg_cache_file" |
9788 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
52127426 | 9789 | |
8284b0c5 | 9790 | |
e6cc62c6 VS |
9791 | |
9792 | echo "$as_me:$LINENO: checking for toolkit" >&5 | |
9793 | echo $ECHO_N "checking for toolkit... $ECHO_C" >&6 | |
89e6bf6d VZ |
9794 | |
9795 | # In Wine, we need to default to MSW, not GTK or MOTIF | |
9796 | if test "$wxUSE_WINE" = "yes"; then | |
9797 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
9798 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
9799 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
74500461 | 9800 | wxUSE_SHARED=no |
89e6bf6d | 9801 | fi |
10f2d63a VZ |
9802 | |
9803 | if test "$wxUSE_GUI" = "yes"; then | |
9804 | ||
3a922bb4 | 9805 | if test "$USE_BEOS" = 1; then |
e6cc62c6 VS |
9806 | { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5 |
9807 | echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;} | |
9808 | { (exit 1); exit 1; }; } | |
3a922bb4 | 9809 | fi |
b12915c1 | 9810 | |
3a922bb4 RL |
9811 | if test "$TOOLKIT_GIVEN" = 1; then |
9812 | for toolkit in `echo $ALL_TOOLKITS`; do | |
9813 | var=wxUSE_$toolkit | |
9814 | eval "value=\$${var}" | |
9815 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
9816 | done | |
10f2d63a | 9817 | else |
3a922bb4 RL |
9818 | for toolkit in `echo $ALL_TOOLKITS`; do |
9819 | if test "$has_toolkit_in_cache" != 1; then | |
9820 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
9821 | else | |
9822 | var=DEFAULT_wxUSE_$toolkit | |
9823 | fi | |
9824 | eval "wxUSE_$toolkit=\$${var}" | |
9825 | done | |
10f2d63a | 9826 | fi |
10f2d63a | 9827 | |
ac0c4cc3 DE |
9828 | NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \ |
9829 | + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \ | |
9830 | + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}` | |
10f2d63a | 9831 | |
d558c907 | 9832 | case "${host}" in |
6fa882bd | 9833 | *-pc-os2_emx | *-pc-os2-emx ) |
3a922bb4 | 9834 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` |
3a922bb4 | 9835 | esac |
10f2d63a | 9836 | |
3a922bb4 RL |
9837 | case "$NUM_TOOLKITS" in |
9838 | 1) | |
9839 | ;; | |
9840 | 0) | |
e6cc62c6 VS |
9841 | { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5 |
9842 | echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;} | |
9843 | { (exit 1); exit 1; }; } | |
3a922bb4 RL |
9844 | ;; |
9845 | *) | |
e6cc62c6 VS |
9846 | { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5 |
9847 | echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;} | |
9848 | { (exit 1); exit 1; }; } | |
3a922bb4 | 9849 | esac |
10f2d63a | 9850 | |
3a922bb4 RL |
9851 | for toolkit in `echo $ALL_TOOLKITS`; do |
9852 | var=wxUSE_$toolkit | |
9853 | eval "value=\$${var}" | |
9854 | if test "x$value" != x; then | |
9855 | cache_var=CACHE_$toolkit | |
9856 | eval "cache=\$${cache_var}" | |
9857 | if test "$cache" = 1; then | |
9858 | echo "$var=$value" >> ${wx_arg_cache_file} | |
9859 | fi | |
9860 | if test "$value" = 1; then | |
89fe663f | 9861 | toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"` |
e6cc62c6 VS |
9862 | echo "$as_me:$LINENO: result: $toolkit_echo" >&5 |
9863 | echo "${ECHO_T}$toolkit_echo" >&6 | |
3a922bb4 RL |
9864 | fi |
9865 | fi | |
9866 | done | |
10f2d63a | 9867 | else |
9de9b8f0 VZ |
9868 | if test "x$host_alias" != "x"; then |
9869 | echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5 | |
e6cc62c6 | 9870 | echo "${ECHO_T}base ($host_alias hosted) only" >&6 |
9de9b8f0 VZ |
9871 | else |
9872 | echo "$as_me:$LINENO: result: base only" >&5 | |
9873 | echo "${ECHO_T}base only" >&6 | |
9874 | fi | |
10f2d63a VZ |
9875 | fi |
9876 | ||
43d99b6d VS |
9877 | wants_win32=0 |
9878 | doesnt_want_win32=0 | |
17234b26 MB |
9879 | case "${host}" in |
9880 | *-*-cygwin*) | |
9881 | if test "$wxUSE_MSW" = 1 ; then | |
43d99b6d VS |
9882 | wants_win32=1 |
9883 | else | |
9884 | doesnt_want_win32=1 | |
17234b26 MB |
9885 | fi |
9886 | ;; | |
9887 | *-*-mingw*) | |
43d99b6d | 9888 | wants_win32=1 |
17234b26 MB |
9889 | ;; |
9890 | esac | |
9891 | ||
89e6bf6d VZ |
9892 | if test "$wxUSE_WINE" = "yes"; then |
9893 | wants_win32=1 | |
9894 | CC=winegcc | |
9895 | CXX=wineg++ | |
9896 | RESCOMP=wrc | |
30f2fa6c | 9897 | LDFLAGS_GUI="-mwindows" |
89e6bf6d VZ |
9898 | fi |
9899 | ||
43d99b6d | 9900 | if test "$wants_win32" = 1 ; then |
17234b26 MB |
9901 | USE_UNIX=0 |
9902 | USE_WIN32=1 | |
e6cc62c6 | 9903 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9904 | #define __WIN32__ 1 |
e6cc62c6 | 9905 | _ACEOF |
17234b26 | 9906 | |
e6cc62c6 | 9907 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9908 | #define __WIN95__ 1 |
e6cc62c6 | 9909 | _ACEOF |
17234b26 | 9910 | |
e6cc62c6 | 9911 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9912 | #define __WINDOWS__ 1 |
e6cc62c6 | 9913 | _ACEOF |
17234b26 | 9914 | |
e6cc62c6 | 9915 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9916 | #define __GNUWIN32__ 1 |
e6cc62c6 | 9917 | _ACEOF |
17234b26 | 9918 | |
e6cc62c6 | 9919 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9920 | #define STRICT 1 |
e6cc62c6 | 9921 | _ACEOF |
17234b26 | 9922 | |
e6cc62c6 | 9923 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9924 | #define WINVER 0x0400 |
e6cc62c6 | 9925 | _ACEOF |
17234b26 | 9926 | |
43d99b6d VS |
9927 | fi |
9928 | if test "$doesnt_want_win32" = 1 ; then | |
17234b26 MB |
9929 | USE_UNIX=1 |
9930 | USE_WIN32=0 | |
9931 | fi | |
9932 | ||
9933 | if test "$USE_UNIX" = 1 ; then | |
9934 | wxUSE_UNIX=yes | |
e6cc62c6 | 9935 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9936 | #define __UNIX__ 1 |
e6cc62c6 | 9937 | _ACEOF |
17234b26 MB |
9938 | |
9939 | fi | |
9940 | ||
8284b0c5 | 9941 | |
e6cc62c6 | 9942 | cat >confcache <<\_ACEOF |
10f2d63a VZ |
9943 | # This file is a shell script that caches the results of configure |
9944 | # tests run on this system so they can be shared between configure | |
e6cc62c6 VS |
9945 | # scripts and configure runs, see configure's option --config-cache. |
9946 | # It is not useful on other systems. If it contains results you don't | |
9947 | # want to keep, you may remove or edit it. | |
10f2d63a | 9948 | # |
e6cc62c6 VS |
9949 | # config.status only pays attention to the cache file if you give it |
9950 | # the --recheck option to rerun configure. | |
10f2d63a | 9951 | # |
e6cc62c6 VS |
9952 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
9953 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
9954 | # following values. | |
9955 | ||
9956 | _ACEOF | |
9957 | ||
10f2d63a VZ |
9958 | # The following way of writing the cache mishandles newlines in values, |
9959 | # but we know of no workaround that is simple, portable, and efficient. | |
9960 | # So, don't put newlines in cache variables' values. | |
9961 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
9962 | # and sets the high bit in the cache file unless we assign to the vars. | |
e6cc62c6 VS |
9963 | { |
9964 | (set) 2>&1 | | |
9965 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
9966 | *ac_space=\ *) | |
9967 | # `set' does not quote correctly, so add quotes (double-quote | |
9968 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
9969 | sed -n \ | |
789c5f4a VZ |
9970 | "s/'/'\\\\''/g; |
9971 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
e6cc62c6 VS |
9972 | ;; |
9973 | *) | |
9974 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
9975 | sed -n \ | |
789c5f4a | 9976 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
e6cc62c6 VS |
9977 | ;; |
9978 | esac; | |
9979 | } | | |
9980 | sed ' | |
9981 | t clear | |
9982 | : clear | |
9983 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
9984 | t end | |
9985 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
9986 | : end' >>confcache | |
9987 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
10f2d63a | 9988 | if test -w $cache_file; then |
e6cc62c6 VS |
9989 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
9990 | cat confcache >$cache_file | |
10f2d63a VZ |
9991 | else |
9992 | echo "not updating unwritable cache $cache_file" | |
9993 | fi | |
9994 | fi | |
9995 | rm -f confcache | |
9996 | ||
e59890c3 | 9997 | if test "$build" != "$host" ; then |
9d353d4a | 9998 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then |
3a922bb4 RL |
9999 | CC=$host_alias-gcc |
10000 | CXX=$host_alias-c++ | |
10001 | AR=$host_alias-ar | |
10002 | RANLIB=$host_alias-ranlib | |
10003 | DLLTOOL=$host_alias-dlltool | |
10004 | RESCOMP=$host_alias-windres | |
10005 | LD=$host_alias-ld | |
10006 | NM=$host_alias-nm | |
10007 | STRIP=$host_alias-strip | |
10008 | else | |
e6cc62c6 VS |
10009 | { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5 |
10010 | echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;} | |
10011 | { (exit 1); exit 1; }; } | |
3a922bb4 | 10012 | fi |
10f2d63a VZ |
10013 | fi |
10014 | ||
ec603395 | 10015 | CFLAGS=${CFLAGS:=} |
e6cc62c6 VS |
10016 | ac_ext=c |
10017 | ac_cpp='$CPP $CPPFLAGS' | |
10018 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10019 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10020 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10021 | if test -n "$ac_tool_prefix"; then | |
10022 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
10023 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
10024 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10025 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10026 | if test "${ac_cv_prog_CC+set}" = set; then | |
10027 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10028 | else | |
10029 | if test -n "$CC"; then | |
10030 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10031 | else | |
10032 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10033 | for as_dir in $PATH | |
10034 | do | |
10035 | IFS=$as_save_IFS | |
10036 | test -z "$as_dir" && as_dir=. | |
10037 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10038 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10039 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
10040 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10041 | break 2 | |
10042 | fi | |
10043 | done | |
10044 | done | |
10045 | ||
10046 | fi | |
10047 | fi | |
10048 | CC=$ac_cv_prog_CC | |
10049 | if test -n "$CC"; then | |
10050 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10051 | echo "${ECHO_T}$CC" >&6 | |
10052 | else | |
10053 | echo "$as_me:$LINENO: result: no" >&5 | |
10054 | echo "${ECHO_T}no" >&6 | |
10055 | fi | |
10056 | ||
10057 | fi | |
10058 | if test -z "$ac_cv_prog_CC"; then | |
10059 | ac_ct_CC=$CC | |
10060 | # Extract the first word of "gcc", so it can be a program name with args. | |
8284b0c5 | 10061 | set dummy gcc; ac_word=$2 |
e6cc62c6 VS |
10062 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10063 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10064 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10065 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10066 | else | |
10067 | if test -n "$ac_ct_CC"; then | |
10068 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10069 | else | |
10070 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10071 | for as_dir in $PATH | |
10072 | do | |
10073 | IFS=$as_save_IFS | |
10074 | test -z "$as_dir" && as_dir=. | |
10075 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10076 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10077 | ac_cv_prog_ac_ct_CC="gcc" | |
10078 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10079 | break 2 | |
10080 | fi | |
10081 | done | |
10082 | done | |
10083 | ||
10084 | fi | |
10085 | fi | |
10086 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10087 | if test -n "$ac_ct_CC"; then | |
10088 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10089 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10090 | else | |
10091 | echo "$as_me:$LINENO: result: no" >&5 | |
10092 | echo "${ECHO_T}no" >&6 | |
10093 | fi | |
10094 | ||
10095 | CC=$ac_ct_CC | |
10096 | else | |
10097 | CC="$ac_cv_prog_CC" | |
10098 | fi | |
10099 | ||
10100 | if test -z "$CC"; then | |
10101 | if test -n "$ac_tool_prefix"; then | |
10102 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
10103 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
10104 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10105 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10106 | if test "${ac_cv_prog_CC+set}" = set; then | |
10107 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6232543b VS |
10108 | else |
10109 | if test -n "$CC"; then | |
10110 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 10111 | else |
e6cc62c6 VS |
10112 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10113 | for as_dir in $PATH | |
10114 | do | |
10115 | IFS=$as_save_IFS | |
10116 | test -z "$as_dir" && as_dir=. | |
10117 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10118 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10119 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
10120 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10121 | break 2 | |
10122 | fi | |
10123 | done | |
10124 | done | |
10125 | ||
10f2d63a | 10126 | fi |
6232543b | 10127 | fi |
e6cc62c6 | 10128 | CC=$ac_cv_prog_CC |
6232543b | 10129 | if test -n "$CC"; then |
e6cc62c6 VS |
10130 | echo "$as_me:$LINENO: result: $CC" >&5 |
10131 | echo "${ECHO_T}$CC" >&6 | |
10132 | else | |
10133 | echo "$as_me:$LINENO: result: no" >&5 | |
10134 | echo "${ECHO_T}no" >&6 | |
10135 | fi | |
10136 | ||
10137 | fi | |
10138 | if test -z "$ac_cv_prog_CC"; then | |
10139 | ac_ct_CC=$CC | |
10140 | # Extract the first word of "cc", so it can be a program name with args. | |
10141 | set dummy cc; ac_word=$2 | |
10142 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10143 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10144 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10145 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10146 | else | |
10147 | if test -n "$ac_ct_CC"; then | |
10148 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10149 | else | |
10150 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10151 | for as_dir in $PATH | |
10152 | do | |
10153 | IFS=$as_save_IFS | |
10154 | test -z "$as_dir" && as_dir=. | |
10155 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10156 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10157 | ac_cv_prog_ac_ct_CC="cc" | |
10158 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10159 | break 2 | |
10160 | fi | |
10161 | done | |
10162 | done | |
10163 | ||
10164 | fi | |
10165 | fi | |
10166 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10167 | if test -n "$ac_ct_CC"; then | |
10168 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10169 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10170 | else | |
10171 | echo "$as_me:$LINENO: result: no" >&5 | |
10172 | echo "${ECHO_T}no" >&6 | |
10173 | fi | |
10174 | ||
10175 | CC=$ac_ct_CC | |
247f5006 | 10176 | else |
e6cc62c6 | 10177 | CC="$ac_cv_prog_CC" |
247f5006 VZ |
10178 | fi |
10179 | ||
e6cc62c6 | 10180 | fi |
5c6fa7d2 RR |
10181 | if test -z "$CC"; then |
10182 | # Extract the first word of "cc", so it can be a program name with args. | |
10183 | set dummy cc; ac_word=$2 | |
e6cc62c6 VS |
10184 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10185 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10186 | if test "${ac_cv_prog_CC+set}" = set; then | |
10187 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5c6fa7d2 RR |
10188 | else |
10189 | if test -n "$CC"; then | |
10190 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10191 | else | |
10192 | ac_prog_rejected=no | |
e6cc62c6 VS |
10193 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10194 | for as_dir in $PATH | |
10195 | do | |
10196 | IFS=$as_save_IFS | |
10197 | test -z "$as_dir" && as_dir=. | |
10198 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10199 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10200 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
10201 | ac_prog_rejected=yes | |
10202 | continue | |
10203 | fi | |
10204 | ac_cv_prog_CC="cc" | |
10205 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10206 | break 2 | |
10207 | fi | |
10208 | done | |
10209 | done | |
10210 | ||
328a083c RR |
10211 | if test $ac_prog_rejected = yes; then |
10212 | # We found a bogon in the path, so make sure we never use it. | |
10213 | set dummy $ac_cv_prog_CC | |
10214 | shift | |
e6cc62c6 | 10215 | if test $# != 0; then |
328a083c | 10216 | # We chose a different compiler from the bogus one. |
1e487827 VS |
10217 | # However, it has the same basename, so the bogon will be chosen |
10218 | # first if we set CC to just the basename; use the full file name. | |
10219 | shift | |
e6cc62c6 | 10220 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
703e0a69 | 10221 | fi |
1e487827 VS |
10222 | fi |
10223 | fi | |
10224 | fi | |
e6cc62c6 | 10225 | CC=$ac_cv_prog_CC |
1e487827 | 10226 | if test -n "$CC"; then |
e6cc62c6 VS |
10227 | echo "$as_me:$LINENO: result: $CC" >&5 |
10228 | echo "${ECHO_T}$CC" >&6 | |
703e0a69 | 10229 | else |
e6cc62c6 VS |
10230 | echo "$as_me:$LINENO: result: no" >&5 |
10231 | echo "${ECHO_T}no" >&6 | |
703e0a69 | 10232 | fi |
1e487827 | 10233 | |
e6cc62c6 VS |
10234 | fi |
10235 | if test -z "$CC"; then | |
10236 | if test -n "$ac_tool_prefix"; then | |
10237 | for ac_prog in cl | |
10238 | do | |
10239 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10240 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
10241 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10242 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10243 | if test "${ac_cv_prog_CC+set}" = set; then | |
10244 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f09359cf VS |
10245 | else |
10246 | if test -n "$CC"; then | |
10247 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10248 | else | |
e6cc62c6 VS |
10249 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10250 | for as_dir in $PATH | |
10251 | do | |
10252 | IFS=$as_save_IFS | |
10253 | test -z "$as_dir" && as_dir=. | |
10254 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10255 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10256 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
10257 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10258 | break 2 | |
10259 | fi | |
10260 | done | |
10261 | done | |
10262 | ||
f09359cf VS |
10263 | fi |
10264 | fi | |
e6cc62c6 | 10265 | CC=$ac_cv_prog_CC |
f09359cf | 10266 | if test -n "$CC"; then |
e6cc62c6 VS |
10267 | echo "$as_me:$LINENO: result: $CC" >&5 |
10268 | echo "${ECHO_T}$CC" >&6 | |
f09359cf | 10269 | else |
e6cc62c6 VS |
10270 | echo "$as_me:$LINENO: result: no" >&5 |
10271 | echo "${ECHO_T}no" >&6 | |
5c6fa7d2 | 10272 | fi |
1e487827 | 10273 | |
e6cc62c6 VS |
10274 | test -n "$CC" && break |
10275 | done | |
10276 | fi | |
10277 | if test -z "$CC"; then | |
10278 | ac_ct_CC=$CC | |
10279 | for ac_prog in cl | |
10280 | do | |
10281 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10282 | set dummy $ac_prog; ac_word=$2 | |
10283 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10284 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10285 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10286 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10287 | else | |
10288 | if test -n "$ac_ct_CC"; then | |
10289 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10290 | else | |
10291 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10292 | for as_dir in $PATH | |
10293 | do | |
10294 | IFS=$as_save_IFS | |
10295 | test -z "$as_dir" && as_dir=. | |
10296 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10297 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10298 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
10299 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10300 | break 2 | |
10301 | fi | |
10302 | done | |
10303 | done | |
f09359cf | 10304 | |
e6cc62c6 VS |
10305 | fi |
10306 | fi | |
10307 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10308 | if test -n "$ac_ct_CC"; then | |
10309 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10310 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10311 | else | |
10312 | echo "$as_me:$LINENO: result: no" >&5 | |
10313 | echo "${ECHO_T}no" >&6 | |
10314 | fi | |
f09359cf | 10315 | |
e6cc62c6 VS |
10316 | test -n "$ac_ct_CC" && break |
10317 | done | |
247f5006 | 10318 | |
e6cc62c6 VS |
10319 | CC=$ac_ct_CC |
10320 | fi | |
10321 | ||
10322 | fi | |
10323 | ||
10324 | ||
10325 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
10326 | See \`config.log' for more details." >&5 | |
10327 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
10328 | See \`config.log' for more details." >&2;} | |
10329 | { (exit 1); exit 1; }; } | |
10330 | ||
10331 | # Provide some information about the compiler. | |
10332 | echo "$as_me:$LINENO:" \ | |
10333 | "checking for C compiler version" >&5 | |
10334 | ac_compiler=`set X $ac_compile; echo $2` | |
10335 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
10336 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
10337 | ac_status=$? | |
10338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10339 | (exit $ac_status); } | |
10340 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
10341 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
10342 | ac_status=$? | |
10343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10344 | (exit $ac_status); } | |
10345 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
10346 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
10347 | ac_status=$? | |
10348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10349 | (exit $ac_status); } | |
10350 | ||
10351 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 10352 | #line $LINENO "configure" |
e6cc62c6 VS |
10353 | /* confdefs.h. */ |
10354 | _ACEOF | |
10355 | cat confdefs.h >>conftest.$ac_ext | |
10356 | cat >>conftest.$ac_ext <<_ACEOF | |
10357 | /* end confdefs.h. */ | |
10358 | ||
10359 | int | |
10360 | main () | |
10361 | { | |
247f5006 | 10362 | |
e6cc62c6 VS |
10363 | ; |
10364 | return 0; | |
10365 | } | |
10366 | _ACEOF | |
10367 | ac_clean_files_save=$ac_clean_files | |
10368 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
10369 | # Try to create an executable without -o first, disregard a.out. | |
10370 | # It will help us diagnose broken compilers, and finding out an intuition | |
10371 | # of exeext. | |
789c5f4a VZ |
10372 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
10373 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 | |
e6cc62c6 VS |
10374 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
10375 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
10376 | (eval $ac_link_default) 2>&5 | |
10377 | ac_status=$? | |
10378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10379 | (exit $ac_status); }; then | |
10380 | # Find the output, starting from the most likely. This scheme is | |
10381 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
10382 | # resort. | |
10383 | ||
10384 | # Be careful to initialize this variable, since it used to be cached. | |
10385 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
10386 | ac_cv_exeext= | |
10387 | # b.out is created by i960 compilers. | |
10388 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
10389 | do | |
10390 | test -f "$ac_file" || continue | |
10391 | case $ac_file in | |
10392 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
789c5f4a | 10393 | ;; |
e6cc62c6 | 10394 | conftest.$ac_ext ) |
789c5f4a VZ |
10395 | # This is the source file. |
10396 | ;; | |
e6cc62c6 | 10397 | [ab].out ) |
789c5f4a VZ |
10398 | # We found the default executable, but exeext='' is most |
10399 | # certainly right. | |
10400 | break;; | |
e6cc62c6 | 10401 | *.* ) |
789c5f4a VZ |
10402 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
10403 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
10404 | # but it would be cool to find out if it's true. Does anybody | |
10405 | # maintain Libtool? --akim. | |
10406 | export ac_cv_exeext | |
10407 | break;; | |
e6cc62c6 | 10408 | * ) |
789c5f4a | 10409 | break;; |
e6cc62c6 VS |
10410 | esac |
10411 | done | |
10412 | else | |
10413 | echo "$as_me: failed program was:" >&5 | |
10414 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10415 | ||
10416 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
10417 | See \`config.log' for more details." >&5 | |
10418 | echo "$as_me: error: C compiler cannot create executables | |
10419 | See \`config.log' for more details." >&2;} | |
10420 | { (exit 77); exit 77; }; } | |
10421 | fi | |
10422 | ||
10423 | ac_exeext=$ac_cv_exeext | |
10424 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
10425 | echo "${ECHO_T}$ac_file" >&6 | |
10426 | ||
10427 | # Check the compiler produces executables we can run. If not, either | |
10428 | # the compiler is broken, or we cross compile. | |
10429 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
10430 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
10431 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
10432 | # If not cross compiling, check that we can run a simple program. | |
10433 | if test "$cross_compiling" != yes; then | |
10434 | if { ac_try='./$ac_file' | |
10435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10436 | (eval $ac_try) 2>&5 | |
10437 | ac_status=$? | |
10438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10439 | (exit $ac_status); }; }; then | |
10440 | cross_compiling=no | |
698dcdb6 | 10441 | else |
e6cc62c6 VS |
10442 | if test "$cross_compiling" = maybe; then |
10443 | cross_compiling=yes | |
10444 | else | |
10445 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
10446 | If you meant to cross compile, use \`--host'. | |
10447 | See \`config.log' for more details." >&5 | |
10448 | echo "$as_me: error: cannot run C compiled programs. | |
10449 | If you meant to cross compile, use \`--host'. | |
10450 | See \`config.log' for more details." >&2;} | |
10451 | { (exit 1); exit 1; }; } | |
10452 | fi | |
698dcdb6 | 10453 | fi |
52127426 | 10454 | fi |
e6cc62c6 VS |
10455 | echo "$as_me:$LINENO: result: yes" >&5 |
10456 | echo "${ECHO_T}yes" >&6 | |
10457 | ||
10458 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
10459 | ac_clean_files=$ac_clean_files_save | |
10460 | # Check the compiler produces executables we can run. If not, either | |
10461 | # the compiler is broken, or we cross compile. | |
10462 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
10463 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
10464 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
10465 | echo "${ECHO_T}$cross_compiling" >&6 | |
10466 | ||
10467 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
10468 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
10469 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10470 | (eval $ac_link) 2>&5 | |
10471 | ac_status=$? | |
10472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10473 | (exit $ac_status); }; then | |
10474 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
10475 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
10476 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
10477 | # `rm'. | |
10478 | for ac_file in conftest.exe conftest conftest.*; do | |
10479 | test -f "$ac_file" || continue | |
10480 | case $ac_file in | |
10481 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
10482 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
789c5f4a VZ |
10483 | export ac_cv_exeext |
10484 | break;; | |
e6cc62c6 VS |
10485 | * ) break;; |
10486 | esac | |
10487 | done | |
5c6fa7d2 | 10488 | else |
e6cc62c6 VS |
10489 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
10490 | See \`config.log' for more details." >&5 | |
10491 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
10492 | See \`config.log' for more details." >&2;} | |
10493 | { (exit 1); exit 1; }; } | |
10494 | fi | |
10495 | ||
10496 | rm -f conftest$ac_cv_exeext | |
10497 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
10498 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
10499 | ||
10500 | rm -f conftest.$ac_ext | |
10501 | EXEEXT=$ac_cv_exeext | |
10502 | ac_exeext=$EXEEXT | |
10503 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
10504 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
10505 | if test "${ac_cv_objext+set}" = set; then | |
10506 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10507 | else | |
10508 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 10509 | #line $LINENO "configure" |
e6cc62c6 VS |
10510 | /* confdefs.h. */ |
10511 | _ACEOF | |
10512 | cat confdefs.h >>conftest.$ac_ext | |
10513 | cat >>conftest.$ac_ext <<_ACEOF | |
10514 | /* end confdefs.h. */ | |
10515 | ||
10516 | int | |
10517 | main () | |
10518 | { | |
f09359cf | 10519 | |
e6cc62c6 VS |
10520 | ; |
10521 | return 0; | |
10522 | } | |
10523 | _ACEOF | |
10524 | rm -f conftest.o conftest.obj | |
10525 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10526 | (eval $ac_compile) 2>&5 | |
10527 | ac_status=$? | |
10528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10529 | (exit $ac_status); }; then | |
10530 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
10531 | case $ac_file in | |
10532 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
10533 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
10534 | break;; | |
10535 | esac | |
10536 | done | |
a0b9e27f | 10537 | else |
e6cc62c6 VS |
10538 | echo "$as_me: failed program was:" >&5 |
10539 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10540 | ||
10541 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
10542 | See \`config.log' for more details." >&5 | |
10543 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
10544 | See \`config.log' for more details." >&2;} | |
10545 | { (exit 1); exit 1; }; } | |
a0b9e27f | 10546 | fi |
247f5006 | 10547 | |
e6cc62c6 VS |
10548 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
10549 | fi | |
10550 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
10551 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
10552 | OBJEXT=$ac_cv_objext | |
10553 | ac_objext=$OBJEXT | |
10554 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
10555 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
10556 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
10557 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 10558 | else |
e6cc62c6 | 10559 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 10560 | #line $LINENO "configure" |
e6cc62c6 VS |
10561 | /* confdefs.h. */ |
10562 | _ACEOF | |
10563 | cat confdefs.h >>conftest.$ac_ext | |
10564 | cat >>conftest.$ac_ext <<_ACEOF | |
10565 | /* end confdefs.h. */ | |
10566 | ||
10567 | int | |
10568 | main () | |
10569 | { | |
10570 | #ifndef __GNUC__ | |
10571 | choke me | |
10572 | #endif | |
10573 | ||
10574 | ; | |
10575 | return 0; | |
10576 | } | |
10577 | _ACEOF | |
10578 | rm -f conftest.$ac_objext | |
10579 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 10580 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
10581 | ac_status=$? |
10582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10583 | (exit $ac_status); } && | |
789c5f4a | 10584 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
10585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10586 | (eval $ac_try) 2>&5 | |
10587 | ac_status=$? | |
10588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10589 | (exit $ac_status); }; }; then | |
10590 | ac_compiler_gnu=yes | |
10591 | else | |
10592 | echo "$as_me: failed program was:" >&5 | |
10593 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10594 | ||
10595 | ac_compiler_gnu=no | |
10596 | fi | |
789c5f4a | 10597 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
10598 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
10599 | ||
10600 | fi | |
10601 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
10602 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
10603 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
10604 | ac_test_CFLAGS=${CFLAGS+set} | |
10605 | ac_save_CFLAGS=$CFLAGS | |
10606 | CFLAGS="-g" | |
10607 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
10608 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
10609 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
10610 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10611 | else | |
10612 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 10613 | #line $LINENO "configure" |
e6cc62c6 VS |
10614 | /* confdefs.h. */ |
10615 | _ACEOF | |
10616 | cat confdefs.h >>conftest.$ac_ext | |
10617 | cat >>conftest.$ac_ext <<_ACEOF | |
10618 | /* end confdefs.h. */ | |
10619 | ||
10620 | int | |
10621 | main () | |
10622 | { | |
10623 | ||
10624 | ; | |
10625 | return 0; | |
10626 | } | |
10627 | _ACEOF | |
10628 | rm -f conftest.$ac_objext | |
10629 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 10630 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
10631 | ac_status=$? |
10632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10633 | (exit $ac_status); } && | |
789c5f4a | 10634 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
10635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10636 | (eval $ac_try) 2>&5 | |
10637 | ac_status=$? | |
10638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10639 | (exit $ac_status); }; }; then | |
10f2d63a VZ |
10640 | ac_cv_prog_cc_g=yes |
10641 | else | |
e6cc62c6 VS |
10642 | echo "$as_me: failed program was:" >&5 |
10643 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 10644 | |
e6cc62c6 | 10645 | ac_cv_prog_cc_g=no |
10f2d63a | 10646 | fi |
789c5f4a | 10647 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
10648 | fi |
10649 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
10650 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
f09359cf | 10651 | if test "$ac_test_CFLAGS" = set; then |
e6cc62c6 | 10652 | CFLAGS=$ac_save_CFLAGS |
f09359cf VS |
10653 | elif test $ac_cv_prog_cc_g = yes; then |
10654 | if test "$GCC" = yes; then | |
10f2d63a VZ |
10655 | CFLAGS="-g -O2" |
10656 | else | |
f09359cf | 10657 | CFLAGS="-g" |
10f2d63a | 10658 | fi |
5c0a20c3 | 10659 | else |
f09359cf VS |
10660 | if test "$GCC" = yes; then |
10661 | CFLAGS="-O2" | |
10662 | else | |
10663 | CFLAGS= | |
10664 | fi | |
10f2d63a | 10665 | fi |
e6cc62c6 VS |
10666 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
10667 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
10668 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
10669 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10670 | else | |
10671 | ac_cv_prog_cc_stdc=no | |
10672 | ac_save_CC=$CC | |
10673 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 10674 | #line $LINENO "configure" |
e6cc62c6 VS |
10675 | /* confdefs.h. */ |
10676 | _ACEOF | |
10677 | cat confdefs.h >>conftest.$ac_ext | |
10678 | cat >>conftest.$ac_ext <<_ACEOF | |
10679 | /* end confdefs.h. */ | |
10680 | #include <stdarg.h> | |
10681 | #include <stdio.h> | |
10682 | #include <sys/types.h> | |
10683 | #include <sys/stat.h> | |
10684 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
10685 | struct buf { int x; }; | |
10686 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
10687 | static char *e (p, i) | |
10688 | char **p; | |
10689 | int i; | |
10690 | { | |
10691 | return p[i]; | |
10692 | } | |
10693 | static char *f (char * (*g) (char **, int), char **p, ...) | |
10694 | { | |
10695 | char *s; | |
10696 | va_list v; | |
10697 | va_start (v,p); | |
10698 | s = g (p, va_arg (v,int)); | |
10699 | va_end (v); | |
10700 | return s; | |
10701 | } | |
10702 | int test (int i, double x); | |
10703 | struct s1 {int (*f) (int a);}; | |
10704 | struct s2 {int (*f) (double a);}; | |
10705 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
10706 | int argc; | |
10707 | char **argv; | |
10708 | int | |
10709 | main () | |
10710 | { | |
10711 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
10712 | ; | |
10713 | return 0; | |
10714 | } | |
10715 | _ACEOF | |
10716 | # Don't try gcc -ansi; that turns off useful extensions and | |
10717 | # breaks some systems' header files. | |
10718 | # AIX -qlanglvl=ansi | |
10719 | # Ultrix and OSF/1 -std1 | |
10720 | # HP-UX 10.20 and later -Ae | |
10721 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
10722 | # SVR4 -Xc -D__EXTENSIONS__ | |
10723 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
10724 | do | |
10725 | CC="$ac_save_CC $ac_arg" | |
10726 | rm -f conftest.$ac_objext | |
10727 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 10728 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
10729 | ac_status=$? |
10730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10731 | (exit $ac_status); } && | |
789c5f4a | 10732 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
10733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10734 | (eval $ac_try) 2>&5 | |
10735 | ac_status=$? | |
10736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10737 | (exit $ac_status); }; }; then | |
10738 | ac_cv_prog_cc_stdc=$ac_arg | |
10739 | break | |
10740 | else | |
10741 | echo "$as_me: failed program was:" >&5 | |
10742 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10743 | ||
10744 | fi | |
789c5f4a | 10745 | rm -f conftest.$ac_objext |
e6cc62c6 VS |
10746 | done |
10747 | rm -f conftest.$ac_ext conftest.$ac_objext | |
10748 | CC=$ac_save_CC | |
10749 | ||
10750 | fi | |
10751 | ||
10752 | case "x$ac_cv_prog_cc_stdc" in | |
10753 | x|xno) | |
10754 | echo "$as_me:$LINENO: result: none needed" >&5 | |
10755 | echo "${ECHO_T}none needed" >&6 ;; | |
10756 | *) | |
10757 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
10758 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
10759 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
10760 | esac | |
10761 | ||
10762 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
10763 | # in C++ we need to declare it. In case someone uses the same compiler | |
10764 | # for both compiling C and C++ we need to have the C++ compiler decide | |
10765 | # the declaration of exit, since it's the most demanding environment. | |
10766 | cat >conftest.$ac_ext <<_ACEOF | |
10767 | #ifndef __cplusplus | |
10768 | choke me | |
10769 | #endif | |
10770 | _ACEOF | |
10771 | rm -f conftest.$ac_objext | |
10772 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 10773 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
10774 | ac_status=$? |
10775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10776 | (exit $ac_status); } && | |
789c5f4a | 10777 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
10778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10779 | (eval $ac_try) 2>&5 | |
10780 | ac_status=$? | |
10781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10782 | (exit $ac_status); }; }; then | |
10783 | for ac_declaration in \ | |
ecfd48ca | 10784 | '' \ |
e6cc62c6 VS |
10785 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
10786 | 'extern "C" void std::exit (int); using std::exit;' \ | |
10787 | 'extern "C" void exit (int) throw ();' \ | |
10788 | 'extern "C" void exit (int);' \ | |
10789 | 'void exit (int);' | |
10790 | do | |
10791 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 10792 | #line $LINENO "configure" |
e6cc62c6 VS |
10793 | /* confdefs.h. */ |
10794 | _ACEOF | |
10795 | cat confdefs.h >>conftest.$ac_ext | |
10796 | cat >>conftest.$ac_ext <<_ACEOF | |
10797 | /* end confdefs.h. */ | |
5a60a58a | 10798 | $ac_declaration |
ecfd48ca | 10799 | #include <stdlib.h> |
e6cc62c6 VS |
10800 | int |
10801 | main () | |
10802 | { | |
10803 | exit (42); | |
10804 | ; | |
10805 | return 0; | |
10806 | } | |
10807 | _ACEOF | |
10808 | rm -f conftest.$ac_objext | |
10809 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 10810 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
10811 | ac_status=$? |
10812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10813 | (exit $ac_status); } && | |
789c5f4a | 10814 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
10815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10816 | (eval $ac_try) 2>&5 | |
10817 | ac_status=$? | |
10818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10819 | (exit $ac_status); }; }; then | |
10820 | : | |
10821 | else | |
10822 | echo "$as_me: failed program was:" >&5 | |
10823 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10824 | ||
10825 | continue | |
10826 | fi | |
789c5f4a | 10827 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 10828 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 10829 | #line $LINENO "configure" |
e6cc62c6 VS |
10830 | /* confdefs.h. */ |
10831 | _ACEOF | |
10832 | cat confdefs.h >>conftest.$ac_ext | |
10833 | cat >>conftest.$ac_ext <<_ACEOF | |
10834 | /* end confdefs.h. */ | |
10835 | $ac_declaration | |
10836 | int | |
10837 | main () | |
10838 | { | |
10839 | exit (42); | |
10840 | ; | |
10841 | return 0; | |
10842 | } | |
10843 | _ACEOF | |
10844 | rm -f conftest.$ac_objext | |
10845 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 10846 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
10847 | ac_status=$? |
10848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10849 | (exit $ac_status); } && | |
789c5f4a | 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 | |
789c5f4a | 10862 | rm -f 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 | |
789c5f4a | 10876 | rm -f 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 | |
789c5f4a | 10913 | #line $LINENO "configure" |
e6cc62c6 VS |
10914 | /* confdefs.h. */ |
10915 | _ACEOF | |
10916 | cat confdefs.h >>conftest.$ac_ext | |
10917 | cat >>conftest.$ac_ext <<_ACEOF | |
10918 | /* end confdefs.h. */ | |
10919 | #ifdef __STDC__ | |
10920 | # include <limits.h> | |
10921 | #else | |
10922 | # include <assert.h> | |
10923 | #endif | |
789c5f4a | 10924 | Syntax error |
e6cc62c6 VS |
10925 | _ACEOF |
10926 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10927 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10928 | ac_status=$? | |
10929 | grep -v '^ *+' conftest.er1 >conftest.err | |
10930 | rm -f conftest.er1 | |
10931 | cat conftest.err >&5 | |
10932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10933 | (exit $ac_status); } >/dev/null; then | |
10934 | if test -s conftest.err; then | |
10935 | ac_cpp_err=$ac_c_preproc_warn_flag | |
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 | |
789c5f4a | 10956 | #line $LINENO "configure" |
e6cc62c6 VS |
10957 | /* confdefs.h. */ |
10958 | _ACEOF | |
10959 | cat confdefs.h >>conftest.$ac_ext | |
10960 | cat >>conftest.$ac_ext <<_ACEOF | |
10961 | /* end confdefs.h. */ | |
10962 | #include <ac_nonexistent.h> | |
10963 | _ACEOF | |
10964 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10965 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10966 | ac_status=$? | |
10967 | grep -v '^ *+' conftest.er1 >conftest.err | |
10968 | rm -f conftest.er1 | |
10969 | cat conftest.err >&5 | |
10970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10971 | (exit $ac_status); } >/dev/null; then | |
10972 | if test -s conftest.err; then | |
10973 | ac_cpp_err=$ac_c_preproc_warn_flag | |
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 | |
789c5f4a | 11020 | #line $LINENO "configure" |
e6cc62c6 VS |
11021 | /* confdefs.h. */ |
11022 | _ACEOF | |
11023 | cat confdefs.h >>conftest.$ac_ext | |
11024 | cat >>conftest.$ac_ext <<_ACEOF | |
11025 | /* end confdefs.h. */ | |
11026 | #ifdef __STDC__ | |
11027 | # include <limits.h> | |
11028 | #else | |
11029 | # include <assert.h> | |
11030 | #endif | |
789c5f4a | 11031 | Syntax error |
e6cc62c6 VS |
11032 | _ACEOF |
11033 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11034 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11035 | ac_status=$? | |
11036 | grep -v '^ *+' conftest.er1 >conftest.err | |
11037 | rm -f conftest.er1 | |
11038 | cat conftest.err >&5 | |
11039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11040 | (exit $ac_status); } >/dev/null; then | |
11041 | if test -s conftest.err; then | |
11042 | ac_cpp_err=$ac_c_preproc_warn_flag | |
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 | |
789c5f4a | 11063 | #line $LINENO "configure" |
e6cc62c6 VS |
11064 | /* confdefs.h. */ |
11065 | _ACEOF | |
11066 | cat confdefs.h >>conftest.$ac_ext | |
11067 | cat >>conftest.$ac_ext <<_ACEOF | |
11068 | /* end confdefs.h. */ | |
11069 | #include <ac_nonexistent.h> | |
11070 | _ACEOF | |
11071 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11072 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11073 | ac_status=$? | |
11074 | grep -v '^ *+' conftest.er1 >conftest.err | |
11075 | rm -f conftest.er1 | |
11076 | cat conftest.err >&5 | |
11077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11078 | (exit $ac_status); } >/dev/null; then | |
11079 | if test -s conftest.err; then | |
11080 | ac_cpp_err=$ac_c_preproc_warn_flag | |
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 |
789c5f4a | 11143 | #line $LINENO "configure" |
e6cc62c6 VS |
11144 | /* confdefs.h. */ |
11145 | _ACEOF | |
11146 | cat confdefs.h >>conftest.$ac_ext | |
11147 | cat >>conftest.$ac_ext <<_ACEOF | |
11148 | /* end confdefs.h. */ | |
10f2d63a VZ |
11149 | #include <sgtty.h> |
11150 | Autoconf TIOCGETP | |
e6cc62c6 | 11151 | _ACEOF |
10f2d63a | 11152 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
e6cc62c6 | 11153 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
10f2d63a VZ |
11154 | ac_cv_prog_gcc_traditional=yes |
11155 | else | |
10f2d63a VZ |
11156 | ac_cv_prog_gcc_traditional=no |
11157 | fi | |
11158 | rm -f conftest* | |
11159 | ||
8284b0c5 | 11160 | |
10f2d63a | 11161 | if test $ac_cv_prog_gcc_traditional = no; then |
e6cc62c6 | 11162 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 11163 | #line $LINENO "configure" |
e6cc62c6 VS |
11164 | /* confdefs.h. */ |
11165 | _ACEOF | |
11166 | cat confdefs.h >>conftest.$ac_ext | |
11167 | cat >>conftest.$ac_ext <<_ACEOF | |
11168 | /* end confdefs.h. */ | |
10f2d63a VZ |
11169 | #include <termio.h> |
11170 | Autoconf TCGETA | |
e6cc62c6 | 11171 | _ACEOF |
10f2d63a | 11172 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
e6cc62c6 | 11173 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
10f2d63a VZ |
11174 | ac_cv_prog_gcc_traditional=yes |
11175 | fi | |
11176 | rm -f conftest* | |
11177 | ||
11178 | fi | |
11179 | fi | |
e6cc62c6 VS |
11180 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
11181 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
10f2d63a VZ |
11182 | if test $ac_cv_prog_gcc_traditional = yes; then |
11183 | CC="$CC -traditional" | |
11184 | fi | |
11185 | fi | |
11186 | ||
8284b0c5 MB |
11187 | |
11188 | ||
e6cc62c6 VS |
11189 | |
11190 | ac_ext=cc | |
1e487827 | 11191 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
11192 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
11193 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11194 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
8284b0c5 | 11195 | |
698dcdb6 | 11196 | |
ec603395 | 11197 | CXXFLAGS=${CXXFLAGS:=} |
e6cc62c6 VS |
11198 | ac_ext=cc |
11199 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11200 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11201 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11202 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11203 | if test -n "$ac_tool_prefix"; then | |
11204 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
11205 | do | |
11206 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
11207 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
11208 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11209 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11210 | if test "${ac_cv_prog_CXX+set}" = set; then | |
11211 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11212 | else |
11213 | if test -n "$CXX"; then | |
11214 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
11215 | else | |
e6cc62c6 VS |
11216 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11217 | for as_dir in $PATH | |
11218 | do | |
11219 | IFS=$as_save_IFS | |
11220 | test -z "$as_dir" && as_dir=. | |
11221 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11222 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11223 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
11224 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11225 | break 2 | |
11226 | fi | |
11227 | done | |
11228 | done | |
11229 | ||
10f2d63a VZ |
11230 | fi |
11231 | fi | |
e6cc62c6 | 11232 | CXX=$ac_cv_prog_CXX |
10f2d63a | 11233 | if test -n "$CXX"; then |
e6cc62c6 VS |
11234 | echo "$as_me:$LINENO: result: $CXX" >&5 |
11235 | echo "${ECHO_T}$CXX" >&6 | |
10f2d63a | 11236 | else |
e6cc62c6 VS |
11237 | echo "$as_me:$LINENO: result: no" >&5 |
11238 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
11239 | fi |
11240 | ||
e6cc62c6 VS |
11241 | test -n "$CXX" && break |
11242 | done | |
11243 | fi | |
11244 | if test -z "$CXX"; then | |
11245 | ac_ct_CXX=$CXX | |
11246 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
11247 | do | |
11248 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11249 | set dummy $ac_prog; ac_word=$2 | |
11250 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11251 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11252 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
11253 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11254 | else | |
11255 | if test -n "$ac_ct_CXX"; then | |
11256 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
11257 | else | |
11258 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11259 | for as_dir in $PATH | |
11260 | do | |
11261 | IFS=$as_save_IFS | |
11262 | test -z "$as_dir" && as_dir=. | |
11263 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11264 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11265 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
11266 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11267 | break 2 | |
11268 | fi | |
11269 | done | |
10f2d63a | 11270 | done |
a0b9e27f | 11271 | |
8284b0c5 | 11272 | fi |
a0b9e27f | 11273 | fi |
e6cc62c6 VS |
11274 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
11275 | if test -n "$ac_ct_CXX"; then | |
11276 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
11277 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
11278 | else | |
11279 | echo "$as_me:$LINENO: result: no" >&5 | |
11280 | echo "${ECHO_T}no" >&6 | |
a0b9e27f | 11281 | fi |
10f2d63a | 11282 | |
e6cc62c6 VS |
11283 | test -n "$ac_ct_CXX" && break |
11284 | done | |
11285 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
11286 | ||
11287 | CXX=$ac_ct_CXX | |
11288 | fi | |
11289 | ||
11290 | ||
11291 | # Provide some information about the compiler. | |
11292 | echo "$as_me:$LINENO:" \ | |
11293 | "checking for C++ compiler version" >&5 | |
11294 | ac_compiler=`set X $ac_compile; echo $2` | |
11295 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
11296 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
11297 | ac_status=$? | |
11298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11299 | (exit $ac_status); } | |
11300 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
11301 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
11302 | ac_status=$? | |
11303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11304 | (exit $ac_status); } | |
11305 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
11306 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
11307 | ac_status=$? | |
11308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11309 | (exit $ac_status); } | |
11310 | ||
11311 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
11312 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
11313 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
11314 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11315 | else | |
11316 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 11317 | #line $LINENO "configure" |
e6cc62c6 VS |
11318 | /* confdefs.h. */ |
11319 | _ACEOF | |
11320 | cat confdefs.h >>conftest.$ac_ext | |
11321 | cat >>conftest.$ac_ext <<_ACEOF | |
11322 | /* end confdefs.h. */ | |
11323 | ||
11324 | int | |
11325 | main () | |
11326 | { | |
11327 | #ifndef __GNUC__ | |
11328 | choke me | |
11329 | #endif | |
10f2d63a | 11330 | |
e6cc62c6 VS |
11331 | ; |
11332 | return 0; | |
11333 | } | |
11334 | _ACEOF | |
11335 | rm -f conftest.$ac_objext | |
11336 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 11337 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
11338 | ac_status=$? |
11339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11340 | (exit $ac_status); } && | |
789c5f4a | 11341 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
11342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11343 | (eval $ac_try) 2>&5 | |
11344 | ac_status=$? | |
11345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11346 | (exit $ac_status); }; }; then | |
11347 | ac_compiler_gnu=yes | |
11348 | else | |
11349 | echo "$as_me: failed program was:" >&5 | |
11350 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11351 | ||
11352 | ac_compiler_gnu=no | |
11353 | fi | |
789c5f4a | 11354 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
11355 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
11356 | ||
11357 | fi | |
11358 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
11359 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
11360 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
11361 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
11362 | ac_save_CXXFLAGS=$CXXFLAGS | |
11363 | CXXFLAGS="-g" | |
11364 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
11365 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
11366 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
11367 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11368 | else | |
11369 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 11370 | #line $LINENO "configure" |
e6cc62c6 VS |
11371 | /* confdefs.h. */ |
11372 | _ACEOF | |
11373 | cat confdefs.h >>conftest.$ac_ext | |
11374 | cat >>conftest.$ac_ext <<_ACEOF | |
11375 | /* end confdefs.h. */ | |
11376 | ||
11377 | int | |
11378 | main () | |
11379 | { | |
f09359cf | 11380 | |
e6cc62c6 VS |
11381 | ; |
11382 | return 0; | |
11383 | } | |
11384 | _ACEOF | |
11385 | rm -f conftest.$ac_objext | |
11386 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 11387 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
11388 | ac_status=$? |
11389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11390 | (exit $ac_status); } && | |
789c5f4a | 11391 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
11392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11393 | (eval $ac_try) 2>&5 | |
11394 | ac_status=$? | |
11395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11396 | (exit $ac_status); }; }; then | |
10f2d63a VZ |
11397 | ac_cv_prog_cxx_g=yes |
11398 | else | |
e6cc62c6 VS |
11399 | echo "$as_me: failed program was:" >&5 |
11400 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 11401 | |
e6cc62c6 | 11402 | ac_cv_prog_cxx_g=no |
10f2d63a | 11403 | fi |
789c5f4a | 11404 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
11405 | fi |
11406 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
11407 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
f09359cf | 11408 | if test "$ac_test_CXXFLAGS" = set; then |
e6cc62c6 | 11409 | CXXFLAGS=$ac_save_CXXFLAGS |
f09359cf VS |
11410 | elif test $ac_cv_prog_cxx_g = yes; then |
11411 | if test "$GXX" = yes; then | |
10f2d63a VZ |
11412 | CXXFLAGS="-g -O2" |
11413 | else | |
f09359cf | 11414 | CXXFLAGS="-g" |
10f2d63a | 11415 | fi |
5c0a20c3 | 11416 | else |
f09359cf VS |
11417 | if test "$GXX" = yes; then |
11418 | CXXFLAGS="-O2" | |
11419 | else | |
11420 | CXXFLAGS= | |
11421 | fi | |
10f2d63a | 11422 | fi |
e6cc62c6 | 11423 | for ac_declaration in \ |
ecfd48ca | 11424 | '' \ |
e6cc62c6 VS |
11425 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
11426 | 'extern "C" void std::exit (int); using std::exit;' \ | |
11427 | 'extern "C" void exit (int) throw ();' \ | |
11428 | 'extern "C" void exit (int);' \ | |
11429 | 'void exit (int);' | |
11430 | do | |
11431 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 11432 | #line $LINENO "configure" |
e6cc62c6 VS |
11433 | /* confdefs.h. */ |
11434 | _ACEOF | |
11435 | cat confdefs.h >>conftest.$ac_ext | |
11436 | cat >>conftest.$ac_ext <<_ACEOF | |
11437 | /* end confdefs.h. */ | |
5a60a58a | 11438 | $ac_declaration |
ecfd48ca | 11439 | #include <stdlib.h> |
e6cc62c6 VS |
11440 | int |
11441 | main () | |
11442 | { | |
11443 | exit (42); | |
11444 | ; | |
11445 | return 0; | |
11446 | } | |
11447 | _ACEOF | |
11448 | rm -f conftest.$ac_objext | |
11449 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 11450 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
11451 | ac_status=$? |
11452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11453 | (exit $ac_status); } && | |
789c5f4a | 11454 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
11455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11456 | (eval $ac_try) 2>&5 | |
11457 | ac_status=$? | |
11458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11459 | (exit $ac_status); }; }; then | |
11460 | : | |
11461 | else | |
11462 | echo "$as_me: failed program was:" >&5 | |
11463 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11464 | ||
11465 | continue | |
11466 | fi | |
789c5f4a | 11467 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 11468 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 11469 | #line $LINENO "configure" |
e6cc62c6 VS |
11470 | /* confdefs.h. */ |
11471 | _ACEOF | |
11472 | cat confdefs.h >>conftest.$ac_ext | |
11473 | cat >>conftest.$ac_ext <<_ACEOF | |
11474 | /* end confdefs.h. */ | |
11475 | $ac_declaration | |
11476 | int | |
11477 | main () | |
11478 | { | |
11479 | exit (42); | |
11480 | ; | |
11481 | return 0; | |
11482 | } | |
11483 | _ACEOF | |
11484 | rm -f conftest.$ac_objext | |
11485 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 11486 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
11487 | ac_status=$? |
11488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11489 | (exit $ac_status); } && | |
789c5f4a | 11490 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
11491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11492 | (eval $ac_try) 2>&5 | |
11493 | ac_status=$? | |
11494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11495 | (exit $ac_status); }; }; then | |
11496 | break | |
11497 | else | |
11498 | echo "$as_me: failed program was:" >&5 | |
11499 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11500 | ||
11501 | fi | |
789c5f4a | 11502 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
11503 | done |
11504 | rm -f conftest* | |
11505 | if test -n "$ac_declaration"; then | |
11506 | echo '#ifdef __cplusplus' >>confdefs.h | |
11507 | echo $ac_declaration >>confdefs.h | |
11508 | echo '#endif' >>confdefs.h | |
11509 | fi | |
11510 | ||
11511 | ac_ext=cc | |
11512 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11513 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11514 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11515 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
10f2d63a VZ |
11516 | |
11517 | ||
10f2d63a | 11518 | ac_ext=c |
10f2d63a | 11519 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
11520 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
11521 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11522 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 MB |
11523 | |
11524 | ||
e6cc62c6 VS |
11525 | if test -n "$ac_tool_prefix"; then |
11526 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
11527 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
11528 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11529 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11530 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
11531 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11532 | else |
11533 | if test -n "$RANLIB"; then | |
11534 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
11535 | else | |
e6cc62c6 VS |
11536 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11537 | for as_dir in $PATH | |
11538 | do | |
11539 | IFS=$as_save_IFS | |
11540 | test -z "$as_dir" && as_dir=. | |
11541 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11542 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11543 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
11544 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11545 | break 2 | |
11546 | fi | |
11547 | done | |
11548 | done | |
11549 | ||
10f2d63a VZ |
11550 | fi |
11551 | fi | |
e6cc62c6 | 11552 | RANLIB=$ac_cv_prog_RANLIB |
10f2d63a | 11553 | if test -n "$RANLIB"; then |
e6cc62c6 VS |
11554 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
11555 | echo "${ECHO_T}$RANLIB" >&6 | |
11556 | else | |
11557 | echo "$as_me:$LINENO: result: no" >&5 | |
11558 | echo "${ECHO_T}no" >&6 | |
11559 | fi | |
11560 | ||
11561 | fi | |
11562 | if test -z "$ac_cv_prog_RANLIB"; then | |
11563 | ac_ct_RANLIB=$RANLIB | |
11564 | # Extract the first word of "ranlib", so it can be a program name with args. | |
11565 | set dummy ranlib; ac_word=$2 | |
11566 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11567 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11568 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
11569 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
328a083c | 11570 | else |
e6cc62c6 VS |
11571 | if test -n "$ac_ct_RANLIB"; then |
11572 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
11573 | else | |
11574 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11575 | for as_dir in $PATH | |
11576 | do | |
11577 | IFS=$as_save_IFS | |
11578 | test -z "$as_dir" && as_dir=. | |
11579 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11580 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11581 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
11582 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11583 | break 2 | |
11584 | fi | |
11585 | done | |
11586 | done | |
11587 | ||
11588 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
11589 | fi | |
11590 | fi | |
11591 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
11592 | if test -n "$ac_ct_RANLIB"; then | |
11593 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
11594 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
11595 | else | |
11596 | echo "$as_me:$LINENO: result: no" >&5 | |
11597 | echo "${ECHO_T}no" >&6 | |
11598 | fi | |
11599 | ||
11600 | RANLIB=$ac_ct_RANLIB | |
11601 | else | |
11602 | RANLIB="$ac_cv_prog_RANLIB" | |
328a083c RR |
11603 | fi |
11604 | ||
10f2d63a VZ |
11605 | |
11606 | # Extract the first word of "ar", so it can be a program name with args. | |
11607 | set dummy ar; ac_word=$2 | |
e6cc62c6 VS |
11608 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11609 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11610 | if test "${ac_cv_prog_AR+set}" = set; then | |
11611 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11612 | else |
11613 | if test -n "$AR"; then | |
11614 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
11615 | else | |
e6cc62c6 VS |
11616 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11617 | for as_dir in $PATH | |
11618 | do | |
11619 | IFS=$as_save_IFS | |
11620 | test -z "$as_dir" && as_dir=. | |
11621 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11622 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11623 | ac_cv_prog_AR="ar" | |
11624 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11625 | break 2 | |
11626 | fi | |
11627 | done | |
11628 | done | |
11629 | ||
10f2d63a VZ |
11630 | fi |
11631 | fi | |
e6cc62c6 | 11632 | AR=$ac_cv_prog_AR |
10f2d63a | 11633 | if test -n "$AR"; then |
e6cc62c6 VS |
11634 | echo "$as_me:$LINENO: result: $AR" >&5 |
11635 | echo "${ECHO_T}$AR" >&6 | |
10f2d63a | 11636 | else |
e6cc62c6 VS |
11637 | echo "$as_me:$LINENO: result: no" >&5 |
11638 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
11639 | fi |
11640 | ||
911740e7 VS |
11641 | if test "x$AR" = "x" ; then |
11642 | { { echo "$as_me:$LINENO: error: ar is needed to build wxWindows" >&5 | |
11643 | echo "$as_me: error: ar is needed to build wxWindows" >&2;} | |
11644 | { (exit 1); exit 1; }; } | |
11645 | fi | |
8284b0c5 | 11646 | |
6054113a | 11647 | # Find a good install program. We prefer a C program (faster), |
10f2d63a VZ |
11648 | # so one script is as good as another. But avoid the broken or |
11649 | # incompatible versions: | |
11650 | # SysV /etc/install, /usr/sbin/install | |
11651 | # SunOS /usr/etc/install | |
11652 | # IRIX /sbin/install | |
11653 | # AIX /bin/install | |
e6cc62c6 | 11654 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
f09359cf | 11655 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
10f2d63a VZ |
11656 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
11657 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
11658 | # ./install, which can be erroneously created by make from ./install.sh. | |
e6cc62c6 VS |
11659 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
11660 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
10f2d63a | 11661 | if test -z "$INSTALL"; then |
e6cc62c6 VS |
11662 | if test "${ac_cv_path_install+set}" = set; then |
11663 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11664 | else | |
11665 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11666 | for as_dir in $PATH | |
11667 | do | |
11668 | IFS=$as_save_IFS | |
11669 | test -z "$as_dir" && as_dir=. | |
11670 | # Account for people who put trailing slashes in PATH elements. | |
11671 | case $as_dir/ in | |
11672 | ./ | .// | /cC/* | \ | |
11673 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
11674 | /usr/ucb/* ) ;; | |
11675 | *) | |
11676 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
11677 | # Don't use installbsd from OSF since it installs stuff as root | |
11678 | # by default. | |
11679 | for ac_prog in ginstall scoinst install; do | |
11680 | for ac_exec_ext in '' $ac_executable_extensions; do | |
789c5f4a VZ |
11681 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
11682 | if test $ac_prog = install && | |
11683 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
11684 | # AIX install. It has an incompatible calling convention. | |
11685 | : | |
11686 | elif test $ac_prog = install && | |
11687 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
11688 | # program-specific install script used by HP pwplus--don't use. | |
11689 | : | |
11690 | else | |
11691 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
11692 | break 3 | |
11693 | fi | |
11694 | fi | |
10f2d63a | 11695 | done |
e6cc62c6 VS |
11696 | done |
11697 | ;; | |
11698 | esac | |
11699 | done | |
11700 | ||
10f2d63a VZ |
11701 | |
11702 | fi | |
11703 | if test "${ac_cv_path_install+set}" = set; then | |
e6cc62c6 | 11704 | INSTALL=$ac_cv_path_install |
10f2d63a VZ |
11705 | else |
11706 | # As a last resort, use the slow shell script. We don't cache a | |
11707 | # path for INSTALL within a source directory, because that will | |
11708 | # break other packages using the cache if that directory is | |
11709 | # removed, or if the path is relative. | |
e6cc62c6 | 11710 | INSTALL=$ac_install_sh |
10f2d63a VZ |
11711 | fi |
11712 | fi | |
e6cc62c6 VS |
11713 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
11714 | echo "${ECHO_T}$INSTALL" >&6 | |
10f2d63a VZ |
11715 | |
11716 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
11717 | # It thinks the first close brace ends the variable substitution. | |
11718 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
11719 | ||
e6cc62c6 | 11720 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
f09359cf | 11721 | |
10f2d63a VZ |
11722 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
11723 | ||
8284b0c5 | 11724 | |
1d1b75ac VZ |
11725 | case ${INSTALL} in |
11726 | /* ) # Absolute | |
11727 | ;; | |
4f5a7f74 VZ |
11728 | ?:* ) # Drive letter, considered as absolute. |
11729 | ;; | |
3bd8fb5f | 11730 | *) |
1d1b75ac VZ |
11731 | INSTALL=`pwd`/${INSTALL} ;; |
11732 | esac | |
11733 | ||
4f5a7f74 VZ |
11734 | case ${host} in |
11735 | *-hp-hpux* ) | |
11736 | INSTALL_DIR="mkdir" | |
11737 | ;; | |
11738 | ||
11739 | *) INSTALL_DIR="$INSTALL -d" | |
11740 | ;; | |
11741 | esac | |
11742 | ||
8284b0c5 | 11743 | |
6054113a GD |
11744 | case "${host}" in |
11745 | ||
b5853384 | 11746 | powerpc-*-darwin* ) |
eb99ae0b GD |
11747 | INSTALL_PROGRAM="cp -fp" |
11748 | INSTALL_DATA="cp -fp" | |
6054113a GD |
11749 | ;; |
11750 | *) | |
11751 | ;; | |
d6853540 | 11752 | esac |
698dcdb6 | 11753 | |
10f2d63a VZ |
11754 | # Extract the first word of "strip", so it can be a program name with args. |
11755 | set dummy strip; ac_word=$2 | |
e6cc62c6 VS |
11756 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11757 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11758 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
11759 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11760 | else |
11761 | if test -n "$STRIP"; then | |
11762 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
11763 | else | |
e6cc62c6 VS |
11764 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11765 | for as_dir in $PATH | |
11766 | do | |
11767 | IFS=$as_save_IFS | |
11768 | test -z "$as_dir" && as_dir=. | |
11769 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11770 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11771 | ac_cv_prog_STRIP="strip" | |
11772 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11773 | break 2 | |
11774 | fi | |
11775 | done | |
11776 | done | |
11777 | ||
10f2d63a VZ |
11778 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
11779 | fi | |
11780 | fi | |
e6cc62c6 | 11781 | STRIP=$ac_cv_prog_STRIP |
10f2d63a | 11782 | if test -n "$STRIP"; then |
e6cc62c6 VS |
11783 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
11784 | echo "${ECHO_T}$STRIP" >&6 | |
10f2d63a | 11785 | else |
e6cc62c6 VS |
11786 | echo "$as_me:$LINENO: result: no" >&5 |
11787 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
11788 | fi |
11789 | ||
5c6fa7d2 | 11790 | |
e6cc62c6 VS |
11791 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 |
11792 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
11793 | if test "${wx_cv_prog_makeisgnu+set}" = set; then | |
11794 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 11795 | else |
e6cc62c6 | 11796 | |
414eab6d | 11797 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | |
d558c907 | 11798 | egrep -s GNU > /dev/null); then |
414eab6d VZ |
11799 | wx_cv_prog_makeisgnu="yes" |
11800 | else | |
11801 | wx_cv_prog_makeisgnu="no" | |
11802 | fi | |
11803 | ||
11804 | fi | |
e6cc62c6 VS |
11805 | echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5 |
11806 | echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6 | |
414eab6d VZ |
11807 | |
11808 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
11809 | IF_GNU_MAKE="" | |
11810 | else | |
11811 | IF_GNU_MAKE="#" | |
11812 | fi | |
11813 | ||
8284b0c5 MB |
11814 | |
11815 | ||
414eab6d | 11816 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then |
e6cc62c6 VS |
11817 | echo "$as_me:$LINENO: checking if make supports VPATH" >&5 |
11818 | echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6 | |
11819 | if test "${wx_cv_prog_makevpath+set}" = set; then | |
11820 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
04e7a216 | 11821 | else |
e6cc62c6 | 11822 | |
10f2d63a VZ |
11823 | cat - << EOF > confMake |
11824 | check : file | |
11825 | cp \$? \$@ | |
11826 | cp \$? final_file | |
11827 | EOF | |
11828 | ||
11829 | if test ! -d sub ; then | |
11830 | mkdir sub | |
11831 | fi | |
11832 | echo dummy > sub/file | |
f6bcfd97 | 11833 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
11834 | RESULT=$? |
11835 | rm -f sub/file check final_file confMake | |
11836 | rmdir sub | |
11837 | if test "$RESULT" = 0; then | |
04e7a216 | 11838 | wx_cv_prog_makevpath="yes" |
10f2d63a | 11839 | else |
04e7a216 VZ |
11840 | wx_cv_prog_makevpath="no" |
11841 | fi | |
11842 | ||
11843 | fi | |
e6cc62c6 VS |
11844 | echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5 |
11845 | echo "${ECHO_T}$wx_cv_prog_makevpath" >&6 | |
04e7a216 VZ |
11846 | |
11847 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
e6cc62c6 | 11848 | { { echo "$as_me:$LINENO: error: |
5c6fa7d2 RR |
11849 | You need a make-utility that is able to use the variable |
11850 | VPATH correctly. | |
11851 | If your version of make does not support VPATH correctly, | |
11852 | please install GNU-make (possibly as gmake), and start | |
11853 | configure with the following command: | |
11854 | export MAKE=gmake; ./configure for sh-type shells | |
11855 | setenv MAKE gmake; ./configure for csh-type shells | |
11856 | Also please do remember to use gmake in this case every time | |
11857 | you are trying to compile. | |
e6cc62c6 VS |
11858 | " >&5 |
11859 | echo "$as_me: error: | |
11860 | You need a make-utility that is able to use the variable | |
11861 | VPATH correctly. | |
11862 | If your version of make does not support VPATH correctly, | |
11863 | please install GNU-make (possibly as gmake), and start | |
11864 | configure with the following command: | |
11865 | export MAKE=gmake; ./configure for sh-type shells | |
11866 | setenv MAKE gmake; ./configure for csh-type shells | |
11867 | Also please do remember to use gmake in this case every time | |
11868 | you are trying to compile. | |
11869 | " >&2;} | |
11870 | { (exit 1); exit 1; }; } | |
11871 | fi fi | |
e6cc62c6 VS |
11872 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
11873 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
11874 | LN_S=$as_ln_s | |
11875 | if test "$LN_S" = "ln -s"; then | |
11876 | echo "$as_me:$LINENO: result: yes" >&5 | |
11877 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 11878 | else |
e6cc62c6 VS |
11879 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
11880 | echo "${ECHO_T}no, using $LN_S" >&6 | |
5c6fa7d2 | 11881 | fi |
5c6fa7d2 | 11882 | |
247f5006 | 11883 | |
2b5f62a0 VZ |
11884 | case "${host}" in |
11885 | *-pc-os2_emx | *-pc-os2-emx ) | |
2b5f62a0 | 11886 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then |
e6cc62c6 VS |
11887 | echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5 |
11888 | echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6 | |
11889 | if test "${ac_cv_lib_cExt_drand48+set}" = set; then | |
11890 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2b5f62a0 | 11891 | else |
e6cc62c6 | 11892 | ac_check_lib_save_LIBS=$LIBS |
2b5f62a0 | 11893 | LIBS="-lcExt $LIBS" |
e6cc62c6 | 11894 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 11895 | #line $LINENO "configure" |
e6cc62c6 VS |
11896 | /* confdefs.h. */ |
11897 | _ACEOF | |
11898 | cat confdefs.h >>conftest.$ac_ext | |
11899 | cat >>conftest.$ac_ext <<_ACEOF | |
11900 | /* end confdefs.h. */ | |
11901 | ||
2b5f62a0 | 11902 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
11903 | #ifdef __cplusplus |
11904 | extern "C" | |
11905 | #endif | |
2b5f62a0 | 11906 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
11907 | builtin and then its argument prototype would still apply. */ |
11908 | char drand48 (); | |
11909 | int | |
11910 | main () | |
11911 | { | |
11912 | drand48 (); | |
11913 | ; | |
11914 | return 0; | |
11915 | } | |
11916 | _ACEOF | |
11917 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11918 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 11919 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
11920 | ac_status=$? |
11921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11922 | (exit $ac_status); } && | |
789c5f4a | 11923 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
11924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11925 | (eval $ac_try) 2>&5 | |
11926 | ac_status=$? | |
11927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11928 | (exit $ac_status); }; }; then | |
11929 | ac_cv_lib_cExt_drand48=yes | |
11930 | else | |
11931 | echo "$as_me: failed program was:" >&5 | |
11932 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11933 | ||
11934 | ac_cv_lib_cExt_drand48=no | |
11935 | fi | |
789c5f4a | 11936 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
11937 | LIBS=$ac_check_lib_save_LIBS |
11938 | fi | |
11939 | echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5 | |
11940 | echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6 | |
11941 | if test $ac_cv_lib_cExt_drand48 = yes; then | |
2b5f62a0 | 11942 | LIBS="$LIBS -lcExt" |
2b5f62a0 VZ |
11943 | fi |
11944 | ||
11945 | else | |
11946 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
11947 | fi | |
73d617c9 MB |
11948 | echo "$as_me:$LINENO: checking for gcc 3 or later" >&5 |
11949 | echo $ECHO_N "checking for gcc 3 or later... $ECHO_C" >&6 | |
11950 | if test "${wx_cv_gcc3+set}" = set; then | |
11951 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11952 | else | |
11953 | ||
11954 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 11955 | #line $LINENO "configure" |
73d617c9 MB |
11956 | /* confdefs.h. */ |
11957 | _ACEOF | |
11958 | cat confdefs.h >>conftest.$ac_ext | |
11959 | cat >>conftest.$ac_ext <<_ACEOF | |
11960 | /* end confdefs.h. */ | |
3527f29c | 11961 | |
73d617c9 MB |
11962 | int |
11963 | main () | |
11964 | { | |
11965 | ||
11966 | #if (__GNUC__ < 3) | |
11967 | #error old gcc | |
11968 | #endif | |
11969 | ||
11970 | ; | |
11971 | return 0; | |
11972 | } | |
11973 | _ACEOF | |
11974 | rm -f conftest.$ac_objext | |
11975 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 11976 | (eval $ac_compile) 2>&5 |
73d617c9 MB |
11977 | ac_status=$? |
11978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11979 | (exit $ac_status); } && | |
789c5f4a | 11980 | { ac_try='test -s conftest.$ac_objext' |
73d617c9 MB |
11981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11982 | (eval $ac_try) 2>&5 | |
11983 | ac_status=$? | |
11984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11985 | (exit $ac_status); }; }; then | |
11986 | ||
11987 | wx_cv_gcc3=yes | |
11988 | ||
11989 | else | |
11990 | echo "$as_me: failed program was:" >&5 | |
11991 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11992 | ||
11993 | ||
11994 | wx_cv_gcc3=no | |
11995 | ||
11996 | ||
11997 | fi | |
789c5f4a | 11998 | rm -f conftest.$ac_objext conftest.$ac_ext |
73d617c9 MB |
11999 | |
12000 | fi | |
12001 | echo "$as_me:$LINENO: result: $wx_cv_gcc3" >&5 | |
12002 | echo "${ECHO_T}$wx_cv_gcc3" >&6 | |
12003 | if test "$wx_cv_gcc3" = "no"; then | |
12004 | LIBS="$LIBS -lstdcpp" | |
12005 | else | |
12006 | LIBS="$LIBS -lstdcxx" | |
12007 | fi | |
2b5f62a0 VZ |
12008 | ;; |
12009 | esac | |
12010 | ||
a0b9e27f | 12011 | |
1c2d1459 VZ |
12012 | |
12013 | ||
12014 | ac_ext=cc | |
12015 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12016 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12017 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12018 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12019 | ||
12020 | ||
12021 | ||
12022 | echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5 | |
12023 | echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6 | |
12024 | if test "${ac_cv_string_strcasecmp+set}" = set; then | |
01aa5863 VS |
12025 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12026 | else | |
1c2d1459 VZ |
12027 | |
12028 | cat >conftest.$ac_ext <<_ACEOF | |
12029 | #line $LINENO "configure" | |
12030 | /* confdefs.h. */ | |
12031 | _ACEOF | |
12032 | cat confdefs.h >>conftest.$ac_ext | |
12033 | cat >>conftest.$ac_ext <<_ACEOF | |
12034 | /* end confdefs.h. */ | |
12035 | ||
12036 | #include <string.h> | |
12037 | ||
12038 | int | |
12039 | main () | |
12040 | { | |
12041 | ||
12042 | strcasecmp("foo", "bar"); | |
12043 | ||
12044 | ; | |
12045 | return 0; | |
12046 | } | |
12047 | _ACEOF | |
12048 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12049 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12050 | (eval $ac_link) 2>&5 | |
12051 | ac_status=$? | |
12052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12053 | (exit $ac_status); } && | |
12054 | { ac_try='test -s conftest$ac_exeext' | |
12055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12056 | (eval $ac_try) 2>&5 | |
12057 | ac_status=$? | |
12058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12059 | (exit $ac_status); }; }; then | |
12060 | ac_cv_string_strcasecmp=yes | |
12061 | else | |
12062 | echo "$as_me: failed program was:" >&5 | |
12063 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12064 | ||
12065 | ac_cv_string_strcasecmp=no | |
12066 | ||
12067 | fi | |
12068 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
12069 | ||
12070 | fi | |
12071 | echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5 | |
12072 | echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6 | |
12073 | ||
12074 | if test x"$ac_cv_string_strcasecmp" = "xyes"; then | |
12075 | cat >>confdefs.h <<\_ACEOF | |
12076 | #define HAVE_STRCASECMP_IN_STRING_H 1 | |
12077 | _ACEOF | |
12078 | ||
12079 | else | |
12080 | echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5 | |
12081 | echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6 | |
12082 | if test "${ac_cv_strings_strcasecmp+set}" = set; then | |
12083 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12084 | else | |
12085 | ||
12086 | cat >conftest.$ac_ext <<_ACEOF | |
12087 | #line $LINENO "configure" | |
12088 | /* confdefs.h. */ | |
12089 | _ACEOF | |
12090 | cat confdefs.h >>conftest.$ac_ext | |
12091 | cat >>conftest.$ac_ext <<_ACEOF | |
12092 | /* end confdefs.h. */ | |
12093 | ||
12094 | #include <strings.h> | |
12095 | ||
12096 | int | |
12097 | main () | |
12098 | { | |
12099 | ||
12100 | strcasecmp("foo", "bar"); | |
12101 | ||
12102 | ; | |
12103 | return 0; | |
12104 | } | |
12105 | _ACEOF | |
12106 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12107 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12108 | (eval $ac_link) 2>&5 | |
12109 | ac_status=$? | |
12110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12111 | (exit $ac_status); } && | |
12112 | { ac_try='test -s conftest$ac_exeext' | |
12113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12114 | (eval $ac_try) 2>&5 | |
12115 | ac_status=$? | |
12116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12117 | (exit $ac_status); }; }; then | |
12118 | ac_cv_strings_strcasecmp=yes | |
12119 | else | |
12120 | echo "$as_me: failed program was:" >&5 | |
12121 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12122 | ||
12123 | ac_cv_strings_strcasecmp=no | |
12124 | ||
12125 | fi | |
12126 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
12127 | ||
01aa5863 | 12128 | fi |
1c2d1459 VZ |
12129 | echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5 |
12130 | echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6 | |
12131 | ||
12132 | if test x"$ac_cv_string_strcasecmp" = "xyes"; then | |
12133 | cat >>confdefs.h <<\_ACEOF | |
12134 | #define HAVE_STRCASECMP_IN_STRINGS_H 1 | |
12135 | _ACEOF | |
12136 | ||
01aa5863 | 12137 | else |
1c2d1459 VZ |
12138 | { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5 |
12139 | echo "$as_me: error: No case-insensitive string comparison function found." >&2;} | |
12140 | { (exit 1); exit 1; }; } | |
01aa5863 VS |
12141 | fi |
12142 | fi | |
1c2d1459 VZ |
12143 | |
12144 | ac_ext=c | |
12145 | ac_cpp='$CPP $CPPFLAGS' | |
12146 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12147 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12148 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12149 | ||
12150 | ||
01aa5863 | 12151 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
e6cc62c6 VS |
12152 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
12153 | if test "${ac_cv_header_stdc+set}" = set; then | |
12154 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12155 | else | |
12156 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 12157 | #line $LINENO "configure" |
e6cc62c6 VS |
12158 | /* confdefs.h. */ |
12159 | _ACEOF | |
12160 | cat confdefs.h >>conftest.$ac_ext | |
12161 | cat >>conftest.$ac_ext <<_ACEOF | |
12162 | /* end confdefs.h. */ | |
12163 | #include <stdlib.h> | |
12164 | #include <stdarg.h> | |
12165 | #include <string.h> | |
12166 | #include <float.h> | |
247f5006 | 12167 | |
e6cc62c6 VS |
12168 | int |
12169 | main () | |
12170 | { | |
90dd450c | 12171 | |
e6cc62c6 VS |
12172 | ; |
12173 | return 0; | |
12174 | } | |
12175 | _ACEOF | |
12176 | rm -f conftest.$ac_objext | |
12177 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 12178 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
12179 | ac_status=$? |
12180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12181 | (exit $ac_status); } && | |
789c5f4a | 12182 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
12183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12184 | (eval $ac_try) 2>&5 | |
12185 | ac_status=$? | |
12186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12187 | (exit $ac_status); }; }; then | |
12188 | ac_cv_header_stdc=yes | |
8284b0c5 | 12189 | else |
e6cc62c6 VS |
12190 | echo "$as_me: failed program was:" >&5 |
12191 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12192 | ||
12193 | ac_cv_header_stdc=no | |
21d1c967 | 12194 | fi |
789c5f4a | 12195 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 12196 | |
e6cc62c6 VS |
12197 | if test $ac_cv_header_stdc = yes; then |
12198 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
12199 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 12200 | #line $LINENO "configure" |
e6cc62c6 VS |
12201 | /* confdefs.h. */ |
12202 | _ACEOF | |
12203 | cat confdefs.h >>conftest.$ac_ext | |
12204 | cat >>conftest.$ac_ext <<_ACEOF | |
12205 | /* end confdefs.h. */ | |
12206 | #include <string.h> | |
12207 | ||
12208 | _ACEOF | |
12209 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12210 | $EGREP "memchr" >/dev/null 2>&1; then | |
12211 | : | |
12212 | else | |
12213 | ac_cv_header_stdc=no | |
3a922bb4 | 12214 | fi |
a0b9e27f | 12215 | rm -f conftest* |
e6cc62c6 | 12216 | |
90dd450c | 12217 | fi |
e6cc62c6 VS |
12218 | |
12219 | if test $ac_cv_header_stdc = yes; then | |
12220 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
12221 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 12222 | #line $LINENO "configure" |
e6cc62c6 VS |
12223 | /* confdefs.h. */ |
12224 | _ACEOF | |
12225 | cat confdefs.h >>conftest.$ac_ext | |
12226 | cat >>conftest.$ac_ext <<_ACEOF | |
12227 | /* end confdefs.h. */ | |
12228 | #include <stdlib.h> | |
12229 | ||
12230 | _ACEOF | |
12231 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12232 | $EGREP "free" >/dev/null 2>&1; then | |
12233 | : | |
a0b9e27f | 12234 | else |
e6cc62c6 | 12235 | ac_cv_header_stdc=no |
21d1c967 | 12236 | fi |
e6cc62c6 | 12237 | rm -f conftest* |
247f5006 VZ |
12238 | |
12239 | fi | |
e6cc62c6 VS |
12240 | |
12241 | if test $ac_cv_header_stdc = yes; then | |
12242 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
12243 | if test "$cross_compiling" = yes; then | |
12244 | : | |
12245 | else | |
12246 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 12247 | #line $LINENO "configure" |
e6cc62c6 VS |
12248 | /* confdefs.h. */ |
12249 | _ACEOF | |
12250 | cat confdefs.h >>conftest.$ac_ext | |
12251 | cat >>conftest.$ac_ext <<_ACEOF | |
12252 | /* end confdefs.h. */ | |
12253 | #include <ctype.h> | |
12254 | #if ((' ' & 0x0FF) == 0x020) | |
12255 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
12256 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
12257 | #else | |
12258 | # define ISLOWER(c) \ | |
789c5f4a VZ |
12259 | (('a' <= (c) && (c) <= 'i') \ |
12260 | || ('j' <= (c) && (c) <= 'r') \ | |
12261 | || ('s' <= (c) && (c) <= 'z')) | |
e6cc62c6 VS |
12262 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
12263 | #endif | |
12264 | ||
12265 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
12266 | int | |
12267 | main () | |
12268 | { | |
12269 | int i; | |
12270 | for (i = 0; i < 256; i++) | |
12271 | if (XOR (islower (i), ISLOWER (i)) | |
789c5f4a | 12272 | || toupper (i) != TOUPPER (i)) |
e6cc62c6 VS |
12273 | exit(2); |
12274 | exit (0); | |
12275 | } | |
12276 | _ACEOF | |
12277 | rm -f conftest$ac_exeext | |
12278 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12279 | (eval $ac_link) 2>&5 | |
12280 | ac_status=$? | |
12281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12282 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
12283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12284 | (eval $ac_try) 2>&5 | |
12285 | ac_status=$? | |
12286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12287 | (exit $ac_status); }; }; then | |
12288 | : | |
a0b9e27f | 12289 | else |
e6cc62c6 VS |
12290 | echo "$as_me: program exited with status $ac_status" >&5 |
12291 | echo "$as_me: failed program was:" >&5 | |
12292 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12293 | ||
12294 | ( exit $ac_status ) | |
12295 | ac_cv_header_stdc=no | |
12296 | fi | |
789c5f4a | 12297 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
12298 | fi |
12299 | fi | |
12300 | fi | |
12301 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
12302 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
12303 | if test $ac_cv_header_stdc = yes; then | |
12304 | ||
12305 | cat >>confdefs.h <<\_ACEOF | |
12306 | #define STDC_HEADERS 1 | |
12307 | _ACEOF | |
12308 | ||
a0b9e27f | 12309 | fi |
e6cc62c6 VS |
12310 | |
12311 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
12312 | ||
12313 | ||
12314 | ||
12315 | ||
12316 | ||
12317 | ||
12318 | ||
12319 | ||
12320 | ||
12321 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
789c5f4a | 12322 | inttypes.h stdint.h unistd.h |
e6cc62c6 VS |
12323 | do |
12324 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12325 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12326 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12327 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12328 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12329 | else | |
12330 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 12331 | #line $LINENO "configure" |
e6cc62c6 VS |
12332 | /* confdefs.h. */ |
12333 | _ACEOF | |
12334 | cat confdefs.h >>conftest.$ac_ext | |
12335 | cat >>conftest.$ac_ext <<_ACEOF | |
12336 | /* end confdefs.h. */ | |
12337 | $ac_includes_default | |
12338 | ||
12339 | #include <$ac_header> | |
12340 | _ACEOF | |
12341 | rm -f conftest.$ac_objext | |
12342 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 12343 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
12344 | ac_status=$? |
12345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12346 | (exit $ac_status); } && | |
789c5f4a | 12347 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
12348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12349 | (eval $ac_try) 2>&5 | |
12350 | ac_status=$? | |
12351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12352 | (exit $ac_status); }; }; then | |
12353 | eval "$as_ac_Header=yes" | |
12354 | else | |
12355 | echo "$as_me: failed program was:" >&5 | |
12356 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12357 | ||
12358 | eval "$as_ac_Header=no" | |
12359 | fi | |
789c5f4a | 12360 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
12361 | fi |
12362 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12363 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12364 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12365 | cat >>confdefs.h <<_ACEOF | |
12366 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12367 | _ACEOF | |
12368 | ||
12369 | fi | |
12370 | ||
a0b9e27f | 12371 | done |
90dd450c | 12372 | |
e6cc62c6 VS |
12373 | |
12374 | ||
e6cc62c6 VS |
12375 | for ac_header in stdlib.h |
12376 | do | |
12377 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12378 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12379 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12380 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12381 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12382 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12383 | fi | |
12384 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12385 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12386 | else | |
12387 | # Is the header compilable? | |
12388 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12389 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12390 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 12391 | #line $LINENO "configure" |
e6cc62c6 VS |
12392 | /* confdefs.h. */ |
12393 | _ACEOF | |
12394 | cat confdefs.h >>conftest.$ac_ext | |
12395 | cat >>conftest.$ac_ext <<_ACEOF | |
12396 | /* end confdefs.h. */ | |
12397 | $ac_includes_default | |
12398 | #include <$ac_header> | |
12399 | _ACEOF | |
12400 | rm -f conftest.$ac_objext | |
12401 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 12402 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
12403 | ac_status=$? |
12404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12405 | (exit $ac_status); } && | |
789c5f4a | 12406 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
12407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12408 | (eval $ac_try) 2>&5 | |
12409 | ac_status=$? | |
12410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12411 | (exit $ac_status); }; }; then | |
12412 | ac_header_compiler=yes | |
12413 | else | |
12414 | echo "$as_me: failed program was:" >&5 | |
12415 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12416 | ||
12417 | ac_header_compiler=no | |
12418 | fi | |
789c5f4a | 12419 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
12420 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12421 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12422 | ||
12423 | # Is the header present? | |
12424 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12425 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12426 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 12427 | #line $LINENO "configure" |
e6cc62c6 VS |
12428 | /* confdefs.h. */ |
12429 | _ACEOF | |
12430 | cat confdefs.h >>conftest.$ac_ext | |
12431 | cat >>conftest.$ac_ext <<_ACEOF | |
12432 | /* end confdefs.h. */ | |
12433 | #include <$ac_header> | |
12434 | _ACEOF | |
12435 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12436 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12437 | ac_status=$? | |
12438 | grep -v '^ *+' conftest.er1 >conftest.err | |
12439 | rm -f conftest.er1 | |
12440 | cat conftest.err >&5 | |
12441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12442 | (exit $ac_status); } >/dev/null; then | |
12443 | if test -s conftest.err; then | |
12444 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12445 | else | |
12446 | ac_cpp_err= | |
12447 | fi | |
12448 | else | |
12449 | ac_cpp_err=yes | |
12450 | fi | |
12451 | if test -z "$ac_cpp_err"; then | |
12452 | ac_header_preproc=yes | |
12453 | else | |
12454 | echo "$as_me: failed program was:" >&5 | |
12455 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12456 | ||
12457 | ac_header_preproc=no | |
12458 | fi | |
12459 | rm -f conftest.err conftest.$ac_ext | |
12460 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12461 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12462 | ||
12463 | # So? What about this header? | |
789c5f4a VZ |
12464 | case $ac_header_compiler:$ac_header_preproc in |
12465 | yes:no ) | |
e6cc62c6 VS |
12466 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
12467 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
789c5f4a VZ |
12468 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
12469 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12470 | ( | |
12471 | cat <<\_ASBOX | |
12472 | ## ------------------------------------ ## | |
12473 | ## Report this to bug-autoconf@gnu.org. ## | |
12474 | ## ------------------------------------ ## | |
12475 | _ASBOX | |
12476 | ) | | |
12477 | sed "s/^/$as_me: WARNING: /" >&2 | |
e6cc62c6 | 12478 | ;; |
789c5f4a | 12479 | no:yes ) |
e6cc62c6 VS |
12480 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
12481 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
789c5f4a VZ |
12482 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
12483 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
e6cc62c6 VS |
12484 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
12485 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12486 | ( | |
12487 | cat <<\_ASBOX | |
789c5f4a VZ |
12488 | ## ------------------------------------ ## |
12489 | ## Report this to bug-autoconf@gnu.org. ## | |
12490 | ## ------------------------------------ ## | |
e6cc62c6 VS |
12491 | _ASBOX |
12492 | ) | | |
12493 | sed "s/^/$as_me: WARNING: /" >&2 | |
12494 | ;; | |
12495 | esac | |
12496 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12497 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12498 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12499 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 12500 | else |
789c5f4a | 12501 | eval "$as_ac_Header=$ac_header_preproc" |
e6cc62c6 VS |
12502 | fi |
12503 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12504 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12505 | ||
21d1c967 | 12506 | fi |
e6cc62c6 VS |
12507 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12508 | cat >>confdefs.h <<_ACEOF | |
12509 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12510 | _ACEOF | |
12511 | ||
12512 | fi | |
12513 | ||
21d1c967 | 12514 | done |
4f14bcd8 | 12515 | |
5c6fa7d2 | 12516 | |
e6cc62c6 | 12517 | for ac_header in malloc.h |
21d1c967 | 12518 | do |
e6cc62c6 VS |
12519 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12520 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12521 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12522 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12523 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12524 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12525 | fi | |
12526 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12527 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12528 | else | |
12529 | # Is the header compilable? | |
12530 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12531 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12532 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 12533 | #line $LINENO "configure" |
e6cc62c6 VS |
12534 | /* confdefs.h. */ |
12535 | _ACEOF | |
12536 | cat confdefs.h >>conftest.$ac_ext | |
12537 | cat >>conftest.$ac_ext <<_ACEOF | |
12538 | /* end confdefs.h. */ | |
12539 | $ac_includes_default | |
12540 | #include <$ac_header> | |
12541 | _ACEOF | |
12542 | rm -f conftest.$ac_objext | |
12543 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 12544 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
12545 | ac_status=$? |
12546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12547 | (exit $ac_status); } && | |
789c5f4a | 12548 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
12549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12550 | (eval $ac_try) 2>&5 | |
12551 | ac_status=$? | |
12552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12553 | (exit $ac_status); }; }; then | |
12554 | ac_header_compiler=yes | |
12555 | else | |
12556 | echo "$as_me: failed program was:" >&5 | |
12557 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12558 | ||
12559 | ac_header_compiler=no | |
12560 | fi | |
789c5f4a | 12561 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
12562 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12563 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12564 | ||
12565 | # Is the header present? | |
12566 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12567 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12568 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 12569 | #line $LINENO "configure" |
e6cc62c6 VS |
12570 | /* confdefs.h. */ |
12571 | _ACEOF | |
12572 | cat confdefs.h >>conftest.$ac_ext | |
12573 | cat >>conftest.$ac_ext <<_ACEOF | |
12574 | /* end confdefs.h. */ | |
12575 | #include <$ac_header> | |
12576 | _ACEOF | |
12577 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12578 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12579 | ac_status=$? | |
12580 | grep -v '^ *+' conftest.er1 >conftest.err | |
12581 | rm -f conftest.er1 | |
12582 | cat conftest.err >&5 | |
12583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12584 | (exit $ac_status); } >/dev/null; then | |
12585 | if test -s conftest.err; then | |
12586 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12587 | else | |
12588 | ac_cpp_err= | |
12589 | fi | |
12590 | else | |
12591 | ac_cpp_err=yes | |
12592 | fi | |
12593 | if test -z "$ac_cpp_err"; then | |
12594 | ac_header_preproc=yes | |
12595 | else | |
12596 | echo "$as_me: failed program was:" >&5 | |
12597 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12598 | ||
12599 | ac_header_preproc=no | |
12600 | fi | |
12601 | rm -f conftest.err conftest.$ac_ext | |
12602 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12603 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12604 | ||
12605 | # So? What about this header? | |
789c5f4a VZ |
12606 | case $ac_header_compiler:$ac_header_preproc in |
12607 | yes:no ) | |
e6cc62c6 VS |
12608 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
12609 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
789c5f4a VZ |
12610 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
12611 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12612 | ( | |
12613 | cat <<\_ASBOX | |
12614 | ## ------------------------------------ ## | |
12615 | ## Report this to bug-autoconf@gnu.org. ## | |
12616 | ## ------------------------------------ ## | |
12617 | _ASBOX | |
12618 | ) | | |
12619 | sed "s/^/$as_me: WARNING: /" >&2 | |
e6cc62c6 | 12620 | ;; |
789c5f4a | 12621 | no:yes ) |
e6cc62c6 VS |
12622 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
12623 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
789c5f4a VZ |
12624 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
12625 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
e6cc62c6 VS |
12626 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
12627 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12628 | ( | |
12629 | cat <<\_ASBOX | |
789c5f4a VZ |
12630 | ## ------------------------------------ ## |
12631 | ## Report this to bug-autoconf@gnu.org. ## | |
12632 | ## ------------------------------------ ## | |
e6cc62c6 VS |
12633 | _ASBOX |
12634 | ) | | |
12635 | sed "s/^/$as_me: WARNING: /" >&2 | |
12636 | ;; | |
12637 | esac | |
12638 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12639 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12640 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12641 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12642 | else | |
789c5f4a | 12643 | eval "$as_ac_Header=$ac_header_preproc" |
d4158b5d | 12644 | fi |
e6cc62c6 VS |
12645 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12646 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12647 | ||
21d1c967 | 12648 | fi |
e6cc62c6 VS |
12649 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12650 | cat >>confdefs.h <<_ACEOF | |
12651 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12652 | _ACEOF | |
12653 | ||
12654 | fi | |
12655 | ||
12656 | done | |
12657 | ||
12658 | ||
12659 | for ac_header in unistd.h | |
12660 | do | |
12661 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12662 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12663 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12664 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12665 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12666 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12667 | fi | |
12668 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12669 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12670 | else | |
12671 | # Is the header compilable? | |
12672 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12673 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12674 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 12675 | #line $LINENO "configure" |
e6cc62c6 VS |
12676 | /* confdefs.h. */ |
12677 | _ACEOF | |
12678 | cat confdefs.h >>conftest.$ac_ext | |
12679 | cat >>conftest.$ac_ext <<_ACEOF | |
12680 | /* end confdefs.h. */ | |
12681 | $ac_includes_default | |
12682 | #include <$ac_header> | |
12683 | _ACEOF | |
12684 | rm -f conftest.$ac_objext | |
12685 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 12686 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
12687 | ac_status=$? |
12688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12689 | (exit $ac_status); } && | |
789c5f4a | 12690 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
12691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12692 | (eval $ac_try) 2>&5 | |
12693 | ac_status=$? | |
12694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12695 | (exit $ac_status); }; }; then | |
12696 | ac_header_compiler=yes | |
12697 | else | |
12698 | echo "$as_me: failed program was:" >&5 | |
12699 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12700 | ||
12701 | ac_header_compiler=no | |
12702 | fi | |
789c5f4a | 12703 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
12704 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12705 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12706 | ||
12707 | # Is the header present? | |
12708 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12709 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12710 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 12711 | #line $LINENO "configure" |
e6cc62c6 VS |
12712 | /* confdefs.h. */ |
12713 | _ACEOF | |
12714 | cat confdefs.h >>conftest.$ac_ext | |
12715 | cat >>conftest.$ac_ext <<_ACEOF | |
12716 | /* end confdefs.h. */ | |
12717 | #include <$ac_header> | |
12718 | _ACEOF | |
12719 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12720 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12721 | ac_status=$? | |
12722 | grep -v '^ *+' conftest.er1 >conftest.err | |
12723 | rm -f conftest.er1 | |
12724 | cat conftest.err >&5 | |
12725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12726 | (exit $ac_status); } >/dev/null; then | |
12727 | if test -s conftest.err; then | |
12728 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12729 | else | |
12730 | ac_cpp_err= | |
12731 | fi | |
a0b9e27f | 12732 | else |
e6cc62c6 VS |
12733 | ac_cpp_err=yes |
12734 | fi | |
12735 | if test -z "$ac_cpp_err"; then | |
12736 | ac_header_preproc=yes | |
12737 | else | |
12738 | echo "$as_me: failed program was:" >&5 | |
12739 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12740 | ||
12741 | ac_header_preproc=no | |
12742 | fi | |
12743 | rm -f conftest.err conftest.$ac_ext | |
12744 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12745 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12746 | ||
12747 | # So? What about this header? | |
789c5f4a VZ |
12748 | case $ac_header_compiler:$ac_header_preproc in |
12749 | yes:no ) | |
e6cc62c6 VS |
12750 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
12751 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
789c5f4a VZ |
12752 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
12753 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12754 | ( | |
12755 | cat <<\_ASBOX | |
12756 | ## ------------------------------------ ## | |
12757 | ## Report this to bug-autoconf@gnu.org. ## | |
12758 | ## ------------------------------------ ## | |
12759 | _ASBOX | |
12760 | ) | | |
12761 | sed "s/^/$as_me: WARNING: /" >&2 | |
e6cc62c6 | 12762 | ;; |
789c5f4a | 12763 | no:yes ) |
e6cc62c6 VS |
12764 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
12765 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
789c5f4a VZ |
12766 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
12767 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
e6cc62c6 VS |
12768 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
12769 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12770 | ( | |
12771 | cat <<\_ASBOX | |
789c5f4a VZ |
12772 | ## ------------------------------------ ## |
12773 | ## Report this to bug-autoconf@gnu.org. ## | |
12774 | ## ------------------------------------ ## | |
e6cc62c6 VS |
12775 | _ASBOX |
12776 | ) | | |
12777 | sed "s/^/$as_me: WARNING: /" >&2 | |
12778 | ;; | |
12779 | esac | |
12780 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12781 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12782 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12783 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12784 | else | |
789c5f4a | 12785 | eval "$as_ac_Header=$ac_header_preproc" |
e6cc62c6 VS |
12786 | fi |
12787 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12788 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12789 | ||
12790 | fi | |
12791 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12792 | cat >>confdefs.h <<_ACEOF | |
12793 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12794 | _ACEOF | |
12795 | ||
d4158b5d | 12796 | fi |
e6cc62c6 | 12797 | |
21d1c967 | 12798 | done |
f6bcfd97 | 12799 | |
e6cc62c6 VS |
12800 | |
12801 | for ac_header in wchar.h | |
12802 | do | |
12803 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12804 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12805 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12806 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12807 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12808 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12809 | fi | |
12810 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12811 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12812 | else | |
12813 | # Is the header compilable? | |
12814 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12815 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12816 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 12817 | #line $LINENO "configure" |
e6cc62c6 VS |
12818 | /* confdefs.h. */ |
12819 | _ACEOF | |
12820 | cat confdefs.h >>conftest.$ac_ext | |
12821 | cat >>conftest.$ac_ext <<_ACEOF | |
12822 | /* end confdefs.h. */ | |
12823 | $ac_includes_default | |
12824 | #include <$ac_header> | |
12825 | _ACEOF | |
12826 | rm -f conftest.$ac_objext | |
12827 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 12828 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
12829 | ac_status=$? |
12830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12831 | (exit $ac_status); } && | |
789c5f4a | 12832 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
12833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12834 | (eval $ac_try) 2>&5 | |
12835 | ac_status=$? | |
12836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12837 | (exit $ac_status); }; }; then | |
12838 | ac_header_compiler=yes | |
12839 | else | |
12840 | echo "$as_me: failed program was:" >&5 | |
12841 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12842 | ||
12843 | ac_header_compiler=no | |
12844 | fi | |
789c5f4a | 12845 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
12846 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12847 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12848 | ||
12849 | # Is the header present? | |
12850 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12851 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12852 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 12853 | #line $LINENO "configure" |
e6cc62c6 VS |
12854 | /* confdefs.h. */ |
12855 | _ACEOF | |
12856 | cat confdefs.h >>conftest.$ac_ext | |
12857 | cat >>conftest.$ac_ext <<_ACEOF | |
12858 | /* end confdefs.h. */ | |
12859 | #include <$ac_header> | |
12860 | _ACEOF | |
12861 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12862 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12863 | ac_status=$? | |
12864 | grep -v '^ *+' conftest.er1 >conftest.err | |
12865 | rm -f conftest.er1 | |
12866 | cat conftest.err >&5 | |
12867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12868 | (exit $ac_status); } >/dev/null; then | |
12869 | if test -s conftest.err; then | |
12870 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12871 | else | |
12872 | ac_cpp_err= | |
12873 | fi | |
12874 | else | |
12875 | ac_cpp_err=yes | |
12876 | fi | |
12877 | if test -z "$ac_cpp_err"; then | |
12878 | ac_header_preproc=yes | |
12879 | else | |
12880 | echo "$as_me: failed program was:" >&5 | |
12881 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12882 | ||
12883 | ac_header_preproc=no | |
12884 | fi | |
12885 | rm -f conftest.err conftest.$ac_ext | |
12886 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12887 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12888 | ||
12889 | # So? What about this header? | |
789c5f4a VZ |
12890 | case $ac_header_compiler:$ac_header_preproc in |
12891 | yes:no ) | |
e6cc62c6 VS |
12892 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
12893 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
789c5f4a VZ |
12894 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
12895 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12896 | ( | |
12897 | cat <<\_ASBOX | |
12898 | ## ------------------------------------ ## | |
12899 | ## Report this to bug-autoconf@gnu.org. ## | |
12900 | ## ------------------------------------ ## | |
12901 | _ASBOX | |
12902 | ) | | |
12903 | sed "s/^/$as_me: WARNING: /" >&2 | |
e6cc62c6 | 12904 | ;; |
789c5f4a | 12905 | no:yes ) |
e6cc62c6 VS |
12906 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
12907 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
789c5f4a VZ |
12908 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
12909 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
e6cc62c6 VS |
12910 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
12911 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12912 | ( | |
12913 | cat <<\_ASBOX | |
789c5f4a VZ |
12914 | ## ------------------------------------ ## |
12915 | ## Report this to bug-autoconf@gnu.org. ## | |
12916 | ## ------------------------------------ ## | |
e6cc62c6 VS |
12917 | _ASBOX |
12918 | ) | | |
12919 | sed "s/^/$as_me: WARNING: /" >&2 | |
12920 | ;; | |
12921 | esac | |
12922 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12923 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12924 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12925 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12926 | else | |
789c5f4a | 12927 | eval "$as_ac_Header=$ac_header_preproc" |
e6cc62c6 VS |
12928 | fi |
12929 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12930 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12931 | ||
90dd450c | 12932 | fi |
e6cc62c6 VS |
12933 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12934 | cat >>confdefs.h <<_ACEOF | |
12935 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12936 | _ACEOF | |
12937 | ||
12938 | fi | |
12939 | ||
12940 | done | |
90dd450c | 12941 | |
e6cc62c6 VS |
12942 | |
12943 | if test "$ac_cv_header_wchar_h" != "yes"; then | |
12944 | ||
12945 | for ac_header in wcstr.h | |
21d1c967 | 12946 | do |
e6cc62c6 VS |
12947 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12948 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12949 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12950 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12951 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12952 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12953 | fi | |
12954 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12955 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12956 | else | |
12957 | # Is the header compilable? | |
12958 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12959 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12960 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 12961 | #line $LINENO "configure" |
e6cc62c6 VS |
12962 | /* confdefs.h. */ |
12963 | _ACEOF | |
12964 | cat confdefs.h >>conftest.$ac_ext | |
12965 | cat >>conftest.$ac_ext <<_ACEOF | |
12966 | /* end confdefs.h. */ | |
12967 | $ac_includes_default | |
12968 | #include <$ac_header> | |
12969 | _ACEOF | |
12970 | rm -f conftest.$ac_objext | |
12971 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 12972 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
12973 | ac_status=$? |
12974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12975 | (exit $ac_status); } && | |
789c5f4a | 12976 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
12977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12978 | (eval $ac_try) 2>&5 | |
12979 | ac_status=$? | |
12980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12981 | (exit $ac_status); }; }; then | |
12982 | ac_header_compiler=yes | |
12983 | else | |
12984 | echo "$as_me: failed program was:" >&5 | |
12985 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12986 | ||
12987 | ac_header_compiler=no | |
12988 | fi | |
789c5f4a | 12989 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
12990 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12991 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12992 | ||
12993 | # Is the header present? | |
12994 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12995 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12996 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 12997 | #line $LINENO "configure" |
e6cc62c6 VS |
12998 | /* confdefs.h. */ |
12999 | _ACEOF | |
13000 | cat confdefs.h >>conftest.$ac_ext | |
13001 | cat >>conftest.$ac_ext <<_ACEOF | |
13002 | /* end confdefs.h. */ | |
13003 | #include <$ac_header> | |
13004 | _ACEOF | |
13005 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13006 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13007 | ac_status=$? | |
13008 | grep -v '^ *+' conftest.er1 >conftest.err | |
13009 | rm -f conftest.er1 | |
13010 | cat conftest.err >&5 | |
13011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13012 | (exit $ac_status); } >/dev/null; then | |
13013 | if test -s conftest.err; then | |
13014 | ac_cpp_err=$ac_c_preproc_warn_flag | |
13015 | else | |
13016 | ac_cpp_err= | |
13017 | fi | |
13018 | else | |
13019 | ac_cpp_err=yes | |
13020 | fi | |
13021 | if test -z "$ac_cpp_err"; then | |
13022 | ac_header_preproc=yes | |
13023 | else | |
13024 | echo "$as_me: failed program was:" >&5 | |
13025 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13026 | ||
13027 | ac_header_preproc=no | |
13028 | fi | |
13029 | rm -f conftest.err conftest.$ac_ext | |
13030 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13031 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13032 | ||
13033 | # So? What about this header? | |
789c5f4a VZ |
13034 | case $ac_header_compiler:$ac_header_preproc in |
13035 | yes:no ) | |
e6cc62c6 VS |
13036 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13037 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
789c5f4a VZ |
13038 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13039 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13040 | ( | |
13041 | cat <<\_ASBOX | |
13042 | ## ------------------------------------ ## | |
13043 | ## Report this to bug-autoconf@gnu.org. ## | |
13044 | ## ------------------------------------ ## | |
13045 | _ASBOX | |
13046 | ) | | |
13047 | sed "s/^/$as_me: WARNING: /" >&2 | |
e6cc62c6 | 13048 | ;; |
789c5f4a | 13049 | no:yes ) |
e6cc62c6 VS |
13050 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13051 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
789c5f4a VZ |
13052 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13053 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
e6cc62c6 VS |
13054 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13055 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13056 | ( | |
13057 | cat <<\_ASBOX | |
789c5f4a VZ |
13058 | ## ------------------------------------ ## |
13059 | ## Report this to bug-autoconf@gnu.org. ## | |
13060 | ## ------------------------------------ ## | |
e6cc62c6 VS |
13061 | _ASBOX |
13062 | ) | | |
13063 | sed "s/^/$as_me: WARNING: /" >&2 | |
13064 | ;; | |
13065 | esac | |
13066 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13067 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13068 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13069 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13070 | else | |
789c5f4a | 13071 | eval "$as_ac_Header=$ac_header_preproc" |
3a922bb4 | 13072 | fi |
e6cc62c6 VS |
13073 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
13074 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13075 | ||
4f14bcd8 | 13076 | fi |
e6cc62c6 VS |
13077 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13078 | cat >>confdefs.h <<_ACEOF | |
13079 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13080 | _ACEOF | |
13081 | ||
13082 | fi | |
13083 | ||
13084 | done | |
13085 | ||
13086 | fi | |
13087 | ||
13088 | ||
13089 | for ac_header in fnmatch.h | |
13090 | do | |
13091 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13092 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13093 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13094 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13095 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13096 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13097 | fi | |
13098 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13099 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13100 | else | |
13101 | # Is the header compilable? | |
13102 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13103 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13104 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 13105 | #line $LINENO "configure" |
e6cc62c6 VS |
13106 | /* confdefs.h. */ |
13107 | _ACEOF | |
13108 | cat confdefs.h >>conftest.$ac_ext | |
13109 | cat >>conftest.$ac_ext <<_ACEOF | |
13110 | /* end confdefs.h. */ | |
13111 | $ac_includes_default | |
13112 | #include <$ac_header> | |
13113 | _ACEOF | |
13114 | rm -f conftest.$ac_objext | |
13115 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 13116 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
13117 | ac_status=$? |
13118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13119 | (exit $ac_status); } && | |
789c5f4a | 13120 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
13121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13122 | (eval $ac_try) 2>&5 | |
13123 | ac_status=$? | |
13124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13125 | (exit $ac_status); }; }; then | |
13126 | ac_header_compiler=yes | |
13127 | else | |
13128 | echo "$as_me: failed program was:" >&5 | |
13129 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13130 | ||
13131 | ac_header_compiler=no | |
13132 | fi | |
789c5f4a | 13133 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
13134 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13135 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13136 | ||
13137 | # Is the header present? | |
13138 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13139 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13140 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 13141 | #line $LINENO "configure" |
e6cc62c6 VS |
13142 | /* confdefs.h. */ |
13143 | _ACEOF | |
13144 | cat confdefs.h >>conftest.$ac_ext | |
13145 | cat >>conftest.$ac_ext <<_ACEOF | |
13146 | /* end confdefs.h. */ | |
13147 | #include <$ac_header> | |
13148 | _ACEOF | |
13149 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13150 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13151 | ac_status=$? | |
13152 | grep -v '^ *+' conftest.er1 >conftest.err | |
13153 | rm -f conftest.er1 | |
13154 | cat conftest.err >&5 | |
13155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13156 | (exit $ac_status); } >/dev/null; then | |
13157 | if test -s conftest.err; then | |
13158 | ac_cpp_err=$ac_c_preproc_warn_flag | |
13159 | else | |
13160 | ac_cpp_err= | |
13161 | fi | |
13162 | else | |
13163 | ac_cpp_err=yes | |
13164 | fi | |
13165 | if test -z "$ac_cpp_err"; then | |
13166 | ac_header_preproc=yes | |
13167 | else | |
13168 | echo "$as_me: failed program was:" >&5 | |
13169 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13170 | ||
13171 | ac_header_preproc=no | |
13172 | fi | |
13173 | rm -f conftest.err conftest.$ac_ext | |
13174 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13175 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13176 | ||
13177 | # So? What about this header? | |
789c5f4a VZ |
13178 | case $ac_header_compiler:$ac_header_preproc in |
13179 | yes:no ) | |
e6cc62c6 VS |
13180 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13181 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
789c5f4a VZ |
13182 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13183 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13184 | ( | |
13185 | cat <<\_ASBOX | |
13186 | ## ------------------------------------ ## | |
13187 | ## Report this to bug-autoconf@gnu.org. ## | |
13188 | ## ------------------------------------ ## | |
13189 | _ASBOX | |
13190 | ) | | |
13191 | sed "s/^/$as_me: WARNING: /" >&2 | |
e6cc62c6 | 13192 | ;; |
789c5f4a | 13193 | no:yes ) |
e6cc62c6 VS |
13194 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13195 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
789c5f4a VZ |
13196 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13197 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
e6cc62c6 VS |
13198 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13199 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13200 | ( | |
13201 | cat <<\_ASBOX | |
789c5f4a VZ |
13202 | ## ------------------------------------ ## |
13203 | ## Report this to bug-autoconf@gnu.org. ## | |
13204 | ## ------------------------------------ ## | |
e6cc62c6 VS |
13205 | _ASBOX |
13206 | ) | | |
13207 | sed "s/^/$as_me: WARNING: /" >&2 | |
13208 | ;; | |
13209 | esac | |
13210 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13211 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13212 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13213 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 13214 | else |
789c5f4a | 13215 | eval "$as_ac_Header=$ac_header_preproc" |
e6cc62c6 VS |
13216 | fi |
13217 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13218 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13219 | ||
21d1c967 | 13220 | fi |
e6cc62c6 VS |
13221 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13222 | cat >>confdefs.h <<_ACEOF | |
13223 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13224 | _ACEOF | |
13225 | ||
13226 | fi | |
13227 | ||
21d1c967 | 13228 | done |
90dd450c | 13229 | |
5c6fa7d2 | 13230 | |
a0b9e27f | 13231 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then |
e6cc62c6 VS |
13232 | |
13233 | for ac_func in fnmatch | |
21d1c967 | 13234 | do |
e6cc62c6 VS |
13235 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
13236 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13237 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
13238 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
13239 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13240 | else | |
13241 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 13242 | #line $LINENO "configure" |
e6cc62c6 VS |
13243 | /* confdefs.h. */ |
13244 | _ACEOF | |
13245 | cat confdefs.h >>conftest.$ac_ext | |
13246 | cat >>conftest.$ac_ext <<_ACEOF | |
13247 | /* end confdefs.h. */ | |
a0b9e27f | 13248 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
13249 | which can conflict with char $ac_func (); below. |
13250 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13251 | <limits.h> exists even on freestanding compilers. */ | |
13252 | #ifdef __STDC__ | |
13253 | # include <limits.h> | |
13254 | #else | |
13255 | # include <assert.h> | |
13256 | #endif | |
a0b9e27f | 13257 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
13258 | #ifdef __cplusplus |
13259 | extern "C" | |
13260 | { | |
13261 | #endif | |
a0b9e27f | 13262 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
13263 | builtin and then its argument prototype would still apply. */ |
13264 | char $ac_func (); | |
a0b9e27f MB |
13265 | /* The GNU C library defines this for functions which it implements |
13266 | to always fail with ENOSYS. Some functions are actually named | |
13267 | something starting with __ and the normal name is an alias. */ | |
13268 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13269 | choke me | |
13270 | #else | |
e6cc62c6 VS |
13271 | char (*f) () = $ac_func; |
13272 | #endif | |
13273 | #ifdef __cplusplus | |
13274 | } | |
a0b9e27f MB |
13275 | #endif |
13276 | ||
e6cc62c6 VS |
13277 | int |
13278 | main () | |
13279 | { | |
13280 | return f != $ac_func; | |
13281 | ; | |
13282 | return 0; | |
13283 | } | |
13284 | _ACEOF | |
13285 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13286 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 13287 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
13288 | ac_status=$? |
13289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13290 | (exit $ac_status); } && | |
789c5f4a | 13291 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
13292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13293 | (eval $ac_try) 2>&5 | |
13294 | ac_status=$? | |
13295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13296 | (exit $ac_status); }; }; then | |
13297 | eval "$as_ac_var=yes" | |
13298 | else | |
13299 | echo "$as_me: failed program was:" >&5 | |
13300 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13301 | ||
13302 | eval "$as_ac_var=no" | |
13303 | fi | |
789c5f4a | 13304 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
13305 | fi |
13306 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
13307 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
13308 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
13309 | cat >>confdefs.h <<_ACEOF | |
13310 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13311 | _ACEOF | |
32832908 | 13312 | |
21d1c967 GD |
13313 | fi |
13314 | done | |
90dd450c | 13315 | |
a0b9e27f | 13316 | fi |
90dd450c | 13317 | |
e6cc62c6 VS |
13318 | |
13319 | for ac_header in langinfo.h | |
21d1c967 | 13320 | do |
e6cc62c6 VS |
13321 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
13322 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13323 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13324 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13325 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13326 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13327 | fi | |
13328 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13329 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13330 | else | |
13331 | # Is the header compilable? | |
13332 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13333 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13334 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 13335 | #line $LINENO "configure" |
e6cc62c6 VS |
13336 | /* confdefs.h. */ |
13337 | _ACEOF | |
13338 | cat confdefs.h >>conftest.$ac_ext | |
13339 | cat >>conftest.$ac_ext <<_ACEOF | |
13340 | /* end confdefs.h. */ | |
13341 | $ac_includes_default | |
13342 | #include <$ac_header> | |
13343 | _ACEOF | |
13344 | rm -f conftest.$ac_objext | |
13345 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 13346 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
13347 | ac_status=$? |
13348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13349 | (exit $ac_status); } && | |
789c5f4a | 13350 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
13351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13352 | (eval $ac_try) 2>&5 | |
13353 | ac_status=$? | |
13354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13355 | (exit $ac_status); }; }; then | |
13356 | ac_header_compiler=yes | |
13357 | else | |
13358 | echo "$as_me: failed program was:" >&5 | |
13359 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13360 | ||
13361 | ac_header_compiler=no | |
13362 | fi | |
789c5f4a | 13363 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
13364 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13365 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13366 | ||
13367 | # Is the header present? | |
13368 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13369 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13370 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 13371 | #line $LINENO "configure" |
e6cc62c6 VS |
13372 | /* confdefs.h. */ |
13373 | _ACEOF | |
13374 | cat confdefs.h >>conftest.$ac_ext | |
13375 | cat >>conftest.$ac_ext <<_ACEOF | |
13376 | /* end confdefs.h. */ | |
13377 | #include <$ac_header> | |
13378 | _ACEOF | |
13379 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13380 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13381 | ac_status=$? | |
13382 | grep -v '^ *+' conftest.er1 >conftest.err | |
13383 | rm -f conftest.er1 | |
13384 | cat conftest.err >&5 | |
13385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13386 | (exit $ac_status); } >/dev/null; then | |
13387 | if test -s conftest.err; then | |
13388 | ac_cpp_err=$ac_c_preproc_warn_flag | |
13389 | else | |
13390 | ac_cpp_err= | |
13391 | fi | |
13392 | else | |
13393 | ac_cpp_err=yes | |
13394 | fi | |
13395 | if test -z "$ac_cpp_err"; then | |
13396 | ac_header_preproc=yes | |
13397 | else | |
13398 | echo "$as_me: failed program was:" >&5 | |
13399 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13400 | ||
13401 | ac_header_preproc=no | |
13402 | fi | |
13403 | rm -f conftest.err conftest.$ac_ext | |
13404 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13405 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13406 | ||
13407 | # So? What about this header? | |
789c5f4a VZ |
13408 | case $ac_header_compiler:$ac_header_preproc in |
13409 | yes:no ) | |
e6cc62c6 VS |
13410 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13411 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
789c5f4a VZ |
13412 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13413 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13414 | ( | |
13415 | cat <<\_ASBOX | |
13416 | ## ------------------------------------ ## | |
13417 | ## Report this to bug-autoconf@gnu.org. ## | |
13418 | ## ------------------------------------ ## | |
13419 | _ASBOX | |
13420 | ) | | |
13421 | sed "s/^/$as_me: WARNING: /" >&2 | |
e6cc62c6 | 13422 | ;; |
789c5f4a | 13423 | no:yes ) |
e6cc62c6 VS |
13424 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13425 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
789c5f4a VZ |
13426 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13427 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
e6cc62c6 VS |
13428 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13429 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13430 | ( | |
13431 | cat <<\_ASBOX | |
789c5f4a VZ |
13432 | ## ------------------------------------ ## |
13433 | ## Report this to bug-autoconf@gnu.org. ## | |
13434 | ## ------------------------------------ ## | |
e6cc62c6 VS |
13435 | _ASBOX |
13436 | ) | | |
13437 | sed "s/^/$as_me: WARNING: /" >&2 | |
13438 | ;; | |
13439 | esac | |
13440 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13441 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13442 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13443 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13444 | else | |
789c5f4a | 13445 | eval "$as_ac_Header=$ac_header_preproc" |
90dd450c | 13446 | fi |
e6cc62c6 VS |
13447 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
13448 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13449 | ||
4f14bcd8 | 13450 | fi |
e6cc62c6 VS |
13451 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13452 | cat >>confdefs.h <<_ACEOF | |
13453 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13454 | _ACEOF | |
13455 | ||
21d1c967 | 13456 | fi |
e6cc62c6 | 13457 | |
21d1c967 | 13458 | done |
3a922bb4 | 13459 | |
8284b0c5 | 13460 | |
4f5a7f74 VZ |
13461 | case "${host}" in |
13462 | *-pc-os2_emx | *-pc-os2-emx ) | |
13463 | if test $ac_cv_header_langinfo_h = "yes"; then | |
13464 | LIBS="$LIBS -lintl" | |
13465 | fi | |
13466 | ;; | |
13467 | esac | |
1542ea39 | 13468 | |
a0b9e27f | 13469 | if test "$wxUSE_GUI" = "yes"; then |
73d617c9 | 13470 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then |
e6cc62c6 | 13471 | |
eb69fda5 | 13472 | for ac_header in X11/Xlib.h |
21d1c967 | 13473 | do |
e6cc62c6 VS |
13474 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
13475 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13476 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13477 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13478 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13479 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13480 | fi | |
13481 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13482 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13483 | else | |
13484 | # Is the header compilable? | |
13485 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13486 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13487 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 13488 | #line $LINENO "configure" |
e6cc62c6 VS |
13489 | /* confdefs.h. */ |
13490 | _ACEOF | |
13491 | cat confdefs.h >>conftest.$ac_ext | |
13492 | cat >>conftest.$ac_ext <<_ACEOF | |
13493 | /* end confdefs.h. */ | |
13494 | $ac_includes_default | |
13495 | #include <$ac_header> | |
13496 | _ACEOF | |
13497 | rm -f conftest.$ac_objext | |
13498 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 13499 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
13500 | ac_status=$? |
13501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13502 | (exit $ac_status); } && | |
789c5f4a | 13503 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
13504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13505 | (eval $ac_try) 2>&5 | |
13506 | ac_status=$? | |
13507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13508 | (exit $ac_status); }; }; then | |
13509 | ac_header_compiler=yes | |
13510 | else | |
13511 | echo "$as_me: failed program was:" >&5 | |
13512 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13513 | ||
13514 | ac_header_compiler=no | |
13515 | fi | |
789c5f4a | 13516 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
13517 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13518 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13519 | ||
13520 | # Is the header present? | |
13521 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13522 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13523 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 13524 | #line $LINENO "configure" |
e6cc62c6 VS |
13525 | /* confdefs.h. */ |
13526 | _ACEOF | |
13527 | cat confdefs.h >>conftest.$ac_ext | |
13528 | cat >>conftest.$ac_ext <<_ACEOF | |
13529 | /* end confdefs.h. */ | |
13530 | #include <$ac_header> | |
13531 | _ACEOF | |
13532 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13533 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13534 | ac_status=$? | |
13535 | grep -v '^ *+' conftest.er1 >conftest.err | |
13536 | rm -f conftest.er1 | |
13537 | cat conftest.err >&5 | |
13538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13539 | (exit $ac_status); } >/dev/null; then | |
13540 | if test -s conftest.err; then | |
13541 | ac_cpp_err=$ac_c_preproc_warn_flag | |
13542 | else | |
13543 | ac_cpp_err= | |
13544 | fi | |
13545 | else | |
13546 | ac_cpp_err=yes | |
13547 | fi | |
13548 | if test -z "$ac_cpp_err"; then | |
13549 | ac_header_preproc=yes | |
13550 | else | |
13551 | echo "$as_me: failed program was:" >&5 | |
13552 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13553 | ||
13554 | ac_header_preproc=no | |
13555 | fi | |
13556 | rm -f conftest.err conftest.$ac_ext | |
13557 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13558 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13559 | ||
13560 | # So? What about this header? | |
789c5f4a VZ |
13561 | case $ac_header_compiler:$ac_header_preproc in |
13562 | yes:no ) | |
e6cc62c6 VS |
13563 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13564 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
789c5f4a VZ |
13565 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13566 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13567 | ( | |
13568 | cat <<\_ASBOX | |
13569 | ## ------------------------------------ ## | |
13570 | ## Report this to bug-autoconf@gnu.org. ## | |
13571 | ## ------------------------------------ ## | |
13572 | _ASBOX | |
13573 | ) | | |
13574 | sed "s/^/$as_me: WARNING: /" >&2 | |
e6cc62c6 | 13575 | ;; |
789c5f4a | 13576 | no:yes ) |
e6cc62c6 VS |
13577 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13578 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
789c5f4a VZ |
13579 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13580 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
e6cc62c6 VS |
13581 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13582 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13583 | ( | |
13584 | cat <<\_ASBOX | |
789c5f4a VZ |
13585 | ## ------------------------------------ ## |
13586 | ## Report this to bug-autoconf@gnu.org. ## | |
13587 | ## ------------------------------------ ## | |
e6cc62c6 VS |
13588 | _ASBOX |
13589 | ) | | |
13590 | sed "s/^/$as_me: WARNING: /" >&2 | |
13591 | ;; | |
13592 | esac | |
13593 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13594 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13595 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13596 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13597 | else | |
789c5f4a | 13598 | eval "$as_ac_Header=$ac_header_preproc" |
3a922bb4 | 13599 | fi |
e6cc62c6 VS |
13600 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
13601 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13602 | ||
90dd450c | 13603 | fi |
e6cc62c6 VS |
13604 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13605 | cat >>confdefs.h <<_ACEOF | |
13606 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13607 | _ACEOF | |
13608 | ||
247f5006 | 13609 | fi |
e6cc62c6 | 13610 | |
eb69fda5 VS |
13611 | done |
13612 | ||
13613 | ||
13614 | for ac_header in X11/XKBlib.h | |
13615 | do | |
13616 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13617 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13618 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13619 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13620 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13621 | else | |
13622 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 13623 | #line $LINENO "configure" |
eb69fda5 VS |
13624 | /* confdefs.h. */ |
13625 | _ACEOF | |
13626 | cat confdefs.h >>conftest.$ac_ext | |
13627 | cat >>conftest.$ac_ext <<_ACEOF | |
13628 | /* end confdefs.h. */ | |
13629 | ||
13630 | #if HAVE_X11_XLIB_H | |
13631 | #include <X11/Xlib.h> | |
13632 | #endif | |
13633 | ||
13634 | ||
13635 | #include <$ac_header> | |
13636 | _ACEOF | |
13637 | rm -f conftest.$ac_objext | |
13638 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 13639 | (eval $ac_compile) 2>&5 |
eb69fda5 VS |
13640 | ac_status=$? |
13641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13642 | (exit $ac_status); } && | |
789c5f4a | 13643 | { ac_try='test -s conftest.$ac_objext' |
eb69fda5 VS |
13644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13645 | (eval $ac_try) 2>&5 | |
13646 | ac_status=$? | |
13647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13648 | (exit $ac_status); }; }; then | |
13649 | eval "$as_ac_Header=yes" | |
13650 | else | |
13651 | echo "$as_me: failed program was:" >&5 | |
13652 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13653 | ||
13654 | eval "$as_ac_Header=no" | |
13655 | fi | |
789c5f4a | 13656 | rm -f conftest.$ac_objext conftest.$ac_ext |
eb69fda5 VS |
13657 | fi |
13658 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13659 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13660 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13661 | cat >>confdefs.h <<_ACEOF | |
13662 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13663 | _ACEOF | |
13664 | ||
13665 | fi | |
13666 | ||
247f5006 VZ |
13667 | done |
13668 | ||
a0b9e27f MB |
13669 | fi |
13670 | fi | |
247f5006 | 13671 | |
247f5006 | 13672 | |
e6cc62c6 VS |
13673 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
13674 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
13675 | if test "${ac_cv_c_const+set}" = set; then | |
13676 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13677 | else | |
13678 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 13679 | #line $LINENO "configure" |
e6cc62c6 VS |
13680 | /* confdefs.h. */ |
13681 | _ACEOF | |
13682 | cat confdefs.h >>conftest.$ac_ext | |
13683 | cat >>conftest.$ac_ext <<_ACEOF | |
13684 | /* end confdefs.h. */ | |
13685 | ||
13686 | int | |
13687 | main () | |
13688 | { | |
13689 | /* FIXME: Include the comments suggested by Paul. */ | |
13690 | #ifndef __cplusplus | |
13691 | /* Ultrix mips cc rejects this. */ | |
13692 | typedef int charset[2]; | |
13693 | const charset x; | |
13694 | /* SunOS 4.1.1 cc rejects this. */ | |
13695 | char const *const *ccp; | |
13696 | char **p; | |
13697 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
13698 | struct point {int x, y;}; | |
13699 | static struct point const zero = {0,0}; | |
13700 | /* AIX XL C 1.02.0.0 rejects this. | |
13701 | It does not let you subtract one const X* pointer from another in | |
13702 | an arm of an if-expression whose if-part is not a constant | |
13703 | expression */ | |
13704 | const char *g = "string"; | |
13705 | ccp = &g + (g ? g-g : 0); | |
13706 | /* HPUX 7.0 cc rejects these. */ | |
13707 | ++ccp; | |
13708 | p = (char**) ccp; | |
13709 | ccp = (char const *const *) p; | |
13710 | { /* SCO 3.2v4 cc rejects this. */ | |
13711 | char *t; | |
13712 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
13713 | ||
13714 | *t++ = 0; | |
13715 | } | |
13716 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
13717 | int x[] = {25, 17}; | |
13718 | const int *foo = &x[0]; | |
13719 | ++foo; | |
13720 | } | |
13721 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
13722 | typedef const int *iptr; | |
13723 | iptr p = 0; | |
13724 | ++p; | |
13725 | } | |
13726 | { /* AIX XL C 1.02.0.0 rejects this saying | |
13727 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
13728 | struct s { int j; const int *ap[3]; }; | |
13729 | struct s *b; b->j = 5; | |
13730 | } | |
13731 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
13732 | const int foo = 10; | |
13733 | } | |
13734 | #endif | |
13735 | ||
13736 | ; | |
13737 | return 0; | |
13738 | } | |
13739 | _ACEOF | |
13740 | rm -f conftest.$ac_objext | |
13741 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 13742 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
13743 | ac_status=$? |
13744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13745 | (exit $ac_status); } && | |
789c5f4a | 13746 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
13747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13748 | (eval $ac_try) 2>&5 | |
13749 | ac_status=$? | |
13750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13751 | (exit $ac_status); }; }; then | |
a0b9e27f | 13752 | ac_cv_c_const=yes |
247f5006 | 13753 | else |
e6cc62c6 VS |
13754 | echo "$as_me: failed program was:" >&5 |
13755 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13756 | ||
13757 | ac_cv_c_const=no | |
247f5006 | 13758 | fi |
789c5f4a | 13759 | rm -f conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 13760 | fi |
e6cc62c6 VS |
13761 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
13762 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
a0b9e27f | 13763 | if test $ac_cv_c_const = no; then |
e6cc62c6 VS |
13764 | |
13765 | cat >>confdefs.h <<\_ACEOF | |
13766 | #define const | |
13767 | _ACEOF | |
10f2d63a | 13768 | |
90dd450c | 13769 | fi |
81809c07 | 13770 | |
e6cc62c6 VS |
13771 | echo "$as_me:$LINENO: checking for inline" >&5 |
13772 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
13773 | if test "${ac_cv_c_inline+set}" = set; then | |
13774 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8168de4c | 13775 | else |
a0b9e27f MB |
13776 | ac_cv_c_inline=no |
13777 | for ac_kw in inline __inline__ __inline; do | |
e6cc62c6 | 13778 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 13779 | #line $LINENO "configure" |
e6cc62c6 VS |
13780 | /* confdefs.h. */ |
13781 | _ACEOF | |
13782 | cat confdefs.h >>conftest.$ac_ext | |
13783 | cat >>conftest.$ac_ext <<_ACEOF | |
13784 | /* end confdefs.h. */ | |
13785 | #ifndef __cplusplus | |
13786 | typedef int foo_t; | |
13787 | static $ac_kw foo_t static_foo () {return 0; } | |
13788 | $ac_kw foo_t foo () {return 0; } | |
13789 | #endif | |
a0b9e27f | 13790 | |
e6cc62c6 VS |
13791 | _ACEOF |
13792 | rm -f conftest.$ac_objext | |
13793 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 13794 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
13795 | ac_status=$? |
13796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13797 | (exit $ac_status); } && | |
789c5f4a | 13798 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
13799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13800 | (eval $ac_try) 2>&5 | |
13801 | ac_status=$? | |
13802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13803 | (exit $ac_status); }; }; then | |
a0b9e27f | 13804 | ac_cv_c_inline=$ac_kw; break |
247f5006 | 13805 | else |
e6cc62c6 VS |
13806 | echo "$as_me: failed program was:" >&5 |
13807 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13808 | ||
247f5006 | 13809 | fi |
789c5f4a | 13810 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 13811 | done |
247f5006 VZ |
13812 | |
13813 | fi | |
e6cc62c6 VS |
13814 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
13815 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
13816 | case $ac_cv_c_inline in | |
a0b9e27f | 13817 | inline | yes) ;; |
789c5f4a VZ |
13818 | no) |
13819 | cat >>confdefs.h <<\_ACEOF | |
13820 | #define inline | |
09d3439c | 13821 | _ACEOF |
789c5f4a VZ |
13822 | ;; |
13823 | *) cat >>confdefs.h <<_ACEOF | |
13824 | #define inline $ac_cv_c_inline | |
13825 | _ACEOF | |
13826 | ;; | |
a0b9e27f | 13827 | esac |
247f5006 | 13828 | |
247f5006 | 13829 | |
e6cc62c6 VS |
13830 | echo "$as_me:$LINENO: checking for char" >&5 |
13831 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
13832 | if test "${ac_cv_type_char+set}" = set; then | |
13833 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13834 | else | |
13835 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 13836 | #line $LINENO "configure" |
e6cc62c6 VS |
13837 | /* confdefs.h. */ |
13838 | _ACEOF | |
13839 | cat confdefs.h >>conftest.$ac_ext | |
13840 | cat >>conftest.$ac_ext <<_ACEOF | |
13841 | /* end confdefs.h. */ | |
13842 | $ac_includes_default | |
13843 | int | |
13844 | main () | |
13845 | { | |
13846 | if ((char *) 0) | |
13847 | return 0; | |
13848 | if (sizeof (char)) | |
13849 | return 0; | |
13850 | ; | |
13851 | return 0; | |
13852 | } | |
13853 | _ACEOF | |
13854 | rm -f conftest.$ac_objext | |
13855 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 13856 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
13857 | ac_status=$? |
13858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13859 | (exit $ac_status); } && | |
789c5f4a | 13860 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
13861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13862 | (eval $ac_try) 2>&5 | |
13863 | ac_status=$? | |
13864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13865 | (exit $ac_status); }; }; then | |
13866 | ac_cv_type_char=yes | |
13867 | else | |
13868 | echo "$as_me: failed program was:" >&5 | |
13869 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13870 | ||
13871 | ac_cv_type_char=no | |
13872 | fi | |
789c5f4a | 13873 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
13874 | fi |
13875 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
13876 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
13877 | ||
13878 | echo "$as_me:$LINENO: checking size of char" >&5 | |
13879 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
13880 | if test "${ac_cv_sizeof_char+set}" = set; then | |
13881 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13882 | else | |
13883 | if test "$ac_cv_type_char" = yes; then | |
13884 | # The cast to unsigned long works around a bug in the HP C Compiler | |
13885 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
13886 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
13887 | # This bug is HP SR number 8606223364. | |
a0b9e27f | 13888 | if test "$cross_compiling" = yes; then |
e6cc62c6 VS |
13889 | # Depending upon the size, compute the lo and hi bounds. |
13890 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 13891 | #line $LINENO "configure" |
e6cc62c6 VS |
13892 | /* confdefs.h. */ |
13893 | _ACEOF | |
13894 | cat confdefs.h >>conftest.$ac_ext | |
13895 | cat >>conftest.$ac_ext <<_ACEOF | |
13896 | /* end confdefs.h. */ | |
13897 | $ac_includes_default | |
13898 | int | |
13899 | main () | |
13900 | { | |
13901 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | |
13902 | test_array [0] = 0 | |
13903 | ||
13904 | ; | |
13905 | return 0; | |
13906 | } | |
13907 | _ACEOF | |
13908 | rm -f conftest.$ac_objext | |
13909 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 13910 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
13911 | ac_status=$? |
13912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13913 | (exit $ac_status); } && | |
789c5f4a | 13914 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
13915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13916 | (eval $ac_try) 2>&5 | |
13917 | ac_status=$? | |
13918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13919 | (exit $ac_status); }; }; then | |
13920 | ac_lo=0 ac_mid=0 | |
13921 | while :; do | |
13922 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 13923 | #line $LINENO "configure" |
e6cc62c6 VS |
13924 | /* confdefs.h. */ |
13925 | _ACEOF | |
13926 | cat confdefs.h >>conftest.$ac_ext | |
13927 | cat >>conftest.$ac_ext <<_ACEOF | |
13928 | /* end confdefs.h. */ | |
13929 | $ac_includes_default | |
13930 | int | |
13931 | main () | |
13932 | { | |
13933 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
13934 | test_array [0] = 0 | |
13935 | ||
13936 | ; | |
13937 | return 0; | |
13938 | } | |
13939 | _ACEOF | |
13940 | rm -f conftest.$ac_objext | |
13941 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 13942 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
13943 | ac_status=$? |
13944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13945 | (exit $ac_status); } && | |
789c5f4a | 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 | |
13952 | ac_hi=$ac_mid; break | |
13953 | else | |
13954 | echo "$as_me: failed program was:" >&5 | |
13955 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13956 | ||
13957 | ac_lo=`expr $ac_mid + 1` | |
789c5f4a VZ |
13958 | if test $ac_lo -le $ac_mid; then |
13959 | ac_lo= ac_hi= | |
13960 | break | |
13961 | fi | |
13962 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
e6cc62c6 | 13963 | fi |
789c5f4a | 13964 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 13965 | done |
a0b9e27f | 13966 | else |
e6cc62c6 VS |
13967 | echo "$as_me: failed program was:" >&5 |
13968 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13969 | ||
13970 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 13971 | #line $LINENO "configure" |
e6cc62c6 VS |
13972 | /* confdefs.h. */ |
13973 | _ACEOF | |
13974 | cat confdefs.h >>conftest.$ac_ext | |
13975 | cat >>conftest.$ac_ext <<_ACEOF | |
13976 | /* end confdefs.h. */ | |
13977 | $ac_includes_default | |
13978 | int | |
13979 | main () | |
13980 | { | |
13981 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
13982 | test_array [0] = 0 | |
13983 | ||
13984 | ; | |
13985 | return 0; | |
13986 | } | |
13987 | _ACEOF | |
13988 | rm -f conftest.$ac_objext | |
13989 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 13990 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
13991 | ac_status=$? |
13992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13993 | (exit $ac_status); } && | |
789c5f4a | 13994 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
13995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13996 | (eval $ac_try) 2>&5 | |
13997 | ac_status=$? | |
13998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13999 | (exit $ac_status); }; }; then | |
14000 | ac_hi=-1 ac_mid=-1 | |
14001 | while :; do | |
14002 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 14003 | #line $LINENO "configure" |
e6cc62c6 VS |
14004 | /* confdefs.h. */ |
14005 | _ACEOF | |
14006 | cat confdefs.h >>conftest.$ac_ext | |
14007 | cat >>conftest.$ac_ext <<_ACEOF | |
14008 | /* end confdefs.h. */ | |
14009 | $ac_includes_default | |
14010 | int | |
14011 | main () | |
14012 | { | |
14013 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | |
14014 | test_array [0] = 0 | |
14015 | ||
14016 | ; | |
14017 | return 0; | |
14018 | } | |
14019 | _ACEOF | |
14020 | rm -f conftest.$ac_objext | |
14021 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 14022 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
14023 | ac_status=$? |
14024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14025 | (exit $ac_status); } && | |
789c5f4a | 14026 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
14027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14028 | (eval $ac_try) 2>&5 | |
14029 | ac_status=$? | |
14030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14031 | (exit $ac_status); }; }; then | |
14032 | ac_lo=$ac_mid; break | |
14033 | else | |
14034 | echo "$as_me: failed program was:" >&5 | |
14035 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14036 | ||
14037 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
789c5f4a VZ |
14038 | if test $ac_mid -le $ac_hi; then |
14039 | ac_lo= ac_hi= | |
14040 | break | |
14041 | fi | |
14042 | ac_mid=`expr 2 '*' $ac_mid` | |
e6cc62c6 | 14043 | fi |
789c5f4a | 14044 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14045 | done |
14046 | else | |
14047 | echo "$as_me: failed program was:" >&5 | |
14048 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14049 | ||
14050 | ac_lo= ac_hi= | |
14051 | fi | |
789c5f4a | 14052 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 14053 | fi |
789c5f4a | 14054 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14055 | # Binary search between lo and hi bounds. |
14056 | while test "x$ac_lo" != "x$ac_hi"; do | |
14057 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14058 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 14059 | #line $LINENO "configure" |
e6cc62c6 VS |
14060 | /* confdefs.h. */ |
14061 | _ACEOF | |
14062 | cat confdefs.h >>conftest.$ac_ext | |
14063 | cat >>conftest.$ac_ext <<_ACEOF | |
14064 | /* end confdefs.h. */ | |
14065 | $ac_includes_default | |
14066 | int | |
14067 | main () | |
14068 | { | |
14069 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
14070 | test_array [0] = 0 | |
14071 | ||
14072 | ; | |
14073 | return 0; | |
14074 | } | |
14075 | _ACEOF | |
14076 | rm -f conftest.$ac_objext | |
14077 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 14078 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
14079 | ac_status=$? |
14080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14081 | (exit $ac_status); } && | |
789c5f4a | 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_hi=$ac_mid | |
14089 | else | |
14090 | echo "$as_me: failed program was:" >&5 | |
14091 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14092 | ||
14093 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
14094 | fi | |
789c5f4a | 14095 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14096 | done |
14097 | case $ac_lo in | |
14098 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
14099 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
14100 | See \`config.log' for more details." >&5 | |
14101 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
14102 | See \`config.log' for more details." >&2;} | |
14103 | { (exit 1); exit 1; }; } ;; | |
14104 | esac | |
14105 | else | |
14106 | if test "$cross_compiling" = yes; then | |
14107 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
14108 | See \`config.log' for more details." >&5 | |
14109 | echo "$as_me: error: cannot run test program while cross compiling | |
14110 | See \`config.log' for more details." >&2;} | |
14111 | { (exit 1); exit 1; }; } | |
14112 | else | |
14113 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 14114 | #line $LINENO "configure" |
e6cc62c6 VS |
14115 | /* confdefs.h. */ |
14116 | _ACEOF | |
14117 | cat confdefs.h >>conftest.$ac_ext | |
14118 | cat >>conftest.$ac_ext <<_ACEOF | |
14119 | /* end confdefs.h. */ | |
14120 | $ac_includes_default | |
14121 | long longval () { return (long) (sizeof (char)); } | |
14122 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
a0b9e27f | 14123 | #include <stdio.h> |
e6cc62c6 VS |
14124 | #include <stdlib.h> |
14125 | int | |
14126 | main () | |
247f5006 | 14127 | { |
e6cc62c6 VS |
14128 | |
14129 | FILE *f = fopen ("conftest.val", "w"); | |
14130 | if (! f) | |
14131 | exit (1); | |
14132 | if (((long) (sizeof (char))) < 0) | |
14133 | { | |
14134 | long i = longval (); | |
14135 | if (i != ((long) (sizeof (char)))) | |
14136 | exit (1); | |
14137 | fprintf (f, "%ld\n", i); | |
14138 | } | |
14139 | else | |
14140 | { | |
14141 | unsigned long i = ulongval (); | |
14142 | if (i != ((long) (sizeof (char)))) | |
14143 | exit (1); | |
14144 | fprintf (f, "%lu\n", i); | |
14145 | } | |
14146 | exit (ferror (f) || fclose (f) != 0); | |
14147 | ||
14148 | ; | |
14149 | return 0; | |
52127426 | 14150 | } |
e6cc62c6 VS |
14151 | _ACEOF |
14152 | rm -f conftest$ac_exeext | |
14153 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14154 | (eval $ac_link) 2>&5 | |
14155 | ac_status=$? | |
14156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14157 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14158 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14159 | (eval $ac_try) 2>&5 | |
14160 | ac_status=$? | |
14161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14162 | (exit $ac_status); }; }; then | |
14163 | ac_cv_sizeof_char=`cat conftest.val` | |
14164 | else | |
14165 | echo "$as_me: program exited with status $ac_status" >&5 | |
14166 | echo "$as_me: failed program was:" >&5 | |
14167 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14168 | ||
14169 | ( exit $ac_status ) | |
14170 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
14171 | See \`config.log' for more details." >&5 | |
14172 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
14173 | See \`config.log' for more details." >&2;} | |
14174 | { (exit 1); exit 1; }; } | |
14175 | fi | |
789c5f4a | 14176 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14177 | fi |
14178 | fi | |
14179 | rm -f conftest.val | |
247f5006 | 14180 | else |
a0b9e27f | 14181 | ac_cv_sizeof_char=0 |
247f5006 | 14182 | fi |
247f5006 | 14183 | fi |
e6cc62c6 VS |
14184 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 |
14185 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
14186 | cat >>confdefs.h <<_ACEOF | |
14187 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
14188 | _ACEOF | |
14189 | ||
14190 | ||
14191 | echo "$as_me:$LINENO: checking for short" >&5 | |
14192 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
14193 | if test "${ac_cv_type_short+set}" = set; then | |
14194 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14195 | else | |
14196 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 14197 | #line $LINENO "configure" |
e6cc62c6 VS |
14198 | /* confdefs.h. */ |
14199 | _ACEOF | |
14200 | cat confdefs.h >>conftest.$ac_ext | |
14201 | cat >>conftest.$ac_ext <<_ACEOF | |
14202 | /* end confdefs.h. */ | |
14203 | $ac_includes_default | |
14204 | int | |
14205 | main () | |
14206 | { | |
14207 | if ((short *) 0) | |
14208 | return 0; | |
14209 | if (sizeof (short)) | |
14210 | return 0; | |
14211 | ; | |
14212 | return 0; | |
14213 | } | |
14214 | _ACEOF | |
14215 | rm -f conftest.$ac_objext | |
14216 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 14217 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
14218 | ac_status=$? |
14219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14220 | (exit $ac_status); } && | |
789c5f4a | 14221 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
14222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14223 | (eval $ac_try) 2>&5 | |
14224 | ac_status=$? | |
14225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14226 | (exit $ac_status); }; }; then | |
14227 | ac_cv_type_short=yes | |
14228 | else | |
14229 | echo "$as_me: failed program was:" >&5 | |
14230 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14231 | ||
14232 | ac_cv_type_short=no | |
14233 | fi | |
789c5f4a | 14234 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14235 | fi |
14236 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
14237 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
14238 | ||
14239 | echo "$as_me:$LINENO: checking size of short" >&5 | |
14240 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
14241 | if test "${ac_cv_sizeof_short+set}" = set; then | |
14242 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14243 | else | |
14244 | if test "$ac_cv_type_short" = yes; then | |
14245 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14246 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14247 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14248 | # This bug is HP SR number 8606223364. | |
14249 | if test "$cross_compiling" = yes; then | |
14250 | # Depending upon the size, compute the lo and hi bounds. | |
14251 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 14252 | #line $LINENO "configure" |
e6cc62c6 VS |
14253 | /* confdefs.h. */ |
14254 | _ACEOF | |
14255 | cat confdefs.h >>conftest.$ac_ext | |
14256 | cat >>conftest.$ac_ext <<_ACEOF | |
14257 | /* end confdefs.h. */ | |
14258 | $ac_includes_default | |
14259 | int | |
14260 | main () | |
14261 | { | |
14262 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; | |
14263 | test_array [0] = 0 | |
247f5006 | 14264 | |
e6cc62c6 VS |
14265 | ; |
14266 | return 0; | |
14267 | } | |
14268 | _ACEOF | |
14269 | rm -f conftest.$ac_objext | |
14270 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 14271 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
14272 | ac_status=$? |
14273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14274 | (exit $ac_status); } && | |
789c5f4a | 14275 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
14276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14277 | (eval $ac_try) 2>&5 | |
14278 | ac_status=$? | |
14279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14280 | (exit $ac_status); }; }; then | |
14281 | ac_lo=0 ac_mid=0 | |
14282 | while :; do | |
14283 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 14284 | #line $LINENO "configure" |
e6cc62c6 VS |
14285 | /* confdefs.h. */ |
14286 | _ACEOF | |
14287 | cat confdefs.h >>conftest.$ac_ext | |
14288 | cat >>conftest.$ac_ext <<_ACEOF | |
14289 | /* end confdefs.h. */ | |
14290 | $ac_includes_default | |
14291 | int | |
14292 | main () | |
14293 | { | |
14294 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
14295 | test_array [0] = 0 | |
14296 | ||
14297 | ; | |
14298 | return 0; | |
14299 | } | |
14300 | _ACEOF | |
14301 | rm -f conftest.$ac_objext | |
14302 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 14303 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
14304 | ac_status=$? |
14305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14306 | (exit $ac_status); } && | |
789c5f4a | 14307 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
14308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14309 | (eval $ac_try) 2>&5 | |
14310 | ac_status=$? | |
14311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14312 | (exit $ac_status); }; }; then | |
14313 | ac_hi=$ac_mid; break | |
14314 | else | |
14315 | echo "$as_me: failed program was:" >&5 | |
14316 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14317 | ||
14318 | ac_lo=`expr $ac_mid + 1` | |
789c5f4a VZ |
14319 | if test $ac_lo -le $ac_mid; then |
14320 | ac_lo= ac_hi= | |
14321 | break | |
14322 | fi | |
14323 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
247f5006 | 14324 | fi |
789c5f4a | 14325 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14326 | done |
14327 | else | |
14328 | echo "$as_me: failed program was:" >&5 | |
14329 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14330 | ||
14331 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 14332 | #line $LINENO "configure" |
e6cc62c6 VS |
14333 | /* confdefs.h. */ |
14334 | _ACEOF | |
14335 | cat confdefs.h >>conftest.$ac_ext | |
14336 | cat >>conftest.$ac_ext <<_ACEOF | |
14337 | /* end confdefs.h. */ | |
14338 | $ac_includes_default | |
14339 | int | |
14340 | main () | |
14341 | { | |
14342 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
14343 | test_array [0] = 0 | |
247f5006 | 14344 | |
e6cc62c6 VS |
14345 | ; |
14346 | return 0; | |
14347 | } | |
14348 | _ACEOF | |
14349 | rm -f conftest.$ac_objext | |
14350 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 14351 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
14352 | ac_status=$? |
14353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14354 | (exit $ac_status); } && | |
789c5f4a | 14355 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
14356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14357 | (eval $ac_try) 2>&5 | |
14358 | ac_status=$? | |
14359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14360 | (exit $ac_status); }; }; then | |
14361 | ac_hi=-1 ac_mid=-1 | |
14362 | while :; do | |
14363 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 14364 | #line $LINENO "configure" |
e6cc62c6 VS |
14365 | /* confdefs.h. */ |
14366 | _ACEOF | |
14367 | cat confdefs.h >>conftest.$ac_ext | |
14368 | cat >>conftest.$ac_ext <<_ACEOF | |
14369 | /* end confdefs.h. */ | |
14370 | $ac_includes_default | |
14371 | int | |
14372 | main () | |
14373 | { | |
14374 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; | |
14375 | test_array [0] = 0 | |
247f5006 | 14376 | |
e6cc62c6 VS |
14377 | ; |
14378 | return 0; | |
14379 | } | |
14380 | _ACEOF | |
14381 | rm -f conftest.$ac_objext | |
14382 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 14383 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
14384 | ac_status=$? |
14385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14386 | (exit $ac_status); } && | |
789c5f4a | 14387 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
14388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14389 | (eval $ac_try) 2>&5 | |
14390 | ac_status=$? | |
14391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14392 | (exit $ac_status); }; }; then | |
14393 | ac_lo=$ac_mid; break | |
14394 | else | |
14395 | echo "$as_me: failed program was:" >&5 | |
14396 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14397 | ||
14398 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
789c5f4a VZ |
14399 | if test $ac_mid -le $ac_hi; then |
14400 | ac_lo= ac_hi= | |
14401 | break | |
14402 | fi | |
14403 | ac_mid=`expr 2 '*' $ac_mid` | |
e6cc62c6 | 14404 | fi |
789c5f4a | 14405 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 14406 | done |
247f5006 | 14407 | else |
e6cc62c6 VS |
14408 | echo "$as_me: failed program was:" >&5 |
14409 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14410 | ||
14411 | ac_lo= ac_hi= | |
14412 | fi | |
789c5f4a | 14413 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 14414 | fi |
789c5f4a | 14415 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14416 | # Binary search between lo and hi bounds. |
14417 | while test "x$ac_lo" != "x$ac_hi"; do | |
14418 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14419 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 14420 | #line $LINENO "configure" |
e6cc62c6 VS |
14421 | /* confdefs.h. */ |
14422 | _ACEOF | |
14423 | cat confdefs.h >>conftest.$ac_ext | |
14424 | cat >>conftest.$ac_ext <<_ACEOF | |
14425 | /* end confdefs.h. */ | |
14426 | $ac_includes_default | |
14427 | int | |
14428 | main () | |
14429 | { | |
14430 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
14431 | test_array [0] = 0 | |
14432 | ||
14433 | ; | |
14434 | return 0; | |
14435 | } | |
14436 | _ACEOF | |
14437 | rm -f conftest.$ac_objext | |
14438 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 14439 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
14440 | ac_status=$? |
14441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14442 | (exit $ac_status); } && | |
789c5f4a | 14443 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
14444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14445 | (eval $ac_try) 2>&5 | |
14446 | ac_status=$? | |
14447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14448 | (exit $ac_status); }; }; then | |
14449 | ac_hi=$ac_mid | |
14450 | else | |
14451 | echo "$as_me: failed program was:" >&5 | |
14452 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14453 | ||
14454 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
14455 | fi | |
789c5f4a | 14456 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14457 | done |
14458 | case $ac_lo in | |
14459 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
14460 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
14461 | See \`config.log' for more details." >&5 | |
14462 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
14463 | See \`config.log' for more details." >&2;} | |
14464 | { (exit 1); exit 1; }; } ;; | |
14465 | esac | |
247f5006 | 14466 | else |
e6cc62c6 VS |
14467 | if test "$cross_compiling" = yes; then |
14468 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
14469 | See \`config.log' for more details." >&5 | |
14470 | echo "$as_me: error: cannot run test program while cross compiling | |
14471 | See \`config.log' for more details." >&2;} | |
14472 | { (exit 1); exit 1; }; } | |
14473 | else | |
14474 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 14475 | #line $LINENO "configure" |
e6cc62c6 VS |
14476 | /* confdefs.h. */ |
14477 | _ACEOF | |
14478 | cat confdefs.h >>conftest.$ac_ext | |
14479 | cat >>conftest.$ac_ext <<_ACEOF | |
14480 | /* end confdefs.h. */ | |
14481 | $ac_includes_default | |
14482 | long longval () { return (long) (sizeof (short)); } | |
14483 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
a0b9e27f | 14484 | #include <stdio.h> |
e6cc62c6 VS |
14485 | #include <stdlib.h> |
14486 | int | |
14487 | main () | |
a0b9e27f | 14488 | { |
e6cc62c6 VS |
14489 | |
14490 | FILE *f = fopen ("conftest.val", "w"); | |
14491 | if (! f) | |
14492 | exit (1); | |
14493 | if (((long) (sizeof (short))) < 0) | |
14494 | { | |
14495 | long i = longval (); | |
14496 | if (i != ((long) (sizeof (short)))) | |
14497 | exit (1); | |
14498 | fprintf (f, "%ld\n", i); | |
14499 | } | |
14500 | else | |
14501 | { | |
14502 | unsigned long i = ulongval (); | |
14503 | if (i != ((long) (sizeof (short)))) | |
14504 | exit (1); | |
14505 | fprintf (f, "%lu\n", i); | |
14506 | } | |
14507 | exit (ferror (f) || fclose (f) != 0); | |
14508 | ||
14509 | ; | |
14510 | return 0; | |
a0b9e27f | 14511 | } |
e6cc62c6 VS |
14512 | _ACEOF |
14513 | rm -f conftest$ac_exeext | |
14514 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14515 | (eval $ac_link) 2>&5 | |
14516 | ac_status=$? | |
14517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14518 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14520 | (eval $ac_try) 2>&5 | |
14521 | ac_status=$? | |
14522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14523 | (exit $ac_status); }; }; then | |
14524 | ac_cv_sizeof_short=`cat conftest.val` | |
14525 | else | |
14526 | echo "$as_me: program exited with status $ac_status" >&5 | |
14527 | echo "$as_me: failed program was:" >&5 | |
14528 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14529 | ||
14530 | ( exit $ac_status ) | |
14531 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
14532 | See \`config.log' for more details." >&5 | |
14533 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
14534 | See \`config.log' for more details." >&2;} | |
14535 | { (exit 1); exit 1; }; } | |
14536 | fi | |
789c5f4a | 14537 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14538 | fi |
14539 | fi | |
14540 | rm -f conftest.val | |
247f5006 | 14541 | else |
a0b9e27f | 14542 | ac_cv_sizeof_short=0 |
247f5006 | 14543 | fi |
247f5006 | 14544 | fi |
e6cc62c6 VS |
14545 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
14546 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
14547 | cat >>confdefs.h <<_ACEOF | |
14548 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
14549 | _ACEOF | |
14550 | ||
14551 | ||
14552 | echo "$as_me:$LINENO: checking for void *" >&5 | |
14553 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
14554 | if test "${ac_cv_type_void_p+set}" = set; then | |
14555 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14556 | else | |
14557 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 14558 | #line $LINENO "configure" |
e6cc62c6 VS |
14559 | /* confdefs.h. */ |
14560 | _ACEOF | |
14561 | cat confdefs.h >>conftest.$ac_ext | |
14562 | cat >>conftest.$ac_ext <<_ACEOF | |
14563 | /* end confdefs.h. */ | |
14564 | $ac_includes_default | |
14565 | int | |
14566 | main () | |
14567 | { | |
14568 | if ((void * *) 0) | |
14569 | return 0; | |
14570 | if (sizeof (void *)) | |
14571 | return 0; | |
14572 | ; | |
14573 | return 0; | |
14574 | } | |
14575 | _ACEOF | |
14576 | rm -f conftest.$ac_objext | |
14577 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 14578 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
14579 | ac_status=$? |
14580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14581 | (exit $ac_status); } && | |
789c5f4a | 14582 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
14583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14584 | (eval $ac_try) 2>&5 | |
14585 | ac_status=$? | |
14586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14587 | (exit $ac_status); }; }; then | |
14588 | ac_cv_type_void_p=yes | |
14589 | else | |
14590 | echo "$as_me: failed program was:" >&5 | |
14591 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14592 | ||
14593 | ac_cv_type_void_p=no | |
14594 | fi | |
789c5f4a | 14595 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14596 | fi |
14597 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
14598 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
14599 | ||
14600 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
14601 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
14602 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
14603 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14604 | else | |
14605 | if test "$ac_cv_type_void_p" = yes; then | |
14606 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14607 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14608 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14609 | # This bug is HP SR number 8606223364. | |
14610 | if test "$cross_compiling" = yes; then | |
14611 | # Depending upon the size, compute the lo and hi bounds. | |
14612 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 14613 | #line $LINENO "configure" |
e6cc62c6 VS |
14614 | /* confdefs.h. */ |
14615 | _ACEOF | |
14616 | cat confdefs.h >>conftest.$ac_ext | |
14617 | cat >>conftest.$ac_ext <<_ACEOF | |
14618 | /* end confdefs.h. */ | |
14619 | $ac_includes_default | |
14620 | int | |
14621 | main () | |
14622 | { | |
14623 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
14624 | test_array [0] = 0 | |
14625 | ||
14626 | ; | |
14627 | return 0; | |
14628 | } | |
14629 | _ACEOF | |
14630 | rm -f conftest.$ac_objext | |
14631 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 14632 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
14633 | ac_status=$? |
14634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14635 | (exit $ac_status); } && | |
789c5f4a | 14636 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
14637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14638 | (eval $ac_try) 2>&5 | |
14639 | ac_status=$? | |
14640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14641 | (exit $ac_status); }; }; then | |
14642 | ac_lo=0 ac_mid=0 | |
14643 | while :; do | |
14644 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 14645 | #line $LINENO "configure" |
e6cc62c6 VS |
14646 | /* confdefs.h. */ |
14647 | _ACEOF | |
14648 | cat confdefs.h >>conftest.$ac_ext | |
14649 | cat >>conftest.$ac_ext <<_ACEOF | |
14650 | /* end confdefs.h. */ | |
14651 | $ac_includes_default | |
14652 | int | |
14653 | main () | |
14654 | { | |
14655 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
14656 | test_array [0] = 0 | |
247f5006 | 14657 | |
e6cc62c6 VS |
14658 | ; |
14659 | return 0; | |
14660 | } | |
14661 | _ACEOF | |
14662 | rm -f conftest.$ac_objext | |
14663 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 14664 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
14665 | ac_status=$? |
14666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14667 | (exit $ac_status); } && | |
789c5f4a | 14668 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
14669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14670 | (eval $ac_try) 2>&5 | |
14671 | ac_status=$? | |
14672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14673 | (exit $ac_status); }; }; then | |
14674 | ac_hi=$ac_mid; break | |
14675 | else | |
14676 | echo "$as_me: failed program was:" >&5 | |
14677 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14678 | ||
14679 | ac_lo=`expr $ac_mid + 1` | |
789c5f4a VZ |
14680 | if test $ac_lo -le $ac_mid; then |
14681 | ac_lo= ac_hi= | |
14682 | break | |
14683 | fi | |
14684 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
247f5006 | 14685 | fi |
789c5f4a | 14686 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14687 | done |
14688 | else | |
14689 | echo "$as_me: failed program was:" >&5 | |
14690 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14691 | ||
14692 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 14693 | #line $LINENO "configure" |
e6cc62c6 VS |
14694 | /* confdefs.h. */ |
14695 | _ACEOF | |
14696 | cat confdefs.h >>conftest.$ac_ext | |
14697 | cat >>conftest.$ac_ext <<_ACEOF | |
14698 | /* end confdefs.h. */ | |
14699 | $ac_includes_default | |
14700 | int | |
14701 | main () | |
14702 | { | |
14703 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
14704 | test_array [0] = 0 | |
247f5006 | 14705 | |
e6cc62c6 VS |
14706 | ; |
14707 | return 0; | |
14708 | } | |
14709 | _ACEOF | |
14710 | rm -f conftest.$ac_objext | |
14711 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 14712 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
14713 | ac_status=$? |
14714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14715 | (exit $ac_status); } && | |
789c5f4a | 14716 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
14717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14718 | (eval $ac_try) 2>&5 | |
14719 | ac_status=$? | |
14720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14721 | (exit $ac_status); }; }; then | |
14722 | ac_hi=-1 ac_mid=-1 | |
14723 | while :; do | |
14724 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 14725 | #line $LINENO "configure" |
e6cc62c6 VS |
14726 | /* confdefs.h. */ |
14727 | _ACEOF | |
14728 | cat confdefs.h >>conftest.$ac_ext | |
14729 | cat >>conftest.$ac_ext <<_ACEOF | |
14730 | /* end confdefs.h. */ | |
14731 | $ac_includes_default | |
14732 | int | |
14733 | main () | |
14734 | { | |
14735 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
14736 | test_array [0] = 0 | |
247f5006 | 14737 | |
e6cc62c6 VS |
14738 | ; |
14739 | return 0; | |
14740 | } | |
14741 | _ACEOF | |
14742 | rm -f conftest.$ac_objext | |
14743 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 14744 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
14745 | ac_status=$? |
14746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14747 | (exit $ac_status); } && | |
789c5f4a | 14748 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
14749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14750 | (eval $ac_try) 2>&5 | |
14751 | ac_status=$? | |
14752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14753 | (exit $ac_status); }; }; then | |
14754 | ac_lo=$ac_mid; break | |
14755 | else | |
14756 | echo "$as_me: failed program was:" >&5 | |
14757 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14758 | ||
14759 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
789c5f4a VZ |
14760 | if test $ac_mid -le $ac_hi; then |
14761 | ac_lo= ac_hi= | |
14762 | break | |
14763 | fi | |
14764 | ac_mid=`expr 2 '*' $ac_mid` | |
e6cc62c6 | 14765 | fi |
789c5f4a | 14766 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 14767 | done |
a0b9e27f | 14768 | else |
e6cc62c6 VS |
14769 | echo "$as_me: failed program was:" >&5 |
14770 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14771 | ||
14772 | ac_lo= ac_hi= | |
14773 | fi | |
789c5f4a | 14774 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 14775 | fi |
789c5f4a | 14776 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14777 | # Binary search between lo and hi bounds. |
14778 | while test "x$ac_lo" != "x$ac_hi"; do | |
14779 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14780 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 14781 | #line $LINENO "configure" |
e6cc62c6 VS |
14782 | /* confdefs.h. */ |
14783 | _ACEOF | |
14784 | cat confdefs.h >>conftest.$ac_ext | |
14785 | cat >>conftest.$ac_ext <<_ACEOF | |
14786 | /* end confdefs.h. */ | |
14787 | $ac_includes_default | |
14788 | int | |
14789 | main () | |
14790 | { | |
14791 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
14792 | test_array [0] = 0 | |
14793 | ||
14794 | ; | |
14795 | return 0; | |
14796 | } | |
14797 | _ACEOF | |
14798 | rm -f conftest.$ac_objext | |
14799 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 14800 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
14801 | ac_status=$? |
14802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14803 | (exit $ac_status); } && | |
789c5f4a | 14804 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
14805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14806 | (eval $ac_try) 2>&5 | |
14807 | ac_status=$? | |
14808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14809 | (exit $ac_status); }; }; then | |
14810 | ac_hi=$ac_mid | |
14811 | else | |
14812 | echo "$as_me: failed program was:" >&5 | |
14813 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14814 | ||
14815 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
14816 | fi | |
789c5f4a | 14817 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14818 | done |
14819 | case $ac_lo in | |
14820 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
14821 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
14822 | See \`config.log' for more details." >&5 | |
14823 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
14824 | See \`config.log' for more details." >&2;} | |
14825 | { (exit 1); exit 1; }; } ;; | |
14826 | esac | |
247f5006 | 14827 | else |
e6cc62c6 VS |
14828 | if test "$cross_compiling" = yes; then |
14829 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
14830 | See \`config.log' for more details." >&5 | |
14831 | echo "$as_me: error: cannot run test program while cross compiling | |
14832 | See \`config.log' for more details." >&2;} | |
14833 | { (exit 1); exit 1; }; } | |
14834 | else | |
14835 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 14836 | #line $LINENO "configure" |
e6cc62c6 VS |
14837 | /* confdefs.h. */ |
14838 | _ACEOF | |
14839 | cat confdefs.h >>conftest.$ac_ext | |
14840 | cat >>conftest.$ac_ext <<_ACEOF | |
14841 | /* end confdefs.h. */ | |
14842 | $ac_includes_default | |
14843 | long longval () { return (long) (sizeof (void *)); } | |
14844 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
247f5006 | 14845 | #include <stdio.h> |
e6cc62c6 VS |
14846 | #include <stdlib.h> |
14847 | int | |
14848 | main () | |
247f5006 | 14849 | { |
e6cc62c6 VS |
14850 | |
14851 | FILE *f = fopen ("conftest.val", "w"); | |
14852 | if (! f) | |
14853 | exit (1); | |
14854 | if (((long) (sizeof (void *))) < 0) | |
14855 | { | |
14856 | long i = longval (); | |
14857 | if (i != ((long) (sizeof (void *)))) | |
14858 | exit (1); | |
14859 | fprintf (f, "%ld\n", i); | |
14860 | } | |
14861 | else | |
14862 | { | |
14863 | unsigned long i = ulongval (); | |
14864 | if (i != ((long) (sizeof (void *)))) | |
14865 | exit (1); | |
14866 | fprintf (f, "%lu\n", i); | |
14867 | } | |
14868 | exit (ferror (f) || fclose (f) != 0); | |
14869 | ||
14870 | ; | |
14871 | return 0; | |
5c6fa7d2 | 14872 | } |
e6cc62c6 VS |
14873 | _ACEOF |
14874 | rm -f conftest$ac_exeext | |
14875 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14876 | (eval $ac_link) 2>&5 | |
14877 | ac_status=$? | |
14878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14879 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14881 | (eval $ac_try) 2>&5 | |
14882 | ac_status=$? | |
14883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14884 | (exit $ac_status); }; }; then | |
14885 | ac_cv_sizeof_void_p=`cat conftest.val` | |
14886 | else | |
14887 | echo "$as_me: program exited with status $ac_status" >&5 | |
14888 | echo "$as_me: failed program was:" >&5 | |
14889 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14890 | ||
14891 | ( exit $ac_status ) | |
14892 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
14893 | See \`config.log' for more details." >&5 | |
14894 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
14895 | See \`config.log' for more details." >&2;} | |
14896 | { (exit 1); exit 1; }; } | |
14897 | fi | |
789c5f4a | 14898 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14899 | fi |
14900 | fi | |
14901 | rm -f conftest.val | |
a0b9e27f | 14902 | else |
a0b9e27f MB |
14903 | ac_cv_sizeof_void_p=0 |
14904 | fi | |
a0b9e27f | 14905 | fi |
e6cc62c6 VS |
14906 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
14907 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
14908 | cat >>confdefs.h <<_ACEOF | |
14909 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
14910 | _ACEOF | |
14911 | ||
14912 | ||
14913 | echo "$as_me:$LINENO: checking for int" >&5 | |
14914 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
14915 | if test "${ac_cv_type_int+set}" = set; then | |
14916 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14917 | else | |
14918 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 14919 | #line $LINENO "configure" |
e6cc62c6 VS |
14920 | /* confdefs.h. */ |
14921 | _ACEOF | |
14922 | cat confdefs.h >>conftest.$ac_ext | |
14923 | cat >>conftest.$ac_ext <<_ACEOF | |
14924 | /* end confdefs.h. */ | |
14925 | $ac_includes_default | |
14926 | int | |
14927 | main () | |
14928 | { | |
14929 | if ((int *) 0) | |
14930 | return 0; | |
14931 | if (sizeof (int)) | |
14932 | return 0; | |
14933 | ; | |
14934 | return 0; | |
14935 | } | |
14936 | _ACEOF | |
14937 | rm -f conftest.$ac_objext | |
14938 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 14939 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
14940 | ac_status=$? |
14941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14942 | (exit $ac_status); } && | |
789c5f4a | 14943 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
14944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14945 | (eval $ac_try) 2>&5 | |
14946 | ac_status=$? | |
14947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14948 | (exit $ac_status); }; }; then | |
14949 | ac_cv_type_int=yes | |
14950 | else | |
14951 | echo "$as_me: failed program was:" >&5 | |
14952 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14953 | ||
14954 | ac_cv_type_int=no | |
14955 | fi | |
789c5f4a | 14956 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14957 | fi |
14958 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
14959 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
14960 | ||
14961 | echo "$as_me:$LINENO: checking size of int" >&5 | |
14962 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
14963 | if test "${ac_cv_sizeof_int+set}" = set; then | |
14964 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14965 | else | |
14966 | if test "$ac_cv_type_int" = yes; then | |
14967 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14968 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14969 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14970 | # This bug is HP SR number 8606223364. | |
14971 | if test "$cross_compiling" = yes; then | |
14972 | # Depending upon the size, compute the lo and hi bounds. | |
14973 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 14974 | #line $LINENO "configure" |
e6cc62c6 VS |
14975 | /* confdefs.h. */ |
14976 | _ACEOF | |
14977 | cat confdefs.h >>conftest.$ac_ext | |
14978 | cat >>conftest.$ac_ext <<_ACEOF | |
14979 | /* end confdefs.h. */ | |
14980 | $ac_includes_default | |
14981 | int | |
14982 | main () | |
14983 | { | |
14984 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
14985 | test_array [0] = 0 | |
8284b0c5 | 14986 | |
e6cc62c6 VS |
14987 | ; |
14988 | return 0; | |
14989 | } | |
14990 | _ACEOF | |
14991 | rm -f conftest.$ac_objext | |
14992 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 14993 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
14994 | ac_status=$? |
14995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14996 | (exit $ac_status); } && | |
789c5f4a | 14997 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
14998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14999 | (eval $ac_try) 2>&5 | |
15000 | ac_status=$? | |
15001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15002 | (exit $ac_status); }; }; then | |
15003 | ac_lo=0 ac_mid=0 | |
15004 | while :; do | |
15005 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 15006 | #line $LINENO "configure" |
e6cc62c6 VS |
15007 | /* confdefs.h. */ |
15008 | _ACEOF | |
15009 | cat confdefs.h >>conftest.$ac_ext | |
15010 | cat >>conftest.$ac_ext <<_ACEOF | |
15011 | /* end confdefs.h. */ | |
15012 | $ac_includes_default | |
15013 | int | |
15014 | main () | |
15015 | { | |
15016 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
15017 | test_array [0] = 0 | |
15018 | ||
15019 | ; | |
15020 | return 0; | |
15021 | } | |
15022 | _ACEOF | |
15023 | rm -f conftest.$ac_objext | |
15024 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 15025 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
15026 | ac_status=$? |
15027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15028 | (exit $ac_status); } && | |
789c5f4a | 15029 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
15030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15031 | (eval $ac_try) 2>&5 | |
15032 | ac_status=$? | |
15033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15034 | (exit $ac_status); }; }; then | |
15035 | ac_hi=$ac_mid; break | |
15036 | else | |
15037 | echo "$as_me: failed program was:" >&5 | |
15038 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15039 | ||
15040 | ac_lo=`expr $ac_mid + 1` | |
789c5f4a VZ |
15041 | if test $ac_lo -le $ac_mid; then |
15042 | ac_lo= ac_hi= | |
15043 | break | |
15044 | fi | |
15045 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
247f5006 | 15046 | fi |
789c5f4a | 15047 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15048 | done |
15049 | else | |
15050 | echo "$as_me: failed program was:" >&5 | |
15051 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15052 | ||
15053 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 15054 | #line $LINENO "configure" |
e6cc62c6 VS |
15055 | /* confdefs.h. */ |
15056 | _ACEOF | |
15057 | cat confdefs.h >>conftest.$ac_ext | |
15058 | cat >>conftest.$ac_ext <<_ACEOF | |
15059 | /* end confdefs.h. */ | |
15060 | $ac_includes_default | |
15061 | int | |
15062 | main () | |
15063 | { | |
15064 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
15065 | test_array [0] = 0 | |
247f5006 | 15066 | |
e6cc62c6 VS |
15067 | ; |
15068 | return 0; | |
15069 | } | |
15070 | _ACEOF | |
15071 | rm -f conftest.$ac_objext | |
15072 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 15073 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
15074 | ac_status=$? |
15075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15076 | (exit $ac_status); } && | |
789c5f4a | 15077 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
15078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15079 | (eval $ac_try) 2>&5 | |
15080 | ac_status=$? | |
15081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15082 | (exit $ac_status); }; }; then | |
15083 | ac_hi=-1 ac_mid=-1 | |
15084 | while :; do | |
15085 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 15086 | #line $LINENO "configure" |
e6cc62c6 VS |
15087 | /* confdefs.h. */ |
15088 | _ACEOF | |
15089 | cat confdefs.h >>conftest.$ac_ext | |
15090 | cat >>conftest.$ac_ext <<_ACEOF | |
15091 | /* end confdefs.h. */ | |
15092 | $ac_includes_default | |
15093 | int | |
15094 | main () | |
15095 | { | |
15096 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
15097 | test_array [0] = 0 | |
247f5006 | 15098 | |
e6cc62c6 VS |
15099 | ; |
15100 | return 0; | |
15101 | } | |
15102 | _ACEOF | |
15103 | rm -f conftest.$ac_objext | |
15104 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 15105 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
15106 | ac_status=$? |
15107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15108 | (exit $ac_status); } && | |
789c5f4a | 15109 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
15110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15111 | (eval $ac_try) 2>&5 | |
15112 | ac_status=$? | |
15113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15114 | (exit $ac_status); }; }; then | |
15115 | ac_lo=$ac_mid; break | |
15116 | else | |
15117 | echo "$as_me: failed program was:" >&5 | |
15118 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15119 | ||
15120 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
789c5f4a VZ |
15121 | if test $ac_mid -le $ac_hi; then |
15122 | ac_lo= ac_hi= | |
15123 | break | |
15124 | fi | |
15125 | ac_mid=`expr 2 '*' $ac_mid` | |
e6cc62c6 | 15126 | fi |
789c5f4a | 15127 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 15128 | done |
247f5006 | 15129 | else |
e6cc62c6 VS |
15130 | echo "$as_me: failed program was:" >&5 |
15131 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15132 | ||
15133 | ac_lo= ac_hi= | |
15134 | fi | |
789c5f4a | 15135 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 15136 | fi |
789c5f4a | 15137 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15138 | # Binary search between lo and hi bounds. |
15139 | while test "x$ac_lo" != "x$ac_hi"; do | |
15140 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15141 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 15142 | #line $LINENO "configure" |
e6cc62c6 VS |
15143 | /* confdefs.h. */ |
15144 | _ACEOF | |
15145 | cat confdefs.h >>conftest.$ac_ext | |
15146 | cat >>conftest.$ac_ext <<_ACEOF | |
15147 | /* end confdefs.h. */ | |
15148 | $ac_includes_default | |
15149 | int | |
15150 | main () | |
15151 | { | |
15152 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
15153 | test_array [0] = 0 | |
15154 | ||
15155 | ; | |
15156 | return 0; | |
15157 | } | |
15158 | _ACEOF | |
15159 | rm -f conftest.$ac_objext | |
15160 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 15161 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
15162 | ac_status=$? |
15163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15164 | (exit $ac_status); } && | |
789c5f4a | 15165 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
15166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15167 | (eval $ac_try) 2>&5 | |
15168 | ac_status=$? | |
15169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15170 | (exit $ac_status); }; }; then | |
15171 | ac_hi=$ac_mid | |
15172 | else | |
15173 | echo "$as_me: failed program was:" >&5 | |
15174 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15175 | ||
15176 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15177 | fi | |
789c5f4a | 15178 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15179 | done |
15180 | case $ac_lo in | |
15181 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
15182 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
15183 | See \`config.log' for more details." >&5 | |
15184 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
15185 | See \`config.log' for more details." >&2;} | |
15186 | { (exit 1); exit 1; }; } ;; | |
15187 | esac | |
a0b9e27f | 15188 | else |
e6cc62c6 VS |
15189 | if test "$cross_compiling" = yes; then |
15190 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
15191 | See \`config.log' for more details." >&5 | |
15192 | echo "$as_me: error: cannot run test program while cross compiling | |
15193 | See \`config.log' for more details." >&2;} | |
15194 | { (exit 1); exit 1; }; } | |
15195 | else | |
15196 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 15197 | #line $LINENO "configure" |
e6cc62c6 VS |
15198 | /* confdefs.h. */ |
15199 | _ACEOF | |
15200 | cat confdefs.h >>conftest.$ac_ext | |
15201 | cat >>conftest.$ac_ext <<_ACEOF | |
15202 | /* end confdefs.h. */ | |
15203 | $ac_includes_default | |
15204 | long longval () { return (long) (sizeof (int)); } | |
15205 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
a0b9e27f | 15206 | #include <stdio.h> |
e6cc62c6 VS |
15207 | #include <stdlib.h> |
15208 | int | |
15209 | main () | |
247f5006 | 15210 | { |
e6cc62c6 VS |
15211 | |
15212 | FILE *f = fopen ("conftest.val", "w"); | |
15213 | if (! f) | |
15214 | exit (1); | |
15215 | if (((long) (sizeof (int))) < 0) | |
15216 | { | |
15217 | long i = longval (); | |
15218 | if (i != ((long) (sizeof (int)))) | |
15219 | exit (1); | |
15220 | fprintf (f, "%ld\n", i); | |
15221 | } | |
15222 | else | |
15223 | { | |
15224 | unsigned long i = ulongval (); | |
15225 | if (i != ((long) (sizeof (int)))) | |
15226 | exit (1); | |
15227 | fprintf (f, "%lu\n", i); | |
15228 | } | |
15229 | exit (ferror (f) || fclose (f) != 0); | |
15230 | ||
15231 | ; | |
15232 | return 0; | |
247f5006 | 15233 | } |
e6cc62c6 VS |
15234 | _ACEOF |
15235 | rm -f conftest$ac_exeext | |
15236 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15237 | (eval $ac_link) 2>&5 | |
15238 | ac_status=$? | |
15239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15240 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15242 | (eval $ac_try) 2>&5 | |
15243 | ac_status=$? | |
15244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15245 | (exit $ac_status); }; }; then | |
15246 | ac_cv_sizeof_int=`cat conftest.val` | |
15247 | else | |
15248 | echo "$as_me: program exited with status $ac_status" >&5 | |
15249 | echo "$as_me: failed program was:" >&5 | |
15250 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15251 | ||
15252 | ( exit $ac_status ) | |
15253 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
15254 | See \`config.log' for more details." >&5 | |
15255 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
15256 | See \`config.log' for more details." >&2;} | |
15257 | { (exit 1); exit 1; }; } | |
15258 | fi | |
789c5f4a | 15259 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15260 | fi |
15261 | fi | |
15262 | rm -f conftest.val | |
6f72b082 | 15263 | else |
a0b9e27f | 15264 | ac_cv_sizeof_int=0 |
21d1c967 | 15265 | fi |
698dcdb6 | 15266 | fi |
e6cc62c6 VS |
15267 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
15268 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
15269 | cat >>confdefs.h <<_ACEOF | |
15270 | #define SIZEOF_INT $ac_cv_sizeof_int | |
15271 | _ACEOF | |
15272 | ||
15273 | ||
15274 | echo "$as_me:$LINENO: checking for long" >&5 | |
15275 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
15276 | if test "${ac_cv_type_long+set}" = set; then | |
15277 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15278 | else | |
15279 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 15280 | #line $LINENO "configure" |
e6cc62c6 VS |
15281 | /* confdefs.h. */ |
15282 | _ACEOF | |
15283 | cat confdefs.h >>conftest.$ac_ext | |
15284 | cat >>conftest.$ac_ext <<_ACEOF | |
15285 | /* end confdefs.h. */ | |
15286 | $ac_includes_default | |
15287 | int | |
15288 | main () | |
15289 | { | |
15290 | if ((long *) 0) | |
15291 | return 0; | |
15292 | if (sizeof (long)) | |
15293 | return 0; | |
15294 | ; | |
15295 | return 0; | |
15296 | } | |
15297 | _ACEOF | |
15298 | rm -f conftest.$ac_objext | |
15299 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 15300 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
15301 | ac_status=$? |
15302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15303 | (exit $ac_status); } && | |
789c5f4a | 15304 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
15305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15306 | (eval $ac_try) 2>&5 | |
15307 | ac_status=$? | |
15308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15309 | (exit $ac_status); }; }; then | |
15310 | ac_cv_type_long=yes | |
15311 | else | |
15312 | echo "$as_me: failed program was:" >&5 | |
15313 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15314 | ||
15315 | ac_cv_type_long=no | |
15316 | fi | |
789c5f4a | 15317 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15318 | fi |
15319 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
15320 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
15321 | ||
15322 | echo "$as_me:$LINENO: checking size of long" >&5 | |
15323 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
15324 | if test "${ac_cv_sizeof_long+set}" = set; then | |
15325 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15326 | else | |
15327 | if test "$ac_cv_type_long" = yes; then | |
15328 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15329 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15330 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15331 | # This bug is HP SR number 8606223364. | |
15332 | if test "$cross_compiling" = yes; then | |
15333 | # Depending upon the size, compute the lo and hi bounds. | |
15334 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 15335 | #line $LINENO "configure" |
e6cc62c6 VS |
15336 | /* confdefs.h. */ |
15337 | _ACEOF | |
15338 | cat confdefs.h >>conftest.$ac_ext | |
15339 | cat >>conftest.$ac_ext <<_ACEOF | |
15340 | /* end confdefs.h. */ | |
15341 | $ac_includes_default | |
15342 | int | |
15343 | main () | |
15344 | { | |
15345 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
15346 | test_array [0] = 0 | |
15347 | ||
15348 | ; | |
15349 | return 0; | |
15350 | } | |
15351 | _ACEOF | |
15352 | rm -f conftest.$ac_objext | |
15353 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 15354 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
15355 | ac_status=$? |
15356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15357 | (exit $ac_status); } && | |
789c5f4a | 15358 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
15359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15360 | (eval $ac_try) 2>&5 | |
15361 | ac_status=$? | |
15362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15363 | (exit $ac_status); }; }; then | |
15364 | ac_lo=0 ac_mid=0 | |
15365 | while :; do | |
15366 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 15367 | #line $LINENO "configure" |
e6cc62c6 VS |
15368 | /* confdefs.h. */ |
15369 | _ACEOF | |
15370 | cat confdefs.h >>conftest.$ac_ext | |
15371 | cat >>conftest.$ac_ext <<_ACEOF | |
15372 | /* end confdefs.h. */ | |
15373 | $ac_includes_default | |
15374 | int | |
15375 | main () | |
15376 | { | |
15377 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
15378 | test_array [0] = 0 | |
4f14bcd8 | 15379 | |
e6cc62c6 VS |
15380 | ; |
15381 | return 0; | |
15382 | } | |
15383 | _ACEOF | |
15384 | rm -f conftest.$ac_objext | |
15385 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 15386 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
15387 | ac_status=$? |
15388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15389 | (exit $ac_status); } && | |
789c5f4a | 15390 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
15391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15392 | (eval $ac_try) 2>&5 | |
15393 | ac_status=$? | |
15394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15395 | (exit $ac_status); }; }; then | |
15396 | ac_hi=$ac_mid; break | |
15397 | else | |
15398 | echo "$as_me: failed program was:" >&5 | |
15399 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15400 | ||
15401 | ac_lo=`expr $ac_mid + 1` | |
789c5f4a VZ |
15402 | if test $ac_lo -le $ac_mid; then |
15403 | ac_lo= ac_hi= | |
15404 | break | |
15405 | fi | |
15406 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
21d1c967 | 15407 | fi |
789c5f4a | 15408 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15409 | done |
15410 | else | |
15411 | echo "$as_me: failed program was:" >&5 | |
15412 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15413 | ||
15414 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 15415 | #line $LINENO "configure" |
e6cc62c6 VS |
15416 | /* confdefs.h. */ |
15417 | _ACEOF | |
15418 | cat confdefs.h >>conftest.$ac_ext | |
15419 | cat >>conftest.$ac_ext <<_ACEOF | |
15420 | /* end confdefs.h. */ | |
15421 | $ac_includes_default | |
15422 | int | |
15423 | main () | |
15424 | { | |
15425 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
15426 | test_array [0] = 0 | |
4f14bcd8 | 15427 | |
e6cc62c6 VS |
15428 | ; |
15429 | return 0; | |
15430 | } | |
15431 | _ACEOF | |
15432 | rm -f conftest.$ac_objext | |
15433 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 15434 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
15435 | ac_status=$? |
15436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15437 | (exit $ac_status); } && | |
789c5f4a | 15438 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
15439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15440 | (eval $ac_try) 2>&5 | |
15441 | ac_status=$? | |
15442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15443 | (exit $ac_status); }; }; then | |
15444 | ac_hi=-1 ac_mid=-1 | |
15445 | while :; do | |
15446 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 15447 | #line $LINENO "configure" |
e6cc62c6 VS |
15448 | /* confdefs.h. */ |
15449 | _ACEOF | |
15450 | cat confdefs.h >>conftest.$ac_ext | |
15451 | cat >>conftest.$ac_ext <<_ACEOF | |
15452 | /* end confdefs.h. */ | |
15453 | $ac_includes_default | |
15454 | int | |
15455 | main () | |
15456 | { | |
15457 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
15458 | test_array [0] = 0 | |
5c6fa7d2 | 15459 | |
e6cc62c6 VS |
15460 | ; |
15461 | return 0; | |
15462 | } | |
15463 | _ACEOF | |
15464 | rm -f conftest.$ac_objext | |
15465 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 15466 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
15467 | ac_status=$? |
15468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15469 | (exit $ac_status); } && | |
789c5f4a | 15470 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
15471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15472 | (eval $ac_try) 2>&5 | |
15473 | ac_status=$? | |
15474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15475 | (exit $ac_status); }; }; then | |
15476 | ac_lo=$ac_mid; break | |
15477 | else | |
15478 | echo "$as_me: failed program was:" >&5 | |
15479 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15480 | ||
15481 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
789c5f4a VZ |
15482 | if test $ac_mid -le $ac_hi; then |
15483 | ac_lo= ac_hi= | |
15484 | break | |
15485 | fi | |
15486 | ac_mid=`expr 2 '*' $ac_mid` | |
e6cc62c6 | 15487 | fi |
789c5f4a | 15488 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 15489 | done |
247f5006 | 15490 | else |
e6cc62c6 VS |
15491 | echo "$as_me: failed program was:" >&5 |
15492 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15493 | ||
15494 | ac_lo= ac_hi= | |
15495 | fi | |
789c5f4a | 15496 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 15497 | fi |
789c5f4a | 15498 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15499 | # Binary search between lo and hi bounds. |
15500 | while test "x$ac_lo" != "x$ac_hi"; do | |
15501 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15502 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 15503 | #line $LINENO "configure" |
e6cc62c6 VS |
15504 | /* confdefs.h. */ |
15505 | _ACEOF | |
15506 | cat confdefs.h >>conftest.$ac_ext | |
15507 | cat >>conftest.$ac_ext <<_ACEOF | |
15508 | /* end confdefs.h. */ | |
15509 | $ac_includes_default | |
15510 | int | |
15511 | main () | |
15512 | { | |
15513 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
15514 | test_array [0] = 0 | |
15515 | ||
15516 | ; | |
15517 | return 0; | |
15518 | } | |
15519 | _ACEOF | |
15520 | rm -f conftest.$ac_objext | |
15521 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 15522 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
15523 | ac_status=$? |
15524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15525 | (exit $ac_status); } && | |
789c5f4a | 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_hi=$ac_mid | |
15533 | else | |
15534 | echo "$as_me: failed program was:" >&5 | |
15535 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15536 | ||
15537 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15538 | fi | |
789c5f4a | 15539 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15540 | done |
15541 | case $ac_lo in | |
15542 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
15543 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
15544 | See \`config.log' for more details." >&5 | |
15545 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
15546 | See \`config.log' for more details." >&2;} | |
15547 | { (exit 1); exit 1; }; } ;; | |
15548 | esac | |
247f5006 | 15549 | else |
e6cc62c6 VS |
15550 | if test "$cross_compiling" = yes; then |
15551 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
15552 | See \`config.log' for more details." >&5 | |
15553 | echo "$as_me: error: cannot run test program while cross compiling | |
15554 | See \`config.log' for more details." >&2;} | |
15555 | { (exit 1); exit 1; }; } | |
15556 | else | |
15557 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 15558 | #line $LINENO "configure" |
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 | long longval () { return (long) (sizeof (long)); } | |
15566 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
a0b9e27f | 15567 | #include <stdio.h> |
e6cc62c6 VS |
15568 | #include <stdlib.h> |
15569 | int | |
15570 | main () | |
247f5006 | 15571 | { |
e6cc62c6 VS |
15572 | |
15573 | FILE *f = fopen ("conftest.val", "w"); | |
15574 | if (! f) | |
15575 | exit (1); | |
15576 | if (((long) (sizeof (long))) < 0) | |
15577 | { | |
15578 | long i = longval (); | |
15579 | if (i != ((long) (sizeof (long)))) | |
15580 | exit (1); | |
15581 | fprintf (f, "%ld\n", i); | |
15582 | } | |
15583 | else | |
15584 | { | |
15585 | unsigned long i = ulongval (); | |
15586 | if (i != ((long) (sizeof (long)))) | |
15587 | exit (1); | |
15588 | fprintf (f, "%lu\n", i); | |
15589 | } | |
15590 | exit (ferror (f) || fclose (f) != 0); | |
15591 | ||
15592 | ; | |
15593 | return 0; | |
247f5006 | 15594 | } |
e6cc62c6 VS |
15595 | _ACEOF |
15596 | rm -f conftest$ac_exeext | |
15597 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15598 | (eval $ac_link) 2>&5 | |
15599 | ac_status=$? | |
15600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15601 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15603 | (eval $ac_try) 2>&5 | |
15604 | ac_status=$? | |
15605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15606 | (exit $ac_status); }; }; then | |
15607 | ac_cv_sizeof_long=`cat conftest.val` | |
15608 | else | |
15609 | echo "$as_me: program exited with status $ac_status" >&5 | |
15610 | echo "$as_me: failed program was:" >&5 | |
15611 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15612 | ||
15613 | ( exit $ac_status ) | |
15614 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
15615 | See \`config.log' for more details." >&5 | |
15616 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
15617 | See \`config.log' for more details." >&2;} | |
15618 | { (exit 1); exit 1; }; } | |
15619 | fi | |
789c5f4a | 15620 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15621 | fi |
15622 | fi | |
15623 | rm -f conftest.val | |
247f5006 | 15624 | else |
a0b9e27f | 15625 | ac_cv_sizeof_long=0 |
247f5006 | 15626 | fi |
247f5006 | 15627 | fi |
e6cc62c6 VS |
15628 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
15629 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
15630 | cat >>confdefs.h <<_ACEOF | |
a0b9e27f | 15631 | #define SIZEOF_LONG $ac_cv_sizeof_long |
e6cc62c6 | 15632 | _ACEOF |
247f5006 | 15633 | |
a0b9e27f | 15634 | |
ecfd48ca VZ |
15635 | echo "$as_me:$LINENO: checking for size_t" >&5 |
15636 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
15637 | if test "${ac_cv_type_size_t+set}" = set; then | |
15638 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15639 | else | |
15640 | cat >conftest.$ac_ext <<_ACEOF | |
15641 | #line $LINENO "configure" | |
15642 | /* confdefs.h. */ | |
15643 | _ACEOF | |
15644 | cat confdefs.h >>conftest.$ac_ext | |
15645 | cat >>conftest.$ac_ext <<_ACEOF | |
15646 | /* end confdefs.h. */ | |
15647 | $ac_includes_default | |
15648 | int | |
15649 | main () | |
15650 | { | |
15651 | if ((size_t *) 0) | |
15652 | return 0; | |
15653 | if (sizeof (size_t)) | |
15654 | return 0; | |
15655 | ; | |
15656 | return 0; | |
15657 | } | |
15658 | _ACEOF | |
15659 | rm -f conftest.$ac_objext | |
15660 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15661 | (eval $ac_compile) 2>&5 | |
15662 | ac_status=$? | |
15663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15664 | (exit $ac_status); } && | |
15665 | { ac_try='test -s conftest.$ac_objext' | |
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_type_size_t=yes | |
15672 | else | |
15673 | echo "$as_me: failed program was:" >&5 | |
15674 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15675 | ||
15676 | ac_cv_type_size_t=no | |
15677 | fi | |
15678 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15679 | fi | |
15680 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
15681 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
15682 | ||
15683 | echo "$as_me:$LINENO: checking size of size_t" >&5 | |
15684 | echo $ECHO_N "checking size of size_t... $ECHO_C" >&6 | |
15685 | if test "${ac_cv_sizeof_size_t+set}" = set; then | |
15686 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15687 | else | |
15688 | if test "$ac_cv_type_size_t" = yes; then | |
15689 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15690 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15691 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15692 | # This bug is HP SR number 8606223364. | |
15693 | if test "$cross_compiling" = yes; then | |
15694 | # Depending upon the size, compute the lo and hi bounds. | |
15695 | cat >conftest.$ac_ext <<_ACEOF | |
15696 | #line $LINENO "configure" | |
15697 | /* confdefs.h. */ | |
15698 | _ACEOF | |
15699 | cat confdefs.h >>conftest.$ac_ext | |
15700 | cat >>conftest.$ac_ext <<_ACEOF | |
15701 | /* end confdefs.h. */ | |
15702 | $ac_includes_default | |
15703 | int | |
15704 | main () | |
15705 | { | |
15706 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)]; | |
15707 | test_array [0] = 0 | |
15708 | ||
15709 | ; | |
15710 | return 0; | |
15711 | } | |
15712 | _ACEOF | |
15713 | rm -f conftest.$ac_objext | |
15714 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15715 | (eval $ac_compile) 2>&5 | |
15716 | ac_status=$? | |
15717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15718 | (exit $ac_status); } && | |
15719 | { ac_try='test -s conftest.$ac_objext' | |
15720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15721 | (eval $ac_try) 2>&5 | |
15722 | ac_status=$? | |
15723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15724 | (exit $ac_status); }; }; then | |
15725 | ac_lo=0 ac_mid=0 | |
15726 | while :; do | |
15727 | cat >conftest.$ac_ext <<_ACEOF | |
15728 | #line $LINENO "configure" | |
15729 | /* confdefs.h. */ | |
15730 | _ACEOF | |
15731 | cat confdefs.h >>conftest.$ac_ext | |
15732 | cat >>conftest.$ac_ext <<_ACEOF | |
15733 | /* end confdefs.h. */ | |
15734 | $ac_includes_default | |
15735 | int | |
15736 | main () | |
15737 | { | |
15738 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
15739 | test_array [0] = 0 | |
15740 | ||
15741 | ; | |
15742 | return 0; | |
15743 | } | |
15744 | _ACEOF | |
15745 | rm -f conftest.$ac_objext | |
15746 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15747 | (eval $ac_compile) 2>&5 | |
15748 | ac_status=$? | |
15749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15750 | (exit $ac_status); } && | |
15751 | { ac_try='test -s conftest.$ac_objext' | |
15752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15753 | (eval $ac_try) 2>&5 | |
15754 | ac_status=$? | |
15755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15756 | (exit $ac_status); }; }; then | |
15757 | ac_hi=$ac_mid; break | |
15758 | else | |
15759 | echo "$as_me: failed program was:" >&5 | |
15760 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15761 | ||
15762 | ac_lo=`expr $ac_mid + 1` | |
15763 | if test $ac_lo -le $ac_mid; then | |
15764 | ac_lo= ac_hi= | |
15765 | break | |
15766 | fi | |
15767 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
15768 | fi | |
15769 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15770 | done | |
15771 | else | |
15772 | echo "$as_me: failed program was:" >&5 | |
15773 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15774 | ||
15775 | cat >conftest.$ac_ext <<_ACEOF | |
15776 | #line $LINENO "configure" | |
15777 | /* confdefs.h. */ | |
15778 | _ACEOF | |
15779 | cat confdefs.h >>conftest.$ac_ext | |
15780 | cat >>conftest.$ac_ext <<_ACEOF | |
15781 | /* end confdefs.h. */ | |
15782 | $ac_includes_default | |
15783 | int | |
15784 | main () | |
15785 | { | |
15786 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)]; | |
15787 | test_array [0] = 0 | |
15788 | ||
15789 | ; | |
15790 | return 0; | |
15791 | } | |
15792 | _ACEOF | |
15793 | rm -f conftest.$ac_objext | |
15794 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15795 | (eval $ac_compile) 2>&5 | |
15796 | ac_status=$? | |
15797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15798 | (exit $ac_status); } && | |
15799 | { ac_try='test -s conftest.$ac_objext' | |
15800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15801 | (eval $ac_try) 2>&5 | |
15802 | ac_status=$? | |
15803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15804 | (exit $ac_status); }; }; then | |
15805 | ac_hi=-1 ac_mid=-1 | |
15806 | while :; do | |
15807 | cat >conftest.$ac_ext <<_ACEOF | |
15808 | #line $LINENO "configure" | |
15809 | /* confdefs.h. */ | |
15810 | _ACEOF | |
15811 | cat confdefs.h >>conftest.$ac_ext | |
15812 | cat >>conftest.$ac_ext <<_ACEOF | |
15813 | /* end confdefs.h. */ | |
15814 | $ac_includes_default | |
15815 | int | |
15816 | main () | |
15817 | { | |
15818 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)]; | |
15819 | test_array [0] = 0 | |
15820 | ||
15821 | ; | |
15822 | return 0; | |
15823 | } | |
15824 | _ACEOF | |
15825 | rm -f conftest.$ac_objext | |
15826 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15827 | (eval $ac_compile) 2>&5 | |
15828 | ac_status=$? | |
15829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15830 | (exit $ac_status); } && | |
15831 | { ac_try='test -s conftest.$ac_objext' | |
15832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15833 | (eval $ac_try) 2>&5 | |
15834 | ac_status=$? | |
15835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15836 | (exit $ac_status); }; }; then | |
15837 | ac_lo=$ac_mid; break | |
15838 | else | |
15839 | echo "$as_me: failed program was:" >&5 | |
15840 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15841 | ||
15842 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
15843 | if test $ac_mid -le $ac_hi; then | |
15844 | ac_lo= ac_hi= | |
15845 | break | |
15846 | fi | |
15847 | ac_mid=`expr 2 '*' $ac_mid` | |
15848 | fi | |
15849 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15850 | done | |
15851 | else | |
15852 | echo "$as_me: failed program was:" >&5 | |
15853 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15854 | ||
15855 | ac_lo= ac_hi= | |
15856 | fi | |
15857 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15858 | fi | |
15859 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15860 | # Binary search between lo and hi bounds. | |
15861 | while test "x$ac_lo" != "x$ac_hi"; do | |
15862 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15863 | cat >conftest.$ac_ext <<_ACEOF | |
15864 | #line $LINENO "configure" | |
15865 | /* confdefs.h. */ | |
15866 | _ACEOF | |
15867 | cat confdefs.h >>conftest.$ac_ext | |
15868 | cat >>conftest.$ac_ext <<_ACEOF | |
15869 | /* end confdefs.h. */ | |
15870 | $ac_includes_default | |
15871 | int | |
15872 | main () | |
15873 | { | |
15874 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
15875 | test_array [0] = 0 | |
15876 | ||
15877 | ; | |
15878 | return 0; | |
15879 | } | |
15880 | _ACEOF | |
15881 | rm -f conftest.$ac_objext | |
15882 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15883 | (eval $ac_compile) 2>&5 | |
15884 | ac_status=$? | |
15885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15886 | (exit $ac_status); } && | |
15887 | { ac_try='test -s conftest.$ac_objext' | |
15888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15889 | (eval $ac_try) 2>&5 | |
15890 | ac_status=$? | |
15891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15892 | (exit $ac_status); }; }; then | |
15893 | ac_hi=$ac_mid | |
15894 | else | |
15895 | echo "$as_me: failed program was:" >&5 | |
15896 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15897 | ||
15898 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15899 | fi | |
15900 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15901 | done | |
15902 | case $ac_lo in | |
15903 | ?*) ac_cv_sizeof_size_t=$ac_lo;; | |
15904 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
15905 | See \`config.log' for more details." >&5 | |
15906 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
15907 | See \`config.log' for more details." >&2;} | |
15908 | { (exit 1); exit 1; }; } ;; | |
15909 | esac | |
15910 | else | |
15911 | if test "$cross_compiling" = yes; then | |
15912 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
15913 | See \`config.log' for more details." >&5 | |
15914 | echo "$as_me: error: cannot run test program while cross compiling | |
15915 | See \`config.log' for more details." >&2;} | |
15916 | { (exit 1); exit 1; }; } | |
15917 | else | |
15918 | cat >conftest.$ac_ext <<_ACEOF | |
15919 | #line $LINENO "configure" | |
15920 | /* confdefs.h. */ | |
15921 | _ACEOF | |
15922 | cat confdefs.h >>conftest.$ac_ext | |
15923 | cat >>conftest.$ac_ext <<_ACEOF | |
15924 | /* end confdefs.h. */ | |
15925 | $ac_includes_default | |
15926 | long longval () { return (long) (sizeof (size_t)); } | |
15927 | unsigned long ulongval () { return (long) (sizeof (size_t)); } | |
15928 | #include <stdio.h> | |
15929 | #include <stdlib.h> | |
15930 | int | |
15931 | main () | |
15932 | { | |
15933 | ||
15934 | FILE *f = fopen ("conftest.val", "w"); | |
15935 | if (! f) | |
15936 | exit (1); | |
15937 | if (((long) (sizeof (size_t))) < 0) | |
15938 | { | |
15939 | long i = longval (); | |
15940 | if (i != ((long) (sizeof (size_t)))) | |
15941 | exit (1); | |
15942 | fprintf (f, "%ld\n", i); | |
15943 | } | |
15944 | else | |
15945 | { | |
15946 | unsigned long i = ulongval (); | |
15947 | if (i != ((long) (sizeof (size_t)))) | |
15948 | exit (1); | |
15949 | fprintf (f, "%lu\n", i); | |
15950 | } | |
15951 | exit (ferror (f) || fclose (f) != 0); | |
15952 | ||
15953 | ; | |
15954 | return 0; | |
15955 | } | |
15956 | _ACEOF | |
15957 | rm -f conftest$ac_exeext | |
15958 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15959 | (eval $ac_link) 2>&5 | |
15960 | ac_status=$? | |
15961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15962 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15964 | (eval $ac_try) 2>&5 | |
15965 | ac_status=$? | |
15966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15967 | (exit $ac_status); }; }; then | |
15968 | ac_cv_sizeof_size_t=`cat conftest.val` | |
15969 | else | |
15970 | echo "$as_me: program exited with status $ac_status" >&5 | |
15971 | echo "$as_me: failed program was:" >&5 | |
15972 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15973 | ||
15974 | ( exit $ac_status ) | |
15975 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
15976 | See \`config.log' for more details." >&5 | |
15977 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
15978 | See \`config.log' for more details." >&2;} | |
15979 | { (exit 1); exit 1; }; } | |
15980 | fi | |
15981 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
15982 | fi | |
15983 | fi | |
15984 | rm -f conftest.val | |
15985 | else | |
15986 | ac_cv_sizeof_size_t=0 | |
15987 | fi | |
15988 | fi | |
15989 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 | |
15990 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6 | |
15991 | cat >>confdefs.h <<_ACEOF | |
15992 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | |
15993 | _ACEOF | |
15994 | ||
15995 | ||
a0b9e27f MB |
15996 | |
15997 | case "${host}" in | |
15998 | arm-*-linux* ) | |
e6cc62c6 VS |
15999 | echo "$as_me:$LINENO: checking for long long" >&5 |
16000 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
16001 | if test "${ac_cv_type_long_long+set}" = set; then | |
16002 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16003 | else | |
16004 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 16005 | #line $LINENO "configure" |
e6cc62c6 VS |
16006 | /* confdefs.h. */ |
16007 | _ACEOF | |
16008 | cat confdefs.h >>conftest.$ac_ext | |
16009 | cat >>conftest.$ac_ext <<_ACEOF | |
16010 | /* end confdefs.h. */ | |
16011 | $ac_includes_default | |
16012 | int | |
16013 | main () | |
16014 | { | |
16015 | if ((long long *) 0) | |
16016 | return 0; | |
16017 | if (sizeof (long long)) | |
16018 | return 0; | |
16019 | ; | |
16020 | return 0; | |
16021 | } | |
16022 | _ACEOF | |
16023 | rm -f conftest.$ac_objext | |
16024 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 16025 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
16026 | ac_status=$? |
16027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16028 | (exit $ac_status); } && | |
789c5f4a | 16029 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
16030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16031 | (eval $ac_try) 2>&5 | |
16032 | ac_status=$? | |
16033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16034 | (exit $ac_status); }; }; then | |
16035 | ac_cv_type_long_long=yes | |
16036 | else | |
16037 | echo "$as_me: failed program was:" >&5 | |
16038 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16039 | ||
16040 | ac_cv_type_long_long=no | |
16041 | fi | |
789c5f4a | 16042 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16043 | fi |
16044 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
16045 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
16046 | ||
16047 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
16048 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
16049 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
16050 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16051 | else | |
16052 | if test "$ac_cv_type_long_long" = yes; then | |
16053 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16054 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16055 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16056 | # This bug is HP SR number 8606223364. | |
a0b9e27f | 16057 | if test "$cross_compiling" = yes; then |
e6cc62c6 VS |
16058 | # Depending upon the size, compute the lo and hi bounds. |
16059 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 16060 | #line $LINENO "configure" |
e6cc62c6 VS |
16061 | /* confdefs.h. */ |
16062 | _ACEOF | |
16063 | cat confdefs.h >>conftest.$ac_ext | |
16064 | cat >>conftest.$ac_ext <<_ACEOF | |
16065 | /* end confdefs.h. */ | |
16066 | $ac_includes_default | |
16067 | int | |
16068 | main () | |
16069 | { | |
16070 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
16071 | test_array [0] = 0 | |
16072 | ||
16073 | ; | |
16074 | return 0; | |
16075 | } | |
16076 | _ACEOF | |
16077 | rm -f conftest.$ac_objext | |
16078 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 16079 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
16080 | ac_status=$? |
16081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16082 | (exit $ac_status); } && | |
789c5f4a | 16083 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
16084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16085 | (eval $ac_try) 2>&5 | |
16086 | ac_status=$? | |
16087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16088 | (exit $ac_status); }; }; then | |
16089 | ac_lo=0 ac_mid=0 | |
16090 | while :; do | |
16091 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 16092 | #line $LINENO "configure" |
e6cc62c6 VS |
16093 | /* confdefs.h. */ |
16094 | _ACEOF | |
16095 | cat confdefs.h >>conftest.$ac_ext | |
16096 | cat >>conftest.$ac_ext <<_ACEOF | |
16097 | /* end confdefs.h. */ | |
16098 | $ac_includes_default | |
16099 | int | |
16100 | main () | |
16101 | { | |
16102 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
16103 | test_array [0] = 0 | |
16104 | ||
16105 | ; | |
16106 | return 0; | |
16107 | } | |
16108 | _ACEOF | |
16109 | rm -f conftest.$ac_objext | |
16110 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 16111 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
16112 | ac_status=$? |
16113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16114 | (exit $ac_status); } && | |
789c5f4a | 16115 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
16116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16117 | (eval $ac_try) 2>&5 | |
16118 | ac_status=$? | |
16119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16120 | (exit $ac_status); }; }; then | |
16121 | ac_hi=$ac_mid; break | |
16122 | else | |
16123 | echo "$as_me: failed program was:" >&5 | |
16124 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16125 | ||
16126 | ac_lo=`expr $ac_mid + 1` | |
789c5f4a VZ |
16127 | if test $ac_lo -le $ac_mid; then |
16128 | ac_lo= ac_hi= | |
16129 | break | |
16130 | fi | |
16131 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
e6cc62c6 | 16132 | fi |
789c5f4a | 16133 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16134 | done |
16135 | else | |
16136 | echo "$as_me: failed program was:" >&5 | |
16137 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16138 | ||
16139 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 16140 | #line $LINENO "configure" |
e6cc62c6 VS |
16141 | /* confdefs.h. */ |
16142 | _ACEOF | |
16143 | cat confdefs.h >>conftest.$ac_ext | |
16144 | cat >>conftest.$ac_ext <<_ACEOF | |
16145 | /* end confdefs.h. */ | |
16146 | $ac_includes_default | |
16147 | int | |
16148 | main () | |
16149 | { | |
16150 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
16151 | test_array [0] = 0 | |
16152 | ||
16153 | ; | |
16154 | return 0; | |
16155 | } | |
16156 | _ACEOF | |
16157 | rm -f conftest.$ac_objext | |
16158 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 16159 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
16160 | ac_status=$? |
16161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16162 | (exit $ac_status); } && | |
789c5f4a | 16163 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
16164 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16165 | (eval $ac_try) 2>&5 | |
16166 | ac_status=$? | |
16167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16168 | (exit $ac_status); }; }; then | |
16169 | ac_hi=-1 ac_mid=-1 | |
16170 | while :; do | |
16171 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 16172 | #line $LINENO "configure" |
e6cc62c6 VS |
16173 | /* confdefs.h. */ |
16174 | _ACEOF | |
16175 | cat confdefs.h >>conftest.$ac_ext | |
16176 | cat >>conftest.$ac_ext <<_ACEOF | |
16177 | /* end confdefs.h. */ | |
16178 | $ac_includes_default | |
16179 | int | |
16180 | main () | |
16181 | { | |
16182 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
16183 | test_array [0] = 0 | |
16184 | ||
16185 | ; | |
16186 | return 0; | |
16187 | } | |
16188 | _ACEOF | |
16189 | rm -f conftest.$ac_objext | |
16190 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 16191 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
16192 | ac_status=$? |
16193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16194 | (exit $ac_status); } && | |
789c5f4a | 16195 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
16196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16197 | (eval $ac_try) 2>&5 | |
16198 | ac_status=$? | |
16199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16200 | (exit $ac_status); }; }; then | |
16201 | ac_lo=$ac_mid; break | |
16202 | else | |
16203 | echo "$as_me: failed program was:" >&5 | |
16204 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16205 | ||
16206 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
789c5f4a VZ |
16207 | if test $ac_mid -le $ac_hi; then |
16208 | ac_lo= ac_hi= | |
16209 | break | |
16210 | fi | |
16211 | ac_mid=`expr 2 '*' $ac_mid` | |
e6cc62c6 | 16212 | fi |
789c5f4a | 16213 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16214 | done |
16215 | else | |
16216 | echo "$as_me: failed program was:" >&5 | |
16217 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16218 | ||
16219 | ac_lo= ac_hi= | |
16220 | fi | |
789c5f4a | 16221 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 16222 | fi |
789c5f4a | 16223 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16224 | # Binary search between lo and hi bounds. |
16225 | while test "x$ac_lo" != "x$ac_hi"; do | |
16226 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16227 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 16228 | #line $LINENO "configure" |
e6cc62c6 VS |
16229 | /* confdefs.h. */ |
16230 | _ACEOF | |
16231 | cat confdefs.h >>conftest.$ac_ext | |
16232 | cat >>conftest.$ac_ext <<_ACEOF | |
16233 | /* end confdefs.h. */ | |
16234 | $ac_includes_default | |
16235 | int | |
16236 | main () | |
16237 | { | |
16238 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
16239 | test_array [0] = 0 | |
16240 | ||
16241 | ; | |
16242 | return 0; | |
16243 | } | |
16244 | _ACEOF | |
16245 | rm -f conftest.$ac_objext | |
16246 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 16247 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
16248 | ac_status=$? |
16249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16250 | (exit $ac_status); } && | |
789c5f4a | 16251 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
16252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16253 | (eval $ac_try) 2>&5 | |
16254 | ac_status=$? | |
16255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16256 | (exit $ac_status); }; }; then | |
16257 | ac_hi=$ac_mid | |
16258 | else | |
16259 | echo "$as_me: failed program was:" >&5 | |
16260 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16261 | ||
16262 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16263 | fi | |
789c5f4a | 16264 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16265 | done |
16266 | case $ac_lo in | |
16267 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
16268 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
16269 | See \`config.log' for more details." >&5 | |
16270 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
16271 | See \`config.log' for more details." >&2;} | |
16272 | { (exit 1); exit 1; }; } ;; | |
16273 | esac | |
a0b9e27f | 16274 | else |
e6cc62c6 VS |
16275 | if test "$cross_compiling" = yes; then |
16276 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
16277 | See \`config.log' for more details." >&5 | |
16278 | echo "$as_me: error: cannot run test program while cross compiling | |
16279 | See \`config.log' for more details." >&2;} | |
16280 | { (exit 1); exit 1; }; } | |
16281 | else | |
16282 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 16283 | #line $LINENO "configure" |
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 | long longval () { return (long) (sizeof (long long)); } | |
16291 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
a0b9e27f | 16292 | #include <stdio.h> |
e6cc62c6 VS |
16293 | #include <stdlib.h> |
16294 | int | |
16295 | main () | |
247f5006 | 16296 | { |
e6cc62c6 VS |
16297 | |
16298 | FILE *f = fopen ("conftest.val", "w"); | |
16299 | if (! f) | |
16300 | exit (1); | |
16301 | if (((long) (sizeof (long long))) < 0) | |
16302 | { | |
16303 | long i = longval (); | |
16304 | if (i != ((long) (sizeof (long long)))) | |
16305 | exit (1); | |
16306 | fprintf (f, "%ld\n", i); | |
16307 | } | |
16308 | else | |
16309 | { | |
16310 | unsigned long i = ulongval (); | |
16311 | if (i != ((long) (sizeof (long long)))) | |
16312 | exit (1); | |
16313 | fprintf (f, "%lu\n", i); | |
16314 | } | |
16315 | exit (ferror (f) || fclose (f) != 0); | |
16316 | ||
16317 | ; | |
16318 | return 0; | |
247f5006 | 16319 | } |
e6cc62c6 VS |
16320 | _ACEOF |
16321 | rm -f conftest$ac_exeext | |
16322 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16323 | (eval $ac_link) 2>&5 | |
16324 | ac_status=$? | |
16325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16326 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16328 | (eval $ac_try) 2>&5 | |
16329 | ac_status=$? | |
16330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16331 | (exit $ac_status); }; }; then | |
16332 | ac_cv_sizeof_long_long=`cat conftest.val` | |
16333 | else | |
16334 | echo "$as_me: program exited with status $ac_status" >&5 | |
16335 | echo "$as_me: failed program was:" >&5 | |
16336 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16337 | ||
16338 | ( exit $ac_status ) | |
16339 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
16340 | See \`config.log' for more details." >&5 | |
16341 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
16342 | See \`config.log' for more details." >&2;} | |
16343 | { (exit 1); exit 1; }; } | |
16344 | fi | |
789c5f4a | 16345 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16346 | fi |
16347 | fi | |
16348 | rm -f conftest.val | |
7b4a847f | 16349 | else |
a0b9e27f | 16350 | ac_cv_sizeof_long_long=0 |
5c6fa7d2 RR |
16351 | fi |
16352 | fi | |
e6cc62c6 VS |
16353 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
16354 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
16355 | cat >>confdefs.h <<_ACEOF | |
16356 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
16357 | _ACEOF | |
16358 | ||
16359 | ||
16360 | ;; | |
16361 | *-hp-hpux* ) | |
16362 | echo "$as_me:$LINENO: checking for long long" >&5 | |
16363 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
16364 | if test "${ac_cv_type_long_long+set}" = set; then | |
16365 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16366 | else | |
16367 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 16368 | #line $LINENO "configure" |
e6cc62c6 VS |
16369 | /* confdefs.h. */ |
16370 | _ACEOF | |
16371 | cat confdefs.h >>conftest.$ac_ext | |
16372 | cat >>conftest.$ac_ext <<_ACEOF | |
16373 | /* end confdefs.h. */ | |
16374 | $ac_includes_default | |
16375 | int | |
16376 | main () | |
16377 | { | |
16378 | if ((long long *) 0) | |
16379 | return 0; | |
16380 | if (sizeof (long long)) | |
16381 | return 0; | |
16382 | ; | |
16383 | return 0; | |
16384 | } | |
16385 | _ACEOF | |
16386 | rm -f conftest.$ac_objext | |
16387 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 16388 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
16389 | ac_status=$? |
16390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16391 | (exit $ac_status); } && | |
789c5f4a | 16392 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
16393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16394 | (eval $ac_try) 2>&5 | |
16395 | ac_status=$? | |
16396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16397 | (exit $ac_status); }; }; then | |
16398 | ac_cv_type_long_long=yes | |
16399 | else | |
16400 | echo "$as_me: failed program was:" >&5 | |
16401 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16402 | ||
16403 | ac_cv_type_long_long=no | |
16404 | fi | |
789c5f4a | 16405 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16406 | fi |
16407 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
16408 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
16409 | ||
16410 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
16411 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
16412 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
16413 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16414 | else | |
16415 | if test "$ac_cv_type_long_long" = yes; then | |
16416 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16417 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16418 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16419 | # This bug is HP SR number 8606223364. | |
16420 | if test "$cross_compiling" = yes; then | |
16421 | # Depending upon the size, compute the lo and hi bounds. | |
16422 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 16423 | #line $LINENO "configure" |
e6cc62c6 VS |
16424 | /* confdefs.h. */ |
16425 | _ACEOF | |
16426 | cat confdefs.h >>conftest.$ac_ext | |
16427 | cat >>conftest.$ac_ext <<_ACEOF | |
16428 | /* end confdefs.h. */ | |
16429 | $ac_includes_default | |
16430 | int | |
16431 | main () | |
16432 | { | |
16433 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
16434 | test_array [0] = 0 | |
16435 | ||
16436 | ; | |
16437 | return 0; | |
16438 | } | |
16439 | _ACEOF | |
16440 | rm -f conftest.$ac_objext | |
16441 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 16442 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
16443 | ac_status=$? |
16444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16445 | (exit $ac_status); } && | |
789c5f4a | 16446 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
16447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16448 | (eval $ac_try) 2>&5 | |
16449 | ac_status=$? | |
16450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16451 | (exit $ac_status); }; }; then | |
16452 | ac_lo=0 ac_mid=0 | |
16453 | while :; do | |
16454 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 16455 | #line $LINENO "configure" |
e6cc62c6 VS |
16456 | /* confdefs.h. */ |
16457 | _ACEOF | |
16458 | cat confdefs.h >>conftest.$ac_ext | |
16459 | cat >>conftest.$ac_ext <<_ACEOF | |
16460 | /* end confdefs.h. */ | |
16461 | $ac_includes_default | |
16462 | int | |
16463 | main () | |
16464 | { | |
16465 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
16466 | test_array [0] = 0 | |
8284b0c5 | 16467 | |
e6cc62c6 VS |
16468 | ; |
16469 | return 0; | |
16470 | } | |
16471 | _ACEOF | |
16472 | rm -f conftest.$ac_objext | |
16473 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 16474 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
16475 | ac_status=$? |
16476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16477 | (exit $ac_status); } && | |
789c5f4a | 16478 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
16479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16480 | (eval $ac_try) 2>&5 | |
16481 | ac_status=$? | |
16482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16483 | (exit $ac_status); }; }; then | |
16484 | ac_hi=$ac_mid; break | |
16485 | else | |
16486 | echo "$as_me: failed program was:" >&5 | |
16487 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16488 | ||
16489 | ac_lo=`expr $ac_mid + 1` | |
789c5f4a VZ |
16490 | if test $ac_lo -le $ac_mid; then |
16491 | ac_lo= ac_hi= | |
16492 | break | |
16493 | fi | |
16494 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a0b9e27f | 16495 | fi |
789c5f4a | 16496 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16497 | done |
16498 | else | |
16499 | echo "$as_me: failed program was:" >&5 | |
16500 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16501 | ||
16502 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 16503 | #line $LINENO "configure" |
e6cc62c6 VS |
16504 | /* confdefs.h. */ |
16505 | _ACEOF | |
16506 | cat confdefs.h >>conftest.$ac_ext | |
16507 | cat >>conftest.$ac_ext <<_ACEOF | |
16508 | /* end confdefs.h. */ | |
16509 | $ac_includes_default | |
16510 | int | |
16511 | main () | |
16512 | { | |
16513 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
16514 | test_array [0] = 0 | |
a0b9e27f | 16515 | |
e6cc62c6 VS |
16516 | ; |
16517 | return 0; | |
16518 | } | |
16519 | _ACEOF | |
16520 | rm -f conftest.$ac_objext | |
16521 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 16522 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
16523 | ac_status=$? |
16524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16525 | (exit $ac_status); } && | |
789c5f4a | 16526 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
16527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16528 | (eval $ac_try) 2>&5 | |
16529 | ac_status=$? | |
16530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16531 | (exit $ac_status); }; }; then | |
16532 | ac_hi=-1 ac_mid=-1 | |
16533 | while :; do | |
16534 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 16535 | #line $LINENO "configure" |
e6cc62c6 VS |
16536 | /* confdefs.h. */ |
16537 | _ACEOF | |
16538 | cat confdefs.h >>conftest.$ac_ext | |
16539 | cat >>conftest.$ac_ext <<_ACEOF | |
16540 | /* end confdefs.h. */ | |
16541 | $ac_includes_default | |
16542 | int | |
16543 | main () | |
16544 | { | |
16545 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
16546 | test_array [0] = 0 | |
a0b9e27f | 16547 | |
e6cc62c6 VS |
16548 | ; |
16549 | return 0; | |
16550 | } | |
16551 | _ACEOF | |
16552 | rm -f conftest.$ac_objext | |
16553 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 16554 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
16555 | ac_status=$? |
16556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16557 | (exit $ac_status); } && | |
789c5f4a | 16558 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
16559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16560 | (eval $ac_try) 2>&5 | |
16561 | ac_status=$? | |
16562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16563 | (exit $ac_status); }; }; then | |
16564 | ac_lo=$ac_mid; break | |
16565 | else | |
16566 | echo "$as_me: failed program was:" >&5 | |
16567 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16568 | ||
16569 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
789c5f4a VZ |
16570 | if test $ac_mid -le $ac_hi; then |
16571 | ac_lo= ac_hi= | |
16572 | break | |
16573 | fi | |
16574 | ac_mid=`expr 2 '*' $ac_mid` | |
e6cc62c6 | 16575 | fi |
789c5f4a | 16576 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 16577 | done |
8284b0c5 | 16578 | else |
e6cc62c6 VS |
16579 | echo "$as_me: failed program was:" >&5 |
16580 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16581 | ||
16582 | ac_lo= ac_hi= | |
16583 | fi | |
789c5f4a | 16584 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 16585 | fi |
789c5f4a | 16586 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16587 | # Binary search between lo and hi bounds. |
16588 | while test "x$ac_lo" != "x$ac_hi"; do | |
16589 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16590 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 16591 | #line $LINENO "configure" |
e6cc62c6 VS |
16592 | /* confdefs.h. */ |
16593 | _ACEOF | |
16594 | cat confdefs.h >>conftest.$ac_ext | |
16595 | cat >>conftest.$ac_ext <<_ACEOF | |
16596 | /* end confdefs.h. */ | |
16597 | $ac_includes_default | |
16598 | int | |
16599 | main () | |
16600 | { | |
16601 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
16602 | test_array [0] = 0 | |
16603 | ||
16604 | ; | |
16605 | return 0; | |
16606 | } | |
16607 | _ACEOF | |
16608 | rm -f conftest.$ac_objext | |
16609 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 16610 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
16611 | ac_status=$? |
16612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16613 | (exit $ac_status); } && | |
789c5f4a | 16614 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
16615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16616 | (eval $ac_try) 2>&5 | |
16617 | ac_status=$? | |
16618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16619 | (exit $ac_status); }; }; then | |
16620 | ac_hi=$ac_mid | |
16621 | else | |
16622 | echo "$as_me: failed program was:" >&5 | |
16623 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16624 | ||
16625 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16626 | fi | |
789c5f4a | 16627 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16628 | done |
16629 | case $ac_lo in | |
16630 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
16631 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
16632 | See \`config.log' for more details." >&5 | |
16633 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
16634 | See \`config.log' for more details." >&2;} | |
16635 | { (exit 1); exit 1; }; } ;; | |
16636 | esac | |
8284b0c5 | 16637 | else |
e6cc62c6 VS |
16638 | if test "$cross_compiling" = yes; then |
16639 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
16640 | See \`config.log' for more details." >&5 | |
16641 | echo "$as_me: error: cannot run test program while cross compiling | |
16642 | See \`config.log' for more details." >&2;} | |
16643 | { (exit 1); exit 1; }; } | |
16644 | else | |
16645 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 16646 | #line $LINENO "configure" |
e6cc62c6 VS |
16647 | /* confdefs.h. */ |
16648 | _ACEOF | |
16649 | cat confdefs.h >>conftest.$ac_ext | |
16650 | cat >>conftest.$ac_ext <<_ACEOF | |
16651 | /* end confdefs.h. */ | |
16652 | $ac_includes_default | |
16653 | long longval () { return (long) (sizeof (long long)); } | |
16654 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
8284b0c5 | 16655 | #include <stdio.h> |
e6cc62c6 VS |
16656 | #include <stdlib.h> |
16657 | int | |
16658 | main () | |
8284b0c5 | 16659 | { |
e6cc62c6 VS |
16660 | |
16661 | FILE *f = fopen ("conftest.val", "w"); | |
16662 | if (! f) | |
16663 | exit (1); | |
16664 | if (((long) (sizeof (long long))) < 0) | |
16665 | { | |
16666 | long i = longval (); | |
16667 | if (i != ((long) (sizeof (long long)))) | |
16668 | exit (1); | |
16669 | fprintf (f, "%ld\n", i); | |
16670 | } | |
16671 | else | |
16672 | { | |
16673 | unsigned long i = ulongval (); | |
16674 | if (i != ((long) (sizeof (long long)))) | |
16675 | exit (1); | |
16676 | fprintf (f, "%lu\n", i); | |
16677 | } | |
16678 | exit (ferror (f) || fclose (f) != 0); | |
16679 | ||
16680 | ; | |
16681 | return 0; | |
8284b0c5 | 16682 | } |
e6cc62c6 VS |
16683 | _ACEOF |
16684 | rm -f conftest$ac_exeext | |
16685 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16686 | (eval $ac_link) 2>&5 | |
16687 | ac_status=$? | |
16688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16689 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16691 | (eval $ac_try) 2>&5 | |
16692 | ac_status=$? | |
16693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16694 | (exit $ac_status); }; }; then | |
16695 | ac_cv_sizeof_long_long=`cat conftest.val` | |
16696 | else | |
16697 | echo "$as_me: program exited with status $ac_status" >&5 | |
16698 | echo "$as_me: failed program was:" >&5 | |
16699 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16700 | ||
16701 | ( exit $ac_status ) | |
16702 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
16703 | See \`config.log' for more details." >&5 | |
16704 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
16705 | See \`config.log' for more details." >&2;} | |
16706 | { (exit 1); exit 1; }; } | |
16707 | fi | |
789c5f4a | 16708 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16709 | fi |
16710 | fi | |
16711 | rm -f conftest.val | |
5c6fa7d2 RR |
16712 | else |
16713 | ac_cv_sizeof_long_long=0 | |
52127426 | 16714 | fi |
4f57cf11 | 16715 | fi |
e6cc62c6 VS |
16716 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
16717 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
16718 | cat >>confdefs.h <<_ACEOF | |
4f57cf11 | 16719 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
e6cc62c6 | 16720 | _ACEOF |
4f57cf11 GD |
16721 | |
16722 | ||
16723 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
16724 | CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG" | |
16725 | fi | |
16726 | ;; | |
16727 | * ) | |
e6cc62c6 VS |
16728 | echo "$as_me:$LINENO: checking for long long" >&5 |
16729 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
16730 | if test "${ac_cv_type_long_long+set}" = set; then | |
16731 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16732 | else | |
16733 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 16734 | #line $LINENO "configure" |
e6cc62c6 VS |
16735 | /* confdefs.h. */ |
16736 | _ACEOF | |
16737 | cat confdefs.h >>conftest.$ac_ext | |
16738 | cat >>conftest.$ac_ext <<_ACEOF | |
16739 | /* end confdefs.h. */ | |
16740 | $ac_includes_default | |
16741 | int | |
16742 | main () | |
16743 | { | |
16744 | if ((long long *) 0) | |
16745 | return 0; | |
16746 | if (sizeof (long long)) | |
16747 | return 0; | |
16748 | ; | |
16749 | return 0; | |
16750 | } | |
16751 | _ACEOF | |
16752 | rm -f conftest.$ac_objext | |
16753 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 16754 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
16755 | ac_status=$? |
16756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16757 | (exit $ac_status); } && | |
789c5f4a | 16758 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
16759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16760 | (eval $ac_try) 2>&5 | |
16761 | ac_status=$? | |
16762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16763 | (exit $ac_status); }; }; then | |
16764 | ac_cv_type_long_long=yes | |
16765 | else | |
16766 | echo "$as_me: failed program was:" >&5 | |
16767 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16768 | ||
16769 | ac_cv_type_long_long=no | |
16770 | fi | |
789c5f4a | 16771 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16772 | fi |
16773 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
16774 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
16775 | ||
16776 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
16777 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
16778 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
16779 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16780 | else | |
16781 | if test "$ac_cv_type_long_long" = yes; then | |
16782 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16783 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16784 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16785 | # This bug is HP SR number 8606223364. | |
4f57cf11 | 16786 | if test "$cross_compiling" = yes; then |
e6cc62c6 VS |
16787 | # Depending upon the size, compute the lo and hi bounds. |
16788 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 16789 | #line $LINENO "configure" |
e6cc62c6 VS |
16790 | /* confdefs.h. */ |
16791 | _ACEOF | |
16792 | cat confdefs.h >>conftest.$ac_ext | |
16793 | cat >>conftest.$ac_ext <<_ACEOF | |
16794 | /* end confdefs.h. */ | |
16795 | $ac_includes_default | |
16796 | int | |
16797 | main () | |
16798 | { | |
16799 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
16800 | test_array [0] = 0 | |
16801 | ||
16802 | ; | |
16803 | return 0; | |
16804 | } | |
16805 | _ACEOF | |
16806 | rm -f conftest.$ac_objext | |
16807 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 16808 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
16809 | ac_status=$? |
16810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16811 | (exit $ac_status); } && | |
789c5f4a | 16812 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
16813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16814 | (eval $ac_try) 2>&5 | |
16815 | ac_status=$? | |
16816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16817 | (exit $ac_status); }; }; then | |
16818 | ac_lo=0 ac_mid=0 | |
16819 | while :; do | |
16820 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 16821 | #line $LINENO "configure" |
e6cc62c6 VS |
16822 | /* confdefs.h. */ |
16823 | _ACEOF | |
16824 | cat confdefs.h >>conftest.$ac_ext | |
16825 | cat >>conftest.$ac_ext <<_ACEOF | |
16826 | /* end confdefs.h. */ | |
16827 | $ac_includes_default | |
16828 | int | |
16829 | main () | |
16830 | { | |
16831 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
16832 | test_array [0] = 0 | |
16833 | ||
16834 | ; | |
16835 | return 0; | |
16836 | } | |
16837 | _ACEOF | |
16838 | rm -f conftest.$ac_objext | |
16839 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 16840 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
16841 | ac_status=$? |
16842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16843 | (exit $ac_status); } && | |
789c5f4a | 16844 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
16845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16846 | (eval $ac_try) 2>&5 | |
16847 | ac_status=$? | |
16848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16849 | (exit $ac_status); }; }; then | |
16850 | ac_hi=$ac_mid; break | |
16851 | else | |
16852 | echo "$as_me: failed program was:" >&5 | |
16853 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16854 | ||
16855 | ac_lo=`expr $ac_mid + 1` | |
789c5f4a VZ |
16856 | if test $ac_lo -le $ac_mid; then |
16857 | ac_lo= ac_hi= | |
16858 | break | |
16859 | fi | |
16860 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
e6cc62c6 | 16861 | fi |
789c5f4a | 16862 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16863 | done |
16864 | else | |
16865 | echo "$as_me: failed program was:" >&5 | |
16866 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16867 | ||
16868 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 16869 | #line $LINENO "configure" |
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 | int | |
16877 | main () | |
16878 | { | |
16879 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
16880 | test_array [0] = 0 | |
16881 | ||
16882 | ; | |
16883 | return 0; | |
16884 | } | |
16885 | _ACEOF | |
16886 | rm -f conftest.$ac_objext | |
16887 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 16888 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
16889 | ac_status=$? |
16890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16891 | (exit $ac_status); } && | |
789c5f4a | 16892 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
16893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16894 | (eval $ac_try) 2>&5 | |
16895 | ac_status=$? | |
16896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16897 | (exit $ac_status); }; }; then | |
16898 | ac_hi=-1 ac_mid=-1 | |
16899 | while :; do | |
16900 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 16901 | #line $LINENO "configure" |
e6cc62c6 VS |
16902 | /* confdefs.h. */ |
16903 | _ACEOF | |
16904 | cat confdefs.h >>conftest.$ac_ext | |
16905 | cat >>conftest.$ac_ext <<_ACEOF | |
16906 | /* end confdefs.h. */ | |
16907 | $ac_includes_default | |
16908 | int | |
16909 | main () | |
16910 | { | |
16911 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
16912 | test_array [0] = 0 | |
16913 | ||
16914 | ; | |
16915 | return 0; | |
16916 | } | |
16917 | _ACEOF | |
16918 | rm -f conftest.$ac_objext | |
16919 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 16920 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
16921 | ac_status=$? |
16922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16923 | (exit $ac_status); } && | |
789c5f4a | 16924 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
16925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16926 | (eval $ac_try) 2>&5 | |
16927 | ac_status=$? | |
16928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16929 | (exit $ac_status); }; }; then | |
16930 | ac_lo=$ac_mid; break | |
16931 | else | |
16932 | echo "$as_me: failed program was:" >&5 | |
16933 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16934 | ||
16935 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
789c5f4a VZ |
16936 | if test $ac_mid -le $ac_hi; then |
16937 | ac_lo= ac_hi= | |
16938 | break | |
16939 | fi | |
16940 | ac_mid=`expr 2 '*' $ac_mid` | |
e6cc62c6 | 16941 | fi |
789c5f4a | 16942 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 16943 | done |
4f57cf11 | 16944 | else |
e6cc62c6 VS |
16945 | echo "$as_me: failed program was:" >&5 |
16946 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16947 | ||
16948 | ac_lo= ac_hi= | |
16949 | fi | |
789c5f4a | 16950 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 16951 | fi |
789c5f4a | 16952 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16953 | # Binary search between lo and hi bounds. |
16954 | while test "x$ac_lo" != "x$ac_hi"; do | |
16955 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16956 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 16957 | #line $LINENO "configure" |
e6cc62c6 VS |
16958 | /* confdefs.h. */ |
16959 | _ACEOF | |
16960 | cat confdefs.h >>conftest.$ac_ext | |
16961 | cat >>conftest.$ac_ext <<_ACEOF | |
16962 | /* end confdefs.h. */ | |
16963 | $ac_includes_default | |
16964 | int | |
16965 | main () | |
16966 | { | |
16967 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
16968 | test_array [0] = 0 | |
16969 | ||
16970 | ; | |
16971 | return 0; | |
16972 | } | |
16973 | _ACEOF | |
16974 | rm -f conftest.$ac_objext | |
16975 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 16976 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
16977 | ac_status=$? |
16978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16979 | (exit $ac_status); } && | |
789c5f4a | 16980 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
16981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16982 | (eval $ac_try) 2>&5 | |
16983 | ac_status=$? | |
16984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16985 | (exit $ac_status); }; }; then | |
16986 | ac_hi=$ac_mid | |
16987 | else | |
16988 | echo "$as_me: failed program was:" >&5 | |
16989 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16990 | ||
16991 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16992 | fi | |
789c5f4a | 16993 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16994 | done |
16995 | case $ac_lo in | |
16996 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
16997 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
16998 | See \`config.log' for more details." >&5 | |
16999 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17000 | See \`config.log' for more details." >&2;} | |
17001 | { (exit 1); exit 1; }; } ;; | |
17002 | esac | |
17003 | else | |
17004 | if test "$cross_compiling" = yes; then | |
17005 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
17006 | See \`config.log' for more details." >&5 | |
17007 | echo "$as_me: error: cannot run test program while cross compiling | |
17008 | See \`config.log' for more details." >&2;} | |
17009 | { (exit 1); exit 1; }; } | |
17010 | else | |
17011 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 17012 | #line $LINENO "configure" |
e6cc62c6 VS |
17013 | /* confdefs.h. */ |
17014 | _ACEOF | |
17015 | cat confdefs.h >>conftest.$ac_ext | |
17016 | cat >>conftest.$ac_ext <<_ACEOF | |
17017 | /* end confdefs.h. */ | |
17018 | $ac_includes_default | |
17019 | long longval () { return (long) (sizeof (long long)); } | |
17020 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
4f57cf11 | 17021 | #include <stdio.h> |
e6cc62c6 VS |
17022 | #include <stdlib.h> |
17023 | int | |
17024 | main () | |
4f57cf11 | 17025 | { |
e6cc62c6 VS |
17026 | |
17027 | FILE *f = fopen ("conftest.val", "w"); | |
17028 | if (! f) | |
17029 | exit (1); | |
17030 | if (((long) (sizeof (long long))) < 0) | |
17031 | { | |
17032 | long i = longval (); | |
17033 | if (i != ((long) (sizeof (long long)))) | |
17034 | exit (1); | |
17035 | fprintf (f, "%ld\n", i); | |
17036 | } | |
17037 | else | |
17038 | { | |
17039 | unsigned long i = ulongval (); | |
17040 | if (i != ((long) (sizeof (long long)))) | |
17041 | exit (1); | |
17042 | fprintf (f, "%lu\n", i); | |
17043 | } | |
17044 | exit (ferror (f) || fclose (f) != 0); | |
17045 | ||
17046 | ; | |
17047 | return 0; | |
4f57cf11 | 17048 | } |
e6cc62c6 VS |
17049 | _ACEOF |
17050 | rm -f conftest$ac_exeext | |
17051 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17052 | (eval $ac_link) 2>&5 | |
17053 | ac_status=$? | |
17054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17055 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17057 | (eval $ac_try) 2>&5 | |
17058 | ac_status=$? | |
17059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17060 | (exit $ac_status); }; }; then | |
17061 | ac_cv_sizeof_long_long=`cat conftest.val` | |
17062 | else | |
17063 | echo "$as_me: program exited with status $ac_status" >&5 | |
17064 | echo "$as_me: failed program was:" >&5 | |
17065 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17066 | ||
17067 | ( exit $ac_status ) | |
17068 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17069 | See \`config.log' for more details." >&5 | |
17070 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17071 | See \`config.log' for more details." >&2;} | |
17072 | { (exit 1); exit 1; }; } | |
17073 | fi | |
789c5f4a | 17074 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
17075 | fi |
17076 | fi | |
17077 | rm -f conftest.val | |
4f57cf11 | 17078 | else |
4f57cf11 GD |
17079 | ac_cv_sizeof_long_long=0 |
17080 | fi | |
7b4a847f | 17081 | fi |
e6cc62c6 VS |
17082 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
17083 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
17084 | cat >>confdefs.h <<_ACEOF | |
21d1c967 | 17085 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
e6cc62c6 | 17086 | _ACEOF |
9e691f46 | 17087 | |
8284b0c5 | 17088 | |
21d1c967 GD |
17089 | esac |
17090 | ||
e6cc62c6 VS |
17091 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
17092 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 | |
17093 | if test "${wx_cv_sizeof_wchar_t+set}" = set; then | |
17094 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 17095 | else |
e6cc62c6 | 17096 | |
21d1c967 | 17097 | if test "$cross_compiling" = yes; then |
e6cc62c6 | 17098 | |
2b5f62a0 VZ |
17099 | case "${host}" in |
17100 | *-pc-msdosdjgpp ) | |
17101 | wx_cv_sizeof_wchar_t=0 | |
17102 | ;; | |
17103 | * ) | |
17104 | wx_cv_sizeof_wchar_t=4 | |
17105 | ;; | |
17106 | esac | |
e6cc62c6 VS |
17107 | |
17108 | ||
6f72b082 | 17109 | else |
e6cc62c6 | 17110 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 17111 | #line $LINENO "configure" |
e6cc62c6 VS |
17112 | /* confdefs.h. */ |
17113 | _ACEOF | |
17114 | cat confdefs.h >>conftest.$ac_ext | |
17115 | cat >>conftest.$ac_ext <<_ACEOF | |
17116 | /* end confdefs.h. */ | |
21d1c967 | 17117 | |
2b5f62a0 VZ |
17118 | /* DJGPP only has fake wchar_t: */ |
17119 | #ifdef __DJGPP__ | |
17120 | # error "fake wchar_t" | |
17121 | #endif | |
21d1c967 GD |
17122 | #ifdef HAVE_WCHAR_H |
17123 | # ifdef __CYGWIN__ | |
17124 | # include <stddef.h> | |
17125 | # endif | |
17126 | # include <wchar.h> | |
17127 | #endif | |
17128 | #ifdef HAVE_STDLIB_H | |
17129 | # include <stdlib.h> | |
17130 | #endif | |
17131 | #include <stdio.h> | |
17132 | int main() | |
17133 | { | |
17134 | FILE *f=fopen("conftestval", "w"); | |
17135 | if (!f) exit(1); | |
17136 | fprintf(f, "%i", sizeof(wchar_t)); | |
17137 | exit(0); | |
17138 | } | |
e6cc62c6 VS |
17139 | |
17140 | _ACEOF | |
17141 | rm -f conftest$ac_exeext | |
17142 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17143 | (eval $ac_link) 2>&5 | |
17144 | ac_status=$? | |
17145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17146 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17148 | (eval $ac_try) 2>&5 | |
17149 | ac_status=$? | |
17150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17151 | (exit $ac_status); }; }; then | |
21d1c967 | 17152 | wx_cv_sizeof_wchar_t=`cat conftestval` |
6f72b082 | 17153 | else |
e6cc62c6 VS |
17154 | echo "$as_me: program exited with status $ac_status" >&5 |
17155 | echo "$as_me: failed program was:" >&5 | |
17156 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17157 | ||
17158 | ( exit $ac_status ) | |
17159 | wx_cv_sizeof_wchar_t=0 | |
6f72b082 | 17160 | fi |
789c5f4a | 17161 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
6f72b082 | 17162 | fi |
6f72b082 | 17163 | |
3f345b47 | 17164 | fi |
e6cc62c6 VS |
17165 | echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5 |
17166 | echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6 | |
3f345b47 | 17167 | |
e6cc62c6 | 17168 | cat >>confdefs.h <<_ACEOF |
21d1c967 | 17169 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t |
e6cc62c6 | 17170 | _ACEOF |
90dd450c | 17171 | |
8284b0c5 | 17172 | |
21d1c967 GD |
17173 | # Check whether --enable-largefile or --disable-largefile was given. |
17174 | if test "${enable_largefile+set}" = set; then | |
17175 | enableval="$enable_largefile" | |
3f345b47 | 17176 | |
e6cc62c6 | 17177 | fi; |
21d1c967 GD |
17178 | if test "$enable_largefile" != no; then |
17179 | wx_largefile=no | |
e6cc62c6 VS |
17180 | |
17181 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
17182 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
17183 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
17184 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17185 | else | |
17186 | ||
17187 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 17188 | #line $LINENO "configure" |
e6cc62c6 VS |
17189 | /* confdefs.h. */ |
17190 | _ACEOF | |
17191 | cat confdefs.h >>conftest.$ac_ext | |
17192 | cat >>conftest.$ac_ext <<_ACEOF | |
17193 | /* end confdefs.h. */ | |
21d1c967 GD |
17194 | #define _FILE_OFFSET_BITS 64 |
17195 | #include <sys/types.h> | |
e6cc62c6 VS |
17196 | int |
17197 | main () | |
17198 | { | |
21d1c967 GD |
17199 | typedef struct { |
17200 | unsigned int field: sizeof(off_t) == 8; | |
17201 | } wxlf; | |
17202 | ||
e6cc62c6 VS |
17203 | ; |
17204 | return 0; | |
17205 | } | |
17206 | _ACEOF | |
17207 | rm -f conftest.$ac_objext | |
17208 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 17209 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
17210 | ac_status=$? |
17211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17212 | (exit $ac_status); } && | |
789c5f4a | 17213 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
17214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17215 | (eval $ac_try) 2>&5 | |
17216 | ac_status=$? | |
17217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17218 | (exit $ac_status); }; }; then | |
21d1c967 | 17219 | ac_cv_sys_file_offset_bits=64 |
f6bcfd97 | 17220 | else |
e6cc62c6 VS |
17221 | echo "$as_me: failed program was:" >&5 |
17222 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17223 | ||
17224 | ac_cv_sys_file_offset_bits=no | |
247f5006 | 17225 | fi |
789c5f4a | 17226 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 17227 | |
a0b9e27f | 17228 | |
e6cc62c6 VS |
17229 | fi |
17230 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
17231 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
21d1c967 GD |
17232 | |
17233 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
17234 | wx_largefile=yes | |
e6cc62c6 | 17235 | cat >>confdefs.h <<_ACEOF |
21d1c967 | 17236 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
e6cc62c6 | 17237 | _ACEOF |
21d1c967 GD |
17238 | |
17239 | fi | |
17240 | ||
17241 | if test "x$wx_largefile" != "xyes"; then | |
e6cc62c6 VS |
17242 | |
17243 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
17244 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
17245 | if test "${ac_cv_sys_large_files+set}" = set; then | |
17246 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17247 | else | |
17248 | ||
17249 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 17250 | #line $LINENO "configure" |
e6cc62c6 VS |
17251 | /* confdefs.h. */ |
17252 | _ACEOF | |
17253 | cat confdefs.h >>conftest.$ac_ext | |
17254 | cat >>conftest.$ac_ext <<_ACEOF | |
17255 | /* end confdefs.h. */ | |
21d1c967 GD |
17256 | #define _LARGE_FILES 1 |
17257 | #include <sys/types.h> | |
e6cc62c6 VS |
17258 | int |
17259 | main () | |
17260 | { | |
21d1c967 GD |
17261 | typedef struct { |
17262 | unsigned int field: sizeof(off_t) == 8; | |
17263 | } wxlf; | |
17264 | ||
e6cc62c6 VS |
17265 | ; |
17266 | return 0; | |
17267 | } | |
17268 | _ACEOF | |
17269 | rm -f conftest.$ac_objext | |
17270 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 17271 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
17272 | ac_status=$? |
17273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17274 | (exit $ac_status); } && | |
789c5f4a | 17275 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
17276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17277 | (eval $ac_try) 2>&5 | |
17278 | ac_status=$? | |
17279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17280 | (exit $ac_status); }; }; then | |
21d1c967 | 17281 | ac_cv_sys_large_files=1 |
f6bcfd97 | 17282 | else |
e6cc62c6 VS |
17283 | echo "$as_me: failed program was:" >&5 |
17284 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17285 | ||
17286 | ac_cv_sys_large_files=no | |
247f5006 | 17287 | fi |
789c5f4a | 17288 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 17289 | |
e6cc62c6 VS |
17290 | |
17291 | fi | |
17292 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
17293 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
3f345b47 | 17294 | |
21d1c967 GD |
17295 | if test "$ac_cv_sys_large_files" != no; then |
17296 | wx_largefile=yes | |
e6cc62c6 | 17297 | cat >>confdefs.h <<_ACEOF |
21d1c967 | 17298 | #define _LARGE_FILES $ac_cv_sys_large_files |
e6cc62c6 | 17299 | _ACEOF |
90dd450c | 17300 | |
90dd450c VZ |
17301 | fi |
17302 | ||
90dd450c | 17303 | fi |
90dd450c | 17304 | |
e6cc62c6 VS |
17305 | echo "$as_me:$LINENO: checking if large file support is available" >&5 |
17306 | echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6 | |
21d1c967 | 17307 | if test "x$wx_largefile" = "xyes"; then |
e6cc62c6 | 17308 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 17309 | #define HAVE_LARGEFILE_SUPPORT 1 |
e6cc62c6 | 17310 | _ACEOF |
90dd450c | 17311 | |
90dd450c | 17312 | fi |
e6cc62c6 VS |
17313 | echo "$as_me:$LINENO: result: $wx_largefile" >&5 |
17314 | echo "${ECHO_T}$wx_largefile" >&6 | |
21d1c967 | 17315 | fi |
90dd450c | 17316 | |
8284b0c5 | 17317 | |
f02444d0 | 17318 | if test "x$wx_largefile" = "xyes"; then |
e26c13cf RD |
17319 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then |
17320 | WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" | |
f02444d0 | 17321 | else |
e26c13cf | 17322 | WX_LARGEFILE_FLAGS="-D_LARGE_FILES" |
f02444d0 | 17323 | fi |
e26c13cf | 17324 | CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS" |
f02444d0 VZ |
17325 | fi |
17326 | ||
e6cc62c6 VS |
17327 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
17328 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
17329 | if test "${ac_cv_c_bigendian+set}" = set; then | |
17330 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 17331 | else |
21d1c967 GD |
17332 | ac_cv_c_bigendian=unknown |
17333 | # See if sys/param.h defines the BYTE_ORDER macro. | |
e6cc62c6 | 17334 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 17335 | #line $LINENO "configure" |
e6cc62c6 VS |
17336 | /* confdefs.h. */ |
17337 | _ACEOF | |
17338 | cat confdefs.h >>conftest.$ac_ext | |
17339 | cat >>conftest.$ac_ext <<_ACEOF | |
17340 | /* end confdefs.h. */ | |
21d1c967 GD |
17341 | #include <sys/types.h> |
17342 | #include <sys/param.h> | |
e6cc62c6 VS |
17343 | int |
17344 | main () | |
17345 | { | |
21d1c967 GD |
17346 | |
17347 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
17348 | bogus endian macros | |
17349 | #endif | |
e6cc62c6 VS |
17350 | ; |
17351 | return 0; | |
17352 | } | |
17353 | _ACEOF | |
17354 | rm -f conftest.$ac_objext | |
17355 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 17356 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
17357 | ac_status=$? |
17358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17359 | (exit $ac_status); } && | |
789c5f4a | 17360 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
17361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17362 | (eval $ac_try) 2>&5 | |
17363 | ac_status=$? | |
17364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17365 | (exit $ac_status); }; }; then | |
21d1c967 | 17366 | # It does; now see whether it defined to BIG_ENDIAN or not. |
e6cc62c6 | 17367 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 17368 | #line $LINENO "configure" |
e6cc62c6 VS |
17369 | /* confdefs.h. */ |
17370 | _ACEOF | |
17371 | cat confdefs.h >>conftest.$ac_ext | |
17372 | cat >>conftest.$ac_ext <<_ACEOF | |
17373 | /* end confdefs.h. */ | |
21d1c967 GD |
17374 | #include <sys/types.h> |
17375 | #include <sys/param.h> | |
e6cc62c6 VS |
17376 | int |
17377 | main () | |
17378 | { | |
21d1c967 GD |
17379 | |
17380 | #if BYTE_ORDER != BIG_ENDIAN | |
17381 | not big endian | |
17382 | #endif | |
e6cc62c6 VS |
17383 | ; |
17384 | return 0; | |
17385 | } | |
17386 | _ACEOF | |
17387 | rm -f conftest.$ac_objext | |
17388 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 17389 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
17390 | ac_status=$? |
17391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17392 | (exit $ac_status); } && | |
789c5f4a | 17393 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
17394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17395 | (eval $ac_try) 2>&5 | |
17396 | ac_status=$? | |
17397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17398 | (exit $ac_status); }; }; then | |
21d1c967 | 17399 | ac_cv_c_bigendian=yes |
3f345b47 | 17400 | else |
e6cc62c6 VS |
17401 | echo "$as_me: failed program was:" >&5 |
17402 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17403 | ||
17404 | ac_cv_c_bigendian=no | |
3f345b47 | 17405 | fi |
789c5f4a | 17406 | rm -f conftest.$ac_objext conftest.$ac_ext |
3f345b47 | 17407 | else |
e6cc62c6 VS |
17408 | echo "$as_me: failed program was:" >&5 |
17409 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17410 | ||
3f345b47 | 17411 | fi |
789c5f4a | 17412 | rm -f conftest.$ac_objext conftest.$ac_ext |
21d1c967 GD |
17413 | if test $ac_cv_c_bigendian = unknown; then |
17414 | if test "$cross_compiling" = yes; then | |
17415 | ac_cv_c_bigendian=unknown | |
10f2d63a | 17416 | else |
e6cc62c6 | 17417 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 17418 | #line $LINENO "configure" |
e6cc62c6 VS |
17419 | /* confdefs.h. */ |
17420 | _ACEOF | |
17421 | cat confdefs.h >>conftest.$ac_ext | |
17422 | cat >>conftest.$ac_ext <<_ACEOF | |
17423 | /* end confdefs.h. */ | |
21d1c967 GD |
17424 | main () { |
17425 | /* Are we little or big endian? From Harbison&Steele. */ | |
17426 | union | |
17427 | { | |
17428 | long l; | |
17429 | char c[sizeof (long)]; | |
17430 | } u; | |
17431 | u.l = 1; | |
17432 | exit (u.c[sizeof (long) - 1] == 1); | |
17433 | } | |
e6cc62c6 VS |
17434 | _ACEOF |
17435 | rm -f conftest$ac_exeext | |
17436 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17437 | (eval $ac_link) 2>&5 | |
17438 | ac_status=$? | |
17439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17440 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17442 | (eval $ac_try) 2>&5 | |
17443 | ac_status=$? | |
17444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17445 | (exit $ac_status); }; }; then | |
21d1c967 | 17446 | ac_cv_c_bigendian=no |
3f345b47 | 17447 | else |
e6cc62c6 VS |
17448 | echo "$as_me: program exited with status $ac_status" >&5 |
17449 | echo "$as_me: failed program was:" >&5 | |
17450 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17451 | ||
17452 | ( exit $ac_status ) | |
17453 | ac_cv_c_bigendian=yes | |
247f5006 | 17454 | fi |
789c5f4a | 17455 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
247f5006 | 17456 | fi |
3f345b47 | 17457 | fi |
8168de4c | 17458 | fi |
e6cc62c6 VS |
17459 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
17460 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
247f5006 | 17461 | if test $ac_cv_c_bigendian = unknown; then |
e6cc62c6 VS |
17462 | { 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 |
17463 | 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 |
17464 | fi |
17465 | if test $ac_cv_c_bigendian = yes; then | |
e6cc62c6 | 17466 | cat >>confdefs.h <<\_ACEOF |
247f5006 | 17467 | #define WORDS_BIGENDIAN 1 |
e6cc62c6 | 17468 | _ACEOF |
247f5006 VZ |
17469 | |
17470 | fi | |
17471 | ||
17472 | ||
e6cc62c6 VS |
17473 | ac_ext=cc |
17474 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17475 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17476 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17477 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17478 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
17479 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
247f5006 | 17480 | if test -z "$CXXCPP"; then |
e6cc62c6 VS |
17481 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
17482 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17483 | else | |
17484 | # Double quotes because CXXCPP needs to be expanded | |
17485 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
17486 | do | |
17487 | ac_preproc_ok=false | |
17488 | for ac_cxx_preproc_warn_flag in '' yes | |
17489 | do | |
17490 | # Use a header file that comes with gcc, so configuring glibc | |
17491 | # with a fresh cross-compiler works. | |
17492 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17493 | # <limits.h> exists even on freestanding compilers. | |
17494 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
17495 | # not just through cpp. "Syntax error" is here to catch this case. | |
17496 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 17497 | #line $LINENO "configure" |
e6cc62c6 VS |
17498 | /* confdefs.h. */ |
17499 | _ACEOF | |
17500 | cat confdefs.h >>conftest.$ac_ext | |
17501 | cat >>conftest.$ac_ext <<_ACEOF | |
17502 | /* end confdefs.h. */ | |
17503 | #ifdef __STDC__ | |
17504 | # include <limits.h> | |
17505 | #else | |
17506 | # include <assert.h> | |
17507 | #endif | |
789c5f4a | 17508 | Syntax error |
e6cc62c6 VS |
17509 | _ACEOF |
17510 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17511 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17512 | ac_status=$? | |
17513 | grep -v '^ *+' conftest.er1 >conftest.err | |
17514 | rm -f conftest.er1 | |
17515 | cat conftest.err >&5 | |
17516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17517 | (exit $ac_status); } >/dev/null; then | |
17518 | if test -s conftest.err; then | |
17519 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
17520 | else | |
17521 | ac_cpp_err= | |
17522 | fi | |
247f5006 | 17523 | else |
e6cc62c6 VS |
17524 | ac_cpp_err=yes |
17525 | fi | |
17526 | if test -z "$ac_cpp_err"; then | |
17527 | : | |
17528 | else | |
17529 | echo "$as_me: failed program was:" >&5 | |
17530 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17531 | ||
17532 | # Broken: fails on valid input. | |
17533 | continue | |
17534 | fi | |
17535 | rm -f conftest.err conftest.$ac_ext | |
17536 | ||
17537 | # OK, works on sane cases. Now check whether non-existent headers | |
17538 | # can be detected and how. | |
17539 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 17540 | #line $LINENO "configure" |
e6cc62c6 VS |
17541 | /* confdefs.h. */ |
17542 | _ACEOF | |
17543 | cat confdefs.h >>conftest.$ac_ext | |
17544 | cat >>conftest.$ac_ext <<_ACEOF | |
17545 | /* end confdefs.h. */ | |
17546 | #include <ac_nonexistent.h> | |
17547 | _ACEOF | |
17548 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17549 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17550 | ac_status=$? | |
17551 | grep -v '^ *+' conftest.er1 >conftest.err | |
17552 | rm -f conftest.er1 | |
17553 | cat conftest.err >&5 | |
17554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17555 | (exit $ac_status); } >/dev/null; then | |
17556 | if test -s conftest.err; then | |
17557 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
17558 | else | |
17559 | ac_cpp_err= | |
17560 | fi | |
17561 | else | |
17562 | ac_cpp_err=yes | |
17563 | fi | |
17564 | if test -z "$ac_cpp_err"; then | |
17565 | # Broken: success on invalid input. | |
17566 | continue | |
17567 | else | |
17568 | echo "$as_me: failed program was:" >&5 | |
17569 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17570 | ||
17571 | # Passes both tests. | |
17572 | ac_preproc_ok=: | |
17573 | break | |
17574 | fi | |
17575 | rm -f conftest.err conftest.$ac_ext | |
17576 | ||
17577 | done | |
17578 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
17579 | rm -f conftest.err conftest.$ac_ext | |
17580 | if $ac_preproc_ok; then | |
17581 | break | |
17582 | fi | |
17583 | ||
17584 | done | |
17585 | ac_cv_prog_CXXCPP=$CXXCPP | |
17586 | ||
17587 | fi | |
17588 | CXXCPP=$ac_cv_prog_CXXCPP | |
17589 | else | |
17590 | ac_cv_prog_CXXCPP=$CXXCPP | |
17591 | fi | |
17592 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
17593 | echo "${ECHO_T}$CXXCPP" >&6 | |
17594 | ac_preproc_ok=false | |
17595 | for ac_cxx_preproc_warn_flag in '' yes | |
17596 | do | |
17597 | # Use a header file that comes with gcc, so configuring glibc | |
17598 | # with a fresh cross-compiler works. | |
17599 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17600 | # <limits.h> exists even on freestanding compilers. | |
17601 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
17602 | # not just through cpp. "Syntax error" is here to catch this case. | |
17603 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 17604 | #line $LINENO "configure" |
e6cc62c6 VS |
17605 | /* confdefs.h. */ |
17606 | _ACEOF | |
17607 | cat confdefs.h >>conftest.$ac_ext | |
17608 | cat >>conftest.$ac_ext <<_ACEOF | |
17609 | /* end confdefs.h. */ | |
17610 | #ifdef __STDC__ | |
17611 | # include <limits.h> | |
17612 | #else | |
17613 | # include <assert.h> | |
17614 | #endif | |
789c5f4a | 17615 | Syntax error |
e6cc62c6 VS |
17616 | _ACEOF |
17617 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17618 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17619 | ac_status=$? | |
17620 | grep -v '^ *+' conftest.er1 >conftest.err | |
17621 | rm -f conftest.er1 | |
17622 | cat conftest.err >&5 | |
17623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17624 | (exit $ac_status); } >/dev/null; then | |
17625 | if test -s conftest.err; then | |
17626 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
17627 | else | |
17628 | ac_cpp_err= | |
17629 | fi | |
17630 | else | |
17631 | ac_cpp_err=yes | |
17632 | fi | |
17633 | if test -z "$ac_cpp_err"; then | |
21d1c967 | 17634 | : |
698dcdb6 | 17635 | else |
e6cc62c6 VS |
17636 | echo "$as_me: failed program was:" >&5 |
17637 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17638 | ||
17639 | # Broken: fails on valid input. | |
17640 | continue | |
17641 | fi | |
17642 | rm -f conftest.err conftest.$ac_ext | |
17643 | ||
17644 | # OK, works on sane cases. Now check whether non-existent headers | |
17645 | # can be detected and how. | |
17646 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 17647 | #line $LINENO "configure" |
e6cc62c6 VS |
17648 | /* confdefs.h. */ |
17649 | _ACEOF | |
17650 | cat confdefs.h >>conftest.$ac_ext | |
17651 | cat >>conftest.$ac_ext <<_ACEOF | |
17652 | /* end confdefs.h. */ | |
17653 | #include <ac_nonexistent.h> | |
17654 | _ACEOF | |
17655 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17656 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17657 | ac_status=$? | |
17658 | grep -v '^ *+' conftest.er1 >conftest.err | |
17659 | rm -f conftest.er1 | |
17660 | cat conftest.err >&5 | |
17661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17662 | (exit $ac_status); } >/dev/null; then | |
17663 | if test -s conftest.err; then | |
17664 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
17665 | else | |
17666 | ac_cpp_err= | |
17667 | fi | |
17668 | else | |
17669 | ac_cpp_err=yes | |
247f5006 | 17670 | fi |
e6cc62c6 VS |
17671 | if test -z "$ac_cpp_err"; then |
17672 | # Broken: success on invalid input. | |
17673 | continue | |
17674 | else | |
17675 | echo "$as_me: failed program was:" >&5 | |
17676 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17677 | ||
17678 | # Passes both tests. | |
17679 | ac_preproc_ok=: | |
17680 | break | |
328a083c | 17681 | fi |
e6cc62c6 VS |
17682 | rm -f conftest.err conftest.$ac_ext |
17683 | ||
17684 | done | |
17685 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
17686 | rm -f conftest.err conftest.$ac_ext | |
17687 | if $ac_preproc_ok; then | |
17688 | : | |
17689 | else | |
17690 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
17691 | See \`config.log' for more details." >&5 | |
17692 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
17693 | See \`config.log' for more details." >&2;} | |
17694 | { (exit 1); exit 1; }; } | |
90dd450c | 17695 | fi |
e6cc62c6 VS |
17696 | |
17697 | ac_ext=cc | |
17698 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17699 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17700 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17701 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17702 | ||
1e6feb95 | 17703 | |
1725144d | 17704 | |
21d1c967 | 17705 | if test "$cross_compiling" = "yes"; then |
e6cc62c6 | 17706 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 17707 | #define wxUSE_IOSTREAMH 1 |
e6cc62c6 | 17708 | _ACEOF |
ab9b9eab | 17709 | |
21d1c967 | 17710 | else |
e6cc62c6 VS |
17711 | |
17712 | ||
17713 | ac_ext=cc | |
5c6fa7d2 | 17714 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
17715 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17716 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17717 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17718 | ||
52127426 | 17719 | |
247f5006 | 17720 | |
e6cc62c6 | 17721 | for ac_header in iostream |
21d1c967 | 17722 | do |
e6cc62c6 VS |
17723 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
17724 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17725 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17726 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17727 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17728 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17729 | fi | |
17730 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17731 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17732 | else | |
17733 | # Is the header compilable? | |
17734 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17735 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
17736 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 17737 | #line $LINENO "configure" |
e6cc62c6 VS |
17738 | /* confdefs.h. */ |
17739 | _ACEOF | |
17740 | cat confdefs.h >>conftest.$ac_ext | |
17741 | cat >>conftest.$ac_ext <<_ACEOF | |
17742 | /* end confdefs.h. */ | |
17743 | $ac_includes_default | |
17744 | #include <$ac_header> | |
17745 | _ACEOF | |
17746 | rm -f conftest.$ac_objext | |
17747 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 17748 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
17749 | ac_status=$? |
17750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17751 | (exit $ac_status); } && | |
789c5f4a | 17752 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
17753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17754 | (eval $ac_try) 2>&5 | |
17755 | ac_status=$? | |
17756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17757 | (exit $ac_status); }; }; then | |
17758 | ac_header_compiler=yes | |
17759 | else | |
17760 | echo "$as_me: failed program was:" >&5 | |
17761 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17762 | ||
17763 | ac_header_compiler=no | |
17764 | fi | |
789c5f4a | 17765 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
17766 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
17767 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
17768 | ||
17769 | # Is the header present? | |
17770 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17771 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
17772 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 17773 | #line $LINENO "configure" |
e6cc62c6 VS |
17774 | /* confdefs.h. */ |
17775 | _ACEOF | |
17776 | cat confdefs.h >>conftest.$ac_ext | |
17777 | cat >>conftest.$ac_ext <<_ACEOF | |
17778 | /* end confdefs.h. */ | |
17779 | #include <$ac_header> | |
17780 | _ACEOF | |
17781 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17782 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17783 | ac_status=$? | |
17784 | grep -v '^ *+' conftest.er1 >conftest.err | |
17785 | rm -f conftest.er1 | |
17786 | cat conftest.err >&5 | |
17787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17788 | (exit $ac_status); } >/dev/null; then | |
17789 | if test -s conftest.err; then | |
17790 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
17791 | else | |
17792 | ac_cpp_err= | |
17793 | fi | |
17794 | else | |
17795 | ac_cpp_err=yes | |
17796 | fi | |
17797 | if test -z "$ac_cpp_err"; then | |
17798 | ac_header_preproc=yes | |
17799 | else | |
17800 | echo "$as_me: failed program was:" >&5 | |
17801 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17802 | ||
17803 | ac_header_preproc=no | |
17804 | fi | |
17805 | rm -f conftest.err conftest.$ac_ext | |
17806 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17807 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
17808 | ||
17809 | # So? What about this header? | |
789c5f4a VZ |
17810 | case $ac_header_compiler:$ac_header_preproc in |
17811 | yes:no ) | |
e6cc62c6 VS |
17812 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
17813 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
789c5f4a VZ |
17814 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
17815 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17816 | ( | |
17817 | cat <<\_ASBOX | |
17818 | ## ------------------------------------ ## | |
17819 | ## Report this to bug-autoconf@gnu.org. ## | |
17820 | ## ------------------------------------ ## | |
17821 | _ASBOX | |
17822 | ) | | |
17823 | sed "s/^/$as_me: WARNING: /" >&2 | |
e6cc62c6 | 17824 | ;; |
789c5f4a | 17825 | no:yes ) |
e6cc62c6 VS |
17826 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
17827 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
789c5f4a VZ |
17828 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
17829 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
e6cc62c6 VS |
17830 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
17831 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17832 | ( | |
17833 | cat <<\_ASBOX | |
789c5f4a VZ |
17834 | ## ------------------------------------ ## |
17835 | ## Report this to bug-autoconf@gnu.org. ## | |
17836 | ## ------------------------------------ ## | |
e6cc62c6 VS |
17837 | _ASBOX |
17838 | ) | | |
17839 | sed "s/^/$as_me: WARNING: /" >&2 | |
17840 | ;; | |
17841 | esac | |
17842 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17843 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17844 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17845 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17846 | else | |
789c5f4a | 17847 | eval "$as_ac_Header=$ac_header_preproc" |
ab9b9eab | 17848 | fi |
e6cc62c6 VS |
17849 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
17850 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17851 | ||
90dd450c | 17852 | fi |
e6cc62c6 VS |
17853 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
17854 | cat >>confdefs.h <<_ACEOF | |
17855 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17856 | _ACEOF | |
17857 | ||
90dd450c | 17858 | fi |
e6cc62c6 | 17859 | |
21d1c967 | 17860 | done |
10f2d63a | 17861 | |
8284b0c5 | 17862 | |
21d1c967 GD |
17863 | if test "$ac_cv_header_iostream" = "yes" ; then |
17864 | : | |
17865 | else | |
e6cc62c6 | 17866 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 17867 | #define wxUSE_IOSTREAMH 1 |
e6cc62c6 | 17868 | _ACEOF |
788deba1 | 17869 | |
90dd450c | 17870 | fi |
ab9b9eab | 17871 | |
21d1c967 | 17872 | ac_ext=c |
21d1c967 | 17873 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
17874 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17875 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17876 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ab9b9eab | 17877 | |
21d1c967 | 17878 | fi |
ab9b9eab | 17879 | |
52127426 | 17880 | |
8284b0c5 | 17881 | |
e6cc62c6 VS |
17882 | echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5 |
17883 | echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6 | |
17884 | if test "${wx_cv_cpp_bool+set}" = set; then | |
17885 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 17886 | else |
e6cc62c6 VS |
17887 | |
17888 | ||
17889 | ||
17890 | ac_ext=cc | |
5c6fa7d2 | 17891 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
17892 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17893 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17894 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21d1c967 | 17895 | |
8284b0c5 | 17896 | |
e6cc62c6 | 17897 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 17898 | #line $LINENO "configure" |
e6cc62c6 VS |
17899 | /* confdefs.h. */ |
17900 | _ACEOF | |
17901 | cat confdefs.h >>conftest.$ac_ext | |
17902 | cat >>conftest.$ac_ext <<_ACEOF | |
17903 | /* end confdefs.h. */ | |
21d1c967 | 17904 | |
e6cc62c6 VS |
17905 | |
17906 | int | |
17907 | main () | |
17908 | { | |
21d1c967 GD |
17909 | |
17910 | bool b = true; | |
17911 | ||
17912 | return 0; | |
e6cc62c6 VS |
17913 | |
17914 | ; | |
17915 | return 0; | |
17916 | } | |
17917 | _ACEOF | |
17918 | rm -f conftest.$ac_objext | |
17919 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 17920 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
17921 | ac_status=$? |
17922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17923 | (exit $ac_status); } && | |
789c5f4a | 17924 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
17925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17926 | (eval $ac_try) 2>&5 | |
17927 | ac_status=$? | |
17928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17929 | (exit $ac_status); }; }; then | |
17930 | ||
21d1c967 | 17931 | wx_cv_cpp_bool=yes |
e6cc62c6 | 17932 | |
698dcdb6 | 17933 | else |
e6cc62c6 VS |
17934 | echo "$as_me: failed program was:" >&5 |
17935 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17936 | ||
17937 | ||
21d1c967 | 17938 | wx_cv_cpp_bool=no |
e6cc62c6 VS |
17939 | |
17940 | ||
698dcdb6 | 17941 | fi |
789c5f4a | 17942 | rm -f conftest.$ac_objext conftest.$ac_ext |
21d1c967 GD |
17943 | |
17944 | ac_ext=c | |
21d1c967 | 17945 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
17946 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17947 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17948 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 | 17949 | |
a0b9e27f | 17950 | |
e6cc62c6 VS |
17951 | fi |
17952 | echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5 | |
17953 | echo "${ECHO_T}$wx_cv_cpp_bool" >&6 | |
21d1c967 GD |
17954 | |
17955 | if test "$wx_cv_cpp_bool" = "yes"; then | |
e6cc62c6 | 17956 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 17957 | #define HAVE_BOOL 1 |
e6cc62c6 | 17958 | _ACEOF |
ab9b9eab | 17959 | |
21d1c967 GD |
17960 | fi |
17961 | ||
52127426 | 17962 | |
8284b0c5 | 17963 | |
e6cc62c6 VS |
17964 | echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5 |
17965 | echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6 | |
17966 | if test "${wx_cv_explicit+set}" = set; then | |
17967 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 17968 | else |
e6cc62c6 VS |
17969 | |
17970 | ||
17971 | ||
17972 | ac_ext=cc | |
5c6fa7d2 | 17973 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
17974 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17975 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17976 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
986ecc86 | 17977 | |
8284b0c5 | 17978 | |
e6cc62c6 | 17979 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 17980 | #line $LINENO "configure" |
e6cc62c6 VS |
17981 | /* confdefs.h. */ |
17982 | _ACEOF | |
17983 | cat confdefs.h >>conftest.$ac_ext | |
17984 | cat >>conftest.$ac_ext <<_ACEOF | |
17985 | /* end confdefs.h. */ | |
986ecc86 VZ |
17986 | |
17987 | class Foo { public: explicit Foo(int) {} }; | |
e6cc62c6 VS |
17988 | |
17989 | int | |
17990 | main () | |
17991 | { | |
986ecc86 VZ |
17992 | |
17993 | return 0; | |
e6cc62c6 VS |
17994 | |
17995 | ; | |
17996 | return 0; | |
17997 | } | |
17998 | _ACEOF | |
17999 | rm -f conftest.$ac_objext | |
18000 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 18001 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
18002 | ac_status=$? |
18003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18004 | (exit $ac_status); } && | |
789c5f4a | 18005 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
18006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18007 | (eval $ac_try) 2>&5 | |
18008 | ac_status=$? | |
18009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18010 | (exit $ac_status); }; }; then | |
18011 | ||
18012 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 18013 | #line $LINENO "configure" |
e6cc62c6 VS |
18014 | /* confdefs.h. */ |
18015 | _ACEOF | |
18016 | cat confdefs.h >>conftest.$ac_ext | |
18017 | cat >>conftest.$ac_ext <<_ACEOF | |
18018 | /* end confdefs.h. */ | |
986ecc86 VZ |
18019 | |
18020 | class Foo { public: explicit Foo(int) {} }; | |
18021 | static void TakeFoo(const Foo& foo) { } | |
e6cc62c6 VS |
18022 | |
18023 | int | |
18024 | main () | |
18025 | { | |
986ecc86 VZ |
18026 | |
18027 | TakeFoo(17); | |
18028 | return 0; | |
e6cc62c6 VS |
18029 | |
18030 | ; | |
18031 | return 0; | |
18032 | } | |
18033 | _ACEOF | |
18034 | rm -f conftest.$ac_objext | |
18035 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 18036 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
18037 | ac_status=$? |
18038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18039 | (exit $ac_status); } && | |
789c5f4a | 18040 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
18041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18042 | (eval $ac_try) 2>&5 | |
18043 | ac_status=$? | |
18044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18045 | (exit $ac_status); }; }; then | |
986ecc86 VZ |
18046 | wx_cv_explicit=no |
18047 | else | |
e6cc62c6 VS |
18048 | echo "$as_me: failed program was:" >&5 |
18049 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18050 | ||
18051 | wx_cv_explicit=yes | |
18052 | ||
986ecc86 | 18053 | fi |
789c5f4a | 18054 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 18055 | |
986ecc86 | 18056 | else |
e6cc62c6 VS |
18057 | echo "$as_me: failed program was:" >&5 |
18058 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18059 | ||
18060 | wx_cv_explicit=no | |
18061 | ||
986ecc86 | 18062 | fi |
789c5f4a | 18063 | rm -f conftest.$ac_objext conftest.$ac_ext |
986ecc86 VZ |
18064 | |
18065 | ac_ext=c | |
986ecc86 | 18066 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
18067 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
18068 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18069 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 | 18070 | |
a0b9e27f | 18071 | |
e6cc62c6 VS |
18072 | fi |
18073 | echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5 | |
18074 | echo "${ECHO_T}$wx_cv_explicit" >&6 | |
986ecc86 VZ |
18075 | |
18076 | if test "$wx_cv_explicit" = "yes"; then | |
e6cc62c6 | 18077 | cat >>confdefs.h <<\_ACEOF |
986ecc86 | 18078 | #define HAVE_EXPLICIT 1 |
e6cc62c6 | 18079 | _ACEOF |
986ecc86 VZ |
18080 | |
18081 | fi | |
18082 | ||
8284b0c5 | 18083 | |
e6cc62c6 VS |
18084 | echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5 |
18085 | echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6 | |
18086 | if test "${ac_cv_cxx_const_cast+set}" = set; then | |
18087 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
521196a2 | 18088 | else |
521196a2 | 18089 | |
521196a2 | 18090 | |
e6cc62c6 VS |
18091 | ac_ext=cc |
18092 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18093 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18094 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18095 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18096 | ||
18097 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 18098 | #line $LINENO "configure" |
e6cc62c6 VS |
18099 | /* confdefs.h. */ |
18100 | _ACEOF | |
18101 | cat confdefs.h >>conftest.$ac_ext | |
18102 | cat >>conftest.$ac_ext <<_ACEOF | |
18103 | /* end confdefs.h. */ | |
18104 | ||
18105 | int | |
18106 | main () | |
18107 | { | |
521196a2 | 18108 | int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z; |
e6cc62c6 VS |
18109 | ; |
18110 | return 0; | |
18111 | } | |
18112 | _ACEOF | |
18113 | rm -f conftest.$ac_objext | |
18114 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 18115 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
18116 | ac_status=$? |
18117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18118 | (exit $ac_status); } && | |
789c5f4a | 18119 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
18120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18121 | (eval $ac_try) 2>&5 | |
18122 | ac_status=$? | |
18123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18124 | (exit $ac_status); }; }; then | |
521196a2 MB |
18125 | ac_cv_cxx_const_cast=yes |
18126 | else | |
e6cc62c6 VS |
18127 | echo "$as_me: failed program was:" >&5 |
18128 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18129 | ||
18130 | ac_cv_cxx_const_cast=no | |
521196a2 | 18131 | fi |
789c5f4a | 18132 | rm -f conftest.$ac_objext conftest.$ac_ext |
521196a2 | 18133 | ac_ext=c |
521196a2 | 18134 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
18135 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
18136 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18137 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
521196a2 MB |
18138 | |
18139 | ||
18140 | fi | |
e6cc62c6 VS |
18141 | echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5 |
18142 | echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6 | |
521196a2 | 18143 | if test "$ac_cv_cxx_const_cast" = yes; then |
e6cc62c6 VS |
18144 | |
18145 | cat >>confdefs.h <<\_ACEOF | |
18146 | #define HAVE_CONST_CAST | |
18147 | _ACEOF | |
521196a2 MB |
18148 | |
18149 | fi | |
18150 | ||
ecfd48ca VZ |
18151 | echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5 |
18152 | echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6 | |
18153 | if test "${ac_cv_cxx_static_cast+set}" = set; then | |
18154 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18155 | else | |
18156 | ||
18157 | ||
18158 | ac_ext=cc | |
18159 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18160 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18161 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18162 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18163 | ||
18164 | cat >conftest.$ac_ext <<_ACEOF | |
18165 | #line $LINENO "configure" | |
18166 | /* confdefs.h. */ | |
18167 | _ACEOF | |
18168 | cat confdefs.h >>conftest.$ac_ext | |
18169 | cat >>conftest.$ac_ext <<_ACEOF | |
18170 | /* end confdefs.h. */ | |
18171 | #include <typeinfo> | |
18172 | class Base { public : Base () {} virtual void f () = 0; }; | |
18173 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
18174 | int g (Derived&) { return 0; } | |
18175 | int | |
18176 | main () | |
18177 | { | |
18178 | ||
18179 | Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s); | |
18180 | ; | |
18181 | return 0; | |
18182 | } | |
18183 | _ACEOF | |
18184 | rm -f conftest.$ac_objext | |
18185 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18186 | (eval $ac_compile) 2>&5 | |
18187 | ac_status=$? | |
18188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18189 | (exit $ac_status); } && | |
18190 | { ac_try='test -s conftest.$ac_objext' | |
18191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18192 | (eval $ac_try) 2>&5 | |
18193 | ac_status=$? | |
18194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18195 | (exit $ac_status); }; }; then | |
18196 | ac_cv_cxx_static_cast=yes | |
18197 | else | |
18198 | echo "$as_me: failed program was:" >&5 | |
18199 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18200 | ||
18201 | ac_cv_cxx_static_cast=no | |
18202 | fi | |
18203 | rm -f conftest.$ac_objext conftest.$ac_ext | |
18204 | ac_ext=c | |
18205 | ac_cpp='$CPP $CPPFLAGS' | |
18206 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18207 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18208 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
18209 | ||
18210 | ||
18211 | fi | |
18212 | echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5 | |
18213 | echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6 | |
18214 | if test "$ac_cv_cxx_static_cast" = yes; then | |
18215 | ||
18216 | cat >>confdefs.h <<\_ACEOF | |
18217 | #define HAVE_STATIC_CAST | |
18218 | _ACEOF | |
18219 | ||
18220 | fi | |
18221 | ||
521196a2 | 18222 | |
e87b7833 MB |
18223 | if test "$wxUSE_STL" = "yes"; then |
18224 | ac_ext=cc | |
18225 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18226 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18227 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18228 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18229 | ||
18230 | ||
18231 | echo "$as_me:$LINENO: checking for basic STL functionality" >&5 | |
18232 | echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6 | |
18233 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 18234 | #line $LINENO "configure" |
e87b7833 MB |
18235 | /* confdefs.h. */ |
18236 | _ACEOF | |
18237 | cat confdefs.h >>conftest.$ac_ext | |
18238 | cat >>conftest.$ac_ext <<_ACEOF | |
18239 | /* end confdefs.h. */ | |
18240 | #include <string> | |
18241 | #include <functional> | |
18242 | #include <algorithm> | |
18243 | #include <vector> | |
18244 | #include <list> | |
18245 | int | |
18246 | main () | |
18247 | { | |
18248 | std::vector<int> moo; | |
18249 | std::list<int> foo; | |
18250 | std::vector<int>::iterator it = | |
18251 | std::find_if(moo.begin(), moo.end(), | |
18252 | std::bind2nd(std::less<int>(), 3)); | |
18253 | ; | |
18254 | return 0; | |
18255 | } | |
18256 | _ACEOF | |
18257 | rm -f conftest.$ac_objext | |
18258 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 18259 | (eval $ac_compile) 2>&5 |
e87b7833 MB |
18260 | ac_status=$? |
18261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18262 | (exit $ac_status); } && | |
789c5f4a | 18263 | { ac_try='test -s conftest.$ac_objext' |
e87b7833 MB |
18264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18265 | (eval $ac_try) 2>&5 | |
18266 | ac_status=$? | |
18267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18268 | (exit $ac_status); }; }; then | |
18269 | echo "$as_me:$LINENO: result: yes" >&5 | |
18270 | echo "${ECHO_T}yes" >&6 | |
18271 | else | |
18272 | echo "$as_me: failed program was:" >&5 | |
18273 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18274 | ||
18275 | echo "$as_me:$LINENO: result: no" >&5 | |
18276 | echo "${ECHO_T}no" >&6 | |
18277 | { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5 | |
18278 | echo "$as_me: error: Basic STL functionality missing" >&2;} | |
18279 | { (exit 1); exit 1; }; } | |
18280 | fi | |
789c5f4a | 18281 | rm -f conftest.$ac_objext conftest.$ac_ext |
e87b7833 MB |
18282 | |
18283 | echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5 | |
18284 | echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6 | |
18285 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 18286 | #line $LINENO "configure" |
e87b7833 MB |
18287 | /* confdefs.h. */ |
18288 | _ACEOF | |
18289 | cat confdefs.h >>conftest.$ac_ext | |
18290 | cat >>conftest.$ac_ext <<_ACEOF | |
18291 | /* end confdefs.h. */ | |
18292 | #include <string> | |
18293 | int | |
18294 | main () | |
18295 | { | |
18296 | std::wstring foo; | |
18297 | ; | |
18298 | return 0; | |
18299 | } | |
18300 | _ACEOF | |
18301 | rm -f conftest.$ac_objext | |
18302 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 18303 | (eval $ac_compile) 2>&5 |
e87b7833 MB |
18304 | ac_status=$? |
18305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18306 | (exit $ac_status); } && | |
789c5f4a | 18307 | { ac_try='test -s conftest.$ac_objext' |
e87b7833 MB |
18308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18309 | (eval $ac_try) 2>&5 | |
18310 | ac_status=$? | |
18311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18312 | (exit $ac_status); }; }; then | |
18313 | echo "$as_me:$LINENO: result: yes" >&5 | |
18314 | echo "${ECHO_T}yes" >&6 | |
18315 | cat >>confdefs.h <<\_ACEOF | |
18316 | #define HAVE_STD_WSTRING 1 | |
18317 | _ACEOF | |
18318 | ||
18319 | else | |
18320 | echo "$as_me: failed program was:" >&5 | |
18321 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18322 | ||
18323 | echo "$as_me:$LINENO: result: no" >&5 | |
18324 | echo "${ECHO_T}no" >&6 | |
18325 | fi | |
789c5f4a | 18326 | rm -f conftest.$ac_objext conftest.$ac_ext |
e87b7833 MB |
18327 | |
18328 | echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5 | |
18329 | echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6 | |
18330 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 18331 | #line $LINENO "configure" |
e87b7833 MB |
18332 | /* confdefs.h. */ |
18333 | _ACEOF | |
18334 | cat confdefs.h >>conftest.$ac_ext | |
18335 | cat >>conftest.$ac_ext <<_ACEOF | |
18336 | /* end confdefs.h. */ | |
18337 | #include <string> | |
18338 | int | |
18339 | main () | |
18340 | { | |
18341 | std::string foo, bar; | |
18342 | foo.compare(bar); | |
18343 | foo.compare(1, 1, bar); | |
18344 | foo.compare(1, 1, bar, 1, 1); | |
18345 | foo.compare(""); | |
18346 | foo.compare(1, 1, ""); | |
18347 | foo.compare(1, 1, "", 2); | |
18348 | ; | |
18349 | return 0; | |
18350 | } | |
18351 | _ACEOF | |
18352 | rm -f conftest.$ac_objext | |
18353 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 18354 | (eval $ac_compile) 2>&5 |
e87b7833 MB |
18355 | ac_status=$? |
18356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18357 | (exit $ac_status); } && | |
789c5f4a | 18358 | { ac_try='test -s conftest.$ac_objext' |
e87b7833 MB |
18359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18360 | (eval $ac_try) 2>&5 | |
18361 | ac_status=$? | |
18362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18363 | (exit $ac_status); }; }; then | |
18364 | echo "$as_me:$LINENO: result: yes" >&5 | |
18365 | echo "${ECHO_T}yes" >&6 | |
18366 | cat >>confdefs.h <<\_ACEOF | |
18367 | #define HAVE_STD_STRING_COMPARE 1 | |
18368 | _ACEOF | |
18369 | ||
18370 | else | |
18371 | echo "$as_me: failed program was:" >&5 | |
18372 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18373 | ||
18374 | echo "$as_me:$LINENO: result: no" >&5 | |
18375 | echo "${ECHO_T}no" >&6 | |
18376 | fi | |
789c5f4a | 18377 | rm -f conftest.$ac_objext conftest.$ac_ext |
e87b7833 MB |
18378 | |
18379 | ac_ext=c | |
18380 | ac_cpp='$CPP $CPPFLAGS' | |
18381 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18382 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18383 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
18384 | ||
18385 | fi | |
18386 | ||
8284b0c5 | 18387 | |
21d1c967 GD |
18388 | SEARCH_INCLUDE="\ |
18389 | /usr/local/include \ | |
18390 | \ | |
21d1c967 | 18391 | /usr/Motif-2.1/include \ |
789c5f4a | 18392 | /usr/Motif-1.2/include \ |
21d1c967 GD |
18393 | /usr/include/Motif1.2 \ |
18394 | /opt/xpm/include/X11 \ | |
18395 | /opt/GBxpm/include/ \ | |
18396 | /opt/GBxpm/X11/include/ \ | |
18397 | \ | |
21d1c967 GD |
18398 | /usr/dt/include \ |
18399 | /usr/openwin/include \ | |
18400 | \ | |
18401 | /usr/include/Xm \ | |
18402 | \ | |
18403 | /usr/X11R6/include \ | |
18404 | /usr/X11R6.4/include \ | |
18405 | /usr/X11R5/include \ | |
18406 | /usr/X11R4/include \ | |
18407 | \ | |
18408 | /usr/include/X11R6 \ | |
18409 | /usr/include/X11R5 \ | |
18410 | /usr/include/X11R4 \ | |
18411 | \ | |
18412 | /usr/local/X11R6/include \ | |
18413 | /usr/local/X11R5/include \ | |
18414 | /usr/local/X11R4/include \ | |
18415 | \ | |
18416 | /usr/local/include/X11R6 \ | |
18417 | /usr/local/include/X11R5 \ | |
18418 | /usr/local/include/X11R4 \ | |
18419 | \ | |
18420 | /usr/X11/include \ | |
18421 | /usr/include/X11 \ | |
18422 | /usr/local/X11/include \ | |
18423 | /usr/local/include/X11 \ | |
18424 | \ | |
18425 | /usr/X386/include \ | |
18426 | /usr/x386/include \ | |
18427 | /usr/XFree86/include/X11 \ | |
18428 | \ | |
18429 | X:/XFree86/include \ | |
18430 | X:/XFree86/include/X11 \ | |
18431 | \ | |
18432 | /usr/include/gtk \ | |
18433 | /usr/local/include/gtk \ | |
18434 | /usr/include/glib \ | |
18435 | /usr/local/include/glib \ | |
18436 | \ | |
18437 | /usr/include/qt \ | |
18438 | /usr/local/include/qt \ | |
18439 | \ | |
18440 | /usr/include/windows \ | |
18441 | /usr/include/wine \ | |
18442 | /usr/local/include/wine \ | |
18443 | \ | |
18444 | /usr/unsupported/include \ | |
18445 | /usr/athena/include \ | |
18446 | /usr/local/x11r5/include \ | |
18447 | /usr/lpp/Xamples/include \ | |
18448 | \ | |
2b5f62a0 | 18449 | /usr/openwin/share/include" |
21d1c967 | 18450 | |
b62e750d | 18451 | SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64" |
21d1c967 | 18452 | |
8284b0c5 | 18453 | |
e6cc62c6 | 18454 | cat >confcache <<\_ACEOF |
21d1c967 GD |
18455 | # This file is a shell script that caches the results of configure |
18456 | # tests run on this system so they can be shared between configure | |
e6cc62c6 VS |
18457 | # scripts and configure runs, see configure's option --config-cache. |
18458 | # It is not useful on other systems. If it contains results you don't | |
18459 | # want to keep, you may remove or edit it. | |
21d1c967 | 18460 | # |
e6cc62c6 VS |
18461 | # config.status only pays attention to the cache file if you give it |
18462 | # the --recheck option to rerun configure. | |
21d1c967 | 18463 | # |
e6cc62c6 VS |
18464 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
18465 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
18466 | # following values. | |
18467 | ||
18468 | _ACEOF | |
18469 | ||
21d1c967 GD |
18470 | # The following way of writing the cache mishandles newlines in values, |
18471 | # but we know of no workaround that is simple, portable, and efficient. | |
18472 | # So, don't put newlines in cache variables' values. | |
18473 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
18474 | # and sets the high bit in the cache file unless we assign to the vars. | |
e6cc62c6 VS |
18475 | { |
18476 | (set) 2>&1 | | |
18477 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
18478 | *ac_space=\ *) | |
18479 | # `set' does not quote correctly, so add quotes (double-quote | |
18480 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
18481 | sed -n \ | |
789c5f4a VZ |
18482 | "s/'/'\\\\''/g; |
18483 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
e6cc62c6 VS |
18484 | ;; |
18485 | *) | |
18486 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
18487 | sed -n \ | |
789c5f4a | 18488 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
e6cc62c6 VS |
18489 | ;; |
18490 | esac; | |
18491 | } | | |
18492 | sed ' | |
18493 | t clear | |
18494 | : clear | |
18495 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
18496 | t end | |
18497 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
18498 | : end' >>confcache | |
18499 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
21d1c967 | 18500 | if test -w $cache_file; then |
e6cc62c6 VS |
18501 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
18502 | cat confcache >$cache_file | |
21d1c967 GD |
18503 | else |
18504 | echo "not updating unwritable cache $cache_file" | |
18505 | fi | |
ab9b9eab | 18506 | fi |
21d1c967 | 18507 | rm -f confcache |
ab9b9eab | 18508 | |
fe0895cf | 18509 | if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then |
e6cc62c6 VS |
18510 | echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5 |
18511 | echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6 | |
18512 | if test "${wx_cv_lib_glibc21+set}" = set; then | |
18513 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18514 | else | |
18515 | ||
18516 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 18517 | #line $LINENO "configure" |
e6cc62c6 VS |
18518 | /* confdefs.h. */ |
18519 | _ACEOF | |
18520 | cat confdefs.h >>conftest.$ac_ext | |
18521 | cat >>conftest.$ac_ext <<_ACEOF | |
18522 | /* end confdefs.h. */ | |
21d1c967 | 18523 | #include <features.h> |
e6cc62c6 VS |
18524 | int |
18525 | main () | |
18526 | { | |
ab9b9eab | 18527 | |
21d1c967 GD |
18528 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) |
18529 | #error not glibc2.1 | |
18530 | #endif | |
e6cc62c6 VS |
18531 | |
18532 | ; | |
18533 | return 0; | |
18534 | } | |
18535 | _ACEOF | |
18536 | rm -f conftest.$ac_objext | |
18537 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 18538 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
18539 | ac_status=$? |
18540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18541 | (exit $ac_status); } && | |
789c5f4a | 18542 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
18543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18544 | (eval $ac_try) 2>&5 | |
18545 | ac_status=$? | |
18546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18547 | (exit $ac_status); }; }; then | |
18548 | ||
21d1c967 | 18549 | wx_cv_lib_glibc21=yes |
e6cc62c6 | 18550 | |
698dcdb6 | 18551 | else |
e6cc62c6 VS |
18552 | echo "$as_me: failed program was:" >&5 |
18553 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18554 | ||
18555 | ||
21d1c967 | 18556 | wx_cv_lib_glibc21=no |
e6cc62c6 VS |
18557 | |
18558 | ||
247f5006 | 18559 | fi |
789c5f4a | 18560 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 18561 | |
e6cc62c6 VS |
18562 | fi |
18563 | echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5 | |
18564 | echo "${ECHO_T}$wx_cv_lib_glibc21" >&6 | |
21d1c967 | 18565 | if test "$wx_cv_lib_glibc21" = "yes"; then |
e6cc62c6 | 18566 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 18567 | #define wxHAVE_GLIBC2 1 |
e6cc62c6 | 18568 | _ACEOF |
1e487827 | 18569 | |
90dd450c | 18570 | fi |
ab9b9eab VZ |
18571 | fi |
18572 | ||
5c0a20c3 VZ |
18573 | if test "x$wx_cv_lib_glibc21" = "xyes"; then |
18574 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
e6cc62c6 | 18575 | cat >>confdefs.h <<\_ACEOF |
5c0a20c3 | 18576 | #define _GNU_SOURCE 1 |
e6cc62c6 | 18577 | _ACEOF |
5c0a20c3 VZ |
18578 | |
18579 | fi | |
18580 | fi | |
18581 | ||
8284b0c5 MB |
18582 | |
18583 | ||
21d1c967 | 18584 | if test "$wxUSE_REGEX" != "no"; then |
e6cc62c6 | 18585 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 18586 | #define wxUSE_REGEX 1 |
e6cc62c6 | 18587 | _ACEOF |
698dcdb6 | 18588 | |
8284b0c5 | 18589 | |
30f2fa6c VS |
18590 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then |
18591 | { echo "$as_me:$LINENO: WARNING: Unicode build requires built-in regex library, will use it instead" >&5 | |
18592 | echo "$as_me: WARNING: Unicode build requires built-in regex library, will use it instead" >&2;} | |
18593 | wxUSE_REGEX=builtin | |
18594 | fi | |
18595 | ||
21d1c967 | 18596 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then |
e6cc62c6 VS |
18597 | if test "${ac_cv_header_regex_h+set}" = set; then |
18598 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
18599 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
18600 | if test "${ac_cv_header_regex_h+set}" = set; then | |
18601 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18602 | fi | |
18603 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
18604 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
18605 | else | |
18606 | # Is the header compilable? | |
18607 | echo "$as_me:$LINENO: checking regex.h usability" >&5 | |
18608 | echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6 | |
18609 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 18610 | #line $LINENO "configure" |
e6cc62c6 VS |
18611 | /* confdefs.h. */ |
18612 | _ACEOF | |
18613 | cat confdefs.h >>conftest.$ac_ext | |
18614 | cat >>conftest.$ac_ext <<_ACEOF | |
18615 | /* end confdefs.h. */ | |
18616 | $ac_includes_default | |
247f5006 | 18617 | #include <regex.h> |
e6cc62c6 VS |
18618 | _ACEOF |
18619 | rm -f conftest.$ac_objext | |
18620 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 18621 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
18622 | ac_status=$? |
18623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18624 | (exit $ac_status); } && | |
789c5f4a | 18625 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
18626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18627 | (eval $ac_try) 2>&5 | |
18628 | ac_status=$? | |
18629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18630 | (exit $ac_status); }; }; then | |
18631 | ac_header_compiler=yes | |
18632 | else | |
18633 | echo "$as_me: failed program was:" >&5 | |
18634 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18635 | ||
18636 | ac_header_compiler=no | |
18637 | fi | |
789c5f4a | 18638 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
18639 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
18640 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18641 | ||
18642 | # Is the header present? | |
18643 | echo "$as_me:$LINENO: checking regex.h presence" >&5 | |
18644 | echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6 | |
18645 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 18646 | #line $LINENO "configure" |
e6cc62c6 VS |
18647 | /* confdefs.h. */ |
18648 | _ACEOF | |
18649 | cat confdefs.h >>conftest.$ac_ext | |
18650 | cat >>conftest.$ac_ext <<_ACEOF | |
18651 | /* end confdefs.h. */ | |
18652 | #include <regex.h> | |
18653 | _ACEOF | |
18654 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18655 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18656 | ac_status=$? | |
18657 | grep -v '^ *+' conftest.er1 >conftest.err | |
18658 | rm -f conftest.er1 | |
18659 | cat conftest.err >&5 | |
18660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18661 | (exit $ac_status); } >/dev/null; then | |
18662 | if test -s conftest.err; then | |
18663 | ac_cpp_err=$ac_c_preproc_warn_flag | |
18664 | else | |
18665 | ac_cpp_err= | |
18666 | fi | |
18667 | else | |
18668 | ac_cpp_err=yes | |
18669 | fi | |
18670 | if test -z "$ac_cpp_err"; then | |
18671 | ac_header_preproc=yes | |
18672 | else | |
18673 | echo "$as_me: failed program was:" >&5 | |
18674 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18675 | ||
18676 | ac_header_preproc=no | |
18677 | fi | |
18678 | rm -f conftest.err conftest.$ac_ext | |
18679 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
18680 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18681 | ||
18682 | # So? What about this header? | |
789c5f4a VZ |
18683 | case $ac_header_compiler:$ac_header_preproc in |
18684 | yes:no ) | |
e6cc62c6 VS |
18685 | { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
18686 | echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
789c5f4a VZ |
18687 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 |
18688 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
18689 | ( | |
18690 | cat <<\_ASBOX | |
18691 | ## ------------------------------------ ## | |
18692 | ## Report this to bug-autoconf@gnu.org. ## | |
18693 | ## ------------------------------------ ## | |
18694 | _ASBOX | |
18695 | ) | | |
18696 | sed "s/^/$as_me: WARNING: /" >&2 | |
e6cc62c6 | 18697 | ;; |
789c5f4a | 18698 | no:yes ) |
e6cc62c6 VS |
18699 | { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5 |
18700 | echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;} | |
789c5f4a VZ |
18701 | { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5 |
18702 | echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;} | |
e6cc62c6 VS |
18703 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 |
18704 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
18705 | ( | |
18706 | cat <<\_ASBOX | |
789c5f4a VZ |
18707 | ## ------------------------------------ ## |
18708 | ## Report this to bug-autoconf@gnu.org. ## | |
18709 | ## ------------------------------------ ## | |
e6cc62c6 VS |
18710 | _ASBOX |
18711 | ) | | |
18712 | sed "s/^/$as_me: WARNING: /" >&2 | |
18713 | ;; | |
18714 | esac | |
18715 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
18716 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
18717 | if test "${ac_cv_header_regex_h+set}" = set; then | |
18718 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18719 | else | |
18720 | ac_cv_header_regex_h=$ac_header_preproc | |
21d1c967 | 18721 | fi |
e6cc62c6 VS |
18722 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 |
18723 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
18724 | ||
698dcdb6 | 18725 | fi |
e6cc62c6 VS |
18726 | if test $ac_cv_header_regex_h = yes; then |
18727 | ||
18728 | for ac_func in regcomp | |
21d1c967 | 18729 | do |
e6cc62c6 VS |
18730 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
18731 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
18732 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
18733 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
18734 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18735 | else | |
18736 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 18737 | #line $LINENO "configure" |
e6cc62c6 VS |
18738 | /* confdefs.h. */ |
18739 | _ACEOF | |
18740 | cat confdefs.h >>conftest.$ac_ext | |
18741 | cat >>conftest.$ac_ext <<_ACEOF | |
18742 | /* end confdefs.h. */ | |
a0b9e27f | 18743 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
18744 | which can conflict with char $ac_func (); below. |
18745 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18746 | <limits.h> exists even on freestanding compilers. */ | |
18747 | #ifdef __STDC__ | |
18748 | # include <limits.h> | |
18749 | #else | |
18750 | # include <assert.h> | |
18751 | #endif | |
21d1c967 | 18752 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
18753 | #ifdef __cplusplus |
18754 | extern "C" | |
18755 | { | |
18756 | #endif | |
21d1c967 | 18757 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
18758 | builtin and then its argument prototype would still apply. */ |
18759 | char $ac_func (); | |
21d1c967 GD |
18760 | /* The GNU C library defines this for functions which it implements |
18761 | to always fail with ENOSYS. Some functions are actually named | |
18762 | something starting with __ and the normal name is an alias. */ | |
18763 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18764 | choke me | |
18765 | #else | |
e6cc62c6 VS |
18766 | char (*f) () = $ac_func; |
18767 | #endif | |
18768 | #ifdef __cplusplus | |
18769 | } | |
21d1c967 | 18770 | #endif |
90dd450c | 18771 | |
e6cc62c6 VS |
18772 | int |
18773 | main () | |
18774 | { | |
18775 | return f != $ac_func; | |
18776 | ; | |
18777 | return 0; | |
18778 | } | |
18779 | _ACEOF | |
18780 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18781 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 18782 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
18783 | ac_status=$? |
18784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18785 | (exit $ac_status); } && | |
789c5f4a | 18786 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
18787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18788 | (eval $ac_try) 2>&5 | |
18789 | ac_status=$? | |
18790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18791 | (exit $ac_status); }; }; then | |
18792 | eval "$as_ac_var=yes" | |
18793 | else | |
18794 | echo "$as_me: failed program was:" >&5 | |
18795 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18796 | ||
18797 | eval "$as_ac_var=no" | |
18798 | fi | |
789c5f4a | 18799 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
18800 | fi |
18801 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
18802 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
18803 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
18804 | cat >>confdefs.h <<_ACEOF | |
18805 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
18806 | _ACEOF | |
5c6fa7d2 | 18807 | |
698dcdb6 | 18808 | fi |
21d1c967 GD |
18809 | done |
18810 | ||
ab9b9eab VZ |
18811 | fi |
18812 | ||
8284b0c5 | 18813 | |
e6cc62c6 | 18814 | |
21d1c967 GD |
18815 | if test "x$ac_cv_func_regcomp" != "xyes"; then |
18816 | if test "$wxUSE_REGEX" = "sys" ; then | |
e6cc62c6 VS |
18817 | { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5 |
18818 | echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;} | |
18819 | { (exit 1); exit 1; }; } | |
21d1c967 | 18820 | else |
e6cc62c6 VS |
18821 | { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5 |
18822 | echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;} | |
21d1c967 GD |
18823 | wxUSE_REGEX=builtin |
18824 | fi | |
18825 | else | |
18826 | wxUSE_REGEX=sys | |
18827 | fi | |
ab9b9eab | 18828 | fi |
21d1c967 | 18829 | fi |
90dd450c | 18830 | |
8284b0c5 | 18831 | |
21d1c967 GD |
18832 | ZLIB_LINK= |
18833 | if test "$wxUSE_ZLIB" != "no" ; then | |
e6cc62c6 | 18834 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 18835 | #define wxUSE_ZLIB 1 |
e6cc62c6 | 18836 | _ACEOF |
21d1c967 | 18837 | |
8284b0c5 | 18838 | |
21d1c967 | 18839 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then |
d775acfa VZ |
18840 | if test "$USE_DARWIN" = 1; then |
18841 | system_zlib_h_ok="yes" | |
18842 | else | |
e6cc62c6 VS |
18843 | echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5 |
18844 | echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6 | |
18845 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
18846 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d643b80e VZ |
18847 | else |
18848 | if test "$cross_compiling" = yes; then | |
89e6bf6d | 18849 | unset ac_cv_header_zlib_h |
e6cc62c6 | 18850 | |
d643b80e | 18851 | else |
e6cc62c6 | 18852 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 18853 | #line $LINENO "configure" |
e6cc62c6 VS |
18854 | /* confdefs.h. */ |
18855 | _ACEOF | |
18856 | cat confdefs.h >>conftest.$ac_ext | |
18857 | cat >>conftest.$ac_ext <<_ACEOF | |
18858 | /* end confdefs.h. */ | |
18859 | ||
ef33c576 | 18860 | #include <zlib.h> |
d775acfa | 18861 | #include <stdio.h> |
d643b80e | 18862 | |
d775acfa VZ |
18863 | int main() |
18864 | { | |
18865 | FILE *f=fopen("conftestval", "w"); | |
18866 | if (!f) exit(1); | |
18867 | fprintf(f, "%s", | |
18868 | ZLIB_VERSION[0] == '1' && | |
18869 | (ZLIB_VERSION[2] > '1' || | |
18870 | (ZLIB_VERSION[2] == '1' && | |
18871 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
18872 | exit(0); | |
18873 | } | |
e6cc62c6 VS |
18874 | |
18875 | _ACEOF | |
18876 | rm -f conftest$ac_exeext | |
18877 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18878 | (eval $ac_link) 2>&5 | |
18879 | ac_status=$? | |
18880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18881 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18883 | (eval $ac_try) 2>&5 | |
18884 | ac_status=$? | |
18885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18886 | (exit $ac_status); }; }; then | |
d643b80e VZ |
18887 | ac_cv_header_zlib_h=`cat conftestval` |
18888 | else | |
e6cc62c6 VS |
18889 | echo "$as_me: program exited with status $ac_status" >&5 |
18890 | echo "$as_me: failed program was:" >&5 | |
18891 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18892 | ||
18893 | ( exit $ac_status ) | |
18894 | ac_cv_header_zlib_h=no | |
d643b80e | 18895 | fi |
789c5f4a | 18896 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d643b80e VZ |
18897 | fi |
18898 | ||
d643b80e | 18899 | fi |
e6cc62c6 VS |
18900 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 |
18901 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
18902 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
18903 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
18904 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
18905 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
18906 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18907 | fi | |
18908 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
18909 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
89e6bf6d | 18910 | else |
e6cc62c6 VS |
18911 | # Is the header compilable? |
18912 | echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
18913 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 | |
18914 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 18915 | #line $LINENO "configure" |
e6cc62c6 VS |
18916 | /* confdefs.h. */ |
18917 | _ACEOF | |
18918 | cat confdefs.h >>conftest.$ac_ext | |
18919 | cat >>conftest.$ac_ext <<_ACEOF | |
18920 | /* end confdefs.h. */ | |
18921 | $ac_includes_default | |
89e6bf6d | 18922 | #include <zlib.h> |
e6cc62c6 VS |
18923 | _ACEOF |
18924 | rm -f conftest.$ac_objext | |
18925 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 18926 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
18927 | ac_status=$? |
18928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18929 | (exit $ac_status); } && | |
789c5f4a | 18930 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
18931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18932 | (eval $ac_try) 2>&5 | |
18933 | ac_status=$? | |
18934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18935 | (exit $ac_status); }; }; then | |
18936 | ac_header_compiler=yes | |
18937 | else | |
18938 | echo "$as_me: failed program was:" >&5 | |
18939 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18940 | ||
18941 | ac_header_compiler=no | |
18942 | fi | |
789c5f4a | 18943 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
18944 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
18945 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18946 | ||
18947 | # Is the header present? | |
18948 | echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
18949 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 | |
18950 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 18951 | #line $LINENO "configure" |
e6cc62c6 VS |
18952 | /* confdefs.h. */ |
18953 | _ACEOF | |
18954 | cat confdefs.h >>conftest.$ac_ext | |
18955 | cat >>conftest.$ac_ext <<_ACEOF | |
18956 | /* end confdefs.h. */ | |
18957 | #include <zlib.h> | |
18958 | _ACEOF | |
18959 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18960 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18961 | ac_status=$? | |
18962 | grep -v '^ *+' conftest.er1 >conftest.err | |
18963 | rm -f conftest.er1 | |
18964 | cat conftest.err >&5 | |
18965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18966 | (exit $ac_status); } >/dev/null; then | |
18967 | if test -s conftest.err; then | |
18968 | ac_cpp_err=$ac_c_preproc_warn_flag | |
18969 | else | |
18970 | ac_cpp_err= | |
18971 | fi | |
18972 | else | |
18973 | ac_cpp_err=yes | |
18974 | fi | |
18975 | if test -z "$ac_cpp_err"; then | |
18976 | ac_header_preproc=yes | |
18977 | else | |
18978 | echo "$as_me: failed program was:" >&5 | |
18979 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18980 | ||
18981 | ac_header_preproc=no | |
18982 | fi | |
18983 | rm -f conftest.err conftest.$ac_ext | |
18984 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
18985 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18986 | ||
18987 | # So? What about this header? | |
789c5f4a VZ |
18988 | case $ac_header_compiler:$ac_header_preproc in |
18989 | yes:no ) | |
e6cc62c6 VS |
18990 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
18991 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
789c5f4a VZ |
18992 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 |
18993 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
18994 | ( | |
18995 | cat <<\_ASBOX | |
18996 | ## ------------------------------------ ## | |
18997 | ## Report this to bug-autoconf@gnu.org. ## | |
18998 | ## ------------------------------------ ## | |
18999 | _ASBOX | |
19000 | ) | | |
19001 | sed "s/^/$as_me: WARNING: /" >&2 | |
e6cc62c6 | 19002 | ;; |
789c5f4a | 19003 | no:yes ) |
e6cc62c6 VS |
19004 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 |
19005 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
789c5f4a VZ |
19006 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 |
19007 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
e6cc62c6 VS |
19008 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 |
19009 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
19010 | ( | |
19011 | cat <<\_ASBOX | |
789c5f4a VZ |
19012 | ## ------------------------------------ ## |
19013 | ## Report this to bug-autoconf@gnu.org. ## | |
19014 | ## ------------------------------------ ## | |
e6cc62c6 VS |
19015 | _ASBOX |
19016 | ) | | |
19017 | sed "s/^/$as_me: WARNING: /" >&2 | |
19018 | ;; | |
19019 | esac | |
19020 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
19021 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
19022 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
19023 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
89e6bf6d | 19024 | else |
e6cc62c6 VS |
19025 | ac_cv_header_zlib_h=$ac_header_preproc |
19026 | fi | |
19027 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
19028 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
19029 | ||
89e6bf6d VZ |
19030 | fi |
19031 | ||
d643b80e | 19032 | |
e6cc62c6 | 19033 | |
d775acfa VZ |
19034 | system_zlib_h_ok=$ac_cv_header_zlib_h |
19035 | fi | |
19036 | ||
19037 | if test "$system_zlib_h_ok" = "yes"; then | |
e6cc62c6 VS |
19038 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 |
19039 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | |
19040 | if test "${ac_cv_lib_z_deflate+set}" = set; then | |
19041 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 19042 | else |
e6cc62c6 | 19043 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 19044 | LIBS="-lz $LIBS" |
e6cc62c6 | 19045 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 19046 | #line $LINENO "configure" |
e6cc62c6 VS |
19047 | /* confdefs.h. */ |
19048 | _ACEOF | |
19049 | cat confdefs.h >>conftest.$ac_ext | |
19050 | cat >>conftest.$ac_ext <<_ACEOF | |
19051 | /* end confdefs.h. */ | |
19052 | ||
21d1c967 | 19053 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
19054 | #ifdef __cplusplus |
19055 | extern "C" | |
19056 | #endif | |
21d1c967 | 19057 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
19058 | builtin and then its argument prototype would still apply. */ |
19059 | char deflate (); | |
19060 | int | |
19061 | main () | |
19062 | { | |
19063 | deflate (); | |
19064 | ; | |
19065 | return 0; | |
19066 | } | |
19067 | _ACEOF | |
19068 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19069 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 19070 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
19071 | ac_status=$? |
19072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19073 | (exit $ac_status); } && | |
789c5f4a | 19074 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
19075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19076 | (eval $ac_try) 2>&5 | |
19077 | ac_status=$? | |
19078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19079 | (exit $ac_status); }; }; then | |
19080 | ac_cv_lib_z_deflate=yes | |
19081 | else | |
19082 | echo "$as_me: failed program was:" >&5 | |
19083 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19084 | ||
19085 | ac_cv_lib_z_deflate=no | |
19086 | fi | |
789c5f4a | 19087 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
19088 | LIBS=$ac_check_lib_save_LIBS |
19089 | fi | |
19090 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | |
19091 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | |
19092 | if test $ac_cv_lib_z_deflate = yes; then | |
a0b9e27f | 19093 | ZLIB_LINK=" -lz" |
a0b9e27f | 19094 | fi |
698dcdb6 | 19095 | |
d643b80e | 19096 | fi |
247f5006 | 19097 | |
21d1c967 GD |
19098 | if test "x$ZLIB_LINK" = "x" ; then |
19099 | if test "$wxUSE_ZLIB" = "sys" ; then | |
e6cc62c6 VS |
19100 | { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5 |
19101 | echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;} | |
19102 | { (exit 1); exit 1; }; } | |
21d1c967 | 19103 | else |
e6cc62c6 VS |
19104 | { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5 |
19105 | echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;} | |
21d1c967 GD |
19106 | wxUSE_ZLIB=builtin |
19107 | fi | |
19108 | else | |
19109 | wxUSE_ZLIB=sys | |
19110 | fi | |
19111 | fi | |
ab9b9eab VZ |
19112 | fi |
19113 | ||
8284b0c5 | 19114 | |
21d1c967 GD |
19115 | PNG_LINK= |
19116 | if test "$wxUSE_LIBPNG" != "no" ; then | |
e6cc62c6 | 19117 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 19118 | #define wxUSE_LIBPNG 1 |
e6cc62c6 | 19119 | _ACEOF |
90dd450c | 19120 | |
8284b0c5 | 19121 | |
21d1c967 | 19122 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then |
e6cc62c6 VS |
19123 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5 |
19124 | echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;} | |
21d1c967 GD |
19125 | wxUSE_LIBPNG=sys |
19126 | fi | |
90dd450c | 19127 | |
21d1c967 | 19128 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
e6cc62c6 VS |
19129 | { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5 |
19130 | echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;} | |
21d1c967 GD |
19131 | wxUSE_LIBPNG=builtin |
19132 | fi | |
19133 | ||
19134 | if test "$wxUSE_MGL" != 1 ; then | |
19135 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
e6cc62c6 VS |
19136 | echo "$as_me:$LINENO: checking for png.h > 0.90" >&5 |
19137 | echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6 | |
19138 | if test "${ac_cv_header_png_h+set}" = set; then | |
19139 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5d3f766d VZ |
19140 | else |
19141 | if test "$cross_compiling" = yes; then | |
89e6bf6d | 19142 | unset ac_cv_header_png_h |
e6cc62c6 | 19143 | |
5d3f766d | 19144 | else |
e6cc62c6 | 19145 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 19146 | #line $LINENO "configure" |
e6cc62c6 VS |
19147 | /* confdefs.h. */ |
19148 | _ACEOF | |
19149 | cat confdefs.h >>conftest.$ac_ext | |
19150 | cat >>conftest.$ac_ext <<_ACEOF | |
19151 | /* end confdefs.h. */ | |
19152 | ||
ef33c576 | 19153 | #include <png.h> |
5d3f766d VZ |
19154 | #include <stdio.h> |
19155 | ||
19156 | int main() | |
19157 | { | |
19158 | FILE *f=fopen("conftestval", "w"); | |
19159 | if (!f) exit(1); | |
19160 | fprintf(f, "%s", | |
19161 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
19162 | exit(0); | |
19163 | } | |
e6cc62c6 VS |
19164 | |
19165 | _ACEOF | |
19166 | rm -f conftest$ac_exeext | |
19167 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19168 | (eval $ac_link) 2>&5 | |
19169 | ac_status=$? | |
19170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19171 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19173 | (eval $ac_try) 2>&5 | |
19174 | ac_status=$? | |
19175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19176 | (exit $ac_status); }; }; then | |
5d3f766d VZ |
19177 | ac_cv_header_png_h=`cat conftestval` |
19178 | else | |
e6cc62c6 VS |
19179 | echo "$as_me: program exited with status $ac_status" >&5 |
19180 | echo "$as_me: failed program was:" >&5 | |
19181 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19182 | ||
19183 | ( exit $ac_status ) | |
19184 | ac_cv_header_png_h=no | |
5d3f766d | 19185 | fi |
789c5f4a | 19186 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
5d3f766d VZ |
19187 | fi |
19188 | ||
5d3f766d | 19189 | fi |
e6cc62c6 VS |
19190 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 |
19191 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
19192 | if test "${ac_cv_header_png_h+set}" = set; then | |
19193 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
19194 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
19195 | if test "${ac_cv_header_png_h+set}" = set; then | |
19196 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19197 | fi | |
19198 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
19199 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
89e6bf6d | 19200 | else |
e6cc62c6 VS |
19201 | # Is the header compilable? |
19202 | echo "$as_me:$LINENO: checking png.h usability" >&5 | |
19203 | echo $ECHO_N "checking png.h usability... $ECHO_C" >&6 | |
19204 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 19205 | #line $LINENO "configure" |
e6cc62c6 VS |
19206 | /* confdefs.h. */ |
19207 | _ACEOF | |
19208 | cat confdefs.h >>conftest.$ac_ext | |
19209 | cat >>conftest.$ac_ext <<_ACEOF | |
19210 | /* end confdefs.h. */ | |
19211 | $ac_includes_default | |
89e6bf6d | 19212 | #include <png.h> |
e6cc62c6 VS |
19213 | _ACEOF |
19214 | rm -f conftest.$ac_objext | |
19215 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 19216 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
19217 | ac_status=$? |
19218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19219 | (exit $ac_status); } && | |
789c5f4a | 19220 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
19221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19222 | (eval $ac_try) 2>&5 | |
19223 | ac_status=$? | |
19224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19225 | (exit $ac_status); }; }; then | |
19226 | ac_header_compiler=yes | |
19227 | else | |
19228 | echo "$as_me: failed program was:" >&5 | |
19229 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19230 | ||
19231 | ac_header_compiler=no | |
19232 | fi | |
789c5f4a | 19233 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
19234 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19235 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19236 | ||
19237 | # Is the header present? | |
19238 | echo "$as_me:$LINENO: checking png.h presence" >&5 | |
19239 | echo $ECHO_N "checking png.h presence... $ECHO_C" >&6 | |
19240 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 19241 | #line $LINENO "configure" |
e6cc62c6 VS |
19242 | /* confdefs.h. */ |
19243 | _ACEOF | |
19244 | cat confdefs.h >>conftest.$ac_ext | |
19245 | cat >>conftest.$ac_ext <<_ACEOF | |
19246 | /* end confdefs.h. */ | |
19247 | #include <png.h> | |
19248 | _ACEOF | |
19249 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19250 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19251 | ac_status=$? | |
19252 | grep -v '^ *+' conftest.er1 >conftest.err | |
19253 | rm -f conftest.er1 | |
19254 | cat conftest.err >&5 | |
19255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19256 | (exit $ac_status); } >/dev/null; then | |
19257 | if test -s conftest.err; then | |
19258 | ac_cpp_err=$ac_c_preproc_warn_flag | |
19259 | else | |
19260 | ac_cpp_err= | |
19261 | fi | |
19262 | else | |
19263 | ac_cpp_err=yes | |
19264 | fi | |
19265 | if test -z "$ac_cpp_err"; then | |
19266 | ac_header_preproc=yes | |
19267 | else | |
19268 | echo "$as_me: failed program was:" >&5 | |
19269 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19270 | ||
19271 | ac_header_preproc=no | |
19272 | fi | |
19273 | rm -f conftest.err conftest.$ac_ext | |
19274 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19275 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19276 | ||
19277 | # So? What about this header? | |
789c5f4a VZ |
19278 | case $ac_header_compiler:$ac_header_preproc in |
19279 | yes:no ) | |
e6cc62c6 VS |
19280 | { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
19281 | echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
789c5f4a VZ |
19282 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 |
19283 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
19284 | ( | |
19285 | cat <<\_ASBOX | |
19286 | ## ------------------------------------ ## | |
19287 | ## Report this to bug-autoconf@gnu.org. ## | |
19288 | ## ------------------------------------ ## | |
19289 | _ASBOX | |
19290 | ) | | |
19291 | sed "s/^/$as_me: WARNING: /" >&2 | |
e6cc62c6 | 19292 | ;; |
789c5f4a | 19293 | no:yes ) |
e6cc62c6 VS |
19294 | { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5 |
19295 | echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;} | |
789c5f4a VZ |
19296 | { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5 |
19297 | echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;} | |
e6cc62c6 VS |
19298 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 |
19299 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
19300 | ( | |
19301 | cat <<\_ASBOX | |
789c5f4a VZ |
19302 | ## ------------------------------------ ## |
19303 | ## Report this to bug-autoconf@gnu.org. ## | |
19304 | ## ------------------------------------ ## | |
e6cc62c6 VS |
19305 | _ASBOX |
19306 | ) | | |
19307 | sed "s/^/$as_me: WARNING: /" >&2 | |
19308 | ;; | |
19309 | esac | |
19310 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
19311 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
19312 | if test "${ac_cv_header_png_h+set}" = set; then | |
19313 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
89e6bf6d | 19314 | else |
e6cc62c6 VS |
19315 | ac_cv_header_png_h=$ac_header_preproc |
19316 | fi | |
19317 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
19318 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
19319 | ||
89e6bf6d VZ |
19320 | fi |
19321 | ||
5d3f766d | 19322 | |
e6cc62c6 | 19323 | |
5d3f766d | 19324 | if test "$ac_cv_header_png_h" = "yes"; then |
e6cc62c6 VS |
19325 | echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5 |
19326 | echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6 | |
19327 | if test "${ac_cv_lib_png_png_check_sig+set}" = set; then | |
19328 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 19329 | else |
e6cc62c6 | 19330 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 19331 | LIBS="-lpng -lz -lm $LIBS" |
e6cc62c6 | 19332 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 19333 | #line $LINENO "configure" |
e6cc62c6 VS |
19334 | /* confdefs.h. */ |
19335 | _ACEOF | |
19336 | cat confdefs.h >>conftest.$ac_ext | |
19337 | cat >>conftest.$ac_ext <<_ACEOF | |
19338 | /* end confdefs.h. */ | |
19339 | ||
21d1c967 | 19340 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
19341 | #ifdef __cplusplus |
19342 | extern "C" | |
19343 | #endif | |
21d1c967 | 19344 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
19345 | builtin and then its argument prototype would still apply. */ |
19346 | char png_check_sig (); | |
19347 | int | |
19348 | main () | |
19349 | { | |
19350 | png_check_sig (); | |
19351 | ; | |
19352 | return 0; | |
19353 | } | |
19354 | _ACEOF | |
19355 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19356 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 19357 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
19358 | ac_status=$? |
19359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19360 | (exit $ac_status); } && | |
789c5f4a | 19361 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
19362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19363 | (eval $ac_try) 2>&5 | |
19364 | ac_status=$? | |
19365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19366 | (exit $ac_status); }; }; then | |
19367 | ac_cv_lib_png_png_check_sig=yes | |
19368 | else | |
19369 | echo "$as_me: failed program was:" >&5 | |
19370 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19371 | ||
19372 | ac_cv_lib_png_png_check_sig=no | |
19373 | fi | |
789c5f4a | 19374 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
19375 | LIBS=$ac_check_lib_save_LIBS |
19376 | fi | |
19377 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5 | |
19378 | echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6 | |
19379 | if test $ac_cv_lib_png_png_check_sig = yes; then | |
a0b9e27f | 19380 | PNG_LINK=" -lpng" |
a0b9e27f | 19381 | fi |
90dd450c | 19382 | |
5d3f766d | 19383 | fi |
247f5006 | 19384 | |
21d1c967 GD |
19385 | if test "x$PNG_LINK" = "x" ; then |
19386 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
e6cc62c6 VS |
19387 | { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5 |
19388 | echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;} | |
19389 | { (exit 1); exit 1; }; } | |
21d1c967 | 19390 | else |
e6cc62c6 VS |
19391 | { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5 |
19392 | echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;} | |
21d1c967 GD |
19393 | wxUSE_LIBPNG=builtin |
19394 | fi | |
19395 | else | |
2b5f62a0 | 19396 | wxUSE_LIBPNG=sys |
21d1c967 GD |
19397 | fi |
19398 | fi | |
19399 | fi | |
90dd450c | 19400 | |
21d1c967 | 19401 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
90dd450c VZ |
19402 | fi |
19403 | ||
8284b0c5 | 19404 | |
21d1c967 GD |
19405 | JPEG_LINK= |
19406 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
e6cc62c6 | 19407 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 19408 | #define wxUSE_LIBJPEG 1 |
e6cc62c6 | 19409 | _ACEOF |
90dd450c | 19410 | |
8284b0c5 | 19411 | |
21d1c967 | 19412 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then |
e6cc62c6 VS |
19413 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5 |
19414 | echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;} | |
21d1c967 GD |
19415 | wxUSE_LIBJPEG=sys |
19416 | fi | |
90dd450c | 19417 | |
21d1c967 GD |
19418 | if test "$wxUSE_MGL" != 1 ; then |
19419 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
e6cc62c6 VS |
19420 | echo "$as_me:$LINENO: checking for jpeglib.h" >&5 |
19421 | echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6 | |
19422 | if test "${ac_cv_header_jpeglib_h+set}" = set; then | |
19423 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19424 | else | |
19425 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 19426 | #line $LINENO "configure" |
e6cc62c6 VS |
19427 | /* confdefs.h. */ |
19428 | _ACEOF | |
19429 | cat confdefs.h >>conftest.$ac_ext | |
19430 | cat >>conftest.$ac_ext <<_ACEOF | |
19431 | /* end confdefs.h. */ | |
90dd450c | 19432 | |
21d1c967 GD |
19433 | #undef HAVE_STDLIB_H |
19434 | #include <stdio.h> | |
19435 | #include <jpeglib.h> | |
90dd450c | 19436 | |
e6cc62c6 VS |
19437 | int |
19438 | main () | |
19439 | { | |
19440 | ||
19441 | ||
19442 | ; | |
19443 | return 0; | |
19444 | } | |
19445 | _ACEOF | |
19446 | rm -f conftest.$ac_objext | |
19447 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 19448 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
19449 | ac_status=$? |
19450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19451 | (exit $ac_status); } && | |
789c5f4a | 19452 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
19453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19454 | (eval $ac_try) 2>&5 | |
19455 | ac_status=$? | |
19456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19457 | (exit $ac_status); }; }; then | |
21d1c967 | 19458 | ac_cv_header_jpeglib_h=yes |
90dd450c | 19459 | else |
e6cc62c6 VS |
19460 | echo "$as_me: failed program was:" >&5 |
19461 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19462 | ||
19463 | ac_cv_header_jpeglib_h=no | |
19464 | ||
90dd450c | 19465 | fi |
789c5f4a | 19466 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 19467 | |
90dd450c VZ |
19468 | fi |
19469 | ||
e6cc62c6 VS |
19470 | echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5 |
19471 | echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6 | |
90dd450c | 19472 | |
21d1c967 | 19473 | if test "$ac_cv_header_jpeglib_h" = "yes"; then |
e6cc62c6 VS |
19474 | echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5 |
19475 | echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6 | |
19476 | if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then | |
19477 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 19478 | else |
e6cc62c6 | 19479 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 19480 | LIBS="-ljpeg $LIBS" |
e6cc62c6 | 19481 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 19482 | #line $LINENO "configure" |
e6cc62c6 VS |
19483 | /* confdefs.h. */ |
19484 | _ACEOF | |
19485 | cat confdefs.h >>conftest.$ac_ext | |
19486 | cat >>conftest.$ac_ext <<_ACEOF | |
19487 | /* end confdefs.h. */ | |
19488 | ||
21d1c967 | 19489 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
19490 | #ifdef __cplusplus |
19491 | extern "C" | |
19492 | #endif | |
21d1c967 | 19493 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
19494 | builtin and then its argument prototype would still apply. */ |
19495 | char jpeg_read_header (); | |
19496 | int | |
19497 | main () | |
19498 | { | |
19499 | jpeg_read_header (); | |
19500 | ; | |
19501 | return 0; | |
19502 | } | |
19503 | _ACEOF | |
19504 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19505 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 19506 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
19507 | ac_status=$? |
19508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19509 | (exit $ac_status); } && | |
789c5f4a | 19510 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
19511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19512 | (eval $ac_try) 2>&5 | |
19513 | ac_status=$? | |
19514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19515 | (exit $ac_status); }; }; then | |
19516 | ac_cv_lib_jpeg_jpeg_read_header=yes | |
19517 | else | |
19518 | echo "$as_me: failed program was:" >&5 | |
19519 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19520 | ||
19521 | ac_cv_lib_jpeg_jpeg_read_header=no | |
19522 | fi | |
789c5f4a | 19523 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
19524 | LIBS=$ac_check_lib_save_LIBS |
19525 | fi | |
19526 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 | |
19527 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6 | |
19528 | if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then | |
21d1c967 | 19529 | JPEG_LINK=" -ljpeg" |
90dd450c VZ |
19530 | fi |
19531 | ||
21d1c967 | 19532 | fi |
90dd450c | 19533 | |
21d1c967 GD |
19534 | if test "x$JPEG_LINK" = "x" ; then |
19535 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
e6cc62c6 VS |
19536 | { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5 |
19537 | echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;} | |
19538 | { (exit 1); exit 1; }; } | |
21d1c967 | 19539 | else |
e6cc62c6 VS |
19540 | { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5 |
19541 | echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;} | |
21d1c967 GD |
19542 | wxUSE_LIBJPEG=builtin |
19543 | fi | |
19544 | else | |
19545 | wxUSE_LIBJPEG=sys | |
19546 | fi | |
19547 | fi | |
19548 | fi | |
21d1c967 | 19549 | fi |
90dd450c | 19550 | |
8284b0c5 | 19551 | |
21d1c967 | 19552 | TIFF_LINK= |
2b5f62a0 | 19553 | TIFF_PREREQ_LINKS=-lm |
21d1c967 | 19554 | if test "$wxUSE_LIBTIFF" != "no" ; then |
e6cc62c6 | 19555 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 19556 | #define wxUSE_LIBTIFF 1 |
e6cc62c6 | 19557 | _ACEOF |
21d1c967 | 19558 | |
8284b0c5 | 19559 | |
21d1c967 | 19560 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then |
2b5f62a0 VZ |
19561 | if test "$wxUSE_LIBJPEG" = "sys"; then |
19562 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
19563 | fi | |
19564 | if test "$wxUSE_ZLIB" = "sys"; then | |
19565 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
19566 | fi | |
e6cc62c6 VS |
19567 | if test "${ac_cv_header_tiffio_h+set}" = set; then |
19568 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
19569 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
19570 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
19571 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19572 | fi | |
19573 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
19574 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
19575 | else | |
19576 | # Is the header compilable? | |
19577 | echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
19578 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 | |
19579 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 19580 | #line $LINENO "configure" |
e6cc62c6 VS |
19581 | /* confdefs.h. */ |
19582 | _ACEOF | |
19583 | cat confdefs.h >>conftest.$ac_ext | |
19584 | cat >>conftest.$ac_ext <<_ACEOF | |
19585 | /* end confdefs.h. */ | |
19586 | $ac_includes_default | |
247f5006 | 19587 | #include <tiffio.h> |
e6cc62c6 VS |
19588 | _ACEOF |
19589 | rm -f conftest.$ac_objext | |
19590 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 19591 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
19592 | ac_status=$? |
19593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19594 | (exit $ac_status); } && | |
789c5f4a | 19595 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
19596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19597 | (eval $ac_try) 2>&5 | |
19598 | ac_status=$? | |
19599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19600 | (exit $ac_status); }; }; then | |
19601 | ac_header_compiler=yes | |
19602 | else | |
19603 | echo "$as_me: failed program was:" >&5 | |
19604 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19605 | ||
19606 | ac_header_compiler=no | |
19607 | fi | |
789c5f4a | 19608 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
19609 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19610 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19611 | ||
19612 | # Is the header present? | |
19613 | echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
19614 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 | |
19615 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 19616 | #line $LINENO "configure" |
e6cc62c6 VS |
19617 | /* confdefs.h. */ |
19618 | _ACEOF | |
19619 | cat confdefs.h >>conftest.$ac_ext | |
19620 | cat >>conftest.$ac_ext <<_ACEOF | |
19621 | /* end confdefs.h. */ | |
19622 | #include <tiffio.h> | |
19623 | _ACEOF | |
19624 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19625 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19626 | ac_status=$? | |
19627 | grep -v '^ *+' conftest.er1 >conftest.err | |
19628 | rm -f conftest.er1 | |
19629 | cat conftest.err >&5 | |
19630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19631 | (exit $ac_status); } >/dev/null; then | |
19632 | if test -s conftest.err; then | |
19633 | ac_cpp_err=$ac_c_preproc_warn_flag | |
19634 | else | |
19635 | ac_cpp_err= | |
19636 | fi | |
19637 | else | |
19638 | ac_cpp_err=yes | |
19639 | fi | |
19640 | if test -z "$ac_cpp_err"; then | |
19641 | ac_header_preproc=yes | |
19642 | else | |
19643 | echo "$as_me: failed program was:" >&5 | |
19644 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19645 | ||
19646 | ac_header_preproc=no | |
19647 | fi | |
19648 | rm -f conftest.err conftest.$ac_ext | |
19649 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19650 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19651 | ||
19652 | # So? What about this header? | |
789c5f4a VZ |
19653 | case $ac_header_compiler:$ac_header_preproc in |
19654 | yes:no ) | |
e6cc62c6 VS |
19655 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
19656 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
789c5f4a VZ |
19657 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
19658 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
19659 | ( | |
19660 | cat <<\_ASBOX | |
19661 | ## ------------------------------------ ## | |
19662 | ## Report this to bug-autoconf@gnu.org. ## | |
19663 | ## ------------------------------------ ## | |
19664 | _ASBOX | |
19665 | ) | | |
19666 | sed "s/^/$as_me: WARNING: /" >&2 | |
e6cc62c6 | 19667 | ;; |
789c5f4a | 19668 | no:yes ) |
e6cc62c6 VS |
19669 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 |
19670 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
789c5f4a VZ |
19671 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 |
19672 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
e6cc62c6 VS |
19673 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
19674 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
19675 | ( | |
19676 | cat <<\_ASBOX | |
789c5f4a VZ |
19677 | ## ------------------------------------ ## |
19678 | ## Report this to bug-autoconf@gnu.org. ## | |
19679 | ## ------------------------------------ ## | |
e6cc62c6 VS |
19680 | _ASBOX |
19681 | ) | | |
19682 | sed "s/^/$as_me: WARNING: /" >&2 | |
19683 | ;; | |
19684 | esac | |
19685 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
19686 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
19687 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
19688 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19689 | else | |
19690 | ac_cv_header_tiffio_h=$ac_header_preproc | |
21d1c967 | 19691 | fi |
e6cc62c6 VS |
19692 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 |
19693 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
19694 | ||
21d1c967 | 19695 | fi |
e6cc62c6 | 19696 | if test $ac_cv_header_tiffio_h = yes; then |
0e012a93 VZ |
19697 | |
19698 | echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5 | |
e6cc62c6 VS |
19699 | echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6 |
19700 | if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then | |
19701 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
698dcdb6 | 19702 | else |
e6cc62c6 | 19703 | ac_check_lib_save_LIBS=$LIBS |
2b5f62a0 | 19704 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" |
e6cc62c6 | 19705 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 19706 | #line $LINENO "configure" |
e6cc62c6 VS |
19707 | /* confdefs.h. */ |
19708 | _ACEOF | |
19709 | cat confdefs.h >>conftest.$ac_ext | |
19710 | cat >>conftest.$ac_ext <<_ACEOF | |
19711 | /* end confdefs.h. */ | |
19712 | ||
ab9b9eab | 19713 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
19714 | #ifdef __cplusplus |
19715 | extern "C" | |
19716 | #endif | |
ab9b9eab | 19717 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
19718 | builtin and then its argument prototype would still apply. */ |
19719 | char TIFFError (); | |
19720 | int | |
19721 | main () | |
19722 | { | |
19723 | TIFFError (); | |
19724 | ; | |
19725 | return 0; | |
19726 | } | |
19727 | _ACEOF | |
19728 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19729 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 19730 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
19731 | ac_status=$? |
19732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19733 | (exit $ac_status); } && | |
789c5f4a | 19734 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
19735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19736 | (eval $ac_try) 2>&5 | |
19737 | ac_status=$? | |
19738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19739 | (exit $ac_status); }; }; then | |
19740 | ac_cv_lib_tiff_TIFFError=yes | |
19741 | else | |
19742 | echo "$as_me: failed program was:" >&5 | |
19743 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19744 | ||
19745 | ac_cv_lib_tiff_TIFFError=no | |
19746 | fi | |
789c5f4a | 19747 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
19748 | LIBS=$ac_check_lib_save_LIBS |
19749 | fi | |
19750 | echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5 | |
19751 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6 | |
19752 | if test $ac_cv_lib_tiff_TIFFError = yes; then | |
a0b9e27f | 19753 | TIFF_LINK=" -ltiff" |
a0b9e27f | 19754 | fi |
cd6d6d5b | 19755 | |
e6cc62c6 | 19756 | |
0e012a93 | 19757 | |
a0b9e27f | 19758 | fi |
8284b0c5 | 19759 | |
247f5006 | 19760 | |
e6cc62c6 | 19761 | |
21d1c967 GD |
19762 | if test "x$TIFF_LINK" = "x" ; then |
19763 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
e6cc62c6 VS |
19764 | { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5 |
19765 | echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;} | |
19766 | { (exit 1); exit 1; }; } | |
90dd450c | 19767 | else |
e6cc62c6 VS |
19768 | { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5 |
19769 | echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;} | |
21d1c967 | 19770 | wxUSE_LIBTIFF=builtin |
d8356fa3 | 19771 | fi |
d8356fa3 | 19772 | else |
21d1c967 | 19773 | wxUSE_LIBTIFF=sys |
d8356fa3 | 19774 | fi |
21d1c967 | 19775 | fi |
21d1c967 | 19776 | fi |
10f2d63a | 19777 | |
8284b0c5 | 19778 | |
672abd7a | 19779 | if test "$wxUSE_EXPAT" != "no"; then |
e06468e8 | 19780 | wxUSE_XML=yes |
672abd7a VS |
19781 | cat >>confdefs.h <<\_ACEOF |
19782 | #define wxUSE_EXPAT 1 | |
19783 | _ACEOF | |
19784 | ||
19785 | cat >>confdefs.h <<\_ACEOF | |
19786 | #define wxUSE_XML 1 | |
19787 | _ACEOF | |
19788 | ||
19789 | ||
19790 | if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then | |
19791 | if test "${ac_cv_header_expat_h+set}" = set; then | |
19792 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
19793 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
19794 | if test "${ac_cv_header_expat_h+set}" = set; then | |
19795 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19796 | fi | |
19797 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
19798 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
19799 | else | |
19800 | # Is the header compilable? | |
19801 | echo "$as_me:$LINENO: checking expat.h usability" >&5 | |
19802 | echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6 | |
19803 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 19804 | #line $LINENO "configure" |
672abd7a VS |
19805 | /* confdefs.h. */ |
19806 | _ACEOF | |
19807 | cat confdefs.h >>conftest.$ac_ext | |
19808 | cat >>conftest.$ac_ext <<_ACEOF | |
19809 | /* end confdefs.h. */ | |
19810 | $ac_includes_default | |
19811 | #include <expat.h> | |
19812 | _ACEOF | |
19813 | rm -f conftest.$ac_objext | |
19814 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 19815 | (eval $ac_compile) 2>&5 |
672abd7a VS |
19816 | ac_status=$? |
19817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19818 | (exit $ac_status); } && | |
789c5f4a | 19819 | { ac_try='test -s conftest.$ac_objext' |
672abd7a VS |
19820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19821 | (eval $ac_try) 2>&5 | |
19822 | ac_status=$? | |
19823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19824 | (exit $ac_status); }; }; then | |
19825 | ac_header_compiler=yes | |
19826 | else | |
19827 | echo "$as_me: failed program was:" >&5 | |
19828 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19829 | ||
19830 | ac_header_compiler=no | |
19831 | fi | |
789c5f4a | 19832 | rm -f conftest.$ac_objext conftest.$ac_ext |
672abd7a VS |
19833 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19834 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19835 | ||
19836 | # Is the header present? | |
19837 | echo "$as_me:$LINENO: checking expat.h presence" >&5 | |
19838 | echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6 | |
19839 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 19840 | #line $LINENO "configure" |
672abd7a VS |
19841 | /* confdefs.h. */ |
19842 | _ACEOF | |
19843 | cat confdefs.h >>conftest.$ac_ext | |
19844 | cat >>conftest.$ac_ext <<_ACEOF | |
19845 | /* end confdefs.h. */ | |
19846 | #include <expat.h> | |
19847 | _ACEOF | |
19848 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19849 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19850 | ac_status=$? | |
19851 | grep -v '^ *+' conftest.er1 >conftest.err | |
19852 | rm -f conftest.er1 | |
19853 | cat conftest.err >&5 | |
19854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19855 | (exit $ac_status); } >/dev/null; then | |
19856 | if test -s conftest.err; then | |
19857 | ac_cpp_err=$ac_c_preproc_warn_flag | |
19858 | else | |
19859 | ac_cpp_err= | |
19860 | fi | |
19861 | else | |
19862 | ac_cpp_err=yes | |
19863 | fi | |
19864 | if test -z "$ac_cpp_err"; then | |
19865 | ac_header_preproc=yes | |
19866 | else | |
19867 | echo "$as_me: failed program was:" >&5 | |
19868 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19869 | ||
19870 | ac_header_preproc=no | |
19871 | fi | |
19872 | rm -f conftest.err conftest.$ac_ext | |
19873 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19874 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19875 | ||
19876 | # So? What about this header? | |
789c5f4a VZ |
19877 | case $ac_header_compiler:$ac_header_preproc in |
19878 | yes:no ) | |
672abd7a VS |
19879 | { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
19880 | echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
789c5f4a VZ |
19881 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5 |
19882 | echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;} | |
19883 | ( | |
19884 | cat <<\_ASBOX | |
19885 | ## ------------------------------------ ## | |
19886 | ## Report this to bug-autoconf@gnu.org. ## | |
19887 | ## ------------------------------------ ## | |
19888 | _ASBOX | |
19889 | ) | | |
19890 | sed "s/^/$as_me: WARNING: /" >&2 | |
672abd7a | 19891 | ;; |
789c5f4a | 19892 | no:yes ) |
672abd7a VS |
19893 | { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5 |
19894 | echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;} | |
789c5f4a VZ |
19895 | { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5 |
19896 | echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;} | |
672abd7a VS |
19897 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5 |
19898 | echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;} | |
19899 | ( | |
19900 | cat <<\_ASBOX | |
789c5f4a VZ |
19901 | ## ------------------------------------ ## |
19902 | ## Report this to bug-autoconf@gnu.org. ## | |
19903 | ## ------------------------------------ ## | |
672abd7a VS |
19904 | _ASBOX |
19905 | ) | | |
19906 | sed "s/^/$as_me: WARNING: /" >&2 | |
19907 | ;; | |
19908 | esac | |
19909 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
19910 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
19911 | if test "${ac_cv_header_expat_h+set}" = set; then | |
19912 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19913 | else | |
19914 | ac_cv_header_expat_h=$ac_header_preproc | |
19915 | fi | |
19916 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
19917 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
19918 | ||
19919 | fi | |
5f0b6dff VS |
19920 | if test $ac_cv_header_expat_h = yes; then |
19921 | found_expat_h=1 | |
19922 | fi | |
19923 | ||
19924 | ||
19925 | if test "x$found_expat_h" = "x1"; then | |
19926 | echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5 | |
19927 | echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6 | |
19928 | if test "${wx_cv_expat_is_not_broken+set}" = set; then | |
19929 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19930 | else | |
19931 | ||
19932 | ||
672abd7a | 19933 | |
5f0b6dff VS |
19934 | ac_ext=cc |
19935 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19936 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19937 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19938 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19939 | ||
19940 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 19941 | #line $LINENO "configure" |
5f0b6dff VS |
19942 | /* confdefs.h. */ |
19943 | _ACEOF | |
19944 | cat confdefs.h >>conftest.$ac_ext | |
19945 | cat >>conftest.$ac_ext <<_ACEOF | |
19946 | /* end confdefs.h. */ | |
19947 | #include <expat.h> | |
19948 | int | |
19949 | main () | |
19950 | { | |
672abd7a | 19951 | |
5f0b6dff VS |
19952 | ; |
19953 | return 0; | |
19954 | } | |
19955 | _ACEOF | |
19956 | rm -f conftest.$ac_objext | |
19957 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 19958 | (eval $ac_compile) 2>&5 |
5f0b6dff VS |
19959 | ac_status=$? |
19960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19961 | (exit $ac_status); } && | |
789c5f4a | 19962 | { ac_try='test -s conftest.$ac_objext' |
5f0b6dff VS |
19963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19964 | (eval $ac_try) 2>&5 | |
19965 | ac_status=$? | |
19966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19967 | (exit $ac_status); }; }; then | |
19968 | wx_cv_expat_is_not_broken=yes | |
19969 | else | |
19970 | echo "$as_me: failed program was:" >&5 | |
19971 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19972 | ||
19973 | wx_cv_expat_is_not_broken=no | |
19974 | ||
19975 | fi | |
789c5f4a | 19976 | rm -f conftest.$ac_objext conftest.$ac_ext |
5f0b6dff VS |
19977 | ac_ext=c |
19978 | ac_cpp='$CPP $CPPFLAGS' | |
19979 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19980 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19981 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19982 | ||
19983 | ||
19984 | ||
19985 | fi | |
19986 | echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5 | |
19987 | echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6 | |
19988 | if test "$wx_cv_expat_is_not_broken" = "yes" ; then | |
19989 | echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5 | |
672abd7a VS |
19990 | echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6 |
19991 | if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then | |
19992 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19993 | else | |
19994 | ac_check_lib_save_LIBS=$LIBS | |
19995 | LIBS="-lexpat $LIBS" | |
19996 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 19997 | #line $LINENO "configure" |
672abd7a VS |
19998 | /* confdefs.h. */ |
19999 | _ACEOF | |
20000 | cat confdefs.h >>conftest.$ac_ext | |
20001 | cat >>conftest.$ac_ext <<_ACEOF | |
20002 | /* end confdefs.h. */ | |
20003 | ||
20004 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20005 | #ifdef __cplusplus | |
20006 | extern "C" | |
20007 | #endif | |
20008 | /* We use char because int might match the return type of a gcc2 | |
20009 | builtin and then its argument prototype would still apply. */ | |
20010 | char XML_ParserCreate (); | |
20011 | int | |
20012 | main () | |
20013 | { | |
20014 | XML_ParserCreate (); | |
20015 | ; | |
20016 | return 0; | |
20017 | } | |
20018 | _ACEOF | |
20019 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20020 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 20021 | (eval $ac_link) 2>&5 |
672abd7a VS |
20022 | ac_status=$? |
20023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20024 | (exit $ac_status); } && | |
789c5f4a | 20025 | { ac_try='test -s conftest$ac_exeext' |
672abd7a VS |
20026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20027 | (eval $ac_try) 2>&5 | |
20028 | ac_status=$? | |
20029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20030 | (exit $ac_status); }; }; then | |
20031 | ac_cv_lib_expat_XML_ParserCreate=yes | |
20032 | else | |
20033 | echo "$as_me: failed program was:" >&5 | |
20034 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20035 | ||
20036 | ac_cv_lib_expat_XML_ParserCreate=no | |
20037 | fi | |
789c5f4a | 20038 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
672abd7a VS |
20039 | LIBS=$ac_check_lib_save_LIBS |
20040 | fi | |
20041 | echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5 | |
20042 | echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6 | |
20043 | if test $ac_cv_lib_expat_XML_ParserCreate = yes; then | |
20044 | EXPAT_LINK=" -lexpat" | |
20045 | fi | |
20046 | ||
5f0b6dff | 20047 | fi |
672abd7a VS |
20048 | fi |
20049 | if test "x$EXPAT_LINK" = "x" ; then | |
20050 | if test "$wxUSE_EXPAT" = "sys" ; then | |
20051 | { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5 | |
20052 | echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;} | |
20053 | { (exit 1); exit 1; }; } | |
20054 | else | |
20055 | { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5 | |
20056 | echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;} | |
20057 | wxUSE_EXPAT=builtin | |
20058 | fi | |
20059 | else | |
20060 | wxUSE_EXPAT=sys | |
20061 | fi | |
20062 | fi | |
20063 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
20064 | ||
20065 | ||
20066 | subdirs="$subdirs src/expat" | |
20067 | ||
20068 | fi | |
20069 | fi | |
20070 | ||
20071 | ||
20072 | ||
3527f29c VS |
20073 | if test "$wxUSE_LIBMSPACK" != "no"; then |
20074 | ||
20075 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
20076 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
20077 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
20078 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
20079 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20080 | fi | |
20081 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
20082 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
20083 | else | |
20084 | # Is the header compilable? | |
20085 | echo "$as_me:$LINENO: checking mspack.h usability" >&5 | |
20086 | echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6 | |
20087 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 20088 | #line $LINENO "configure" |
3527f29c VS |
20089 | /* confdefs.h. */ |
20090 | _ACEOF | |
20091 | cat confdefs.h >>conftest.$ac_ext | |
20092 | cat >>conftest.$ac_ext <<_ACEOF | |
20093 | /* end confdefs.h. */ | |
20094 | $ac_includes_default | |
20095 | #include <mspack.h> | |
20096 | _ACEOF | |
20097 | rm -f conftest.$ac_objext | |
20098 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 20099 | (eval $ac_compile) 2>&5 |
3527f29c VS |
20100 | ac_status=$? |
20101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20102 | (exit $ac_status); } && | |
789c5f4a | 20103 | { ac_try='test -s conftest.$ac_objext' |
3527f29c VS |
20104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20105 | (eval $ac_try) 2>&5 | |
20106 | ac_status=$? | |
20107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20108 | (exit $ac_status); }; }; then | |
20109 | ac_header_compiler=yes | |
20110 | else | |
20111 | echo "$as_me: failed program was:" >&5 | |
20112 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20113 | ||
20114 | ac_header_compiler=no | |
20115 | fi | |
789c5f4a | 20116 | rm -f conftest.$ac_objext conftest.$ac_ext |
3527f29c VS |
20117 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20118 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20119 | ||
20120 | # Is the header present? | |
20121 | echo "$as_me:$LINENO: checking mspack.h presence" >&5 | |
20122 | echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6 | |
20123 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 20124 | #line $LINENO "configure" |
3527f29c VS |
20125 | /* confdefs.h. */ |
20126 | _ACEOF | |
20127 | cat confdefs.h >>conftest.$ac_ext | |
20128 | cat >>conftest.$ac_ext <<_ACEOF | |
20129 | /* end confdefs.h. */ | |
20130 | #include <mspack.h> | |
20131 | _ACEOF | |
20132 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20133 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20134 | ac_status=$? | |
20135 | grep -v '^ *+' conftest.er1 >conftest.err | |
20136 | rm -f conftest.er1 | |
20137 | cat conftest.err >&5 | |
20138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20139 | (exit $ac_status); } >/dev/null; then | |
20140 | if test -s conftest.err; then | |
20141 | ac_cpp_err=$ac_c_preproc_warn_flag | |
20142 | else | |
20143 | ac_cpp_err= | |
20144 | fi | |
20145 | else | |
20146 | ac_cpp_err=yes | |
20147 | fi | |
20148 | if test -z "$ac_cpp_err"; then | |
20149 | ac_header_preproc=yes | |
20150 | else | |
20151 | echo "$as_me: failed program was:" >&5 | |
20152 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20153 | ||
20154 | ac_header_preproc=no | |
20155 | fi | |
20156 | rm -f conftest.err conftest.$ac_ext | |
20157 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20158 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20159 | ||
20160 | # So? What about this header? | |
789c5f4a VZ |
20161 | case $ac_header_compiler:$ac_header_preproc in |
20162 | yes:no ) | |
3527f29c VS |
20163 | { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
20164 | echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
789c5f4a VZ |
20165 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5 |
20166 | echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;} | |
20167 | ( | |
20168 | cat <<\_ASBOX | |
20169 | ## ------------------------------------ ## | |
20170 | ## Report this to bug-autoconf@gnu.org. ## | |
20171 | ## ------------------------------------ ## | |
20172 | _ASBOX | |
20173 | ) | | |
20174 | sed "s/^/$as_me: WARNING: /" >&2 | |
3527f29c | 20175 | ;; |
789c5f4a | 20176 | no:yes ) |
3527f29c VS |
20177 | { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5 |
20178 | echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;} | |
789c5f4a VZ |
20179 | { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5 |
20180 | echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;} | |
3527f29c VS |
20181 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5 |
20182 | echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;} | |
20183 | ( | |
20184 | cat <<\_ASBOX | |
789c5f4a VZ |
20185 | ## ------------------------------------ ## |
20186 | ## Report this to bug-autoconf@gnu.org. ## | |
20187 | ## ------------------------------------ ## | |
3527f29c VS |
20188 | _ASBOX |
20189 | ) | | |
20190 | sed "s/^/$as_me: WARNING: /" >&2 | |
20191 | ;; | |
20192 | esac | |
20193 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
20194 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
20195 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
20196 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20197 | else | |
20198 | ac_cv_header_mspack_h=$ac_header_preproc | |
20199 | fi | |
20200 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
20201 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
20202 | ||
20203 | fi | |
20204 | if test $ac_cv_header_mspack_h = yes; then | |
20205 | found_mspack_h=1 | |
20206 | fi | |
20207 | ||
20208 | ||
20209 | if test "x$found_mspack_h" = "x1"; then | |
20210 | echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5 | |
20211 | echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6 | |
20212 | if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then | |
20213 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20214 | else | |
20215 | ac_check_lib_save_LIBS=$LIBS | |
20216 | LIBS="-lmspack $LIBS" | |
20217 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 20218 | #line $LINENO "configure" |
3527f29c VS |
20219 | /* confdefs.h. */ |
20220 | _ACEOF | |
20221 | cat confdefs.h >>conftest.$ac_ext | |
20222 | cat >>conftest.$ac_ext <<_ACEOF | |
20223 | /* end confdefs.h. */ | |
20224 | ||
20225 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20226 | #ifdef __cplusplus | |
20227 | extern "C" | |
20228 | #endif | |
20229 | /* We use char because int might match the return type of a gcc2 | |
20230 | builtin and then its argument prototype would still apply. */ | |
20231 | char mspack_create_chm_decompressor (); | |
20232 | int | |
20233 | main () | |
20234 | { | |
20235 | mspack_create_chm_decompressor (); | |
20236 | ; | |
20237 | return 0; | |
20238 | } | |
20239 | _ACEOF | |
20240 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20241 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 20242 | (eval $ac_link) 2>&5 |
3527f29c VS |
20243 | ac_status=$? |
20244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20245 | (exit $ac_status); } && | |
789c5f4a | 20246 | { ac_try='test -s conftest$ac_exeext' |
3527f29c VS |
20247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20248 | (eval $ac_try) 2>&5 | |
20249 | ac_status=$? | |
20250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20251 | (exit $ac_status); }; }; then | |
20252 | ac_cv_lib_mspack_mspack_create_chm_decompressor=yes | |
20253 | else | |
20254 | echo "$as_me: failed program was:" >&5 | |
20255 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20256 | ||
20257 | ac_cv_lib_mspack_mspack_create_chm_decompressor=no | |
20258 | fi | |
789c5f4a | 20259 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
3527f29c VS |
20260 | LIBS=$ac_check_lib_save_LIBS |
20261 | fi | |
20262 | echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5 | |
20263 | echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6 | |
20264 | if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then | |
20265 | MSPACK_LINK=" -lmspack" | |
20266 | fi | |
20267 | ||
20268 | fi | |
20269 | if test "x$MSPACK_LINK" = "x" ; then | |
20270 | wxUSE_LIBMSPACK=no | |
20271 | else | |
20272 | cat >>confdefs.h <<\_ACEOF | |
20273 | #define wxUSE_LIBMSPACK 1 | |
20274 | _ACEOF | |
20275 | ||
20276 | fi | |
20277 | fi | |
20278 | ||
20279 | ||
20280 | ||
21d1c967 | 20281 | AFMINSTALL= |
2b5f62a0 | 20282 | WIN32INSTALL= |
90dd450c | 20283 | |
21d1c967 GD |
20284 | TOOLKIT= |
20285 | TOOLKIT_INCLUDE= | |
20286 | WIDGET_SET= | |
20287 | ||
20288 | if test "$USE_WIN32" = 1 ; then | |
e6cc62c6 VS |
20289 | |
20290 | for ac_header in w32api.h | |
21d1c967 | 20291 | do |
e6cc62c6 VS |
20292 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
20293 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
20294 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
20295 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
20296 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
20297 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20298 | fi | |
20299 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
20300 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
20301 | else | |
20302 | # Is the header compilable? | |
20303 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
20304 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
20305 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 20306 | #line $LINENO "configure" |
e6cc62c6 VS |
20307 | /* confdefs.h. */ |
20308 | _ACEOF | |
20309 | cat confdefs.h >>conftest.$ac_ext | |
20310 | cat >>conftest.$ac_ext <<_ACEOF | |
20311 | /* end confdefs.h. */ | |
20312 | $ac_includes_default | |
20313 | #include <$ac_header> | |
20314 | _ACEOF | |
20315 | rm -f conftest.$ac_objext | |
20316 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 20317 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
20318 | ac_status=$? |
20319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20320 | (exit $ac_status); } && | |
789c5f4a | 20321 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
20322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20323 | (eval $ac_try) 2>&5 | |
20324 | ac_status=$? | |
20325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20326 | (exit $ac_status); }; }; then | |
20327 | ac_header_compiler=yes | |
20328 | else | |
20329 | echo "$as_me: failed program was:" >&5 | |
20330 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20331 | ||
20332 | ac_header_compiler=no | |
20333 | fi | |
789c5f4a | 20334 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
20335 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20336 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20337 | ||
20338 | # Is the header present? | |
20339 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
20340 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
20341 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 20342 | #line $LINENO "configure" |
e6cc62c6 VS |
20343 | /* confdefs.h. */ |
20344 | _ACEOF | |
20345 | cat confdefs.h >>conftest.$ac_ext | |
20346 | cat >>conftest.$ac_ext <<_ACEOF | |
20347 | /* end confdefs.h. */ | |
20348 | #include <$ac_header> | |
20349 | _ACEOF | |
20350 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20351 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20352 | ac_status=$? | |
20353 | grep -v '^ *+' conftest.er1 >conftest.err | |
20354 | rm -f conftest.er1 | |
20355 | cat conftest.err >&5 | |
20356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20357 | (exit $ac_status); } >/dev/null; then | |
20358 | if test -s conftest.err; then | |
20359 | ac_cpp_err=$ac_c_preproc_warn_flag | |
20360 | else | |
20361 | ac_cpp_err= | |
20362 | fi | |
20363 | else | |
20364 | ac_cpp_err=yes | |
20365 | fi | |
20366 | if test -z "$ac_cpp_err"; then | |
20367 | ac_header_preproc=yes | |
20368 | else | |
20369 | echo "$as_me: failed program was:" >&5 | |
20370 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20371 | ||
20372 | ac_header_preproc=no | |
20373 | fi | |
20374 | rm -f conftest.err conftest.$ac_ext | |
20375 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20376 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20377 | ||
20378 | # So? What about this header? | |
789c5f4a VZ |
20379 | case $ac_header_compiler:$ac_header_preproc in |
20380 | yes:no ) | |
e6cc62c6 VS |
20381 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
20382 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
789c5f4a VZ |
20383 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
20384 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
20385 | ( | |
20386 | cat <<\_ASBOX | |
20387 | ## ------------------------------------ ## | |
20388 | ## Report this to bug-autoconf@gnu.org. ## | |
20389 | ## ------------------------------------ ## | |
20390 | _ASBOX | |
20391 | ) | | |
20392 | sed "s/^/$as_me: WARNING: /" >&2 | |
e6cc62c6 | 20393 | ;; |
789c5f4a | 20394 | no:yes ) |
e6cc62c6 VS |
20395 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
20396 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
789c5f4a VZ |
20397 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
20398 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
e6cc62c6 VS |
20399 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
20400 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
20401 | ( | |
20402 | cat <<\_ASBOX | |
789c5f4a VZ |
20403 | ## ------------------------------------ ## |
20404 | ## Report this to bug-autoconf@gnu.org. ## | |
20405 | ## ------------------------------------ ## | |
e6cc62c6 VS |
20406 | _ASBOX |
20407 | ) | | |
20408 | sed "s/^/$as_me: WARNING: /" >&2 | |
20409 | ;; | |
20410 | esac | |
20411 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
20412 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
20413 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
20414 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20415 | else | |
789c5f4a | 20416 | eval "$as_ac_Header=$ac_header_preproc" |
f79bd02d | 20417 | fi |
e6cc62c6 VS |
20418 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
20419 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
20420 | ||
21d1c967 | 20421 | fi |
e6cc62c6 VS |
20422 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
20423 | cat >>confdefs.h <<_ACEOF | |
20424 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
20425 | _ACEOF | |
20426 | ||
21d1c967 | 20427 | fi |
e6cc62c6 | 20428 | |
21d1c967 | 20429 | done |
f79bd02d | 20430 | |
e6cc62c6 VS |
20431 | if test "${ac_cv_header_windows_h+set}" = set; then |
20432 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
20433 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
20434 | if test "${ac_cv_header_windows_h+set}" = set; then | |
20435 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20436 | fi | |
20437 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
20438 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
20439 | else | |
20440 | # Is the header compilable? | |
20441 | echo "$as_me:$LINENO: checking windows.h usability" >&5 | |
20442 | echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6 | |
20443 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 20444 | #line $LINENO "configure" |
e6cc62c6 VS |
20445 | /* confdefs.h. */ |
20446 | _ACEOF | |
20447 | cat confdefs.h >>conftest.$ac_ext | |
20448 | cat >>conftest.$ac_ext <<_ACEOF | |
20449 | /* end confdefs.h. */ | |
20450 | $ac_includes_default | |
247f5006 | 20451 | #include <windows.h> |
e6cc62c6 VS |
20452 | _ACEOF |
20453 | rm -f conftest.$ac_objext | |
20454 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 20455 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
20456 | ac_status=$? |
20457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20458 | (exit $ac_status); } && | |
789c5f4a | 20459 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
20460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20461 | (eval $ac_try) 2>&5 | |
20462 | ac_status=$? | |
20463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20464 | (exit $ac_status); }; }; then | |
20465 | ac_header_compiler=yes | |
20466 | else | |
20467 | echo "$as_me: failed program was:" >&5 | |
20468 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20469 | ||
20470 | ac_header_compiler=no | |
20471 | fi | |
789c5f4a | 20472 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
20473 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20474 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20475 | ||
20476 | # Is the header present? | |
20477 | echo "$as_me:$LINENO: checking windows.h presence" >&5 | |
20478 | echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6 | |
20479 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 20480 | #line $LINENO "configure" |
e6cc62c6 VS |
20481 | /* confdefs.h. */ |
20482 | _ACEOF | |
20483 | cat confdefs.h >>conftest.$ac_ext | |
20484 | cat >>conftest.$ac_ext <<_ACEOF | |
20485 | /* end confdefs.h. */ | |
20486 | #include <windows.h> | |
20487 | _ACEOF | |
20488 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20489 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20490 | ac_status=$? | |
20491 | grep -v '^ *+' conftest.er1 >conftest.err | |
20492 | rm -f conftest.er1 | |
20493 | cat conftest.err >&5 | |
20494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20495 | (exit $ac_status); } >/dev/null; then | |
20496 | if test -s conftest.err; then | |
20497 | ac_cpp_err=$ac_c_preproc_warn_flag | |
20498 | else | |
20499 | ac_cpp_err= | |
20500 | fi | |
20501 | else | |
20502 | ac_cpp_err=yes | |
20503 | fi | |
20504 | if test -z "$ac_cpp_err"; then | |
20505 | ac_header_preproc=yes | |
20506 | else | |
20507 | echo "$as_me: failed program was:" >&5 | |
20508 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20509 | ||
20510 | ac_header_preproc=no | |
20511 | fi | |
20512 | rm -f conftest.err conftest.$ac_ext | |
20513 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20514 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20515 | ||
20516 | # So? What about this header? | |
789c5f4a VZ |
20517 | case $ac_header_compiler:$ac_header_preproc in |
20518 | yes:no ) | |
e6cc62c6 VS |
20519 | { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
20520 | echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
789c5f4a VZ |
20521 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 |
20522 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
20523 | ( | |
20524 | cat <<\_ASBOX | |
20525 | ## ------------------------------------ ## | |
20526 | ## Report this to bug-autoconf@gnu.org. ## | |
20527 | ## ------------------------------------ ## | |
20528 | _ASBOX | |
20529 | ) | | |
20530 | sed "s/^/$as_me: WARNING: /" >&2 | |
e6cc62c6 | 20531 | ;; |
789c5f4a | 20532 | no:yes ) |
e6cc62c6 VS |
20533 | { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5 |
20534 | echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;} | |
789c5f4a VZ |
20535 | { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5 |
20536 | echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;} | |
e6cc62c6 VS |
20537 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 |
20538 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
20539 | ( | |
20540 | cat <<\_ASBOX | |
789c5f4a VZ |
20541 | ## ------------------------------------ ## |
20542 | ## Report this to bug-autoconf@gnu.org. ## | |
20543 | ## ------------------------------------ ## | |
e6cc62c6 VS |
20544 | _ASBOX |
20545 | ) | | |
20546 | sed "s/^/$as_me: WARNING: /" >&2 | |
20547 | ;; | |
20548 | esac | |
20549 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
20550 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
20551 | if test "${ac_cv_header_windows_h+set}" = set; then | |
20552 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20553 | else | |
20554 | ac_cv_header_windows_h=$ac_header_preproc | |
90dd450c | 20555 | fi |
e6cc62c6 VS |
20556 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 |
20557 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
20558 | ||
90dd450c | 20559 | fi |
e6cc62c6 | 20560 | if test $ac_cv_header_windows_h = yes; then |
21d1c967 | 20561 | : |
90dd450c | 20562 | else |
21d1c967 | 20563 | |
e6cc62c6 VS |
20564 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5 |
20565 | echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;} | |
20566 | { (exit 1); exit 1; }; } | |
20567 | ||
5c6fa7d2 | 20568 | fi |
7b4a847f | 20569 | |
5c6fa7d2 | 20570 | |
e6cc62c6 | 20571 | |
b3dfbbc9 | 20572 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32" |
21d1c967 | 20573 | |
7bb2947d MB |
20574 | if test "$wxUSE_ACCESSIBILITY" = "yes" ; then |
20575 | LIBS="$LIBS -loleacc" | |
20576 | fi | |
20577 | ||
21d1c967 GD |
20578 | case "${host}" in |
20579 | *-*-cygwin* ) | |
b3dfbbc9 | 20580 | LIBS="$LIBS -lkernel32 -luser32" |
21d1c967 | 20581 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" |
f79bd02d | 20582 | esac |
f79bd02d | 20583 | |
8647bec6 RG |
20584 | if test "$wxUSE_ODBC" = "sys" ; then |
20585 | wxUSE_ODBC = "yes" | |
21d1c967 | 20586 | fi |
8647bec6 RG |
20587 | if test "$wxUSE_ODBC" = "yes" ; then |
20588 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
e6cc62c6 | 20589 | cat >>confdefs.h <<\_ACEOF |
8647bec6 | 20590 | #define wxUSE_ODBC 1 |
e6cc62c6 | 20591 | _ACEOF |
f79bd02d | 20592 | |
8647bec6 | 20593 | fi |
e6cc62c6 | 20594 | |
21d1c967 GD |
20595 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
20596 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
2b5f62a0 VZ |
20597 | |
20598 | WIN32INSTALL=win32install | |
f79bd02d | 20599 | fi |
f79bd02d | 20600 | |
21d1c967 GD |
20601 | if test "$wxUSE_GUI" = "yes"; then |
20602 | USE_GUI=1 | |
f79bd02d | 20603 | |
21d1c967 | 20604 | GUI_TK_LIBRARY= |
f79bd02d | 20605 | |
21d1c967 GD |
20606 | WXGTK12= |
20607 | WXGTK127= | |
20608 | WXGTK20= | |
f79bd02d | 20609 | |
21d1c967 GD |
20610 | if test "$wxUSE_MSW" = 1 ; then |
20611 | TOOLKIT=MSW | |
20612 | GUIDIST=MSW_DIST | |
ffef10f6 VS |
20613 | |
20614 | case "${host}" in | |
20615 | *-*-mingw32* ) | |
20616 | WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
20617 | esac | |
f79bd02d JS |
20618 | fi |
20619 | ||
21d1c967 | 20620 | if test "$wxUSE_GTK" = 1; then |
e6cc62c6 VS |
20621 | echo "$as_me:$LINENO: checking for GTK+ version" >&5 |
20622 | echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6 | |
21d1c967 GD |
20623 | |
20624 | gtk_version_cached=1 | |
e6cc62c6 VS |
20625 | if test "${wx_cv_lib_gtk+set}" = set; then |
20626 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f79bd02d | 20627 | else |
e6cc62c6 | 20628 | |
21d1c967 | 20629 | gtk_version_cached=0 |
e6cc62c6 VS |
20630 | echo "$as_me:$LINENO: result: " >&5 |
20631 | echo "${ECHO_T}" >&6 | |
f79bd02d | 20632 | |
21d1c967 GD |
20633 | GTK_MODULES= |
20634 | if test "$wxUSE_THREADS" = "yes"; then | |
20635 | GTK_MODULES=gthread | |
20636 | fi | |
f79bd02d | 20637 | |
2b5f62a0 | 20638 | wx_cv_lib_gtk= |
21d1c967 GD |
20639 | if test "x$wxUSE_GTK2" = "xyes"; then |
20640 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
20641 | if test "${enable_gtktest+set}" = set; then | |
20642 | enableval="$enable_gtktest" | |
e6cc62c6 | 20643 | |
f79bd02d | 20644 | else |
21d1c967 | 20645 | enable_gtktest=yes |
e6cc62c6 | 20646 | fi; |
f79bd02d | 20647 | |
21d1c967 GD |
20648 | pkg_config_args=gtk+-2.0 |
20649 | for module in . $GTK_MODULES | |
20650 | do | |
20651 | case "$module" in | |
e6cc62c6 | 20652 | gthread) |
21d1c967 GD |
20653 | pkg_config_args="$pkg_config_args gthread-2.0" |
20654 | ;; | |
20655 | esac | |
20656 | done | |
20657 | ||
20658 | no_gtk="" | |
f79bd02d | 20659 | |
21d1c967 GD |
20660 | # Extract the first word of "pkg-config", so it can be a program name with args. |
20661 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
20662 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
20663 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
20664 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
20665 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 20666 | else |
e6cc62c6 VS |
20667 | case $PKG_CONFIG in |
20668 | [\\/]* | ?:[\\/]*) | |
21d1c967 GD |
20669 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
20670 | ;; | |
21d1c967 | 20671 | *) |
e6cc62c6 VS |
20672 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
20673 | for as_dir in $PATH | |
20674 | do | |
20675 | IFS=$as_save_IFS | |
20676 | test -z "$as_dir" && as_dir=. | |
20677 | for ac_exec_ext in '' $ac_executable_extensions; do | |
20678 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
20679 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
20680 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
20681 | break 2 | |
20682 | fi | |
20683 | done | |
20684 | done | |
20685 | ||
21d1c967 GD |
20686 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
20687 | ;; | |
20688 | esac | |
f79bd02d | 20689 | fi |
e6cc62c6 VS |
20690 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
20691 | ||
21d1c967 | 20692 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
20693 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
20694 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
f79bd02d | 20695 | else |
e6cc62c6 VS |
20696 | echo "$as_me:$LINENO: result: no" >&5 |
20697 | echo "${ECHO_T}no" >&6 | |
f79bd02d JS |
20698 | fi |
20699 | ||
8284b0c5 | 20700 | |
21d1c967 GD |
20701 | if test x$PKG_CONFIG != xno ; then |
20702 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
20703 | : | |
20704 | else | |
20705 | echo *** pkg-config too old; version 0.7 or better required. | |
20706 | no_gtk=yes | |
20707 | PKG_CONFIG=no | |
20708 | fi | |
20709 | else | |
20710 | no_gtk=yes | |
20711 | fi | |
f79bd02d | 20712 | |
21d1c967 | 20713 | min_gtk_version=2.0.0 |
e6cc62c6 VS |
20714 | echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 |
20715 | echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6 | |
f79bd02d | 20716 | |
21d1c967 GD |
20717 | if test x$PKG_CONFIG != xno ; then |
20718 | ## don't try to run the test against uninstalled libtool libs | |
20719 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
20720 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
20721 | enable_gtktest=no | |
20722 | fi | |
f79bd02d | 20723 | |
21d1c967 GD |
20724 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then |
20725 | : | |
20726 | else | |
20727 | no_gtk=yes | |
20728 | fi | |
20729 | fi | |
f79bd02d | 20730 | |
21d1c967 GD |
20731 | if test x"$no_gtk" = x ; then |
20732 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
20733 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
20734 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
20735 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
20736 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
20737 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
20738 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
20739 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
20740 | if test "x$enable_gtktest" = "xyes" ; then | |
20741 | ac_save_CFLAGS="$CFLAGS" | |
20742 | ac_save_LIBS="$LIBS" | |
20743 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
20744 | LIBS="$GTK_LIBS $LIBS" | |
20745 | rm -f conf.gtktest | |
20746 | if test "$cross_compiling" = yes; then | |
20747 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 20748 | else |
e6cc62c6 | 20749 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 20750 | #line $LINENO "configure" |
e6cc62c6 VS |
20751 | /* confdefs.h. */ |
20752 | _ACEOF | |
20753 | cat confdefs.h >>conftest.$ac_ext | |
20754 | cat >>conftest.$ac_ext <<_ACEOF | |
20755 | /* end confdefs.h. */ | |
f79bd02d | 20756 | |
21d1c967 GD |
20757 | #include <gtk/gtk.h> |
20758 | #include <stdio.h> | |
20759 | #include <stdlib.h> | |
f79bd02d | 20760 | |
e6cc62c6 | 20761 | int |
21d1c967 GD |
20762 | main () |
20763 | { | |
20764 | int major, minor, micro; | |
20765 | char *tmp_version; | |
f79bd02d | 20766 | |
21d1c967 | 20767 | system ("touch conf.gtktest"); |
f79bd02d | 20768 | |
21d1c967 GD |
20769 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
20770 | tmp_version = g_strdup("$min_gtk_version"); | |
20771 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
20772 | printf("%s, bad version string\n", "$min_gtk_version"); | |
20773 | exit(1); | |
20774 | } | |
f79bd02d | 20775 | |
21d1c967 GD |
20776 | if ((gtk_major_version != $gtk_config_major_version) || |
20777 | (gtk_minor_version != $gtk_config_minor_version) || | |
20778 | (gtk_micro_version != $gtk_config_micro_version)) | |
20779 | { | |
e6cc62c6 | 20780 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
20781 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
20782 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
20783 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
20784 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
20785 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
20786 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
20787 | printf("*** required on your system.\n"); | |
20788 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
20789 | printf("*** to point to the correct configuration files\n"); | |
e6cc62c6 | 20790 | } |
21d1c967 GD |
20791 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || |
20792 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
20793 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
20794 | { | |
20795 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
20796 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
20797 | printf("*** library (version %d.%d.%d)\n", | |
20798 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
20799 | } | |
20800 | else | |
20801 | { | |
20802 | if ((gtk_major_version > major) || | |
20803 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
20804 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
20805 | { | |
20806 | return 0; | |
20807 | } | |
20808 | else | |
20809 | { | |
20810 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
20811 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
20812 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
20813 | major, minor, micro); | |
20814 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
20815 | printf("***\n"); | |
20816 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
20817 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
20818 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
20819 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
20820 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
20821 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
20822 | printf("*** so that the correct libraries are found at run-time))\n"); | |
20823 | } | |
20824 | } | |
20825 | return 1; | |
20826 | } | |
f79bd02d | 20827 | |
e6cc62c6 VS |
20828 | _ACEOF |
20829 | rm -f conftest$ac_exeext | |
20830 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20831 | (eval $ac_link) 2>&5 | |
20832 | ac_status=$? | |
20833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20834 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20836 | (eval $ac_try) 2>&5 | |
20837 | ac_status=$? | |
20838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20839 | (exit $ac_status); }; }; then | |
21d1c967 | 20840 | : |
f79bd02d | 20841 | else |
e6cc62c6 VS |
20842 | echo "$as_me: program exited with status $ac_status" >&5 |
20843 | echo "$as_me: failed program was:" >&5 | |
20844 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20845 | ||
20846 | ( exit $ac_status ) | |
20847 | no_gtk=yes | |
f79bd02d | 20848 | fi |
789c5f4a | 20849 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
f79bd02d | 20850 | fi |
21d1c967 GD |
20851 | CFLAGS="$ac_save_CFLAGS" |
20852 | LIBS="$ac_save_LIBS" | |
20853 | fi | |
20854 | fi | |
20855 | if test "x$no_gtk" = x ; then | |
e6cc62c6 VS |
20856 | echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 |
20857 | echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6 | |
20858 | wx_cv_lib_gtk=2.0 | |
21d1c967 | 20859 | else |
e6cc62c6 VS |
20860 | echo "$as_me:$LINENO: result: no" >&5 |
20861 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
20862 | if test "$PKG_CONFIG" = "no" ; then |
20863 | echo "*** A new enough version of pkg-config was not found." | |
20864 | echo "*** See http://pkgconfig.sourceforge.net" | |
20865 | else | |
20866 | if test -f conf.gtktest ; then | |
20867 | : | |
20868 | else | |
20869 | echo "*** Could not run GTK+ test program, checking why..." | |
579d8138 VS |
20870 | ac_save_CFLAGS="$CFLAGS" |
20871 | ac_save_LIBS="$LIBS" | |
21d1c967 GD |
20872 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
20873 | LIBS="$LIBS $GTK_LIBS" | |
e6cc62c6 | 20874 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 20875 | #line $LINENO "configure" |
e6cc62c6 VS |
20876 | /* confdefs.h. */ |
20877 | _ACEOF | |
20878 | cat confdefs.h >>conftest.$ac_ext | |
20879 | cat >>conftest.$ac_ext <<_ACEOF | |
20880 | /* end confdefs.h. */ | |
21d1c967 GD |
20881 | |
20882 | #include <gtk/gtk.h> | |
20883 | #include <stdio.h> | |
f79bd02d | 20884 | |
e6cc62c6 VS |
20885 | int |
20886 | main () | |
20887 | { | |
20888 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
20889 | ; | |
20890 | return 0; | |
20891 | } | |
20892 | _ACEOF | |
20893 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20894 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 20895 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
20896 | ac_status=$? |
20897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20898 | (exit $ac_status); } && | |
789c5f4a | 20899 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
20900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20901 | (eval $ac_try) 2>&5 | |
20902 | ac_status=$? | |
20903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20904 | (exit $ac_status); }; }; then | |
21d1c967 GD |
20905 | echo "*** The test program compiled, but did not run. This usually means" |
20906 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
20907 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
20908 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
20909 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
20910 | echo "*** is required on your system" | |
20911 | echo "***" | |
20912 | echo "*** If you have an old version installed, it is best to remove it, although" | |
e6cc62c6 | 20913 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" |
f79bd02d | 20914 | else |
e6cc62c6 VS |
20915 | echo "$as_me: failed program was:" >&5 |
20916 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20917 | ||
20918 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
579d8138 | 20919 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." |
f79bd02d | 20920 | fi |
789c5f4a | 20921 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
21d1c967 GD |
20922 | CFLAGS="$ac_save_CFLAGS" |
20923 | LIBS="$ac_save_LIBS" | |
20924 | fi | |
20925 | fi | |
20926 | GTK_CFLAGS="" | |
20927 | GTK_LIBS="" | |
20928 | : | |
20929 | fi | |
e6cc62c6 VS |
20930 | |
20931 | ||
21d1c967 | 20932 | rm -f conf.gtktest |
f79bd02d | 20933 | |
2b5f62a0 | 20934 | else |
e6cc62c6 VS |
20935 | |
20936 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
21d1c967 GD |
20937 | if test "${with_gtk_prefix+set}" = set; then |
20938 | withval="$with_gtk_prefix" | |
20939 | gtk_config_prefix="$withval" | |
20940 | else | |
20941 | gtk_config_prefix="" | |
e6cc62c6 | 20942 | fi; |
f79bd02d | 20943 | |
21d1c967 GD |
20944 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
20945 | if test "${with_gtk_exec_prefix+set}" = set; then | |
20946 | withval="$with_gtk_exec_prefix" | |
20947 | gtk_config_exec_prefix="$withval" | |
20948 | else | |
20949 | gtk_config_exec_prefix="" | |
e6cc62c6 | 20950 | fi; |
21d1c967 GD |
20951 | # Check whether --enable-gtktest or --disable-gtktest was given. |
20952 | if test "${enable_gtktest+set}" = set; then | |
20953 | enableval="$enable_gtktest" | |
e6cc62c6 | 20954 | |
21d1c967 GD |
20955 | else |
20956 | enable_gtktest=yes | |
e6cc62c6 | 20957 | fi; |
21d1c967 GD |
20958 | |
20959 | for module in . $GTK_MODULES | |
20960 | do | |
20961 | case "$module" in | |
e6cc62c6 | 20962 | gthread) |
21d1c967 GD |
20963 | gtk_config_args="$gtk_config_args gthread" |
20964 | ;; | |
20965 | esac | |
20966 | done | |
20967 | ||
20968 | if test x$gtk_config_exec_prefix != x ; then | |
20969 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
20970 | if test x${GTK_CONFIG+set} != xset ; then | |
20971 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
20972 | fi | |
20973 | fi | |
20974 | if test x$gtk_config_prefix != x ; then | |
20975 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
20976 | if test x${GTK_CONFIG+set} != xset ; then | |
20977 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
20978 | fi | |
20979 | fi | |
20980 | ||
20981 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
20982 | set dummy gtk-config; ac_word=$2 | |
e6cc62c6 VS |
20983 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
20984 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
20985 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
20986 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 20987 | else |
e6cc62c6 VS |
20988 | case $GTK_CONFIG in |
20989 | [\\/]* | ?:[\\/]*) | |
21d1c967 GD |
20990 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
20991 | ;; | |
21d1c967 | 20992 | *) |
e6cc62c6 VS |
20993 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
20994 | for as_dir in $PATH | |
20995 | do | |
20996 | IFS=$as_save_IFS | |
20997 | test -z "$as_dir" && as_dir=. | |
20998 | for ac_exec_ext in '' $ac_executable_extensions; do | |
20999 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
21000 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
21001 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
21002 | break 2 | |
21003 | fi | |
21004 | done | |
21005 | done | |
21006 | ||
21d1c967 GD |
21007 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
21008 | ;; | |
21009 | esac | |
21010 | fi | |
e6cc62c6 VS |
21011 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG |
21012 | ||
21d1c967 | 21013 | if test -n "$GTK_CONFIG"; then |
e6cc62c6 VS |
21014 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 |
21015 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
21d1c967 | 21016 | else |
e6cc62c6 VS |
21017 | echo "$as_me:$LINENO: result: no" >&5 |
21018 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
21019 | fi |
21020 | ||
21021 | min_gtk_version=1.2.7 | |
e6cc62c6 VS |
21022 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 |
21023 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
21d1c967 GD |
21024 | no_gtk="" |
21025 | if test "$GTK_CONFIG" = "no" ; then | |
21026 | no_gtk=yes | |
21027 | else | |
21028 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
21029 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
21030 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
21031 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
21032 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
21033 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
21034 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
21035 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
21036 | if test "x$enable_gtktest" = "xyes" ; then | |
21037 | ac_save_CFLAGS="$CFLAGS" | |
21038 | ac_save_LIBS="$LIBS" | |
21039 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
21040 | LIBS="$GTK_LIBS $LIBS" | |
21041 | rm -f conf.gtktest | |
21042 | if test "$cross_compiling" = yes; then | |
21043 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 21044 | else |
e6cc62c6 | 21045 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 21046 | #line $LINENO "configure" |
e6cc62c6 VS |
21047 | /* confdefs.h. */ |
21048 | _ACEOF | |
21049 | cat confdefs.h >>conftest.$ac_ext | |
21050 | cat >>conftest.$ac_ext <<_ACEOF | |
21051 | /* end confdefs.h. */ | |
f79bd02d | 21052 | |
21d1c967 GD |
21053 | #include <gtk/gtk.h> |
21054 | #include <stdio.h> | |
21055 | #include <stdlib.h> | |
f79bd02d | 21056 | |
e6cc62c6 | 21057 | int |
21d1c967 GD |
21058 | main () |
21059 | { | |
21060 | int major, minor, micro; | |
21061 | char *tmp_version; | |
21062 | ||
21063 | system ("touch conf.gtktest"); | |
21064 | ||
21065 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
21066 | tmp_version = g_strdup("$min_gtk_version"); | |
21067 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
21068 | printf("%s, bad version string\n", "$min_gtk_version"); | |
21069 | exit(1); | |
21070 | } | |
90dd450c | 21071 | |
21d1c967 GD |
21072 | if ((gtk_major_version != $gtk_config_major_version) || |
21073 | (gtk_minor_version != $gtk_config_minor_version) || | |
21074 | (gtk_micro_version != $gtk_config_micro_version)) | |
21075 | { | |
e6cc62c6 | 21076 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
21077 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
21078 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
21079 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
21080 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
21081 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
21082 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
21083 | printf("*** required on your system.\n"); | |
21084 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
21085 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
21086 | printf("*** before re-running configure\n"); | |
e6cc62c6 | 21087 | } |
21d1c967 GD |
21088 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
21089 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
21090 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
21091 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
21092 | { | |
21093 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
21094 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
21095 | printf("*** library (version %d.%d.%d)\n", | |
21096 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
21097 | } | |
21098 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
21099 | else | |
21100 | { | |
21101 | if ((gtk_major_version > major) || | |
21102 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
21103 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
21104 | { | |
21105 | return 0; | |
21106 | } | |
21107 | else | |
21108 | { | |
21109 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
21110 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
21111 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
21112 | major, minor, micro); | |
21113 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
21114 | printf("***\n"); | |
21115 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
21116 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
21117 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
21118 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
21119 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
21120 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
21121 | printf("*** so that the correct libraries are found at run-time))\n"); | |
21122 | } | |
21123 | } | |
21124 | return 1; | |
21125 | } | |
21126 | ||
e6cc62c6 VS |
21127 | _ACEOF |
21128 | rm -f conftest$ac_exeext | |
21129 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21130 | (eval $ac_link) 2>&5 | |
21131 | ac_status=$? | |
21132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21133 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21135 | (eval $ac_try) 2>&5 | |
21136 | ac_status=$? | |
21137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21138 | (exit $ac_status); }; }; then | |
21d1c967 GD |
21139 | : |
21140 | else | |
e6cc62c6 VS |
21141 | echo "$as_me: program exited with status $ac_status" >&5 |
21142 | echo "$as_me: failed program was:" >&5 | |
21143 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21144 | ||
21145 | ( exit $ac_status ) | |
21146 | no_gtk=yes | |
21d1c967 | 21147 | fi |
789c5f4a | 21148 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 21149 | fi |
21d1c967 GD |
21150 | CFLAGS="$ac_save_CFLAGS" |
21151 | LIBS="$ac_save_LIBS" | |
21152 | fi | |
21153 | fi | |
21154 | if test "x$no_gtk" = x ; then | |
e6cc62c6 VS |
21155 | echo "$as_me:$LINENO: result: yes" >&5 |
21156 | echo "${ECHO_T}yes" >&6 | |
21157 | wx_cv_lib_gtk=1.2.7 | |
21d1c967 | 21158 | else |
e6cc62c6 VS |
21159 | echo "$as_me:$LINENO: result: no" >&5 |
21160 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
21161 | if test "$GTK_CONFIG" = "no" ; then |
21162 | echo "*** The gtk-config script installed by GTK could not be found" | |
21163 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
21164 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
21165 | echo "*** full path to gtk-config." | |
21166 | else | |
21167 | if test -f conf.gtktest ; then | |
21168 | : | |
21169 | else | |
21170 | echo "*** Could not run GTK test program, checking why..." | |
21171 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
21172 | LIBS="$LIBS $GTK_LIBS" | |
e6cc62c6 | 21173 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 21174 | #line $LINENO "configure" |
e6cc62c6 VS |
21175 | /* confdefs.h. */ |
21176 | _ACEOF | |
21177 | cat confdefs.h >>conftest.$ac_ext | |
21178 | cat >>conftest.$ac_ext <<_ACEOF | |
21179 | /* end confdefs.h. */ | |
21d1c967 GD |
21180 | |
21181 | #include <gtk/gtk.h> | |
21182 | #include <stdio.h> | |
21183 | ||
e6cc62c6 VS |
21184 | int |
21185 | main () | |
21186 | { | |
21187 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
21188 | ; | |
21189 | return 0; | |
21190 | } | |
21191 | _ACEOF | |
21192 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21193 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 21194 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
21195 | ac_status=$? |
21196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21197 | (exit $ac_status); } && | |
789c5f4a | 21198 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
21199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21200 | (eval $ac_try) 2>&5 | |
21201 | ac_status=$? | |
21202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21203 | (exit $ac_status); }; }; then | |
21d1c967 GD |
21204 | echo "*** The test program compiled, but did not run. This usually means" |
21205 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
21206 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
21207 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
21208 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
21209 | echo "*** is required on your system" | |
21210 | echo "***" | |
21211 | echo "*** If you have an old version installed, it is best to remove it, although" | |
21212 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
21213 | echo "***" | |
21214 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
21215 | echo "*** came with the system with the command" | |
21216 | echo "***" | |
e6cc62c6 | 21217 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
f79bd02d | 21218 | else |
e6cc62c6 VS |
21219 | echo "$as_me: failed program was:" >&5 |
21220 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21221 | ||
21222 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21d1c967 GD |
21223 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
21224 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
e6cc62c6 | 21225 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
f79bd02d | 21226 | fi |
789c5f4a | 21227 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
21d1c967 GD |
21228 | CFLAGS="$ac_save_CFLAGS" |
21229 | LIBS="$ac_save_LIBS" | |
21230 | fi | |
21231 | fi | |
21232 | GTK_CFLAGS="" | |
21233 | GTK_LIBS="" | |
21234 | : | |
21235 | fi | |
e6cc62c6 VS |
21236 | |
21237 | ||
21d1c967 GD |
21238 | rm -f conf.gtktest |
21239 | ||
21d1c967 | 21240 | |
2b5f62a0 | 21241 | if test -z "$wx_cv_lib_gtk"; then |
e6cc62c6 VS |
21242 | |
21243 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
21d1c967 GD |
21244 | if test "${with_gtk_prefix+set}" = set; then |
21245 | withval="$with_gtk_prefix" | |
21246 | gtk_config_prefix="$withval" | |
21247 | else | |
21248 | gtk_config_prefix="" | |
e6cc62c6 | 21249 | fi; |
f79bd02d | 21250 | |
21d1c967 GD |
21251 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
21252 | if test "${with_gtk_exec_prefix+set}" = set; then | |
21253 | withval="$with_gtk_exec_prefix" | |
21254 | gtk_config_exec_prefix="$withval" | |
21255 | else | |
21256 | gtk_config_exec_prefix="" | |
e6cc62c6 | 21257 | fi; |
21d1c967 GD |
21258 | # Check whether --enable-gtktest or --disable-gtktest was given. |
21259 | if test "${enable_gtktest+set}" = set; then | |
21260 | enableval="$enable_gtktest" | |
e6cc62c6 | 21261 | |
90dd450c | 21262 | else |
21d1c967 | 21263 | enable_gtktest=yes |
e6cc62c6 | 21264 | fi; |
21d1c967 GD |
21265 | |
21266 | for module in . $GTK_MODULES | |
21267 | do | |
21268 | case "$module" in | |
e6cc62c6 | 21269 | gthread) |
21d1c967 GD |
21270 | gtk_config_args="$gtk_config_args gthread" |
21271 | ;; | |
21272 | esac | |
21273 | done | |
21274 | ||
21275 | if test x$gtk_config_exec_prefix != x ; then | |
21276 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
21277 | if test x${GTK_CONFIG+set} != xset ; then | |
21278 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
21279 | fi | |
21280 | fi | |
21281 | if test x$gtk_config_prefix != x ; then | |
21282 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
21283 | if test x${GTK_CONFIG+set} != xset ; then | |
21284 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
21285 | fi | |
21286 | fi | |
21287 | ||
21288 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
21289 | set dummy gtk-config; ac_word=$2 | |
e6cc62c6 VS |
21290 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
21291 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
21292 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
21293 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 21294 | else |
e6cc62c6 VS |
21295 | case $GTK_CONFIG in |
21296 | [\\/]* | ?:[\\/]*) | |
21d1c967 GD |
21297 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
21298 | ;; | |
21d1c967 | 21299 | *) |
e6cc62c6 VS |
21300 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
21301 | for as_dir in $PATH | |
21302 | do | |
21303 | IFS=$as_save_IFS | |
21304 | test -z "$as_dir" && as_dir=. | |
21305 | for ac_exec_ext in '' $ac_executable_extensions; do | |
21306 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
21307 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
21308 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
21309 | break 2 | |
21310 | fi | |
21311 | done | |
21312 | done | |
21313 | ||
21d1c967 GD |
21314 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
21315 | ;; | |
21316 | esac | |
21317 | fi | |
e6cc62c6 VS |
21318 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG |
21319 | ||
21d1c967 | 21320 | if test -n "$GTK_CONFIG"; then |
e6cc62c6 VS |
21321 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 |
21322 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
21d1c967 | 21323 | else |
e6cc62c6 VS |
21324 | echo "$as_me:$LINENO: result: no" >&5 |
21325 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
21326 | fi |
21327 | ||
21328 | min_gtk_version=1.2.3 | |
e6cc62c6 VS |
21329 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 |
21330 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
21d1c967 GD |
21331 | no_gtk="" |
21332 | if test "$GTK_CONFIG" = "no" ; then | |
21333 | no_gtk=yes | |
21334 | else | |
21335 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
21336 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
21337 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
21338 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
21339 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
21340 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
21341 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
21342 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
21343 | if test "x$enable_gtktest" = "xyes" ; then | |
21344 | ac_save_CFLAGS="$CFLAGS" | |
21345 | ac_save_LIBS="$LIBS" | |
21346 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
21347 | LIBS="$GTK_LIBS $LIBS" | |
21348 | rm -f conf.gtktest | |
21349 | if test "$cross_compiling" = yes; then | |
21350 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
21351 | else | |
e6cc62c6 | 21352 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 21353 | #line $LINENO "configure" |
e6cc62c6 VS |
21354 | /* confdefs.h. */ |
21355 | _ACEOF | |
21356 | cat confdefs.h >>conftest.$ac_ext | |
21357 | cat >>conftest.$ac_ext <<_ACEOF | |
21358 | /* end confdefs.h. */ | |
21d1c967 GD |
21359 | |
21360 | #include <gtk/gtk.h> | |
21361 | #include <stdio.h> | |
21362 | #include <stdlib.h> | |
21363 | ||
e6cc62c6 | 21364 | int |
21d1c967 GD |
21365 | main () |
21366 | { | |
21367 | int major, minor, micro; | |
21368 | char *tmp_version; | |
21369 | ||
21370 | system ("touch conf.gtktest"); | |
21371 | ||
21372 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
21373 | tmp_version = g_strdup("$min_gtk_version"); | |
21374 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
21375 | printf("%s, bad version string\n", "$min_gtk_version"); | |
21376 | exit(1); | |
21377 | } | |
21378 | ||
21379 | if ((gtk_major_version != $gtk_config_major_version) || | |
21380 | (gtk_minor_version != $gtk_config_minor_version) || | |
21381 | (gtk_micro_version != $gtk_config_micro_version)) | |
21382 | { | |
e6cc62c6 | 21383 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
21384 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
21385 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
21386 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
21387 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
21388 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
21389 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
21390 | printf("*** required on your system.\n"); | |
21391 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
21392 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
21393 | printf("*** before re-running configure\n"); | |
e6cc62c6 | 21394 | } |
21d1c967 GD |
21395 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
21396 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
21397 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
21398 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
21399 | { | |
21400 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
21401 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
21402 | printf("*** library (version %d.%d.%d)\n", | |
21403 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
21404 | } | |
21405 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
21406 | else | |
21407 | { | |
21408 | if ((gtk_major_version > major) || | |
21409 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
21410 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
21411 | { | |
21412 | return 0; | |
21413 | } | |
21414 | else | |
21415 | { | |
21416 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
21417 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
21418 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
21419 | major, minor, micro); | |
21420 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
21421 | printf("***\n"); | |
21422 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
21423 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
21424 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
21425 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
21426 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
21427 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
21428 | printf("*** so that the correct libraries are found at run-time))\n"); | |
21429 | } | |
21430 | } | |
21431 | return 1; | |
21432 | } | |
21433 | ||
e6cc62c6 VS |
21434 | _ACEOF |
21435 | rm -f conftest$ac_exeext | |
21436 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21437 | (eval $ac_link) 2>&5 | |
21438 | ac_status=$? | |
21439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21440 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21442 | (eval $ac_try) 2>&5 | |
21443 | ac_status=$? | |
21444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21445 | (exit $ac_status); }; }; then | |
21d1c967 GD |
21446 | : |
21447 | else | |
e6cc62c6 VS |
21448 | echo "$as_me: program exited with status $ac_status" >&5 |
21449 | echo "$as_me: failed program was:" >&5 | |
21450 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21451 | ||
21452 | ( exit $ac_status ) | |
21453 | no_gtk=yes | |
21d1c967 | 21454 | fi |
789c5f4a | 21455 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 21456 | fi |
21d1c967 GD |
21457 | CFLAGS="$ac_save_CFLAGS" |
21458 | LIBS="$ac_save_LIBS" | |
21459 | fi | |
21460 | fi | |
21461 | if test "x$no_gtk" = x ; then | |
e6cc62c6 VS |
21462 | echo "$as_me:$LINENO: result: yes" >&5 |
21463 | echo "${ECHO_T}yes" >&6 | |
21464 | wx_cv_lib_gtk=1.2.3 | |
21d1c967 | 21465 | else |
e6cc62c6 VS |
21466 | echo "$as_me:$LINENO: result: no" >&5 |
21467 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
21468 | if test "$GTK_CONFIG" = "no" ; then |
21469 | echo "*** The gtk-config script installed by GTK could not be found" | |
21470 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
21471 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
21472 | echo "*** full path to gtk-config." | |
21473 | else | |
21474 | if test -f conf.gtktest ; then | |
21475 | : | |
21476 | else | |
21477 | echo "*** Could not run GTK test program, checking why..." | |
21478 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
21479 | LIBS="$LIBS $GTK_LIBS" | |
e6cc62c6 | 21480 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 21481 | #line $LINENO "configure" |
e6cc62c6 VS |
21482 | /* confdefs.h. */ |
21483 | _ACEOF | |
21484 | cat confdefs.h >>conftest.$ac_ext | |
21485 | cat >>conftest.$ac_ext <<_ACEOF | |
21486 | /* end confdefs.h. */ | |
21d1c967 GD |
21487 | |
21488 | #include <gtk/gtk.h> | |
21489 | #include <stdio.h> | |
f79bd02d | 21490 | |
e6cc62c6 VS |
21491 | int |
21492 | main () | |
21493 | { | |
21494 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
21495 | ; | |
21496 | return 0; | |
21497 | } | |
21498 | _ACEOF | |
21499 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21500 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 21501 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
21502 | ac_status=$? |
21503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21504 | (exit $ac_status); } && | |
789c5f4a | 21505 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
21506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21507 | (eval $ac_try) 2>&5 | |
21508 | ac_status=$? | |
21509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21510 | (exit $ac_status); }; }; then | |
21d1c967 GD |
21511 | echo "*** The test program compiled, but did not run. This usually means" |
21512 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
21513 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
21514 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
21515 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
21516 | echo "*** is required on your system" | |
21517 | echo "***" | |
21518 | echo "*** If you have an old version installed, it is best to remove it, although" | |
21519 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
21520 | echo "***" | |
21521 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
21522 | echo "*** came with the system with the command" | |
21523 | echo "***" | |
e6cc62c6 | 21524 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
f79bd02d | 21525 | else |
e6cc62c6 VS |
21526 | echo "$as_me: failed program was:" >&5 |
21527 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21528 | ||
21529 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21d1c967 GD |
21530 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
21531 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
e6cc62c6 | 21532 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
f79bd02d | 21533 | fi |
789c5f4a | 21534 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
21d1c967 GD |
21535 | CFLAGS="$ac_save_CFLAGS" |
21536 | LIBS="$ac_save_LIBS" | |
21537 | fi | |
21538 | fi | |
21539 | GTK_CFLAGS="" | |
21540 | GTK_LIBS="" | |
21541 | : | |
21542 | fi | |
e6cc62c6 VS |
21543 | |
21544 | ||
21d1c967 | 21545 | rm -f conf.gtktest |
f79bd02d | 21546 | |
2b5f62a0 | 21547 | fi |
21d1c967 GD |
21548 | fi |
21549 | ||
21550 | if test -z "$wx_cv_lib_gtk"; then | |
21551 | wx_cv_lib_gtk=none | |
21552 | else | |
21553 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
21554 | wx_cv_libs_gtk=$GTK_LIBS | |
21555 | fi | |
e6cc62c6 VS |
21556 | |
21557 | ||
5c6fa7d2 | 21558 | fi |
52127426 | 21559 | |
8284b0c5 | 21560 | |
21d1c967 | 21561 | if test "$gtk_version_cached" = 1; then |
e6cc62c6 VS |
21562 | echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5 |
21563 | echo "${ECHO_T}$wx_cv_lib_gtk" >&6 | |
21d1c967 GD |
21564 | fi |
21565 | ||
21566 | case "$wx_cv_lib_gtk" in | |
21567 | 2.0) WXGTK20=1 | |
2b5f62a0 | 21568 | TOOLKIT_VERSION=2 |
21d1c967 GD |
21569 | ;; |
21570 | 1.2.7) WXGTK127=1 | |
21571 | WXGTK12=1 | |
21572 | ;; | |
21573 | 1.2.3) WXGTK12=1 | |
21574 | ;; | |
e6cc62c6 VS |
21575 | *) { { echo "$as_me:$LINENO: error: |
21576 | Please check that gtk-config is in path, the directory | |
21577 | where GTK+ libraries are installed (returned by | |
21578 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
21579 | equivalent variable and GTK+ is version 1.2.3 or above. | |
21580 | " >&5 | |
21581 | echo "$as_me: error: | |
247f5006 VZ |
21582 | Please check that gtk-config is in path, the directory |
21583 | where GTK+ libraries are installed (returned by | |
21584 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
21585 | equivalent variable and GTK+ is version 1.2.3 or above. | |
e6cc62c6 VS |
21586 | " >&2;} |
21587 | { (exit 1); exit 1; }; } | |
21d1c967 GD |
21588 | ;; |
21589 | esac | |
21590 | ||
b13cd66e VZ |
21591 | if test "$WXGTK20" = 1; then |
21592 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
e6cc62c6 | 21593 | |
f09359cf VS |
21594 | succeeded=no |
21595 | ||
21596 | if test -z "$PKG_CONFIG"; then | |
21597 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
21598 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
21599 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
21600 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
21601 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
21602 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f09359cf | 21603 | else |
e6cc62c6 VS |
21604 | case $PKG_CONFIG in |
21605 | [\\/]* | ?:[\\/]*) | |
f09359cf VS |
21606 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
21607 | ;; | |
f09359cf | 21608 | *) |
e6cc62c6 VS |
21609 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
21610 | for as_dir in $PATH | |
21611 | do | |
21612 | IFS=$as_save_IFS | |
21613 | test -z "$as_dir" && as_dir=. | |
21614 | for ac_exec_ext in '' $ac_executable_extensions; do | |
21615 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
21616 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
21617 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
21618 | break 2 | |
21619 | fi | |
21620 | done | |
21621 | done | |
21622 | ||
f09359cf VS |
21623 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
21624 | ;; | |
21625 | esac | |
21626 | fi | |
e6cc62c6 VS |
21627 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
21628 | ||
f09359cf | 21629 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
21630 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
21631 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
f09359cf | 21632 | else |
e6cc62c6 VS |
21633 | echo "$as_me:$LINENO: result: no" >&5 |
21634 | echo "${ECHO_T}no" >&6 | |
f09359cf VS |
21635 | fi |
21636 | ||
21637 | fi | |
21638 | ||
21639 | if test "$PKG_CONFIG" = "no" ; then | |
21640 | echo "*** The pkg-config script could not be found. Make sure it is" | |
21641 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
21642 | echo "*** to the full path to pkg-config." | |
21643 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
21644 | else | |
21645 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
21646 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
e6cc62c6 VS |
21647 | echo "$as_me:$LINENO: checking for pangoft2" >&5 |
21648 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
f09359cf VS |
21649 | |
21650 | if $PKG_CONFIG --exists "pangoft2" ; then | |
e6cc62c6 VS |
21651 | echo "$as_me:$LINENO: result: yes" >&5 |
21652 | echo "${ECHO_T}yes" >&6 | |
f09359cf VS |
21653 | succeeded=yes |
21654 | ||
e6cc62c6 VS |
21655 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 |
21656 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
f09359cf | 21657 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` |
e6cc62c6 VS |
21658 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 |
21659 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
f09359cf | 21660 | |
e6cc62c6 VS |
21661 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 |
21662 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
f09359cf | 21663 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` |
e6cc62c6 VS |
21664 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 |
21665 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
f09359cf VS |
21666 | else |
21667 | PANGOFT2_CFLAGS="" | |
21668 | PANGOFT2_LIBS="" | |
e6cc62c6 | 21669 | ## If we have a custom action on failure, don't print errors, but |
f09359cf VS |
21670 | ## do set a variable so people can do so. |
21671 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
e6cc62c6 | 21672 | |
f09359cf VS |
21673 | fi |
21674 | ||
e6cc62c6 VS |
21675 | |
21676 | ||
f09359cf VS |
21677 | else |
21678 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
21679 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
21680 | fi | |
21681 | fi | |
21682 | ||
21683 | if test $succeeded = yes; then | |
e6cc62c6 | 21684 | |
b13cd66e | 21685 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" |
c74dc163 | 21686 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" |
e6cc62c6 | 21687 | |
f09359cf | 21688 | else |
e6cc62c6 VS |
21689 | |
21690 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
21691 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
b13cd66e | 21692 | wxUSE_PRINTING_ARCHITECTURE="no" |
e6cc62c6 VS |
21693 | |
21694 | ||
f09359cf VS |
21695 | fi |
21696 | ||
b13cd66e | 21697 | fi |
2b5f62a0 VZ |
21698 | else |
21699 | if test "$wxUSE_UNICODE" = "yes"; then | |
e6cc62c6 VS |
21700 | { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5 |
21701 | echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;} | |
2b5f62a0 VZ |
21702 | wxUSE_UNICODE=no |
21703 | fi | |
21704 | fi | |
21705 | ||
21706 | if test "$USE_DARWIN" != 1; then | |
e6cc62c6 VS |
21707 | |
21708 | for ac_func in poll | |
2b5f62a0 | 21709 | do |
e6cc62c6 VS |
21710 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
21711 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
21712 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
21713 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
21714 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21715 | else | |
21716 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 21717 | #line $LINENO "configure" |
e6cc62c6 VS |
21718 | /* confdefs.h. */ |
21719 | _ACEOF | |
21720 | cat confdefs.h >>conftest.$ac_ext | |
21721 | cat >>conftest.$ac_ext <<_ACEOF | |
21722 | /* end confdefs.h. */ | |
2b5f62a0 | 21723 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
21724 | which can conflict with char $ac_func (); below. |
21725 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21726 | <limits.h> exists even on freestanding compilers. */ | |
21727 | #ifdef __STDC__ | |
21728 | # include <limits.h> | |
21729 | #else | |
21730 | # include <assert.h> | |
21731 | #endif | |
2b5f62a0 | 21732 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21733 | #ifdef __cplusplus |
21734 | extern "C" | |
21735 | { | |
21736 | #endif | |
2b5f62a0 | 21737 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21738 | builtin and then its argument prototype would still apply. */ |
21739 | char $ac_func (); | |
2b5f62a0 VZ |
21740 | /* The GNU C library defines this for functions which it implements |
21741 | to always fail with ENOSYS. Some functions are actually named | |
21742 | something starting with __ and the normal name is an alias. */ | |
21743 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
21744 | choke me | |
21745 | #else | |
e6cc62c6 VS |
21746 | char (*f) () = $ac_func; |
21747 | #endif | |
21748 | #ifdef __cplusplus | |
21749 | } | |
2b5f62a0 VZ |
21750 | #endif |
21751 | ||
e6cc62c6 VS |
21752 | int |
21753 | main () | |
21754 | { | |
21755 | return f != $ac_func; | |
21756 | ; | |
21757 | return 0; | |
21758 | } | |
21759 | _ACEOF | |
21760 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21761 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 21762 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
21763 | ac_status=$? |
21764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21765 | (exit $ac_status); } && | |
789c5f4a | 21766 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
21767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21768 | (eval $ac_try) 2>&5 | |
21769 | ac_status=$? | |
21770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21771 | (exit $ac_status); }; }; then | |
21772 | eval "$as_ac_var=yes" | |
21773 | else | |
21774 | echo "$as_me: failed program was:" >&5 | |
21775 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21776 | ||
21777 | eval "$as_ac_var=no" | |
21778 | fi | |
789c5f4a | 21779 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
21780 | fi |
21781 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
21782 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
21783 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
21784 | cat >>confdefs.h <<_ACEOF | |
21785 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
21786 | _ACEOF | |
2b5f62a0 | 21787 | |
2b5f62a0 VZ |
21788 | fi |
21789 | done | |
21790 | ||
f09359cf VS |
21791 | fi |
21792 | ||
21d1c967 | 21793 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" |
c74dc163 | 21794 | GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY" |
21d1c967 GD |
21795 | |
21796 | AFMINSTALL=afminstall | |
21797 | TOOLKIT=GTK | |
21798 | GUIDIST=GTK_DIST | |
21799 | ||
e6cc62c6 VS |
21800 | echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5 |
21801 | echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6 | |
21802 | if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then | |
21803 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 21804 | else |
e6cc62c6 | 21805 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 21806 | LIBS="-lgdk $LIBS" |
e6cc62c6 | 21807 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 21808 | #line $LINENO "configure" |
e6cc62c6 VS |
21809 | /* confdefs.h. */ |
21810 | _ACEOF | |
21811 | cat confdefs.h >>conftest.$ac_ext | |
21812 | cat >>conftest.$ac_ext <<_ACEOF | |
21813 | /* end confdefs.h. */ | |
21814 | ||
5c6fa7d2 | 21815 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21816 | #ifdef __cplusplus |
21817 | extern "C" | |
21818 | #endif | |
5c6fa7d2 | 21819 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21820 | builtin and then its argument prototype would still apply. */ |
21821 | char gdk_im_open (); | |
21822 | int | |
21823 | main () | |
21824 | { | |
21825 | gdk_im_open (); | |
21826 | ; | |
21827 | return 0; | |
21828 | } | |
21829 | _ACEOF | |
21830 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21831 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 21832 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
21833 | ac_status=$? |
21834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21835 | (exit $ac_status); } && | |
789c5f4a | 21836 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
21837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21838 | (eval $ac_try) 2>&5 | |
21839 | ac_status=$? | |
21840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21841 | (exit $ac_status); }; }; then | |
21842 | ac_cv_lib_gdk_gdk_im_open=yes | |
21843 | else | |
21844 | echo "$as_me: failed program was:" >&5 | |
21845 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21846 | ||
21847 | ac_cv_lib_gdk_gdk_im_open=no | |
21848 | fi | |
789c5f4a | 21849 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
21850 | LIBS=$ac_check_lib_save_LIBS |
21851 | fi | |
21852 | echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5 | |
21853 | echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6 | |
21854 | if test $ac_cv_lib_gdk_gdk_im_open = yes; then | |
21855 | cat >>confdefs.h <<\_ACEOF | |
21d1c967 | 21856 | #define HAVE_XIM 1 |
e6cc62c6 | 21857 | _ACEOF |
21d1c967 | 21858 | |
90dd450c | 21859 | fi |
1e6feb95 | 21860 | |
21d1c967 | 21861 | fi |
1e6feb95 | 21862 | |
21d1c967 | 21863 | if test "$wxUSE_MGL" = 1; then |
e6cc62c6 VS |
21864 | echo "$as_me:$LINENO: checking for SciTech MGL library" >&5 |
21865 | echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6 | |
21d1c967 | 21866 | if test "x$MGL_ROOT" = x ; then |
e6cc62c6 VS |
21867 | echo "$as_me:$LINENO: result: not found" >&5 |
21868 | echo "${ECHO_T}not found" >&6 | |
21869 | { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5 | |
21870 | echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;} | |
21871 | { (exit 1); exit 1; }; } | |
21d1c967 | 21872 | else |
e6cc62c6 VS |
21873 | echo "$as_me:$LINENO: result: $MGL_ROOT" >&5 |
21874 | echo "${ECHO_T}$MGL_ROOT" >&6 | |
21d1c967 GD |
21875 | fi |
21876 | ||
e6cc62c6 VS |
21877 | echo "$as_me:$LINENO: checking for libmgl location" >&5 |
21878 | echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6 | |
e46d2a18 | 21879 | case "${host}" in |
21d1c967 | 21880 | *-*-linux* ) |
e46d2a18 VS |
21881 | if test "x$wxUSE_SHARED" = xyes ; then |
21882 | mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc" | |
63a76696 | 21883 | else |
e46d2a18 | 21884 | mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so" |
63a76696 | 21885 | fi |
21d1c967 GD |
21886 | ;; |
21887 | *-pc-msdosdjgpp ) | |
63a76696 | 21888 | mgl_os_candidates="dos32/dj2" |
21d1c967 GD |
21889 | ;; |
21890 | *) | |
e6cc62c6 VS |
21891 | { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5 |
21892 | echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;} | |
21893 | { (exit 1); exit 1; }; } | |
21d1c967 | 21894 | esac |
1e6feb95 | 21895 | |
21d1c967 | 21896 | mgl_lib_type="" |
63a76696 VS |
21897 | mgl_os="" |
21898 | ||
21899 | for mgl_os_i in $mgl_os_candidates ; do | |
21900 | if test "x$mgl_os" = x ; then | |
21901 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
21902 | if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \ | |
21903 | -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then | |
21904 | mgl_lib_type=debug | |
21905 | mgl_os=$mgl_os_i | |
21906 | fi | |
21907 | fi | |
21908 | if test "x$mgl_lib_type" = x ; then | |
21909 | if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \ | |
21910 | -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then | |
21911 | mgl_lib_type=release | |
21912 | mgl_os=$mgl_os_i | |
21913 | fi | |
21914 | fi | |
21d1c967 | 21915 | fi |
63a76696 | 21916 | done |
2224580a | 21917 | |
63a76696 | 21918 | if test "x$mgl_os" = x ; then |
e6cc62c6 VS |
21919 | echo "$as_me:$LINENO: result: not found" >&5 |
21920 | echo "${ECHO_T}not found" >&6 | |
21921 | { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5 | |
21922 | echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;} | |
21923 | { (exit 1); exit 1; }; } | |
63a76696 | 21924 | fi |
e6cc62c6 VS |
21925 | echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5 |
21926 | echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6 | |
1542ea39 | 21927 | |
1d1b75ac VZ |
21928 | wxUSE_UNIVERSAL="yes" |
21929 | ||
21d1c967 GD |
21930 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" |
21931 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
21932 | ||
90dd450c | 21933 | AFMINSTALL=afminstall |
21d1c967 GD |
21934 | TOOLKIT=MGL |
21935 | GUIDIST=MGL_DIST | |
21936 | fi | |
dad6c0ea | 21937 | |
21d1c967 | 21938 | if test "$wxUSE_MICROWIN" = 1; then |
e6cc62c6 VS |
21939 | echo "$as_me:$LINENO: checking for MicroWindows" >&5 |
21940 | echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6 | |
21d1c967 | 21941 | if test "x$MICROWINDOWS" = x ; then |
e6cc62c6 VS |
21942 | echo "$as_me:$LINENO: result: not found" >&5 |
21943 | echo "${ECHO_T}not found" >&6 | |
21944 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5 | |
21945 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;} | |
21946 | { (exit 1); exit 1; }; } | |
21d1c967 | 21947 | else |
e6cc62c6 VS |
21948 | echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5 |
21949 | echo "${ECHO_T}$MICROWINDOWS" >&6 | |
21d1c967 | 21950 | fi |
f6bcfd97 | 21951 | |
21d1c967 | 21952 | if test -f $MICROWINDOWS/lib/libmwin.a; then |
e6cc62c6 VS |
21953 | echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5 |
21954 | echo "${ECHO_T}MicroWindows' libraries found." >&6 | |
21d1c967 | 21955 | else |
e6cc62c6 VS |
21956 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5 |
21957 | echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;} | |
21958 | { (exit 1); exit 1; }; } | |
90dd450c | 21959 | fi |
0b2effe9 | 21960 | |
21d1c967 GD |
21961 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" |
21962 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
21963 | ||
1d1b75ac VZ |
21964 | wxUSE_UNIVERSAL="yes" |
21965 | ||
21d1c967 GD |
21966 | AFMINSTALL=afminstall |
21967 | TOOLKIT=MICROWIN | |
21968 | GUIDIST=MICROWIN_DIST | |
1d1b75ac VZ |
21969 | |
21970 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
21d1c967 | 21971 | fi |
f6bcfd97 | 21972 | |
21d1c967 | 21973 | if test "$wxUSE_X11" = 1; then |
e6cc62c6 VS |
21974 | echo "$as_me:$LINENO: checking for X" >&5 |
21975 | echo $ECHO_N "checking for X... $ECHO_C" >&6 | |
21976 | ||
d8356fa3 | 21977 | |
21d1c967 GD |
21978 | # Check whether --with-x or --without-x was given. |
21979 | if test "${with_x+set}" = set; then | |
21980 | withval="$with_x" | |
2224580a | 21981 | |
e6cc62c6 | 21982 | fi; |
21d1c967 GD |
21983 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
21984 | if test "x$with_x" = xno; then | |
21985 | # The user explicitly disabled X. | |
21986 | have_x=disabled | |
21987 | else | |
21988 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
21989 | # Both variables are already set. | |
21990 | have_x=yes | |
21991 | else | |
e6cc62c6 VS |
21992 | if test "${ac_cv_have_x+set}" = set; then |
21993 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 GD |
21994 | else |
21995 | # One or both of the vars are not set, and there is no cached value. | |
e6cc62c6 VS |
21996 | ac_x_includes=no ac_x_libraries=no |
21997 | rm -fr conftest.dir | |
21998 | if mkdir conftest.dir; then | |
21999 | cd conftest.dir | |
21d1c967 | 22000 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
e6cc62c6 | 22001 | cat >Imakefile <<'_ACEOF' |
21d1c967 GD |
22002 | acfindx: |
22003 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
e6cc62c6 | 22004 | _ACEOF |
21d1c967 GD |
22005 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
22006 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
22007 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
22008 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
22009 | for ac_extension in a so sl; do | |
22010 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
789c5f4a VZ |
22011 | test -f $ac_im_libdir/libX11.$ac_extension; then |
22012 | ac_im_usrlibdir=$ac_im_libdir; break | |
21d1c967 GD |
22013 | fi |
22014 | done | |
22015 | # Screen out bogus values from the imake configuration. They are | |
22016 | # bogus both because they are the default anyway, and because | |
22017 | # using them would break gcc on systems where it needs fixed includes. | |
e6cc62c6 | 22018 | case $ac_im_incroot in |
21d1c967 | 22019 | /usr/include) ;; |
e6cc62c6 | 22020 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
21d1c967 | 22021 | esac |
e6cc62c6 | 22022 | case $ac_im_usrlibdir in |
21d1c967 | 22023 | /usr/lib | /lib) ;; |
e6cc62c6 | 22024 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
21d1c967 GD |
22025 | esac |
22026 | fi | |
22027 | cd .. | |
e6cc62c6 | 22028 | rm -fr conftest.dir |
21d1c967 | 22029 | fi |
10f2d63a | 22030 | |
e6cc62c6 VS |
22031 | # Standard set of common directories for X headers. |
22032 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
22033 | ac_x_header_dirs=' | |
22034 | /usr/X11/include | |
22035 | /usr/X11R6/include | |
22036 | /usr/X11R5/include | |
22037 | /usr/X11R4/include | |
22038 | ||
22039 | /usr/include/X11 | |
22040 | /usr/include/X11R6 | |
22041 | /usr/include/X11R5 | |
22042 | /usr/include/X11R4 | |
22043 | ||
22044 | /usr/local/X11/include | |
22045 | /usr/local/X11R6/include | |
22046 | /usr/local/X11R5/include | |
22047 | /usr/local/X11R4/include | |
22048 | ||
22049 | /usr/local/include/X11 | |
22050 | /usr/local/include/X11R6 | |
22051 | /usr/local/include/X11R5 | |
22052 | /usr/local/include/X11R4 | |
22053 | ||
22054 | /usr/X386/include | |
22055 | /usr/x386/include | |
22056 | /usr/XFree86/include/X11 | |
22057 | ||
22058 | /usr/include | |
22059 | /usr/local/include | |
22060 | /usr/unsupported/include | |
22061 | /usr/athena/include | |
22062 | /usr/local/x11r5/include | |
22063 | /usr/lpp/Xamples/include | |
22064 | ||
22065 | /usr/openwin/include | |
22066 | /usr/openwin/share/include' | |
22067 | ||
22068 | if test "$ac_x_includes" = no; then | |
22069 | # Guess where to find include files, by looking for Intrinsic.h. | |
21d1c967 | 22070 | # First, try using that file with no special directory specified. |
e6cc62c6 | 22071 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 22072 | #line $LINENO "configure" |
e6cc62c6 VS |
22073 | /* confdefs.h. */ |
22074 | _ACEOF | |
22075 | cat confdefs.h >>conftest.$ac_ext | |
22076 | cat >>conftest.$ac_ext <<_ACEOF | |
22077 | /* end confdefs.h. */ | |
22078 | #include <X11/Intrinsic.h> | |
22079 | _ACEOF | |
22080 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22081 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22082 | ac_status=$? | |
22083 | grep -v '^ *+' conftest.er1 >conftest.err | |
22084 | rm -f conftest.er1 | |
22085 | cat conftest.err >&5 | |
22086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22087 | (exit $ac_status); } >/dev/null; then | |
22088 | if test -s conftest.err; then | |
22089 | ac_cpp_err=$ac_c_preproc_warn_flag | |
22090 | else | |
22091 | ac_cpp_err= | |
22092 | fi | |
22093 | else | |
22094 | ac_cpp_err=yes | |
22095 | fi | |
22096 | if test -z "$ac_cpp_err"; then | |
21d1c967 GD |
22097 | # We can compile using X headers with no special include directory. |
22098 | ac_x_includes= | |
90dd450c | 22099 | else |
e6cc62c6 VS |
22100 | echo "$as_me: failed program was:" >&5 |
22101 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22102 | ||
22103 | for ac_dir in $ac_x_header_dirs; do | |
22104 | if test -r "$ac_dir/X11/Intrinsic.h"; then | |
22105 | ac_x_includes=$ac_dir | |
22106 | break | |
22107 | fi | |
22108 | done | |
3a922bb4 | 22109 | fi |
e6cc62c6 VS |
22110 | rm -f conftest.err conftest.$ac_ext |
22111 | fi # $ac_x_includes = no | |
10f2d63a | 22112 | |
e6cc62c6 | 22113 | if test "$ac_x_libraries" = no; then |
21d1c967 | 22114 | # Check for the libraries. |
21d1c967 GD |
22115 | # See if we find them without any special options. |
22116 | # Don't add to $LIBS permanently. | |
e6cc62c6 VS |
22117 | ac_save_LIBS=$LIBS |
22118 | LIBS="-lXt $LIBS" | |
22119 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 22120 | #line $LINENO "configure" |
e6cc62c6 VS |
22121 | /* confdefs.h. */ |
22122 | _ACEOF | |
22123 | cat confdefs.h >>conftest.$ac_ext | |
22124 | cat >>conftest.$ac_ext <<_ACEOF | |
22125 | /* end confdefs.h. */ | |
22126 | #include <X11/Intrinsic.h> | |
22127 | int | |
22128 | main () | |
22129 | { | |
22130 | XtMalloc (0) | |
22131 | ; | |
22132 | return 0; | |
22133 | } | |
22134 | _ACEOF | |
22135 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22136 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 22137 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
22138 | ac_status=$? |
22139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22140 | (exit $ac_status); } && | |
789c5f4a | 22141 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
22142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22143 | (eval $ac_try) 2>&5 | |
22144 | ac_status=$? | |
22145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22146 | (exit $ac_status); }; }; then | |
22147 | LIBS=$ac_save_LIBS | |
21d1c967 GD |
22148 | # We can link X programs with no special library path. |
22149 | ac_x_libraries= | |
3a922bb4 | 22150 | else |
e6cc62c6 VS |
22151 | echo "$as_me: failed program was:" >&5 |
22152 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22153 | ||
22154 | LIBS=$ac_save_LIBS | |
22155 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
21d1c967 | 22156 | do |
e6cc62c6 | 22157 | # Don't even attempt the hair of trying to link an X program! |
21d1c967 | 22158 | for ac_extension in a so sl; do |
e6cc62c6 | 22159 | if test -r $ac_dir/libXt.$ac_extension; then |
21d1c967 GD |
22160 | ac_x_libraries=$ac_dir |
22161 | break 2 | |
22162 | fi | |
22163 | done | |
22164 | done | |
3a922bb4 | 22165 | fi |
789c5f4a | 22166 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 | 22167 | fi # $ac_x_libraries = no |
90dd450c | 22168 | |
e6cc62c6 | 22169 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
21d1c967 GD |
22170 | # Didn't find X anywhere. Cache the known absence of X. |
22171 | ac_cv_have_x="have_x=no" | |
22172 | else | |
22173 | # Record where we found X for the cache. | |
22174 | ac_cv_have_x="have_x=yes \ | |
789c5f4a | 22175 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
90dd450c | 22176 | fi |
21d1c967 | 22177 | fi |
e6cc62c6 | 22178 | |
21d1c967 GD |
22179 | fi |
22180 | eval "$ac_cv_have_x" | |
22181 | fi # $with_x != no | |
90dd450c | 22182 | |
21d1c967 | 22183 | if test "$have_x" != yes; then |
e6cc62c6 VS |
22184 | echo "$as_me:$LINENO: result: $have_x" >&5 |
22185 | echo "${ECHO_T}$have_x" >&6 | |
21d1c967 GD |
22186 | no_x=yes |
22187 | else | |
22188 | # If each of the values was on the command line, it overrides each guess. | |
22189 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
22190 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
22191 | # Update the cache value to reflect the command line values. | |
22192 | ac_cv_have_x="have_x=yes \ | |
22193 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
e6cc62c6 VS |
22194 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
22195 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 | |
21d1c967 | 22196 | fi |
90dd450c | 22197 | |
21d1c967 | 22198 | if test "$no_x" = yes; then |
90dd450c | 22199 | # Not all programs may use this symbol, but it does not hurt to define it. |
e6cc62c6 VS |
22200 | |
22201 | cat >>confdefs.h <<\_ACEOF | |
90dd450c | 22202 | #define X_DISPLAY_MISSING 1 |
e6cc62c6 | 22203 | _ACEOF |
90dd450c VZ |
22204 | |
22205 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
22206 | else | |
22207 | if test -n "$x_includes"; then | |
22208 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
62d0491b | 22209 | fi |
3a922bb4 | 22210 | |
90dd450c VZ |
22211 | # It would also be nice to do this for all -L options, not just this one. |
22212 | if test -n "$x_libraries"; then | |
22213 | X_LIBS="$X_LIBS -L$x_libraries" | |
22214 | # For Solaris; some versions of Sun CC require a space after -R and | |
22215 | # others require no space. Words are not sufficient . . . . | |
e6cc62c6 | 22216 | case `(uname -sr) 2>/dev/null` in |
90dd450c | 22217 | "SunOS 5"*) |
e6cc62c6 VS |
22218 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
22219 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
22220 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
22221 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 22222 | #line $LINENO "configure" |
e6cc62c6 VS |
22223 | /* confdefs.h. */ |
22224 | _ACEOF | |
22225 | cat confdefs.h >>conftest.$ac_ext | |
22226 | cat >>conftest.$ac_ext <<_ACEOF | |
22227 | /* end confdefs.h. */ | |
22228 | ||
22229 | int | |
22230 | main () | |
22231 | { | |
90dd450c | 22232 | |
e6cc62c6 VS |
22233 | ; |
22234 | return 0; | |
22235 | } | |
22236 | _ACEOF | |
22237 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22238 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 22239 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
22240 | ac_status=$? |
22241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22242 | (exit $ac_status); } && | |
789c5f4a | 22243 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
22244 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22245 | (eval $ac_try) 2>&5 | |
22246 | ac_status=$? | |
22247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22248 | (exit $ac_status); }; }; then | |
90dd450c | 22249 | ac_R_nospace=yes |
3a922bb4 | 22250 | else |
e6cc62c6 VS |
22251 | echo "$as_me: failed program was:" >&5 |
22252 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22253 | ||
22254 | ac_R_nospace=no | |
3a922bb4 | 22255 | fi |
789c5f4a | 22256 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
90dd450c | 22257 | if test $ac_R_nospace = yes; then |
e6cc62c6 VS |
22258 | echo "$as_me:$LINENO: result: no" >&5 |
22259 | echo "${ECHO_T}no" >&6 | |
90dd450c VZ |
22260 | X_LIBS="$X_LIBS -R$x_libraries" |
22261 | else | |
22262 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
e6cc62c6 | 22263 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 22264 | #line $LINENO "configure" |
e6cc62c6 VS |
22265 | /* confdefs.h. */ |
22266 | _ACEOF | |
22267 | cat confdefs.h >>conftest.$ac_ext | |
22268 | cat >>conftest.$ac_ext <<_ACEOF | |
22269 | /* end confdefs.h. */ | |
22270 | ||
22271 | int | |
22272 | main () | |
22273 | { | |
6f754473 | 22274 | |
e6cc62c6 VS |
22275 | ; |
22276 | return 0; | |
22277 | } | |
22278 | _ACEOF | |
22279 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22280 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 22281 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
22282 | ac_status=$? |
22283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22284 | (exit $ac_status); } && | |
789c5f4a | 22285 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
22286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22287 | (eval $ac_try) 2>&5 | |
22288 | ac_status=$? | |
22289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22290 | (exit $ac_status); }; }; then | |
90dd450c VZ |
22291 | ac_R_space=yes |
22292 | else | |
e6cc62c6 VS |
22293 | echo "$as_me: failed program was:" >&5 |
22294 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22295 | ||
22296 | ac_R_space=no | |
90dd450c | 22297 | fi |
789c5f4a | 22298 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
90dd450c | 22299 | if test $ac_R_space = yes; then |
e6cc62c6 VS |
22300 | echo "$as_me:$LINENO: result: yes" >&5 |
22301 | echo "${ECHO_T}yes" >&6 | |
90dd450c VZ |
22302 | X_LIBS="$X_LIBS -R $x_libraries" |
22303 | else | |
e6cc62c6 VS |
22304 | echo "$as_me:$LINENO: result: neither works" >&5 |
22305 | echo "${ECHO_T}neither works" >&6 | |
90dd450c VZ |
22306 | fi |
22307 | fi | |
e6cc62c6 | 22308 | LIBS=$ac_xsave_LIBS |
90dd450c VZ |
22309 | esac |
22310 | fi | |
22311 | ||
22312 | # Check for system-dependent libraries X programs must link with. | |
22313 | # Do this before checking for the system-independent R6 libraries | |
22314 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
6f754473 | 22315 | |
90dd450c VZ |
22316 | if test "$ISC" = yes; then |
22317 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
22318 | else | |
e6cc62c6 VS |
22319 | # Martyn Johnson says this is needed for Ultrix, if the X |
22320 | # libraries were built with DECnet support. And Karl Berry says | |
90dd450c | 22321 | # the Alpha needs dnet_stub (dnet does not exist). |
e6cc62c6 VS |
22322 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
22323 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 22324 | #line $LINENO "configure" |
e6cc62c6 VS |
22325 | /* confdefs.h. */ |
22326 | _ACEOF | |
22327 | cat confdefs.h >>conftest.$ac_ext | |
22328 | cat >>conftest.$ac_ext <<_ACEOF | |
22329 | /* end confdefs.h. */ | |
22330 | ||
247f5006 | 22331 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22332 | #ifdef __cplusplus |
22333 | extern "C" | |
22334 | #endif | |
247f5006 | 22335 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22336 | builtin and then its argument prototype would still apply. */ |
22337 | char XOpenDisplay (); | |
22338 | int | |
22339 | main () | |
22340 | { | |
22341 | XOpenDisplay (); | |
22342 | ; | |
22343 | return 0; | |
22344 | } | |
22345 | _ACEOF | |
22346 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22347 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 22348 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
22349 | ac_status=$? |
22350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22351 | (exit $ac_status); } && | |
789c5f4a | 22352 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
22353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22354 | (eval $ac_try) 2>&5 | |
22355 | ac_status=$? | |
22356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22357 | (exit $ac_status); }; }; then | |
22358 | : | |
22359 | else | |
22360 | echo "$as_me: failed program was:" >&5 | |
22361 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 22362 | |
e6cc62c6 VS |
22363 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
22364 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
22365 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
22366 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 22367 | else |
e6cc62c6 VS |
22368 | ac_check_lib_save_LIBS=$LIBS |
22369 | LIBS="-ldnet $LIBS" | |
22370 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 22371 | #line $LINENO "configure" |
e6cc62c6 VS |
22372 | /* confdefs.h. */ |
22373 | _ACEOF | |
22374 | cat confdefs.h >>conftest.$ac_ext | |
22375 | cat >>conftest.$ac_ext <<_ACEOF | |
22376 | /* end confdefs.h. */ | |
a0b9e27f | 22377 | |
e6cc62c6 VS |
22378 | /* Override any gcc2 internal prototype to avoid an error. */ |
22379 | #ifdef __cplusplus | |
22380 | extern "C" | |
22381 | #endif | |
22382 | /* We use char because int might match the return type of a gcc2 | |
22383 | builtin and then its argument prototype would still apply. */ | |
22384 | char dnet_ntoa (); | |
22385 | int | |
22386 | main () | |
22387 | { | |
22388 | dnet_ntoa (); | |
22389 | ; | |
22390 | return 0; | |
22391 | } | |
22392 | _ACEOF | |
22393 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22394 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 22395 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
22396 | ac_status=$? |
22397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22398 | (exit $ac_status); } && | |
789c5f4a | 22399 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
22400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22401 | (eval $ac_try) 2>&5 | |
22402 | ac_status=$? | |
22403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22404 | (exit $ac_status); }; }; then | |
22405 | ac_cv_lib_dnet_dnet_ntoa=yes | |
22406 | else | |
22407 | echo "$as_me: failed program was:" >&5 | |
22408 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22409 | ||
22410 | ac_cv_lib_dnet_dnet_ntoa=no | |
22411 | fi | |
789c5f4a | 22412 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
22413 | LIBS=$ac_check_lib_save_LIBS |
22414 | fi | |
22415 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
22416 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
22417 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
90dd450c | 22418 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
3a922bb4 RL |
22419 | fi |
22420 | ||
90dd450c | 22421 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
e6cc62c6 VS |
22422 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
22423 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
22424 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
22425 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 22426 | else |
e6cc62c6 | 22427 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 22428 | LIBS="-ldnet_stub $LIBS" |
e6cc62c6 | 22429 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 22430 | #line $LINENO "configure" |
e6cc62c6 VS |
22431 | /* confdefs.h. */ |
22432 | _ACEOF | |
22433 | cat confdefs.h >>conftest.$ac_ext | |
22434 | cat >>conftest.$ac_ext <<_ACEOF | |
22435 | /* end confdefs.h. */ | |
22436 | ||
90dd450c | 22437 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22438 | #ifdef __cplusplus |
22439 | extern "C" | |
22440 | #endif | |
90dd450c | 22441 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22442 | builtin and then its argument prototype would still apply. */ |
22443 | char dnet_ntoa (); | |
22444 | int | |
22445 | main () | |
22446 | { | |
22447 | dnet_ntoa (); | |
22448 | ; | |
22449 | return 0; | |
22450 | } | |
22451 | _ACEOF | |
22452 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22453 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 22454 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
22455 | ac_status=$? |
22456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22457 | (exit $ac_status); } && | |
789c5f4a | 22458 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
22459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22460 | (eval $ac_try) 2>&5 | |
22461 | ac_status=$? | |
22462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22463 | (exit $ac_status); }; }; then | |
22464 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
22465 | else | |
22466 | echo "$as_me: failed program was:" >&5 | |
22467 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22468 | ||
22469 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
22470 | fi | |
789c5f4a | 22471 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
22472 | LIBS=$ac_check_lib_save_LIBS |
22473 | fi | |
22474 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
22475 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
22476 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
90dd450c | 22477 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
3a922bb4 RL |
22478 | fi |
22479 | ||
90dd450c | 22480 | fi |
e6cc62c6 | 22481 | fi |
789c5f4a | 22482 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 | 22483 | LIBS="$ac_xsave_LIBS" |
978f1259 | 22484 | |
90dd450c VZ |
22485 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
22486 | # to get the SysV transport functions. | |
e6cc62c6 | 22487 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
90dd450c VZ |
22488 | # needs -lnsl. |
22489 | # The nsl library prevents programs from opening the X display | |
e6cc62c6 VS |
22490 | # on Irix 5.2, according to T.E. Dickey. |
22491 | # The functions gethostbyname, getservbyname, and inet_addr are | |
22492 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
22493 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
22494 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
22495 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
22496 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22497 | else | |
22498 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 22499 | #line $LINENO "configure" |
e6cc62c6 VS |
22500 | /* confdefs.h. */ |
22501 | _ACEOF | |
22502 | cat confdefs.h >>conftest.$ac_ext | |
22503 | cat >>conftest.$ac_ext <<_ACEOF | |
22504 | /* end confdefs.h. */ | |
90dd450c | 22505 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
22506 | which can conflict with char gethostbyname (); below. |
22507 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
22508 | <limits.h> exists even on freestanding compilers. */ | |
22509 | #ifdef __STDC__ | |
22510 | # include <limits.h> | |
22511 | #else | |
22512 | # include <assert.h> | |
22513 | #endif | |
90dd450c | 22514 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22515 | #ifdef __cplusplus |
22516 | extern "C" | |
22517 | { | |
22518 | #endif | |
90dd450c | 22519 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22520 | builtin and then its argument prototype would still apply. */ |
22521 | char gethostbyname (); | |
90dd450c VZ |
22522 | /* The GNU C library defines this for functions which it implements |
22523 | to always fail with ENOSYS. Some functions are actually named | |
22524 | something starting with __ and the normal name is an alias. */ | |
22525 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
22526 | choke me | |
22527 | #else | |
e6cc62c6 VS |
22528 | char (*f) () = gethostbyname; |
22529 | #endif | |
22530 | #ifdef __cplusplus | |
22531 | } | |
90dd450c | 22532 | #endif |
978f1259 | 22533 | |
e6cc62c6 VS |
22534 | int |
22535 | main () | |
22536 | { | |
22537 | return f != gethostbyname; | |
22538 | ; | |
22539 | return 0; | |
22540 | } | |
22541 | _ACEOF | |
22542 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22543 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 22544 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
22545 | ac_status=$? |
22546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22547 | (exit $ac_status); } && | |
789c5f4a | 22548 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
22549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22550 | (eval $ac_try) 2>&5 | |
22551 | ac_status=$? | |
22552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22553 | (exit $ac_status); }; }; then | |
22554 | ac_cv_func_gethostbyname=yes | |
22555 | else | |
22556 | echo "$as_me: failed program was:" >&5 | |
22557 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22558 | ||
22559 | ac_cv_func_gethostbyname=no | |
22560 | fi | |
789c5f4a | 22561 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
22562 | fi |
22563 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
22564 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
698dcdb6 | 22565 | |
90dd450c | 22566 | if test $ac_cv_func_gethostbyname = no; then |
e6cc62c6 VS |
22567 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
22568 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
22569 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
22570 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 22571 | else |
e6cc62c6 | 22572 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 22573 | LIBS="-lnsl $LIBS" |
e6cc62c6 | 22574 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 22575 | #line $LINENO "configure" |
e6cc62c6 VS |
22576 | /* confdefs.h. */ |
22577 | _ACEOF | |
22578 | cat confdefs.h >>conftest.$ac_ext | |
22579 | cat >>conftest.$ac_ext <<_ACEOF | |
22580 | /* end confdefs.h. */ | |
22581 | ||
90dd450c | 22582 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22583 | #ifdef __cplusplus |
22584 | extern "C" | |
22585 | #endif | |
90dd450c | 22586 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22587 | builtin and then its argument prototype would still apply. */ |
22588 | char gethostbyname (); | |
22589 | int | |
22590 | main () | |
22591 | { | |
22592 | gethostbyname (); | |
22593 | ; | |
22594 | return 0; | |
22595 | } | |
22596 | _ACEOF | |
22597 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22598 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 22599 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
22600 | ac_status=$? |
22601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22602 | (exit $ac_status); } && | |
789c5f4a | 22603 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
22604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22605 | (eval $ac_try) 2>&5 | |
22606 | ac_status=$? | |
22607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22608 | (exit $ac_status); }; }; then | |
22609 | ac_cv_lib_nsl_gethostbyname=yes | |
22610 | else | |
22611 | echo "$as_me: failed program was:" >&5 | |
22612 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22613 | ||
22614 | ac_cv_lib_nsl_gethostbyname=no | |
22615 | fi | |
789c5f4a | 22616 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
22617 | LIBS=$ac_check_lib_save_LIBS |
22618 | fi | |
22619 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
22620 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
22621 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
22622 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
a0b9e27f | 22623 | fi |
247f5006 | 22624 | |
e6cc62c6 | 22625 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
789c5f4a | 22626 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 |
e6cc62c6 VS |
22627 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 |
22628 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
22629 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 22630 | else |
e6cc62c6 VS |
22631 | ac_check_lib_save_LIBS=$LIBS |
22632 | LIBS="-lbsd $LIBS" | |
22633 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 22634 | #line $LINENO "configure" |
e6cc62c6 VS |
22635 | /* confdefs.h. */ |
22636 | _ACEOF | |
22637 | cat confdefs.h >>conftest.$ac_ext | |
22638 | cat >>conftest.$ac_ext <<_ACEOF | |
22639 | /* end confdefs.h. */ | |
22640 | ||
22641 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22642 | #ifdef __cplusplus | |
22643 | extern "C" | |
22644 | #endif | |
22645 | /* We use char because int might match the return type of a gcc2 | |
22646 | builtin and then its argument prototype would still apply. */ | |
22647 | char gethostbyname (); | |
22648 | int | |
22649 | main () | |
22650 | { | |
22651 | gethostbyname (); | |
22652 | ; | |
22653 | return 0; | |
22654 | } | |
22655 | _ACEOF | |
22656 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22657 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 22658 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
22659 | ac_status=$? |
22660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22661 | (exit $ac_status); } && | |
789c5f4a | 22662 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
22663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22664 | (eval $ac_try) 2>&5 | |
22665 | ac_status=$? | |
22666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22667 | (exit $ac_status); }; }; then | |
22668 | ac_cv_lib_bsd_gethostbyname=yes | |
22669 | else | |
22670 | echo "$as_me: failed program was:" >&5 | |
22671 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22672 | ||
22673 | ac_cv_lib_bsd_gethostbyname=no | |
22674 | fi | |
789c5f4a | 22675 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
22676 | LIBS=$ac_check_lib_save_LIBS |
22677 | fi | |
22678 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
22679 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
22680 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
22681 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
90dd450c | 22682 | fi |
b12915c1 | 22683 | |
e6cc62c6 | 22684 | fi |
90dd450c VZ |
22685 | fi |
22686 | ||
22687 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
22688 | # socket/setsockopt and other routines are undefined under SCO ODT | |
22689 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
e6cc62c6 VS |
22690 | # on later versions), says Simon Leinen: it contains gethostby* |
22691 | # variants that don't use the name server (or something). -lsocket | |
22692 | # must be given before -lnsl if both are needed. We assume that | |
22693 | # if connect needs -lnsl, so does gethostbyname. | |
22694 | echo "$as_me:$LINENO: checking for connect" >&5 | |
22695 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
22696 | if test "${ac_cv_func_connect+set}" = set; then | |
22697 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22698 | else | |
22699 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 22700 | #line $LINENO "configure" |
e6cc62c6 VS |
22701 | /* confdefs.h. */ |
22702 | _ACEOF | |
22703 | cat confdefs.h >>conftest.$ac_ext | |
22704 | cat >>conftest.$ac_ext <<_ACEOF | |
22705 | /* end confdefs.h. */ | |
90dd450c | 22706 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
22707 | which can conflict with char connect (); below. |
22708 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
22709 | <limits.h> exists even on freestanding compilers. */ | |
22710 | #ifdef __STDC__ | |
22711 | # include <limits.h> | |
22712 | #else | |
22713 | # include <assert.h> | |
22714 | #endif | |
90dd450c | 22715 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22716 | #ifdef __cplusplus |
22717 | extern "C" | |
22718 | { | |
22719 | #endif | |
90dd450c | 22720 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22721 | builtin and then its argument prototype would still apply. */ |
22722 | char connect (); | |
90dd450c VZ |
22723 | /* The GNU C library defines this for functions which it implements |
22724 | to always fail with ENOSYS. Some functions are actually named | |
22725 | something starting with __ and the normal name is an alias. */ | |
22726 | #if defined (__stub_connect) || defined (__stub___connect) | |
22727 | choke me | |
22728 | #else | |
e6cc62c6 VS |
22729 | char (*f) () = connect; |
22730 | #endif | |
22731 | #ifdef __cplusplus | |
22732 | } | |
90dd450c VZ |
22733 | #endif |
22734 | ||
e6cc62c6 VS |
22735 | int |
22736 | main () | |
22737 | { | |
22738 | return f != connect; | |
22739 | ; | |
22740 | return 0; | |
22741 | } | |
22742 | _ACEOF | |
22743 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22744 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 22745 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
22746 | ac_status=$? |
22747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22748 | (exit $ac_status); } && | |
789c5f4a | 22749 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
22750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22751 | (eval $ac_try) 2>&5 | |
22752 | ac_status=$? | |
22753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22754 | (exit $ac_status); }; }; then | |
22755 | ac_cv_func_connect=yes | |
22756 | else | |
22757 | echo "$as_me: failed program was:" >&5 | |
22758 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22759 | ||
22760 | ac_cv_func_connect=no | |
22761 | fi | |
789c5f4a | 22762 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
22763 | fi |
22764 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
22765 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
55e80573 | 22766 | |
90dd450c | 22767 | if test $ac_cv_func_connect = no; then |
e6cc62c6 VS |
22768 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
22769 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
22770 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
22771 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 22772 | else |
e6cc62c6 | 22773 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 22774 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
e6cc62c6 | 22775 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 22776 | #line $LINENO "configure" |
e6cc62c6 VS |
22777 | /* confdefs.h. */ |
22778 | _ACEOF | |
22779 | cat confdefs.h >>conftest.$ac_ext | |
22780 | cat >>conftest.$ac_ext <<_ACEOF | |
22781 | /* end confdefs.h. */ | |
22782 | ||
90dd450c | 22783 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22784 | #ifdef __cplusplus |
22785 | extern "C" | |
22786 | #endif | |
90dd450c | 22787 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22788 | builtin and then its argument prototype would still apply. */ |
22789 | char connect (); | |
22790 | int | |
22791 | main () | |
22792 | { | |
22793 | connect (); | |
22794 | ; | |
22795 | return 0; | |
22796 | } | |
22797 | _ACEOF | |
22798 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22799 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 22800 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
22801 | ac_status=$? |
22802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22803 | (exit $ac_status); } && | |
789c5f4a | 22804 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
22805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22806 | (eval $ac_try) 2>&5 | |
22807 | ac_status=$? | |
22808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22809 | (exit $ac_status); }; }; then | |
22810 | ac_cv_lib_socket_connect=yes | |
22811 | else | |
22812 | echo "$as_me: failed program was:" >&5 | |
22813 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22814 | ||
22815 | ac_cv_lib_socket_connect=no | |
22816 | fi | |
789c5f4a | 22817 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
22818 | LIBS=$ac_check_lib_save_LIBS |
22819 | fi | |
22820 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
22821 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
22822 | if test $ac_cv_lib_socket_connect = yes; then | |
90dd450c | 22823 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
90dd450c | 22824 | fi |
77e13408 | 22825 | |
90dd450c | 22826 | fi |
25d0687a | 22827 | |
e6cc62c6 VS |
22828 | # Guillermo Gomez says -lposix is necessary on A/UX. |
22829 | echo "$as_me:$LINENO: checking for remove" >&5 | |
22830 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
22831 | if test "${ac_cv_func_remove+set}" = set; then | |
22832 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22833 | else | |
22834 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 22835 | #line $LINENO "configure" |
e6cc62c6 VS |
22836 | /* confdefs.h. */ |
22837 | _ACEOF | |
22838 | cat confdefs.h >>conftest.$ac_ext | |
22839 | cat >>conftest.$ac_ext <<_ACEOF | |
22840 | /* end confdefs.h. */ | |
90dd450c | 22841 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
22842 | which can conflict with char remove (); below. |
22843 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
22844 | <limits.h> exists even on freestanding compilers. */ | |
22845 | #ifdef __STDC__ | |
22846 | # include <limits.h> | |
22847 | #else | |
22848 | # include <assert.h> | |
22849 | #endif | |
90dd450c | 22850 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22851 | #ifdef __cplusplus |
22852 | extern "C" | |
22853 | { | |
22854 | #endif | |
90dd450c | 22855 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22856 | builtin and then its argument prototype would still apply. */ |
22857 | char remove (); | |
90dd450c VZ |
22858 | /* The GNU C library defines this for functions which it implements |
22859 | to always fail with ENOSYS. Some functions are actually named | |
22860 | something starting with __ and the normal name is an alias. */ | |
22861 | #if defined (__stub_remove) || defined (__stub___remove) | |
22862 | choke me | |
22863 | #else | |
e6cc62c6 VS |
22864 | char (*f) () = remove; |
22865 | #endif | |
22866 | #ifdef __cplusplus | |
22867 | } | |
90dd450c | 22868 | #endif |
55e80573 | 22869 | |
e6cc62c6 VS |
22870 | int |
22871 | main () | |
22872 | { | |
22873 | return f != remove; | |
22874 | ; | |
22875 | return 0; | |
22876 | } | |
22877 | _ACEOF | |
22878 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22879 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 22880 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
22881 | ac_status=$? |
22882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22883 | (exit $ac_status); } && | |
789c5f4a | 22884 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
22885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22886 | (eval $ac_try) 2>&5 | |
22887 | ac_status=$? | |
22888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22889 | (exit $ac_status); }; }; then | |
22890 | ac_cv_func_remove=yes | |
22891 | else | |
22892 | echo "$as_me: failed program was:" >&5 | |
22893 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22894 | ||
22895 | ac_cv_func_remove=no | |
22896 | fi | |
789c5f4a | 22897 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
22898 | fi |
22899 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
22900 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
10f2d63a | 22901 | |
90dd450c | 22902 | if test $ac_cv_func_remove = no; then |
e6cc62c6 VS |
22903 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
22904 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
22905 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
22906 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 22907 | else |
e6cc62c6 | 22908 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 22909 | LIBS="-lposix $LIBS" |
e6cc62c6 | 22910 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 22911 | #line $LINENO "configure" |
e6cc62c6 VS |
22912 | /* confdefs.h. */ |
22913 | _ACEOF | |
22914 | cat confdefs.h >>conftest.$ac_ext | |
22915 | cat >>conftest.$ac_ext <<_ACEOF | |
22916 | /* end confdefs.h. */ | |
22917 | ||
90dd450c | 22918 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22919 | #ifdef __cplusplus |
22920 | extern "C" | |
22921 | #endif | |
90dd450c | 22922 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22923 | builtin and then its argument prototype would still apply. */ |
22924 | char remove (); | |
22925 | int | |
22926 | main () | |
22927 | { | |
22928 | remove (); | |
22929 | ; | |
22930 | return 0; | |
22931 | } | |
22932 | _ACEOF | |
22933 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22934 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 22935 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
22936 | ac_status=$? |
22937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22938 | (exit $ac_status); } && | |
789c5f4a | 22939 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
22940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22941 | (eval $ac_try) 2>&5 | |
22942 | ac_status=$? | |
22943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22944 | (exit $ac_status); }; }; then | |
22945 | ac_cv_lib_posix_remove=yes | |
22946 | else | |
22947 | echo "$as_me: failed program was:" >&5 | |
22948 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22949 | ||
22950 | ac_cv_lib_posix_remove=no | |
22951 | fi | |
789c5f4a | 22952 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
22953 | LIBS=$ac_check_lib_save_LIBS |
22954 | fi | |
22955 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
22956 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
22957 | if test $ac_cv_lib_posix_remove = yes; then | |
90dd450c | 22958 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
90dd450c | 22959 | fi |
f6bcfd97 | 22960 | |
6fa882bd RR |
22961 | fi |
22962 | ||
90dd450c | 22963 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
e6cc62c6 VS |
22964 | echo "$as_me:$LINENO: checking for shmat" >&5 |
22965 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
22966 | if test "${ac_cv_func_shmat+set}" = set; then | |
22967 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22968 | else | |
22969 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 22970 | #line $LINENO "configure" |
e6cc62c6 VS |
22971 | /* confdefs.h. */ |
22972 | _ACEOF | |
22973 | cat confdefs.h >>conftest.$ac_ext | |
22974 | cat >>conftest.$ac_ext <<_ACEOF | |
22975 | /* end confdefs.h. */ | |
90dd450c | 22976 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
22977 | which can conflict with char shmat (); below. |
22978 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
22979 | <limits.h> exists even on freestanding compilers. */ | |
22980 | #ifdef __STDC__ | |
22981 | # include <limits.h> | |
22982 | #else | |
22983 | # include <assert.h> | |
22984 | #endif | |
90dd450c | 22985 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22986 | #ifdef __cplusplus |
22987 | extern "C" | |
22988 | { | |
22989 | #endif | |
90dd450c | 22990 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22991 | builtin and then its argument prototype would still apply. */ |
22992 | char shmat (); | |
90dd450c VZ |
22993 | /* The GNU C library defines this for functions which it implements |
22994 | to always fail with ENOSYS. Some functions are actually named | |
22995 | something starting with __ and the normal name is an alias. */ | |
22996 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
22997 | choke me | |
22998 | #else | |
e6cc62c6 VS |
22999 | char (*f) () = shmat; |
23000 | #endif | |
23001 | #ifdef __cplusplus | |
23002 | } | |
90dd450c | 23003 | #endif |
10f2d63a | 23004 | |
e6cc62c6 VS |
23005 | int |
23006 | main () | |
23007 | { | |
23008 | return f != shmat; | |
23009 | ; | |
23010 | return 0; | |
23011 | } | |
23012 | _ACEOF | |
23013 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23014 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 23015 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
23016 | ac_status=$? |
23017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23018 | (exit $ac_status); } && | |
789c5f4a | 23019 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
23020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23021 | (eval $ac_try) 2>&5 | |
23022 | ac_status=$? | |
23023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23024 | (exit $ac_status); }; }; then | |
23025 | ac_cv_func_shmat=yes | |
23026 | else | |
23027 | echo "$as_me: failed program was:" >&5 | |
23028 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23029 | ||
23030 | ac_cv_func_shmat=no | |
23031 | fi | |
789c5f4a | 23032 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
23033 | fi |
23034 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
23035 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
d08b457b | 23036 | |
90dd450c | 23037 | if test $ac_cv_func_shmat = no; then |
e6cc62c6 VS |
23038 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
23039 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
23040 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
23041 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d08b457b | 23042 | else |
e6cc62c6 | 23043 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 23044 | LIBS="-lipc $LIBS" |
e6cc62c6 | 23045 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 23046 | #line $LINENO "configure" |
e6cc62c6 VS |
23047 | /* confdefs.h. */ |
23048 | _ACEOF | |
23049 | cat confdefs.h >>conftest.$ac_ext | |
23050 | cat >>conftest.$ac_ext <<_ACEOF | |
23051 | /* end confdefs.h. */ | |
23052 | ||
8284b0c5 | 23053 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23054 | #ifdef __cplusplus |
23055 | extern "C" | |
23056 | #endif | |
90dd450c | 23057 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23058 | builtin and then its argument prototype would still apply. */ |
23059 | char shmat (); | |
23060 | int | |
23061 | main () | |
23062 | { | |
23063 | shmat (); | |
23064 | ; | |
23065 | return 0; | |
23066 | } | |
23067 | _ACEOF | |
23068 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23069 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 23070 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
23071 | ac_status=$? |
23072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23073 | (exit $ac_status); } && | |
789c5f4a | 23074 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
23075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23076 | (eval $ac_try) 2>&5 | |
23077 | ac_status=$? | |
23078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23079 | (exit $ac_status); }; }; then | |
23080 | ac_cv_lib_ipc_shmat=yes | |
23081 | else | |
23082 | echo "$as_me: failed program was:" >&5 | |
23083 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23084 | ||
23085 | ac_cv_lib_ipc_shmat=no | |
23086 | fi | |
789c5f4a | 23087 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
23088 | LIBS=$ac_check_lib_save_LIBS |
23089 | fi | |
23090 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
23091 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
23092 | if test $ac_cv_lib_ipc_shmat = yes; then | |
90dd450c | 23093 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
d08b457b GD |
23094 | fi |
23095 | ||
d558c907 | 23096 | fi |
90dd450c | 23097 | fi |
3a922bb4 | 23098 | |
90dd450c | 23099 | # Check for libraries that X11R6 Xt/Xaw programs need. |
e6cc62c6 | 23100 | ac_save_LDFLAGS=$LDFLAGS |
90dd450c VZ |
23101 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
23102 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
23103 | # check for ICE first), but we must link in the order -lSM -lICE or | |
23104 | # we get undefined symbols. So assume we have SM if we have ICE. | |
23105 | # These have to be linked with before -lX11, unlike the other | |
23106 | # libraries we check for below, so use a different variable. | |
e6cc62c6 VS |
23107 | # John Interrante, Karl Berry |
23108 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
23109 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
23110 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
23111 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23112 | else | |
23113 | ac_check_lib_save_LIBS=$LIBS | |
f09359cf | 23114 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
e6cc62c6 | 23115 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 23116 | #line $LINENO "configure" |
e6cc62c6 VS |
23117 | /* confdefs.h. */ |
23118 | _ACEOF | |
23119 | cat confdefs.h >>conftest.$ac_ext | |
23120 | cat >>conftest.$ac_ext <<_ACEOF | |
23121 | /* end confdefs.h. */ | |
23122 | ||
90dd450c | 23123 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23124 | #ifdef __cplusplus |
23125 | extern "C" | |
23126 | #endif | |
90dd450c | 23127 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23128 | builtin and then its argument prototype would still apply. */ |
23129 | char IceConnectionNumber (); | |
23130 | int | |
23131 | main () | |
23132 | { | |
23133 | IceConnectionNumber (); | |
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 | |
789c5f4a | 23140 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
23141 | ac_status=$? |
23142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23143 | (exit $ac_status); } && | |
789c5f4a | 23144 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
23145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23146 | (eval $ac_try) 2>&5 | |
23147 | ac_status=$? | |
23148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23149 | (exit $ac_status); }; }; then | |
23150 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
23151 | else | |
23152 | echo "$as_me: failed program was:" >&5 | |
23153 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23154 | ||
23155 | ac_cv_lib_ICE_IceConnectionNumber=no | |
23156 | fi | |
789c5f4a | 23157 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
23158 | LIBS=$ac_check_lib_save_LIBS |
23159 | fi | |
23160 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
23161 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
23162 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
90dd450c | 23163 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
9cfadba2 | 23164 | fi |
10f2d63a | 23165 | |
e6cc62c6 | 23166 | LDFLAGS=$ac_save_LDFLAGS |
90dd450c VZ |
23167 | |
23168 | fi | |
23169 | ||
8284b0c5 | 23170 | |
90dd450c | 23171 | if test "$no_x" = "yes"; then |
e6cc62c6 VS |
23172 | { { echo "$as_me:$LINENO: error: X11 not found" >&5 |
23173 | echo "$as_me: error: X11 not found" >&2;} | |
23174 | { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; } | |
90dd450c VZ |
23175 | fi |
23176 | ||
23177 | GUI_TK_LIBRARY="$X_LIBS" | |
23178 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
23179 | AFMINSTALL=afminstall | |
23180 | COMPILED_X_PROGRAM=0 | |
23181 | ||
21d1c967 | 23182 | if test "$wxUSE_NANOX" = "yes"; then |
e6cc62c6 VS |
23183 | echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5 |
23184 | echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6 | |
21d1c967 | 23185 | if test "x$MICROWIN" = x ; then |
e6cc62c6 VS |
23186 | echo "$as_me:$LINENO: result: not found" >&5 |
23187 | echo "${ECHO_T}not found" >&6 | |
23188 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5 | |
23189 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;} | |
23190 | { (exit 1); exit 1; }; } | |
90dd450c | 23191 | else |
e6cc62c6 VS |
23192 | echo "$as_me:$LINENO: result: $MICROWIN" >&5 |
23193 | echo "${ECHO_T}$MICROWIN" >&6 | |
23194 | cat >>confdefs.h <<\_ACEOF | |
21d1c967 | 23195 | #define wxUSE_NANOX 1 |
e6cc62c6 | 23196 | _ACEOF |
21d1c967 | 23197 | |
90dd450c VZ |
23198 | fi |
23199 | fi | |
23200 | ||
2b5f62a0 | 23201 | if test "$wxUSE_UNICODE" = "yes"; then |
e6cc62c6 | 23202 | |
2b5f62a0 | 23203 | succeeded=no |
90dd450c | 23204 | |
2b5f62a0 VZ |
23205 | if test -z "$PKG_CONFIG"; then |
23206 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
23207 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
23208 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
23209 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
23210 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
23211 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 23212 | else |
e6cc62c6 VS |
23213 | case $PKG_CONFIG in |
23214 | [\\/]* | ?:[\\/]*) | |
2b5f62a0 VZ |
23215 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
23216 | ;; | |
2b5f62a0 | 23217 | *) |
e6cc62c6 VS |
23218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
23219 | for as_dir in $PATH | |
23220 | do | |
23221 | IFS=$as_save_IFS | |
23222 | test -z "$as_dir" && as_dir=. | |
23223 | for ac_exec_ext in '' $ac_executable_extensions; do | |
23224 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
23225 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
23226 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
23227 | break 2 | |
23228 | fi | |
23229 | done | |
23230 | done | |
23231 | ||
2b5f62a0 VZ |
23232 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
23233 | ;; | |
23234 | esac | |
23235 | fi | |
e6cc62c6 VS |
23236 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
23237 | ||
2b5f62a0 | 23238 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
23239 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
23240 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
2b5f62a0 | 23241 | else |
e6cc62c6 VS |
23242 | echo "$as_me:$LINENO: result: no" >&5 |
23243 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
23244 | fi |
23245 | ||
23246 | fi | |
23247 | ||
23248 | if test "$PKG_CONFIG" = "no" ; then | |
23249 | echo "*** The pkg-config script could not be found. Make sure it is" | |
23250 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
23251 | echo "*** to the full path to pkg-config." | |
23252 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
23253 | else | |
23254 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
23255 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
e6cc62c6 VS |
23256 | echo "$as_me:$LINENO: checking for pangox" >&5 |
23257 | echo $ECHO_N "checking for pangox... $ECHO_C" >&6 | |
2b5f62a0 VZ |
23258 | |
23259 | if $PKG_CONFIG --exists "pangox" ; then | |
e6cc62c6 VS |
23260 | echo "$as_me:$LINENO: result: yes" >&5 |
23261 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 VZ |
23262 | succeeded=yes |
23263 | ||
e6cc62c6 VS |
23264 | echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5 |
23265 | echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6 | |
2b5f62a0 | 23266 | PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"` |
e6cc62c6 VS |
23267 | echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5 |
23268 | echo "${ECHO_T}$PANGOX_CFLAGS" >&6 | |
2b5f62a0 | 23269 | |
e6cc62c6 VS |
23270 | echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5 |
23271 | echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6 | |
2b5f62a0 | 23272 | PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"` |
e6cc62c6 VS |
23273 | echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5 |
23274 | echo "${ECHO_T}$PANGOX_LIBS" >&6 | |
2b5f62a0 VZ |
23275 | else |
23276 | PANGOX_CFLAGS="" | |
23277 | PANGOX_LIBS="" | |
e6cc62c6 | 23278 | ## If we have a custom action on failure, don't print errors, but |
2b5f62a0 VZ |
23279 | ## do set a variable so people can do so. |
23280 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
e6cc62c6 | 23281 | |
2b5f62a0 VZ |
23282 | fi |
23283 | ||
e6cc62c6 VS |
23284 | |
23285 | ||
2b5f62a0 VZ |
23286 | else |
23287 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
23288 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
23289 | fi | |
23290 | fi | |
23291 | ||
23292 | if test $succeeded = yes; then | |
e6cc62c6 | 23293 | |
2b5f62a0 | 23294 | CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS" |
c74dc163 | 23295 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS" |
e6cc62c6 | 23296 | |
2b5f62a0 | 23297 | else |
e6cc62c6 VS |
23298 | |
23299 | { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5 | |
23300 | echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;} | |
23301 | { (exit 1); exit 1; }; } | |
23302 | ||
23303 | ||
2b5f62a0 VZ |
23304 | fi |
23305 | ||
e6cc62c6 | 23306 | |
2b5f62a0 VZ |
23307 | succeeded=no |
23308 | ||
23309 | if test -z "$PKG_CONFIG"; then | |
23310 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
23311 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
23312 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
23313 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
23314 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
23315 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2b5f62a0 | 23316 | else |
e6cc62c6 VS |
23317 | case $PKG_CONFIG in |
23318 | [\\/]* | ?:[\\/]*) | |
2b5f62a0 VZ |
23319 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
23320 | ;; | |
2b5f62a0 | 23321 | *) |
e6cc62c6 VS |
23322 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
23323 | for as_dir in $PATH | |
23324 | do | |
23325 | IFS=$as_save_IFS | |
23326 | test -z "$as_dir" && as_dir=. | |
23327 | for ac_exec_ext in '' $ac_executable_extensions; do | |
23328 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
23329 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
23330 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
23331 | break 2 | |
23332 | fi | |
23333 | done | |
23334 | done | |
23335 | ||
2b5f62a0 VZ |
23336 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
23337 | ;; | |
23338 | esac | |
23339 | fi | |
e6cc62c6 VS |
23340 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
23341 | ||
2b5f62a0 | 23342 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
23343 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
23344 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
2b5f62a0 | 23345 | else |
e6cc62c6 VS |
23346 | echo "$as_me:$LINENO: result: no" >&5 |
23347 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
23348 | fi |
23349 | ||
23350 | fi | |
23351 | ||
23352 | if test "$PKG_CONFIG" = "no" ; then | |
23353 | echo "*** The pkg-config script could not be found. Make sure it is" | |
23354 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
23355 | echo "*** to the full path to pkg-config." | |
23356 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
23357 | else | |
23358 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
23359 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
e6cc62c6 VS |
23360 | echo "$as_me:$LINENO: checking for pangoft2" >&5 |
23361 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
2b5f62a0 VZ |
23362 | |
23363 | if $PKG_CONFIG --exists "pangoft2" ; then | |
e6cc62c6 VS |
23364 | echo "$as_me:$LINENO: result: yes" >&5 |
23365 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 VZ |
23366 | succeeded=yes |
23367 | ||
e6cc62c6 VS |
23368 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 |
23369 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
2b5f62a0 | 23370 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` |
e6cc62c6 VS |
23371 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 |
23372 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
2b5f62a0 | 23373 | |
e6cc62c6 VS |
23374 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 |
23375 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
2b5f62a0 | 23376 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` |
e6cc62c6 VS |
23377 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 |
23378 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
2b5f62a0 VZ |
23379 | else |
23380 | PANGOFT2_CFLAGS="" | |
23381 | PANGOFT2_LIBS="" | |
e6cc62c6 | 23382 | ## If we have a custom action on failure, don't print errors, but |
2b5f62a0 VZ |
23383 | ## do set a variable so people can do so. |
23384 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
e6cc62c6 | 23385 | |
2b5f62a0 VZ |
23386 | fi |
23387 | ||
e6cc62c6 VS |
23388 | |
23389 | ||
2b5f62a0 VZ |
23390 | else |
23391 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
23392 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
23393 | fi | |
23394 | fi | |
23395 | ||
23396 | if test $succeeded = yes; then | |
e6cc62c6 | 23397 | |
2b5f62a0 | 23398 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" |
c74dc163 | 23399 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" |
e6cc62c6 | 23400 | |
2b5f62a0 | 23401 | else |
e6cc62c6 VS |
23402 | |
23403 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
23404 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
2b5f62a0 | 23405 | wxUSE_PRINTING_ARCHITECTURE="no" |
e6cc62c6 VS |
23406 | |
23407 | ||
2b5f62a0 VZ |
23408 | fi |
23409 | ||
e6cc62c6 | 23410 | |
2b5f62a0 VZ |
23411 | succeeded=no |
23412 | ||
23413 | if test -z "$PKG_CONFIG"; then | |
23414 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
23415 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
23416 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
23417 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
23418 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
23419 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2b5f62a0 | 23420 | else |
e6cc62c6 VS |
23421 | case $PKG_CONFIG in |
23422 | [\\/]* | ?:[\\/]*) | |
2b5f62a0 VZ |
23423 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
23424 | ;; | |
2b5f62a0 | 23425 | *) |
e6cc62c6 VS |
23426 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
23427 | for as_dir in $PATH | |
23428 | do | |
23429 | IFS=$as_save_IFS | |
23430 | test -z "$as_dir" && as_dir=. | |
23431 | for ac_exec_ext in '' $ac_executable_extensions; do | |
23432 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
23433 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
23434 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
23435 | break 2 | |
23436 | fi | |
23437 | done | |
23438 | done | |
23439 | ||
2b5f62a0 VZ |
23440 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
23441 | ;; | |
23442 | esac | |
23443 | fi | |
e6cc62c6 VS |
23444 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
23445 | ||
2b5f62a0 | 23446 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
23447 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
23448 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
2b5f62a0 | 23449 | else |
e6cc62c6 VS |
23450 | echo "$as_me:$LINENO: result: no" >&5 |
23451 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
23452 | fi |
23453 | ||
23454 | fi | |
23455 | ||
23456 | if test "$PKG_CONFIG" = "no" ; then | |
23457 | echo "*** The pkg-config script could not be found. Make sure it is" | |
23458 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
23459 | echo "*** to the full path to pkg-config." | |
23460 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
23461 | else | |
23462 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
23463 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
e6cc62c6 VS |
23464 | echo "$as_me:$LINENO: checking for pangoxft" >&5 |
23465 | echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6 | |
2b5f62a0 VZ |
23466 | |
23467 | if $PKG_CONFIG --exists "pangoxft" ; then | |
e6cc62c6 VS |
23468 | echo "$as_me:$LINENO: result: yes" >&5 |
23469 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 VZ |
23470 | succeeded=yes |
23471 | ||
e6cc62c6 VS |
23472 | echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5 |
23473 | echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6 | |
2b5f62a0 | 23474 | PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"` |
e6cc62c6 VS |
23475 | echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5 |
23476 | echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6 | |
2b5f62a0 | 23477 | |
e6cc62c6 VS |
23478 | echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5 |
23479 | echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6 | |
2b5f62a0 | 23480 | PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"` |
e6cc62c6 VS |
23481 | echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5 |
23482 | echo "${ECHO_T}$PANGOXFT_LIBS" >&6 | |
2b5f62a0 VZ |
23483 | else |
23484 | PANGOXFT_CFLAGS="" | |
23485 | PANGOXFT_LIBS="" | |
e6cc62c6 | 23486 | ## If we have a custom action on failure, don't print errors, but |
2b5f62a0 VZ |
23487 | ## do set a variable so people can do so. |
23488 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
e6cc62c6 | 23489 | |
2b5f62a0 VZ |
23490 | fi |
23491 | ||
e6cc62c6 VS |
23492 | |
23493 | ||
2b5f62a0 VZ |
23494 | else |
23495 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
23496 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
23497 | fi | |
23498 | fi | |
23499 | ||
23500 | if test $succeeded = yes; then | |
e6cc62c6 | 23501 | |
2b5f62a0 | 23502 | CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS" |
c74dc163 | 23503 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS" |
e6cc62c6 | 23504 | |
2b5f62a0 | 23505 | else |
e6cc62c6 VS |
23506 | |
23507 | { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5 | |
23508 | echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;} | |
23509 | ||
23510 | ||
2b5f62a0 VZ |
23511 | fi |
23512 | ||
23513 | fi | |
23514 | ||
23515 | wxUSE_UNIVERSAL="yes" | |
23516 | ||
23517 | if test "$wxUSE_NANOX" = "yes"; then | |
23518 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
fe0895cf | 23519 | 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 |
23520 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" |
23521 | else | |
93a543aa | 23522 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11" |
2b5f62a0 VZ |
23523 | fi |
23524 | ||
23525 | TOOLKIT_VPATH="\${top_srcdir}/src/x11" | |
23526 | TOOLKIT=X11 | |
23527 | GUIDIST=X11_DIST | |
23528 | fi | |
23529 | ||
21d1c967 GD |
23530 | if test "$wxUSE_MOTIF" = 1; then |
23531 | if test "$no_x" = yes; then | |
23532 | # Not all programs may use this symbol, but it does not hurt to define it. | |
e6cc62c6 VS |
23533 | |
23534 | cat >>confdefs.h <<\_ACEOF | |
21d1c967 | 23535 | #define X_DISPLAY_MISSING 1 |
e6cc62c6 | 23536 | _ACEOF |
21d1c967 GD |
23537 | |
23538 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
23539 | else | |
23540 | if test -n "$x_includes"; then | |
23541 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
90dd450c VZ |
23542 | fi |
23543 | ||
21d1c967 GD |
23544 | # It would also be nice to do this for all -L options, not just this one. |
23545 | if test -n "$x_libraries"; then | |
23546 | X_LIBS="$X_LIBS -L$x_libraries" | |
23547 | # For Solaris; some versions of Sun CC require a space after -R and | |
23548 | # others require no space. Words are not sufficient . . . . | |
e6cc62c6 | 23549 | case `(uname -sr) 2>/dev/null` in |
21d1c967 | 23550 | "SunOS 5"*) |
e6cc62c6 VS |
23551 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
23552 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
23553 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
23554 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 23555 | #line $LINENO "configure" |
e6cc62c6 VS |
23556 | /* confdefs.h. */ |
23557 | _ACEOF | |
23558 | cat confdefs.h >>conftest.$ac_ext | |
23559 | cat >>conftest.$ac_ext <<_ACEOF | |
23560 | /* end confdefs.h. */ | |
23561 | ||
23562 | int | |
23563 | main () | |
23564 | { | |
21d1c967 | 23565 | |
e6cc62c6 VS |
23566 | ; |
23567 | return 0; | |
23568 | } | |
23569 | _ACEOF | |
23570 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23571 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 23572 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
23573 | ac_status=$? |
23574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23575 | (exit $ac_status); } && | |
789c5f4a | 23576 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
23577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23578 | (eval $ac_try) 2>&5 | |
23579 | ac_status=$? | |
23580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23581 | (exit $ac_status); }; }; then | |
21d1c967 | 23582 | ac_R_nospace=yes |
698dcdb6 | 23583 | else |
e6cc62c6 VS |
23584 | echo "$as_me: failed program was:" >&5 |
23585 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23586 | ||
23587 | ac_R_nospace=no | |
10f2d63a | 23588 | fi |
789c5f4a | 23589 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
21d1c967 | 23590 | if test $ac_R_nospace = yes; then |
e6cc62c6 VS |
23591 | echo "$as_me:$LINENO: result: no" >&5 |
23592 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
23593 | X_LIBS="$X_LIBS -R$x_libraries" |
23594 | else | |
23595 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
e6cc62c6 | 23596 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 23597 | #line $LINENO "configure" |
e6cc62c6 VS |
23598 | /* confdefs.h. */ |
23599 | _ACEOF | |
23600 | cat confdefs.h >>conftest.$ac_ext | |
23601 | cat >>conftest.$ac_ext <<_ACEOF | |
23602 | /* end confdefs.h. */ | |
23603 | ||
23604 | int | |
23605 | main () | |
23606 | { | |
f0c87536 | 23607 | |
e6cc62c6 VS |
23608 | ; |
23609 | return 0; | |
23610 | } | |
23611 | _ACEOF | |
23612 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23613 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 23614 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
23615 | ac_status=$? |
23616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23617 | (exit $ac_status); } && | |
789c5f4a | 23618 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
23619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23620 | (eval $ac_try) 2>&5 | |
23621 | ac_status=$? | |
23622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23623 | (exit $ac_status); }; }; then | |
21d1c967 GD |
23624 | ac_R_space=yes |
23625 | else | |
e6cc62c6 VS |
23626 | echo "$as_me: failed program was:" >&5 |
23627 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23628 | ||
23629 | ac_R_space=no | |
21d1c967 | 23630 | fi |
789c5f4a | 23631 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
21d1c967 | 23632 | if test $ac_R_space = yes; then |
e6cc62c6 VS |
23633 | echo "$as_me:$LINENO: result: yes" >&5 |
23634 | echo "${ECHO_T}yes" >&6 | |
21d1c967 GD |
23635 | X_LIBS="$X_LIBS -R $x_libraries" |
23636 | else | |
e6cc62c6 VS |
23637 | echo "$as_me:$LINENO: result: neither works" >&5 |
23638 | echo "${ECHO_T}neither works" >&6 | |
21d1c967 GD |
23639 | fi |
23640 | fi | |
e6cc62c6 | 23641 | LIBS=$ac_xsave_LIBS |
21d1c967 GD |
23642 | esac |
23643 | fi | |
90dd450c | 23644 | |
21d1c967 GD |
23645 | # Check for system-dependent libraries X programs must link with. |
23646 | # Do this before checking for the system-independent R6 libraries | |
23647 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
23648 | ||
23649 | if test "$ISC" = yes; then | |
23650 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
23651 | else | |
e6cc62c6 VS |
23652 | # Martyn Johnson says this is needed for Ultrix, if the X |
23653 | # libraries were built with DECnet support. And Karl Berry says | |
21d1c967 | 23654 | # the Alpha needs dnet_stub (dnet does not exist). |
e6cc62c6 VS |
23655 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
23656 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 23657 | #line $LINENO "configure" |
e6cc62c6 VS |
23658 | /* confdefs.h. */ |
23659 | _ACEOF | |
23660 | cat confdefs.h >>conftest.$ac_ext | |
23661 | cat >>conftest.$ac_ext <<_ACEOF | |
23662 | /* end confdefs.h. */ | |
23663 | ||
247f5006 | 23664 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23665 | #ifdef __cplusplus |
23666 | extern "C" | |
23667 | #endif | |
247f5006 | 23668 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23669 | builtin and then its argument prototype would still apply. */ |
23670 | char XOpenDisplay (); | |
23671 | int | |
23672 | main () | |
23673 | { | |
23674 | XOpenDisplay (); | |
23675 | ; | |
23676 | return 0; | |
23677 | } | |
23678 | _ACEOF | |
23679 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23680 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 23681 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
23682 | ac_status=$? |
23683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23684 | (exit $ac_status); } && | |
789c5f4a | 23685 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
23686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23687 | (eval $ac_try) 2>&5 | |
23688 | ac_status=$? | |
23689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23690 | (exit $ac_status); }; }; then | |
23691 | : | |
23692 | else | |
23693 | echo "$as_me: failed program was:" >&5 | |
23694 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 23695 | |
e6cc62c6 VS |
23696 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
23697 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
23698 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
23699 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 23700 | else |
e6cc62c6 VS |
23701 | ac_check_lib_save_LIBS=$LIBS |
23702 | LIBS="-ldnet $LIBS" | |
23703 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 23704 | #line $LINENO "configure" |
e6cc62c6 VS |
23705 | /* confdefs.h. */ |
23706 | _ACEOF | |
23707 | cat confdefs.h >>conftest.$ac_ext | |
23708 | cat >>conftest.$ac_ext <<_ACEOF | |
23709 | /* end confdefs.h. */ | |
a0b9e27f | 23710 | |
e6cc62c6 VS |
23711 | /* Override any gcc2 internal prototype to avoid an error. */ |
23712 | #ifdef __cplusplus | |
23713 | extern "C" | |
23714 | #endif | |
23715 | /* We use char because int might match the return type of a gcc2 | |
23716 | builtin and then its argument prototype would still apply. */ | |
23717 | char dnet_ntoa (); | |
23718 | int | |
23719 | main () | |
23720 | { | |
23721 | dnet_ntoa (); | |
23722 | ; | |
23723 | return 0; | |
23724 | } | |
23725 | _ACEOF | |
23726 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23727 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 23728 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
23729 | ac_status=$? |
23730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23731 | (exit $ac_status); } && | |
789c5f4a | 23732 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
23733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23734 | (eval $ac_try) 2>&5 | |
23735 | ac_status=$? | |
23736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23737 | (exit $ac_status); }; }; then | |
23738 | ac_cv_lib_dnet_dnet_ntoa=yes | |
23739 | else | |
23740 | echo "$as_me: failed program was:" >&5 | |
23741 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23742 | ||
23743 | ac_cv_lib_dnet_dnet_ntoa=no | |
23744 | fi | |
789c5f4a | 23745 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
23746 | LIBS=$ac_check_lib_save_LIBS |
23747 | fi | |
23748 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
23749 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
23750 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
21d1c967 | 23751 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
0fb0dd83 | 23752 | fi |
0fb0dd83 | 23753 | |
21d1c967 | 23754 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
e6cc62c6 VS |
23755 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
23756 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
23757 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
23758 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 23759 | else |
e6cc62c6 | 23760 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 23761 | LIBS="-ldnet_stub $LIBS" |
e6cc62c6 | 23762 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 23763 | #line $LINENO "configure" |
e6cc62c6 VS |
23764 | /* confdefs.h. */ |
23765 | _ACEOF | |
23766 | cat confdefs.h >>conftest.$ac_ext | |
23767 | cat >>conftest.$ac_ext <<_ACEOF | |
23768 | /* end confdefs.h. */ | |
23769 | ||
21d1c967 | 23770 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23771 | #ifdef __cplusplus |
23772 | extern "C" | |
23773 | #endif | |
21d1c967 | 23774 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23775 | builtin and then its argument prototype would still apply. */ |
23776 | char dnet_ntoa (); | |
23777 | int | |
23778 | main () | |
23779 | { | |
23780 | dnet_ntoa (); | |
23781 | ; | |
23782 | return 0; | |
23783 | } | |
23784 | _ACEOF | |
23785 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23786 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 23787 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
23788 | ac_status=$? |
23789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23790 | (exit $ac_status); } && | |
789c5f4a | 23791 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
23792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23793 | (eval $ac_try) 2>&5 | |
23794 | ac_status=$? | |
23795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23796 | (exit $ac_status); }; }; then | |
23797 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
23798 | else | |
23799 | echo "$as_me: failed program was:" >&5 | |
23800 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23801 | ||
23802 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
23803 | fi | |
789c5f4a | 23804 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
23805 | LIBS=$ac_check_lib_save_LIBS |
23806 | fi | |
23807 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
23808 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
23809 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
21d1c967 | 23810 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
90dd450c VZ |
23811 | fi |
23812 | ||
21d1c967 | 23813 | fi |
e6cc62c6 | 23814 | fi |
789c5f4a | 23815 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 | 23816 | LIBS="$ac_xsave_LIBS" |
90dd450c | 23817 | |
21d1c967 GD |
23818 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
23819 | # to get the SysV transport functions. | |
e6cc62c6 | 23820 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
21d1c967 GD |
23821 | # needs -lnsl. |
23822 | # The nsl library prevents programs from opening the X display | |
e6cc62c6 VS |
23823 | # on Irix 5.2, according to T.E. Dickey. |
23824 | # The functions gethostbyname, getservbyname, and inet_addr are | |
23825 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
23826 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
23827 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
23828 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
23829 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23830 | else | |
23831 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 23832 | #line $LINENO "configure" |
e6cc62c6 VS |
23833 | /* confdefs.h. */ |
23834 | _ACEOF | |
23835 | cat confdefs.h >>conftest.$ac_ext | |
23836 | cat >>conftest.$ac_ext <<_ACEOF | |
23837 | /* end confdefs.h. */ | |
21d1c967 | 23838 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
23839 | which can conflict with char gethostbyname (); below. |
23840 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23841 | <limits.h> exists even on freestanding compilers. */ | |
23842 | #ifdef __STDC__ | |
23843 | # include <limits.h> | |
23844 | #else | |
23845 | # include <assert.h> | |
23846 | #endif | |
21d1c967 | 23847 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23848 | #ifdef __cplusplus |
23849 | extern "C" | |
23850 | { | |
23851 | #endif | |
21d1c967 | 23852 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23853 | builtin and then its argument prototype would still apply. */ |
23854 | char gethostbyname (); | |
21d1c967 GD |
23855 | /* The GNU C library defines this for functions which it implements |
23856 | to always fail with ENOSYS. Some functions are actually named | |
23857 | something starting with __ and the normal name is an alias. */ | |
23858 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
23859 | choke me | |
23860 | #else | |
e6cc62c6 VS |
23861 | char (*f) () = gethostbyname; |
23862 | #endif | |
23863 | #ifdef __cplusplus | |
23864 | } | |
21d1c967 | 23865 | #endif |
90dd450c | 23866 | |
e6cc62c6 VS |
23867 | int |
23868 | main () | |
23869 | { | |
23870 | return f != gethostbyname; | |
23871 | ; | |
23872 | return 0; | |
23873 | } | |
23874 | _ACEOF | |
23875 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23876 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 23877 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
23878 | ac_status=$? |
23879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23880 | (exit $ac_status); } && | |
789c5f4a | 23881 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
23882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23883 | (eval $ac_try) 2>&5 | |
23884 | ac_status=$? | |
23885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23886 | (exit $ac_status); }; }; then | |
23887 | ac_cv_func_gethostbyname=yes | |
23888 | else | |
23889 | echo "$as_me: failed program was:" >&5 | |
23890 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23891 | ||
23892 | ac_cv_func_gethostbyname=no | |
23893 | fi | |
789c5f4a | 23894 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
23895 | fi |
23896 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
23897 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
90dd450c | 23898 | |
21d1c967 | 23899 | if test $ac_cv_func_gethostbyname = no; then |
e6cc62c6 VS |
23900 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
23901 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
23902 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
23903 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 23904 | else |
e6cc62c6 | 23905 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 23906 | LIBS="-lnsl $LIBS" |
e6cc62c6 | 23907 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 23908 | #line $LINENO "configure" |
e6cc62c6 VS |
23909 | /* confdefs.h. */ |
23910 | _ACEOF | |
23911 | cat confdefs.h >>conftest.$ac_ext | |
23912 | cat >>conftest.$ac_ext <<_ACEOF | |
23913 | /* end confdefs.h. */ | |
23914 | ||
21d1c967 | 23915 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23916 | #ifdef __cplusplus |
23917 | extern "C" | |
23918 | #endif | |
21d1c967 | 23919 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23920 | builtin and then its argument prototype would still apply. */ |
23921 | char gethostbyname (); | |
23922 | int | |
23923 | main () | |
23924 | { | |
23925 | gethostbyname (); | |
23926 | ; | |
23927 | return 0; | |
23928 | } | |
23929 | _ACEOF | |
23930 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23931 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 23932 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
23933 | ac_status=$? |
23934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23935 | (exit $ac_status); } && | |
789c5f4a | 23936 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
23937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23938 | (eval $ac_try) 2>&5 | |
23939 | ac_status=$? | |
23940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23941 | (exit $ac_status); }; }; then | |
23942 | ac_cv_lib_nsl_gethostbyname=yes | |
23943 | else | |
23944 | echo "$as_me: failed program was:" >&5 | |
23945 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23946 | ||
23947 | ac_cv_lib_nsl_gethostbyname=no | |
23948 | fi | |
789c5f4a | 23949 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
23950 | LIBS=$ac_check_lib_save_LIBS |
23951 | fi | |
23952 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
23953 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
23954 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
23955 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
a0b9e27f | 23956 | fi |
247f5006 | 23957 | |
e6cc62c6 | 23958 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
789c5f4a | 23959 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 |
e6cc62c6 VS |
23960 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 |
23961 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
23962 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 23963 | else |
e6cc62c6 VS |
23964 | ac_check_lib_save_LIBS=$LIBS |
23965 | LIBS="-lbsd $LIBS" | |
23966 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 23967 | #line $LINENO "configure" |
e6cc62c6 VS |
23968 | /* confdefs.h. */ |
23969 | _ACEOF | |
23970 | cat confdefs.h >>conftest.$ac_ext | |
23971 | cat >>conftest.$ac_ext <<_ACEOF | |
23972 | /* end confdefs.h. */ | |
23973 | ||
23974 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23975 | #ifdef __cplusplus | |
23976 | extern "C" | |
23977 | #endif | |
23978 | /* We use char because int might match the return type of a gcc2 | |
23979 | builtin and then its argument prototype would still apply. */ | |
23980 | char gethostbyname (); | |
23981 | int | |
23982 | main () | |
23983 | { | |
23984 | gethostbyname (); | |
23985 | ; | |
23986 | return 0; | |
23987 | } | |
23988 | _ACEOF | |
23989 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23990 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 23991 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
23992 | ac_status=$? |
23993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23994 | (exit $ac_status); } && | |
789c5f4a | 23995 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
23996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23997 | (eval $ac_try) 2>&5 | |
23998 | ac_status=$? | |
23999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24000 | (exit $ac_status); }; }; then | |
24001 | ac_cv_lib_bsd_gethostbyname=yes | |
24002 | else | |
24003 | echo "$as_me: failed program was:" >&5 | |
24004 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24005 | ||
24006 | ac_cv_lib_bsd_gethostbyname=no | |
24007 | fi | |
789c5f4a | 24008 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
24009 | LIBS=$ac_check_lib_save_LIBS |
24010 | fi | |
24011 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
24012 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
24013 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
24014 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
21d1c967 | 24015 | fi |
90dd450c | 24016 | |
e6cc62c6 | 24017 | fi |
90dd450c VZ |
24018 | fi |
24019 | ||
21d1c967 GD |
24020 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
24021 | # socket/setsockopt and other routines are undefined under SCO ODT | |
24022 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
e6cc62c6 VS |
24023 | # on later versions), says Simon Leinen: it contains gethostby* |
24024 | # variants that don't use the name server (or something). -lsocket | |
24025 | # must be given before -lnsl if both are needed. We assume that | |
24026 | # if connect needs -lnsl, so does gethostbyname. | |
24027 | echo "$as_me:$LINENO: checking for connect" >&5 | |
24028 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
24029 | if test "${ac_cv_func_connect+set}" = set; then | |
24030 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24031 | else | |
24032 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 24033 | #line $LINENO "configure" |
e6cc62c6 VS |
24034 | /* confdefs.h. */ |
24035 | _ACEOF | |
24036 | cat confdefs.h >>conftest.$ac_ext | |
24037 | cat >>conftest.$ac_ext <<_ACEOF | |
24038 | /* end confdefs.h. */ | |
21d1c967 | 24039 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
24040 | which can conflict with char connect (); below. |
24041 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24042 | <limits.h> exists even on freestanding compilers. */ | |
24043 | #ifdef __STDC__ | |
24044 | # include <limits.h> | |
24045 | #else | |
24046 | # include <assert.h> | |
24047 | #endif | |
21d1c967 | 24048 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
24049 | #ifdef __cplusplus |
24050 | extern "C" | |
24051 | { | |
24052 | #endif | |
21d1c967 | 24053 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
24054 | builtin and then its argument prototype would still apply. */ |
24055 | char connect (); | |
21d1c967 GD |
24056 | /* The GNU C library defines this for functions which it implements |
24057 | to always fail with ENOSYS. Some functions are actually named | |
24058 | something starting with __ and the normal name is an alias. */ | |
24059 | #if defined (__stub_connect) || defined (__stub___connect) | |
24060 | choke me | |
24061 | #else | |
e6cc62c6 VS |
24062 | char (*f) () = connect; |
24063 | #endif | |
24064 | #ifdef __cplusplus | |
24065 | } | |
21d1c967 | 24066 | #endif |
90dd450c | 24067 | |
e6cc62c6 VS |
24068 | int |
24069 | main () | |
24070 | { | |
24071 | return f != connect; | |
24072 | ; | |
24073 | return 0; | |
24074 | } | |
24075 | _ACEOF | |
24076 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24077 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 24078 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
24079 | ac_status=$? |
24080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24081 | (exit $ac_status); } && | |
789c5f4a | 24082 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
24083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24084 | (eval $ac_try) 2>&5 | |
24085 | ac_status=$? | |
24086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24087 | (exit $ac_status); }; }; then | |
24088 | ac_cv_func_connect=yes | |
24089 | else | |
24090 | echo "$as_me: failed program was:" >&5 | |
24091 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24092 | ||
24093 | ac_cv_func_connect=no | |
24094 | fi | |
789c5f4a | 24095 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
24096 | fi |
24097 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
24098 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
1f8ae82f | 24099 | |
21d1c967 | 24100 | if test $ac_cv_func_connect = no; then |
e6cc62c6 VS |
24101 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
24102 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
24103 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
24104 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
0fbb762e | 24105 | else |
e6cc62c6 | 24106 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 24107 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
e6cc62c6 | 24108 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 24109 | #line $LINENO "configure" |
e6cc62c6 VS |
24110 | /* confdefs.h. */ |
24111 | _ACEOF | |
24112 | cat confdefs.h >>conftest.$ac_ext | |
24113 | cat >>conftest.$ac_ext <<_ACEOF | |
24114 | /* end confdefs.h. */ | |
24115 | ||
21d1c967 | 24116 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
24117 | #ifdef __cplusplus |
24118 | extern "C" | |
24119 | #endif | |
21d1c967 | 24120 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
24121 | builtin and then its argument prototype would still apply. */ |
24122 | char connect (); | |
24123 | int | |
24124 | main () | |
24125 | { | |
24126 | connect (); | |
24127 | ; | |
24128 | return 0; | |
24129 | } | |
24130 | _ACEOF | |
24131 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24132 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 24133 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
24134 | ac_status=$? |
24135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24136 | (exit $ac_status); } && | |
789c5f4a | 24137 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
24138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24139 | (eval $ac_try) 2>&5 | |
24140 | ac_status=$? | |
24141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24142 | (exit $ac_status); }; }; then | |
24143 | ac_cv_lib_socket_connect=yes | |
24144 | else | |
24145 | echo "$as_me: failed program was:" >&5 | |
24146 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24147 | ||
24148 | ac_cv_lib_socket_connect=no | |
24149 | fi | |
789c5f4a | 24150 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
24151 | LIBS=$ac_check_lib_save_LIBS |
24152 | fi | |
24153 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
24154 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
24155 | if test $ac_cv_lib_socket_connect = yes; then | |
21d1c967 | 24156 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
21d1c967 | 24157 | fi |
90dd450c | 24158 | |
21d1c967 | 24159 | fi |
90dd450c | 24160 | |
e6cc62c6 VS |
24161 | # Guillermo Gomez says -lposix is necessary on A/UX. |
24162 | echo "$as_me:$LINENO: checking for remove" >&5 | |
24163 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
24164 | if test "${ac_cv_func_remove+set}" = set; then | |
24165 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24166 | else | |
24167 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 24168 | #line $LINENO "configure" |
e6cc62c6 VS |
24169 | /* confdefs.h. */ |
24170 | _ACEOF | |
24171 | cat confdefs.h >>conftest.$ac_ext | |
24172 | cat >>conftest.$ac_ext <<_ACEOF | |
24173 | /* end confdefs.h. */ | |
21d1c967 | 24174 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
24175 | which can conflict with char remove (); below. |
24176 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24177 | <limits.h> exists even on freestanding compilers. */ | |
24178 | #ifdef __STDC__ | |
24179 | # include <limits.h> | |
24180 | #else | |
24181 | # include <assert.h> | |
24182 | #endif | |
21d1c967 | 24183 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
24184 | #ifdef __cplusplus |
24185 | extern "C" | |
24186 | { | |
24187 | #endif | |
21d1c967 | 24188 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
24189 | builtin and then its argument prototype would still apply. */ |
24190 | char remove (); | |
21d1c967 GD |
24191 | /* The GNU C library defines this for functions which it implements |
24192 | to always fail with ENOSYS. Some functions are actually named | |
24193 | something starting with __ and the normal name is an alias. */ | |
24194 | #if defined (__stub_remove) || defined (__stub___remove) | |
24195 | choke me | |
24196 | #else | |
e6cc62c6 VS |
24197 | char (*f) () = remove; |
24198 | #endif | |
24199 | #ifdef __cplusplus | |
24200 | } | |
21d1c967 | 24201 | #endif |
90dd450c | 24202 | |
e6cc62c6 VS |
24203 | int |
24204 | main () | |
24205 | { | |
24206 | return f != remove; | |
24207 | ; | |
24208 | return 0; | |
24209 | } | |
24210 | _ACEOF | |
24211 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24212 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 24213 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
24214 | ac_status=$? |
24215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24216 | (exit $ac_status); } && | |
789c5f4a | 24217 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
24218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24219 | (eval $ac_try) 2>&5 | |
24220 | ac_status=$? | |
24221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24222 | (exit $ac_status); }; }; then | |
24223 | ac_cv_func_remove=yes | |
24224 | else | |
24225 | echo "$as_me: failed program was:" >&5 | |
24226 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24227 | ||
24228 | ac_cv_func_remove=no | |
24229 | fi | |
789c5f4a | 24230 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
24231 | fi |
24232 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
24233 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
90dd450c | 24234 | |
21d1c967 | 24235 | if test $ac_cv_func_remove = no; then |
e6cc62c6 VS |
24236 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
24237 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
24238 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
24239 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 24240 | else |
e6cc62c6 | 24241 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 24242 | LIBS="-lposix $LIBS" |
e6cc62c6 | 24243 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 24244 | #line $LINENO "configure" |
e6cc62c6 VS |
24245 | /* confdefs.h. */ |
24246 | _ACEOF | |
24247 | cat confdefs.h >>conftest.$ac_ext | |
24248 | cat >>conftest.$ac_ext <<_ACEOF | |
24249 | /* end confdefs.h. */ | |
24250 | ||
21d1c967 | 24251 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
24252 | #ifdef __cplusplus |
24253 | extern "C" | |
24254 | #endif | |
21d1c967 | 24255 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
24256 | builtin and then its argument prototype would still apply. */ |
24257 | char remove (); | |
24258 | int | |
24259 | main () | |
24260 | { | |
24261 | remove (); | |
24262 | ; | |
24263 | return 0; | |
24264 | } | |
24265 | _ACEOF | |
24266 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24267 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 24268 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
24269 | ac_status=$? |
24270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24271 | (exit $ac_status); } && | |
789c5f4a | 24272 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
24273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24274 | (eval $ac_try) 2>&5 | |
24275 | ac_status=$? | |
24276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24277 | (exit $ac_status); }; }; then | |
24278 | ac_cv_lib_posix_remove=yes | |
24279 | else | |
24280 | echo "$as_me: failed program was:" >&5 | |
24281 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24282 | ||
24283 | ac_cv_lib_posix_remove=no | |
24284 | fi | |
789c5f4a | 24285 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
24286 | LIBS=$ac_check_lib_save_LIBS |
24287 | fi | |
24288 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
24289 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
24290 | if test $ac_cv_lib_posix_remove = yes; then | |
21d1c967 | 24291 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
21d1c967 | 24292 | fi |
19bc6aad | 24293 | |
90dd450c | 24294 | fi |
19bc6aad | 24295 | |
21d1c967 | 24296 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
e6cc62c6 VS |
24297 | echo "$as_me:$LINENO: checking for shmat" >&5 |
24298 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
24299 | if test "${ac_cv_func_shmat+set}" = set; then | |
24300 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24301 | else | |
24302 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 24303 | #line $LINENO "configure" |
e6cc62c6 VS |
24304 | /* confdefs.h. */ |
24305 | _ACEOF | |
24306 | cat confdefs.h >>conftest.$ac_ext | |
24307 | cat >>conftest.$ac_ext <<_ACEOF | |
24308 | /* end confdefs.h. */ | |
21d1c967 | 24309 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
24310 | which can conflict with char shmat (); below. |
24311 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24312 | <limits.h> exists even on freestanding compilers. */ | |
24313 | #ifdef __STDC__ | |
24314 | # include <limits.h> | |
24315 | #else | |
24316 | # include <assert.h> | |
24317 | #endif | |
21d1c967 | 24318 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
24319 | #ifdef __cplusplus |
24320 | extern "C" | |
24321 | { | |
24322 | #endif | |
21d1c967 | 24323 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
24324 | builtin and then its argument prototype would still apply. */ |
24325 | char shmat (); | |
21d1c967 GD |
24326 | /* The GNU C library defines this for functions which it implements |
24327 | to always fail with ENOSYS. Some functions are actually named | |
24328 | something starting with __ and the normal name is an alias. */ | |
24329 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
24330 | choke me | |
24331 | #else | |
e6cc62c6 VS |
24332 | char (*f) () = shmat; |
24333 | #endif | |
24334 | #ifdef __cplusplus | |
24335 | } | |
21d1c967 | 24336 | #endif |
90dd450c | 24337 | |
e6cc62c6 VS |
24338 | int |
24339 | main () | |
24340 | { | |
24341 | return f != shmat; | |
24342 | ; | |
24343 | return 0; | |
24344 | } | |
24345 | _ACEOF | |
24346 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24347 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 24348 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
24349 | ac_status=$? |
24350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24351 | (exit $ac_status); } && | |
789c5f4a | 24352 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
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); }; }; then | |
24358 | ac_cv_func_shmat=yes | |
24359 | else | |
24360 | echo "$as_me: failed program was:" >&5 | |
24361 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24362 | ||
24363 | ac_cv_func_shmat=no | |
24364 | fi | |
789c5f4a | 24365 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
24366 | fi |
24367 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
24368 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
19bc6aad | 24369 | |
21d1c967 | 24370 | if test $ac_cv_func_shmat = no; then |
e6cc62c6 VS |
24371 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
24372 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
24373 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
24374 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5c6fa7d2 | 24375 | else |
e6cc62c6 | 24376 | ac_check_lib_save_LIBS=$LIBS |
5c6fa7d2 | 24377 | LIBS="-lipc $LIBS" |
e6cc62c6 | 24378 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 24379 | #line $LINENO "configure" |
e6cc62c6 VS |
24380 | /* confdefs.h. */ |
24381 | _ACEOF | |
24382 | cat confdefs.h >>conftest.$ac_ext | |
24383 | cat >>conftest.$ac_ext <<_ACEOF | |
24384 | /* end confdefs.h. */ | |
24385 | ||
5c6fa7d2 | 24386 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
24387 | #ifdef __cplusplus |
24388 | extern "C" | |
24389 | #endif | |
5c6fa7d2 | 24390 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
24391 | builtin and then its argument prototype would still apply. */ |
24392 | char shmat (); | |
24393 | int | |
24394 | main () | |
24395 | { | |
24396 | shmat (); | |
24397 | ; | |
24398 | return 0; | |
24399 | } | |
24400 | _ACEOF | |
24401 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24402 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 24403 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
24404 | ac_status=$? |
24405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24406 | (exit $ac_status); } && | |
789c5f4a | 24407 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
24408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24409 | (eval $ac_try) 2>&5 | |
24410 | ac_status=$? | |
24411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24412 | (exit $ac_status); }; }; then | |
24413 | ac_cv_lib_ipc_shmat=yes | |
24414 | else | |
24415 | echo "$as_me: failed program was:" >&5 | |
24416 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24417 | ||
24418 | ac_cv_lib_ipc_shmat=no | |
24419 | fi | |
789c5f4a | 24420 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
24421 | LIBS=$ac_check_lib_save_LIBS |
24422 | fi | |
24423 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
24424 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
24425 | if test $ac_cv_lib_ipc_shmat = yes; then | |
21d1c967 | 24426 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
9f8148b1 | 24427 | fi |
90dd450c | 24428 | |
90dd450c | 24429 | fi |
21d1c967 | 24430 | fi |
10f2d63a | 24431 | |
21d1c967 | 24432 | # Check for libraries that X11R6 Xt/Xaw programs need. |
e6cc62c6 | 24433 | ac_save_LDFLAGS=$LDFLAGS |
21d1c967 GD |
24434 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
24435 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
24436 | # check for ICE first), but we must link in the order -lSM -lICE or | |
24437 | # we get undefined symbols. So assume we have SM if we have ICE. | |
24438 | # These have to be linked with before -lX11, unlike the other | |
24439 | # libraries we check for below, so use a different variable. | |
e6cc62c6 VS |
24440 | # John Interrante, Karl Berry |
24441 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
24442 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
24443 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
24444 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24445 | else | |
24446 | ac_check_lib_save_LIBS=$LIBS | |
f09359cf | 24447 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
e6cc62c6 | 24448 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 24449 | #line $LINENO "configure" |
e6cc62c6 VS |
24450 | /* confdefs.h. */ |
24451 | _ACEOF | |
24452 | cat confdefs.h >>conftest.$ac_ext | |
24453 | cat >>conftest.$ac_ext <<_ACEOF | |
24454 | /* end confdefs.h. */ | |
24455 | ||
21d1c967 | 24456 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
24457 | #ifdef __cplusplus |
24458 | extern "C" | |
24459 | #endif | |
21d1c967 | 24460 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
24461 | builtin and then its argument prototype would still apply. */ |
24462 | char IceConnectionNumber (); | |
24463 | int | |
24464 | main () | |
24465 | { | |
24466 | IceConnectionNumber (); | |
24467 | ; | |
24468 | return 0; | |
24469 | } | |
24470 | _ACEOF | |
24471 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24472 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 24473 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
24474 | ac_status=$? |
24475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24476 | (exit $ac_status); } && | |
789c5f4a | 24477 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
24478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24479 | (eval $ac_try) 2>&5 | |
24480 | ac_status=$? | |
24481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24482 | (exit $ac_status); }; }; then | |
24483 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
24484 | else | |
24485 | echo "$as_me: failed program was:" >&5 | |
24486 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24487 | ||
24488 | ac_cv_lib_ICE_IceConnectionNumber=no | |
24489 | fi | |
789c5f4a | 24490 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
24491 | LIBS=$ac_check_lib_save_LIBS |
24492 | fi | |
24493 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
24494 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
24495 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
21d1c967 | 24496 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
29fd3c0c | 24497 | fi |
21d1c967 | 24498 | |
e6cc62c6 | 24499 | LDFLAGS=$ac_save_LDFLAGS |
29fd3c0c | 24500 | |
10f2d63a VZ |
24501 | fi |
24502 | ||
8284b0c5 | 24503 | |
21d1c967 | 24504 | if test "$no_x" = "yes"; then |
e6cc62c6 VS |
24505 | { { echo "$as_me:$LINENO: error: X11 not found" >&5 |
24506 | echo "$as_me: error: X11 not found" >&2;} | |
24507 | { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; } | |
21d1c967 GD |
24508 | fi |
24509 | ||
2b5f62a0 VZ |
24510 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'` |
24511 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
21d1c967 GD |
24512 | AFMINSTALL=afminstall |
24513 | COMPILED_X_PROGRAM=0 | |
24514 | ||
e6cc62c6 VS |
24515 | echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5 |
24516 | echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6 | |
24517 | ||
21d1c967 | 24518 | ac_find_includes= |
2b5f62a0 | 24519 | for ac_dir in $SEARCH_INCLUDE /usr/include; |
21d1c967 GD |
24520 | do |
24521 | if test -f "$ac_dir/Xm/Xm.h"; then | |
24522 | ac_find_includes=$ac_dir | |
24523 | break | |
24524 | fi | |
24525 | done | |
24526 | ||
24527 | if test "$ac_find_includes" != "" ; then | |
e6cc62c6 VS |
24528 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 |
24529 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
24530 | ||
2b5f62a0 | 24531 | if test "x$ac_find_includes" = "x/usr/include"; then |
dd0e4a90 VZ |
24532 | ac_path_to_include="" |
24533 | else | |
2b5f62a0 VZ |
24534 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null |
24535 | result=$? | |
24536 | if test $result = 0; then | |
24537 | ac_path_to_include="" | |
24538 | else | |
24539 | ac_path_to_include=" -I$ac_find_includes" | |
24540 | fi | |
dd0e4a90 VZ |
24541 | fi |
24542 | ||
24543 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" | |
21d1c967 | 24544 | else |
e6cc62c6 | 24545 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 24546 | #line $LINENO "configure" |
e6cc62c6 VS |
24547 | /* confdefs.h. */ |
24548 | _ACEOF | |
24549 | cat confdefs.h >>conftest.$ac_ext | |
24550 | cat >>conftest.$ac_ext <<_ACEOF | |
24551 | /* end confdefs.h. */ | |
21d1c967 GD |
24552 | |
24553 | #include <Xm/Xm.h> | |
e6cc62c6 VS |
24554 | |
24555 | int | |
24556 | main () | |
24557 | { | |
21d1c967 GD |
24558 | |
24559 | int version; | |
24560 | version = xmUseVersion; | |
e6cc62c6 VS |
24561 | |
24562 | ; | |
24563 | return 0; | |
24564 | } | |
24565 | _ACEOF | |
24566 | rm -f conftest.$ac_objext | |
24567 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 24568 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
24569 | ac_status=$? |
24570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24571 | (exit $ac_status); } && | |
789c5f4a | 24572 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
24573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24574 | (eval $ac_try) 2>&5 | |
24575 | ac_status=$? | |
24576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24577 | (exit $ac_status); }; }; then | |
24578 | ||
24579 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
24580 | echo "${ECHO_T}found in default search path" >&6 | |
21d1c967 | 24581 | COMPILED_X_PROGRAM=1 |
e6cc62c6 | 24582 | |
10f2d63a | 24583 | else |
e6cc62c6 VS |
24584 | echo "$as_me: failed program was:" >&5 |
24585 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24586 | ||
24587 | ||
24588 | echo "$as_me:$LINENO: result: no" >&5 | |
24589 | echo "${ECHO_T}no" >&6 | |
24590 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5 | |
24591 | echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;} | |
24592 | { (exit 1); exit 1; }; } | |
24593 | ||
24594 | ||
10f2d63a | 24595 | fi |
789c5f4a | 24596 | rm -f conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 24597 | fi |
10f2d63a | 24598 | |
21d1c967 | 24599 | if test "$COMPILED_X_PROGRAM" = 0; then |
e6cc62c6 VS |
24600 | echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5 |
24601 | echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6 | |
24602 | ||
21d1c967 | 24603 | ac_find_libraries= |
2b5f62a0 | 24604 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
24605 | do |
24606 | for ac_extension in a so sl dylib; do | |
24607 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
24608 | ac_find_libraries=$ac_dir | |
24609 | break 2 | |
24610 | fi | |
24611 | done | |
24612 | done | |
24613 | ||
24614 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 VS |
24615 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 |
24616 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
24617 | ||
21d1c967 | 24618 | |
21d1c967 GD |
24619 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
24620 | result=$? | |
24621 | if test $result = 0; then | |
24622 | ac_path_to_link="" | |
24623 | else | |
24624 | ac_path_to_link=" -L$ac_find_libraries" | |
24625 | fi | |
24626 | ||
21d1c967 | 24627 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
21d1c967 | 24628 | else |
dd0e4a90 VZ |
24629 | save_CFLAGS=$CFLAGS |
24630 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
24631 | ||
e6cc62c6 | 24632 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 24633 | #line $LINENO "configure" |
e6cc62c6 VS |
24634 | /* confdefs.h. */ |
24635 | _ACEOF | |
24636 | cat confdefs.h >>conftest.$ac_ext | |
24637 | cat >>conftest.$ac_ext <<_ACEOF | |
24638 | /* end confdefs.h. */ | |
21d1c967 GD |
24639 | |
24640 | #include <Xm/Xm.h> | |
e6cc62c6 VS |
24641 | |
24642 | int | |
24643 | main () | |
24644 | { | |
21d1c967 GD |
24645 | |
24646 | int version; | |
24647 | version = xmUseVersion; | |
e6cc62c6 VS |
24648 | |
24649 | ; | |
24650 | return 0; | |
24651 | } | |
24652 | _ACEOF | |
24653 | rm -f conftest.$ac_objext | |
24654 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 24655 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
24656 | ac_status=$? |
24657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24658 | (exit $ac_status); } && | |
789c5f4a | 24659 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
24660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24661 | (eval $ac_try) 2>&5 | |
24662 | ac_status=$? | |
24663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24664 | (exit $ac_status); }; }; then | |
24665 | ||
24666 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
24667 | echo "${ECHO_T}found in default search path" >&6 | |
21d1c967 | 24668 | COMPILED_X_PROGRAM=1 |
e6cc62c6 | 24669 | |
d836ee96 | 24670 | else |
e6cc62c6 VS |
24671 | echo "$as_me: failed program was:" >&5 |
24672 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24673 | ||
24674 | ||
24675 | echo "$as_me:$LINENO: result: no" >&5 | |
24676 | echo "${ECHO_T}no" >&6 | |
24677 | { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5 | |
24678 | echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;} | |
24679 | { (exit 1); exit 1; }; } | |
24680 | ||
24681 | ||
d836ee96 | 24682 | fi |
789c5f4a | 24683 | rm -f conftest.$ac_objext conftest.$ac_ext |
dd0e4a90 VZ |
24684 | |
24685 | CFLAGS=$save_CFLAGS | |
21d1c967 GD |
24686 | fi |
24687 | fi | |
24688 | ||
e6cc62c6 VS |
24689 | echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5 |
24690 | echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6 | |
6a30f1c8 MB |
24691 | libp_link="" |
24692 | libsm_ice_link="" | |
24693 | libs_found=0 | |
24694 | for libp in "" " -lXp"; do | |
24695 | if test "$libs_found" = "0"; then | |
7015ef3a | 24696 | for libsm_ice in "" " -lSM -lICE"; do |
e26c13cf | 24697 | if test "$libs_found" = "0"; then |
6a30f1c8 | 24698 | save_LIBS="$LIBS" |
93a543aa | 24699 | LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" |
dd0e4a90 VZ |
24700 | save_CFLAGS=$CFLAGS |
24701 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
24702 | ||
e6cc62c6 | 24703 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 24704 | #line $LINENO "configure" |
e6cc62c6 VS |
24705 | /* confdefs.h. */ |
24706 | _ACEOF | |
24707 | cat confdefs.h >>conftest.$ac_ext | |
24708 | cat >>conftest.$ac_ext <<_ACEOF | |
24709 | /* end confdefs.h. */ | |
17234b26 | 24710 | |
6a30f1c8 MB |
24711 | #include <Xm/Xm.h> |
24712 | #include <Xm/List.h> | |
e6cc62c6 VS |
24713 | |
24714 | int | |
24715 | main () | |
24716 | { | |
6a30f1c8 MB |
24717 | |
24718 | XmString string = NULL; | |
24719 | Widget w = NULL; | |
24720 | int position = 0; | |
24721 | XmListAddItem(w, string, position); | |
e6cc62c6 VS |
24722 | |
24723 | ; | |
24724 | return 0; | |
24725 | } | |
24726 | _ACEOF | |
24727 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24728 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 24729 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
24730 | ac_status=$? |
24731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24732 | (exit $ac_status); } && | |
789c5f4a | 24733 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
24734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24735 | (eval $ac_try) 2>&5 | |
24736 | ac_status=$? | |
24737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24738 | (exit $ac_status); }; }; then | |
24739 | ||
6a30f1c8 MB |
24740 | libp_link="$libp" |
24741 | libsm_ice_link="$libsm_ice" | |
e6cc62c6 VS |
24742 | echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5 |
24743 | echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6 | |
6a30f1c8 | 24744 | libs_found=1 |
e6cc62c6 | 24745 | |
6a30f1c8 | 24746 | else |
e6cc62c6 VS |
24747 | echo "$as_me: failed program was:" >&5 |
24748 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24749 | ||
24750 | ||
24751 | ||
6a30f1c8 | 24752 | fi |
789c5f4a | 24753 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
dd0e4a90 | 24754 | |
6a30f1c8 | 24755 | LIBS="$save_LIBS" |
dd0e4a90 | 24756 | CFLAGS=$save_CFLAGS |
6a30f1c8 MB |
24757 | fi |
24758 | done | |
24759 | fi | |
24760 | done | |
24761 | ||
24762 | if test "$libs_found" = "0"; then | |
e6cc62c6 VS |
24763 | echo "$as_me:$LINENO: result: can't find the right libraries" >&5 |
24764 | echo "${ECHO_T}can't find the right libraries" >&6 | |
24765 | { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5 | |
24766 | echo "$as_me: error: can't link a simple motif program" >&2;} | |
24767 | { (exit 1); exit 1; }; } | |
6a30f1c8 MB |
24768 | fi |
24769 | ||
da494b40 MB |
24770 | save_CFLAGS=$CFLAGS |
24771 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
e6cc62c6 VS |
24772 | echo "$as_me:$LINENO: checking for Motif 2" >&5 |
24773 | echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6 | |
24774 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 24775 | #line $LINENO "configure" |
e6cc62c6 VS |
24776 | /* confdefs.h. */ |
24777 | _ACEOF | |
24778 | cat confdefs.h >>conftest.$ac_ext | |
24779 | cat >>conftest.$ac_ext <<_ACEOF | |
24780 | /* end confdefs.h. */ | |
da494b40 MB |
24781 | |
24782 | #include <Xm/Xm.h> | |
e6cc62c6 VS |
24783 | |
24784 | int | |
24785 | main () | |
24786 | { | |
da494b40 MB |
24787 | |
24788 | #if XmVersion < 2000 | |
24789 | #error "Not Motif 2" | |
24790 | #endif | |
e6cc62c6 VS |
24791 | |
24792 | ; | |
24793 | return 0; | |
24794 | } | |
24795 | _ACEOF | |
24796 | rm -f conftest.$ac_objext | |
24797 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 24798 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
24799 | ac_status=$? |
24800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24801 | (exit $ac_status); } && | |
789c5f4a | 24802 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
24803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24804 | (eval $ac_try) 2>&5 | |
24805 | ac_status=$? | |
24806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24807 | (exit $ac_status); }; }; then | |
24808 | ||
24809 | cat >>confdefs.h <<\_ACEOF | |
da494b40 | 24810 | #define __WXMOTIF20__ 1 |
e6cc62c6 VS |
24811 | _ACEOF |
24812 | ||
24813 | echo "$as_me:$LINENO: result: found" >&5 | |
24814 | echo "${ECHO_T}found" >&6 | |
da494b40 | 24815 | |
da494b40 | 24816 | else |
e6cc62c6 VS |
24817 | echo "$as_me: failed program was:" >&5 |
24818 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24819 | ||
24820 | ||
24821 | cat >>confdefs.h <<\_ACEOF | |
da494b40 | 24822 | #define __WXMOTIF20__ 0 |
e6cc62c6 VS |
24823 | _ACEOF |
24824 | ||
24825 | echo "$as_me:$LINENO: result: not found" >&5 | |
24826 | echo "${ECHO_T}not found" >&6 | |
da494b40 | 24827 | |
da494b40 | 24828 | fi |
789c5f4a | 24829 | rm -f conftest.$ac_objext conftest.$ac_ext |
da494b40 MB |
24830 | CFLAGS=$save_CFLAGS |
24831 | ||
93a543aa | 24832 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" |
69c44812 | 24833 | TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11" |
21d1c967 GD |
24834 | TOOLKIT=MOTIF |
24835 | GUIDIST=MOTIF_DIST | |
f7f78039 MB |
24836 | fi |
24837 | ||
89fe663f VZ |
24838 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
24839 | if test "$wxUSE_LIBXPM" = "sys"; then | |
24840 | echo "$as_me:$LINENO: checking for Xpm library" >&5 | |
24841 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
24842 | ||
24843 | ac_find_libraries= | |
24844 | for ac_dir in $SEARCH_LIB /usr/lib; | |
24845 | do | |
24846 | for ac_extension in a so sl dylib; do | |
24847 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
24848 | ac_find_libraries=$ac_dir | |
24849 | break 2 | |
24850 | fi | |
24851 | done | |
24852 | done | |
24853 | ||
24854 | if test "$ac_find_libraries" != "" ; then | |
24855 | ||
24856 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
24857 | result=$? | |
24858 | if test $result = 0; then | |
24859 | ac_path_to_link="" | |
24860 | else | |
24861 | ac_path_to_link=" -L$ac_find_libraries" | |
24862 | fi | |
24863 | ||
24864 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
24865 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
24866 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
24867 | ||
24868 | echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
24869 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 | |
24870 | if test "${wx_cv_x11_xpm_h+set}" = set; then | |
24871 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24872 | else | |
24873 | ||
24874 | save_CFLAGS=$CFLAGS | |
24875 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
24876 | ||
24877 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 24878 | #line $LINENO "configure" |
89fe663f VZ |
24879 | /* confdefs.h. */ |
24880 | _ACEOF | |
24881 | cat confdefs.h >>conftest.$ac_ext | |
24882 | cat >>conftest.$ac_ext <<_ACEOF | |
24883 | /* end confdefs.h. */ | |
24884 | ||
24885 | #include <X11/xpm.h> | |
24886 | ||
24887 | int | |
24888 | main () | |
24889 | { | |
24890 | ||
24891 | int version; | |
24892 | version = XpmLibraryVersion(); | |
24893 | ||
24894 | ; | |
24895 | return 0; | |
24896 | } | |
24897 | _ACEOF | |
24898 | rm -f conftest.$ac_objext | |
24899 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 24900 | (eval $ac_compile) 2>&5 |
89fe663f VZ |
24901 | ac_status=$? |
24902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24903 | (exit $ac_status); } && | |
789c5f4a | 24904 | { ac_try='test -s conftest.$ac_objext' |
89fe663f VZ |
24905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24906 | (eval $ac_try) 2>&5 | |
24907 | ac_status=$? | |
24908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24909 | (exit $ac_status); }; }; then | |
24910 | wx_cv_x11_xpm_h=yes | |
24911 | else | |
24912 | echo "$as_me: failed program was:" >&5 | |
24913 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24914 | ||
24915 | wx_cv_x11_xpm_h=no | |
24916 | ||
24917 | fi | |
789c5f4a | 24918 | rm -f conftest.$ac_objext conftest.$ac_ext |
89fe663f VZ |
24919 | |
24920 | CFLAGS=$save_CFLAGS | |
24921 | ||
24922 | ||
24923 | fi | |
24924 | echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5 | |
24925 | echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6 | |
24926 | ||
24927 | if test $wx_cv_x11_xpm_h = "yes"; then | |
93a543aa | 24928 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm" |
89fe663f VZ |
24929 | cat >>confdefs.h <<\_ACEOF |
24930 | #define wxHAVE_LIB_XPM 1 | |
24931 | _ACEOF | |
24932 | ||
24933 | else | |
24934 | { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5 | |
24935 | echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;} | |
24936 | fi | |
24937 | fi | |
24938 | ||
24939 | fi | |
f7f78039 | 24940 | |
89fe663f VZ |
24941 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 |
24942 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 | |
24943 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
24944 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24945 | else | |
24946 | ac_check_lib_save_LIBS=$LIBS | |
24947 | LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS" | |
24948 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 24949 | #line $LINENO "configure" |
89fe663f VZ |
24950 | /* confdefs.h. */ |
24951 | _ACEOF | |
24952 | cat confdefs.h >>conftest.$ac_ext | |
24953 | cat >>conftest.$ac_ext <<_ACEOF | |
24954 | /* end confdefs.h. */ | |
24955 | ||
24956 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24957 | #ifdef __cplusplus | |
24958 | extern "C" | |
24959 | #endif | |
24960 | /* We use char because int might match the return type of a gcc2 | |
24961 | builtin and then its argument prototype would still apply. */ | |
24962 | char XShapeQueryExtension (); | |
24963 | int | |
24964 | main () | |
24965 | { | |
24966 | XShapeQueryExtension (); | |
24967 | ; | |
24968 | return 0; | |
24969 | } | |
24970 | _ACEOF | |
24971 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24972 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 24973 | (eval $ac_link) 2>&5 |
89fe663f VZ |
24974 | ac_status=$? |
24975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24976 | (exit $ac_status); } && | |
789c5f4a | 24977 | { ac_try='test -s conftest$ac_exeext' |
89fe663f VZ |
24978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24979 | (eval $ac_try) 2>&5 | |
24980 | ac_status=$? | |
24981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24982 | (exit $ac_status); }; }; then | |
24983 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
24984 | else | |
24985 | echo "$as_me: failed program was:" >&5 | |
24986 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24987 | ||
24988 | ac_cv_lib_Xext_XShapeQueryExtension=no | |
24989 | fi | |
789c5f4a | 24990 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
89fe663f VZ |
24991 | LIBS=$ac_check_lib_save_LIBS |
24992 | fi | |
24993 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 | |
24994 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 | |
24995 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
24996 | ||
24997 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext" | |
24998 | wxHAVE_XEXT_LIB=1 | |
24999 | ||
25000 | fi | |
25001 | ||
25002 | ||
25003 | if test "$wxHAVE_XEXT_LIB" = 1; then | |
25004 | save_CFLAGS="$CFLAGS" | |
25005 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
25006 | ||
25007 | echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5 | |
e6cc62c6 | 25008 | echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6 |
89fe663f | 25009 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 25010 | #line $LINENO "configure" |
e6cc62c6 VS |
25011 | /* confdefs.h. */ |
25012 | _ACEOF | |
25013 | cat confdefs.h >>conftest.$ac_ext | |
25014 | cat >>conftest.$ac_ext <<_ACEOF | |
25015 | /* end confdefs.h. */ | |
25016 | ||
89fe663f VZ |
25017 | #include <X11/Xlib.h> |
25018 | #include <X11/extensions/shape.h> | |
e6cc62c6 VS |
25019 | |
25020 | int | |
25021 | main () | |
25022 | { | |
f7f78039 | 25023 | |
89fe663f VZ |
25024 | int dummy1, dummy2; |
25025 | XShapeQueryExtension((Display*)NULL, | |
25026 | (int*)NULL, (int*)NULL); | |
e6cc62c6 VS |
25027 | |
25028 | ; | |
25029 | return 0; | |
25030 | } | |
25031 | _ACEOF | |
25032 | rm -f conftest.$ac_objext | |
25033 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 25034 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
25035 | ac_status=$? |
25036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25037 | (exit $ac_status); } && | |
789c5f4a | 25038 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
25039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25040 | (eval $ac_try) 2>&5 | |
25041 | ac_status=$? | |
25042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25043 | (exit $ac_status); }; }; then | |
25044 | ||
89fe663f | 25045 | cat >>confdefs.h <<\_ACEOF |
f7f78039 | 25046 | #define HAVE_XSHAPE 1 |
e6cc62c6 VS |
25047 | _ACEOF |
25048 | ||
89fe663f | 25049 | echo "$as_me:$LINENO: result: found" >&5 |
e6cc62c6 | 25050 | echo "${ECHO_T}found" >&6 |
f7f78039 | 25051 | |
f7f78039 | 25052 | else |
e6cc62c6 VS |
25053 | echo "$as_me: failed program was:" >&5 |
25054 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25055 | ||
25056 | ||
89fe663f | 25057 | echo "$as_me:$LINENO: result: not found" >&5 |
e6cc62c6 VS |
25058 | echo "${ECHO_T}not found" >&6 |
25059 | ||
f7f78039 | 25060 | fi |
789c5f4a | 25061 | rm -f conftest.$ac_objext conftest.$ac_ext |
89fe663f VZ |
25062 | CFLAGS="$save_CFLAGS" |
25063 | ||
25064 | fi | |
21d1c967 GD |
25065 | fi |
25066 | ||
25067 | if test "$wxUSE_MAC" = 1; then | |
8e91c6f3 VZ |
25068 | echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5 |
25069 | echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6 | |
25070 | if test "$GCC" = yes; then | |
25071 | echo "$as_me:$LINENO: result: gcc" >&5 | |
25072 | echo "${ECHO_T}gcc" >&6 | |
25073 | CPPFLAGS_PASCAL="-fpascal-strings" | |
25074 | elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then | |
25075 | echo "$as_me:$LINENO: result: xlc" >&5 | |
25076 | echo "${ECHO_T}xlc" >&6 | |
25077 | CPPFLAGS_PASCAL="-qmacpstr" | |
25078 | else | |
25079 | echo "$as_me:$LINENO: result: none" >&5 | |
25080 | echo "${ECHO_T}none" >&6 | |
25081 | fi | |
25082 | ||
25083 | CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon" | |
21d1c967 | 25084 | |
0c98a14e | 25085 | TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex" |
21d1c967 GD |
25086 | TOOLKIT=MAC |
25087 | GUIDIST=MACX_DIST | |
cf615ebb | 25088 | WXBASEPORT="_carbon" |
21d1c967 GD |
25089 | fi |
25090 | ||
ac0c4cc3 DE |
25091 | if test "$wxUSE_COCOA" = 1; then |
25092 | TOOLKIT_VPATH="\${top_srcdir}/src/cocoa" | |
25093 | TOOLKIT=COCOA | |
25094 | GUIDIST=COCOA_DIST | |
25095 | fi | |
25096 | ||
21d1c967 GD |
25097 | if test "$wxUSE_PM" = 1; then |
25098 | TOOLKIT=PM | |
25099 | GUIDIST=GTK_DIST | |
25100 | fi | |
25101 | ||
25102 | if test "$TOOLKIT" = "PM" ; then | |
25103 | TOOLKIT_DIR="os2" | |
25104 | else | |
25105 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
25106 | fi | |
25107 | ||
25108 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" | |
25109 | ||
25110 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
25111 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
25112 | ||
25113 | ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}" | |
25114 | ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}" | |
25115 | ||
25116 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
25117 | if test "$wxUSE_X11" = 1; then | |
25118 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes" | |
25119 | else | |
25120 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
25121 | fi | |
25122 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" | |
25123 | WIDGET_SET=univ | |
25124 | else | |
25125 | ALL_OBJECTS="\$(GUIOBJS)" | |
25126 | ALL_SOURCES="\$(ALL_SOURCES)" | |
25127 | ALL_HEADERS="\$(ALL_HEADERS)" | |
25128 | fi | |
25129 | ||
25130 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
25131 | ||
25132 | if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then | |
25133 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
25134 | fi | |
25135 | ||
25136 | if test "$wxUSE_HTML" = "yes"; then | |
25137 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
25138 | fi | |
25139 | ||
25140 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
25141 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" | |
25142 | fi | |
25143 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
25144 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
25145 | fi | |
25146 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
25147 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
25148 | fi | |
25149 | ||
25150 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
25151 | DISTDIR="wx\$(TOOLKIT)" | |
90dd450c | 25152 | else |
21d1c967 GD |
25153 | USE_GUI=0 |
25154 | ||
25155 | TOOLKIT_DIR="base" | |
25156 | ||
25157 | if test "$USE_WIN32" = 1 ; then | |
25158 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
25159 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
25160 | ||
25161 | TOOLKIT="MSW" | |
25162 | else | |
25163 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" | |
25164 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
25165 | fi | |
25166 | ||
25167 | ALL_SOURCES="\$(ALL_SOURCES)" | |
25168 | ALL_HEADERS="\$(ALL_HEADERS)" | |
25169 | ||
25170 | PORT_FILES="\${top_srcdir}/src/files.lst" | |
25171 | ||
25172 | GUIDIST="BASE_DIST" | |
25173 | DISTDIR="wxBase" | |
d836ee96 VZ |
25174 | fi |
25175 | ||
8284b0c5 | 25176 | |
8647bec6 RG |
25177 | |
25178 | ||
25179 | IODBC_C_SRC="" | |
25180 | ||
25181 | ||
25182 | if test "$TOOLKIT" != "MSW" ; then | |
25183 | ||
bb41dcbe | 25184 | if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then |
8647bec6 | 25185 | |
bb41dcbe | 25186 | if test "${ac_cv_header_sql_h+set}" = set; then |
e6cc62c6 VS |
25187 | echo "$as_me:$LINENO: checking for sql.h" >&5 |
25188 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
25189 | if test "${ac_cv_header_sql_h+set}" = set; then | |
25190 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25191 | fi | |
25192 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
25193 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
25194 | else | |
25195 | # Is the header compilable? | |
25196 | echo "$as_me:$LINENO: checking sql.h usability" >&5 | |
25197 | echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6 | |
25198 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 25199 | #line $LINENO "configure" |
e6cc62c6 VS |
25200 | /* confdefs.h. */ |
25201 | _ACEOF | |
25202 | cat confdefs.h >>conftest.$ac_ext | |
25203 | cat >>conftest.$ac_ext <<_ACEOF | |
25204 | /* end confdefs.h. */ | |
25205 | $ac_includes_default | |
8647bec6 | 25206 | #include <sql.h> |
e6cc62c6 VS |
25207 | _ACEOF |
25208 | rm -f conftest.$ac_objext | |
25209 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 25210 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
25211 | ac_status=$? |
25212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25213 | (exit $ac_status); } && | |
789c5f4a | 25214 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
25215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25216 | (eval $ac_try) 2>&5 | |
25217 | ac_status=$? | |
25218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25219 | (exit $ac_status); }; }; then | |
25220 | ac_header_compiler=yes | |
25221 | else | |
25222 | echo "$as_me: failed program was:" >&5 | |
25223 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25224 | ||
25225 | ac_header_compiler=no | |
25226 | fi | |
789c5f4a | 25227 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
25228 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
25229 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
25230 | ||
25231 | # Is the header present? | |
25232 | echo "$as_me:$LINENO: checking sql.h presence" >&5 | |
25233 | echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6 | |
25234 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 25235 | #line $LINENO "configure" |
e6cc62c6 VS |
25236 | /* confdefs.h. */ |
25237 | _ACEOF | |
25238 | cat confdefs.h >>conftest.$ac_ext | |
25239 | cat >>conftest.$ac_ext <<_ACEOF | |
25240 | /* end confdefs.h. */ | |
25241 | #include <sql.h> | |
25242 | _ACEOF | |
25243 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
25244 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
25245 | ac_status=$? | |
25246 | grep -v '^ *+' conftest.er1 >conftest.err | |
25247 | rm -f conftest.er1 | |
25248 | cat conftest.err >&5 | |
25249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25250 | (exit $ac_status); } >/dev/null; then | |
25251 | if test -s conftest.err; then | |
25252 | ac_cpp_err=$ac_c_preproc_warn_flag | |
25253 | else | |
25254 | ac_cpp_err= | |
25255 | fi | |
25256 | else | |
25257 | ac_cpp_err=yes | |
25258 | fi | |
25259 | if test -z "$ac_cpp_err"; then | |
25260 | ac_header_preproc=yes | |
25261 | else | |
25262 | echo "$as_me: failed program was:" >&5 | |
25263 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25264 | ||
25265 | ac_header_preproc=no | |
25266 | fi | |
25267 | rm -f conftest.err conftest.$ac_ext | |
25268 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
25269 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
25270 | ||
25271 | # So? What about this header? | |
789c5f4a VZ |
25272 | case $ac_header_compiler:$ac_header_preproc in |
25273 | yes:no ) | |
e6cc62c6 VS |
25274 | { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
25275 | echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
789c5f4a VZ |
25276 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 |
25277 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
25278 | ( | |
25279 | cat <<\_ASBOX | |
25280 | ## ------------------------------------ ## | |
25281 | ## Report this to bug-autoconf@gnu.org. ## | |
25282 | ## ------------------------------------ ## | |
25283 | _ASBOX | |
25284 | ) | | |
25285 | sed "s/^/$as_me: WARNING: /" >&2 | |
e6cc62c6 | 25286 | ;; |
789c5f4a | 25287 | no:yes ) |
e6cc62c6 VS |
25288 | { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5 |
25289 | echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;} | |
789c5f4a VZ |
25290 | { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5 |
25291 | echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;} | |
e6cc62c6 VS |
25292 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 |
25293 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
25294 | ( | |
25295 | cat <<\_ASBOX | |
789c5f4a VZ |
25296 | ## ------------------------------------ ## |
25297 | ## Report this to bug-autoconf@gnu.org. ## | |
25298 | ## ------------------------------------ ## | |
e6cc62c6 VS |
25299 | _ASBOX |
25300 | ) | | |
25301 | sed "s/^/$as_me: WARNING: /" >&2 | |
25302 | ;; | |
25303 | esac | |
25304 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
25305 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
25306 | if test "${ac_cv_header_sql_h+set}" = set; then | |
25307 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8647bec6 | 25308 | else |
e6cc62c6 VS |
25309 | ac_cv_header_sql_h=$ac_header_preproc |
25310 | fi | |
25311 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
25312 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
25313 | ||
bb41dcbe VS |
25314 | fi |
25315 | if test $ac_cv_header_sql_h = yes; then | |
25316 | found_sql_h=1 | |
8647bec6 RG |
25317 | fi |
25318 | ||
e6cc62c6 | 25319 | |
bb41dcbe | 25320 | if test "x$found_sql_h" = "x1" ; then |
e46d2a18 VS |
25321 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5 |
25322 | echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6 | |
25323 | if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then | |
e6cc62c6 | 25324 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8647bec6 | 25325 | else |
bb41dcbe | 25326 | ac_check_lib_save_LIBS=$LIBS |
e46d2a18 | 25327 | LIBS="-liodbc $LIBS" |
e6cc62c6 | 25328 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 25329 | #line $LINENO "configure" |
e6cc62c6 VS |
25330 | /* confdefs.h. */ |
25331 | _ACEOF | |
25332 | cat confdefs.h >>conftest.$ac_ext | |
25333 | cat >>conftest.$ac_ext <<_ACEOF | |
25334 | /* end confdefs.h. */ | |
25335 | ||
8647bec6 | 25336 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
25337 | #ifdef __cplusplus |
25338 | extern "C" | |
25339 | #endif | |
8647bec6 | 25340 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 | 25341 | builtin and then its argument prototype would still apply. */ |
e46d2a18 | 25342 | char SQLAllocEnv (); |
e6cc62c6 VS |
25343 | int |
25344 | main () | |
25345 | { | |
e46d2a18 | 25346 | SQLAllocEnv (); |
e6cc62c6 VS |
25347 | ; |
25348 | return 0; | |
25349 | } | |
25350 | _ACEOF | |
25351 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25352 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 25353 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
25354 | ac_status=$? |
25355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25356 | (exit $ac_status); } && | |
789c5f4a | 25357 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
25358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25359 | (eval $ac_try) 2>&5 | |
25360 | ac_status=$? | |
25361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25362 | (exit $ac_status); }; }; then | |
e46d2a18 | 25363 | ac_cv_lib_iodbc_SQLAllocEnv=yes |
8647bec6 | 25364 | else |
e6cc62c6 VS |
25365 | echo "$as_me: failed program was:" >&5 |
25366 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25367 | ||
e46d2a18 | 25368 | ac_cv_lib_iodbc_SQLAllocEnv=no |
8647bec6 | 25369 | fi |
789c5f4a | 25370 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
bb41dcbe VS |
25371 | LIBS=$ac_check_lib_save_LIBS |
25372 | fi | |
e46d2a18 VS |
25373 | echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5 |
25374 | echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6 | |
25375 | if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then | |
bb41dcbe VS |
25376 | ODBC_LINK=" -liodbc" |
25377 | else | |
25378 | ||
e46d2a18 VS |
25379 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5 |
25380 | echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6 | |
25381 | if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then | |
bb41dcbe VS |
25382 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
25383 | else | |
25384 | ac_check_lib_save_LIBS=$LIBS | |
e46d2a18 | 25385 | LIBS="-lunixodbc $LIBS" |
bb41dcbe | 25386 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 25387 | #line $LINENO "configure" |
e6cc62c6 VS |
25388 | /* confdefs.h. */ |
25389 | _ACEOF | |
25390 | cat confdefs.h >>conftest.$ac_ext | |
25391 | cat >>conftest.$ac_ext <<_ACEOF | |
25392 | /* end confdefs.h. */ | |
25393 | ||
8647bec6 | 25394 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
25395 | #ifdef __cplusplus |
25396 | extern "C" | |
25397 | #endif | |
8647bec6 | 25398 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 | 25399 | builtin and then its argument prototype would still apply. */ |
e46d2a18 | 25400 | char SQLAllocEnv (); |
e6cc62c6 VS |
25401 | int |
25402 | main () | |
25403 | { | |
e46d2a18 | 25404 | SQLAllocEnv (); |
e6cc62c6 VS |
25405 | ; |
25406 | return 0; | |
25407 | } | |
25408 | _ACEOF | |
25409 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25410 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 25411 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
25412 | ac_status=$? |
25413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25414 | (exit $ac_status); } && | |
789c5f4a | 25415 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
25416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25417 | (eval $ac_try) 2>&5 | |
25418 | ac_status=$? | |
25419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25420 | (exit $ac_status); }; }; then | |
e46d2a18 | 25421 | ac_cv_lib_unixodbc_SQLAllocEnv=yes |
8647bec6 | 25422 | else |
e6cc62c6 VS |
25423 | echo "$as_me: failed program was:" >&5 |
25424 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25425 | ||
e46d2a18 | 25426 | ac_cv_lib_unixodbc_SQLAllocEnv=no |
8647bec6 | 25427 | fi |
789c5f4a | 25428 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
bb41dcbe | 25429 | LIBS=$ac_check_lib_save_LIBS |
e6cc62c6 | 25430 | fi |
e46d2a18 VS |
25431 | echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5 |
25432 | echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6 | |
25433 | if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then | |
bb41dcbe VS |
25434 | ODBC_LINK=" -lunixodbc" |
25435 | else | |
25436 | ||
e46d2a18 VS |
25437 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5 |
25438 | echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6 | |
25439 | if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then | |
bb41dcbe VS |
25440 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
25441 | else | |
25442 | ac_check_lib_save_LIBS=$LIBS | |
e46d2a18 | 25443 | LIBS="-lodbc $LIBS" |
bb41dcbe | 25444 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 25445 | #line $LINENO "configure" |
bb41dcbe VS |
25446 | /* confdefs.h. */ |
25447 | _ACEOF | |
25448 | cat confdefs.h >>conftest.$ac_ext | |
25449 | cat >>conftest.$ac_ext <<_ACEOF | |
25450 | /* end confdefs.h. */ | |
e6cc62c6 | 25451 | |
bb41dcbe VS |
25452 | /* Override any gcc2 internal prototype to avoid an error. */ |
25453 | #ifdef __cplusplus | |
25454 | extern "C" | |
25455 | #endif | |
25456 | /* We use char because int might match the return type of a gcc2 | |
25457 | builtin and then its argument prototype would still apply. */ | |
e46d2a18 | 25458 | char SQLAllocEnv (); |
bb41dcbe VS |
25459 | int |
25460 | main () | |
25461 | { | |
e46d2a18 | 25462 | SQLAllocEnv (); |
bb41dcbe VS |
25463 | ; |
25464 | return 0; | |
25465 | } | |
25466 | _ACEOF | |
25467 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25468 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 25469 | (eval $ac_link) 2>&5 |
bb41dcbe VS |
25470 | ac_status=$? |
25471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25472 | (exit $ac_status); } && | |
789c5f4a | 25473 | { ac_try='test -s conftest$ac_exeext' |
bb41dcbe VS |
25474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25475 | (eval $ac_try) 2>&5 | |
25476 | ac_status=$? | |
25477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25478 | (exit $ac_status); }; }; then | |
e46d2a18 | 25479 | ac_cv_lib_odbc_SQLAllocEnv=yes |
e6cc62c6 | 25480 | else |
bb41dcbe VS |
25481 | echo "$as_me: failed program was:" >&5 |
25482 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25483 | ||
e46d2a18 | 25484 | ac_cv_lib_odbc_SQLAllocEnv=no |
bb41dcbe | 25485 | fi |
789c5f4a | 25486 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
bb41dcbe VS |
25487 | LIBS=$ac_check_lib_save_LIBS |
25488 | fi | |
e46d2a18 VS |
25489 | echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5 |
25490 | echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6 | |
25491 | if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then | |
bb41dcbe VS |
25492 | ODBC_LINK=" -lodbc" |
25493 | fi | |
25494 | ||
25495 | ||
25496 | fi | |
e6cc62c6 | 25497 | |
e6cc62c6 | 25498 | |
8647bec6 | 25499 | fi |
e6cc62c6 | 25500 | |
fd3d7534 | 25501 | fi |
bb41dcbe VS |
25502 | if test "x$ODBC_LINK" = "x" ; then |
25503 | if test "$wxUSE_ODBC" = "sys" ; then | |
25504 | { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5 | |
25505 | echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;} | |
25506 | { (exit 1); exit 1; }; } | |
25507 | else | |
25508 | { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5 | |
25509 | echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;} | |
25510 | wxUSE_ODBC=builtin | |
25511 | fi | |
25512 | else | |
25513 | wxUSE_ODBC=sys | |
8647bec6 | 25514 | fi |
8647bec6 | 25515 | fi |
bb41dcbe VS |
25516 | if test "$wxUSE_ODBC" != "no" ; then |
25517 | cat >>confdefs.h <<\_ACEOF | |
25518 | #define wxUSE_ODBC 1 | |
25519 | _ACEOF | |
e6cc62c6 | 25520 | |
0bdb08e7 VS |
25521 | if test "$wxUSE_ODBC" = "builtin" ; then |
25522 | cat >>confdefs.h <<\_ACEOF | |
25523 | #define wxUSE_BUILTIN_IODBC 1 | |
25524 | _ACEOF | |
25525 | ||
25526 | fi | |
bb41dcbe VS |
25527 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" |
25528 | ||
25529 | WXODBCFLAG="-D_IODBC_" | |
25530 | fi | |
6232543b | 25531 | fi |
21d1c967 GD |
25532 | |
25533 | if test "$wxUSE_REGEX" = "builtin" ; then | |
25534 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" | |
1e487827 | 25535 | fi |
21d1c967 GD |
25536 | if test "$wxUSE_ZLIB" = "builtin" ; then |
25537 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
bd3277fe VZ |
25538 | fi |
25539 | ||
74500461 VS |
25540 | if test "$wxUSE_DISPLAY" = "yes"; then |
25541 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1; then | |
25542 | echo "$as_me:$LINENO: checking for Xinerama" >&5 | |
25543 | echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6 | |
25544 | ||
25545 | ac_find_libraries= | |
25546 | for ac_dir in $SEARCH_LIB /usr/lib; | |
25547 | do | |
25548 | for ac_extension in a so sl dylib; do | |
25549 | if test -f "$ac_dir/libXinerama.$ac_extension"; then | |
25550 | ac_find_libraries=$ac_dir | |
25551 | break 2 | |
25552 | fi | |
25553 | done | |
25554 | done | |
25555 | ||
25556 | if test "$ac_find_libraries" != "" ; then | |
25557 | ||
25558 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
25559 | result=$? | |
25560 | if test $result = 0; then | |
25561 | ac_path_to_link="" | |
25562 | else | |
25563 | ac_path_to_link=" -L$ac_find_libraries" | |
25564 | fi | |
25565 | ||
25566 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
25567 | LDFLAGS="$LDFLAGS $ac_path_to_link" | |
25568 | fi | |
25569 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama" | |
25570 | echo "$as_me:$LINENO: result: yes" >&5 | |
25571 | echo "${ECHO_T}yes" >&6 | |
505c8ccd VS |
25572 | |
25573 | echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5 | |
25574 | echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6 | |
25575 | ||
25576 | ac_find_libraries= | |
25577 | for ac_dir in $SEARCH_LIB /usr/lib; | |
25578 | do | |
25579 | for ac_extension in a so sl dylib; do | |
25580 | if test -f "$ac_dir/libXxf86vm.$ac_extension"; then | |
25581 | ac_find_libraries=$ac_dir | |
25582 | break 2 | |
25583 | fi | |
25584 | done | |
25585 | done | |
25586 | ||
25587 | if test "$ac_find_libraries" != "" ; then | |
25588 | echo "$as_me:$LINENO: result: yes" >&5 | |
25589 | echo "${ECHO_T}yes" >&6 | |
25590 | ||
25591 | for ac_header in X11/extensions/xf86vmode.h | |
25592 | do | |
25593 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
25594 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
25595 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
25596 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
25597 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25598 | else | |
25599 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 25600 | #line $LINENO "configure" |
505c8ccd VS |
25601 | /* confdefs.h. */ |
25602 | _ACEOF | |
25603 | cat confdefs.h >>conftest.$ac_ext | |
25604 | cat >>conftest.$ac_ext <<_ACEOF | |
25605 | /* end confdefs.h. */ | |
25606 | ||
25607 | #if HAVE_X11_XLIB_H | |
25608 | #include <X11/Xlib.h> | |
25609 | #endif | |
25610 | ||
25611 | ||
25612 | #include <$ac_header> | |
25613 | _ACEOF | |
25614 | rm -f conftest.$ac_objext | |
25615 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 25616 | (eval $ac_compile) 2>&5 |
505c8ccd | 25617 | ac_status=$? |
505c8ccd VS |
25618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25619 | (exit $ac_status); } && | |
789c5f4a | 25620 | { ac_try='test -s conftest.$ac_objext' |
505c8ccd VS |
25621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25622 | (eval $ac_try) 2>&5 | |
25623 | ac_status=$? | |
25624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25625 | (exit $ac_status); }; }; then | |
25626 | eval "$as_ac_Header=yes" | |
25627 | else | |
25628 | echo "$as_me: failed program was:" >&5 | |
25629 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25630 | ||
25631 | eval "$as_ac_Header=no" | |
25632 | fi | |
789c5f4a | 25633 | rm -f conftest.$ac_objext conftest.$ac_ext |
505c8ccd VS |
25634 | fi |
25635 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
25636 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
25637 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
25638 | cat >>confdefs.h <<_ACEOF | |
25639 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
25640 | _ACEOF | |
25641 | ||
25642 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm" | |
25643 | ||
25644 | fi | |
25645 | ||
25646 | done | |
25647 | ||
25648 | else | |
25649 | echo "$as_me:$LINENO: result: no" >&5 | |
25650 | echo "${ECHO_T}no" >&6 | |
25651 | fi | |
25652 | ||
74500461 VS |
25653 | else |
25654 | echo "$as_me:$LINENO: result: no" >&5 | |
25655 | echo "${ECHO_T}no" >&6 | |
25656 | { echo "$as_me:$LINENO: WARNING: \"*** Xinerama not found; disabling wxDisplay\"" >&5 | |
25657 | echo "$as_me: WARNING: \"*** Xinerama not found; disabling wxDisplay\"" >&2;} | |
25658 | wxUSE_DISPLAY="no" | |
25659 | fi | |
25660 | fi | |
25661 | fi | |
25662 | ||
8284b0c5 | 25663 | |
4d264332 | 25664 | USE_OPENGL=0 |
21d1c967 | 25665 | if test "$wxUSE_OPENGL" = "yes"; then |
ac0c4cc3 | 25666 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then |
21d1c967 GD |
25667 | OPENGL_LIBS="-framework OpenGL -framework AGL" |
25668 | elif test "$wxUSE_MSW" = 1; then | |
25669 | OPENGL_LIBS="-lopengl32 -lglu32" | |
25670 | else | |
01aa5863 VS |
25671 | |
25672 | ||
25673 | ac_find_includes= | |
25674 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
25675 | do | |
25676 | if test -f "$ac_dir/GL/gl.h"; then | |
25677 | ac_find_includes=$ac_dir | |
25678 | break | |
25679 | fi | |
25680 | done | |
25681 | ||
25682 | if test "$ac_find_includes" != "" ; then | |
25683 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
25684 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
01aa5863 VS |
25685 | |
25686 | if test "x$ac_find_includes" = "x/usr/include"; then | |
25687 | ac_path_to_include="" | |
25688 | else | |
25689 | echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null | |
25690 | result=$? | |
25691 | if test $result = 0; then | |
25692 | ac_path_to_include="" | |
25693 | else | |
25694 | ac_path_to_include=" -I$ac_find_includes" | |
25695 | fi | |
25696 | fi | |
25697 | ||
25698 | CPPFLAGS="$CPPFLAGS$ac_path_to_include" | |
01aa5863 VS |
25699 | fi |
25700 | ||
e6cc62c6 VS |
25701 | if test "${ac_cv_header_GL_gl_h+set}" = set; then |
25702 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
25703 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
25704 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
25705 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25706 | fi | |
25707 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
25708 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
25709 | else | |
25710 | # Is the header compilable? | |
25711 | echo "$as_me:$LINENO: checking GL/gl.h usability" >&5 | |
25712 | echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6 | |
25713 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 25714 | #line $LINENO "configure" |
e6cc62c6 VS |
25715 | /* confdefs.h. */ |
25716 | _ACEOF | |
25717 | cat confdefs.h >>conftest.$ac_ext | |
25718 | cat >>conftest.$ac_ext <<_ACEOF | |
25719 | /* end confdefs.h. */ | |
25720 | $ac_includes_default | |
21d1c967 | 25721 | #include <GL/gl.h> |
e6cc62c6 VS |
25722 | _ACEOF |
25723 | rm -f conftest.$ac_objext | |
25724 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 25725 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
25726 | ac_status=$? |
25727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25728 | (exit $ac_status); } && | |
789c5f4a | 25729 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
25730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25731 | (eval $ac_try) 2>&5 | |
25732 | ac_status=$? | |
25733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25734 | (exit $ac_status); }; }; then | |
25735 | ac_header_compiler=yes | |
25736 | else | |
25737 | echo "$as_me: failed program was:" >&5 | |
25738 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25739 | ||
25740 | ac_header_compiler=no | |
25741 | fi | |
789c5f4a | 25742 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
25743 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
25744 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
25745 | ||
25746 | # Is the header present? | |
25747 | echo "$as_me:$LINENO: checking GL/gl.h presence" >&5 | |
25748 | echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6 | |
25749 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 25750 | #line $LINENO "configure" |
e6cc62c6 VS |
25751 | /* confdefs.h. */ |
25752 | _ACEOF | |
25753 | cat confdefs.h >>conftest.$ac_ext | |
25754 | cat >>conftest.$ac_ext <<_ACEOF | |
25755 | /* end confdefs.h. */ | |
25756 | #include <GL/gl.h> | |
25757 | _ACEOF | |
25758 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
25759 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
25760 | ac_status=$? | |
25761 | grep -v '^ *+' conftest.er1 >conftest.err | |
25762 | rm -f conftest.er1 | |
25763 | cat conftest.err >&5 | |
25764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25765 | (exit $ac_status); } >/dev/null; then | |
25766 | if test -s conftest.err; then | |
25767 | ac_cpp_err=$ac_c_preproc_warn_flag | |
25768 | else | |
25769 | ac_cpp_err= | |
25770 | fi | |
25771 | else | |
25772 | ac_cpp_err=yes | |
25773 | fi | |
25774 | if test -z "$ac_cpp_err"; then | |
25775 | ac_header_preproc=yes | |
25776 | else | |
25777 | echo "$as_me: failed program was:" >&5 | |
25778 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25779 | ||
25780 | ac_header_preproc=no | |
25781 | fi | |
25782 | rm -f conftest.err conftest.$ac_ext | |
25783 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
25784 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
25785 | ||
25786 | # So? What about this header? | |
789c5f4a VZ |
25787 | case $ac_header_compiler:$ac_header_preproc in |
25788 | yes:no ) | |
e6cc62c6 VS |
25789 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
25790 | echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
789c5f4a VZ |
25791 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 |
25792 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
25793 | ( | |
25794 | cat <<\_ASBOX | |
25795 | ## ------------------------------------ ## | |
25796 | ## Report this to bug-autoconf@gnu.org. ## | |
25797 | ## ------------------------------------ ## | |
25798 | _ASBOX | |
25799 | ) | | |
25800 | sed "s/^/$as_me: WARNING: /" >&2 | |
e6cc62c6 | 25801 | ;; |
789c5f4a | 25802 | no:yes ) |
e6cc62c6 VS |
25803 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5 |
25804 | echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;} | |
789c5f4a VZ |
25805 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5 |
25806 | echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;} | |
e6cc62c6 VS |
25807 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 |
25808 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
25809 | ( | |
25810 | cat <<\_ASBOX | |
789c5f4a VZ |
25811 | ## ------------------------------------ ## |
25812 | ## Report this to bug-autoconf@gnu.org. ## | |
25813 | ## ------------------------------------ ## | |
e6cc62c6 VS |
25814 | _ASBOX |
25815 | ) | | |
25816 | sed "s/^/$as_me: WARNING: /" >&2 | |
25817 | ;; | |
25818 | esac | |
25819 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
25820 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
25821 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
25822 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25823 | else | |
25824 | ac_cv_header_GL_gl_h=$ac_header_preproc | |
703e0a69 | 25825 | fi |
e6cc62c6 VS |
25826 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 |
25827 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
25828 | ||
698dcdb6 | 25829 | fi |
e6cc62c6 VS |
25830 | if test $ac_cv_header_GL_gl_h = yes; then |
25831 | ||
89e3b3e4 VZ |
25832 | found_gl=0 |
25833 | ||
e6cc62c6 VS |
25834 | echo "$as_me:$LINENO: checking for -lGL" >&5 |
25835 | echo $ECHO_N "checking for -lGL... $ECHO_C" >&6 | |
25836 | ||
21d1c967 | 25837 | ac_find_libraries= |
2b5f62a0 | 25838 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
25839 | do |
25840 | for ac_extension in a so sl dylib; do | |
25841 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
25842 | ac_find_libraries=$ac_dir | |
25843 | break 2 | |
25844 | fi | |
25845 | done | |
25846 | done | |
25847 | ||
25848 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 | 25849 | |
21d1c967 GD |
25850 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
25851 | result=$? | |
25852 | if test $result = 0; then | |
25853 | ac_path_to_link="" | |
25854 | else | |
25855 | ac_path_to_link=" -L$ac_find_libraries" | |
25856 | fi | |
25857 | ||
89e3b3e4 VZ |
25858 | if test "$ac_path_to_link" != " -L/usr/lib" ; then |
25859 | LDFLAGS_GL="$ac_path_to_link" | |
21d1c967 | 25860 | fi |
89e3b3e4 | 25861 | |
e6cc62c6 | 25862 | |
89e3b3e4 VZ |
25863 | ac_find_libraries= |
25864 | for ac_dir in $SEARCH_LIB /usr/lib; | |
25865 | do | |
25866 | for ac_extension in a so sl dylib; do | |
25867 | if test -f "$ac_dir/libGLU.$ac_extension"; then | |
25868 | ac_find_libraries=$ac_dir | |
25869 | break 2 | |
25870 | fi | |
25871 | done | |
25872 | done | |
25873 | ||
25874 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 | 25875 | |
89e3b3e4 VZ |
25876 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
25877 | result=$? | |
25878 | if test $result = 0; then | |
25879 | ac_path_to_link="" | |
25880 | else | |
25881 | ac_path_to_link=" -L$ac_find_libraries" | |
25882 | fi | |
25883 | ||
25884 | if test "$ac_path_to_link" != " -L/usr/lib" -a \ | |
25885 | "$ac_path_to_link" != "$LDFLAGS_GL"; then | |
25886 | LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link" | |
25887 | fi | |
25888 | ||
25889 | found_gl=1 | |
25890 | OPENGL_LIBS="-lGL -lGLU" | |
e6cc62c6 VS |
25891 | echo "$as_me:$LINENO: result: yes" >&5 |
25892 | echo "${ECHO_T}yes" >&6 | |
89e3b3e4 VZ |
25893 | fi |
25894 | fi | |
25895 | ||
bb41dcbe | 25896 | if test "$found_gl" != 1; then |
e6cc62c6 VS |
25897 | echo "$as_me:$LINENO: result: no" >&5 |
25898 | echo "${ECHO_T}no" >&6 | |
25899 | echo "$as_me:$LINENO: checking for -lMesaGL" >&5 | |
25900 | echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6 | |
25901 | ||
21d1c967 | 25902 | ac_find_libraries= |
2b5f62a0 | 25903 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
25904 | do |
25905 | for ac_extension in a so sl dylib; do | |
25906 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
25907 | ac_find_libraries=$ac_dir | |
25908 | break 2 | |
25909 | fi | |
25910 | done | |
25911 | done | |
25912 | ||
25913 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 | 25914 | |
21d1c967 GD |
25915 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
25916 | result=$? | |
25917 | if test $result = 0; then | |
25918 | ac_path_to_link="" | |
25919 | else | |
25920 | ac_path_to_link=" -L$ac_find_libraries" | |
25921 | fi | |
25922 | ||
25923 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
25924 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
e6cc62c6 VS |
25925 | echo "$as_me:$LINENO: result: yes" >&5 |
25926 | echo "${ECHO_T}yes" >&6 | |
21d1c967 | 25927 | else |
e6cc62c6 VS |
25928 | echo "$as_me:$LINENO: result: no" >&5 |
25929 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
25930 | fi |
25931 | fi | |
e6cc62c6 | 25932 | |
5c6fa7d2 | 25933 | fi |
52127426 | 25934 | |
8284b0c5 | 25935 | |
e6cc62c6 | 25936 | |
21d1c967 | 25937 | if test "x$OPENGL_LIBS" = "x"; then |
e6cc62c6 VS |
25938 | { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5 |
25939 | echo "$as_me: error: OpenGL libraries not available" >&2;} | |
25940 | { (exit 1); exit 1; }; } | |
21d1c967 GD |
25941 | fi |
25942 | fi | |
90dd450c | 25943 | |
21d1c967 | 25944 | if test "$wxUSE_OPENGL" = "yes"; then |
4d264332 | 25945 | USE_OPENGL=1 |
e6cc62c6 | 25946 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 25947 | #define wxUSE_OPENGL 1 |
e6cc62c6 | 25948 | _ACEOF |
21d1c967 | 25949 | |
e6cc62c6 | 25950 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 25951 | #define wxUSE_GLCANVAS 1 |
e6cc62c6 | 25952 | _ACEOF |
21d1c967 | 25953 | |
520755bb | 25954 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf" |
21d1c967 | 25955 | fi |
10f2d63a | 25956 | fi |
21d1c967 GD |
25957 | |
25958 | if test -z "$TOOLKIT_VPATH" ; then | |
25959 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
10f2d63a | 25960 | fi |
21d1c967 GD |
25961 | |
25962 | if test -n "$TOOLKIT" ; then | |
25963 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
25964 | fi | |
25965 | ||
fe0895cf | 25966 | UNICODE=0 |
21d1c967 GD |
25967 | lib_unicode_suffix= |
25968 | if test "$wxUSE_UNICODE" = "yes"; then | |
25969 | lib_unicode_suffix=u | |
fe0895cf | 25970 | UNICODE=1 |
90dd450c | 25971 | fi |
698dcdb6 | 25972 | |
21d1c967 | 25973 | lib_debug_suffix= |
6c67131a | 25974 | DEBUG_FLAG=0 |
21d1c967 GD |
25975 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then |
25976 | lib_debug_suffix=d | |
6c67131a VS |
25977 | DEBUG_FLAG=1 |
25978 | fi | |
25979 | ||
25980 | DEBUG_INFO=0 | |
25981 | if test "$wxUSE_DEBUG_INFO" = "yes"; then | |
25982 | DEBUG_INFO=1 | |
21d1c967 | 25983 | fi |
698dcdb6 | 25984 | |
1cbb95a2 | 25985 | WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` |
2b5f62a0 VZ |
25986 | |
25987 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}" | |
25988 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
21d1c967 GD |
25989 | |
25990 | if test "$cross_compiling" = "yes"; then | |
25991 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
25992 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
ea66c762 | 25993 | HOST_SUFFIX="-${host_alias}" |
21d1c967 GD |
25994 | fi |
25995 | ||
25996 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
25997 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
cf615ebb VS |
25998 | WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}" |
25999 | WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}" | |
21d1c967 GD |
26000 | |
26001 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
26002 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
26003 | ||
26004 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
26005 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
26006 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
26007 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
26008 | ||
26009 | case "${host}" in | |
26010 | *-*-cygwin* | *-*-mingw32* ) | |
ec67c474 VS |
26011 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}" |
26012 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
21d1c967 GD |
26013 | ;; |
26014 | ||
26015 | *-*-darwin* ) | |
e6cc62c6 | 26016 | |
05159a27 GD |
26017 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}" |
26018 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}" | |
26019 | ||
26020 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}" | |
26021 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
26022 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}" | |
26023 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
26024 | ||
09d3439c VZ |
26025 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then |
26026 | WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r" | |
f346733b | 26027 | WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc" |
21d1c967 GD |
26028 | fi |
26029 | ;; | |
26030 | esac | |
26031 | ||
26032 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
26033 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
26034 | ||
26035 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
26036 | WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a" | |
26037 | ||
26038 | if test "$wxUSE_OPENGL" = "yes"; then | |
26039 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}" | |
26040 | WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}" | |
26041 | fi | |
26042 | ||
8284b0c5 MB |
26043 | |
26044 | ||
21d1c967 GD |
26045 | if test "$wxUSE_SHARED" = "yes"; then |
26046 | case "${host}" in | |
26047 | *-pc-os2_emx | *-pc-os2-emx | \ | |
26048 | *-pc-msdosdjgpp ) | |
26049 | wxUSE_SHARED=no | |
e6cc62c6 VS |
26050 | { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5 |
26051 | echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;} | |
21d1c967 GD |
26052 | ;; |
26053 | esac | |
26054 | fi | |
26055 | ||
fe0895cf | 26056 | SHARED=0 |
2b5f62a0 | 26057 | if test "$wxUSE_SHARED" = "yes"; then |
fe0895cf | 26058 | SHARED=1 |
2b5f62a0 | 26059 | |
e6cc62c6 | 26060 | |
2b5f62a0 VZ |
26061 | found_versioning=no |
26062 | ||
e6cc62c6 | 26063 | |
2b5f62a0 | 26064 | if test $found_versioning = no ; then |
e6cc62c6 VS |
26065 | echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5 |
26066 | echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6 | |
26067 | if test "${wx_cv_version_script+set}" = set; then | |
26068 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2b5f62a0 | 26069 | else |
e6cc62c6 | 26070 | |
2b5f62a0 VZ |
26071 | echo "VER_1 { *; };" >conftest.sym |
26072 | echo "int main() { return 0; }" >conftest.cpp | |
e6cc62c6 | 26073 | |
2b5f62a0 VZ |
26074 | if { ac_try=' |
26075 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
e6cc62c6 VS |
26076 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr' |
26077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26078 | (eval $ac_try) 2>&5 | |
26079 | ac_status=$? | |
26080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26081 | (exit $ac_status); }; } ; then | |
2b5f62a0 VZ |
26082 | if test -s conftest.stderr ; then |
26083 | wx_cv_version_script=no | |
26084 | else | |
26085 | wx_cv_version_script=yes | |
26086 | fi | |
26087 | else | |
26088 | wx_cv_version_script=no | |
26089 | fi | |
26090 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp | |
2b5f62a0 | 26091 | |
e6cc62c6 VS |
26092 | fi |
26093 | echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5 | |
26094 | echo "${ECHO_T}$wx_cv_version_script" >&6 | |
2b5f62a0 | 26095 | if test $wx_cv_version_script = yes ; then |
e6cc62c6 | 26096 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script" |
2b5f62a0 VZ |
26097 | fi |
26098 | fi | |
21d1c967 | 26099 | |
21d1c967 | 26100 | |
21d1c967 | 26101 | case "${host}" in |
fe0895cf | 26102 | *-*-linux* | *-*-gnu* ) |
e6cc62c6 | 26103 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" |
345b8952 | 26104 | ;; |
21d1c967 GD |
26105 | |
26106 | *-*-solaris2* ) | |
26107 | if test "$GCC" = yes ; then | |
26108 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
fe0895cf VS |
26109 | |
26110 | saveLdflags="$LDFLAGS" | |
26111 | LDFLAGS="$saveLdflags -Wl,-rpath,/" | |
e6cc62c6 VS |
26112 | echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5 |
26113 | echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6 | |
26114 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 26115 | #line $LINENO "configure" |
e6cc62c6 VS |
26116 | /* confdefs.h. */ |
26117 | _ACEOF | |
26118 | cat confdefs.h >>conftest.$ac_ext | |
26119 | cat >>conftest.$ac_ext <<_ACEOF | |
26120 | /* end confdefs.h. */ | |
26121 | ||
26122 | int | |
26123 | main () | |
26124 | { | |
fe0895cf | 26125 | |
e6cc62c6 VS |
26126 | ; |
26127 | return 0; | |
26128 | } | |
26129 | _ACEOF | |
26130 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26131 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 26132 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
26133 | ac_status=$? |
26134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26135 | (exit $ac_status); } && | |
789c5f4a | 26136 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
26137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26138 | (eval $ac_try) 2>&5 | |
26139 | ac_status=$? | |
26140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26141 | (exit $ac_status); }; }; then | |
26142 | ||
26143 | echo "$as_me:$LINENO: result: yes" >&5 | |
26144 | echo "${ECHO_T}yes" >&6 | |
26145 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
26146 | ||
26147 | else | |
26148 | echo "$as_me: failed program was:" >&5 | |
26149 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26150 | ||
26151 | ||
26152 | echo "$as_me:$LINENO: result: no" >&5 | |
26153 | echo "${ECHO_T}no" >&6 | |
26154 | echo "$as_me:$LINENO: checking if the linker accepts -R" >&5 | |
26155 | echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6 | |
fe0895cf | 26156 | LDFLAGS="$saveLdflags -Wl,-R,/" |
e6cc62c6 | 26157 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 26158 | #line $LINENO "configure" |
e6cc62c6 VS |
26159 | /* confdefs.h. */ |
26160 | _ACEOF | |
26161 | cat confdefs.h >>conftest.$ac_ext | |
26162 | cat >>conftest.$ac_ext <<_ACEOF | |
26163 | /* end confdefs.h. */ | |
26164 | ||
26165 | int | |
26166 | main () | |
26167 | { | |
26168 | ||
26169 | ; | |
26170 | return 0; | |
26171 | } | |
26172 | _ACEOF | |
26173 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26174 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 26175 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
26176 | ac_status=$? |
26177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26178 | (exit $ac_status); } && | |
789c5f4a | 26179 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
26180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26181 | (eval $ac_try) 2>&5 | |
26182 | ac_status=$? | |
26183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26184 | (exit $ac_status); }; }; then | |
26185 | ||
26186 | echo "$as_me:$LINENO: result: yes" >&5 | |
26187 | echo "${ECHO_T}yes" >&6 | |
26188 | SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib" | |
26189 | else | |
26190 | echo "$as_me: failed program was:" >&5 | |
26191 | sed 's/^/| /' conftest.$ac_ext >&5 | |
fe0895cf | 26192 | |
fe0895cf | 26193 | |
e6cc62c6 VS |
26194 | echo "$as_me:$LINENO: result: no" >&5 |
26195 | echo "${ECHO_T}no" >&6 | |
26196 | ||
fe0895cf | 26197 | fi |
789c5f4a | 26198 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
26199 | |
26200 | fi | |
789c5f4a | 26201 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
fe0895cf | 26202 | LDFLAGS="$saveLdflags" |
21d1c967 GD |
26203 | else |
26204 | SHARED_LD="${CXX} -G -o" | |
26205 | PIC_FLAG="-KPIC" | |
e6cc62c6 | 26206 | SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib" |
21d1c967 GD |
26207 | fi |
26208 | ;; | |
0f1bc9c2 VS |
26209 | |
26210 | powerpc-*-darwin* ) | |
ef0add05 VS |
26211 | SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@" |
26212 | cat <<EOF >change-install-names | |
26213 | #!/bin/sh | |
26214 | libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\` | |
26215 | inst_cmd="install_name_tool " | |
26216 | for i in \${libnames} ; do | |
26217 | inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}" | |
26218 | done | |
26219 | \${inst_cmd} \${3} | |
26220 | EOF | |
26221 | chmod +x change-install-names | |
0f1bc9c2 VS |
26222 | ;; |
26223 | ||
21d1c967 GD |
26224 | esac |
26225 | ||
26226 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
26227 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
26228 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" | |
26229 | fi | |
26230 | ||
26231 | WX_TARGET_LIBRARY_TYPE="so" | |
26232 | INSTALL_LIBRARY='$(INSTALL_PROGRAM)' | |
90dd450c | 26233 | fi |
10f2d63a | 26234 | |
21d1c967 GD |
26235 | if test "$wxUSE_SHARED" = "no"; then |
26236 | ||
26237 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then | |
26238 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
26239 | fi | |
26240 | ||
ac0c4cc3 | 26241 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
21d1c967 GD |
26242 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" |
26243 | fi | |
26244 | ||
26245 | if test "$wxUSE_OPENGL" = "yes"; then | |
26246 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
26247 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
26248 | else | |
26249 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
26250 | fi | |
26251 | ||
26252 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
26253 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
26254 | ||
26255 | WX_TARGET_LIBRARY_TYPE="a" | |
26256 | INSTALL_LIBRARY='$(INSTALL_DATA)' | |
2bffed64 VZ |
26257 | |
26258 | STATIC_FLAG="yes" | |
26259 | else | |
26260 | STATIC_FLAG="no" | |
90dd450c | 26261 | fi |
1e487827 | 26262 | |
09d3439c | 26263 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then |
e6cc62c6 | 26264 | LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}" |
21d1c967 GD |
26265 | WX_ALL="${WX_ALL} ${LIBWXMACRES}" |
26266 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res" | |
09d3439c | 26267 | |
21d1c967 GD |
26268 | # Extract the first word of "Rez", so it can be a program name with args. |
26269 | set dummy Rez; ac_word=$2 | |
e6cc62c6 VS |
26270 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
26271 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
26272 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
26273 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b93d0d08 | 26274 | else |
21d1c967 GD |
26275 | if test -n "$RESCOMP"; then |
26276 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
b93d0d08 | 26277 | else |
e6cc62c6 VS |
26278 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
26279 | for as_dir in $PATH | |
26280 | do | |
26281 | IFS=$as_save_IFS | |
26282 | test -z "$as_dir" && as_dir=. | |
26283 | for ac_exec_ext in '' $ac_executable_extensions; do | |
26284 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
26285 | ac_cv_prog_RESCOMP="Rez" | |
26286 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
26287 | break 2 | |
26288 | fi | |
26289 | done | |
26290 | done | |
26291 | ||
21d1c967 | 26292 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" |
b93d0d08 | 26293 | fi |
b93d0d08 | 26294 | fi |
e6cc62c6 | 26295 | RESCOMP=$ac_cv_prog_RESCOMP |
21d1c967 | 26296 | if test -n "$RESCOMP"; then |
e6cc62c6 VS |
26297 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 |
26298 | echo "${ECHO_T}$RESCOMP" >&6 | |
90dd450c | 26299 | else |
e6cc62c6 VS |
26300 | echo "$as_me:$LINENO: result: no" >&5 |
26301 | echo "${ECHO_T}no" >&6 | |
90dd450c | 26302 | fi |
b93d0d08 | 26303 | |
21d1c967 GD |
26304 | # Extract the first word of "DeRez", so it can be a program name with args. |
26305 | set dummy DeRez; ac_word=$2 | |
e6cc62c6 VS |
26306 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
26307 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
26308 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
26309 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3a922bb4 | 26310 | else |
21d1c967 GD |
26311 | if test -n "$DEREZ"; then |
26312 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
4f14bcd8 | 26313 | else |
e6cc62c6 VS |
26314 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
26315 | for as_dir in $PATH | |
26316 | do | |
26317 | IFS=$as_save_IFS | |
26318 | test -z "$as_dir" && as_dir=. | |
26319 | for ac_exec_ext in '' $ac_executable_extensions; do | |
26320 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
26321 | ac_cv_prog_DEREZ="DeRez" | |
26322 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
26323 | break 2 | |
26324 | fi | |
26325 | done | |
26326 | done | |
26327 | ||
21d1c967 | 26328 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" |
3a922bb4 | 26329 | fi |
90dd450c | 26330 | fi |
e6cc62c6 | 26331 | DEREZ=$ac_cv_prog_DEREZ |
21d1c967 | 26332 | if test -n "$DEREZ"; then |
e6cc62c6 VS |
26333 | echo "$as_me:$LINENO: result: $DEREZ" >&5 |
26334 | echo "${ECHO_T}$DEREZ" >&6 | |
90dd450c | 26335 | else |
e6cc62c6 VS |
26336 | echo "$as_me:$LINENO: result: no" >&5 |
26337 | echo "${ECHO_T}no" >&6 | |
3a922bb4 | 26338 | fi |
698dcdb6 | 26339 | |
36825681 GD |
26340 | # Extract the first word of "SetFile", so it can be a program name with args. |
26341 | set dummy SetFile; ac_word=$2 | |
e6cc62c6 VS |
26342 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
26343 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
26344 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
26345 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36825681 GD |
26346 | else |
26347 | if test -n "$SETFILE"; then | |
26348 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
26349 | else | |
e6cc62c6 VS |
26350 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
26351 | for as_dir in $PATH | |
26352 | do | |
26353 | IFS=$as_save_IFS | |
26354 | test -z "$as_dir" && as_dir=. | |
26355 | for ac_exec_ext in '' $ac_executable_extensions; do | |
26356 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
26357 | ac_cv_prog_SETFILE="SetFile" | |
26358 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
26359 | break 2 | |
26360 | fi | |
26361 | done | |
26362 | done | |
26363 | ||
36825681 GD |
26364 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" |
26365 | fi | |
26366 | fi | |
e6cc62c6 | 26367 | SETFILE=$ac_cv_prog_SETFILE |
36825681 | 26368 | if test -n "$SETFILE"; then |
e6cc62c6 VS |
26369 | echo "$as_me:$LINENO: result: $SETFILE" >&5 |
26370 | echo "${ECHO_T}$SETFILE" >&6 | |
36825681 | 26371 | else |
e6cc62c6 VS |
26372 | echo "$as_me:$LINENO: result: no" >&5 |
26373 | echo "${ECHO_T}no" >&6 | |
36825681 GD |
26374 | fi |
26375 | ||
e6cc62c6 | 26376 | |
09d3439c | 26377 | MACSETFILE="\$(SETFILE)" |
64440d77 | 26378 | |
09d3439c VZ |
26379 | if test "$wxUSE_MAC" = 1; then |
26380 | MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o" | |
e6cc62c6 | 26381 | |
09d3439c VZ |
26382 | MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" |
26383 | else | |
26384 | MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o" | |
26385 | MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
26386 | fi | |
64440d77 | 26387 | else |
09d3439c VZ |
26388 | MACSETFILE="@#" |
26389 | MACRESWXCONFIG="#" | |
64440d77 | 26390 | |
09d3439c | 26391 | if test "$wxUSE_PM" = 1; then |
36825681 | 26392 | MACRESCOMP="emxbind -ep" |
09d3439c VZ |
26393 | else |
26394 | MACRESCOMP="@#" | |
90dd450c | 26395 | fi |
4f14bcd8 | 26396 | fi |
10f2d63a | 26397 | |
8284b0c5 | 26398 | |
f93ca9fd | 26399 | |
e6cc62c6 VS |
26400 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
26401 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
26402 | if test "${ac_cv_type_mode_t+set}" = set; then | |
26403 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
52127426 | 26404 | else |
e6cc62c6 | 26405 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 26406 | #line $LINENO "configure" |
e6cc62c6 VS |
26407 | /* confdefs.h. */ |
26408 | _ACEOF | |
26409 | cat confdefs.h >>conftest.$ac_ext | |
26410 | cat >>conftest.$ac_ext <<_ACEOF | |
26411 | /* end confdefs.h. */ | |
26412 | $ac_includes_default | |
26413 | int | |
26414 | main () | |
26415 | { | |
26416 | if ((mode_t *) 0) | |
26417 | return 0; | |
26418 | if (sizeof (mode_t)) | |
26419 | return 0; | |
26420 | ; | |
26421 | return 0; | |
26422 | } | |
26423 | _ACEOF | |
26424 | rm -f conftest.$ac_objext | |
26425 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 26426 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
26427 | ac_status=$? |
26428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26429 | (exit $ac_status); } && | |
789c5f4a | 26430 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
26431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26432 | (eval $ac_try) 2>&5 | |
26433 | ac_status=$? | |
26434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26435 | (exit $ac_status); }; }; then | |
26436 | ac_cv_type_mode_t=yes | |
a0b9e27f | 26437 | else |
e6cc62c6 VS |
26438 | echo "$as_me: failed program was:" >&5 |
26439 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 26440 | |
e6cc62c6 | 26441 | ac_cv_type_mode_t=no |
a0b9e27f | 26442 | fi |
789c5f4a | 26443 | rm -f conftest.$ac_objext conftest.$ac_ext |
52127426 | 26444 | fi |
e6cc62c6 VS |
26445 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
26446 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
26447 | if test $ac_cv_type_mode_t = yes; then | |
247f5006 VZ |
26448 | : |
26449 | else | |
a0b9e27f | 26450 | |
e6cc62c6 VS |
26451 | cat >>confdefs.h <<_ACEOF |
26452 | #define mode_t int | |
26453 | _ACEOF | |
8284b0c5 MB |
26454 | |
26455 | fi | |
26456 | ||
e6cc62c6 VS |
26457 | echo "$as_me:$LINENO: checking for off_t" >&5 |
26458 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
26459 | if test "${ac_cv_type_off_t+set}" = set; then | |
26460 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 26461 | else |
e6cc62c6 | 26462 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 26463 | #line $LINENO "configure" |
e6cc62c6 VS |
26464 | /* confdefs.h. */ |
26465 | _ACEOF | |
26466 | cat confdefs.h >>conftest.$ac_ext | |
26467 | cat >>conftest.$ac_ext <<_ACEOF | |
26468 | /* end confdefs.h. */ | |
26469 | $ac_includes_default | |
26470 | int | |
26471 | main () | |
26472 | { | |
26473 | if ((off_t *) 0) | |
26474 | return 0; | |
26475 | if (sizeof (off_t)) | |
26476 | return 0; | |
26477 | ; | |
26478 | return 0; | |
26479 | } | |
26480 | _ACEOF | |
26481 | rm -f conftest.$ac_objext | |
26482 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 26483 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
26484 | ac_status=$? |
26485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26486 | (exit $ac_status); } && | |
789c5f4a | 26487 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
26488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26489 | (eval $ac_try) 2>&5 | |
26490 | ac_status=$? | |
26491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26492 | (exit $ac_status); }; }; then | |
26493 | ac_cv_type_off_t=yes | |
5c6fa7d2 | 26494 | else |
e6cc62c6 VS |
26495 | echo "$as_me: failed program was:" >&5 |
26496 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 26497 | |
e6cc62c6 | 26498 | ac_cv_type_off_t=no |
8284b0c5 | 26499 | fi |
789c5f4a | 26500 | rm -f conftest.$ac_objext conftest.$ac_ext |
8284b0c5 | 26501 | fi |
e6cc62c6 VS |
26502 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
26503 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
26504 | if test $ac_cv_type_off_t = yes; then | |
26505 | : | |
247f5006 VZ |
26506 | else |
26507 | ||
e6cc62c6 | 26508 | cat >>confdefs.h <<_ACEOF |
90dd450c | 26509 | #define off_t long |
e6cc62c6 | 26510 | _ACEOF |
10f2d63a | 26511 | |
90dd450c | 26512 | fi |
10f2d63a | 26513 | |
e6cc62c6 VS |
26514 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
26515 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
26516 | if test "${ac_cv_type_pid_t+set}" = set; then | |
26517 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4f14bcd8 | 26518 | else |
e6cc62c6 | 26519 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 26520 | #line $LINENO "configure" |
e6cc62c6 VS |
26521 | /* confdefs.h. */ |
26522 | _ACEOF | |
26523 | cat confdefs.h >>conftest.$ac_ext | |
26524 | cat >>conftest.$ac_ext <<_ACEOF | |
26525 | /* end confdefs.h. */ | |
26526 | $ac_includes_default | |
26527 | int | |
26528 | main () | |
26529 | { | |
26530 | if ((pid_t *) 0) | |
26531 | return 0; | |
26532 | if (sizeof (pid_t)) | |
26533 | return 0; | |
26534 | ; | |
26535 | return 0; | |
26536 | } | |
26537 | _ACEOF | |
26538 | rm -f conftest.$ac_objext | |
26539 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 26540 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
26541 | ac_status=$? |
26542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26543 | (exit $ac_status); } && | |
789c5f4a | 26544 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
26545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26546 | (eval $ac_try) 2>&5 | |
26547 | ac_status=$? | |
26548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26549 | (exit $ac_status); }; }; then | |
90dd450c | 26550 | ac_cv_type_pid_t=yes |
698dcdb6 | 26551 | else |
e6cc62c6 VS |
26552 | echo "$as_me: failed program was:" >&5 |
26553 | sed 's/^/| /' conftest.$ac_ext >&5 | |
247f5006 | 26554 | |
e6cc62c6 VS |
26555 | ac_cv_type_pid_t=no |
26556 | fi | |
789c5f4a | 26557 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 26558 | fi |
e6cc62c6 VS |
26559 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
26560 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
26561 | if test $ac_cv_type_pid_t = yes; then | |
26562 | : | |
26563 | else | |
26564 | ||
26565 | cat >>confdefs.h <<_ACEOF | |
90dd450c | 26566 | #define pid_t int |
e6cc62c6 | 26567 | _ACEOF |
10f2d63a | 26568 | |
7b4a847f RR |
26569 | fi |
26570 | ||
e6cc62c6 VS |
26571 | echo "$as_me:$LINENO: checking for size_t" >&5 |
26572 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
26573 | if test "${ac_cv_type_size_t+set}" = set; then | |
26574 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7b4a847f | 26575 | else |
e6cc62c6 | 26576 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 26577 | #line $LINENO "configure" |
e6cc62c6 VS |
26578 | /* confdefs.h. */ |
26579 | _ACEOF | |
26580 | cat confdefs.h >>conftest.$ac_ext | |
26581 | cat >>conftest.$ac_ext <<_ACEOF | |
26582 | /* end confdefs.h. */ | |
26583 | $ac_includes_default | |
26584 | int | |
26585 | main () | |
26586 | { | |
26587 | if ((size_t *) 0) | |
26588 | return 0; | |
26589 | if (sizeof (size_t)) | |
26590 | return 0; | |
26591 | ; | |
26592 | return 0; | |
26593 | } | |
26594 | _ACEOF | |
26595 | rm -f conftest.$ac_objext | |
26596 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 26597 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
26598 | ac_status=$? |
26599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26600 | (exit $ac_status); } && | |
789c5f4a | 26601 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
26602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26603 | (eval $ac_try) 2>&5 | |
26604 | ac_status=$? | |
26605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26606 | (exit $ac_status); }; }; then | |
90dd450c | 26607 | ac_cv_type_size_t=yes |
18dbb1f6 | 26608 | else |
e6cc62c6 VS |
26609 | echo "$as_me: failed program was:" >&5 |
26610 | sed 's/^/| /' conftest.$ac_ext >&5 | |
247f5006 | 26611 | |
e6cc62c6 | 26612 | ac_cv_type_size_t=no |
a0b9e27f | 26613 | fi |
789c5f4a | 26614 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
26615 | fi |
26616 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
26617 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
26618 | if test $ac_cv_type_size_t = yes; then | |
26619 | : | |
26620 | else | |
26621 | ||
26622 | cat >>confdefs.h <<_ACEOF | |
90dd450c | 26623 | #define size_t unsigned |
e6cc62c6 | 26624 | _ACEOF |
90dd450c VZ |
26625 | |
26626 | fi | |
26627 | ||
e6cc62c6 VS |
26628 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
26629 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 | |
26630 | if test "${ac_cv_type_uid_t+set}" = set; then | |
26631 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b3e8d00a | 26632 | else |
e6cc62c6 | 26633 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 26634 | #line $LINENO "configure" |
e6cc62c6 VS |
26635 | /* confdefs.h. */ |
26636 | _ACEOF | |
26637 | cat confdefs.h >>conftest.$ac_ext | |
26638 | cat >>conftest.$ac_ext <<_ACEOF | |
26639 | /* end confdefs.h. */ | |
90dd450c | 26640 | #include <sys/types.h> |
e6cc62c6 VS |
26641 | |
26642 | _ACEOF | |
90dd450c | 26643 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
e6cc62c6 | 26644 | $EGREP "uid_t" >/dev/null 2>&1; then |
90dd450c | 26645 | ac_cv_type_uid_t=yes |
b3e8d00a | 26646 | else |
90dd450c | 26647 | ac_cv_type_uid_t=no |
b3e8d00a | 26648 | fi |
90dd450c | 26649 | rm -f conftest* |
b3e8d00a | 26650 | |
4f14bcd8 | 26651 | fi |
e6cc62c6 VS |
26652 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
26653 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 | |
a0b9e27f | 26654 | if test $ac_cv_type_uid_t = no; then |
e6cc62c6 VS |
26655 | |
26656 | cat >>confdefs.h <<\_ACEOF | |
90dd450c | 26657 | #define uid_t int |
e6cc62c6 | 26658 | _ACEOF |
247f5006 | 26659 | |
e6cc62c6 VS |
26660 | |
26661 | cat >>confdefs.h <<\_ACEOF | |
90dd450c | 26662 | #define gid_t int |
e6cc62c6 | 26663 | _ACEOF |
4f14bcd8 | 26664 | |
b3e8d00a | 26665 | fi |
b3e8d00a | 26666 | |
8284b0c5 MB |
26667 | |
26668 | ||
e6cc62c6 VS |
26669 | |
26670 | ac_ext=cc | |
4f14bcd8 | 26671 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
26672 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
26673 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26674 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
26675 | ||
26676 | echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5 | |
26677 | echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6 | |
26678 | if test "${wx_cv_size_t_is_uint+set}" = set; then | |
26679 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26680 | else | |
26681 | ||
26682 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 26683 | #line $LINENO "configure" |
e6cc62c6 VS |
26684 | /* confdefs.h. */ |
26685 | _ACEOF | |
26686 | cat confdefs.h >>conftest.$ac_ext | |
26687 | cat >>conftest.$ac_ext <<_ACEOF | |
26688 | /* end confdefs.h. */ | |
90dd450c | 26689 | #include <stddef.h> |
e6cc62c6 VS |
26690 | int |
26691 | main () | |
26692 | { | |
90dd450c VZ |
26693 | |
26694 | return 0; } | |
26695 | ||
26696 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
26697 | ||
26698 | int bar() { | |
e6cc62c6 VS |
26699 | |
26700 | ; | |
26701 | return 0; | |
26702 | } | |
26703 | _ACEOF | |
26704 | rm -f conftest.$ac_objext | |
26705 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 26706 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
26707 | ac_status=$? |
26708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26709 | (exit $ac_status); } && | |
789c5f4a | 26710 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
26711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26712 | (eval $ac_try) 2>&5 | |
26713 | ac_status=$? | |
26714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26715 | (exit $ac_status); }; }; then | |
90dd450c | 26716 | wx_cv_size_t_is_uint=no |
698dcdb6 | 26717 | else |
e6cc62c6 VS |
26718 | echo "$as_me: failed program was:" >&5 |
26719 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26720 | ||
26721 | wx_cv_size_t_is_uint=yes | |
8284b0c5 | 26722 | |
247f5006 | 26723 | fi |
789c5f4a | 26724 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 26725 | |
a0b9e27f | 26726 | |
e6cc62c6 VS |
26727 | fi |
26728 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5 | |
26729 | echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6 | |
4f14bcd8 | 26730 | |
90dd450c | 26731 | if test "$wx_cv_size_t_is_uint" = "yes"; then |
e6cc62c6 | 26732 | cat >>confdefs.h <<\_ACEOF |
90dd450c | 26733 | #define wxSIZE_T_IS_UINT 1 |
e6cc62c6 | 26734 | _ACEOF |
698dcdb6 | 26735 | |
90dd450c | 26736 | else |
e6cc62c6 VS |
26737 | echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5 |
26738 | echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6 | |
26739 | if test "${wx_cv_size_t_is_ulong+set}" = set; then | |
26740 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
698dcdb6 | 26741 | else |
e6cc62c6 | 26742 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 26743 | #line $LINENO "configure" |
e6cc62c6 VS |
26744 | /* confdefs.h. */ |
26745 | _ACEOF | |
26746 | cat confdefs.h >>conftest.$ac_ext | |
26747 | cat >>conftest.$ac_ext <<_ACEOF | |
26748 | /* end confdefs.h. */ | |
90dd450c | 26749 | #include <stddef.h> |
e6cc62c6 VS |
26750 | int |
26751 | main () | |
26752 | { | |
90dd450c VZ |
26753 | |
26754 | return 0; } | |
26755 | ||
26756 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
26757 | ||
26758 | int bar() { | |
e6cc62c6 VS |
26759 | |
26760 | ; | |
26761 | return 0; | |
26762 | } | |
26763 | _ACEOF | |
26764 | rm -f conftest.$ac_objext | |
26765 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 26766 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
26767 | ac_status=$? |
26768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26769 | (exit $ac_status); } && | |
789c5f4a | 26770 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
26771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26772 | (eval $ac_try) 2>&5 | |
26773 | ac_status=$? | |
26774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26775 | (exit $ac_status); }; }; then | |
90dd450c | 26776 | wx_cv_size_t_is_ulong=no |
698dcdb6 | 26777 | else |
e6cc62c6 VS |
26778 | echo "$as_me: failed program was:" >&5 |
26779 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26780 | ||
26781 | wx_cv_size_t_is_ulong=yes | |
26782 | ||
247f5006 | 26783 | fi |
789c5f4a | 26784 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 26785 | |
e6cc62c6 VS |
26786 | fi |
26787 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5 | |
26788 | echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6 | |
10f2d63a | 26789 | |
90dd450c | 26790 | if test "$wx_cv_size_t_is_ulong" = "yes"; then |
e6cc62c6 | 26791 | cat >>confdefs.h <<\_ACEOF |
90dd450c | 26792 | #define wxSIZE_T_IS_ULONG 1 |
e6cc62c6 | 26793 | _ACEOF |
4f14bcd8 GD |
26794 | |
26795 | fi | |
90dd450c | 26796 | fi |
1e487827 | 26797 | |
90dd450c | 26798 | ac_ext=c |
4f14bcd8 | 26799 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
26800 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
26801 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26802 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
698dcdb6 | 26803 | |
5c6fa7d2 | 26804 | |
8284b0c5 | 26805 | |
e6cc62c6 VS |
26806 | echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5 |
26807 | echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6 | |
26808 | if test "${wx_cv_struct_pw_gecos+set}" = set; then | |
26809 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 26810 | else |
e6cc62c6 VS |
26811 | |
26812 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 26813 | #line $LINENO "configure" |
e6cc62c6 VS |
26814 | /* confdefs.h. */ |
26815 | _ACEOF | |
26816 | cat confdefs.h >>conftest.$ac_ext | |
26817 | cat >>conftest.$ac_ext <<_ACEOF | |
26818 | /* end confdefs.h. */ | |
90dd450c | 26819 | #include <pwd.h> |
e6cc62c6 VS |
26820 | int |
26821 | main () | |
26822 | { | |
f6bcfd97 | 26823 | |
90dd450c VZ |
26824 | char *p; |
26825 | struct passwd *pw; | |
26826 | p = pw->pw_gecos; | |
e6cc62c6 VS |
26827 | |
26828 | ; | |
26829 | return 0; | |
26830 | } | |
26831 | _ACEOF | |
26832 | rm -f conftest.$ac_objext | |
26833 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 26834 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
26835 | ac_status=$? |
26836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26837 | (exit $ac_status); } && | |
789c5f4a | 26838 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
26839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26840 | (eval $ac_try) 2>&5 | |
26841 | ac_status=$? | |
26842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26843 | (exit $ac_status); }; }; then | |
26844 | ||
90dd450c | 26845 | wx_cv_struct_pw_gecos=yes |
e6cc62c6 | 26846 | |
10f2d63a | 26847 | else |
e6cc62c6 VS |
26848 | echo "$as_me: failed program was:" >&5 |
26849 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26850 | ||
26851 | ||
90dd450c | 26852 | wx_cv_struct_pw_gecos=no |
e6cc62c6 | 26853 | |
247f5006 VZ |
26854 | |
26855 | fi | |
789c5f4a | 26856 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 26857 | |
e6cc62c6 VS |
26858 | |
26859 | fi | |
26860 | echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5 | |
26861 | echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6 | |
c521c494 | 26862 | |
90dd450c | 26863 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
e6cc62c6 | 26864 | cat >>confdefs.h <<\_ACEOF |
90dd450c | 26865 | #define HAVE_PW_GECOS 1 |
e6cc62c6 | 26866 | _ACEOF |
c521c494 | 26867 | |
90dd450c | 26868 | fi |
4f14bcd8 | 26869 | |
8284b0c5 | 26870 | |
d29b553b | 26871 | if test "$wx_cv_sizeof_wchar_t" != "0"; then |
e6cc62c6 | 26872 | cat >>confdefs.h <<\_ACEOF |
d74f4b5a | 26873 | #define wxUSE_WCHAR_T 1 |
e6cc62c6 | 26874 | _ACEOF |
d74f4b5a | 26875 | |
8284b0c5 | 26876 | |
d74f4b5a VZ |
26877 | WCSLEN_FOUND=0 |
26878 | WCHAR_LINK= | |
e6cc62c6 VS |
26879 | |
26880 | for ac_func in wcslen | |
7a30264c | 26881 | do |
e6cc62c6 VS |
26882 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
26883 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
26884 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
26885 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
26886 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26887 | else | |
26888 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 26889 | #line $LINENO "configure" |
e6cc62c6 VS |
26890 | /* confdefs.h. */ |
26891 | _ACEOF | |
26892 | cat confdefs.h >>conftest.$ac_ext | |
26893 | cat >>conftest.$ac_ext <<_ACEOF | |
26894 | /* end confdefs.h. */ | |
7a30264c | 26895 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
26896 | which can conflict with char $ac_func (); below. |
26897 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26898 | <limits.h> exists even on freestanding compilers. */ | |
26899 | #ifdef __STDC__ | |
26900 | # include <limits.h> | |
26901 | #else | |
26902 | # include <assert.h> | |
26903 | #endif | |
4f14bcd8 | 26904 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
26905 | #ifdef __cplusplus |
26906 | extern "C" | |
26907 | { | |
26908 | #endif | |
4f14bcd8 | 26909 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
26910 | builtin and then its argument prototype would still apply. */ |
26911 | char $ac_func (); | |
7a30264c VZ |
26912 | /* The GNU C library defines this for functions which it implements |
26913 | to always fail with ENOSYS. Some functions are actually named | |
26914 | something starting with __ and the normal name is an alias. */ | |
26915 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
26916 | choke me | |
26917 | #else | |
e6cc62c6 VS |
26918 | char (*f) () = $ac_func; |
26919 | #endif | |
26920 | #ifdef __cplusplus | |
26921 | } | |
7a30264c VZ |
26922 | #endif |
26923 | ||
e6cc62c6 VS |
26924 | int |
26925 | main () | |
26926 | { | |
26927 | return f != $ac_func; | |
26928 | ; | |
26929 | return 0; | |
26930 | } | |
26931 | _ACEOF | |
26932 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26933 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 26934 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
26935 | ac_status=$? |
26936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26937 | (exit $ac_status); } && | |
789c5f4a | 26938 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
26939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26940 | (eval $ac_try) 2>&5 | |
26941 | ac_status=$? | |
26942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26943 | (exit $ac_status); }; }; then | |
26944 | eval "$as_ac_var=yes" | |
26945 | else | |
26946 | echo "$as_me: failed program was:" >&5 | |
26947 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26948 | ||
26949 | eval "$as_ac_var=no" | |
26950 | fi | |
789c5f4a | 26951 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
26952 | fi |
26953 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
26954 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
26955 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
26956 | cat >>confdefs.h <<_ACEOF | |
26957 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
26958 | _ACEOF | |
d74f4b5a | 26959 | WCSLEN_FOUND=1 |
7a30264c VZ |
26960 | fi |
26961 | done | |
9d8deca0 | 26962 | |
8284b0c5 | 26963 | |
d74f4b5a | 26964 | if test "$WCSLEN_FOUND" = 0; then |
7a30264c | 26965 | if test "$TOOLKIT" = "MSW"; then |
e6cc62c6 VS |
26966 | echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5 |
26967 | echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6 | |
26968 | if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then | |
26969 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 26970 | else |
e6cc62c6 | 26971 | ac_check_lib_save_LIBS=$LIBS |
7a30264c | 26972 | LIBS="-lmsvcrt $LIBS" |
e6cc62c6 | 26973 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 26974 | #line $LINENO "configure" |
e6cc62c6 VS |
26975 | /* confdefs.h. */ |
26976 | _ACEOF | |
26977 | cat confdefs.h >>conftest.$ac_ext | |
26978 | cat >>conftest.$ac_ext <<_ACEOF | |
26979 | /* end confdefs.h. */ | |
26980 | ||
4f14bcd8 | 26981 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
26982 | #ifdef __cplusplus |
26983 | extern "C" | |
26984 | #endif | |
4f14bcd8 | 26985 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
26986 | builtin and then its argument prototype would still apply. */ |
26987 | char wcslen (); | |
26988 | int | |
26989 | main () | |
26990 | { | |
26991 | wcslen (); | |
26992 | ; | |
26993 | return 0; | |
26994 | } | |
26995 | _ACEOF | |
26996 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26997 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 26998 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
26999 | ac_status=$? |
27000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27001 | (exit $ac_status); } && | |
789c5f4a | 27002 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
27003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27004 | (eval $ac_try) 2>&5 | |
27005 | ac_status=$? | |
27006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27007 | (exit $ac_status); }; }; then | |
27008 | ac_cv_lib_msvcrt_wcslen=yes | |
27009 | else | |
27010 | echo "$as_me: failed program was:" >&5 | |
27011 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27012 | ||
27013 | ac_cv_lib_msvcrt_wcslen=no | |
27014 | fi | |
789c5f4a | 27015 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
27016 | LIBS=$ac_check_lib_save_LIBS |
27017 | fi | |
27018 | echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5 | |
27019 | echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6 | |
27020 | if test $ac_cv_lib_msvcrt_wcslen = yes; then | |
d74f4b5a | 27021 | WCHAR_OK=1 |
d29b553b | 27022 | fi |
698dcdb6 | 27023 | |
7a30264c | 27024 | else |
e6cc62c6 VS |
27025 | echo "$as_me:$LINENO: checking for wcslen in -lw" >&5 |
27026 | echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6 | |
27027 | if test "${ac_cv_lib_w_wcslen+set}" = set; then | |
27028 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
698dcdb6 | 27029 | else |
e6cc62c6 | 27030 | ac_check_lib_save_LIBS=$LIBS |
7a30264c | 27031 | LIBS="-lw $LIBS" |
e6cc62c6 | 27032 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 27033 | #line $LINENO "configure" |
e6cc62c6 VS |
27034 | /* confdefs.h. */ |
27035 | _ACEOF | |
27036 | cat confdefs.h >>conftest.$ac_ext | |
27037 | cat >>conftest.$ac_ext <<_ACEOF | |
27038 | /* end confdefs.h. */ | |
27039 | ||
4f14bcd8 | 27040 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27041 | #ifdef __cplusplus |
27042 | extern "C" | |
27043 | #endif | |
4f14bcd8 | 27044 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27045 | builtin and then its argument prototype would still apply. */ |
27046 | char wcslen (); | |
27047 | int | |
27048 | main () | |
27049 | { | |
27050 | wcslen (); | |
27051 | ; | |
27052 | return 0; | |
27053 | } | |
27054 | _ACEOF | |
27055 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27056 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 27057 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
27058 | ac_status=$? |
27059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27060 | (exit $ac_status); } && | |
789c5f4a | 27061 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
27062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27063 | (eval $ac_try) 2>&5 | |
27064 | ac_status=$? | |
27065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27066 | (exit $ac_status); }; }; then | |
27067 | ac_cv_lib_w_wcslen=yes | |
27068 | else | |
27069 | echo "$as_me: failed program was:" >&5 | |
27070 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27071 | ||
27072 | ac_cv_lib_w_wcslen=no | |
27073 | fi | |
789c5f4a | 27074 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
27075 | LIBS=$ac_check_lib_save_LIBS |
27076 | fi | |
27077 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5 | |
27078 | echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6 | |
27079 | if test $ac_cv_lib_w_wcslen = yes; then | |
a0b9e27f | 27080 | |
7a30264c | 27081 | WCHAR_LINK=" -lw" |
d74f4b5a | 27082 | WCSLEN_FOUND=1 |
e6cc62c6 | 27083 | |
4f14bcd8 | 27084 | fi |
10f2d63a | 27085 | |
7a30264c | 27086 | fi |
d29b553b | 27087 | fi |
95c8801c | 27088 | |
d74f4b5a | 27089 | if test "$WCSLEN_FOUND" = 1; then |
e6cc62c6 | 27090 | cat >>confdefs.h <<\_ACEOF |
d74f4b5a | 27091 | #define HAVE_WCSLEN 1 |
e6cc62c6 | 27092 | _ACEOF |
10f2d63a | 27093 | |
d74f4b5a | 27094 | fi |
52127426 | 27095 | |
e6cc62c6 VS |
27096 | |
27097 | for ac_func in wcsrtombs | |
eb4efbdc | 27098 | do |
e6cc62c6 VS |
27099 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27100 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27101 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27102 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27103 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27104 | else | |
27105 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 27106 | #line $LINENO "configure" |
e6cc62c6 VS |
27107 | /* confdefs.h. */ |
27108 | _ACEOF | |
27109 | cat confdefs.h >>conftest.$ac_ext | |
27110 | cat >>conftest.$ac_ext <<_ACEOF | |
27111 | /* end confdefs.h. */ | |
eb4efbdc | 27112 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27113 | which can conflict with char $ac_func (); below. |
27114 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27115 | <limits.h> exists even on freestanding compilers. */ | |
27116 | #ifdef __STDC__ | |
27117 | # include <limits.h> | |
27118 | #else | |
27119 | # include <assert.h> | |
27120 | #endif | |
eb4efbdc | 27121 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27122 | #ifdef __cplusplus |
27123 | extern "C" | |
27124 | { | |
27125 | #endif | |
4f14bcd8 | 27126 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27127 | builtin and then its argument prototype would still apply. */ |
27128 | char $ac_func (); | |
10f2d63a VZ |
27129 | /* The GNU C library defines this for functions which it implements |
27130 | to always fail with ENOSYS. Some functions are actually named | |
27131 | something starting with __ and the normal name is an alias. */ | |
247f5006 | 27132 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
10f2d63a VZ |
27133 | choke me |
27134 | #else | |
e6cc62c6 VS |
27135 | char (*f) () = $ac_func; |
27136 | #endif | |
27137 | #ifdef __cplusplus | |
27138 | } | |
10f2d63a VZ |
27139 | #endif |
27140 | ||
e6cc62c6 VS |
27141 | int |
27142 | main () | |
27143 | { | |
27144 | return f != $ac_func; | |
27145 | ; | |
27146 | return 0; | |
27147 | } | |
27148 | _ACEOF | |
27149 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27150 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 27151 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
27152 | ac_status=$? |
27153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27154 | (exit $ac_status); } && | |
789c5f4a | 27155 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
27156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27157 | (eval $ac_try) 2>&5 | |
27158 | ac_status=$? | |
27159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27160 | (exit $ac_status); }; }; then | |
27161 | eval "$as_ac_var=yes" | |
27162 | else | |
27163 | echo "$as_me: failed program was:" >&5 | |
27164 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27165 | ||
27166 | eval "$as_ac_var=no" | |
27167 | fi | |
789c5f4a | 27168 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
27169 | fi |
27170 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27171 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27172 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27173 | cat >>confdefs.h <<_ACEOF | |
27174 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27175 | _ACEOF | |
270a909e | 27176 | |
4f14bcd8 | 27177 | fi |
247f5006 | 27178 | done |
1e487827 | 27179 | |
af15babd | 27180 | else |
e6cc62c6 VS |
27181 | { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5 |
27182 | echo "$as_me: WARNING: Wide character support is unavailable" >&2;} | |
7b4a847f | 27183 | fi |
52127426 | 27184 | |
8284b0c5 | 27185 | |
e6cc62c6 VS |
27186 | |
27187 | ac_ext=cc | |
247f5006 | 27188 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
27189 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
27190 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
27191 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
27192 | ||
af15babd | 27193 | |
247f5006 VZ |
27194 | |
27195 | for ac_func in vsnprintf | |
27196 | do | |
e6cc62c6 VS |
27197 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27198 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27199 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27200 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27201 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27202 | else | |
27203 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 27204 | #line $LINENO "configure" |
e6cc62c6 VS |
27205 | /* confdefs.h. */ |
27206 | _ACEOF | |
27207 | cat confdefs.h >>conftest.$ac_ext | |
27208 | cat >>conftest.$ac_ext <<_ACEOF | |
27209 | /* end confdefs.h. */ | |
247f5006 | 27210 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27211 | which can conflict with char $ac_func (); below. |
27212 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27213 | <limits.h> exists even on freestanding compilers. */ | |
27214 | #ifdef __STDC__ | |
27215 | # include <limits.h> | |
27216 | #else | |
27217 | # include <assert.h> | |
27218 | #endif | |
247f5006 VZ |
27219 | /* Override any gcc2 internal prototype to avoid an error. */ |
27220 | #ifdef __cplusplus | |
27221 | extern "C" | |
e6cc62c6 | 27222 | { |
247f5006 VZ |
27223 | #endif |
27224 | /* We use char because int might match the return type of a gcc2 | |
e6cc62c6 VS |
27225 | builtin and then its argument prototype would still apply. */ |
27226 | char $ac_func (); | |
247f5006 VZ |
27227 | /* The GNU C library defines this for functions which it implements |
27228 | to always fail with ENOSYS. Some functions are actually named | |
27229 | something starting with __ and the normal name is an alias. */ | |
27230 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27231 | choke me | |
27232 | #else | |
e6cc62c6 VS |
27233 | char (*f) () = $ac_func; |
27234 | #endif | |
27235 | #ifdef __cplusplus | |
27236 | } | |
247f5006 | 27237 | #endif |
af15babd | 27238 | |
e6cc62c6 VS |
27239 | int |
27240 | main () | |
27241 | { | |
27242 | return f != $ac_func; | |
27243 | ; | |
27244 | return 0; | |
27245 | } | |
27246 | _ACEOF | |
27247 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27248 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 27249 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
27250 | ac_status=$? |
27251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27252 | (exit $ac_status); } && | |
789c5f4a | 27253 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
27254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27255 | (eval $ac_try) 2>&5 | |
27256 | ac_status=$? | |
27257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27258 | (exit $ac_status); }; }; then | |
27259 | eval "$as_ac_var=yes" | |
27260 | else | |
27261 | echo "$as_me: failed program was:" >&5 | |
27262 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27263 | ||
27264 | eval "$as_ac_var=no" | |
27265 | fi | |
789c5f4a | 27266 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
27267 | fi |
27268 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27269 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27270 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27271 | cat >>confdefs.h <<_ACEOF | |
27272 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27273 | _ACEOF | |
52127426 | 27274 | |
5c6fa7d2 | 27275 | fi |
247f5006 | 27276 | done |
8284b0c5 | 27277 | |
4f14bcd8 | 27278 | |
8d90d2f2 | 27279 | if test "$ac_cv_func_vsnprintf" = "yes"; then |
e6cc62c6 VS |
27280 | echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5 |
27281 | echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6 | |
27282 | if test "${wx_cv_func_vsnprintf_decl+set}" = set; then | |
27283 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8d90d2f2 | 27284 | else |
e6cc62c6 VS |
27285 | |
27286 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 27287 | #line $LINENO "configure" |
e6cc62c6 VS |
27288 | /* confdefs.h. */ |
27289 | _ACEOF | |
27290 | cat confdefs.h >>conftest.$ac_ext | |
27291 | cat >>conftest.$ac_ext <<_ACEOF | |
27292 | /* end confdefs.h. */ | |
8d90d2f2 VZ |
27293 | |
27294 | #include <stdio.h> | |
27295 | #include <stdarg.h> | |
e6cc62c6 VS |
27296 | |
27297 | int | |
27298 | main () | |
27299 | { | |
8d90d2f2 VZ |
27300 | |
27301 | char *buf; | |
27302 | va_list ap; | |
27303 | vsnprintf(buf, 10u, "%s", ap); | |
e6cc62c6 VS |
27304 | |
27305 | ; | |
27306 | return 0; | |
27307 | } | |
27308 | _ACEOF | |
27309 | rm -f conftest.$ac_objext | |
27310 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 27311 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
27312 | ac_status=$? |
27313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27314 | (exit $ac_status); } && | |
789c5f4a | 27315 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
27316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27317 | (eval $ac_try) 2>&5 | |
27318 | ac_status=$? | |
27319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27320 | (exit $ac_status); }; }; then | |
8d90d2f2 VZ |
27321 | wx_cv_func_vsnprintf_decl=yes |
27322 | else | |
e6cc62c6 VS |
27323 | echo "$as_me: failed program was:" >&5 |
27324 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27325 | ||
27326 | wx_cv_func_vsnprintf_decl=no | |
27327 | ||
8d90d2f2 | 27328 | fi |
789c5f4a | 27329 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 27330 | |
8d90d2f2 | 27331 | |
e6cc62c6 VS |
27332 | fi |
27333 | echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5 | |
27334 | echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6 | |
8d90d2f2 VZ |
27335 | |
27336 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
e6cc62c6 | 27337 | cat >>confdefs.h <<\_ACEOF |
8d90d2f2 | 27338 | #define HAVE_VSNPRINTF_DECL 1 |
e6cc62c6 | 27339 | _ACEOF |
8d90d2f2 VZ |
27340 | |
27341 | fi | |
27342 | fi | |
27343 | ||
247f5006 | 27344 | if test "$wxUSE_UNICODE" = yes; then |
e6cc62c6 VS |
27345 | |
27346 | ||
27347 | ||
27348 | for ac_func in fputwc wprintf vswprintf | |
d74f4b5a | 27349 | do |
e6cc62c6 VS |
27350 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27351 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27352 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27353 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27354 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27355 | else | |
27356 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 27357 | #line $LINENO "configure" |
e6cc62c6 VS |
27358 | /* confdefs.h. */ |
27359 | _ACEOF | |
27360 | cat confdefs.h >>conftest.$ac_ext | |
27361 | cat >>conftest.$ac_ext <<_ACEOF | |
27362 | /* end confdefs.h. */ | |
d74f4b5a | 27363 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27364 | which can conflict with char $ac_func (); below. |
27365 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27366 | <limits.h> exists even on freestanding compilers. */ | |
27367 | #ifdef __STDC__ | |
27368 | # include <limits.h> | |
27369 | #else | |
27370 | # include <assert.h> | |
27371 | #endif | |
d74f4b5a | 27372 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 VZ |
27373 | #ifdef __cplusplus |
27374 | extern "C" | |
e6cc62c6 | 27375 | { |
247f5006 | 27376 | #endif |
d74f4b5a | 27377 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27378 | builtin and then its argument prototype would still apply. */ |
27379 | char $ac_func (); | |
d74f4b5a VZ |
27380 | /* The GNU C library defines this for functions which it implements |
27381 | to always fail with ENOSYS. Some functions are actually named | |
27382 | something starting with __ and the normal name is an alias. */ | |
27383 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27384 | choke me | |
27385 | #else | |
e6cc62c6 VS |
27386 | char (*f) () = $ac_func; |
27387 | #endif | |
27388 | #ifdef __cplusplus | |
27389 | } | |
d74f4b5a VZ |
27390 | #endif |
27391 | ||
e6cc62c6 VS |
27392 | int |
27393 | main () | |
27394 | { | |
27395 | return f != $ac_func; | |
27396 | ; | |
27397 | return 0; | |
27398 | } | |
27399 | _ACEOF | |
27400 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27401 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 27402 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
27403 | ac_status=$? |
27404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27405 | (exit $ac_status); } && | |
789c5f4a | 27406 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
27407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27408 | (eval $ac_try) 2>&5 | |
27409 | ac_status=$? | |
27410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27411 | (exit $ac_status); }; }; then | |
27412 | eval "$as_ac_var=yes" | |
27413 | else | |
27414 | echo "$as_me: failed program was:" >&5 | |
27415 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27416 | ||
27417 | eval "$as_ac_var=no" | |
27418 | fi | |
789c5f4a | 27419 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
27420 | fi |
27421 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27422 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27423 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27424 | cat >>confdefs.h <<_ACEOF | |
27425 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27426 | _ACEOF | |
d74f4b5a | 27427 | |
d74f4b5a VZ |
27428 | fi |
27429 | done | |
27430 | ||
8d90d2f2 | 27431 | |
e6cc62c6 VS |
27432 | echo "$as_me:$LINENO: checking for _vsnwprintf" >&5 |
27433 | echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6 | |
27434 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 27435 | #line $LINENO "configure" |
e6cc62c6 VS |
27436 | /* confdefs.h. */ |
27437 | _ACEOF | |
27438 | cat confdefs.h >>conftest.$ac_ext | |
27439 | cat >>conftest.$ac_ext <<_ACEOF | |
27440 | /* end confdefs.h. */ | |
79668cae | 27441 | #include <wchar.h> |
e6cc62c6 VS |
27442 | int |
27443 | main () | |
27444 | { | |
79668cae | 27445 | &_vsnwprintf; |
e6cc62c6 VS |
27446 | ; |
27447 | return 0; | |
27448 | } | |
27449 | _ACEOF | |
27450 | rm -f conftest.$ac_objext | |
27451 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 27452 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
27453 | ac_status=$? |
27454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27455 | (exit $ac_status); } && | |
789c5f4a | 27456 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
27457 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27458 | (eval $ac_try) 2>&5 | |
27459 | ac_status=$? | |
27460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27461 | (exit $ac_status); }; }; then | |
27462 | echo "$as_me:$LINENO: result: yes" >&5 | |
27463 | echo "${ECHO_T}yes" >&6 | |
27464 | cat >>confdefs.h <<\_ACEOF | |
79668cae | 27465 | #define HAVE__VSNWPRINTF 1 |
e6cc62c6 | 27466 | _ACEOF |
79668cae MB |
27467 | |
27468 | else | |
e6cc62c6 VS |
27469 | echo "$as_me: failed program was:" >&5 |
27470 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27471 | ||
27472 | echo "$as_me:$LINENO: result: no" >&5 | |
27473 | echo "${ECHO_T}no" >&6 | |
79668cae | 27474 | fi |
789c5f4a | 27475 | rm -f conftest.$ac_objext conftest.$ac_ext; |
d74f4b5a VZ |
27476 | fi |
27477 | ||
247f5006 VZ |
27478 | ac_ext=c |
27479 | ac_cpp='$CPP $CPPFLAGS' | |
e6cc62c6 VS |
27480 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
27481 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
27482 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
247f5006 VZ |
27483 | |
27484 | ||
27485 | ||
27486 | ||
4f14bcd8 | 27487 | if test "$TOOLKIT" != "MSW"; then |
af15babd | 27488 | |
8284b0c5 MB |
27489 | |
27490 | ||
e6cc62c6 VS |
27491 | |
27492 | ac_ext=cc | |
4f14bcd8 | 27493 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
27494 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
27495 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
27496 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
8284b0c5 | 27497 | |
52127426 | 27498 | |
e6cc62c6 VS |
27499 | |
27500 | ||
27501 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
b040e242 VS |
27502 | if test "${with_libiconv_prefix+set}" = set; then |
27503 | withval="$with_libiconv_prefix" | |
e6cc62c6 | 27504 | |
b040e242 VS |
27505 | for dir in `echo "$withval" | tr : ' '`; do |
27506 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
27507 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
27508 | done | |
b040e242 | 27509 | |
e6cc62c6 | 27510 | fi; |
b040e242 | 27511 | |
e6cc62c6 VS |
27512 | echo "$as_me:$LINENO: checking for iconv" >&5 |
27513 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
27514 | if test "${am_cv_func_iconv+set}" = set; then | |
27515 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
af15babd | 27516 | else |
e6cc62c6 | 27517 | |
b040e242 VS |
27518 | am_cv_func_iconv="no, consider installing GNU libiconv" |
27519 | am_cv_lib_iconv=no | |
e6cc62c6 | 27520 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 27521 | #line $LINENO "configure" |
e6cc62c6 VS |
27522 | /* confdefs.h. */ |
27523 | _ACEOF | |
27524 | cat confdefs.h >>conftest.$ac_ext | |
27525 | cat >>conftest.$ac_ext <<_ACEOF | |
27526 | /* end confdefs.h. */ | |
b040e242 | 27527 | #include <stdlib.h> |
4f14bcd8 | 27528 | #include <iconv.h> |
e6cc62c6 VS |
27529 | int |
27530 | main () | |
27531 | { | |
b040e242 VS |
27532 | iconv_t cd = iconv_open("",""); |
27533 | iconv(cd,NULL,NULL,NULL,NULL); | |
27534 | iconv_close(cd); | |
e6cc62c6 VS |
27535 | ; |
27536 | return 0; | |
27537 | } | |
27538 | _ACEOF | |
27539 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27540 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 27541 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
27542 | ac_status=$? |
27543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27544 | (exit $ac_status); } && | |
789c5f4a | 27545 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
27546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27547 | (eval $ac_try) 2>&5 | |
27548 | ac_status=$? | |
27549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27550 | (exit $ac_status); }; }; then | |
b040e242 | 27551 | am_cv_func_iconv=yes |
af15babd | 27552 | else |
e6cc62c6 VS |
27553 | echo "$as_me: failed program was:" >&5 |
27554 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27555 | ||
b040e242 | 27556 | fi |
789c5f4a | 27557 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
b040e242 VS |
27558 | if test "$am_cv_func_iconv" != yes; then |
27559 | am_save_LIBS="$LIBS" | |
27560 | LIBS="$LIBS -liconv" | |
e6cc62c6 | 27561 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 27562 | #line $LINENO "configure" |
e6cc62c6 VS |
27563 | /* confdefs.h. */ |
27564 | _ACEOF | |
27565 | cat confdefs.h >>conftest.$ac_ext | |
27566 | cat >>conftest.$ac_ext <<_ACEOF | |
27567 | /* end confdefs.h. */ | |
b040e242 VS |
27568 | #include <stdlib.h> |
27569 | #include <iconv.h> | |
e6cc62c6 VS |
27570 | int |
27571 | main () | |
27572 | { | |
b040e242 VS |
27573 | iconv_t cd = iconv_open("",""); |
27574 | iconv(cd,NULL,NULL,NULL,NULL); | |
27575 | iconv_close(cd); | |
e6cc62c6 VS |
27576 | ; |
27577 | return 0; | |
27578 | } | |
27579 | _ACEOF | |
27580 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27581 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 27582 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
27583 | ac_status=$? |
27584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27585 | (exit $ac_status); } && | |
789c5f4a | 27586 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
27587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27588 | (eval $ac_try) 2>&5 | |
27589 | ac_status=$? | |
27590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27591 | (exit $ac_status); }; }; then | |
b040e242 VS |
27592 | am_cv_lib_iconv=yes |
27593 | am_cv_func_iconv=yes | |
27594 | else | |
e6cc62c6 VS |
27595 | echo "$as_me: failed program was:" >&5 |
27596 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27597 | ||
af15babd | 27598 | fi |
789c5f4a | 27599 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
b040e242 VS |
27600 | LIBS="$am_save_LIBS" |
27601 | fi | |
247f5006 | 27602 | |
e6cc62c6 VS |
27603 | fi |
27604 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
27605 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
a0b9e27f | 27606 | if test "$am_cv_func_iconv" = yes; then |
e6cc62c6 VS |
27607 | |
27608 | cat >>confdefs.h <<\_ACEOF | |
b040e242 | 27609 | #define HAVE_ICONV 1 |
e6cc62c6 | 27610 | _ACEOF |
b040e242 | 27611 | |
e6cc62c6 VS |
27612 | echo "$as_me:$LINENO: checking if iconv needs const" >&5 |
27613 | echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6 | |
27614 | if test "${wx_cv_func_iconv_const+set}" = set; then | |
27615 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b040e242 | 27616 | else |
e6cc62c6 | 27617 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 27618 | #line $LINENO "configure" |
e6cc62c6 VS |
27619 | /* confdefs.h. */ |
27620 | _ACEOF | |
27621 | cat confdefs.h >>conftest.$ac_ext | |
27622 | cat >>conftest.$ac_ext <<_ACEOF | |
27623 | /* end confdefs.h. */ | |
b040e242 VS |
27624 | |
27625 | #include <stdlib.h> | |
27626 | #include <iconv.h> | |
27627 | extern | |
27628 | #ifdef __cplusplus | |
27629 | "C" | |
27630 | #endif | |
27631 | #if defined(__STDC__) || defined(__cplusplus) | |
27632 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
27633 | #else | |
27634 | size_t iconv(); | |
27635 | #endif | |
af15babd | 27636 | |
e6cc62c6 VS |
27637 | int |
27638 | main () | |
27639 | { | |
27640 | ||
27641 | ; | |
27642 | return 0; | |
27643 | } | |
27644 | _ACEOF | |
27645 | rm -f conftest.$ac_objext | |
27646 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 27647 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
27648 | ac_status=$? |
27649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27650 | (exit $ac_status); } && | |
789c5f4a | 27651 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
27652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27653 | (eval $ac_try) 2>&5 | |
27654 | ac_status=$? | |
27655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27656 | (exit $ac_status); }; }; then | |
b7043674 | 27657 | wx_cv_func_iconv_const="no" |
b040e242 | 27658 | else |
e6cc62c6 VS |
27659 | echo "$as_me: failed program was:" >&5 |
27660 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27661 | ||
27662 | wx_cv_func_iconv_const="yes" | |
27663 | ||
247f5006 | 27664 | fi |
789c5f4a | 27665 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 27666 | |
e6cc62c6 VS |
27667 | fi |
27668 | echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5 | |
27669 | echo "${ECHO_T}$wx_cv_func_iconv_const" >&6 | |
b7043674 VZ |
27670 | |
27671 | iconv_const= | |
1c405bb5 | 27672 | if test "x$wx_cv_func_iconv_const" = "xyes"; then |
b7043674 VZ |
27673 | iconv_const="const" |
27674 | fi | |
27675 | ||
e6cc62c6 VS |
27676 | |
27677 | cat >>confdefs.h <<_ACEOF | |
f09359cf | 27678 | #define ICONV_CONST $iconv_const |
e6cc62c6 | 27679 | _ACEOF |
b040e242 VS |
27680 | |
27681 | fi | |
27682 | LIBICONV= | |
27683 | if test "$am_cv_lib_iconv" = yes; then | |
27684 | LIBICONV="-liconv" | |
27685 | fi | |
e6cc62c6 | 27686 | |
b040e242 VS |
27687 | |
27688 | LIBS="$LIBICONV $LIBS" | |
4f14bcd8 | 27689 | ac_ext=c |
4f14bcd8 | 27690 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
27691 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
27692 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
27693 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7b4a847f | 27694 | |
5c6fa7d2 | 27695 | |
8284b0c5 | 27696 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
e6cc62c6 VS |
27697 | |
27698 | for ac_func in sigaction | |
af15babd | 27699 | do |
e6cc62c6 VS |
27700 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27701 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27702 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27703 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27704 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27705 | else | |
27706 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 27707 | #line $LINENO "configure" |
e6cc62c6 VS |
27708 | /* confdefs.h. */ |
27709 | _ACEOF | |
27710 | cat confdefs.h >>conftest.$ac_ext | |
27711 | cat >>conftest.$ac_ext <<_ACEOF | |
27712 | /* end confdefs.h. */ | |
af15babd | 27713 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27714 | which can conflict with char $ac_func (); below. |
27715 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27716 | <limits.h> exists even on freestanding compilers. */ | |
27717 | #ifdef __STDC__ | |
27718 | # include <limits.h> | |
27719 | #else | |
27720 | # include <assert.h> | |
27721 | #endif | |
af15babd | 27722 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27723 | #ifdef __cplusplus |
27724 | extern "C" | |
27725 | { | |
27726 | #endif | |
af15babd | 27727 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27728 | builtin and then its argument prototype would still apply. */ |
27729 | char $ac_func (); | |
af15babd VZ |
27730 | /* The GNU C library defines this for functions which it implements |
27731 | to always fail with ENOSYS. Some functions are actually named | |
27732 | something starting with __ and the normal name is an alias. */ | |
27733 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27734 | choke me | |
27735 | #else | |
e6cc62c6 VS |
27736 | char (*f) () = $ac_func; |
27737 | #endif | |
27738 | #ifdef __cplusplus | |
27739 | } | |
af15babd VZ |
27740 | #endif |
27741 | ||
e6cc62c6 VS |
27742 | int |
27743 | main () | |
27744 | { | |
27745 | return f != $ac_func; | |
27746 | ; | |
27747 | return 0; | |
27748 | } | |
27749 | _ACEOF | |
27750 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27751 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 27752 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
27753 | ac_status=$? |
27754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27755 | (exit $ac_status); } && | |
789c5f4a | 27756 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
27757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27758 | (eval $ac_try) 2>&5 | |
27759 | ac_status=$? | |
27760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27761 | (exit $ac_status); }; }; then | |
27762 | eval "$as_ac_var=yes" | |
27763 | else | |
27764 | echo "$as_me: failed program was:" >&5 | |
27765 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27766 | ||
27767 | eval "$as_ac_var=no" | |
27768 | fi | |
789c5f4a | 27769 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
27770 | fi |
27771 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27772 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27773 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27774 | cat >>confdefs.h <<_ACEOF | |
27775 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27776 | _ACEOF | |
7b4a847f | 27777 | |
4f14bcd8 GD |
27778 | fi |
27779 | done | |
27780 | ||
8284b0c5 | 27781 | |
4f14bcd8 | 27782 | if test "$ac_cv_func_sigaction" = "no"; then |
e6cc62c6 VS |
27783 | { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5 |
27784 | echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;} | |
4f14bcd8 GD |
27785 | wxUSE_ON_FATAL_EXCEPTION=no |
27786 | fi | |
27787 | ||
27788 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
e6cc62c6 VS |
27789 | |
27790 | ||
27791 | ac_ext=cc | |
5c6fa7d2 | 27792 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
27793 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
27794 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
27795 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
7b4a847f | 27796 | |
5c6fa7d2 | 27797 | |
e6cc62c6 VS |
27798 | echo "$as_me:$LINENO: checking for sa_handler type" >&5 |
27799 | echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6 | |
27800 | if test "${wx_cv_type_sa_handler+set}" = set; then | |
27801 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 27802 | else |
e6cc62c6 VS |
27803 | |
27804 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 27805 | #line $LINENO "configure" |
e6cc62c6 VS |
27806 | /* confdefs.h. */ |
27807 | _ACEOF | |
27808 | cat confdefs.h >>conftest.$ac_ext | |
27809 | cat >>conftest.$ac_ext <<_ACEOF | |
27810 | /* end confdefs.h. */ | |
4f14bcd8 | 27811 | #include <signal.h> |
e6cc62c6 VS |
27812 | int |
27813 | main () | |
27814 | { | |
4f14bcd8 GD |
27815 | |
27816 | extern void testSigHandler(int); | |
27817 | ||
27818 | struct sigaction sa; | |
27819 | sa.sa_handler = testSigHandler; | |
e6cc62c6 VS |
27820 | |
27821 | ; | |
27822 | return 0; | |
27823 | } | |
27824 | _ACEOF | |
27825 | rm -f conftest.$ac_objext | |
27826 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 27827 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
27828 | ac_status=$? |
27829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27830 | (exit $ac_status); } && | |
789c5f4a | 27831 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
27832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27833 | (eval $ac_try) 2>&5 | |
27834 | ac_status=$? | |
27835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27836 | (exit $ac_status); }; }; then | |
27837 | ||
4f14bcd8 | 27838 | wx_cv_type_sa_handler=int |
e6cc62c6 | 27839 | |
af15babd | 27840 | else |
e6cc62c6 VS |
27841 | echo "$as_me: failed program was:" >&5 |
27842 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27843 | ||
27844 | ||
4f14bcd8 | 27845 | wx_cv_type_sa_handler=void |
e6cc62c6 | 27846 | |
247f5006 | 27847 | fi |
789c5f4a | 27848 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 27849 | |
e6cc62c6 VS |
27850 | fi |
27851 | echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5 | |
27852 | echo "${ECHO_T}$wx_cv_type_sa_handler" >&6 | |
4f14bcd8 GD |
27853 | |
27854 | ac_ext=c | |
4f14bcd8 | 27855 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
27856 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
27857 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
27858 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
579d8138 | 27859 | |
8284b0c5 | 27860 | |
e6cc62c6 | 27861 | cat >>confdefs.h <<_ACEOF |
4f14bcd8 | 27862 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler |
e6cc62c6 | 27863 | _ACEOF |
af15babd | 27864 | |
4f14bcd8 GD |
27865 | fi |
27866 | fi | |
af15babd | 27867 | |
e6cc62c6 VS |
27868 | |
27869 | ||
a1d22ad7 | 27870 | for ac_func in mkstemp mktemp |
af15babd | 27871 | do |
e6cc62c6 VS |
27872 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27873 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27874 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27875 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27876 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27877 | else | |
27878 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 27879 | #line $LINENO "configure" |
e6cc62c6 VS |
27880 | /* confdefs.h. */ |
27881 | _ACEOF | |
27882 | cat confdefs.h >>conftest.$ac_ext | |
27883 | cat >>conftest.$ac_ext <<_ACEOF | |
27884 | /* end confdefs.h. */ | |
af15babd | 27885 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27886 | which can conflict with char $ac_func (); below. |
27887 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27888 | <limits.h> exists even on freestanding compilers. */ | |
27889 | #ifdef __STDC__ | |
27890 | # include <limits.h> | |
27891 | #else | |
27892 | # include <assert.h> | |
27893 | #endif | |
af15babd | 27894 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27895 | #ifdef __cplusplus |
27896 | extern "C" | |
27897 | { | |
27898 | #endif | |
af15babd | 27899 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27900 | builtin and then its argument prototype would still apply. */ |
27901 | char $ac_func (); | |
af15babd VZ |
27902 | /* The GNU C library defines this for functions which it implements |
27903 | to always fail with ENOSYS. Some functions are actually named | |
27904 | something starting with __ and the normal name is an alias. */ | |
27905 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27906 | choke me | |
27907 | #else | |
e6cc62c6 VS |
27908 | char (*f) () = $ac_func; |
27909 | #endif | |
27910 | #ifdef __cplusplus | |
27911 | } | |
af15babd VZ |
27912 | #endif |
27913 | ||
e6cc62c6 VS |
27914 | int |
27915 | main () | |
27916 | { | |
27917 | return f != $ac_func; | |
27918 | ; | |
27919 | return 0; | |
27920 | } | |
27921 | _ACEOF | |
27922 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27923 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 27924 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
27925 | ac_status=$? |
27926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27927 | (exit $ac_status); } && | |
789c5f4a | 27928 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
27929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27930 | (eval $ac_try) 2>&5 | |
27931 | ac_status=$? | |
27932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27933 | (exit $ac_status); }; }; then | |
27934 | eval "$as_ac_var=yes" | |
27935 | else | |
27936 | echo "$as_me: failed program was:" >&5 | |
27937 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27938 | ||
27939 | eval "$as_ac_var=no" | |
27940 | fi | |
789c5f4a | 27941 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
27942 | fi |
27943 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27944 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27945 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27946 | cat >>confdefs.h <<_ACEOF | |
27947 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27948 | _ACEOF | |
ade35f11 | 27949 | break |
ade35f11 VZ |
27950 | fi |
27951 | done | |
27952 | ||
8284b0c5 | 27953 | |
e6cc62c6 VS |
27954 | echo "$as_me:$LINENO: checking for statfs" >&5 |
27955 | echo $ECHO_N "checking for statfs... $ECHO_C" >&6 | |
27956 | if test "${wx_cv_func_statfs+set}" = set; then | |
27957 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4f14bcd8 | 27958 | else |
e6cc62c6 | 27959 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 27960 | #line $LINENO "configure" |
e6cc62c6 VS |
27961 | /* confdefs.h. */ |
27962 | _ACEOF | |
27963 | cat confdefs.h >>conftest.$ac_ext | |
27964 | cat >>conftest.$ac_ext <<_ACEOF | |
27965 | /* end confdefs.h. */ | |
4f14bcd8 GD |
27966 | |
27967 | #if defined(__BSD__) | |
27968 | #include <sys/param.h> | |
27969 | #include <sys/mount.h> | |
27970 | #else | |
27971 | #include <sys/vfs.h> | |
27972 | #endif | |
e6cc62c6 VS |
27973 | |
27974 | int | |
27975 | main () | |
27976 | { | |
4f14bcd8 GD |
27977 | |
27978 | long l; | |
27979 | struct statfs fs; | |
27980 | statfs("/", &fs); | |
27981 | l = fs.f_bsize; | |
27982 | l += fs.f_blocks; | |
27983 | l += fs.f_bavail; | |
e6cc62c6 VS |
27984 | |
27985 | ; | |
27986 | return 0; | |
27987 | } | |
27988 | _ACEOF | |
27989 | rm -f conftest.$ac_objext | |
27990 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 27991 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
27992 | ac_status=$? |
27993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27994 | (exit $ac_status); } && | |
789c5f4a | 27995 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
27996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27997 | (eval $ac_try) 2>&5 | |
27998 | ac_status=$? | |
27999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28000 | (exit $ac_status); }; }; then | |
28001 | ||
4f14bcd8 | 28002 | wx_cv_func_statfs=yes |
e6cc62c6 | 28003 | |
4f14bcd8 | 28004 | else |
e6cc62c6 VS |
28005 | echo "$as_me: failed program was:" >&5 |
28006 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28007 | ||
28008 | ||
4f14bcd8 | 28009 | wx_cv_func_statfs=no |
e6cc62c6 | 28010 | |
8284b0c5 | 28011 | |
247f5006 | 28012 | fi |
789c5f4a | 28013 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 28014 | |
e6cc62c6 VS |
28015 | fi |
28016 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5 | |
28017 | echo "${ECHO_T}$wx_cv_func_statfs" >&6 | |
4f14bcd8 GD |
28018 | |
28019 | if test "$wx_cv_func_statfs" = "yes"; then | |
54ab82b3 | 28020 | wx_cv_type_statvfs_t="struct statfs" |
e6cc62c6 | 28021 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 28022 | #define HAVE_STATFS 1 |
e6cc62c6 | 28023 | _ACEOF |
4f14bcd8 GD |
28024 | |
28025 | else | |
e6cc62c6 VS |
28026 | echo "$as_me:$LINENO: checking for statvfs" >&5 |
28027 | echo $ECHO_N "checking for statvfs... $ECHO_C" >&6 | |
28028 | if test "${wx_cv_func_statvfs+set}" = set; then | |
28029 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
af15babd | 28030 | else |
e6cc62c6 | 28031 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 28032 | #line $LINENO "configure" |
e6cc62c6 VS |
28033 | /* confdefs.h. */ |
28034 | _ACEOF | |
28035 | cat confdefs.h >>conftest.$ac_ext | |
28036 | cat >>conftest.$ac_ext <<_ACEOF | |
28037 | /* end confdefs.h. */ | |
af15babd | 28038 | |
54ab82b3 VZ |
28039 | #include <stddef.h> |
28040 | #include <sys/statvfs.h> | |
e6cc62c6 VS |
28041 | |
28042 | int | |
28043 | main () | |
28044 | { | |
af15babd | 28045 | |
54ab82b3 | 28046 | statvfs("/", NULL); |
e6cc62c6 VS |
28047 | |
28048 | ; | |
28049 | return 0; | |
28050 | } | |
28051 | _ACEOF | |
28052 | rm -f conftest.$ac_objext | |
28053 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 28054 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
28055 | ac_status=$? |
28056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28057 | (exit $ac_status); } && | |
789c5f4a | 28058 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
28059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28060 | (eval $ac_try) 2>&5 | |
28061 | ac_status=$? | |
28062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28063 | (exit $ac_status); }; }; then | |
54ab82b3 | 28064 | wx_cv_func_statvfs=yes |
af15babd | 28065 | else |
e6cc62c6 VS |
28066 | echo "$as_me: failed program was:" >&5 |
28067 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28068 | ||
28069 | wx_cv_func_statvfs=no | |
28070 | ||
247f5006 | 28071 | fi |
789c5f4a | 28072 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 28073 | |
e6cc62c6 VS |
28074 | fi |
28075 | echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5 | |
28076 | echo "${ECHO_T}$wx_cv_func_statvfs" >&6 | |
af15babd | 28077 | |
4f14bcd8 | 28078 | if test "$wx_cv_func_statvfs" = "yes"; then |
e6cc62c6 VS |
28079 | |
28080 | ||
28081 | ac_ext=cc | |
54ab82b3 | 28082 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
28083 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
28084 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28085 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
54ab82b3 VZ |
28086 | |
28087 | ||
e6cc62c6 VS |
28088 | echo "$as_me:$LINENO: checking for statvfs argument type" >&5 |
28089 | echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6 | |
28090 | if test "${wx_cv_type_statvfs_t+set}" = set; then | |
28091 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
54ab82b3 | 28092 | else |
e6cc62c6 | 28093 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 28094 | #line $LINENO "configure" |
e6cc62c6 VS |
28095 | /* confdefs.h. */ |
28096 | _ACEOF | |
28097 | cat confdefs.h >>conftest.$ac_ext | |
28098 | cat >>conftest.$ac_ext <<_ACEOF | |
28099 | /* end confdefs.h. */ | |
54ab82b3 VZ |
28100 | |
28101 | #include <sys/statvfs.h> | |
e6cc62c6 VS |
28102 | |
28103 | int | |
28104 | main () | |
28105 | { | |
54ab82b3 VZ |
28106 | |
28107 | long l; | |
28108 | statvfs_t fs; | |
28109 | statvfs("/", &fs); | |
28110 | l = fs.f_bsize; | |
28111 | l += fs.f_blocks; | |
28112 | l += fs.f_bavail; | |
e6cc62c6 VS |
28113 | |
28114 | ; | |
28115 | return 0; | |
28116 | } | |
28117 | _ACEOF | |
28118 | rm -f conftest.$ac_objext | |
28119 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 28120 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
28121 | ac_status=$? |
28122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28123 | (exit $ac_status); } && | |
789c5f4a | 28124 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
28125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28126 | (eval $ac_try) 2>&5 | |
28127 | ac_status=$? | |
28128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28129 | (exit $ac_status); }; }; then | |
54ab82b3 VZ |
28130 | wx_cv_type_statvfs_t=statvfs_t |
28131 | else | |
e6cc62c6 VS |
28132 | echo "$as_me: failed program was:" >&5 |
28133 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28134 | ||
28135 | ||
28136 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 28137 | #line $LINENO "configure" |
e6cc62c6 VS |
28138 | /* confdefs.h. */ |
28139 | _ACEOF | |
28140 | cat confdefs.h >>conftest.$ac_ext | |
28141 | cat >>conftest.$ac_ext <<_ACEOF | |
28142 | /* end confdefs.h. */ | |
54ab82b3 VZ |
28143 | |
28144 | #include <sys/statvfs.h> | |
e6cc62c6 VS |
28145 | |
28146 | int | |
28147 | main () | |
28148 | { | |
54ab82b3 VZ |
28149 | |
28150 | long l; | |
65d8ef1e | 28151 | struct statvfs fs; |
54ab82b3 VZ |
28152 | statvfs("/", &fs); |
28153 | l = fs.f_bsize; | |
28154 | l += fs.f_blocks; | |
28155 | l += fs.f_bavail; | |
e6cc62c6 VS |
28156 | |
28157 | ; | |
28158 | return 0; | |
28159 | } | |
28160 | _ACEOF | |
28161 | rm -f conftest.$ac_objext | |
28162 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 28163 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
28164 | ac_status=$? |
28165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28166 | (exit $ac_status); } && | |
789c5f4a | 28167 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
28168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28169 | (eval $ac_try) 2>&5 | |
28170 | ac_status=$? | |
28171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28172 | (exit $ac_status); }; }; then | |
54ab82b3 VZ |
28173 | wx_cv_type_statvfs_t="struct statvfs" |
28174 | else | |
e6cc62c6 VS |
28175 | echo "$as_me: failed program was:" >&5 |
28176 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28177 | ||
28178 | wx_cv_type_statvfs_t="unknown" | |
28179 | ||
54ab82b3 | 28180 | fi |
789c5f4a | 28181 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
28182 | |
28183 | ||
54ab82b3 | 28184 | fi |
789c5f4a | 28185 | rm -f conftest.$ac_objext conftest.$ac_ext |
54ab82b3 | 28186 | |
e6cc62c6 VS |
28187 | fi |
28188 | echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5 | |
28189 | echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6 | |
54ab82b3 VZ |
28190 | |
28191 | ac_ext=c | |
54ab82b3 | 28192 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
28193 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
28194 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28195 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
54ab82b3 VZ |
28196 | |
28197 | ||
28198 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
e6cc62c6 | 28199 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 28200 | #define HAVE_STATVFS 1 |
e6cc62c6 | 28201 | _ACEOF |
af15babd | 28202 | |
54ab82b3 | 28203 | fi |
4f14bcd8 | 28204 | else |
54ab82b3 | 28205 | wx_cv_type_statvfs_t="unknown" |
4f14bcd8 GD |
28206 | fi |
28207 | fi | |
af15babd | 28208 | |
54ab82b3 | 28209 | if test "$wx_cv_type_statvfs_t" != "unknown"; then |
e6cc62c6 | 28210 | cat >>confdefs.h <<_ACEOF |
54ab82b3 | 28211 | #define WX_STATFS_T $wx_cv_type_statvfs_t |
e6cc62c6 | 28212 | _ACEOF |
54ab82b3 VZ |
28213 | |
28214 | else | |
e6cc62c6 VS |
28215 | { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5 |
28216 | echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;} | |
54ab82b3 VZ |
28217 | fi |
28218 | ||
4f14bcd8 | 28219 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
e6cc62c6 VS |
28220 | |
28221 | ||
28222 | for ac_func in fcntl flock | |
af15babd | 28223 | do |
e6cc62c6 VS |
28224 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
28225 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28226 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28227 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28228 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28229 | else | |
28230 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 28231 | #line $LINENO "configure" |
e6cc62c6 VS |
28232 | /* confdefs.h. */ |
28233 | _ACEOF | |
28234 | cat confdefs.h >>conftest.$ac_ext | |
28235 | cat >>conftest.$ac_ext <<_ACEOF | |
28236 | /* end confdefs.h. */ | |
af15babd | 28237 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
28238 | which can conflict with char $ac_func (); below. |
28239 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28240 | <limits.h> exists even on freestanding compilers. */ | |
28241 | #ifdef __STDC__ | |
28242 | # include <limits.h> | |
28243 | #else | |
28244 | # include <assert.h> | |
28245 | #endif | |
af15babd | 28246 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28247 | #ifdef __cplusplus |
28248 | extern "C" | |
28249 | { | |
28250 | #endif | |
af15babd | 28251 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28252 | builtin and then its argument prototype would still apply. */ |
28253 | char $ac_func (); | |
af15babd VZ |
28254 | /* The GNU C library defines this for functions which it implements |
28255 | to always fail with ENOSYS. Some functions are actually named | |
28256 | something starting with __ and the normal name is an alias. */ | |
28257 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28258 | choke me | |
28259 | #else | |
e6cc62c6 VS |
28260 | char (*f) () = $ac_func; |
28261 | #endif | |
28262 | #ifdef __cplusplus | |
28263 | } | |
af15babd VZ |
28264 | #endif |
28265 | ||
e6cc62c6 VS |
28266 | int |
28267 | main () | |
28268 | { | |
28269 | return f != $ac_func; | |
28270 | ; | |
28271 | return 0; | |
28272 | } | |
28273 | _ACEOF | |
28274 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28275 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 28276 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
28277 | ac_status=$? |
28278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28279 | (exit $ac_status); } && | |
789c5f4a | 28280 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
28281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28282 | (eval $ac_try) 2>&5 | |
28283 | ac_status=$? | |
28284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28285 | (exit $ac_status); }; }; then | |
28286 | eval "$as_ac_var=yes" | |
28287 | else | |
28288 | echo "$as_me: failed program was:" >&5 | |
28289 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28290 | ||
28291 | eval "$as_ac_var=no" | |
28292 | fi | |
789c5f4a | 28293 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
28294 | fi |
28295 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28296 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28297 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28298 | cat >>confdefs.h <<_ACEOF | |
28299 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28300 | _ACEOF | |
4f14bcd8 | 28301 | break |
af15babd VZ |
28302 | fi |
28303 | done | |
28304 | ||
8284b0c5 | 28305 | |
4f14bcd8 | 28306 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
e6cc62c6 VS |
28307 | { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5 |
28308 | echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;} | |
4f14bcd8 GD |
28309 | wxUSE_SNGLINST_CHECKER=no |
28310 | fi | |
28311 | fi | |
af15babd | 28312 | |
e6cc62c6 | 28313 | |
4f14bcd8 | 28314 | for ac_func in timegm |
af15babd | 28315 | do |
e6cc62c6 VS |
28316 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
28317 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28318 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28319 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28320 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28321 | else | |
28322 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 28323 | #line $LINENO "configure" |
e6cc62c6 VS |
28324 | /* confdefs.h. */ |
28325 | _ACEOF | |
28326 | cat confdefs.h >>conftest.$ac_ext | |
28327 | cat >>conftest.$ac_ext <<_ACEOF | |
28328 | /* end confdefs.h. */ | |
af15babd | 28329 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
28330 | which can conflict with char $ac_func (); below. |
28331 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28332 | <limits.h> exists even on freestanding compilers. */ | |
28333 | #ifdef __STDC__ | |
28334 | # include <limits.h> | |
28335 | #else | |
28336 | # include <assert.h> | |
28337 | #endif | |
af15babd | 28338 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28339 | #ifdef __cplusplus |
28340 | extern "C" | |
28341 | { | |
28342 | #endif | |
af15babd | 28343 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28344 | builtin and then its argument prototype would still apply. */ |
28345 | char $ac_func (); | |
af15babd VZ |
28346 | /* The GNU C library defines this for functions which it implements |
28347 | to always fail with ENOSYS. Some functions are actually named | |
28348 | something starting with __ and the normal name is an alias. */ | |
247f5006 VZ |
28349 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
28350 | choke me | |
28351 | #else | |
e6cc62c6 VS |
28352 | char (*f) () = $ac_func; |
28353 | #endif | |
28354 | #ifdef __cplusplus | |
28355 | } | |
247f5006 VZ |
28356 | #endif |
28357 | ||
e6cc62c6 VS |
28358 | int |
28359 | main () | |
28360 | { | |
28361 | return f != $ac_func; | |
28362 | ; | |
28363 | return 0; | |
28364 | } | |
28365 | _ACEOF | |
28366 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28367 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 28368 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
28369 | ac_status=$? |
28370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28371 | (exit $ac_status); } && | |
789c5f4a | 28372 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
28373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28374 | (eval $ac_try) 2>&5 | |
28375 | ac_status=$? | |
28376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28377 | (exit $ac_status); }; }; then | |
28378 | eval "$as_ac_var=yes" | |
28379 | else | |
28380 | echo "$as_me: failed program was:" >&5 | |
28381 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28382 | ||
28383 | eval "$as_ac_var=no" | |
28384 | fi | |
789c5f4a | 28385 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
28386 | fi |
28387 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28388 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28389 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28390 | cat >>confdefs.h <<_ACEOF | |
28391 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28392 | _ACEOF | |
703e0a69 | 28393 | |
af15babd VZ |
28394 | fi |
28395 | done | |
28396 | ||
8284b0c5 | 28397 | |
e6cc62c6 VS |
28398 | |
28399 | ||
4f14bcd8 | 28400 | for ac_func in putenv setenv |
10f2d63a | 28401 | do |
e6cc62c6 VS |
28402 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
28403 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28404 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28405 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28406 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28407 | else | |
28408 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 28409 | #line $LINENO "configure" |
e6cc62c6 VS |
28410 | /* confdefs.h. */ |
28411 | _ACEOF | |
28412 | cat confdefs.h >>conftest.$ac_ext | |
28413 | cat >>conftest.$ac_ext <<_ACEOF | |
28414 | /* end confdefs.h. */ | |
af15babd | 28415 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
28416 | which can conflict with char $ac_func (); below. |
28417 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28418 | <limits.h> exists even on freestanding compilers. */ | |
28419 | #ifdef __STDC__ | |
28420 | # include <limits.h> | |
28421 | #else | |
28422 | # include <assert.h> | |
28423 | #endif | |
af15babd | 28424 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28425 | #ifdef __cplusplus |
28426 | extern "C" | |
28427 | { | |
28428 | #endif | |
af15babd | 28429 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28430 | builtin and then its argument prototype would still apply. */ |
28431 | char $ac_func (); | |
af15babd VZ |
28432 | /* The GNU C library defines this for functions which it implements |
28433 | to always fail with ENOSYS. Some functions are actually named | |
28434 | something starting with __ and the normal name is an alias. */ | |
28435 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28436 | choke me | |
28437 | #else | |
e6cc62c6 VS |
28438 | char (*f) () = $ac_func; |
28439 | #endif | |
28440 | #ifdef __cplusplus | |
28441 | } | |
af15babd VZ |
28442 | #endif |
28443 | ||
e6cc62c6 VS |
28444 | int |
28445 | main () | |
28446 | { | |
28447 | return f != $ac_func; | |
28448 | ; | |
28449 | return 0; | |
28450 | } | |
28451 | _ACEOF | |
28452 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28453 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 28454 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
28455 | ac_status=$? |
28456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28457 | (exit $ac_status); } && | |
789c5f4a | 28458 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
28459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28460 | (eval $ac_try) 2>&5 | |
28461 | ac_status=$? | |
28462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28463 | (exit $ac_status); }; }; then | |
28464 | eval "$as_ac_var=yes" | |
28465 | else | |
28466 | echo "$as_me: failed program was:" >&5 | |
28467 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28468 | ||
28469 | eval "$as_ac_var=no" | |
28470 | fi | |
789c5f4a | 28471 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
28472 | fi |
28473 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28474 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28475 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28476 | cat >>confdefs.h <<_ACEOF | |
28477 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28478 | _ACEOF | |
4f14bcd8 | 28479 | break |
af15babd | 28480 | fi |
af15babd VZ |
28481 | done |
28482 | ||
8284b0c5 | 28483 | |
4f14bcd8 GD |
28484 | HAVE_SOME_SLEEP_FUNC=0 |
28485 | if test "$USE_BEOS" = 1; then | |
e6cc62c6 | 28486 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 28487 | #define HAVE_SLEEP 1 |
e6cc62c6 | 28488 | _ACEOF |
af15babd | 28489 | |
4f14bcd8 | 28490 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
28491 | fi |
28492 | ||
4f14bcd8 | 28493 | if test "$USE_DARWIN" = 1; then |
e6cc62c6 | 28494 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 28495 | #define HAVE_USLEEP 1 |
e6cc62c6 | 28496 | _ACEOF |
10f2d63a | 28497 | |
4f14bcd8 | 28498 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
28499 | fi |
28500 | ||
4f14bcd8 GD |
28501 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
28502 | POSIX4_LINK= | |
e6cc62c6 VS |
28503 | |
28504 | for ac_func in nanosleep | |
4f14bcd8 | 28505 | do |
e6cc62c6 VS |
28506 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
28507 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28508 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28509 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28510 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28511 | else | |
28512 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 28513 | #line $LINENO "configure" |
e6cc62c6 VS |
28514 | /* confdefs.h. */ |
28515 | _ACEOF | |
28516 | cat confdefs.h >>conftest.$ac_ext | |
28517 | cat >>conftest.$ac_ext <<_ACEOF | |
28518 | /* end confdefs.h. */ | |
4f14bcd8 | 28519 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
28520 | which can conflict with char $ac_func (); below. |
28521 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28522 | <limits.h> exists even on freestanding compilers. */ | |
28523 | #ifdef __STDC__ | |
28524 | # include <limits.h> | |
28525 | #else | |
28526 | # include <assert.h> | |
28527 | #endif | |
10f2d63a | 28528 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28529 | #ifdef __cplusplus |
28530 | extern "C" | |
28531 | { | |
28532 | #endif | |
10f2d63a | 28533 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28534 | builtin and then its argument prototype would still apply. */ |
28535 | char $ac_func (); | |
4f14bcd8 GD |
28536 | /* The GNU C library defines this for functions which it implements |
28537 | to always fail with ENOSYS. Some functions are actually named | |
28538 | something starting with __ and the normal name is an alias. */ | |
28539 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28540 | choke me | |
28541 | #else | |
e6cc62c6 VS |
28542 | char (*f) () = $ac_func; |
28543 | #endif | |
28544 | #ifdef __cplusplus | |
28545 | } | |
4f14bcd8 GD |
28546 | #endif |
28547 | ||
e6cc62c6 VS |
28548 | int |
28549 | main () | |
28550 | { | |
28551 | return f != $ac_func; | |
28552 | ; | |
28553 | return 0; | |
28554 | } | |
28555 | _ACEOF | |
28556 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28557 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 28558 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
28559 | ac_status=$? |
28560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28561 | (exit $ac_status); } && | |
789c5f4a | 28562 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
28563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28564 | (eval $ac_try) 2>&5 | |
28565 | ac_status=$? | |
28566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28567 | (exit $ac_status); }; }; then | |
28568 | eval "$as_ac_var=yes" | |
28569 | else | |
28570 | echo "$as_me: failed program was:" >&5 | |
28571 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28572 | ||
28573 | eval "$as_ac_var=no" | |
28574 | fi | |
789c5f4a | 28575 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
28576 | fi |
28577 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28578 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28579 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28580 | cat >>confdefs.h <<_ACEOF | |
28581 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28582 | _ACEOF | |
28583 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 28584 | #define HAVE_NANOSLEEP 1 |
e6cc62c6 | 28585 | _ACEOF |
4f14bcd8 | 28586 | |
10f2d63a | 28587 | else |
e6cc62c6 VS |
28588 | |
28589 | echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5 | |
28590 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6 | |
28591 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then | |
28592 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 28593 | else |
e6cc62c6 | 28594 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 28595 | LIBS="-lposix4 $LIBS" |
e6cc62c6 | 28596 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 28597 | #line $LINENO "configure" |
e6cc62c6 VS |
28598 | /* confdefs.h. */ |
28599 | _ACEOF | |
28600 | cat confdefs.h >>conftest.$ac_ext | |
28601 | cat >>conftest.$ac_ext <<_ACEOF | |
28602 | /* end confdefs.h. */ | |
28603 | ||
10f2d63a | 28604 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28605 | #ifdef __cplusplus |
28606 | extern "C" | |
28607 | #endif | |
10f2d63a | 28608 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28609 | builtin and then its argument prototype would still apply. */ |
28610 | char nanosleep (); | |
28611 | int | |
28612 | main () | |
28613 | { | |
28614 | nanosleep (); | |
28615 | ; | |
28616 | return 0; | |
28617 | } | |
28618 | _ACEOF | |
28619 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28620 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 28621 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
28622 | ac_status=$? |
28623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28624 | (exit $ac_status); } && | |
789c5f4a | 28625 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
28626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28627 | (eval $ac_try) 2>&5 | |
28628 | ac_status=$? | |
28629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28630 | (exit $ac_status); }; }; then | |
28631 | ac_cv_lib_posix4_nanosleep=yes | |
28632 | else | |
28633 | echo "$as_me: failed program was:" >&5 | |
28634 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28635 | ||
28636 | ac_cv_lib_posix4_nanosleep=no | |
28637 | fi | |
789c5f4a | 28638 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
28639 | LIBS=$ac_check_lib_save_LIBS |
28640 | fi | |
28641 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5 | |
28642 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6 | |
28643 | if test $ac_cv_lib_posix4_nanosleep = yes; then | |
28644 | ||
28645 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 28646 | #define HAVE_NANOSLEEP 1 |
e6cc62c6 | 28647 | _ACEOF |
4f14bcd8 | 28648 | |
3d63bc3a | 28649 | POSIX4_LINK=" -lposix4" |
e6cc62c6 | 28650 | |
10f2d63a | 28651 | else |
10f2d63a | 28652 | |
e6cc62c6 VS |
28653 | |
28654 | for ac_func in usleep | |
4f14bcd8 | 28655 | do |
e6cc62c6 VS |
28656 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
28657 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28658 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28659 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28660 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28661 | else | |
28662 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 28663 | #line $LINENO "configure" |
e6cc62c6 VS |
28664 | /* confdefs.h. */ |
28665 | _ACEOF | |
28666 | cat confdefs.h >>conftest.$ac_ext | |
28667 | cat >>conftest.$ac_ext <<_ACEOF | |
28668 | /* end confdefs.h. */ | |
4f14bcd8 | 28669 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
28670 | which can conflict with char $ac_func (); below. |
28671 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28672 | <limits.h> exists even on freestanding compilers. */ | |
28673 | #ifdef __STDC__ | |
28674 | # include <limits.h> | |
28675 | #else | |
28676 | # include <assert.h> | |
28677 | #endif | |
4f14bcd8 | 28678 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28679 | #ifdef __cplusplus |
28680 | extern "C" | |
28681 | { | |
28682 | #endif | |
4f14bcd8 | 28683 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28684 | builtin and then its argument prototype would still apply. */ |
28685 | char $ac_func (); | |
4f14bcd8 GD |
28686 | /* The GNU C library defines this for functions which it implements |
28687 | to always fail with ENOSYS. Some functions are actually named | |
28688 | something starting with __ and the normal name is an alias. */ | |
28689 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28690 | choke me | |
28691 | #else | |
e6cc62c6 VS |
28692 | char (*f) () = $ac_func; |
28693 | #endif | |
28694 | #ifdef __cplusplus | |
28695 | } | |
4f14bcd8 GD |
28696 | #endif |
28697 | ||
e6cc62c6 VS |
28698 | int |
28699 | main () | |
28700 | { | |
28701 | return f != $ac_func; | |
28702 | ; | |
28703 | return 0; | |
28704 | } | |
28705 | _ACEOF | |
28706 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28707 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 28708 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
28709 | ac_status=$? |
28710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28711 | (exit $ac_status); } && | |
789c5f4a | 28712 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
28713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28714 | (eval $ac_try) 2>&5 | |
28715 | ac_status=$? | |
28716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28717 | (exit $ac_status); }; }; then | |
28718 | eval "$as_ac_var=yes" | |
28719 | else | |
28720 | echo "$as_me: failed program was:" >&5 | |
28721 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28722 | ||
28723 | eval "$as_ac_var=no" | |
28724 | fi | |
789c5f4a | 28725 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
28726 | fi |
28727 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28728 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28729 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28730 | cat >>confdefs.h <<_ACEOF | |
28731 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28732 | _ACEOF | |
28733 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 28734 | #define HAVE_USLEEP 1 |
e6cc62c6 | 28735 | _ACEOF |
4f14bcd8 | 28736 | |
698dcdb6 | 28737 | else |
e6cc62c6 VS |
28738 | { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5 |
28739 | echo "$as_me: WARNING: wxSleep() function will not work" >&2;} | |
28740 | ||
10f2d63a | 28741 | fi |
4f14bcd8 | 28742 | done |
10f2d63a | 28743 | |
e6cc62c6 VS |
28744 | |
28745 | ||
6232543b | 28746 | fi |
10f2d63a | 28747 | |
e6cc62c6 VS |
28748 | |
28749 | ||
1e487827 | 28750 | fi |
4f14bcd8 | 28751 | done |
703e0a69 | 28752 | |
10f2d63a VZ |
28753 | fi |
28754 | ||
e6cc62c6 VS |
28755 | |
28756 | ||
4f14bcd8 | 28757 | for ac_func in uname gethostname |
70846f0a | 28758 | do |
e6cc62c6 VS |
28759 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
28760 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28761 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28762 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28763 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28764 | else | |
28765 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 28766 | #line $LINENO "configure" |
e6cc62c6 VS |
28767 | /* confdefs.h. */ |
28768 | _ACEOF | |
28769 | cat confdefs.h >>conftest.$ac_ext | |
28770 | cat >>conftest.$ac_ext <<_ACEOF | |
28771 | /* end confdefs.h. */ | |
70846f0a | 28772 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
28773 | which can conflict with char $ac_func (); below. |
28774 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28775 | <limits.h> exists even on freestanding compilers. */ | |
28776 | #ifdef __STDC__ | |
28777 | # include <limits.h> | |
28778 | #else | |
28779 | # include <assert.h> | |
28780 | #endif | |
70846f0a | 28781 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28782 | #ifdef __cplusplus |
28783 | extern "C" | |
28784 | { | |
28785 | #endif | |
70846f0a | 28786 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28787 | builtin and then its argument prototype would still apply. */ |
28788 | char $ac_func (); | |
70846f0a VZ |
28789 | /* The GNU C library defines this for functions which it implements |
28790 | to always fail with ENOSYS. Some functions are actually named | |
28791 | something starting with __ and the normal name is an alias. */ | |
28792 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28793 | choke me | |
28794 | #else | |
e6cc62c6 VS |
28795 | char (*f) () = $ac_func; |
28796 | #endif | |
28797 | #ifdef __cplusplus | |
28798 | } | |
70846f0a VZ |
28799 | #endif |
28800 | ||
e6cc62c6 VS |
28801 | int |
28802 | main () | |
28803 | { | |
28804 | return f != $ac_func; | |
28805 | ; | |
28806 | return 0; | |
28807 | } | |
28808 | _ACEOF | |
28809 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28810 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 28811 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
28812 | ac_status=$? |
28813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28814 | (exit $ac_status); } && | |
789c5f4a | 28815 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
28816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28817 | (eval $ac_try) 2>&5 | |
28818 | ac_status=$? | |
28819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28820 | (exit $ac_status); }; }; then | |
28821 | eval "$as_ac_var=yes" | |
28822 | else | |
28823 | echo "$as_me: failed program was:" >&5 | |
28824 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28825 | ||
28826 | eval "$as_ac_var=no" | |
28827 | fi | |
789c5f4a | 28828 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
28829 | fi |
28830 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28831 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28832 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28833 | cat >>confdefs.h <<_ACEOF | |
28834 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28835 | _ACEOF | |
4f14bcd8 | 28836 | break |
70846f0a VZ |
28837 | fi |
28838 | done | |
28839 | ||
8284b0c5 MB |
28840 | |
28841 | ||
e6cc62c6 VS |
28842 | |
28843 | ac_ext=cc | |
4f14bcd8 | 28844 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
28845 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
28846 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28847 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
28848 | ||
8284b0c5 | 28849 | |
4f14bcd8 GD |
28850 | |
28851 | for ac_func in strtok_r | |
10f2d63a | 28852 | do |
e6cc62c6 VS |
28853 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
28854 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28855 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28856 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28857 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28858 | else | |
28859 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 28860 | #line $LINENO "configure" |
e6cc62c6 VS |
28861 | /* confdefs.h. */ |
28862 | _ACEOF | |
28863 | cat confdefs.h >>conftest.$ac_ext | |
28864 | cat >>conftest.$ac_ext <<_ACEOF | |
28865 | /* end confdefs.h. */ | |
4f14bcd8 | 28866 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
28867 | which can conflict with char $ac_func (); below. |
28868 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28869 | <limits.h> exists even on freestanding compilers. */ | |
28870 | #ifdef __STDC__ | |
28871 | # include <limits.h> | |
28872 | #else | |
28873 | # include <assert.h> | |
28874 | #endif | |
4f14bcd8 GD |
28875 | /* Override any gcc2 internal prototype to avoid an error. */ |
28876 | #ifdef __cplusplus | |
28877 | extern "C" | |
e6cc62c6 | 28878 | { |
4f14bcd8 GD |
28879 | #endif |
28880 | /* We use char because int might match the return type of a gcc2 | |
e6cc62c6 VS |
28881 | builtin and then its argument prototype would still apply. */ |
28882 | char $ac_func (); | |
4f14bcd8 GD |
28883 | /* The GNU C library defines this for functions which it implements |
28884 | to always fail with ENOSYS. Some functions are actually named | |
28885 | something starting with __ and the normal name is an alias. */ | |
28886 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28887 | choke me | |
28888 | #else | |
e6cc62c6 VS |
28889 | char (*f) () = $ac_func; |
28890 | #endif | |
28891 | #ifdef __cplusplus | |
28892 | } | |
4f14bcd8 GD |
28893 | #endif |
28894 | ||
e6cc62c6 VS |
28895 | int |
28896 | main () | |
28897 | { | |
28898 | return f != $ac_func; | |
28899 | ; | |
28900 | return 0; | |
28901 | } | |
28902 | _ACEOF | |
28903 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28904 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 28905 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
28906 | ac_status=$? |
28907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28908 | (exit $ac_status); } && | |
789c5f4a | 28909 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
28910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28911 | (eval $ac_try) 2>&5 | |
28912 | ac_status=$? | |
28913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28914 | (exit $ac_status); }; }; then | |
28915 | eval "$as_ac_var=yes" | |
28916 | else | |
28917 | echo "$as_me: failed program was:" >&5 | |
28918 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28919 | ||
28920 | eval "$as_ac_var=no" | |
28921 | fi | |
789c5f4a | 28922 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
28923 | fi |
28924 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28925 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28926 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28927 | cat >>confdefs.h <<_ACEOF | |
28928 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28929 | _ACEOF | |
4f14bcd8 | 28930 | |
10f2d63a VZ |
28931 | fi |
28932 | done | |
28933 | ||
8284b0c5 | 28934 | |
4f14bcd8 | 28935 | ac_ext=c |
4f14bcd8 | 28936 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
28937 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
28938 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28939 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7b4a847f | 28940 | |
5c6fa7d2 | 28941 | |
8284b0c5 | 28942 | INET_LINK= |
e6cc62c6 | 28943 | |
4f14bcd8 GD |
28944 | for ac_func in inet_addr |
28945 | do | |
e6cc62c6 VS |
28946 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
28947 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28948 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28949 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28950 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28951 | else | |
28952 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 28953 | #line $LINENO "configure" |
e6cc62c6 VS |
28954 | /* confdefs.h. */ |
28955 | _ACEOF | |
28956 | cat confdefs.h >>conftest.$ac_ext | |
28957 | cat >>conftest.$ac_ext <<_ACEOF | |
28958 | /* end confdefs.h. */ | |
4f14bcd8 | 28959 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
28960 | which can conflict with char $ac_func (); below. |
28961 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28962 | <limits.h> exists even on freestanding compilers. */ | |
28963 | #ifdef __STDC__ | |
28964 | # include <limits.h> | |
28965 | #else | |
28966 | # include <assert.h> | |
28967 | #endif | |
10f2d63a | 28968 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28969 | #ifdef __cplusplus |
28970 | extern "C" | |
28971 | { | |
28972 | #endif | |
10f2d63a | 28973 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28974 | builtin and then its argument prototype would still apply. */ |
28975 | char $ac_func (); | |
4f14bcd8 GD |
28976 | /* The GNU C library defines this for functions which it implements |
28977 | to always fail with ENOSYS. Some functions are actually named | |
28978 | something starting with __ and the normal name is an alias. */ | |
28979 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28980 | choke me | |
28981 | #else | |
e6cc62c6 VS |
28982 | char (*f) () = $ac_func; |
28983 | #endif | |
28984 | #ifdef __cplusplus | |
28985 | } | |
4f14bcd8 GD |
28986 | #endif |
28987 | ||
e6cc62c6 VS |
28988 | int |
28989 | main () | |
28990 | { | |
28991 | return f != $ac_func; | |
28992 | ; | |
28993 | return 0; | |
28994 | } | |
28995 | _ACEOF | |
28996 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28997 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 28998 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
28999 | ac_status=$? |
29000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29001 | (exit $ac_status); } && | |
789c5f4a | 29002 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
29003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29004 | (eval $ac_try) 2>&5 | |
29005 | ac_status=$? | |
29006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29007 | (exit $ac_status); }; }; then | |
29008 | eval "$as_ac_var=yes" | |
29009 | else | |
29010 | echo "$as_me: failed program was:" >&5 | |
29011 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29012 | ||
29013 | eval "$as_ac_var=no" | |
29014 | fi | |
789c5f4a | 29015 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
29016 | fi |
29017 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29018 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29019 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29020 | cat >>confdefs.h <<_ACEOF | |
29021 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29022 | _ACEOF | |
29023 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 29024 | #define HAVE_INET_ADDR 1 |
e6cc62c6 | 29025 | _ACEOF |
10f2d63a VZ |
29026 | |
29027 | else | |
e6cc62c6 VS |
29028 | |
29029 | echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5 | |
29030 | echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6 | |
29031 | if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then | |
29032 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 29033 | else |
e6cc62c6 | 29034 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 29035 | LIBS="-lnsl $LIBS" |
e6cc62c6 | 29036 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 29037 | #line $LINENO "configure" |
e6cc62c6 VS |
29038 | /* confdefs.h. */ |
29039 | _ACEOF | |
29040 | cat confdefs.h >>conftest.$ac_ext | |
29041 | cat >>conftest.$ac_ext <<_ACEOF | |
29042 | /* end confdefs.h. */ | |
29043 | ||
10f2d63a | 29044 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29045 | #ifdef __cplusplus |
29046 | extern "C" | |
29047 | #endif | |
10f2d63a | 29048 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29049 | builtin and then its argument prototype would still apply. */ |
29050 | char inet_addr (); | |
29051 | int | |
29052 | main () | |
29053 | { | |
29054 | inet_addr (); | |
29055 | ; | |
29056 | return 0; | |
29057 | } | |
29058 | _ACEOF | |
29059 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29060 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 29061 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
29062 | ac_status=$? |
29063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29064 | (exit $ac_status); } && | |
789c5f4a | 29065 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
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); }; }; then | |
29071 | ac_cv_lib_nsl_inet_addr=yes | |
29072 | else | |
29073 | echo "$as_me: failed program was:" >&5 | |
29074 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29075 | ||
29076 | ac_cv_lib_nsl_inet_addr=no | |
29077 | fi | |
789c5f4a | 29078 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
29079 | LIBS=$ac_check_lib_save_LIBS |
29080 | fi | |
29081 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5 | |
29082 | echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6 | |
29083 | if test $ac_cv_lib_nsl_inet_addr = yes; then | |
4f14bcd8 | 29084 | INET_LINK="nsl" |
10f2d63a | 29085 | else |
0e012a93 VZ |
29086 | |
29087 | echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5 | |
e6cc62c6 VS |
29088 | echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6 |
29089 | if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then | |
29090 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 29091 | else |
e6cc62c6 | 29092 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 29093 | LIBS="-lresolv $LIBS" |
e6cc62c6 | 29094 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 29095 | #line $LINENO "configure" |
e6cc62c6 VS |
29096 | /* confdefs.h. */ |
29097 | _ACEOF | |
29098 | cat confdefs.h >>conftest.$ac_ext | |
29099 | cat >>conftest.$ac_ext <<_ACEOF | |
29100 | /* end confdefs.h. */ | |
29101 | ||
5c6fa7d2 | 29102 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29103 | #ifdef __cplusplus |
29104 | extern "C" | |
29105 | #endif | |
5c6fa7d2 | 29106 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29107 | builtin and then its argument prototype would still apply. */ |
29108 | char inet_addr (); | |
29109 | int | |
29110 | main () | |
29111 | { | |
29112 | inet_addr (); | |
29113 | ; | |
29114 | return 0; | |
29115 | } | |
29116 | _ACEOF | |
29117 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29118 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 29119 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
29120 | ac_status=$? |
29121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29122 | (exit $ac_status); } && | |
789c5f4a | 29123 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
29124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29125 | (eval $ac_try) 2>&5 | |
29126 | ac_status=$? | |
29127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29128 | (exit $ac_status); }; }; then | |
29129 | ac_cv_lib_resolv_inet_addr=yes | |
29130 | else | |
29131 | echo "$as_me: failed program was:" >&5 | |
29132 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29133 | ||
29134 | ac_cv_lib_resolv_inet_addr=no | |
29135 | fi | |
789c5f4a | 29136 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
29137 | LIBS=$ac_check_lib_save_LIBS |
29138 | fi | |
29139 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5 | |
29140 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6 | |
29141 | if test $ac_cv_lib_resolv_inet_addr = yes; then | |
4f14bcd8 | 29142 | INET_LINK="resolv" |
698dcdb6 | 29143 | else |
0e012a93 VZ |
29144 | |
29145 | echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5 | |
e6cc62c6 VS |
29146 | echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6 |
29147 | if test "${ac_cv_lib_socket_inet_addr+set}" = set; then | |
29148 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3c011993 | 29149 | else |
e6cc62c6 | 29150 | ac_check_lib_save_LIBS=$LIBS |
3c011993 | 29151 | LIBS="-lsocket $LIBS" |
e6cc62c6 | 29152 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 29153 | #line $LINENO "configure" |
e6cc62c6 VS |
29154 | /* confdefs.h. */ |
29155 | _ACEOF | |
29156 | cat confdefs.h >>conftest.$ac_ext | |
29157 | cat >>conftest.$ac_ext <<_ACEOF | |
29158 | /* end confdefs.h. */ | |
29159 | ||
3c011993 | 29160 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29161 | #ifdef __cplusplus |
29162 | extern "C" | |
29163 | #endif | |
3c011993 | 29164 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29165 | builtin and then its argument prototype would still apply. */ |
29166 | char inet_addr (); | |
29167 | int | |
29168 | main () | |
29169 | { | |
29170 | inet_addr (); | |
29171 | ; | |
29172 | return 0; | |
29173 | } | |
29174 | _ACEOF | |
29175 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29176 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 29177 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
29178 | ac_status=$? |
29179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29180 | (exit $ac_status); } && | |
789c5f4a | 29181 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
29182 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29183 | (eval $ac_try) 2>&5 | |
29184 | ac_status=$? | |
29185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29186 | (exit $ac_status); }; }; then | |
29187 | ac_cv_lib_socket_inet_addr=yes | |
29188 | else | |
29189 | echo "$as_me: failed program was:" >&5 | |
29190 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29191 | ||
29192 | ac_cv_lib_socket_inet_addr=no | |
29193 | fi | |
789c5f4a | 29194 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
29195 | LIBS=$ac_check_lib_save_LIBS |
29196 | fi | |
29197 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5 | |
29198 | echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6 | |
29199 | if test $ac_cv_lib_socket_inet_addr = yes; then | |
29200 | INET_LINK="socket" | |
4f14bcd8 | 29201 | |
8284b0c5 | 29202 | fi |
e6cc62c6 | 29203 | |
698dcdb6 | 29204 | |
0e012a93 | 29205 | |
7b4a847f | 29206 | fi |
e6cc62c6 VS |
29207 | |
29208 | ||
0e012a93 | 29209 | |
a0b9e27f | 29210 | fi |
579d8138 | 29211 | |
e6cc62c6 VS |
29212 | |
29213 | ||
5c6fa7d2 | 29214 | fi |
e6cc62c6 VS |
29215 | done |
29216 | ||
29217 | ||
29218 | ||
29219 | for ac_func in inet_aton | |
29220 | do | |
29221 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29222 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29223 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29224 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29225 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29226 | else | |
29227 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 29228 | #line $LINENO "configure" |
e6cc62c6 VS |
29229 | /* confdefs.h. */ |
29230 | _ACEOF | |
29231 | cat confdefs.h >>conftest.$ac_ext | |
29232 | cat >>conftest.$ac_ext <<_ACEOF | |
29233 | /* end confdefs.h. */ | |
29234 | /* System header to define __stub macros and hopefully few prototypes, | |
29235 | which can conflict with char $ac_func (); below. | |
29236 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29237 | <limits.h> exists even on freestanding compilers. */ | |
29238 | #ifdef __STDC__ | |
29239 | # include <limits.h> | |
29240 | #else | |
29241 | # include <assert.h> | |
29242 | #endif | |
29243 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29244 | #ifdef __cplusplus | |
29245 | extern "C" | |
29246 | { | |
29247 | #endif | |
29248 | /* We use char because int might match the return type of a gcc2 | |
29249 | builtin and then its argument prototype would still apply. */ | |
29250 | char $ac_func (); | |
29251 | /* The GNU C library defines this for functions which it implements | |
29252 | to always fail with ENOSYS. Some functions are actually named | |
29253 | something starting with __ and the normal name is an alias. */ | |
29254 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29255 | choke me | |
29256 | #else | |
29257 | char (*f) () = $ac_func; | |
29258 | #endif | |
29259 | #ifdef __cplusplus | |
29260 | } | |
29261 | #endif | |
29262 | ||
29263 | int | |
29264 | main () | |
29265 | { | |
29266 | return f != $ac_func; | |
29267 | ; | |
29268 | return 0; | |
29269 | } | |
29270 | _ACEOF | |
29271 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29272 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 29273 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
29274 | ac_status=$? |
29275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29276 | (exit $ac_status); } && | |
789c5f4a | 29277 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
29278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29279 | (eval $ac_try) 2>&5 | |
29280 | ac_status=$? | |
29281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29282 | (exit $ac_status); }; }; then | |
29283 | eval "$as_ac_var=yes" | |
29284 | else | |
29285 | echo "$as_me: failed program was:" >&5 | |
29286 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29287 | ||
29288 | eval "$as_ac_var=no" | |
29289 | fi | |
789c5f4a | 29290 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
29291 | fi |
29292 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29293 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29294 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29295 | cat >>confdefs.h <<_ACEOF | |
29296 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29297 | _ACEOF | |
29298 | cat >>confdefs.h <<\_ACEOF | |
29299 | #define HAVE_INET_ATON 1 | |
29300 | _ACEOF | |
29301 | ||
29302 | else | |
29303 | ||
29304 | as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh` | |
29305 | echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5 | |
29306 | echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6 | |
29307 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then | |
29308 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29309 | else | |
29310 | ac_check_lib_save_LIBS=$LIBS | |
29311 | LIBS="-l$INET_LINK $LIBS" | |
29312 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 29313 | #line $LINENO "configure" |
e6cc62c6 VS |
29314 | /* confdefs.h. */ |
29315 | _ACEOF | |
29316 | cat confdefs.h >>conftest.$ac_ext | |
29317 | cat >>conftest.$ac_ext <<_ACEOF | |
29318 | /* end confdefs.h. */ | |
29319 | ||
29320 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29321 | #ifdef __cplusplus | |
29322 | extern "C" | |
29323 | #endif | |
29324 | /* We use char because int might match the return type of a gcc2 | |
29325 | builtin and then its argument prototype would still apply. */ | |
29326 | char inet_aton (); | |
29327 | int | |
29328 | main () | |
29329 | { | |
29330 | inet_aton (); | |
29331 | ; | |
29332 | return 0; | |
29333 | } | |
29334 | _ACEOF | |
29335 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29336 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 29337 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
29338 | ac_status=$? |
29339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29340 | (exit $ac_status); } && | |
789c5f4a | 29341 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
29342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29343 | (eval $ac_try) 2>&5 | |
29344 | ac_status=$? | |
29345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29346 | (exit $ac_status); }; }; then | |
29347 | eval "$as_ac_Lib=yes" | |
29348 | else | |
29349 | echo "$as_me: failed program was:" >&5 | |
29350 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29351 | ||
29352 | eval "$as_ac_Lib=no" | |
29353 | fi | |
789c5f4a | 29354 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
29355 | LIBS=$ac_check_lib_save_LIBS |
29356 | fi | |
29357 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 | |
29358 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 | |
29359 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then | |
29360 | cat >>confdefs.h <<\_ACEOF | |
29361 | #define HAVE_INET_ATON 1 | |
29362 | _ACEOF | |
52127426 | 29363 | |
a0b9e27f | 29364 | fi |
247f5006 | 29365 | |
8284b0c5 | 29366 | |
698dcdb6 | 29367 | fi |
4f14bcd8 GD |
29368 | done |
29369 | ||
8284b0c5 | 29370 | |
e6cc62c6 VS |
29371 | if test "x$INET_LINK" != "x"; then |
29372 | cat >>confdefs.h <<\_ACEOF | |
29373 | #define HAVE_INET_ADDR 1 | |
29374 | _ACEOF | |
29375 | ||
29376 | INET_LINK=" -l$INET_LINK" | |
29377 | fi | |
29378 | ||
29379 | fi | |
a0b9e27f | 29380 | |
a0b9e27f | 29381 | |
4f14bcd8 | 29382 | |
edd891e2 VS |
29383 | EXTRALIBS_ESD= |
29384 | echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5 | |
29385 | echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6 | |
29386 | if test "${ac_cv_lib_esd_esd_close+set}" = set; then | |
29387 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29388 | else | |
29389 | ac_check_lib_save_LIBS=$LIBS | |
29390 | LIBS="-lesd $LIBS" | |
29391 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 29392 | #line $LINENO "configure" |
edd891e2 VS |
29393 | /* confdefs.h. */ |
29394 | _ACEOF | |
29395 | cat confdefs.h >>conftest.$ac_ext | |
29396 | cat >>conftest.$ac_ext <<_ACEOF | |
29397 | /* end confdefs.h. */ | |
29398 | ||
29399 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29400 | #ifdef __cplusplus | |
29401 | extern "C" | |
29402 | #endif | |
29403 | /* We use char because int might match the return type of a gcc2 | |
29404 | builtin and then its argument prototype would still apply. */ | |
29405 | char esd_close (); | |
29406 | int | |
29407 | main () | |
29408 | { | |
29409 | esd_close (); | |
29410 | ; | |
29411 | return 0; | |
29412 | } | |
29413 | _ACEOF | |
29414 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29415 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 29416 | (eval $ac_link) 2>&5 |
edd891e2 VS |
29417 | ac_status=$? |
29418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29419 | (exit $ac_status); } && | |
789c5f4a | 29420 | { ac_try='test -s conftest$ac_exeext' |
edd891e2 VS |
29421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29422 | (eval $ac_try) 2>&5 | |
29423 | ac_status=$? | |
29424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29425 | (exit $ac_status); }; }; then | |
29426 | ac_cv_lib_esd_esd_close=yes | |
29427 | else | |
29428 | echo "$as_me: failed program was:" >&5 | |
29429 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29430 | ||
29431 | ac_cv_lib_esd_esd_close=no | |
29432 | fi | |
789c5f4a | 29433 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
edd891e2 VS |
29434 | LIBS=$ac_check_lib_save_LIBS |
29435 | fi | |
29436 | echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5 | |
29437 | echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6 | |
29438 | if test $ac_cv_lib_esd_esd_close = yes; then | |
29439 | ||
29440 | ||
29441 | for ac_header in esd.h | |
29442 | do | |
29443 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
29444 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
29445 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
29446 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
29447 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
e6cc62c6 VS |
29448 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
29449 | fi | |
edd891e2 VS |
29450 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
29451 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
e6cc62c6 VS |
29452 | else |
29453 | # Is the header compilable? | |
edd891e2 VS |
29454 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
29455 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
e6cc62c6 | 29456 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 29457 | #line $LINENO "configure" |
e6cc62c6 VS |
29458 | /* confdefs.h. */ |
29459 | _ACEOF | |
29460 | cat confdefs.h >>conftest.$ac_ext | |
29461 | cat >>conftest.$ac_ext <<_ACEOF | |
29462 | /* end confdefs.h. */ | |
29463 | $ac_includes_default | |
edd891e2 | 29464 | #include <$ac_header> |
e6cc62c6 VS |
29465 | _ACEOF |
29466 | rm -f conftest.$ac_objext | |
29467 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 29468 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
29469 | ac_status=$? |
29470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29471 | (exit $ac_status); } && | |
789c5f4a | 29472 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
29473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29474 | (eval $ac_try) 2>&5 | |
29475 | ac_status=$? | |
29476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29477 | (exit $ac_status); }; }; then | |
29478 | ac_header_compiler=yes | |
29479 | else | |
29480 | echo "$as_me: failed program was:" >&5 | |
29481 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29482 | ||
29483 | ac_header_compiler=no | |
29484 | fi | |
789c5f4a | 29485 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
29486 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
29487 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
29488 | ||
29489 | # Is the header present? | |
edd891e2 VS |
29490 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
29491 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
e6cc62c6 | 29492 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 29493 | #line $LINENO "configure" |
e6cc62c6 VS |
29494 | /* confdefs.h. */ |
29495 | _ACEOF | |
29496 | cat confdefs.h >>conftest.$ac_ext | |
29497 | cat >>conftest.$ac_ext <<_ACEOF | |
29498 | /* end confdefs.h. */ | |
edd891e2 | 29499 | #include <$ac_header> |
e6cc62c6 VS |
29500 | _ACEOF |
29501 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
29502 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
29503 | ac_status=$? | |
29504 | grep -v '^ *+' conftest.er1 >conftest.err | |
29505 | rm -f conftest.er1 | |
29506 | cat conftest.err >&5 | |
29507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29508 | (exit $ac_status); } >/dev/null; then | |
29509 | if test -s conftest.err; then | |
29510 | ac_cpp_err=$ac_c_preproc_warn_flag | |
29511 | else | |
29512 | ac_cpp_err= | |
29513 | fi | |
a0b9e27f | 29514 | else |
e6cc62c6 VS |
29515 | ac_cpp_err=yes |
29516 | fi | |
29517 | if test -z "$ac_cpp_err"; then | |
29518 | ac_header_preproc=yes | |
29519 | else | |
29520 | echo "$as_me: failed program was:" >&5 | |
29521 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29522 | ||
29523 | ac_header_preproc=no | |
29524 | fi | |
29525 | rm -f conftest.err conftest.$ac_ext | |
29526 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
29527 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
29528 | ||
29529 | # So? What about this header? | |
789c5f4a VZ |
29530 | case $ac_header_compiler:$ac_header_preproc in |
29531 | yes:no ) | |
edd891e2 VS |
29532 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
29533 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
789c5f4a VZ |
29534 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
29535 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
29536 | ( | |
29537 | cat <<\_ASBOX | |
29538 | ## ------------------------------------ ## | |
29539 | ## Report this to bug-autoconf@gnu.org. ## | |
29540 | ## ------------------------------------ ## | |
29541 | _ASBOX | |
29542 | ) | | |
29543 | sed "s/^/$as_me: WARNING: /" >&2 | |
e6cc62c6 | 29544 | ;; |
789c5f4a | 29545 | no:yes ) |
edd891e2 VS |
29546 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
29547 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
789c5f4a VZ |
29548 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
29549 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
edd891e2 VS |
29550 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
29551 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
e6cc62c6 VS |
29552 | ( |
29553 | cat <<\_ASBOX | |
789c5f4a VZ |
29554 | ## ------------------------------------ ## |
29555 | ## Report this to bug-autoconf@gnu.org. ## | |
29556 | ## ------------------------------------ ## | |
e6cc62c6 VS |
29557 | _ASBOX |
29558 | ) | | |
29559 | sed "s/^/$as_me: WARNING: /" >&2 | |
29560 | ;; | |
29561 | esac | |
edd891e2 VS |
29562 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
29563 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
29564 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
e6cc62c6 VS |
29565 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
29566 | else | |
789c5f4a | 29567 | eval "$as_ac_Header=$ac_header_preproc" |
a0b9e27f | 29568 | fi |
edd891e2 VS |
29569 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
29570 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
a0b9e27f | 29571 | |
e6cc62c6 | 29572 | fi |
edd891e2 VS |
29573 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
29574 | cat >>confdefs.h <<_ACEOF | |
29575 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
e6cc62c6 | 29576 | _ACEOF |
e6cc62c6 | 29577 | |
edd891e2 | 29578 | EXTRALIBS_ESD="-lesd" |
4f14bcd8 | 29579 | |
a0b9e27f | 29580 | fi |
247f5006 | 29581 | |
edd891e2 | 29582 | done |
8284b0c5 | 29583 | |
4f14bcd8 | 29584 | |
6232543b | 29585 | fi |
10f2d63a | 29586 | |
703e0a69 | 29587 | |
8284b0c5 | 29588 | |
d19d1899 MB |
29589 | echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5 |
29590 | echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6 | |
29591 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 29592 | #line $LINENO "configure" |
d19d1899 MB |
29593 | /* confdefs.h. */ |
29594 | _ACEOF | |
29595 | cat confdefs.h >>conftest.$ac_ext | |
29596 | cat >>conftest.$ac_ext <<_ACEOF | |
29597 | /* end confdefs.h. */ | |
29598 | #ifdef __linux__ | |
29599 | #include <linux/cdrom.h> | |
29600 | #else | |
29601 | /* For Solaris */ | |
29602 | #include <sys/cdio.h> | |
29603 | #endif | |
29604 | ||
29605 | int | |
29606 | main () | |
29607 | { | |
29608 | struct cdrom_tocentry entry, old_entry; | |
29609 | ; | |
29610 | return 0; | |
29611 | } | |
29612 | _ACEOF | |
29613 | rm -f conftest.$ac_objext | |
29614 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 29615 | (eval $ac_compile) 2>&5 |
d19d1899 MB |
29616 | ac_status=$? |
29617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29618 | (exit $ac_status); } && | |
789c5f4a | 29619 | { ac_try='test -s conftest.$ac_objext' |
d19d1899 MB |
29620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29621 | (eval $ac_try) 2>&5 | |
29622 | ac_status=$? | |
29623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29624 | (exit $ac_status); }; }; then | |
29625 | echo "$as_me:$LINENO: result: yes" >&5 | |
29626 | echo "${ECHO_T}yes" >&6 | |
29627 | cat >>confdefs.h <<\_ACEOF | |
29628 | #define HAVE_KNOWN_CDROM_INTERFACE 1 | |
29629 | _ACEOF | |
29630 | ||
29631 | else | |
29632 | echo "$as_me: failed program was:" >&5 | |
29633 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29634 | ||
29635 | echo "$as_me:$LINENO: result: no" >&5 | |
29636 | echo "${ECHO_T}no" >&6 | |
29637 | fi | |
789c5f4a | 29638 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
29639 | |
29640 | ||
29641 | cat >confcache <<\_ACEOF | |
4f14bcd8 GD |
29642 | # This file is a shell script that caches the results of configure |
29643 | # tests run on this system so they can be shared between configure | |
e6cc62c6 VS |
29644 | # scripts and configure runs, see configure's option --config-cache. |
29645 | # It is not useful on other systems. If it contains results you don't | |
29646 | # want to keep, you may remove or edit it. | |
4f14bcd8 | 29647 | # |
e6cc62c6 VS |
29648 | # config.status only pays attention to the cache file if you give it |
29649 | # the --recheck option to rerun configure. | |
4f14bcd8 | 29650 | # |
e6cc62c6 VS |
29651 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
29652 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
29653 | # following values. | |
29654 | ||
29655 | _ACEOF | |
29656 | ||
4f14bcd8 GD |
29657 | # The following way of writing the cache mishandles newlines in values, |
29658 | # but we know of no workaround that is simple, portable, and efficient. | |
29659 | # So, don't put newlines in cache variables' values. | |
29660 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
29661 | # and sets the high bit in the cache file unless we assign to the vars. | |
e6cc62c6 VS |
29662 | { |
29663 | (set) 2>&1 | | |
29664 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
29665 | *ac_space=\ *) | |
29666 | # `set' does not quote correctly, so add quotes (double-quote | |
29667 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
29668 | sed -n \ | |
789c5f4a VZ |
29669 | "s/'/'\\\\''/g; |
29670 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
e6cc62c6 VS |
29671 | ;; |
29672 | *) | |
29673 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
29674 | sed -n \ | |
789c5f4a | 29675 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
e6cc62c6 VS |
29676 | ;; |
29677 | esac; | |
29678 | } | | |
29679 | sed ' | |
29680 | t clear | |
29681 | : clear | |
29682 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
29683 | t end | |
29684 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
29685 | : end' >>confcache | |
29686 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
4f14bcd8 | 29687 | if test -w $cache_file; then |
e6cc62c6 VS |
29688 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
29689 | cat confcache >$cache_file | |
f6bcfd97 | 29690 | else |
4f14bcd8 | 29691 | echo "not updating unwritable cache $cache_file" |
f6bcfd97 | 29692 | fi |
4f14bcd8 GD |
29693 | fi |
29694 | rm -f confcache | |
f6bcfd97 | 29695 | |
8284b0c5 | 29696 | |
009fead0 | 29697 | CPP_MT_FLAG= |
73d617c9 | 29698 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then |
4f14bcd8 | 29699 | |
e6cc62c6 | 29700 | |
7274f1c7 | 29701 | THREADS_LINK= |
009fead0 | 29702 | THREADS_CFLAGS= |
7274f1c7 RL |
29703 | |
29704 | if test "$wxUSE_THREADS" = "yes" ; then | |
89e6bf6d | 29705 | if test "$USE_BEOS" = 1; then |
e6cc62c6 VS |
29706 | { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5 |
29707 | echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;} | |
7274f1c7 RL |
29708 | wxUSE_THREADS="no" |
29709 | fi | |
4f14bcd8 | 29710 | fi |
4f14bcd8 | 29711 | |
7274f1c7 | 29712 | if test "$wxUSE_THREADS" = "yes" ; then |
e6cc62c6 VS |
29713 | |
29714 | ||
009fead0 VZ |
29715 | THREAD_OPTS="-pthread" |
29716 | case "${host}" in | |
29717 | *-*-solaris2* | *-*-sunos4* ) | |
29718 | if test "x$GCC" = "xyes"; then | |
126be6b4 | 29719 | THREAD_OPTS="-pthreads $THREAD_OPTS" |
009fead0 VZ |
29720 | else |
29721 | THREAD_OPTS="-mt $THREAD_OPTS" | |
29722 | fi | |
29723 | ;; | |
29724 | *-*-freebsd*) | |
29725 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
29726 | ;; | |
17234b26 MB |
29727 | *-*-darwin* | *-*-cygwin* ) |
29728 | THREAD_OPTS="" | |
4101db81 | 29729 | ;; |
8f4a9a10 | 29730 | *-*-aix*) |
009fead0 VZ |
29731 | THREAD_OPTS="pthreads" |
29732 | ;; | |
4f5a7f74 VZ |
29733 | *-hp-hpux* ) |
29734 | if test "x$GCC" != "xyes"; then | |
29735 | THREAD_OPTS="" | |
29736 | fi | |
89e3b3e4 VZ |
29737 | ;; |
29738 | ||
29739 | *-*-irix* ) | |
29740 | if test "x$GCC" = "xyes"; then | |
29741 | THREAD_OPTS="" | |
29742 | fi | |
29743 | ;; | |
29744 | ||
29745 | *-*-*UnixWare*) | |
29746 | if test "x$GCC" != "xyes"; then | |
29747 | THREAD_OPTS="-Ethread" | |
29748 | fi | |
29749 | ;; | |
009fead0 | 29750 | esac |
4f14bcd8 | 29751 | |
02a1dfba | 29752 | THREAD_OPTS="$THREAD_OPTS pthread none" |
595e0e44 | 29753 | |
009fead0 VZ |
29754 | THREADS_OK=no |
29755 | for flag in $THREAD_OPTS; do | |
29756 | case $flag in | |
29757 | none) | |
e6cc62c6 VS |
29758 | echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 |
29759 | echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6 | |
009fead0 | 29760 | ;; |
698dcdb6 | 29761 | |
009fead0 | 29762 | -*) |
e6cc62c6 VS |
29763 | echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 |
29764 | echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6 | |
009fead0 VZ |
29765 | THREADS_CFLAGS="$flag" |
29766 | ;; | |
698dcdb6 | 29767 | |
009fead0 | 29768 | *) |
e6cc62c6 VS |
29769 | echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 |
29770 | echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6 | |
009fead0 VZ |
29771 | THREADS_LINK="-l$flag" |
29772 | ;; | |
29773 | esac | |
10f2d63a | 29774 | |
009fead0 VZ |
29775 | save_LIBS="$LIBS" |
29776 | save_CFLAGS="$CFLAGS" | |
29777 | LIBS="$THREADS_LINK $LIBS" | |
04727afd | 29778 | CFLAGS="$THREADS_CFLAGS $CFLAGS" |
10f2d63a | 29779 | |
e6cc62c6 | 29780 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 29781 | #line $LINENO "configure" |
e6cc62c6 VS |
29782 | /* confdefs.h. */ |
29783 | _ACEOF | |
29784 | cat confdefs.h >>conftest.$ac_ext | |
29785 | cat >>conftest.$ac_ext <<_ACEOF | |
29786 | /* end confdefs.h. */ | |
009fead0 | 29787 | #include <pthread.h> |
e6cc62c6 VS |
29788 | int |
29789 | main () | |
29790 | { | |
009fead0 | 29791 | pthread_create(0,0,0,0); |
e6cc62c6 VS |
29792 | ; |
29793 | return 0; | |
29794 | } | |
29795 | _ACEOF | |
29796 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29797 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 29798 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
29799 | ac_status=$? |
29800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29801 | (exit $ac_status); } && | |
789c5f4a | 29802 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
29803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29804 | (eval $ac_try) 2>&5 | |
29805 | ac_status=$? | |
29806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29807 | (exit $ac_status); }; }; then | |
009fead0 | 29808 | THREADS_OK=yes |
10f2d63a | 29809 | else |
e6cc62c6 VS |
29810 | echo "$as_me: failed program was:" >&5 |
29811 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29812 | ||
6232543b | 29813 | fi |
789c5f4a | 29814 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
698dcdb6 | 29815 | |
009fead0 VZ |
29816 | LIBS="$save_LIBS" |
29817 | CFLAGS="$save_CFLAGS" | |
d9b9876f | 29818 | |
e6cc62c6 VS |
29819 | echo "$as_me:$LINENO: result: $THREADS_OK" >&5 |
29820 | echo "${ECHO_T}$THREADS_OK" >&6 | |
009fead0 VZ |
29821 | if test "x$THREADS_OK" = "xyes"; then |
29822 | break; | |
29823 | fi | |
d9b9876f | 29824 | |
009fead0 VZ |
29825 | THREADS_LINK="" |
29826 | THREADS_CFLAGS="" | |
29827 | done | |
4f14bcd8 | 29828 | |
009fead0 VZ |
29829 | if test "x$THREADS_OK" != "xyes"; then |
29830 | wxUSE_THREADS=no | |
e6cc62c6 VS |
29831 | { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5 |
29832 | echo "$as_me: WARNING: No thread support on this system... disabled" >&2;} | |
009fead0 | 29833 | else |
db82f09e VZ |
29834 | LDFLAGS="$THREADS_CFLAGS $LDFLAGS" |
29835 | LIBS="$THREADS_LINK $LIBS" | |
fe5a9cab | 29836 | |
e6cc62c6 VS |
29837 | echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 |
29838 | echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6 | |
009fead0 VZ |
29839 | flag=no |
29840 | case "${host}" in | |
2b5f62a0 VZ |
29841 | *-aix*) |
29842 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
29843 | flag="-D_THREAD_SAFE" | |
29844 | ;; | |
29845 | *-freebsd*) | |
009fead0 VZ |
29846 | flag="-D_THREAD_SAFE" |
29847 | ;; | |
06313569 GD |
29848 | *-hp-hpux* ) |
29849 | flag="-D_REENTRANT" | |
4f5a7f74 VZ |
29850 | if test "x$GCC" != "xyes"; then |
29851 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
29852 | fi | |
06313569 | 29853 | ;; |
009fead0 VZ |
29854 | *solaris* | alpha*-osf*) |
29855 | flag="-D_REENTRANT" | |
29856 | ;; | |
29857 | esac | |
e6cc62c6 VS |
29858 | echo "$as_me:$LINENO: result: ${flag}" >&5 |
29859 | echo "${ECHO_T}${flag}" >&6 | |
009fead0 | 29860 | if test "x$flag" != xno; then |
04727afd | 29861 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" |
009fead0 VZ |
29862 | fi |
29863 | ||
009fead0 | 29864 | if test "x$THREADS_CFLAGS" != "x"; then |
04727afd | 29865 | CFLAGS="$CFLAGS $THREADS_CFLAGS" |
009fead0 VZ |
29866 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" |
29867 | fi | |
29868 | fi | |
4f14bcd8 | 29869 | fi |
4f14bcd8 | 29870 | |
7274f1c7 | 29871 | if test "$wxUSE_THREADS" = "yes" ; then |
e6cc62c6 VS |
29872 | |
29873 | for ac_func in thr_setconcurrency | |
4f14bcd8 | 29874 | do |
e6cc62c6 VS |
29875 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
29876 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29877 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29878 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29879 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29880 | else | |
29881 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 29882 | #line $LINENO "configure" |
e6cc62c6 VS |
29883 | /* confdefs.h. */ |
29884 | _ACEOF | |
29885 | cat confdefs.h >>conftest.$ac_ext | |
29886 | cat >>conftest.$ac_ext <<_ACEOF | |
29887 | /* end confdefs.h. */ | |
4f14bcd8 | 29888 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
29889 | which can conflict with char $ac_func (); below. |
29890 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29891 | <limits.h> exists even on freestanding compilers. */ | |
29892 | #ifdef __STDC__ | |
29893 | # include <limits.h> | |
29894 | #else | |
29895 | # include <assert.h> | |
29896 | #endif | |
4f14bcd8 | 29897 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29898 | #ifdef __cplusplus |
29899 | extern "C" | |
29900 | { | |
29901 | #endif | |
4f14bcd8 | 29902 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29903 | builtin and then its argument prototype would still apply. */ |
29904 | char $ac_func (); | |
4f14bcd8 GD |
29905 | /* The GNU C library defines this for functions which it implements |
29906 | to always fail with ENOSYS. Some functions are actually named | |
29907 | something starting with __ and the normal name is an alias. */ | |
29908 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29909 | choke me | |
29910 | #else | |
e6cc62c6 VS |
29911 | char (*f) () = $ac_func; |
29912 | #endif | |
29913 | #ifdef __cplusplus | |
29914 | } | |
4f14bcd8 GD |
29915 | #endif |
29916 | ||
e6cc62c6 VS |
29917 | int |
29918 | main () | |
29919 | { | |
29920 | return f != $ac_func; | |
29921 | ; | |
29922 | return 0; | |
29923 | } | |
29924 | _ACEOF | |
29925 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29926 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 29927 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
29928 | ac_status=$? |
29929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29930 | (exit $ac_status); } && | |
789c5f4a | 29931 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
29932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29933 | (eval $ac_try) 2>&5 | |
29934 | ac_status=$? | |
29935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29936 | (exit $ac_status); }; }; then | |
29937 | eval "$as_ac_var=yes" | |
29938 | else | |
29939 | echo "$as_me: failed program was:" >&5 | |
29940 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29941 | ||
29942 | eval "$as_ac_var=no" | |
29943 | fi | |
789c5f4a | 29944 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
29945 | fi |
29946 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29947 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29948 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29949 | cat >>confdefs.h <<_ACEOF | |
29950 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29951 | _ACEOF | |
698dcdb6 | 29952 | |
10f2d63a | 29953 | fi |
4f14bcd8 | 29954 | done |
10f2d63a | 29955 | |
8284b0c5 | 29956 | |
e6cc62c6 VS |
29957 | |
29958 | for ac_header in sched.h | |
4f14bcd8 | 29959 | do |
e6cc62c6 VS |
29960 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
29961 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
29962 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
29963 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
29964 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
29965 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29966 | fi | |
29967 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
29968 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
29969 | else | |
29970 | # Is the header compilable? | |
29971 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
29972 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
29973 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 29974 | #line $LINENO "configure" |
e6cc62c6 VS |
29975 | /* confdefs.h. */ |
29976 | _ACEOF | |
29977 | cat confdefs.h >>conftest.$ac_ext | |
29978 | cat >>conftest.$ac_ext <<_ACEOF | |
29979 | /* end confdefs.h. */ | |
29980 | $ac_includes_default | |
29981 | #include <$ac_header> | |
29982 | _ACEOF | |
29983 | rm -f conftest.$ac_objext | |
29984 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 29985 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
29986 | ac_status=$? |
29987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29988 | (exit $ac_status); } && | |
789c5f4a | 29989 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
29990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29991 | (eval $ac_try) 2>&5 | |
29992 | ac_status=$? | |
29993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29994 | (exit $ac_status); }; }; then | |
29995 | ac_header_compiler=yes | |
29996 | else | |
29997 | echo "$as_me: failed program was:" >&5 | |
29998 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29999 | ||
30000 | ac_header_compiler=no | |
30001 | fi | |
789c5f4a | 30002 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
30003 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
30004 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
30005 | ||
30006 | # Is the header present? | |
30007 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
30008 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
30009 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 30010 | #line $LINENO "configure" |
e6cc62c6 VS |
30011 | /* confdefs.h. */ |
30012 | _ACEOF | |
30013 | cat confdefs.h >>conftest.$ac_ext | |
30014 | cat >>conftest.$ac_ext <<_ACEOF | |
30015 | /* end confdefs.h. */ | |
30016 | #include <$ac_header> | |
30017 | _ACEOF | |
30018 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
30019 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
30020 | ac_status=$? | |
30021 | grep -v '^ *+' conftest.er1 >conftest.err | |
30022 | rm -f conftest.er1 | |
30023 | cat conftest.err >&5 | |
30024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30025 | (exit $ac_status); } >/dev/null; then | |
30026 | if test -s conftest.err; then | |
30027 | ac_cpp_err=$ac_c_preproc_warn_flag | |
30028 | else | |
30029 | ac_cpp_err= | |
30030 | fi | |
30031 | else | |
30032 | ac_cpp_err=yes | |
30033 | fi | |
30034 | if test -z "$ac_cpp_err"; then | |
30035 | ac_header_preproc=yes | |
30036 | else | |
30037 | echo "$as_me: failed program was:" >&5 | |
30038 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30039 | ||
30040 | ac_header_preproc=no | |
30041 | fi | |
30042 | rm -f conftest.err conftest.$ac_ext | |
30043 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
30044 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
30045 | ||
30046 | # So? What about this header? | |
789c5f4a VZ |
30047 | case $ac_header_compiler:$ac_header_preproc in |
30048 | yes:no ) | |
e6cc62c6 VS |
30049 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
30050 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
789c5f4a VZ |
30051 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
30052 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
30053 | ( | |
30054 | cat <<\_ASBOX | |
30055 | ## ------------------------------------ ## | |
30056 | ## Report this to bug-autoconf@gnu.org. ## | |
30057 | ## ------------------------------------ ## | |
30058 | _ASBOX | |
30059 | ) | | |
30060 | sed "s/^/$as_me: WARNING: /" >&2 | |
e6cc62c6 | 30061 | ;; |
789c5f4a | 30062 | no:yes ) |
e6cc62c6 VS |
30063 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
30064 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
789c5f4a VZ |
30065 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
30066 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
e6cc62c6 VS |
30067 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
30068 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
30069 | ( | |
30070 | cat <<\_ASBOX | |
789c5f4a VZ |
30071 | ## ------------------------------------ ## |
30072 | ## Report this to bug-autoconf@gnu.org. ## | |
30073 | ## ------------------------------------ ## | |
e6cc62c6 VS |
30074 | _ASBOX |
30075 | ) | | |
30076 | sed "s/^/$as_me: WARNING: /" >&2 | |
30077 | ;; | |
30078 | esac | |
30079 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
30080 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
30081 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
30082 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30083 | else | |
789c5f4a | 30084 | eval "$as_ac_Header=$ac_header_preproc" |
13111b2a | 30085 | fi |
e6cc62c6 VS |
30086 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
30087 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
30088 | ||
10f2d63a | 30089 | fi |
e6cc62c6 VS |
30090 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
30091 | cat >>confdefs.h <<_ACEOF | |
30092 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
30093 | _ACEOF | |
30094 | ||
f6bcfd97 | 30095 | fi |
e6cc62c6 | 30096 | |
4f14bcd8 | 30097 | done |
f6bcfd97 | 30098 | |
009fead0 | 30099 | if test "$ac_cv_header_sched_h" = "yes"; then |
e6cc62c6 VS |
30100 | echo "$as_me:$LINENO: checking for sched_yield" >&5 |
30101 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 | |
30102 | if test "${ac_cv_func_sched_yield+set}" = set; then | |
30103 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30104 | else | |
30105 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 30106 | #line $LINENO "configure" |
e6cc62c6 VS |
30107 | /* confdefs.h. */ |
30108 | _ACEOF | |
30109 | cat confdefs.h >>conftest.$ac_ext | |
30110 | cat >>conftest.$ac_ext <<_ACEOF | |
30111 | /* end confdefs.h. */ | |
009fead0 | 30112 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30113 | which can conflict with char sched_yield (); below. |
30114 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30115 | <limits.h> exists even on freestanding compilers. */ | |
30116 | #ifdef __STDC__ | |
30117 | # include <limits.h> | |
30118 | #else | |
30119 | # include <assert.h> | |
30120 | #endif | |
4f14bcd8 | 30121 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30122 | #ifdef __cplusplus |
30123 | extern "C" | |
30124 | { | |
30125 | #endif | |
4f14bcd8 | 30126 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30127 | builtin and then its argument prototype would still apply. */ |
30128 | char sched_yield (); | |
009fead0 VZ |
30129 | /* The GNU C library defines this for functions which it implements |
30130 | to always fail with ENOSYS. Some functions are actually named | |
30131 | something starting with __ and the normal name is an alias. */ | |
30132 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
30133 | choke me | |
30134 | #else | |
e6cc62c6 VS |
30135 | char (*f) () = sched_yield; |
30136 | #endif | |
30137 | #ifdef __cplusplus | |
30138 | } | |
009fead0 VZ |
30139 | #endif |
30140 | ||
e6cc62c6 VS |
30141 | int |
30142 | main () | |
30143 | { | |
30144 | return f != sched_yield; | |
30145 | ; | |
30146 | return 0; | |
30147 | } | |
30148 | _ACEOF | |
30149 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30150 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 30151 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
30152 | ac_status=$? |
30153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30154 | (exit $ac_status); } && | |
789c5f4a | 30155 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
30156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30157 | (eval $ac_try) 2>&5 | |
30158 | ac_status=$? | |
30159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30160 | (exit $ac_status); }; }; then | |
30161 | ac_cv_func_sched_yield=yes | |
30162 | else | |
30163 | echo "$as_me: failed program was:" >&5 | |
30164 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30165 | ||
30166 | ac_cv_func_sched_yield=no | |
30167 | fi | |
789c5f4a | 30168 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
30169 | fi |
30170 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 | |
30171 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 | |
30172 | if test $ac_cv_func_sched_yield = yes; then | |
30173 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 30174 | #define HAVE_SCHED_YIELD 1 |
e6cc62c6 | 30175 | _ACEOF |
10f2d63a | 30176 | |
4f14bcd8 | 30177 | else |
009fead0 | 30178 | |
e6cc62c6 VS |
30179 | echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5 |
30180 | echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6 | |
30181 | if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then | |
30182 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4f14bcd8 | 30183 | else |
e6cc62c6 | 30184 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 30185 | LIBS="-lposix4 $LIBS" |
e6cc62c6 | 30186 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 30187 | #line $LINENO "configure" |
e6cc62c6 VS |
30188 | /* confdefs.h. */ |
30189 | _ACEOF | |
30190 | cat confdefs.h >>conftest.$ac_ext | |
30191 | cat >>conftest.$ac_ext <<_ACEOF | |
30192 | /* end confdefs.h. */ | |
30193 | ||
4f14bcd8 | 30194 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30195 | #ifdef __cplusplus |
30196 | extern "C" | |
30197 | #endif | |
4f14bcd8 | 30198 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30199 | builtin and then its argument prototype would still apply. */ |
30200 | char sched_yield (); | |
30201 | int | |
30202 | main () | |
30203 | { | |
30204 | sched_yield (); | |
30205 | ; | |
30206 | return 0; | |
30207 | } | |
30208 | _ACEOF | |
30209 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30210 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 30211 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
30212 | ac_status=$? |
30213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30214 | (exit $ac_status); } && | |
789c5f4a | 30215 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
30216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30217 | (eval $ac_try) 2>&5 | |
30218 | ac_status=$? | |
30219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30220 | (exit $ac_status); }; }; then | |
30221 | ac_cv_lib_posix4_sched_yield=yes | |
30222 | else | |
30223 | echo "$as_me: failed program was:" >&5 | |
30224 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30225 | ||
30226 | ac_cv_lib_posix4_sched_yield=no | |
30227 | fi | |
789c5f4a | 30228 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
30229 | LIBS=$ac_check_lib_save_LIBS |
30230 | fi | |
30231 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5 | |
30232 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6 | |
30233 | if test $ac_cv_lib_posix4_sched_yield = yes; then | |
30234 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 30235 | #define HAVE_SCHED_YIELD 1 |
e6cc62c6 | 30236 | _ACEOF |
3d63bc3a | 30237 | POSIX4_LINK=" -lposix4" |
4f14bcd8 | 30238 | else |
e6cc62c6 VS |
30239 | { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5 |
30240 | echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;} | |
30241 | ||
54276ccf VZ |
30242 | fi |
30243 | ||
e6cc62c6 VS |
30244 | |
30245 | ||
4f14bcd8 | 30246 | fi |
698dcdb6 | 30247 | |
009fead0 | 30248 | fi |
10f2d63a | 30249 | |
7274f1c7 | 30250 | HAVE_PRIOR_FUNCS=0 |
e6cc62c6 VS |
30251 | echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5 |
30252 | echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6 | |
30253 | if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then | |
30254 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30255 | else | |
30256 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 30257 | #line $LINENO "configure" |
e6cc62c6 VS |
30258 | /* confdefs.h. */ |
30259 | _ACEOF | |
30260 | cat confdefs.h >>conftest.$ac_ext | |
30261 | cat >>conftest.$ac_ext <<_ACEOF | |
30262 | /* end confdefs.h. */ | |
009fead0 | 30263 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30264 | which can conflict with char pthread_attr_getschedpolicy (); below. |
30265 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30266 | <limits.h> exists even on freestanding compilers. */ | |
30267 | #ifdef __STDC__ | |
30268 | # include <limits.h> | |
30269 | #else | |
30270 | # include <assert.h> | |
30271 | #endif | |
4f14bcd8 | 30272 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30273 | #ifdef __cplusplus |
30274 | extern "C" | |
30275 | { | |
30276 | #endif | |
4f14bcd8 | 30277 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30278 | builtin and then its argument prototype would still apply. */ |
30279 | char pthread_attr_getschedpolicy (); | |
009fead0 VZ |
30280 | /* The GNU C library defines this for functions which it implements |
30281 | to always fail with ENOSYS. Some functions are actually named | |
30282 | something starting with __ and the normal name is an alias. */ | |
30283 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
30284 | choke me | |
30285 | #else | |
e6cc62c6 VS |
30286 | char (*f) () = pthread_attr_getschedpolicy; |
30287 | #endif | |
30288 | #ifdef __cplusplus | |
30289 | } | |
009fead0 VZ |
30290 | #endif |
30291 | ||
e6cc62c6 VS |
30292 | int |
30293 | main () | |
30294 | { | |
30295 | return f != pthread_attr_getschedpolicy; | |
30296 | ; | |
30297 | return 0; | |
30298 | } | |
30299 | _ACEOF | |
30300 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30301 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 30302 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
30303 | ac_status=$? |
30304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30305 | (exit $ac_status); } && | |
789c5f4a | 30306 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
30307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30308 | (eval $ac_try) 2>&5 | |
30309 | ac_status=$? | |
30310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30311 | (exit $ac_status); }; }; then | |
30312 | ac_cv_func_pthread_attr_getschedpolicy=yes | |
30313 | else | |
30314 | echo "$as_me: failed program was:" >&5 | |
30315 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30316 | ||
30317 | ac_cv_func_pthread_attr_getschedpolicy=no | |
30318 | fi | |
789c5f4a | 30319 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
30320 | fi |
30321 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5 | |
30322 | echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6 | |
30323 | if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then | |
30324 | echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5 | |
30325 | echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6 | |
30326 | if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then | |
30327 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30328 | else | |
30329 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 30330 | #line $LINENO "configure" |
e6cc62c6 VS |
30331 | /* confdefs.h. */ |
30332 | _ACEOF | |
30333 | cat confdefs.h >>conftest.$ac_ext | |
30334 | cat >>conftest.$ac_ext <<_ACEOF | |
30335 | /* end confdefs.h. */ | |
a0b9e27f | 30336 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30337 | which can conflict with char pthread_attr_setschedparam (); below. |
30338 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30339 | <limits.h> exists even on freestanding compilers. */ | |
30340 | #ifdef __STDC__ | |
30341 | # include <limits.h> | |
30342 | #else | |
30343 | # include <assert.h> | |
30344 | #endif | |
422107f9 | 30345 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30346 | #ifdef __cplusplus |
30347 | extern "C" | |
30348 | { | |
30349 | #endif | |
422107f9 | 30350 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30351 | builtin and then its argument prototype would still apply. */ |
30352 | char pthread_attr_setschedparam (); | |
009fead0 VZ |
30353 | /* The GNU C library defines this for functions which it implements |
30354 | to always fail with ENOSYS. Some functions are actually named | |
30355 | something starting with __ and the normal name is an alias. */ | |
30356 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
30357 | choke me | |
30358 | #else | |
e6cc62c6 VS |
30359 | char (*f) () = pthread_attr_setschedparam; |
30360 | #endif | |
30361 | #ifdef __cplusplus | |
30362 | } | |
009fead0 VZ |
30363 | #endif |
30364 | ||
e6cc62c6 VS |
30365 | int |
30366 | main () | |
30367 | { | |
30368 | return f != pthread_attr_setschedparam; | |
30369 | ; | |
30370 | return 0; | |
30371 | } | |
30372 | _ACEOF | |
30373 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30374 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 30375 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
30376 | ac_status=$? |
30377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30378 | (exit $ac_status); } && | |
789c5f4a | 30379 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
30380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30381 | (eval $ac_try) 2>&5 | |
30382 | ac_status=$? | |
30383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30384 | (exit $ac_status); }; }; then | |
30385 | ac_cv_func_pthread_attr_setschedparam=yes | |
30386 | else | |
30387 | echo "$as_me: failed program was:" >&5 | |
30388 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30389 | ||
30390 | ac_cv_func_pthread_attr_setschedparam=no | |
30391 | fi | |
789c5f4a | 30392 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
30393 | fi |
30394 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5 | |
30395 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6 | |
30396 | if test $ac_cv_func_pthread_attr_setschedparam = yes; then | |
30397 | echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5 | |
30398 | echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6 | |
30399 | if test "${ac_cv_func_sched_get_priority_max+set}" = set; then | |
30400 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30401 | else | |
30402 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 30403 | #line $LINENO "configure" |
e6cc62c6 VS |
30404 | /* confdefs.h. */ |
30405 | _ACEOF | |
30406 | cat confdefs.h >>conftest.$ac_ext | |
30407 | cat >>conftest.$ac_ext <<_ACEOF | |
30408 | /* end confdefs.h. */ | |
ef33c576 | 30409 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30410 | which can conflict with char sched_get_priority_max (); below. |
30411 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30412 | <limits.h> exists even on freestanding compilers. */ | |
30413 | #ifdef __STDC__ | |
30414 | # include <limits.h> | |
30415 | #else | |
30416 | # include <assert.h> | |
30417 | #endif | |
4f14bcd8 | 30418 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30419 | #ifdef __cplusplus |
30420 | extern "C" | |
30421 | { | |
30422 | #endif | |
4f14bcd8 | 30423 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30424 | builtin and then its argument prototype would still apply. */ |
30425 | char sched_get_priority_max (); | |
009fead0 VZ |
30426 | /* The GNU C library defines this for functions which it implements |
30427 | to always fail with ENOSYS. Some functions are actually named | |
30428 | something starting with __ and the normal name is an alias. */ | |
30429 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
30430 | choke me | |
30431 | #else | |
e6cc62c6 VS |
30432 | char (*f) () = sched_get_priority_max; |
30433 | #endif | |
30434 | #ifdef __cplusplus | |
30435 | } | |
009fead0 VZ |
30436 | #endif |
30437 | ||
e6cc62c6 VS |
30438 | int |
30439 | main () | |
30440 | { | |
30441 | return f != sched_get_priority_max; | |
30442 | ; | |
30443 | return 0; | |
30444 | } | |
30445 | _ACEOF | |
30446 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30447 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 30448 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
30449 | ac_status=$? |
30450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30451 | (exit $ac_status); } && | |
789c5f4a | 30452 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
30453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30454 | (eval $ac_try) 2>&5 | |
30455 | ac_status=$? | |
30456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30457 | (exit $ac_status); }; }; then | |
30458 | ac_cv_func_sched_get_priority_max=yes | |
30459 | else | |
30460 | echo "$as_me: failed program was:" >&5 | |
30461 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30462 | ||
30463 | ac_cv_func_sched_get_priority_max=no | |
30464 | fi | |
789c5f4a | 30465 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
30466 | fi |
30467 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5 | |
30468 | echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6 | |
30469 | if test $ac_cv_func_sched_get_priority_max = yes; then | |
4f14bcd8 GD |
30470 | HAVE_PRIOR_FUNCS=1 |
30471 | else | |
e6cc62c6 VS |
30472 | echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5 |
30473 | echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6 | |
30474 | if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then | |
30475 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
422107f9 | 30476 | else |
e6cc62c6 | 30477 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 30478 | LIBS="-lposix4 $LIBS" |
e6cc62c6 | 30479 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 30480 | #line $LINENO "configure" |
e6cc62c6 VS |
30481 | /* confdefs.h. */ |
30482 | _ACEOF | |
30483 | cat confdefs.h >>conftest.$ac_ext | |
30484 | cat >>conftest.$ac_ext <<_ACEOF | |
30485 | /* end confdefs.h. */ | |
30486 | ||
422107f9 | 30487 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30488 | #ifdef __cplusplus |
30489 | extern "C" | |
30490 | #endif | |
422107f9 | 30491 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30492 | builtin and then its argument prototype would still apply. */ |
30493 | char sched_get_priority_max (); | |
30494 | int | |
30495 | main () | |
30496 | { | |
30497 | sched_get_priority_max (); | |
30498 | ; | |
30499 | return 0; | |
30500 | } | |
30501 | _ACEOF | |
30502 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30503 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 30504 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
30505 | ac_status=$? |
30506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30507 | (exit $ac_status); } && | |
789c5f4a | 30508 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
30509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30510 | (eval $ac_try) 2>&5 | |
30511 | ac_status=$? | |
30512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30513 | (exit $ac_status); }; }; then | |
30514 | ac_cv_lib_posix4_sched_get_priority_max=yes | |
30515 | else | |
30516 | echo "$as_me: failed program was:" >&5 | |
30517 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30518 | ||
30519 | ac_cv_lib_posix4_sched_get_priority_max=no | |
30520 | fi | |
789c5f4a | 30521 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
30522 | LIBS=$ac_check_lib_save_LIBS |
30523 | fi | |
30524 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5 | |
30525 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6 | |
30526 | if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then | |
698dcdb6 | 30527 | |
7274f1c7 RL |
30528 | HAVE_PRIOR_FUNCS=1 |
30529 | POSIX4_LINK=" -lposix4" | |
e6cc62c6 | 30530 | |
4f14bcd8 | 30531 | fi |
463abc64 | 30532 | |
e6cc62c6 | 30533 | |
328a083c | 30534 | fi |
463abc64 | 30535 | |
e6cc62c6 | 30536 | |
7b4a847f | 30537 | fi |
579d8138 | 30538 | |
e6cc62c6 | 30539 | |
5c6fa7d2 | 30540 | fi |
52127426 | 30541 | |
8284b0c5 | 30542 | |
7274f1c7 | 30543 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
e6cc62c6 | 30544 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 30545 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
e6cc62c6 | 30546 | _ACEOF |
463abc64 | 30547 | |
7274f1c7 | 30548 | else |
e6cc62c6 VS |
30549 | { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5 |
30550 | echo "$as_me: WARNING: Setting thread priority will not work" >&2;} | |
7274f1c7 | 30551 | fi |
463abc64 | 30552 | |
e6cc62c6 VS |
30553 | echo "$as_me:$LINENO: checking for pthread_cancel" >&5 |
30554 | echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6 | |
30555 | if test "${ac_cv_func_pthread_cancel+set}" = set; then | |
30556 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30557 | else | |
30558 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 30559 | #line $LINENO "configure" |
e6cc62c6 VS |
30560 | /* confdefs.h. */ |
30561 | _ACEOF | |
30562 | cat confdefs.h >>conftest.$ac_ext | |
30563 | cat >>conftest.$ac_ext <<_ACEOF | |
30564 | /* end confdefs.h. */ | |
009fead0 | 30565 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30566 | which can conflict with char pthread_cancel (); below. |
30567 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30568 | <limits.h> exists even on freestanding compilers. */ | |
30569 | #ifdef __STDC__ | |
30570 | # include <limits.h> | |
30571 | #else | |
30572 | # include <assert.h> | |
30573 | #endif | |
422107f9 | 30574 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30575 | #ifdef __cplusplus |
30576 | extern "C" | |
30577 | { | |
30578 | #endif | |
422107f9 | 30579 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30580 | builtin and then its argument prototype would still apply. */ |
30581 | char pthread_cancel (); | |
009fead0 VZ |
30582 | /* The GNU C library defines this for functions which it implements |
30583 | to always fail with ENOSYS. Some functions are actually named | |
30584 | something starting with __ and the normal name is an alias. */ | |
30585 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
30586 | choke me | |
30587 | #else | |
e6cc62c6 VS |
30588 | char (*f) () = pthread_cancel; |
30589 | #endif | |
30590 | #ifdef __cplusplus | |
30591 | } | |
009fead0 VZ |
30592 | #endif |
30593 | ||
e6cc62c6 VS |
30594 | int |
30595 | main () | |
30596 | { | |
30597 | return f != pthread_cancel; | |
30598 | ; | |
30599 | return 0; | |
30600 | } | |
30601 | _ACEOF | |
30602 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30603 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 30604 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
30605 | ac_status=$? |
30606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30607 | (exit $ac_status); } && | |
789c5f4a | 30608 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
30609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30610 | (eval $ac_try) 2>&5 | |
30611 | ac_status=$? | |
30612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30613 | (exit $ac_status); }; }; then | |
30614 | ac_cv_func_pthread_cancel=yes | |
30615 | else | |
30616 | echo "$as_me: failed program was:" >&5 | |
30617 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30618 | ||
30619 | ac_cv_func_pthread_cancel=no | |
30620 | fi | |
789c5f4a | 30621 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
30622 | fi |
30623 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5 | |
30624 | echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6 | |
30625 | if test $ac_cv_func_pthread_cancel = yes; then | |
30626 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 30627 | #define HAVE_PTHREAD_CANCEL 1 |
e6cc62c6 | 30628 | _ACEOF |
4f14bcd8 | 30629 | |
698dcdb6 | 30630 | else |
e6cc62c6 VS |
30631 | { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5 |
30632 | echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;} | |
422107f9 VZ |
30633 | fi |
30634 | ||
5c6fa7d2 | 30635 | |
4f14bcd8 | 30636 | |
e6cc62c6 VS |
30637 | |
30638 | echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5 | |
30639 | echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6 | |
30640 | if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then | |
30641 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
698dcdb6 | 30642 | else |
e6cc62c6 VS |
30643 | |
30644 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 30645 | #line $LINENO "configure" |
e6cc62c6 VS |
30646 | /* confdefs.h. */ |
30647 | _ACEOF | |
30648 | cat confdefs.h >>conftest.$ac_ext | |
30649 | cat >>conftest.$ac_ext <<_ACEOF | |
30650 | /* end confdefs.h. */ | |
4f14bcd8 | 30651 | #include <pthread.h> |
e6cc62c6 VS |
30652 | int |
30653 | main () | |
30654 | { | |
4f14bcd8 | 30655 | |
7274f1c7 RL |
30656 | pthread_mutexattr_t attr; |
30657 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
e6cc62c6 VS |
30658 | |
30659 | ; | |
30660 | return 0; | |
30661 | } | |
30662 | _ACEOF | |
30663 | rm -f conftest.$ac_objext | |
30664 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 30665 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
30666 | ac_status=$? |
30667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30668 | (exit $ac_status); } && | |
789c5f4a | 30669 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
30670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30671 | (eval $ac_try) 2>&5 | |
30672 | ac_status=$? | |
30673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30674 | (exit $ac_status); }; }; then | |
30675 | ||
7274f1c7 | 30676 | wx_cv_type_pthread_mutexattr_t=yes |
e6cc62c6 | 30677 | |
3fed1840 | 30678 | else |
e6cc62c6 VS |
30679 | echo "$as_me: failed program was:" >&5 |
30680 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30681 | ||
30682 | ||
7274f1c7 | 30683 | wx_cv_type_pthread_mutexattr_t=no |
e6cc62c6 VS |
30684 | |
30685 | ||
247f5006 | 30686 | fi |
789c5f4a | 30687 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 30688 | |
e6cc62c6 VS |
30689 | fi |
30690 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5 | |
30691 | echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6 | |
4f14bcd8 | 30692 | |
7274f1c7 | 30693 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then |
e6cc62c6 | 30694 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 30695 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
e6cc62c6 | 30696 | _ACEOF |
4f14bcd8 | 30697 | |
7274f1c7 | 30698 | else |
e6cc62c6 VS |
30699 | echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
30700 | echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6 | |
30701 | if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then | |
30702 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30703 | else | |
30704 | ||
30705 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 30706 | #line $LINENO "configure" |
e6cc62c6 VS |
30707 | /* confdefs.h. */ |
30708 | _ACEOF | |
30709 | cat confdefs.h >>conftest.$ac_ext | |
30710 | cat >>conftest.$ac_ext <<_ACEOF | |
30711 | /* end confdefs.h. */ | |
4f14bcd8 | 30712 | #include <pthread.h> |
e6cc62c6 VS |
30713 | int |
30714 | main () | |
30715 | { | |
4f14bcd8 | 30716 | |
7274f1c7 | 30717 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; |
e6cc62c6 VS |
30718 | |
30719 | ; | |
30720 | return 0; | |
30721 | } | |
30722 | _ACEOF | |
30723 | rm -f conftest.$ac_objext | |
30724 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 30725 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
30726 | ac_status=$? |
30727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30728 | (exit $ac_status); } && | |
789c5f4a | 30729 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
30730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30731 | (eval $ac_try) 2>&5 | |
30732 | ac_status=$? | |
30733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30734 | (exit $ac_status); }; }; then | |
30735 | ||
7274f1c7 | 30736 | wx_cv_type_pthread_rec_mutex_init=yes |
e6cc62c6 | 30737 | |
698dcdb6 | 30738 | else |
e6cc62c6 VS |
30739 | echo "$as_me: failed program was:" >&5 |
30740 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30741 | ||
30742 | ||
7274f1c7 | 30743 | wx_cv_type_pthread_rec_mutex_init=no |
e6cc62c6 VS |
30744 | |
30745 | ||
247f5006 | 30746 | fi |
789c5f4a | 30747 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 30748 | |
e6cc62c6 VS |
30749 | fi |
30750 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5 | |
30751 | echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6 | |
7274f1c7 | 30752 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
e6cc62c6 | 30753 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 30754 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
e6cc62c6 | 30755 | _ACEOF |
3fed1840 | 30756 | |
7274f1c7 | 30757 | else |
e6cc62c6 VS |
30758 | { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5 |
30759 | echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;} | |
7274f1c7 RL |
30760 | fi |
30761 | fi | |
7274f1c7 | 30762 | fi |
3fed1840 | 30763 | |
a0b9e27f MB |
30764 | else |
30765 | if test "$wxUSE_THREADS" = "yes" ; then | |
30766 | case "${host}" in | |
30767 | *-*-mingw32* ) | |
e6cc62c6 VS |
30768 | echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5 |
30769 | echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6 | |
30770 | if test "${wx_cv_cflags_mthread+set}" = set; then | |
30771 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca8e52b3 | 30772 | else |
e6cc62c6 | 30773 | |
ca8e52b3 VZ |
30774 | CFLAGS_OLD="$CFLAGS" |
30775 | CFLAGS="$CFLAGS -mthreads" | |
e6cc62c6 | 30776 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 30777 | #line $LINENO "configure" |
e6cc62c6 VS |
30778 | /* confdefs.h. */ |
30779 | _ACEOF | |
30780 | cat confdefs.h >>conftest.$ac_ext | |
30781 | cat >>conftest.$ac_ext <<_ACEOF | |
30782 | /* end confdefs.h. */ | |
30783 | ||
30784 | int | |
30785 | main () | |
30786 | { | |
ca8e52b3 | 30787 | |
e6cc62c6 VS |
30788 | ; |
30789 | return 0; | |
30790 | } | |
30791 | _ACEOF | |
30792 | rm -f conftest.$ac_objext | |
30793 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 30794 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
30795 | ac_status=$? |
30796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30797 | (exit $ac_status); } && | |
789c5f4a | 30798 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
30799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30800 | (eval $ac_try) 2>&5 | |
30801 | ac_status=$? | |
30802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30803 | (exit $ac_status); }; }; then | |
ca8e52b3 VZ |
30804 | wx_cv_cflags_mthread=yes |
30805 | else | |
e6cc62c6 VS |
30806 | echo "$as_me: failed program was:" >&5 |
30807 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30808 | ||
30809 | wx_cv_cflags_mthread=no | |
30810 | ||
ca8e52b3 | 30811 | fi |
789c5f4a | 30812 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 30813 | |
ca8e52b3 | 30814 | |
e6cc62c6 VS |
30815 | fi |
30816 | echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5 | |
30817 | echo "${ECHO_T}$wx_cv_cflags_mthread" >&6 | |
ca8e52b3 VZ |
30818 | |
30819 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
30820 | CXXFLAGS="$CXXFLAGS -mthreads" | |
30821 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads" | |
30822 | LDFLAGS="$LDFLAGS -mthreads" | |
30823 | else | |
30824 | CFLAGS="$CFLAGS_OLD" | |
30825 | fi | |
a0b9e27f | 30826 | ;; |
73d617c9 MB |
30827 | *-pc-os2*emx ) |
30828 | CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__" | |
30829 | CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__" | |
30830 | LDFLAGS="$LDFLAGS -Zmt" | |
30831 | ;; | |
a0b9e27f MB |
30832 | esac |
30833 | fi | |
4f14bcd8 GD |
30834 | fi |
30835 | ||
30836 | if test "$wxUSE_THREADS" = "yes"; then | |
e6cc62c6 | 30837 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 30838 | #define wxUSE_THREADS 1 |
e6cc62c6 | 30839 | _ACEOF |
7b6058cd | 30840 | |
8284b0c5 | 30841 | |
4f14bcd8 | 30842 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" |
698dcdb6 | 30843 | else |
4f14bcd8 | 30844 | if test "$ac_cv_func_strtok_r" = "yes"; then |
e6cc62c6 VS |
30845 | echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5 |
30846 | echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6 | |
4f14bcd8 GD |
30847 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
30848 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
e6cc62c6 VS |
30849 | echo "$as_me:$LINENO: result: yes" >&5 |
30850 | echo "${ECHO_T}yes" >&6 | |
4f14bcd8 | 30851 | else |
e6cc62c6 VS |
30852 | echo "$as_me:$LINENO: result: no" >&5 |
30853 | echo "${ECHO_T}no" >&6 | |
4f14bcd8 GD |
30854 | fi |
30855 | fi | |
30856 | fi | |
30857 | ||
30858 | if test "$WXGTK20" = 1 ; then | |
e6cc62c6 | 30859 | cat >>confdefs.h <<_ACEOF |
4f14bcd8 | 30860 | #define __WXGTK20__ $WXGTK20 |
e6cc62c6 | 30861 | _ACEOF |
4f14bcd8 GD |
30862 | |
30863 | WXGTK12=1 | |
10f2d63a | 30864 | fi |
4f14bcd8 GD |
30865 | |
30866 | if test "$WXGTK12" = 1 ; then | |
e6cc62c6 | 30867 | cat >>confdefs.h <<_ACEOF |
4f14bcd8 | 30868 | #define __WXGTK12__ $WXGTK12 |
e6cc62c6 | 30869 | _ACEOF |
4f14bcd8 | 30870 | |
10f2d63a | 30871 | fi |
698dcdb6 | 30872 | |
4f14bcd8 | 30873 | if test "$WXGTK127" = 1 ; then |
e6cc62c6 | 30874 | cat >>confdefs.h <<_ACEOF |
4f14bcd8 | 30875 | #define __WXGTK127__ $WXGTK127 |
e6cc62c6 | 30876 | _ACEOF |
4f14bcd8 | 30877 | |
698dcdb6 | 30878 | fi |
10f2d63a | 30879 | |
4f14bcd8 GD |
30880 | WXDEBUG= |
30881 | ||
30882 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
30883 | WXDEBUG="-g" | |
30884 | wxUSE_OPTIMISE=no | |
698dcdb6 | 30885 | fi |
4f14bcd8 GD |
30886 | |
30887 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
30888 | wxUSE_DEBUG_INFO=yes | |
30889 | WXDEBUG="-ggdb" | |
10f2d63a VZ |
30890 | fi |
30891 | ||
4f14bcd8 | 30892 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then |
e6cc62c6 | 30893 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 30894 | #define WXDEBUG 1 |
e6cc62c6 | 30895 | _ACEOF |
4f14bcd8 GD |
30896 | |
30897 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
10f2d63a | 30898 | else |
4f14bcd8 GD |
30899 | if test "$wxUSE_GTK" = 1 ; then |
30900 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
30901 | fi | |
30902 | fi | |
30903 | ||
30904 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
e6cc62c6 | 30905 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 30906 | #define wxUSE_MEMORY_TRACING 1 |
e6cc62c6 | 30907 | _ACEOF |
4f14bcd8 | 30908 | |
e6cc62c6 | 30909 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 30910 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 |
e6cc62c6 | 30911 | _ACEOF |
4f14bcd8 | 30912 | |
e6cc62c6 | 30913 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 30914 | #define wxUSE_DEBUG_NEW_ALWAYS 1 |
e6cc62c6 | 30915 | _ACEOF |
4f14bcd8 GD |
30916 | |
30917 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
30918 | fi | |
30919 | ||
30920 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
3d63bc3a | 30921 | DMALLOC_LIBS="-ldmalloc" |
4f14bcd8 GD |
30922 | fi |
30923 | ||
30924 | PROFILE= | |
30925 | if test "$wxUSE_PROFILE" = "yes" ; then | |
3d63bc3a | 30926 | PROFILE=" -pg" |
10f2d63a VZ |
30927 | fi |
30928 | ||
009fead0 VZ |
30929 | CODE_GEN_FLAGS= |
30930 | CODE_GEN_FLAGS_CXX= | |
88e30f2b | 30931 | if test "$GCC" = "yes" ; then |
4f14bcd8 GD |
30932 | if test "$wxUSE_NO_RTTI" = "yes" ; then |
30933 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
3a922bb4 | 30934 | fi |
4f14bcd8 GD |
30935 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
30936 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
30937 | fi | |
30938 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
30939 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
30940 | fi | |
1d1b75ac | 30941 | |
2b5f62a0 | 30942 | case "${host}" in |
1d1b75ac VZ |
30943 | powerpc*-*-aix* ) |
30944 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
30945 | ;; | |
2b5f62a0 VZ |
30946 | *-hppa* ) |
30947 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections" | |
30948 | ;; | |
1d1b75ac | 30949 | esac |
4f14bcd8 GD |
30950 | fi |
30951 | ||
af7b5345 | 30952 | OPTIMISE= |
4f14bcd8 | 30953 | if test "$wxUSE_OPTIMISE" = "no" ; then |
af7b5345 VZ |
30954 | if test "$GCC" = yes ; then |
30955 | OPTIMISE="-O0" | |
30956 | fi | |
4f14bcd8 GD |
30957 | else |
30958 | if test "$GCC" = yes ; then | |
30959 | OPTIMISE="-O2" | |
af7b5345 VZ |
30960 | |
30961 | case "${host}" in | |
4f14bcd8 GD |
30962 | i586-*-*|i686-*-* ) |
30963 | OPTIMISE="${OPTIMISE} " | |
30964 | ;; | |
30965 | esac | |
30966 | else | |
30967 | OPTIMISE="-O" | |
30968 | fi | |
30969 | fi | |
30970 | ||
8d90d2f2 | 30971 | |
65d8ef1e | 30972 | if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then |
e6cc62c6 | 30973 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 30974 | #define WXWIN_COMPATIBILITY_2_2 1 |
e6cc62c6 | 30975 | _ACEOF |
4f14bcd8 | 30976 | |
8d90d2f2 VZ |
30977 | |
30978 | WXWIN_COMPATIBILITY_2_4="yes" | |
10f2d63a VZ |
30979 | fi |
30980 | ||
65d8ef1e | 30981 | if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then |
e6cc62c6 | 30982 | cat >>confdefs.h <<\_ACEOF |
65d8ef1e | 30983 | #define WXWIN_COMPATIBILITY_2_4 1 |
e6cc62c6 | 30984 | _ACEOF |
65d8ef1e VS |
30985 | |
30986 | fi | |
30987 | ||
8284b0c5 | 30988 | |
10f2d63a | 30989 | if test "$wxUSE_GUI" = "yes"; then |
e6cc62c6 | 30990 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30991 | #define wxUSE_GUI 1 |
e6cc62c6 | 30992 | _ACEOF |
10f2d63a | 30993 | |
8284b0c5 | 30994 | |
10f2d63a | 30995 | else |
e6cc62c6 | 30996 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30997 | #define wxUSE_NOGUI 1 |
e6cc62c6 | 30998 | _ACEOF |
10f2d63a VZ |
30999 | |
31000 | fi | |
31001 | ||
8284b0c5 | 31002 | |
10f2d63a | 31003 | if test "$wxUSE_UNIX" = "yes"; then |
e6cc62c6 | 31004 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 31005 | #define wxUSE_UNIX 1 |
e6cc62c6 | 31006 | _ACEOF |
10f2d63a VZ |
31007 | |
31008 | fi | |
31009 | ||
8284b0c5 | 31010 | |
f93ca9fd | 31011 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then |
5c6fa7d2 | 31012 | |
f93ca9fd VS |
31013 | HAVE_DL_FUNCS=0 |
31014 | HAVE_SHL_FUNCS=0 | |
31015 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
31016 | if test "$USE_DARWIN" = 1; then | |
31017 | HAVE_DL_FUNCS=1 | |
31018 | else | |
e6cc62c6 | 31019 | |
f93ca9fd | 31020 | for ac_func in dlopen |
83307f33 | 31021 | do |
e6cc62c6 VS |
31022 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
31023 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31024 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31025 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31026 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31027 | else | |
31028 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 31029 | #line $LINENO "configure" |
e6cc62c6 VS |
31030 | /* confdefs.h. */ |
31031 | _ACEOF | |
31032 | cat confdefs.h >>conftest.$ac_ext | |
31033 | cat >>conftest.$ac_ext <<_ACEOF | |
31034 | /* end confdefs.h. */ | |
83307f33 | 31035 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
31036 | which can conflict with char $ac_func (); below. |
31037 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31038 | <limits.h> exists even on freestanding compilers. */ | |
31039 | #ifdef __STDC__ | |
31040 | # include <limits.h> | |
31041 | #else | |
31042 | # include <assert.h> | |
31043 | #endif | |
83307f33 | 31044 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31045 | #ifdef __cplusplus |
31046 | extern "C" | |
31047 | { | |
31048 | #endif | |
83307f33 | 31049 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31050 | builtin and then its argument prototype would still apply. */ |
31051 | char $ac_func (); | |
83307f33 VZ |
31052 | /* The GNU C library defines this for functions which it implements |
31053 | to always fail with ENOSYS. Some functions are actually named | |
31054 | something starting with __ and the normal name is an alias. */ | |
31055 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31056 | choke me | |
31057 | #else | |
e6cc62c6 VS |
31058 | char (*f) () = $ac_func; |
31059 | #endif | |
31060 | #ifdef __cplusplus | |
31061 | } | |
83307f33 VZ |
31062 | #endif |
31063 | ||
e6cc62c6 VS |
31064 | int |
31065 | main () | |
31066 | { | |
31067 | return f != $ac_func; | |
31068 | ; | |
31069 | return 0; | |
31070 | } | |
31071 | _ACEOF | |
31072 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31073 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 31074 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
31075 | ac_status=$? |
31076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31077 | (exit $ac_status); } && | |
789c5f4a | 31078 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
31079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31080 | (eval $ac_try) 2>&5 | |
31081 | ac_status=$? | |
31082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31083 | (exit $ac_status); }; }; then | |
31084 | eval "$as_ac_var=yes" | |
31085 | else | |
31086 | echo "$as_me: failed program was:" >&5 | |
31087 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31088 | ||
31089 | eval "$as_ac_var=no" | |
31090 | fi | |
789c5f4a | 31091 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
31092 | fi |
31093 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31094 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31095 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31096 | cat >>confdefs.h <<_ACEOF | |
31097 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31098 | _ACEOF | |
83307f33 | 31099 | |
f93ca9fd VS |
31100 | cat >>confdefs.h <<\_ACEOF |
31101 | #define HAVE_DLOPEN 1 | |
e6cc62c6 | 31102 | _ACEOF |
e6cc62c6 | 31103 | |
f93ca9fd | 31104 | HAVE_DL_FUNCS=1 |
e6cc62c6 | 31105 | |
360d6699 | 31106 | else |
e6cc62c6 | 31107 | |
f93ca9fd VS |
31108 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
31109 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
31110 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
31111 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5357c8e8 | 31112 | else |
f93ca9fd VS |
31113 | ac_check_lib_save_LIBS=$LIBS |
31114 | LIBS="-ldl $LIBS" | |
31115 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 31116 | #line $LINENO "configure" |
e6cc62c6 VS |
31117 | /* confdefs.h. */ |
31118 | _ACEOF | |
31119 | cat confdefs.h >>conftest.$ac_ext | |
31120 | cat >>conftest.$ac_ext <<_ACEOF | |
31121 | /* end confdefs.h. */ | |
5357c8e8 | 31122 | |
f93ca9fd VS |
31123 | /* Override any gcc2 internal prototype to avoid an error. */ |
31124 | #ifdef __cplusplus | |
31125 | extern "C" | |
31126 | #endif | |
31127 | /* We use char because int might match the return type of a gcc2 | |
31128 | builtin and then its argument prototype would still apply. */ | |
31129 | char dlopen (); | |
e6cc62c6 VS |
31130 | int |
31131 | main () | |
31132 | { | |
f93ca9fd | 31133 | dlopen (); |
e6cc62c6 VS |
31134 | ; |
31135 | return 0; | |
31136 | } | |
31137 | _ACEOF | |
f93ca9fd VS |
31138 | rm -f conftest.$ac_objext conftest$ac_exeext |
31139 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 31140 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
31141 | ac_status=$? |
31142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31143 | (exit $ac_status); } && | |
789c5f4a | 31144 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
31145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31146 | (eval $ac_try) 2>&5 | |
31147 | ac_status=$? | |
31148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31149 | (exit $ac_status); }; }; then | |
f93ca9fd | 31150 | ac_cv_lib_dl_dlopen=yes |
360d6699 | 31151 | else |
e6cc62c6 VS |
31152 | echo "$as_me: failed program was:" >&5 |
31153 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31154 | ||
f93ca9fd | 31155 | ac_cv_lib_dl_dlopen=no |
247f5006 | 31156 | fi |
789c5f4a | 31157 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
f93ca9fd | 31158 | LIBS=$ac_check_lib_save_LIBS |
e6cc62c6 | 31159 | fi |
f93ca9fd VS |
31160 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
31161 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
31162 | if test $ac_cv_lib_dl_dlopen = yes; then | |
698dcdb6 | 31163 | |
f93ca9fd VS |
31164 | cat >>confdefs.h <<\_ACEOF |
31165 | #define HAVE_DLOPEN 1 | |
e6cc62c6 | 31166 | _ACEOF |
360d6699 | 31167 | |
f93ca9fd VS |
31168 | HAVE_DL_FUNCS=1 |
31169 | DL_LINK=" -ldl$DL_LINK" | |
698dcdb6 | 31170 | |
f93ca9fd | 31171 | else |
e6cc62c6 | 31172 | |
f93ca9fd VS |
31173 | |
31174 | for ac_func in shl_load | |
afc31813 | 31175 | do |
e6cc62c6 VS |
31176 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
31177 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31178 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31179 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31180 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31181 | else | |
31182 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 31183 | #line $LINENO "configure" |
e6cc62c6 VS |
31184 | /* confdefs.h. */ |
31185 | _ACEOF | |
31186 | cat confdefs.h >>conftest.$ac_ext | |
31187 | cat >>conftest.$ac_ext <<_ACEOF | |
31188 | /* end confdefs.h. */ | |
afc31813 | 31189 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
31190 | which can conflict with char $ac_func (); below. |
31191 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31192 | <limits.h> exists even on freestanding compilers. */ | |
31193 | #ifdef __STDC__ | |
31194 | # include <limits.h> | |
31195 | #else | |
31196 | # include <assert.h> | |
31197 | #endif | |
afc31813 | 31198 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31199 | #ifdef __cplusplus |
31200 | extern "C" | |
31201 | { | |
31202 | #endif | |
afc31813 | 31203 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31204 | builtin and then its argument prototype would still apply. */ |
31205 | char $ac_func (); | |
afc31813 VZ |
31206 | /* The GNU C library defines this for functions which it implements |
31207 | to always fail with ENOSYS. Some functions are actually named | |
31208 | something starting with __ and the normal name is an alias. */ | |
31209 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31210 | choke me | |
31211 | #else | |
e6cc62c6 VS |
31212 | char (*f) () = $ac_func; |
31213 | #endif | |
31214 | #ifdef __cplusplus | |
31215 | } | |
afc31813 VZ |
31216 | #endif |
31217 | ||
e6cc62c6 VS |
31218 | int |
31219 | main () | |
31220 | { | |
31221 | return f != $ac_func; | |
31222 | ; | |
31223 | return 0; | |
31224 | } | |
31225 | _ACEOF | |
31226 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31227 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 31228 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
31229 | ac_status=$? |
31230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31231 | (exit $ac_status); } && | |
789c5f4a | 31232 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
31233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31234 | (eval $ac_try) 2>&5 | |
31235 | ac_status=$? | |
31236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31237 | (exit $ac_status); }; }; then | |
31238 | eval "$as_ac_var=yes" | |
31239 | else | |
31240 | echo "$as_me: failed program was:" >&5 | |
31241 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31242 | ||
31243 | eval "$as_ac_var=no" | |
31244 | fi | |
789c5f4a | 31245 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
31246 | fi |
31247 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31248 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31249 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31250 | cat >>confdefs.h <<_ACEOF | |
31251 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31252 | _ACEOF | |
afc31813 | 31253 | |
f93ca9fd VS |
31254 | cat >>confdefs.h <<\_ACEOF |
31255 | #define HAVE_SHL_LOAD 1 | |
31256 | _ACEOF | |
afc31813 | 31257 | |
f93ca9fd | 31258 | HAVE_SHL_FUNCS=1 |
5c6fa7d2 | 31259 | |
a0b9e27f | 31260 | else |
e6cc62c6 | 31261 | |
f93ca9fd VS |
31262 | echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5 |
31263 | echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6 | |
31264 | if test "${ac_cv_lib_shl_load_dld+set}" = set; then | |
31265 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31266 | else | |
31267 | ac_check_lib_save_LIBS=$LIBS | |
31268 | LIBS="-lshl_load $LIBS" | |
31269 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 31270 | #line $LINENO "configure" |
e6cc62c6 VS |
31271 | /* confdefs.h. */ |
31272 | _ACEOF | |
31273 | cat confdefs.h >>conftest.$ac_ext | |
31274 | cat >>conftest.$ac_ext <<_ACEOF | |
31275 | /* end confdefs.h. */ | |
0470b1e6 | 31276 | |
f93ca9fd VS |
31277 | /* Override any gcc2 internal prototype to avoid an error. */ |
31278 | #ifdef __cplusplus | |
31279 | extern "C" | |
31280 | #endif | |
31281 | /* We use char because int might match the return type of a gcc2 | |
31282 | builtin and then its argument prototype would still apply. */ | |
31283 | char dld (); | |
e6cc62c6 VS |
31284 | int |
31285 | main () | |
31286 | { | |
f93ca9fd | 31287 | dld (); |
e6cc62c6 VS |
31288 | ; |
31289 | return 0; | |
31290 | } | |
31291 | _ACEOF | |
f93ca9fd VS |
31292 | rm -f conftest.$ac_objext conftest$ac_exeext |
31293 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 31294 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
31295 | ac_status=$? |
31296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31297 | (exit $ac_status); } && | |
789c5f4a | 31298 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
31299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31300 | (eval $ac_try) 2>&5 | |
31301 | ac_status=$? | |
31302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31303 | (exit $ac_status); }; }; then | |
f93ca9fd | 31304 | ac_cv_lib_shl_load_dld=yes |
0470b1e6 | 31305 | else |
e6cc62c6 VS |
31306 | echo "$as_me: failed program was:" >&5 |
31307 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31308 | ||
f93ca9fd VS |
31309 | ac_cv_lib_shl_load_dld=no |
31310 | fi | |
789c5f4a | 31311 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
f93ca9fd VS |
31312 | LIBS=$ac_check_lib_save_LIBS |
31313 | fi | |
31314 | echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5 | |
31315 | echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6 | |
31316 | if test $ac_cv_lib_shl_load_dld = yes; then | |
31317 | ||
31318 | HAVE_SHL_FUNCS=1 | |
31319 | DL_LINK=" -ldld$DL_LINK" | |
e6cc62c6 | 31320 | |
247f5006 | 31321 | fi |
f93ca9fd | 31322 | |
a0b9e27f | 31323 | |
e6cc62c6 | 31324 | fi |
f93ca9fd | 31325 | done |
6232543b | 31326 | |
0470b1e6 | 31327 | |
f93ca9fd VS |
31328 | fi |
31329 | ||
3fcdd07b | 31330 | |
f93ca9fd VS |
31331 | fi |
31332 | done | |
e6cc62c6 VS |
31333 | |
31334 | ||
f93ca9fd VS |
31335 | if test "$HAVE_DL_FUNCS" = 1; then |
31336 | ||
31337 | for ac_func in dlerror | |
3fcdd07b | 31338 | do |
e6cc62c6 VS |
31339 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
31340 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31341 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31342 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31343 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31344 | else | |
31345 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 31346 | #line $LINENO "configure" |
e6cc62c6 VS |
31347 | /* confdefs.h. */ |
31348 | _ACEOF | |
31349 | cat confdefs.h >>conftest.$ac_ext | |
31350 | cat >>conftest.$ac_ext <<_ACEOF | |
31351 | /* end confdefs.h. */ | |
3fcdd07b | 31352 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
31353 | which can conflict with char $ac_func (); below. |
31354 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31355 | <limits.h> exists even on freestanding compilers. */ | |
31356 | #ifdef __STDC__ | |
31357 | # include <limits.h> | |
31358 | #else | |
31359 | # include <assert.h> | |
31360 | #endif | |
3fcdd07b | 31361 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31362 | #ifdef __cplusplus |
31363 | extern "C" | |
31364 | { | |
31365 | #endif | |
3fcdd07b | 31366 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31367 | builtin and then its argument prototype would still apply. */ |
31368 | char $ac_func (); | |
3fcdd07b VZ |
31369 | /* The GNU C library defines this for functions which it implements |
31370 | to always fail with ENOSYS. Some functions are actually named | |
31371 | something starting with __ and the normal name is an alias. */ | |
31372 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31373 | choke me | |
31374 | #else | |
e6cc62c6 VS |
31375 | char (*f) () = $ac_func; |
31376 | #endif | |
31377 | #ifdef __cplusplus | |
31378 | } | |
3fcdd07b VZ |
31379 | #endif |
31380 | ||
e6cc62c6 VS |
31381 | int |
31382 | main () | |
31383 | { | |
31384 | return f != $ac_func; | |
31385 | ; | |
31386 | return 0; | |
31387 | } | |
31388 | _ACEOF | |
31389 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31390 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 31391 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
31392 | ac_status=$? |
31393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31394 | (exit $ac_status); } && | |
789c5f4a | 31395 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
31396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31397 | (eval $ac_try) 2>&5 | |
31398 | ac_status=$? | |
31399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31400 | (exit $ac_status); }; }; then | |
31401 | eval "$as_ac_var=yes" | |
31402 | else | |
31403 | echo "$as_me: failed program was:" >&5 | |
31404 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31405 | ||
31406 | eval "$as_ac_var=no" | |
31407 | fi | |
789c5f4a | 31408 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
31409 | fi |
31410 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31411 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31412 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31413 | cat >>confdefs.h <<_ACEOF | |
31414 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31415 | _ACEOF | |
f93ca9fd VS |
31416 | cat >>confdefs.h <<\_ACEOF |
31417 | #define HAVE_DLERROR 1 | |
31418 | _ACEOF | |
3fcdd07b | 31419 | |
f93ca9fd | 31420 | else |
698dcdb6 | 31421 | |
f93ca9fd VS |
31422 | echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5 |
31423 | echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6 | |
31424 | if test "${ac_cv_lib_dl_dlerror+set}" = set; then | |
e6cc62c6 VS |
31425 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
31426 | else | |
f93ca9fd VS |
31427 | ac_check_lib_save_LIBS=$LIBS |
31428 | LIBS="-ldl $LIBS" | |
31429 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 31430 | #line $LINENO "configure" |
e6cc62c6 VS |
31431 | /* confdefs.h. */ |
31432 | _ACEOF | |
31433 | cat confdefs.h >>conftest.$ac_ext | |
31434 | cat >>conftest.$ac_ext <<_ACEOF | |
31435 | /* end confdefs.h. */ | |
afc31813 | 31436 | |
f93ca9fd VS |
31437 | /* Override any gcc2 internal prototype to avoid an error. */ |
31438 | #ifdef __cplusplus | |
31439 | extern "C" | |
31440 | #endif | |
31441 | /* We use char because int might match the return type of a gcc2 | |
31442 | builtin and then its argument prototype would still apply. */ | |
31443 | char dlerror (); | |
e6cc62c6 VS |
31444 | int |
31445 | main () | |
31446 | { | |
f93ca9fd | 31447 | dlerror (); |
e6cc62c6 VS |
31448 | ; |
31449 | return 0; | |
31450 | } | |
31451 | _ACEOF | |
f93ca9fd VS |
31452 | rm -f conftest.$ac_objext conftest$ac_exeext |
31453 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 31454 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
31455 | ac_status=$? |
31456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31457 | (exit $ac_status); } && | |
789c5f4a | 31458 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
31459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31460 | (eval $ac_try) 2>&5 | |
31461 | ac_status=$? | |
31462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31463 | (exit $ac_status); }; }; then | |
f93ca9fd | 31464 | ac_cv_lib_dl_dlerror=yes |
10f2d63a | 31465 | else |
e6cc62c6 VS |
31466 | echo "$as_me: failed program was:" >&5 |
31467 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31468 | ||
f93ca9fd VS |
31469 | ac_cv_lib_dl_dlerror=no |
31470 | fi | |
789c5f4a | 31471 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
f93ca9fd VS |
31472 | LIBS=$ac_check_lib_save_LIBS |
31473 | fi | |
31474 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5 | |
31475 | echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6 | |
31476 | if test $ac_cv_lib_dl_dlerror = yes; then | |
31477 | cat >>confdefs.h <<\_ACEOF | |
31478 | #define HAVE_DLERROR 1 | |
31479 | _ACEOF | |
31480 | ||
31481 | fi | |
31482 | ||
31483 | ||
31484 | ||
31485 | fi | |
31486 | done | |
31487 | ||
31488 | fi | |
31489 | fi | |
31490 | ||
31491 | if test "$HAVE_DL_FUNCS" = 0; then | |
31492 | if test "$HAVE_SHL_FUNCS" = 0; then | |
31493 | if test "$USE_UNIX" = 1; then | |
31494 | { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5 | |
31495 | echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;} | |
31496 | wxUSE_DYNAMIC_LOADER=no | |
31497 | wxUSE_DYNLIB_CLASS=no | |
31498 | else | |
31499 | { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5 | |
31500 | echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;} | |
31501 | fi | |
31502 | fi | |
31503 | fi | |
31504 | fi | |
31505 | fi | |
31506 | ||
31507 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then | |
31508 | cat >>confdefs.h <<\_ACEOF | |
31509 | #define wxUSE_DYNAMIC_LOADER 1 | |
31510 | _ACEOF | |
31511 | ||
31512 | fi | |
31513 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
31514 | cat >>confdefs.h <<\_ACEOF | |
31515 | #define wxUSE_DYNLIB_CLASS 1 | |
31516 | _ACEOF | |
31517 | ||
31518 | fi | |
31519 | ||
31520 | ||
31521 | ||
31522 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
31523 | if test "$wxUSE_SHARED" = "no" ; then | |
31524 | { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5 | |
31525 | echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;} | |
31526 | wxUSE_PLUGINS=no | |
31527 | fi | |
31528 | if test "$wxUSE_MONOLITHIC" = "yes" ; then | |
31529 | { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5 | |
31530 | echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;} | |
31531 | wxUSE_PLUGINS=no | |
31532 | fi | |
31533 | if test "$wxUSE_DYNLIB_CLASS" = "no" ; then | |
31534 | { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5 | |
31535 | echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;} | |
31536 | wxUSE_PLUGINS=no | |
31537 | fi | |
31538 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
31539 | cat >>confdefs.h <<\_ACEOF | |
31540 | #define wxUSE_PLUGINS 1 | |
31541 | _ACEOF | |
31542 | ||
31543 | fi | |
31544 | fi | |
31545 | ||
31546 | ||
31547 | if test "$wxUSE_STL" = "yes"; then | |
31548 | cat >>confdefs.h <<\_ACEOF | |
31549 | #define wxUSE_STL 1 | |
31550 | _ACEOF | |
31551 | ||
31552 | fi | |
31553 | ||
31554 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
31555 | cat >>confdefs.h <<\_ACEOF | |
31556 | #define wxUSE_APPLE_IEEE 1 | |
31557 | _ACEOF | |
31558 | ||
31559 | fi | |
31560 | ||
31561 | if test "$wxUSE_TIMER" = "yes"; then | |
31562 | cat >>confdefs.h <<\_ACEOF | |
31563 | #define wxUSE_TIMER 1 | |
31564 | _ACEOF | |
31565 | ||
31566 | fi | |
31567 | ||
31568 | WITH_PLUGIN_SDL=0 | |
002ed9af | 31569 | if test "$wxUSE_SOUND" = "yes"; then |
f93ca9fd VS |
31570 | if test "$USE_UNIX" = "1" ; then |
31571 | ||
31572 | for ac_header in sys/soundcard.h | |
31573 | do | |
31574 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
31575 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31576 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31577 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31578 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31579 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31580 | fi | |
31581 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31582 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31583 | else | |
31584 | # Is the header compilable? | |
31585 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
31586 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
e6cc62c6 | 31587 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 31588 | #line $LINENO "configure" |
e6cc62c6 VS |
31589 | /* confdefs.h. */ |
31590 | _ACEOF | |
31591 | cat confdefs.h >>conftest.$ac_ext | |
31592 | cat >>conftest.$ac_ext <<_ACEOF | |
31593 | /* end confdefs.h. */ | |
f93ca9fd VS |
31594 | $ac_includes_default |
31595 | #include <$ac_header> | |
e6cc62c6 VS |
31596 | _ACEOF |
31597 | rm -f conftest.$ac_objext | |
31598 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 31599 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
31600 | ac_status=$? |
31601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31602 | (exit $ac_status); } && | |
789c5f4a | 31603 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
31604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31605 | (eval $ac_try) 2>&5 | |
31606 | ac_status=$? | |
31607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31608 | (exit $ac_status); }; }; then | |
f93ca9fd | 31609 | ac_header_compiler=yes |
10f2d63a | 31610 | else |
e6cc62c6 VS |
31611 | echo "$as_me: failed program was:" >&5 |
31612 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31613 | ||
f93ca9fd | 31614 | ac_header_compiler=no |
10f2d63a | 31615 | fi |
789c5f4a | 31616 | rm -f conftest.$ac_objext conftest.$ac_ext |
f93ca9fd VS |
31617 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
31618 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
b089607b | 31619 | |
f93ca9fd VS |
31620 | # Is the header present? |
31621 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
31622 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
31623 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 31624 | #line $LINENO "configure" |
e6cc62c6 VS |
31625 | /* confdefs.h. */ |
31626 | _ACEOF | |
31627 | cat confdefs.h >>conftest.$ac_ext | |
31628 | cat >>conftest.$ac_ext <<_ACEOF | |
31629 | /* end confdefs.h. */ | |
f93ca9fd | 31630 | #include <$ac_header> |
e6cc62c6 | 31631 | _ACEOF |
f93ca9fd VS |
31632 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
31633 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
e6cc62c6 | 31634 | ac_status=$? |
f95e4495 VS |
31635 | grep -v '^ *+' conftest.er1 >conftest.err |
31636 | rm -f conftest.er1 | |
31637 | cat conftest.err >&5 | |
e6cc62c6 | 31638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f93ca9fd VS |
31639 | (exit $ac_status); } >/dev/null; then |
31640 | if test -s conftest.err; then | |
31641 | ac_cpp_err=$ac_c_preproc_warn_flag | |
f93ca9fd VS |
31642 | else |
31643 | ac_cpp_err= | |
31644 | fi | |
31645 | else | |
31646 | ac_cpp_err=yes | |
31647 | fi | |
31648 | if test -z "$ac_cpp_err"; then | |
31649 | ac_header_preproc=yes | |
31650 | else | |
31651 | echo "$as_me: failed program was:" >&5 | |
31652 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31653 | ||
31654 | ac_header_preproc=no | |
31655 | fi | |
31656 | rm -f conftest.err conftest.$ac_ext | |
31657 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
31658 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
31659 | ||
31660 | # So? What about this header? | |
789c5f4a VZ |
31661 | case $ac_header_compiler:$ac_header_preproc in |
31662 | yes:no ) | |
f93ca9fd VS |
31663 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
31664 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
789c5f4a VZ |
31665 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
31666 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
31667 | ( | |
31668 | cat <<\_ASBOX | |
31669 | ## ------------------------------------ ## | |
31670 | ## Report this to bug-autoconf@gnu.org. ## | |
31671 | ## ------------------------------------ ## | |
31672 | _ASBOX | |
31673 | ) | | |
31674 | sed "s/^/$as_me: WARNING: /" >&2 | |
f93ca9fd | 31675 | ;; |
789c5f4a | 31676 | no:yes ) |
f93ca9fd VS |
31677 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
31678 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
789c5f4a VZ |
31679 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
31680 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
f93ca9fd VS |
31681 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
31682 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
f93ca9fd VS |
31683 | ( |
31684 | cat <<\_ASBOX | |
789c5f4a VZ |
31685 | ## ------------------------------------ ## |
31686 | ## Report this to bug-autoconf@gnu.org. ## | |
31687 | ## ------------------------------------ ## | |
f93ca9fd VS |
31688 | _ASBOX |
31689 | ) | | |
31690 | sed "s/^/$as_me: WARNING: /" >&2 | |
31691 | ;; | |
31692 | esac | |
31693 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31694 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31695 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31696 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31697 | else | |
789c5f4a | 31698 | eval "$as_ac_Header=$ac_header_preproc" |
f93ca9fd VS |
31699 | fi |
31700 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31701 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31702 | ||
31703 | fi | |
31704 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
31705 | cat >>confdefs.h <<_ACEOF | |
31706 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
31707 | _ACEOF | |
31708 | ||
31709 | fi | |
31710 | ||
31711 | done | |
31712 | ||
31713 | ||
31714 | if test "$wxUSE_LIBSDL" != "no"; then | |
31715 | ||
31716 | # Check whether --with-sdl-prefix or --without-sdl-prefix was given. | |
31717 | if test "${with_sdl_prefix+set}" = set; then | |
31718 | withval="$with_sdl_prefix" | |
31719 | sdl_prefix="$withval" | |
31720 | else | |
31721 | sdl_prefix="" | |
31722 | fi; | |
31723 | ||
31724 | # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given. | |
31725 | if test "${with_sdl_exec_prefix+set}" = set; then | |
31726 | withval="$with_sdl_exec_prefix" | |
31727 | sdl_exec_prefix="$withval" | |
31728 | else | |
31729 | sdl_exec_prefix="" | |
31730 | fi; | |
31731 | # Check whether --enable-sdltest or --disable-sdltest was given. | |
31732 | if test "${enable_sdltest+set}" = set; then | |
31733 | enableval="$enable_sdltest" | |
31734 | ||
31735 | else | |
31736 | enable_sdltest=yes | |
31737 | fi; | |
31738 | ||
31739 | if test x$sdl_exec_prefix != x ; then | |
31740 | sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" | |
31741 | if test x${SDL_CONFIG+set} != xset ; then | |
31742 | SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config | |
31743 | fi | |
31744 | fi | |
31745 | if test x$sdl_prefix != x ; then | |
31746 | sdl_args="$sdl_args --prefix=$sdl_prefix" | |
31747 | if test x${SDL_CONFIG+set} != xset ; then | |
31748 | SDL_CONFIG=$sdl_prefix/bin/sdl-config | |
31749 | fi | |
31750 | fi | |
31751 | ||
31752 | ||
31753 | PATH="$prefix/bin:$prefix/usr/bin:$PATH" | |
31754 | # Extract the first word of "sdl-config", so it can be a program name with args. | |
31755 | set dummy sdl-config; ac_word=$2 | |
31756 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
31757 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
31758 | if test "${ac_cv_path_SDL_CONFIG+set}" = set; then | |
31759 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31760 | else | |
31761 | case $SDL_CONFIG in | |
31762 | [\\/]* | ?:[\\/]*) | |
31763 | ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. | |
31764 | ;; | |
31765 | *) | |
31766 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
31767 | for as_dir in $PATH | |
31768 | do | |
31769 | IFS=$as_save_IFS | |
31770 | test -z "$as_dir" && as_dir=. | |
31771 | for ac_exec_ext in '' $ac_executable_extensions; do | |
31772 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
31773 | ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
31774 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
31775 | break 2 | |
31776 | fi | |
31777 | done | |
31778 | done | |
31779 | ||
31780 | test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" | |
31781 | ;; | |
31782 | esac | |
31783 | fi | |
31784 | SDL_CONFIG=$ac_cv_path_SDL_CONFIG | |
31785 | ||
31786 | if test -n "$SDL_CONFIG"; then | |
31787 | echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5 | |
31788 | echo "${ECHO_T}$SDL_CONFIG" >&6 | |
31789 | else | |
31790 | echo "$as_me:$LINENO: result: no" >&5 | |
31791 | echo "${ECHO_T}no" >&6 | |
31792 | fi | |
31793 | ||
31794 | min_sdl_version=1.2.0 | |
31795 | echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5 | |
31796 | echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6 | |
31797 | no_sdl="" | |
31798 | if test "$SDL_CONFIG" = "no" ; then | |
31799 | no_sdl=yes | |
31800 | else | |
31801 | SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` | |
31802 | SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` | |
31803 | ||
31804 | sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ | |
31805 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
31806 | sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ | |
31807 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
31808 | sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ | |
31809 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
31810 | if test "x$enable_sdltest" = "xyes" ; then | |
31811 | ac_save_CFLAGS="$CFLAGS" | |
31812 | ac_save_LIBS="$LIBS" | |
31813 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
31814 | LIBS="$LIBS $SDL_LIBS" | |
31815 | rm -f conf.sdltest | |
31816 | if test "$cross_compiling" = yes; then | |
31817 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
31818 | else | |
31819 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 31820 | #line $LINENO "configure" |
f93ca9fd VS |
31821 | /* confdefs.h. */ |
31822 | _ACEOF | |
31823 | cat confdefs.h >>conftest.$ac_ext | |
31824 | cat >>conftest.$ac_ext <<_ACEOF | |
31825 | /* end confdefs.h. */ | |
31826 | ||
31827 | #include <stdio.h> | |
31828 | #include <stdlib.h> | |
31829 | #include <string.h> | |
31830 | #include "SDL.h" | |
31831 | ||
31832 | char* | |
31833 | my_strdup (char *str) | |
31834 | { | |
31835 | char *new_str; | |
31836 | ||
31837 | if (str) | |
31838 | { | |
31839 | new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); | |
31840 | strcpy (new_str, str); | |
31841 | } | |
31842 | else | |
31843 | new_str = NULL; | |
31844 | ||
31845 | return new_str; | |
31846 | } | |
31847 | ||
31848 | int main (int argc, char *argv[]) | |
31849 | { | |
31850 | int major, minor, micro; | |
31851 | char *tmp_version; | |
31852 | ||
31853 | /* This hangs on some systems (?) | |
31854 | system ("touch conf.sdltest"); | |
31855 | */ | |
31856 | { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } | |
31857 | ||
31858 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
31859 | tmp_version = my_strdup("$min_sdl_version"); | |
31860 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
31861 | printf("%s, bad version string\n", "$min_sdl_version"); | |
31862 | exit(1); | |
31863 | } | |
31864 | ||
31865 | if (($sdl_major_version > major) || | |
31866 | (($sdl_major_version == major) && ($sdl_minor_version > minor)) || | |
31867 | (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) | |
31868 | { | |
31869 | return 0; | |
31870 | } | |
31871 | else | |
31872 | { | |
31873 | printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); | |
31874 | printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); | |
31875 | printf("*** best to upgrade to the required version.\n"); | |
31876 | printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); | |
31877 | printf("*** to point to the correct copy of sdl-config, and remove the file\n"); | |
31878 | printf("*** config.cache before re-running configure\n"); | |
31879 | return 1; | |
31880 | } | |
31881 | } | |
31882 | ||
31883 | ||
31884 | _ACEOF | |
31885 | rm -f conftest$ac_exeext | |
31886 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31887 | (eval $ac_link) 2>&5 | |
f95e4495 VS |
31888 | ac_status=$? |
31889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f93ca9fd | 31890 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
e6cc62c6 VS |
31891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31892 | (eval $ac_try) 2>&5 | |
31893 | ac_status=$? | |
31894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31895 | (exit $ac_status); }; }; then | |
f93ca9fd | 31896 | : |
e6cc62c6 | 31897 | else |
f93ca9fd VS |
31898 | echo "$as_me: program exited with status $ac_status" >&5 |
31899 | echo "$as_me: failed program was:" >&5 | |
e6cc62c6 VS |
31900 | sed 's/^/| /' conftest.$ac_ext >&5 |
31901 | ||
f93ca9fd VS |
31902 | ( exit $ac_status ) |
31903 | no_sdl=yes | |
e6cc62c6 | 31904 | fi |
789c5f4a | 31905 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 31906 | fi |
f93ca9fd VS |
31907 | CFLAGS="$ac_save_CFLAGS" |
31908 | LIBS="$ac_save_LIBS" | |
31909 | fi | |
31910 | fi | |
31911 | if test "x$no_sdl" = x ; then | |
31912 | echo "$as_me:$LINENO: result: yes" >&5 | |
31913 | echo "${ECHO_T}yes" >&6 | |
0e012a93 | 31914 | |
f93ca9fd VS |
31915 | EXTRALIBS_SDL="$SDL_LIBS" |
31916 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" | |
31917 | cat >>confdefs.h <<\_ACEOF | |
31918 | #define wxUSE_LIBSDL 1 | |
31919 | _ACEOF | |
31920 | ||
31921 | ||
31922 | else | |
31923 | echo "$as_me:$LINENO: result: no" >&5 | |
31924 | echo "${ECHO_T}no" >&6 | |
31925 | if test "$SDL_CONFIG" = "no" ; then | |
31926 | echo "*** The sdl-config script installed by SDL could not be found" | |
31927 | echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" | |
31928 | echo "*** your path, or set the SDL_CONFIG environment variable to the" | |
31929 | echo "*** full path to sdl-config." | |
31930 | else | |
31931 | if test -f conf.sdltest ; then | |
31932 | : | |
31933 | else | |
31934 | echo "*** Could not run SDL test program, checking why..." | |
31935 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
31936 | LIBS="$LIBS $SDL_LIBS" | |
31937 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 31938 | #line $LINENO "configure" |
e6cc62c6 VS |
31939 | /* confdefs.h. */ |
31940 | _ACEOF | |
31941 | cat confdefs.h >>conftest.$ac_ext | |
31942 | cat >>conftest.$ac_ext <<_ACEOF | |
31943 | /* end confdefs.h. */ | |
31944 | ||
f93ca9fd VS |
31945 | #include <stdio.h> |
31946 | #include "SDL.h" | |
31947 | ||
31948 | int main(int argc, char *argv[]) | |
31949 | { return 0; } | |
31950 | #undef main | |
31951 | #define main K_and_R_C_main | |
31952 | ||
e6cc62c6 VS |
31953 | int |
31954 | main () | |
31955 | { | |
f93ca9fd | 31956 | return 0; |
e6cc62c6 VS |
31957 | ; |
31958 | return 0; | |
31959 | } | |
31960 | _ACEOF | |
31961 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31962 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 31963 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
31964 | ac_status=$? |
31965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31966 | (exit $ac_status); } && | |
789c5f4a | 31967 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
31968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31969 | (eval $ac_try) 2>&5 | |
31970 | ac_status=$? | |
31971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31972 | (exit $ac_status); }; }; then | |
f93ca9fd VS |
31973 | echo "*** The test program compiled, but did not run. This usually means" |
31974 | echo "*** that the run-time linker is not finding SDL or finding the wrong" | |
31975 | echo "*** version of SDL. If it is not finding SDL, you'll need to set your" | |
31976 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
31977 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
31978 | echo "*** is required on your system" | |
31979 | echo "***" | |
31980 | echo "*** If you have an old version installed, it is best to remove it, although" | |
31981 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
e6cc62c6 VS |
31982 | else |
31983 | echo "$as_me: failed program was:" >&5 | |
31984 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31985 | ||
f93ca9fd VS |
31986 | echo "*** The test program failed to compile or link. See the file config.log for the" |
31987 | echo "*** exact error that occured. This usually means SDL was incorrectly installed" | |
31988 | echo "*** or that you have moved SDL since it was installed. In the latter case, you" | |
31989 | echo "*** may want to edit the sdl-config script: $SDL_CONFIG" | |
e6cc62c6 | 31990 | fi |
789c5f4a | 31991 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
f93ca9fd VS |
31992 | CFLAGS="$ac_save_CFLAGS" |
31993 | LIBS="$ac_save_LIBS" | |
31994 | fi | |
31995 | fi | |
31996 | SDL_CFLAGS="" | |
31997 | SDL_LIBS="" | |
31998 | wxUSE_LIBSDL="no" | |
31999 | fi | |
32000 | ||
32001 | ||
32002 | rm -f conf.sdltest | |
32003 | ||
32004 | if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then | |
32005 | WITH_PLUGIN_SDL=1 | |
32006 | fi | |
32007 | fi | |
32008 | fi | |
32009 | ||
32010 | cat >>confdefs.h <<\_ACEOF | |
002ed9af | 32011 | #define wxUSE_SOUND 1 |
f93ca9fd VS |
32012 | _ACEOF |
32013 | ||
32014 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound" | |
e6cc62c6 | 32015 | fi |
afc31813 | 32016 | |
f93ca9fd VS |
32017 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
32018 | cat >>confdefs.h <<\_ACEOF | |
32019 | #define wxUSE_CMDLINE_PARSER 1 | |
32020 | _ACEOF | |
32021 | ||
32022 | fi | |
e6cc62c6 | 32023 | |
f93ca9fd VS |
32024 | if test "$wxUSE_STOPWATCH" = "yes"; then |
32025 | cat >>confdefs.h <<\_ACEOF | |
32026 | #define wxUSE_STOPWATCH 1 | |
32027 | _ACEOF | |
e6cc62c6 | 32028 | |
6232543b | 32029 | fi |
b089607b | 32030 | |
f93ca9fd VS |
32031 | if test "$wxUSE_DATETIME" = "yes"; then |
32032 | cat >>confdefs.h <<\_ACEOF | |
32033 | #define wxUSE_DATETIME 1 | |
32034 | _ACEOF | |
e6cc62c6 | 32035 | |
f93ca9fd VS |
32036 | fi |
32037 | ||
32038 | if test "$wxUSE_FILE" = "yes"; then | |
32039 | cat >>confdefs.h <<\_ACEOF | |
32040 | #define wxUSE_FILE 1 | |
32041 | _ACEOF | |
0e012a93 | 32042 | |
1e487827 | 32043 | fi |
afc31813 | 32044 | |
f93ca9fd VS |
32045 | if test "$wxUSE_FFILE" = "yes"; then |
32046 | cat >>confdefs.h <<\_ACEOF | |
32047 | #define wxUSE_FFILE 1 | |
32048 | _ACEOF | |
32049 | ||
32050 | fi | |
32051 | ||
32052 | if test "$wxUSE_FILESYSTEM" = "yes"; then | |
32053 | cat >>confdefs.h <<\_ACEOF | |
32054 | #define wxUSE_FILESYSTEM 1 | |
32055 | _ACEOF | |
32056 | ||
32057 | fi | |
32058 | ||
32059 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
32060 | cat >>confdefs.h <<\_ACEOF | |
32061 | #define wxUSE_FS_ZIP 1 | |
32062 | _ACEOF | |
32063 | ||
32064 | fi | |
32065 | ||
32066 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
32067 | cat >>confdefs.h <<\_ACEOF | |
32068 | #define wxUSE_ZIPSTREAM 1 | |
32069 | _ACEOF | |
32070 | ||
32071 | fi | |
32072 | ||
32073 | if test "$wxUSE_GZSTREAM" = "yes"; then | |
32074 | cat >>confdefs.h <<\_ACEOF | |
32075 | #define wxUSE_GZSTREAM 1 | |
32076 | _ACEOF | |
32077 | ||
32078 | fi | |
32079 | ||
32080 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
32081 | cat >>confdefs.h <<\_ACEOF | |
32082 | #define wxUSE_ON_FATAL_EXCEPTION 1 | |
32083 | _ACEOF | |
32084 | ||
32085 | fi | |
32086 | ||
32087 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
32088 | cat >>confdefs.h <<\_ACEOF | |
32089 | #define wxUSE_SNGLINST_CHECKER 1 | |
32090 | _ACEOF | |
32091 | ||
32092 | fi | |
32093 | ||
32094 | if test "$wxUSE_BUSYINFO" = "yes"; then | |
32095 | cat >>confdefs.h <<\_ACEOF | |
32096 | #define wxUSE_BUSYINFO 1 | |
32097 | _ACEOF | |
32098 | ||
32099 | fi | |
32100 | ||
32101 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
32102 | cat >>confdefs.h <<\_ACEOF | |
32103 | #define wxUSE_STD_IOSTREAM 1 | |
32104 | _ACEOF | |
32105 | ||
32106 | fi | |
32107 | ||
32108 | if test "$wxUSE_TEXTBUFFER" = "yes"; then | |
32109 | cat >>confdefs.h <<\_ACEOF | |
32110 | #define wxUSE_TEXTBUFFER 1 | |
32111 | _ACEOF | |
32112 | ||
32113 | fi | |
32114 | ||
32115 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
32116 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then | |
32117 | { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5 | |
32118 | echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;} | |
32119 | else | |
32120 | cat >>confdefs.h <<\_ACEOF | |
32121 | #define wxUSE_TEXTFILE 1 | |
32122 | _ACEOF | |
32123 | ||
32124 | fi | |
32125 | fi | |
32126 | ||
32127 | if test "$wxUSE_CONFIG" = "yes" ; then | |
32128 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
32129 | { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5 | |
32130 | echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;} | |
32131 | else | |
32132 | cat >>confdefs.h <<\_ACEOF | |
32133 | #define wxUSE_CONFIG 1 | |
32134 | _ACEOF | |
32135 | ||
32136 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
32137 | fi | |
32138 | fi | |
32139 | ||
32140 | if test "$wxUSE_INTL" = "yes" ; then | |
32141 | if test "$wxUSE_FILE" != "yes"; then | |
32142 | { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5 | |
32143 | echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;} | |
32144 | else | |
32145 | cat >>confdefs.h <<\_ACEOF | |
32146 | #define wxUSE_INTL 1 | |
32147 | _ACEOF | |
32148 | ||
32149 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
32150 | GUIDIST="$GUIDIST INTL_DIST" | |
32151 | fi | |
32152 | fi | |
32153 | ||
32154 | if test "$wxUSE_LOG" = "yes"; then | |
32155 | cat >>confdefs.h <<\_ACEOF | |
32156 | #define wxUSE_LOG 1 | |
32157 | _ACEOF | |
32158 | ||
32159 | ||
32160 | if test "$wxUSE_LOGGUI" = "yes"; then | |
32161 | cat >>confdefs.h <<\_ACEOF | |
32162 | #define wxUSE_LOGGUI 1 | |
32163 | _ACEOF | |
32164 | ||
32165 | fi | |
32166 | ||
32167 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
32168 | cat >>confdefs.h <<\_ACEOF | |
32169 | #define wxUSE_LOGWINDOW 1 | |
32170 | _ACEOF | |
32171 | ||
32172 | fi | |
32173 | ||
32174 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
32175 | cat >>confdefs.h <<\_ACEOF | |
32176 | #define wxUSE_LOG_DIALOG 1 | |
32177 | _ACEOF | |
32178 | ||
3a922bb4 | 32179 | fi |
0feee163 | 32180 | fi |
51a9faba | 32181 | |
f93ca9fd VS |
32182 | if test "$wxUSE_LONGLONG" = "yes"; then |
32183 | cat >>confdefs.h <<\_ACEOF | |
32184 | #define wxUSE_LONGLONG 1 | |
32185 | _ACEOF | |
e6cc62c6 | 32186 | |
f93ca9fd VS |
32187 | fi |
32188 | ||
32189 | if test "$wxUSE_GEOMETRY" = "yes"; then | |
32190 | cat >>confdefs.h <<\_ACEOF | |
32191 | #define wxUSE_GEOMETRY 1 | |
e6cc62c6 | 32192 | _ACEOF |
51a9faba | 32193 | |
f93ca9fd | 32194 | fi |
e6cc62c6 | 32195 | |
f93ca9fd VS |
32196 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
32197 | cat >>confdefs.h <<\_ACEOF | |
32198 | #define wxUSE_DIALUP_MANAGER 1 | |
32199 | _ACEOF | |
51a9faba | 32200 | |
f93ca9fd VS |
32201 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
32202 | fi | |
e6cc62c6 | 32203 | |
f93ca9fd VS |
32204 | if test "$wxUSE_STREAMS" = "yes" ; then |
32205 | cat >>confdefs.h <<\_ACEOF | |
32206 | #define wxUSE_STREAMS 1 | |
e6cc62c6 | 32207 | _ACEOF |
e6cc62c6 | 32208 | |
f93ca9fd | 32209 | fi |
e6cc62c6 | 32210 | |
9711d31e | 32211 | |
f93ca9fd VS |
32212 | if test "$wxUSE_DATETIME" = "yes"; then |
32213 | ||
32214 | for ac_func in strptime | |
32215 | do | |
32216 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32217 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32218 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32219 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32220 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32221 | else | |
32222 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 32223 | #line $LINENO "configure" |
e6cc62c6 VS |
32224 | /* confdefs.h. */ |
32225 | _ACEOF | |
32226 | cat confdefs.h >>conftest.$ac_ext | |
32227 | cat >>conftest.$ac_ext <<_ACEOF | |
32228 | /* end confdefs.h. */ | |
f93ca9fd VS |
32229 | /* System header to define __stub macros and hopefully few prototypes, |
32230 | which can conflict with char $ac_func (); below. | |
32231 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32232 | <limits.h> exists even on freestanding compilers. */ | |
f93ca9fd VS |
32233 | #ifdef __STDC__ |
32234 | # include <limits.h> | |
32235 | #else | |
32236 | # include <assert.h> | |
32237 | #endif | |
f93ca9fd VS |
32238 | /* Override any gcc2 internal prototype to avoid an error. */ |
32239 | #ifdef __cplusplus | |
32240 | extern "C" | |
32241 | { | |
32242 | #endif | |
32243 | /* We use char because int might match the return type of a gcc2 | |
32244 | builtin and then its argument prototype would still apply. */ | |
32245 | char $ac_func (); | |
32246 | /* The GNU C library defines this for functions which it implements | |
32247 | to always fail with ENOSYS. Some functions are actually named | |
32248 | something starting with __ and the normal name is an alias. */ | |
32249 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32250 | choke me | |
32251 | #else | |
32252 | char (*f) () = $ac_func; | |
32253 | #endif | |
32254 | #ifdef __cplusplus | |
32255 | } | |
32256 | #endif | |
e6cc62c6 VS |
32257 | |
32258 | int | |
32259 | main () | |
32260 | { | |
f93ca9fd | 32261 | return f != $ac_func; |
e6cc62c6 VS |
32262 | ; |
32263 | return 0; | |
32264 | } | |
32265 | _ACEOF | |
f93ca9fd VS |
32266 | rm -f conftest.$ac_objext conftest$ac_exeext |
32267 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 32268 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
32269 | ac_status=$? |
32270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32271 | (exit $ac_status); } && | |
789c5f4a | 32272 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
32273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32274 | (eval $ac_try) 2>&5 | |
32275 | ac_status=$? | |
32276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32277 | (exit $ac_status); }; }; then | |
f93ca9fd | 32278 | eval "$as_ac_var=yes" |
afc31813 | 32279 | else |
e6cc62c6 VS |
32280 | echo "$as_me: failed program was:" >&5 |
32281 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32282 | ||
f93ca9fd VS |
32283 | eval "$as_ac_var=no" |
32284 | fi | |
789c5f4a | 32285 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
f93ca9fd VS |
32286 | fi |
32287 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32288 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32289 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32290 | cat >>confdefs.h <<_ACEOF | |
32291 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32292 | _ACEOF | |
32293 | ||
32294 | fi | |
32295 | done | |
32296 | ||
32297 | ||
32298 | echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5 | |
32299 | echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6 | |
32300 | if test "${wx_cv_var_timezone+set}" = set; then | |
32301 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32302 | else | |
32303 | ||
32304 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 32305 | #line $LINENO "configure" |
e6cc62c6 VS |
32306 | /* confdefs.h. */ |
32307 | _ACEOF | |
32308 | cat confdefs.h >>conftest.$ac_ext | |
32309 | cat >>conftest.$ac_ext <<_ACEOF | |
32310 | /* end confdefs.h. */ | |
51a9faba | 32311 | |
f93ca9fd | 32312 | #include <time.h> |
e6cc62c6 VS |
32313 | |
32314 | int | |
32315 | main () | |
32316 | { | |
51a9faba | 32317 | |
f93ca9fd VS |
32318 | int tz; |
32319 | tz = timezone; | |
e6cc62c6 VS |
32320 | |
32321 | ; | |
32322 | return 0; | |
32323 | } | |
32324 | _ACEOF | |
32325 | rm -f conftest.$ac_objext | |
32326 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 32327 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
32328 | ac_status=$? |
32329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32330 | (exit $ac_status); } && | |
789c5f4a | 32331 | { ac_try='test -s conftest.$ac_objext' |
f93ca9fd VS |
32332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32333 | (eval $ac_try) 2>&5 | |
32334 | ac_status=$? | |
32335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32336 | (exit $ac_status); }; }; then | |
8284b0c5 | 32337 | |
f93ca9fd | 32338 | wx_cv_var_timezone=timezone |
dc3d889d | 32339 | |
f93ca9fd VS |
32340 | else |
32341 | echo "$as_me: failed program was:" >&5 | |
32342 | sed 's/^/| /' conftest.$ac_ext >&5 | |
156b2523 | 32343 | |
e6cc62c6 | 32344 | |
f93ca9fd | 32345 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 32346 | #line $LINENO "configure" |
e6cc62c6 VS |
32347 | /* confdefs.h. */ |
32348 | _ACEOF | |
32349 | cat confdefs.h >>conftest.$ac_ext | |
32350 | cat >>conftest.$ac_ext <<_ACEOF | |
32351 | /* end confdefs.h. */ | |
f93ca9fd VS |
32352 | |
32353 | #include <time.h> | |
32354 | ||
32355 | int | |
32356 | main () | |
32357 | { | |
32358 | ||
32359 | int tz; | |
32360 | tz = _timezone; | |
32361 | ||
32362 | ; | |
32363 | return 0; | |
32364 | } | |
e6cc62c6 VS |
32365 | _ACEOF |
32366 | rm -f conftest.$ac_objext | |
32367 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 32368 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
32369 | ac_status=$? |
32370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32371 | (exit $ac_status); } && | |
789c5f4a | 32372 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
32373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32374 | (eval $ac_try) 2>&5 | |
32375 | ac_status=$? | |
32376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32377 | (exit $ac_status); }; }; then | |
f93ca9fd VS |
32378 | |
32379 | wx_cv_var_timezone=_timezone | |
32380 | ||
e6cc62c6 VS |
32381 | else |
32382 | echo "$as_me: failed program was:" >&5 | |
32383 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32384 | ||
e6cc62c6 | 32385 | |
f93ca9fd | 32386 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 32387 | #line $LINENO "configure" |
e6cc62c6 VS |
32388 | /* confdefs.h. */ |
32389 | _ACEOF | |
32390 | cat confdefs.h >>conftest.$ac_ext | |
32391 | cat >>conftest.$ac_ext <<_ACEOF | |
32392 | /* end confdefs.h. */ | |
f93ca9fd VS |
32393 | |
32394 | #include <time.h> | |
32395 | ||
32396 | int | |
32397 | main () | |
32398 | { | |
32399 | ||
32400 | int tz; | |
32401 | tz = __timezone; | |
32402 | ||
32403 | ; | |
32404 | return 0; | |
32405 | } | |
e6cc62c6 | 32406 | _ACEOF |
f93ca9fd VS |
32407 | rm -f conftest.$ac_objext |
32408 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 32409 | (eval $ac_compile) 2>&5 |
e6cc62c6 | 32410 | ac_status=$? |
e6cc62c6 | 32411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f93ca9fd | 32412 | (exit $ac_status); } && |
789c5f4a | 32413 | { ac_try='test -s conftest.$ac_objext' |
f93ca9fd VS |
32414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32415 | (eval $ac_try) 2>&5 | |
32416 | ac_status=$? | |
32417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32418 | (exit $ac_status); }; }; then | |
32419 | ||
32420 | wx_cv_var_timezone=__timezone | |
32421 | ||
e6cc62c6 VS |
32422 | else |
32423 | echo "$as_me: failed program was:" >&5 | |
32424 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32425 | ||
e6cc62c6 | 32426 | |
f93ca9fd VS |
32427 | if test "$USE_DOS" = 0 ; then |
32428 | { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5 | |
32429 | echo "$as_me: WARNING: no timezone variable" >&2;} | |
32430 | fi | |
32431 | ||
e6cc62c6 | 32432 | |
10f2d63a | 32433 | fi |
789c5f4a | 32434 | rm -f conftest.$ac_objext conftest.$ac_ext |
f93ca9fd | 32435 | |
e6cc62c6 | 32436 | |
247f5006 | 32437 | fi |
789c5f4a | 32438 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 32439 | |
10f2d63a | 32440 | |
f93ca9fd | 32441 | fi |
789c5f4a | 32442 | rm -f conftest.$ac_objext conftest.$ac_ext |
b089607b | 32443 | |
10f2d63a | 32444 | |
dc3d889d | 32445 | fi |
f93ca9fd VS |
32446 | echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5 |
32447 | echo "${ECHO_T}$wx_cv_var_timezone" >&6 | |
dc3d889d | 32448 | |
f93ca9fd VS |
32449 | if test "x$wx_cv_var_timezone" != x ; then |
32450 | cat >>confdefs.h <<_ACEOF | |
32451 | #define WX_TIMEZONE $wx_cv_var_timezone | |
32452 | _ACEOF | |
8284b0c5 | 32453 | |
f93ca9fd | 32454 | fi |
b089607b | 32455 | |
e6cc62c6 | 32456 | |
f93ca9fd | 32457 | for ac_func in localtime |
10f2d63a | 32458 | do |
e6cc62c6 VS |
32459 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
32460 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32461 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32462 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32463 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32464 | else | |
32465 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 32466 | #line $LINENO "configure" |
e6cc62c6 VS |
32467 | /* confdefs.h. */ |
32468 | _ACEOF | |
32469 | cat confdefs.h >>conftest.$ac_ext | |
32470 | cat >>conftest.$ac_ext <<_ACEOF | |
32471 | /* end confdefs.h. */ | |
10f2d63a | 32472 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
32473 | which can conflict with char $ac_func (); below. |
32474 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32475 | <limits.h> exists even on freestanding compilers. */ | |
32476 | #ifdef __STDC__ | |
32477 | # include <limits.h> | |
32478 | #else | |
32479 | # include <assert.h> | |
32480 | #endif | |
10f2d63a | 32481 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
32482 | #ifdef __cplusplus |
32483 | extern "C" | |
32484 | { | |
32485 | #endif | |
10f2d63a | 32486 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
32487 | builtin and then its argument prototype would still apply. */ |
32488 | char $ac_func (); | |
10f2d63a VZ |
32489 | /* The GNU C library defines this for functions which it implements |
32490 | to always fail with ENOSYS. Some functions are actually named | |
32491 | something starting with __ and the normal name is an alias. */ | |
32492 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32493 | choke me | |
32494 | #else | |
e6cc62c6 VS |
32495 | char (*f) () = $ac_func; |
32496 | #endif | |
32497 | #ifdef __cplusplus | |
32498 | } | |
10f2d63a VZ |
32499 | #endif |
32500 | ||
e6cc62c6 VS |
32501 | int |
32502 | main () | |
32503 | { | |
32504 | return f != $ac_func; | |
32505 | ; | |
32506 | return 0; | |
32507 | } | |
32508 | _ACEOF | |
32509 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32510 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 32511 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
32512 | ac_status=$? |
32513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32514 | (exit $ac_status); } && | |
789c5f4a | 32515 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
32516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32517 | (eval $ac_try) 2>&5 | |
32518 | ac_status=$? | |
32519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32520 | (exit $ac_status); }; }; then | |
32521 | eval "$as_ac_var=yes" | |
32522 | else | |
32523 | echo "$as_me: failed program was:" >&5 | |
32524 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32525 | ||
32526 | eval "$as_ac_var=no" | |
32527 | fi | |
789c5f4a | 32528 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
32529 | fi |
32530 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32531 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32532 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32533 | cat >>confdefs.h <<_ACEOF | |
32534 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32535 | _ACEOF | |
32536 | ||
f93ca9fd VS |
32537 | fi |
32538 | done | |
e6cc62c6 | 32539 | |
e6cc62c6 | 32540 | |
f93ca9fd VS |
32541 | if test "$ac_cv_func_localtime" = "yes"; then |
32542 | echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5 | |
32543 | echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 | |
32544 | if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then | |
e6cc62c6 | 32545 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10f2d63a | 32546 | else |
f93ca9fd VS |
32547 | |
32548 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 32549 | #line $LINENO "configure" |
e6cc62c6 VS |
32550 | /* confdefs.h. */ |
32551 | _ACEOF | |
32552 | cat confdefs.h >>conftest.$ac_ext | |
32553 | cat >>conftest.$ac_ext <<_ACEOF | |
32554 | /* end confdefs.h. */ | |
32555 | ||
f93ca9fd VS |
32556 | #include <time.h> |
32557 | ||
e6cc62c6 VS |
32558 | int |
32559 | main () | |
32560 | { | |
f93ca9fd VS |
32561 | |
32562 | struct tm tm; | |
32563 | tm.tm_gmtoff++; | |
32564 | ||
e6cc62c6 VS |
32565 | ; |
32566 | return 0; | |
32567 | } | |
32568 | _ACEOF | |
f93ca9fd VS |
32569 | rm -f conftest.$ac_objext |
32570 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 32571 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
32572 | ac_status=$? |
32573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32574 | (exit $ac_status); } && | |
789c5f4a | 32575 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
32576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32577 | (eval $ac_try) 2>&5 | |
32578 | ac_status=$? | |
32579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32580 | (exit $ac_status); }; }; then | |
f93ca9fd VS |
32581 | |
32582 | wx_cv_struct_tm_has_gmtoff=yes | |
32583 | ||
e6cc62c6 VS |
32584 | else |
32585 | echo "$as_me: failed program was:" >&5 | |
32586 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32587 | ||
f93ca9fd VS |
32588 | wx_cv_struct_tm_has_gmtoff=no |
32589 | ||
e6cc62c6 | 32590 | fi |
789c5f4a | 32591 | rm -f conftest.$ac_objext conftest.$ac_ext |
f93ca9fd | 32592 | |
e6cc62c6 | 32593 | fi |
f93ca9fd VS |
32594 | echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5 |
32595 | echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6 | |
32596 | fi | |
e6cc62c6 | 32597 | |
f93ca9fd VS |
32598 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then |
32599 | cat >>confdefs.h <<\_ACEOF | |
32600 | #define WX_GMTOFF_IN_TM 1 | |
e6cc62c6 | 32601 | _ACEOF |
10f2d63a | 32602 | |
f93ca9fd | 32603 | fi |
e6cc62c6 | 32604 | |
10f2d63a | 32605 | |
e6cc62c6 | 32606 | |
f93ca9fd | 32607 | for ac_func in gettimeofday ftime |
10f2d63a | 32608 | do |
e6cc62c6 VS |
32609 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
32610 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32611 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32612 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32613 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32614 | else | |
32615 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 32616 | #line $LINENO "configure" |
e6cc62c6 VS |
32617 | /* confdefs.h. */ |
32618 | _ACEOF | |
32619 | cat confdefs.h >>conftest.$ac_ext | |
32620 | cat >>conftest.$ac_ext <<_ACEOF | |
32621 | /* end confdefs.h. */ | |
10f2d63a | 32622 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
32623 | which can conflict with char $ac_func (); below. |
32624 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32625 | <limits.h> exists even on freestanding compilers. */ | |
32626 | #ifdef __STDC__ | |
32627 | # include <limits.h> | |
32628 | #else | |
32629 | # include <assert.h> | |
32630 | #endif | |
10f2d63a | 32631 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
32632 | #ifdef __cplusplus |
32633 | extern "C" | |
32634 | { | |
32635 | #endif | |
10f2d63a | 32636 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
32637 | builtin and then its argument prototype would still apply. */ |
32638 | char $ac_func (); | |
10f2d63a VZ |
32639 | /* The GNU C library defines this for functions which it implements |
32640 | to always fail with ENOSYS. Some functions are actually named | |
32641 | something starting with __ and the normal name is an alias. */ | |
32642 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32643 | choke me | |
32644 | #else | |
e6cc62c6 VS |
32645 | char (*f) () = $ac_func; |
32646 | #endif | |
32647 | #ifdef __cplusplus | |
32648 | } | |
10f2d63a VZ |
32649 | #endif |
32650 | ||
e6cc62c6 VS |
32651 | int |
32652 | main () | |
32653 | { | |
32654 | return f != $ac_func; | |
32655 | ; | |
32656 | return 0; | |
32657 | } | |
32658 | _ACEOF | |
32659 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32660 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 32661 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
32662 | ac_status=$? |
32663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32664 | (exit $ac_status); } && | |
789c5f4a | 32665 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
32666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32667 | (eval $ac_try) 2>&5 | |
32668 | ac_status=$? | |
32669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32670 | (exit $ac_status); }; }; then | |
32671 | eval "$as_ac_var=yes" | |
32672 | else | |
32673 | echo "$as_me: failed program was:" >&5 | |
32674 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32675 | ||
32676 | eval "$as_ac_var=no" | |
32677 | fi | |
789c5f4a | 32678 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
32679 | fi |
32680 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32681 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32682 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32683 | cat >>confdefs.h <<_ACEOF | |
32684 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32685 | _ACEOF | |
f93ca9fd VS |
32686 | break |
32687 | fi | |
32688 | done | |
e6cc62c6 | 32689 | |
f93ca9fd VS |
32690 | |
32691 | if test "$ac_cv_func_gettimeofday" = "yes"; then | |
32692 | echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5 | |
32693 | echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6 | |
32694 | if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then | |
32695 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32696 | else | |
32697 | ||
32698 | ||
32699 | ||
32700 | ac_ext=cc | |
32701 | ac_cpp='$CXXCPP $CPPFLAGS' | |
32702 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32703 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32704 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
32705 | ||
32706 | ||
32707 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 32708 | #line $LINENO "configure" |
f93ca9fd | 32709 | /* confdefs.h. */ |
e6cc62c6 | 32710 | _ACEOF |
f93ca9fd VS |
32711 | cat confdefs.h >>conftest.$ac_ext |
32712 | cat >>conftest.$ac_ext <<_ACEOF | |
32713 | /* end confdefs.h. */ | |
10f2d63a | 32714 | |
f93ca9fd VS |
32715 | #include <sys/time.h> |
32716 | #include <unistd.h> | |
e6cc62c6 | 32717 | |
f93ca9fd VS |
32718 | int |
32719 | main () | |
32720 | { | |
e6cc62c6 | 32721 | |
f93ca9fd VS |
32722 | struct timeval tv; |
32723 | gettimeofday(&tv, NULL); | |
32724 | ||
32725 | ; | |
32726 | return 0; | |
32727 | } | |
32728 | _ACEOF | |
32729 | rm -f conftest.$ac_objext | |
32730 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 32731 | (eval $ac_compile) 2>&5 |
f93ca9fd | 32732 | ac_status=$? |
f93ca9fd VS |
32733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32734 | (exit $ac_status); } && | |
789c5f4a | 32735 | { ac_try='test -s conftest.$ac_objext' |
f93ca9fd VS |
32736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32737 | (eval $ac_try) 2>&5 | |
32738 | ac_status=$? | |
32739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32740 | (exit $ac_status); }; }; then | |
32741 | wx_cv_func_gettimeofday_has_2_args=yes | |
f6bcfd97 | 32742 | else |
f93ca9fd VS |
32743 | echo "$as_me: failed program was:" >&5 |
32744 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32745 | ||
e6cc62c6 | 32746 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 32747 | #line $LINENO "configure" |
e6cc62c6 VS |
32748 | /* confdefs.h. */ |
32749 | _ACEOF | |
32750 | cat confdefs.h >>conftest.$ac_ext | |
32751 | cat >>conftest.$ac_ext <<_ACEOF | |
32752 | /* end confdefs.h. */ | |
32753 | ||
f93ca9fd VS |
32754 | #include <sys/time.h> |
32755 | #include <unistd.h> | |
32756 | ||
e6cc62c6 VS |
32757 | int |
32758 | main () | |
32759 | { | |
f93ca9fd VS |
32760 | |
32761 | struct timeval tv; | |
32762 | gettimeofday(&tv); | |
32763 | ||
e6cc62c6 VS |
32764 | ; |
32765 | return 0; | |
32766 | } | |
32767 | _ACEOF | |
f93ca9fd VS |
32768 | rm -f conftest.$ac_objext |
32769 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 32770 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
32771 | ac_status=$? |
32772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32773 | (exit $ac_status); } && | |
789c5f4a | 32774 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
32775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32776 | (eval $ac_try) 2>&5 | |
32777 | ac_status=$? | |
32778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32779 | (exit $ac_status); }; }; then | |
f93ca9fd | 32780 | wx_cv_func_gettimeofday_has_2_args=no |
e6cc62c6 VS |
32781 | else |
32782 | echo "$as_me: failed program was:" >&5 | |
32783 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32784 | ||
f6bcfd97 | 32785 | |
f93ca9fd VS |
32786 | { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5 |
32787 | echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;} | |
32788 | wx_cv_func_gettimeofday_has_2_args=unknown | |
e6cc62c6 | 32789 | |
f6bcfd97 | 32790 | |
f93ca9fd | 32791 | fi |
789c5f4a | 32792 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 32793 | |
10f2d63a | 32794 | fi |
789c5f4a | 32795 | rm -f conftest.$ac_objext conftest.$ac_ext |
f93ca9fd VS |
32796 | ac_ext=c |
32797 | ac_cpp='$CPP $CPPFLAGS' | |
32798 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32799 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32800 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10f2d63a | 32801 | |
e6cc62c6 | 32802 | |
10f2d63a | 32803 | fi |
f93ca9fd VS |
32804 | echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5 |
32805 | echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6 | |
32806 | ||
32807 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then | |
32808 | cat >>confdefs.h <<\_ACEOF | |
32809 | #define WX_GETTIMEOFDAY_NO_TZ 1 | |
32810 | _ACEOF | |
10f2d63a | 32811 | |
f93ca9fd VS |
32812 | fi |
32813 | fi | |
e6cc62c6 | 32814 | |
f93ca9fd | 32815 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" |
10f2d63a | 32816 | fi |
10f2d63a | 32817 | |
5c6fa7d2 | 32818 | |
f93ca9fd VS |
32819 | if test "$wxUSE_SOCKETS" = "yes"; then |
32820 | if test "$wxUSE_MGL" = "1"; then | |
32821 | { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5 | |
32822 | echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;} | |
32823 | wxUSE_SOCKETS="no" | |
32824 | fi | |
32825 | fi | |
e6cc62c6 | 32826 | |
f93ca9fd VS |
32827 | if test "$wxUSE_SOCKETS" = "yes"; then |
32828 | if test "$TOOLKIT" != "MSW"; then | |
32829 | echo "$as_me:$LINENO: checking for socket" >&5 | |
32830 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 | |
32831 | if test "${ac_cv_func_socket+set}" = set; then | |
e6cc62c6 VS |
32832 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
32833 | else | |
32834 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 32835 | #line $LINENO "configure" |
e6cc62c6 VS |
32836 | /* confdefs.h. */ |
32837 | _ACEOF | |
32838 | cat confdefs.h >>conftest.$ac_ext | |
32839 | cat >>conftest.$ac_ext <<_ACEOF | |
32840 | /* end confdefs.h. */ | |
f6bcfd97 | 32841 | /* System header to define __stub macros and hopefully few prototypes, |
f93ca9fd | 32842 | which can conflict with char socket (); below. |
e6cc62c6 VS |
32843 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
32844 | <limits.h> exists even on freestanding compilers. */ | |
32845 | #ifdef __STDC__ | |
32846 | # include <limits.h> | |
32847 | #else | |
32848 | # include <assert.h> | |
32849 | #endif | |
f6bcfd97 | 32850 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
32851 | #ifdef __cplusplus |
32852 | extern "C" | |
32853 | { | |
32854 | #endif | |
f6bcfd97 | 32855 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 | 32856 | builtin and then its argument prototype would still apply. */ |
f93ca9fd | 32857 | char socket (); |
f6bcfd97 BP |
32858 | /* The GNU C library defines this for functions which it implements |
32859 | to always fail with ENOSYS. Some functions are actually named | |
32860 | something starting with __ and the normal name is an alias. */ | |
f93ca9fd | 32861 | #if defined (__stub_socket) || defined (__stub___socket) |
f6bcfd97 BP |
32862 | choke me |
32863 | #else | |
f93ca9fd | 32864 | char (*f) () = socket; |
e6cc62c6 VS |
32865 | #endif |
32866 | #ifdef __cplusplus | |
32867 | } | |
f6bcfd97 BP |
32868 | #endif |
32869 | ||
e6cc62c6 VS |
32870 | int |
32871 | main () | |
32872 | { | |
f93ca9fd VS |
32873 | return f != socket; |
32874 | ; | |
32875 | return 0; | |
32876 | } | |
32877 | _ACEOF | |
32878 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32879 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 32880 | (eval $ac_link) 2>&5 |
f93ca9fd | 32881 | ac_status=$? |
f93ca9fd VS |
32882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32883 | (exit $ac_status); } && | |
789c5f4a | 32884 | { ac_try='test -s conftest$ac_exeext' |
f93ca9fd VS |
32885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32886 | (eval $ac_try) 2>&5 | |
32887 | ac_status=$? | |
32888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32889 | (exit $ac_status); }; }; then | |
32890 | ac_cv_func_socket=yes | |
32891 | else | |
32892 | echo "$as_me: failed program was:" >&5 | |
32893 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32894 | ||
32895 | ac_cv_func_socket=no | |
32896 | fi | |
789c5f4a | 32897 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
f93ca9fd VS |
32898 | fi |
32899 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 | |
32900 | echo "${ECHO_T}$ac_cv_func_socket" >&6 | |
32901 | if test $ac_cv_func_socket = yes; then | |
32902 | : | |
32903 | else | |
32904 | ||
32905 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 | |
32906 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 | |
32907 | if test "${ac_cv_lib_socket_socket+set}" = set; then | |
32908 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32909 | else | |
32910 | ac_check_lib_save_LIBS=$LIBS | |
32911 | LIBS="-lsocket $LIBS" | |
32912 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 32913 | #line $LINENO "configure" |
f93ca9fd VS |
32914 | /* confdefs.h. */ |
32915 | _ACEOF | |
32916 | cat confdefs.h >>conftest.$ac_ext | |
32917 | cat >>conftest.$ac_ext <<_ACEOF | |
32918 | /* end confdefs.h. */ | |
32919 | ||
32920 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32921 | #ifdef __cplusplus | |
32922 | extern "C" | |
32923 | #endif | |
32924 | /* We use char because int might match the return type of a gcc2 | |
32925 | builtin and then its argument prototype would still apply. */ | |
32926 | char socket (); | |
32927 | int | |
32928 | main () | |
32929 | { | |
32930 | socket (); | |
e6cc62c6 VS |
32931 | ; |
32932 | return 0; | |
32933 | } | |
32934 | _ACEOF | |
32935 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32936 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 32937 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
32938 | ac_status=$? |
32939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32940 | (exit $ac_status); } && | |
789c5f4a | 32941 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
32942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32943 | (eval $ac_try) 2>&5 | |
32944 | ac_status=$? | |
32945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32946 | (exit $ac_status); }; }; then | |
f93ca9fd | 32947 | ac_cv_lib_socket_socket=yes |
e6cc62c6 VS |
32948 | else |
32949 | echo "$as_me: failed program was:" >&5 | |
32950 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32951 | ||
f93ca9fd | 32952 | ac_cv_lib_socket_socket=no |
e6cc62c6 | 32953 | fi |
789c5f4a | 32954 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
f93ca9fd | 32955 | LIBS=$ac_check_lib_save_LIBS |
e6cc62c6 | 32956 | fi |
f93ca9fd VS |
32957 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
32958 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 | |
32959 | if test $ac_cv_lib_socket_socket = yes; then | |
32960 | if test "$INET_LINK" != " -lsocket"; then | |
32961 | INET_LINK="$INET_LINK -lsocket" | |
32962 | fi | |
32963 | else | |
32964 | ||
32965 | { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5 | |
32966 | echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;} | |
32967 | wxUSE_SOCKETS=no | |
32968 | ||
32969 | ||
32970 | fi | |
32971 | ||
32972 | ||
32973 | ||
32974 | fi | |
32975 | ||
32976 | fi | |
32977 | fi | |
32978 | ||
32979 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
32980 | if test "$TOOLKIT" != "MSW"; then | |
32981 | echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5 | |
32982 | echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6 | |
32983 | if test "${wx_cv_type_getsockname3+set}" = set; then | |
32984 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32985 | else | |
32986 | ||
32987 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 32988 | #line $LINENO "configure" |
f93ca9fd | 32989 | /* confdefs.h. */ |
e6cc62c6 | 32990 | _ACEOF |
f93ca9fd VS |
32991 | cat confdefs.h >>conftest.$ac_ext |
32992 | cat >>conftest.$ac_ext <<_ACEOF | |
32993 | /* end confdefs.h. */ | |
32994 | ||
32995 | #include <sys/types.h> | |
32996 | #include <sys/socket.h> | |
f6bcfd97 | 32997 | |
f93ca9fd VS |
32998 | int |
32999 | main () | |
33000 | { | |
33001 | ||
33002 | socklen_t len; | |
33003 | getsockname(0, 0, &len); | |
33004 | ||
33005 | ; | |
33006 | return 0; | |
33007 | } | |
33008 | _ACEOF | |
33009 | rm -f conftest.$ac_objext | |
33010 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 33011 | (eval $ac_compile) 2>&5 |
f93ca9fd | 33012 | ac_status=$? |
f93ca9fd VS |
33013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33014 | (exit $ac_status); } && | |
789c5f4a | 33015 | { ac_try='test -s conftest.$ac_objext' |
f93ca9fd VS |
33016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33017 | (eval $ac_try) 2>&5 | |
33018 | ac_status=$? | |
33019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33020 | (exit $ac_status); }; }; then | |
33021 | wx_cv_type_getsockname3=socklen_t | |
f6bcfd97 | 33022 | else |
f93ca9fd VS |
33023 | echo "$as_me: failed program was:" >&5 |
33024 | sed 's/^/| /' conftest.$ac_ext >&5 | |
0e012a93 | 33025 | |
f93ca9fd VS |
33026 | |
33027 | CFLAGS_OLD="$CFLAGS" | |
33028 | if test "$GCC" = yes ; then | |
33029 | CFLAGS="$CFLAGS -Werror" | |
33030 | fi | |
33031 | ||
33032 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 33033 | #line $LINENO "configure" |
f93ca9fd VS |
33034 | /* confdefs.h. */ |
33035 | _ACEOF | |
33036 | cat confdefs.h >>conftest.$ac_ext | |
33037 | cat >>conftest.$ac_ext <<_ACEOF | |
33038 | /* end confdefs.h. */ | |
33039 | ||
33040 | #include <sys/types.h> | |
33041 | #include <sys/socket.h> | |
33042 | ||
33043 | int | |
33044 | main () | |
33045 | { | |
33046 | ||
33047 | size_t len; | |
33048 | getsockname(0, 0, &len); | |
33049 | ||
33050 | ; | |
33051 | return 0; | |
33052 | } | |
33053 | _ACEOF | |
33054 | rm -f conftest.$ac_objext | |
33055 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 33056 | (eval $ac_compile) 2>&5 |
f93ca9fd | 33057 | ac_status=$? |
f93ca9fd VS |
33058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33059 | (exit $ac_status); } && | |
789c5f4a | 33060 | { ac_try='test -s conftest.$ac_objext' |
f93ca9fd VS |
33061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33062 | (eval $ac_try) 2>&5 | |
33063 | ac_status=$? | |
33064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33065 | (exit $ac_status); }; }; then | |
33066 | wx_cv_type_getsockname3=size_t | |
f6bcfd97 | 33067 | else |
f93ca9fd VS |
33068 | echo "$as_me: failed program was:" >&5 |
33069 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33070 | ||
e6cc62c6 | 33071 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 33072 | #line $LINENO "configure" |
e6cc62c6 VS |
33073 | /* confdefs.h. */ |
33074 | _ACEOF | |
33075 | cat confdefs.h >>conftest.$ac_ext | |
33076 | cat >>conftest.$ac_ext <<_ACEOF | |
33077 | /* end confdefs.h. */ | |
33078 | ||
f93ca9fd VS |
33079 | #include <sys/types.h> |
33080 | #include <sys/socket.h> | |
33081 | ||
e6cc62c6 VS |
33082 | int |
33083 | main () | |
33084 | { | |
f93ca9fd VS |
33085 | |
33086 | int len; | |
33087 | getsockname(0, 0, &len); | |
33088 | ||
e6cc62c6 VS |
33089 | ; |
33090 | return 0; | |
33091 | } | |
33092 | _ACEOF | |
f93ca9fd VS |
33093 | rm -f conftest.$ac_objext |
33094 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 33095 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
33096 | ac_status=$? |
33097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33098 | (exit $ac_status); } && | |
789c5f4a | 33099 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
33100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33101 | (eval $ac_try) 2>&5 | |
33102 | ac_status=$? | |
33103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33104 | (exit $ac_status); }; }; then | |
f93ca9fd | 33105 | wx_cv_type_getsockname3=int |
e6cc62c6 VS |
33106 | else |
33107 | echo "$as_me: failed program was:" >&5 | |
33108 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33109 | ||
f93ca9fd VS |
33110 | wx_cv_type_getsockname3=unknown |
33111 | ||
e6cc62c6 | 33112 | fi |
789c5f4a | 33113 | rm -f conftest.$ac_objext conftest.$ac_ext |
f6bcfd97 | 33114 | |
f6bcfd97 | 33115 | fi |
789c5f4a | 33116 | rm -f conftest.$ac_objext conftest.$ac_ext |
f6bcfd97 | 33117 | |
f93ca9fd | 33118 | CFLAGS="$CFLAGS_OLD" |
0e012a93 VZ |
33119 | |
33120 | ||
f6bcfd97 | 33121 | fi |
789c5f4a | 33122 | rm -f conftest.$ac_objext conftest.$ac_ext |
f6bcfd97 | 33123 | |
f93ca9fd VS |
33124 | fi |
33125 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5 | |
33126 | echo "${ECHO_T}$wx_cv_type_getsockname3" >&6 | |
33127 | ||
33128 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
33129 | wxUSE_SOCKETS=no | |
33130 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
33131 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
33132 | else | |
33133 | cat >>confdefs.h <<_ACEOF | |
33134 | #define SOCKLEN_T $wx_cv_type_getsockname3 | |
33135 | _ACEOF | |
f6bcfd97 | 33136 | |
10f2d63a VZ |
33137 | fi |
33138 | fi | |
33139 | fi | |
33140 | ||
f93ca9fd | 33141 | if test "$wxUSE_SOCKETS" = "yes" ; then |
e6cc62c6 | 33142 | cat >>confdefs.h <<\_ACEOF |
f93ca9fd | 33143 | #define wxUSE_SOCKETS 1 |
e6cc62c6 | 33144 | _ACEOF |
0b9ab0bd | 33145 | |
f93ca9fd | 33146 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
1948bb32 | 33147 | fi |
f93ca9fd VS |
33148 | |
33149 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
33150 | if test "$wxUSE_SOCKETS" != "yes"; then | |
33151 | { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5 | |
33152 | echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;} | |
33153 | wxUSE_PROTOCOL=no | |
33154 | fi | |
33155 | fi | |
33156 | ||
33157 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
e6cc62c6 | 33158 | cat >>confdefs.h <<\_ACEOF |
f93ca9fd | 33159 | #define wxUSE_PROTOCOL 1 |
e6cc62c6 | 33160 | _ACEOF |
10f2d63a | 33161 | |
f93ca9fd VS |
33162 | |
33163 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then | |
33164 | cat >>confdefs.h <<\_ACEOF | |
33165 | #define wxUSE_PROTOCOL_HTTP 1 | |
33166 | _ACEOF | |
33167 | ||
33168 | fi | |
33169 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
33170 | cat >>confdefs.h <<\_ACEOF | |
33171 | #define wxUSE_PROTOCOL_FTP 1 | |
33172 | _ACEOF | |
33173 | ||
33174 | fi | |
33175 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
33176 | cat >>confdefs.h <<\_ACEOF | |
33177 | #define wxUSE_PROTOCOL_FILE 1 | |
33178 | _ACEOF | |
33179 | ||
33180 | fi | |
33181 | else | |
33182 | if test "$wxUSE_FS_INET" = "yes"; then | |
33183 | { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5 | |
33184 | echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;} | |
33185 | wxUSE_FS_INET="no" | |
33186 | fi | |
10f2d63a VZ |
33187 | fi |
33188 | ||
f93ca9fd VS |
33189 | if test "$wxUSE_URL" = "yes"; then |
33190 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
33191 | { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5 | |
33192 | echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;} | |
33193 | wxUSE_URL=no | |
33194 | fi | |
33195 | if test "$wxUSE_URL" = "yes"; then | |
33196 | cat >>confdefs.h <<\_ACEOF | |
33197 | #define wxUSE_URL 1 | |
33198 | _ACEOF | |
33199 | ||
33200 | fi | |
33201 | fi | |
33202 | ||
33203 | if test "$wxUSE_FS_INET" = "yes"; then | |
33204 | cat >>confdefs.h <<\_ACEOF | |
33205 | #define wxUSE_FS_INET 1 | |
33206 | _ACEOF | |
33207 | ||
33208 | fi | |
33209 | ||
33210 | ||
33211 | if test "$wxUSE_GUI" = "yes"; then | |
33212 | ||
33213 | if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then | |
33214 | { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5 | |
33215 | echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;} | |
33216 | wxUSE_JOYSTICK=no | |
33217 | fi | |
33218 | ||
33219 | if test "$TOOLKIT" != "MSW"; then | |
33220 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
33221 | ||
33222 | for ac_header in linux/joystick.h | |
33223 | do | |
33224 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
33225 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
33226 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
33227 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
33228 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
33229 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33230 | fi | |
33231 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
33232 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
33233 | else | |
33234 | # Is the header compilable? | |
33235 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
33236 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
33237 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 33238 | #line $LINENO "configure" |
f93ca9fd VS |
33239 | /* confdefs.h. */ |
33240 | _ACEOF | |
33241 | cat confdefs.h >>conftest.$ac_ext | |
33242 | cat >>conftest.$ac_ext <<_ACEOF | |
33243 | /* end confdefs.h. */ | |
33244 | $ac_includes_default | |
33245 | #include <$ac_header> | |
33246 | _ACEOF | |
33247 | rm -f conftest.$ac_objext | |
33248 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 33249 | (eval $ac_compile) 2>&5 |
f93ca9fd | 33250 | ac_status=$? |
f93ca9fd VS |
33251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33252 | (exit $ac_status); } && | |
789c5f4a | 33253 | { ac_try='test -s conftest.$ac_objext' |
f93ca9fd VS |
33254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33255 | (eval $ac_try) 2>&5 | |
33256 | ac_status=$? | |
33257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33258 | (exit $ac_status); }; }; then | |
33259 | ac_header_compiler=yes | |
33260 | else | |
33261 | echo "$as_me: failed program was:" >&5 | |
33262 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33263 | ||
33264 | ac_header_compiler=no | |
33265 | fi | |
789c5f4a | 33266 | rm -f conftest.$ac_objext conftest.$ac_ext |
f93ca9fd VS |
33267 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
33268 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
33269 | ||
33270 | # Is the header present? | |
33271 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
33272 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
33273 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 33274 | #line $LINENO "configure" |
f93ca9fd VS |
33275 | /* confdefs.h. */ |
33276 | _ACEOF | |
33277 | cat confdefs.h >>conftest.$ac_ext | |
33278 | cat >>conftest.$ac_ext <<_ACEOF | |
33279 | /* end confdefs.h. */ | |
33280 | #include <$ac_header> | |
33281 | _ACEOF | |
33282 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
33283 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
33284 | ac_status=$? | |
33285 | grep -v '^ *+' conftest.er1 >conftest.err | |
33286 | rm -f conftest.er1 | |
33287 | cat conftest.err >&5 | |
33288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33289 | (exit $ac_status); } >/dev/null; then | |
33290 | if test -s conftest.err; then | |
33291 | ac_cpp_err=$ac_c_preproc_warn_flag | |
f93ca9fd VS |
33292 | else |
33293 | ac_cpp_err= | |
33294 | fi | |
33295 | else | |
33296 | ac_cpp_err=yes | |
33297 | fi | |
33298 | if test -z "$ac_cpp_err"; then | |
33299 | ac_header_preproc=yes | |
33300 | else | |
33301 | echo "$as_me: failed program was:" >&5 | |
33302 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33303 | ||
33304 | ac_header_preproc=no | |
33305 | fi | |
33306 | rm -f conftest.err conftest.$ac_ext | |
33307 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
33308 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
33309 | ||
33310 | # So? What about this header? | |
789c5f4a VZ |
33311 | case $ac_header_compiler:$ac_header_preproc in |
33312 | yes:no ) | |
f93ca9fd VS |
33313 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
33314 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
789c5f4a VZ |
33315 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
33316 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
33317 | ( | |
33318 | cat <<\_ASBOX | |
33319 | ## ------------------------------------ ## | |
33320 | ## Report this to bug-autoconf@gnu.org. ## | |
33321 | ## ------------------------------------ ## | |
33322 | _ASBOX | |
33323 | ) | | |
33324 | sed "s/^/$as_me: WARNING: /" >&2 | |
f93ca9fd | 33325 | ;; |
789c5f4a | 33326 | no:yes ) |
f93ca9fd VS |
33327 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
33328 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
789c5f4a VZ |
33329 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
33330 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
f93ca9fd VS |
33331 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
33332 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
f93ca9fd VS |
33333 | ( |
33334 | cat <<\_ASBOX | |
789c5f4a VZ |
33335 | ## ------------------------------------ ## |
33336 | ## Report this to bug-autoconf@gnu.org. ## | |
33337 | ## ------------------------------------ ## | |
f93ca9fd VS |
33338 | _ASBOX |
33339 | ) | | |
33340 | sed "s/^/$as_me: WARNING: /" >&2 | |
33341 | ;; | |
33342 | esac | |
33343 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
33344 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
33345 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
33346 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33347 | else | |
789c5f4a | 33348 | eval "$as_ac_Header=$ac_header_preproc" |
f93ca9fd VS |
33349 | fi |
33350 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
33351 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
33352 | ||
33353 | fi | |
33354 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
33355 | cat >>confdefs.h <<_ACEOF | |
33356 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
33357 | _ACEOF | |
33358 | ||
33359 | fi | |
33360 | ||
33361 | done | |
33362 | ||
33363 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then | |
33364 | wxUSE_JOYSTICK=no | |
33365 | { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5 | |
33366 | echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;} | |
33367 | fi | |
33368 | fi | |
33369 | fi | |
33370 | ||
33371 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
33372 | cat >>confdefs.h <<\_ACEOF | |
33373 | #define wxUSE_JOYSTICK 1 | |
33374 | _ACEOF | |
33375 | ||
33376 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" | |
33377 | fi | |
33378 | fi | |
33379 | ||
33380 | ||
33381 | ||
8284b0c5 | 33382 | |
1e6feb95 | 33383 | if test "$wxUSE_FONTMAP" = "yes" ; then |
e6cc62c6 | 33384 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33385 | #define wxUSE_FONTMAP 1 |
e6cc62c6 | 33386 | _ACEOF |
1e6feb95 VZ |
33387 | |
33388 | fi | |
33389 | ||
10f2d63a | 33390 | if test "$wxUSE_UNICODE" = "yes" ; then |
e6cc62c6 | 33391 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 33392 | #define wxUSE_UNICODE 1 |
e6cc62c6 | 33393 | _ACEOF |
10f2d63a | 33394 | |
8284b0c5 | 33395 | |
eb854003 | 33396 | if test "$USE_WIN32" != 1; then |
bbc3925a VS |
33397 | wxUSE_UNICODE_MSLU=no |
33398 | fi | |
a72a4bfa | 33399 | |
eb854003 | 33400 | if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then |
e6cc62c6 VS |
33401 | echo "$as_me:$LINENO: checking for main in -lunicows" >&5 |
33402 | echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6 | |
33403 | if test "${ac_cv_lib_unicows_main+set}" = set; then | |
33404 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a72a4bfa | 33405 | else |
e6cc62c6 | 33406 | ac_check_lib_save_LIBS=$LIBS |
a72a4bfa | 33407 | LIBS="-lunicows $LIBS" |
e6cc62c6 | 33408 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 33409 | #line $LINENO "configure" |
e6cc62c6 VS |
33410 | /* confdefs.h. */ |
33411 | _ACEOF | |
33412 | cat confdefs.h >>conftest.$ac_ext | |
33413 | cat >>conftest.$ac_ext <<_ACEOF | |
33414 | /* end confdefs.h. */ | |
a72a4bfa | 33415 | |
8284b0c5 | 33416 | |
e6cc62c6 VS |
33417 | int |
33418 | main () | |
33419 | { | |
33420 | main (); | |
33421 | ; | |
33422 | return 0; | |
33423 | } | |
33424 | _ACEOF | |
33425 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33426 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 33427 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
33428 | ac_status=$? |
33429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33430 | (exit $ac_status); } && | |
789c5f4a | 33431 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
33432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33433 | (eval $ac_try) 2>&5 | |
33434 | ac_status=$? | |
33435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33436 | (exit $ac_status); }; }; then | |
33437 | ac_cv_lib_unicows_main=yes | |
33438 | else | |
33439 | echo "$as_me: failed program was:" >&5 | |
33440 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33441 | ||
33442 | ac_cv_lib_unicows_main=no | |
33443 | fi | |
789c5f4a | 33444 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
33445 | LIBS=$ac_check_lib_save_LIBS |
33446 | fi | |
33447 | echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5 | |
33448 | echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6 | |
33449 | if test $ac_cv_lib_unicows_main = yes; then | |
33450 | ||
33451 | cat >>confdefs.h <<\_ACEOF | |
a72a4bfa | 33452 | #define wxUSE_UNICODE_MSLU 1 |
e6cc62c6 VS |
33453 | _ACEOF |
33454 | ||
a72a4bfa | 33455 | |
a72a4bfa | 33456 | else |
a72a4bfa | 33457 | |
e6cc62c6 VS |
33458 | { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. |
33459 | Applications will only run on Windows NT/2000/XP!" >&5 | |
33460 | echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
33461 | Applications will only run on Windows NT/2000/XP!" >&2;} | |
a72a4bfa | 33462 | wxUSE_UNICODE_MSLU=no |
e6cc62c6 | 33463 | |
a72a4bfa VS |
33464 | fi |
33465 | ||
33466 | fi | |
10f2d63a VZ |
33467 | fi |
33468 | ||
10f2d63a | 33469 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then |
e6cc62c6 | 33470 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 33471 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
e6cc62c6 | 33472 | _ACEOF |
10f2d63a VZ |
33473 | |
33474 | fi | |
33475 | ||
8284b0c5 | 33476 | |
10f2d63a | 33477 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
e6cc62c6 | 33478 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 33479 | #define wxUSE_POSTSCRIPT 1 |
e6cc62c6 | 33480 | _ACEOF |
10f2d63a VZ |
33481 | |
33482 | fi | |
33483 | ||
e6cc62c6 | 33484 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 33485 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
e6cc62c6 | 33486 | _ACEOF |
10f2d63a | 33487 | |
8284b0c5 | 33488 | |
e6cc62c6 | 33489 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 33490 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
e6cc62c6 | 33491 | _ACEOF |
10f2d63a | 33492 | |
8284b0c5 MB |
33493 | |
33494 | ||
10f2d63a | 33495 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
e6cc62c6 | 33496 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 33497 | #define wxUSE_CONSTRAINTS 1 |
e6cc62c6 | 33498 | _ACEOF |
10f2d63a VZ |
33499 | |
33500 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
33501 | fi | |
33502 | ||
3879ecda | 33503 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then |
1772d20c | 33504 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 33505 | #define wxUSE_MDI_ARCHITECTURE 1 |
e6cc62c6 | 33506 | _ACEOF |
10f2d63a | 33507 | |
1772d20c | 33508 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
10f2d63a VZ |
33509 | fi |
33510 | ||
33511 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
e6cc62c6 | 33512 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 33513 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
e6cc62c6 | 33514 | _ACEOF |
10f2d63a VZ |
33515 | |
33516 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
33517 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
33518 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
33519 | fi | |
33520 | fi | |
33521 | ||
33522 | if test "$wxUSE_HELP" = "yes"; then | |
e6cc62c6 | 33523 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 33524 | #define wxUSE_HELP 1 |
e6cc62c6 | 33525 | _ACEOF |
10f2d63a VZ |
33526 | |
33527 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
3379ed37 | 33528 | |
77e13408 | 33529 | if test "$wxUSE_MSW" = 1; then |
031d8228 | 33530 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then |
e6cc62c6 | 33531 | cat >>confdefs.h <<\_ACEOF |
29fd3c0c | 33532 | #define wxUSE_MS_HTML_HELP 1 |
e6cc62c6 | 33533 | _ACEOF |
29fd3c0c | 33534 | |
3e44f09d | 33535 | fi |
3379ed37 | 33536 | fi |
031d8228 VS |
33537 | |
33538 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
33539 | if test "$wxUSE_HTML" = "yes"; then | |
e6cc62c6 | 33540 | cat >>confdefs.h <<\_ACEOF |
031d8228 | 33541 | #define wxUSE_WXHTML_HELP 1 |
e6cc62c6 | 33542 | _ACEOF |
031d8228 VS |
33543 | |
33544 | else | |
e6cc62c6 VS |
33545 | { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5 |
33546 | echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;} | |
031d8228 VS |
33547 | wxUSE_WXHTML_HELP=no |
33548 | fi | |
33549 | fi | |
10f2d63a VZ |
33550 | fi |
33551 | ||
33552 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
33553 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
e6cc62c6 VS |
33554 | { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5 |
33555 | echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;} | |
10f2d63a | 33556 | else |
e6cc62c6 | 33557 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 33558 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
e6cc62c6 | 33559 | _ACEOF |
10f2d63a VZ |
33560 | |
33561 | fi | |
33562 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
33563 | fi | |
33564 | ||
e6cc62c6 VS |
33565 | if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then |
33566 | { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5 | |
33567 | echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;} | |
33568 | { (exit 1); exit 1; }; } | |
33569 | fi | |
33570 | ||
33571 | ||
f95e4495 | 33572 | if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ |
e6cc62c6 VS |
33573 | -o "$wxUSE_CLIPBOARD" = "yes" \ |
33574 | -o "$wxUSE_OLE" = "yes" \ | |
33575 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
33576 | ||
33577 | for ac_header in ole2.h | |
33578 | do | |
33579 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
33580 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
33581 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
33582 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
33583 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
33584 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33585 | fi | |
33586 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
33587 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
33588 | else | |
33589 | # Is the header compilable? | |
33590 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
33591 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
33592 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 33593 | #line $LINENO "configure" |
e6cc62c6 VS |
33594 | /* confdefs.h. */ |
33595 | _ACEOF | |
33596 | cat confdefs.h >>conftest.$ac_ext | |
33597 | cat >>conftest.$ac_ext <<_ACEOF | |
33598 | /* end confdefs.h. */ | |
33599 | $ac_includes_default | |
33600 | #include <$ac_header> | |
33601 | _ACEOF | |
33602 | rm -f conftest.$ac_objext | |
33603 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 33604 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
33605 | ac_status=$? |
33606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33607 | (exit $ac_status); } && | |
789c5f4a | 33608 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
33609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33610 | (eval $ac_try) 2>&5 | |
33611 | ac_status=$? | |
33612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33613 | (exit $ac_status); }; }; then | |
33614 | ac_header_compiler=yes | |
33615 | else | |
33616 | echo "$as_me: failed program was:" >&5 | |
33617 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33618 | ||
33619 | ac_header_compiler=no | |
33620 | fi | |
789c5f4a | 33621 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
33622 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
33623 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
33624 | ||
33625 | # Is the header present? | |
33626 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
33627 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
33628 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 33629 | #line $LINENO "configure" |
e6cc62c6 VS |
33630 | /* confdefs.h. */ |
33631 | _ACEOF | |
33632 | cat confdefs.h >>conftest.$ac_ext | |
33633 | cat >>conftest.$ac_ext <<_ACEOF | |
33634 | /* end confdefs.h. */ | |
33635 | #include <$ac_header> | |
33636 | _ACEOF | |
33637 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
33638 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
33639 | ac_status=$? | |
33640 | grep -v '^ *+' conftest.er1 >conftest.err | |
33641 | rm -f conftest.er1 | |
33642 | cat conftest.err >&5 | |
33643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33644 | (exit $ac_status); } >/dev/null; then | |
33645 | if test -s conftest.err; then | |
33646 | ac_cpp_err=$ac_c_preproc_warn_flag | |
33647 | else | |
33648 | ac_cpp_err= | |
33649 | fi | |
33650 | else | |
33651 | ac_cpp_err=yes | |
33652 | fi | |
33653 | if test -z "$ac_cpp_err"; then | |
33654 | ac_header_preproc=yes | |
33655 | else | |
33656 | echo "$as_me: failed program was:" >&5 | |
33657 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33658 | ||
33659 | ac_header_preproc=no | |
33660 | fi | |
33661 | rm -f conftest.err conftest.$ac_ext | |
33662 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
33663 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
33664 | ||
33665 | # So? What about this header? | |
789c5f4a VZ |
33666 | case $ac_header_compiler:$ac_header_preproc in |
33667 | yes:no ) | |
e6cc62c6 VS |
33668 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
33669 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
789c5f4a VZ |
33670 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
33671 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
33672 | ( | |
33673 | cat <<\_ASBOX | |
33674 | ## ------------------------------------ ## | |
33675 | ## Report this to bug-autoconf@gnu.org. ## | |
33676 | ## ------------------------------------ ## | |
33677 | _ASBOX | |
33678 | ) | | |
33679 | sed "s/^/$as_me: WARNING: /" >&2 | |
e6cc62c6 | 33680 | ;; |
789c5f4a | 33681 | no:yes ) |
e6cc62c6 VS |
33682 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
33683 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
789c5f4a VZ |
33684 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
33685 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
e6cc62c6 VS |
33686 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
33687 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
33688 | ( | |
33689 | cat <<\_ASBOX | |
789c5f4a VZ |
33690 | ## ------------------------------------ ## |
33691 | ## Report this to bug-autoconf@gnu.org. ## | |
33692 | ## ------------------------------------ ## | |
e6cc62c6 VS |
33693 | _ASBOX |
33694 | ) | | |
33695 | sed "s/^/$as_me: WARNING: /" >&2 | |
33696 | ;; | |
33697 | esac | |
33698 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
33699 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
33700 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
33701 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33702 | else | |
789c5f4a | 33703 | eval "$as_ac_Header=$ac_header_preproc" |
e6cc62c6 VS |
33704 | fi |
33705 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
33706 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
33707 | ||
10f2d63a | 33708 | fi |
e6cc62c6 VS |
33709 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
33710 | cat >>confdefs.h <<_ACEOF | |
33711 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
33712 | _ACEOF | |
10f2d63a | 33713 | |
10f2d63a | 33714 | fi |
e6cc62c6 | 33715 | |
10f2d63a VZ |
33716 | done |
33717 | ||
8284b0c5 | 33718 | |
2b9bdf71 VZ |
33719 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
33720 | if test "$GCC" = yes ; then | |
8284b0c5 MB |
33721 | |
33722 | ||
e6cc62c6 VS |
33723 | ac_ext=cc |
33724 | ac_cpp='$CXXCPP $CPPFLAGS' | |
33725 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
33726 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
33727 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
33728 | ||
33729 | ||
33730 | echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5 | |
33731 | echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6 | |
33732 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 33733 | #line $LINENO "configure" |
e6cc62c6 VS |
33734 | /* confdefs.h. */ |
33735 | _ACEOF | |
33736 | cat confdefs.h >>conftest.$ac_ext | |
33737 | cat >>conftest.$ac_ext <<_ACEOF | |
33738 | /* end confdefs.h. */ | |
8284b0c5 MB |
33739 | #include <windows.h> |
33740 | #include <ole2.h> | |
e6cc62c6 VS |
33741 | int |
33742 | main () | |
33743 | { | |
8284b0c5 | 33744 | |
e6cc62c6 VS |
33745 | ; |
33746 | return 0; | |
33747 | } | |
33748 | _ACEOF | |
33749 | rm -f conftest.$ac_objext | |
33750 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 33751 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
33752 | ac_status=$? |
33753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33754 | (exit $ac_status); } && | |
789c5f4a | 33755 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
33756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33757 | (eval $ac_try) 2>&5 | |
33758 | ac_status=$? | |
33759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33760 | (exit $ac_status); }; }; then | |
33761 | echo "$as_me:$LINENO: result: no" >&5 | |
33762 | echo "${ECHO_T}no" >&6 | |
33763 | else | |
33764 | echo "$as_me: failed program was:" >&5 | |
33765 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33766 | ||
33767 | echo "$as_me:$LINENO: result: yes" >&5 | |
33768 | echo "${ECHO_T}yes" >&6 | |
8284b0c5 MB |
33769 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
33770 | fi | |
789c5f4a | 33771 | rm -f conftest.$ac_objext conftest.$ac_ext |
8284b0c5 | 33772 | ac_ext=c |
8284b0c5 | 33773 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
33774 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
33775 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
33776 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 | 33777 | |
2b9bdf71 | 33778 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" |
3d63bc3a | 33779 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
f95e4495 VS |
33780 | if test "$wxUSE_OLE" = "yes" ; then |
33781 | cat >>confdefs.h <<\_ACEOF | |
4f11a343 | 33782 | #define wxUSE_OLE 1 |
e6cc62c6 | 33783 | _ACEOF |
4f11a343 | 33784 | |
f95e4495 | 33785 | fi |
2b9bdf71 VZ |
33786 | fi |
33787 | ||
f95e4495 VS |
33788 | if test "$wxUSE_DATAOBJ" = "yes" ; then |
33789 | cat >>confdefs.h <<\_ACEOF | |
2b9bdf71 | 33790 | #define wxUSE_DATAOBJ 1 |
e6cc62c6 | 33791 | _ACEOF |
2b9bdf71 | 33792 | |
f95e4495 | 33793 | fi |
2b9bdf71 | 33794 | else |
e6cc62c6 VS |
33795 | { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5 |
33796 | echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;} | |
2b9bdf71 VZ |
33797 | |
33798 | wxUSE_CLIPBOARD=no | |
33799 | wxUSE_DRAG_AND_DROP=no | |
33800 | wxUSE_DATAOBJ=no | |
3bce6687 JS |
33801 | wxUSE_OLE=no |
33802 | fi | |
33803 | ||
33804 | if test "$wxUSE_METAFILE" = "yes"; then | |
e6cc62c6 | 33805 | cat >>confdefs.h <<\_ACEOF |
3bce6687 | 33806 | #define wxUSE_METAFILE 1 |
e6cc62c6 | 33807 | _ACEOF |
3bce6687 JS |
33808 | |
33809 | ||
e6cc62c6 | 33810 | cat >>confdefs.h <<\_ACEOF |
3bce6687 | 33811 | #define wxUSE_ENH_METAFILE 1 |
e6cc62c6 | 33812 | _ACEOF |
3bce6687 JS |
33813 | |
33814 | fi | |
33815 | fi | |
33816 | ||
2b9bdf71 VZ |
33817 | if test "$wxUSE_IPC" = "yes"; then |
33818 | if test "$wxUSE_SOCKETS" != "yes"; then | |
e6cc62c6 VS |
33819 | { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5 |
33820 | echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;} | |
2b9bdf71 VZ |
33821 | fi |
33822 | ||
e6cc62c6 | 33823 | cat >>confdefs.h <<\_ACEOF |
2b9bdf71 | 33824 | #define wxUSE_IPC 1 |
e6cc62c6 | 33825 | _ACEOF |
2b9bdf71 VZ |
33826 | |
33827 | fi | |
33828 | ||
33829 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
6c657b52 | 33830 | if test "$wxUSE_MGL" = 1; then |
e6cc62c6 VS |
33831 | { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5 |
33832 | echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;} | |
6c657b52 VS |
33833 | wxUSE_CLIPBOARD=no |
33834 | fi | |
33835 | ||
33836 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
e6cc62c6 | 33837 | cat >>confdefs.h <<\_ACEOF |
2b9bdf71 | 33838 | #define wxUSE_CLIPBOARD 1 |
e6cc62c6 | 33839 | _ACEOF |
2b9bdf71 | 33840 | |
8284b0c5 | 33841 | |
e6cc62c6 | 33842 | cat >>confdefs.h <<\_ACEOF |
673f4220 | 33843 | #define wxUSE_DATAOBJ 1 |
e6cc62c6 | 33844 | _ACEOF |
673f4220 | 33845 | |
6c657b52 | 33846 | fi |
2b9bdf71 VZ |
33847 | fi |
33848 | ||
33849 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
33850 | if test "$wxUSE_GTK" = 1; then | |
33851 | if test "$WXGTK12" != 1; then | |
e6cc62c6 VS |
33852 | { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5 |
33853 | echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;} | |
10f2d63a VZ |
33854 | wxUSE_DRAG_AND_DROP=no |
33855 | fi | |
33856 | fi | |
33857 | ||
2b9bdf71 | 33858 | if test "$wxUSE_MOTIF" = 1; then |
e6cc62c6 VS |
33859 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5 |
33860 | echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;} | |
2b9bdf71 VZ |
33861 | wxUSE_DRAG_AND_DROP=no |
33862 | fi | |
33863 | ||
f79bd02d | 33864 | if test "$wxUSE_X11" = 1; then |
e6cc62c6 VS |
33865 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5 |
33866 | echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;} | |
f79bd02d JS |
33867 | wxUSE_DRAG_AND_DROP=no |
33868 | fi | |
33869 | ||
6c657b52 | 33870 | if test "$wxUSE_MGL" = 1; then |
e6cc62c6 VS |
33871 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5 |
33872 | echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;} | |
6c657b52 VS |
33873 | wxUSE_DRAG_AND_DROP=no |
33874 | fi | |
33875 | ||
10f2d63a | 33876 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then |
e6cc62c6 | 33877 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 33878 | #define wxUSE_DRAG_AND_DROP 1 |
e6cc62c6 | 33879 | _ACEOF |
10f2d63a VZ |
33880 | |
33881 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
33882 | fi | |
33883 | ||
33884 | fi | |
33885 | ||
33886 | if test "$wxUSE_SPLINES" = "yes" ; then | |
e6cc62c6 | 33887 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 33888 | #define wxUSE_SPLINES 1 |
e6cc62c6 | 33889 | _ACEOF |
10f2d63a VZ |
33890 | |
33891 | fi | |
33892 | ||
8284b0c5 | 33893 | |
1e6feb95 VZ |
33894 | USES_CONTROLS=0 |
33895 | if test "$wxUSE_CONTROLS" = "yes"; then | |
33896 | USES_CONTROLS=1 | |
33897 | fi | |
33898 | ||
10f2d63a | 33899 | if test "$wxUSE_ACCEL" = "yes"; then |
e6cc62c6 | 33900 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 33901 | #define wxUSE_ACCEL 1 |
e6cc62c6 | 33902 | _ACEOF |
10f2d63a | 33903 | |
1e6feb95 VZ |
33904 | USES_CONTROLS=1 |
33905 | fi | |
33906 | ||
33907 | if test "$wxUSE_BUTTON" = "yes"; then | |
e6cc62c6 | 33908 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33909 | #define wxUSE_BUTTON 1 |
e6cc62c6 | 33910 | _ACEOF |
1e6feb95 VZ |
33911 | |
33912 | USES_CONTROLS=1 | |
33913 | fi | |
33914 | ||
33915 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
e6cc62c6 | 33916 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33917 | #define wxUSE_BMPBUTTON 1 |
e6cc62c6 | 33918 | _ACEOF |
1e6feb95 VZ |
33919 | |
33920 | USES_CONTROLS=1 | |
33921 | fi | |
33922 | ||
33923 | if test "$wxUSE_CALCTRL" = "yes"; then | |
e6cc62c6 | 33924 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33925 | #define wxUSE_CALENDARCTRL 1 |
e6cc62c6 | 33926 | _ACEOF |
1e6feb95 VZ |
33927 | |
33928 | USES_CONTROLS=1 | |
33929 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
33930 | fi |
33931 | ||
33932 | if test "$wxUSE_CARET" = "yes"; then | |
e6cc62c6 | 33933 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 33934 | #define wxUSE_CARET 1 |
e6cc62c6 | 33935 | _ACEOF |
10f2d63a | 33936 | |
1e6feb95 | 33937 | USES_CONTROLS=1 |
10f2d63a VZ |
33938 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
33939 | fi | |
33940 | ||
33941 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
e6cc62c6 | 33942 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 33943 | #define wxUSE_COMBOBOX 1 |
e6cc62c6 | 33944 | _ACEOF |
10f2d63a | 33945 | |
1e6feb95 | 33946 | USES_CONTROLS=1 |
10f2d63a VZ |
33947 | fi |
33948 | ||
33949 | if test "$wxUSE_CHOICE" = "yes"; then | |
e6cc62c6 | 33950 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 33951 | #define wxUSE_CHOICE 1 |
e6cc62c6 | 33952 | _ACEOF |
10f2d63a | 33953 | |
1e6feb95 | 33954 | USES_CONTROLS=1 |
10f2d63a VZ |
33955 | fi |
33956 | ||
33957 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
e6cc62c6 | 33958 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 33959 | #define wxUSE_CHECKBOX 1 |
e6cc62c6 | 33960 | _ACEOF |
10f2d63a | 33961 | |
1e6feb95 | 33962 | USES_CONTROLS=1 |
10f2d63a VZ |
33963 | fi |
33964 | ||
33965 | if test "$wxUSE_CHECKLST" = "yes"; then | |
e6cc62c6 | 33966 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 33967 | #define wxUSE_CHECKLISTBOX 1 |
e6cc62c6 | 33968 | _ACEOF |
10f2d63a | 33969 | |
1e6feb95 | 33970 | USES_CONTROLS=1 |
10f2d63a VZ |
33971 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
33972 | fi | |
33973 | ||
da494b40 | 33974 | if test "$wxUSE_DISPLAY" = "yes"; then |
e6cc62c6 | 33975 | cat >>confdefs.h <<\_ACEOF |
da494b40 | 33976 | #define wxUSE_DISPLAY 1 |
e6cc62c6 | 33977 | _ACEOF |
da494b40 MB |
33978 | |
33979 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display" | |
33980 | fi | |
33981 | ||
10f2d63a | 33982 | if test "$wxUSE_GAUGE" = "yes"; then |
e6cc62c6 | 33983 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 33984 | #define wxUSE_GAUGE 1 |
e6cc62c6 | 33985 | _ACEOF |
10f2d63a | 33986 | |
1e6feb95 | 33987 | USES_CONTROLS=1 |
10f2d63a VZ |
33988 | fi |
33989 | ||
d6a55c4b | 33990 | if test "$wxUSE_GRID" = "yes"; then |
e6cc62c6 | 33991 | cat >>confdefs.h <<\_ACEOF |
d6a55c4b | 33992 | #define wxUSE_GRID 1 |
e6cc62c6 | 33993 | _ACEOF |
10f2d63a | 33994 | |
1e6feb95 | 33995 | USES_CONTROLS=1 |
d6a55c4b | 33996 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
33997 | fi |
33998 | ||
33999 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
e6cc62c6 | 34000 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 34001 | #define wxUSE_IMAGLIST 1 |
e6cc62c6 | 34002 | _ACEOF |
10f2d63a VZ |
34003 | |
34004 | fi | |
34005 | ||
0e012a93 VZ |
34006 | if test "$wxUSE_LISTBOOK" = "yes"; then |
34007 | cat >>confdefs.h <<\_ACEOF | |
34008 | #define wxUSE_LISTBOOK 1 | |
34009 | _ACEOF | |
34010 | ||
34011 | USES_CONTROLS=1 | |
34012 | fi | |
34013 | ||
10f2d63a | 34014 | if test "$wxUSE_LISTBOX" = "yes"; then |
e6cc62c6 | 34015 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 34016 | #define wxUSE_LISTBOX 1 |
e6cc62c6 | 34017 | _ACEOF |
10f2d63a | 34018 | |
1e6feb95 | 34019 | USES_CONTROLS=1 |
10f2d63a VZ |
34020 | fi |
34021 | ||
34022 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
34023 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
e6cc62c6 | 34024 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 34025 | #define wxUSE_LISTCTRL 1 |
e6cc62c6 | 34026 | _ACEOF |
10f2d63a | 34027 | |
1e6feb95 | 34028 | USES_CONTROLS=1 |
10f2d63a VZ |
34029 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
34030 | else | |
e6cc62c6 VS |
34031 | { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5 |
34032 | echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;} | |
10f2d63a VZ |
34033 | fi |
34034 | fi | |
34035 | ||
34036 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
e6cc62c6 | 34037 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 34038 | #define wxUSE_NOTEBOOK 1 |
e6cc62c6 | 34039 | _ACEOF |
10f2d63a | 34040 | |
1e6feb95 | 34041 | USES_CONTROLS=1 |
10f2d63a VZ |
34042 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
34043 | fi | |
34044 | ||
24176f2c | 34045 | |
10f2d63a | 34046 | if test "$wxUSE_RADIOBOX" = "yes"; then |
e6cc62c6 | 34047 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 34048 | #define wxUSE_RADIOBOX 1 |
e6cc62c6 | 34049 | _ACEOF |
10f2d63a | 34050 | |
1e6feb95 | 34051 | USES_CONTROLS=1 |
10f2d63a VZ |
34052 | fi |
34053 | ||
34054 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
e6cc62c6 | 34055 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 34056 | #define wxUSE_RADIOBTN 1 |
e6cc62c6 | 34057 | _ACEOF |
10f2d63a | 34058 | |
1e6feb95 | 34059 | USES_CONTROLS=1 |
10f2d63a VZ |
34060 | fi |
34061 | ||
34062 | if test "$wxUSE_SASH" = "yes"; then | |
e6cc62c6 | 34063 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 34064 | #define wxUSE_SASH 1 |
e6cc62c6 | 34065 | _ACEOF |
10f2d63a VZ |
34066 | |
34067 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
34068 | fi | |
34069 | ||
34070 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
e6cc62c6 | 34071 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 34072 | #define wxUSE_SCROLLBAR 1 |
e6cc62c6 | 34073 | _ACEOF |
10f2d63a | 34074 | |
1e6feb95 | 34075 | USES_CONTROLS=1 |
741a9306 | 34076 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
34077 | fi |
34078 | ||
34079 | if test "$wxUSE_SLIDER" = "yes"; then | |
e6cc62c6 | 34080 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 34081 | #define wxUSE_SLIDER 1 |
e6cc62c6 | 34082 | _ACEOF |
10f2d63a | 34083 | |
1e6feb95 | 34084 | USES_CONTROLS=1 |
10f2d63a VZ |
34085 | fi |
34086 | ||
34087 | if test "$wxUSE_SPINBTN" = "yes"; then | |
e6cc62c6 | 34088 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 34089 | #define wxUSE_SPINBTN 1 |
e6cc62c6 | 34090 | _ACEOF |
10f2d63a | 34091 | |
1e6feb95 | 34092 | USES_CONTROLS=1 |
10f2d63a VZ |
34093 | fi |
34094 | ||
56cfaa52 | 34095 | if test "$wxUSE_SPINCTRL" = "yes"; then |
e6cc62c6 | 34096 | cat >>confdefs.h <<\_ACEOF |
56cfaa52 | 34097 | #define wxUSE_SPINCTRL 1 |
e6cc62c6 | 34098 | _ACEOF |
56cfaa52 | 34099 | |
1e6feb95 | 34100 | USES_CONTROLS=1 |
56cfaa52 RR |
34101 | fi |
34102 | ||
10f2d63a | 34103 | if test "$wxUSE_SPLITTER" = "yes"; then |
e6cc62c6 | 34104 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 34105 | #define wxUSE_SPLITTER 1 |
e6cc62c6 | 34106 | _ACEOF |
10f2d63a VZ |
34107 | |
34108 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
34109 | fi | |
34110 | ||
34111 | if test "$wxUSE_STATBMP" = "yes"; then | |
e6cc62c6 | 34112 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 34113 | #define wxUSE_STATBMP 1 |
e6cc62c6 | 34114 | _ACEOF |
10f2d63a | 34115 | |
1e6feb95 | 34116 | USES_CONTROLS=1 |
10f2d63a VZ |
34117 | fi |
34118 | ||
34119 | if test "$wxUSE_STATBOX" = "yes"; then | |
e6cc62c6 | 34120 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 34121 | #define wxUSE_STATBOX 1 |
e6cc62c6 | 34122 | _ACEOF |
10f2d63a | 34123 | |
1e6feb95 VZ |
34124 | USES_CONTROLS=1 |
34125 | fi | |
34126 | ||
34127 | if test "$wxUSE_STATTEXT" = "yes"; then | |
e6cc62c6 | 34128 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 34129 | #define wxUSE_STATTEXT 1 |
e6cc62c6 | 34130 | _ACEOF |
1e6feb95 VZ |
34131 | |
34132 | USES_CONTROLS=1 | |
10f2d63a VZ |
34133 | fi |
34134 | ||
34135 | if test "$wxUSE_STATLINE" = "yes"; then | |
e6cc62c6 | 34136 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 34137 | #define wxUSE_STATLINE 1 |
e6cc62c6 | 34138 | _ACEOF |
10f2d63a | 34139 | |
89e6bf6d | 34140 | USES_CONTROLS=1 |
10f2d63a VZ |
34141 | fi |
34142 | ||
34143 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
e6cc62c6 | 34144 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 34145 | #define wxUSE_STATUSBAR 1 |
e6cc62c6 | 34146 | _ACEOF |
10f2d63a | 34147 | |
1e6feb95 | 34148 | USES_CONTROLS=1 |
698dcdb6 | 34149 | |
2286341c | 34150 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
34151 | fi |
34152 | ||
34153 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
e6cc62c6 | 34154 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 34155 | #define wxUSE_TAB_DIALOG 1 |
e6cc62c6 | 34156 | _ACEOF |
10f2d63a VZ |
34157 | |
34158 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
34159 | fi | |
34160 | ||
1e6feb95 | 34161 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
e6cc62c6 | 34162 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 34163 | #define wxUSE_TEXTCTRL 1 |
e6cc62c6 | 34164 | _ACEOF |
1e6feb95 VZ |
34165 | |
34166 | USES_CONTROLS=1 | |
34167 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
34168 | fi | |
34169 | ||
1db8dc4a | 34170 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
ac0c4cc3 | 34171 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
e6cc62c6 VS |
34172 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5 |
34173 | echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;} | |
156b2523 GD |
34174 | wxUSE_TOGGLEBTN=no |
34175 | fi | |
34176 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
e6cc62c6 VS |
34177 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5 |
34178 | echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;} | |
a45d7ab7 GD |
34179 | wxUSE_TOGGLEBTN=no |
34180 | fi | |
34181 | ||
34182 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
e6cc62c6 | 34183 | cat >>confdefs.h <<\_ACEOF |
1db8dc4a | 34184 | #define wxUSE_TOGGLEBTN 1 |
e6cc62c6 | 34185 | _ACEOF |
1db8dc4a | 34186 | |
1e6feb95 | 34187 | USES_CONTROLS=1 |
a45d7ab7 | 34188 | fi |
1db8dc4a VZ |
34189 | fi |
34190 | ||
360d6699 | 34191 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
e6cc62c6 | 34192 | cat >>confdefs.h <<\_ACEOF |
360d6699 | 34193 | #define wxUSE_TOOLBAR_SIMPLE 1 |
e6cc62c6 | 34194 | _ACEOF |
360d6699 VZ |
34195 | |
34196 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 34197 | USES_CONTROLS=1 |
360d6699 VZ |
34198 | fi |
34199 | ||
10f2d63a | 34200 | if test "$wxUSE_TOOLBAR" = "yes"; then |
e6cc62c6 | 34201 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 34202 | #define wxUSE_TOOLBAR 1 |
e6cc62c6 | 34203 | _ACEOF |
10f2d63a | 34204 | |
1e6feb95 | 34205 | USES_CONTROLS=1 |
698dcdb6 | 34206 | |
360d6699 VZ |
34207 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
34208 | wxUSE_TOOLBAR_NATIVE="yes" | |
34209 | fi | |
34210 | ||
1e6feb95 | 34211 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
e6cc62c6 | 34212 | cat >>confdefs.h <<\_ACEOF |
360d6699 | 34213 | #define wxUSE_TOOLBAR_NATIVE 1 |
e6cc62c6 | 34214 | _ACEOF |
360d6699 | 34215 | |
1e6feb95 VZ |
34216 | USES_CONTROLS=1 |
34217 | fi | |
34218 | ||
34219 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
34220 | fi |
34221 | ||
10f2d63a VZ |
34222 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
34223 | if test "$wxUSE_MOTIF" = 1; then | |
e6cc62c6 VS |
34224 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5 |
34225 | echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;} | |
10f2d63a | 34226 | else |
89e6bf6d | 34227 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
e6cc62c6 VS |
34228 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5 |
34229 | echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;} | |
10f2d63a | 34230 | else |
e6cc62c6 | 34231 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 34232 | #define wxUSE_TOOLTIPS 1 |
e6cc62c6 | 34233 | _ACEOF |
10f2d63a VZ |
34234 | |
34235 | fi | |
34236 | fi | |
34237 | fi | |
34238 | ||
34239 | if test "$wxUSE_TREECTRL" = "yes"; then | |
34240 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
e6cc62c6 | 34241 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 34242 | #define wxUSE_TREECTRL 1 |
e6cc62c6 | 34243 | _ACEOF |
10f2d63a | 34244 | |
1e6feb95 | 34245 | USES_CONTROLS=1 |
10f2d63a VZ |
34246 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
34247 | else | |
e6cc62c6 VS |
34248 | { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5 |
34249 | echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;} | |
10f2d63a VZ |
34250 | fi |
34251 | fi | |
34252 | ||
9f41d601 | 34253 | if test "$wxUSE_POPUPWIN" = "yes"; then |
ac0c4cc3 | 34254 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
e6cc62c6 VS |
34255 | { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5 |
34256 | echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;} | |
6abe4b65 | 34257 | else |
833a51f6 MB |
34258 | if test "$wxUSE_PM" = 1; then |
34259 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5 | |
e6cc62c6 | 34260 | echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;} |
833a51f6 MB |
34261 | else |
34262 | cat >>confdefs.h <<\_ACEOF | |
9f41d601 | 34263 | #define wxUSE_POPUPWIN 1 |
e6cc62c6 | 34264 | _ACEOF |
9f41d601 | 34265 | |
8284b0c5 | 34266 | |
833a51f6 | 34267 | USES_CONTROLS=1 |
485cf710 | 34268 | fi |
6abe4b65 | 34269 | fi |
9f41d601 RR |
34270 | fi |
34271 | ||
dd964dcc | 34272 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
3c011993 | 34273 | if test "$wxUSE_PM" = 1; then |
e6cc62c6 VS |
34274 | { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5 |
34275 | echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;} | |
3bd8fb5f | 34276 | else |
e6cc62c6 | 34277 | cat >>confdefs.h <<\_ACEOF |
dd964dcc | 34278 | #define wxUSE_TIPWINDOW 1 |
e6cc62c6 | 34279 | _ACEOF |
dd964dcc | 34280 | |
3c011993 | 34281 | fi |
dd964dcc VZ |
34282 | fi |
34283 | ||
1e6feb95 | 34284 | if test "$USES_CONTROLS" = 1; then |
e6cc62c6 | 34285 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 34286 | #define wxUSE_CONTROLS 1 |
e6cc62c6 | 34287 | _ACEOF |
10f2d63a | 34288 | |
10f2d63a VZ |
34289 | fi |
34290 | ||
8284b0c5 | 34291 | |
e46d2a18 VS |
34292 | if test "$wxUSE_ACCESSIBILITY" = "yes"; then |
34293 | cat >>confdefs.h <<\_ACEOF | |
34294 | #define wxUSE_ACCESSIBILITY 1 | |
34295 | _ACEOF | |
34296 | ||
34297 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access" | |
34298 | fi | |
1e6feb95 | 34299 | |
24fd6d87 | 34300 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
e6cc62c6 | 34301 | cat >>confdefs.h <<\_ACEOF |
24fd6d87 | 34302 | #define wxUSE_DRAGIMAGE 1 |
e6cc62c6 | 34303 | _ACEOF |
24fd6d87 VZ |
34304 | |
34305 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
34306 | fi | |
34307 | ||
e46d2a18 | 34308 | if test "$wxUSE_EXCEPTIONS" = "yes"; then |
e6cc62c6 | 34309 | cat >>confdefs.h <<\_ACEOF |
e46d2a18 | 34310 | #define wxUSE_EXCEPTIONS 1 |
e6cc62c6 | 34311 | _ACEOF |
7bb2947d | 34312 | |
e46d2a18 VS |
34313 | fi |
34314 | ||
34315 | USE_HTML=0 | |
34316 | if test "$wxUSE_HTML" = "yes"; then | |
34317 | cat >>confdefs.h <<\_ACEOF | |
34318 | #define wxUSE_HTML 1 | |
34319 | _ACEOF | |
34320 | ||
34321 | USE_HTML=1 | |
34322 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox" | |
7bb2947d MB |
34323 | fi |
34324 | ||
1e6feb95 | 34325 | if test "$wxUSE_MENUS" = "yes"; then |
e6cc62c6 | 34326 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 34327 | #define wxUSE_MENUS 1 |
e6cc62c6 | 34328 | _ACEOF |
10f2d63a | 34329 | |
1e6feb95 | 34330 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
34331 | fi |
34332 | ||
1e6feb95 | 34333 | if test "$wxUSE_METAFILE" = "yes"; then |
e6cc62c6 | 34334 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 34335 | #define wxUSE_METAFILE 1 |
e6cc62c6 | 34336 | _ACEOF |
10f2d63a | 34337 | |
10f2d63a VZ |
34338 | fi |
34339 | ||
1e6feb95 | 34340 | if test "$wxUSE_MIMETYPE" = "yes"; then |
e6cc62c6 | 34341 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 34342 | #define wxUSE_MIMETYPE 1 |
e6cc62c6 | 34343 | _ACEOF |
10f2d63a | 34344 | |
10f2d63a VZ |
34345 | fi |
34346 | ||
34347 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
e6cc62c6 | 34348 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 34349 | #define wxUSE_MINIFRAME 1 |
e6cc62c6 | 34350 | _ACEOF |
10f2d63a VZ |
34351 | |
34352 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
34353 | fi | |
34354 | ||
e46d2a18 | 34355 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then |
e6cc62c6 | 34356 | cat >>confdefs.h <<\_ACEOF |
e46d2a18 | 34357 | #define wxUSE_SYSTEM_OPTIONS 1 |
e6cc62c6 | 34358 | _ACEOF |
10f2d63a | 34359 | |
e46d2a18 VS |
34360 | if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \ |
34361 | "$TOOLKIT" = "MOTIF"; then | |
34362 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" | |
34363 | fi | |
10f2d63a VZ |
34364 | fi |
34365 | ||
e46d2a18 | 34366 | |
10f2d63a | 34367 | if test "$wxUSE_VALIDATORS" = "yes"; then |
e6cc62c6 | 34368 | cat >>confdefs.h <<\_ACEOF |
1e487827 | 34369 | #define wxUSE_VALIDATORS 1 |
e6cc62c6 | 34370 | _ACEOF |
703e0a69 | 34371 | |
698dcdb6 VZ |
34372 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
34373 | fi | |
34374 | ||
edae8572 | 34375 | if test "$wxUSE_PALETTE" = "yes" ; then |
e6cc62c6 | 34376 | cat >>confdefs.h <<\_ACEOF |
edae8572 | 34377 | #define wxUSE_PALETTE 1 |
e6cc62c6 | 34378 | _ACEOF |
edae8572 VZ |
34379 | |
34380 | fi | |
34381 | ||
e46d2a18 VS |
34382 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then |
34383 | LIBS=" -lunicows $LIBS" | |
34384 | fi | |
34385 | ||
34386 | ||
698dcdb6 | 34387 | if test "$wxUSE_IMAGE" = "yes" ; then |
e46d2a18 | 34388 | cat >>confdefs.h <<\_ACEOF |
698dcdb6 | 34389 | #define wxUSE_IMAGE 1 |
e6cc62c6 | 34390 | _ACEOF |
698dcdb6 | 34391 | |
698dcdb6 | 34392 | |
e46d2a18 VS |
34393 | if test "$wxUSE_GIF" = "yes" ; then |
34394 | cat >>confdefs.h <<\_ACEOF | |
698dcdb6 | 34395 | #define wxUSE_GIF 1 |
e6cc62c6 | 34396 | _ACEOF |
698dcdb6 | 34397 | |
e46d2a18 | 34398 | fi |
698dcdb6 | 34399 | |
e46d2a18 VS |
34400 | if test "$wxUSE_PCX" = "yes" ; then |
34401 | cat >>confdefs.h <<\_ACEOF | |
698dcdb6 | 34402 | #define wxUSE_PCX 1 |
e6cc62c6 | 34403 | _ACEOF |
698dcdb6 | 34404 | |
e46d2a18 | 34405 | fi |
698dcdb6 | 34406 | |
e46d2a18 VS |
34407 | if test "$wxUSE_IFF" = "yes" ; then |
34408 | cat >>confdefs.h <<\_ACEOF | |
4b6b4dfc | 34409 | #define wxUSE_IFF 1 |
e6cc62c6 | 34410 | _ACEOF |
4b6b4dfc | 34411 | |
e46d2a18 | 34412 | fi |
4b6b4dfc | 34413 | |
e46d2a18 VS |
34414 | if test "$wxUSE_PNM" = "yes" ; then |
34415 | cat >>confdefs.h <<\_ACEOF | |
698dcdb6 | 34416 | #define wxUSE_PNM 1 |
e6cc62c6 | 34417 | _ACEOF |
698dcdb6 | 34418 | |
e46d2a18 | 34419 | fi |
698dcdb6 | 34420 | |
e46d2a18 VS |
34421 | if test "$wxUSE_XPM" = "yes" ; then |
34422 | cat >>confdefs.h <<\_ACEOF | |
698dcdb6 | 34423 | #define wxUSE_XPM 1 |
e6cc62c6 | 34424 | _ACEOF |
698dcdb6 | 34425 | |
e46d2a18 | 34426 | fi |
698dcdb6 | 34427 | |
e46d2a18 VS |
34428 | if test "$wxUSE_ICO_CUR" = "yes" ; then |
34429 | cat >>confdefs.h <<\_ACEOF | |
658974ae | 34430 | #define wxUSE_ICO_CUR 1 |
e6cc62c6 | 34431 | _ACEOF |
658974ae | 34432 | |
e46d2a18 | 34433 | fi |
a72a4bfa VS |
34434 | fi |
34435 | ||
8284b0c5 | 34436 | |
1e6feb95 | 34437 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
e6cc62c6 | 34438 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 34439 | #define wxUSE_CHOICEDLG 1 |
e6cc62c6 | 34440 | _ACEOF |
1e6feb95 VZ |
34441 | |
34442 | fi | |
34443 | ||
34444 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
e6cc62c6 | 34445 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 34446 | #define wxUSE_COLOURDLG 1 |
e6cc62c6 | 34447 | _ACEOF |
1e6feb95 VZ |
34448 | |
34449 | fi | |
34450 | ||
34451 | if test "$wxUSE_FILEDLG" = "yes"; then | |
e6cc62c6 | 34452 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 34453 | #define wxUSE_FILEDLG 1 |
e6cc62c6 | 34454 | _ACEOF |
1e6feb95 VZ |
34455 | |
34456 | fi | |
34457 | ||
8db37e06 | 34458 | if test "$wxUSE_FINDREPLDLG" = "yes"; then |
e6cc62c6 | 34459 | cat >>confdefs.h <<\_ACEOF |
8db37e06 | 34460 | #define wxUSE_FINDREPLDLG 1 |
e6cc62c6 | 34461 | _ACEOF |
8db37e06 VZ |
34462 | |
34463 | fi | |
34464 | ||
1e6feb95 | 34465 | if test "$wxUSE_FONTDLG" = "yes"; then |
e6cc62c6 | 34466 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 34467 | #define wxUSE_FONTDLG 1 |
e6cc62c6 | 34468 | _ACEOF |
1e6feb95 VZ |
34469 | |
34470 | fi | |
34471 | ||
34472 | if test "$wxUSE_DIRDLG" = "yes"; then | |
ae1daed0 | 34473 | if test "$wxUSE_TREECTRL" != "yes"; then |
e6cc62c6 VS |
34474 | { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5 |
34475 | echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;} | |
1e6feb95 | 34476 | else |
e6cc62c6 | 34477 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 34478 | #define wxUSE_DIRDLG 1 |
e6cc62c6 | 34479 | _ACEOF |
1e6feb95 | 34480 | |
1e6feb95 VZ |
34481 | fi |
34482 | fi | |
34483 | ||
34484 | if test "$wxUSE_MSGDLG" = "yes"; then | |
e6cc62c6 | 34485 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 34486 | #define wxUSE_MSGDLG 1 |
e6cc62c6 | 34487 | _ACEOF |
1e6feb95 VZ |
34488 | |
34489 | fi | |
34490 | ||
34491 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
e6cc62c6 | 34492 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 34493 | #define wxUSE_NUMBERDLG 1 |
e6cc62c6 | 34494 | _ACEOF |
1e6feb95 VZ |
34495 | |
34496 | fi | |
34497 | ||
34498 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
34499 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
e6cc62c6 VS |
34500 | { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5 |
34501 | echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;} | |
1e6feb95 | 34502 | else |
e6cc62c6 | 34503 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 34504 | #define wxUSE_PROGRESSDLG 1 |
e6cc62c6 | 34505 | _ACEOF |
1e6feb95 VZ |
34506 | |
34507 | fi | |
34508 | fi | |
34509 | ||
cbca9943 | 34510 | if test "$wxUSE_SPLASH" = "yes"; then |
e6cc62c6 | 34511 | cat >>confdefs.h <<\_ACEOF |
cbca9943 | 34512 | #define wxUSE_SPLASH 1 |
e6cc62c6 | 34513 | _ACEOF |
cbca9943 VZ |
34514 | |
34515 | fi | |
34516 | ||
1e6feb95 VZ |
34517 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then |
34518 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
e6cc62c6 VS |
34519 | { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5 |
34520 | echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;} | |
1e6feb95 | 34521 | else |
e6cc62c6 | 34522 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 34523 | #define wxUSE_STARTUP_TIPS 1 |
e6cc62c6 | 34524 | _ACEOF |
1e6feb95 | 34525 | |
7b4a847f RR |
34526 | fi |
34527 | fi | |
579d8138 | 34528 | |
8284b0c5 | 34529 | if test "$wxUSE_TEXTDLG" = "yes"; then |
e6cc62c6 | 34530 | cat >>confdefs.h <<\_ACEOF |
8284b0c5 | 34531 | #define wxUSE_TEXTDLG 1 |
e6cc62c6 | 34532 | _ACEOF |
8284b0c5 MB |
34533 | |
34534 | fi | |
34535 | ||
34536 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
e6cc62c6 | 34537 | cat >>confdefs.h <<\_ACEOF |
8284b0c5 | 34538 | #define wxUSE_WIZARDDLG 1 |
e6cc62c6 | 34539 | _ACEOF |
8284b0c5 MB |
34540 | |
34541 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
34542 | fi | |
34543 | ||
34544 | ||
34545 | if test "$cross_compiling" = "yes"; then | |
34546 | OSINFO="\"$host\"" | |
34547 | else | |
34548 | OSINFO=`uname -s -r -m` | |
34549 | OSINFO="\"$OSINFO\"" | |
34550 | fi | |
34551 | ||
e6cc62c6 | 34552 | cat >>confdefs.h <<_ACEOF |
8284b0c5 | 34553 | #define WXWIN_OS_DESCRIPTION $OSINFO |
e6cc62c6 | 34554 | _ACEOF |
8284b0c5 MB |
34555 | |
34556 | ||
34557 | ||
34558 | if test "x$prefix" != "xNONE"; then | |
34559 | wxPREFIX=$prefix | |
34560 | else | |
34561 | wxPREFIX=$ac_default_prefix | |
34562 | fi | |
34563 | ||
e6cc62c6 | 34564 | cat >>confdefs.h <<_ACEOF |
8284b0c5 | 34565 | #define wxINSTALL_PREFIX "$wxPREFIX" |
e6cc62c6 | 34566 | _ACEOF |
8284b0c5 MB |
34567 | |
34568 | ||
e6cc62c6 | 34569 | top_builddir_wxconfig=`pwd` |
52c71b80 | 34570 | |
8284b0c5 MB |
34571 | |
34572 | ||
edd891e2 VS |
34573 | CORE_BASE_LIBS="net base" |
34574 | CORE_GUI_LIBS="adv core" | |
34575 | ||
34576 | if test "$wxUSE_XML" = "yes" ; then | |
34577 | CORE_BASE_LIBS="xml $CORE_BASE_LIBS" | |
34578 | fi | |
45293562 VS |
34579 | if test "$wxUSE_ODBC" != "no" ; then |
34580 | CORE_BASE_LIBS="odbc $CORE_BASE_LIBS" | |
34581 | CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS" | |
edd891e2 VS |
34582 | fi |
34583 | if test "$wxUSE_HTML" = "yes" ; then | |
34584 | CORE_GUI_LIBS="html $CORE_GUI_LIBS" | |
34585 | fi | |
34586 | ||
57e7d4ac VS |
34587 | if test "$wxUSE_GUI" != "yes"; then |
34588 | CORE_GUI_LIBS="" | |
34589 | fi | |
34590 | ||
edd891e2 VS |
34591 | |
34592 | ||
34593 | ||
34594 | ||
34595 | ||
34596 | ||
8284b0c5 MB |
34597 | |
34598 | if test "$wxUSE_MAC" = 1 ; then | |
34599 | LDFLAGS="$LDFLAGS -framework Carbon -framework System" | |
34600 | fi | |
ac0c4cc3 DE |
34601 | if test "$wxUSE_COCOA" = 1 ; then |
34602 | LDFLAGS="$LDFLAGS -framework Cocoa -framework System" | |
34603 | fi | |
8284b0c5 MB |
34604 | |
34605 | ||
2b5f62a0 VZ |
34606 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" |
34607 | ||
34608 | have_cos=0 | |
34609 | have_floor=0 | |
e6cc62c6 | 34610 | |
2b5f62a0 VZ |
34611 | for ac_func in cos |
34612 | do | |
e6cc62c6 VS |
34613 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
34614 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34615 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34616 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34617 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34618 | else | |
34619 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 34620 | #line $LINENO "configure" |
e6cc62c6 VS |
34621 | /* confdefs.h. */ |
34622 | _ACEOF | |
34623 | cat confdefs.h >>conftest.$ac_ext | |
34624 | cat >>conftest.$ac_ext <<_ACEOF | |
34625 | /* end confdefs.h. */ | |
2b5f62a0 | 34626 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
34627 | which can conflict with char $ac_func (); below. |
34628 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34629 | <limits.h> exists even on freestanding compilers. */ | |
34630 | #ifdef __STDC__ | |
34631 | # include <limits.h> | |
34632 | #else | |
34633 | # include <assert.h> | |
34634 | #endif | |
2b5f62a0 | 34635 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
34636 | #ifdef __cplusplus |
34637 | extern "C" | |
34638 | { | |
34639 | #endif | |
2b5f62a0 | 34640 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
34641 | builtin and then its argument prototype would still apply. */ |
34642 | char $ac_func (); | |
2b5f62a0 VZ |
34643 | /* The GNU C library defines this for functions which it implements |
34644 | to always fail with ENOSYS. Some functions are actually named | |
34645 | something starting with __ and the normal name is an alias. */ | |
34646 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34647 | choke me | |
34648 | #else | |
e6cc62c6 VS |
34649 | char (*f) () = $ac_func; |
34650 | #endif | |
34651 | #ifdef __cplusplus | |
34652 | } | |
2b5f62a0 VZ |
34653 | #endif |
34654 | ||
e6cc62c6 VS |
34655 | int |
34656 | main () | |
34657 | { | |
34658 | return f != $ac_func; | |
34659 | ; | |
34660 | return 0; | |
34661 | } | |
34662 | _ACEOF | |
34663 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34664 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 34665 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
34666 | ac_status=$? |
34667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34668 | (exit $ac_status); } && | |
789c5f4a | 34669 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
34670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34671 | (eval $ac_try) 2>&5 | |
34672 | ac_status=$? | |
34673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34674 | (exit $ac_status); }; }; then | |
34675 | eval "$as_ac_var=yes" | |
34676 | else | |
34677 | echo "$as_me: failed program was:" >&5 | |
34678 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34679 | ||
34680 | eval "$as_ac_var=no" | |
34681 | fi | |
789c5f4a | 34682 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
34683 | fi |
34684 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34685 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34686 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34687 | cat >>confdefs.h <<_ACEOF | |
34688 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34689 | _ACEOF | |
2b5f62a0 | 34690 | have_cos=1 |
2b5f62a0 VZ |
34691 | fi |
34692 | done | |
34693 | ||
e6cc62c6 | 34694 | |
2b5f62a0 VZ |
34695 | for ac_func in floor |
34696 | do | |
e6cc62c6 VS |
34697 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
34698 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34699 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34700 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34701 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34702 | else | |
34703 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 34704 | #line $LINENO "configure" |
e6cc62c6 VS |
34705 | /* confdefs.h. */ |
34706 | _ACEOF | |
34707 | cat confdefs.h >>conftest.$ac_ext | |
34708 | cat >>conftest.$ac_ext <<_ACEOF | |
34709 | /* end confdefs.h. */ | |
2b5f62a0 | 34710 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
34711 | which can conflict with char $ac_func (); below. |
34712 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34713 | <limits.h> exists even on freestanding compilers. */ | |
34714 | #ifdef __STDC__ | |
34715 | # include <limits.h> | |
34716 | #else | |
34717 | # include <assert.h> | |
34718 | #endif | |
2b5f62a0 | 34719 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
34720 | #ifdef __cplusplus |
34721 | extern "C" | |
34722 | { | |
34723 | #endif | |
2b5f62a0 | 34724 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
34725 | builtin and then its argument prototype would still apply. */ |
34726 | char $ac_func (); | |
2b5f62a0 VZ |
34727 | /* The GNU C library defines this for functions which it implements |
34728 | to always fail with ENOSYS. Some functions are actually named | |
34729 | something starting with __ and the normal name is an alias. */ | |
34730 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34731 | choke me | |
34732 | #else | |
e6cc62c6 VS |
34733 | char (*f) () = $ac_func; |
34734 | #endif | |
34735 | #ifdef __cplusplus | |
34736 | } | |
2b5f62a0 VZ |
34737 | #endif |
34738 | ||
e6cc62c6 VS |
34739 | int |
34740 | main () | |
34741 | { | |
34742 | return f != $ac_func; | |
34743 | ; | |
34744 | return 0; | |
34745 | } | |
34746 | _ACEOF | |
34747 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34748 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 34749 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
34750 | ac_status=$? |
34751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34752 | (exit $ac_status); } && | |
789c5f4a | 34753 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
34754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34755 | (eval $ac_try) 2>&5 | |
34756 | ac_status=$? | |
34757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34758 | (exit $ac_status); }; }; then | |
34759 | eval "$as_ac_var=yes" | |
34760 | else | |
34761 | echo "$as_me: failed program was:" >&5 | |
34762 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34763 | ||
34764 | eval "$as_ac_var=no" | |
34765 | fi | |
789c5f4a | 34766 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
34767 | fi |
34768 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34769 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34770 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34771 | cat >>confdefs.h <<_ACEOF | |
34772 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34773 | _ACEOF | |
2b5f62a0 | 34774 | have_floor=1 |
2b5f62a0 VZ |
34775 | fi |
34776 | done | |
34777 | ||
e6cc62c6 VS |
34778 | echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5 |
34779 | echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6 | |
2b5f62a0 | 34780 | if test "$have_cos" = 1 -a "$have_floor" = 1; then |
e6cc62c6 VS |
34781 | echo "$as_me:$LINENO: result: yes" >&5 |
34782 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 | 34783 | else |
e6cc62c6 VS |
34784 | echo "$as_me:$LINENO: result: no" >&5 |
34785 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
34786 | LIBS="$LIBS -lm" |
34787 | # use different functions to avoid configure caching | |
34788 | have_sin=0 | |
34789 | have_ceil=0 | |
e6cc62c6 VS |
34790 | |
34791 | for ac_func in sin | |
2b5f62a0 | 34792 | do |
e6cc62c6 VS |
34793 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
34794 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34795 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34796 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34797 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34798 | else | |
34799 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 34800 | #line $LINENO "configure" |
e6cc62c6 VS |
34801 | /* confdefs.h. */ |
34802 | _ACEOF | |
34803 | cat confdefs.h >>conftest.$ac_ext | |
34804 | cat >>conftest.$ac_ext <<_ACEOF | |
34805 | /* end confdefs.h. */ | |
2b5f62a0 | 34806 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
34807 | which can conflict with char $ac_func (); below. |
34808 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34809 | <limits.h> exists even on freestanding compilers. */ | |
34810 | #ifdef __STDC__ | |
34811 | # include <limits.h> | |
34812 | #else | |
34813 | # include <assert.h> | |
34814 | #endif | |
2b5f62a0 | 34815 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
34816 | #ifdef __cplusplus |
34817 | extern "C" | |
34818 | { | |
34819 | #endif | |
2b5f62a0 | 34820 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
34821 | builtin and then its argument prototype would still apply. */ |
34822 | char $ac_func (); | |
2b5f62a0 VZ |
34823 | /* The GNU C library defines this for functions which it implements |
34824 | to always fail with ENOSYS. Some functions are actually named | |
34825 | something starting with __ and the normal name is an alias. */ | |
34826 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34827 | choke me | |
34828 | #else | |
e6cc62c6 VS |
34829 | char (*f) () = $ac_func; |
34830 | #endif | |
34831 | #ifdef __cplusplus | |
34832 | } | |
2b5f62a0 VZ |
34833 | #endif |
34834 | ||
e6cc62c6 VS |
34835 | int |
34836 | main () | |
34837 | { | |
34838 | return f != $ac_func; | |
34839 | ; | |
34840 | return 0; | |
34841 | } | |
34842 | _ACEOF | |
34843 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34844 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 34845 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
34846 | ac_status=$? |
34847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34848 | (exit $ac_status); } && | |
789c5f4a | 34849 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
34850 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34851 | (eval $ac_try) 2>&5 | |
34852 | ac_status=$? | |
34853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34854 | (exit $ac_status); }; }; then | |
34855 | eval "$as_ac_var=yes" | |
34856 | else | |
34857 | echo "$as_me: failed program was:" >&5 | |
34858 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34859 | ||
34860 | eval "$as_ac_var=no" | |
34861 | fi | |
789c5f4a | 34862 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
34863 | fi |
34864 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34865 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34866 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34867 | cat >>confdefs.h <<_ACEOF | |
34868 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34869 | _ACEOF | |
2b5f62a0 | 34870 | have_sin=1 |
2b5f62a0 VZ |
34871 | fi |
34872 | done | |
34873 | ||
e6cc62c6 VS |
34874 | |
34875 | for ac_func in ceil | |
2b5f62a0 | 34876 | do |
e6cc62c6 VS |
34877 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
34878 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34879 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34880 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34881 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34882 | else | |
34883 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 34884 | #line $LINENO "configure" |
e6cc62c6 VS |
34885 | /* confdefs.h. */ |
34886 | _ACEOF | |
34887 | cat confdefs.h >>conftest.$ac_ext | |
34888 | cat >>conftest.$ac_ext <<_ACEOF | |
34889 | /* end confdefs.h. */ | |
2b5f62a0 | 34890 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
34891 | which can conflict with char $ac_func (); below. |
34892 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34893 | <limits.h> exists even on freestanding compilers. */ | |
34894 | #ifdef __STDC__ | |
34895 | # include <limits.h> | |
34896 | #else | |
34897 | # include <assert.h> | |
34898 | #endif | |
2b5f62a0 | 34899 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
34900 | #ifdef __cplusplus |
34901 | extern "C" | |
34902 | { | |
34903 | #endif | |
2b5f62a0 | 34904 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
34905 | builtin and then its argument prototype would still apply. */ |
34906 | char $ac_func (); | |
2b5f62a0 VZ |
34907 | /* The GNU C library defines this for functions which it implements |
34908 | to always fail with ENOSYS. Some functions are actually named | |
34909 | something starting with __ and the normal name is an alias. */ | |
34910 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34911 | choke me | |
34912 | #else | |
e6cc62c6 VS |
34913 | char (*f) () = $ac_func; |
34914 | #endif | |
34915 | #ifdef __cplusplus | |
34916 | } | |
2b5f62a0 VZ |
34917 | #endif |
34918 | ||
e6cc62c6 VS |
34919 | int |
34920 | main () | |
34921 | { | |
34922 | return f != $ac_func; | |
34923 | ; | |
34924 | return 0; | |
34925 | } | |
34926 | _ACEOF | |
34927 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34928 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
789c5f4a | 34929 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
34930 | ac_status=$? |
34931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34932 | (exit $ac_status); } && | |
789c5f4a | 34933 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
34934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34935 | (eval $ac_try) 2>&5 | |
34936 | ac_status=$? | |
34937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34938 | (exit $ac_status); }; }; then | |
34939 | eval "$as_ac_var=yes" | |
34940 | else | |
34941 | echo "$as_me: failed program was:" >&5 | |
34942 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34943 | ||
34944 | eval "$as_ac_var=no" | |
34945 | fi | |
789c5f4a | 34946 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
34947 | fi |
34948 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34949 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34950 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34951 | cat >>confdefs.h <<_ACEOF | |
34952 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34953 | _ACEOF | |
2b5f62a0 | 34954 | have_ceil=1 |
2b5f62a0 VZ |
34955 | fi |
34956 | done | |
34957 | ||
e6cc62c6 VS |
34958 | echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5 |
34959 | echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6 | |
2b5f62a0 | 34960 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then |
e6cc62c6 VS |
34961 | echo "$as_me:$LINENO: result: yes" >&5 |
34962 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 | 34963 | else |
e6cc62c6 VS |
34964 | echo "$as_me:$LINENO: result: no" >&5 |
34965 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
34966 | # not sure we should warn the user, crash, etc. |
34967 | fi | |
34968 | fi | |
8284b0c5 MB |
34969 | |
34970 | if test "$wxUSE_GUI" = "yes"; then | |
34971 | ||
e6cc62c6 | 34972 | |
8284b0c5 MB |
34973 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \ |
34974 | drawing dynamic erase event exec font image \ | |
1dd02ac0 | 34975 | minimal propsize rotate shaped widgets render" |
b625909c VS |
34976 | |
34977 | if test "$wxUSE_MONOLITHIC" != "yes"; then | |
34978 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console" | |
34979 | fi | |
8284b0c5 MB |
34980 | else |
34981 | SAMPLES_SUBDIRS="console" | |
34982 | fi | |
34983 | ||
34984 | ||
e6cc62c6 | 34985 | INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \ |
eea650d8 | 34986 | -I\${top_srcdir}/include $TOOLKIT_INCLUDE" |
8284b0c5 | 34987 | |
fddeb06b VS |
34988 | if test "$GXX" = yes ; then |
34989 | CXXWARNINGS="-Wall" | |
34990 | fi | |
34991 | ||
34992 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE" | |
34993 | ||
95318f7d | 34994 | CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'` |
fddeb06b VS |
34995 | CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` |
34996 | CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
c74dc163 VS |
34997 | |
34998 | ||
fddeb06b | 34999 | LIBS=`echo $LIBS | sed 's/ \+/ /g'` |
c74dc163 | 35000 | EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS" |
672abd7a | 35001 | EXTRALIBS_XML="$EXPAT_LINK" |
3527f29c | 35002 | EXTRALIBS_HTML="$MSPACK_LINK" |
bb41dcbe | 35003 | EXTRALIBS_ODBC="$ODBC_LINK" |
c74dc163 VS |
35004 | if test "$wxUSE_GUI" = "yes"; then |
35005 | EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'` | |
35006 | fi | |
34b08d2c VS |
35007 | if test "$wxUSE_OPENGL" = "yes"; then |
35008 | EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS" | |
35009 | fi | |
fddeb06b VS |
35010 | |
35011 | LDFLAGS="$LDFLAGS $PROFILE" | |
35012 | ||
8284b0c5 MB |
35013 | if test "$wxUSE_GTK" = 1; then |
35014 | WXCONFIG_INCLUDE= | |
35015 | else | |
35016 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
35017 | fi | |
35018 | ||
67c13b6c VS |
35019 | WXCONFIG_EXTRALIBS="$LIBS" |
35020 | ||
35021 | if test "$wxUSE_REGEX" = "builtin" ; then | |
35022 | wxconfig_3rdparty="$wxconfig_3rdparty regex" | |
35023 | fi | |
35024 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
35025 | wxconfig_3rdparty="$wxconfig_3rdparty expat" | |
35026 | fi | |
35027 | if test "$wxUSE_ODBC" = "builtin" ; then | |
35028 | wxconfig_3rdparty="$wxconfig_3rdparty odbc" | |
35029 | fi | |
35030 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
35031 | wxconfig_3rdparty="$wxconfig_3rdparty tiff" | |
35032 | fi | |
35033 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
35034 | wxconfig_3rdparty="$wxconfig_3rdparty jpeg" | |
35035 | fi | |
35036 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
35037 | wxconfig_3rdparty="$wxconfig_3rdparty png" | |
35038 | fi | |
35039 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
35040 | wxconfig_3rdparty="$wxconfig_3rdparty zlib" | |
35041 | fi | |
bb41dcbe VS |
35042 | if test "$wxUSE_ODBC" = "builtin" ; then |
35043 | wxconfig_3rdparty="$wxconfig_3rdparty odbc" | |
35044 | fi | |
67c13b6c VS |
35045 | |
35046 | for i in $wxconfig_3rdparty ; do | |
35047 | WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}" | |
35048 | done | |
35049 | ||
35050 | ||
fe0895cf VS |
35051 | if test "x$wxUSE_UNIVERSAL" = "xyes" ; then |
35052 | WXUNIV=1 | |
35053 | else | |
35054 | WXUNIV=0 | |
8284b0c5 MB |
35055 | fi |
35056 | ||
8284b0c5 MB |
35057 | |
35058 | ||
35059 | ||
35060 | ||
35061 | ||
35062 | ||
35063 | ||
672abd7a | 35064 | |
9747f85d VS |
35065 | if test $wxUSE_MONOLITHIC = "yes" ; then |
35066 | MONOLITHIC=1 | |
35067 | else | |
35068 | MONOLITHIC=0 | |
35069 | fi | |
8284b0c5 | 35070 | |
f93ca9fd VS |
35071 | if test $wxUSE_PLUGINS = "yes" ; then |
35072 | USE_PLUGINS=1 | |
35073 | else | |
35074 | USE_PLUGINS=0 | |
35075 | fi | |
35076 | ||
bb41dcbe VS |
35077 | if test $wxUSE_ODBC != "no" ; then |
35078 | USE_ODBC=1 | |
35079 | else | |
35080 | USE_ODBC=0 | |
35081 | fi | |
35082 | ||
029b47ad VS |
35083 | if test $wxUSE_OFFICIAL_BUILD = "yes" ; then |
35084 | OFFICIAL_BUILD=1 | |
35085 | else | |
35086 | OFFICIAL_BUILD=0 | |
35087 | fi | |
35088 | ||
8ee2dd05 VS |
35089 | |
35090 | ||
35091 | ||
8284b0c5 MB |
35092 | |
35093 | ||
35094 | ||
35095 | ||
35096 | ||
35097 | ||
c74dc163 | 35098 | |
34b08d2c | 35099 | |
672abd7a | 35100 | |
cf615ebb | 35101 | |
6c67131a VS |
35102 | |
35103 | ||
bb41dcbe | 35104 | |
f93ca9fd VS |
35105 | |
35106 | ||
35107 | ||
3527f29c | 35108 | |
89fe663f | 35109 | TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"` |
8284b0c5 MB |
35110 | |
35111 | ||
35112 | ||
35113 | ||
35114 | ||
ea66c762 | 35115 | |
0f1bc9c2 | 35116 | |
f95e4495 VS |
35117 | if test "x$BAKEFILE_HOST" = "x"; then |
35118 | BAKEFILE_HOST="${host}" | |
35119 | fi | |
35120 | ||
fe0895cf | 35121 | if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then |
e6cc62c6 VS |
35122 | |
35123 | if test -n "$ac_tool_prefix"; then | |
35124 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
35125 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
35126 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
35127 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
35128 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
35129 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 35130 | else |
fe0895cf VS |
35131 | if test -n "$RANLIB"; then |
35132 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
10f2d63a | 35133 | else |
e6cc62c6 VS |
35134 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
35135 | for as_dir in $PATH | |
35136 | do | |
35137 | IFS=$as_save_IFS | |
35138 | test -z "$as_dir" && as_dir=. | |
35139 | for ac_exec_ext in '' $ac_executable_extensions; do | |
35140 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
35141 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
35142 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
35143 | break 2 | |
35144 | fi | |
35145 | done | |
35146 | done | |
35147 | ||
10f2d63a | 35148 | fi |
10f2d63a | 35149 | fi |
e6cc62c6 | 35150 | RANLIB=$ac_cv_prog_RANLIB |
fe0895cf | 35151 | if test -n "$RANLIB"; then |
e6cc62c6 VS |
35152 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
35153 | echo "${ECHO_T}$RANLIB" >&6 | |
35154 | else | |
35155 | echo "$as_me:$LINENO: result: no" >&5 | |
35156 | echo "${ECHO_T}no" >&6 | |
35157 | fi | |
35158 | ||
35159 | fi | |
35160 | if test -z "$ac_cv_prog_RANLIB"; then | |
35161 | ac_ct_RANLIB=$RANLIB | |
35162 | # Extract the first word of "ranlib", so it can be a program name with args. | |
35163 | set dummy ranlib; ac_word=$2 | |
35164 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
35165 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
35166 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
35167 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35168 | else | |
35169 | if test -n "$ac_ct_RANLIB"; then | |
35170 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
35171 | else | |
35172 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
35173 | for as_dir in $PATH | |
35174 | do | |
35175 | IFS=$as_save_IFS | |
35176 | test -z "$as_dir" && as_dir=. | |
35177 | for ac_exec_ext in '' $ac_executable_extensions; do | |
35178 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
35179 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
35180 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
35181 | break 2 | |
35182 | fi | |
35183 | done | |
35184 | done | |
35185 | ||
35186 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
35187 | fi | |
35188 | fi | |
35189 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
35190 | if test -n "$ac_ct_RANLIB"; then | |
35191 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
35192 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
10f2d63a | 35193 | else |
e6cc62c6 VS |
35194 | echo "$as_me:$LINENO: result: no" >&5 |
35195 | echo "${ECHO_T}no" >&6 | |
35196 | fi | |
35197 | ||
35198 | RANLIB=$ac_ct_RANLIB | |
35199 | else | |
35200 | RANLIB="$ac_cv_prog_RANLIB" | |
00cf1208 | 35201 | fi |
665bbe97 | 35202 | |
fe0895cf VS |
35203 | # Find a good install program. We prefer a C program (faster), |
35204 | # so one script is as good as another. But avoid the broken or | |
35205 | # incompatible versions: | |
35206 | # SysV /etc/install, /usr/sbin/install | |
35207 | # SunOS /usr/etc/install | |
35208 | # IRIX /sbin/install | |
35209 | # AIX /bin/install | |
e6cc62c6 | 35210 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
fe0895cf VS |
35211 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
35212 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
35213 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
35214 | # ./install, which can be erroneously created by make from ./install.sh. | |
e6cc62c6 VS |
35215 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
35216 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
fe0895cf | 35217 | if test -z "$INSTALL"; then |
e6cc62c6 VS |
35218 | if test "${ac_cv_path_install+set}" = set; then |
35219 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35220 | else | |
35221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
35222 | for as_dir in $PATH | |
35223 | do | |
35224 | IFS=$as_save_IFS | |
35225 | test -z "$as_dir" && as_dir=. | |
35226 | # Account for people who put trailing slashes in PATH elements. | |
35227 | case $as_dir/ in | |
35228 | ./ | .// | /cC/* | \ | |
35229 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
35230 | /usr/ucb/* ) ;; | |
35231 | *) | |
35232 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
35233 | # Don't use installbsd from OSF since it installs stuff as root | |
35234 | # by default. | |
35235 | for ac_prog in ginstall scoinst install; do | |
35236 | for ac_exec_ext in '' $ac_executable_extensions; do | |
789c5f4a VZ |
35237 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
35238 | if test $ac_prog = install && | |
35239 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
35240 | # AIX install. It has an incompatible calling convention. | |
35241 | : | |
35242 | elif test $ac_prog = install && | |
35243 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
35244 | # program-specific install script used by HP pwplus--don't use. | |
35245 | : | |
35246 | else | |
35247 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
35248 | break 3 | |
35249 | fi | |
35250 | fi | |
fe0895cf | 35251 | done |
e6cc62c6 VS |
35252 | done |
35253 | ;; | |
35254 | esac | |
35255 | done | |
35256 | ||
fe0895cf VS |
35257 | |
35258 | fi | |
35259 | if test "${ac_cv_path_install+set}" = set; then | |
e6cc62c6 | 35260 | INSTALL=$ac_cv_path_install |
fe0895cf VS |
35261 | else |
35262 | # As a last resort, use the slow shell script. We don't cache a | |
35263 | # path for INSTALL within a source directory, because that will | |
35264 | # break other packages using the cache if that directory is | |
35265 | # removed, or if the path is relative. | |
e6cc62c6 | 35266 | INSTALL=$ac_install_sh |
fe0895cf VS |
35267 | fi |
35268 | fi | |
e6cc62c6 VS |
35269 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
35270 | echo "${ECHO_T}$INSTALL" >&6 | |
fe0895cf VS |
35271 | |
35272 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
35273 | # It thinks the first close brace ends the variable substitution. | |
35274 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
35275 | ||
e6cc62c6 | 35276 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
fe0895cf VS |
35277 | |
35278 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
35279 | ||
e6cc62c6 VS |
35280 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
35281 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
35282 | LN_S=$as_ln_s | |
35283 | if test "$LN_S" = "ln -s"; then | |
35284 | echo "$as_me:$LINENO: result: yes" >&5 | |
35285 | echo "${ECHO_T}yes" >&6 | |
fe0895cf | 35286 | else |
e6cc62c6 VS |
35287 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
35288 | echo "${ECHO_T}no, using $LN_S" >&6 | |
fe0895cf VS |
35289 | fi |
35290 | ||
35291 | ||
e6cc62c6 VS |
35292 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
35293 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
789c5f4a | 35294 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` |
e6cc62c6 VS |
35295 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
35296 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf | 35297 | else |
e6cc62c6 | 35298 | cat >conftest.make <<\_ACEOF |
fe0895cf | 35299 | all: |
e6cc62c6 VS |
35300 | @echo 'ac_maketemp="$(MAKE)"' |
35301 | _ACEOF | |
fe0895cf | 35302 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
e6cc62c6 | 35303 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
fe0895cf VS |
35304 | if test -n "$ac_maketemp"; then |
35305 | eval ac_cv_prog_make_${ac_make}_set=yes | |
35306 | else | |
35307 | eval ac_cv_prog_make_${ac_make}_set=no | |
35308 | fi | |
e6cc62c6 | 35309 | rm -f conftest.make |
fe0895cf VS |
35310 | fi |
35311 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
e6cc62c6 VS |
35312 | echo "$as_me:$LINENO: result: yes" >&5 |
35313 | echo "${ECHO_T}yes" >&6 | |
fe0895cf VS |
35314 | SET_MAKE= |
35315 | else | |
e6cc62c6 VS |
35316 | echo "$as_me:$LINENO: result: no" >&5 |
35317 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
35318 | SET_MAKE="MAKE=${MAKE-make}" |
35319 | fi | |
35320 | ||
e6cc62c6 VS |
35321 | |
35322 | ||
874d12cf VS |
35323 | if test -n "$ac_tool_prefix"; then |
35324 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
35325 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
e6cc62c6 VS |
35326 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
35327 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
35328 | if test "${ac_cv_prog_AR+set}" = set; then | |
35329 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
35330 | else |
35331 | if test -n "$AR"; then | |
35332 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
35333 | else | |
e6cc62c6 VS |
35334 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
35335 | for as_dir in $PATH | |
35336 | do | |
35337 | IFS=$as_save_IFS | |
35338 | test -z "$as_dir" && as_dir=. | |
35339 | for ac_exec_ext in '' $ac_executable_extensions; do | |
35340 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
874d12cf | 35341 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
e6cc62c6 VS |
35342 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
35343 | break 2 | |
35344 | fi | |
35345 | done | |
35346 | done | |
35347 | ||
fe0895cf VS |
35348 | fi |
35349 | fi | |
e6cc62c6 | 35350 | AR=$ac_cv_prog_AR |
fe0895cf | 35351 | if test -n "$AR"; then |
e6cc62c6 VS |
35352 | echo "$as_me:$LINENO: result: $AR" >&5 |
35353 | echo "${ECHO_T}$AR" >&6 | |
fe0895cf | 35354 | else |
e6cc62c6 VS |
35355 | echo "$as_me:$LINENO: result: no" >&5 |
35356 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
35357 | fi |
35358 | ||
874d12cf VS |
35359 | fi |
35360 | if test -z "$ac_cv_prog_AR"; then | |
35361 | ac_ct_AR=$AR | |
35362 | # Extract the first word of "ar", so it can be a program name with args. | |
35363 | set dummy ar; ac_word=$2 | |
35364 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
35365 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
35366 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
35367 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35368 | else | |
35369 | if test -n "$ac_ct_AR"; then | |
35370 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
35371 | else | |
35372 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
35373 | for as_dir in $PATH | |
35374 | do | |
35375 | IFS=$as_save_IFS | |
35376 | test -z "$as_dir" && as_dir=. | |
35377 | for ac_exec_ext in '' $ac_executable_extensions; do | |
35378 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
35379 | ac_cv_prog_ac_ct_AR="ar" | |
35380 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
35381 | break 2 | |
35382 | fi | |
35383 | done | |
35384 | done | |
35385 | ||
35386 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" | |
35387 | fi | |
35388 | fi | |
35389 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
35390 | if test -n "$ac_ct_AR"; then | |
35391 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
35392 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
35393 | else | |
35394 | echo "$as_me:$LINENO: result: no" >&5 | |
35395 | echo "${ECHO_T}no" >&6 | |
35396 | fi | |
35397 | ||
35398 | AR=$ac_ct_AR | |
35399 | else | |
35400 | AR="$ac_cv_prog_AR" | |
35401 | fi | |
35402 | ||
35403 | if test -n "$ac_tool_prefix"; then | |
35404 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
35405 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
e6cc62c6 VS |
35406 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
35407 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
35408 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
35409 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
35410 | else |
35411 | if test -n "$STRIP"; then | |
35412 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
35413 | else | |
e6cc62c6 VS |
35414 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
35415 | for as_dir in $PATH | |
35416 | do | |
35417 | IFS=$as_save_IFS | |
35418 | test -z "$as_dir" && as_dir=. | |
35419 | for ac_exec_ext in '' $ac_executable_extensions; do | |
35420 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
874d12cf | 35421 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
e6cc62c6 VS |
35422 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
35423 | break 2 | |
35424 | fi | |
35425 | done | |
35426 | done | |
35427 | ||
fe0895cf VS |
35428 | fi |
35429 | fi | |
e6cc62c6 | 35430 | STRIP=$ac_cv_prog_STRIP |
fe0895cf | 35431 | if test -n "$STRIP"; then |
e6cc62c6 VS |
35432 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
35433 | echo "${ECHO_T}$STRIP" >&6 | |
fe0895cf | 35434 | else |
e6cc62c6 VS |
35435 | echo "$as_me:$LINENO: result: no" >&5 |
35436 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
35437 | fi |
35438 | ||
874d12cf VS |
35439 | fi |
35440 | if test -z "$ac_cv_prog_STRIP"; then | |
35441 | ac_ct_STRIP=$STRIP | |
35442 | # Extract the first word of "strip", so it can be a program name with args. | |
35443 | set dummy strip; ac_word=$2 | |
35444 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
35445 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
35446 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
35447 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35448 | else | |
35449 | if test -n "$ac_ct_STRIP"; then | |
35450 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
35451 | else | |
35452 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
35453 | for as_dir in $PATH | |
35454 | do | |
35455 | IFS=$as_save_IFS | |
35456 | test -z "$as_dir" && as_dir=. | |
35457 | for ac_exec_ext in '' $ac_executable_extensions; do | |
35458 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
35459 | ac_cv_prog_ac_ct_STRIP="strip" | |
35460 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
35461 | break 2 | |
35462 | fi | |
35463 | done | |
35464 | done | |
35465 | ||
35466 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
35467 | fi | |
35468 | fi | |
35469 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
35470 | if test -n "$ac_ct_STRIP"; then | |
35471 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
35472 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
35473 | else | |
35474 | echo "$as_me:$LINENO: result: no" >&5 | |
35475 | echo "${ECHO_T}no" >&6 | |
35476 | fi | |
35477 | ||
35478 | STRIP=$ac_ct_STRIP | |
35479 | else | |
35480 | STRIP="$ac_cv_prog_STRIP" | |
35481 | fi | |
35482 | ||
35483 | if test -n "$ac_tool_prefix"; then | |
35484 | # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. | |
35485 | set dummy ${ac_tool_prefix}nm; ac_word=$2 | |
35486 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
35487 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
35488 | if test "${ac_cv_prog_NM+set}" = set; then | |
35489 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35490 | else | |
35491 | if test -n "$NM"; then | |
35492 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
35493 | else | |
35494 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
35495 | for as_dir in $PATH | |
35496 | do | |
35497 | IFS=$as_save_IFS | |
35498 | test -z "$as_dir" && as_dir=. | |
35499 | for ac_exec_ext in '' $ac_executable_extensions; do | |
35500 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
35501 | ac_cv_prog_NM="${ac_tool_prefix}nm" | |
35502 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
35503 | break 2 | |
35504 | fi | |
35505 | done | |
35506 | done | |
35507 | ||
35508 | fi | |
35509 | fi | |
35510 | NM=$ac_cv_prog_NM | |
35511 | if test -n "$NM"; then | |
35512 | echo "$as_me:$LINENO: result: $NM" >&5 | |
35513 | echo "${ECHO_T}$NM" >&6 | |
35514 | else | |
35515 | echo "$as_me:$LINENO: result: no" >&5 | |
35516 | echo "${ECHO_T}no" >&6 | |
35517 | fi | |
35518 | ||
35519 | fi | |
35520 | if test -z "$ac_cv_prog_NM"; then | |
35521 | ac_ct_NM=$NM | |
35522 | # Extract the first word of "nm", so it can be a program name with args. | |
35523 | set dummy nm; ac_word=$2 | |
35524 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
35525 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
35526 | if test "${ac_cv_prog_ac_ct_NM+set}" = set; then | |
35527 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35528 | else | |
35529 | if test -n "$ac_ct_NM"; then | |
35530 | ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. | |
35531 | else | |
35532 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
35533 | for as_dir in $PATH | |
35534 | do | |
35535 | IFS=$as_save_IFS | |
35536 | test -z "$as_dir" && as_dir=. | |
35537 | for ac_exec_ext in '' $ac_executable_extensions; do | |
35538 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
35539 | ac_cv_prog_ac_ct_NM="nm" | |
35540 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
35541 | break 2 | |
35542 | fi | |
35543 | done | |
35544 | done | |
35545 | ||
35546 | test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":" | |
35547 | fi | |
35548 | fi | |
35549 | ac_ct_NM=$ac_cv_prog_ac_ct_NM | |
35550 | if test -n "$ac_ct_NM"; then | |
35551 | echo "$as_me:$LINENO: result: $ac_ct_NM" >&5 | |
35552 | echo "${ECHO_T}$ac_ct_NM" >&6 | |
35553 | else | |
35554 | echo "$as_me:$LINENO: result: no" >&5 | |
35555 | echo "${ECHO_T}no" >&6 | |
35556 | fi | |
35557 | ||
35558 | NM=$ac_ct_NM | |
35559 | else | |
35560 | NM="$ac_cv_prog_NM" | |
35561 | fi | |
35562 | ||
fe0895cf | 35563 | |
f95e4495 | 35564 | case ${BAKEFILE_HOST} in |
fe0895cf VS |
35565 | *-hp-hpux* ) |
35566 | INSTALL_DIR="mkdir" | |
35567 | ;; | |
35568 | *) INSTALL_DIR="$INSTALL -d" | |
35569 | ;; | |
35570 | esac | |
e6cc62c6 | 35571 | |
fe0895cf | 35572 | |
6b9d41a5 | 35573 | LDFLAGS_GUI= |
f95e4495 | 35574 | case ${BAKEFILE_HOST} in |
6b9d41a5 VS |
35575 | *-*-cygwin* | *-*-mingw32* ) |
35576 | LDFLAGS_GUI="-Wl,--subsystem,windows -mwindows" | |
35577 | esac | |
35578 | ||
35579 | ||
fe0895cf | 35580 | fi |
e6cc62c6 VS |
35581 | |
35582 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
35583 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
49b0a3aa | 35584 | if test "${bakefile_cv_prog_makeisgnu+set}" = set; then |
e6cc62c6 | 35585 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
fe0895cf | 35586 | else |
e6cc62c6 | 35587 | |
fe0895cf VS |
35588 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | |
35589 | egrep -s GNU > /dev/null); then | |
35590 | bakefile_cv_prog_makeisgnu="yes" | |
35591 | else | |
35592 | bakefile_cv_prog_makeisgnu="no" | |
35593 | fi | |
fe0895cf | 35594 | |
e6cc62c6 | 35595 | fi |
49b0a3aa VS |
35596 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5 |
35597 | echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6 | |
fe0895cf VS |
35598 | |
35599 | if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then | |
35600 | IF_GNU_MAKE="" | |
35601 | else | |
35602 | IF_GNU_MAKE="#" | |
35603 | fi | |
fe0895cf | 35604 | |
e6cc62c6 VS |
35605 | |
35606 | ||
fe0895cf VS |
35607 | PLATFORM_UNIX=0 |
35608 | PLATFORM_WIN32=0 | |
35609 | PLATFORM_MSDOS=0 | |
35610 | PLATFORM_MAC=0 | |
35611 | PLATFORM_MACOSX=0 | |
96c1699d | 35612 | PLATFORM_OS2=0 |
e6cc62c6 | 35613 | |
f95e4495 VS |
35614 | if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then |
35615 | case "${BAKEFILE_HOST}" in | |
35616 | *-*-cygwin* | *-*-mingw32* ) | |
35617 | PLATFORM_WIN32=1 | |
35618 | ;; | |
35619 | *-pc-msdosdjgpp ) | |
35620 | PLATFORM_MSDOS=1 | |
35621 | ;; | |
35622 | *-pc-os2_emx | *-pc-os2-emx ) | |
35623 | PLATFORM_OS2=1 | |
35624 | ;; | |
35625 | powerpc-*-darwin* ) | |
35626 | PLATFORM_MAC=1 | |
35627 | PLATFORM_MACOSX=1 | |
35628 | ;; | |
35629 | * ) | |
35630 | PLATFORM_UNIX=1 | |
35631 | ;; | |
35632 | esac | |
35633 | else | |
35634 | case "$BAKEFILE_FORCE_PLATFORM" in | |
35635 | win32 ) | |
35636 | PLATFORM_WIN32=1 | |
35637 | ;; | |
35638 | msdos ) | |
35639 | PLATFORM_MSDOS=1 | |
35640 | ;; | |
35641 | os2 ) | |
35642 | PLATFORM_OS2=1 | |
35643 | ;; | |
35644 | darwin ) | |
35645 | PLATFORM_MAC=1 | |
35646 | PLATFORM_MACOSX=1 | |
35647 | ;; | |
35648 | unix ) | |
35649 | PLATFORM_UNIX=1 | |
35650 | ;; | |
35651 | * ) | |
35652 | { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5 | |
35653 | echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;} | |
35654 | { (exit 1); exit 1; }; } | |
35655 | ;; | |
35656 | esac | |
35657 | fi | |
fe0895cf | 35658 | |
fe0895cf | 35659 | |
e6cc62c6 VS |
35660 | |
35661 | ||
35662 | ||
35663 | ||
35664 | ||
35665 | ||
96c1699d | 35666 | |
fe0895cf | 35667 | SO_SUFFIX="so" |
131f235d | 35668 | SO_SUFFIX_MODULE="so" |
fe0895cf | 35669 | EXEEXT="" |
4b1f6360 | 35670 | LIBPREFIX=lib |
fe0895cf | 35671 | DLLPREFIX=lib |
131f235d | 35672 | DLLPREFIX_MODULE= |
e6cc62c6 | 35673 | |
f95e4495 | 35674 | case "${BAKEFILE_HOST}" in |
fe0895cf VS |
35675 | *-hp-hpux* ) |
35676 | SO_SUFFIX="sl" | |
131f235d | 35677 | SO_SUFFIX_MODULE="sl" |
fe0895cf VS |
35678 | ;; |
35679 | *-*-aix* ) | |
35680 | SO_SUFFIX="a" | |
131f235d | 35681 | SO_SUFFIX_MODULE="a" |
fe0895cf VS |
35682 | ;; |
35683 | *-*-cygwin* | *-*-mingw32* ) | |
35684 | SO_SUFFIX="dll" | |
131f235d | 35685 | SO_SUFFIX_MODULE="dll" |
fe0895cf VS |
35686 | EXEEXT=".exe" |
35687 | DLLPREFIX="" | |
35688 | ;; | |
4b1f6360 VS |
35689 | *-pc-msdosdjgpp ) |
35690 | EXEEXT=".exe" | |
35691 | DLLPREFIX="" | |
35692 | ;; | |
35693 | *-pc-os2_emx | *-pc-os2-emx ) | |
fe0895cf VS |
35694 | EXEEXT=".exe" |
35695 | DLLPREFIX="" | |
4b1f6360 | 35696 | LIBPREFIX="" |
fe0895cf VS |
35697 | ;; |
35698 | powerpc-*-darwin* ) | |
35699 | SO_SUFFIX="dylib" | |
131f235d | 35700 | SO_SUFFIX_MODULE="bundle" |
fe0895cf VS |
35701 | ;; |
35702 | esac | |
35703 | ||
fe0895cf | 35704 | |
e6cc62c6 VS |
35705 | |
35706 | ||
35707 | ||
35708 | ||
131f235d VS |
35709 | |
35710 | ||
4b1f6360 | 35711 | |
fe0895cf VS |
35712 | SHARED_LD_CC="\$(CC) -shared -o" |
35713 | SHARED_LD_CXX="\$(CXX) -shared -o" | |
35714 | ||
35715 | if test "x$GCC" = "xyes"; then | |
35716 | PIC_FLAG="-fPIC" | |
35717 | fi | |
35718 | ||
f95e4495 | 35719 | case "${BAKEFILE_HOST}" in |
fe0895cf VS |
35720 | *-hp-hpux* ) |
35721 | if test "x$GCC" = "xyes"; then | |
35722 | SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o" | |
35723 | SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o" | |
35724 | else | |
35725 | LDFLAGS="$LDFLAGS -L/usr/lib" | |
35726 | ||
35727 | SHARED_LD_CC="${CC} -b -o" | |
35728 | SHARED_LD_CXX="${CXX} -b -o" | |
35729 | PIC_FLAG="+Z" | |
35730 | fi | |
35731 | ;; | |
35732 | ||
35733 | *-*-linux* ) | |
35734 | if test "x$GCC" != "xyes"; then | |
e6cc62c6 VS |
35735 | echo "$as_me:$LINENO: checking for Intel compiler" >&5 |
35736 | echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6 | |
35737 | if test "${bakefile_cv_prog_icc+set}" = set; then | |
35738 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf | 35739 | else |
fe0895cf | 35740 | |
e6cc62c6 | 35741 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 35742 | #line $LINENO "configure" |
e6cc62c6 VS |
35743 | /* confdefs.h. */ |
35744 | _ACEOF | |
35745 | cat confdefs.h >>conftest.$ac_ext | |
35746 | cat >>conftest.$ac_ext <<_ACEOF | |
35747 | /* end confdefs.h. */ | |
35748 | ||
35749 | int | |
35750 | main () | |
35751 | { | |
fe0895cf VS |
35752 | |
35753 | #ifndef __INTEL_COMPILER | |
35754 | #error Not icc | |
35755 | #endif | |
e6cc62c6 VS |
35756 | |
35757 | ; | |
35758 | return 0; | |
35759 | } | |
35760 | _ACEOF | |
35761 | rm -f conftest.$ac_objext | |
35762 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 35763 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
35764 | ac_status=$? |
35765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35766 | (exit $ac_status); } && | |
789c5f4a | 35767 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
35768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35769 | (eval $ac_try) 2>&5 | |
35770 | ac_status=$? | |
35771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35772 | (exit $ac_status); }; }; then | |
fe0895cf VS |
35773 | bakefile_cv_prog_icc=yes |
35774 | else | |
e6cc62c6 VS |
35775 | echo "$as_me: failed program was:" >&5 |
35776 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35777 | ||
35778 | bakefile_cv_prog_icc=no | |
35779 | ||
fe0895cf | 35780 | fi |
789c5f4a | 35781 | rm -f conftest.$ac_objext conftest.$ac_ext |
fe0895cf | 35782 | |
e6cc62c6 VS |
35783 | fi |
35784 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5 | |
35785 | echo "${ECHO_T}$bakefile_cv_prog_icc" >&6 | |
fe0895cf VS |
35786 | if test "$bakefile_cv_prog_icc" = "yes"; then |
35787 | PIC_FLAG="-KPIC" | |
35788 | fi | |
35789 | fi | |
35790 | ;; | |
35791 | ||
35792 | *-*-solaris2* ) | |
35793 | if test "x$GCC" != xyes ; then | |
35794 | SHARED_LD_CC="${CC} -G -o" | |
35795 | SHARED_LD_CXX="${CXX} -G -o" | |
35796 | PIC_FLAG="-KPIC" | |
35797 | fi | |
35798 | ;; | |
35799 | ||
35800 | *-*-darwin* ) | |
35801 | CFLAGS="$CFLAGS -fno-common" | |
35802 | CXXFLAGS="$CXXFLAGS -fno-common" | |
e6cc62c6 VS |
35803 | |
35804 | ||
2a879853 | 35805 | echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5 |
43948499 RD |
35806 | echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6 |
35807 | if test "${wx_cv_gcc31+set}" = set; then | |
35808 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35809 | else | |
35810 | ||
2a879853 | 35811 | cat >conftest.$ac_ext <<_ACEOF |
789c5f4a | 35812 | #line $LINENO "configure" |
43948499 RD |
35813 | /* confdefs.h. */ |
35814 | _ACEOF | |
35815 | cat confdefs.h >>conftest.$ac_ext | |
35816 | cat >>conftest.$ac_ext <<_ACEOF | |
35817 | /* end confdefs.h. */ | |
35818 | ||
35819 | int | |
35820 | main () | |
35821 | { | |
35822 | ||
2a879853 VS |
35823 | #if (__GNUC__ < 3) || \ |
35824 | ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1)) | |
35825 | #error old gcc | |
35826 | #endif | |
43948499 RD |
35827 | |
35828 | ; | |
35829 | return 0; | |
35830 | } | |
35831 | _ACEOF | |
35832 | rm -f conftest.$ac_objext | |
35833 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 35834 | (eval $ac_compile) 2>&5 |
43948499 RD |
35835 | ac_status=$? |
35836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35837 | (exit $ac_status); } && | |
789c5f4a | 35838 | { ac_try='test -s conftest.$ac_objext' |
43948499 RD |
35839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35840 | (eval $ac_try) 2>&5 | |
35841 | ac_status=$? | |
35842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35843 | (exit $ac_status); }; }; then | |
35844 | ||
2a879853 | 35845 | wx_cv_gcc31=yes |
43948499 RD |
35846 | |
35847 | else | |
35848 | echo "$as_me: failed program was:" >&5 | |
35849 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35850 | ||
35851 | ||
2a879853 | 35852 | wx_cv_gcc31=no |
43948499 RD |
35853 | |
35854 | ||
35855 | fi | |
789c5f4a | 35856 | rm -f conftest.$ac_objext conftest.$ac_ext |
43948499 RD |
35857 | |
35858 | fi | |
35859 | echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5 | |
35860 | echo "${ECHO_T}$wx_cv_gcc31" >&6 | |
2a879853 | 35861 | if test "$wx_cv_gcc31" = "no"; then |
43948499 | 35862 | cat <<EOF >shared-ld-sh |
fe0895cf VS |
35863 | #!/bin/sh |
35864 | #----------------------------------------------------------------------------- | |
35865 | #-- Name: distrib/mac/shared-ld-sh | |
35866 | #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X | |
35867 | #-- Author: Gilles Depeyrot | |
35868 | #-- Copyright: (c) 2002 Gilles Depeyrot | |
35869 | #-- Licence: any use permitted | |
35870 | #----------------------------------------------------------------------------- | |
35871 | ||
35872 | verbose=0 | |
35873 | args="" | |
35874 | objects="" | |
131f235d | 35875 | linking_flag="-dynamiclib" |
fe0895cf VS |
35876 | |
35877 | while test \${#} -gt 0; do | |
35878 | case \${1} in | |
35879 | ||
35880 | -v) | |
35881 | verbose=1 | |
35882 | ;; | |
35883 | ||
35884 | -o|-compatibility_version|-current_version|-framework|-undefined|-install_name) | |
35885 | # collect these options and values | |
35886 | args="\${args} \${1} \${2}" | |
35887 | shift | |
35888 | ;; | |
35889 | ||
74500461 | 35890 | -l*|-L*|-flat_namespace|-headerpad_max_install_names) |
fe0895cf VS |
35891 | # collect these options |
35892 | args="\${args} \${1}" | |
35893 | ;; | |
35894 | ||
131f235d VS |
35895 | -dynamiclib|-bundle) |
35896 | linking_flag="\${1}" | |
fe0895cf VS |
35897 | ;; |
35898 | ||
35899 | -*) | |
35900 | echo "shared-ld: unhandled option '\${1}'" | |
35901 | exit 1 | |
35902 | ;; | |
35903 | ||
4d264332 | 35904 | *.o | *.a | *.dylib) |
fe0895cf VS |
35905 | # collect object files |
35906 | objects="\${objects} \${1}" | |
35907 | ;; | |
35908 | ||
35909 | *) | |
35910 | echo "shared-ld: unhandled argument '\${1}'" | |
35911 | exit 1 | |
35912 | ;; | |
35913 | ||
35914 | esac | |
35915 | shift | |
35916 | done | |
35917 | ||
35918 | # | |
35919 | # Link one module containing all the others | |
35920 | # | |
35921 | if test \${verbose} = 1; then | |
35922 | echo "c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o" | |
35923 | fi | |
35924 | c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o | |
35925 | status=\$? | |
35926 | if test \${status} != 0; then | |
35927 | exit \${status} | |
35928 | fi | |
35929 | ||
35930 | # | |
35931 | # Link the shared library from the single module created | |
35932 | # | |
35933 | if test \${verbose} = 1; then | |
2a879853 | 35934 | echo "cc \${linking_flag} master.\$\$.o \${args}" |
fe0895cf | 35935 | fi |
131f235d | 35936 | c++ \${linking_flag} master.\$\$.o \${args} |
fe0895cf VS |
35937 | status=\$? |
35938 | if test \${status} != 0; then | |
35939 | exit \${status} | |
35940 | fi | |
35941 | ||
35942 | # | |
35943 | # Remove intermediate module | |
35944 | # | |
35945 | rm -f master.\$\$.o | |
35946 | ||
35947 | exit 0 | |
35948 | EOF | |
43948499 | 35949 | chmod +x shared-ld-sh |
fe0895cf | 35950 | |
7f523214 VS |
35951 | SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o" |
35952 | SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o" | |
2a879853 VS |
35953 | SHARED_LD_CXX="$SHARED_LD_CC" |
35954 | SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC" | |
35955 | else | |
7f523214 VS |
35956 | SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o" |
35957 | SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o" | |
35958 | SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o" | |
35959 | SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o" | |
2a879853 VS |
35960 | fi |
35961 | ||
fe0895cf | 35962 | PIC_FLAG="-dynamic -fPIC" |
2a879853 | 35963 | ;; |
fe0895cf VS |
35964 | |
35965 | *-*-aix* ) | |
35966 | if test "x$GCC" != "xyes"; then | |
35967 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
35968 | set dummy makeC++SharedLib; ac_word=$2 | |
e6cc62c6 VS |
35969 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
35970 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
35971 | if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then | |
35972 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
35973 | else |
35974 | if test -n "$AIX_CXX_LD"; then | |
35975 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
35976 | else | |
e6cc62c6 VS |
35977 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
35978 | for as_dir in $PATH | |
35979 | do | |
35980 | IFS=$as_save_IFS | |
35981 | test -z "$as_dir" && as_dir=. | |
35982 | for ac_exec_ext in '' $ac_executable_extensions; do | |
35983 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
35984 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
35985 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
35986 | break 2 | |
35987 | fi | |
35988 | done | |
35989 | done | |
35990 | ||
fe0895cf VS |
35991 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" |
35992 | fi | |
35993 | fi | |
e6cc62c6 | 35994 | AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD |
fe0895cf | 35995 | if test -n "$AIX_CXX_LD"; then |
e6cc62c6 VS |
35996 | echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5 |
35997 | echo "${ECHO_T}$AIX_CXX_LD" >&6 | |
fe0895cf | 35998 | else |
e6cc62c6 VS |
35999 | echo "$as_me:$LINENO: result: no" >&5 |
36000 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
36001 | fi |
36002 | ||
36003 | SHARED_LD_CC="$AIX_CC_LD -p 0 -o" | |
36004 | SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o" | |
36005 | fi | |
36006 | ;; | |
36007 | ||
36008 | *-*-beos* ) | |
36009 | SHARED_LD_CC="${LD} -shared -o" | |
36010 | SHARED_LD_CXX="${LD} -shared -o" | |
36011 | ;; | |
36012 | ||
36013 | *-*-irix* ) | |
36014 | if test "x$GCC" != "xyes"; then | |
36015 | PIC_FLAG="-KPIC" | |
36016 | fi | |
36017 | ;; | |
e6cc62c6 | 36018 | |
fe0895cf VS |
36019 | *-*-cygwin* | *-*-mingw32* ) |
36020 | PIC_FLAG="" | |
36021 | ;; | |
e6cc62c6 | 36022 | |
fe0895cf VS |
36023 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ |
36024 | *-*-sunos4* | \ | |
36025 | *-*-osf* | \ | |
36026 | *-*-dgux5* | \ | |
4b1f6360 | 36027 | *-pc-os2_emx | *-pc-os2-emx | \ |
fe0895cf VS |
36028 | *-*-sysv5* ) |
36029 | ;; | |
36030 | ||
36031 | *) | |
f95e4495 VS |
36032 | { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5 |
36033 | echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;} | |
e6cc62c6 | 36034 | { (exit 1); exit 1; }; } |
fe0895cf VS |
36035 | esac |
36036 | ||
131f235d VS |
36037 | if test "x$SHARED_LD_MODULE_CC" = "x" ; then |
36038 | SHARED_LD_MODULE_CC="$SHARED_LD_CC" | |
36039 | fi | |
36040 | if test "x$SHARED_LD_MODULE_CXX" = "x" ; then | |
239394fb | 36041 | SHARED_LD_MODULE_CXX="$SHARED_LD_CXX" |
131f235d VS |
36042 | fi |
36043 | ||
36044 | ||
36045 | ||
fe0895cf | 36046 | |
e6cc62c6 VS |
36047 | |
36048 | ||
36049 | ||
36050 | ||
fe0895cf VS |
36051 | USE_SOVERSION=0 |
36052 | USE_SOVERLINUX=0 | |
36053 | USE_SOVERSOLARIS=0 | |
36054 | USE_SOSYMLINKS=0 | |
36055 | USE_MACVERSION=0 | |
36056 | SONAME_FLAG= | |
36057 | ||
f95e4495 | 36058 | case "${BAKEFILE_HOST}" in |
fe0895cf VS |
36059 | *-*-linux* ) |
36060 | SONAME_FLAG="-Wl,-soname," | |
36061 | USE_SOVERSION=1 | |
36062 | USE_SOVERLINUX=1 | |
36063 | USE_SOSYMLINKS=1 | |
36064 | ;; | |
36065 | ||
36066 | *-*-solaris2* ) | |
36067 | SONAME_FLAG="-h " | |
36068 | USE_SOVERSION=1 | |
36069 | USE_SOVERSOLARIS=1 | |
36070 | USE_SOSYMLINKS=1 | |
36071 | ;; | |
36072 | ||
36073 | *-*-darwin* ) | |
36074 | USE_MACVERSION=1 | |
36075 | USE_SOVERSION=1 | |
36076 | USE_SOSYMLINKS=1 | |
e6cc62c6 | 36077 | ;; |
fe0895cf VS |
36078 | esac |
36079 | ||
fe0895cf | 36080 | |
e6cc62c6 VS |
36081 | |
36082 | ||
36083 | ||
36084 | ||
36085 | ||
36086 | ||
36087 | ||
49b0a3aa VS |
36088 | echo "$as_me:$LINENO: checking for dependency tracking method" >&5 |
36089 | echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6 | |
36090 | DEPS_TRACKING=0 | |
36091 | ||
fe0895cf | 36092 | if test "x$GCC" = "xyes"; then |
49b0a3aa VS |
36093 | DEPSMODE=gcc |
36094 | DEPS_TRACKING=1 | |
f95e4495 | 36095 | case "${BAKEFILE_HOST}" in |
3e5c3c83 VS |
36096 | powerpc-*-darwin* ) |
36097 | DEPSFLAG_GCC="-no-cpp-precomp -MMD" | |
36098 | ;; | |
36099 | * ) | |
36100 | DEPSFLAG_GCC="-MMD" | |
36101 | ;; | |
36102 | esac | |
49b0a3aa VS |
36103 | echo "$as_me:$LINENO: result: gcc" >&5 |
36104 | echo "${ECHO_T}gcc" >&6 | |
36105 | else | |
36106 | echo "$as_me:$LINENO: result: none" >&5 | |
36107 | echo "${ECHO_T}none" >&6 | |
36108 | fi | |
36109 | ||
36110 | if test $DEPS_TRACKING = 1 ; then | |
36111 | cat <<EOF >bk-deps | |
36112 | #!/bin/sh | |
36113 | ||
45842500 VS |
36114 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf |
36115 | # script. It is used to track C/C++ files dependencies in portable way. | |
49b0a3aa VS |
36116 | # |
36117 | # Permission is given to use this file in any way. | |
36118 | ||
36119 | DEPSMODE=$DEPSMODE | |
36120 | DEPSDIR=.deps | |
3e5c3c83 | 36121 | DEPSFLAG_GCC="$DEPSFLAG_GCC" |
49b0a3aa VS |
36122 | |
36123 | mkdir -p \$DEPSDIR | |
36124 | ||
36125 | if test \$DEPSMODE = gcc ; then | |
3e5c3c83 | 36126 | \${*} \${DEPSFLAG_GCC} |
49b0a3aa VS |
36127 | status=\${?} |
36128 | if test \${status} != 0 ; then | |
36129 | exit \${status} | |
36130 | fi | |
36131 | # move created file to the location we want it in: | |
36132 | while test \${#} -gt 0; do | |
36133 | case "\${1}" in | |
36134 | -o ) | |
36135 | shift | |
36136 | objfile=\${1} | |
36137 | ;; | |
36138 | -* ) | |
36139 | ;; | |
36140 | * ) | |
36141 | srcfile=\${1} | |
36142 | ;; | |
36143 | esac | |
36144 | shift | |
36145 | done | |
36146 | depfile=\`basename \$srcfile | sed -e 's/\..*$/.d/g'\` | |
36147 | depobjname=\`echo \$depfile |sed -e 's/\.d/.o/g'\` | |
6b9d41a5 VS |
36148 | if test -f \$depfile ; then |
36149 | sed -e "s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d | |
36150 | rm -f \$depfile | |
36151 | else | |
36152 | depfile=\`basename \$objfile | sed -e 's/\..*$/.d/g'\` | |
36153 | if test -f \$depfile ; then | |
9d0be83a | 36154 | sed -e "/^\$objfile/!s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d |
6b9d41a5 VS |
36155 | rm -f \$depfile |
36156 | fi | |
36157 | fi | |
49b0a3aa VS |
36158 | exit 0 |
36159 | else | |
36160 | \${*} | |
36161 | exit \${?} | |
36162 | fi | |
36163 | EOF | |
36164 | chmod +x bk-deps | |
fe0895cf | 36165 | fi |
fe0895cf | 36166 | |
e6cc62c6 VS |
36167 | |
36168 | ||
36169 | ||
fe0895cf VS |
36170 | RESCOMP= |
36171 | SETFILE= | |
36172 | ||
f95e4495 | 36173 | case ${BAKEFILE_HOST} in |
fe0895cf VS |
36174 | *-*-cygwin* | *-*-mingw32* ) |
36175 | if test "$build" != "$host" ; then | |
36176 | RESCOMP=$host_alias-windres | |
36177 | else | |
36178 | # Extract the first word of "windres", so it can be a program name with args. | |
36179 | set dummy windres; ac_word=$2 | |
e6cc62c6 VS |
36180 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
36181 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
36182 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
36183 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
36184 | else |
36185 | if test -n "$RESCOMP"; then | |
36186 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
36187 | else | |
e6cc62c6 VS |
36188 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
36189 | for as_dir in $PATH | |
36190 | do | |
36191 | IFS=$as_save_IFS | |
36192 | test -z "$as_dir" && as_dir=. | |
36193 | for ac_exec_ext in '' $ac_executable_extensions; do | |
36194 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
36195 | ac_cv_prog_RESCOMP="windres" | |
36196 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
36197 | break 2 | |
36198 | fi | |
36199 | done | |
36200 | done | |
36201 | ||
fe0895cf VS |
36202 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres" |
36203 | fi | |
36204 | fi | |
e6cc62c6 | 36205 | RESCOMP=$ac_cv_prog_RESCOMP |
fe0895cf | 36206 | if test -n "$RESCOMP"; then |
e6cc62c6 VS |
36207 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 |
36208 | echo "${ECHO_T}$RESCOMP" >&6 | |
fe0895cf | 36209 | else |
e6cc62c6 VS |
36210 | echo "$as_me:$LINENO: result: no" >&5 |
36211 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
36212 | fi |
36213 | ||
36214 | fi | |
36215 | ;; | |
e6cc62c6 | 36216 | |
fe0895cf VS |
36217 | *-*-darwin* ) |
36218 | # Extract the first word of "Rez", so it can be a program name with args. | |
36219 | set dummy Rez; ac_word=$2 | |
e6cc62c6 VS |
36220 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
36221 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
36222 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
36223 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
36224 | else |
36225 | if test -n "$RESCOMP"; then | |
36226 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
36227 | else | |
e6cc62c6 VS |
36228 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
36229 | for as_dir in $PATH | |
36230 | do | |
36231 | IFS=$as_save_IFS | |
36232 | test -z "$as_dir" && as_dir=. | |
36233 | for ac_exec_ext in '' $ac_executable_extensions; do | |
36234 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
36235 | ac_cv_prog_RESCOMP="Rez" | |
36236 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
36237 | break 2 | |
36238 | fi | |
36239 | done | |
36240 | done | |
36241 | ||
fe0895cf VS |
36242 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" |
36243 | fi | |
36244 | fi | |
e6cc62c6 | 36245 | RESCOMP=$ac_cv_prog_RESCOMP |
fe0895cf | 36246 | if test -n "$RESCOMP"; then |
e6cc62c6 VS |
36247 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 |
36248 | echo "${ECHO_T}$RESCOMP" >&6 | |
fe0895cf | 36249 | else |
e6cc62c6 VS |
36250 | echo "$as_me:$LINENO: result: no" >&5 |
36251 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
36252 | fi |
36253 | ||
36254 | # Extract the first word of "SetFile", so it can be a program name with args. | |
36255 | set dummy SetFile; ac_word=$2 | |
e6cc62c6 VS |
36256 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
36257 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
36258 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
36259 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
36260 | else |
36261 | if test -n "$SETFILE"; then | |
36262 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
36263 | else | |
e6cc62c6 VS |
36264 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
36265 | for as_dir in $PATH | |
36266 | do | |
36267 | IFS=$as_save_IFS | |
36268 | test -z "$as_dir" && as_dir=. | |
36269 | for ac_exec_ext in '' $ac_executable_extensions; do | |
36270 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
36271 | ac_cv_prog_SETFILE="SetFile" | |
36272 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
36273 | break 2 | |
36274 | fi | |
36275 | done | |
36276 | done | |
36277 | ||
fe0895cf VS |
36278 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" |
36279 | fi | |
36280 | fi | |
e6cc62c6 | 36281 | SETFILE=$ac_cv_prog_SETFILE |
fe0895cf | 36282 | if test -n "$SETFILE"; then |
e6cc62c6 VS |
36283 | echo "$as_me:$LINENO: result: $SETFILE" >&5 |
36284 | echo "${ECHO_T}$SETFILE" >&6 | |
fe0895cf | 36285 | else |
e6cc62c6 VS |
36286 | echo "$as_me:$LINENO: result: no" >&5 |
36287 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
36288 | fi |
36289 | ||
36290 | ;; | |
36291 | esac | |
36292 | ||
fe0895cf VS |
36293 | |
36294 | ||
e6cc62c6 VS |
36295 | |
36296 | ||
36297 | ||
36298 | ||
45842500 | 36299 | |
ecfd48ca VZ |
36300 | |
36301 | ||
45842500 VS |
36302 | # Check whether --enable-precomp-headers or --disable-precomp-headers was given. |
36303 | if test "${enable_precomp_headers+set}" = set; then | |
36304 | enableval="$enable_precomp_headers" | |
36305 | bk_use_pch="$enableval" | |
36306 | fi; | |
36307 | ||
36308 | GCC_PCH=0 | |
36309 | ||
36310 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then | |
36311 | if test "x$GCC" = "xyes"; then | |
36312 | echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5 | |
36313 | echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6 | |
36314 | cat >conftest.$ac_ext <<_ACEOF | |
789c5f4a | 36315 | #line $LINENO "configure" |
45842500 VS |
36316 | /* confdefs.h. */ |
36317 | _ACEOF | |
36318 | cat confdefs.h >>conftest.$ac_ext | |
36319 | cat >>conftest.$ac_ext <<_ACEOF | |
36320 | /* end confdefs.h. */ | |
36321 | ||
36322 | int | |
36323 | main () | |
36324 | { | |
36325 | ||
8bcf2d20 VS |
36326 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) |
36327 | #error "no pch support" | |
36328 | #endif | |
36329 | #if (__GNUC__ < 3) | |
36330 | #error "no pch support" | |
36331 | #endif | |
36332 | #if (__GNUC__ == 3) && \ | |
36333 | ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ | |
36334 | ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) | |
36335 | #error "no pch support" | |
45842500 VS |
36336 | #endif |
36337 | ||
36338 | ; | |
36339 | return 0; | |
36340 | } | |
36341 | _ACEOF | |
36342 | rm -f conftest.$ac_objext | |
36343 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
789c5f4a | 36344 | (eval $ac_compile) 2>&5 |
45842500 VS |
36345 | ac_status=$? |
36346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36347 | (exit $ac_status); } && | |
789c5f4a | 36348 | { ac_try='test -s conftest.$ac_objext' |
45842500 VS |
36349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36350 | (eval $ac_try) 2>&5 | |
36351 | ac_status=$? | |
36352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36353 | (exit $ac_status); }; }; then | |
36354 | ||
36355 | echo "$as_me:$LINENO: result: yes" >&5 | |
36356 | echo "${ECHO_T}yes" >&6 | |
36357 | CPPFLAGS="-fpch-deps $CPPFLAGS" | |
36358 | GCC_PCH=1 | |
36359 | ||
36360 | else | |
36361 | echo "$as_me: failed program was:" >&5 | |
36362 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36363 | ||
36364 | ||
36365 | echo "$as_me:$LINENO: result: no" >&5 | |
36366 | echo "${ECHO_T}no" >&6 | |
36367 | ||
36368 | fi | |
789c5f4a | 36369 | rm -f conftest.$ac_objext conftest.$ac_ext |
45842500 VS |
36370 | if test $GCC_PCH = 1 ; then |
36371 | cat <<EOF >bk-make-pch | |
36372 | #!/bin/sh | |
36373 | ||
36374 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
36375 | # script. It is used to generated precompiled headers. | |
36376 | # | |
36377 | # Permission is given to use this file in any way. | |
36378 | ||
36379 | outfile="\${1}" | |
36380 | header="\${2}" | |
36381 | shift | |
36382 | shift | |
36383 | ||
36384 | compiler= | |
36385 | headerfile= | |
36386 | while test \${#} -gt 0; do | |
36387 | case "\${1}" in | |
36388 | -I* ) | |
36389 | incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\` | |
36390 | if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then | |
36391 | headerfile="\${incdir}/\${header}" | |
36392 | fi | |
36393 | ;; | |
36394 | esac | |
36395 | compiler="\${compiler} \${1}" | |
36396 | shift | |
36397 | done | |
36398 | ||
36399 | if test "x\${headerfile}" = "x" ; then | |
36400 | echo "error: can't find header \${header} in include paths" >2 | |
36401 | else | |
36402 | if test -f \${outfile} ; then | |
36403 | rm -f \${outfile} | |
36404 | else | |
36405 | mkdir -p \`dirname \${outfile}\` | |
36406 | fi | |
36407 | depsfile=".deps/\`basename \${outfile}\`.d" | |
36408 | mkdir -p .deps | |
36409 | # can do this because gcc is >= 3.4: | |
36410 | \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}" | |
36411 | exit \${?} | |
36412 | fi | |
36413 | EOF | |
36414 | chmod +x bk-make-pch | |
36415 | fi | |
36416 | fi | |
36417 | fi | |
36418 | ||
36419 | ||
36420 | ||
36421 | ||
36422 | ||
d78c94f2 | 36423 | COND_BUILD_DEBUG="#" |
6f628073 | 36424 | if test "x$BUILD" = "xdebug" ; then |
d78c94f2 | 36425 | COND_BUILD_DEBUG="" |
6f628073 VS |
36426 | fi |
36427 | ||
6c67131a VS |
36428 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" |
36429 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
36430 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
36431 | fi | |
36432 | ||
36433 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
36434 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
36435 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
36436 | fi | |
36437 | ||
f93ca9fd VS |
36438 | COND_BUILD_DEBUG_UNICODE_0="#" |
36439 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then | |
36440 | COND_BUILD_DEBUG_UNICODE_0="" | |
36441 | fi | |
36442 | ||
36443 | COND_BUILD_DEBUG_UNICODE_1="#" | |
36444 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then | |
36445 | COND_BUILD_DEBUG_UNICODE_1="" | |
36446 | fi | |
36447 | ||
d78c94f2 | 36448 | COND_BUILD_RELEASE="#" |
6f628073 | 36449 | if test "x$BUILD" = "xrelease" ; then |
d78c94f2 | 36450 | COND_BUILD_RELEASE="" |
6b9d41a5 VS |
36451 | fi |
36452 | ||
6c67131a VS |
36453 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" |
36454 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
36455 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
36456 | fi | |
36457 | ||
f93ca9fd VS |
36458 | COND_BUILD_RELEASE_UNICODE_0="#" |
36459 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then | |
36460 | COND_BUILD_RELEASE_UNICODE_0="" | |
36461 | fi | |
36462 | ||
36463 | COND_BUILD_RELEASE_UNICODE_1="#" | |
36464 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then | |
36465 | COND_BUILD_RELEASE_UNICODE_1="" | |
36466 | fi | |
36467 | ||
6c67131a VS |
36468 | COND_DEBUG_FLAG_1="#" |
36469 | if test "x$DEBUG_FLAG" = "x1" ; then | |
36470 | COND_DEBUG_FLAG_1="" | |
36471 | fi | |
36472 | ||
36473 | COND_DEBUG_INFO_0="#" | |
36474 | if test "x$DEBUG_INFO" = "x0" ; then | |
36475 | COND_DEBUG_INFO_0="" | |
36476 | fi | |
36477 | ||
36478 | COND_DEBUG_INFO_1="#" | |
36479 | if test "x$DEBUG_INFO" = "x1" ; then | |
36480 | COND_DEBUG_INFO_1="" | |
36481 | fi | |
36482 | ||
f95cd8fa VS |
36483 | COND_DEPS_TRACKING_0="#" |
36484 | if test "x$DEPS_TRACKING" = "x0" ; then | |
36485 | COND_DEPS_TRACKING_0="" | |
6b9d41a5 VS |
36486 | fi |
36487 | ||
8ee2dd05 VS |
36488 | COND_DEPS_TRACKING_1="#" |
36489 | if test "x$DEPS_TRACKING" = "x1" ; then | |
36490 | COND_DEPS_TRACKING_1="" | |
36491 | fi | |
36492 | ||
45842500 VS |
36493 | COND_GCC_PCH_1="#" |
36494 | if test "x$GCC_PCH" = "x1" ; then | |
36495 | COND_GCC_PCH_1="" | |
36496 | fi | |
36497 | ||
6f628073 VS |
36498 | COND_MONOLITHIC_0="#" |
36499 | if test "x$MONOLITHIC" = "x0" ; then | |
36500 | COND_MONOLITHIC_0="" | |
6b9d41a5 VS |
36501 | fi |
36502 | ||
6f628073 VS |
36503 | COND_MONOLITHIC_0_SHARED_0="#" |
36504 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
36505 | COND_MONOLITHIC_0_SHARED_0="" | |
36506 | fi | |
36507 | ||
36508 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" | |
36509 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
36510 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
fe0895cf | 36511 | fi |
e6cc62c6 | 36512 | |
8772a1a7 VS |
36513 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#" |
36514 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
36515 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="" | |
36516 | fi | |
36517 | ||
250700e4 RD |
36518 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#" |
36519 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then | |
36520 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="" | |
36521 | fi | |
36522 | ||
eb69fda5 VS |
36523 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#" |
36524 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
36525 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="" | |
36526 | fi | |
36527 | ||
8ee2dd05 VS |
36528 | COND_MONOLITHIC_0_SHARED_1="#" |
36529 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
36530 | COND_MONOLITHIC_0_SHARED_1="" | |
fe0895cf | 36531 | fi |
e6cc62c6 | 36532 | |
6f628073 VS |
36533 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" |
36534 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
36535 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
36536 | fi | |
36537 | ||
8772a1a7 VS |
36538 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#" |
36539 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
36540 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="" | |
36541 | fi | |
36542 | ||
250700e4 RD |
36543 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#" |
36544 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then | |
36545 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="" | |
36546 | fi | |
36547 | ||
eb69fda5 VS |
36548 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#" |
36549 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
36550 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="" | |
36551 | fi | |
36552 | ||
f95e4495 VS |
36553 | COND_MONOLITHIC_0_USE_ODBC_1="#" |
36554 | if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
36555 | COND_MONOLITHIC_0_USE_ODBC_1="" | |
36556 | fi | |
36557 | ||
3af038c0 VS |
36558 | COND_MONOLITHIC_1="#" |
36559 | if test "x$MONOLITHIC" = "x1" ; then | |
36560 | COND_MONOLITHIC_1="" | |
36561 | fi | |
36562 | ||
6f628073 VS |
36563 | COND_MONOLITHIC_1_SHARED_0="#" |
36564 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
36565 | COND_MONOLITHIC_1_SHARED_0="" | |
36566 | fi | |
36567 | ||
36568 | COND_MONOLITHIC_1_SHARED_1="#" | |
36569 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
36570 | COND_MONOLITHIC_1_SHARED_1="" | |
36571 | fi | |
36572 | ||
3af038c0 VS |
36573 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" |
36574 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
36575 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
36576 | fi | |
36577 | ||
36578 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
36579 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
36580 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
36581 | fi | |
36582 | ||
6f628073 VS |
36583 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" |
36584 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
36585 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
36586 | fi | |
36587 | ||
3af038c0 VS |
36588 | COND_PLATFORM_MACOSX_1="#" |
36589 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
36590 | COND_PLATFORM_MACOSX_1="" | |
36591 | fi | |
36592 | ||
250700e4 RD |
36593 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" |
36594 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
36595 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
36596 | fi | |
36597 | ||
36598 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
36599 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
36600 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
36601 | fi | |
36602 | ||
36603 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
36604 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
36605 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
36606 | fi | |
36607 | ||
3527f29c VS |
36608 | COND_PLATFORM_MACOSX_1_USE_GUI_1="#" |
36609 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
36610 | COND_PLATFORM_MACOSX_1_USE_GUI_1="" | |
36611 | fi | |
36612 | ||
8ee2dd05 VS |
36613 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" |
36614 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
36615 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
36616 | fi | |
36617 | ||
45842500 VS |
36618 | COND_PLATFORM_MAC_1="#" |
36619 | if test "x$PLATFORM_MAC" = "x1" ; then | |
36620 | COND_PLATFORM_MAC_1="" | |
36621 | fi | |
36622 | ||
3d8c1de0 VS |
36623 | COND_PLATFORM_OS2_1="#" |
36624 | if test "x$PLATFORM_OS2" = "x1" ; then | |
36625 | COND_PLATFORM_OS2_1="" | |
36626 | fi | |
36627 | ||
8772a1a7 VS |
36628 | COND_PLATFORM_UNIX_0="#" |
36629 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
36630 | COND_PLATFORM_UNIX_0="" | |
36631 | fi | |
36632 | ||
3af038c0 VS |
36633 | COND_PLATFORM_UNIX_1="#" |
36634 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
36635 | COND_PLATFORM_UNIX_1="" | |
36636 | fi | |
36637 | ||
3527f29c VS |
36638 | COND_PLATFORM_UNIX_1_USE_GUI_1="#" |
36639 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
36640 | COND_PLATFORM_UNIX_1_USE_GUI_1="" | |
36641 | fi | |
36642 | ||
f93ca9fd VS |
36643 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#" |
36644 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then | |
36645 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="" | |
36646 | fi | |
36647 | ||
3af038c0 VS |
36648 | COND_PLATFORM_WIN32_0="#" |
36649 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
36650 | COND_PLATFORM_WIN32_0="" | |
36651 | fi | |
36652 | ||
36653 | COND_PLATFORM_WIN32_1="#" | |
36654 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
36655 | COND_PLATFORM_WIN32_1="" | |
36656 | fi | |
36657 | ||
45842500 VS |
36658 | COND_SHARED_0="#" |
36659 | if test "x$SHARED" = "x0" ; then | |
36660 | COND_SHARED_0="" | |
36661 | fi | |
36662 | ||
250700e4 RD |
36663 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" |
36664 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
36665 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
36666 | fi | |
36667 | ||
52a5a009 VS |
36668 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" |
36669 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
36670 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
36671 | fi | |
36672 | ||
36673 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
36674 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
36675 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
36676 | fi | |
36677 | ||
36678 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
36679 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
36680 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
36681 | fi | |
36682 | ||
36683 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#" | |
36684 | if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
36685 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="" | |
36686 | fi | |
36687 | ||
36688 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="#" | |
36689 | if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then | |
36690 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="" | |
36691 | fi | |
36692 | ||
36693 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="#" | |
36694 | if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then | |
36695 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="" | |
36696 | fi | |
36697 | ||
36698 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#" | |
36699 | if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
36700 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="" | |
36701 | fi | |
36702 | ||
45842500 VS |
36703 | COND_SHARED_1="#" |
36704 | if test "x$SHARED" = "x1" ; then | |
36705 | COND_SHARED_1="" | |
36706 | fi | |
36707 | ||
250700e4 RD |
36708 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" |
36709 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
36710 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
36711 | fi | |
36712 | ||
6f628073 VS |
36713 | COND_TOOLKIT_COCOA="#" |
36714 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
36715 | COND_TOOLKIT_COCOA="" | |
8ee2dd05 VS |
36716 | fi |
36717 | ||
6f628073 VS |
36718 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" |
36719 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
36720 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
8ee2dd05 VS |
36721 | fi |
36722 | ||
6f628073 VS |
36723 | COND_TOOLKIT_GTK="#" |
36724 | if test "x$TOOLKIT" = "xGTK" ; then | |
36725 | COND_TOOLKIT_GTK="" | |
f95cd8fa VS |
36726 | fi |
36727 | ||
6f628073 VS |
36728 | COND_TOOLKIT_GTK_USE_GUI_1="#" |
36729 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
36730 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
f95cd8fa VS |
36731 | fi |
36732 | ||
6f628073 VS |
36733 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#" |
36734 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
36735 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="" | |
8ee2dd05 VS |
36736 | fi |
36737 | ||
3af038c0 VS |
36738 | COND_TOOLKIT_MAC="#" |
36739 | if test "x$TOOLKIT" = "xMAC" ; then | |
36740 | COND_TOOLKIT_MAC="" | |
36741 | fi | |
36742 | ||
8772a1a7 VS |
36743 | COND_TOOLKIT_MAC_USE_GUI_1="#" |
36744 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
36745 | COND_TOOLKIT_MAC_USE_GUI_1="" | |
36746 | fi | |
36747 | ||
6f628073 VS |
36748 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" |
36749 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
36750 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
8ee2dd05 VS |
36751 | fi |
36752 | ||
6f628073 VS |
36753 | COND_TOOLKIT_MGL="#" |
36754 | if test "x$TOOLKIT" = "xMGL" ; then | |
36755 | COND_TOOLKIT_MGL="" | |
8ee2dd05 VS |
36756 | fi |
36757 | ||
6f628073 VS |
36758 | COND_TOOLKIT_MGL_USE_GUI_1="#" |
36759 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
36760 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
8ee2dd05 VS |
36761 | fi |
36762 | ||
6f628073 VS |
36763 | COND_TOOLKIT_MOTIF="#" |
36764 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
36765 | COND_TOOLKIT_MOTIF="" | |
f95cd8fa VS |
36766 | fi |
36767 | ||
6f628073 VS |
36768 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" |
36769 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
36770 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
fe0895cf | 36771 | fi |
e6cc62c6 | 36772 | |
6f628073 VS |
36773 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" |
36774 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
36775 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
8ee2dd05 VS |
36776 | fi |
36777 | ||
6f628073 VS |
36778 | COND_TOOLKIT_MSW="#" |
36779 | if test "x$TOOLKIT" = "xMSW" ; then | |
36780 | COND_TOOLKIT_MSW="" | |
8ee2dd05 VS |
36781 | fi |
36782 | ||
6f628073 VS |
36783 | COND_TOOLKIT_MSW_USE_GUI_1="#" |
36784 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
36785 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
fe0895cf | 36786 | fi |
e6cc62c6 | 36787 | |
6f628073 VS |
36788 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" |
36789 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
36790 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
fe0895cf | 36791 | fi |
e6cc62c6 | 36792 | |
96c1699d VS |
36793 | COND_TOOLKIT_PM="#" |
36794 | if test "x$TOOLKIT" = "xPM" ; then | |
36795 | COND_TOOLKIT_PM="" | |
36796 | fi | |
36797 | ||
36798 | COND_TOOLKIT_PM_USE_GUI_1="#" | |
36799 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then | |
36800 | COND_TOOLKIT_PM_USE_GUI_1="" | |
36801 | fi | |
36802 | ||
36803 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#" | |
36804 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
36805 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="" | |
36806 | fi | |
36807 | ||
6f628073 VS |
36808 | COND_TOOLKIT_X11="#" |
36809 | if test "x$TOOLKIT" = "xX11" ; then | |
36810 | COND_TOOLKIT_X11="" | |
9747f85d VS |
36811 | fi |
36812 | ||
6f628073 VS |
36813 | COND_TOOLKIT_X11_USE_GUI_1="#" |
36814 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
36815 | COND_TOOLKIT_X11_USE_GUI_1="" | |
f95cd8fa VS |
36816 | fi |
36817 | ||
3af038c0 VS |
36818 | COND_UNICODE_1="#" |
36819 | if test "x$UNICODE" = "x1" ; then | |
36820 | COND_UNICODE_1="" | |
36821 | fi | |
36822 | ||
7015ef3a VZ |
36823 | COND_USE_EXCEPTIONS_0="#" |
36824 | if test "x$USE_EXCEPTIONS" = "x0" ; then | |
36825 | COND_USE_EXCEPTIONS_0="" | |
36826 | fi | |
36827 | ||
36828 | COND_USE_EXCEPTIONS_1="#" | |
36829 | if test "x$USE_EXCEPTIONS" = "x1" ; then | |
36830 | COND_USE_EXCEPTIONS_1="" | |
36831 | fi | |
36832 | ||
3af038c0 VS |
36833 | COND_USE_GUI_0="#" |
36834 | if test "x$USE_GUI" = "x0" ; then | |
36835 | COND_USE_GUI_0="" | |
36836 | fi | |
36837 | ||
36838 | COND_USE_GUI_1="#" | |
36839 | if test "x$USE_GUI" = "x1" ; then | |
36840 | COND_USE_GUI_1="" | |
36841 | fi | |
36842 | ||
e6cc62c6 | 36843 | COND_USE_GUI_1_WXUNIV_0="#" |
c7dfb5bb VS |
36844 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then |
36845 | COND_USE_GUI_1_WXUNIV_0="" | |
fe0895cf | 36846 | fi |
e6cc62c6 VS |
36847 | |
36848 | COND_USE_GUI_1_WXUNIV_1="#" | |
c7dfb5bb VS |
36849 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then |
36850 | COND_USE_GUI_1_WXUNIV_1="" | |
e6cc62c6 VS |
36851 | fi |
36852 | ||
66a96744 VS |
36853 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" |
36854 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
36855 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
36856 | fi | |
36857 | ||
36858 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
36859 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
36860 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
36861 | fi | |
36862 | ||
36863 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
36864 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
36865 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
36866 | fi | |
36867 | ||
57e7d4ac VS |
36868 | COND_USE_ODBC_1="#" |
36869 | if test "x$USE_ODBC" = "x1" ; then | |
36870 | COND_USE_ODBC_1="" | |
36871 | fi | |
36872 | ||
f93ca9fd VS |
36873 | COND_USE_PLUGINS_0="#" |
36874 | if test "x$USE_PLUGINS" = "x0" ; then | |
36875 | COND_USE_PLUGINS_0="" | |
36876 | fi | |
36877 | ||
6f628073 VS |
36878 | COND_USE_SOSYMLINKS_1="#" |
36879 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
36880 | COND_USE_SOSYMLINKS_1="" | |
b625909c VS |
36881 | fi |
36882 | ||
6f628073 VS |
36883 | COND_USE_SOVERLINUX_1="#" |
36884 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
36885 | COND_USE_SOVERLINUX_1="" | |
b625909c VS |
36886 | fi |
36887 | ||
6f628073 VS |
36888 | COND_USE_SOVERSION_0="#" |
36889 | if test "x$USE_SOVERSION" = "x0" ; then | |
36890 | COND_USE_SOVERSION_0="" | |
fddeb06b | 36891 | fi |
fe0895cf | 36892 | |
6f628073 VS |
36893 | COND_USE_SOVERSOLARIS_1="#" |
36894 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
36895 | COND_USE_SOVERSOLARIS_1="" | |
fddeb06b | 36896 | fi |
fe0895cf | 36897 | |
f93ca9fd VS |
36898 | COND_WITH_PLUGIN_SDL_1="#" |
36899 | if test "x$WITH_PLUGIN_SDL" = "x1" ; then | |
36900 | COND_WITH_PLUGIN_SDL_1="" | |
36901 | fi | |
36902 | ||
36903 | COND_WITH_SDL_1="#" | |
36904 | if test "x$WITH_SDL" = "x1" ; then | |
36905 | COND_WITH_SDL_1="" | |
36906 | fi | |
36907 | ||
3af038c0 VS |
36908 | COND_WXUNIV_1="#" |
36909 | if test "x$WXUNIV" = "x1" ; then | |
36910 | COND_WXUNIV_1="" | |
36911 | fi | |
36912 | ||
66a96744 VS |
36913 | COND_WXUSE_EXPAT_BUILTIN="#" |
36914 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
36915 | COND_WXUSE_EXPAT_BUILTIN="" | |
36916 | fi | |
36917 | ||
02980527 VS |
36918 | COND_WXUSE_LIBJPEG_BUILTIN="#" |
36919 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
36920 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
36921 | fi | |
36922 | ||
36923 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
36924 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
36925 | COND_WXUSE_LIBPNG_BUILTIN="" | |
36926 | fi | |
36927 | ||
36928 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
36929 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
36930 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
36931 | fi | |
36932 | ||
36933 | COND_WXUSE_ODBC_BUILTIN="#" | |
36934 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
36935 | COND_WXUSE_ODBC_BUILTIN="" | |
36936 | fi | |
36937 | ||
36938 | COND_WXUSE_REGEX_BUILTIN="#" | |
36939 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
36940 | COND_WXUSE_REGEX_BUILTIN="" | |
36941 | fi | |
36942 | ||
36943 | COND_WXUSE_ZLIB_BUILTIN="#" | |
36944 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
36945 | COND_WXUSE_ZLIB_BUILTIN="" | |
36946 | fi | |
36947 | ||
1772d20c | 36948 | |
fe0895cf | 36949 | |
fe0895cf | 36950 | |
fe0895cf | 36951 | |
45842500 | 36952 | if test $GCC_PCH = 1 ; then |
130711ba | 36953 | CODE_GEN_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CODE_GEN_FLAGS" |
45842500 VS |
36954 | CPPFLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CPPFLAGS" |
36955 | else | |
36956 | case "${host}" in | |
36957 | powerpc-*-darwin* ) | |
130711ba VS |
36958 | CODE_GEN_FLAGS="-DNO_GCC_PRAGMA $CODE_GEN_FLAGS" |
36959 | CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS" | |
45842500 | 36960 | ;; |
45842500 VS |
36961 | esac |
36962 | fi | |
fe0895cf VS |
36963 | |
36964 | ||
fddeb06b | 36965 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" |
fe0895cf VS |
36966 | |
36967 | ||
36968 | ||
36969 | ||
36970 | ||
36971 | ||
36972 | ||
36973 | ||
36974 | ||
36975 | ||
36976 | ||
36977 | ||
36978 | ||
36979 | ||
36980 | ||
36981 | ||
36982 | ||
36983 | ||
36984 | ||
36985 | ||
36986 | ||
36987 | ||
36988 | ||
36989 | ||
36990 | ||
36991 | ||
36992 | ||
36993 | ||
36994 | ||
36995 | ||
36996 | ||
36997 | ||
36998 | ||
36999 | ||
37000 | ||
37001 | ||
37002 | ||
37003 | ||
37004 | ||
37005 | ||
37006 | ||
37007 | ||
37008 | ||
37009 | ||
37010 | ||
37011 | ||
37012 | ||
37013 | ||
37014 | ||
37015 | ||
37016 | ||
37017 | ||
37018 | ||
37019 | ||
37020 | ||
37021 | ||
37022 | ||
37023 | ||
37024 | ||
37025 | ||
37026 | ||
37027 | ||
37028 | ||
37029 | ||
37030 | ||
37031 | ||
37032 | ||
37033 | ||
37034 | ||
37035 | ||
37036 | ||
37037 | ||
37038 | ||
37039 | ||
37040 | ||
37041 | ||
37042 | ||
37043 | ||
37044 | ||
37045 | ||
37046 | ||
37047 | ||
37048 | ||
37049 | ||
37050 | ||
37051 | ||
37052 | ||
37053 | ||
37054 | ||
37055 | ||
37056 | ||
37057 | ||
37058 | ||
37059 | ||
fe0895cf | 37060 | |
f0290fca VS |
37061 | |
37062 | ||
e6cc62c6 VS |
37063 | |
37064 | ||
37065 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
37066 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
789c5f4a | 37067 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` |
e6cc62c6 VS |
37068 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
37069 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37070 | else | |
37071 | cat >conftest.make <<\_ACEOF | |
37072 | all: | |
37073 | @echo 'ac_maketemp="$(MAKE)"' | |
37074 | _ACEOF | |
37075 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
37076 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
37077 | if test -n "$ac_maketemp"; then | |
37078 | eval ac_cv_prog_make_${ac_make}_set=yes | |
37079 | else | |
37080 | eval ac_cv_prog_make_${ac_make}_set=no | |
37081 | fi | |
37082 | rm -f conftest.make | |
37083 | fi | |
37084 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
37085 | echo "$as_me:$LINENO: result: yes" >&5 | |
37086 | echo "${ECHO_T}yes" >&6 | |
37087 | SET_MAKE= | |
37088 | else | |
37089 | echo "$as_me:$LINENO: result: no" >&5 | |
37090 | echo "${ECHO_T}no" >&6 | |
37091 | SET_MAKE="MAKE=${MAKE-make}" | |
37092 | fi | |
37093 | ||
37094 | ||
37095 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then | |
37096 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
37097 | fi | |
37098 | ||
37099 | ac_config_headers="$ac_config_headers setup.h" | |
37100 | ||
37101 | ||
81345eef | 37102 | ac_config_files="$ac_config_files wx-config version-script Makefile" |
e6cc62c6 VS |
37103 | |
37104 | ||
37105 | ac_config_commands="$ac_config_commands default" | |
37106 | ||
37107 | ||
9de9b8f0 | 37108 | |
6c3e36af VZ |
37109 | if test "$wxUSE_GUI" = "yes"; then |
37110 | SUBDIRS="samples demos utils contrib" | |
37111 | else SUBDIRS="samples utils" | |
37112 | fi | |
e6cc62c6 | 37113 | |
166263e6 | 37114 | for subdir in `echo $SUBDIRS`; do |
9747f85d | 37115 | if test -d ${srcdir}/${subdir} ; then |
6c3e36af | 37116 | if test "$wxUSE_GUI" = "yes"; then |
166263e6 | 37117 | if test ${subdir} = "samples"; then |
8772a1a7 VS |
37118 | makefiles="samples/Makefile.in $makefiles" |
37119 | for sample in `echo $SAMPLES_SUBDIRS`; do | |
166263e6 VZ |
37120 | if test -d $srcdir/samples/$sample; then |
37121 | makefiles="samples/$sample/Makefile.in $makefiles" | |
37122 | fi | |
37123 | done | |
37124 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` | |
37125 | fi | |
6c3e36af | 37126 | else if test ${subdir} = "samples"; then |
8772a1a7 | 37127 | makefiles="samples/Makefile.in samples/console/Makefile.in" |
6c3e36af | 37128 | else makefiles="utils/HelpGen/Makefile.in \ |
2bf8cafb VS |
37129 | utils/HelpGen/src/Makefile.in \ |
37130 | utils/tex2rtf/Makefile.in \ | |
37131 | utils/tex2rtf/src/Makefile.in" | |
6c3e36af VZ |
37132 | fi |
37133 | fi | |
37134 | ||
9747f85d VS |
37135 | for mkin in $makefiles ; do |
37136 | mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'` | |
37137 | ac_config_files="$ac_config_files $mk" | |
e6cc62c6 | 37138 | |
9747f85d VS |
37139 | done |
37140 | fi | |
37141 | done | |
e6cc62c6 | 37142 | |
9de9b8f0 | 37143 | |
e6cc62c6 VS |
37144 | cat >confcache <<\_ACEOF |
37145 | # This file is a shell script that caches the results of configure | |
37146 | # tests run on this system so they can be shared between configure | |
37147 | # scripts and configure runs, see configure's option --config-cache. | |
37148 | # It is not useful on other systems. If it contains results you don't | |
37149 | # want to keep, you may remove or edit it. | |
37150 | # | |
37151 | # config.status only pays attention to the cache file if you give it | |
37152 | # the --recheck option to rerun configure. | |
37153 | # | |
37154 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
37155 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
37156 | # following values. | |
37157 | ||
37158 | _ACEOF | |
37159 | ||
37160 | # The following way of writing the cache mishandles newlines in values, | |
37161 | # but we know of no workaround that is simple, portable, and efficient. | |
37162 | # So, don't put newlines in cache variables' values. | |
37163 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
37164 | # and sets the high bit in the cache file unless we assign to the vars. | |
37165 | { | |
37166 | (set) 2>&1 | | |
37167 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
37168 | *ac_space=\ *) | |
37169 | # `set' does not quote correctly, so add quotes (double-quote | |
37170 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
37171 | sed -n \ | |
789c5f4a VZ |
37172 | "s/'/'\\\\''/g; |
37173 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
e6cc62c6 VS |
37174 | ;; |
37175 | *) | |
37176 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
37177 | sed -n \ | |
789c5f4a | 37178 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
e6cc62c6 VS |
37179 | ;; |
37180 | esac; | |
37181 | } | | |
37182 | sed ' | |
37183 | t clear | |
37184 | : clear | |
37185 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
37186 | t end | |
37187 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
37188 | : end' >>confcache | |
37189 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
37190 | if test -w $cache_file; then | |
37191 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
37192 | cat confcache >$cache_file | |
37193 | else | |
37194 | echo "not updating unwritable cache $cache_file" | |
37195 | fi | |
37196 | fi | |
37197 | rm -f confcache | |
37198 | ||
37199 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
37200 | # Let make expand exec_prefix. | |
37201 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
37202 | ||
37203 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
37204 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
37205 | # trailing colons and then remove the whole line if VPATH becomes empty | |
37206 | # (actually we leave an empty line to preserve line numbers). | |
37207 | if test "x$srcdir" = x.; then | |
789c5f4a | 37208 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
e6cc62c6 VS |
37209 | s/:*\$(srcdir):*/:/; |
37210 | s/:*\${srcdir}:*/:/; | |
37211 | s/:*@srcdir@:*/:/; | |
789c5f4a | 37212 | s/^\([^=]*=[ ]*\):*/\1/; |
e6cc62c6 | 37213 | s/:*$//; |
789c5f4a | 37214 | s/^[^=]*=[ ]*$//; |
e6cc62c6 VS |
37215 | }' |
37216 | fi | |
37217 | ||
37218 | DEFS=-DHAVE_CONFIG_H | |
37219 | ||
37220 | ac_libobjs= | |
37221 | ac_ltlibobjs= | |
37222 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
37223 | # 1. Remove the extension, and $U if already installed. | |
37224 | ac_i=`echo "$ac_i" | | |
789c5f4a | 37225 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
e6cc62c6 VS |
37226 | # 2. Add them. |
37227 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
37228 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
37229 | done | |
37230 | LIBOBJS=$ac_libobjs | |
37231 | ||
37232 | LTLIBOBJS=$ac_ltlibobjs | |
37233 | ||
37234 | ||
37235 | ||
37236 | : ${CONFIG_STATUS=./config.status} | |
37237 | ac_clean_files_save=$ac_clean_files | |
37238 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
37239 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
37240 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
37241 | cat >$CONFIG_STATUS <<_ACEOF | |
37242 | #! $SHELL | |
37243 | # Generated by $as_me. | |
37244 | # Run this file to recreate the current configuration. | |
37245 | # Compiler output produced by configure, useful for debugging | |
37246 | # configure, is in config.log if it exists. | |
37247 | ||
37248 | debug=false | |
37249 | ac_cs_recheck=false | |
37250 | ac_cs_silent=false | |
37251 | SHELL=\${CONFIG_SHELL-$SHELL} | |
37252 | _ACEOF | |
37253 | ||
37254 | cat >>$CONFIG_STATUS <<\_ACEOF | |
37255 | ## --------------------- ## | |
37256 | ## M4sh Initialization. ## | |
37257 | ## --------------------- ## | |
37258 | ||
37259 | # Be Bourne compatible | |
37260 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
37261 | emulate sh | |
37262 | NULLCMD=: | |
37263 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
37264 | # is contrary to our usage. Disable this feature. | |
37265 | alias -g '${1+"$@"}'='"$@"' | |
37266 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
37267 | set -o posix | |
37268 | fi | |
37269 | ||
37270 | # Support unset when possible. | |
789c5f4a | 37271 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
e6cc62c6 VS |
37272 | as_unset=unset |
37273 | else | |
37274 | as_unset=false | |
37275 | fi | |
37276 | ||
37277 | ||
37278 | # Work around bugs in pre-3.0 UWIN ksh. | |
37279 | $as_unset ENV MAIL MAILPATH | |
37280 | PS1='$ ' | |
37281 | PS2='> ' | |
37282 | PS4='+ ' | |
37283 | ||
37284 | # NLS nuisances. | |
37285 | for as_var in \ | |
37286 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
37287 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
37288 | LC_TELEPHONE LC_TIME | |
37289 | do | |
789c5f4a | 37290 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
e6cc62c6 VS |
37291 | eval $as_var=C; export $as_var |
37292 | else | |
37293 | $as_unset $as_var | |
37294 | fi | |
37295 | done | |
37296 | ||
37297 | # Required to use basename. | |
37298 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
37299 | as_expr=expr | |
37300 | else | |
37301 | as_expr=false | |
37302 | fi | |
37303 | ||
37304 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
37305 | as_basename=basename | |
37306 | else | |
37307 | as_basename=false | |
37308 | fi | |
37309 | ||
37310 | ||
37311 | # Name of the executable. | |
37312 | as_me=`$as_basename "$0" || | |
37313 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
37314 | X"$0" : 'X\(//\)$' \| \ | |
37315 | X"$0" : 'X\(/\)$' \| \ | |
37316 | . : '\(.\)' 2>/dev/null || | |
37317 | echo X/"$0" | | |
37318 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
37319 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
37320 | /^X\/\(\/\).*/{ s//\1/; q; } | |
37321 | s/.*/./; q'` | |
37322 | ||
37323 | ||
37324 | # PATH needs CR, and LINENO needs CR and PATH. | |
37325 | # Avoid depending upon Character Ranges. | |
37326 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
37327 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
37328 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
37329 | as_cr_digits='0123456789' | |
37330 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
37331 | ||
37332 | # The user is always right. | |
37333 | if test "${PATH_SEPARATOR+set}" != set; then | |
37334 | echo "#! /bin/sh" >conf$$.sh | |
37335 | echo "exit 0" >>conf$$.sh | |
37336 | chmod +x conf$$.sh | |
37337 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
37338 | PATH_SEPARATOR=';' | |
37339 | else | |
37340 | PATH_SEPARATOR=: | |
37341 | fi | |
37342 | rm -f conf$$.sh | |
37343 | fi | |
37344 | ||
37345 | ||
37346 | as_lineno_1=$LINENO | |
37347 | as_lineno_2=$LINENO | |
37348 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
37349 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
37350 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
37351 | # Find who we are. Look in the path if we contain no path at all | |
37352 | # relative or not. | |
37353 | case $0 in | |
37354 | *[\\/]* ) as_myself=$0 ;; | |
37355 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
37356 | for as_dir in $PATH | |
37357 | do | |
37358 | IFS=$as_save_IFS | |
37359 | test -z "$as_dir" && as_dir=. | |
37360 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
37361 | done | |
37362 | ||
37363 | ;; | |
37364 | esac | |
37365 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
37366 | # in which case we are not to be found in the path. | |
37367 | if test "x$as_myself" = x; then | |
37368 | as_myself=$0 | |
37369 | fi | |
37370 | if test ! -f "$as_myself"; then | |
37371 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
37372 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
37373 | { (exit 1); exit 1; }; } | |
37374 | fi | |
37375 | case $CONFIG_SHELL in | |
37376 | '') | |
37377 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
37378 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
37379 | do | |
37380 | IFS=$as_save_IFS | |
37381 | test -z "$as_dir" && as_dir=. | |
37382 | for as_base in sh bash ksh sh5; do | |
37383 | case $as_dir in | |
37384 | /*) | |
37385 | if ("$as_dir/$as_base" -c ' | |
37386 | as_lineno_1=$LINENO | |
37387 | as_lineno_2=$LINENO | |
37388 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
37389 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
37390 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
37391 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
37392 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
37393 | CONFIG_SHELL=$as_dir/$as_base | |
37394 | export CONFIG_SHELL | |
37395 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
37396 | fi;; | |
37397 | esac | |
37398 | done | |
37399 | done | |
37400 | ;; | |
37401 | esac | |
37402 | ||
37403 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
37404 | # uniformly replaced by the line number. The first 'sed' inserts a | |
37405 | # line-number line before each line; the second 'sed' does the real | |
37406 | # work. The second script uses 'N' to pair each line-number line | |
37407 | # with the numbered line, and appends trailing '-' during | |
37408 | # substitution so that $LINENO is not a special case at line end. | |
37409 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
37410 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
37411 | sed '=' <$as_myself | | |
37412 | sed ' | |
37413 | N | |
37414 | s,$,-, | |
37415 | : loop | |
37416 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
37417 | t loop | |
37418 | s,-$,, | |
37419 | s,^['$as_cr_digits']*\n,, | |
37420 | ' >$as_me.lineno && | |
37421 | chmod +x $as_me.lineno || | |
37422 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
37423 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
37424 | { (exit 1); exit 1; }; } | |
37425 | ||
37426 | # Don't try to exec as it changes $[0], causing all sort of problems | |
37427 | # (the dirname of $[0] is not the place where we might find the | |
37428 | # original and so on. Autoconf is especially sensible to this). | |
37429 | . ./$as_me.lineno | |
37430 | # Exit status is that of the last command. | |
37431 | exit | |
37432 | } | |
37433 | ||
37434 | ||
37435 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
37436 | *c*,-n*) ECHO_N= ECHO_C=' | |
37437 | ' ECHO_T=' ' ;; | |
37438 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
37439 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
37440 | esac | |
37441 | ||
37442 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
37443 | as_expr=expr | |
37444 | else | |
37445 | as_expr=false | |
37446 | fi | |
37447 | ||
37448 | rm -f conf$$ conf$$.exe conf$$.file | |
37449 | echo >conf$$.file | |
37450 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
37451 | # We could just check for DJGPP; but this test a) works b) is more generic | |
37452 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
37453 | if test -f conf$$.exe; then | |
37454 | # Don't use ln at all; we don't have any links | |
37455 | as_ln_s='cp -p' | |
37456 | else | |
37457 | as_ln_s='ln -s' | |
37458 | fi | |
37459 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
37460 | as_ln_s=ln | |
37461 | else | |
37462 | as_ln_s='cp -p' | |
37463 | fi | |
37464 | rm -f conf$$ conf$$.exe conf$$.file | |
37465 | ||
37466 | if mkdir -p . 2>/dev/null; then | |
37467 | as_mkdir_p=: | |
37468 | else | |
37469 | as_mkdir_p=false | |
37470 | fi | |
37471 | ||
37472 | as_executable_p="test -f" | |
37473 | ||
37474 | # Sed expression to map a string onto a valid CPP name. | |
789c5f4a | 37475 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
e6cc62c6 VS |
37476 | |
37477 | # Sed expression to map a string onto a valid variable name. | |
789c5f4a | 37478 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
e6cc62c6 VS |
37479 | |
37480 | ||
37481 | # IFS | |
37482 | # We need space, tab and new line, in precisely that order. | |
37483 | as_nl=' | |
37484 | ' | |
37485 | IFS=" $as_nl" | |
37486 | ||
37487 | # CDPATH. | |
37488 | $as_unset CDPATH | |
37489 | ||
37490 | exec 6>&1 | |
37491 | ||
37492 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
37493 | # report actual input values of CONFIG_FILES etc. instead of their | |
37494 | # values after options handling. Logging --version etc. is OK. | |
37495 | exec 5>>config.log | |
37496 | { | |
37497 | echo | |
37498 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
37499 | ## Running $as_me. ## | |
37500 | _ASBOX | |
37501 | } >&5 | |
37502 | cat >&5 <<_CSEOF | |
37503 | ||
e46d2a18 | 37504 | This file was extended by wxWindows $as_me 2.5.1, which was |
789c5f4a | 37505 | generated by GNU Autoconf 2.57. Invocation command line was |
e6cc62c6 VS |
37506 | |
37507 | CONFIG_FILES = $CONFIG_FILES | |
37508 | CONFIG_HEADERS = $CONFIG_HEADERS | |
37509 | CONFIG_LINKS = $CONFIG_LINKS | |
37510 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
37511 | $ $0 $@ | |
37512 | ||
37513 | _CSEOF | |
37514 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
37515 | echo >&5 | |
37516 | _ACEOF | |
37517 | ||
37518 | # Files that config.status was made for. | |
37519 | if test -n "$ac_config_files"; then | |
37520 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
37521 | fi | |
37522 | ||
37523 | if test -n "$ac_config_headers"; then | |
37524 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
37525 | fi | |
37526 | ||
37527 | if test -n "$ac_config_links"; then | |
37528 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
37529 | fi | |
37530 | ||
37531 | if test -n "$ac_config_commands"; then | |
37532 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
37533 | fi | |
37534 | ||
37535 | cat >>$CONFIG_STATUS <<\_ACEOF | |
37536 | ||
37537 | ac_cs_usage="\ | |
37538 | \`$as_me' instantiates files from templates according to the | |
37539 | current configuration. | |
37540 | ||
37541 | Usage: $0 [OPTIONS] [FILE]... | |
37542 | ||
37543 | -h, --help print this help, then exit | |
37544 | -V, --version print version number, then exit | |
37545 | -q, --quiet do not print progress messages | |
37546 | -d, --debug don't remove temporary files | |
37547 | --recheck update $as_me by reconfiguring in the same conditions | |
37548 | --file=FILE[:TEMPLATE] | |
789c5f4a | 37549 | instantiate the configuration file FILE |
e6cc62c6 | 37550 | --header=FILE[:TEMPLATE] |
789c5f4a | 37551 | instantiate the configuration header FILE |
e6cc62c6 VS |
37552 | |
37553 | Configuration files: | |
37554 | $config_files | |
37555 | ||
37556 | Configuration headers: | |
37557 | $config_headers | |
37558 | ||
37559 | Configuration commands: | |
37560 | $config_commands | |
37561 | ||
37562 | Report bugs to <bug-autoconf@gnu.org>." | |
37563 | _ACEOF | |
37564 | ||
37565 | cat >>$CONFIG_STATUS <<_ACEOF | |
37566 | ac_cs_version="\\ | |
e46d2a18 | 37567 | wxWindows config.status 2.5.1 |
789c5f4a | 37568 | configured by $0, generated by GNU Autoconf 2.57, |
e6cc62c6 VS |
37569 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
37570 | ||
789c5f4a VZ |
37571 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
37572 | Free Software Foundation, Inc. | |
e6cc62c6 VS |
37573 | This config.status script is free software; the Free Software Foundation |
37574 | gives unlimited permission to copy, distribute and modify it." | |
37575 | srcdir=$srcdir | |
37576 | INSTALL="$INSTALL" | |
37577 | _ACEOF | |
37578 | ||
37579 | cat >>$CONFIG_STATUS <<\_ACEOF | |
37580 | # If no file are specified by the user, then we need to provide default | |
37581 | # value. By we need to know if files were specified by the user. | |
37582 | ac_need_defaults=: | |
37583 | while test $# != 0 | |
37584 | do | |
37585 | case $1 in | |
37586 | --*=*) | |
37587 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
37588 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
37589 | ac_shift=: | |
37590 | ;; | |
37591 | -*) | |
37592 | ac_option=$1 | |
37593 | ac_optarg=$2 | |
37594 | ac_shift=shift | |
37595 | ;; | |
37596 | *) # This is not an option, so the user has probably given explicit | |
37597 | # arguments. | |
37598 | ac_option=$1 | |
37599 | ac_need_defaults=false;; | |
37600 | esac | |
37601 | ||
37602 | case $ac_option in | |
37603 | # Handling of the options. | |
37604 | _ACEOF | |
37605 | cat >>$CONFIG_STATUS <<\_ACEOF | |
37606 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
37607 | ac_cs_recheck=: ;; | |
37608 | --version | --vers* | -V ) | |
37609 | echo "$ac_cs_version"; exit 0 ;; | |
37610 | --he | --h) | |
37611 | # Conflict between --help and --header | |
37612 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
37613 | Try \`$0 --help' for more information." >&5 | |
37614 | echo "$as_me: error: ambiguous option: $1 | |
37615 | Try \`$0 --help' for more information." >&2;} | |
37616 | { (exit 1); exit 1; }; };; | |
37617 | --help | --hel | -h ) | |
37618 | echo "$ac_cs_usage"; exit 0 ;; | |
37619 | --debug | --d* | -d ) | |
37620 | debug=: ;; | |
37621 | --file | --fil | --fi | --f ) | |
37622 | $ac_shift | |
37623 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
37624 | ac_need_defaults=false;; | |
37625 | --header | --heade | --head | --hea ) | |
37626 | $ac_shift | |
37627 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
37628 | ac_need_defaults=false;; | |
37629 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
37630 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
37631 | ac_cs_silent=: ;; | |
37632 | ||
37633 | # This is an error. | |
37634 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
37635 | Try \`$0 --help' for more information." >&5 | |
37636 | echo "$as_me: error: unrecognized option: $1 | |
37637 | Try \`$0 --help' for more information." >&2;} | |
37638 | { (exit 1); exit 1; }; } ;; | |
37639 | ||
37640 | *) ac_config_targets="$ac_config_targets $1" ;; | |
37641 | ||
37642 | esac | |
37643 | shift | |
37644 | done | |
37645 | ||
37646 | ac_configure_extra_args= | |
37647 | ||
37648 | if $ac_cs_silent; then | |
37649 | exec 6>/dev/null | |
37650 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
fe0895cf VS |
37651 | fi |
37652 | ||
e6cc62c6 VS |
37653 | _ACEOF |
37654 | cat >>$CONFIG_STATUS <<_ACEOF | |
37655 | if \$ac_cs_recheck; then | |
37656 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
37657 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
fe0895cf VS |
37658 | fi |
37659 | ||
e6cc62c6 | 37660 | _ACEOF |
fe0895cf | 37661 | |
e6cc62c6 | 37662 | cat >>$CONFIG_STATUS <<_ACEOF |
10f2d63a | 37663 | # |
e6cc62c6 | 37664 | # INIT-COMMANDS section. |
10f2d63a | 37665 | # |
10f2d63a | 37666 | |
a0b9e27f | 37667 | |
e6cc62c6 VS |
37668 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" |
37669 | LN_S="${LN_S}" | |
10f2d63a | 37670 | |
10f2d63a | 37671 | |
10f2d63a | 37672 | |
e6cc62c6 | 37673 | _ACEOF |
8284b0c5 | 37674 | |
52127426 | 37675 | |
247f5006 | 37676 | |
e6cc62c6 VS |
37677 | cat >>$CONFIG_STATUS <<\_ACEOF |
37678 | for ac_config_target in $ac_config_targets | |
247f5006 | 37679 | do |
e6cc62c6 VS |
37680 | case "$ac_config_target" in |
37681 | # Handling of arguments. | |
81345eef VZ |
37682 | "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;; |
37683 | "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;; | |
37684 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
9747f85d | 37685 | "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;; |
e6cc62c6 VS |
37686 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
37687 | "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;; | |
37688 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
37689 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
37690 | { (exit 1); exit 1; }; };; | |
247f5006 VZ |
37691 | esac |
37692 | done | |
37693 | ||
e6cc62c6 VS |
37694 | # If the user did not use the arguments to specify the items to instantiate, |
37695 | # then the envvar interface is used. Set only those that are not. | |
37696 | # We use the long form for the default assignment because of an extremely | |
37697 | # bizarre bug on SunOS 4.1.3. | |
37698 | if $ac_need_defaults; then | |
37699 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
37700 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
37701 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
37702 | fi | |
37703 | ||
37704 | # Have a temporary directory for convenience. Make it in the build tree | |
37705 | # simply because there is no reason to put it here, and in addition, | |
37706 | # creating and moving files from /tmp can sometimes cause problems. | |
37707 | # Create a temporary directory, and hook for its removal unless debugging. | |
37708 | $debug || | |
37709 | { | |
37710 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
37711 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
37712 | } | |
247f5006 | 37713 | |
e6cc62c6 | 37714 | # Create a (secure) tmp directory for tmp files. |
247f5006 | 37715 | |
e6cc62c6 VS |
37716 | { |
37717 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
37718 | test -n "$tmp" && test -d "$tmp" | |
37719 | } || | |
37720 | { | |
37721 | tmp=./confstat$$-$RANDOM | |
37722 | (umask 077 && mkdir $tmp) | |
37723 | } || | |
37724 | { | |
37725 | echo "$me: cannot create a temporary directory in ." >&2 | |
37726 | { (exit 1); exit 1; } | |
37727 | } | |
37728 | ||
37729 | _ACEOF | |
37730 | ||
37731 | cat >>$CONFIG_STATUS <<_ACEOF | |
37732 | ||
37733 | # | |
37734 | # CONFIG_FILES section. | |
37735 | # | |
247f5006 | 37736 | |
e6cc62c6 VS |
37737 | # No need to generate the scripts if there are no CONFIG_FILES. |
37738 | # This happens for instance when ./config.status config.h | |
37739 | if test -n "\$CONFIG_FILES"; then | |
37740 | # Protect against being on the right side of a sed subst in config.status. | |
37741 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
37742 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
37743 | s,@SHELL@,$SHELL,;t t | |
37744 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
37745 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
37746 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
37747 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
37748 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
37749 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
37750 | s,@exec_prefix@,$exec_prefix,;t t | |
37751 | s,@prefix@,$prefix,;t t | |
37752 | s,@program_transform_name@,$program_transform_name,;t t | |
37753 | s,@bindir@,$bindir,;t t | |
37754 | s,@sbindir@,$sbindir,;t t | |
37755 | s,@libexecdir@,$libexecdir,;t t | |
37756 | s,@datadir@,$datadir,;t t | |
37757 | s,@sysconfdir@,$sysconfdir,;t t | |
37758 | s,@sharedstatedir@,$sharedstatedir,;t t | |
37759 | s,@localstatedir@,$localstatedir,;t t | |
37760 | s,@libdir@,$libdir,;t t | |
37761 | s,@includedir@,$includedir,;t t | |
37762 | s,@oldincludedir@,$oldincludedir,;t t | |
37763 | s,@infodir@,$infodir,;t t | |
37764 | s,@mandir@,$mandir,;t t | |
37765 | s,@build_alias@,$build_alias,;t t | |
37766 | s,@host_alias@,$host_alias,;t t | |
37767 | s,@target_alias@,$target_alias,;t t | |
37768 | s,@DEFS@,$DEFS,;t t | |
37769 | s,@ECHO_C@,$ECHO_C,;t t | |
37770 | s,@ECHO_N@,$ECHO_N,;t t | |
37771 | s,@ECHO_T@,$ECHO_T,;t t | |
37772 | s,@LIBS@,$LIBS,;t t | |
37773 | s,@build@,$build,;t t | |
37774 | s,@build_cpu@,$build_cpu,;t t | |
37775 | s,@build_vendor@,$build_vendor,;t t | |
37776 | s,@build_os@,$build_os,;t t | |
37777 | s,@host@,$host,;t t | |
37778 | s,@host_cpu@,$host_cpu,;t t | |
37779 | s,@host_vendor@,$host_vendor,;t t | |
37780 | s,@host_os@,$host_os,;t t | |
37781 | s,@target@,$target,;t t | |
37782 | s,@target_cpu@,$target_cpu,;t t | |
37783 | s,@target_vendor@,$target_vendor,;t t | |
37784 | s,@target_os@,$target_os,;t t | |
37785 | s,@CC@,$CC,;t t | |
37786 | s,@CFLAGS@,$CFLAGS,;t t | |
37787 | s,@LDFLAGS@,$LDFLAGS,;t t | |
37788 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
37789 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
37790 | s,@EXEEXT@,$EXEEXT,;t t | |
37791 | s,@OBJEXT@,$OBJEXT,;t t | |
37792 | s,@CPP@,$CPP,;t t | |
37793 | s,@EGREP@,$EGREP,;t t | |
37794 | s,@CXX@,$CXX,;t t | |
37795 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
37796 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
37797 | s,@RANLIB@,$RANLIB,;t t | |
37798 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
37799 | s,@AR@,$AR,;t t | |
37800 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
37801 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
37802 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
37803 | s,@STRIP@,$STRIP,;t t | |
37804 | s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t | |
e6cc62c6 VS |
37805 | s,@LN_S@,$LN_S,;t t |
37806 | s,@CXXCPP@,$CXXCPP,;t t | |
672abd7a | 37807 | s,@subdirs@,$subdirs,;t t |
e6cc62c6 VS |
37808 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t |
37809 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
37810 | s,@GTK_LIBS@,$GTK_LIBS,;t t | |
37811 | s,@GTK_CONFIG@,$GTK_CONFIG,;t t | |
37812 | s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t | |
37813 | s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t | |
37814 | s,@X_CFLAGS@,$X_CFLAGS,;t t | |
37815 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t | |
37816 | s,@X_LIBS@,$X_LIBS,;t t | |
37817 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t | |
37818 | s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t | |
37819 | s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t | |
37820 | s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t | |
37821 | s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t | |
e6cc62c6 VS |
37822 | s,@RESCOMP@,$RESCOMP,;t t |
37823 | s,@DEREZ@,$DEREZ,;t t | |
37824 | s,@SETFILE@,$SETFILE,;t t | |
37825 | s,@LIBICONV@,$LIBICONV,;t t | |
edd891e2 | 37826 | s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t |
f93ca9fd VS |
37827 | s,@SDL_CONFIG@,$SDL_CONFIG,;t t |
37828 | s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t | |
37829 | s,@SDL_LIBS@,$SDL_LIBS,;t t | |
edd891e2 VS |
37830 | s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t |
37831 | s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t | |
e6cc62c6 VS |
37832 | s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t |
37833 | s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t | |
672abd7a | 37834 | s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t |
e6cc62c6 VS |
37835 | s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t |
37836 | s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t | |
37837 | s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t | |
37838 | s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t | |
8ee2dd05 VS |
37839 | s,@VENDOR@,$VENDOR,;t t |
37840 | s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t | |
e6cc62c6 VS |
37841 | s,@WXUNIV@,$WXUNIV,;t t |
37842 | s,@MONOLITHIC@,$MONOLITHIC,;t t | |
f93ca9fd | 37843 | s,@USE_PLUGINS@,$USE_PLUGINS,;t t |
e6cc62c6 | 37844 | s,@EXTRALIBS@,$EXTRALIBS,;t t |
672abd7a | 37845 | s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t |
3527f29c | 37846 | s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t |
bb41dcbe | 37847 | s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t |
c74dc163 | 37848 | s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t |
34b08d2c | 37849 | s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t |
f93ca9fd VS |
37850 | s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t |
37851 | s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t | |
e6cc62c6 VS |
37852 | s,@UNICODE@,$UNICODE,;t t |
37853 | s,@BUILD@,$BUILD,;t t | |
6c67131a VS |
37854 | s,@DEBUG_INFO@,$DEBUG_INFO,;t t |
37855 | s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t | |
e6cc62c6 VS |
37856 | s,@SHARED@,$SHARED,;t t |
37857 | s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t | |
37858 | s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t | |
37859 | s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t | |
0f1bc9c2 | 37860 | s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t |
ea66c762 | 37861 | s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t |
e6cc62c6 VS |
37862 | s,@SET_MAKE@,$SET_MAKE,;t t |
37863 | s,@MAKE_SET@,$MAKE_SET,;t t | |
874d12cf VS |
37864 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
37865 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
37866 | s,@NM@,$NM,;t t | |
37867 | s,@ac_ct_NM@,$ac_ct_NM,;t t | |
e6cc62c6 | 37868 | s,@INSTALL_DIR@,$INSTALL_DIR,;t t |
6b9d41a5 | 37869 | s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t |
e6cc62c6 VS |
37870 | s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t |
37871 | s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t | |
37872 | s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t | |
37873 | s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t | |
37874 | s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t | |
96c1699d | 37875 | s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t |
e6cc62c6 | 37876 | s,@SO_SUFFIX@,$SO_SUFFIX,;t t |
131f235d | 37877 | s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t |
4b1f6360 | 37878 | s,@LIBPREFIX@,$LIBPREFIX,;t t |
e6cc62c6 | 37879 | s,@DLLPREFIX@,$DLLPREFIX,;t t |
131f235d | 37880 | s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t |
dc838d98 | 37881 | s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t |
e6cc62c6 VS |
37882 | s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t |
37883 | s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t | |
131f235d VS |
37884 | s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t |
37885 | s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t | |
e6cc62c6 VS |
37886 | s,@PIC_FLAG@,$PIC_FLAG,;t t |
37887 | s,@USE_SOVERSION@,$USE_SOVERSION,;t t | |
37888 | s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t | |
37889 | s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t | |
37890 | s,@USE_MACVERSION@,$USE_MACVERSION,;t t | |
37891 | s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t | |
37892 | s,@SONAME_FLAG@,$SONAME_FLAG,;t t | |
49b0a3aa | 37893 | s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t |
45842500 | 37894 | s,@GCC_PCH@,$GCC_PCH,;t t |
d78c94f2 | 37895 | s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t |
6c67131a VS |
37896 | s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t |
37897 | s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t | |
f93ca9fd VS |
37898 | s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t |
37899 | s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t | |
d78c94f2 | 37900 | s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t |
6c67131a | 37901 | s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t |
f93ca9fd VS |
37902 | s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t |
37903 | s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t | |
6c67131a VS |
37904 | s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t |
37905 | s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t | |
37906 | s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t | |
f95cd8fa | 37907 | s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t |
8ee2dd05 | 37908 | s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t |
45842500 | 37909 | s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t |
6f628073 | 37910 | s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t |
6f628073 VS |
37911 | s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t |
37912 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t | |
8772a1a7 | 37913 | 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 | 37914 | s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t |
eb69fda5 | 37915 | s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t |
8ee2dd05 | 37916 | s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t |
6f628073 | 37917 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t |
8772a1a7 | 37918 | 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 | 37919 | s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t |
eb69fda5 | 37920 | s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t |
f95e4495 | 37921 | s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t |
3af038c0 | 37922 | s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t |
6f628073 VS |
37923 | s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t |
37924 | s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t | |
3af038c0 VS |
37925 | s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t |
37926 | s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t | |
6f628073 | 37927 | s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t |
3af038c0 | 37928 | s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t |
250700e4 RD |
37929 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t |
37930 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t | |
37931 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t | |
3527f29c | 37932 | s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t |
8ee2dd05 | 37933 | s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t |
45842500 | 37934 | s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t |
3d8c1de0 | 37935 | s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t |
8772a1a7 | 37936 | s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t |
3af038c0 | 37937 | s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t |
3527f29c | 37938 | s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t |
f93ca9fd | 37939 | s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t |
3af038c0 VS |
37940 | s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t |
37941 | s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t | |
45842500 | 37942 | s,@COND_SHARED_0@,$COND_SHARED_0,;t t |
250700e4 | 37943 | s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t |
52a5a009 VS |
37944 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t |
37945 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
37946 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
37947 | s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t | |
37948 | s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t | |
37949 | s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t | |
37950 | s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t | |
45842500 | 37951 | s,@COND_SHARED_1@,$COND_SHARED_1,;t t |
250700e4 | 37952 | s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t |
6f628073 VS |
37953 | s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t |
37954 | s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t | |
37955 | s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t | |
37956 | s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t | |
8ee2dd05 | 37957 | s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t |
3af038c0 | 37958 | s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t |
8772a1a7 | 37959 | s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t |
6f628073 VS |
37960 | s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t |
37961 | s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t | |
37962 | s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t | |
6f628073 VS |
37963 | s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t |
37964 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t | |
37965 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t | |
8ee2dd05 | 37966 | s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t |
6f628073 VS |
37967 | s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t |
37968 | s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t | |
96c1699d VS |
37969 | s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t |
37970 | s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t | |
37971 | s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t | |
6f628073 VS |
37972 | s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t |
37973 | s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t | |
3af038c0 | 37974 | s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t |
7015ef3a VZ |
37975 | s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t |
37976 | s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t | |
3af038c0 VS |
37977 | s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t |
37978 | s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t | |
9747f85d VS |
37979 | s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t |
37980 | s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t | |
66a96744 VS |
37981 | s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t |
37982 | s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
37983 | s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
57e7d4ac | 37984 | s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t |
f93ca9fd | 37985 | s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t |
6f628073 VS |
37986 | s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t |
37987 | s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t | |
37988 | s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t | |
37989 | s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t | |
f93ca9fd VS |
37990 | s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t |
37991 | s,@COND_WITH_SDL_1@,$COND_WITH_SDL_1,;t t | |
3af038c0 | 37992 | s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t |
66a96744 | 37993 | s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t |
3af038c0 VS |
37994 | s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t |
37995 | s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t | |
37996 | s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t | |
37997 | s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t | |
37998 | s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t | |
37999 | s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t | |
e6cc62c6 VS |
38000 | s,@PATH_IFS@,$PATH_IFS,;t t |
38001 | s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t | |
38002 | s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t | |
38003 | s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t | |
38004 | s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t | |
38005 | s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t | |
cf615ebb VS |
38006 | s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t |
38007 | s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t | |
e6cc62c6 VS |
38008 | s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t |
38009 | s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t | |
38010 | s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t | |
38011 | s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t | |
38012 | s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t | |
38013 | s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t | |
38014 | s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t | |
38015 | s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t | |
38016 | s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t | |
38017 | s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t | |
38018 | s,@WX_ALL@,$WX_ALL,;t t | |
38019 | s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t | |
38020 | s,@SHARED_LD@,$SHARED_LD,;t t | |
e6cc62c6 VS |
38021 | s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t |
38022 | s,@STATIC_FLAG@,$STATIC_FLAG,;t t | |
38023 | s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t | |
38024 | s,@USE_GUI@,$USE_GUI,;t t | |
38025 | s,@AFMINSTALL@,$AFMINSTALL,;t t | |
38026 | s,@WIN32INSTALL@,$WIN32INSTALL,;t t | |
38027 | s,@TOOLKIT@,$TOOLKIT,;t t | |
38028 | s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t | |
38029 | s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t | |
38030 | s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t | |
38031 | s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t | |
38032 | s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t | |
38033 | s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t | |
38034 | s,@cross_compiling@,$cross_compiling,;t t | |
67c13b6c | 38035 | s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t |
e6cc62c6 VS |
38036 | s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t |
38037 | s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t | |
38038 | s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t | |
38039 | s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t | |
38040 | s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t | |
38041 | s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t | |
ffef10f6 | 38042 | s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t |
e6cc62c6 | 38043 | s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t |
f0290fca VS |
38044 | s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t |
38045 | s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t | |
e6cc62c6 VS |
38046 | s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t |
38047 | s,@ALL_HEADERS@,$ALL_HEADERS,;t t | |
38048 | s,@ALL_SOURCES@,$ALL_SOURCES,;t t | |
38049 | s,@GUIDIST@,$GUIDIST,;t t | |
38050 | s,@PORT_FILES@,$PORT_FILES,;t t | |
38051 | s,@DISTDIR@,$DISTDIR,;t t | |
38052 | s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t | |
38053 | s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t | |
38054 | s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t | |
38055 | s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t | |
38056 | s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t | |
38057 | s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t | |
38058 | s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t | |
38059 | s,@RESFLAGS@,$RESFLAGS,;t t | |
38060 | s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t | |
38061 | s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t | |
38062 | s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t | |
e6cc62c6 VS |
38063 | s,@LIBWXMACRES@,$LIBWXMACRES,;t t |
38064 | s,@MACRESCOMP@,$MACRESCOMP,;t t | |
38065 | s,@MACSETFILE@,$MACSETFILE,;t t | |
38066 | s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t | |
38067 | s,@GCC@,$GCC,;t t | |
38068 | s,@DLLTOOL@,$DLLTOOL,;t t | |
38069 | s,@AS@,$AS,;t t | |
e6cc62c6 VS |
38070 | s,@LD@,$LD,;t t |
38071 | s,@MAKEINFO@,$MAKEINFO,;t t | |
38072 | s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t | |
e6cc62c6 VS |
38073 | s,@LIBOBJS@,$LIBOBJS,;t t |
38074 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
247f5006 VZ |
38075 | CEOF |
38076 | ||
e6cc62c6 VS |
38077 | _ACEOF |
38078 | ||
38079 | cat >>$CONFIG_STATUS <<\_ACEOF | |
38080 | # Split the substitutions into bite-sized pieces for seds with | |
38081 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
38082 | ac_max_sed_lines=48 | |
38083 | ac_sed_frag=1 # Number of current file. | |
38084 | ac_beg=1 # First line for current file. | |
38085 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
38086 | ac_more_lines=: | |
38087 | ac_sed_cmds= | |
38088 | while $ac_more_lines; do | |
38089 | if test $ac_beg -gt 1; then | |
38090 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
247f5006 | 38091 | else |
e6cc62c6 VS |
38092 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
38093 | fi | |
38094 | if test ! -s $tmp/subs.frag; then | |
38095 | ac_more_lines=false | |
38096 | else | |
38097 | # The purpose of the label and of the branching condition is to | |
38098 | # speed up the sed processing (if there are no `@' at all, there | |
38099 | # is no need to browse any of the substitutions). | |
38100 | # These are the two extra sed commands mentioned above. | |
38101 | (echo ':t | |
38102 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
38103 | if test -z "$ac_sed_cmds"; then | |
789c5f4a | 38104 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
e6cc62c6 | 38105 | else |
789c5f4a | 38106 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
e6cc62c6 VS |
38107 | fi |
38108 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
38109 | ac_beg=$ac_end | |
38110 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
247f5006 | 38111 | fi |
e6cc62c6 VS |
38112 | done |
38113 | if test -z "$ac_sed_cmds"; then | |
38114 | ac_sed_cmds=cat | |
10f2d63a | 38115 | fi |
e6cc62c6 | 38116 | fi # test -n "$CONFIG_FILES" |
10f2d63a | 38117 | |
e6cc62c6 VS |
38118 | _ACEOF |
38119 | cat >>$CONFIG_STATUS <<\_ACEOF | |
38120 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
a0b9e27f | 38121 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
e6cc62c6 VS |
38122 | case $ac_file in |
38123 | - | *:- | *:-:* ) # input from stdin | |
789c5f4a VZ |
38124 | cat >$tmp/stdin |
38125 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
38126 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
e6cc62c6 | 38127 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
789c5f4a | 38128 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
e6cc62c6 | 38129 | * ) ac_file_in=$ac_file.in ;; |
10f2d63a | 38130 | esac |
247f5006 | 38131 | |
e6cc62c6 VS |
38132 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
38133 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
38134 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
789c5f4a VZ |
38135 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
38136 | X"$ac_file" : 'X\(//\)$' \| \ | |
38137 | X"$ac_file" : 'X\(/\)' \| \ | |
38138 | . : '\(.\)' 2>/dev/null || | |
e6cc62c6 VS |
38139 | echo X"$ac_file" | |
38140 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
38141 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
38142 | /^X\(\/\/\)$/{ s//\1/; q; } | |
38143 | /^X\(\/\).*/{ s//\1/; q; } | |
38144 | s/.*/./; q'` | |
38145 | { if $as_mkdir_p; then | |
38146 | mkdir -p "$ac_dir" | |
a0b9e27f | 38147 | else |
e6cc62c6 VS |
38148 | as_dir="$ac_dir" |
38149 | as_dirs= | |
38150 | while test ! -d "$as_dir"; do | |
38151 | as_dirs="$as_dir $as_dirs" | |
38152 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
38153 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
789c5f4a VZ |
38154 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
38155 | X"$as_dir" : 'X\(//\)$' \| \ | |
38156 | X"$as_dir" : 'X\(/\)' \| \ | |
38157 | . : '\(.\)' 2>/dev/null || | |
e6cc62c6 VS |
38158 | echo X"$as_dir" | |
38159 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
38160 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
38161 | /^X\(\/\/\)$/{ s//\1/; q; } | |
38162 | /^X\(\/\).*/{ s//\1/; q; } | |
38163 | s/.*/./; q'` | |
38164 | done | |
38165 | test ! -n "$as_dirs" || mkdir $as_dirs | |
38166 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
38167 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
38168 | { (exit 1); exit 1; }; }; } | |
38169 | ||
38170 | ac_builddir=. | |
38171 | ||
38172 | if test "$ac_dir" != .; then | |
38173 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
38174 | # A "../" for each directory in $ac_dir_suffix. | |
38175 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
38176 | else | |
38177 | ac_dir_suffix= ac_top_builddir= | |
38178 | fi | |
247f5006 | 38179 | |
e6cc62c6 VS |
38180 | case $srcdir in |
38181 | .) # No --srcdir option. We are building in place. | |
38182 | ac_srcdir=. | |
38183 | if test -z "$ac_top_builddir"; then | |
38184 | ac_top_srcdir=. | |
38185 | else | |
38186 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
38187 | fi ;; | |
38188 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
38189 | ac_srcdir=$srcdir$ac_dir_suffix; | |
38190 | ac_top_srcdir=$srcdir ;; | |
247f5006 | 38191 | *) # Relative path. |
e6cc62c6 VS |
38192 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
38193 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
38194 | esac | |
789c5f4a VZ |
38195 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
38196 | # absolute. | |
38197 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
38198 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | |
38199 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
38200 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
10f2d63a | 38201 | |
247f5006 | 38202 | |
e6cc62c6 VS |
38203 | case $INSTALL in |
38204 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
38205 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
a0b9e27f | 38206 | esac |
247f5006 | 38207 | |
e6cc62c6 VS |
38208 | if test x"$ac_file" != x-; then |
38209 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
38210 | echo "$as_me: creating $ac_file" >&6;} | |
38211 | rm -f "$ac_file" | |
38212 | fi | |
38213 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
38214 | # use $as_me), people would be surprised to read: | |
38215 | # /* config.h. Generated by config.status. */ | |
38216 | if test x"$ac_file" = x-; then | |
38217 | configure_input= | |
38218 | else | |
38219 | configure_input="$ac_file. " | |
38220 | fi | |
38221 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
789c5f4a | 38222 | sed 's,.*/,,'` by configure." |
e6cc62c6 VS |
38223 | |
38224 | # First look for the input files in the build tree, otherwise in the | |
38225 | # src tree. | |
38226 | ac_file_inputs=`IFS=: | |
38227 | for f in $ac_file_in; do | |
38228 | case $f in | |
38229 | -) echo $tmp/stdin ;; | |
38230 | [\\/$]*) | |
789c5f4a VZ |
38231 | # Absolute (can't be DOS-style, as IFS=:) |
38232 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
e6cc62c6 VS |
38233 | echo "$as_me: error: cannot find input file: $f" >&2;} |
38234 | { (exit 1); exit 1; }; } | |
789c5f4a | 38235 | echo $f;; |
e6cc62c6 | 38236 | *) # Relative |
789c5f4a VZ |
38237 | if test -f "$f"; then |
38238 | # Build tree | |
38239 | echo $f | |
38240 | elif test -f "$srcdir/$f"; then | |
38241 | # Source tree | |
38242 | echo $srcdir/$f | |
38243 | else | |
38244 | # /dev/null tree | |
38245 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
e6cc62c6 VS |
38246 | echo "$as_me: error: cannot find input file: $f" >&2;} |
38247 | { (exit 1); exit 1; }; } | |
789c5f4a | 38248 | fi;; |
e6cc62c6 VS |
38249 | esac |
38250 | done` || { (exit 1); exit 1; } | |
38251 | _ACEOF | |
38252 | cat >>$CONFIG_STATUS <<_ACEOF | |
38253 | sed "$ac_vpsub | |
38254 | $extrasub | |
38255 | _ACEOF | |
38256 | cat >>$CONFIG_STATUS <<\_ACEOF | |
38257 | :t | |
38258 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
38259 | s,@configure_input@,$configure_input,;t t | |
38260 | s,@srcdir@,$ac_srcdir,;t t | |
38261 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
38262 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
38263 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
38264 | s,@builddir@,$ac_builddir,;t t | |
38265 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
38266 | s,@top_builddir@,$ac_top_builddir,;t t | |
38267 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
38268 | s,@INSTALL@,$ac_INSTALL,;t t | |
38269 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
38270 | rm -f $tmp/stdin | |
38271 | if test x"$ac_file" != x-; then | |
38272 | mv $tmp/out $ac_file | |
38273 | else | |
38274 | cat $tmp/out | |
38275 | rm -f $tmp/out | |
38276 | fi | |
38277 | ||
38278 | done | |
38279 | _ACEOF | |
38280 | cat >>$CONFIG_STATUS <<\_ACEOF | |
38281 | ||
38282 | # | |
38283 | # CONFIG_HEADER section. | |
38284 | # | |
10f2d63a VZ |
38285 | |
38286 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
38287 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
38288 | # | |
38289 | # ac_d sets the value in "#define NAME VALUE" lines. | |
789c5f4a VZ |
38290 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
38291 | ac_dB='[ ].*$,\1#\2' | |
e6cc62c6 VS |
38292 | ac_dC=' ' |
38293 | ac_dD=',;t' | |
38294 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
789c5f4a | 38295 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
e6cc62c6 | 38296 | ac_uB='$,\1#\2define\3' |
10f2d63a | 38297 | ac_uC=' ' |
e6cc62c6 VS |
38298 | ac_uD=',;t' |
38299 | ||
38300 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
10f2d63a | 38301 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
e6cc62c6 VS |
38302 | case $ac_file in |
38303 | - | *:- | *:-:* ) # input from stdin | |
789c5f4a VZ |
38304 | cat >$tmp/stdin |
38305 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
38306 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
e6cc62c6 | 38307 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
789c5f4a | 38308 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
e6cc62c6 | 38309 | * ) ac_file_in=$ac_file.in ;; |
10f2d63a VZ |
38310 | esac |
38311 | ||
e6cc62c6 VS |
38312 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
38313 | echo "$as_me: creating $ac_file" >&6;} | |
38314 | ||
38315 | # First look for the input files in the build tree, otherwise in the | |
38316 | # src tree. | |
38317 | ac_file_inputs=`IFS=: | |
38318 | for f in $ac_file_in; do | |
38319 | case $f in | |
38320 | -) echo $tmp/stdin ;; | |
38321 | [\\/$]*) | |
789c5f4a VZ |
38322 | # Absolute (can't be DOS-style, as IFS=:) |
38323 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
e6cc62c6 VS |
38324 | echo "$as_me: error: cannot find input file: $f" >&2;} |
38325 | { (exit 1); exit 1; }; } | |
789c5f4a | 38326 | echo $f;; |
e6cc62c6 | 38327 | *) # Relative |
789c5f4a VZ |
38328 | if test -f "$f"; then |
38329 | # Build tree | |
38330 | echo $f | |
38331 | elif test -f "$srcdir/$f"; then | |
38332 | # Source tree | |
38333 | echo $srcdir/$f | |
38334 | else | |
38335 | # /dev/null tree | |
38336 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
e6cc62c6 VS |
38337 | echo "$as_me: error: cannot find input file: $f" >&2;} |
38338 | { (exit 1); exit 1; }; } | |
789c5f4a | 38339 | fi;; |
e6cc62c6 VS |
38340 | esac |
38341 | done` || { (exit 1); exit 1; } | |
38342 | # Remove the trailing spaces. | |
789c5f4a | 38343 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
e6cc62c6 VS |
38344 | |
38345 | _ACEOF | |
38346 | ||
38347 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
38348 | # `conftest.undefs', that substitutes the proper values into | |
38349 | # config.h.in to produce config.h. The first handles `#define' | |
38350 | # templates, and the second `#undef' templates. | |
38351 | # And first: Protect against being on the right side of a sed subst in | |
38352 | # config.status. Protect against being in an unquoted here document | |
38353 | # in config.status. | |
38354 | rm -f conftest.defines conftest.undefs | |
38355 | # Using a here document instead of a string reduces the quoting nightmare. | |
38356 | # Putting comments in sed scripts is not portable. | |
38357 | # | |
38358 | # `end' is used to avoid that the second main sed command (meant for | |
38359 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
38360 | # See the Autoconf documentation for `clear'. | |
38361 | cat >confdef2sed.sed <<\_ACEOF | |
38362 | s/[\\&,]/\\&/g | |
38363 | s,[\\$`],\\&,g | |
38364 | t clear | |
38365 | : clear | |
789c5f4a | 38366 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
e6cc62c6 | 38367 | t end |
789c5f4a | 38368 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
e6cc62c6 VS |
38369 | : end |
38370 | _ACEOF | |
38371 | # If some macros were called several times there might be several times | |
38372 | # the same #defines, which is useless. Nevertheless, we may not want to | |
38373 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
38374 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
38375 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
38376 | rm -f confdef2sed.sed | |
10f2d63a VZ |
38377 | |
38378 | # This sed command replaces #undef with comments. This is necessary, for | |
38379 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
38380 | # on some systems where configure will not decide to define it. | |
e6cc62c6 | 38381 | cat >>conftest.undefs <<\_ACEOF |
789c5f4a | 38382 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
e6cc62c6 VS |
38383 | _ACEOF |
38384 | ||
38385 | # Break up conftest.defines because some shells have a limit on the size | |
38386 | # of here documents, and old seds have small limits too (100 cmds). | |
38387 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
789c5f4a | 38388 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
e6cc62c6 VS |
38389 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
38390 | echo ' :' >>$CONFIG_STATUS | |
38391 | rm -f conftest.tail | |
38392 | while grep . conftest.defines >/dev/null | |
38393 | do | |
38394 | # Write a limited-size here document to $tmp/defines.sed. | |
38395 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
38396 | # Speed up: don't consider the non `#define' lines. | |
789c5f4a | 38397 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
e6cc62c6 VS |
38398 | # Work around the forget-to-reset-the-flag bug. |
38399 | echo 't clr' >>$CONFIG_STATUS | |
38400 | echo ': clr' >>$CONFIG_STATUS | |
38401 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
38402 | echo 'CEOF | |
38403 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
38404 | rm -f $tmp/in | |
38405 | mv $tmp/out $tmp/in | |
38406 | ' >>$CONFIG_STATUS | |
38407 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
38408 | rm -f conftest.defines | |
38409 | mv conftest.tail conftest.defines | |
38410 | done | |
38411 | rm -f conftest.defines | |
38412 | echo ' fi # grep' >>$CONFIG_STATUS | |
38413 | echo >>$CONFIG_STATUS | |
10f2d63a | 38414 | |
e6cc62c6 VS |
38415 | # Break up conftest.undefs because some shells have a limit on the size |
38416 | # of here documents, and old seds have small limits too (100 cmds). | |
38417 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
10f2d63a | 38418 | rm -f conftest.tail |
e6cc62c6 | 38419 | while grep . conftest.undefs >/dev/null |
10f2d63a | 38420 | do |
e6cc62c6 VS |
38421 | # Write a limited-size here document to $tmp/undefs.sed. |
38422 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
38423 | # Speed up: don't consider the non `#undef' | |
789c5f4a | 38424 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
e6cc62c6 VS |
38425 | # Work around the forget-to-reset-the-flag bug. |
38426 | echo 't clr' >>$CONFIG_STATUS | |
38427 | echo ': clr' >>$CONFIG_STATUS | |
38428 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
10f2d63a | 38429 | echo 'CEOF |
e6cc62c6 VS |
38430 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
38431 | rm -f $tmp/in | |
38432 | mv $tmp/out $tmp/in | |
38433 | ' >>$CONFIG_STATUS | |
38434 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
38435 | rm -f conftest.undefs | |
38436 | mv conftest.tail conftest.undefs | |
10f2d63a | 38437 | done |
e6cc62c6 VS |
38438 | rm -f conftest.undefs |
38439 | ||
38440 | cat >>$CONFIG_STATUS <<\_ACEOF | |
38441 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
38442 | # use $as_me), people would be surprised to read: | |
38443 | # /* config.h. Generated by config.status. */ | |
38444 | if test x"$ac_file" = x-; then | |
38445 | echo "/* Generated by configure. */" >$tmp/config.h | |
10f2d63a | 38446 | else |
e6cc62c6 | 38447 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
247f5006 | 38448 | fi |
e6cc62c6 VS |
38449 | cat $tmp/in >>$tmp/config.h |
38450 | rm -f $tmp/in | |
38451 | if test x"$ac_file" != x-; then | |
38452 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
38453 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
38454 | echo "$as_me: $ac_file is unchanged" >&6;} | |
38455 | else | |
38456 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
38457 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
789c5f4a VZ |
38458 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
38459 | X"$ac_file" : 'X\(//\)$' \| \ | |
38460 | X"$ac_file" : 'X\(/\)' \| \ | |
38461 | . : '\(.\)' 2>/dev/null || | |
e6cc62c6 VS |
38462 | echo X"$ac_file" | |
38463 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
38464 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
38465 | /^X\(\/\/\)$/{ s//\1/; q; } | |
38466 | /^X\(\/\).*/{ s//\1/; q; } | |
38467 | s/.*/./; q'` | |
38468 | { if $as_mkdir_p; then | |
38469 | mkdir -p "$ac_dir" | |
38470 | else | |
38471 | as_dir="$ac_dir" | |
38472 | as_dirs= | |
38473 | while test ! -d "$as_dir"; do | |
38474 | as_dirs="$as_dir $as_dirs" | |
38475 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
38476 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
789c5f4a VZ |
38477 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
38478 | X"$as_dir" : 'X\(//\)$' \| \ | |
38479 | X"$as_dir" : 'X\(/\)' \| \ | |
38480 | . : '\(.\)' 2>/dev/null || | |
e6cc62c6 VS |
38481 | echo X"$as_dir" | |
38482 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
38483 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
38484 | /^X\(\/\/\)$/{ s//\1/; q; } | |
38485 | /^X\(\/\).*/{ s//\1/; q; } | |
38486 | s/.*/./; q'` | |
38487 | done | |
38488 | test ! -n "$as_dirs" || mkdir $as_dirs | |
38489 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
38490 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
38491 | { (exit 1); exit 1; }; }; } | |
a0b9e27f | 38492 | |
e6cc62c6 VS |
38493 | rm -f $ac_file |
38494 | mv $tmp/config.h $ac_file | |
38495 | fi | |
38496 | else | |
38497 | cat $tmp/config.h | |
38498 | rm -f $tmp/config.h | |
38499 | fi | |
38500 | done | |
38501 | _ACEOF | |
38502 | cat >>$CONFIG_STATUS <<\_ACEOF | |
10f2d63a | 38503 | |
e6cc62c6 VS |
38504 | # |
38505 | # CONFIG_COMMANDS section. | |
38506 | # | |
38507 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
38508 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
38509 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
38510 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
38511 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
789c5f4a VZ |
38512 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
38513 | X"$ac_dest" : 'X\(//\)$' \| \ | |
38514 | X"$ac_dest" : 'X\(/\)' \| \ | |
38515 | . : '\(.\)' 2>/dev/null || | |
e6cc62c6 VS |
38516 | echo X"$ac_dest" | |
38517 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
38518 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
38519 | /^X\(\/\/\)$/{ s//\1/; q; } | |
38520 | /^X\(\/\).*/{ s//\1/; q; } | |
38521 | s/.*/./; q'` | |
38522 | ac_builddir=. | |
38523 | ||
38524 | if test "$ac_dir" != .; then | |
38525 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
38526 | # A "../" for each directory in $ac_dir_suffix. | |
38527 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
38528 | else | |
38529 | ac_dir_suffix= ac_top_builddir= | |
38530 | fi | |
38531 | ||
38532 | case $srcdir in | |
38533 | .) # No --srcdir option. We are building in place. | |
38534 | ac_srcdir=. | |
38535 | if test -z "$ac_top_builddir"; then | |
38536 | ac_top_srcdir=. | |
38537 | else | |
38538 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
38539 | fi ;; | |
38540 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
38541 | ac_srcdir=$srcdir$ac_dir_suffix; | |
38542 | ac_top_srcdir=$srcdir ;; | |
38543 | *) # Relative path. | |
38544 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
38545 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
38546 | esac | |
789c5f4a VZ |
38547 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
38548 | # absolute. | |
38549 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
38550 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | |
38551 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
38552 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
e6cc62c6 VS |
38553 | |
38554 | ||
38555 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
38556 | echo "$as_me: executing $ac_dest commands" >&6;} | |
38557 | case $ac_dest in | |
38558 | default ) | |
652d930d | 38559 | if test ! -h wx-config; then |
991a5759 | 38560 | chmod +x wx-config |
3a922bb4 RL |
38561 | mv wx-config wx${TOOLCHAIN_NAME}-config |
38562 | ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config | |
991a5759 | 38563 | fi |
665bbe97 | 38564 | |
00cf1208 RR |
38565 | if test ! -d lib; then |
38566 | mkdir lib | |
38567 | fi | |
38568 | if test ! -d lib/wx; then | |
38569 | mkdir lib/wx | |
38570 | fi | |
38571 | if test ! -d lib/wx/include; then | |
38572 | mkdir lib/wx/include | |
38573 | fi | |
3a922bb4 RL |
38574 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then |
38575 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
00cf1208 | 38576 | fi |
3a922bb4 RL |
38577 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then |
38578 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
00cf1208 RR |
38579 | fi |
38580 | if test -f setup.h; then | |
3a922bb4 | 38581 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h |
00cf1208 | 38582 | fi |
e6cc62c6 VS |
38583 | ;; |
38584 | esac | |
38585 | done | |
38586 | _ACEOF | |
2224580a | 38587 | |
e6cc62c6 | 38588 | cat >>$CONFIG_STATUS <<\_ACEOF |
2224580a | 38589 | |
e6cc62c6 VS |
38590 | { (exit 0); exit 0; } |
38591 | _ACEOF | |
38592 | chmod +x $CONFIG_STATUS | |
38593 | ac_clean_files=$ac_clean_files_save | |
38594 | ||
38595 | ||
38596 | # configure is writing to config.log, and then calls config.status. | |
38597 | # config.status does its own redirection, appending to config.log. | |
38598 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
38599 | # by configure, so config.status won't be able to write to it; its | |
38600 | # output is simply discarded. So we exec the FD to /dev/null, | |
38601 | # effectively closing config.log, so it can be properly (re)opened and | |
38602 | # appended to by config.status. When coming back to configure, we | |
38603 | # need to make the FD available again. | |
38604 | if test "$no_create" != yes; then | |
38605 | ac_cs_success=: | |
38606 | ac_config_status_args= | |
38607 | test "$silent" = yes && | |
38608 | ac_config_status_args="$ac_config_status_args --quiet" | |
38609 | exec 5>/dev/null | |
38610 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
38611 | exec 5>>config.log | |
38612 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
38613 | # would make configure fail if this is the last instruction. | |
38614 | $ac_cs_success || { (exit 1); exit 1; } | |
2224580a VZ |
38615 | fi |
38616 | ||
672abd7a VS |
38617 | # |
38618 | # CONFIG_SUBDIRS section. | |
38619 | # | |
38620 | if test "$no_recursion" != yes; then | |
38621 | ||
38622 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
38623 | ac_sub_configure_args= | |
38624 | ac_prev= | |
38625 | for ac_arg in $ac_configure_args; do | |
38626 | if test -n "$ac_prev"; then | |
38627 | ac_prev= | |
38628 | continue | |
38629 | fi | |
38630 | case $ac_arg in | |
38631 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
38632 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
38633 | ac_prev=cache_file ;; | |
38634 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
38635 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
38636 | | --c=*) | |
38637 | ;; | |
38638 | --config-cache | -C) | |
38639 | ;; | |
38640 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
38641 | ac_prev=srcdir ;; | |
38642 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
38643 | ;; | |
38644 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
38645 | ac_prev=prefix ;; | |
38646 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
38647 | ;; | |
38648 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
38649 | esac | |
38650 | done | |
38651 | ||
38652 | # Always prepend --prefix to ensure using the same prefix | |
38653 | # in subdir configurations. | |
38654 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
38655 | ||
38656 | ac_popdir=`pwd` | |
38657 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
38658 | ||
38659 | # Do not complain, so a configure script can configure whichever | |
38660 | # parts of a large source tree are present. | |
38661 | test -d $srcdir/$ac_dir || continue | |
38662 | ||
38663 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 | |
38664 | echo "$as_me: configuring in $ac_dir" >&6;} | |
38665 | { if $as_mkdir_p; then | |
38666 | mkdir -p "$ac_dir" | |
38667 | else | |
38668 | as_dir="$ac_dir" | |
38669 | as_dirs= | |
38670 | while test ! -d "$as_dir"; do | |
38671 | as_dirs="$as_dir $as_dirs" | |
38672 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
38673 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
789c5f4a VZ |
38674 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
38675 | X"$as_dir" : 'X\(//\)$' \| \ | |
38676 | X"$as_dir" : 'X\(/\)' \| \ | |
38677 | . : '\(.\)' 2>/dev/null || | |
672abd7a VS |
38678 | echo X"$as_dir" | |
38679 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
38680 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
38681 | /^X\(\/\/\)$/{ s//\1/; q; } | |
38682 | /^X\(\/\).*/{ s//\1/; q; } | |
38683 | s/.*/./; q'` | |
38684 | done | |
38685 | test ! -n "$as_dirs" || mkdir $as_dirs | |
38686 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
38687 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
38688 | { (exit 1); exit 1; }; }; } | |
38689 | ||
38690 | ac_builddir=. | |
38691 | ||
38692 | if test "$ac_dir" != .; then | |
38693 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
38694 | # A "../" for each directory in $ac_dir_suffix. | |
38695 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
38696 | else | |
38697 | ac_dir_suffix= ac_top_builddir= | |
38698 | fi | |
38699 | ||
38700 | case $srcdir in | |
38701 | .) # No --srcdir option. We are building in place. | |
38702 | ac_srcdir=. | |
38703 | if test -z "$ac_top_builddir"; then | |
38704 | ac_top_srcdir=. | |
38705 | else | |
38706 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
38707 | fi ;; | |
38708 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
38709 | ac_srcdir=$srcdir$ac_dir_suffix; | |
38710 | ac_top_srcdir=$srcdir ;; | |
38711 | *) # Relative path. | |
38712 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
38713 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
38714 | esac | |
789c5f4a VZ |
38715 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
38716 | # absolute. | |
38717 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
38718 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | |
38719 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
38720 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
672abd7a VS |
38721 | |
38722 | ||
38723 | cd $ac_dir | |
38724 | ||
38725 | # Check for guested configure; otherwise get Cygnus style configure. | |
38726 | if test -f $ac_srcdir/configure.gnu; then | |
38727 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
38728 | elif test -f $ac_srcdir/configure; then | |
38729 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
38730 | elif test -f $ac_srcdir/configure.in; then | |
38731 | ac_sub_configure=$ac_configure | |
38732 | else | |
38733 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | |
38734 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
38735 | ac_sub_configure= | |
38736 | fi | |
38737 | ||
38738 | # The recursion is here. | |
38739 | if test -n "$ac_sub_configure"; then | |
38740 | # Make the cache file name correct relative to the subdirectory. | |
38741 | case $cache_file in | |
38742 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
38743 | *) # Relative path. | |
789c5f4a | 38744 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
672abd7a VS |
38745 | esac |
38746 | ||
38747 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | |
38748 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
38749 | # The eval makes quoting arguments work. | |
38750 | eval $ac_sub_configure $ac_sub_configure_args \ | |
789c5f4a VZ |
38751 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || |
38752 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
672abd7a VS |
38753 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
38754 | { (exit 1); exit 1; }; } | |
38755 | fi | |
38756 | ||
38757 | cd $ac_popdir | |
38758 | done | |
38759 | fi | |
38760 | ||
8284b0c5 | 38761 | |
2b5f62a0 VZ |
38762 | echo |
38763 | echo "Configured wxWindows ${WX_VERSION} for \`${host}'" | |
38764 | echo "" | |
89fe663f | 38765 | echo " Which GUI toolkit should wxWindows use? ${TOOLKIT_LOWERCASE:-base only}" |
9747f85d | 38766 | echo " Should wxWindows be compiled into single library? ${wxUSE_MONOLITHIC:-yes}" |
2b5f62a0 VZ |
38767 | |
38768 | echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}" | |
38769 | echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}" | |
38770 | echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
38771 | ||
0c98a14e | 38772 | echo " What level of wxWindows compatibility should be enabled?" |
65d8ef1e VS |
38773 | echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}" |
38774 | echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}" | |
0c98a14e | 38775 | |
2b5f62a0 VZ |
38776 | echo " Which libraries should wxWindows use?" |
38777 | echo " jpeg ${wxUSE_LIBJPEG-none}" | |
38778 | echo " png ${wxUSE_LIBPNG-none}" | |
38779 | echo " regex ${wxUSE_REGEX}" | |
38780 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
89fe663f VZ |
38781 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
38782 | echo " xpm ${wxUSE_LIBXPM-none}" | |
38783 | fi | |
2b5f62a0 | 38784 | echo " zlib ${wxUSE_ZLIB}" |
fd3d7534 | 38785 | echo " odbc ${wxUSE_ODBC}" |
5f0b6dff | 38786 | echo " expat ${wxUSE_EXPAT}" |
3527f29c | 38787 | echo " libmspack ${wxUSE_LIBMSPACK}" |
f93ca9fd | 38788 | echo " sdl ${wxUSE_LIBSDL}" |
2b5f62a0 VZ |
38789 | |
38790 | echo "" | |
38791 |