ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/configure
(Generate patch)

Comparing rxvt-unicode/configure (file contents):
Revision 1.2 by pcg, Thu Dec 18 00:38:07 2003 UTC vs.
Revision 1.24 by pcg, Fri Apr 2 17:59:49 2004 UTC

1#! /bin/sh 1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles. 2# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.13 3# Generated by GNU Autoconf 2.59.
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6# 4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation 6# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it. 7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
9 11
10# Defaults: 12# Be Bourne compatible
11ac_help= 13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12ac_default_prefix=/usr/local 14 emulate sh
13# Any additions from configure.in: 15 NULLCMD=:
14ac_help="$ac_help 16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15 --enable-shared[=PKGS] build shared libraries [default=no]" 17 # is contrary to our usage. Disable this feature.
16ac_help="$ac_help 18 alias -g '${1+"$@"}'='"$@"'
17 --enable-static[=PKGS] build static libraries [default=yes]" 19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18ac_help="$ac_help 20 set -o posix
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]" 21fi
20ac_help="$ac_help 22DUALCASE=1; export DUALCASE # for MKS sh
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]" 23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
22 243
23# Find the correct PATH separator. Usually this is `:', but 244# Find the correct PATH separator. Usually this is `:', but
24# DJGPP uses `;' like DOS. 245# DJGPP uses `;' like DOS.
25if test "X${PATH_SEPARATOR+set}" != Xset; then 246if test "X${PATH_SEPARATOR+set}" != Xset; then
26 UNAME=${UNAME-`uname 2>/dev/null`} 247 UNAME=${UNAME-`uname 2>/dev/null`}
175if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 396if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
176 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 397 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
177fi 398fi
178 399
179 400
180ac_help="$ac_help 401
181 --disable-libtool-lock avoid locking (might break parallel builds)" 402# Name of the host.
182ac_help="$ac_help 403# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
183dnl 404# so uname gets run too.
184 --with-pic try to use only PIC/non-PIC objects [default=use both]" 405ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
185ac_help="$ac_help 406
186 --enable-everything enable standard non-multichoice features: marked * 407exec 6>&1
187 NOTE: this option is order dependent 408
188 NOTE: automatically enabled with --enable-shared" 409#
189ac_help="$ac_help 410# Initializations.
190 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters" 411#
191ac_help="$ac_help 412ac_default_prefix=/usr/local
192 --enable-xft enable xft support on systems that have it" 413ac_config_libobj_dir=.
193ac_help="$ac_help 414cross_compiling=no
194 --with-codesets=NAME,... compile in additional codesets (jp,jp_ext,kr,cn,cn_ext,vn,all)" 415subdirs=
195ac_help="$ac_help 416MFLAGS=
196 --with-encoding=NAME set language default encoding to NAME (default: sjis) 417MAKEFLAGS=
197 (eucj|sjis|big5|gb|kr|noenc)" 418SHELL=${CONFIG_SHELL-/bin/sh}
198ac_help="$ac_help 419
199 --enable-utmp enable utmp (utmpx) support *" 420# Maximum number of lines to put in a shell here document.
200ac_help="$ac_help 421# This variable seems obsolete. It should probably be removed, and
201 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)*" 422# only ac_max_sed_lines should be used.
202ac_help="$ac_help 423: ${ac_max_here_lines=38}
203 --enable-lastlog enable lastlog support (requires --enable-utmp) *" 424
204ac_help="$ac_help 425# Identity of this package.
205 --enable-xpm-background enable XPM background pixmaps *" 426PACKAGE_NAME=
206ac_help="$ac_help 427PACKAGE_TARNAME=
207 --enable-transparency enable transparent backgrounds *" 428PACKAGE_VERSION=
208ac_help="$ac_help 429PACKAGE_STRING=
209 --enable-menubar enable menubar *" 430PACKAGE_BUGREPORT=
210ac_help="$ac_help 431
211 --enable-graphics enable rxvt own graphics mode (see src/graphics) *" 432ac_unique_file="src/feature.h"
212ac_help="$ac_help 433# Factoring default headers for most tests.
213 --enable-rxvt-scroll enable rxvt style scrollbar *" 434ac_includes_default="\
214ac_help="$ac_help 435#include <stdio.h>
215 --enable-next-scroll enable NeXT style scrollbar *" 436#if HAVE_SYS_TYPES_H
216ac_help="$ac_help 437# include <sys/types.h>
217 --enable-xterm-scroll enable Xterm style scrollbar *" 438#endif
218ac_help="$ac_help 439#if HAVE_SYS_STAT_H
219 --enable-half-shadow use half width/height shadow on rxvt scrollbar" 440# include <sys/stat.h>
220ac_help="$ac_help 441#endif
221 --enable-xim XIM (X Input Method) protocol support *" 442#if STDC_HEADERS
222ac_help="$ac_help 443# include <stdlib.h>
223 --enable-greek enable greek keyboard support" 444# include <stddef.h>
224ac_help="$ac_help 445#else
225 --enable-ttygid enable tty setting to group named "tty"" 446# if HAVE_STDLIB_H
226ac_help="$ac_help 447# include <stdlib.h>
227 --disable-backspace-key disable handling of the backspace key" 448# endif
228ac_help="$ac_help 449#endif
229 --disable-delete-key disable handling of the delete key" 450#if HAVE_STRING_H
230ac_help="$ac_help 451# if !STDC_HEADERS && HAVE_MEMORY_H
231 --disable-resources disable all resource checking" 452# include <memory.h>
232ac_help="$ac_help 453# endif
233 --enable-xgetdefault enable resources via X instead of our small version" 454# include <string.h>
234ac_help="$ac_help 455#endif
235 --enable-strings enable some replacement system functions" 456#if HAVE_STRINGS_H
236ac_help="$ac_help 457# include <strings.h>
237 --disable-swapscreen disable swap screen support" 458#endif
238ac_help="$ac_help 459#if HAVE_INTTYPES_H
239 --enable-frills enable support for rarely used features *" 460# include <inttypes.h>
240ac_help="$ac_help 461#else
241 --enable-linespace enable support for linespace *" 462# if HAVE_STDINT_H
242ac_help="$ac_help 463# include <stdint.h>
243 --enable-24bit enable support for using 24bit visuals if available *" 464# endif
244ac_help="$ac_help 465#endif
245 --enable-keepscrolling enable continual scrolling on scrollbar arrow press *" 466#if HAVE_UNISTD_H
246ac_help="$ac_help 467# include <unistd.h>
247 --enable-selectionscrolling enable scrolling during selections *" 468#endif"
248ac_help="$ac_help 469
249 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 *" 470ac_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 VERSION DATE LSMDATE LIBVERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AWK LINKER CXXCPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP LIBTOOL INSTALL_LIBRXVT RXVTNAME MV RM CP LN SED CMP TBL X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS XPM_CPPFLAGS XPM_CFLAGS XPM_LIBS rxvt_int16_typedef rxvt_uint16_typedef rxvt_int32_typedef rxvt_uint32_typedef rxvt_intp_define rxvt_u_intp_define DEBUG DINCLUDE DLIB include_stdint_h include_stdarg_h include_stdlib_h include_unistd_h include_string_h include_fcntl_h include_util_h include_assert_h include_sys_ioctl_h include_sys_select_h include_sys_strredir_h include_sys_time_h include_time_h LIBOBJS LTLIBOBJS'
250ac_help="$ac_help 471ac_subst_files='MCOMMON'
251 --enable-slipwheeling enable slip wheel scrolling (requires previous) *"
252ac_help="$ac_help
253 --enable-old-selection enable v2.20 (& prior) mouse selection style support*"
254ac_help="$ac_help
255 --disable-new-selection disable new mouse (xterm) selection style support"
256ac_help="$ac_help
257 --enable-dmalloc enable Gray Watson's malloc - for debugging use"
258ac_help="$ac_help
259 --enable-dlmalloc enable Doug Lea's malloc - for production use
260 NOTE: enable only one malloc package"
261ac_help="$ac_help
262 --enable-smart-resize enable smart growth/shrink behaviour"
263ac_help="$ac_help
264 --enable-256-color enable 256-color support"
265ac_help="$ac_help
266 --enable-cursor-blink enable blinking cursor *"
267ac_help="$ac_help
268 --enable-pointer-blank enable pointer blank when typing or inactive pointer*"
269ac_help="$ac_help
270 --with-term=NAME set the terminal to NAME (default \"xterm\")"
271ac_help="$ac_help
272 --with-terminfo=PATH set the path to the terminfo tree to PATH"
273ac_help="$ac_help
274 --with-x use the X Window System"
275ac_help="$ac_help
276 --with-xpm-includes=DIR use XPM includes in DIR"
277ac_help="$ac_help
278 --with-xpm-library=DIR use XPM library in DIR"
279ac_help="$ac_help
280 --with-xpm use XPM"
281 472
282# Initialize some variables set by options. 473# Initialize some variables set by options.
474ac_init_help=
475ac_init_version=false
283# The variables have the same names as the options, with 476# The variables have the same names as the options, with
284# dashes changed to underlines. 477# dashes changed to underlines.
285build=NONE 478cache_file=/dev/null
286cache_file=./config.cache
287exec_prefix=NONE 479exec_prefix=NONE
288host=NONE
289no_create= 480no_create=
290nonopt=NONE
291no_recursion= 481no_recursion=
292prefix=NONE 482prefix=NONE
293program_prefix=NONE 483program_prefix=NONE
294program_suffix=NONE 484program_suffix=NONE
295program_transform_name=s,x,x, 485program_transform_name=s,x,x,
296silent= 486silent=
297site= 487site=
298srcdir= 488srcdir=
299target=NONE
300verbose= 489verbose=
301x_includes=NONE 490x_includes=NONE
302x_libraries=NONE 491x_libraries=NONE
492
493# Installation directory options.
494# These are left unexpanded so users can "make install exec_prefix=/foo"
495# and all the variables that are supposed to be based on exec_prefix
496# by default will actually change.
497# Use braces instead of parens because sh, perl, etc. also accept them.
303bindir='${exec_prefix}/bin' 498bindir='${exec_prefix}/bin'
304sbindir='${exec_prefix}/sbin' 499sbindir='${exec_prefix}/sbin'
305libexecdir='${exec_prefix}/libexec' 500libexecdir='${exec_prefix}/libexec'
306datadir='${prefix}/share' 501datadir='${prefix}/share'
307sysconfdir='${prefix}/etc' 502sysconfdir='${prefix}/etc'
311includedir='${prefix}/include' 506includedir='${prefix}/include'
312oldincludedir='/usr/include' 507oldincludedir='/usr/include'
313infodir='${prefix}/info' 508infodir='${prefix}/info'
314mandir='${prefix}/man' 509mandir='${prefix}/man'
315 510
316# Initialize some other variables.
317subdirs=
318MFLAGS= MAKEFLAGS=
319SHELL=${CONFIG_SHELL-/bin/sh}
320# Maximum number of lines to put in a shell here document.
321ac_max_here_lines=12
322
323ac_prev= 511ac_prev=
324for ac_option 512for ac_option
325do 513do
326
327 # If the previous option needs an argument, assign it. 514 # If the previous option needs an argument, assign it.
328 if test -n "$ac_prev"; then 515 if test -n "$ac_prev"; then
329 eval "$ac_prev=\$ac_option" 516 eval "$ac_prev=\$ac_option"
330 ac_prev= 517 ac_prev=
331 continue 518 continue
332 fi 519 fi
333 520
334 case "$ac_option" in 521 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
335 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
336 *) ac_optarg= ;;
337 esac
338 522
339 # Accept the important Cygnus configure options, so we can diagnose typos. 523 # Accept the important Cygnus configure options, so we can diagnose typos.
340 524
341 case "$ac_option" in 525 case $ac_option in
342 526
343 -bindir | --bindir | --bindi | --bind | --bin | --bi) 527 -bindir | --bindir | --bindi | --bind | --bin | --bi)
344 ac_prev=bindir ;; 528 ac_prev=bindir ;;
345 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 529 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
346 bindir="$ac_optarg" ;; 530 bindir=$ac_optarg ;;
347 531
348 -build | --build | --buil | --bui | --bu) 532 -build | --build | --buil | --bui | --bu)
349 ac_prev=build ;; 533 ac_prev=build_alias ;;
350 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 534 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
351 build="$ac_optarg" ;; 535 build_alias=$ac_optarg ;;
352 536
353 -cache-file | --cache-file | --cache-fil | --cache-fi \ 537 -cache-file | --cache-file | --cache-fil | --cache-fi \
354 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 538 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
355 ac_prev=cache_file ;; 539 ac_prev=cache_file ;;
356 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 540 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
357 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 541 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
358 cache_file="$ac_optarg" ;; 542 cache_file=$ac_optarg ;;
543
544 --config-cache | -C)
545 cache_file=config.cache ;;
359 546
360 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 547 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
361 ac_prev=datadir ;; 548 ac_prev=datadir ;;
362 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 549 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
363 | --da=*) 550 | --da=*)
364 datadir="$ac_optarg" ;; 551 datadir=$ac_optarg ;;
365 552
366 -disable-* | --disable-*) 553 -disable-* | --disable-*)
367 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 554 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
368 # Reject names that are not valid shell variable names. 555 # Reject names that are not valid shell variable names.
369 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
370 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
371 fi 558 { (exit 1); exit 1; }; }
372 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 559 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
373 eval "enable_${ac_feature}=no" ;; 560 eval "enable_$ac_feature=no" ;;
374 561
375 -enable-* | --enable-*) 562 -enable-* | --enable-*)
376 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 563 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
377 # Reject names that are not valid shell variable names. 564 # Reject names that are not valid shell variable names.
378 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 565 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
379 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 566 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
380 fi 567 { (exit 1); exit 1; }; }
381 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 568 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
382 case "$ac_option" in 569 case $ac_option in
383 *=*) ;; 570 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
384 *) ac_optarg=yes ;; 571 *) ac_optarg=yes ;;
385 esac 572 esac
386 eval "enable_${ac_feature}='$ac_optarg'" ;; 573 eval "enable_$ac_feature='$ac_optarg'" ;;
387 574
388 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 575 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
389 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 576 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
390 | --exec | --exe | --ex) 577 | --exec | --exe | --ex)
391 ac_prev=exec_prefix ;; 578 ac_prev=exec_prefix ;;
392 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 579 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
393 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 580 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
394 | --exec=* | --exe=* | --ex=*) 581 | --exec=* | --exe=* | --ex=*)
395 exec_prefix="$ac_optarg" ;; 582 exec_prefix=$ac_optarg ;;
396 583
397 -gas | --gas | --ga | --g) 584 -gas | --gas | --ga | --g)
398 # Obsolete; use --with-gas. 585 # Obsolete; use --with-gas.
399 with_gas=yes ;; 586 with_gas=yes ;;
400 587
401 -help | --help | --hel | --he) 588 -help | --help | --hel | --he | -h)
402 # Omit some internal or obsolete options to make the list less imposing. 589 ac_init_help=long ;;
403 # This message is too long to be a string in the A/UX 3.1 sh. 590 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
404 cat << EOF 591 ac_init_help=recursive ;;
405Usage: configure [options] [host] 592 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
406Options: [defaults in brackets after descriptions] 593 ac_init_help=short ;;
407Configuration:
408 --cache-file=FILE cache test results in FILE
409 --help print this message
410 --no-create do not create output files
411 --quiet, --silent do not print \`checking...' messages
412 --version print the version of autoconf that created configure
413Directory and file names:
414 --prefix=PREFIX install architecture-independent files in PREFIX
415 [$ac_default_prefix]
416 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
417 [same as prefix]
418 --bindir=DIR user executables in DIR [EPREFIX/bin]
419 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
420 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
421 --datadir=DIR read-only architecture-independent data in DIR
422 [PREFIX/share]
423 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
424 --sharedstatedir=DIR modifiable architecture-independent data in DIR
425 [PREFIX/com]
426 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
427 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
428 --includedir=DIR C header files in DIR [PREFIX/include]
429 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
430 --infodir=DIR info documentation in DIR [PREFIX/info]
431 --mandir=DIR man documentation in DIR [PREFIX/man]
432 --srcdir=DIR find the sources in DIR [configure dir or ..]
433 --program-prefix=PREFIX prepend PREFIX to installed program names
434 --program-suffix=SUFFIX append SUFFIX to installed program names
435 --program-transform-name=PROGRAM
436 run sed PROGRAM on installed program names
437EOF
438 cat << EOF
439Host type:
440 --build=BUILD configure for building on BUILD [BUILD=HOST]
441 --host=HOST configure for HOST [guessed]
442 --target=TARGET configure for TARGET [TARGET=HOST]
443Features and packages:
444 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
445 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
446 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
447 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
448 --x-includes=DIR X include files are in DIR
449 --x-libraries=DIR X library files are in DIR
450EOF
451 if test -n "$ac_help"; then
452 echo "--enable and --with options recognized:$ac_help"
453 fi
454 exit 0 ;;
455 594
456 -host | --host | --hos | --ho) 595 -host | --host | --hos | --ho)
457 ac_prev=host ;; 596 ac_prev=host_alias ;;
458 -host=* | --host=* | --hos=* | --ho=*) 597 -host=* | --host=* | --hos=* | --ho=*)
459 host="$ac_optarg" ;; 598 host_alias=$ac_optarg ;;
460 599
461 -includedir | --includedir | --includedi | --included | --include \ 600 -includedir | --includedir | --includedi | --included | --include \
462 | --includ | --inclu | --incl | --inc) 601 | --includ | --inclu | --incl | --inc)
463 ac_prev=includedir ;; 602 ac_prev=includedir ;;
464 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 603 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
465 | --includ=* | --inclu=* | --incl=* | --inc=*) 604 | --includ=* | --inclu=* | --incl=* | --inc=*)
466 includedir="$ac_optarg" ;; 605 includedir=$ac_optarg ;;
467 606
468 -infodir | --infodir | --infodi | --infod | --info | --inf) 607 -infodir | --infodir | --infodi | --infod | --info | --inf)
469 ac_prev=infodir ;; 608 ac_prev=infodir ;;
470 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 609 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
471 infodir="$ac_optarg" ;; 610 infodir=$ac_optarg ;;
472 611
473 -libdir | --libdir | --libdi | --libd) 612 -libdir | --libdir | --libdi | --libd)
474 ac_prev=libdir ;; 613 ac_prev=libdir ;;
475 -libdir=* | --libdir=* | --libdi=* | --libd=*) 614 -libdir=* | --libdir=* | --libdi=* | --libd=*)
476 libdir="$ac_optarg" ;; 615 libdir=$ac_optarg ;;
477 616
478 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 617 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
479 | --libexe | --libex | --libe) 618 | --libexe | --libex | --libe)
480 ac_prev=libexecdir ;; 619 ac_prev=libexecdir ;;
481 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 620 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
482 | --libexe=* | --libex=* | --libe=*) 621 | --libexe=* | --libex=* | --libe=*)
483 libexecdir="$ac_optarg" ;; 622 libexecdir=$ac_optarg ;;
484 623
485 -localstatedir | --localstatedir | --localstatedi | --localstated \ 624 -localstatedir | --localstatedir | --localstatedi | --localstated \
486 | --localstate | --localstat | --localsta | --localst \ 625 | --localstate | --localstat | --localsta | --localst \
487 | --locals | --local | --loca | --loc | --lo) 626 | --locals | --local | --loca | --loc | --lo)
488 ac_prev=localstatedir ;; 627 ac_prev=localstatedir ;;
489 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 628 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
490 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 629 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
491 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 630 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
492 localstatedir="$ac_optarg" ;; 631 localstatedir=$ac_optarg ;;
493 632
494 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 633 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
495 ac_prev=mandir ;; 634 ac_prev=mandir ;;
496 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 635 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
497 mandir="$ac_optarg" ;; 636 mandir=$ac_optarg ;;
498 637
499 -nfp | --nfp | --nf) 638 -nfp | --nfp | --nf)
500 # Obsolete; use --without-fp. 639 # Obsolete; use --without-fp.
501 with_fp=no ;; 640 with_fp=no ;;
502 641
503 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 642 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
504 | --no-cr | --no-c) 643 | --no-cr | --no-c | -n)
505 no_create=yes ;; 644 no_create=yes ;;
506 645
507 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 646 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
508 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 647 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
509 no_recursion=yes ;; 648 no_recursion=yes ;;
513 | --oldin | --oldi | --old | --ol | --o) 652 | --oldin | --oldi | --old | --ol | --o)
514 ac_prev=oldincludedir ;; 653 ac_prev=oldincludedir ;;
515 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 654 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
516 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 655 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
517 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 656 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
518 oldincludedir="$ac_optarg" ;; 657 oldincludedir=$ac_optarg ;;
519 658
520 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 659 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
521 ac_prev=prefix ;; 660 ac_prev=prefix ;;
522 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 661 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
523 prefix="$ac_optarg" ;; 662 prefix=$ac_optarg ;;
524 663
525 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 664 -program-prefix | --program-prefix | --program-prefi | --program-pref \
526 | --program-pre | --program-pr | --program-p) 665 | --program-pre | --program-pr | --program-p)
527 ac_prev=program_prefix ;; 666 ac_prev=program_prefix ;;
528 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 667 -program-prefix=* | --program-prefix=* | --program-prefi=* \
529 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 668 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
530 program_prefix="$ac_optarg" ;; 669 program_prefix=$ac_optarg ;;
531 670
532 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 671 -program-suffix | --program-suffix | --program-suffi | --program-suff \
533 | --program-suf | --program-su | --program-s) 672 | --program-suf | --program-su | --program-s)
534 ac_prev=program_suffix ;; 673 ac_prev=program_suffix ;;
535 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 674 -program-suffix=* | --program-suffix=* | --program-suffi=* \
536 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 675 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
537 program_suffix="$ac_optarg" ;; 676 program_suffix=$ac_optarg ;;
538 677
539 -program-transform-name | --program-transform-name \ 678 -program-transform-name | --program-transform-name \
540 | --program-transform-nam | --program-transform-na \ 679 | --program-transform-nam | --program-transform-na \
541 | --program-transform-n | --program-transform- \ 680 | --program-transform-n | --program-transform- \
542 | --program-transform | --program-transfor \ 681 | --program-transform | --program-transfor \
549 | --program-transform-n=* | --program-transform-=* \ 688 | --program-transform-n=* | --program-transform-=* \
550 | --program-transform=* | --program-transfor=* \ 689 | --program-transform=* | --program-transfor=* \
551 | --program-transfo=* | --program-transf=* \ 690 | --program-transfo=* | --program-transf=* \
552 | --program-trans=* | --program-tran=* \ 691 | --program-trans=* | --program-tran=* \
553 | --progr-tra=* | --program-tr=* | --program-t=*) 692 | --progr-tra=* | --program-tr=* | --program-t=*)
554 program_transform_name="$ac_optarg" ;; 693 program_transform_name=$ac_optarg ;;
555 694
556 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 695 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
557 | -silent | --silent | --silen | --sile | --sil) 696 | -silent | --silent | --silen | --sile | --sil)
558 silent=yes ;; 697 silent=yes ;;
559 698
560 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 699 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
561 ac_prev=sbindir ;; 700 ac_prev=sbindir ;;
562 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 701 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
563 | --sbi=* | --sb=*) 702 | --sbi=* | --sb=*)
564 sbindir="$ac_optarg" ;; 703 sbindir=$ac_optarg ;;
565 704
566 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 705 -sharedstatedir | --sharedstatedir | --sharedstatedi \
567 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 706 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
568 | --sharedst | --shareds | --shared | --share | --shar \ 707 | --sharedst | --shareds | --shared | --share | --shar \
569 | --sha | --sh) 708 | --sha | --sh)
570 ac_prev=sharedstatedir ;; 709 ac_prev=sharedstatedir ;;
571 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 710 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
572 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 711 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
573 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 712 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
574 | --sha=* | --sh=*) 713 | --sha=* | --sh=*)
575 sharedstatedir="$ac_optarg" ;; 714 sharedstatedir=$ac_optarg ;;
576 715
577 -site | --site | --sit) 716 -site | --site | --sit)
578 ac_prev=site ;; 717 ac_prev=site ;;
579 -site=* | --site=* | --sit=*) 718 -site=* | --site=* | --sit=*)
580 site="$ac_optarg" ;; 719 site=$ac_optarg ;;
581 720
582 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 721 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
583 ac_prev=srcdir ;; 722 ac_prev=srcdir ;;
584 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 723 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
585 srcdir="$ac_optarg" ;; 724 srcdir=$ac_optarg ;;
586 725
587 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 726 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
588 | --syscon | --sysco | --sysc | --sys | --sy) 727 | --syscon | --sysco | --sysc | --sys | --sy)
589 ac_prev=sysconfdir ;; 728 ac_prev=sysconfdir ;;
590 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 729 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
591 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 730 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
592 sysconfdir="$ac_optarg" ;; 731 sysconfdir=$ac_optarg ;;
593 732
594 -target | --target | --targe | --targ | --tar | --ta | --t) 733 -target | --target | --targe | --targ | --tar | --ta | --t)
595 ac_prev=target ;; 734 ac_prev=target_alias ;;
596 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 735 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
597 target="$ac_optarg" ;; 736 target_alias=$ac_optarg ;;
598 737
599 -v | -verbose | --verbose | --verbos | --verbo | --verb) 738 -v | -verbose | --verbose | --verbos | --verbo | --verb)
600 verbose=yes ;; 739 verbose=yes ;;
601 740
602 -version | --version | --versio | --versi | --vers) 741 -version | --version | --versio | --versi | --vers | -V)
603 echo "configure generated by autoconf version 2.13" 742 ac_init_version=: ;;
604 exit 0 ;;
605 743
606 -with-* | --with-*) 744 -with-* | --with-*)
607 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 745 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
608 # Reject names that are not valid shell variable names. 746 # Reject names that are not valid shell variable names.
609 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 747 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
610 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 748 { echo "$as_me: error: invalid package name: $ac_package" >&2
611 fi 749 { (exit 1); exit 1; }; }
612 ac_package=`echo $ac_package| sed 's/-/_/g'` 750 ac_package=`echo $ac_package| sed 's/-/_/g'`
613 case "$ac_option" in 751 case $ac_option in
614 *=*) ;; 752 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
615 *) ac_optarg=yes ;; 753 *) ac_optarg=yes ;;
616 esac 754 esac
617 eval "with_${ac_package}='$ac_optarg'" ;; 755 eval "with_$ac_package='$ac_optarg'" ;;
618 756
619 -without-* | --without-*) 757 -without-* | --without-*)
620 ac_package=`echo $ac_option|sed -e 's/-*without-//'` 758 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
621 # Reject names that are not valid shell variable names. 759 # Reject names that are not valid shell variable names.
622 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 760 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
623 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 761 { echo "$as_me: error: invalid package name: $ac_package" >&2
624 fi 762 { (exit 1); exit 1; }; }
625 ac_package=`echo $ac_package| sed 's/-/_/g'` 763 ac_package=`echo $ac_package | sed 's/-/_/g'`
626 eval "with_${ac_package}=no" ;; 764 eval "with_$ac_package=no" ;;
627 765
628 --x) 766 --x)
629 # Obsolete; use --with-x. 767 # Obsolete; use --with-x.
630 with_x=yes ;; 768 with_x=yes ;;
631 769
632 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 770 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
633 | --x-incl | --x-inc | --x-in | --x-i) 771 | --x-incl | --x-inc | --x-in | --x-i)
634 ac_prev=x_includes ;; 772 ac_prev=x_includes ;;
635 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 773 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
636 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 774 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
637 x_includes="$ac_optarg" ;; 775 x_includes=$ac_optarg ;;
638 776
639 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 777 -x-libraries | --x-libraries | --x-librarie | --x-librari \
640 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 778 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
641 ac_prev=x_libraries ;; 779 ac_prev=x_libraries ;;
642 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 780 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
643 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 781 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
644 x_libraries="$ac_optarg" ;; 782 x_libraries=$ac_optarg ;;
645 783
646 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 784 -*) { echo "$as_me: error: unrecognized option: $ac_option
785Try \`$0 --help' for more information." >&2
786 { (exit 1); exit 1; }; }
647 ;; 787 ;;
648 788
789 *=*)
790 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
791 # Reject names that are not valid shell variable names.
792 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
793 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
794 { (exit 1); exit 1; }; }
795 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
796 eval "$ac_envvar='$ac_optarg'"
797 export $ac_envvar ;;
798
649 *) 799 *)
650 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 800 # FIXME: should be removed in autoconf 3.0.
651 echo "configure: warning: $ac_option: invalid host type" 1>&2 801 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
652 fi 802 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
653 if test "x$nonopt" != xNONE; then 803 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
654 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 804 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
655 fi
656 nonopt="$ac_option"
657 ;; 805 ;;
658 806
659 esac 807 esac
660done 808done
661 809
662if test -n "$ac_prev"; then 810if test -n "$ac_prev"; then
663 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 811 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
812 { echo "$as_me: error: missing argument to $ac_option" >&2
813 { (exit 1); exit 1; }; }
664fi 814fi
665 815
666trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 816# Be sure to have absolute paths.
667 817for ac_var in exec_prefix prefix
668# File descriptor usage:
669# 0 standard input
670# 1 file creation
671# 2 errors and warnings
672# 3 some systems may open it to /dev/tty
673# 4 used on the Kubota Titan
674# 6 checking for... messages and results
675# 5 compiler messages saved in config.log
676if test "$silent" = yes; then
677 exec 6>/dev/null
678else
679 exec 6>&1
680fi
681exec 5>./config.log
682
683echo "\
684This file contains any messages produced by compilers while
685running configure, to aid debugging if configure makes a mistake.
686" 1>&5
687
688# Strip out --no-create and --no-recursion so they do not pile up.
689# Also quote any args containing shell metacharacters.
690ac_configure_args=
691for ac_arg
692do 818do
819 eval ac_val=$`echo $ac_var`
693 case "$ac_arg" in 820 case $ac_val in
694 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 821 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
695 | --no-cr | --no-c) ;; 822 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
696 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 823 { (exit 1); exit 1; }; };;
697 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
698 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
699 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
700 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
701 esac 824 esac
702done 825done
703 826
704# NLS nuisances. 827# Be sure to have absolute paths.
705# Only set these to C if already set. These must not be set unconditionally 828for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
706# because not all systems understand e.g. LANG=C (notably SCO). 829 localstatedir libdir includedir oldincludedir infodir mandir
707# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 830do
708# Non-C LC_CTYPE values break the ctype check. 831 eval ac_val=$`echo $ac_var`
709if test "${LANG+set}" = set; then LANG=C; export LANG; fi 832 case $ac_val in
710if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 833 [\\/$]* | ?:[\\/]* ) ;;
711if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 834 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
712if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 835 { (exit 1); exit 1; }; };;
836 esac
837done
713 838
714# confdefs.h avoids OS command line length limits that DEFS can exceed. 839# There might be people who depend on the old broken behavior: `$host'
715rm -rf conftest* confdefs.h 840# used to hold the argument of --host etc.
716# AIX cpp loses on an empty file, so make sure it contains at least a newline. 841# FIXME: To remove some day.
717echo > confdefs.h 842build=$build_alias
843host=$host_alias
844target=$target_alias
718 845
719# A filename unique to this package, relative to the directory that 846# FIXME: To remove some day.
720# configure is in, which we can look for to find out if srcdir is correct. 847if test "x$host_alias" != x; then
721ac_unique_file=src/feature.h 848 if test "x$build_alias" = x; then
849 cross_compiling=maybe
850 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
851 If a cross compiler is detected then cross compile mode will be used." >&2
852 elif test "x$build_alias" != "x$host_alias"; then
853 cross_compiling=yes
854 fi
855fi
856
857ac_tool_prefix=
858test -n "$host_alias" && ac_tool_prefix=$host_alias-
859
860test "$silent" = yes && exec 6>/dev/null
861
722 862
723# Find the source files, if location was not specified. 863# Find the source files, if location was not specified.
724if test -z "$srcdir"; then 864if test -z "$srcdir"; then
725 ac_srcdir_defaulted=yes 865 ac_srcdir_defaulted=yes
726 # Try the directory containing this script, then its parent. 866 # Try the directory containing this script, then its parent.
727 ac_prog=$0 867 ac_confdir=`(dirname "$0") 2>/dev/null ||
728 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 868$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
729 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 869 X"$0" : 'X\(//\)[^/]' \| \
870 X"$0" : 'X\(//\)$' \| \
871 X"$0" : 'X\(/\)' \| \
872 . : '\(.\)' 2>/dev/null ||
873echo X"$0" |
874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
875 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
876 /^X\(\/\/\)$/{ s//\1/; q; }
877 /^X\(\/\).*/{ s//\1/; q; }
878 s/.*/./; q'`
730 srcdir=$ac_confdir 879 srcdir=$ac_confdir
731 if test ! -r $srcdir/$ac_unique_file; then 880 if test ! -r $srcdir/$ac_unique_file; then
732 srcdir=.. 881 srcdir=..
733 fi 882 fi
734else 883else
735 ac_srcdir_defaulted=no 884 ac_srcdir_defaulted=no
736fi 885fi
737if test ! -r $srcdir/$ac_unique_file; then 886if test ! -r $srcdir/$ac_unique_file; then
738 if test "$ac_srcdir_defaulted" = yes; then 887 if test "$ac_srcdir_defaulted" = yes; then
739 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
889 { (exit 1); exit 1; }; }
740 else 890 else
741 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 891 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
892 { (exit 1); exit 1; }; }
742 fi 893 fi
743fi 894fi
895(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
896 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
897 { (exit 1); exit 1; }; }
744srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 898srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
899ac_env_build_alias_set=${build_alias+set}
900ac_env_build_alias_value=$build_alias
901ac_cv_env_build_alias_set=${build_alias+set}
902ac_cv_env_build_alias_value=$build_alias
903ac_env_host_alias_set=${host_alias+set}
904ac_env_host_alias_value=$host_alias
905ac_cv_env_host_alias_set=${host_alias+set}
906ac_cv_env_host_alias_value=$host_alias
907ac_env_target_alias_set=${target_alias+set}
908ac_env_target_alias_value=$target_alias
909ac_cv_env_target_alias_set=${target_alias+set}
910ac_cv_env_target_alias_value=$target_alias
911ac_env_CC_set=${CC+set}
912ac_env_CC_value=$CC
913ac_cv_env_CC_set=${CC+set}
914ac_cv_env_CC_value=$CC
915ac_env_CFLAGS_set=${CFLAGS+set}
916ac_env_CFLAGS_value=$CFLAGS
917ac_cv_env_CFLAGS_set=${CFLAGS+set}
918ac_cv_env_CFLAGS_value=$CFLAGS
919ac_env_LDFLAGS_set=${LDFLAGS+set}
920ac_env_LDFLAGS_value=$LDFLAGS
921ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
922ac_cv_env_LDFLAGS_value=$LDFLAGS
923ac_env_CPPFLAGS_set=${CPPFLAGS+set}
924ac_env_CPPFLAGS_value=$CPPFLAGS
925ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
926ac_cv_env_CPPFLAGS_value=$CPPFLAGS
927ac_env_CXX_set=${CXX+set}
928ac_env_CXX_value=$CXX
929ac_cv_env_CXX_set=${CXX+set}
930ac_cv_env_CXX_value=$CXX
931ac_env_CXXFLAGS_set=${CXXFLAGS+set}
932ac_env_CXXFLAGS_value=$CXXFLAGS
933ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
934ac_cv_env_CXXFLAGS_value=$CXXFLAGS
935ac_env_CPP_set=${CPP+set}
936ac_env_CPP_value=$CPP
937ac_cv_env_CPP_set=${CPP+set}
938ac_cv_env_CPP_value=$CPP
939ac_env_CXXCPP_set=${CXXCPP+set}
940ac_env_CXXCPP_value=$CXXCPP
941ac_cv_env_CXXCPP_set=${CXXCPP+set}
942ac_cv_env_CXXCPP_value=$CXXCPP
745 943
944#
945# Report the --help message.
946#
947if test "$ac_init_help" = "long"; then
948 # Omit some internal or obsolete options to make the list less imposing.
949 # This message is too long to be a string in the A/UX 3.1 sh.
950 cat <<_ACEOF
951\`configure' configures this package to adapt to many kinds of systems.
952
953Usage: $0 [OPTION]... [VAR=VALUE]...
954
955To assign environment variables (e.g., CC, CFLAGS...), specify them as
956VAR=VALUE. See below for descriptions of some of the useful variables.
957
958Defaults for the options are specified in brackets.
959
960Configuration:
961 -h, --help display this help and exit
962 --help=short display options specific to this package
963 --help=recursive display the short help of all the included packages
964 -V, --version display version information and exit
965 -q, --quiet, --silent do not print \`checking...' messages
966 --cache-file=FILE cache test results in FILE [disabled]
967 -C, --config-cache alias for \`--cache-file=config.cache'
968 -n, --no-create do not create output files
969 --srcdir=DIR find the sources in DIR [configure dir or \`..']
970
971_ACEOF
972
973 cat <<_ACEOF
974Installation directories:
975 --prefix=PREFIX install architecture-independent files in PREFIX
976 [$ac_default_prefix]
977 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
978 [PREFIX]
979
980By default, \`make install' will install all the files in
981\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
982an installation prefix other than \`$ac_default_prefix' using \`--prefix',
983for instance \`--prefix=\$HOME'.
984
985For better control, use the options below.
986
987Fine tuning of the installation directories:
988 --bindir=DIR user executables [EPREFIX/bin]
989 --sbindir=DIR system admin executables [EPREFIX/sbin]
990 --libexecdir=DIR program executables [EPREFIX/libexec]
991 --datadir=DIR read-only architecture-independent data [PREFIX/share]
992 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
993 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
994 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
995 --libdir=DIR object code libraries [EPREFIX/lib]
996 --includedir=DIR C header files [PREFIX/include]
997 --oldincludedir=DIR C header files for non-gcc [/usr/include]
998 --infodir=DIR info documentation [PREFIX/info]
999 --mandir=DIR man documentation [PREFIX/man]
1000_ACEOF
1001
1002 cat <<\_ACEOF
1003
1004X features:
1005 --x-includes=DIR X include files are in DIR
1006 --x-libraries=DIR X library files are in DIR
1007
1008Program names:
1009 --program-prefix=PREFIX prepend PREFIX to installed program names
1010 --program-suffix=SUFFIX append SUFFIX to installed program names
1011 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1012
1013System types:
1014 --build=BUILD configure for building on BUILD [guessed]
1015 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1016_ACEOF
1017fi
1018
1019if test -n "$ac_init_help"; then
1020
1021 cat <<\_ACEOF
1022
1023Optional Features:
1024 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1025 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1026 --enable-shared=PKGS build shared libraries default=no
1027 --enable-static=PKGS build static libraries default=yes
1028 --enable-fast-install=PKGS optimize for fast installation default=yes
1029 --disable-libtool-lock avoid locking (might break parallel builds)
1030 --enable-everything enable standard non-multichoice features
1031 NOTE: this option is order dependent
1032 NOTE: automatically enabled with --enable-shared
1033 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters
1034 --enable-combining enable composition of base and combining characters
1035 --enable-xft enable xft support on systems that have it
1036 --enable-utmp enable utmp (utmpx) support
1037 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
1038 --enable-lastlog enable lastlog support (requires --enable-utmp)
1039 --enable-xpm-background enable XPM background pixmaps
1040 --enable-transparency enable transparent backgrounds
1041 --enable-tinting enable tinting of transparent bg
1042 --enable-menubar enable menubar
1043 --enable-rxvt-scroll enable rxvt style scrollbar
1044 --enable-next-scroll enable NeXT style scrollbar
1045 --enable-xterm-scroll enable Xterm style scrollbar
1046 --enable-plain-scroll enable plain style scrollbar
1047 --enable-half-shadow use half width/height shadow on rxvt scrollbar
1048 --enable-xim XIM (X Input Method) protocol support
1049 --enable-ttygid enable tty setting to group named "tty"
1050 --disable-backspace-key disable handling of the backspace key
1051 --disable-delete-key disable handling of the delete key
1052 --disable-resources disable all resource checking
1053 --enable-xgetdefault enable resources via X instead of our small version
1054 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt)
1055 --enable-strings enable some replacement system functions
1056 --disable-swapscreen disable swap screen support
1057 --enable-frills enable support for rarely used features
1058 --enable-linespace enable support for linespace
1059 --enable-24bit enable support for using 24bit visuals if available
1060 --enable-keepscrolling enable continual scrolling on scrollbar arrow press
1061 --enable-selectionscrolling enable scrolling during selections
1062 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
1063 --enable-slipwheeling enable slip wheel scrolling (requires previous)
1064 --enable-dmalloc enable Gray Watson's malloc - for debugging use
1065 --enable-dlmalloc enable Doug Lea's malloc - for production use
1066 NOTE: enable only one malloc package
1067 --enable-smart-resize enable smart growth/shrink behaviour
1068 --enable-256-color enable 256-color support
1069 --enable-cursor-blink enable blinking cursor
1070 --enable-text-blink enable blinking text
1071 --enable-pointer-blank enable pointer blank when typing or inactive pointer
1072
1073Optional Packages:
1074 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1075 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1076 --with-gnu-ld assume the C compiler uses GNU ld default=no
1077 --with-pic try to use only PIC/non-PIC objects default=use both
1078 --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,cn,cn_ext,all)
1079 --with-res-name=NAME use this as default resource name (default: urxvt)
1080 --with-res-class=CLASS use this as the resource class (default: URxvt)
1081 --with-name=NAME set the basename for the installed binaries (default: urxvt)
1082 --with-term=NAME set the terminal to NAME (default: rxvt)
1083 --with-terminfo=PATH set the path to the terminfo tree to PATH
1084 --with-x use the X Window System
1085 --with-xpm-includes=DIR use XPM includes in DIR
1086 --with-xpm-library=DIR use XPM library in DIR
1087 --with-xpm use XPM
1088
1089Some influential environment variables:
1090 CC C compiler command
1091 CFLAGS C compiler flags
1092 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1093 nonstandard directory <lib dir>
1094 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1095 headers in a nonstandard directory <include dir>
1096 CXX C++ compiler command
1097 CXXFLAGS C++ compiler flags
1098 CPP C preprocessor
1099 CXXCPP C++ preprocessor
1100
1101Use these variables to override the choices made by `configure' or to help
1102it to find libraries and programs with nonstandard names/locations.
1103
1104_ACEOF
1105fi
1106
1107if test "$ac_init_help" = "recursive"; then
1108 # If there are subdirs, report their specific --help.
1109 ac_popdir=`pwd`
1110 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1111 test -d $ac_dir || continue
1112 ac_builddir=.
1113
1114if test "$ac_dir" != .; then
1115 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1116 # A "../" for each directory in $ac_dir_suffix.
1117 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1118else
1119 ac_dir_suffix= ac_top_builddir=
1120fi
1121
1122case $srcdir in
1123 .) # No --srcdir option. We are building in place.
1124 ac_srcdir=.
1125 if test -z "$ac_top_builddir"; then
1126 ac_top_srcdir=.
1127 else
1128 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1129 fi ;;
1130 [\\/]* | ?:[\\/]* ) # Absolute path.
1131 ac_srcdir=$srcdir$ac_dir_suffix;
1132 ac_top_srcdir=$srcdir ;;
1133 *) # Relative path.
1134 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1135 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1136esac
1137
1138# Do not use `cd foo && pwd` to compute absolute paths, because
1139# the directories may not exist.
1140case `pwd` in
1141.) ac_abs_builddir="$ac_dir";;
1142*)
1143 case "$ac_dir" in
1144 .) ac_abs_builddir=`pwd`;;
1145 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1146 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1147 esac;;
1148esac
1149case $ac_abs_builddir in
1150.) ac_abs_top_builddir=${ac_top_builddir}.;;
1151*)
1152 case ${ac_top_builddir}. in
1153 .) ac_abs_top_builddir=$ac_abs_builddir;;
1154 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1155 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1156 esac;;
1157esac
1158case $ac_abs_builddir in
1159.) ac_abs_srcdir=$ac_srcdir;;
1160*)
1161 case $ac_srcdir in
1162 .) ac_abs_srcdir=$ac_abs_builddir;;
1163 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1164 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1165 esac;;
1166esac
1167case $ac_abs_builddir in
1168.) ac_abs_top_srcdir=$ac_top_srcdir;;
1169*)
1170 case $ac_top_srcdir in
1171 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1172 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1173 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1174 esac;;
1175esac
1176
1177 cd $ac_dir
1178 # Check for guested configure; otherwise get Cygnus style configure.
1179 if test -f $ac_srcdir/configure.gnu; then
1180 echo
1181 $SHELL $ac_srcdir/configure.gnu --help=recursive
1182 elif test -f $ac_srcdir/configure; then
1183 echo
1184 $SHELL $ac_srcdir/configure --help=recursive
1185 elif test -f $ac_srcdir/configure.ac ||
1186 test -f $ac_srcdir/configure.in; then
1187 echo
1188 $ac_configure --help
1189 else
1190 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1191 fi
1192 cd "$ac_popdir"
1193 done
1194fi
1195
1196test -n "$ac_init_help" && exit 0
1197if $ac_init_version; then
1198 cat <<\_ACEOF
1199
1200Copyright (C) 2003 Free Software Foundation, Inc.
1201This configure script is free software; the Free Software Foundation
1202gives unlimited permission to copy, distribute and modify it.
1203_ACEOF
1204 exit 0
1205fi
1206exec 5>config.log
1207cat >&5 <<_ACEOF
1208This file contains any messages produced by compilers while
1209running configure, to aid debugging if configure makes a mistake.
1210
1211It was created by $as_me, which was
1212generated by GNU Autoconf 2.59. Invocation command line was
1213
1214 $ $0 $@
1215
1216_ACEOF
1217{
1218cat <<_ASUNAME
1219## --------- ##
1220## Platform. ##
1221## --------- ##
1222
1223hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1224uname -m = `(uname -m) 2>/dev/null || echo unknown`
1225uname -r = `(uname -r) 2>/dev/null || echo unknown`
1226uname -s = `(uname -s) 2>/dev/null || echo unknown`
1227uname -v = `(uname -v) 2>/dev/null || echo unknown`
1228
1229/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1230/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1231
1232/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1233/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1234/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1235hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1236/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1237/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1238/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1239
1240_ASUNAME
1241
1242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1243for as_dir in $PATH
1244do
1245 IFS=$as_save_IFS
1246 test -z "$as_dir" && as_dir=.
1247 echo "PATH: $as_dir"
1248done
1249
1250} >&5
1251
1252cat >&5 <<_ACEOF
1253
1254
1255## ----------- ##
1256## Core tests. ##
1257## ----------- ##
1258
1259_ACEOF
1260
1261
1262# Keep a trace of the command line.
1263# Strip out --no-create and --no-recursion so they do not pile up.
1264# Strip out --silent because we don't want to record it for future runs.
1265# Also quote any args containing shell meta-characters.
1266# Make two passes to allow for proper duplicate-argument suppression.
1267ac_configure_args=
1268ac_configure_args0=
1269ac_configure_args1=
1270ac_sep=
1271ac_must_keep_next=false
1272for ac_pass in 1 2
1273do
1274 for ac_arg
1275 do
1276 case $ac_arg in
1277 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1278 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1279 | -silent | --silent | --silen | --sile | --sil)
1280 continue ;;
1281 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1282 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1283 esac
1284 case $ac_pass in
1285 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1286 2)
1287 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1288 if test $ac_must_keep_next = true; then
1289 ac_must_keep_next=false # Got value, back to normal.
1290 else
1291 case $ac_arg in
1292 *=* | --config-cache | -C | -disable-* | --disable-* \
1293 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1294 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1295 | -with-* | --with-* | -without-* | --without-* | --x)
1296 case "$ac_configure_args0 " in
1297 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1298 esac
1299 ;;
1300 -* ) ac_must_keep_next=true ;;
1301 esac
1302 fi
1303 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1304 # Get rid of the leading space.
1305 ac_sep=" "
1306 ;;
1307 esac
1308 done
1309done
1310$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1311$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1312
1313# When interrupted or exit'd, cleanup temporary files, and complete
1314# config.log. We remove comments because anyway the quotes in there
1315# would cause problems or look ugly.
1316# WARNING: Be sure not to use single quotes in there, as some shells,
1317# such as our DU 5.0 friend, will then `close' the trap.
1318trap 'exit_status=$?
1319 # Save into config.log some information that might help in debugging.
1320 {
1321 echo
1322
1323 cat <<\_ASBOX
1324## ---------------- ##
1325## Cache variables. ##
1326## ---------------- ##
1327_ASBOX
1328 echo
1329 # The following way of writing the cache mishandles newlines in values,
1330{
1331 (set) 2>&1 |
1332 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1333 *ac_space=\ *)
1334 sed -n \
1335 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1336 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1337 ;;
1338 *)
1339 sed -n \
1340 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1341 ;;
1342 esac;
1343}
1344 echo
1345
1346 cat <<\_ASBOX
1347## ----------------- ##
1348## Output variables. ##
1349## ----------------- ##
1350_ASBOX
1351 echo
1352 for ac_var in $ac_subst_vars
1353 do
1354 eval ac_val=$`echo $ac_var`
1355 echo "$ac_var='"'"'$ac_val'"'"'"
1356 done | sort
1357 echo
1358
1359 if test -n "$ac_subst_files"; then
1360 cat <<\_ASBOX
1361## ------------- ##
1362## Output files. ##
1363## ------------- ##
1364_ASBOX
1365 echo
1366 for ac_var in $ac_subst_files
1367 do
1368 eval ac_val=$`echo $ac_var`
1369 echo "$ac_var='"'"'$ac_val'"'"'"
1370 done | sort
1371 echo
1372 fi
1373
1374 if test -s confdefs.h; then
1375 cat <<\_ASBOX
1376## ----------- ##
1377## confdefs.h. ##
1378## ----------- ##
1379_ASBOX
1380 echo
1381 sed "/^$/d" confdefs.h | sort
1382 echo
1383 fi
1384 test "$ac_signal" != 0 &&
1385 echo "$as_me: caught signal $ac_signal"
1386 echo "$as_me: exit $exit_status"
1387 } >&5
1388 rm -f core *.core &&
1389 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1390 exit $exit_status
1391 ' 0
1392for ac_signal in 1 2 13 15; do
1393 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1394done
1395ac_signal=0
1396
1397# confdefs.h avoids OS command line length limits that DEFS can exceed.
1398rm -rf conftest* confdefs.h
1399# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1400echo >confdefs.h
1401
1402# Predefined preprocessor variables.
1403
1404cat >>confdefs.h <<_ACEOF
1405#define PACKAGE_NAME "$PACKAGE_NAME"
1406_ACEOF
1407
1408
1409cat >>confdefs.h <<_ACEOF
1410#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1411_ACEOF
1412
1413
1414cat >>confdefs.h <<_ACEOF
1415#define PACKAGE_VERSION "$PACKAGE_VERSION"
1416_ACEOF
1417
1418
1419cat >>confdefs.h <<_ACEOF
1420#define PACKAGE_STRING "$PACKAGE_STRING"
1421_ACEOF
1422
1423
1424cat >>confdefs.h <<_ACEOF
1425#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1426_ACEOF
1427
1428
1429# Let the site file select an alternate cache file if it wants to.
746# Prefer explicitly selected file to automatically selected ones. 1430# Prefer explicitly selected file to automatically selected ones.
747if test -z "$CONFIG_SITE"; then 1431if test -z "$CONFIG_SITE"; then
748 if test "x$prefix" != xNONE; then 1432 if test "x$prefix" != xNONE; then
749 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1433 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
750 else 1434 else
751 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1435 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
752 fi 1436 fi
753fi 1437fi
754for ac_site_file in $CONFIG_SITE; do 1438for ac_site_file in $CONFIG_SITE; do
755 if test -r "$ac_site_file"; then 1439 if test -r "$ac_site_file"; then
1440 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
756 echo "loading site script $ac_site_file" 1441echo "$as_me: loading site script $ac_site_file" >&6;}
1442 sed 's/^/| /' "$ac_site_file" >&5
757 . "$ac_site_file" 1443 . "$ac_site_file"
758 fi 1444 fi
759done 1445done
760 1446
761if test -r "$cache_file"; then 1447if test -r "$cache_file"; then
1448 # Some versions of bash will fail to source /dev/null (special
1449 # files actually), so we avoid doing that.
1450 if test -f "$cache_file"; then
1451 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
762 echo "loading cache $cache_file" 1452echo "$as_me: loading cache $cache_file" >&6;}
763 . $cache_file 1453 case $cache_file in
1454 [\\/]* | ?:[\\/]* ) . $cache_file;;
1455 *) . ./$cache_file;;
1456 esac
1457 fi
764else 1458else
1459 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
765 echo "creating cache $cache_file" 1460echo "$as_me: creating cache $cache_file" >&6;}
766 > $cache_file 1461 >$cache_file
1462fi
1463
1464# Check that the precious variables saved in the cache have kept the same
1465# value.
1466ac_cache_corrupted=false
1467for ac_var in `(set) 2>&1 |
1468 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1469 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1470 eval ac_new_set=\$ac_env_${ac_var}_set
1471 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1472 eval ac_new_val="\$ac_env_${ac_var}_value"
1473 case $ac_old_set,$ac_new_set in
1474 set,)
1475 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1476echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1477 ac_cache_corrupted=: ;;
1478 ,set)
1479 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1480echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1481 ac_cache_corrupted=: ;;
1482 ,);;
1483 *)
1484 if test "x$ac_old_val" != "x$ac_new_val"; then
1485 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1486echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1487 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1488echo "$as_me: former value: $ac_old_val" >&2;}
1489 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1490echo "$as_me: current value: $ac_new_val" >&2;}
1491 ac_cache_corrupted=:
1492 fi;;
1493 esac
1494 # Pass precious variables to config.status.
1495 if test "$ac_new_set" = set; then
1496 case $ac_new_val in
1497 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1498 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1499 *) ac_arg=$ac_var=$ac_new_val ;;
1500 esac
1501 case " $ac_configure_args " in
1502 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1503 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1504 esac
1505 fi
1506done
1507if $ac_cache_corrupted; then
1508 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1509echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1510 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1511echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1512 { (exit 1); exit 1; }; }
767fi 1513fi
768 1514
769ac_ext=c 1515ac_ext=c
770# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
771ac_cpp='$CPP $CPPFLAGS' 1516ac_cpp='$CPP $CPPFLAGS'
772ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1517ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
773ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1518ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
774cross_compiling=$ac_cv_prog_cc_cross 1519ac_compiler_gnu=$ac_cv_c_compiler_gnu
775 1520
776ac_exeext= 1521
777ac_objext=o 1522
778if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 1523
779 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 1524
780 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 1525
781 ac_n= ac_c=' 1526
782' ac_t=' ' 1527
783 else 1528
784 ac_n=-n ac_c= ac_t= 1529
785 fi 1530
786else 1531
787 ac_n= ac_c='\c' ac_t= 1532
788fi 1533
1534
1535
1536
789 1537
790 1538
791ac_aux_dir= 1539ac_aux_dir=
792for ac_dir in autoconf $srcdir/autoconf; do 1540for ac_dir in autoconf $srcdir/autoconf; do
793 if test -f $ac_dir/install-sh; then 1541 if test -f $ac_dir/install-sh; then
796 break 1544 break
797 elif test -f $ac_dir/install.sh; then 1545 elif test -f $ac_dir/install.sh; then
798 ac_aux_dir=$ac_dir 1546 ac_aux_dir=$ac_dir
799 ac_install_sh="$ac_aux_dir/install.sh -c" 1547 ac_install_sh="$ac_aux_dir/install.sh -c"
800 break 1548 break
1549 elif test -f $ac_dir/shtool; then
1550 ac_aux_dir=$ac_dir
1551 ac_install_sh="$ac_aux_dir/shtool install -c"
1552 break
801 fi 1553 fi
802done 1554done
803if test -z "$ac_aux_dir"; then 1555if test -z "$ac_aux_dir"; then
1556 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
804 { echo "configure: error: can not find install-sh or install.sh in autoconf $srcdir/autoconf" 1>&2; exit 1; } 1557echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1558 { (exit 1); exit 1; }; }
805fi 1559fi
806ac_config_guess=$ac_aux_dir/config.guess 1560ac_config_guess="$SHELL $ac_aux_dir/config.guess"
807ac_config_sub=$ac_aux_dir/config.sub 1561ac_config_sub="$SHELL $ac_aux_dir/config.sub"
808ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 1562ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
809 1563
1564 ac_config_headers="$ac_config_headers config.h:autoconf/config.h.in"
810 1565
811 1566
812VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1567VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
813DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1568DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
814LSMDATE=`sed -n -e 's/^.*[ \t]LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1569LSMDATE=`sed -n -e 's/^.*[ \t]LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
816echo "" 1571echo ""
817echo "configuring for rxvt $VERSION" 1572echo "configuring for rxvt $VERSION"
818echo "" 1573echo ""
819 1574
820 1575
1576ac_ext=c
1577ac_cpp='$CPP $CPPFLAGS'
1578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1580ac_compiler_gnu=$ac_cv_c_compiler_gnu
1581if test -n "$ac_tool_prefix"; then
821# Extract the first word of "gcc", so it can be a program name with args. 1582 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
822set dummy gcc; ac_word=$2 1583set dummy ${ac_tool_prefix}gcc; ac_word=$2
1584echo "$as_me:$LINENO: checking for $ac_word" >&5
823echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1585echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
824echo "configure:825: checking for $ac_word" >&5
825if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1586if test "${ac_cv_prog_CC+set}" = set; then
826 echo $ac_n "(cached) $ac_c" 1>&6 1587 echo $ECHO_N "(cached) $ECHO_C" >&6
827else 1588else
828 if test -n "$CC"; then 1589 if test -n "$CC"; then
829 ac_cv_prog_CC="$CC" # Let the user override the test. 1590 ac_cv_prog_CC="$CC" # Let the user override the test.
830else 1591else
831 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
832 ac_dummy="$PATH" 1593for as_dir in $PATH
833 for ac_dir in $ac_dummy; do 1594do
1595 IFS=$as_save_IFS
834 test -z "$ac_dir" && ac_dir=. 1596 test -z "$as_dir" && as_dir=.
835 if test -f $ac_dir/$ac_word; then 1597 for ac_exec_ext in '' $ac_executable_extensions; do
836 ac_cv_prog_CC="gcc" 1598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1599 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
837 break 1601 break 2
838 fi 1602 fi
839 done 1603done
840 IFS="$ac_save_ifs" 1604done
1605
841fi 1606fi
842fi 1607fi
843CC="$ac_cv_prog_CC" 1608CC=$ac_cv_prog_CC
844if test -n "$CC"; then 1609if test -n "$CC"; then
845 echo "$ac_t""$CC" 1>&6 1610 echo "$as_me:$LINENO: result: $CC" >&5
1611echo "${ECHO_T}$CC" >&6
846else 1612else
847 echo "$ac_t""no" 1>&6 1613 echo "$as_me:$LINENO: result: no" >&5
1614echo "${ECHO_T}no" >&6
848fi 1615fi
849 1616
1617fi
1618if test -z "$ac_cv_prog_CC"; then
1619 ac_ct_CC=$CC
1620 # Extract the first word of "gcc", so it can be a program name with args.
1621set dummy gcc; ac_word=$2
1622echo "$as_me:$LINENO: checking for $ac_word" >&5
1623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1624if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1625 echo $ECHO_N "(cached) $ECHO_C" >&6
1626else
1627 if test -n "$ac_ct_CC"; then
1628 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1629else
1630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1631for as_dir in $PATH
1632do
1633 IFS=$as_save_IFS
1634 test -z "$as_dir" && as_dir=.
1635 for ac_exec_ext in '' $ac_executable_extensions; do
1636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1637 ac_cv_prog_ac_ct_CC="gcc"
1638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1639 break 2
1640 fi
1641done
1642done
1643
1644fi
1645fi
1646ac_ct_CC=$ac_cv_prog_ac_ct_CC
1647if test -n "$ac_ct_CC"; then
1648 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1649echo "${ECHO_T}$ac_ct_CC" >&6
1650else
1651 echo "$as_me:$LINENO: result: no" >&5
1652echo "${ECHO_T}no" >&6
1653fi
1654
1655 CC=$ac_ct_CC
1656else
1657 CC="$ac_cv_prog_CC"
1658fi
1659
1660if test -z "$CC"; then
1661 if test -n "$ac_tool_prefix"; then
1662 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1663set dummy ${ac_tool_prefix}cc; ac_word=$2
1664echo "$as_me:$LINENO: checking for $ac_word" >&5
1665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1666if test "${ac_cv_prog_CC+set}" = set; then
1667 echo $ECHO_N "(cached) $ECHO_C" >&6
1668else
1669 if test -n "$CC"; then
1670 ac_cv_prog_CC="$CC" # Let the user override the test.
1671else
1672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1673for as_dir in $PATH
1674do
1675 IFS=$as_save_IFS
1676 test -z "$as_dir" && as_dir=.
1677 for ac_exec_ext in '' $ac_executable_extensions; do
1678 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1679 ac_cv_prog_CC="${ac_tool_prefix}cc"
1680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1681 break 2
1682 fi
1683done
1684done
1685
1686fi
1687fi
1688CC=$ac_cv_prog_CC
1689if test -n "$CC"; then
1690 echo "$as_me:$LINENO: result: $CC" >&5
1691echo "${ECHO_T}$CC" >&6
1692else
1693 echo "$as_me:$LINENO: result: no" >&5
1694echo "${ECHO_T}no" >&6
1695fi
1696
1697fi
1698if test -z "$ac_cv_prog_CC"; then
1699 ac_ct_CC=$CC
1700 # Extract the first word of "cc", so it can be a program name with args.
1701set dummy cc; ac_word=$2
1702echo "$as_me:$LINENO: checking for $ac_word" >&5
1703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1704if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1705 echo $ECHO_N "(cached) $ECHO_C" >&6
1706else
1707 if test -n "$ac_ct_CC"; then
1708 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1709else
1710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1711for as_dir in $PATH
1712do
1713 IFS=$as_save_IFS
1714 test -z "$as_dir" && as_dir=.
1715 for ac_exec_ext in '' $ac_executable_extensions; do
1716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1717 ac_cv_prog_ac_ct_CC="cc"
1718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1719 break 2
1720 fi
1721done
1722done
1723
1724fi
1725fi
1726ac_ct_CC=$ac_cv_prog_ac_ct_CC
1727if test -n "$ac_ct_CC"; then
1728 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1729echo "${ECHO_T}$ac_ct_CC" >&6
1730else
1731 echo "$as_me:$LINENO: result: no" >&5
1732echo "${ECHO_T}no" >&6
1733fi
1734
1735 CC=$ac_ct_CC
1736else
1737 CC="$ac_cv_prog_CC"
1738fi
1739
1740fi
850if test -z "$CC"; then 1741if test -z "$CC"; then
851 # Extract the first word of "cc", so it can be a program name with args. 1742 # Extract the first word of "cc", so it can be a program name with args.
852set dummy cc; ac_word=$2 1743set dummy cc; ac_word=$2
1744echo "$as_me:$LINENO: checking for $ac_word" >&5
853echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1745echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
854echo "configure:855: checking for $ac_word" >&5
855if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1746if test "${ac_cv_prog_CC+set}" = set; then
856 echo $ac_n "(cached) $ac_c" 1>&6 1747 echo $ECHO_N "(cached) $ECHO_C" >&6
857else 1748else
858 if test -n "$CC"; then 1749 if test -n "$CC"; then
859 ac_cv_prog_CC="$CC" # Let the user override the test. 1750 ac_cv_prog_CC="$CC" # Let the user override the test.
860else 1751else
861 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
862 ac_prog_rejected=no 1752 ac_prog_rejected=no
863 ac_dummy="$PATH" 1753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
864 for ac_dir in $ac_dummy; do 1754for as_dir in $PATH
1755do
1756 IFS=$as_save_IFS
865 test -z "$ac_dir" && ac_dir=. 1757 test -z "$as_dir" && as_dir=.
866 if test -f $ac_dir/$ac_word; then 1758 for ac_exec_ext in '' $ac_executable_extensions; do
1759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
867 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1760 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
868 ac_prog_rejected=yes 1761 ac_prog_rejected=yes
869 continue 1762 continue
870 fi 1763 fi
871 ac_cv_prog_CC="cc" 1764 ac_cv_prog_CC="cc"
1765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
872 break 1766 break 2
873 fi 1767 fi
874 done 1768done
875 IFS="$ac_save_ifs" 1769done
1770
876if test $ac_prog_rejected = yes; then 1771if test $ac_prog_rejected = yes; then
877 # We found a bogon in the path, so make sure we never use it. 1772 # We found a bogon in the path, so make sure we never use it.
878 set dummy $ac_cv_prog_CC 1773 set dummy $ac_cv_prog_CC
879 shift 1774 shift
880 if test $# -gt 0; then 1775 if test $# != 0; then
881 # We chose a different compiler from the bogus one. 1776 # We chose a different compiler from the bogus one.
882 # However, it has the same basename, so the bogon will be chosen 1777 # However, it has the same basename, so the bogon will be chosen
883 # first if we set CC to just the basename; use the full file name. 1778 # first if we set CC to just the basename; use the full file name.
884 shift 1779 shift
885 set dummy "$ac_dir/$ac_word" "$@" 1780 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
886 shift
887 ac_cv_prog_CC="$@"
888 fi 1781 fi
889fi 1782fi
890fi 1783fi
891fi 1784fi
892CC="$ac_cv_prog_CC" 1785CC=$ac_cv_prog_CC
893if test -n "$CC"; then 1786if test -n "$CC"; then
894 echo "$ac_t""$CC" 1>&6 1787 echo "$as_me:$LINENO: result: $CC" >&5
1788echo "${ECHO_T}$CC" >&6
895else 1789else
896 echo "$ac_t""no" 1>&6 1790 echo "$as_me:$LINENO: result: no" >&5
1791echo "${ECHO_T}no" >&6
897fi 1792fi
898 1793
1794fi
899 if test -z "$CC"; then 1795if test -z "$CC"; then
900 case "`uname -s`" in 1796 if test -n "$ac_tool_prefix"; then
901 *win32* | *WIN32*) 1797 for ac_prog in cl
1798 do
902 # Extract the first word of "cl", so it can be a program name with args. 1799 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
903set dummy cl; ac_word=$2 1800set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1801echo "$as_me:$LINENO: checking for $ac_word" >&5
904echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1802echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
905echo "configure:906: checking for $ac_word" >&5
906if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1803if test "${ac_cv_prog_CC+set}" = set; then
907 echo $ac_n "(cached) $ac_c" 1>&6 1804 echo $ECHO_N "(cached) $ECHO_C" >&6
908else 1805else
909 if test -n "$CC"; then 1806 if test -n "$CC"; then
910 ac_cv_prog_CC="$CC" # Let the user override the test. 1807 ac_cv_prog_CC="$CC" # Let the user override the test.
911else 1808else
912 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
913 ac_dummy="$PATH" 1810for as_dir in $PATH
914 for ac_dir in $ac_dummy; do 1811do
1812 IFS=$as_save_IFS
915 test -z "$ac_dir" && ac_dir=. 1813 test -z "$as_dir" && as_dir=.
916 if test -f $ac_dir/$ac_word; then 1814 for ac_exec_ext in '' $ac_executable_extensions; do
917 ac_cv_prog_CC="cl" 1815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1816 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
918 break 1818 break 2
1819 fi
1820done
1821done
1822
1823fi
1824fi
1825CC=$ac_cv_prog_CC
1826if test -n "$CC"; then
1827 echo "$as_me:$LINENO: result: $CC" >&5
1828echo "${ECHO_T}$CC" >&6
1829else
1830 echo "$as_me:$LINENO: result: no" >&5
1831echo "${ECHO_T}no" >&6
1832fi
1833
1834 test -n "$CC" && break
1835 done
1836fi
1837if test -z "$CC"; then
1838 ac_ct_CC=$CC
1839 for ac_prog in cl
1840do
1841 # Extract the first word of "$ac_prog", so it can be a program name with args.
1842set dummy $ac_prog; ac_word=$2
1843echo "$as_me:$LINENO: checking for $ac_word" >&5
1844echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1845if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1846 echo $ECHO_N "(cached) $ECHO_C" >&6
1847else
1848 if test -n "$ac_ct_CC"; then
1849 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1850else
1851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1852for as_dir in $PATH
1853do
1854 IFS=$as_save_IFS
1855 test -z "$as_dir" && as_dir=.
1856 for ac_exec_ext in '' $ac_executable_extensions; do
1857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1858 ac_cv_prog_ac_ct_CC="$ac_prog"
1859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1860 break 2
1861 fi
1862done
1863done
1864
1865fi
1866fi
1867ac_ct_CC=$ac_cv_prog_ac_ct_CC
1868if test -n "$ac_ct_CC"; then
1869 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1870echo "${ECHO_T}$ac_ct_CC" >&6
1871else
1872 echo "$as_me:$LINENO: result: no" >&5
1873echo "${ECHO_T}no" >&6
1874fi
1875
1876 test -n "$ac_ct_CC" && break
1877done
1878
1879 CC=$ac_ct_CC
1880fi
1881
1882fi
1883
1884
1885test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1886See \`config.log' for more details." >&5
1887echo "$as_me: error: no acceptable C compiler found in \$PATH
1888See \`config.log' for more details." >&2;}
1889 { (exit 1); exit 1; }; }
1890
1891# Provide some information about the compiler.
1892echo "$as_me:$LINENO:" \
1893 "checking for C compiler version" >&5
1894ac_compiler=`set X $ac_compile; echo $2`
1895{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1896 (eval $ac_compiler --version </dev/null >&5) 2>&5
1897 ac_status=$?
1898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1899 (exit $ac_status); }
1900{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1901 (eval $ac_compiler -v </dev/null >&5) 2>&5
1902 ac_status=$?
1903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1904 (exit $ac_status); }
1905{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1906 (eval $ac_compiler -V </dev/null >&5) 2>&5
1907 ac_status=$?
1908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1909 (exit $ac_status); }
1910
1911cat >conftest.$ac_ext <<_ACEOF
1912/* confdefs.h. */
1913_ACEOF
1914cat confdefs.h >>conftest.$ac_ext
1915cat >>conftest.$ac_ext <<_ACEOF
1916/* end confdefs.h. */
1917
1918int
1919main ()
1920{
1921
1922 ;
1923 return 0;
1924}
1925_ACEOF
1926ac_clean_files_save=$ac_clean_files
1927ac_clean_files="$ac_clean_files a.out a.exe b.out"
1928# Try to create an executable without -o first, disregard a.out.
1929# It will help us diagnose broken compilers, and finding out an intuition
1930# of exeext.
1931echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1932echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1933ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1934if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1935 (eval $ac_link_default) 2>&5
1936 ac_status=$?
1937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1938 (exit $ac_status); }; then
1939 # Find the output, starting from the most likely. This scheme is
1940# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1941# resort.
1942
1943# Be careful to initialize this variable, since it used to be cached.
1944# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1945ac_cv_exeext=
1946# b.out is created by i960 compilers.
1947for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1948do
1949 test -f "$ac_file" || continue
1950 case $ac_file in
1951 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1952 ;;
1953 conftest.$ac_ext )
1954 # This is the source file.
1955 ;;
1956 [ab].out )
1957 # We found the default executable, but exeext='' is most
1958 # certainly right.
1959 break;;
1960 *.* )
1961 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1962 # FIXME: I believe we export ac_cv_exeext for Libtool,
1963 # but it would be cool to find out if it's true. Does anybody
1964 # maintain Libtool? --akim.
1965 export ac_cv_exeext
1966 break;;
1967 * )
1968 break;;
1969 esac
1970done
1971else
1972 echo "$as_me: failed program was:" >&5
1973sed 's/^/| /' conftest.$ac_ext >&5
1974
1975{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1976See \`config.log' for more details." >&5
1977echo "$as_me: error: C compiler cannot create executables
1978See \`config.log' for more details." >&2;}
1979 { (exit 77); exit 77; }; }
1980fi
1981
1982ac_exeext=$ac_cv_exeext
1983echo "$as_me:$LINENO: result: $ac_file" >&5
1984echo "${ECHO_T}$ac_file" >&6
1985
1986# Check the compiler produces executables we can run. If not, either
1987# the compiler is broken, or we cross compile.
1988echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1989echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1990# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1991# If not cross compiling, check that we can run a simple program.
1992if test "$cross_compiling" != yes; then
1993 if { ac_try='./$ac_file'
1994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1995 (eval $ac_try) 2>&5
1996 ac_status=$?
1997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998 (exit $ac_status); }; }; then
1999 cross_compiling=no
2000 else
2001 if test "$cross_compiling" = maybe; then
2002 cross_compiling=yes
2003 else
2004 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2005If you meant to cross compile, use \`--host'.
2006See \`config.log' for more details." >&5
2007echo "$as_me: error: cannot run C compiled programs.
2008If you meant to cross compile, use \`--host'.
2009See \`config.log' for more details." >&2;}
2010 { (exit 1); exit 1; }; }
919 fi 2011 fi
920 done
921 IFS="$ac_save_ifs"
922fi
923fi
924CC="$ac_cv_prog_CC"
925if test -n "$CC"; then
926 echo "$ac_t""$CC" 1>&6
927else
928 echo "$ac_t""no" 1>&6
929fi
930 ;;
931 esac
932 fi 2012 fi
933 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
934fi 2013fi
2014echo "$as_me:$LINENO: result: yes" >&5
2015echo "${ECHO_T}yes" >&6
935 2016
936echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 2017rm -f a.out a.exe conftest$ac_cv_exeext b.out
937echo "configure:938: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 2018ac_clean_files=$ac_clean_files_save
2019# Check the compiler produces executables we can run. If not, either
2020# the compiler is broken, or we cross compile.
2021echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2022echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2023echo "$as_me:$LINENO: result: $cross_compiling" >&5
2024echo "${ECHO_T}$cross_compiling" >&6
938 2025
939ac_ext=c 2026echo "$as_me:$LINENO: checking for suffix of executables" >&5
940# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 2027echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
941ac_cpp='$CPP $CPPFLAGS' 2028if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
942ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 2029 (eval $ac_link) 2>&5
943ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 2030 ac_status=$?
944cross_compiling=$ac_cv_prog_cc_cross 2031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032 (exit $ac_status); }; then
2033 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2034# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2035# work properly (i.e., refer to `conftest.exe'), while it won't with
2036# `rm'.
2037for ac_file in conftest.exe conftest conftest.*; do
2038 test -f "$ac_file" || continue
2039 case $ac_file in
2040 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2041 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2042 export ac_cv_exeext
2043 break;;
2044 * ) break;;
2045 esac
2046done
2047else
2048 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2049See \`config.log' for more details." >&5
2050echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2051See \`config.log' for more details." >&2;}
2052 { (exit 1); exit 1; }; }
2053fi
945 2054
2055rm -f conftest$ac_cv_exeext
2056echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2057echo "${ECHO_T}$ac_cv_exeext" >&6
2058
2059rm -f conftest.$ac_ext
2060EXEEXT=$ac_cv_exeext
2061ac_exeext=$EXEEXT
2062echo "$as_me:$LINENO: checking for suffix of object files" >&5
2063echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2064if test "${ac_cv_objext+set}" = set; then
2065 echo $ECHO_N "(cached) $ECHO_C" >&6
2066else
2067 cat >conftest.$ac_ext <<_ACEOF
2068/* confdefs.h. */
2069_ACEOF
2070cat confdefs.h >>conftest.$ac_ext
946cat > conftest.$ac_ext << EOF 2071cat >>conftest.$ac_ext <<_ACEOF
2072/* end confdefs.h. */
947 2073
948#line 949 "configure" 2074int
949#include "confdefs.h" 2075main ()
2076{
950 2077
951main(){return(0);} 2078 ;
952EOF 2079 return 0;
953if { (eval echo configure:954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2080}
954 ac_cv_prog_cc_works=yes 2081_ACEOF
955 # If we can't run a trivial program, we are probably using a cross compiler. 2082rm -f conftest.o conftest.obj
956 if (./conftest; exit) 2>/dev/null; then 2083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
957 ac_cv_prog_cc_cross=no 2084 (eval $ac_compile) 2>&5
2085 ac_status=$?
2086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2087 (exit $ac_status); }; then
2088 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2089 case $ac_file in
2090 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2091 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2092 break;;
2093 esac
2094done
958 else 2095else
959 ac_cv_prog_cc_cross=yes
960 fi
961else
962 echo "configure: failed program was:" >&5 2096 echo "$as_me: failed program was:" >&5
963 cat conftest.$ac_ext >&5 2097sed 's/^/| /' conftest.$ac_ext >&5
964 ac_cv_prog_cc_works=no
965fi
966rm -fr conftest*
967ac_ext=c
968# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
969ac_cpp='$CPP $CPPFLAGS'
970ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
971ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
972cross_compiling=$ac_cv_prog_cc_cross
973 2098
974echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 2099{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
975if test $ac_cv_prog_cc_works = no; then 2100See \`config.log' for more details." >&5
976 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 2101echo "$as_me: error: cannot compute suffix of object files: cannot compile
2102See \`config.log' for more details." >&2;}
2103 { (exit 1); exit 1; }; }
977fi 2104fi
978echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
979echo "configure:980: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
980echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
981cross_compiling=$ac_cv_prog_cc_cross
982 2105
2106rm -f conftest.$ac_cv_objext conftest.$ac_ext
2107fi
2108echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2109echo "${ECHO_T}$ac_cv_objext" >&6
2110OBJEXT=$ac_cv_objext
2111ac_objext=$OBJEXT
2112echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
983echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 2113echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
984echo "configure:985: checking whether we are using GNU C" >&5 2114if test "${ac_cv_c_compiler_gnu+set}" = set; then
985if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
986 echo $ac_n "(cached) $ac_c" 1>&6 2115 echo $ECHO_N "(cached) $ECHO_C" >&6
987else 2116else
988 cat > conftest.c <<EOF 2117 cat >conftest.$ac_ext <<_ACEOF
2118/* confdefs.h. */
2119_ACEOF
2120cat confdefs.h >>conftest.$ac_ext
2121cat >>conftest.$ac_ext <<_ACEOF
2122/* end confdefs.h. */
2123
2124int
2125main ()
2126{
989#ifdef __GNUC__ 2127#ifndef __GNUC__
990 yes; 2128 choke me
991#endif 2129#endif
992EOF
993if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:994: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
994 ac_cv_prog_gcc=yes
995else
996 ac_cv_prog_gcc=no
997fi
998fi
999 2130
1000echo "$ac_t""$ac_cv_prog_gcc" 1>&6 2131 ;
1001 2132 return 0;
1002if test $ac_cv_prog_gcc = yes; then 2133}
1003 GCC=yes 2134_ACEOF
2135rm -f conftest.$ac_objext
2136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2137 (eval $ac_compile) 2>conftest.er1
2138 ac_status=$?
2139 grep -v '^ *+' conftest.er1 >conftest.err
2140 rm -f conftest.er1
2141 cat conftest.err >&5
2142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143 (exit $ac_status); } &&
2144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2146 (eval $ac_try) 2>&5
2147 ac_status=$?
2148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149 (exit $ac_status); }; } &&
2150 { ac_try='test -s conftest.$ac_objext'
2151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2152 (eval $ac_try) 2>&5
2153 ac_status=$?
2154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155 (exit $ac_status); }; }; then
2156 ac_compiler_gnu=yes
1004else 2157else
1005 GCC= 2158 echo "$as_me: failed program was:" >&5
1006fi 2159sed 's/^/| /' conftest.$ac_ext >&5
1007 2160
2161ac_compiler_gnu=no
2162fi
2163rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2164ac_cv_c_compiler_gnu=$ac_compiler_gnu
2165
2166fi
2167echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2168echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2169GCC=`test $ac_compiler_gnu = yes && echo yes`
1008ac_test_CFLAGS="${CFLAGS+set}" 2170ac_test_CFLAGS=${CFLAGS+set}
1009ac_save_CFLAGS="$CFLAGS" 2171ac_save_CFLAGS=$CFLAGS
1010CFLAGS= 2172CFLAGS="-g"
2173echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1011echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 2174echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1012echo "configure:1013: checking whether ${CC-cc} accepts -g" >&5
1013if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 2175if test "${ac_cv_prog_cc_g+set}" = set; then
1014 echo $ac_n "(cached) $ac_c" 1>&6 2176 echo $ECHO_N "(cached) $ECHO_C" >&6
1015else 2177else
1016 echo 'void f(){}' > conftest.c 2178 cat >conftest.$ac_ext <<_ACEOF
1017if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 2179/* confdefs.h. */
2180_ACEOF
2181cat confdefs.h >>conftest.$ac_ext
2182cat >>conftest.$ac_ext <<_ACEOF
2183/* end confdefs.h. */
2184
2185int
2186main ()
2187{
2188
2189 ;
2190 return 0;
2191}
2192_ACEOF
2193rm -f conftest.$ac_objext
2194if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2195 (eval $ac_compile) 2>conftest.er1
2196 ac_status=$?
2197 grep -v '^ *+' conftest.er1 >conftest.err
2198 rm -f conftest.er1
2199 cat conftest.err >&5
2200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201 (exit $ac_status); } &&
2202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2204 (eval $ac_try) 2>&5
2205 ac_status=$?
2206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207 (exit $ac_status); }; } &&
2208 { ac_try='test -s conftest.$ac_objext'
2209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2210 (eval $ac_try) 2>&5
2211 ac_status=$?
2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213 (exit $ac_status); }; }; then
1018 ac_cv_prog_cc_g=yes 2214 ac_cv_prog_cc_g=yes
1019else 2215else
2216 echo "$as_me: failed program was:" >&5
2217sed 's/^/| /' conftest.$ac_ext >&5
2218
1020 ac_cv_prog_cc_g=no 2219ac_cv_prog_cc_g=no
1021fi 2220fi
1022rm -f conftest* 2221rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1023
1024fi 2222fi
1025 2223echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1026echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 2224echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1027if test "$ac_test_CFLAGS" = set; then 2225if test "$ac_test_CFLAGS" = set; then
1028 CFLAGS="$ac_save_CFLAGS" 2226 CFLAGS=$ac_save_CFLAGS
1029elif test $ac_cv_prog_cc_g = yes; then 2227elif test $ac_cv_prog_cc_g = yes; then
1030 if test "$GCC" = yes; then 2228 if test "$GCC" = yes; then
1031 CFLAGS="-g -O2" 2229 CFLAGS="-g -O2"
1032 else 2230 else
1033 CFLAGS="-g" 2231 CFLAGS="-g"
1037 CFLAGS="-O2" 2235 CFLAGS="-O2"
1038 else 2236 else
1039 CFLAGS= 2237 CFLAGS=
1040 fi 2238 fi
1041fi 2239fi
2240echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2241echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2242if test "${ac_cv_prog_cc_stdc+set}" = set; then
2243 echo $ECHO_N "(cached) $ECHO_C" >&6
2244else
2245 ac_cv_prog_cc_stdc=no
2246ac_save_CC=$CC
2247cat >conftest.$ac_ext <<_ACEOF
2248/* confdefs.h. */
2249_ACEOF
2250cat confdefs.h >>conftest.$ac_ext
2251cat >>conftest.$ac_ext <<_ACEOF
2252/* end confdefs.h. */
2253#include <stdarg.h>
2254#include <stdio.h>
2255#include <sys/types.h>
2256#include <sys/stat.h>
2257/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2258struct buf { int x; };
2259FILE * (*rcsopen) (struct buf *, struct stat *, int);
2260static char *e (p, i)
2261 char **p;
2262 int i;
2263{
2264 return p[i];
2265}
2266static char *f (char * (*g) (char **, int), char **p, ...)
2267{
2268 char *s;
2269 va_list v;
2270 va_start (v,p);
2271 s = g (p, va_arg (v,int));
2272 va_end (v);
2273 return s;
2274}
1042 2275
1043for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl 2276/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2277 function prototypes and stuff, but not '\xHH' hex character constants.
2278 These don't provoke an error unfortunately, instead are silently treated
2279 as 'x'. The following induces an error, until -std1 is added to get
2280 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2281 array size at least. It's necessary to write '\x00'==0 to get something
2282 that's true only with -std1. */
2283int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2284
2285int test (int i, double x);
2286struct s1 {int (*f) (int a);};
2287struct s2 {int (*f) (double a);};
2288int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2289int argc;
2290char **argv;
2291int
2292main ()
2293{
2294return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2295 ;
2296 return 0;
2297}
2298_ACEOF
2299# Don't try gcc -ansi; that turns off useful extensions and
2300# breaks some systems' header files.
2301# AIX -qlanglvl=ansi
2302# Ultrix and OSF/1 -std1
2303# HP-UX 10.20 and later -Ae
2304# HP-UX older versions -Aa -D_HPUX_SOURCE
2305# SVR4 -Xc -D__EXTENSIONS__
2306for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1044do 2307do
2308 CC="$ac_save_CC $ac_arg"
2309 rm -f conftest.$ac_objext
2310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2311 (eval $ac_compile) 2>conftest.er1
2312 ac_status=$?
2313 grep -v '^ *+' conftest.er1 >conftest.err
2314 rm -f conftest.er1
2315 cat conftest.err >&5
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); } &&
2318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2320 (eval $ac_try) 2>&5
2321 ac_status=$?
2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323 (exit $ac_status); }; } &&
2324 { ac_try='test -s conftest.$ac_objext'
2325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2326 (eval $ac_try) 2>&5
2327 ac_status=$?
2328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329 (exit $ac_status); }; }; then
2330 ac_cv_prog_cc_stdc=$ac_arg
2331break
2332else
2333 echo "$as_me: failed program was:" >&5
2334sed 's/^/| /' conftest.$ac_ext >&5
2335
2336fi
2337rm -f conftest.err conftest.$ac_objext
2338done
2339rm -f conftest.$ac_ext conftest.$ac_objext
2340CC=$ac_save_CC
2341
2342fi
2343
2344case "x$ac_cv_prog_cc_stdc" in
2345 x|xno)
2346 echo "$as_me:$LINENO: result: none needed" >&5
2347echo "${ECHO_T}none needed" >&6 ;;
2348 *)
2349 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2350echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2351 CC="$CC $ac_cv_prog_cc_stdc" ;;
2352esac
2353
2354# Some people use a C++ compiler to compile C. Since we use `exit',
2355# in C++ we need to declare it. In case someone uses the same compiler
2356# for both compiling C and C++ we need to have the C++ compiler decide
2357# the declaration of exit, since it's the most demanding environment.
2358cat >conftest.$ac_ext <<_ACEOF
2359#ifndef __cplusplus
2360 choke me
2361#endif
2362_ACEOF
2363rm -f conftest.$ac_objext
2364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2365 (eval $ac_compile) 2>conftest.er1
2366 ac_status=$?
2367 grep -v '^ *+' conftest.er1 >conftest.err
2368 rm -f conftest.er1
2369 cat conftest.err >&5
2370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371 (exit $ac_status); } &&
2372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2374 (eval $ac_try) 2>&5
2375 ac_status=$?
2376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377 (exit $ac_status); }; } &&
2378 { ac_try='test -s conftest.$ac_objext'
2379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2380 (eval $ac_try) 2>&5
2381 ac_status=$?
2382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383 (exit $ac_status); }; }; then
2384 for ac_declaration in \
2385 '' \
2386 'extern "C" void std::exit (int) throw (); using std::exit;' \
2387 'extern "C" void std::exit (int); using std::exit;' \
2388 'extern "C" void exit (int) throw ();' \
2389 'extern "C" void exit (int);' \
2390 'void exit (int);'
2391do
2392 cat >conftest.$ac_ext <<_ACEOF
2393/* confdefs.h. */
2394_ACEOF
2395cat confdefs.h >>conftest.$ac_ext
2396cat >>conftest.$ac_ext <<_ACEOF
2397/* end confdefs.h. */
2398$ac_declaration
2399#include <stdlib.h>
2400int
2401main ()
2402{
2403exit (42);
2404 ;
2405 return 0;
2406}
2407_ACEOF
2408rm -f conftest.$ac_objext
2409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2410 (eval $ac_compile) 2>conftest.er1
2411 ac_status=$?
2412 grep -v '^ *+' conftest.er1 >conftest.err
2413 rm -f conftest.er1
2414 cat conftest.err >&5
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); } &&
2417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2419 (eval $ac_try) 2>&5
2420 ac_status=$?
2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 (exit $ac_status); }; } &&
2423 { ac_try='test -s conftest.$ac_objext'
2424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2425 (eval $ac_try) 2>&5
2426 ac_status=$?
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); }; }; then
2429 :
2430else
2431 echo "$as_me: failed program was:" >&5
2432sed 's/^/| /' conftest.$ac_ext >&5
2433
2434continue
2435fi
2436rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2437 cat >conftest.$ac_ext <<_ACEOF
2438/* confdefs.h. */
2439_ACEOF
2440cat confdefs.h >>conftest.$ac_ext
2441cat >>conftest.$ac_ext <<_ACEOF
2442/* end confdefs.h. */
2443$ac_declaration
2444int
2445main ()
2446{
2447exit (42);
2448 ;
2449 return 0;
2450}
2451_ACEOF
2452rm -f conftest.$ac_objext
2453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2454 (eval $ac_compile) 2>conftest.er1
2455 ac_status=$?
2456 grep -v '^ *+' conftest.er1 >conftest.err
2457 rm -f conftest.er1
2458 cat conftest.err >&5
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); } &&
2461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2463 (eval $ac_try) 2>&5
2464 ac_status=$?
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }; } &&
2467 { ac_try='test -s conftest.$ac_objext'
2468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2469 (eval $ac_try) 2>&5
2470 ac_status=$?
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); }; }; then
2473 break
2474else
2475 echo "$as_me: failed program was:" >&5
2476sed 's/^/| /' conftest.$ac_ext >&5
2477
2478fi
2479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2480done
2481rm -f conftest*
2482if test -n "$ac_declaration"; then
2483 echo '#ifdef __cplusplus' >>confdefs.h
2484 echo $ac_declaration >>confdefs.h
2485 echo '#endif' >>confdefs.h
2486fi
2487
2488else
2489 echo "$as_me: failed program was:" >&5
2490sed 's/^/| /' conftest.$ac_ext >&5
2491
2492fi
2493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2494ac_ext=c
2495ac_cpp='$CPP $CPPFLAGS'
2496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2498ac_compiler_gnu=$ac_cv_c_compiler_gnu
2499
2500ac_ext=cc
2501ac_cpp='$CXXCPP $CPPFLAGS'
2502ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2503ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2504ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2505if test -n "$ac_tool_prefix"; then
2506 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2507 do
1045# Extract the first word of "$ac_prog", so it can be a program name with args. 2508 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1046set dummy $ac_prog; ac_word=$2 2509set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2510echo "$as_me:$LINENO: checking for $ac_word" >&5
1047echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2511echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1048echo "configure:1049: checking for $ac_word" >&5
1049if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then 2512if test "${ac_cv_prog_CXX+set}" = set; then
1050 echo $ac_n "(cached) $ac_c" 1>&6 2513 echo $ECHO_N "(cached) $ECHO_C" >&6
1051else 2514else
1052 if test -n "$CXX"; then 2515 if test -n "$CXX"; then
1053 ac_cv_prog_CXX="$CXX" # Let the user override the test. 2516 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1054else 2517else
1055 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1056 ac_dummy="$PATH" 2519for as_dir in $PATH
1057 for ac_dir in $ac_dummy; do 2520do
2521 IFS=$as_save_IFS
1058 test -z "$ac_dir" && ac_dir=. 2522 test -z "$as_dir" && as_dir=.
1059 if test -f $ac_dir/$ac_word; then 2523 for ac_exec_ext in '' $ac_executable_extensions; do
2524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1060 ac_cv_prog_CXX="$ac_prog" 2525 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1061 break 2527 break 2
1062 fi 2528 fi
2529done
2530done
2531
2532fi
2533fi
2534CXX=$ac_cv_prog_CXX
2535if test -n "$CXX"; then
2536 echo "$as_me:$LINENO: result: $CXX" >&5
2537echo "${ECHO_T}$CXX" >&6
2538else
2539 echo "$as_me:$LINENO: result: no" >&5
2540echo "${ECHO_T}no" >&6
2541fi
2542
2543 test -n "$CXX" && break
1063 done 2544 done
1064 IFS="$ac_save_ifs"
1065fi 2545fi
1066fi
1067CXX="$ac_cv_prog_CXX"
1068if test -n "$CXX"; then 2546if test -z "$CXX"; then
1069 echo "$ac_t""$CXX" 1>&6 2547 ac_ct_CXX=$CXX
2548 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2549do
2550 # Extract the first word of "$ac_prog", so it can be a program name with args.
2551set dummy $ac_prog; ac_word=$2
2552echo "$as_me:$LINENO: checking for $ac_word" >&5
2553echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2554if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2555 echo $ECHO_N "(cached) $ECHO_C" >&6
1070else 2556else
1071 echo "$ac_t""no" 1>&6 2557 if test -n "$ac_ct_CXX"; then
1072fi 2558 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1073 2559else
1074test -n "$CXX" && break 2560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2561for as_dir in $PATH
2562do
2563 IFS=$as_save_IFS
2564 test -z "$as_dir" && as_dir=.
2565 for ac_exec_ext in '' $ac_executable_extensions; do
2566 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2567 ac_cv_prog_ac_ct_CXX="$ac_prog"
2568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2569 break 2
2570 fi
1075done 2571done
2572done
2573
2574fi
2575fi
2576ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2577if test -n "$ac_ct_CXX"; then
2578 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2579echo "${ECHO_T}$ac_ct_CXX" >&6
2580else
2581 echo "$as_me:$LINENO: result: no" >&5
2582echo "${ECHO_T}no" >&6
2583fi
2584
2585 test -n "$ac_ct_CXX" && break
2586done
1076test -n "$CXX" || CXX="gcc" 2587test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1077 2588
2589 CXX=$ac_ct_CXX
2590fi
1078 2591
1079echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1080echo "configure:1081: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1081 2592
1082ac_ext=C 2593# Provide some information about the compiler.
1083# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 2594echo "$as_me:$LINENO:" \
1084ac_cpp='$CXXCPP $CPPFLAGS' 2595 "checking for C++ compiler version" >&5
1085ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 2596ac_compiler=`set X $ac_compile; echo $2`
1086ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 2597{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1087cross_compiling=$ac_cv_prog_cxx_cross 2598 (eval $ac_compiler --version </dev/null >&5) 2>&5
2599 ac_status=$?
2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601 (exit $ac_status); }
2602{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2603 (eval $ac_compiler -v </dev/null >&5) 2>&5
2604 ac_status=$?
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); }
2607{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2608 (eval $ac_compiler -V </dev/null >&5) 2>&5
2609 ac_status=$?
2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611 (exit $ac_status); }
1088 2612
2613echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2614echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2615if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2616 echo $ECHO_N "(cached) $ECHO_C" >&6
2617else
2618 cat >conftest.$ac_ext <<_ACEOF
2619/* confdefs.h. */
2620_ACEOF
2621cat confdefs.h >>conftest.$ac_ext
1089cat > conftest.$ac_ext << EOF 2622cat >>conftest.$ac_ext <<_ACEOF
2623/* end confdefs.h. */
1090 2624
1091#line 1092 "configure" 2625int
1092#include "confdefs.h" 2626main ()
1093 2627{
1094int main(){return(0);}
1095EOF
1096if { (eval echo configure:1097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1097 ac_cv_prog_cxx_works=yes
1098 # If we can't run a trivial program, we are probably using a cross compiler.
1099 if (./conftest; exit) 2>/dev/null; then
1100 ac_cv_prog_cxx_cross=no
1101 else
1102 ac_cv_prog_cxx_cross=yes
1103 fi
1104else
1105 echo "configure: failed program was:" >&5
1106 cat conftest.$ac_ext >&5
1107 ac_cv_prog_cxx_works=no
1108fi
1109rm -fr conftest*
1110ac_ext=c
1111# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1112ac_cpp='$CPP $CPPFLAGS'
1113ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1114ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1115cross_compiling=$ac_cv_prog_cc_cross
1116
1117echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1118if test $ac_cv_prog_cxx_works = no; then
1119 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1120fi
1121echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1122echo "configure:1123: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1123echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1124cross_compiling=$ac_cv_prog_cxx_cross
1125
1126echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1127echo "configure:1128: checking whether we are using GNU C++" >&5
1128if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1129 echo $ac_n "(cached) $ac_c" 1>&6
1130else
1131 cat > conftest.C <<EOF
1132#ifdef __GNUC__ 2628#ifndef __GNUC__
1133 yes; 2629 choke me
1134#endif 2630#endif
1135EOF
1136if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1137: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1137 ac_cv_prog_gxx=yes
1138else
1139 ac_cv_prog_gxx=no
1140fi
1141fi
1142 2631
1143echo "$ac_t""$ac_cv_prog_gxx" 1>&6 2632 ;
1144 2633 return 0;
1145if test $ac_cv_prog_gxx = yes; then 2634}
1146 GXX=yes 2635_ACEOF
2636rm -f conftest.$ac_objext
2637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2638 (eval $ac_compile) 2>conftest.er1
2639 ac_status=$?
2640 grep -v '^ *+' conftest.er1 >conftest.err
2641 rm -f conftest.er1
2642 cat conftest.err >&5
2643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644 (exit $ac_status); } &&
2645 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2647 (eval $ac_try) 2>&5
2648 ac_status=$?
2649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650 (exit $ac_status); }; } &&
2651 { ac_try='test -s conftest.$ac_objext'
2652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2653 (eval $ac_try) 2>&5
2654 ac_status=$?
2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656 (exit $ac_status); }; }; then
2657 ac_compiler_gnu=yes
1147else 2658else
1148 GXX= 2659 echo "$as_me: failed program was:" >&5
1149fi 2660sed 's/^/| /' conftest.$ac_ext >&5
1150 2661
2662ac_compiler_gnu=no
2663fi
2664rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2665ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2666
2667fi
2668echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2669echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2670GXX=`test $ac_compiler_gnu = yes && echo yes`
1151ac_test_CXXFLAGS="${CXXFLAGS+set}" 2671ac_test_CXXFLAGS=${CXXFLAGS+set}
1152ac_save_CXXFLAGS="$CXXFLAGS" 2672ac_save_CXXFLAGS=$CXXFLAGS
1153CXXFLAGS= 2673CXXFLAGS="-g"
2674echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
1154echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 2675echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
1155echo "configure:1156: checking whether ${CXX-g++} accepts -g" >&5
1156if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then 2676if test "${ac_cv_prog_cxx_g+set}" = set; then
1157 echo $ac_n "(cached) $ac_c" 1>&6 2677 echo $ECHO_N "(cached) $ECHO_C" >&6
1158else 2678else
1159 echo 'void f(){}' > conftest.cc 2679 cat >conftest.$ac_ext <<_ACEOF
1160if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then 2680/* confdefs.h. */
2681_ACEOF
2682cat confdefs.h >>conftest.$ac_ext
2683cat >>conftest.$ac_ext <<_ACEOF
2684/* end confdefs.h. */
2685
2686int
2687main ()
2688{
2689
2690 ;
2691 return 0;
2692}
2693_ACEOF
2694rm -f conftest.$ac_objext
2695if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2696 (eval $ac_compile) 2>conftest.er1
2697 ac_status=$?
2698 grep -v '^ *+' conftest.er1 >conftest.err
2699 rm -f conftest.er1
2700 cat conftest.err >&5
2701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702 (exit $ac_status); } &&
2703 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2705 (eval $ac_try) 2>&5
2706 ac_status=$?
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); }; } &&
2709 { ac_try='test -s conftest.$ac_objext'
2710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2711 (eval $ac_try) 2>&5
2712 ac_status=$?
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); }; }; then
1161 ac_cv_prog_cxx_g=yes 2715 ac_cv_prog_cxx_g=yes
1162else 2716else
2717 echo "$as_me: failed program was:" >&5
2718sed 's/^/| /' conftest.$ac_ext >&5
2719
1163 ac_cv_prog_cxx_g=no 2720ac_cv_prog_cxx_g=no
1164fi 2721fi
1165rm -f conftest* 2722rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1166
1167fi 2723fi
1168 2724echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
1169echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 2725echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1170if test "$ac_test_CXXFLAGS" = set; then 2726if test "$ac_test_CXXFLAGS" = set; then
1171 CXXFLAGS="$ac_save_CXXFLAGS" 2727 CXXFLAGS=$ac_save_CXXFLAGS
1172elif test $ac_cv_prog_cxx_g = yes; then 2728elif test $ac_cv_prog_cxx_g = yes; then
1173 if test "$GXX" = yes; then 2729 if test "$GXX" = yes; then
1174 CXXFLAGS="-g -O2" 2730 CXXFLAGS="-g -O2"
1175 else 2731 else
1176 CXXFLAGS="-g" 2732 CXXFLAGS="-g"
1180 CXXFLAGS="-O2" 2736 CXXFLAGS="-O2"
1181 else 2737 else
1182 CXXFLAGS= 2738 CXXFLAGS=
1183 fi 2739 fi
1184fi 2740fi
2741for ac_declaration in \
2742 '' \
2743 'extern "C" void std::exit (int) throw (); using std::exit;' \
2744 'extern "C" void std::exit (int); using std::exit;' \
2745 'extern "C" void exit (int) throw ();' \
2746 'extern "C" void exit (int);' \
2747 'void exit (int);'
2748do
2749 cat >conftest.$ac_ext <<_ACEOF
2750/* confdefs.h. */
2751_ACEOF
2752cat confdefs.h >>conftest.$ac_ext
2753cat >>conftest.$ac_ext <<_ACEOF
2754/* end confdefs.h. */
2755$ac_declaration
2756#include <stdlib.h>
2757int
2758main ()
2759{
2760exit (42);
2761 ;
2762 return 0;
2763}
2764_ACEOF
2765rm -f conftest.$ac_objext
2766if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2767 (eval $ac_compile) 2>conftest.er1
2768 ac_status=$?
2769 grep -v '^ *+' conftest.er1 >conftest.err
2770 rm -f conftest.er1
2771 cat conftest.err >&5
2772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773 (exit $ac_status); } &&
2774 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2776 (eval $ac_try) 2>&5
2777 ac_status=$?
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); }; } &&
2780 { ac_try='test -s conftest.$ac_objext'
2781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2782 (eval $ac_try) 2>&5
2783 ac_status=$?
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); }; }; then
2786 :
2787else
2788 echo "$as_me: failed program was:" >&5
2789sed 's/^/| /' conftest.$ac_ext >&5
1185 2790
2791continue
2792fi
2793rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2794 cat >conftest.$ac_ext <<_ACEOF
2795/* confdefs.h. */
2796_ACEOF
2797cat confdefs.h >>conftest.$ac_ext
2798cat >>conftest.$ac_ext <<_ACEOF
2799/* end confdefs.h. */
2800$ac_declaration
2801int
2802main ()
2803{
2804exit (42);
2805 ;
2806 return 0;
2807}
2808_ACEOF
2809rm -f conftest.$ac_objext
2810if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2811 (eval $ac_compile) 2>conftest.er1
2812 ac_status=$?
2813 grep -v '^ *+' conftest.er1 >conftest.err
2814 rm -f conftest.er1
2815 cat conftest.err >&5
2816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817 (exit $ac_status); } &&
2818 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2820 (eval $ac_try) 2>&5
2821 ac_status=$?
2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); }; } &&
2824 { ac_try='test -s conftest.$ac_objext'
2825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2826 (eval $ac_try) 2>&5
2827 ac_status=$?
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); }; }; then
2830 break
2831else
2832 echo "$as_me: failed program was:" >&5
2833sed 's/^/| /' conftest.$ac_ext >&5
2834
2835fi
2836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2837done
2838rm -f conftest*
2839if test -n "$ac_declaration"; then
2840 echo '#ifdef __cplusplus' >>confdefs.h
2841 echo $ac_declaration >>confdefs.h
2842 echo '#endif' >>confdefs.h
2843fi
2844
2845ac_ext=c
2846ac_cpp='$CPP $CPPFLAGS'
2847ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2848ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2849ac_compiler_gnu=$ac_cv_c_compiler_gnu
2850
2851ac_ext=c
2852ac_cpp='$CPP $CPPFLAGS'
2853ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2854ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2855ac_compiler_gnu=$ac_cv_c_compiler_gnu
2856echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
1186echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 2857echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1187echo "configure:1188: checking how to run the C preprocessor" >&5
1188# On Suns, sometimes $CPP names a directory. 2858# On Suns, sometimes $CPP names a directory.
1189if test -n "$CPP" && test -d "$CPP"; then 2859if test -n "$CPP" && test -d "$CPP"; then
1190 CPP= 2860 CPP=
1191fi 2861fi
1192if test -z "$CPP"; then 2862if test -z "$CPP"; then
1193if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 2863 if test "${ac_cv_prog_CPP+set}" = set; then
1194 echo $ac_n "(cached) $ac_c" 1>&6 2864 echo $ECHO_N "(cached) $ECHO_C" >&6
1195else 2865else
1196 # This must be in double quotes, not single quotes, because CPP may get 2866 # Double quotes because CPP needs to be expanded
1197 # substituted into the Makefile and "${CC-cc}" will confuse make. 2867 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1198 CPP="${CC-cc} -E" 2868 do
2869 ac_preproc_ok=false
2870for ac_c_preproc_warn_flag in '' yes
2871do
2872 # Use a header file that comes with gcc, so configuring glibc
2873 # with a fresh cross-compiler works.
2874 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2875 # <limits.h> exists even on freestanding compilers.
1199 # On the NeXT, cc -E runs the code through the compiler's parser, 2876 # On the NeXT, cc -E runs the code through the compiler's parser,
1200 # not just through cpp. 2877 # not just through cpp. "Syntax error" is here to catch this case.
1201 cat > conftest.$ac_ext <<EOF 2878 cat >conftest.$ac_ext <<_ACEOF
1202#line 1203 "configure" 2879/* confdefs.h. */
1203#include "confdefs.h" 2880_ACEOF
2881cat confdefs.h >>conftest.$ac_ext
2882cat >>conftest.$ac_ext <<_ACEOF
2883/* end confdefs.h. */
2884#ifdef __STDC__
2885# include <limits.h>
2886#else
1204#include <assert.h> 2887# include <assert.h>
1205Syntax Error 2888#endif
1206EOF 2889 Syntax error
1207ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2890_ACEOF
1208{ (eval echo configure:1209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2891if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1209ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2892 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2893 ac_status=$?
2894 grep -v '^ *+' conftest.er1 >conftest.err
2895 rm -f conftest.er1
2896 cat conftest.err >&5
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); } >/dev/null; then
2899 if test -s conftest.err; then
2900 ac_cpp_err=$ac_c_preproc_warn_flag
2901 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2902 else
2903 ac_cpp_err=
2904 fi
2905else
2906 ac_cpp_err=yes
2907fi
1210if test -z "$ac_err"; then 2908if test -z "$ac_cpp_err"; then
1211 : 2909 :
1212else 2910else
1213 echo "$ac_err" >&5
1214 echo "configure: failed program was:" >&5 2911 echo "$as_me: failed program was:" >&5
1215 cat conftest.$ac_ext >&5 2912sed 's/^/| /' conftest.$ac_ext >&5
1216 rm -rf conftest* 2913
1217 CPP="${CC-cc} -E -traditional-cpp" 2914 # Broken: fails on valid input.
2915continue
2916fi
2917rm -f conftest.err conftest.$ac_ext
2918
2919 # OK, works on sane cases. Now check whether non-existent headers
2920 # can be detected and how.
1218 cat > conftest.$ac_ext <<EOF 2921 cat >conftest.$ac_ext <<_ACEOF
1219#line 1220 "configure" 2922/* confdefs.h. */
1220#include "confdefs.h" 2923_ACEOF
2924cat confdefs.h >>conftest.$ac_ext
2925cat >>conftest.$ac_ext <<_ACEOF
2926/* end confdefs.h. */
2927#include <ac_nonexistent.h>
2928_ACEOF
2929if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2930 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2931 ac_status=$?
2932 grep -v '^ *+' conftest.er1 >conftest.err
2933 rm -f conftest.er1
2934 cat conftest.err >&5
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); } >/dev/null; then
2937 if test -s conftest.err; then
2938 ac_cpp_err=$ac_c_preproc_warn_flag
2939 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2940 else
2941 ac_cpp_err=
2942 fi
2943else
2944 ac_cpp_err=yes
2945fi
2946if test -z "$ac_cpp_err"; then
2947 # Broken: success on invalid input.
2948continue
2949else
2950 echo "$as_me: failed program was:" >&5
2951sed 's/^/| /' conftest.$ac_ext >&5
2952
2953 # Passes both tests.
2954ac_preproc_ok=:
2955break
2956fi
2957rm -f conftest.err conftest.$ac_ext
2958
2959done
2960# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2961rm -f conftest.err conftest.$ac_ext
2962if $ac_preproc_ok; then
2963 break
2964fi
2965
2966 done
2967 ac_cv_prog_CPP=$CPP
2968
2969fi
2970 CPP=$ac_cv_prog_CPP
2971else
2972 ac_cv_prog_CPP=$CPP
2973fi
2974echo "$as_me:$LINENO: result: $CPP" >&5
2975echo "${ECHO_T}$CPP" >&6
2976ac_preproc_ok=false
2977for ac_c_preproc_warn_flag in '' yes
2978do
2979 # Use a header file that comes with gcc, so configuring glibc
2980 # with a fresh cross-compiler works.
2981 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2982 # <limits.h> exists even on freestanding compilers.
2983 # On the NeXT, cc -E runs the code through the compiler's parser,
2984 # not just through cpp. "Syntax error" is here to catch this case.
2985 cat >conftest.$ac_ext <<_ACEOF
2986/* confdefs.h. */
2987_ACEOF
2988cat confdefs.h >>conftest.$ac_ext
2989cat >>conftest.$ac_ext <<_ACEOF
2990/* end confdefs.h. */
2991#ifdef __STDC__
2992# include <limits.h>
2993#else
1221#include <assert.h> 2994# include <assert.h>
1222Syntax Error 2995#endif
1223EOF 2996 Syntax error
1224ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2997_ACEOF
1225{ (eval echo configure:1226: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2998if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1226ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2999 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3000 ac_status=$?
3001 grep -v '^ *+' conftest.er1 >conftest.err
3002 rm -f conftest.er1
3003 cat conftest.err >&5
3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 (exit $ac_status); } >/dev/null; then
3006 if test -s conftest.err; then
3007 ac_cpp_err=$ac_c_preproc_warn_flag
3008 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3009 else
3010 ac_cpp_err=
3011 fi
3012else
3013 ac_cpp_err=yes
3014fi
1227if test -z "$ac_err"; then 3015if test -z "$ac_cpp_err"; then
1228 : 3016 :
1229else 3017else
1230 echo "$ac_err" >&5
1231 echo "configure: failed program was:" >&5 3018 echo "$as_me: failed program was:" >&5
1232 cat conftest.$ac_ext >&5 3019sed 's/^/| /' conftest.$ac_ext >&5
1233 rm -rf conftest* 3020
1234 CPP="${CC-cc} -nologo -E" 3021 # Broken: fails on valid input.
3022continue
3023fi
3024rm -f conftest.err conftest.$ac_ext
3025
3026 # OK, works on sane cases. Now check whether non-existent headers
3027 # can be detected and how.
1235 cat > conftest.$ac_ext <<EOF 3028 cat >conftest.$ac_ext <<_ACEOF
1236#line 1237 "configure" 3029/* confdefs.h. */
1237#include "confdefs.h" 3030_ACEOF
1238#include <assert.h> 3031cat confdefs.h >>conftest.$ac_ext
1239Syntax Error 3032cat >>conftest.$ac_ext <<_ACEOF
1240EOF 3033/* end confdefs.h. */
1241ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3034#include <ac_nonexistent.h>
1242{ (eval echo configure:1243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3035_ACEOF
1243ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3036if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3037 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3038 ac_status=$?
3039 grep -v '^ *+' conftest.er1 >conftest.err
3040 rm -f conftest.er1
3041 cat conftest.err >&5
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); } >/dev/null; then
3044 if test -s conftest.err; then
3045 ac_cpp_err=$ac_c_preproc_warn_flag
3046 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3047 else
3048 ac_cpp_err=
3049 fi
3050else
3051 ac_cpp_err=yes
3052fi
1244if test -z "$ac_err"; then 3053if test -z "$ac_cpp_err"; then
3054 # Broken: success on invalid input.
3055continue
3056else
3057 echo "$as_me: failed program was:" >&5
3058sed 's/^/| /' conftest.$ac_ext >&5
3059
3060 # Passes both tests.
3061ac_preproc_ok=:
3062break
3063fi
3064rm -f conftest.err conftest.$ac_ext
3065
3066done
3067# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3068rm -f conftest.err conftest.$ac_ext
3069if $ac_preproc_ok; then
1245 : 3070 :
1246else 3071else
1247 echo "$ac_err" >&5 3072 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
1248 echo "configure: failed program was:" >&5 3073See \`config.log' for more details." >&5
1249 cat conftest.$ac_ext >&5 3074echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
1250 rm -rf conftest* 3075See \`config.log' for more details." >&2;}
1251 CPP=/lib/cpp 3076 { (exit 1); exit 1; }; }
1252fi 3077fi
1253rm -f conftest* 3078
1254fi 3079ac_ext=c
1255rm -f conftest* 3080ac_cpp='$CPP $CPPFLAGS'
1256fi 3081ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1257rm -f conftest* 3082ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1258 ac_cv_prog_CPP="$CPP" 3083ac_compiler_gnu=$ac_cv_c_compiler_gnu
1259fi
1260 CPP="$ac_cv_prog_CPP"
1261else
1262 ac_cv_prog_CPP="$CPP"
1263fi
1264echo "$ac_t""$CPP" 1>&6
1265 3084
1266# Find a good install program. We prefer a C program (faster), 3085# Find a good install program. We prefer a C program (faster),
1267# so one script is as good as another. But avoid the broken or 3086# so one script is as good as another. But avoid the broken or
1268# incompatible versions: 3087# incompatible versions:
1269# SysV /etc/install, /usr/sbin/install 3088# SysV /etc/install, /usr/sbin/install
1270# SunOS /usr/etc/install 3089# SunOS /usr/etc/install
1271# IRIX /sbin/install 3090# IRIX /sbin/install
1272# AIX /bin/install 3091# AIX /bin/install
3092# AmigaOS /C/install, which installs bootblocks on floppy discs
1273# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3093# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1274# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3094# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1275# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3095# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3096# OS/2's system install, which has a completely different semantic
1276# ./install, which can be erroneously created by make from ./install.sh. 3097# ./install, which can be erroneously created by make from ./install.sh.
3098echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1277echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 3099echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1278echo "configure:1279: checking for a BSD compatible install" >&5
1279if test -z "$INSTALL"; then 3100if test -z "$INSTALL"; then
1280if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 3101if test "${ac_cv_path_install+set}" = set; then
1281 echo $ac_n "(cached) $ac_c" 1>&6 3102 echo $ECHO_N "(cached) $ECHO_C" >&6
1282else 3103else
1283 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 3104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1284 for ac_dir in $PATH; do 3105for as_dir in $PATH
3106do
3107 IFS=$as_save_IFS
3108 test -z "$as_dir" && as_dir=.
1285 # Account for people who put trailing slashes in PATH elements. 3109 # Account for people who put trailing slashes in PATH elements.
1286 case "$ac_dir/" in 3110case $as_dir/ in
3111 ./ | .// | /cC/* | \
1287 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 3112 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3113 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3114 /usr/ucb/* ) ;;
1288 *) 3115 *)
1289 # OSF1 and SCO ODT 3.0 have their own names for install. 3116 # OSF1 and SCO ODT 3.0 have their own names for install.
1290 # Don't use installbsd from OSF since it installs stuff as root 3117 # Don't use installbsd from OSF since it installs stuff as root
1291 # by default. 3118 # by default.
1292 for ac_prog in ginstall scoinst install; do 3119 for ac_prog in ginstall scoinst install; do
1293 if test -f $ac_dir/$ac_prog; then 3120 for ac_exec_ext in '' $ac_executable_extensions; do
3121 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1294 if test $ac_prog = install && 3122 if test $ac_prog = install &&
1295 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 3123 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1296 # AIX install. It has an incompatible calling convention. 3124 # AIX install. It has an incompatible calling convention.
1297 : 3125 :
3126 elif test $ac_prog = install &&
3127 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3128 # program-specific install script used by HP pwplus--don't use.
3129 :
1298 else 3130 else
1299 ac_cv_path_install="$ac_dir/$ac_prog -c" 3131 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1300 break 2 3132 break 3
1301 fi 3133 fi
1302 fi 3134 fi
1303 done 3135 done
1304 ;;
1305 esac
1306 done 3136 done
1307 IFS="$ac_save_IFS" 3137 ;;
3138esac
3139done
3140
1308 3141
1309fi 3142fi
1310 if test "${ac_cv_path_install+set}" = set; then 3143 if test "${ac_cv_path_install+set}" = set; then
1311 INSTALL="$ac_cv_path_install" 3144 INSTALL=$ac_cv_path_install
1312 else 3145 else
1313 # As a last resort, use the slow shell script. We don't cache a 3146 # As a last resort, use the slow shell script. We don't cache a
1314 # path for INSTALL within a source directory, because that will 3147 # path for INSTALL within a source directory, because that will
1315 # break other packages using the cache if that directory is 3148 # break other packages using the cache if that directory is
1316 # removed, or if the path is relative. 3149 # removed, or if the path is relative.
1317 INSTALL="$ac_install_sh" 3150 INSTALL=$ac_install_sh
1318 fi 3151 fi
1319fi 3152fi
3153echo "$as_me:$LINENO: result: $INSTALL" >&5
1320echo "$ac_t""$INSTALL" 1>&6 3154echo "${ECHO_T}$INSTALL" >&6
1321 3155
1322# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3156# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1323# It thinks the first close brace ends the variable substitution. 3157# It thinks the first close brace ends the variable substitution.
1324test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3158test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1325 3159
1326test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 3160test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1327 3161
1328test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3162test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1329 3163
1330for ac_prog in mawk gawk nawk awk 3164for ac_prog in gawk mawk nawk awk
1331do 3165do
1332# Extract the first word of "$ac_prog", so it can be a program name with args. 3166 # Extract the first word of "$ac_prog", so it can be a program name with args.
1333set dummy $ac_prog; ac_word=$2 3167set dummy $ac_prog; ac_word=$2
3168echo "$as_me:$LINENO: checking for $ac_word" >&5
1334echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3169echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1335echo "configure:1336: checking for $ac_word" >&5
1336if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then 3170if test "${ac_cv_prog_AWK+set}" = set; then
1337 echo $ac_n "(cached) $ac_c" 1>&6 3171 echo $ECHO_N "(cached) $ECHO_C" >&6
1338else 3172else
1339 if test -n "$AWK"; then 3173 if test -n "$AWK"; then
1340 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3174 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1341else 3175else
1342 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1343 ac_dummy="$PATH" 3177for as_dir in $PATH
1344 for ac_dir in $ac_dummy; do 3178do
3179 IFS=$as_save_IFS
1345 test -z "$ac_dir" && ac_dir=. 3180 test -z "$as_dir" && as_dir=.
1346 if test -f $ac_dir/$ac_word; then 3181 for ac_exec_ext in '' $ac_executable_extensions; do
3182 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1347 ac_cv_prog_AWK="$ac_prog" 3183 ac_cv_prog_AWK="$ac_prog"
3184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1348 break 3185 break 2
3186 fi
3187done
3188done
3189
3190fi
3191fi
3192AWK=$ac_cv_prog_AWK
3193if test -n "$AWK"; then
3194 echo "$as_me:$LINENO: result: $AWK" >&5
3195echo "${ECHO_T}$AWK" >&6
3196else
3197 echo "$as_me:$LINENO: result: no" >&5
3198echo "${ECHO_T}no" >&6
3199fi
3200
3201 test -n "$AWK" && break
3202done
3203
3204
3205ac_ext=c
3206ac_cpp='$CPP $CPPFLAGS'
3207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3209ac_compiler_gnu=$ac_cv_c_compiler_gnu
3210
3211
3212LINKER="$CXX"
3213if test x$GCC = xyes && test x$GXX = xyes; then
3214
3215echo "$as_me:$LINENO: checking for main in -lsupc++" >&5
3216echo $ECHO_N "checking for main in -lsupc++... $ECHO_C" >&6
3217if test "${ac_cv_lib_supcpp_main+set}" = set; then
3218 echo $ECHO_N "(cached) $ECHO_C" >&6
3219else
3220 ac_check_lib_save_LIBS=$LIBS
3221LIBS="-lsupc++ $LIBS"
3222cat >conftest.$ac_ext <<_ACEOF
3223/* confdefs.h. */
3224_ACEOF
3225cat confdefs.h >>conftest.$ac_ext
3226cat >>conftest.$ac_ext <<_ACEOF
3227/* end confdefs.h. */
3228
3229
3230int
3231main ()
3232{
3233main ();
3234 ;
3235 return 0;
3236}
3237_ACEOF
3238rm -f conftest.$ac_objext conftest$ac_exeext
3239if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3240 (eval $ac_link) 2>conftest.er1
3241 ac_status=$?
3242 grep -v '^ *+' conftest.er1 >conftest.err
3243 rm -f conftest.er1
3244 cat conftest.err >&5
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); } &&
3247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3249 (eval $ac_try) 2>&5
3250 ac_status=$?
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); }; } &&
3253 { ac_try='test -s conftest$ac_exeext'
3254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3255 (eval $ac_try) 2>&5
3256 ac_status=$?
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); }; }; then
3259 ac_cv_lib_supcpp_main=yes
3260else
3261 echo "$as_me: failed program was:" >&5
3262sed 's/^/| /' conftest.$ac_ext >&5
3263
3264ac_cv_lib_supcpp_main=no
3265fi
3266rm -f conftest.err conftest.$ac_objext \
3267 conftest$ac_exeext conftest.$ac_ext
3268LIBS=$ac_check_lib_save_LIBS
3269fi
3270echo "$as_me:$LINENO: result: $ac_cv_lib_supcpp_main" >&5
3271echo "${ECHO_T}$ac_cv_lib_supcpp_main" >&6
3272if test $ac_cv_lib_supcpp_main = yes; then
3273
3274 LINKER="$CC"
3275 LIBS="$LIBS -lsupc++"
3276
3277fi
3278
3279fi
3280LINKER=$LINKER
3281
3282
3283CPPFLAGS="-D_GNU_SOURCE -D_XOPEN_SOURCE"
3284
3285
3286ac_ext=cc
3287ac_cpp='$CXXCPP $CPPFLAGS'
3288ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3289ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3290ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3291
3292
3293
3294ac_ext=cc
3295ac_cpp='$CXXCPP $CPPFLAGS'
3296ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3297ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3298ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3299echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3300echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3301if test -z "$CXXCPP"; then
3302 if test "${ac_cv_prog_CXXCPP+set}" = set; then
3303 echo $ECHO_N "(cached) $ECHO_C" >&6
3304else
3305 # Double quotes because CXXCPP needs to be expanded
3306 for CXXCPP in "$CXX -E" "/lib/cpp"
3307 do
3308 ac_preproc_ok=false
3309for ac_cxx_preproc_warn_flag in '' yes
3310do
3311 # Use a header file that comes with gcc, so configuring glibc
3312 # with a fresh cross-compiler works.
3313 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3314 # <limits.h> exists even on freestanding compilers.
3315 # On the NeXT, cc -E runs the code through the compiler's parser,
3316 # not just through cpp. "Syntax error" is here to catch this case.
3317 cat >conftest.$ac_ext <<_ACEOF
3318/* confdefs.h. */
3319_ACEOF
3320cat confdefs.h >>conftest.$ac_ext
3321cat >>conftest.$ac_ext <<_ACEOF
3322/* end confdefs.h. */
3323#ifdef __STDC__
3324# include <limits.h>
3325#else
3326# include <assert.h>
3327#endif
3328 Syntax error
3329_ACEOF
3330if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3331 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3332 ac_status=$?
3333 grep -v '^ *+' conftest.er1 >conftest.err
3334 rm -f conftest.er1
3335 cat conftest.err >&5
3336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337 (exit $ac_status); } >/dev/null; then
3338 if test -s conftest.err; then
3339 ac_cpp_err=$ac_cxx_preproc_warn_flag
3340 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3341 else
3342 ac_cpp_err=
3343 fi
3344else
3345 ac_cpp_err=yes
3346fi
3347if test -z "$ac_cpp_err"; then
3348 :
3349else
3350 echo "$as_me: failed program was:" >&5
3351sed 's/^/| /' conftest.$ac_ext >&5
3352
3353 # Broken: fails on valid input.
3354continue
3355fi
3356rm -f conftest.err conftest.$ac_ext
3357
3358 # OK, works on sane cases. Now check whether non-existent headers
3359 # can be detected and how.
3360 cat >conftest.$ac_ext <<_ACEOF
3361/* confdefs.h. */
3362_ACEOF
3363cat confdefs.h >>conftest.$ac_ext
3364cat >>conftest.$ac_ext <<_ACEOF
3365/* end confdefs.h. */
3366#include <ac_nonexistent.h>
3367_ACEOF
3368if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3369 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3370 ac_status=$?
3371 grep -v '^ *+' conftest.er1 >conftest.err
3372 rm -f conftest.er1
3373 cat conftest.err >&5
3374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375 (exit $ac_status); } >/dev/null; then
3376 if test -s conftest.err; then
3377 ac_cpp_err=$ac_cxx_preproc_warn_flag
3378 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3379 else
3380 ac_cpp_err=
3381 fi
3382else
3383 ac_cpp_err=yes
3384fi
3385if test -z "$ac_cpp_err"; then
3386 # Broken: success on invalid input.
3387continue
3388else
3389 echo "$as_me: failed program was:" >&5
3390sed 's/^/| /' conftest.$ac_ext >&5
3391
3392 # Passes both tests.
3393ac_preproc_ok=:
3394break
3395fi
3396rm -f conftest.err conftest.$ac_ext
3397
3398done
3399# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3400rm -f conftest.err conftest.$ac_ext
3401if $ac_preproc_ok; then
3402 break
3403fi
3404
3405 done
3406 ac_cv_prog_CXXCPP=$CXXCPP
3407
3408fi
3409 CXXCPP=$ac_cv_prog_CXXCPP
3410else
3411 ac_cv_prog_CXXCPP=$CXXCPP
3412fi
3413echo "$as_me:$LINENO: result: $CXXCPP" >&5
3414echo "${ECHO_T}$CXXCPP" >&6
3415ac_preproc_ok=false
3416for ac_cxx_preproc_warn_flag in '' yes
3417do
3418 # Use a header file that comes with gcc, so configuring glibc
3419 # with a fresh cross-compiler works.
3420 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3421 # <limits.h> exists even on freestanding compilers.
3422 # On the NeXT, cc -E runs the code through the compiler's parser,
3423 # not just through cpp. "Syntax error" is here to catch this case.
3424 cat >conftest.$ac_ext <<_ACEOF
3425/* confdefs.h. */
3426_ACEOF
3427cat confdefs.h >>conftest.$ac_ext
3428cat >>conftest.$ac_ext <<_ACEOF
3429/* end confdefs.h. */
3430#ifdef __STDC__
3431# include <limits.h>
3432#else
3433# include <assert.h>
3434#endif
3435 Syntax error
3436_ACEOF
3437if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3438 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3439 ac_status=$?
3440 grep -v '^ *+' conftest.er1 >conftest.err
3441 rm -f conftest.er1
3442 cat conftest.err >&5
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); } >/dev/null; then
3445 if test -s conftest.err; then
3446 ac_cpp_err=$ac_cxx_preproc_warn_flag
3447 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3448 else
3449 ac_cpp_err=
3450 fi
3451else
3452 ac_cpp_err=yes
3453fi
3454if test -z "$ac_cpp_err"; then
3455 :
3456else
3457 echo "$as_me: failed program was:" >&5
3458sed 's/^/| /' conftest.$ac_ext >&5
3459
3460 # Broken: fails on valid input.
3461continue
3462fi
3463rm -f conftest.err conftest.$ac_ext
3464
3465 # OK, works on sane cases. Now check whether non-existent headers
3466 # can be detected and how.
3467 cat >conftest.$ac_ext <<_ACEOF
3468/* confdefs.h. */
3469_ACEOF
3470cat confdefs.h >>conftest.$ac_ext
3471cat >>conftest.$ac_ext <<_ACEOF
3472/* end confdefs.h. */
3473#include <ac_nonexistent.h>
3474_ACEOF
3475if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3476 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3477 ac_status=$?
3478 grep -v '^ *+' conftest.er1 >conftest.err
3479 rm -f conftest.er1
3480 cat conftest.err >&5
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); } >/dev/null; then
3483 if test -s conftest.err; then
3484 ac_cpp_err=$ac_cxx_preproc_warn_flag
3485 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3486 else
3487 ac_cpp_err=
3488 fi
3489else
3490 ac_cpp_err=yes
3491fi
3492if test -z "$ac_cpp_err"; then
3493 # Broken: success on invalid input.
3494continue
3495else
3496 echo "$as_me: failed program was:" >&5
3497sed 's/^/| /' conftest.$ac_ext >&5
3498
3499 # Passes both tests.
3500ac_preproc_ok=:
3501break
3502fi
3503rm -f conftest.err conftest.$ac_ext
3504
3505done
3506# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3507rm -f conftest.err conftest.$ac_ext
3508if $ac_preproc_ok; then
3509 :
3510else
3511 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3512See \`config.log' for more details." >&5
3513echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3514See \`config.log' for more details." >&2;}
3515 { (exit 1); exit 1; }; }
3516fi
3517
3518ac_ext=cc
3519ac_cpp='$CXXCPP $CPPFLAGS'
3520ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3521ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3522ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3523
3524
3525echo "$as_me:$LINENO: checking for egrep" >&5
3526echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3527if test "${ac_cv_prog_egrep+set}" = set; then
3528 echo $ECHO_N "(cached) $ECHO_C" >&6
3529else
3530 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3531 then ac_cv_prog_egrep='grep -E'
3532 else ac_cv_prog_egrep='egrep'
1349 fi 3533 fi
1350 done
1351 IFS="$ac_save_ifs"
1352fi 3534fi
1353fi 3535echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
1354AWK="$ac_cv_prog_AWK" 3536echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1355if test -n "$AWK"; then 3537 EGREP=$ac_cv_prog_egrep
1356 echo "$ac_t""$AWK" 1>&6
1357else
1358 echo "$ac_t""no" 1>&6
1359fi
1360 3538
1361test -n "$AWK" && break
1362done
1363 3539
1364 3540
3541echo "$as_me:$LINENO: checking for AIX" >&5
1365echo $ac_n "checking for AIX""... $ac_c" 1>&6 3542echo $ECHO_N "checking for AIX... $ECHO_C" >&6
1366echo "configure:1367: checking for AIX" >&5
1367cat > conftest.$ac_ext <<EOF 3543cat >conftest.$ac_ext <<_ACEOF
1368#line 1369 "configure" 3544/* confdefs.h. */
1369#include "confdefs.h" 3545_ACEOF
3546cat confdefs.h >>conftest.$ac_ext
3547cat >>conftest.$ac_ext <<_ACEOF
3548/* end confdefs.h. */
1370#ifdef _AIX 3549#ifdef _AIX
1371 yes 3550 yes
1372#endif 3551#endif
1373 3552
1374EOF 3553_ACEOF
1375if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3554if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1376 egrep "yes" >/dev/null 2>&1; then 3555 $EGREP "yes" >/dev/null 2>&1; then
1377 rm -rf conftest* 3556 echo "$as_me:$LINENO: result: yes" >&5
1378 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF 3557echo "${ECHO_T}yes" >&6
3558cat >>confdefs.h <<\_ACEOF
1379#define _ALL_SOURCE 1 3559#define _ALL_SOURCE 1
1380EOF 3560_ACEOF
1381 3561
1382else 3562else
1383 rm -rf conftest* 3563 echo "$as_me:$LINENO: result: no" >&5
1384 echo "$ac_t""no" 1>&6 3564echo "${ECHO_T}no" >&6
1385fi 3565fi
1386rm -f conftest* 3566rm -f conftest*
1387 3567
1388 3568
1389echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 3569echo "$as_me:$LINENO: checking for library containing strerror" >&5
1390echo "configure:1391: checking for POSIXized ISC" >&5 3570echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
1391if test -d /etc/conf/kconfig.d && 3571if test "${ac_cv_search_strerror+set}" = set; then
1392 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 3572 echo $ECHO_N "(cached) $ECHO_C" >&6
1393then
1394 echo "$ac_t""yes" 1>&6
1395 ISC=yes # If later tests want to check for ISC.
1396 cat >> confdefs.h <<\EOF
1397#define _POSIX_SOURCE 1
1398EOF
1399
1400 if test "$GCC" = yes; then
1401 CC="$CC -posix"
1402 else 3573else
1403 CC="$CC -Xp" 3574 ac_func_search_save_LIBS=$LIBS
1404 fi 3575ac_cv_search_strerror=no
3576cat >conftest.$ac_ext <<_ACEOF
3577/* confdefs.h. */
3578_ACEOF
3579cat confdefs.h >>conftest.$ac_ext
3580cat >>conftest.$ac_ext <<_ACEOF
3581/* end confdefs.h. */
3582
3583/* Override any gcc2 internal prototype to avoid an error. */
3584#ifdef __cplusplus
3585extern "C"
3586#endif
3587/* We use char because int might match the return type of a gcc2
3588 builtin and then its argument prototype would still apply. */
3589char strerror ();
3590int
3591main ()
3592{
3593strerror ();
3594 ;
3595 return 0;
3596}
3597_ACEOF
3598rm -f conftest.$ac_objext conftest$ac_exeext
3599if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3600 (eval $ac_link) 2>conftest.er1
3601 ac_status=$?
3602 grep -v '^ *+' conftest.er1 >conftest.err
3603 rm -f conftest.er1
3604 cat conftest.err >&5
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); } &&
3607 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609 (eval $ac_try) 2>&5
3610 ac_status=$?
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); }; } &&
3613 { ac_try='test -s conftest$ac_exeext'
3614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3615 (eval $ac_try) 2>&5
3616 ac_status=$?
3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); }; }; then
3619 ac_cv_search_strerror="none required"
1405else 3620else
1406 echo "$ac_t""no" 1>&6 3621 echo "$as_me: failed program was:" >&5
1407 ISC= 3622sed 's/^/| /' conftest.$ac_ext >&5
3623
3624fi
3625rm -f conftest.err conftest.$ac_objext \
3626 conftest$ac_exeext conftest.$ac_ext
3627if test "$ac_cv_search_strerror" = no; then
3628 for ac_lib in cposix; do
3629 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3630 cat >conftest.$ac_ext <<_ACEOF
3631/* confdefs.h. */
3632_ACEOF
3633cat confdefs.h >>conftest.$ac_ext
3634cat >>conftest.$ac_ext <<_ACEOF
3635/* end confdefs.h. */
3636
3637/* Override any gcc2 internal prototype to avoid an error. */
3638#ifdef __cplusplus
3639extern "C"
3640#endif
3641/* We use char because int might match the return type of a gcc2
3642 builtin and then its argument prototype would still apply. */
3643char strerror ();
3644int
3645main ()
3646{
3647strerror ();
3648 ;
3649 return 0;
3650}
3651_ACEOF
3652rm -f conftest.$ac_objext conftest$ac_exeext
3653if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3654 (eval $ac_link) 2>conftest.er1
3655 ac_status=$?
3656 grep -v '^ *+' conftest.er1 >conftest.err
3657 rm -f conftest.er1
3658 cat conftest.err >&5
3659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660 (exit $ac_status); } &&
3661 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3663 (eval $ac_try) 2>&5
3664 ac_status=$?
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); }; } &&
3667 { ac_try='test -s conftest$ac_exeext'
3668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3669 (eval $ac_try) 2>&5
3670 ac_status=$?
3671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 (exit $ac_status); }; }; then
3673 ac_cv_search_strerror="-l$ac_lib"
3674break
3675else
3676 echo "$as_me: failed program was:" >&5
3677sed 's/^/| /' conftest.$ac_ext >&5
3678
3679fi
3680rm -f conftest.err conftest.$ac_objext \
3681 conftest$ac_exeext conftest.$ac_ext
3682 done
3683fi
3684LIBS=$ac_func_search_save_LIBS
3685fi
3686echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3687echo "${ECHO_T}$ac_cv_search_strerror" >&6
3688if test "$ac_cv_search_strerror" != no; then
3689 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3690
1408fi 3691fi
1409 3692
1410 3693
1411# Check whether --enable-shared or --disable-shared was given. 3694# Check whether --enable-shared or --disable-shared was given.
1412if test "${enable_shared+set}" = set; then 3695if test "${enable_shared+set}" = set; then
1427 IFS="$ac_save_ifs" 3710 IFS="$ac_save_ifs"
1428 ;; 3711 ;;
1429esac 3712esac
1430else 3713else
1431 enable_shared=no 3714 enable_shared=no
1432fi
1433# Check whether --enable-static or --disable-static was given. 3715fi; # Check whether --enable-static or --disable-static was given.
1434if test "${enable_static+set}" = set; then 3716if test "${enable_static+set}" = set; then
1435 enableval="$enable_static" 3717 enableval="$enable_static"
1436 p=${PACKAGE-default} 3718 p=${PACKAGE-default}
1437case "$enableval" in 3719case "$enableval" in
1438yes) enable_static=yes ;; 3720yes) enable_static=yes ;;
1449 IFS="$ac_save_ifs" 3731 IFS="$ac_save_ifs"
1450 ;; 3732 ;;
1451esac 3733esac
1452else 3734else
1453 enable_static=yes 3735 enable_static=yes
1454fi
1455echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1456echo "configure:1457: checking for Cygwin environment" >&5
1457if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1458 echo $ac_n "(cached) $ac_c" 1>&6
1459else
1460 cat > conftest.$ac_ext <<EOF
1461#line 1462 "configure"
1462#include "confdefs.h"
1463
1464int main() {
1465
1466#ifndef __CYGWIN__
1467#define __CYGWIN__ __CYGWIN32__
1468#endif
1469return __CYGWIN__;
1470; return 0; }
1471EOF
1472if { (eval echo configure:1473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1473 rm -rf conftest*
1474 ac_cv_cygwin=yes
1475else
1476 echo "configure: failed program was:" >&5
1477 cat conftest.$ac_ext >&5
1478 rm -rf conftest*
1479 ac_cv_cygwin=no
1480fi
1481rm -f conftest*
1482rm -f conftest*
1483fi
1484
1485echo "$ac_t""$ac_cv_cygwin" 1>&6
1486CYGWIN=
1487test "$ac_cv_cygwin" = yes && CYGWIN=yes
1488echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1489echo "configure:1490: checking for mingw32 environment" >&5
1490if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1491 echo $ac_n "(cached) $ac_c" 1>&6
1492else
1493 cat > conftest.$ac_ext <<EOF
1494#line 1495 "configure"
1495#include "confdefs.h"
1496
1497int main() {
1498return __MINGW32__;
1499; return 0; }
1500EOF
1501if { (eval echo configure:1502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1502 rm -rf conftest*
1503 ac_cv_mingw32=yes
1504else
1505 echo "configure: failed program was:" >&5
1506 cat conftest.$ac_ext >&5
1507 rm -rf conftest*
1508 ac_cv_mingw32=no
1509fi
1510rm -f conftest*
1511rm -f conftest*
1512fi
1513
1514echo "$ac_t""$ac_cv_mingw32" 1>&6
1515MINGW32=
1516test "$ac_cv_mingw32" = yes && MINGW32=yes
1517# Check whether --enable-fast-install or --disable-fast-install was given. 3736fi; # Check whether --enable-fast-install or --disable-fast-install was given.
1518if test "${enable_fast_install+set}" = set; then 3737if test "${enable_fast_install+set}" = set; then
1519 enableval="$enable_fast_install" 3738 enableval="$enable_fast_install"
1520 p=${PACKAGE-default} 3739 p=${PACKAGE-default}
1521case "$enableval" in 3740case "$enableval" in
1522yes) enable_fast_install=yes ;; 3741yes) enable_fast_install=yes ;;
1533 IFS="$ac_save_ifs" 3752 IFS="$ac_save_ifs"
1534 ;; 3753 ;;
1535esac 3754esac
1536else 3755else
1537 enable_fast_install=yes 3756 enable_fast_install=yes
1538fi 3757fi;
1539
1540
1541# Make sure we can run config.sub. 3758# Make sure we can run config.sub.
1542if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : 3759$ac_config_sub sun4 >/dev/null 2>&1 ||
3760 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1543else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } 3761echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1544fi 3762 { (exit 1); exit 1; }; }
1545 3763
1546echo $ac_n "checking host system type""... $ac_c" 1>&6 3764echo "$as_me:$LINENO: checking build system type" >&5
1547echo "configure:1548: checking host system type" >&5
1548
1549host_alias=$host
1550case "$host_alias" in
1551NONE)
1552 case $nonopt in
1553 NONE)
1554 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1555 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1556 fi ;;
1557 *) host_alias=$nonopt ;;
1558 esac ;;
1559esac
1560
1561host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1562host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1563host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1564host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1565echo "$ac_t""$host" 1>&6
1566
1567echo $ac_n "checking build system type""... $ac_c" 1>&6 3765echo $ECHO_N "checking build system type... $ECHO_C" >&6
1568echo "configure:1569: checking build system type" >&5 3766if test "${ac_cv_build+set}" = set; then
3767 echo $ECHO_N "(cached) $ECHO_C" >&6
3768else
3769 ac_cv_build_alias=$build_alias
3770test -z "$ac_cv_build_alias" &&
3771 ac_cv_build_alias=`$ac_config_guess`
3772test -z "$ac_cv_build_alias" &&
3773 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3774echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3775 { (exit 1); exit 1; }; }
3776ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3777 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3778echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3779 { (exit 1); exit 1; }; }
1569 3780
1570build_alias=$build 3781fi
1571case "$build_alias" in 3782echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1572NONE) 3783echo "${ECHO_T}$ac_cv_build" >&6
1573 case $nonopt in 3784build=$ac_cv_build
1574 NONE) build_alias=$host_alias ;;
1575 *) build_alias=$nonopt ;;
1576 esac ;;
1577esac
1578
1579build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1580build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 3785build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1581build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 3786build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1582build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 3787build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1583echo "$ac_t""$build" 1>&6 3788
3789
3790echo "$as_me:$LINENO: checking host system type" >&5
3791echo $ECHO_N "checking host system type... $ECHO_C" >&6
3792if test "${ac_cv_host+set}" = set; then
3793 echo $ECHO_N "(cached) $ECHO_C" >&6
3794else
3795 ac_cv_host_alias=$host_alias
3796test -z "$ac_cv_host_alias" &&
3797 ac_cv_host_alias=$ac_cv_build_alias
3798ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3799 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3800echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3801 { (exit 1); exit 1; }; }
3802
3803fi
3804echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3805echo "${ECHO_T}$ac_cv_host" >&6
3806host=$ac_cv_host
3807host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3808host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3809host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3810
3811
1584 3812
1585# Check whether --with-gnu-ld or --without-gnu-ld was given. 3813# Check whether --with-gnu-ld or --without-gnu-ld was given.
1586if test "${with_gnu_ld+set}" = set; then 3814if test "${with_gnu_ld+set}" = set; then
1587 withval="$with_gnu_ld" 3815 withval="$with_gnu_ld"
1588 test "$withval" = no || with_gnu_ld=yes 3816 test "$withval" = no || with_gnu_ld=yes
1589else 3817else
1590 with_gnu_ld=no 3818 with_gnu_ld=no
1591fi 3819fi;
1592
1593ac_prog=ld 3820ac_prog=ld
1594if test "$GCC" = yes; then 3821if test "$GCC" = yes; then
1595 # Check if gcc -print-prog-name=ld gives a path. 3822 # Check if gcc -print-prog-name=ld gives a path.
3823 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
1596 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 3824echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
1597echo "configure:1598: checking for ld used by GCC" >&5
1598 case $host in 3825 case $host in
1599 *-*-mingw*) 3826 *-*-mingw*)
1600 # gcc leaves a trailing carriage return which upsets mingw 3827 # gcc leaves a trailing carriage return which upsets mingw
1601 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3828 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1602 *) 3829 *)
1621 # If it is relative, then search for the first ld in PATH. 3848 # If it is relative, then search for the first ld in PATH.
1622 with_gnu_ld=unknown 3849 with_gnu_ld=unknown
1623 ;; 3850 ;;
1624 esac 3851 esac
1625elif test "$with_gnu_ld" = yes; then 3852elif test "$with_gnu_ld" = yes; then
3853 echo "$as_me:$LINENO: checking for GNU ld" >&5
1626 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 3854echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
1627echo "configure:1628: checking for GNU ld" >&5
1628else 3855else
3856 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
1629 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 3857echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
1630echo "configure:1631: checking for non-GNU ld" >&5
1631fi 3858fi
1632if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then 3859if test "${lt_cv_path_LD+set}" = set; then
1633 echo $ac_n "(cached) $ac_c" 1>&6 3860 echo $ECHO_N "(cached) $ECHO_C" >&6
1634else 3861else
1635 if test -z "$LD"; then 3862 if test -z "$LD"; then
1636 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 3863 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1637 for ac_dir in $PATH; do 3864 for ac_dir in $PATH; do
1638 test -z "$ac_dir" && ac_dir=. 3865 test -z "$ac_dir" && ac_dir=.
1654fi 3881fi
1655fi 3882fi
1656 3883
1657LD="$lt_cv_path_LD" 3884LD="$lt_cv_path_LD"
1658if test -n "$LD"; then 3885if test -n "$LD"; then
1659 echo "$ac_t""$LD" 1>&6 3886 echo "$as_me:$LINENO: result: $LD" >&5
3887echo "${ECHO_T}$LD" >&6
1660else 3888else
1661 echo "$ac_t""no" 1>&6 3889 echo "$as_me:$LINENO: result: no" >&5
3890echo "${ECHO_T}no" >&6
1662fi 3891fi
1663test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } 3892test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3893echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3894 { (exit 1); exit 1; }; }
3895echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
1664echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 3896echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
1665echo "configure:1666: checking if the linker ($LD) is GNU ld" >&5
1666if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then 3897if test "${lt_cv_prog_gnu_ld+set}" = set; then
1667 echo $ac_n "(cached) $ac_c" 1>&6 3898 echo $ECHO_N "(cached) $ECHO_C" >&6
1668else 3899else
1669 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 3900 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1670if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 3901if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1671 lt_cv_prog_gnu_ld=yes 3902 lt_cv_prog_gnu_ld=yes
1672else 3903else
1673 lt_cv_prog_gnu_ld=no 3904 lt_cv_prog_gnu_ld=no
1674fi 3905fi
1675fi 3906fi
1676 3907echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
1677echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6 3908echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
1678with_gnu_ld=$lt_cv_prog_gnu_ld 3909with_gnu_ld=$lt_cv_prog_gnu_ld
1679 3910
1680 3911
3912echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
1681echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6 3913echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
1682echo "configure:1683: checking for $LD option to reload object files" >&5
1683if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then 3914if test "${lt_cv_ld_reload_flag+set}" = set; then
1684 echo $ac_n "(cached) $ac_c" 1>&6 3915 echo $ECHO_N "(cached) $ECHO_C" >&6
1685else 3916else
1686 lt_cv_ld_reload_flag='-r' 3917 lt_cv_ld_reload_flag='-r'
1687fi 3918fi
1688 3919echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
1689echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6 3920echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
1690reload_flag=$lt_cv_ld_reload_flag 3921reload_flag=$lt_cv_ld_reload_flag
1691test -n "$reload_flag" && reload_flag=" $reload_flag" 3922test -n "$reload_flag" && reload_flag=" $reload_flag"
1692 3923
3924echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
1693echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 3925echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
1694echo "configure:1695: checking for BSD-compatible nm" >&5
1695if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then 3926if test "${lt_cv_path_NM+set}" = set; then
1696 echo $ac_n "(cached) $ac_c" 1>&6 3927 echo $ECHO_N "(cached) $ECHO_C" >&6
1697else 3928else
1698 if test -n "$NM"; then 3929 if test -n "$NM"; then
1699 # Let the user override the test. 3930 # Let the user override the test.
1700 lt_cv_path_NM="$NM" 3931 lt_cv_path_NM="$NM"
1701else 3932else
1724 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 3955 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1725fi 3956fi
1726fi 3957fi
1727 3958
1728NM="$lt_cv_path_NM" 3959NM="$lt_cv_path_NM"
1729echo "$ac_t""$NM" 1>&6 3960echo "$as_me:$LINENO: result: $NM" >&5
3961echo "${ECHO_T}$NM" >&6
1730 3962
3963echo "$as_me:$LINENO: checking whether ln -s works" >&5
1731echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 3964echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1732echo "configure:1733: checking whether ln -s works" >&5 3965LN_S=$as_ln_s
1733if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1734 echo $ac_n "(cached) $ac_c" 1>&6
1735else
1736 rm -f conftestdata
1737if ln -s X conftestdata 2>/dev/null
1738then
1739 rm -f conftestdata
1740 ac_cv_prog_LN_S="ln -s"
1741else
1742 ac_cv_prog_LN_S=ln
1743fi
1744fi
1745LN_S="$ac_cv_prog_LN_S"
1746if test "$ac_cv_prog_LN_S" = "ln -s"; then 3966if test "$LN_S" = "ln -s"; then
1747 echo "$ac_t""yes" 1>&6 3967 echo "$as_me:$LINENO: result: yes" >&5
3968echo "${ECHO_T}yes" >&6
1748else 3969else
1749 echo "$ac_t""no" 1>&6 3970 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3971echo "${ECHO_T}no, using $LN_S" >&6
1750fi 3972fi
1751 3973
3974echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
1752echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6 3975echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
1753echo "configure:1754: checking how to recognise dependant libraries" >&5
1754if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then 3976if test "${lt_cv_deplibs_check_method+set}" = set; then
1755 echo $ac_n "(cached) $ac_c" 1>&6 3977 echo $ECHO_N "(cached) $ECHO_C" >&6
1756else 3978else
1757 lt_cv_file_magic_cmd='$MAGIC_CMD' 3979 lt_cv_file_magic_cmd='$MAGIC_CMD'
1758lt_cv_file_magic_test_file= 3980lt_cv_file_magic_test_file=
1759lt_cv_deplibs_check_method='unknown' 3981lt_cv_deplibs_check_method='unknown'
1760# Need to set the preceding variable on all platforms that support 3982# Need to set the preceding variable on all platforms that support
1906 esac 4128 esac
1907 ;; 4129 ;;
1908esac 4130esac
1909 4131
1910fi 4132fi
1911 4133echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
1912echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6 4134echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
1913file_magic_cmd=$lt_cv_file_magic_cmd 4135file_magic_cmd=$lt_cv_file_magic_cmd
1914deplibs_check_method=$lt_cv_deplibs_check_method 4136deplibs_check_method=$lt_cv_deplibs_check_method
1915 4137
1916echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1917echo "configure:1918: checking for object suffix" >&5
1918if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1919 echo $ac_n "(cached) $ac_c" 1>&6
1920else
1921 rm -f conftest*
1922echo 'int i = 1;' > conftest.$ac_ext
1923if { (eval echo configure:1924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1924 for ac_file in conftest.*; do
1925 case $ac_file in
1926 *.c) ;;
1927 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1928 esac
1929 done
1930else
1931 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1932fi
1933rm -f conftest*
1934fi
1935 4138
1936echo "$ac_t""$ac_cv_objext" 1>&6
1937OBJEXT=$ac_cv_objext
1938ac_objext=$ac_cv_objext
1939 4139
1940
1941
1942echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1943echo "configure:1944: checking for executable suffix" >&5
1944if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1945 echo $ac_n "(cached) $ac_c" 1>&6
1946else
1947 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1948 ac_cv_exeext=.exe
1949else
1950 rm -f conftest*
1951 echo 'int main () { return 0; }' > conftest.$ac_ext
1952 ac_cv_exeext=
1953 if { (eval echo configure:1954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1954 for file in conftest.*; do
1955 case $file in
1956 *.$ac_ext | *.c | *.o | *.obj) ;;
1957 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1958 esac
1959 done
1960 else
1961 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1962 fi
1963 rm -f conftest*
1964 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1965fi
1966fi
1967
1968EXEEXT=""
1969test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1970echo "$ac_t""${ac_cv_exeext}" 1>&6
1971ac_exeext=$EXEEXT
1972
1973if test $host != $build; then
1974 ac_tool_prefix=${host_alias}-
1975else
1976 ac_tool_prefix=
1977fi
1978 4140
1979 4141
1980 4142
1981 4143
1982# Check for command to grab the raw symbol name followed by C symbol from nm. 4144# Check for command to grab the raw symbol name followed by C symbol from nm.
4145echo "$as_me:$LINENO: checking command to parse $NM output" >&5
1983echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6 4146echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
1984echo "configure:1985: checking command to parse $NM output" >&5
1985if eval "test \"`echo '$''{'lt_cv_sys_global_symbol_pipe'+set}'`\" = set"; then 4147if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
1986 echo $ac_n "(cached) $ac_c" 1>&6 4148 echo $ECHO_N "(cached) $ECHO_C" >&6
1987else 4149else
1988 4150
1989# These are sane defaults that work on at least a few old systems. 4151# These are sane defaults that work on at least a few old systems.
1990# [They come from Ultrix. What could be older than Ultrix?!! ;)] 4152# [They come from Ultrix. What could be older than Ultrix?!! ;)]
1991 4153
1992# Character class describing NM global symbol codes. 4154# Character class describing NM global symbol codes.
1993symcode='[BCDEGRST]' 4155symcode='[BCDEGRST]'
2055} 4217}
2056#endif 4218#endif
2057main(){nm_test_var='a';nm_test_func();return(0);} 4219main(){nm_test_var='a';nm_test_func();return(0);}
2058EOF 4220EOF
2059 4221
2060 if { (eval echo configure:2061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4223 (eval $ac_compile) 2>&5
4224 ac_status=$?
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); }; then
2061 # Now try to grab the symbols. 4227 # Now try to grab the symbols.
2062 nlist=conftest.nm 4228 nlist=conftest.nm
2063 if { (eval echo configure:2064: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5; } && test -s "$nlist"; then 4229 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4230 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4231 ac_status=$?
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); } && test -s "$nlist"; then
2064 # Try sorting and uniquifying the output. 4234 # Try sorting and uniquifying the output.
2065 if sort "$nlist" | uniq > "$nlist"T; then 4235 if sort "$nlist" | uniq > "$nlist"T; then
2066 mv -f "$nlist"T "$nlist" 4236 mv -f "$nlist"T "$nlist"
2067 else 4237 else
2068 rm -f "$nlist"T 4238 rm -f "$nlist"T
2109 mv conftest.$ac_objext conftstm.$ac_objext 4279 mv conftest.$ac_objext conftstm.$ac_objext
2110 save_LIBS="$LIBS" 4280 save_LIBS="$LIBS"
2111 save_CFLAGS="$CFLAGS" 4281 save_CFLAGS="$CFLAGS"
2112 LIBS="conftstm.$ac_objext" 4282 LIBS="conftstm.$ac_objext"
2113 CFLAGS="$CFLAGS$no_builtin_flag" 4283 CFLAGS="$CFLAGS$no_builtin_flag"
2114 if { (eval echo configure:2115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4285 (eval $ac_link) 2>&5
4286 ac_status=$?
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); } && test -s conftest; then
2115 pipe_works=yes 4289 pipe_works=yes
2116 fi 4290 fi
2117 LIBS="$save_LIBS" 4291 LIBS="$save_LIBS"
2118 CFLAGS="$save_CFLAGS" 4292 CFLAGS="$save_CFLAGS"
2119 else 4293 else
2146 global_symbol_to_cdecl= 4320 global_symbol_to_cdecl=
2147else 4321else
2148 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl" 4322 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
2149fi 4323fi
2150if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then 4324if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then
2151 echo "$ac_t""failed" 1>&6 4325 echo "$as_me:$LINENO: result: failed" >&5
4326echo "${ECHO_T}failed" >&6
4327else
4328 echo "$as_me:$LINENO: result: ok" >&5
4329echo "${ECHO_T}ok" >&6
4330fi
4331
4332echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4333echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4334if test "${ac_cv_header_stdc+set}" = set; then
4335 echo $ECHO_N "(cached) $ECHO_C" >&6
4336else
4337 cat >conftest.$ac_ext <<_ACEOF
4338/* confdefs.h. */
4339_ACEOF
4340cat confdefs.h >>conftest.$ac_ext
4341cat >>conftest.$ac_ext <<_ACEOF
4342/* end confdefs.h. */
4343#include <stdlib.h>
4344#include <stdarg.h>
4345#include <string.h>
4346#include <float.h>
4347
4348int
4349main ()
4350{
4351
4352 ;
4353 return 0;
4354}
4355_ACEOF
4356rm -f conftest.$ac_objext
4357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4358 (eval $ac_compile) 2>conftest.er1
4359 ac_status=$?
4360 grep -v '^ *+' conftest.er1 >conftest.err
4361 rm -f conftest.er1
4362 cat conftest.err >&5
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); } &&
4365 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4367 (eval $ac_try) 2>&5
4368 ac_status=$?
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); }; } &&
4371 { ac_try='test -s conftest.$ac_objext'
4372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4373 (eval $ac_try) 2>&5
4374 ac_status=$?
4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); }; }; then
4377 ac_cv_header_stdc=yes
4378else
4379 echo "$as_me: failed program was:" >&5
4380sed 's/^/| /' conftest.$ac_ext >&5
4381
4382ac_cv_header_stdc=no
4383fi
4384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4385
4386if test $ac_cv_header_stdc = yes; then
4387 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4388 cat >conftest.$ac_ext <<_ACEOF
4389/* confdefs.h. */
4390_ACEOF
4391cat confdefs.h >>conftest.$ac_ext
4392cat >>conftest.$ac_ext <<_ACEOF
4393/* end confdefs.h. */
4394#include <string.h>
4395
4396_ACEOF
4397if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4398 $EGREP "memchr" >/dev/null 2>&1; then
4399 :
4400else
4401 ac_cv_header_stdc=no
4402fi
4403rm -f conftest*
4404
4405fi
4406
4407if test $ac_cv_header_stdc = yes; then
4408 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4409 cat >conftest.$ac_ext <<_ACEOF
4410/* confdefs.h. */
4411_ACEOF
4412cat confdefs.h >>conftest.$ac_ext
4413cat >>conftest.$ac_ext <<_ACEOF
4414/* end confdefs.h. */
4415#include <stdlib.h>
4416
4417_ACEOF
4418if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4419 $EGREP "free" >/dev/null 2>&1; then
4420 :
4421else
4422 ac_cv_header_stdc=no
4423fi
4424rm -f conftest*
4425
4426fi
4427
4428if test $ac_cv_header_stdc = yes; then
4429 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4430 if test "$cross_compiling" = yes; then
4431 :
4432else
4433 cat >conftest.$ac_ext <<_ACEOF
4434/* confdefs.h. */
4435_ACEOF
4436cat confdefs.h >>conftest.$ac_ext
4437cat >>conftest.$ac_ext <<_ACEOF
4438/* end confdefs.h. */
4439#include <ctype.h>
4440#if ((' ' & 0x0FF) == 0x020)
4441# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4442# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2152else 4443#else
2153 echo "$ac_t""ok" 1>&6 4444# define ISLOWER(c) \
2154fi 4445 (('a' <= (c) && (c) <= 'i') \
4446 || ('j' <= (c) && (c) <= 'r') \
4447 || ('s' <= (c) && (c) <= 'z'))
4448# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4449#endif
2155 4450
2156for ac_hdr in dlfcn.h 4451#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4452int
4453main ()
4454{
4455 int i;
4456 for (i = 0; i < 256; i++)
4457 if (XOR (islower (i), ISLOWER (i))
4458 || toupper (i) != TOUPPER (i))
4459 exit(2);
4460 exit (0);
4461}
4462_ACEOF
4463rm -f conftest$ac_exeext
4464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4465 (eval $ac_link) 2>&5
4466 ac_status=$?
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4470 (eval $ac_try) 2>&5
4471 ac_status=$?
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); }; }; then
4474 :
4475else
4476 echo "$as_me: program exited with status $ac_status" >&5
4477echo "$as_me: failed program was:" >&5
4478sed 's/^/| /' conftest.$ac_ext >&5
4479
4480( exit $ac_status )
4481ac_cv_header_stdc=no
4482fi
4483rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4484fi
4485fi
4486fi
4487echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4488echo "${ECHO_T}$ac_cv_header_stdc" >&6
4489if test $ac_cv_header_stdc = yes; then
4490
4491cat >>confdefs.h <<\_ACEOF
4492#define STDC_HEADERS 1
4493_ACEOF
4494
4495fi
4496
4497# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4508 inttypes.h stdint.h unistd.h
2157do 4509do
2158ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 4510as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4511echo "$as_me:$LINENO: checking for $ac_header" >&5
2159echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 4512echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2160echo "configure:2161: checking for $ac_hdr" >&5 4513if eval "test \"\${$as_ac_Header+set}\" = set"; then
2161if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2162 echo $ac_n "(cached) $ac_c" 1>&6 4514 echo $ECHO_N "(cached) $ECHO_C" >&6
2163else 4515else
2164 cat > conftest.$ac_ext <<EOF 4516 cat >conftest.$ac_ext <<_ACEOF
2165#line 2166 "configure" 4517/* confdefs.h. */
2166#include "confdefs.h" 4518_ACEOF
4519cat confdefs.h >>conftest.$ac_ext
4520cat >>conftest.$ac_ext <<_ACEOF
4521/* end confdefs.h. */
4522$ac_includes_default
4523
2167#include <$ac_hdr> 4524#include <$ac_header>
2168EOF 4525_ACEOF
2169ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4526rm -f conftest.$ac_objext
2170{ (eval echo configure:2171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2171ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4528 (eval $ac_compile) 2>conftest.er1
4529 ac_status=$?
4530 grep -v '^ *+' conftest.er1 >conftest.err
4531 rm -f conftest.er1
4532 cat conftest.err >&5
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); } &&
4535 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4537 (eval $ac_try) 2>&5
4538 ac_status=$?
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); }; } &&
4541 { ac_try='test -s conftest.$ac_objext'
4542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4543 (eval $ac_try) 2>&5
4544 ac_status=$?
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); }; }; then
4547 eval "$as_ac_Header=yes"
4548else
4549 echo "$as_me: failed program was:" >&5
4550sed 's/^/| /' conftest.$ac_ext >&5
4551
4552eval "$as_ac_Header=no"
4553fi
4554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4555fi
4556echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4557echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4558if test `eval echo '${'$as_ac_Header'}'` = yes; then
4559 cat >>confdefs.h <<_ACEOF
4560#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4561_ACEOF
4562
4563fi
4564
4565done
4566
4567
4568
4569for ac_header in dlfcn.h
4570do
4571as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4572if eval "test \"\${$as_ac_Header+set}\" = set"; then
4573 echo "$as_me:$LINENO: checking for $ac_header" >&5
4574echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4575if eval "test \"\${$as_ac_Header+set}\" = set"; then
4576 echo $ECHO_N "(cached) $ECHO_C" >&6
4577fi
4578echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4579echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4580else
4581 # Is the header compilable?
4582echo "$as_me:$LINENO: checking $ac_header usability" >&5
4583echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4584cat >conftest.$ac_ext <<_ACEOF
4585/* confdefs.h. */
4586_ACEOF
4587cat confdefs.h >>conftest.$ac_ext
4588cat >>conftest.$ac_ext <<_ACEOF
4589/* end confdefs.h. */
4590$ac_includes_default
4591#include <$ac_header>
4592_ACEOF
4593rm -f conftest.$ac_objext
4594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4595 (eval $ac_compile) 2>conftest.er1
4596 ac_status=$?
4597 grep -v '^ *+' conftest.er1 >conftest.err
4598 rm -f conftest.er1
4599 cat conftest.err >&5
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); } &&
4602 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4604 (eval $ac_try) 2>&5
4605 ac_status=$?
4606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607 (exit $ac_status); }; } &&
4608 { ac_try='test -s conftest.$ac_objext'
4609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4610 (eval $ac_try) 2>&5
4611 ac_status=$?
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); }; }; then
4614 ac_header_compiler=yes
4615else
4616 echo "$as_me: failed program was:" >&5
4617sed 's/^/| /' conftest.$ac_ext >&5
4618
4619ac_header_compiler=no
4620fi
4621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4622echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4623echo "${ECHO_T}$ac_header_compiler" >&6
4624
4625# Is the header present?
4626echo "$as_me:$LINENO: checking $ac_header presence" >&5
4627echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4628cat >conftest.$ac_ext <<_ACEOF
4629/* confdefs.h. */
4630_ACEOF
4631cat confdefs.h >>conftest.$ac_ext
4632cat >>conftest.$ac_ext <<_ACEOF
4633/* end confdefs.h. */
4634#include <$ac_header>
4635_ACEOF
4636if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4637 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4638 ac_status=$?
4639 grep -v '^ *+' conftest.er1 >conftest.err
4640 rm -f conftest.er1
4641 cat conftest.err >&5
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); } >/dev/null; then
4644 if test -s conftest.err; then
4645 ac_cpp_err=$ac_cxx_preproc_warn_flag
4646 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4647 else
4648 ac_cpp_err=
4649 fi
4650else
4651 ac_cpp_err=yes
4652fi
2172if test -z "$ac_err"; then 4653if test -z "$ac_cpp_err"; then
2173 rm -rf conftest* 4654 ac_header_preproc=yes
2174 eval "ac_cv_header_$ac_safe=yes"
2175else 4655else
2176 echo "$ac_err" >&5
2177 echo "configure: failed program was:" >&5 4656 echo "$as_me: failed program was:" >&5
2178 cat conftest.$ac_ext >&5 4657sed 's/^/| /' conftest.$ac_ext >&5
2179 rm -rf conftest* 4658
2180 eval "ac_cv_header_$ac_safe=no" 4659 ac_header_preproc=no
2181fi 4660fi
2182rm -f conftest* 4661rm -f conftest.err conftest.$ac_ext
4662echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4663echo "${ECHO_T}$ac_header_preproc" >&6
4664
4665# So? What about this header?
4666case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
4667 yes:no: )
4668 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4669echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4671echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4672 ac_header_preproc=yes
4673 ;;
4674 no:yes:* )
4675 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4676echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4677 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4678echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4679 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4680echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4681 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4682echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4684echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4685 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4686echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4687 (
4688 cat <<\_ASBOX
4689## ------------------------------------------ ##
4690## Report this to the AC_PACKAGE_NAME lists. ##
4691## ------------------------------------------ ##
4692_ASBOX
4693 ) |
4694 sed "s/^/$as_me: WARNING: /" >&2
4695 ;;
4696esac
4697echo "$as_me:$LINENO: checking for $ac_header" >&5
4698echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4699if eval "test \"\${$as_ac_Header+set}\" = set"; then
4700 echo $ECHO_N "(cached) $ECHO_C" >&6
4701else
4702 eval "$as_ac_Header=\$ac_header_preproc"
2183fi 4703fi
2184if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4704echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2185 echo "$ac_t""yes" 1>&6 4705echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2186 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 4706
4707fi
4708if test `eval echo '${'$as_ac_Header'}'` = yes; then
2187 cat >> confdefs.h <<EOF 4709 cat >>confdefs.h <<_ACEOF
2188#define $ac_tr_hdr 1 4710#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2189EOF 4711_ACEOF
2190 4712
2191else
2192 echo "$ac_t""no" 1>&6
2193fi 4713fi
4714
2194done 4715done
2195 4716
2196 4717
2197 4718
2198 4719
2199 4720
2200# Only perform the check for file, if the check method requires it 4721# Only perform the check for file, if the check method requires it
2201case "$deplibs_check_method" in 4722case "$deplibs_check_method" in
2202file_magic*) 4723file_magic*)
2203 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 4724 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4725 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
2204 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6 4726echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
2205echo "configure:2206: checking for ${ac_tool_prefix}file" >&5
2206if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then 4727if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
2207 echo $ac_n "(cached) $ac_c" 1>&6 4728 echo $ECHO_N "(cached) $ECHO_C" >&6
2208else 4729else
2209 case "$MAGIC_CMD" in 4730 case "$MAGIC_CMD" in
2210 /*) 4731 /*)
2211 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 4732 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2212 ;; 4733 ;;
2254esac 4775esac
2255fi 4776fi
2256 4777
2257MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 4778MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2258if test -n "$MAGIC_CMD"; then 4779if test -n "$MAGIC_CMD"; then
4780 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
2259 echo "$ac_t""$MAGIC_CMD" 1>&6 4781echo "${ECHO_T}$MAGIC_CMD" >&6
2260else 4782else
2261 echo "$ac_t""no" 1>&6 4783 echo "$as_me:$LINENO: result: no" >&5
4784echo "${ECHO_T}no" >&6
2262fi 4785fi
2263 4786
2264if test -z "$lt_cv_path_MAGIC_CMD"; then 4787if test -z "$lt_cv_path_MAGIC_CMD"; then
2265 if test -n "$ac_tool_prefix"; then 4788 if test -n "$ac_tool_prefix"; then
4789 echo "$as_me:$LINENO: checking for file" >&5
2266 echo $ac_n "checking for file""... $ac_c" 1>&6 4790echo $ECHO_N "checking for file... $ECHO_C" >&6
2267echo "configure:2268: checking for file" >&5
2268if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then 4791if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
2269 echo $ac_n "(cached) $ac_c" 1>&6 4792 echo $ECHO_N "(cached) $ECHO_C" >&6
2270else 4793else
2271 case "$MAGIC_CMD" in 4794 case "$MAGIC_CMD" in
2272 /*) 4795 /*)
2273 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 4796 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2274 ;; 4797 ;;
2316esac 4839esac
2317fi 4840fi
2318 4841
2319MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 4842MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2320if test -n "$MAGIC_CMD"; then 4843if test -n "$MAGIC_CMD"; then
4844 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
2321 echo "$ac_t""$MAGIC_CMD" 1>&6 4845echo "${ECHO_T}$MAGIC_CMD" >&6
2322else 4846else
2323 echo "$ac_t""no" 1>&6 4847 echo "$as_me:$LINENO: result: no" >&5
4848echo "${ECHO_T}no" >&6
2324fi 4849fi
2325 4850
2326 else 4851 else
2327 MAGIC_CMD=: 4852 MAGIC_CMD=:
2328 fi 4853 fi
2330 4855
2331 fi 4856 fi
2332 ;; 4857 ;;
2333esac 4858esac
2334 4859
4860if test -n "$ac_tool_prefix"; then
2335# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4861 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2336set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4862set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4863echo "$as_me:$LINENO: checking for $ac_word" >&5
2337echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 4864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2338echo "configure:2339: checking for $ac_word" >&5
2339if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 4865if test "${ac_cv_prog_RANLIB+set}" = set; then
2340 echo $ac_n "(cached) $ac_c" 1>&6 4866 echo $ECHO_N "(cached) $ECHO_C" >&6
2341else 4867else
2342 if test -n "$RANLIB"; then 4868 if test -n "$RANLIB"; then
2343 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4869 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2344else 4870else
2345 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346 ac_dummy="$PATH" 4872for as_dir in $PATH
2347 for ac_dir in $ac_dummy; do 4873do
4874 IFS=$as_save_IFS
2348 test -z "$ac_dir" && ac_dir=. 4875 test -z "$as_dir" && as_dir=.
2349 if test -f $ac_dir/$ac_word; then 4876 for ac_exec_ext in '' $ac_executable_extensions; do
4877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2350 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4878 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2351 break 4880 break 2
2352 fi 4881 fi
2353 done 4882done
2354 IFS="$ac_save_ifs" 4883done
4884
2355fi 4885fi
2356fi 4886fi
2357RANLIB="$ac_cv_prog_RANLIB" 4887RANLIB=$ac_cv_prog_RANLIB
2358if test -n "$RANLIB"; then 4888if test -n "$RANLIB"; then
2359 echo "$ac_t""$RANLIB" 1>&6 4889 echo "$as_me:$LINENO: result: $RANLIB" >&5
4890echo "${ECHO_T}$RANLIB" >&6
2360else 4891else
2361 echo "$ac_t""no" 1>&6 4892 echo "$as_me:$LINENO: result: no" >&5
4893echo "${ECHO_T}no" >&6
2362fi 4894fi
2363 4895
2364 4896fi
2365if test -z "$ac_cv_prog_RANLIB"; then 4897if test -z "$ac_cv_prog_RANLIB"; then
2366if test -n "$ac_tool_prefix"; then 4898 ac_ct_RANLIB=$RANLIB
2367 # Extract the first word of "ranlib", so it can be a program name with args. 4899 # Extract the first word of "ranlib", so it can be a program name with args.
2368set dummy ranlib; ac_word=$2 4900set dummy ranlib; ac_word=$2
4901echo "$as_me:$LINENO: checking for $ac_word" >&5
2369echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 4902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2370echo "configure:2371: checking for $ac_word" >&5
2371if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 4903if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2372 echo $ac_n "(cached) $ac_c" 1>&6 4904 echo $ECHO_N "(cached) $ECHO_C" >&6
2373else 4905else
2374 if test -n "$RANLIB"; then 4906 if test -n "$ac_ct_RANLIB"; then
2375 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4907 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2376else 4908else
2377 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2378 ac_dummy="$PATH" 4910for as_dir in $PATH
2379 for ac_dir in $ac_dummy; do 4911do
4912 IFS=$as_save_IFS
2380 test -z "$ac_dir" && ac_dir=. 4913 test -z "$as_dir" && as_dir=.
2381 if test -f $ac_dir/$ac_word; then 4914 for ac_exec_ext in '' $ac_executable_extensions; do
4915 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2382 ac_cv_prog_RANLIB="ranlib" 4916 ac_cv_prog_ac_ct_RANLIB="ranlib"
4917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2383 break 4918 break 2
2384 fi 4919 fi
2385 done 4920done
2386 IFS="$ac_save_ifs" 4921done
4922
2387 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" 4923 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2388fi 4924fi
2389fi 4925fi
4926ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4927if test -n "$ac_ct_RANLIB"; then
4928 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4929echo "${ECHO_T}$ac_ct_RANLIB" >&6
4930else
4931 echo "$as_me:$LINENO: result: no" >&5
4932echo "${ECHO_T}no" >&6
4933fi
4934
4935 RANLIB=$ac_ct_RANLIB
4936else
2390RANLIB="$ac_cv_prog_RANLIB" 4937 RANLIB="$ac_cv_prog_RANLIB"
2391if test -n "$RANLIB"; then
2392 echo "$ac_t""$RANLIB" 1>&6
2393else
2394 echo "$ac_t""no" 1>&6
2395fi 4938fi
2396 4939
2397else 4940if test -n "$ac_tool_prefix"; then
2398 RANLIB=":"
2399fi
2400fi
2401
2402# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4941 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2403set dummy ${ac_tool_prefix}strip; ac_word=$2 4942set dummy ${ac_tool_prefix}strip; ac_word=$2
4943echo "$as_me:$LINENO: checking for $ac_word" >&5
2404echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 4944echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2405echo "configure:2406: checking for $ac_word" >&5
2406if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then 4945if test "${ac_cv_prog_STRIP+set}" = set; then
2407 echo $ac_n "(cached) $ac_c" 1>&6 4946 echo $ECHO_N "(cached) $ECHO_C" >&6
2408else 4947else
2409 if test -n "$STRIP"; then 4948 if test -n "$STRIP"; then
2410 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4949 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2411else 4950else
2412 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413 ac_dummy="$PATH" 4952for as_dir in $PATH
2414 for ac_dir in $ac_dummy; do 4953do
4954 IFS=$as_save_IFS
2415 test -z "$ac_dir" && ac_dir=. 4955 test -z "$as_dir" && as_dir=.
2416 if test -f $ac_dir/$ac_word; then 4956 for ac_exec_ext in '' $ac_executable_extensions; do
4957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2417 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4958 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2418 break 4960 break 2
2419 fi 4961 fi
2420 done 4962done
2421 IFS="$ac_save_ifs" 4963done
4964
2422fi 4965fi
2423fi 4966fi
2424STRIP="$ac_cv_prog_STRIP" 4967STRIP=$ac_cv_prog_STRIP
2425if test -n "$STRIP"; then 4968if test -n "$STRIP"; then
2426 echo "$ac_t""$STRIP" 1>&6 4969 echo "$as_me:$LINENO: result: $STRIP" >&5
4970echo "${ECHO_T}$STRIP" >&6
2427else 4971else
2428 echo "$ac_t""no" 1>&6 4972 echo "$as_me:$LINENO: result: no" >&5
4973echo "${ECHO_T}no" >&6
2429fi 4974fi
2430 4975
2431 4976fi
2432if test -z "$ac_cv_prog_STRIP"; then 4977if test -z "$ac_cv_prog_STRIP"; then
2433if test -n "$ac_tool_prefix"; then 4978 ac_ct_STRIP=$STRIP
2434 # Extract the first word of "strip", so it can be a program name with args. 4979 # Extract the first word of "strip", so it can be a program name with args.
2435set dummy strip; ac_word=$2 4980set dummy strip; ac_word=$2
4981echo "$as_me:$LINENO: checking for $ac_word" >&5
2436echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 4982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2437echo "configure:2438: checking for $ac_word" >&5
2438if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then 4983if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2439 echo $ac_n "(cached) $ac_c" 1>&6 4984 echo $ECHO_N "(cached) $ECHO_C" >&6
2440else 4985else
2441 if test -n "$STRIP"; then 4986 if test -n "$ac_ct_STRIP"; then
2442 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4987 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2443else 4988else
2444 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2445 ac_dummy="$PATH" 4990for as_dir in $PATH
2446 for ac_dir in $ac_dummy; do 4991do
4992 IFS=$as_save_IFS
2447 test -z "$ac_dir" && ac_dir=. 4993 test -z "$as_dir" && as_dir=.
2448 if test -f $ac_dir/$ac_word; then 4994 for ac_exec_ext in '' $ac_executable_extensions; do
4995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2449 ac_cv_prog_STRIP="strip" 4996 ac_cv_prog_ac_ct_STRIP="strip"
4997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2450 break 4998 break 2
2451 fi 4999 fi
2452 done 5000done
2453 IFS="$ac_save_ifs" 5001done
5002
2454 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" 5003 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2455fi 5004fi
2456fi 5005fi
5006ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5007if test -n "$ac_ct_STRIP"; then
5008 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5009echo "${ECHO_T}$ac_ct_STRIP" >&6
5010else
5011 echo "$as_me:$LINENO: result: no" >&5
5012echo "${ECHO_T}no" >&6
5013fi
5014
5015 STRIP=$ac_ct_STRIP
5016else
2457STRIP="$ac_cv_prog_STRIP" 5017 STRIP="$ac_cv_prog_STRIP"
2458if test -n "$STRIP"; then
2459 echo "$ac_t""$STRIP" 1>&6
2460else
2461 echo "$ac_t""no" 1>&6
2462fi
2463
2464else
2465 STRIP=":"
2466fi
2467fi 5018fi
2468 5019
2469 5020
2470enable_dlopen=no 5021enable_dlopen=no
2471enable_win32_dll=no 5022enable_win32_dll=no
2472 5023
2473# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 5024# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2474if test "${enable_libtool_lock+set}" = set; then 5025if test "${enable_libtool_lock+set}" = set; then
2475 enableval="$enable_libtool_lock" 5026 enableval="$enable_libtool_lock"
2476 : 5027
2477fi 5028fi;
2478
2479test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5029test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2480 5030
2481# Some flags need to be propagated to the compiler or linker for good 5031# Some flags need to be propagated to the compiler or linker for good
2482# libtool support. 5032# libtool support.
2483case "$host" in 5033case "$host" in
2484*-*-irix6*) 5034*-*-irix6*)
2485 # Find out which ABI we are using. 5035 # Find out which ABI we are using.
2486 echo '#line 2487 "configure"' > conftest.$ac_ext 5036 echo '#line 5036 "configure"' > conftest.$ac_ext
2487 if { (eval echo configure:2488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5038 (eval $ac_compile) 2>&5
5039 ac_status=$?
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); }; then
2488 case "`/usr/bin/file conftest.$ac_objext`" in 5042 case "`/usr/bin/file conftest.$ac_objext`" in
2489 *32-bit*) 5043 *32-bit*)
2490 LD="${LD-ld} -32" 5044 LD="${LD-ld} -32"
2491 ;; 5045 ;;
2492 *N32*) 5046 *N32*)
2502 5056
2503*-*-sco3.2v5*) 5057*-*-sco3.2v5*)
2504 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5058 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2505 SAVE_CFLAGS="$CFLAGS" 5059 SAVE_CFLAGS="$CFLAGS"
2506 CFLAGS="$CFLAGS -belf" 5060 CFLAGS="$CFLAGS -belf"
5061 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
2507 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 5062echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
2508echo "configure:2509: checking whether the C compiler needs -belf" >&5
2509if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then 5063if test "${lt_cv_cc_needs_belf+set}" = set; then
2510 echo $ac_n "(cached) $ac_c" 1>&6 5064 echo $ECHO_N "(cached) $ECHO_C" >&6
2511else 5065else
2512 5066
5067
2513 ac_ext=c 5068 ac_ext=c
2514# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2515ac_cpp='$CPP $CPPFLAGS' 5069ac_cpp='$CPP $CPPFLAGS'
2516ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 5070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2517ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 5071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2518cross_compiling=$ac_cv_prog_cc_cross 5072ac_compiler_gnu=$ac_cv_c_compiler_gnu
2519 5073
2520 cat > conftest.$ac_ext <<EOF 5074 cat >conftest.$ac_ext <<_ACEOF
2521#line 2522 "configure" 5075/* confdefs.h. */
2522#include "confdefs.h" 5076_ACEOF
5077cat confdefs.h >>conftest.$ac_ext
5078cat >>conftest.$ac_ext <<_ACEOF
5079/* end confdefs.h. */
2523 5080
2524int main() { 5081int
5082main ()
5083{
2525 5084
5085 ;
2526; return 0; } 5086 return 0;
2527EOF 5087}
2528if { (eval echo configure:2529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5088_ACEOF
5089rm -f conftest.$ac_objext conftest$ac_exeext
5090if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5091 (eval $ac_link) 2>conftest.er1
5092 ac_status=$?
5093 grep -v '^ *+' conftest.er1 >conftest.err
2529 rm -rf conftest* 5094 rm -f conftest.er1
5095 cat conftest.err >&5
5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); } &&
5098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5100 (eval $ac_try) 2>&5
5101 ac_status=$?
5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103 (exit $ac_status); }; } &&
5104 { ac_try='test -s conftest$ac_exeext'
5105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5106 (eval $ac_try) 2>&5
5107 ac_status=$?
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); }; }; then
2530 lt_cv_cc_needs_belf=yes 5110 lt_cv_cc_needs_belf=yes
2531else 5111else
2532 echo "configure: failed program was:" >&5 5112 echo "$as_me: failed program was:" >&5
2533 cat conftest.$ac_ext >&5 5113sed 's/^/| /' conftest.$ac_ext >&5
2534 rm -rf conftest* 5114
2535 lt_cv_cc_needs_belf=no 5115lt_cv_cc_needs_belf=no
2536fi 5116fi
2537rm -f conftest* 5117rm -f conftest.err conftest.$ac_objext \
5118 conftest$ac_exeext conftest.$ac_ext
2538 ac_ext=c 5119 ac_ext=cc
2539# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2540ac_cpp='$CPP $CPPFLAGS' 5120ac_cpp='$CXXCPP $CPPFLAGS'
2541ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 5121ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2542ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 5122ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2543cross_compiling=$ac_cv_prog_cc_cross 5123ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2544 5124
2545fi 5125fi
2546 5126echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
2547echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6 5127echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
2548 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5128 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2549 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 5129 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2550 CFLAGS="$SAVE_CFLAGS" 5130 CFLAGS="$SAVE_CFLAGS"
2551 fi 5131 fi
2552 ;; 5132 ;;
2637set dummy $CC 5217set dummy $CC
2638compiler="$2" 5218compiler="$2"
2639 5219
2640## FIXME: this should be a separate macro 5220## FIXME: this should be a separate macro
2641## 5221##
5222echo "$as_me:$LINENO: checking for objdir" >&5
2642echo $ac_n "checking for objdir""... $ac_c" 1>&6 5223echo $ECHO_N "checking for objdir... $ECHO_C" >&6
2643echo "configure:2644: checking for objdir" >&5
2644rm -f .libs 2>/dev/null 5224rm -f .libs 2>/dev/null
2645mkdir .libs 2>/dev/null 5225mkdir .libs 2>/dev/null
2646if test -d .libs; then 5226if test -d .libs; then
2647 objdir=.libs 5227 objdir=.libs
2648else 5228else
2649 # MS-DOS does not allow filenames that begin with a dot. 5229 # MS-DOS does not allow filenames that begin with a dot.
2650 objdir=_libs 5230 objdir=_libs
2651fi 5231fi
2652rmdir .libs 2>/dev/null 5232rmdir .libs 2>/dev/null
5233echo "$as_me:$LINENO: result: $objdir" >&5
2653echo "$ac_t""$objdir" 1>&6 5234echo "${ECHO_T}$objdir" >&6
2654## 5235##
2655## END FIXME 5236## END FIXME
2656 5237
2657 5238
2658## FIXME: this should be a separate macro 5239## FIXME: this should be a separate macro
2659## 5240##
5241
2660# Check whether --with-pic or --without-pic was given. 5242# Check whether --with-pic or --without-pic was given.
2661if test "${with_pic+set}" = set; then 5243if test "${with_pic+set}" = set; then
2662 withval="$with_pic" 5244 withval="$with_pic"
2663 pic_mode="$withval" 5245 pic_mode="$withval"
2664else 5246else
2665 pic_mode=default 5247 pic_mode=default
2666fi 5248fi;
2667
2668test -z "$pic_mode" && pic_mode=default 5249test -z "$pic_mode" && pic_mode=default
2669 5250
2670# We assume here that the value for lt_cv_prog_cc_pic will not be cached 5251# We assume here that the value for lt_cv_prog_cc_pic will not be cached
2671# in isolation, and that seeing it set (from the cache) indicates that 5252# in isolation, and that seeing it set (from the cache) indicates that
2672# the associated values are set (in the cache) correctly too. 5253# the associated values are set (in the cache) correctly too.
5254echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
2673echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6 5255echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
2674echo "configure:2675: checking for $compiler option to produce PIC" >&5
2675if eval "test \"`echo '$''{'lt_cv_prog_cc_pic'+set}'`\" = set"; then 5256if test "${lt_cv_prog_cc_pic+set}" = set; then
2676 echo $ac_n "(cached) $ac_c" 1>&6 5257 echo $ECHO_N "(cached) $ECHO_C" >&6
2677else 5258else
2678 lt_cv_prog_cc_pic= 5259 lt_cv_prog_cc_pic=
2679 lt_cv_prog_cc_shlib= 5260 lt_cv_prog_cc_shlib=
2680 lt_cv_prog_cc_wl= 5261 lt_cv_prog_cc_wl=
2681 lt_cv_prog_cc_static= 5262 lt_cv_prog_cc_static=
2804 fi 5385 fi
2805 5386
2806fi 5387fi
2807 5388
2808if test -z "$lt_cv_prog_cc_pic"; then 5389if test -z "$lt_cv_prog_cc_pic"; then
2809 echo "$ac_t""none" 1>&6 5390 echo "$as_me:$LINENO: result: none" >&5
5391echo "${ECHO_T}none" >&6
2810else 5392else
5393 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
2811 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6 5394echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
2812 5395
2813 # Check to make sure the pic_flag actually works. 5396 # Check to make sure the pic_flag actually works.
5397 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
2814 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6 5398echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
2815echo "configure:2816: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
2816 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic_works'+set}'`\" = set"; then 5399 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
2817 echo $ac_n "(cached) $ac_c" 1>&6 5400 echo $ECHO_N "(cached) $ECHO_C" >&6
2818else 5401else
2819 save_CFLAGS="$CFLAGS" 5402 save_CFLAGS="$CFLAGS"
2820 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC" 5403 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
2821 cat > conftest.$ac_ext <<EOF 5404 cat >conftest.$ac_ext <<_ACEOF
2822#line 2823 "configure" 5405/* confdefs.h. */
2823#include "confdefs.h" 5406_ACEOF
5407cat confdefs.h >>conftest.$ac_ext
5408cat >>conftest.$ac_ext <<_ACEOF
5409/* end confdefs.h. */
2824 5410
2825int main() { 5411int
5412main ()
5413{
2826 5414
5415 ;
2827; return 0; } 5416 return 0;
2828EOF 5417}
2829if { (eval echo configure:2830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5418_ACEOF
5419rm -f conftest.$ac_objext
5420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5421 (eval $ac_compile) 2>conftest.er1
5422 ac_status=$?
5423 grep -v '^ *+' conftest.er1 >conftest.err
2830 rm -rf conftest* 5424 rm -f conftest.er1
5425 cat conftest.err >&5
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); } &&
5428 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5430 (eval $ac_try) 2>&5
5431 ac_status=$?
5432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433 (exit $ac_status); }; } &&
5434 { ac_try='test -s conftest.$ac_objext'
5435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5436 (eval $ac_try) 2>&5
5437 ac_status=$?
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); }; }; then
2831 case "$host_os" in 5440 case "$host_os" in
2832 hpux9* | hpux10* | hpux11*) 5441 hpux9* | hpux10* | hpux11*)
2833 # On HP-UX, both CC and GCC only warn that PIC is supported... then 5442 # On HP-UX, both CC and GCC only warn that PIC is supported... then
2834 # they create non-PIC objects. So, if there were any warnings, we 5443 # they create non-PIC objects. So, if there were any warnings, we
2835 # assume that PIC is not supported. 5444 # assume that PIC is not supported.
2841 ;; 5450 ;;
2842 *) 5451 *)
2843 lt_cv_prog_cc_pic_works=yes 5452 lt_cv_prog_cc_pic_works=yes
2844 ;; 5453 ;;
2845 esac 5454 esac
2846 5455
2847else 5456else
2848 echo "configure: failed program was:" >&5 5457 echo "$as_me: failed program was:" >&5
2849 cat conftest.$ac_ext >&5 5458sed 's/^/| /' conftest.$ac_ext >&5
2850 rm -rf conftest* 5459
2851 lt_cv_prog_cc_pic_works=no 5460 lt_cv_prog_cc_pic_works=no
2852 5461
2853fi 5462fi
2854rm -f conftest* 5463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2855 CFLAGS="$save_CFLAGS" 5464 CFLAGS="$save_CFLAGS"
2856 5465
2857fi 5466fi
2858 5467
2859 5468
2860 if test "X$lt_cv_prog_cc_pic_works" = Xno; then 5469 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
2861 lt_cv_prog_cc_pic= 5470 lt_cv_prog_cc_pic=
2862 lt_cv_prog_cc_can_build_shared=no 5471 lt_cv_prog_cc_can_build_shared=no
2863 else 5472 else
2864 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic" 5473 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
2865 fi 5474 fi
2866 5475
5476 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
2867 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6 5477echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
2868fi 5478fi
2869## 5479##
2870## END FIXME 5480## END FIXME
2871 5481
2872# Check for any special shared library compilation flags. 5482# Check for any special shared library compilation flags.
2873if test -n "$lt_cv_prog_cc_shlib"; then 5483if test -n "$lt_cv_prog_cc_shlib"; then
5484 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
2874 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2 5485echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
2875 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then : 5486 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
2876 else 5487 else
5488 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
2877 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2 5489echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
2878 lt_cv_prog_cc_can_build_shared=no 5490 lt_cv_prog_cc_can_build_shared=no
2879 fi 5491 fi
2880fi 5492fi
2881 5493
2882## FIXME: this should be a separate macro 5494## FIXME: this should be a separate macro
2883## 5495##
5496echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
2884echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6 5497echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
2885echo "configure:2886: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
2886if eval "test \"`echo '$''{'lt_cv_prog_cc_static_works'+set}'`\" = set"; then 5498if test "${lt_cv_prog_cc_static_works+set}" = set; then
2887 echo $ac_n "(cached) $ac_c" 1>&6 5499 echo $ECHO_N "(cached) $ECHO_C" >&6
2888else 5500else
2889 lt_cv_prog_cc_static_works=no 5501 lt_cv_prog_cc_static_works=no
2890 save_LDFLAGS="$LDFLAGS" 5502 save_LDFLAGS="$LDFLAGS"
2891 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static" 5503 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
2892 cat > conftest.$ac_ext <<EOF 5504 cat >conftest.$ac_ext <<_ACEOF
2893#line 2894 "configure" 5505/* confdefs.h. */
2894#include "confdefs.h" 5506_ACEOF
5507cat confdefs.h >>conftest.$ac_ext
5508cat >>conftest.$ac_ext <<_ACEOF
5509/* end confdefs.h. */
2895 5510
2896int main() { 5511int
5512main ()
5513{
2897 5514
5515 ;
2898; return 0; } 5516 return 0;
2899EOF 5517}
2900if { (eval echo configure:2901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5518_ACEOF
5519rm -f conftest.$ac_objext conftest$ac_exeext
5520if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5521 (eval $ac_link) 2>conftest.er1
5522 ac_status=$?
5523 grep -v '^ *+' conftest.er1 >conftest.err
2901 rm -rf conftest* 5524 rm -f conftest.er1
5525 cat conftest.err >&5
5526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); } &&
5528 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5530 (eval $ac_try) 2>&5
5531 ac_status=$?
5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533 (exit $ac_status); }; } &&
5534 { ac_try='test -s conftest$ac_exeext'
5535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5536 (eval $ac_try) 2>&5
5537 ac_status=$?
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); }; }; then
2902 lt_cv_prog_cc_static_works=yes 5540 lt_cv_prog_cc_static_works=yes
2903else 5541else
2904 echo "configure: failed program was:" >&5 5542 echo "$as_me: failed program was:" >&5
2905 cat conftest.$ac_ext >&5 5543sed 's/^/| /' conftest.$ac_ext >&5
5544
2906fi 5545fi
2907rm -f conftest* 5546rm -f conftest.err conftest.$ac_objext \
5547 conftest$ac_exeext conftest.$ac_ext
2908 LDFLAGS="$save_LDFLAGS" 5548 LDFLAGS="$save_LDFLAGS"
2909 5549
2910fi 5550fi
2911 5551
2912 5552
2913# Belt *and* braces to stop my trousers falling down: 5553# Belt *and* braces to stop my trousers falling down:
2914test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static= 5554test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5555echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
2915echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6 5556echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
2916 5557
2917pic_flag="$lt_cv_prog_cc_pic" 5558pic_flag="$lt_cv_prog_cc_pic"
2918special_shlib_compile_flags="$lt_cv_prog_cc_shlib" 5559special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
2919wl="$lt_cv_prog_cc_wl" 5560wl="$lt_cv_prog_cc_wl"
2920link_static_flag="$lt_cv_prog_cc_static" 5561link_static_flag="$lt_cv_prog_cc_static"
2925 5566
2926 5567
2927## FIXME: this should be a separate macro 5568## FIXME: this should be a separate macro
2928## 5569##
2929# Check to see if options -o and -c are simultaneously supported by compiler 5570# Check to see if options -o and -c are simultaneously supported by compiler
5571echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
2930echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6 5572echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
2931echo "configure:2932: checking if $compiler supports -c -o file.$ac_objext" >&5
2932$rm -r conftest 2>/dev/null 5573$rm -r conftest 2>/dev/null
2933mkdir conftest 5574mkdir conftest
2934cd conftest 5575cd conftest
2935echo "int some_variable = 0;" > conftest.$ac_ext 5576echo "int some_variable = 0;" > conftest.$ac_ext
2936mkdir out 5577mkdir out
2941# builds. 5582# builds.
2942chmod -w . 5583chmod -w .
2943save_CFLAGS="$CFLAGS" 5584save_CFLAGS="$CFLAGS"
2944CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" 5585CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
2945compiler_c_o=no 5586compiler_c_o=no
2946if { (eval echo configure:2947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then 5587if { (eval echo configure:5587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
2947 # The compiler can only warn and ignore the option if not recognized 5588 # The compiler can only warn and ignore the option if not recognized
2948 # So say no if there are warnings 5589 # So say no if there are warnings
2949 if test -s out/conftest.err; then 5590 if test -s out/conftest.err; then
2950 compiler_c_o=no 5591 compiler_c_o=no
2951 else 5592 else
2954else 5595else
2955 # Append any errors to the config.log. 5596 # Append any errors to the config.log.
2956 cat out/conftest.err 1>&5 5597 cat out/conftest.err 1>&5
2957 compiler_c_o=no 5598 compiler_c_o=no
2958fi 5599fi
5600echo "$as_me:$LINENO: result: $compiler_c_o" >&5
2959echo "$ac_t""$compiler_c_o" 1>&6 5601echo "${ECHO_T}$compiler_c_o" >&6
2960CFLAGS="$save_CFLAGS" 5602CFLAGS="$save_CFLAGS"
2961chmod u+w . 5603chmod u+w .
2962$rm conftest* out/* 5604$rm conftest* out/*
2963rmdir out 5605rmdir out
2964cd .. 5606cd ..
2965rmdir conftest 5607rmdir conftest
2966$rm -r conftest 2>/dev/null 5608$rm -r conftest 2>/dev/null
2967 5609
2968if test x"$compiler_c_o" = x"yes"; then 5610if test x"$compiler_c_o" = x"yes"; then
2969 # Check to see if we can write to a .lo 5611 # Check to see if we can write to a .lo
5612 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
2970 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6 5613echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
2971echo "configure:2972: checking if $compiler supports -c -o file.lo" >&5
2972 compiler_o_lo=no 5614 compiler_o_lo=no
2973 save_CFLAGS="$CFLAGS" 5615 save_CFLAGS="$CFLAGS"
2974 CFLAGS="$CFLAGS -c -o conftest.lo" 5616 CFLAGS="$CFLAGS -c -o conftest.lo"
2975 cat > conftest.$ac_ext <<EOF 5617 cat >conftest.$ac_ext <<_ACEOF
2976#line 2977 "configure" 5618/* confdefs.h. */
2977#include "confdefs.h" 5619_ACEOF
5620cat confdefs.h >>conftest.$ac_ext
5621cat >>conftest.$ac_ext <<_ACEOF
5622/* end confdefs.h. */
2978 5623
2979int main() { 5624int
5625main ()
5626{
2980int some_variable = 0; 5627int some_variable = 0;
5628 ;
2981; return 0; } 5629 return 0;
2982EOF 5630}
2983if { (eval echo configure:2984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5631_ACEOF
5632rm -f conftest.$ac_objext
5633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5634 (eval $ac_compile) 2>conftest.er1
5635 ac_status=$?
5636 grep -v '^ *+' conftest.er1 >conftest.err
2984 rm -rf conftest* 5637 rm -f conftest.er1
5638 cat conftest.err >&5
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); } &&
5641 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5643 (eval $ac_try) 2>&5
5644 ac_status=$?
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); }; } &&
5647 { ac_try='test -s conftest.$ac_objext'
5648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5649 (eval $ac_try) 2>&5
5650 ac_status=$?
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); }; }; then
2985 # The compiler can only warn and ignore the option if not recognized 5653 # The compiler can only warn and ignore the option if not recognized
2986 # So say no if there are warnings 5654 # So say no if there are warnings
2987 if test -s conftest.err; then 5655 if test -s conftest.err; then
2988 compiler_o_lo=no 5656 compiler_o_lo=no
2989 else 5657 else
2990 compiler_o_lo=yes 5658 compiler_o_lo=yes
2991 fi 5659 fi
2992 5660
2993else 5661else
2994 echo "configure: failed program was:" >&5 5662 echo "$as_me: failed program was:" >&5
2995 cat conftest.$ac_ext >&5 5663sed 's/^/| /' conftest.$ac_ext >&5
5664
2996fi 5665fi
2997rm -f conftest* 5666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5667 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
2998 echo "$ac_t""$compiler_c_o" 1>&6 5668echo "${ECHO_T}$compiler_c_o" >&6
2999 CFLAGS="$save_CFLAGS" 5669 CFLAGS="$save_CFLAGS"
3000else 5670else
3001 compiler_o_lo=no 5671 compiler_o_lo=no
3002fi 5672fi
3003## 5673##
3007## 5677##
3008# Check to see if we can do hard links to lock some files if needed 5678# Check to see if we can do hard links to lock some files if needed
3009hard_links="nottested" 5679hard_links="nottested"
3010if test "$compiler_c_o" = no && test "$need_locks" != no; then 5680if test "$compiler_c_o" = no && test "$need_locks" != no; then
3011 # do not overwrite the value of need_locks provided by the user 5681 # do not overwrite the value of need_locks provided by the user
5682 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
3012 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6 5683echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
3013echo "configure:3014: checking if we can lock with hard links" >&5
3014 hard_links=yes 5684 hard_links=yes
3015 $rm conftest* 5685 $rm conftest*
3016 ln conftest.a conftest.b 2>/dev/null && hard_links=no 5686 ln conftest.a conftest.b 2>/dev/null && hard_links=no
3017 touch conftest.a 5687 touch conftest.a
3018 ln conftest.a conftest.b 2>&5 || hard_links=no 5688 ln conftest.a conftest.b 2>&5 || hard_links=no
3019 ln conftest.a conftest.b 2>/dev/null && hard_links=no 5689 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5690 echo "$as_me:$LINENO: result: $hard_links" >&5
3020 echo "$ac_t""$hard_links" 1>&6 5691echo "${ECHO_T}$hard_links" >&6
3021 if test "$hard_links" = no; then 5692 if test "$hard_links" = no; then
5693 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
3022 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2 5694echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
3023 need_locks=warn 5695 need_locks=warn
3024 fi 5696 fi
3025else 5697else
3026 need_locks=no 5698 need_locks=no
3027fi 5699fi
3030 5702
3031## FIXME: this should be a separate macro 5703## FIXME: this should be a separate macro
3032## 5704##
3033if test "$GCC" = yes; then 5705if test "$GCC" = yes; then
3034 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler 5706 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5707 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
3035 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6 5708echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
3036echo "configure:3037: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
3037 echo "int some_variable = 0;" > conftest.$ac_ext 5709 echo "int some_variable = 0;" > conftest.$ac_ext
3038 save_CFLAGS="$CFLAGS" 5710 save_CFLAGS="$CFLAGS"
3039 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" 5711 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
3040 compiler_rtti_exceptions=no 5712 compiler_rtti_exceptions=no
3041 cat > conftest.$ac_ext <<EOF 5713 cat >conftest.$ac_ext <<_ACEOF
3042#line 3043 "configure" 5714/* confdefs.h. */
3043#include "confdefs.h" 5715_ACEOF
5716cat confdefs.h >>conftest.$ac_ext
5717cat >>conftest.$ac_ext <<_ACEOF
5718/* end confdefs.h. */
3044 5719
3045int main() { 5720int
5721main ()
5722{
3046int some_variable = 0; 5723int some_variable = 0;
5724 ;
3047; return 0; } 5725 return 0;
3048EOF 5726}
3049if { (eval echo configure:3050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5727_ACEOF
5728rm -f conftest.$ac_objext
5729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5730 (eval $ac_compile) 2>conftest.er1
5731 ac_status=$?
5732 grep -v '^ *+' conftest.er1 >conftest.err
3050 rm -rf conftest* 5733 rm -f conftest.er1
5734 cat conftest.err >&5
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); } &&
5737 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5739 (eval $ac_try) 2>&5
5740 ac_status=$?
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); }; } &&
5743 { ac_try='test -s conftest.$ac_objext'
5744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5745 (eval $ac_try) 2>&5
5746 ac_status=$?
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); }; }; then
3051 # The compiler can only warn and ignore the option if not recognized 5749 # The compiler can only warn and ignore the option if not recognized
3052 # So say no if there are warnings 5750 # So say no if there are warnings
3053 if test -s conftest.err; then 5751 if test -s conftest.err; then
3054 compiler_rtti_exceptions=no 5752 compiler_rtti_exceptions=no
3055 else 5753 else
3056 compiler_rtti_exceptions=yes 5754 compiler_rtti_exceptions=yes
3057 fi 5755 fi
3058 5756
3059else 5757else
3060 echo "configure: failed program was:" >&5 5758 echo "$as_me: failed program was:" >&5
3061 cat conftest.$ac_ext >&5 5759sed 's/^/| /' conftest.$ac_ext >&5
5760
3062fi 5761fi
3063rm -f conftest* 5762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3064 CFLAGS="$save_CFLAGS" 5763 CFLAGS="$save_CFLAGS"
5764 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
3065 echo "$ac_t""$compiler_rtti_exceptions" 1>&6 5765echo "${ECHO_T}$compiler_rtti_exceptions" >&6
3066 5766
3067 if test "$compiler_rtti_exceptions" = "yes"; then 5767 if test "$compiler_rtti_exceptions" = "yes"; then
3068 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions' 5768 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
3069 else 5769 else
3070 no_builtin_flag=' -fno-builtin' 5770 no_builtin_flag=' -fno-builtin'
3074## END FIXME 5774## END FIXME
3075 5775
3076## FIXME: this should be a separate macro 5776## FIXME: this should be a separate macro
3077## 5777##
3078# See if the linker supports building shared libraries. 5778# See if the linker supports building shared libraries.
5779echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
3079echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6 5780echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
3080echo "configure:3081: checking whether the linker ($LD) supports shared libraries" >&5
3081 5781
3082allow_undefined_flag= 5782allow_undefined_flag=
3083no_undefined_flag= 5783no_undefined_flag=
3084need_lib_prefix=unknown 5784need_lib_prefix=unknown
3085need_version=unknown 5785need_version=unknown
3632 *) 6332 *)
3633 ld_shlibs=no 6333 ld_shlibs=no
3634 ;; 6334 ;;
3635 esac 6335 esac
3636fi 6336fi
6337echo "$as_me:$LINENO: result: $ld_shlibs" >&5
3637echo "$ac_t""$ld_shlibs" 1>&6 6338echo "${ECHO_T}$ld_shlibs" >&6
3638test "$ld_shlibs" = no && can_build_shared=no 6339test "$ld_shlibs" = no && can_build_shared=no
3639## 6340##
3640## END FIXME 6341## END FIXME
3641 6342
3642## FIXME: this should be a separate macro 6343## FIXME: this should be a separate macro
3643## 6344##
3644# Check hardcoding attributes. 6345# Check hardcoding attributes.
6346echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
3645echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6 6347echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
3646echo "configure:3647: checking how to hardcode library paths into programs" >&5
3647hardcode_action= 6348hardcode_action=
3648if test -n "$hardcode_libdir_flag_spec" || \ 6349if test -n "$hardcode_libdir_flag_spec" || \
3649 test -n "$runpath_var"; then 6350 test -n "$runpath_var"; then
3650 6351
3651 # We can hardcode non-existant directories. 6352 # We can hardcode non-existant directories.
3664else 6365else
3665 # We cannot hardcode anything, or else we can only hardcode existing 6366 # We cannot hardcode anything, or else we can only hardcode existing
3666 # directories. 6367 # directories.
3667 hardcode_action=unsupported 6368 hardcode_action=unsupported
3668fi 6369fi
6370echo "$as_me:$LINENO: result: $hardcode_action" >&5
3669echo "$ac_t""$hardcode_action" 1>&6 6371echo "${ECHO_T}$hardcode_action" >&6
3670## 6372##
3671## END FIXME 6373## END FIXME
3672 6374
3673## FIXME: this should be a separate macro 6375## FIXME: this should be a separate macro
3674## 6376##
3675striplib= 6377striplib=
3676old_striplib= 6378old_striplib=
6379echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
3677echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6 6380echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
3678echo "configure:3679: checking whether stripping libraries is possible" >&5
3679if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 6381if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
3680 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 6382 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
3681 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 6383 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
3682 echo "$ac_t""yes" 1>&6 6384 echo "$as_me:$LINENO: result: yes" >&5
6385echo "${ECHO_T}yes" >&6
3683else 6386else
3684 echo "$ac_t""no" 1>&6 6387 echo "$as_me:$LINENO: result: no" >&5
6388echo "${ECHO_T}no" >&6
3685fi 6389fi
3686## 6390##
3687## END FIXME 6391## END FIXME
3688 6392
3689reload_cmds='$LD$reload_flag -o $output$reload_objs' 6393reload_cmds='$LD$reload_flag -o $output$reload_objs'
3690test -z "$deplibs_check_method" && deplibs_check_method=unknown 6394test -z "$deplibs_check_method" && deplibs_check_method=unknown
3691 6395
3692## FIXME: this should be a separate macro 6396## FIXME: this should be a separate macro
3693## 6397##
3694# PORTME Fill in your ld.so characteristics 6398# PORTME Fill in your ld.so characteristics
6399echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
3695echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6 6400echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
3696echo "configure:3697: checking dynamic linker characteristics" >&5
3697library_names_spec= 6401library_names_spec=
3698libname_spec='lib$name' 6402libname_spec='lib$name'
3699soname_spec= 6403soname_spec=
3700postinstall_cmds= 6404postinstall_cmds=
3701postuninstall_cmds= 6405postuninstall_cmds=
4017 6721
4018*) 6722*)
4019 dynamic_linker=no 6723 dynamic_linker=no
4020 ;; 6724 ;;
4021esac 6725esac
6726echo "$as_me:$LINENO: result: $dynamic_linker" >&5
4022echo "$ac_t""$dynamic_linker" 1>&6 6727echo "${ECHO_T}$dynamic_linker" >&6
4023test "$dynamic_linker" = no && can_build_shared=no 6728test "$dynamic_linker" = no && can_build_shared=no
4024## 6729##
4025## END FIXME 6730## END FIXME
4026 6731
4027## FIXME: this should be a separate macro 6732## FIXME: this should be a separate macro
4028## 6733##
4029# Report the final consequences. 6734# Report the final consequences.
6735echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
4030echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6 6736echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
4031echo "configure:4032: checking if libtool supports shared libraries" >&5 6737echo "$as_me:$LINENO: result: $can_build_shared" >&5
4032echo "$ac_t""$can_build_shared" 1>&6 6738echo "${ECHO_T}$can_build_shared" >&6
4033## 6739##
4034## END FIXME 6740## END FIXME
4035 6741
4036if test "$hardcode_action" = relink; then 6742if test "$hardcode_action" = relink; then
4037 # Fast installation is not supported 6743 # Fast installation is not supported
4066 lt_cv_dlopen="LoadLibrary" 6772 lt_cv_dlopen="LoadLibrary"
4067 lt_cv_dlopen_libs= 6773 lt_cv_dlopen_libs=
4068 ;; 6774 ;;
4069 6775
4070 *) 6776 *)
6777 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
4071 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 6778echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
4072echo "configure:4073: checking for dlopen in -ldl" >&5 6779if test "${ac_cv_lib_dl_dlopen+set}" = set; then
4073ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4074if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4075 echo $ac_n "(cached) $ac_c" 1>&6 6780 echo $ECHO_N "(cached) $ECHO_C" >&6
4076else 6781else
4077 ac_save_LIBS="$LIBS" 6782 ac_check_lib_save_LIBS=$LIBS
4078LIBS="-ldl $LIBS" 6783LIBS="-ldl $LIBS"
4079cat > conftest.$ac_ext <<EOF 6784cat >conftest.$ac_ext <<_ACEOF
4080#line 4081 "configure" 6785/* confdefs.h. */
4081#include "confdefs.h" 6786_ACEOF
6787cat confdefs.h >>conftest.$ac_ext
6788cat >>conftest.$ac_ext <<_ACEOF
6789/* end confdefs.h. */
6790
4082/* Override any gcc2 internal prototype to avoid an error. */ 6791/* Override any gcc2 internal prototype to avoid an error. */
6792#ifdef __cplusplus
6793extern "C"
6794#endif
4083/* We use char because int might match the return type of a gcc2 6795/* We use char because int might match the return type of a gcc2
4084 builtin and then its argument prototype would still apply. */ 6796 builtin and then its argument prototype would still apply. */
4085char dlopen(); 6797char dlopen ();
4086 6798int
4087int main() { 6799main ()
6800{
4088dlopen() 6801dlopen ();
6802 ;
4089; return 0; } 6803 return 0;
4090EOF 6804}
4091if { (eval echo configure:4092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6805_ACEOF
6806rm -f conftest.$ac_objext conftest$ac_exeext
6807if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6808 (eval $ac_link) 2>conftest.er1
6809 ac_status=$?
6810 grep -v '^ *+' conftest.er1 >conftest.err
4092 rm -rf conftest* 6811 rm -f conftest.er1
4093 eval "ac_cv_lib_$ac_lib_var=yes" 6812 cat conftest.err >&5
6813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); } &&
6815 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6817 (eval $ac_try) 2>&5
6818 ac_status=$?
6819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820 (exit $ac_status); }; } &&
6821 { ac_try='test -s conftest$ac_exeext'
6822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6823 (eval $ac_try) 2>&5
6824 ac_status=$?
6825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 (exit $ac_status); }; }; then
6827 ac_cv_lib_dl_dlopen=yes
4094else 6828else
4095 echo "configure: failed program was:" >&5 6829 echo "$as_me: failed program was:" >&5
4096 cat conftest.$ac_ext >&5 6830sed 's/^/| /' conftest.$ac_ext >&5
4097 rm -rf conftest* 6831
4098 eval "ac_cv_lib_$ac_lib_var=no" 6832ac_cv_lib_dl_dlopen=no
4099fi 6833fi
4100rm -f conftest* 6834rm -f conftest.err conftest.$ac_objext \
6835 conftest$ac_exeext conftest.$ac_ext
4101LIBS="$ac_save_LIBS" 6836LIBS=$ac_check_lib_save_LIBS
4102
4103fi 6837fi
4104if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 6838echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
4105 echo "$ac_t""yes" 1>&6 6839echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6840if test $ac_cv_lib_dl_dlopen = yes; then
4106 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 6841 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
4107else 6842else
4108 echo "$ac_t""no" 1>&6 6843 echo "$as_me:$LINENO: checking for dlopen" >&5
4109echo $ac_n "checking for dlopen""... $ac_c" 1>&6 6844echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
4110echo "configure:4111: checking for dlopen" >&5
4111if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then 6845if test "${ac_cv_func_dlopen+set}" = set; then
4112 echo $ac_n "(cached) $ac_c" 1>&6 6846 echo $ECHO_N "(cached) $ECHO_C" >&6
4113else 6847else
4114 cat > conftest.$ac_ext <<EOF 6848 cat >conftest.$ac_ext <<_ACEOF
4115#line 4116 "configure" 6849/* confdefs.h. */
4116#include "confdefs.h" 6850_ACEOF
6851cat confdefs.h >>conftest.$ac_ext
6852cat >>conftest.$ac_ext <<_ACEOF
6853/* end confdefs.h. */
6854/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
6855 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6856#define dlopen innocuous_dlopen
6857
4117/* System header to define __stub macros and hopefully few prototypes, 6858/* System header to define __stub macros and hopefully few prototypes,
4118 which can conflict with char dlopen(); below. */ 6859 which can conflict with char dlopen (); below.
6860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6861 <limits.h> exists even on freestanding compilers. */
6862
6863#ifdef __STDC__
6864# include <limits.h>
6865#else
4119#include <assert.h> 6866# include <assert.h>
6867#endif
6868
6869#undef dlopen
6870
4120/* Override any gcc2 internal prototype to avoid an error. */ 6871/* Override any gcc2 internal prototype to avoid an error. */
6872#ifdef __cplusplus
6873extern "C"
6874{
6875#endif
4121/* We use char because int might match the return type of a gcc2 6876/* We use char because int might match the return type of a gcc2
4122 builtin and then its argument prototype would still apply. */ 6877 builtin and then its argument prototype would still apply. */
4123char dlopen(); 6878char dlopen ();
4124
4125int main() {
4126
4127/* The GNU C library defines this for functions which it implements 6879/* The GNU C library defines this for functions which it implements
4128 to always fail with ENOSYS. Some functions are actually named 6880 to always fail with ENOSYS. Some functions are actually named
4129 something starting with __ and the normal name is an alias. */ 6881 something starting with __ and the normal name is an alias. */
4130#if defined (__stub_dlopen) || defined (__stub___dlopen) 6882#if defined (__stub_dlopen) || defined (__stub___dlopen)
4131choke me 6883choke me
4132#else 6884#else
4133dlopen(); 6885char (*f) () = dlopen;
4134#endif 6886#endif
6887#ifdef __cplusplus
6888}
6889#endif
4135 6890
6891int
6892main ()
6893{
6894return f != dlopen;
6895 ;
4136; return 0; } 6896 return 0;
4137EOF 6897}
4138if { (eval echo configure:4139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6898_ACEOF
6899rm -f conftest.$ac_objext conftest$ac_exeext
6900if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6901 (eval $ac_link) 2>conftest.er1
6902 ac_status=$?
6903 grep -v '^ *+' conftest.er1 >conftest.err
4139 rm -rf conftest* 6904 rm -f conftest.er1
6905 cat conftest.err >&5
6906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907 (exit $ac_status); } &&
6908 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6910 (eval $ac_try) 2>&5
6911 ac_status=$?
6912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913 (exit $ac_status); }; } &&
6914 { ac_try='test -s conftest$ac_exeext'
6915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6916 (eval $ac_try) 2>&5
6917 ac_status=$?
6918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 (exit $ac_status); }; }; then
4140 eval "ac_cv_func_dlopen=yes" 6920 ac_cv_func_dlopen=yes
4141else 6921else
4142 echo "configure: failed program was:" >&5 6922 echo "$as_me: failed program was:" >&5
4143 cat conftest.$ac_ext >&5 6923sed 's/^/| /' conftest.$ac_ext >&5
4144 rm -rf conftest* 6924
4145 eval "ac_cv_func_dlopen=no" 6925ac_cv_func_dlopen=no
4146fi 6926fi
4147rm -f conftest* 6927rm -f conftest.err conftest.$ac_objext \
6928 conftest$ac_exeext conftest.$ac_ext
4148fi 6929fi
4149 6930echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6931echo "${ECHO_T}$ac_cv_func_dlopen" >&6
4150if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then 6932if test $ac_cv_func_dlopen = yes; then
4151 echo "$ac_t""yes" 1>&6
4152 lt_cv_dlopen="dlopen" 6933 lt_cv_dlopen="dlopen"
4153else 6934else
4154 echo "$ac_t""no" 1>&6 6935 echo "$as_me:$LINENO: checking for shl_load" >&5
4155echo $ac_n "checking for shl_load""... $ac_c" 1>&6 6936echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
4156echo "configure:4157: checking for shl_load" >&5
4157if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then 6937if test "${ac_cv_func_shl_load+set}" = set; then
4158 echo $ac_n "(cached) $ac_c" 1>&6 6938 echo $ECHO_N "(cached) $ECHO_C" >&6
4159else 6939else
4160 cat > conftest.$ac_ext <<EOF 6940 cat >conftest.$ac_ext <<_ACEOF
4161#line 4162 "configure" 6941/* confdefs.h. */
4162#include "confdefs.h" 6942_ACEOF
6943cat confdefs.h >>conftest.$ac_ext
6944cat >>conftest.$ac_ext <<_ACEOF
6945/* end confdefs.h. */
6946/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
6947 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6948#define shl_load innocuous_shl_load
6949
4163/* System header to define __stub macros and hopefully few prototypes, 6950/* System header to define __stub macros and hopefully few prototypes,
4164 which can conflict with char shl_load(); below. */ 6951 which can conflict with char shl_load (); below.
6952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6953 <limits.h> exists even on freestanding compilers. */
6954
6955#ifdef __STDC__
6956# include <limits.h>
6957#else
4165#include <assert.h> 6958# include <assert.h>
6959#endif
6960
6961#undef shl_load
6962
4166/* Override any gcc2 internal prototype to avoid an error. */ 6963/* Override any gcc2 internal prototype to avoid an error. */
6964#ifdef __cplusplus
6965extern "C"
6966{
6967#endif
4167/* We use char because int might match the return type of a gcc2 6968/* We use char because int might match the return type of a gcc2
4168 builtin and then its argument prototype would still apply. */ 6969 builtin and then its argument prototype would still apply. */
4169char shl_load(); 6970char shl_load ();
4170
4171int main() {
4172
4173/* The GNU C library defines this for functions which it implements 6971/* The GNU C library defines this for functions which it implements
4174 to always fail with ENOSYS. Some functions are actually named 6972 to always fail with ENOSYS. Some functions are actually named
4175 something starting with __ and the normal name is an alias. */ 6973 something starting with __ and the normal name is an alias. */
4176#if defined (__stub_shl_load) || defined (__stub___shl_load) 6974#if defined (__stub_shl_load) || defined (__stub___shl_load)
4177choke me 6975choke me
4178#else 6976#else
4179shl_load(); 6977char (*f) () = shl_load;
4180#endif 6978#endif
6979#ifdef __cplusplus
6980}
6981#endif
4181 6982
6983int
6984main ()
6985{
6986return f != shl_load;
6987 ;
4182; return 0; } 6988 return 0;
4183EOF 6989}
4184if { (eval echo configure:4185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6990_ACEOF
6991rm -f conftest.$ac_objext conftest$ac_exeext
6992if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6993 (eval $ac_link) 2>conftest.er1
6994 ac_status=$?
6995 grep -v '^ *+' conftest.er1 >conftest.err
4185 rm -rf conftest* 6996 rm -f conftest.er1
6997 cat conftest.err >&5
6998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999 (exit $ac_status); } &&
7000 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7002 (eval $ac_try) 2>&5
7003 ac_status=$?
7004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005 (exit $ac_status); }; } &&
7006 { ac_try='test -s conftest$ac_exeext'
7007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7008 (eval $ac_try) 2>&5
7009 ac_status=$?
7010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011 (exit $ac_status); }; }; then
4186 eval "ac_cv_func_shl_load=yes" 7012 ac_cv_func_shl_load=yes
4187else 7013else
4188 echo "configure: failed program was:" >&5 7014 echo "$as_me: failed program was:" >&5
4189 cat conftest.$ac_ext >&5 7015sed 's/^/| /' conftest.$ac_ext >&5
4190 rm -rf conftest* 7016
4191 eval "ac_cv_func_shl_load=no" 7017ac_cv_func_shl_load=no
4192fi 7018fi
4193rm -f conftest* 7019rm -f conftest.err conftest.$ac_objext \
7020 conftest$ac_exeext conftest.$ac_ext
4194fi 7021fi
4195 7022echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7023echo "${ECHO_T}$ac_cv_func_shl_load" >&6
4196if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then 7024if test $ac_cv_func_shl_load = yes; then
4197 echo "$ac_t""yes" 1>&6
4198 lt_cv_dlopen="shl_load" 7025 lt_cv_dlopen="shl_load"
4199else 7026else
4200 echo "$ac_t""no" 1>&6 7027 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
4201echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6 7028echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
4202echo "configure:4203: checking for dlopen in -lsvld" >&5 7029if test "${ac_cv_lib_svld_dlopen+set}" = set; then
4203ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-%__p_%'`
4204if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4205 echo $ac_n "(cached) $ac_c" 1>&6 7030 echo $ECHO_N "(cached) $ECHO_C" >&6
4206else 7031else
4207 ac_save_LIBS="$LIBS" 7032 ac_check_lib_save_LIBS=$LIBS
4208LIBS="-lsvld $LIBS" 7033LIBS="-lsvld $LIBS"
4209cat > conftest.$ac_ext <<EOF 7034cat >conftest.$ac_ext <<_ACEOF
4210#line 4211 "configure" 7035/* confdefs.h. */
4211#include "confdefs.h" 7036_ACEOF
7037cat confdefs.h >>conftest.$ac_ext
7038cat >>conftest.$ac_ext <<_ACEOF
7039/* end confdefs.h. */
7040
4212/* Override any gcc2 internal prototype to avoid an error. */ 7041/* Override any gcc2 internal prototype to avoid an error. */
7042#ifdef __cplusplus
7043extern "C"
7044#endif
4213/* We use char because int might match the return type of a gcc2 7045/* We use char because int might match the return type of a gcc2
4214 builtin and then its argument prototype would still apply. */ 7046 builtin and then its argument prototype would still apply. */
4215char dlopen(); 7047char dlopen ();
4216 7048int
4217int main() { 7049main ()
7050{
4218dlopen() 7051dlopen ();
7052 ;
4219; return 0; } 7053 return 0;
4220EOF 7054}
4221if { (eval echo configure:4222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7055_ACEOF
7056rm -f conftest.$ac_objext conftest$ac_exeext
7057if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7058 (eval $ac_link) 2>conftest.er1
7059 ac_status=$?
7060 grep -v '^ *+' conftest.er1 >conftest.err
4222 rm -rf conftest* 7061 rm -f conftest.er1
4223 eval "ac_cv_lib_$ac_lib_var=yes" 7062 cat conftest.err >&5
7063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064 (exit $ac_status); } &&
7065 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7067 (eval $ac_try) 2>&5
7068 ac_status=$?
7069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070 (exit $ac_status); }; } &&
7071 { ac_try='test -s conftest$ac_exeext'
7072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7073 (eval $ac_try) 2>&5
7074 ac_status=$?
7075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076 (exit $ac_status); }; }; then
7077 ac_cv_lib_svld_dlopen=yes
4224else 7078else
4225 echo "configure: failed program was:" >&5 7079 echo "$as_me: failed program was:" >&5
4226 cat conftest.$ac_ext >&5 7080sed 's/^/| /' conftest.$ac_ext >&5
4227 rm -rf conftest* 7081
4228 eval "ac_cv_lib_$ac_lib_var=no" 7082ac_cv_lib_svld_dlopen=no
4229fi 7083fi
4230rm -f conftest* 7084rm -f conftest.err conftest.$ac_objext \
7085 conftest$ac_exeext conftest.$ac_ext
4231LIBS="$ac_save_LIBS" 7086LIBS=$ac_check_lib_save_LIBS
4232
4233fi 7087fi
4234if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 7088echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
4235 echo "$ac_t""yes" 1>&6 7089echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7090if test $ac_cv_lib_svld_dlopen = yes; then
4236 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 7091 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
4237else 7092else
4238 echo "$ac_t""no" 1>&6 7093 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
4239echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 7094echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
4240echo "configure:4241: checking for shl_load in -ldld" >&5 7095if test "${ac_cv_lib_dld_shl_load+set}" = set; then
4241ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
4242if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4243 echo $ac_n "(cached) $ac_c" 1>&6 7096 echo $ECHO_N "(cached) $ECHO_C" >&6
4244else 7097else
4245 ac_save_LIBS="$LIBS" 7098 ac_check_lib_save_LIBS=$LIBS
4246LIBS="-ldld $LIBS" 7099LIBS="-ldld $LIBS"
4247cat > conftest.$ac_ext <<EOF 7100cat >conftest.$ac_ext <<_ACEOF
4248#line 4249 "configure" 7101/* confdefs.h. */
4249#include "confdefs.h" 7102_ACEOF
7103cat confdefs.h >>conftest.$ac_ext
7104cat >>conftest.$ac_ext <<_ACEOF
7105/* end confdefs.h. */
7106
4250/* Override any gcc2 internal prototype to avoid an error. */ 7107/* Override any gcc2 internal prototype to avoid an error. */
7108#ifdef __cplusplus
7109extern "C"
7110#endif
4251/* We use char because int might match the return type of a gcc2 7111/* We use char because int might match the return type of a gcc2
4252 builtin and then its argument prototype would still apply. */ 7112 builtin and then its argument prototype would still apply. */
4253char shl_load(); 7113char shl_load ();
4254 7114int
4255int main() { 7115main ()
7116{
4256shl_load() 7117shl_load ();
7118 ;
4257; return 0; } 7119 return 0;
4258EOF 7120}
4259if { (eval echo configure:4260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7121_ACEOF
7122rm -f conftest.$ac_objext conftest$ac_exeext
7123if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7124 (eval $ac_link) 2>conftest.er1
7125 ac_status=$?
7126 grep -v '^ *+' conftest.er1 >conftest.err
4260 rm -rf conftest* 7127 rm -f conftest.er1
4261 eval "ac_cv_lib_$ac_lib_var=yes" 7128 cat conftest.err >&5
7129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130 (exit $ac_status); } &&
7131 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7133 (eval $ac_try) 2>&5
7134 ac_status=$?
7135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136 (exit $ac_status); }; } &&
7137 { ac_try='test -s conftest$ac_exeext'
7138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7139 (eval $ac_try) 2>&5
7140 ac_status=$?
7141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142 (exit $ac_status); }; }; then
7143 ac_cv_lib_dld_shl_load=yes
4262else 7144else
4263 echo "configure: failed program was:" >&5 7145 echo "$as_me: failed program was:" >&5
4264 cat conftest.$ac_ext >&5 7146sed 's/^/| /' conftest.$ac_ext >&5
4265 rm -rf conftest* 7147
4266 eval "ac_cv_lib_$ac_lib_var=no" 7148ac_cv_lib_dld_shl_load=no
4267fi 7149fi
4268rm -f conftest* 7150rm -f conftest.err conftest.$ac_objext \
7151 conftest$ac_exeext conftest.$ac_ext
4269LIBS="$ac_save_LIBS" 7152LIBS=$ac_check_lib_save_LIBS
4270
4271fi 7153fi
4272if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 7154echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
4273 echo "$ac_t""yes" 1>&6 7155echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7156if test $ac_cv_lib_dld_shl_load = yes; then
4274 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 7157 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
4275else
4276 echo "$ac_t""no" 1>&6
4277fi 7158fi
4278 7159
4279
4280fi
4281 7160
4282
4283fi 7161fi
4284 7162
4285
4286fi
4287 7163
4288 7164fi
7165
7166
7167fi
7168
7169
4289fi 7170fi
4290 7171
4291 ;; 7172 ;;
4292 esac 7173 esac
4293 7174
4306 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 7187 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
4307 7188
4308 save_LIBS="$LIBS" 7189 save_LIBS="$LIBS"
4309 LIBS="$lt_cv_dlopen_libs $LIBS" 7190 LIBS="$lt_cv_dlopen_libs $LIBS"
4310 7191
7192 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
4311 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6 7193echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
4312echo "configure:4313: checking whether a program can dlopen itself" >&5
4313if eval "test \"`echo '$''{'lt_cv_dlopen_self'+set}'`\" = set"; then 7194if test "${lt_cv_dlopen_self+set}" = set; then
4314 echo $ac_n "(cached) $ac_c" 1>&6 7195 echo $ECHO_N "(cached) $ECHO_C" >&6
4315else 7196else
4316 if test "$cross_compiling" = yes; then : 7197 if test "$cross_compiling" = yes; then :
4317 lt_cv_dlopen_self=cross 7198 lt_cv_dlopen_self=cross
4318else 7199else
4319 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 7200 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4320 lt_status=$lt_dlunknown 7201 lt_status=$lt_dlunknown
4321 cat > conftest.$ac_ext <<EOF 7202 cat > conftest.$ac_ext <<EOF
4322#line 4323 "configure" 7203#line 7203 "configure"
4323#include "confdefs.h" 7204#include "confdefs.h"
4324 7205
4325#if HAVE_DLFCN_H 7206#if HAVE_DLFCN_H
4326#include <dlfcn.h> 7207#include <dlfcn.h>
4327#endif 7208#endif
4378 } 7259 }
4379 7260
4380 exit (status); 7261 exit (status);
4381} 7262}
4382EOF 7263EOF
4383 if { (eval echo configure:4384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then 7264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7265 (eval $ac_link) 2>&5
7266 ac_status=$?
7267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
4384 (./conftest; exit; ) 2>/dev/null 7269 (./conftest; exit; ) 2>/dev/null
4385 lt_status=$? 7270 lt_status=$?
4386 case x$lt_status in 7271 case x$lt_status in
4387 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 7272 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
4388 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 7273 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
4393 lt_cv_dlopen_self=no 7278 lt_cv_dlopen_self=no
4394 fi 7279 fi
4395fi 7280fi
4396rm -fr conftest* 7281rm -fr conftest*
4397 7282
4398
4399fi
4400 7283
7284fi
7285echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
4401echo "$ac_t""$lt_cv_dlopen_self" 1>&6 7286echo "${ECHO_T}$lt_cv_dlopen_self" >&6
4402 7287
4403 if test "x$lt_cv_dlopen_self" = xyes; then 7288 if test "x$lt_cv_dlopen_self" = xyes; then
4404 LDFLAGS="$LDFLAGS $link_static_flag" 7289 LDFLAGS="$LDFLAGS $link_static_flag"
7290 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
4405 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6 7291echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
4406echo "configure:4407: checking whether a statically linked program can dlopen itself" >&5
4407if eval "test \"`echo '$''{'lt_cv_dlopen_self_static'+set}'`\" = set"; then 7292if test "${lt_cv_dlopen_self_static+set}" = set; then
4408 echo $ac_n "(cached) $ac_c" 1>&6 7293 echo $ECHO_N "(cached) $ECHO_C" >&6
4409else 7294else
4410 if test "$cross_compiling" = yes; then : 7295 if test "$cross_compiling" = yes; then :
4411 lt_cv_dlopen_self_static=cross 7296 lt_cv_dlopen_self_static=cross
4412else 7297else
4413 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 7298 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4414 lt_status=$lt_dlunknown 7299 lt_status=$lt_dlunknown
4415 cat > conftest.$ac_ext <<EOF 7300 cat > conftest.$ac_ext <<EOF
4416#line 4417 "configure" 7301#line 7301 "configure"
4417#include "confdefs.h" 7302#include "confdefs.h"
4418 7303
4419#if HAVE_DLFCN_H 7304#if HAVE_DLFCN_H
4420#include <dlfcn.h> 7305#include <dlfcn.h>
4421#endif 7306#endif
4472 } 7357 }
4473 7358
4474 exit (status); 7359 exit (status);
4475} 7360}
4476EOF 7361EOF
4477 if { (eval echo configure:4478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then 7362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7363 (eval $ac_link) 2>&5
7364 ac_status=$?
7365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
4478 (./conftest; exit; ) 2>/dev/null 7367 (./conftest; exit; ) 2>/dev/null
4479 lt_status=$? 7368 lt_status=$?
4480 case x$lt_status in 7369 case x$lt_status in
4481 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 7370 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
4482 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 7371 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
4487 lt_cv_dlopen_self_static=no 7376 lt_cv_dlopen_self_static=no
4488 fi 7377 fi
4489fi 7378fi
4490rm -fr conftest* 7379rm -fr conftest*
4491 7380
4492
4493fi
4494 7381
7382fi
7383echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
4495echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6 7384echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
4496 fi 7385 fi
4497 7386
4498 CPPFLAGS="$save_CPPFLAGS" 7387 CPPFLAGS="$save_CPPFLAGS"
4499 LDFLAGS="$save_LDFLAGS" 7388 LDFLAGS="$save_LDFLAGS"
4500 LIBS="$save_LIBS" 7389 LIBS="$save_LIBS"
4522 ;; 7411 ;;
4523 '$CC '*) 7412 '$CC '*)
4524 # Test whether the compiler implicitly links with -lc since on some 7413 # Test whether the compiler implicitly links with -lc since on some
4525 # systems, -lgcc has to come before -lc. If gcc already passes -lc 7414 # systems, -lgcc has to come before -lc. If gcc already passes -lc
4526 # to ld, don't add -lc before -lgcc. 7415 # to ld, don't add -lc before -lgcc.
7416 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
4527 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6 7417echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
4528echo "configure:4529: checking whether -lc should be explicitly linked in" >&5
4529 if eval "test \"`echo '$''{'lt_cv_archive_cmds_need_lc'+set}'`\" = set"; then 7418 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
4530 echo $ac_n "(cached) $ac_c" 1>&6 7419 echo $ECHO_N "(cached) $ECHO_C" >&6
4531else 7420else
4532 $rm conftest* 7421 $rm conftest*
4533 echo 'static int dummy;' > conftest.$ac_ext 7422 echo 'static int dummy;' > conftest.$ac_ext
4534 7423
4535 if { (eval echo configure:4536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7425 (eval $ac_compile) 2>&5
7426 ac_status=$?
7427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428 (exit $ac_status); }; then
4536 soname=conftest 7429 soname=conftest
4537 lib=conftest 7430 lib=conftest
4538 libobjs=conftest.$ac_objext 7431 libobjs=conftest.$ac_objext
4539 deplibs= 7432 deplibs=
4540 wl=$lt_cv_prog_cc_wl 7433 wl=$lt_cv_prog_cc_wl
4543 verstring= 7436 verstring=
4544 output_objdir=. 7437 output_objdir=.
4545 libname=conftest 7438 libname=conftest
4546 save_allow_undefined_flag=$allow_undefined_flag 7439 save_allow_undefined_flag=$allow_undefined_flag
4547 allow_undefined_flag= 7440 allow_undefined_flag=
4548 if { (eval echo configure:4549: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\") 1>&5; (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5; } 7441 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7442 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7443 ac_status=$?
7444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445 (exit $ac_status); }
4549 then 7446 then
4550 lt_cv_archive_cmds_need_lc=no 7447 lt_cv_archive_cmds_need_lc=no
4551 else 7448 else
4552 lt_cv_archive_cmds_need_lc=yes 7449 lt_cv_archive_cmds_need_lc=yes
4553 fi 7450 fi
4555 else 7452 else
4556 cat conftest.err 1>&5 7453 cat conftest.err 1>&5
4557 fi 7454 fi
4558fi 7455fi
4559 7456
7457 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
4560 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6 7458echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
4561 ;; 7459 ;;
4562 esac 7460 esac
4563fi 7461fi
4564need_lc=${lt_cv_archive_cmds_need_lc-yes} 7462need_lc=${lt_cv_archive_cmds_need_lc-yes}
4565## 7463##
5130 8028
5131MALLOC_TYPE=S 8029MALLOC_TYPE=S
5132support_addstrings=no 8030support_addstrings=no
5133support_frills=no 8031support_frills=no
5134support_linespace=no 8032support_linespace=no
5135support_graphics=no
5136support_inheritpixmap=no 8033support_inheritpixmap=no
8034support_tinting=no
5137support_keepscrolling=no 8035support_keepscrolling=no
5138support_selectionscrolling=no 8036support_selectionscrolling=no
5139support_menubar=no 8037support_menubar=no
5140support_mousewheel=no 8038support_mousewheel=no
5141support_mouseslipwheel=no 8039support_mouseslipwheel=no
5142support_oldselection=no
5143support_utmp=no 8040support_utmp=no
5144support_wtmp=no 8041support_wtmp=no
5145support_lastlog=no 8042support_lastlog=no
5146support_cursor_blink=no 8043support_cursor_blink=no
8044support_text_blink=no
5147support_pointer_blank=no 8045support_pointer_blank=no
5148support_scroll_rxvt=no 8046support_scroll_rxvt=no
5149support_scroll_next=no 8047support_scroll_next=no
5150support_scroll_xterm=no 8048support_scroll_xterm=no
8049support_scroll_plain=no
5151support_xim=no 8050support_xim=no
5152support_xpm=no 8051support_xpm=no
5153support_xft=no 8052support_xft=no
5154support_unicode3=no 8053support_unicode3=no
8054support_combining=no
5155codesets= 8055codesets=
5156 8056
5157 8057
5158if test "x$enable_shared" = xyes; then 8058if test "x$enable_shared" = xyes; then
8059
5159 cat >> confdefs.h <<\EOF 8060cat >>confdefs.h <<\_ACEOF
5160#define LIBRXVT 1 8061#define LIBRXVT 1
5161EOF 8062_ACEOF
5162 8063
5163 INSTALL_LIBRXVT=yes 8064 INSTALL_LIBRXVT=yes
5164fi 8065fi
5165 8066
5166 8067
5169 enableval="$enable_everything" 8070 enableval="$enable_everything"
5170 if test x$enableval = xyes; then 8071 if test x$enableval = xyes; then
5171 support_24bit=yes 8072 support_24bit=yes
5172 support_frills=yes 8073 support_frills=yes
5173 support_linespace=yes 8074 support_linespace=yes
5174 support_graphics=yes
5175 support_inheritpixmap=yes 8075 support_inheritpixmap=yes
8076 support_tinting=yes
5176 support_keepscrolling=yes 8077 support_keepscrolling=yes
5177 support_selectionscrolling=yes 8078 support_selectionscrolling=yes
5178 support_lastlog=yes 8079 support_lastlog=yes
5179 support_menubar=yes 8080 support_menubar=yes
5180 support_mousewheel=yes 8081 support_mousewheel=yes
5181 support_mouseslipwheel=yes 8082 support_mouseslipwheel=yes
5182 support_oldselection=yes
5183 support_cursor_blink=yes 8083 support_cursor_blink=yes
8084 support_text_blink=yes
5184 support_pointer_blank=yes 8085 support_pointer_blank=yes
5185 support_scroll_rxvt=yes 8086 support_scroll_rxvt=yes
5186 support_scroll_next=yes 8087 support_scroll_next=yes
5187 support_scroll_xterm=yes 8088 support_scroll_xterm=yes
8089 support_scroll_plain=yes
5188 support_utmp=yes 8090 support_utmp=yes
5189 support_wtmp=yes 8091 support_wtmp=yes
5190 support_xim=yes 8092 support_xim=yes
5191 support_xpm=yes 8093 support_xpm=yes
5192 support_xft=yes 8094 support_xft=yes
5193 support_unicode3=yes 8095 support_unicode3=yes
8096 support_combining=yes
5194 codesets=all 8097 codesets=all
5195 fi 8098 fi
5196fi 8099fi;
5197
5198 8100
5199# Check whether --enable-unicode3 or --disable-unicode3 was given. 8101# Check whether --enable-unicode3 or --disable-unicode3 was given.
5200if test "${enable_unicode3+set}" = set; then 8102if test "${enable_unicode3+set}" = set; then
5201 enableval="$enable_unicode3" 8103 enableval="$enable_unicode3"
5202 if test x$enableval = xyes; then 8104 if test x$enableval = xyes -o x$enableval = xno; then
5203 support_unicode3=yes 8105 support_unicode3=yes
5204 fi 8106 fi
5205fi 8107fi;
5206 8108
8109# Check whether --enable-combining or --disable-combining was given.
8110if test "${enable_combining+set}" = set; then
8111 enableval="$enable_combining"
8112 if test x$enableval = xyes -o x$enableval = xno; then
8113 support_combining=yes
8114 fi
8115fi;
5207 8116
5208# Check whether --enable-xft or --disable-xft was given. 8117# Check whether --enable-xft or --disable-xft was given.
5209if test "${enable_xft+set}" = set; then 8118if test "${enable_xft+set}" = set; then
5210 enableval="$enable_xft" 8119 enableval="$enable_xft"
5211 if test x$enableval = xyes; then 8120 if test x$enableval = xyes -o x$enableval = xno; then
5212 support_xft=yes 8121 support_xft=yes
5213 fi 8122 fi
5214fi 8123fi;
5215
5216
5217# Check whether --with-codesets or --without-codesets was given.
5218if test "${with_codesets+set}" = set; then
5219 withval="$with_codesets"
5220 if test x$enableval = xyes; then
5221 codesets="$withval"
5222 fi
5223fi
5224
5225
5226# Check whether --with-encoding or --without-encoding was given.
5227if test "${with_encoding+set}" = set; then
5228 withval="$with_encoding"
5229 if test x$enableval = xyes; then
5230 withval=`echo $withval | tr 'a-z' 'A-Z'`
5231 cat >> confdefs.h <<EOF
5232#define MULTICHAR_ENCODING $withval
5233EOF
5234
5235 fi
5236fi
5237
5238 8124
5239# Check whether --enable-utmp or --disable-utmp was given. 8125# Check whether --enable-utmp or --disable-utmp was given.
5240if test "${enable_utmp+set}" = set; then 8126if test "${enable_utmp+set}" = set; then
5241 enableval="$enable_utmp" 8127 enableval="$enable_utmp"
5242 if test x$enableval = xyes -o x$enableval = xno; then 8128 if test x$enableval = xyes -o x$enableval = xno; then
5243 support_utmp=$enableval 8129 support_utmp=$enableval
5244 fi 8130 fi
5245fi 8131fi;
5246
5247 8132
5248# Check whether --enable-wtmp or --disable-wtmp was given. 8133# Check whether --enable-wtmp or --disable-wtmp was given.
5249if test "${enable_wtmp+set}" = set; then 8134if test "${enable_wtmp+set}" = set; then
5250 enableval="$enable_wtmp" 8135 enableval="$enable_wtmp"
5251 if test x$enableval = xyes -o x$enableval = xno; then 8136 if test x$enableval = xyes -o x$enableval = xno; then
5252 support_wtmp=$enableval 8137 support_wtmp=$enableval
5253 fi 8138 fi
5254fi 8139fi;
5255
5256 8140
5257# Check whether --enable-lastlog or --disable-lastlog was given. 8141# Check whether --enable-lastlog or --disable-lastlog was given.
5258if test "${enable_lastlog+set}" = set; then 8142if test "${enable_lastlog+set}" = set; then
5259 enableval="$enable_lastlog" 8143 enableval="$enable_lastlog"
5260 if test x$enableval = xyes -o x$enableval = xno; then 8144 if test x$enableval = xyes -o x$enableval = xno; then
5261 support_lastlog=$enableval 8145 support_lastlog=$enableval
5262 fi 8146 fi
5263fi 8147fi;
5264
5265 8148
5266# Check whether --enable-xpm-background or --disable-xpm-background was given. 8149# Check whether --enable-xpm-background or --disable-xpm-background was given.
5267if test "${enable_xpm_background+set}" = set; then 8150if test "${enable_xpm_background+set}" = set; then
5268 enableval="$enable_xpm_background" 8151 enableval="$enable_xpm_background"
5269 if test x$enableval = xyes -o x$enableval = xno; then 8152 if test x$enableval = xyes -o x$enableval = xno; then
5270 support_xpm=$enableval 8153 support_xpm=$enableval
5271 fi 8154 fi
5272fi 8155fi;
5273
5274 8156
5275# Check whether --enable-transparency or --disable-transparency was given. 8157# Check whether --enable-transparency or --disable-transparency was given.
5276if test "${enable_transparency+set}" = set; then 8158if test "${enable_transparency+set}" = set; then
5277 enableval="$enable_transparency" 8159 enableval="$enable_transparency"
5278 if test x$enableval = xyes -o x$enableval = xno; then 8160 if test x$enableval = xyes -o x$enableval = xno; then
5279 support_inheritpixmap=$enableval 8161 support_inheritpixmap=$enableval
5280 fi 8162 fi
5281fi 8163fi;
5282 8164
8165# Check whether --enable-tinting or --disable-tinting was given.
8166if test "${enable_tinting+set}" = set; then
8167 enableval="$enable_tinting"
8168 if test x$enableval = xyes -o x$enableval = xno; then
8169 support_tinting=$enableval
8170 fi
8171fi;
5283 8172
5284# Check whether --enable-menubar or --disable-menubar was given. 8173# Check whether --enable-menubar or --disable-menubar was given.
5285if test "${enable_menubar+set}" = set; then 8174if test "${enable_menubar+set}" = set; then
5286 enableval="$enable_menubar" 8175 enableval="$enable_menubar"
5287 if test x$enableval = xyes -o x$enableval = xno; then 8176 if test x$enableval = xyes -o x$enableval = xno; then
5288 support_menubar=$enableval 8177 support_menubar=$enableval
5289 fi 8178 fi
5290fi 8179fi;
5291
5292
5293# Check whether --enable-graphics or --disable-graphics was given.
5294if test "${enable_graphics+set}" = set; then
5295 enableval="$enable_graphics"
5296 if test x$enableval = xyes -o x$enableval = xno; then
5297 support_graphics=$enableval
5298 fi
5299fi
5300
5301 8180
5302# Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given. 8181# Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given.
5303if test "${enable_rxvt_scroll+set}" = set; then 8182if test "${enable_rxvt_scroll+set}" = set; then
5304 enableval="$enable_rxvt_scroll" 8183 enableval="$enable_rxvt_scroll"
5305 if test x$enableval = xyes -o x$enableval = xno; then 8184 if test x$enableval = xyes -o x$enableval = xno; then
5306 support_scroll_rxvt=$enableval 8185 support_scroll_rxvt=$enableval
5307 fi 8186 fi
5308fi 8187fi;
5309
5310 8188
5311# Check whether --enable-next-scroll or --disable-next-scroll was given. 8189# Check whether --enable-next-scroll or --disable-next-scroll was given.
5312if test "${enable_next_scroll+set}" = set; then 8190if test "${enable_next_scroll+set}" = set; then
5313 enableval="$enable_next_scroll" 8191 enableval="$enable_next_scroll"
5314 if test x$enableval = xyes -o x$enableval = xno; then 8192 if test x$enableval = xyes -o x$enableval = xno; then
5315 support_scroll_next=$enableval 8193 support_scroll_next=$enableval
5316 fi 8194 fi
5317fi 8195fi;
5318
5319 8196
5320# Check whether --enable-xterm-scroll or --disable-xterm-scroll was given. 8197# Check whether --enable-xterm-scroll or --disable-xterm-scroll was given.
5321if test "${enable_xterm_scroll+set}" = set; then 8198if test "${enable_xterm_scroll+set}" = set; then
5322 enableval="$enable_xterm_scroll" 8199 enableval="$enable_xterm_scroll"
5323 if test x$enableval = xyes -o x$enableval = xno; then 8200 if test x$enableval = xyes -o x$enableval = xno; then
5324 support_scroll_xterm=$enableval 8201 support_scroll_xterm=$enableval
5325 fi 8202 fi
5326fi 8203fi;
5327 8204
8205# Check whether --enable-plain-scroll or --disable-plain-scroll was given.
8206if test "${enable_plain_scroll+set}" = set; then
8207 enableval="$enable_plain_scroll"
8208 if test x$enableval = xyes -o x$enableval = xno; then
8209 support_scroll_plain=$enableval
8210 fi
8211fi;
5328 8212
5329# Check whether --enable-half-shadow or --disable-half-shadow was given. 8213# Check whether --enable-half-shadow or --disable-half-shadow was given.
5330if test "${enable_half_shadow+set}" = set; then 8214if test "${enable_half_shadow+set}" = set; then
5331 enableval="$enable_half_shadow" 8215 enableval="$enable_half_shadow"
5332 if test x$enableval = xyes; then 8216 if test x$enableval = xyes; then
8217
5333 cat >> confdefs.h <<\EOF 8218cat >>confdefs.h <<\_ACEOF
5334#define HALFSHADOW 1 8219#define HALFSHADOW 1
5335EOF 8220_ACEOF
5336 8221
5337 fi 8222 fi
5338fi 8223fi;
5339 8224
8225
8226# Check whether --with-codesets or --without-codesets was given.
8227if test "${with_codesets+set}" = set; then
8228 withval="$with_codesets"
8229 codesets="$withval"
8230fi;
5340 8231
5341# Check whether --enable-xim or --disable-xim was given. 8232# Check whether --enable-xim or --disable-xim was given.
5342if test "${enable_xim+set}" = set; then 8233if test "${enable_xim+set}" = set; then
5343 enableval="$enable_xim" 8234 enableval="$enable_xim"
5344 if test x$enableval = xyes -o x$enableval = xno; then 8235 if test x$enableval = xyes -o x$enableval = xno; then
5345 support_xim=$enableval 8236 support_xim=$enableval
5346 fi 8237 fi
5347fi 8238fi;
5348
5349
5350# Check whether --enable-greek or --disable-greek was given.
5351if test "${enable_greek+set}" = set; then
5352 enableval="$enable_greek"
5353 if test x$enableval = xyes; then
5354 cat >> confdefs.h <<\EOF
5355#define GREEK_SUPPORT 1
5356EOF
5357
5358 fi
5359fi
5360
5361 8239
5362# Check whether --enable-ttygid or --disable-ttygid was given. 8240# Check whether --enable-ttygid or --disable-ttygid was given.
5363if test "${enable_ttygid+set}" = set; then 8241if test "${enable_ttygid+set}" = set; then
5364 enableval="$enable_ttygid" 8242 enableval="$enable_ttygid"
5365 if test x$enableval = xyes; then 8243 if test x$enableval = xyes; then
8244
5366 cat >> confdefs.h <<\EOF 8245cat >>confdefs.h <<\_ACEOF
5367#define TTY_GID_SUPPORT 1 8246#define TTY_GID_SUPPORT 1
5368EOF 8247_ACEOF
5369 8248
5370 fi 8249 fi
5371fi 8250fi;
5372
5373 8251
5374# Check whether --enable-backspace-key or --disable-backspace-key was given. 8252# Check whether --enable-backspace-key or --disable-backspace-key was given.
5375if test "${enable_backspace_key+set}" = set; then 8253if test "${enable_backspace_key+set}" = set; then
5376 enableval="$enable_backspace_key" 8254 enableval="$enable_backspace_key"
5377 if test x$enableval = xno; then 8255 if test x$enableval = xno; then
8256
5378 cat >> confdefs.h <<\EOF 8257cat >>confdefs.h <<\_ACEOF
5379#define NO_BACKSPACE_KEY 1 8258#define NO_BACKSPACE_KEY 1
5380EOF 8259_ACEOF
5381 8260
5382 fi 8261 fi
5383fi 8262fi;
5384
5385 8263
5386# Check whether --enable-delete-key or --disable-delete-key was given. 8264# Check whether --enable-delete-key or --disable-delete-key was given.
5387if test "${enable_delete_key+set}" = set; then 8265if test "${enable_delete_key+set}" = set; then
5388 enableval="$enable_delete_key" 8266 enableval="$enable_delete_key"
5389 if test x$enableval = xno; then 8267 if test x$enableval = xno; then
8268
5390 cat >> confdefs.h <<\EOF 8269cat >>confdefs.h <<\_ACEOF
5391#define NO_DELETE_KEY 1 8270#define NO_DELETE_KEY 1
5392EOF 8271_ACEOF
5393 8272
5394 fi 8273 fi
5395fi 8274fi;
5396
5397 8275
5398# Check whether --enable-resources or --disable-resources was given. 8276# Check whether --enable-resources or --disable-resources was given.
5399if test "${enable_resources+set}" = set; then 8277if test "${enable_resources+set}" = set; then
5400 enableval="$enable_resources" 8278 enableval="$enable_resources"
5401 if test x$enableval = xno; then 8279 if test x$enableval = xno; then
8280
5402 cat >> confdefs.h <<\EOF 8281cat >>confdefs.h <<\_ACEOF
5403#define NO_RESOURCES 1 8282#define NO_RESOURCES 1
5404EOF 8283_ACEOF
5405 8284
5406 fi 8285 fi
5407fi 8286fi;
5408
5409 8287
5410# Check whether --enable-xgetdefault or --disable-xgetdefault was given. 8288# Check whether --enable-xgetdefault or --disable-xgetdefault was given.
5411if test "${enable_xgetdefault+set}" = set; then 8289if test "${enable_xgetdefault+set}" = set; then
5412 enableval="$enable_xgetdefault" 8290 enableval="$enable_xgetdefault"
5413 if test x$enableval = xyes; then 8291 if test x$enableval = xyes; then
8292
5414 cat >> confdefs.h <<\EOF 8293cat >>confdefs.h <<\_ACEOF
5415#define USE_XGETDEFAULT 1 8294#define USE_XGETDEFAULT 1
5416EOF 8295_ACEOF
5417 8296
5418 fi 8297 fi
5419fi 8298fi;
8299
8300RESFALLBACK=Rxvt
8301# Check whether --enable-fallback or --disable-fallback was given.
8302if test "${enable_fallback+set}" = set; then
8303 enableval="$enable_fallback"
8304
8305 test x$enableval = xyes && enableval=Rxvt
8306 test x$enableval = xno && enableval=
8307 RESFALLBACK="$enableval"
8308
8309fi;
8310
8311if test x$RESFALLBACK != x; then
8312
8313cat >>confdefs.h <<_ACEOF
8314#define RESFALLBACK "$RESFALLBACK"
8315_ACEOF
8316
8317fi
8318
8319RESNAME=urxvt
8320
8321# Check whether --with-res-name or --without-res-name was given.
8322if test "${with_res_name+set}" = set; then
8323 withval="$with_res_name"
8324 RESNAME="$withval"
8325fi;
8326
8327cat >>confdefs.h <<_ACEOF
8328#define RESNAME "$RESNAME"
8329_ACEOF
8330
8331
8332RESCLASS=URxvt
8333
8334# Check whether --with-res-class or --without-res-class was given.
8335if test "${with_res_class+set}" = set; then
8336 withval="$with_res_class"
8337 RESCLASS="$withval"
8338fi;
8339
8340cat >>confdefs.h <<_ACEOF
8341#define RESCLASS "$RESCLASS"
8342_ACEOF
8343
8344
8345RXVTNAME=urxvt
8346
8347# Check whether --with-name or --without-name was given.
8348if test "${with_name+set}" = set; then
8349 withval="$with_name"
8350 RXVTNAME="$withval"
8351fi;
8352
8353RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
5420 8354
5421 8355
5422# Check whether --enable-strings or --disable-strings was given. 8356# Check whether --enable-strings or --disable-strings was given.
5423if test "${enable_strings+set}" = set; then 8357if test "${enable_strings+set}" = set; then
5424 enableval="$enable_strings" 8358 enableval="$enable_strings"
5425 if test x$enableval = xyes -o x$enableval = xno; then 8359 if test x$enableval = xyes -o x$enableval = xno; then
5426 support_addstrings=$enableval 8360 support_addstrings=$enableval
5427 fi 8361 fi
5428fi 8362fi;
5429
5430 8363
5431# Check whether --enable-swapscreen or --disable-swapscreen was given. 8364# Check whether --enable-swapscreen or --disable-swapscreen was given.
5432if test "${enable_swapscreen+set}" = set; then 8365if test "${enable_swapscreen+set}" = set; then
5433 enableval="$enable_swapscreen" 8366 enableval="$enable_swapscreen"
5434 if test x$enableval = xno; then 8367 if test x$enableval = xno; then
8368
5435 cat >> confdefs.h <<\EOF 8369cat >>confdefs.h <<\_ACEOF
5436#define NO_SECONDARY_SCREEN 1 8370#define NO_SECONDARY_SCREEN 1
5437EOF 8371_ACEOF
5438 8372
5439 fi 8373 fi
5440fi 8374fi;
5441
5442 8375
5443# Check whether --enable-frills or --disable-frills was given. 8376# Check whether --enable-frills or --disable-frills was given.
5444if test "${enable_frills+set}" = set; then 8377if test "${enable_frills+set}" = set; then
5445 enableval="$enable_frills" 8378 enableval="$enable_frills"
5446 if test x$enableval = xyes -o x$enableval = xno; then 8379 if test x$enableval = xyes -o x$enableval = xno; then
5447 support_frills=$enableval 8380 support_frills=$enableval
5448 fi 8381 fi
5449fi 8382fi;
5450
5451 8383
5452# Check whether --enable-linespace or --disable-linespace was given. 8384# Check whether --enable-linespace or --disable-linespace was given.
5453if test "${enable_linespace+set}" = set; then 8385if test "${enable_linespace+set}" = set; then
5454 enableval="$enable_linespace" 8386 enableval="$enable_linespace"
5455 if test x$enableval = xyes -o x$enableval = xno; then 8387 if test x$enableval = xyes -o x$enableval = xno; then
5456 support_linespace=$enableval 8388 support_linespace=$enableval
5457 fi 8389 fi
5458fi 8390fi;
5459
5460 8391
5461# Check whether --enable-24bit or --disable-24bit was given. 8392# Check whether --enable-24bit or --disable-24bit was given.
5462if test "${enable_24bit+set}" = set; then 8393if test "${enable_24bit+set}" = set; then
5463 enableval="$enable_24bit" 8394 enableval="$enable_24bit"
5464 if test x$enableval = xyes -o x$enableval = xno; then 8395 if test x$enableval = xyes -o x$enableval = xno; then
5465 support_24bit=$enableval 8396 support_24bit=$enableval
5466 fi 8397 fi
5467fi 8398fi;
5468
5469 8399
5470# Check whether --enable-keepscrolling or --disable-keepscrolling was given. 8400# Check whether --enable-keepscrolling or --disable-keepscrolling was given.
5471if test "${enable_keepscrolling+set}" = set; then 8401if test "${enable_keepscrolling+set}" = set; then
5472 enableval="$enable_keepscrolling" 8402 enableval="$enable_keepscrolling"
5473 if test x$enableval = xyes -o x$enableval = xno; then 8403 if test x$enableval = xyes -o x$enableval = xno; then
5474 support_keepscrolling=$enableval 8404 support_keepscrolling=$enableval
5475 fi 8405 fi
5476fi 8406fi;
5477
5478 8407
5479# Check whether --enable-selectionscrolling or --disable-selectionscrolling was given. 8408# Check whether --enable-selectionscrolling or --disable-selectionscrolling was given.
5480if test "${enable_selectionscrolling+set}" = set; then 8409if test "${enable_selectionscrolling+set}" = set; then
5481 enableval="$enable_selectionscrolling" 8410 enableval="$enable_selectionscrolling"
5482 if test x$enableval = xyes -o x$enableval = xno; then 8411 if test x$enableval = xyes -o x$enableval = xno; then
5483 support_selectionscrolling=$enableval 8412 support_selectionscrolling=$enableval
5484 fi 8413 fi
5485fi 8414fi;
5486
5487 8415
5488# Check whether --enable-mousewheel or --disable-mousewheel was given. 8416# Check whether --enable-mousewheel or --disable-mousewheel was given.
5489if test "${enable_mousewheel+set}" = set; then 8417if test "${enable_mousewheel+set}" = set; then
5490 enableval="$enable_mousewheel" 8418 enableval="$enable_mousewheel"
5491 if test x$enableval = xyes -o x$enableval = xno; then 8419 if test x$enableval = xyes -o x$enableval = xno; then
5492 support_mousewheel=$enableval 8420 support_mousewheel=$enableval
5493 fi 8421 fi
5494fi 8422fi;
5495
5496 8423
5497# Check whether --enable-slipwheeling or --disable-slipwheeling was given. 8424# Check whether --enable-slipwheeling or --disable-slipwheeling was given.
5498if test "${enable_slipwheeling+set}" = set; then 8425if test "${enable_slipwheeling+set}" = set; then
5499 enableval="$enable_slipwheeling" 8426 enableval="$enable_slipwheeling"
5500 if test x$enableval = xyes -o x$enableval = xno; then 8427 if test x$enableval = xyes -o x$enableval = xno; then
5501 support_mouseslipwheel=$enableval 8428 support_mouseslipwheel=$enableval
5502 fi 8429 fi
5503fi 8430fi;
5504
5505
5506# Check whether --enable-old-selection or --disable-old-selection was given.
5507if test "${enable_old_selection+set}" = set; then
5508 enableval="$enable_old_selection"
5509 if test x$enableval = xyes -o x$enableval = xno; then
5510 support_oldselection=$enableval
5511 fi
5512fi
5513
5514
5515# Check whether --enable-new-selection or --disable-new-selection was given.
5516if test "${enable_new_selection+set}" = set; then
5517 enableval="$enable_new_selection"
5518 if test x$enableval = xno; then
5519 cat >> confdefs.h <<\EOF
5520#define NO_NEW_SELECTION 1
5521EOF
5522
5523 fi
5524fi
5525
5526 8431
5527# Check whether --enable-dmalloc or --disable-dmalloc was given. 8432# Check whether --enable-dmalloc or --disable-dmalloc was given.
5528if test "${enable_dmalloc+set}" = set; then 8433if test "${enable_dmalloc+set}" = set; then
5529 enableval="$enable_dmalloc" 8434 enableval="$enable_dmalloc"
5530 if test x$enableval = xyes; then 8435 if test x$enableval = xyes; then
5531 MALLOC_TYPE=G 8436 MALLOC_TYPE=G
5532 DEBUG=-DDEBUG_MALLOC 8437 DEBUG=-DDEBUG_MALLOC
5533 DLIB="-L/usr/local/lib -ldmalloc" 8438 DLIB="-L/usr/local/lib -ldmalloc"
5534 DINCLUDE=-I/usr/local/include 8439 DINCLUDE=-I/usr/local/include
5535 fi 8440 fi
5536fi 8441fi;
5537
5538 8442
5539# Check whether --enable-dlmalloc or --disable-dlmalloc was given. 8443# Check whether --enable-dlmalloc or --disable-dlmalloc was given.
5540if test "${enable_dlmalloc+set}" = set; then 8444if test "${enable_dlmalloc+set}" = set; then
5541 enableval="$enable_dlmalloc" 8445 enableval="$enable_dlmalloc"
5542 if test x$enableval = xyes; then 8446 if test x$enableval = xyes; then
5543 MALLOC_TYPE=D 8447 MALLOC_TYPE=D
5544 DEBUG= 8448 DEBUG=
5545 DLIB="-L/usr/local/lib -ldlmalloc" 8449 DLIB="-L/usr/local/lib -ldlmalloc"
5546 DINCLUDE= 8450 DINCLUDE=
5547 fi 8451 fi
5548fi 8452fi;
5549
5550 8453
5551# Check whether --enable-smart-resize or --disable-smart-resize was given. 8454# Check whether --enable-smart-resize or --disable-smart-resize was given.
5552if test "${enable_smart_resize+set}" = set; then 8455if test "${enable_smart_resize+set}" = set; then
5553 enableval="$enable_smart_resize" 8456 enableval="$enable_smart_resize"
5554 if test x$enableval = xyes; then 8457 if test x$enableval = xyes; then
8458
5555 cat >> confdefs.h <<\EOF 8459cat >>confdefs.h <<\_ACEOF
5556#define SMART_RESIZE 1 8460#define SMART_RESIZE 1
5557EOF 8461_ACEOF
5558 8462
5559 fi 8463 fi
5560fi 8464fi;
5561
5562 8465
5563# Check whether --enable-256-color or --disable-256-color was given. 8466# Check whether --enable-256-color or --disable-256-color was given.
5564if test "${enable_256_color+set}" = set; then 8467if test "${enable_256_color+set}" = set; then
5565 enableval="$enable_256_color" 8468 enableval="$enable_256_color"
5566 if test x$enableval = xyes; then 8469 if test x$enableval = xyes; then
8470
5567 cat >> confdefs.h <<\EOF 8471cat >>confdefs.h <<\_ACEOF
5568#define TTY_256COLOR 1 8472#define TTY_256COLOR 1
5569EOF 8473_ACEOF
5570 8474
5571 fi 8475 fi
5572fi 8476fi;
5573
5574 8477
5575# Check whether --enable-cursor-blink or --disable-cursor-blink was given. 8478# Check whether --enable-cursor-blink or --disable-cursor-blink was given.
5576if test "${enable_cursor_blink+set}" = set; then 8479if test "${enable_cursor_blink+set}" = set; then
5577 enableval="$enable_cursor_blink" 8480 enableval="$enable_cursor_blink"
5578 if test x$enableval = xyes -o x$enableval = xno; then 8481 if test x$enableval = xyes -o x$enableval = xno; then
5579 support_cursor_blink=$enableval 8482 support_cursor_blink=$enableval
5580 fi 8483 fi
5581fi 8484fi;
5582 8485
8486# Check whether --enable-text-blink or --disable-text-blink was given.
8487if test "${enable_text_blink+set}" = set; then
8488 enableval="$enable_text_blink"
8489 if test x$enableval = xyes -o x$enableval = xno; then
8490 support_text_blink=$enableval
8491 fi
8492fi;
5583 8493
5584# Check whether --enable-pointer-blank or --disable-pointer-blank was given. 8494# Check whether --enable-pointer-blank or --disable-pointer-blank was given.
5585if test "${enable_pointer_blank+set}" = set; then 8495if test "${enable_pointer_blank+set}" = set; then
5586 enableval="$enable_pointer_blank" 8496 enableval="$enable_pointer_blank"
5587 if test x$enableval = xyes -o x$enableval = xno; then 8497 if test x$enableval = xyes -o x$enableval = xno; then
5588 support_pointer_blank=$enableval 8498 support_pointer_blank=$enableval
5589 fi 8499 fi
5590fi 8500fi;
5591 8501
5592 8502
5593# Check whether --with-term or --without-term was given. 8503# Check whether --with-term or --without-term was given.
5594if test "${with_term+set}" = set; then 8504if test "${with_term+set}" = set; then
5595 withval="$with_term" 8505 withval="$with_term"
5596 if test x$withval != x; then 8506 if test x$withval != x; then
8507
5597 cat >> confdefs.h <<EOF 8508cat >>confdefs.h <<_ACEOF
5598#define TERMENV "$withval" 8509#define TERMENV "$withval"
5599EOF 8510_ACEOF
5600 term="$withval" 8511 term="$withval"
5601 fi 8512 fi
5602fi 8513fi;
5603 8514
5604 8515
5605# Check whether --with-terminfo or --without-terminfo was given. 8516# Check whether --with-terminfo or --without-terminfo was given.
5606if test "${with_terminfo+set}" = set; then 8517if test "${with_terminfo+set}" = set; then
5607 withval="$with_terminfo" 8518 withval="$with_terminfo"
5608 if test x$withval != x; then 8519 if test x$withval != x; then
8520
5609 cat >> confdefs.h <<EOF 8521cat >>confdefs.h <<_ACEOF
5610#define RXVT_TERMINFO "$withval" 8522#define RXVT_TERMINFO "$withval"
5611EOF 8523_ACEOF
5612 terminfo="$withval" 8524 terminfo="$withval"
5613 fi 8525 fi
5614fi 8526fi;
5615 8527
5616 8528
5617 8529
5618cat >> confdefs.h <<\EOF 8530cat >>confdefs.h <<\_ACEOF
5619#define PROTOTYPES 1 8531#define PROTOTYPES 1
5620EOF 8532_ACEOF
5621 8533
5622 8534
5623if test -z "$CFLAGS"; then 8535if test -z "$CFLAGS"; then
5624 if test -z "$CCOPTS"; then 8536 if test -z "$CCOPTS"; then
5625 CCOPTS='-O' 8537 CCOPTS='-O'
5627 CFLAGS="$CCOPTS" 8539 CFLAGS="$CCOPTS"
5628fi 8540fi
5629 8541
5630# Extract the first word of "mv", so it can be a program name with args. 8542# Extract the first word of "mv", so it can be a program name with args.
5631set dummy mv; ac_word=$2 8543set dummy mv; ac_word=$2
8544echo "$as_me:$LINENO: checking for $ac_word" >&5
5632echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5633echo "configure:5634: checking for $ac_word" >&5
5634if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then 8546if test "${ac_cv_path_MV+set}" = set; then
5635 echo $ac_n "(cached) $ac_c" 1>&6 8547 echo $ECHO_N "(cached) $ECHO_C" >&6
5636else 8548else
5637 case "$MV" in 8549 case $MV in
5638 /*) 8550 [\\/]* | ?:[\\/]*)
5639 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8551 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5640 ;; 8552 ;;
5641 ?:/*)
5642 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
5643 ;;
5644 *) 8553 *)
5645 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5646 ac_dummy="$PATH" 8555for as_dir in $PATH
5647 for ac_dir in $ac_dummy; do 8556do
8557 IFS=$as_save_IFS
5648 test -z "$ac_dir" && ac_dir=. 8558 test -z "$as_dir" && as_dir=.
5649 if test -f $ac_dir/$ac_word; then 8559 for ac_exec_ext in '' $ac_executable_extensions; do
8560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5650 ac_cv_path_MV="$ac_dir/$ac_word" 8561 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5651 break 8563 break 2
5652 fi 8564 fi
5653 done 8565done
5654 IFS="$ac_save_ifs" 8566done
8567
5655 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" 8568 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5656 ;; 8569 ;;
5657esac 8570esac
5658fi 8571fi
5659MV="$ac_cv_path_MV" 8572MV=$ac_cv_path_MV
8573
5660if test -n "$MV"; then 8574if test -n "$MV"; then
5661 echo "$ac_t""$MV" 1>&6 8575 echo "$as_me:$LINENO: result: $MV" >&5
8576echo "${ECHO_T}$MV" >&6
5662else 8577else
5663 echo "$ac_t""no" 1>&6 8578 echo "$as_me:$LINENO: result: no" >&5
8579echo "${ECHO_T}no" >&6
5664fi 8580fi
5665 8581
5666# Extract the first word of "rm", so it can be a program name with args. 8582# Extract the first word of "rm", so it can be a program name with args.
5667set dummy rm; ac_word=$2 8583set dummy rm; ac_word=$2
8584echo "$as_me:$LINENO: checking for $ac_word" >&5
5668echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8585echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5669echo "configure:5670: checking for $ac_word" >&5
5670if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then 8586if test "${ac_cv_path_RM+set}" = set; then
5671 echo $ac_n "(cached) $ac_c" 1>&6 8587 echo $ECHO_N "(cached) $ECHO_C" >&6
5672else 8588else
5673 case "$RM" in 8589 case $RM in
5674 /*) 8590 [\\/]* | ?:[\\/]*)
5675 ac_cv_path_RM="$RM" # Let the user override the test with a path. 8591 ac_cv_path_RM="$RM" # Let the user override the test with a path.
5676 ;; 8592 ;;
5677 ?:/*)
5678 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
5679 ;;
5680 *) 8593 *)
5681 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5682 ac_dummy="$PATH" 8595for as_dir in $PATH
5683 for ac_dir in $ac_dummy; do 8596do
8597 IFS=$as_save_IFS
5684 test -z "$ac_dir" && ac_dir=. 8598 test -z "$as_dir" && as_dir=.
5685 if test -f $ac_dir/$ac_word; then 8599 for ac_exec_ext in '' $ac_executable_extensions; do
8600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5686 ac_cv_path_RM="$ac_dir/$ac_word" 8601 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5687 break 8603 break 2
5688 fi 8604 fi
5689 done 8605done
5690 IFS="$ac_save_ifs" 8606done
8607
5691 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" 8608 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
5692 ;; 8609 ;;
5693esac 8610esac
5694fi 8611fi
5695RM="$ac_cv_path_RM" 8612RM=$ac_cv_path_RM
8613
5696if test -n "$RM"; then 8614if test -n "$RM"; then
5697 echo "$ac_t""$RM" 1>&6 8615 echo "$as_me:$LINENO: result: $RM" >&5
8616echo "${ECHO_T}$RM" >&6
5698else 8617else
5699 echo "$ac_t""no" 1>&6 8618 echo "$as_me:$LINENO: result: no" >&5
8619echo "${ECHO_T}no" >&6
5700fi 8620fi
5701 8621
5702# Extract the first word of "cp", so it can be a program name with args. 8622# Extract the first word of "cp", so it can be a program name with args.
5703set dummy cp; ac_word=$2 8623set dummy cp; ac_word=$2
8624echo "$as_me:$LINENO: checking for $ac_word" >&5
5704echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8625echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5705echo "configure:5706: checking for $ac_word" >&5
5706if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then 8626if test "${ac_cv_path_CP+set}" = set; then
5707 echo $ac_n "(cached) $ac_c" 1>&6 8627 echo $ECHO_N "(cached) $ECHO_C" >&6
5708else 8628else
5709 case "$CP" in 8629 case $CP in
5710 /*) 8630 [\\/]* | ?:[\\/]*)
5711 ac_cv_path_CP="$CP" # Let the user override the test with a path. 8631 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5712 ;; 8632 ;;
5713 ?:/*)
5714 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
5715 ;;
5716 *) 8633 *)
5717 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5718 ac_dummy="$PATH" 8635for as_dir in $PATH
5719 for ac_dir in $ac_dummy; do 8636do
8637 IFS=$as_save_IFS
5720 test -z "$ac_dir" && ac_dir=. 8638 test -z "$as_dir" && as_dir=.
5721 if test -f $ac_dir/$ac_word; then 8639 for ac_exec_ext in '' $ac_executable_extensions; do
8640 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5722 ac_cv_path_CP="$ac_dir/$ac_word" 8641 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
8642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5723 break 8643 break 2
5724 fi 8644 fi
5725 done 8645done
5726 IFS="$ac_save_ifs" 8646done
8647
5727 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" 8648 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5728 ;; 8649 ;;
5729esac 8650esac
5730fi 8651fi
5731CP="$ac_cv_path_CP" 8652CP=$ac_cv_path_CP
8653
5732if test -n "$CP"; then 8654if test -n "$CP"; then
5733 echo "$ac_t""$CP" 1>&6 8655 echo "$as_me:$LINENO: result: $CP" >&5
8656echo "${ECHO_T}$CP" >&6
5734else 8657else
5735 echo "$ac_t""no" 1>&6 8658 echo "$as_me:$LINENO: result: no" >&5
8659echo "${ECHO_T}no" >&6
5736fi 8660fi
5737 8661
5738# Extract the first word of "ln", so it can be a program name with args. 8662# Extract the first word of "ln", so it can be a program name with args.
5739set dummy ln; ac_word=$2 8663set dummy ln; ac_word=$2
8664echo "$as_me:$LINENO: checking for $ac_word" >&5
5740echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5741echo "configure:5742: checking for $ac_word" >&5
5742if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then 8666if test "${ac_cv_path_LN+set}" = set; then
5743 echo $ac_n "(cached) $ac_c" 1>&6 8667 echo $ECHO_N "(cached) $ECHO_C" >&6
5744else 8668else
5745 case "$LN" in 8669 case $LN in
5746 /*) 8670 [\\/]* | ?:[\\/]*)
5747 ac_cv_path_LN="$LN" # Let the user override the test with a path. 8671 ac_cv_path_LN="$LN" # Let the user override the test with a path.
5748 ;; 8672 ;;
5749 ?:/*)
5750 ac_cv_path_LN="$LN" # Let the user override the test with a dos path.
5751 ;;
5752 *) 8673 *)
5753 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5754 ac_dummy="$PATH" 8675for as_dir in $PATH
5755 for ac_dir in $ac_dummy; do 8676do
8677 IFS=$as_save_IFS
5756 test -z "$ac_dir" && ac_dir=. 8678 test -z "$as_dir" && as_dir=.
5757 if test -f $ac_dir/$ac_word; then 8679 for ac_exec_ext in '' $ac_executable_extensions; do
8680 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5758 ac_cv_path_LN="$ac_dir/$ac_word" 8681 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5759 break 8683 break 2
5760 fi 8684 fi
5761 done 8685done
5762 IFS="$ac_save_ifs" 8686done
8687
5763 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" 8688 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
5764 ;; 8689 ;;
5765esac 8690esac
5766fi 8691fi
5767LN="$ac_cv_path_LN" 8692LN=$ac_cv_path_LN
8693
5768if test -n "$LN"; then 8694if test -n "$LN"; then
5769 echo "$ac_t""$LN" 1>&6 8695 echo "$as_me:$LINENO: result: $LN" >&5
8696echo "${ECHO_T}$LN" >&6
5770else 8697else
5771 echo "$ac_t""no" 1>&6 8698 echo "$as_me:$LINENO: result: no" >&5
8699echo "${ECHO_T}no" >&6
5772fi 8700fi
5773 8701
5774# Extract the first word of "sed", so it can be a program name with args. 8702# Extract the first word of "sed", so it can be a program name with args.
5775set dummy sed; ac_word=$2 8703set dummy sed; ac_word=$2
8704echo "$as_me:$LINENO: checking for $ac_word" >&5
5776echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5777echo "configure:5778: checking for $ac_word" >&5
5778if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then 8706if test "${ac_cv_path_SED+set}" = set; then
5779 echo $ac_n "(cached) $ac_c" 1>&6 8707 echo $ECHO_N "(cached) $ECHO_C" >&6
5780else 8708else
5781 case "$SED" in 8709 case $SED in
5782 /*) 8710 [\\/]* | ?:[\\/]*)
5783 ac_cv_path_SED="$SED" # Let the user override the test with a path. 8711 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5784 ;; 8712 ;;
5785 ?:/*)
5786 ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
5787 ;;
5788 *) 8713 *)
5789 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5790 ac_dummy="$PATH" 8715for as_dir in $PATH
5791 for ac_dir in $ac_dummy; do 8716do
8717 IFS=$as_save_IFS
5792 test -z "$ac_dir" && ac_dir=. 8718 test -z "$as_dir" && as_dir=.
5793 if test -f $ac_dir/$ac_word; then 8719 for ac_exec_ext in '' $ac_executable_extensions; do
8720 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5794 ac_cv_path_SED="$ac_dir/$ac_word" 8721 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
8722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5795 break 8723 break 2
5796 fi 8724 fi
5797 done 8725done
5798 IFS="$ac_save_ifs" 8726done
8727
5799 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" 8728 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5800 ;; 8729 ;;
5801esac 8730esac
5802fi 8731fi
5803SED="$ac_cv_path_SED" 8732SED=$ac_cv_path_SED
8733
5804if test -n "$SED"; then 8734if test -n "$SED"; then
5805 echo "$ac_t""$SED" 1>&6 8735 echo "$as_me:$LINENO: result: $SED" >&5
8736echo "${ECHO_T}$SED" >&6
5806else 8737else
5807 echo "$ac_t""no" 1>&6 8738 echo "$as_me:$LINENO: result: no" >&5
8739echo "${ECHO_T}no" >&6
5808fi 8740fi
5809 8741
5810# Extract the first word of "echo", so it can be a program name with args. 8742# Extract the first word of "echo", so it can be a program name with args.
5811set dummy echo; ac_word=$2 8743set dummy echo; ac_word=$2
8744echo "$as_me:$LINENO: checking for $ac_word" >&5
5812echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8745echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5813echo "configure:5814: checking for $ac_word" >&5
5814if eval "test \"`echo '$''{'ac_cv_path_ECHO'+set}'`\" = set"; then 8746if test "${ac_cv_path_ECHO+set}" = set; then
5815 echo $ac_n "(cached) $ac_c" 1>&6 8747 echo $ECHO_N "(cached) $ECHO_C" >&6
5816else 8748else
5817 case "$ECHO" in 8749 case $ECHO in
5818 /*) 8750 [\\/]* | ?:[\\/]*)
5819 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 8751 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5820 ;; 8752 ;;
5821 ?:/*)
5822 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a dos path.
5823 ;;
5824 *) 8753 *)
5825 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5826 ac_dummy="$PATH" 8755for as_dir in $PATH
5827 for ac_dir in $ac_dummy; do 8756do
8757 IFS=$as_save_IFS
5828 test -z "$ac_dir" && ac_dir=. 8758 test -z "$as_dir" && as_dir=.
5829 if test -f $ac_dir/$ac_word; then 8759 for ac_exec_ext in '' $ac_executable_extensions; do
8760 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5830 ac_cv_path_ECHO="$ac_dir/$ac_word" 8761 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
8762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5831 break 8763 break 2
5832 fi 8764 fi
5833 done 8765done
5834 IFS="$ac_save_ifs" 8766done
8767
5835 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo" 8768 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5836 ;; 8769 ;;
5837esac 8770esac
5838fi 8771fi
5839ECHO="$ac_cv_path_ECHO" 8772ECHO=$ac_cv_path_ECHO
8773
5840if test -n "$ECHO"; then 8774if test -n "$ECHO"; then
5841 echo "$ac_t""$ECHO" 1>&6 8775 echo "$as_me:$LINENO: result: $ECHO" >&5
8776echo "${ECHO_T}$ECHO" >&6
5842else 8777else
5843 echo "$ac_t""no" 1>&6 8778 echo "$as_me:$LINENO: result: no" >&5
8779echo "${ECHO_T}no" >&6
5844fi 8780fi
5845 8781
5846# Extract the first word of "cmp", so it can be a program name with args. 8782# Extract the first word of "cmp", so it can be a program name with args.
5847set dummy cmp; ac_word=$2 8783set dummy cmp; ac_word=$2
8784echo "$as_me:$LINENO: checking for $ac_word" >&5
5848echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8785echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5849echo "configure:5850: checking for $ac_word" >&5
5850if eval "test \"`echo '$''{'ac_cv_path_CMP'+set}'`\" = set"; then 8786if test "${ac_cv_path_CMP+set}" = set; then
5851 echo $ac_n "(cached) $ac_c" 1>&6 8787 echo $ECHO_N "(cached) $ECHO_C" >&6
5852else 8788else
5853 case "$CMP" in 8789 case $CMP in
5854 /*) 8790 [\\/]* | ?:[\\/]*)
5855 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 8791 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5856 ;; 8792 ;;
5857 ?:/*)
5858 ac_cv_path_CMP="$CMP" # Let the user override the test with a dos path.
5859 ;;
5860 *) 8793 *)
5861 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5862 ac_dummy="$PATH" 8795for as_dir in $PATH
5863 for ac_dir in $ac_dummy; do 8796do
8797 IFS=$as_save_IFS
5864 test -z "$ac_dir" && ac_dir=. 8798 test -z "$as_dir" && as_dir=.
5865 if test -f $ac_dir/$ac_word; then 8799 for ac_exec_ext in '' $ac_executable_extensions; do
8800 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5866 ac_cv_path_CMP="$ac_dir/$ac_word" 8801 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
8802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5867 break 8803 break 2
5868 fi 8804 fi
5869 done 8805done
5870 IFS="$ac_save_ifs" 8806done
8807
5871 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" 8808 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5872 ;; 8809 ;;
5873esac 8810esac
5874fi 8811fi
5875CMP="$ac_cv_path_CMP" 8812CMP=$ac_cv_path_CMP
8813
5876if test -n "$CMP"; then 8814if test -n "$CMP"; then
5877 echo "$ac_t""$CMP" 1>&6 8815 echo "$as_me:$LINENO: result: $CMP" >&5
8816echo "${ECHO_T}$CMP" >&6
5878else 8817else
5879 echo "$ac_t""no" 1>&6 8818 echo "$as_me:$LINENO: result: no" >&5
8819echo "${ECHO_T}no" >&6
5880fi 8820fi
5881 8821
5882# Extract the first word of "tbl", so it can be a program name with args. 8822# Extract the first word of "tbl", so it can be a program name with args.
5883set dummy tbl; ac_word=$2 8823set dummy tbl; ac_word=$2
8824echo "$as_me:$LINENO: checking for $ac_word" >&5
5884echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5885echo "configure:5886: checking for $ac_word" >&5
5886if eval "test \"`echo '$''{'ac_cv_path_TBL'+set}'`\" = set"; then 8826if test "${ac_cv_path_TBL+set}" = set; then
5887 echo $ac_n "(cached) $ac_c" 1>&6 8827 echo $ECHO_N "(cached) $ECHO_C" >&6
5888else 8828else
5889 case "$TBL" in 8829 case $TBL in
5890 /*) 8830 [\\/]* | ?:[\\/]*)
5891 ac_cv_path_TBL="$TBL" # Let the user override the test with a path. 8831 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5892 ;; 8832 ;;
5893 ?:/*)
5894 ac_cv_path_TBL="$TBL" # Let the user override the test with a dos path.
5895 ;;
5896 *) 8833 *)
5897 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898 ac_dummy="$PATH" 8835for as_dir in $PATH
5899 for ac_dir in $ac_dummy; do 8836do
8837 IFS=$as_save_IFS
5900 test -z "$ac_dir" && ac_dir=. 8838 test -z "$as_dir" && as_dir=.
5901 if test -f $ac_dir/$ac_word; then 8839 for ac_exec_ext in '' $ac_executable_extensions; do
8840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5902 ac_cv_path_TBL="$ac_dir/$ac_word" 8841 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
8842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5903 break 8843 break 2
5904 fi 8844 fi
5905 done 8845done
5906 IFS="$ac_save_ifs" 8846done
8847
5907 ;; 8848 ;;
5908esac 8849esac
5909fi 8850fi
5910TBL="$ac_cv_path_TBL" 8851TBL=$ac_cv_path_TBL
8852
5911if test -n "$TBL"; then 8853if test -n "$TBL"; then
5912 echo "$ac_t""$TBL" 1>&6 8854 echo "$as_me:$LINENO: result: $TBL" >&5
8855echo "${ECHO_T}$TBL" >&6
5913else 8856else
5914 echo "$ac_t""no" 1>&6 8857 echo "$as_me:$LINENO: result: no" >&5
8858echo "${ECHO_T}no" >&6
5915fi 8859fi
5916 8860
5917 8861
5918 8862
5919 8863
5920# If we find X, set shell vars x_includes and x_libraries to the 8864
5921# paths, otherwise set no_x=yes. 8865if test "x$ac_path_x_has_been_run" != xyes; then
5922# Uses ac_ vars as temps to allow command line to override cache and checks. 8866 echo "$as_me:$LINENO: checking for X" >&5
5923# --without-x overrides everything else, but does not touch the cache.
5924echo $ac_n "checking for X""... $ac_c" 1>&6 8867echo $ECHO_N "checking for X... $ECHO_C" >&6
5925echo "configure:5926: checking for X" >&5 8868
8869ac_path_x_has_been_run=yes
5926 8870
5927# Check whether --with-x or --without-x was given. 8871# Check whether --with-x or --without-x was given.
5928if test "${with_x+set}" = set; then 8872if test "${with_x+set}" = set; then
5929 withval="$with_x" 8873 withval="$with_x"
5930 : 8874
5931fi 8875fi;
5932
5933# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 8876# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5934if test "x$with_x" = xno; then 8877if test "x$with_x" = xno; then
5935 # The user explicitly disabled X. 8878 # The user explicitly disabled X.
5936 have_x=disabled 8879 have_x=disabled
5937else 8880else
5938 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then 8881 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5939 # Both variables are already set. 8882 # Both variables are already set.
5940 have_x=yes 8883 have_x=yes
5941 else 8884 else
5942if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then 8885 if test "${ac_cv_have_x+set}" = set; then
5943 echo $ac_n "(cached) $ac_c" 1>&6 8886 echo $ECHO_N "(cached) $ECHO_C" >&6
5944else 8887else
5945 # One or both of the vars are not set, and there is no cached value. 8888 # One or both of the vars are not set, and there is no cached value.
5946ac_x_includes=NO ac_x_libraries=NO 8889ac_x_includes=no ac_x_libraries=no
5947rm -fr conftestdir 8890rm -fr conftest.dir
5948if mkdir conftestdir; then 8891if mkdir conftest.dir; then
5949 cd conftestdir 8892 cd conftest.dir
5950 # Make sure to not put "make" in the Imakefile rules, since we grep it out. 8893 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5951 cat > Imakefile <<'EOF' 8894 cat >Imakefile <<'_ACEOF'
5952acfindx: 8895acfindx:
5953 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' 8896 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5954EOF 8897_ACEOF
5955 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 8898 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5956 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 8899 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5957 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 8900 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5958 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 8901 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5959 for ac_extension in a so sl; do 8902 for ac_extension in a so sl; do
5960 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && 8903 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5961 test -f $ac_im_libdir/libX11.$ac_extension; then 8904 test -f $ac_im_libdir/libX11.$ac_extension; then
5962 ac_im_usrlibdir=$ac_im_libdir; break 8905 ac_im_usrlibdir=$ac_im_libdir; break
5963 fi 8906 fi
5964 done 8907 done
5965 # Screen out bogus values from the imake configuration. They are 8908 # Screen out bogus values from the imake configuration. They are
5966 # bogus both because they are the default anyway, and because 8909 # bogus both because they are the default anyway, and because
5967 # using them would break gcc on systems where it needs fixed includes. 8910 # using them would break gcc on systems where it needs fixed includes.
5968 case "$ac_im_incroot" in 8911 case $ac_im_incroot in
5969 /usr/include) ;; 8912 /usr/include) ;;
5970 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; 8913 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5971 esac 8914 esac
5972 case "$ac_im_usrlibdir" in 8915 case $ac_im_usrlibdir in
5973 /usr/lib | /lib) ;; 8916 /usr/lib | /lib) ;;
5974 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; 8917 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5975 esac 8918 esac
5976 fi 8919 fi
5977 cd .. 8920 cd ..
5978 rm -fr conftestdir 8921 rm -fr conftest.dir
5979fi 8922fi
5980 8923
8924# Standard set of common directories for X headers.
8925# Check X11 before X11Rn because it is often a symlink to the current release.
8926ac_x_header_dirs='
8927/usr/X11/include
8928/usr/X11R6/include
8929/usr/X11R5/include
8930/usr/X11R4/include
8931
8932/usr/include/X11
8933/usr/include/X11R6
8934/usr/include/X11R5
8935/usr/include/X11R4
8936
8937/usr/local/X11/include
8938/usr/local/X11R6/include
8939/usr/local/X11R5/include
8940/usr/local/X11R4/include
8941
8942/usr/local/include/X11
8943/usr/local/include/X11R6
8944/usr/local/include/X11R5
8945/usr/local/include/X11R4
8946
8947/usr/X386/include
8948/usr/x386/include
8949/usr/XFree86/include/X11
8950
8951/usr/include
8952/usr/local/include
8953/usr/unsupported/include
8954/usr/athena/include
8955/usr/local/x11r5/include
8956/usr/lpp/Xamples/include
8957
8958/usr/openwin/include
8959/usr/openwin/share/include'
8960
5981if test "$ac_x_includes" = NO; then 8961if test "$ac_x_includes" = no; then
5982 # Guess where to find include files, by looking for this one X11 .h file. 8962 # Guess where to find include files, by looking for a specified header file.
5983 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
5984
5985 # First, try using that file with no special directory specified. 8963 # First, try using that file with no special directory specified.
8964 cat >conftest.$ac_ext <<_ACEOF
8965/* confdefs.h. */
8966_ACEOF
8967cat confdefs.h >>conftest.$ac_ext
5986cat > conftest.$ac_ext <<EOF 8968cat >>conftest.$ac_ext <<_ACEOF
5987#line 5988 "configure" 8969/* end confdefs.h. */
5988#include "confdefs.h" 8970#include <X11/Intrinsic.h>
5989#include <$x_direct_test_include> 8971_ACEOF
5990EOF 8972if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5991ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8973 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5992{ (eval echo configure:5993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8974 ac_status=$?
5993ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8975 grep -v '^ *+' conftest.er1 >conftest.err
8976 rm -f conftest.er1
8977 cat conftest.err >&5
8978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979 (exit $ac_status); } >/dev/null; then
8980 if test -s conftest.err; then
8981 ac_cpp_err=$ac_cxx_preproc_warn_flag
8982 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8983 else
8984 ac_cpp_err=
8985 fi
8986else
8987 ac_cpp_err=yes
8988fi
5994if test -z "$ac_err"; then 8989if test -z "$ac_cpp_err"; then
5995 rm -rf conftest*
5996 # We can compile using X headers with no special include directory. 8990 # We can compile using X headers with no special include directory.
5997ac_x_includes= 8991ac_x_includes=
5998else 8992else
5999 echo "$ac_err" >&5
6000 echo "configure: failed program was:" >&5 8993 echo "$as_me: failed program was:" >&5
6001 cat conftest.$ac_ext >&5 8994sed 's/^/| /' conftest.$ac_ext >&5
6002 rm -rf conftest* 8995
6003 # Look for the header file in a standard set of common directories. 8996 for ac_dir in $ac_x_header_dirs; do
6004# Check X11 before X11Rn because it is often a symlink to the current release. 8997 if test -r "$ac_dir/X11/Intrinsic.h"; then
6005 for ac_dir in \
6006 /usr/X11/include \
6007 /usr/X11R6/include \
6008 /usr/X11R5/include \
6009 /usr/X11R4/include \
6010 \
6011 /usr/include/X11 \
6012 /usr/include/X11R6 \
6013 /usr/include/X11R5 \
6014 /usr/include/X11R4 \
6015 \
6016 /usr/local/X11/include \
6017 /usr/local/X11R6/include \
6018 /usr/local/X11R5/include \
6019 /usr/local/X11R4/include \
6020 \
6021 /usr/local/include/X11 \
6022 /usr/local/include/X11R6 \
6023 /usr/local/include/X11R5 \
6024 /usr/local/include/X11R4 \
6025 \
6026 /usr/X386/include \
6027 /usr/x386/include \
6028 /usr/XFree86/include/X11 \
6029 \
6030 /usr/include \
6031 /usr/local/include \
6032 /usr/unsupported/include \
6033 /usr/athena/include \
6034 /usr/local/x11r5/include \
6035 /usr/lpp/Xamples/include \
6036 \
6037 /usr/openwin/include \
6038 /usr/openwin/share/include \
6039 ; \
6040 do
6041 if test -r "$ac_dir/$x_direct_test_include"; then
6042 ac_x_includes=$ac_dir 8998 ac_x_includes=$ac_dir
6043 break 8999 break
6044 fi 9000 fi
6045 done 9001done
6046fi 9002fi
6047rm -f conftest* 9003rm -f conftest.err conftest.$ac_ext
6048fi # $ac_x_includes = NO 9004fi # $ac_x_includes = no
6049 9005
6050if test "$ac_x_libraries" = NO; then 9006if test "$ac_x_libraries" = no; then
6051 # Check for the libraries. 9007 # Check for the libraries.
6052
6053 test -z "$x_direct_test_library" && x_direct_test_library=Xt
6054 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
6055
6056 # See if we find them without any special options. 9008 # See if we find them without any special options.
6057 # Don't add to $LIBS permanently. 9009 # Don't add to $LIBS permanently.
6058 ac_save_LIBS="$LIBS" 9010 ac_save_LIBS=$LIBS
6059 LIBS="-l$x_direct_test_library $LIBS" 9011 LIBS="-lXt $LIBS"
9012 cat >conftest.$ac_ext <<_ACEOF
9013/* confdefs.h. */
9014_ACEOF
9015cat confdefs.h >>conftest.$ac_ext
6060cat > conftest.$ac_ext <<EOF 9016cat >>conftest.$ac_ext <<_ACEOF
6061#line 6062 "configure" 9017/* end confdefs.h. */
6062#include "confdefs.h" 9018#include <X11/Intrinsic.h>
6063 9019int
6064int main() { 9020main ()
6065${x_direct_test_function}() 9021{
9022XtMalloc (0)
9023 ;
6066; return 0; } 9024 return 0;
6067EOF 9025}
6068if { (eval echo configure:6069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9026_ACEOF
9027rm -f conftest.$ac_objext conftest$ac_exeext
9028if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9029 (eval $ac_link) 2>conftest.er1
9030 ac_status=$?
9031 grep -v '^ *+' conftest.er1 >conftest.err
6069 rm -rf conftest* 9032 rm -f conftest.er1
9033 cat conftest.err >&5
9034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035 (exit $ac_status); } &&
9036 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9038 (eval $ac_try) 2>&5
9039 ac_status=$?
9040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041 (exit $ac_status); }; } &&
9042 { ac_try='test -s conftest$ac_exeext'
9043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9044 (eval $ac_try) 2>&5
9045 ac_status=$?
9046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047 (exit $ac_status); }; }; then
6070 LIBS="$ac_save_LIBS" 9048 LIBS=$ac_save_LIBS
6071# We can link X programs with no special library path. 9049# We can link X programs with no special library path.
6072ac_x_libraries= 9050ac_x_libraries=
6073else 9051else
6074 echo "configure: failed program was:" >&5 9052 echo "$as_me: failed program was:" >&5
6075 cat conftest.$ac_ext >&5 9053sed 's/^/| /' conftest.$ac_ext >&5
6076 rm -rf conftest* 9054
6077 LIBS="$ac_save_LIBS" 9055LIBS=$ac_save_LIBS
6078# First see if replacing the include by lib works.
6079# Check X11 before X11Rn because it is often a symlink to the current release.
6080for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ 9056for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6081 /usr/X11/lib \
6082 /usr/X11R6/lib \
6083 /usr/X11R5/lib \
6084 /usr/X11R4/lib \
6085 \
6086 /usr/lib/X11 \
6087 /usr/lib/X11R6 \
6088 /usr/lib/X11R5 \
6089 /usr/lib/X11R4 \
6090 \
6091 /usr/local/X11/lib \
6092 /usr/local/X11R6/lib \
6093 /usr/local/X11R5/lib \
6094 /usr/local/X11R4/lib \
6095 \
6096 /usr/local/lib/X11 \
6097 /usr/local/lib/X11R6 \
6098 /usr/local/lib/X11R5 \
6099 /usr/local/lib/X11R4 \
6100 \
6101 /usr/X386/lib \
6102 /usr/x386/lib \
6103 /usr/XFree86/lib/X11 \
6104 \
6105 /usr/lib \
6106 /usr/local/lib \
6107 /usr/unsupported/lib \
6108 /usr/athena/lib \
6109 /usr/local/x11r5/lib \
6110 /usr/lpp/Xamples/lib \
6111 /lib/usr/lib/X11 \
6112 \
6113 /usr/openwin/lib \
6114 /usr/openwin/share/lib \
6115 ; \
6116do 9057do
9058 # Don't even attempt the hair of trying to link an X program!
6117 for ac_extension in a so sl; do 9059 for ac_extension in a so sl; do
6118 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then 9060 if test -r $ac_dir/libXt.$ac_extension; then
6119 ac_x_libraries=$ac_dir 9061 ac_x_libraries=$ac_dir
6120 break 2 9062 break 2
6121 fi 9063 fi
6122 done 9064 done
6123done 9065done
6124fi 9066fi
6125rm -f conftest* 9067rm -f conftest.err conftest.$ac_objext \
9068 conftest$ac_exeext conftest.$ac_ext
6126fi # $ac_x_libraries = NO 9069fi # $ac_x_libraries = no
6127 9070
6128if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then 9071if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6129 # Didn't find X anywhere. Cache the known absence of X. 9072 # Didn't find X anywhere. Cache the known absence of X.
6130 ac_cv_have_x="have_x=no" 9073 ac_cv_have_x="have_x=no"
6131else 9074else
6132 # Record where we found X for the cache. 9075 # Record where we found X for the cache.
6133 ac_cv_have_x="have_x=yes \ 9076 ac_cv_have_x="have_x=yes \
6134 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" 9077 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6135fi 9078fi
6136fi 9079fi
9080
6137 fi 9081 fi
6138 eval "$ac_cv_have_x" 9082 eval "$ac_cv_have_x"
6139fi # $with_x != no 9083fi # $with_x != no
6140 9084
6141if test "$have_x" != yes; then 9085if test "$have_x" != yes; then
6142 echo "$ac_t""$have_x" 1>&6 9086 echo "$as_me:$LINENO: result: $have_x" >&5
9087echo "${ECHO_T}$have_x" >&6
6143 no_x=yes 9088 no_x=yes
6144else 9089else
6145 # If each of the values was on the command line, it overrides each guess. 9090 # If each of the values was on the command line, it overrides each guess.
6146 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 9091 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6147 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 9092 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6148 # Update the cache value to reflect the command line values. 9093 # Update the cache value to reflect the command line values.
6149 ac_cv_have_x="have_x=yes \ 9094 ac_cv_have_x="have_x=yes \
6150 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" 9095 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9096 # It might be that x_includes is empty (headers are found in the
9097 # standard search path. Then output the corresponding message
9098 ac_out_x_includes=$x_includes
9099 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
9100 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
6151 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 9101echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
6152fi 9102fi
6153 9103
9104fi
6154if test "$no_x" = yes; then 9105if test "$no_x" = yes; then
6155 # Not all programs may use this symbol, but it does not hurt to define it. 9106 # Not all programs may use this symbol, but it does not hurt to define it.
9107
6156 cat >> confdefs.h <<\EOF 9108cat >>confdefs.h <<\_ACEOF
6157#define X_DISPLAY_MISSING 1 9109#define X_DISPLAY_MISSING 1
6158EOF 9110_ACEOF
6159 9111
6160 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 9112 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6161else 9113else
6162 if test -n "$x_includes"; then 9114 if test -n "$x_includes"; then
6163 X_CFLAGS="$X_CFLAGS -I$x_includes" 9115 X_CFLAGS="$X_CFLAGS -I$x_includes"
6166 # It would also be nice to do this for all -L options, not just this one. 9118 # It would also be nice to do this for all -L options, not just this one.
6167 if test -n "$x_libraries"; then 9119 if test -n "$x_libraries"; then
6168 X_LIBS="$X_LIBS -L$x_libraries" 9120 X_LIBS="$X_LIBS -L$x_libraries"
6169 # For Solaris; some versions of Sun CC require a space after -R and 9121 # For Solaris; some versions of Sun CC require a space after -R and
6170 # others require no space. Words are not sufficient . . . . 9122 # others require no space. Words are not sufficient . . . .
6171 case "`(uname -sr) 2>/dev/null`" in 9123 case `(uname -sr) 2>/dev/null` in
6172 "SunOS 5"*) 9124 "SunOS 5"*)
9125 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6173 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 9126echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
6174echo "configure:6175: checking whether -R must be followed by a space" >&5
6175 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" 9127 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6176 cat > conftest.$ac_ext <<EOF 9128 cat >conftest.$ac_ext <<_ACEOF
6177#line 6178 "configure" 9129/* confdefs.h. */
6178#include "confdefs.h" 9130_ACEOF
9131cat confdefs.h >>conftest.$ac_ext
9132cat >>conftest.$ac_ext <<_ACEOF
9133/* end confdefs.h. */
6179 9134
6180int main() { 9135int
9136main ()
9137{
6181 9138
9139 ;
6182; return 0; } 9140 return 0;
6183EOF 9141}
6184if { (eval echo configure:6185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9142_ACEOF
9143rm -f conftest.$ac_objext conftest$ac_exeext
9144if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9145 (eval $ac_link) 2>conftest.er1
9146 ac_status=$?
9147 grep -v '^ *+' conftest.er1 >conftest.err
6185 rm -rf conftest* 9148 rm -f conftest.er1
9149 cat conftest.err >&5
9150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151 (exit $ac_status); } &&
9152 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9154 (eval $ac_try) 2>&5
9155 ac_status=$?
9156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157 (exit $ac_status); }; } &&
9158 { ac_try='test -s conftest$ac_exeext'
9159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9160 (eval $ac_try) 2>&5
9161 ac_status=$?
9162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163 (exit $ac_status); }; }; then
6186 ac_R_nospace=yes 9164 ac_R_nospace=yes
6187else 9165else
6188 echo "configure: failed program was:" >&5 9166 echo "$as_me: failed program was:" >&5
6189 cat conftest.$ac_ext >&5 9167sed 's/^/| /' conftest.$ac_ext >&5
6190 rm -rf conftest* 9168
6191 ac_R_nospace=no 9169ac_R_nospace=no
6192fi 9170fi
6193rm -f conftest* 9171rm -f conftest.err conftest.$ac_objext \
9172 conftest$ac_exeext conftest.$ac_ext
6194 if test $ac_R_nospace = yes; then 9173 if test $ac_R_nospace = yes; then
6195 echo "$ac_t""no" 1>&6 9174 echo "$as_me:$LINENO: result: no" >&5
9175echo "${ECHO_T}no" >&6
6196 X_LIBS="$X_LIBS -R$x_libraries" 9176 X_LIBS="$X_LIBS -R$x_libraries"
6197 else 9177 else
6198 LIBS="$ac_xsave_LIBS -R $x_libraries" 9178 LIBS="$ac_xsave_LIBS -R $x_libraries"
6199 cat > conftest.$ac_ext <<EOF 9179 cat >conftest.$ac_ext <<_ACEOF
6200#line 6201 "configure" 9180/* confdefs.h. */
6201#include "confdefs.h" 9181_ACEOF
9182cat confdefs.h >>conftest.$ac_ext
9183cat >>conftest.$ac_ext <<_ACEOF
9184/* end confdefs.h. */
6202 9185
6203int main() { 9186int
9187main ()
9188{
6204 9189
9190 ;
6205; return 0; } 9191 return 0;
6206EOF 9192}
6207if { (eval echo configure:6208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9193_ACEOF
9194rm -f conftest.$ac_objext conftest$ac_exeext
9195if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9196 (eval $ac_link) 2>conftest.er1
9197 ac_status=$?
9198 grep -v '^ *+' conftest.er1 >conftest.err
6208 rm -rf conftest* 9199 rm -f conftest.er1
9200 cat conftest.err >&5
9201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202 (exit $ac_status); } &&
9203 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9205 (eval $ac_try) 2>&5
9206 ac_status=$?
9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208 (exit $ac_status); }; } &&
9209 { ac_try='test -s conftest$ac_exeext'
9210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9211 (eval $ac_try) 2>&5
9212 ac_status=$?
9213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214 (exit $ac_status); }; }; then
6209 ac_R_space=yes 9215 ac_R_space=yes
6210else 9216else
6211 echo "configure: failed program was:" >&5 9217 echo "$as_me: failed program was:" >&5
6212 cat conftest.$ac_ext >&5 9218sed 's/^/| /' conftest.$ac_ext >&5
6213 rm -rf conftest* 9219
6214 ac_R_space=no 9220ac_R_space=no
6215fi 9221fi
6216rm -f conftest* 9222rm -f conftest.err conftest.$ac_objext \
9223 conftest$ac_exeext conftest.$ac_ext
6217 if test $ac_R_space = yes; then 9224 if test $ac_R_space = yes; then
6218 echo "$ac_t""yes" 1>&6 9225 echo "$as_me:$LINENO: result: yes" >&5
9226echo "${ECHO_T}yes" >&6
6219 X_LIBS="$X_LIBS -R $x_libraries" 9227 X_LIBS="$X_LIBS -R $x_libraries"
6220 else 9228 else
9229 echo "$as_me:$LINENO: result: neither works" >&5
6221 echo "$ac_t""neither works" 1>&6 9230echo "${ECHO_T}neither works" >&6
6222 fi 9231 fi
6223 fi 9232 fi
6224 LIBS="$ac_xsave_LIBS" 9233 LIBS=$ac_xsave_LIBS
6225 esac 9234 esac
6226 fi 9235 fi
6227 9236
6228 # Check for system-dependent libraries X programs must link with. 9237 # Check for system-dependent libraries X programs must link with.
6229 # Do this before checking for the system-independent R6 libraries 9238 # Do this before checking for the system-independent R6 libraries
6230 # (-lICE), since we may need -lsocket or whatever for X linking. 9239 # (-lICE), since we may need -lsocket or whatever for X linking.
6231 9240
6232 if test "$ISC" = yes; then 9241 if test "$ISC" = yes; then
6233 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 9242 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6234 else 9243 else
6235 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X 9244 # Martyn Johnson says this is needed for Ultrix, if the X
6236 # libraries were built with DECnet support. And karl@cs.umb.edu says 9245 # libraries were built with DECnet support. And Karl Berry says
6237 # the Alpha needs dnet_stub (dnet does not exist). 9246 # the Alpha needs dnet_stub (dnet does not exist).
9247 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9248 cat >conftest.$ac_ext <<_ACEOF
9249/* confdefs.h. */
9250_ACEOF
9251cat confdefs.h >>conftest.$ac_ext
9252cat >>conftest.$ac_ext <<_ACEOF
9253/* end confdefs.h. */
9254
9255/* Override any gcc2 internal prototype to avoid an error. */
9256#ifdef __cplusplus
9257extern "C"
9258#endif
9259/* We use char because int might match the return type of a gcc2
9260 builtin and then its argument prototype would still apply. */
9261char XOpenDisplay ();
9262int
9263main ()
9264{
9265XOpenDisplay ();
9266 ;
9267 return 0;
9268}
9269_ACEOF
9270rm -f conftest.$ac_objext conftest$ac_exeext
9271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9272 (eval $ac_link) 2>conftest.er1
9273 ac_status=$?
9274 grep -v '^ *+' conftest.er1 >conftest.err
9275 rm -f conftest.er1
9276 cat conftest.err >&5
9277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278 (exit $ac_status); } &&
9279 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9281 (eval $ac_try) 2>&5
9282 ac_status=$?
9283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284 (exit $ac_status); }; } &&
9285 { ac_try='test -s conftest$ac_exeext'
9286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9287 (eval $ac_try) 2>&5
9288 ac_status=$?
9289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290 (exit $ac_status); }; }; then
9291 :
9292else
9293 echo "$as_me: failed program was:" >&5
9294sed 's/^/| /' conftest.$ac_ext >&5
9295
9296echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6238 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 9297echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6239echo "configure:6240: checking for dnet_ntoa in -ldnet" >&5 9298if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6240ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6241if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6242 echo $ac_n "(cached) $ac_c" 1>&6 9299 echo $ECHO_N "(cached) $ECHO_C" >&6
6243else 9300else
6244 ac_save_LIBS="$LIBS" 9301 ac_check_lib_save_LIBS=$LIBS
6245LIBS="-ldnet $LIBS" 9302LIBS="-ldnet $LIBS"
6246cat > conftest.$ac_ext <<EOF 9303cat >conftest.$ac_ext <<_ACEOF
6247#line 6248 "configure" 9304/* confdefs.h. */
6248#include "confdefs.h" 9305_ACEOF
9306cat confdefs.h >>conftest.$ac_ext
9307cat >>conftest.$ac_ext <<_ACEOF
9308/* end confdefs.h. */
9309
6249/* Override any gcc2 internal prototype to avoid an error. */ 9310/* Override any gcc2 internal prototype to avoid an error. */
9311#ifdef __cplusplus
9312extern "C"
9313#endif
6250/* We use char because int might match the return type of a gcc2 9314/* We use char because int might match the return type of a gcc2
6251 builtin and then its argument prototype would still apply. */ 9315 builtin and then its argument prototype would still apply. */
6252char dnet_ntoa(); 9316char dnet_ntoa ();
6253 9317int
6254int main() { 9318main ()
9319{
6255dnet_ntoa() 9320dnet_ntoa ();
9321 ;
6256; return 0; } 9322 return 0;
6257EOF 9323}
6258if { (eval echo configure:6259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9324_ACEOF
9325rm -f conftest.$ac_objext conftest$ac_exeext
9326if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9327 (eval $ac_link) 2>conftest.er1
9328 ac_status=$?
9329 grep -v '^ *+' conftest.er1 >conftest.err
6259 rm -rf conftest* 9330 rm -f conftest.er1
6260 eval "ac_cv_lib_$ac_lib_var=yes" 9331 cat conftest.err >&5
9332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333 (exit $ac_status); } &&
9334 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9336 (eval $ac_try) 2>&5
9337 ac_status=$?
9338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339 (exit $ac_status); }; } &&
9340 { ac_try='test -s conftest$ac_exeext'
9341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9342 (eval $ac_try) 2>&5
9343 ac_status=$?
9344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345 (exit $ac_status); }; }; then
9346 ac_cv_lib_dnet_dnet_ntoa=yes
6261else 9347else
6262 echo "configure: failed program was:" >&5 9348 echo "$as_me: failed program was:" >&5
6263 cat conftest.$ac_ext >&5 9349sed 's/^/| /' conftest.$ac_ext >&5
6264 rm -rf conftest* 9350
6265 eval "ac_cv_lib_$ac_lib_var=no" 9351ac_cv_lib_dnet_dnet_ntoa=no
6266fi 9352fi
6267rm -f conftest* 9353rm -f conftest.err conftest.$ac_objext \
9354 conftest$ac_exeext conftest.$ac_ext
6268LIBS="$ac_save_LIBS" 9355LIBS=$ac_check_lib_save_LIBS
6269
6270fi 9356fi
6271if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 9357echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6272 echo "$ac_t""yes" 1>&6 9358echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9359if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6273 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 9360 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6274else
6275 echo "$ac_t""no" 1>&6
6276fi 9361fi
6277 9362
6278 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 9363 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9364 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6279 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 9365echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
6280echo "configure:6281: checking for dnet_ntoa in -ldnet_stub" >&5 9366if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6281ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6282if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6283 echo $ac_n "(cached) $ac_c" 1>&6 9367 echo $ECHO_N "(cached) $ECHO_C" >&6
6284else 9368else
6285 ac_save_LIBS="$LIBS" 9369 ac_check_lib_save_LIBS=$LIBS
6286LIBS="-ldnet_stub $LIBS" 9370LIBS="-ldnet_stub $LIBS"
6287cat > conftest.$ac_ext <<EOF 9371cat >conftest.$ac_ext <<_ACEOF
6288#line 6289 "configure" 9372/* confdefs.h. */
6289#include "confdefs.h" 9373_ACEOF
9374cat confdefs.h >>conftest.$ac_ext
9375cat >>conftest.$ac_ext <<_ACEOF
9376/* end confdefs.h. */
9377
6290/* Override any gcc2 internal prototype to avoid an error. */ 9378/* Override any gcc2 internal prototype to avoid an error. */
9379#ifdef __cplusplus
9380extern "C"
9381#endif
6291/* We use char because int might match the return type of a gcc2 9382/* We use char because int might match the return type of a gcc2
6292 builtin and then its argument prototype would still apply. */ 9383 builtin and then its argument prototype would still apply. */
6293char dnet_ntoa(); 9384char dnet_ntoa ();
6294 9385int
6295int main() { 9386main ()
9387{
6296dnet_ntoa() 9388dnet_ntoa ();
9389 ;
6297; return 0; } 9390 return 0;
6298EOF 9391}
6299if { (eval echo configure:6300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9392_ACEOF
9393rm -f conftest.$ac_objext conftest$ac_exeext
9394if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9395 (eval $ac_link) 2>conftest.er1
9396 ac_status=$?
9397 grep -v '^ *+' conftest.er1 >conftest.err
6300 rm -rf conftest* 9398 rm -f conftest.er1
6301 eval "ac_cv_lib_$ac_lib_var=yes" 9399 cat conftest.err >&5
9400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 (exit $ac_status); } &&
9402 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9404 (eval $ac_try) 2>&5
9405 ac_status=$?
9406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407 (exit $ac_status); }; } &&
9408 { ac_try='test -s conftest$ac_exeext'
9409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9410 (eval $ac_try) 2>&5
9411 ac_status=$?
9412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413 (exit $ac_status); }; }; then
9414 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6302else 9415else
6303 echo "configure: failed program was:" >&5 9416 echo "$as_me: failed program was:" >&5
6304 cat conftest.$ac_ext >&5 9417sed 's/^/| /' conftest.$ac_ext >&5
6305 rm -rf conftest* 9418
6306 eval "ac_cv_lib_$ac_lib_var=no" 9419ac_cv_lib_dnet_stub_dnet_ntoa=no
6307fi 9420fi
6308rm -f conftest* 9421rm -f conftest.err conftest.$ac_objext \
9422 conftest$ac_exeext conftest.$ac_ext
6309LIBS="$ac_save_LIBS" 9423LIBS=$ac_check_lib_save_LIBS
6310
6311fi 9424fi
6312if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 9425echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6313 echo "$ac_t""yes" 1>&6 9426echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
9427if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
6314 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 9428 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6315else
6316 echo "$ac_t""no" 1>&6
6317fi 9429fi
6318 9430
6319 fi 9431 fi
9432fi
9433rm -f conftest.err conftest.$ac_objext \
9434 conftest$ac_exeext conftest.$ac_ext
9435 LIBS="$ac_xsave_LIBS"
6320 9436
6321 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 9437 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6322 # to get the SysV transport functions. 9438 # to get the SysV transport functions.
6323 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) 9439 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6324 # needs -lnsl. 9440 # needs -lnsl.
6325 # The nsl library prevents programs from opening the X display 9441 # The nsl library prevents programs from opening the X display
6326 # on Irix 5.2, according to dickey@clark.net. 9442 # on Irix 5.2, according to T.E. Dickey.
9443 # The functions gethostbyname, getservbyname, and inet_addr are
9444 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
9445 echo "$as_me:$LINENO: checking for gethostbyname" >&5
6327 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 9446echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
6328echo "configure:6329: checking for gethostbyname" >&5
6329if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then 9447if test "${ac_cv_func_gethostbyname+set}" = set; then
6330 echo $ac_n "(cached) $ac_c" 1>&6 9448 echo $ECHO_N "(cached) $ECHO_C" >&6
6331else 9449else
6332 cat > conftest.$ac_ext <<EOF 9450 cat >conftest.$ac_ext <<_ACEOF
6333#line 6334 "configure" 9451/* confdefs.h. */
6334#include "confdefs.h" 9452_ACEOF
9453cat confdefs.h >>conftest.$ac_ext
9454cat >>conftest.$ac_ext <<_ACEOF
9455/* end confdefs.h. */
9456/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
9457 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9458#define gethostbyname innocuous_gethostbyname
9459
6335/* System header to define __stub macros and hopefully few prototypes, 9460/* System header to define __stub macros and hopefully few prototypes,
6336 which can conflict with char gethostbyname(); below. */ 9461 which can conflict with char gethostbyname (); below.
9462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9463 <limits.h> exists even on freestanding compilers. */
9464
9465#ifdef __STDC__
9466# include <limits.h>
9467#else
6337#include <assert.h> 9468# include <assert.h>
9469#endif
9470
9471#undef gethostbyname
9472
6338/* Override any gcc2 internal prototype to avoid an error. */ 9473/* Override any gcc2 internal prototype to avoid an error. */
9474#ifdef __cplusplus
9475extern "C"
9476{
9477#endif
6339/* We use char because int might match the return type of a gcc2 9478/* We use char because int might match the return type of a gcc2
6340 builtin and then its argument prototype would still apply. */ 9479 builtin and then its argument prototype would still apply. */
6341char gethostbyname(); 9480char gethostbyname ();
6342
6343int main() {
6344
6345/* The GNU C library defines this for functions which it implements 9481/* The GNU C library defines this for functions which it implements
6346 to always fail with ENOSYS. Some functions are actually named 9482 to always fail with ENOSYS. Some functions are actually named
6347 something starting with __ and the normal name is an alias. */ 9483 something starting with __ and the normal name is an alias. */
6348#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) 9484#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6349choke me 9485choke me
6350#else 9486#else
6351gethostbyname(); 9487char (*f) () = gethostbyname;
6352#endif 9488#endif
9489#ifdef __cplusplus
9490}
9491#endif
6353 9492
9493int
9494main ()
9495{
9496return f != gethostbyname;
9497 ;
6354; return 0; } 9498 return 0;
6355EOF 9499}
6356if { (eval echo configure:6357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9500_ACEOF
9501rm -f conftest.$ac_objext conftest$ac_exeext
9502if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9503 (eval $ac_link) 2>conftest.er1
9504 ac_status=$?
9505 grep -v '^ *+' conftest.er1 >conftest.err
6357 rm -rf conftest* 9506 rm -f conftest.er1
9507 cat conftest.err >&5
9508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509 (exit $ac_status); } &&
9510 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9512 (eval $ac_try) 2>&5
9513 ac_status=$?
9514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515 (exit $ac_status); }; } &&
9516 { ac_try='test -s conftest$ac_exeext'
9517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9518 (eval $ac_try) 2>&5
9519 ac_status=$?
9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 (exit $ac_status); }; }; then
6358 eval "ac_cv_func_gethostbyname=yes" 9522 ac_cv_func_gethostbyname=yes
6359else 9523else
6360 echo "configure: failed program was:" >&5 9524 echo "$as_me: failed program was:" >&5
6361 cat conftest.$ac_ext >&5 9525sed 's/^/| /' conftest.$ac_ext >&5
6362 rm -rf conftest* 9526
6363 eval "ac_cv_func_gethostbyname=no" 9527ac_cv_func_gethostbyname=no
6364fi 9528fi
6365rm -f conftest* 9529rm -f conftest.err conftest.$ac_objext \
9530 conftest$ac_exeext conftest.$ac_ext
6366fi 9531fi
6367 9532echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6368if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then 9533echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
6369 echo "$ac_t""yes" 1>&6
6370 :
6371else
6372 echo "$ac_t""no" 1>&6
6373fi
6374 9534
6375 if test $ac_cv_func_gethostbyname = no; then 9535 if test $ac_cv_func_gethostbyname = no; then
9536 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6376 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 9537echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6377echo "configure:6378: checking for gethostbyname in -lnsl" >&5 9538if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6378ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
6379if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6380 echo $ac_n "(cached) $ac_c" 1>&6 9539 echo $ECHO_N "(cached) $ECHO_C" >&6
6381else 9540else
6382 ac_save_LIBS="$LIBS" 9541 ac_check_lib_save_LIBS=$LIBS
6383LIBS="-lnsl $LIBS" 9542LIBS="-lnsl $LIBS"
6384cat > conftest.$ac_ext <<EOF 9543cat >conftest.$ac_ext <<_ACEOF
6385#line 6386 "configure" 9544/* confdefs.h. */
6386#include "confdefs.h" 9545_ACEOF
9546cat confdefs.h >>conftest.$ac_ext
9547cat >>conftest.$ac_ext <<_ACEOF
9548/* end confdefs.h. */
9549
6387/* Override any gcc2 internal prototype to avoid an error. */ 9550/* Override any gcc2 internal prototype to avoid an error. */
9551#ifdef __cplusplus
9552extern "C"
9553#endif
6388/* We use char because int might match the return type of a gcc2 9554/* We use char because int might match the return type of a gcc2
6389 builtin and then its argument prototype would still apply. */ 9555 builtin and then its argument prototype would still apply. */
6390char gethostbyname(); 9556char gethostbyname ();
6391 9557int
6392int main() { 9558main ()
9559{
6393gethostbyname() 9560gethostbyname ();
9561 ;
6394; return 0; } 9562 return 0;
6395EOF 9563}
6396if { (eval echo configure:6397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9564_ACEOF
9565rm -f conftest.$ac_objext conftest$ac_exeext
9566if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9567 (eval $ac_link) 2>conftest.er1
9568 ac_status=$?
9569 grep -v '^ *+' conftest.er1 >conftest.err
6397 rm -rf conftest* 9570 rm -f conftest.er1
6398 eval "ac_cv_lib_$ac_lib_var=yes" 9571 cat conftest.err >&5
9572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573 (exit $ac_status); } &&
9574 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9576 (eval $ac_try) 2>&5
9577 ac_status=$?
9578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579 (exit $ac_status); }; } &&
9580 { ac_try='test -s conftest$ac_exeext'
9581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9582 (eval $ac_try) 2>&5
9583 ac_status=$?
9584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 (exit $ac_status); }; }; then
9586 ac_cv_lib_nsl_gethostbyname=yes
6399else 9587else
6400 echo "configure: failed program was:" >&5 9588 echo "$as_me: failed program was:" >&5
6401 cat conftest.$ac_ext >&5 9589sed 's/^/| /' conftest.$ac_ext >&5
6402 rm -rf conftest* 9590
6403 eval "ac_cv_lib_$ac_lib_var=no" 9591ac_cv_lib_nsl_gethostbyname=no
6404fi 9592fi
6405rm -f conftest* 9593rm -f conftest.err conftest.$ac_objext \
9594 conftest$ac_exeext conftest.$ac_ext
6406LIBS="$ac_save_LIBS" 9595LIBS=$ac_check_lib_save_LIBS
6407
6408fi 9596fi
6409if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 9597echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6410 echo "$ac_t""yes" 1>&6 9598echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9599if test $ac_cv_lib_nsl_gethostbyname = yes; then
6411 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 9600 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6412else
6413 echo "$ac_t""no" 1>&6
6414fi 9601fi
6415 9602
9603 if test $ac_cv_lib_nsl_gethostbyname = no; then
9604 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
9605echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9606if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9607 echo $ECHO_N "(cached) $ECHO_C" >&6
9608else
9609 ac_check_lib_save_LIBS=$LIBS
9610LIBS="-lbsd $LIBS"
9611cat >conftest.$ac_ext <<_ACEOF
9612/* confdefs.h. */
9613_ACEOF
9614cat confdefs.h >>conftest.$ac_ext
9615cat >>conftest.$ac_ext <<_ACEOF
9616/* end confdefs.h. */
9617
9618/* Override any gcc2 internal prototype to avoid an error. */
9619#ifdef __cplusplus
9620extern "C"
9621#endif
9622/* We use char because int might match the return type of a gcc2
9623 builtin and then its argument prototype would still apply. */
9624char gethostbyname ();
9625int
9626main ()
9627{
9628gethostbyname ();
9629 ;
9630 return 0;
9631}
9632_ACEOF
9633rm -f conftest.$ac_objext conftest$ac_exeext
9634if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9635 (eval $ac_link) 2>conftest.er1
9636 ac_status=$?
9637 grep -v '^ *+' conftest.er1 >conftest.err
9638 rm -f conftest.er1
9639 cat conftest.err >&5
9640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641 (exit $ac_status); } &&
9642 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9644 (eval $ac_try) 2>&5
9645 ac_status=$?
9646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647 (exit $ac_status); }; } &&
9648 { ac_try='test -s conftest$ac_exeext'
9649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9650 (eval $ac_try) 2>&5
9651 ac_status=$?
9652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653 (exit $ac_status); }; }; then
9654 ac_cv_lib_bsd_gethostbyname=yes
9655else
9656 echo "$as_me: failed program was:" >&5
9657sed 's/^/| /' conftest.$ac_ext >&5
9658
9659ac_cv_lib_bsd_gethostbyname=no
9660fi
9661rm -f conftest.err conftest.$ac_objext \
9662 conftest$ac_exeext conftest.$ac_ext
9663LIBS=$ac_check_lib_save_LIBS
9664fi
9665echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
9666echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
9667if test $ac_cv_lib_bsd_gethostbyname = yes; then
9668 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9669fi
9670
9671 fi
6416 fi 9672 fi
6417 9673
6418 # lieder@skyler.mavd.honeywell.com says without -lsocket, 9674 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6419 # socket/setsockopt and other routines are undefined under SCO ODT 9675 # socket/setsockopt and other routines are undefined under SCO ODT
6420 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 9676 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6421 # on later versions), says simon@lia.di.epfl.ch: it contains 9677 # on later versions), says Simon Leinen: it contains gethostby*
6422 # gethostby* variants that don't use the nameserver (or something). 9678 # variants that don't use the name server (or something). -lsocket
6423 # -lsocket must be given before -lnsl if both are needed. 9679 # must be given before -lnsl if both are needed. We assume that
6424 # We assume that if connect needs -lnsl, so does gethostbyname. 9680 # if connect needs -lnsl, so does gethostbyname.
9681 echo "$as_me:$LINENO: checking for connect" >&5
6425 echo $ac_n "checking for connect""... $ac_c" 1>&6 9682echo $ECHO_N "checking for connect... $ECHO_C" >&6
6426echo "configure:6427: checking for connect" >&5
6427if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then 9683if test "${ac_cv_func_connect+set}" = set; then
6428 echo $ac_n "(cached) $ac_c" 1>&6 9684 echo $ECHO_N "(cached) $ECHO_C" >&6
6429else 9685else
6430 cat > conftest.$ac_ext <<EOF 9686 cat >conftest.$ac_ext <<_ACEOF
6431#line 6432 "configure" 9687/* confdefs.h. */
6432#include "confdefs.h" 9688_ACEOF
9689cat confdefs.h >>conftest.$ac_ext
9690cat >>conftest.$ac_ext <<_ACEOF
9691/* end confdefs.h. */
9692/* Define connect to an innocuous variant, in case <limits.h> declares connect.
9693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9694#define connect innocuous_connect
9695
6433/* System header to define __stub macros and hopefully few prototypes, 9696/* System header to define __stub macros and hopefully few prototypes,
6434 which can conflict with char connect(); below. */ 9697 which can conflict with char connect (); below.
9698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9699 <limits.h> exists even on freestanding compilers. */
9700
9701#ifdef __STDC__
9702# include <limits.h>
9703#else
6435#include <assert.h> 9704# include <assert.h>
9705#endif
9706
9707#undef connect
9708
6436/* Override any gcc2 internal prototype to avoid an error. */ 9709/* Override any gcc2 internal prototype to avoid an error. */
9710#ifdef __cplusplus
9711extern "C"
9712{
9713#endif
6437/* We use char because int might match the return type of a gcc2 9714/* We use char because int might match the return type of a gcc2
6438 builtin and then its argument prototype would still apply. */ 9715 builtin and then its argument prototype would still apply. */
6439char connect(); 9716char connect ();
6440
6441int main() {
6442
6443/* The GNU C library defines this for functions which it implements 9717/* The GNU C library defines this for functions which it implements
6444 to always fail with ENOSYS. Some functions are actually named 9718 to always fail with ENOSYS. Some functions are actually named
6445 something starting with __ and the normal name is an alias. */ 9719 something starting with __ and the normal name is an alias. */
6446#if defined (__stub_connect) || defined (__stub___connect) 9720#if defined (__stub_connect) || defined (__stub___connect)
6447choke me 9721choke me
6448#else 9722#else
6449connect(); 9723char (*f) () = connect;
6450#endif 9724#endif
9725#ifdef __cplusplus
9726}
9727#endif
6451 9728
9729int
9730main ()
9731{
9732return f != connect;
9733 ;
6452; return 0; } 9734 return 0;
6453EOF 9735}
6454if { (eval echo configure:6455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9736_ACEOF
9737rm -f conftest.$ac_objext conftest$ac_exeext
9738if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9739 (eval $ac_link) 2>conftest.er1
9740 ac_status=$?
9741 grep -v '^ *+' conftest.er1 >conftest.err
6455 rm -rf conftest* 9742 rm -f conftest.er1
9743 cat conftest.err >&5
9744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745 (exit $ac_status); } &&
9746 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9748 (eval $ac_try) 2>&5
9749 ac_status=$?
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); }; } &&
9752 { ac_try='test -s conftest$ac_exeext'
9753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9754 (eval $ac_try) 2>&5
9755 ac_status=$?
9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757 (exit $ac_status); }; }; then
6456 eval "ac_cv_func_connect=yes" 9758 ac_cv_func_connect=yes
6457else 9759else
6458 echo "configure: failed program was:" >&5 9760 echo "$as_me: failed program was:" >&5
6459 cat conftest.$ac_ext >&5 9761sed 's/^/| /' conftest.$ac_ext >&5
6460 rm -rf conftest* 9762
6461 eval "ac_cv_func_connect=no" 9763ac_cv_func_connect=no
6462fi 9764fi
6463rm -f conftest* 9765rm -f conftest.err conftest.$ac_objext \
9766 conftest$ac_exeext conftest.$ac_ext
6464fi 9767fi
6465 9768echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6466if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then 9769echo "${ECHO_T}$ac_cv_func_connect" >&6
6467 echo "$ac_t""yes" 1>&6
6468 :
6469else
6470 echo "$ac_t""no" 1>&6
6471fi
6472 9770
6473 if test $ac_cv_func_connect = no; then 9771 if test $ac_cv_func_connect = no; then
9772 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6474 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 9773echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6475echo "configure:6476: checking for connect in -lsocket" >&5 9774if test "${ac_cv_lib_socket_connect+set}" = set; then
6476ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
6477if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6478 echo $ac_n "(cached) $ac_c" 1>&6 9775 echo $ECHO_N "(cached) $ECHO_C" >&6
6479else 9776else
6480 ac_save_LIBS="$LIBS" 9777 ac_check_lib_save_LIBS=$LIBS
6481LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 9778LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6482cat > conftest.$ac_ext <<EOF 9779cat >conftest.$ac_ext <<_ACEOF
6483#line 6484 "configure" 9780/* confdefs.h. */
6484#include "confdefs.h" 9781_ACEOF
9782cat confdefs.h >>conftest.$ac_ext
9783cat >>conftest.$ac_ext <<_ACEOF
9784/* end confdefs.h. */
9785
6485/* Override any gcc2 internal prototype to avoid an error. */ 9786/* Override any gcc2 internal prototype to avoid an error. */
9787#ifdef __cplusplus
9788extern "C"
9789#endif
6486/* We use char because int might match the return type of a gcc2 9790/* We use char because int might match the return type of a gcc2
6487 builtin and then its argument prototype would still apply. */ 9791 builtin and then its argument prototype would still apply. */
6488char connect(); 9792char connect ();
6489 9793int
6490int main() { 9794main ()
9795{
6491connect() 9796connect ();
9797 ;
6492; return 0; } 9798 return 0;
6493EOF 9799}
6494if { (eval echo configure:6495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9800_ACEOF
9801rm -f conftest.$ac_objext conftest$ac_exeext
9802if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9803 (eval $ac_link) 2>conftest.er1
9804 ac_status=$?
9805 grep -v '^ *+' conftest.er1 >conftest.err
6495 rm -rf conftest* 9806 rm -f conftest.er1
6496 eval "ac_cv_lib_$ac_lib_var=yes" 9807 cat conftest.err >&5
9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809 (exit $ac_status); } &&
9810 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9812 (eval $ac_try) 2>&5
9813 ac_status=$?
9814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815 (exit $ac_status); }; } &&
9816 { ac_try='test -s conftest$ac_exeext'
9817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9818 (eval $ac_try) 2>&5
9819 ac_status=$?
9820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821 (exit $ac_status); }; }; then
9822 ac_cv_lib_socket_connect=yes
6497else 9823else
6498 echo "configure: failed program was:" >&5 9824 echo "$as_me: failed program was:" >&5
6499 cat conftest.$ac_ext >&5 9825sed 's/^/| /' conftest.$ac_ext >&5
6500 rm -rf conftest* 9826
6501 eval "ac_cv_lib_$ac_lib_var=no" 9827ac_cv_lib_socket_connect=no
6502fi 9828fi
6503rm -f conftest* 9829rm -f conftest.err conftest.$ac_objext \
9830 conftest$ac_exeext conftest.$ac_ext
6504LIBS="$ac_save_LIBS" 9831LIBS=$ac_check_lib_save_LIBS
6505
6506fi 9832fi
6507if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 9833echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6508 echo "$ac_t""yes" 1>&6 9834echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
9835if test $ac_cv_lib_socket_connect = yes; then
6509 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 9836 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6510else
6511 echo "$ac_t""no" 1>&6
6512fi 9837fi
6513 9838
6514 fi 9839 fi
6515 9840
6516 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. 9841 # Guillermo Gomez says -lposix is necessary on A/UX.
9842 echo "$as_me:$LINENO: checking for remove" >&5
6517 echo $ac_n "checking for remove""... $ac_c" 1>&6 9843echo $ECHO_N "checking for remove... $ECHO_C" >&6
6518echo "configure:6519: checking for remove" >&5
6519if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then 9844if test "${ac_cv_func_remove+set}" = set; then
6520 echo $ac_n "(cached) $ac_c" 1>&6 9845 echo $ECHO_N "(cached) $ECHO_C" >&6
6521else 9846else
6522 cat > conftest.$ac_ext <<EOF 9847 cat >conftest.$ac_ext <<_ACEOF
6523#line 6524 "configure" 9848/* confdefs.h. */
6524#include "confdefs.h" 9849_ACEOF
9850cat confdefs.h >>conftest.$ac_ext
9851cat >>conftest.$ac_ext <<_ACEOF
9852/* end confdefs.h. */
9853/* Define remove to an innocuous variant, in case <limits.h> declares remove.
9854 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9855#define remove innocuous_remove
9856
6525/* System header to define __stub macros and hopefully few prototypes, 9857/* System header to define __stub macros and hopefully few prototypes,
6526 which can conflict with char remove(); below. */ 9858 which can conflict with char remove (); below.
9859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9860 <limits.h> exists even on freestanding compilers. */
9861
9862#ifdef __STDC__
9863# include <limits.h>
9864#else
6527#include <assert.h> 9865# include <assert.h>
9866#endif
9867
9868#undef remove
9869
6528/* Override any gcc2 internal prototype to avoid an error. */ 9870/* Override any gcc2 internal prototype to avoid an error. */
9871#ifdef __cplusplus
9872extern "C"
9873{
9874#endif
6529/* We use char because int might match the return type of a gcc2 9875/* We use char because int might match the return type of a gcc2
6530 builtin and then its argument prototype would still apply. */ 9876 builtin and then its argument prototype would still apply. */
6531char remove(); 9877char remove ();
6532
6533int main() {
6534
6535/* The GNU C library defines this for functions which it implements 9878/* The GNU C library defines this for functions which it implements
6536 to always fail with ENOSYS. Some functions are actually named 9879 to always fail with ENOSYS. Some functions are actually named
6537 something starting with __ and the normal name is an alias. */ 9880 something starting with __ and the normal name is an alias. */
6538#if defined (__stub_remove) || defined (__stub___remove) 9881#if defined (__stub_remove) || defined (__stub___remove)
6539choke me 9882choke me
6540#else 9883#else
6541remove(); 9884char (*f) () = remove;
6542#endif 9885#endif
9886#ifdef __cplusplus
9887}
9888#endif
6543 9889
9890int
9891main ()
9892{
9893return f != remove;
9894 ;
6544; return 0; } 9895 return 0;
6545EOF 9896}
6546if { (eval echo configure:6547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9897_ACEOF
9898rm -f conftest.$ac_objext conftest$ac_exeext
9899if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9900 (eval $ac_link) 2>conftest.er1
9901 ac_status=$?
9902 grep -v '^ *+' conftest.er1 >conftest.err
6547 rm -rf conftest* 9903 rm -f conftest.er1
9904 cat conftest.err >&5
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); } &&
9907 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9909 (eval $ac_try) 2>&5
9910 ac_status=$?
9911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912 (exit $ac_status); }; } &&
9913 { ac_try='test -s conftest$ac_exeext'
9914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9915 (eval $ac_try) 2>&5
9916 ac_status=$?
9917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918 (exit $ac_status); }; }; then
6548 eval "ac_cv_func_remove=yes" 9919 ac_cv_func_remove=yes
6549else 9920else
6550 echo "configure: failed program was:" >&5 9921 echo "$as_me: failed program was:" >&5
6551 cat conftest.$ac_ext >&5 9922sed 's/^/| /' conftest.$ac_ext >&5
6552 rm -rf conftest* 9923
6553 eval "ac_cv_func_remove=no" 9924ac_cv_func_remove=no
6554fi 9925fi
6555rm -f conftest* 9926rm -f conftest.err conftest.$ac_objext \
9927 conftest$ac_exeext conftest.$ac_ext
6556fi 9928fi
6557 9929echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6558if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then 9930echo "${ECHO_T}$ac_cv_func_remove" >&6
6559 echo "$ac_t""yes" 1>&6
6560 :
6561else
6562 echo "$ac_t""no" 1>&6
6563fi
6564 9931
6565 if test $ac_cv_func_remove = no; then 9932 if test $ac_cv_func_remove = no; then
9933 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6566 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 9934echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
6567echo "configure:6568: checking for remove in -lposix" >&5 9935if test "${ac_cv_lib_posix_remove+set}" = set; then
6568ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
6569if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6570 echo $ac_n "(cached) $ac_c" 1>&6 9936 echo $ECHO_N "(cached) $ECHO_C" >&6
6571else 9937else
6572 ac_save_LIBS="$LIBS" 9938 ac_check_lib_save_LIBS=$LIBS
6573LIBS="-lposix $LIBS" 9939LIBS="-lposix $LIBS"
6574cat > conftest.$ac_ext <<EOF 9940cat >conftest.$ac_ext <<_ACEOF
6575#line 6576 "configure" 9941/* confdefs.h. */
6576#include "confdefs.h" 9942_ACEOF
9943cat confdefs.h >>conftest.$ac_ext
9944cat >>conftest.$ac_ext <<_ACEOF
9945/* end confdefs.h. */
9946
6577/* Override any gcc2 internal prototype to avoid an error. */ 9947/* Override any gcc2 internal prototype to avoid an error. */
9948#ifdef __cplusplus
9949extern "C"
9950#endif
6578/* We use char because int might match the return type of a gcc2 9951/* We use char because int might match the return type of a gcc2
6579 builtin and then its argument prototype would still apply. */ 9952 builtin and then its argument prototype would still apply. */
6580char remove(); 9953char remove ();
6581 9954int
6582int main() { 9955main ()
9956{
6583remove() 9957remove ();
9958 ;
6584; return 0; } 9959 return 0;
6585EOF 9960}
6586if { (eval echo configure:6587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9961_ACEOF
9962rm -f conftest.$ac_objext conftest$ac_exeext
9963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9964 (eval $ac_link) 2>conftest.er1
9965 ac_status=$?
9966 grep -v '^ *+' conftest.er1 >conftest.err
6587 rm -rf conftest* 9967 rm -f conftest.er1
6588 eval "ac_cv_lib_$ac_lib_var=yes" 9968 cat conftest.err >&5
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); } &&
9971 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9973 (eval $ac_try) 2>&5
9974 ac_status=$?
9975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976 (exit $ac_status); }; } &&
9977 { ac_try='test -s conftest$ac_exeext'
9978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9979 (eval $ac_try) 2>&5
9980 ac_status=$?
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); }; }; then
9983 ac_cv_lib_posix_remove=yes
6589else 9984else
6590 echo "configure: failed program was:" >&5 9985 echo "$as_me: failed program was:" >&5
6591 cat conftest.$ac_ext >&5 9986sed 's/^/| /' conftest.$ac_ext >&5
6592 rm -rf conftest* 9987
6593 eval "ac_cv_lib_$ac_lib_var=no" 9988ac_cv_lib_posix_remove=no
6594fi 9989fi
6595rm -f conftest* 9990rm -f conftest.err conftest.$ac_objext \
9991 conftest$ac_exeext conftest.$ac_ext
6596LIBS="$ac_save_LIBS" 9992LIBS=$ac_check_lib_save_LIBS
6597
6598fi 9993fi
6599if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 9994echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6600 echo "$ac_t""yes" 1>&6 9995echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
9996if test $ac_cv_lib_posix_remove = yes; then
6601 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 9997 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6602else
6603 echo "$ac_t""no" 1>&6
6604fi 9998fi
6605 9999
6606 fi 10000 fi
6607 10001
6608 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 10002 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10003 echo "$as_me:$LINENO: checking for shmat" >&5
6609 echo $ac_n "checking for shmat""... $ac_c" 1>&6 10004echo $ECHO_N "checking for shmat... $ECHO_C" >&6
6610echo "configure:6611: checking for shmat" >&5
6611if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then 10005if test "${ac_cv_func_shmat+set}" = set; then
6612 echo $ac_n "(cached) $ac_c" 1>&6 10006 echo $ECHO_N "(cached) $ECHO_C" >&6
6613else 10007else
6614 cat > conftest.$ac_ext <<EOF 10008 cat >conftest.$ac_ext <<_ACEOF
6615#line 6616 "configure" 10009/* confdefs.h. */
6616#include "confdefs.h" 10010_ACEOF
10011cat confdefs.h >>conftest.$ac_ext
10012cat >>conftest.$ac_ext <<_ACEOF
10013/* end confdefs.h. */
10014/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
10015 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10016#define shmat innocuous_shmat
10017
6617/* System header to define __stub macros and hopefully few prototypes, 10018/* System header to define __stub macros and hopefully few prototypes,
6618 which can conflict with char shmat(); below. */ 10019 which can conflict with char shmat (); below.
10020 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10021 <limits.h> exists even on freestanding compilers. */
10022
10023#ifdef __STDC__
10024# include <limits.h>
10025#else
6619#include <assert.h> 10026# include <assert.h>
10027#endif
10028
10029#undef shmat
10030
6620/* Override any gcc2 internal prototype to avoid an error. */ 10031/* Override any gcc2 internal prototype to avoid an error. */
10032#ifdef __cplusplus
10033extern "C"
10034{
10035#endif
6621/* We use char because int might match the return type of a gcc2 10036/* We use char because int might match the return type of a gcc2
6622 builtin and then its argument prototype would still apply. */ 10037 builtin and then its argument prototype would still apply. */
6623char shmat(); 10038char shmat ();
6624
6625int main() {
6626
6627/* The GNU C library defines this for functions which it implements 10039/* The GNU C library defines this for functions which it implements
6628 to always fail with ENOSYS. Some functions are actually named 10040 to always fail with ENOSYS. Some functions are actually named
6629 something starting with __ and the normal name is an alias. */ 10041 something starting with __ and the normal name is an alias. */
6630#if defined (__stub_shmat) || defined (__stub___shmat) 10042#if defined (__stub_shmat) || defined (__stub___shmat)
6631choke me 10043choke me
6632#else 10044#else
6633shmat(); 10045char (*f) () = shmat;
6634#endif 10046#endif
10047#ifdef __cplusplus
10048}
10049#endif
6635 10050
10051int
10052main ()
10053{
10054return f != shmat;
10055 ;
6636; return 0; } 10056 return 0;
6637EOF 10057}
6638if { (eval echo configure:6639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10058_ACEOF
10059rm -f conftest.$ac_objext conftest$ac_exeext
10060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10061 (eval $ac_link) 2>conftest.er1
10062 ac_status=$?
10063 grep -v '^ *+' conftest.er1 >conftest.err
6639 rm -rf conftest* 10064 rm -f conftest.er1
10065 cat conftest.err >&5
10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 (exit $ac_status); } &&
10068 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10070 (eval $ac_try) 2>&5
10071 ac_status=$?
10072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073 (exit $ac_status); }; } &&
10074 { ac_try='test -s conftest$ac_exeext'
10075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10076 (eval $ac_try) 2>&5
10077 ac_status=$?
10078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079 (exit $ac_status); }; }; then
6640 eval "ac_cv_func_shmat=yes" 10080 ac_cv_func_shmat=yes
6641else 10081else
6642 echo "configure: failed program was:" >&5 10082 echo "$as_me: failed program was:" >&5
6643 cat conftest.$ac_ext >&5 10083sed 's/^/| /' conftest.$ac_ext >&5
6644 rm -rf conftest* 10084
6645 eval "ac_cv_func_shmat=no" 10085ac_cv_func_shmat=no
6646fi 10086fi
6647rm -f conftest* 10087rm -f conftest.err conftest.$ac_objext \
10088 conftest$ac_exeext conftest.$ac_ext
6648fi 10089fi
6649 10090echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6650if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then 10091echo "${ECHO_T}$ac_cv_func_shmat" >&6
6651 echo "$ac_t""yes" 1>&6
6652 :
6653else
6654 echo "$ac_t""no" 1>&6
6655fi
6656 10092
6657 if test $ac_cv_func_shmat = no; then 10093 if test $ac_cv_func_shmat = no; then
10094 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6658 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 10095echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
6659echo "configure:6660: checking for shmat in -lipc" >&5 10096if test "${ac_cv_lib_ipc_shmat+set}" = set; then
6660ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
6661if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6662 echo $ac_n "(cached) $ac_c" 1>&6 10097 echo $ECHO_N "(cached) $ECHO_C" >&6
6663else 10098else
6664 ac_save_LIBS="$LIBS" 10099 ac_check_lib_save_LIBS=$LIBS
6665LIBS="-lipc $LIBS" 10100LIBS="-lipc $LIBS"
6666cat > conftest.$ac_ext <<EOF 10101cat >conftest.$ac_ext <<_ACEOF
6667#line 6668 "configure" 10102/* confdefs.h. */
6668#include "confdefs.h" 10103_ACEOF
10104cat confdefs.h >>conftest.$ac_ext
10105cat >>conftest.$ac_ext <<_ACEOF
10106/* end confdefs.h. */
10107
6669/* Override any gcc2 internal prototype to avoid an error. */ 10108/* Override any gcc2 internal prototype to avoid an error. */
10109#ifdef __cplusplus
10110extern "C"
10111#endif
6670/* We use char because int might match the return type of a gcc2 10112/* We use char because int might match the return type of a gcc2
6671 builtin and then its argument prototype would still apply. */ 10113 builtin and then its argument prototype would still apply. */
6672char shmat(); 10114char shmat ();
6673 10115int
6674int main() { 10116main ()
10117{
6675shmat() 10118shmat ();
10119 ;
6676; return 0; } 10120 return 0;
6677EOF 10121}
6678if { (eval echo configure:6679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10122_ACEOF
10123rm -f conftest.$ac_objext conftest$ac_exeext
10124if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10125 (eval $ac_link) 2>conftest.er1
10126 ac_status=$?
10127 grep -v '^ *+' conftest.er1 >conftest.err
6679 rm -rf conftest* 10128 rm -f conftest.er1
6680 eval "ac_cv_lib_$ac_lib_var=yes" 10129 cat conftest.err >&5
10130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131 (exit $ac_status); } &&
10132 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10134 (eval $ac_try) 2>&5
10135 ac_status=$?
10136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137 (exit $ac_status); }; } &&
10138 { ac_try='test -s conftest$ac_exeext'
10139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10140 (eval $ac_try) 2>&5
10141 ac_status=$?
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); }; }; then
10144 ac_cv_lib_ipc_shmat=yes
6681else 10145else
6682 echo "configure: failed program was:" >&5 10146 echo "$as_me: failed program was:" >&5
6683 cat conftest.$ac_ext >&5 10147sed 's/^/| /' conftest.$ac_ext >&5
6684 rm -rf conftest* 10148
6685 eval "ac_cv_lib_$ac_lib_var=no" 10149ac_cv_lib_ipc_shmat=no
6686fi 10150fi
6687rm -f conftest* 10151rm -f conftest.err conftest.$ac_objext \
10152 conftest$ac_exeext conftest.$ac_ext
6688LIBS="$ac_save_LIBS" 10153LIBS=$ac_check_lib_save_LIBS
6689
6690fi 10154fi
6691if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 10155echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6692 echo "$ac_t""yes" 1>&6 10156echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
10157if test $ac_cv_lib_ipc_shmat = yes; then
6693 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 10158 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6694else
6695 echo "$ac_t""no" 1>&6
6696fi 10159fi
6697 10160
6698 fi 10161 fi
6699 fi 10162 fi
6700 10163
6701 # Check for libraries that X11R6 Xt/Xaw programs need. 10164 # Check for libraries that X11R6 Xt/Xaw programs need.
6702 ac_save_LDFLAGS="$LDFLAGS" 10165 ac_save_LDFLAGS=$LDFLAGS
6703 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 10166 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6704 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 10167 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6705 # check for ICE first), but we must link in the order -lSM -lICE or 10168 # check for ICE first), but we must link in the order -lSM -lICE or
6706 # we get undefined symbols. So assume we have SM if we have ICE. 10169 # we get undefined symbols. So assume we have SM if we have ICE.
6707 # These have to be linked with before -lX11, unlike the other 10170 # These have to be linked with before -lX11, unlike the other
6708 # libraries we check for below, so use a different variable. 10171 # libraries we check for below, so use a different variable.
6709 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. 10172 # John Interrante, Karl Berry
10173 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6710 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 10174echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6711echo "configure:6712: checking for IceConnectionNumber in -lICE" >&5 10175if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6712ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
6713if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6714 echo $ac_n "(cached) $ac_c" 1>&6 10176 echo $ECHO_N "(cached) $ECHO_C" >&6
6715else 10177else
6716 ac_save_LIBS="$LIBS" 10178 ac_check_lib_save_LIBS=$LIBS
6717LIBS="-lICE $X_EXTRA_LIBS $LIBS" 10179LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6718cat > conftest.$ac_ext <<EOF 10180cat >conftest.$ac_ext <<_ACEOF
6719#line 6720 "configure" 10181/* confdefs.h. */
6720#include "confdefs.h" 10182_ACEOF
10183cat confdefs.h >>conftest.$ac_ext
10184cat >>conftest.$ac_ext <<_ACEOF
10185/* end confdefs.h. */
10186
6721/* Override any gcc2 internal prototype to avoid an error. */ 10187/* Override any gcc2 internal prototype to avoid an error. */
10188#ifdef __cplusplus
10189extern "C"
10190#endif
6722/* We use char because int might match the return type of a gcc2 10191/* We use char because int might match the return type of a gcc2
6723 builtin and then its argument prototype would still apply. */ 10192 builtin and then its argument prototype would still apply. */
6724char IceConnectionNumber(); 10193char IceConnectionNumber ();
6725 10194int
6726int main() { 10195main ()
10196{
6727IceConnectionNumber() 10197IceConnectionNumber ();
10198 ;
6728; return 0; } 10199 return 0;
6729EOF 10200}
6730if { (eval echo configure:6731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10201_ACEOF
10202rm -f conftest.$ac_objext conftest$ac_exeext
10203if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10204 (eval $ac_link) 2>conftest.er1
10205 ac_status=$?
10206 grep -v '^ *+' conftest.er1 >conftest.err
6731 rm -rf conftest* 10207 rm -f conftest.er1
6732 eval "ac_cv_lib_$ac_lib_var=yes" 10208 cat conftest.err >&5
10209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 (exit $ac_status); } &&
10211 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10213 (eval $ac_try) 2>&5
10214 ac_status=$?
10215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216 (exit $ac_status); }; } &&
10217 { ac_try='test -s conftest$ac_exeext'
10218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10219 (eval $ac_try) 2>&5
10220 ac_status=$?
10221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222 (exit $ac_status); }; }; then
10223 ac_cv_lib_ICE_IceConnectionNumber=yes
6733else 10224else
6734 echo "configure: failed program was:" >&5 10225 echo "$as_me: failed program was:" >&5
6735 cat conftest.$ac_ext >&5 10226sed 's/^/| /' conftest.$ac_ext >&5
6736 rm -rf conftest* 10227
6737 eval "ac_cv_lib_$ac_lib_var=no" 10228ac_cv_lib_ICE_IceConnectionNumber=no
6738fi 10229fi
6739rm -f conftest* 10230rm -f conftest.err conftest.$ac_objext \
10231 conftest$ac_exeext conftest.$ac_ext
6740LIBS="$ac_save_LIBS" 10232LIBS=$ac_check_lib_save_LIBS
6741
6742fi 10233fi
6743if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 10234echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6744 echo "$ac_t""yes" 1>&6 10235echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
10236if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6745 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 10237 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6746else
6747 echo "$ac_t""no" 1>&6
6748fi 10238fi
6749 10239
6750 LDFLAGS="$ac_save_LDFLAGS" 10240 LDFLAGS=$ac_save_LDFLAGS
6751 10241
6752fi 10242fi
6753 10243
6754 10244
6755 10245
6756if test x$support_xpm = xyes; then 10246if test x$support_xpm = xyes; then
6757 10247
6758 10248
6759 10249
6760# Initialize some more variables set by options. 10250# Initialize some more variables set by options.
6761# The variables have the same names as the options, with 10251# The variables have the same names as the options, with
6762# dashes changed to underlines. 10252# dashes changed to underlines.
6763 10253
6764# If we find XPM, set shell vars xpm_includes and xpm_libraries to the 10254# If we find XPM, set shell vars xpm_includes and xpm_libraries to the
6765# paths, otherwise set no_xpm=yes. 10255# paths, otherwise set no_xpm=yes.
6766# Uses ac_ vars as temps to allow command line to override cache and checks. 10256# Uses ac_ vars as temps to allow command line to override cache and checks.
10257echo "$as_me:$LINENO: checking for libXpm" >&5
6767echo $ac_n "checking for libXpm""... $ac_c" 1>&6 10258echo $ECHO_N "checking for libXpm... $ECHO_C" >&6
6768echo "configure:6769: checking for libXpm" >&5 10259
6769 10260
6770# Check whether --with-xpm_includes or --without-xpm_includes was given. 10261# Check whether --with-xpm_includes or --without-xpm_includes was given.
6771if test "${with_xpm_includes+set}" = set; then 10262if test "${with_xpm_includes+set}" = set; then
6772 withval="$with_xpm_includes" 10263 withval="$with_xpm_includes"
6773 xpm_includes="$withval" 10264 xpm_includes="$withval"
6774else 10265else
6775 xpm_includes=NO 10266 xpm_includes=NO
6776fi 10267fi;
6777 10268
6778# Check whether --with-xpm_library or --without-xpm_library was given. 10269# Check whether --with-xpm_library or --without-xpm_library was given.
6779if test "${with_xpm_library+set}" = set; then 10270if test "${with_xpm_library+set}" = set; then
6780 withval="$with_xpm_library" 10271 withval="$with_xpm_library"
6781 xpm_libraries="$withval" 10272 xpm_libraries="$withval"
6782else 10273else
6783 xpm_libraries=NO 10274 xpm_libraries=NO
6784fi 10275fi;
6785
6786 10276
6787# --without-xpm overrides everything else, but does not touch the cache. 10277# --without-xpm overrides everything else, but does not touch the cache.
10278
6788# Check whether --with-xpm or --without-xpm was given. 10279# Check whether --with-xpm or --without-xpm was given.
6789if test "${with_xpm+set}" = set; then 10280if test "${with_xpm+set}" = set; then
6790 withval="$with_xpm" 10281 withval="$with_xpm"
6791 : 10282
6792fi 10283fi;
6793
6794if test "$with_xpm" = no; then 10284if test "$with_xpm" = no; then
6795 have_xpm=disabled 10285 have_xpm=disabled
6796else 10286else
6797 if eval "test \"`echo '$''{'ac_cv_have_xpm'+set}'`\" = set"; then 10287 if test "${ac_cv_have_xpm+set}" = set; then
6798 echo $ac_n "(cached) $ac_c" 1>&6 10288 echo $ECHO_N "(cached) $ECHO_C" >&6
6799else 10289else
6800 10290
6801 vt_xpm_include_X11=no 10291 vt_xpm_include_X11=no
6802 if test -n "$xpm_includes"; then 10292 if test -n "$xpm_includes"; then
6803 vt_xpm_includes=$xpm_includes 10293 vt_xpm_includes=$xpm_includes
6804 else 10294 else
6805 vt_xpm_includes=NO 10295 vt_xpm_includes=NO
6815 10305
6816ac_save_CPPFLAGS="$CPPFLAGS" 10306ac_save_CPPFLAGS="$CPPFLAGS"
6817CPPFLAGS="$CPPFLAGS $X_CFLAGS" 10307CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6818 10308
6819 # First, try using that file with no special directory specified. 10309 # First, try using that file with no special directory specified.
6820cat > conftest.$ac_ext <<EOF 10310cat >conftest.$ac_ext <<_ACEOF
6821#line 6822 "configure" 10311/* confdefs.h. */
6822#include "confdefs.h" 10312_ACEOF
10313cat confdefs.h >>conftest.$ac_ext
10314cat >>conftest.$ac_ext <<_ACEOF
10315/* end confdefs.h. */
6823#include <X11/xpm.h> 10316#include <X11/xpm.h>
6824EOF 10317_ACEOF
6825ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10318if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6826{ (eval echo configure:6827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10319 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6827ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10320 ac_status=$?
10321 grep -v '^ *+' conftest.er1 >conftest.err
10322 rm -f conftest.er1
10323 cat conftest.err >&5
10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325 (exit $ac_status); } >/dev/null; then
10326 if test -s conftest.err; then
10327 ac_cpp_err=$ac_cxx_preproc_warn_flag
10328 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10329 else
10330 ac_cpp_err=
10331 fi
10332else
10333 ac_cpp_err=yes
10334fi
6828if test -z "$ac_err"; then 10335if test -z "$ac_cpp_err"; then
6829 rm -rf conftest*
6830 # We can compile using X headers with no special include directory. 10336 # We can compile using X headers with no special include directory.
6831vt_xpm_includes= 10337vt_xpm_includes=
6832vt_xpm_include_X11=yes 10338vt_xpm_include_X11=yes
6833else 10339else
6834 echo "$ac_err" >&5
6835 echo "configure: failed program was:" >&5 10340 echo "$as_me: failed program was:" >&5
6836 cat conftest.$ac_ext >&5 10341sed 's/^/| /' conftest.$ac_ext >&5
6837 rm -rf conftest* 10342
6838 CPPFLAGS="$ac_save_CPPFLAGS" 10343 CPPFLAGS="$ac_save_CPPFLAGS"
6839# Look for the header file in a standard set of common directories. 10344# Look for the header file in a standard set of common directories.
6840 for ac_dir in \ 10345 for ac_dir in \
6841 /usr/X11/include \ 10346 /usr/X11/include \
6842 /usr/X11R6/include \ 10347 /usr/X11R6/include \
6883 break 10388 break
6884 fi 10389 fi
6885 fi 10390 fi
6886 done 10391 done
6887fi 10392fi
6888rm -f conftest* 10393rm -f conftest.err conftest.$ac_ext
6889fi 10394fi
6890 10395
6891if test "$vt_xpm_libraries" = NO; then 10396if test "$vt_xpm_libraries" = NO; then
6892 # Check for the libraries. 10397 # Check for the libraries.
6893 10398
6894 # See if we find them without any special options. 10399 # See if we find them without any special options.
6895 # Don't add to $LIBS permanently. 10400 # Don't add to $LIBS permanently.
6896 ac_save_LIBS="$LIBS" 10401 ac_save_LIBS="$LIBS"
6897 LIBS="$LIBS $X_LIBS -lXpm -lX11" 10402 LIBS="$LIBS $X_LIBS -lXpm -lX11"
6898cat > conftest.$ac_ext <<EOF 10403cat >conftest.$ac_ext <<_ACEOF
6899#line 6900 "configure" 10404/* confdefs.h. */
6900#include "confdefs.h" 10405_ACEOF
10406cat confdefs.h >>conftest.$ac_ext
10407cat >>conftest.$ac_ext <<_ACEOF
10408/* end confdefs.h. */
6901 10409
6902int main() { 10410int
10411main ()
10412{
6903XpmReadFileToPixmap() 10413XpmReadFileToPixmap()
10414 ;
6904; return 0; } 10415 return 0;
6905EOF 10416}
6906if { (eval echo configure:6907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10417_ACEOF
10418rm -f conftest.$ac_objext conftest$ac_exeext
10419if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10420 (eval $ac_link) 2>conftest.er1
10421 ac_status=$?
10422 grep -v '^ *+' conftest.er1 >conftest.err
6907 rm -rf conftest* 10423 rm -f conftest.er1
10424 cat conftest.err >&5
10425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426 (exit $ac_status); } &&
10427 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10429 (eval $ac_try) 2>&5
10430 ac_status=$?
10431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432 (exit $ac_status); }; } &&
10433 { ac_try='test -s conftest$ac_exeext'
10434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10435 (eval $ac_try) 2>&5
10436 ac_status=$?
10437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438 (exit $ac_status); }; }; then
6908 LIBS="$ac_save_LIBS" 10439 LIBS="$ac_save_LIBS"
6909# We can link libXpm with no special library path. 10440# We can link libXpm with no special library path.
6910vt_xpm_libraries= 10441vt_xpm_libraries=
6911else 10442else
6912 echo "configure: failed program was:" >&5 10443 echo "$as_me: failed program was:" >&5
6913 cat conftest.$ac_ext >&5 10444sed 's/^/| /' conftest.$ac_ext >&5
6914 rm -rf conftest* 10445
6915 LIBS="$ac_save_LIBS" 10446LIBS="$ac_save_LIBS"
6916# First see if replacing the include by lib works. 10447# First see if replacing the include by lib works.
6917for ac_dir in \ 10448for ac_dir in \
6918 `echo "$vt_xpm_includes" | sed 's,include/X11,lib,;s,include,lib,'` \ 10449 `echo "$vt_xpm_includes" | sed 's,include/X11,lib,;s,include,lib,'` \
6919 /usr/X11/lib \ 10450 /usr/X11/lib \
6920 /usr/X11R6/lib \ 10451 /usr/X11R6/lib \
6957 break 2 10488 break 2
6958 fi 10489 fi
6959 done 10490 done
6960done 10491done
6961fi 10492fi
6962rm -f conftest* 10493rm -f conftest.err conftest.$ac_objext \
10494 conftest$ac_exeext conftest.$ac_ext
6963fi 10495fi
6964 10496
6965 10497
6966 if test "$vt_xpm_includes" = NO -o "$vt_xpm_libraries" = NO; then 10498 if test "$vt_xpm_includes" = NO -o "$vt_xpm_libraries" = NO; then
6967 ac_cv_have_xpm="have_xpm=no" 10499 ac_cv_have_xpm="have_xpm=no"
6973fi 10505fi
6974 eval "$ac_cv_have_xpm" 10506 eval "$ac_cv_have_xpm"
6975fi 10507fi
6976 10508
6977if test "$have_xpm" != yes; then 10509if test "$have_xpm" != yes; then
6978 echo "$ac_t""$have_xpm" 1>&6 10510 echo "$as_me:$LINENO: result: $have_xpm" >&5
10511echo "${ECHO_T}$have_xpm" >&6
6979 no_xpm=yes 10512 no_xpm=yes
6980else 10513else
6981 if test "$xpm_includes" != NO; then 10514 if test "$xpm_includes" != NO; then
6982 if test "$xpm_includes" = "$vt_xpm_includes"; then 10515 if test "$xpm_includes" = "$vt_xpm_includes"; then
6983 if test -r "$xpm_includes/X11/xpm.h"; then 10516 if test -r "$xpm_includes/X11/xpm.h"; then
6984 vt_xpm_include_X11=yes 10517 vt_xpm_include_X11=yes
6985 fi 10518 fi
6986 else 10519 else
6987 vt_xpm_include_X11=no 10520 vt_xpm_include_X11=no
6988 if test -z "$xpm_includes"; then 10521 if test -z "$xpm_includes"; then
6989 cat > conftest.$ac_ext <<EOF 10522 cat >conftest.$ac_ext <<_ACEOF
6990#line 6991 "configure" 10523/* confdefs.h. */
6991#include "confdefs.h" 10524_ACEOF
10525cat confdefs.h >>conftest.$ac_ext
10526cat >>conftest.$ac_ext <<_ACEOF
10527/* end confdefs.h. */
6992#include <X11/xpm.h> 10528#include <X11/xpm.h>
6993EOF 10529_ACEOF
6994ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10530if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6995{ (eval echo configure:6996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10531 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6996ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10532 ac_status=$?
10533 grep -v '^ *+' conftest.er1 >conftest.err
10534 rm -f conftest.er1
10535 cat conftest.err >&5
10536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10537 (exit $ac_status); } >/dev/null; then
10538 if test -s conftest.err; then
10539 ac_cpp_err=$ac_cxx_preproc_warn_flag
10540 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10541 else
10542 ac_cpp_err=
10543 fi
10544else
10545 ac_cpp_err=yes
10546fi
6997if test -z "$ac_err"; then 10547if test -z "$ac_cpp_err"; then
6998 rm -rf conftest*
6999 vt_xpm_include_X11=yes 10548 vt_xpm_include_X11=yes
7000else 10549else
7001 echo "$ac_err" >&5
7002 echo "configure: failed program was:" >&5 10550 echo "$as_me: failed program was:" >&5
7003 cat conftest.$ac_ext >&5 10551sed 's/^/| /' conftest.$ac_ext >&5
10552
10553
7004fi 10554fi
7005rm -f conftest* 10555rm -f conftest.err conftest.$ac_ext
7006 else 10556 else
7007 if test -r "$xpm_includes/X11/xpm.h"; then 10557 if test -r "$xpm_includes/X11/xpm.h"; then
7008 vt_xpm_include_X11=yes 10558 vt_xpm_include_X11=yes
7009 fi 10559 fi
7010 fi 10560 fi
7017 # Update the cache value to reflect the command line values. 10567 # Update the cache value to reflect the command line values.
7018 ac_cv_have_xpm="have_xpm=yes \ 10568 ac_cv_have_xpm="have_xpm=yes \
7019 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \ 10569 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
7020 vt_xpm_include_X11=$vt_xpm_include_X11" 10570 vt_xpm_include_X11=$vt_xpm_include_X11"
7021 eval "$ac_cv_have_xpm" 10571 eval "$ac_cv_have_xpm"
10572 echo "$as_me:$LINENO: result: -I$vt_xpm_includes, -L$vt_xpm_libraries" >&5
7022 echo "$ac_t""-I$vt_xpm_includes, -L$vt_xpm_libraries" 1>&6 10573echo "${ECHO_T}-I$vt_xpm_includes, -L$vt_xpm_libraries" >&6
7023 if test -n "$vt_xpm_includes"; then 10574 if test -n "$vt_xpm_includes"; then
7024 XPM_CPPFLAGS="-DHAVE_LIBXPM" 10575 XPM_CPPFLAGS="-DHAVE_LIBXPM"
7025 fi 10576 fi
7026 if test -n "$vt_xpm_includes"; then 10577 if test -n "$vt_xpm_includes"; then
7027 XPM_CFLAGS="-I$vt_xpm_includes" 10578 XPM_CFLAGS="-I$vt_xpm_includes"
7029 XPM_LIBS="-lXpm" 10580 XPM_LIBS="-lXpm"
7030 if test -n "$vt_xpm_libraries"; then 10581 if test -n "$vt_xpm_libraries"; then
7031 XPM_LIBS="-L$vt_xpm_libraries $XPM_LIBS" 10582 XPM_LIBS="-L$vt_xpm_libraries $XPM_LIBS"
7032 fi 10583 fi
7033 if test "x$vt_xpm_include_X11" = xyes; then 10584 if test "x$vt_xpm_include_X11" = xyes; then
10585
7034 cat >> confdefs.h <<\EOF 10586cat >>confdefs.h <<\_ACEOF
7035#define XPM_INC_X11 1 10587#define XPM_INC_X11 1
7036EOF 10588_ACEOF
7037 10589
7038 fi 10590 fi
7039fi 10591fi
7040 10592
7041 10593
7045 if test x$no_xpm = xyes; then 10597 if test x$no_xpm = xyes; then
7046 support_xpm=needsmanualspecification 10598 support_xpm=needsmanualspecification
7047 fi 10599 fi
7048fi 10600fi
7049 10601
10602echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7050echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 10603echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7051echo "configure:7052: checking for sys/wait.h that is POSIX.1 compatible" >&5
7052if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then 10604if test "${ac_cv_header_sys_wait_h+set}" = set; then
7053 echo $ac_n "(cached) $ac_c" 1>&6 10605 echo $ECHO_N "(cached) $ECHO_C" >&6
7054else 10606else
7055 cat > conftest.$ac_ext <<EOF 10607 cat >conftest.$ac_ext <<_ACEOF
7056#line 7057 "configure" 10608/* confdefs.h. */
7057#include "confdefs.h" 10609_ACEOF
10610cat confdefs.h >>conftest.$ac_ext
10611cat >>conftest.$ac_ext <<_ACEOF
10612/* end confdefs.h. */
7058#include <sys/types.h> 10613#include <sys/types.h>
7059#include <sys/wait.h> 10614#include <sys/wait.h>
7060#ifndef WEXITSTATUS 10615#ifndef WEXITSTATUS
7061#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 10616# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7062#endif 10617#endif
7063#ifndef WIFEXITED 10618#ifndef WIFEXITED
7064#define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 10619# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7065#endif 10620#endif
7066int main() { 10621
10622int
10623main ()
10624{
7067int s; 10625 int s;
7068wait (&s); 10626 wait (&s);
7069s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 10627 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10628 ;
7070; return 0; } 10629 return 0;
7071EOF 10630}
7072if { (eval echo configure:7073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 10631_ACEOF
10632rm -f conftest.$ac_objext
10633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10634 (eval $ac_compile) 2>conftest.er1
10635 ac_status=$?
10636 grep -v '^ *+' conftest.er1 >conftest.err
7073 rm -rf conftest* 10637 rm -f conftest.er1
10638 cat conftest.err >&5
10639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10640 (exit $ac_status); } &&
10641 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10643 (eval $ac_try) 2>&5
10644 ac_status=$?
10645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646 (exit $ac_status); }; } &&
10647 { ac_try='test -s conftest.$ac_objext'
10648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10649 (eval $ac_try) 2>&5
10650 ac_status=$?
10651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652 (exit $ac_status); }; }; then
7074 ac_cv_header_sys_wait_h=yes 10653 ac_cv_header_sys_wait_h=yes
7075else 10654else
7076 echo "configure: failed program was:" >&5 10655 echo "$as_me: failed program was:" >&5
7077 cat conftest.$ac_ext >&5 10656sed 's/^/| /' conftest.$ac_ext >&5
7078 rm -rf conftest* 10657
7079 ac_cv_header_sys_wait_h=no 10658ac_cv_header_sys_wait_h=no
7080fi 10659fi
7081rm -f conftest* 10660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7082fi 10661fi
7083 10662echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7084echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6 10663echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
7085if test $ac_cv_header_sys_wait_h = yes; then 10664if test $ac_cv_header_sys_wait_h = yes; then
10665
7086 cat >> confdefs.h <<\EOF 10666cat >>confdefs.h <<\_ACEOF
7087#define HAVE_SYS_WAIT_H 1 10667#define HAVE_SYS_WAIT_H 1
7088EOF 10668_ACEOF
7089 10669
7090fi 10670fi
7091 10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
7092for ac_hdr in \ 10691for ac_header in \
7093 assert.h \ 10692 assert.h \
7094 fcntl.h \ 10693 fcntl.h \
7095 grp.h \ 10694 grp.h \
7096 libc.h \ 10695 libc.h \
7097 lastlog.h \ 10696 lastlog.h \
7109 utmp.h \ 10708 utmp.h \
7110 utmpx.h \ 10709 utmpx.h \
7111 stdint.h \ 10710 stdint.h \
7112 10711
7113do 10712do
7114ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 10713as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10714if eval "test \"\${$as_ac_Header+set}\" = set"; then
10715 echo "$as_me:$LINENO: checking for $ac_header" >&5
7115echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 10716echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7116echo "configure:7117: checking for $ac_hdr" >&5 10717if eval "test \"\${$as_ac_Header+set}\" = set"; then
7117if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7118 echo $ac_n "(cached) $ac_c" 1>&6 10718 echo $ECHO_N "(cached) $ECHO_C" >&6
10719fi
10720echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10721echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7119else 10722else
10723 # Is the header compilable?
10724echo "$as_me:$LINENO: checking $ac_header usability" >&5
10725echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7120 cat > conftest.$ac_ext <<EOF 10726cat >conftest.$ac_ext <<_ACEOF
7121#line 7122 "configure" 10727/* confdefs.h. */
7122#include "confdefs.h" 10728_ACEOF
10729cat confdefs.h >>conftest.$ac_ext
10730cat >>conftest.$ac_ext <<_ACEOF
10731/* end confdefs.h. */
10732$ac_includes_default
7123#include <$ac_hdr> 10733#include <$ac_header>
7124EOF 10734_ACEOF
7125ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10735rm -f conftest.$ac_objext
7126{ (eval echo configure:7127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7127ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10737 (eval $ac_compile) 2>conftest.er1
10738 ac_status=$?
10739 grep -v '^ *+' conftest.er1 >conftest.err
10740 rm -f conftest.er1
10741 cat conftest.err >&5
10742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743 (exit $ac_status); } &&
10744 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10746 (eval $ac_try) 2>&5
10747 ac_status=$?
10748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749 (exit $ac_status); }; } &&
10750 { ac_try='test -s conftest.$ac_objext'
10751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10752 (eval $ac_try) 2>&5
10753 ac_status=$?
10754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755 (exit $ac_status); }; }; then
10756 ac_header_compiler=yes
10757else
10758 echo "$as_me: failed program was:" >&5
10759sed 's/^/| /' conftest.$ac_ext >&5
10760
10761ac_header_compiler=no
10762fi
10763rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10764echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10765echo "${ECHO_T}$ac_header_compiler" >&6
10766
10767# Is the header present?
10768echo "$as_me:$LINENO: checking $ac_header presence" >&5
10769echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10770cat >conftest.$ac_ext <<_ACEOF
10771/* confdefs.h. */
10772_ACEOF
10773cat confdefs.h >>conftest.$ac_ext
10774cat >>conftest.$ac_ext <<_ACEOF
10775/* end confdefs.h. */
10776#include <$ac_header>
10777_ACEOF
10778if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10779 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10780 ac_status=$?
10781 grep -v '^ *+' conftest.er1 >conftest.err
10782 rm -f conftest.er1
10783 cat conftest.err >&5
10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); } >/dev/null; then
10786 if test -s conftest.err; then
10787 ac_cpp_err=$ac_cxx_preproc_warn_flag
10788 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10789 else
10790 ac_cpp_err=
10791 fi
10792else
10793 ac_cpp_err=yes
10794fi
7128if test -z "$ac_err"; then 10795if test -z "$ac_cpp_err"; then
7129 rm -rf conftest* 10796 ac_header_preproc=yes
7130 eval "ac_cv_header_$ac_safe=yes"
7131else 10797else
7132 echo "$ac_err" >&5
7133 echo "configure: failed program was:" >&5 10798 echo "$as_me: failed program was:" >&5
7134 cat conftest.$ac_ext >&5 10799sed 's/^/| /' conftest.$ac_ext >&5
7135 rm -rf conftest* 10800
7136 eval "ac_cv_header_$ac_safe=no" 10801 ac_header_preproc=no
7137fi 10802fi
7138rm -f conftest* 10803rm -f conftest.err conftest.$ac_ext
10804echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10805echo "${ECHO_T}$ac_header_preproc" >&6
10806
10807# So? What about this header?
10808case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10809 yes:no: )
10810 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10811echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10812 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10813echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10814 ac_header_preproc=yes
10815 ;;
10816 no:yes:* )
10817 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10818echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10819 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10820echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10821 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10822echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10823 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10824echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10825 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10826echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10827 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10828echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10829 (
10830 cat <<\_ASBOX
10831## ------------------------------------------ ##
10832## Report this to the AC_PACKAGE_NAME lists. ##
10833## ------------------------------------------ ##
10834_ASBOX
10835 ) |
10836 sed "s/^/$as_me: WARNING: /" >&2
10837 ;;
10838esac
10839echo "$as_me:$LINENO: checking for $ac_header" >&5
10840echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10841if eval "test \"\${$as_ac_Header+set}\" = set"; then
10842 echo $ECHO_N "(cached) $ECHO_C" >&6
10843else
10844 eval "$as_ac_Header=\$ac_header_preproc"
7139fi 10845fi
7140if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 10846echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7141 echo "$ac_t""yes" 1>&6 10847echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7142 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 10848
10849fi
10850if test `eval echo '${'$as_ac_Header'}'` = yes; then
7143 cat >> confdefs.h <<EOF 10851 cat >>confdefs.h <<_ACEOF
7144#define $ac_tr_hdr 1 10852#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7145EOF 10853_ACEOF
7146 10854
7147else
7148 echo "$ac_t""no" 1>&6
7149fi 10855fi
10856
7150done 10857done
7151 10858
7152 10859
10860echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7153echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 10861echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7154echo "configure:7155: checking whether time.h and sys/time.h may both be included" >&5
7155if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 10862if test "${ac_cv_header_time+set}" = set; then
7156 echo $ac_n "(cached) $ac_c" 1>&6 10863 echo $ECHO_N "(cached) $ECHO_C" >&6
7157else 10864else
7158 cat > conftest.$ac_ext <<EOF 10865 cat >conftest.$ac_ext <<_ACEOF
7159#line 7160 "configure" 10866/* confdefs.h. */
7160#include "confdefs.h" 10867_ACEOF
10868cat confdefs.h >>conftest.$ac_ext
10869cat >>conftest.$ac_ext <<_ACEOF
10870/* end confdefs.h. */
7161#include <sys/types.h> 10871#include <sys/types.h>
7162#include <sys/time.h> 10872#include <sys/time.h>
7163#include <time.h> 10873#include <time.h>
7164int main() { 10874
7165struct tm *tp; 10875int
10876main ()
10877{
10878if ((struct tm *) 0)
10879return 0;
10880 ;
7166; return 0; } 10881 return 0;
7167EOF 10882}
7168if { (eval echo configure:7169: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 10883_ACEOF
10884rm -f conftest.$ac_objext
10885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10886 (eval $ac_compile) 2>conftest.er1
10887 ac_status=$?
10888 grep -v '^ *+' conftest.er1 >conftest.err
7169 rm -rf conftest* 10889 rm -f conftest.er1
10890 cat conftest.err >&5
10891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892 (exit $ac_status); } &&
10893 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10895 (eval $ac_try) 2>&5
10896 ac_status=$?
10897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898 (exit $ac_status); }; } &&
10899 { ac_try='test -s conftest.$ac_objext'
10900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10901 (eval $ac_try) 2>&5
10902 ac_status=$?
10903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 (exit $ac_status); }; }; then
7170 ac_cv_header_time=yes 10905 ac_cv_header_time=yes
7171else 10906else
7172 echo "configure: failed program was:" >&5 10907 echo "$as_me: failed program was:" >&5
7173 cat conftest.$ac_ext >&5 10908sed 's/^/| /' conftest.$ac_ext >&5
7174 rm -rf conftest* 10909
7175 ac_cv_header_time=no 10910ac_cv_header_time=no
7176fi 10911fi
7177rm -f conftest* 10912rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7178fi 10913fi
7179 10914echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7180echo "$ac_t""$ac_cv_header_time" 1>&6 10915echo "${ECHO_T}$ac_cv_header_time" >&6
7181if test $ac_cv_header_time = yes; then 10916if test $ac_cv_header_time = yes; then
10917
7182 cat >> confdefs.h <<\EOF 10918cat >>confdefs.h <<\_ACEOF
7183#define TIME_WITH_SYS_TIME 1 10919#define TIME_WITH_SYS_TIME 1
7184EOF 10920_ACEOF
7185 10921
7186fi 10922fi
7187 10923
7188 10924
10925echo "$as_me:$LINENO: checking whether termios.h and sys/ioctl.h may both be included" >&5
7189echo $ac_n "checking whether termios.h and sys/ioctl.h may both be included""... $ac_c" 1>&6 10926echo $ECHO_N "checking whether termios.h and sys/ioctl.h may both be included... $ECHO_C" >&6
7190echo "configure:7191: checking whether termios.h and sys/ioctl.h may both be included" >&5
7191if eval "test \"`echo '$''{'rxvt_cv_header_sysioctl'+set}'`\" = set"; then 10927if test "${rxvt_cv_header_sysioctl+set}" = set; then
7192 echo $ac_n "(cached) $ac_c" 1>&6 10928 echo $ECHO_N "(cached) $ECHO_C" >&6
7193else 10929else
7194 cat > conftest.$ac_ext <<EOF 10930 cat >conftest.$ac_ext <<_ACEOF
7195#line 7196 "configure" 10931/* confdefs.h. */
7196#include "confdefs.h" 10932_ACEOF
10933cat confdefs.h >>conftest.$ac_ext
10934cat >>conftest.$ac_ext <<_ACEOF
10935/* end confdefs.h. */
7197#include <stdio.h> 10936#include <stdio.h>
7198#include <sys/ioctl.h> 10937#include <sys/ioctl.h>
7199#ifdef HAVE_TERMIOS_H 10938#ifdef HAVE_TERMIOS_H
7200#include <termios.h> 10939#include <termios.h>
7201#endif 10940#endif
7202int main() { 10941int
10942main ()
10943{
7203int a = ECHO; 10944int a = ECHO;
10945 ;
7204; return 0; } 10946 return 0;
7205EOF 10947}
7206if { (eval echo configure:7207: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 10948_ACEOF
10949rm -f conftest.$ac_objext
10950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10951 (eval $ac_compile) 2>conftest.er1
10952 ac_status=$?
10953 grep -v '^ *+' conftest.er1 >conftest.err
7207 rm -rf conftest* 10954 rm -f conftest.er1
10955 cat conftest.err >&5
10956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957 (exit $ac_status); } &&
10958 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10960 (eval $ac_try) 2>&5
10961 ac_status=$?
10962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963 (exit $ac_status); }; } &&
10964 { ac_try='test -s conftest.$ac_objext'
10965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10966 (eval $ac_try) 2>&5
10967 ac_status=$?
10968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969 (exit $ac_status); }; }; then
7208 rxvt_cv_header_sysioctl=yes 10970 rxvt_cv_header_sysioctl=yes
7209else 10971else
7210 echo "configure: failed program was:" >&5 10972 echo "$as_me: failed program was:" >&5
7211 cat conftest.$ac_ext >&5 10973sed 's/^/| /' conftest.$ac_ext >&5
7212 rm -rf conftest* 10974
7213 rxvt_cv_header_sysioctl=no 10975rxvt_cv_header_sysioctl=no
7214fi 10976fi
7215rm -f conftest* 10977rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7216fi 10978fi
7217 10979echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5
7218echo "$ac_t""$rxvt_cv_header_sysioctl" 1>&6 10980echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6
7219 10981
7220if test -n "$GCC"; then 10982if test -n "$GCC"; then
7221 LDARG="-Wl," 10983 LDARG="-Wl,"
7222else 10984else
7223 LDARG="" 10985 LDARG=""
7226 10988
7227ac_save_CFLAGS=$CFLAGS 10989ac_save_CFLAGS=$CFLAGS
7228ac_save_LIBS=$LIBS 10990ac_save_LIBS=$LIBS
7229CFLAGS="$CFLAGS $X_CFLAGS" 10991CFLAGS="$CFLAGS $X_CFLAGS"
7230LIBS=`echo "$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"` 10992LIBS=`echo "$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
10993echo "$as_me:$LINENO: checking for -rpath dynamic library path recording" >&5
7231echo $ac_n "checking for -rpath dynamic library path recording""... $ac_c" 1>&6 10994echo $ECHO_N "checking for -rpath dynamic library path recording... $ECHO_C" >&6
7232echo "configure:7233: checking for -rpath dynamic library path recording" >&5
7233if eval "test \"`echo '$''{'rxvt_cv_rpath'+set}'`\" = set"; then 10995if test "${rxvt_cv_rpath+set}" = set; then
7234 echo $ac_n "(cached) $ac_c" 1>&6 10996 echo $ECHO_N "(cached) $ECHO_C" >&6
7235else 10997else
7236 if test "$cross_compiling" = yes; then 10998 if test "$cross_compiling" = yes; then
10999 { echo "$as_me:$LINENO: WARNING: You may need to check the LIBS line" >&5
7237 echo "configure: warning: You may need to check the LIBS line" 1>&2 11000echo "$as_me: WARNING: You may need to check the LIBS line" >&2;}
7238else 11001else
7239 cat > conftest.$ac_ext <<EOF 11002 cat >conftest.$ac_ext <<_ACEOF
7240#line 7241 "configure" 11003/* confdefs.h. */
7241#include "confdefs.h" 11004_ACEOF
11005cat confdefs.h >>conftest.$ac_ext
11006cat >>conftest.$ac_ext <<_ACEOF
11007/* end confdefs.h. */
7242 11008
7243main() 11009main()
7244{ 11010{
7245 exit(0); 11011 exit(0);
7246 (void) XOpenDisplay("foobar"); 11012 (void) XOpenDisplay("foobar");
7247} 11013}
7248EOF 11014_ACEOF
7249if { (eval echo configure:7250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 11015rm -f conftest$ac_exeext
7250then 11016if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11017 (eval $ac_link) 2>&5
11018 ac_status=$?
11019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11022 (eval $ac_try) 2>&5
11023 ac_status=$?
11024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025 (exit $ac_status); }; }; then
7251 rxvt_cv_rpath=yes 11026 rxvt_cv_rpath=yes
7252else 11027else
11028 echo "$as_me: program exited with status $ac_status" >&5
7253 echo "configure: failed program was:" >&5 11029echo "$as_me: failed program was:" >&5
7254 cat conftest.$ac_ext >&5 11030sed 's/^/| /' conftest.$ac_ext >&5
7255 rm -fr conftest* 11031
11032( exit $ac_status )
7256 rxvt_cv_rpath=no 11033rxvt_cv_rpath=no
7257fi 11034fi
7258rm -fr conftest* 11035rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7259fi 11036fi
7260
7261fi 11037fi
7262 11038echo "$as_me:$LINENO: result: $rxvt_cv_rpath" >&5
7263echo "$ac_t""$rxvt_cv_rpath" 1>&6 11039echo "${ECHO_T}$rxvt_cv_rpath" >&6
7264if test x$rxvt_cv_rpath != xyes; then 11040if test x$rxvt_cv_rpath != xyes; then
7265 R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-R\1/g' 11041 R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-R\1/g'
7266 LIBS=`echo "$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"` 11042 LIBS=`echo "$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
11043 echo "$as_me:$LINENO: checking for -R dynamic library path recording" >&5
7267 echo $ac_n "checking for -R dynamic library path recording""... $ac_c" 1>&6 11044echo $ECHO_N "checking for -R dynamic library path recording... $ECHO_C" >&6
7268echo "configure:7269: checking for -R dynamic library path recording" >&5
7269if eval "test \"`echo '$''{'rxvt_cv_R'+set}'`\" = set"; then 11045if test "${rxvt_cv_R+set}" = set; then
7270 echo $ac_n "(cached) $ac_c" 1>&6 11046 echo $ECHO_N "(cached) $ECHO_C" >&6
7271else 11047else
7272 if test "$cross_compiling" = yes; then 11048 if test "$cross_compiling" = yes; then
7273 rxvt_cv_R=no 11049 rxvt_cv_R=no
7274else 11050else
7275 cat > conftest.$ac_ext <<EOF 11051 cat >conftest.$ac_ext <<_ACEOF
7276#line 7277 "configure" 11052/* confdefs.h. */
7277#include "confdefs.h" 11053_ACEOF
11054cat confdefs.h >>conftest.$ac_ext
11055cat >>conftest.$ac_ext <<_ACEOF
11056/* end confdefs.h. */
7278 11057
7279main() 11058main()
7280{ 11059{
7281 exit(0); 11060 exit(0);
7282 (void) XOpenDisplay("foobar"); 11061 (void) XOpenDisplay("foobar");
7283} 11062}
7284EOF 11063_ACEOF
7285if { (eval echo configure:7286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 11064rm -f conftest$ac_exeext
7286then 11065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11066 (eval $ac_link) 2>&5
11067 ac_status=$?
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11071 (eval $ac_try) 2>&5
11072 ac_status=$?
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); }; }; then
7287 rxvt_cv_R=yes 11075 rxvt_cv_R=yes
7288else 11076else
11077 echo "$as_me: program exited with status $ac_status" >&5
7289 echo "configure: failed program was:" >&5 11078echo "$as_me: failed program was:" >&5
7290 cat conftest.$ac_ext >&5 11079sed 's/^/| /' conftest.$ac_ext >&5
7291 rm -fr conftest* 11080
11081( exit $ac_status )
7292 rxvt_cv_R=no 11082rxvt_cv_R=no
7293fi 11083fi
7294rm -fr conftest* 11084rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7295fi 11085fi
7296
7297fi 11086fi
7298 11087echo "$as_me:$LINENO: result: $rxvt_cv_R" >&5
7299echo "$ac_t""$rxvt_cv_R" 1>&6 11088echo "${ECHO_T}$rxvt_cv_R" >&6
7300 if test x$rxvt_cv_R != xyes; then 11089 if test x$rxvt_cv_R != xyes; then
7301 LIBS="$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 11090 LIBS="$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
7302 fi 11091 fi
7303fi 11092fi
7304 11093
11094echo "$as_me:$LINENO: checking for XPointer" >&5
7305echo $ac_n "checking for XPointer""... $ac_c" 1>&6 11095echo $ECHO_N "checking for XPointer... $ECHO_C" >&6
7306echo "configure:7307: checking for XPointer" >&5
7307if eval "test \"`echo '$''{'rxvt_cv_xpointer'+set}'`\" = set"; then 11096if test "${rxvt_cv_xpointer+set}" = set; then
7308 echo $ac_n "(cached) $ac_c" 1>&6 11097 echo $ECHO_N "(cached) $ECHO_C" >&6
7309else 11098else
7310 cat > conftest.$ac_ext <<EOF 11099 cat >conftest.$ac_ext <<_ACEOF
7311#line 7312 "configure" 11100/* confdefs.h. */
7312#include "confdefs.h" 11101_ACEOF
11102cat confdefs.h >>conftest.$ac_ext
11103cat >>conftest.$ac_ext <<_ACEOF
11104/* end confdefs.h. */
7313#include <X11/Xlib.h> 11105#include <X11/Xlib.h>
7314int main() { 11106int
11107main ()
11108{
7315XPointer dummy; 11109XPointer dummy;
11110 ;
7316; return 0; } 11111 return 0;
7317EOF 11112}
7318if { (eval echo configure:7319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 11113_ACEOF
11114rm -f conftest.$ac_objext
11115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11116 (eval $ac_compile) 2>conftest.er1
11117 ac_status=$?
11118 grep -v '^ *+' conftest.er1 >conftest.err
7319 rm -rf conftest* 11119 rm -f conftest.er1
11120 cat conftest.err >&5
11121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122 (exit $ac_status); } &&
11123 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11125 (eval $ac_try) 2>&5
11126 ac_status=$?
11127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128 (exit $ac_status); }; } &&
11129 { ac_try='test -s conftest.$ac_objext'
11130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11131 (eval $ac_try) 2>&5
11132 ac_status=$?
11133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134 (exit $ac_status); }; }; then
7320 rxvt_cv_xpointer=yes 11135 rxvt_cv_xpointer=yes
7321else 11136else
7322 echo "configure: failed program was:" >&5 11137 echo "$as_me: failed program was:" >&5
7323 cat conftest.$ac_ext >&5 11138sed 's/^/| /' conftest.$ac_ext >&5
7324 rm -rf conftest* 11139
7325 rxvt_cv_xpointer=no 11140rxvt_cv_xpointer=no
7326fi 11141fi
7327rm -f conftest* 11142rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7328fi 11143fi
7329 11144echo "$as_me:$LINENO: result: $rxvt_cv_xpointer" >&5
7330echo "$ac_t""$rxvt_cv_xpointer" 1>&6 11145echo "${ECHO_T}$rxvt_cv_xpointer" >&6
7331if test x$rxvt_cv_xpointer = xyes; then 11146if test x$rxvt_cv_xpointer = xyes; then
11147
7332 cat >> confdefs.h <<\EOF 11148cat >>confdefs.h <<\_ACEOF
7333#define HAVE_XPOINTER 1 11149#define HAVE_XPOINTER 1
7334EOF 11150_ACEOF
7335 11151
7336fi 11152fi
7337LIBS=$ac_save_LIBS 11153LIBS=$ac_save_LIBS
7338CFLAGS=$ac_save_CFLAGS 11154CFLAGS=$ac_save_CFLAGS
7339 11155
7340 11156
7341echo $ac_n "checking for working const""... $ac_c" 1>&6 11157echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7342echo "configure:7343: checking for working const" >&5 11158echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7343if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 11159if test "${ac_cv_c_const+set}" = set; then
7344 echo $ac_n "(cached) $ac_c" 1>&6 11160 echo $ECHO_N "(cached) $ECHO_C" >&6
7345else 11161else
7346 cat > conftest.$ac_ext <<EOF 11162 cat >conftest.$ac_ext <<_ACEOF
7347#line 7348 "configure" 11163/* confdefs.h. */
7348#include "confdefs.h" 11164_ACEOF
11165cat confdefs.h >>conftest.$ac_ext
11166cat >>conftest.$ac_ext <<_ACEOF
11167/* end confdefs.h. */
7349 11168
7350int main() { 11169int
7351 11170main ()
11171{
11172/* FIXME: Include the comments suggested by Paul. */
11173#ifndef __cplusplus
7352/* Ultrix mips cc rejects this. */ 11174 /* Ultrix mips cc rejects this. */
7353typedef int charset[2]; const charset x; 11175 typedef int charset[2];
11176 const charset x;
7354/* SunOS 4.1.1 cc rejects this. */ 11177 /* SunOS 4.1.1 cc rejects this. */
7355char const *const *ccp; 11178 char const *const *ccp;
7356char **p; 11179 char **p;
7357/* NEC SVR4.0.2 mips cc rejects this. */ 11180 /* NEC SVR4.0.2 mips cc rejects this. */
7358struct point {int x, y;}; 11181 struct point {int x, y;};
7359static struct point const zero = {0,0}; 11182 static struct point const zero = {0,0};
7360/* AIX XL C 1.02.0.0 rejects this. 11183 /* AIX XL C 1.02.0.0 rejects this.
7361 It does not let you subtract one const X* pointer from another in an arm 11184 It does not let you subtract one const X* pointer from another in
7362 of an if-expression whose if-part is not a constant expression */ 11185 an arm of an if-expression whose if-part is not a constant
11186 expression */
7363const char *g = "string"; 11187 const char *g = "string";
7364ccp = &g + (g ? g-g : 0); 11188 ccp = &g + (g ? g-g : 0);
7365/* HPUX 7.0 cc rejects these. */ 11189 /* HPUX 7.0 cc rejects these. */
7366++ccp; 11190 ++ccp;
7367p = (char**) ccp; 11191 p = (char**) ccp;
7368ccp = (char const *const *) p; 11192 ccp = (char const *const *) p;
7369{ /* SCO 3.2v4 cc rejects this. */ 11193 { /* SCO 3.2v4 cc rejects this. */
7370 char *t; 11194 char *t;
7371 char const *s = 0 ? (char *) 0 : (char const *) 0; 11195 char const *s = 0 ? (char *) 0 : (char const *) 0;
7372 11196
7373 *t++ = 0; 11197 *t++ = 0;
11198 }
11199 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11200 int x[] = {25, 17};
11201 const int *foo = &x[0];
11202 ++foo;
11203 }
11204 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11205 typedef const int *iptr;
11206 iptr p = 0;
11207 ++p;
11208 }
11209 { /* AIX XL C 1.02.0.0 rejects this saying
11210 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11211 struct s { int j; const int *ap[3]; };
11212 struct s *b; b->j = 5;
11213 }
11214 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11215 const int foo = 10;
11216 }
11217#endif
11218
11219 ;
11220 return 0;
7374} 11221}
7375{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 11222_ACEOF
7376 int x[] = {25, 17}; 11223rm -f conftest.$ac_objext
7377 const int *foo = &x[0]; 11224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7378 ++foo; 11225 (eval $ac_compile) 2>conftest.er1
7379} 11226 ac_status=$?
7380{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 11227 grep -v '^ *+' conftest.er1 >conftest.err
7381 typedef const int *iptr;
7382 iptr p = 0;
7383 ++p;
7384}
7385{ /* AIX XL C 1.02.0.0 rejects this saying
7386 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7387 struct s { int j; const int *ap[3]; };
7388 struct s *b; b->j = 5;
7389}
7390{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7391 const int foo = 10;
7392}
7393
7394; return 0; }
7395EOF
7396if { (eval echo configure:7397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7397 rm -rf conftest* 11228 rm -f conftest.er1
11229 cat conftest.err >&5
11230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231 (exit $ac_status); } &&
11232 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11234 (eval $ac_try) 2>&5
11235 ac_status=$?
11236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237 (exit $ac_status); }; } &&
11238 { ac_try='test -s conftest.$ac_objext'
11239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11240 (eval $ac_try) 2>&5
11241 ac_status=$?
11242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11243 (exit $ac_status); }; }; then
7398 ac_cv_c_const=yes 11244 ac_cv_c_const=yes
7399else 11245else
7400 echo "configure: failed program was:" >&5 11246 echo "$as_me: failed program was:" >&5
7401 cat conftest.$ac_ext >&5 11247sed 's/^/| /' conftest.$ac_ext >&5
7402 rm -rf conftest* 11248
7403 ac_cv_c_const=no 11249ac_cv_c_const=no
7404fi 11250fi
7405rm -f conftest* 11251rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7406fi 11252fi
7407 11253echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7408echo "$ac_t""$ac_cv_c_const" 1>&6 11254echo "${ECHO_T}$ac_cv_c_const" >&6
7409if test $ac_cv_c_const = no; then 11255if test $ac_cv_c_const = no; then
11256
7410 cat >> confdefs.h <<\EOF 11257cat >>confdefs.h <<\_ACEOF
7411#define const 11258#define const
7412EOF 11259_ACEOF
7413 11260
7414fi 11261fi
7415 11262
11263echo "$as_me:$LINENO: checking for inline" >&5
7416echo $ac_n "checking for inline""... $ac_c" 1>&6 11264echo $ECHO_N "checking for inline... $ECHO_C" >&6
7417echo "configure:7418: checking for inline" >&5
7418if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then 11265if test "${ac_cv_c_inline+set}" = set; then
7419 echo $ac_n "(cached) $ac_c" 1>&6 11266 echo $ECHO_N "(cached) $ECHO_C" >&6
7420else 11267else
7421 ac_cv_c_inline=no 11268 ac_cv_c_inline=no
7422for ac_kw in inline __inline__ __inline; do 11269for ac_kw in inline __inline__ __inline; do
7423 cat > conftest.$ac_ext <<EOF 11270 cat >conftest.$ac_ext <<_ACEOF
7424#line 7425 "configure" 11271/* confdefs.h. */
7425#include "confdefs.h" 11272_ACEOF
11273cat confdefs.h >>conftest.$ac_ext
11274cat >>conftest.$ac_ext <<_ACEOF
11275/* end confdefs.h. */
11276#ifndef __cplusplus
11277typedef int foo_t;
11278static $ac_kw foo_t static_foo () {return 0; }
11279$ac_kw foo_t foo () {return 0; }
11280#endif
7426 11281
7427int main() { 11282_ACEOF
7428} $ac_kw foo() { 11283rm -f conftest.$ac_objext
7429; return 0; } 11284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7430EOF 11285 (eval $ac_compile) 2>conftest.er1
7431if { (eval echo configure:7432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 11286 ac_status=$?
11287 grep -v '^ *+' conftest.er1 >conftest.err
7432 rm -rf conftest* 11288 rm -f conftest.er1
11289 cat conftest.err >&5
11290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291 (exit $ac_status); } &&
11292 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11294 (eval $ac_try) 2>&5
11295 ac_status=$?
11296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297 (exit $ac_status); }; } &&
11298 { ac_try='test -s conftest.$ac_objext'
11299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11300 (eval $ac_try) 2>&5
11301 ac_status=$?
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); }; }; then
7433 ac_cv_c_inline=$ac_kw; break 11304 ac_cv_c_inline=$ac_kw; break
7434else 11305else
7435 echo "configure: failed program was:" >&5 11306 echo "$as_me: failed program was:" >&5
11307sed 's/^/| /' conftest.$ac_ext >&5
11308
11309fi
11310rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11311done
11312
11313fi
11314echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
11315echo "${ECHO_T}$ac_cv_c_inline" >&6
11316
11317
11318case $ac_cv_c_inline in
11319 inline | yes) ;;
11320 *)
11321 case $ac_cv_c_inline in
11322 no) ac_val=;;
11323 *) ac_val=$ac_cv_c_inline;;
11324 esac
11325 cat >>confdefs.h <<_ACEOF
11326#ifndef __cplusplus
11327#define inline $ac_val
11328#endif
11329_ACEOF
11330 ;;
11331esac
11332
11333
11334
11335echo "$as_me:$LINENO: checking for mode_t" >&5
11336echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11337if test "${ac_cv_type_mode_t+set}" = set; then
11338 echo $ECHO_N "(cached) $ECHO_C" >&6
11339else
11340 cat >conftest.$ac_ext <<_ACEOF
11341/* confdefs.h. */
11342_ACEOF
11343cat confdefs.h >>conftest.$ac_ext
11344cat >>conftest.$ac_ext <<_ACEOF
11345/* end confdefs.h. */
11346$ac_includes_default
11347int
11348main ()
11349{
11350if ((mode_t *) 0)
11351 return 0;
11352if (sizeof (mode_t))
11353 return 0;
11354 ;
11355 return 0;
11356}
11357_ACEOF
11358rm -f conftest.$ac_objext
11359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11360 (eval $ac_compile) 2>conftest.er1
11361 ac_status=$?
11362 grep -v '^ *+' conftest.er1 >conftest.err
11363 rm -f conftest.er1
7436 cat conftest.$ac_ext >&5 11364 cat conftest.err >&5
11365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11366 (exit $ac_status); } &&
11367 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11369 (eval $ac_try) 2>&5
11370 ac_status=$?
11371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11372 (exit $ac_status); }; } &&
11373 { ac_try='test -s conftest.$ac_objext'
11374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11375 (eval $ac_try) 2>&5
11376 ac_status=$?
11377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378 (exit $ac_status); }; }; then
11379 ac_cv_type_mode_t=yes
11380else
11381 echo "$as_me: failed program was:" >&5
11382sed 's/^/| /' conftest.$ac_ext >&5
11383
11384ac_cv_type_mode_t=no
11385fi
11386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11387fi
11388echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11389echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11390if test $ac_cv_type_mode_t = yes; then
11391 :
11392else
11393
11394cat >>confdefs.h <<_ACEOF
11395#define mode_t int
11396_ACEOF
11397
11398fi
11399
11400echo "$as_me:$LINENO: checking for pid_t" >&5
11401echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11402if test "${ac_cv_type_pid_t+set}" = set; then
11403 echo $ECHO_N "(cached) $ECHO_C" >&6
11404else
11405 cat >conftest.$ac_ext <<_ACEOF
11406/* confdefs.h. */
11407_ACEOF
11408cat confdefs.h >>conftest.$ac_ext
11409cat >>conftest.$ac_ext <<_ACEOF
11410/* end confdefs.h. */
11411$ac_includes_default
11412int
11413main ()
11414{
11415if ((pid_t *) 0)
11416 return 0;
11417if (sizeof (pid_t))
11418 return 0;
11419 ;
11420 return 0;
11421}
11422_ACEOF
11423rm -f conftest.$ac_objext
11424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11425 (eval $ac_compile) 2>conftest.er1
11426 ac_status=$?
11427 grep -v '^ *+' conftest.er1 >conftest.err
11428 rm -f conftest.er1
11429 cat conftest.err >&5
11430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431 (exit $ac_status); } &&
11432 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11434 (eval $ac_try) 2>&5
11435 ac_status=$?
11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 (exit $ac_status); }; } &&
11438 { ac_try='test -s conftest.$ac_objext'
11439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11440 (eval $ac_try) 2>&5
11441 ac_status=$?
11442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443 (exit $ac_status); }; }; then
11444 ac_cv_type_pid_t=yes
11445else
11446 echo "$as_me: failed program was:" >&5
11447sed 's/^/| /' conftest.$ac_ext >&5
11448
11449ac_cv_type_pid_t=no
11450fi
11451rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11452fi
11453echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11454echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11455if test $ac_cv_type_pid_t = yes; then
11456 :
11457else
11458
11459cat >>confdefs.h <<_ACEOF
11460#define pid_t int
11461_ACEOF
11462
11463fi
11464
11465echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11466echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11467if test "${ac_cv_type_uid_t+set}" = set; then
11468 echo $ECHO_N "(cached) $ECHO_C" >&6
11469else
11470 cat >conftest.$ac_ext <<_ACEOF
11471/* confdefs.h. */
11472_ACEOF
11473cat confdefs.h >>conftest.$ac_ext
11474cat >>conftest.$ac_ext <<_ACEOF
11475/* end confdefs.h. */
11476#include <sys/types.h>
11477
11478_ACEOF
11479if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11480 $EGREP "uid_t" >/dev/null 2>&1; then
11481 ac_cv_type_uid_t=yes
11482else
11483 ac_cv_type_uid_t=no
7437fi 11484fi
7438rm -f conftest* 11485rm -f conftest*
11486
11487fi
11488echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11489echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11490if test $ac_cv_type_uid_t = no; then
11491
11492cat >>confdefs.h <<\_ACEOF
11493#define uid_t int
11494_ACEOF
11495
11496
11497cat >>confdefs.h <<\_ACEOF
11498#define gid_t int
11499_ACEOF
11500
11501fi
11502
11503
11504
11505echo "$as_me:$LINENO: checking for char" >&5
11506echo $ECHO_N "checking for char... $ECHO_C" >&6
11507if test "${ac_cv_type_char+set}" = set; then
11508 echo $ECHO_N "(cached) $ECHO_C" >&6
11509else
11510 cat >conftest.$ac_ext <<_ACEOF
11511/* confdefs.h. */
11512_ACEOF
11513cat confdefs.h >>conftest.$ac_ext
11514cat >>conftest.$ac_ext <<_ACEOF
11515/* end confdefs.h. */
11516$ac_includes_default
11517int
11518main ()
11519{
11520if ((char *) 0)
11521 return 0;
11522if (sizeof (char))
11523 return 0;
11524 ;
11525 return 0;
11526}
11527_ACEOF
11528rm -f conftest.$ac_objext
11529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11530 (eval $ac_compile) 2>conftest.er1
11531 ac_status=$?
11532 grep -v '^ *+' conftest.er1 >conftest.err
11533 rm -f conftest.er1
11534 cat conftest.err >&5
11535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11536 (exit $ac_status); } &&
11537 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11539 (eval $ac_try) 2>&5
11540 ac_status=$?
11541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542 (exit $ac_status); }; } &&
11543 { ac_try='test -s conftest.$ac_objext'
11544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11545 (eval $ac_try) 2>&5
11546 ac_status=$?
11547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548 (exit $ac_status); }; }; then
11549 ac_cv_type_char=yes
11550else
11551 echo "$as_me: failed program was:" >&5
11552sed 's/^/| /' conftest.$ac_ext >&5
11553
11554ac_cv_type_char=no
11555fi
11556rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11557fi
11558echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
11559echo "${ECHO_T}$ac_cv_type_char" >&6
11560
11561echo "$as_me:$LINENO: checking size of char" >&5
11562echo $ECHO_N "checking size of char... $ECHO_C" >&6
11563if test "${ac_cv_sizeof_char+set}" = set; then
11564 echo $ECHO_N "(cached) $ECHO_C" >&6
11565else
11566 if test "$ac_cv_type_char" = yes; then
11567 # The cast to unsigned long works around a bug in the HP C Compiler
11568 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11569 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11570 # This bug is HP SR number 8606223364.
11571 if test "$cross_compiling" = yes; then
11572 # Depending upon the size, compute the lo and hi bounds.
11573cat >conftest.$ac_ext <<_ACEOF
11574/* confdefs.h. */
11575_ACEOF
11576cat confdefs.h >>conftest.$ac_ext
11577cat >>conftest.$ac_ext <<_ACEOF
11578/* end confdefs.h. */
11579$ac_includes_default
11580int
11581main ()
11582{
11583static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
11584test_array [0] = 0
11585
11586 ;
11587 return 0;
11588}
11589_ACEOF
11590rm -f conftest.$ac_objext
11591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11592 (eval $ac_compile) 2>conftest.er1
11593 ac_status=$?
11594 grep -v '^ *+' conftest.er1 >conftest.err
11595 rm -f conftest.er1
11596 cat conftest.err >&5
11597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598 (exit $ac_status); } &&
11599 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11601 (eval $ac_try) 2>&5
11602 ac_status=$?
11603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604 (exit $ac_status); }; } &&
11605 { ac_try='test -s conftest.$ac_objext'
11606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11607 (eval $ac_try) 2>&5
11608 ac_status=$?
11609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610 (exit $ac_status); }; }; then
11611 ac_lo=0 ac_mid=0
11612 while :; do
11613 cat >conftest.$ac_ext <<_ACEOF
11614/* confdefs.h. */
11615_ACEOF
11616cat confdefs.h >>conftest.$ac_ext
11617cat >>conftest.$ac_ext <<_ACEOF
11618/* end confdefs.h. */
11619$ac_includes_default
11620int
11621main ()
11622{
11623static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11624test_array [0] = 0
11625
11626 ;
11627 return 0;
11628}
11629_ACEOF
11630rm -f conftest.$ac_objext
11631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11632 (eval $ac_compile) 2>conftest.er1
11633 ac_status=$?
11634 grep -v '^ *+' conftest.er1 >conftest.err
11635 rm -f conftest.er1
11636 cat conftest.err >&5
11637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638 (exit $ac_status); } &&
11639 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11641 (eval $ac_try) 2>&5
11642 ac_status=$?
11643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); }; } &&
11645 { ac_try='test -s conftest.$ac_objext'
11646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11647 (eval $ac_try) 2>&5
11648 ac_status=$?
11649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650 (exit $ac_status); }; }; then
11651 ac_hi=$ac_mid; break
11652else
11653 echo "$as_me: failed program was:" >&5
11654sed 's/^/| /' conftest.$ac_ext >&5
11655
11656ac_lo=`expr $ac_mid + 1`
11657 if test $ac_lo -le $ac_mid; then
11658 ac_lo= ac_hi=
11659 break
11660 fi
11661 ac_mid=`expr 2 '*' $ac_mid + 1`
11662fi
11663rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11664 done
11665else
11666 echo "$as_me: failed program was:" >&5
11667sed 's/^/| /' conftest.$ac_ext >&5
11668
11669cat >conftest.$ac_ext <<_ACEOF
11670/* confdefs.h. */
11671_ACEOF
11672cat confdefs.h >>conftest.$ac_ext
11673cat >>conftest.$ac_ext <<_ACEOF
11674/* end confdefs.h. */
11675$ac_includes_default
11676int
11677main ()
11678{
11679static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
11680test_array [0] = 0
11681
11682 ;
11683 return 0;
11684}
11685_ACEOF
11686rm -f conftest.$ac_objext
11687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11688 (eval $ac_compile) 2>conftest.er1
11689 ac_status=$?
11690 grep -v '^ *+' conftest.er1 >conftest.err
11691 rm -f conftest.er1
11692 cat conftest.err >&5
11693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694 (exit $ac_status); } &&
11695 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11697 (eval $ac_try) 2>&5
11698 ac_status=$?
11699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700 (exit $ac_status); }; } &&
11701 { ac_try='test -s conftest.$ac_objext'
11702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11703 (eval $ac_try) 2>&5
11704 ac_status=$?
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); }; }; then
11707 ac_hi=-1 ac_mid=-1
11708 while :; do
11709 cat >conftest.$ac_ext <<_ACEOF
11710/* confdefs.h. */
11711_ACEOF
11712cat confdefs.h >>conftest.$ac_ext
11713cat >>conftest.$ac_ext <<_ACEOF
11714/* end confdefs.h. */
11715$ac_includes_default
11716int
11717main ()
11718{
11719static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
11720test_array [0] = 0
11721
11722 ;
11723 return 0;
11724}
11725_ACEOF
11726rm -f conftest.$ac_objext
11727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11728 (eval $ac_compile) 2>conftest.er1
11729 ac_status=$?
11730 grep -v '^ *+' conftest.er1 >conftest.err
11731 rm -f conftest.er1
11732 cat conftest.err >&5
11733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734 (exit $ac_status); } &&
11735 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11737 (eval $ac_try) 2>&5
11738 ac_status=$?
11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); }; } &&
11741 { ac_try='test -s conftest.$ac_objext'
11742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11743 (eval $ac_try) 2>&5
11744 ac_status=$?
11745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746 (exit $ac_status); }; }; then
11747 ac_lo=$ac_mid; break
11748else
11749 echo "$as_me: failed program was:" >&5
11750sed 's/^/| /' conftest.$ac_ext >&5
11751
11752ac_hi=`expr '(' $ac_mid ')' - 1`
11753 if test $ac_mid -le $ac_hi; then
11754 ac_lo= ac_hi=
11755 break
11756 fi
11757 ac_mid=`expr 2 '*' $ac_mid`
11758fi
11759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11760 done
11761else
11762 echo "$as_me: failed program was:" >&5
11763sed 's/^/| /' conftest.$ac_ext >&5
11764
11765ac_lo= ac_hi=
11766fi
11767rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11768fi
11769rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11770# Binary search between lo and hi bounds.
11771while test "x$ac_lo" != "x$ac_hi"; do
11772 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11773 cat >conftest.$ac_ext <<_ACEOF
11774/* confdefs.h. */
11775_ACEOF
11776cat confdefs.h >>conftest.$ac_ext
11777cat >>conftest.$ac_ext <<_ACEOF
11778/* end confdefs.h. */
11779$ac_includes_default
11780int
11781main ()
11782{
11783static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11784test_array [0] = 0
11785
11786 ;
11787 return 0;
11788}
11789_ACEOF
11790rm -f conftest.$ac_objext
11791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11792 (eval $ac_compile) 2>conftest.er1
11793 ac_status=$?
11794 grep -v '^ *+' conftest.er1 >conftest.err
11795 rm -f conftest.er1
11796 cat conftest.err >&5
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); } &&
11799 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11801 (eval $ac_try) 2>&5
11802 ac_status=$?
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); }; } &&
11805 { ac_try='test -s conftest.$ac_objext'
11806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11807 (eval $ac_try) 2>&5
11808 ac_status=$?
11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); }; }; then
11811 ac_hi=$ac_mid
11812else
11813 echo "$as_me: failed program was:" >&5
11814sed 's/^/| /' conftest.$ac_ext >&5
11815
11816ac_lo=`expr '(' $ac_mid ')' + 1`
11817fi
11818rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7439done 11819done
7440 11820case $ac_lo in
7441fi 11821?*) ac_cv_sizeof_char=$ac_lo;;
7442 11822'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
7443echo "$ac_t""$ac_cv_c_inline" 1>&6 11823See \`config.log' for more details." >&5
7444case "$ac_cv_c_inline" in 11824echo "$as_me: error: cannot compute sizeof (char), 77
7445 inline | yes) ;; 11825See \`config.log' for more details." >&2;}
7446 no) cat >> confdefs.h <<\EOF 11826 { (exit 1); exit 1; }; } ;;
7447#define inline
7448EOF
7449 ;;
7450 *) cat >> confdefs.h <<EOF
7451#define inline $ac_cv_c_inline
7452EOF
7453 ;;
7454esac 11827esac
7455
7456
7457
7458echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
7459echo "configure:7460: checking for ANSI C header files" >&5
7460if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
7461 echo $ac_n "(cached) $ac_c" 1>&6
7462else 11828else
11829 if test "$cross_compiling" = yes; then
11830 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
11831echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
11832 { (exit 1); exit 1; }; }
11833else
7463 cat > conftest.$ac_ext <<EOF 11834 cat >conftest.$ac_ext <<_ACEOF
7464#line 7465 "configure" 11835/* confdefs.h. */
7465#include "confdefs.h" 11836_ACEOF
11837cat confdefs.h >>conftest.$ac_ext
11838cat >>conftest.$ac_ext <<_ACEOF
11839/* end confdefs.h. */
11840$ac_includes_default
11841long longval () { return (long) (sizeof (char)); }
11842unsigned long ulongval () { return (long) (sizeof (char)); }
11843#include <stdio.h>
7466#include <stdlib.h> 11844#include <stdlib.h>
7467#include <stdarg.h> 11845int
7468#include <string.h> 11846main ()
7469#include <float.h> 11847{
7470EOF 11848
7471ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11849 FILE *f = fopen ("conftest.val", "w");
7472{ (eval echo configure:7473: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11850 if (! f)
7473ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11851 exit (1);
7474if test -z "$ac_err"; then 11852 if (((long) (sizeof (char))) < 0)
7475 rm -rf conftest* 11853 {
7476 ac_cv_header_stdc=yes 11854 long i = longval ();
11855 if (i != ((long) (sizeof (char))))
11856 exit (1);
11857 fprintf (f, "%ld\n", i);
11858 }
7477else 11859 else
7478 echo "$ac_err" >&5 11860 {
11861 unsigned long i = ulongval ();
11862 if (i != ((long) (sizeof (char))))
11863 exit (1);
11864 fprintf (f, "%lu\n", i);
11865 }
11866 exit (ferror (f) || fclose (f) != 0);
11867
11868 ;
11869 return 0;
11870}
11871_ACEOF
11872rm -f conftest$ac_exeext
11873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11874 (eval $ac_link) 2>&5
11875 ac_status=$?
11876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11879 (eval $ac_try) 2>&5
11880 ac_status=$?
11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882 (exit $ac_status); }; }; then
11883 ac_cv_sizeof_char=`cat conftest.val`
11884else
11885 echo "$as_me: program exited with status $ac_status" >&5
7479 echo "configure: failed program was:" >&5 11886echo "$as_me: failed program was:" >&5
7480 cat conftest.$ac_ext >&5 11887sed 's/^/| /' conftest.$ac_ext >&5
7481 rm -rf conftest* 11888
7482 ac_cv_header_stdc=no 11889( exit $ac_status )
11890{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
11891See \`config.log' for more details." >&5
11892echo "$as_me: error: cannot compute sizeof (char), 77
11893See \`config.log' for more details." >&2;}
11894 { (exit 1); exit 1; }; }
7483fi 11895fi
11896rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11897fi
11898fi
7484rm -f conftest* 11899rm -f conftest.val
11900else
11901 ac_cv_sizeof_char=0
11902fi
11903fi
11904echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
11905echo "${ECHO_T}$ac_cv_sizeof_char" >&6
11906cat >>confdefs.h <<_ACEOF
11907#define SIZEOF_CHAR $ac_cv_sizeof_char
11908_ACEOF
7485 11909
11910
11911echo "$as_me:$LINENO: checking for short" >&5
11912echo $ECHO_N "checking for short... $ECHO_C" >&6
11913if test "${ac_cv_type_short+set}" = set; then
11914 echo $ECHO_N "(cached) $ECHO_C" >&6
11915else
11916 cat >conftest.$ac_ext <<_ACEOF
11917/* confdefs.h. */
11918_ACEOF
11919cat confdefs.h >>conftest.$ac_ext
11920cat >>conftest.$ac_ext <<_ACEOF
11921/* end confdefs.h. */
11922$ac_includes_default
11923int
11924main ()
11925{
11926if ((short *) 0)
11927 return 0;
11928if (sizeof (short))
11929 return 0;
11930 ;
11931 return 0;
11932}
11933_ACEOF
11934rm -f conftest.$ac_objext
11935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11936 (eval $ac_compile) 2>conftest.er1
11937 ac_status=$?
11938 grep -v '^ *+' conftest.er1 >conftest.err
11939 rm -f conftest.er1
11940 cat conftest.err >&5
11941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942 (exit $ac_status); } &&
11943 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11945 (eval $ac_try) 2>&5
11946 ac_status=$?
11947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948 (exit $ac_status); }; } &&
11949 { ac_try='test -s conftest.$ac_objext'
11950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11951 (eval $ac_try) 2>&5
11952 ac_status=$?
11953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954 (exit $ac_status); }; }; then
11955 ac_cv_type_short=yes
11956else
11957 echo "$as_me: failed program was:" >&5
11958sed 's/^/| /' conftest.$ac_ext >&5
11959
11960ac_cv_type_short=no
11961fi
11962rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11963fi
11964echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
11965echo "${ECHO_T}$ac_cv_type_short" >&6
11966
11967echo "$as_me:$LINENO: checking size of short" >&5
11968echo $ECHO_N "checking size of short... $ECHO_C" >&6
11969if test "${ac_cv_sizeof_short+set}" = set; then
11970 echo $ECHO_N "(cached) $ECHO_C" >&6
11971else
7486if test $ac_cv_header_stdc = yes; then 11972 if test "$ac_cv_type_short" = yes; then
7487 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 11973 # The cast to unsigned long works around a bug in the HP C Compiler
11974 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11975 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11976 # This bug is HP SR number 8606223364.
11977 if test "$cross_compiling" = yes; then
11978 # Depending upon the size, compute the lo and hi bounds.
7488cat > conftest.$ac_ext <<EOF 11979cat >conftest.$ac_ext <<_ACEOF
7489#line 7490 "configure" 11980/* confdefs.h. */
7490#include "confdefs.h" 11981_ACEOF
7491#include <string.h> 11982cat confdefs.h >>conftest.$ac_ext
7492EOF 11983cat >>conftest.$ac_ext <<_ACEOF
7493if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11984/* end confdefs.h. */
7494 egrep "memchr" >/dev/null 2>&1; then 11985$ac_includes_default
7495 : 11986int
7496else 11987main ()
11988{
11989static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
11990test_array [0] = 0
11991
11992 ;
11993 return 0;
11994}
11995_ACEOF
11996rm -f conftest.$ac_objext
11997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11998 (eval $ac_compile) 2>conftest.er1
11999 ac_status=$?
12000 grep -v '^ *+' conftest.er1 >conftest.err
7497 rm -rf conftest* 12001 rm -f conftest.er1
7498 ac_cv_header_stdc=no 12002 cat conftest.err >&5
7499fi 12003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); } &&
12005 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12007 (eval $ac_try) 2>&5
12008 ac_status=$?
12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); }; } &&
12011 { ac_try='test -s conftest.$ac_objext'
12012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12013 (eval $ac_try) 2>&5
12014 ac_status=$?
12015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016 (exit $ac_status); }; }; then
12017 ac_lo=0 ac_mid=0
12018 while :; do
12019 cat >conftest.$ac_ext <<_ACEOF
12020/* confdefs.h. */
12021_ACEOF
12022cat confdefs.h >>conftest.$ac_ext
12023cat >>conftest.$ac_ext <<_ACEOF
12024/* end confdefs.h. */
12025$ac_includes_default
12026int
12027main ()
12028{
12029static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
12030test_array [0] = 0
12031
12032 ;
12033 return 0;
12034}
12035_ACEOF
12036rm -f conftest.$ac_objext
12037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12038 (eval $ac_compile) 2>conftest.er1
12039 ac_status=$?
12040 grep -v '^ *+' conftest.er1 >conftest.err
7500rm -f conftest* 12041 rm -f conftest.er1
12042 cat conftest.err >&5
12043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044 (exit $ac_status); } &&
12045 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12047 (eval $ac_try) 2>&5
12048 ac_status=$?
12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); }; } &&
12051 { ac_try='test -s conftest.$ac_objext'
12052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12053 (eval $ac_try) 2>&5
12054 ac_status=$?
12055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056 (exit $ac_status); }; }; then
12057 ac_hi=$ac_mid; break
12058else
12059 echo "$as_me: failed program was:" >&5
12060sed 's/^/| /' conftest.$ac_ext >&5
7501 12061
12062ac_lo=`expr $ac_mid + 1`
12063 if test $ac_lo -le $ac_mid; then
12064 ac_lo= ac_hi=
12065 break
12066 fi
12067 ac_mid=`expr 2 '*' $ac_mid + 1`
7502fi 12068fi
12069rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12070 done
12071else
12072 echo "$as_me: failed program was:" >&5
12073sed 's/^/| /' conftest.$ac_ext >&5
7503 12074
7504if test $ac_cv_header_stdc = yes; then
7505 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7506cat > conftest.$ac_ext <<EOF 12075cat >conftest.$ac_ext <<_ACEOF
7507#line 7508 "configure" 12076/* confdefs.h. */
7508#include "confdefs.h" 12077_ACEOF
12078cat confdefs.h >>conftest.$ac_ext
12079cat >>conftest.$ac_ext <<_ACEOF
12080/* end confdefs.h. */
12081$ac_includes_default
12082int
12083main ()
12084{
12085static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
12086test_array [0] = 0
12087
12088 ;
12089 return 0;
12090}
12091_ACEOF
12092rm -f conftest.$ac_objext
12093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12094 (eval $ac_compile) 2>conftest.er1
12095 ac_status=$?
12096 grep -v '^ *+' conftest.er1 >conftest.err
12097 rm -f conftest.er1
12098 cat conftest.err >&5
12099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100 (exit $ac_status); } &&
12101 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12103 (eval $ac_try) 2>&5
12104 ac_status=$?
12105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106 (exit $ac_status); }; } &&
12107 { ac_try='test -s conftest.$ac_objext'
12108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12109 (eval $ac_try) 2>&5
12110 ac_status=$?
12111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112 (exit $ac_status); }; }; then
12113 ac_hi=-1 ac_mid=-1
12114 while :; do
12115 cat >conftest.$ac_ext <<_ACEOF
12116/* confdefs.h. */
12117_ACEOF
12118cat confdefs.h >>conftest.$ac_ext
12119cat >>conftest.$ac_ext <<_ACEOF
12120/* end confdefs.h. */
12121$ac_includes_default
12122int
12123main ()
12124{
12125static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
12126test_array [0] = 0
12127
12128 ;
12129 return 0;
12130}
12131_ACEOF
12132rm -f conftest.$ac_objext
12133if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12134 (eval $ac_compile) 2>conftest.er1
12135 ac_status=$?
12136 grep -v '^ *+' conftest.er1 >conftest.err
12137 rm -f conftest.er1
12138 cat conftest.err >&5
12139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140 (exit $ac_status); } &&
12141 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12143 (eval $ac_try) 2>&5
12144 ac_status=$?
12145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146 (exit $ac_status); }; } &&
12147 { ac_try='test -s conftest.$ac_objext'
12148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12149 (eval $ac_try) 2>&5
12150 ac_status=$?
12151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152 (exit $ac_status); }; }; then
12153 ac_lo=$ac_mid; break
12154else
12155 echo "$as_me: failed program was:" >&5
12156sed 's/^/| /' conftest.$ac_ext >&5
12157
12158ac_hi=`expr '(' $ac_mid ')' - 1`
12159 if test $ac_mid -le $ac_hi; then
12160 ac_lo= ac_hi=
12161 break
12162 fi
12163 ac_mid=`expr 2 '*' $ac_mid`
12164fi
12165rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12166 done
12167else
12168 echo "$as_me: failed program was:" >&5
12169sed 's/^/| /' conftest.$ac_ext >&5
12170
12171ac_lo= ac_hi=
12172fi
12173rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12174fi
12175rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12176# Binary search between lo and hi bounds.
12177while test "x$ac_lo" != "x$ac_hi"; do
12178 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12179 cat >conftest.$ac_ext <<_ACEOF
12180/* confdefs.h. */
12181_ACEOF
12182cat confdefs.h >>conftest.$ac_ext
12183cat >>conftest.$ac_ext <<_ACEOF
12184/* end confdefs.h. */
12185$ac_includes_default
12186int
12187main ()
12188{
12189static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
12190test_array [0] = 0
12191
12192 ;
12193 return 0;
12194}
12195_ACEOF
12196rm -f conftest.$ac_objext
12197if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12198 (eval $ac_compile) 2>conftest.er1
12199 ac_status=$?
12200 grep -v '^ *+' conftest.er1 >conftest.err
12201 rm -f conftest.er1
12202 cat conftest.err >&5
12203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204 (exit $ac_status); } &&
12205 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12207 (eval $ac_try) 2>&5
12208 ac_status=$?
12209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210 (exit $ac_status); }; } &&
12211 { ac_try='test -s conftest.$ac_objext'
12212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12213 (eval $ac_try) 2>&5
12214 ac_status=$?
12215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216 (exit $ac_status); }; }; then
12217 ac_hi=$ac_mid
12218else
12219 echo "$as_me: failed program was:" >&5
12220sed 's/^/| /' conftest.$ac_ext >&5
12221
12222ac_lo=`expr '(' $ac_mid ')' + 1`
12223fi
12224rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12225done
12226case $ac_lo in
12227?*) ac_cv_sizeof_short=$ac_lo;;
12228'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
12229See \`config.log' for more details." >&5
12230echo "$as_me: error: cannot compute sizeof (short), 77
12231See \`config.log' for more details." >&2;}
12232 { (exit 1); exit 1; }; } ;;
12233esac
12234else
12235 if test "$cross_compiling" = yes; then
12236 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
12237echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
12238 { (exit 1); exit 1; }; }
12239else
12240 cat >conftest.$ac_ext <<_ACEOF
12241/* confdefs.h. */
12242_ACEOF
12243cat confdefs.h >>conftest.$ac_ext
12244cat >>conftest.$ac_ext <<_ACEOF
12245/* end confdefs.h. */
12246$ac_includes_default
12247long longval () { return (long) (sizeof (short)); }
12248unsigned long ulongval () { return (long) (sizeof (short)); }
12249#include <stdio.h>
7509#include <stdlib.h> 12250#include <stdlib.h>
7510EOF 12251int
7511if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12252main ()
7512 egrep "free" >/dev/null 2>&1; then 12253{
7513 : 12254
12255 FILE *f = fopen ("conftest.val", "w");
12256 if (! f)
12257 exit (1);
12258 if (((long) (sizeof (short))) < 0)
12259 {
12260 long i = longval ();
12261 if (i != ((long) (sizeof (short))))
12262 exit (1);
12263 fprintf (f, "%ld\n", i);
12264 }
7514else 12265 else
7515 rm -rf conftest* 12266 {
7516 ac_cv_header_stdc=no 12267 unsigned long i = ulongval ();
12268 if (i != ((long) (sizeof (short))))
12269 exit (1);
12270 fprintf (f, "%lu\n", i);
12271 }
12272 exit (ferror (f) || fclose (f) != 0);
12273
12274 ;
12275 return 0;
12276}
12277_ACEOF
12278rm -f conftest$ac_exeext
12279if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12280 (eval $ac_link) 2>&5
12281 ac_status=$?
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12285 (eval $ac_try) 2>&5
12286 ac_status=$?
12287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); }; }; then
12289 ac_cv_sizeof_short=`cat conftest.val`
12290else
12291 echo "$as_me: program exited with status $ac_status" >&5
12292echo "$as_me: failed program was:" >&5
12293sed 's/^/| /' conftest.$ac_ext >&5
12294
12295( exit $ac_status )
12296{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
12297See \`config.log' for more details." >&5
12298echo "$as_me: error: cannot compute sizeof (short), 77
12299See \`config.log' for more details." >&2;}
12300 { (exit 1); exit 1; }; }
7517fi 12301fi
12302rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12303fi
12304fi
7518rm -f conftest* 12305rm -f conftest.val
7519 12306else
12307 ac_cv_sizeof_short=0
7520fi 12308fi
12309fi
12310echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
12311echo "${ECHO_T}$ac_cv_sizeof_short" >&6
12312cat >>confdefs.h <<_ACEOF
12313#define SIZEOF_SHORT $ac_cv_sizeof_short
12314_ACEOF
7521 12315
12316
12317echo "$as_me:$LINENO: checking for int" >&5
12318echo $ECHO_N "checking for int... $ECHO_C" >&6
12319if test "${ac_cv_type_int+set}" = set; then
12320 echo $ECHO_N "(cached) $ECHO_C" >&6
12321else
12322 cat >conftest.$ac_ext <<_ACEOF
12323/* confdefs.h. */
12324_ACEOF
12325cat confdefs.h >>conftest.$ac_ext
12326cat >>conftest.$ac_ext <<_ACEOF
12327/* end confdefs.h. */
12328$ac_includes_default
12329int
12330main ()
12331{
12332if ((int *) 0)
12333 return 0;
12334if (sizeof (int))
12335 return 0;
12336 ;
12337 return 0;
12338}
12339_ACEOF
12340rm -f conftest.$ac_objext
12341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12342 (eval $ac_compile) 2>conftest.er1
12343 ac_status=$?
12344 grep -v '^ *+' conftest.er1 >conftest.err
12345 rm -f conftest.er1
12346 cat conftest.err >&5
12347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348 (exit $ac_status); } &&
12349 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12351 (eval $ac_try) 2>&5
12352 ac_status=$?
12353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354 (exit $ac_status); }; } &&
12355 { ac_try='test -s conftest.$ac_objext'
12356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12357 (eval $ac_try) 2>&5
12358 ac_status=$?
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); }; }; then
12361 ac_cv_type_int=yes
12362else
12363 echo "$as_me: failed program was:" >&5
12364sed 's/^/| /' conftest.$ac_ext >&5
12365
12366ac_cv_type_int=no
12367fi
12368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12369fi
12370echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12371echo "${ECHO_T}$ac_cv_type_int" >&6
12372
12373echo "$as_me:$LINENO: checking size of int" >&5
12374echo $ECHO_N "checking size of int... $ECHO_C" >&6
12375if test "${ac_cv_sizeof_int+set}" = set; then
12376 echo $ECHO_N "(cached) $ECHO_C" >&6
12377else
7522if test $ac_cv_header_stdc = yes; then 12378 if test "$ac_cv_type_int" = yes; then
7523 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 12379 # The cast to unsigned long works around a bug in the HP C Compiler
12380 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12381 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12382 # This bug is HP SR number 8606223364.
7524if test "$cross_compiling" = yes; then 12383 if test "$cross_compiling" = yes; then
7525 : 12384 # Depending upon the size, compute the lo and hi bounds.
12385cat >conftest.$ac_ext <<_ACEOF
12386/* confdefs.h. */
12387_ACEOF
12388cat confdefs.h >>conftest.$ac_ext
12389cat >>conftest.$ac_ext <<_ACEOF
12390/* end confdefs.h. */
12391$ac_includes_default
12392int
12393main ()
12394{
12395static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
12396test_array [0] = 0
12397
12398 ;
12399 return 0;
12400}
12401_ACEOF
12402rm -f conftest.$ac_objext
12403if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12404 (eval $ac_compile) 2>conftest.er1
12405 ac_status=$?
12406 grep -v '^ *+' conftest.er1 >conftest.err
12407 rm -f conftest.er1
12408 cat conftest.err >&5
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); } &&
12411 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12413 (eval $ac_try) 2>&5
12414 ac_status=$?
12415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); }; } &&
12417 { ac_try='test -s conftest.$ac_objext'
12418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12419 (eval $ac_try) 2>&5
12420 ac_status=$?
12421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422 (exit $ac_status); }; }; then
12423 ac_lo=0 ac_mid=0
12424 while :; do
12425 cat >conftest.$ac_ext <<_ACEOF
12426/* confdefs.h. */
12427_ACEOF
12428cat confdefs.h >>conftest.$ac_ext
12429cat >>conftest.$ac_ext <<_ACEOF
12430/* end confdefs.h. */
12431$ac_includes_default
12432int
12433main ()
12434{
12435static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12436test_array [0] = 0
12437
12438 ;
12439 return 0;
12440}
12441_ACEOF
12442rm -f conftest.$ac_objext
12443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12444 (eval $ac_compile) 2>conftest.er1
12445 ac_status=$?
12446 grep -v '^ *+' conftest.er1 >conftest.err
12447 rm -f conftest.er1
12448 cat conftest.err >&5
12449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450 (exit $ac_status); } &&
12451 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12453 (eval $ac_try) 2>&5
12454 ac_status=$?
12455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456 (exit $ac_status); }; } &&
12457 { ac_try='test -s conftest.$ac_objext'
12458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12459 (eval $ac_try) 2>&5
12460 ac_status=$?
12461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462 (exit $ac_status); }; }; then
12463 ac_hi=$ac_mid; break
7526else 12464else
12465 echo "$as_me: failed program was:" >&5
12466sed 's/^/| /' conftest.$ac_ext >&5
12467
12468ac_lo=`expr $ac_mid + 1`
12469 if test $ac_lo -le $ac_mid; then
12470 ac_lo= ac_hi=
12471 break
12472 fi
12473 ac_mid=`expr 2 '*' $ac_mid + 1`
12474fi
12475rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12476 done
12477else
12478 echo "$as_me: failed program was:" >&5
12479sed 's/^/| /' conftest.$ac_ext >&5
12480
12481cat >conftest.$ac_ext <<_ACEOF
12482/* confdefs.h. */
12483_ACEOF
12484cat confdefs.h >>conftest.$ac_ext
12485cat >>conftest.$ac_ext <<_ACEOF
12486/* end confdefs.h. */
12487$ac_includes_default
12488int
12489main ()
12490{
12491static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
12492test_array [0] = 0
12493
12494 ;
12495 return 0;
12496}
12497_ACEOF
12498rm -f conftest.$ac_objext
12499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12500 (eval $ac_compile) 2>conftest.er1
12501 ac_status=$?
12502 grep -v '^ *+' conftest.er1 >conftest.err
12503 rm -f conftest.er1
12504 cat conftest.err >&5
12505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506 (exit $ac_status); } &&
12507 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12509 (eval $ac_try) 2>&5
12510 ac_status=$?
12511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512 (exit $ac_status); }; } &&
12513 { ac_try='test -s conftest.$ac_objext'
12514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12515 (eval $ac_try) 2>&5
12516 ac_status=$?
12517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518 (exit $ac_status); }; }; then
12519 ac_hi=-1 ac_mid=-1
12520 while :; do
12521 cat >conftest.$ac_ext <<_ACEOF
12522/* confdefs.h. */
12523_ACEOF
12524cat confdefs.h >>conftest.$ac_ext
12525cat >>conftest.$ac_ext <<_ACEOF
12526/* end confdefs.h. */
12527$ac_includes_default
12528int
12529main ()
12530{
12531static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
12532test_array [0] = 0
12533
12534 ;
12535 return 0;
12536}
12537_ACEOF
12538rm -f conftest.$ac_objext
12539if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12540 (eval $ac_compile) 2>conftest.er1
12541 ac_status=$?
12542 grep -v '^ *+' conftest.er1 >conftest.err
12543 rm -f conftest.er1
12544 cat conftest.err >&5
12545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546 (exit $ac_status); } &&
12547 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12549 (eval $ac_try) 2>&5
12550 ac_status=$?
12551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552 (exit $ac_status); }; } &&
12553 { ac_try='test -s conftest.$ac_objext'
12554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12555 (eval $ac_try) 2>&5
12556 ac_status=$?
12557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558 (exit $ac_status); }; }; then
12559 ac_lo=$ac_mid; break
12560else
12561 echo "$as_me: failed program was:" >&5
12562sed 's/^/| /' conftest.$ac_ext >&5
12563
12564ac_hi=`expr '(' $ac_mid ')' - 1`
12565 if test $ac_mid -le $ac_hi; then
12566 ac_lo= ac_hi=
12567 break
12568 fi
12569 ac_mid=`expr 2 '*' $ac_mid`
12570fi
12571rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12572 done
12573else
12574 echo "$as_me: failed program was:" >&5
12575sed 's/^/| /' conftest.$ac_ext >&5
12576
12577ac_lo= ac_hi=
12578fi
12579rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12580fi
12581rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12582# Binary search between lo and hi bounds.
12583while test "x$ac_lo" != "x$ac_hi"; do
12584 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7527 cat > conftest.$ac_ext <<EOF 12585 cat >conftest.$ac_ext <<_ACEOF
7528#line 7529 "configure" 12586/* confdefs.h. */
7529#include "confdefs.h" 12587_ACEOF
7530#include <ctype.h> 12588cat confdefs.h >>conftest.$ac_ext
7531#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 12589cat >>conftest.$ac_ext <<_ACEOF
7532#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 12590/* end confdefs.h. */
7533#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 12591$ac_includes_default
7534int main () { int i; for (i = 0; i < 256; i++) 12592int
7535if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 12593main ()
7536exit (0); } 12594{
12595static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12596test_array [0] = 0
7537 12597
7538EOF 12598 ;
7539if { (eval echo configure:7540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 12599 return 0;
7540then 12600}
7541 : 12601_ACEOF
12602rm -f conftest.$ac_objext
12603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12604 (eval $ac_compile) 2>conftest.er1
12605 ac_status=$?
12606 grep -v '^ *+' conftest.er1 >conftest.err
12607 rm -f conftest.er1
12608 cat conftest.err >&5
12609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610 (exit $ac_status); } &&
12611 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12613 (eval $ac_try) 2>&5
12614 ac_status=$?
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); }; } &&
12617 { ac_try='test -s conftest.$ac_objext'
12618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12619 (eval $ac_try) 2>&5
12620 ac_status=$?
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); }; }; then
12623 ac_hi=$ac_mid
7542else 12624else
7543 echo "configure: failed program was:" >&5 12625 echo "$as_me: failed program was:" >&5
7544 cat conftest.$ac_ext >&5 12626sed 's/^/| /' conftest.$ac_ext >&5
7545 rm -fr conftest*
7546 ac_cv_header_stdc=no
7547fi
7548rm -fr conftest*
7549fi
7550 12627
12628ac_lo=`expr '(' $ac_mid ')' + 1`
7551fi 12629fi
7552fi 12630rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7553 12631done
7554echo "$ac_t""$ac_cv_header_stdc" 1>&6 12632case $ac_lo in
7555if test $ac_cv_header_stdc = yes; then 12633?*) ac_cv_sizeof_int=$ac_lo;;
7556 cat >> confdefs.h <<\EOF 12634'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7557#define STDC_HEADERS 1 12635See \`config.log' for more details." >&5
7558EOF 12636echo "$as_me: error: cannot compute sizeof (int), 77
7559 12637See \`config.log' for more details." >&2;}
7560fi 12638 { (exit 1); exit 1; }; } ;;
7561 12639esac
7562echo $ac_n "checking for mode_t""... $ac_c" 1>&6
7563echo "configure:7564: checking for mode_t" >&5
7564if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
7565 echo $ac_n "(cached) $ac_c" 1>&6
7566else 12640else
12641 if test "$cross_compiling" = yes; then
12642 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
12643echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
12644 { (exit 1); exit 1; }; }
12645else
7567 cat > conftest.$ac_ext <<EOF 12646 cat >conftest.$ac_ext <<_ACEOF
7568#line 7569 "configure" 12647/* confdefs.h. */
7569#include "confdefs.h" 12648_ACEOF
12649cat confdefs.h >>conftest.$ac_ext
12650cat >>conftest.$ac_ext <<_ACEOF
12651/* end confdefs.h. */
12652$ac_includes_default
12653long longval () { return (long) (sizeof (int)); }
12654unsigned long ulongval () { return (long) (sizeof (int)); }
7570#include <sys/types.h> 12655#include <stdio.h>
7571#if STDC_HEADERS
7572#include <stdlib.h> 12656#include <stdlib.h>
7573#include <stddef.h> 12657int
7574#endif 12658main ()
7575EOF 12659{
7576if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12660
7577 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 12661 FILE *f = fopen ("conftest.val", "w");
7578 rm -rf conftest* 12662 if (! f)
7579 ac_cv_type_mode_t=yes 12663 exit (1);
12664 if (((long) (sizeof (int))) < 0)
12665 {
12666 long i = longval ();
12667 if (i != ((long) (sizeof (int))))
12668 exit (1);
12669 fprintf (f, "%ld\n", i);
12670 }
7580else 12671 else
7581 rm -rf conftest* 12672 {
7582 ac_cv_type_mode_t=no 12673 unsigned long i = ulongval ();
12674 if (i != ((long) (sizeof (int))))
12675 exit (1);
12676 fprintf (f, "%lu\n", i);
12677 }
12678 exit (ferror (f) || fclose (f) != 0);
12679
12680 ;
12681 return 0;
12682}
12683_ACEOF
12684rm -f conftest$ac_exeext
12685if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12686 (eval $ac_link) 2>&5
12687 ac_status=$?
12688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12691 (eval $ac_try) 2>&5
12692 ac_status=$?
12693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694 (exit $ac_status); }; }; then
12695 ac_cv_sizeof_int=`cat conftest.val`
12696else
12697 echo "$as_me: program exited with status $ac_status" >&5
12698echo "$as_me: failed program was:" >&5
12699sed 's/^/| /' conftest.$ac_ext >&5
12700
12701( exit $ac_status )
12702{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12703See \`config.log' for more details." >&5
12704echo "$as_me: error: cannot compute sizeof (int), 77
12705See \`config.log' for more details." >&2;}
12706 { (exit 1); exit 1; }; }
7583fi 12707fi
12708rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12709fi
12710fi
7584rm -f conftest* 12711rm -f conftest.val
7585 12712else
12713 ac_cv_sizeof_int=0
7586fi 12714fi
7587echo "$ac_t""$ac_cv_type_mode_t" 1>&6 12715fi
7588if test $ac_cv_type_mode_t = no; then 12716echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
12717echo "${ECHO_T}$ac_cv_sizeof_int" >&6
7589 cat >> confdefs.h <<\EOF 12718cat >>confdefs.h <<_ACEOF
7590#define mode_t int 12719#define SIZEOF_INT $ac_cv_sizeof_int
7591EOF 12720_ACEOF
7592 12721
7593fi
7594 12722
7595echo $ac_n "checking for pid_t""... $ac_c" 1>&6 12723echo "$as_me:$LINENO: checking for long" >&5
7596echo "configure:7597: checking for pid_t" >&5 12724echo $ECHO_N "checking for long... $ECHO_C" >&6
7597if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then 12725if test "${ac_cv_type_long+set}" = set; then
7598 echo $ac_n "(cached) $ac_c" 1>&6 12726 echo $ECHO_N "(cached) $ECHO_C" >&6
7599else 12727else
7600 cat > conftest.$ac_ext <<EOF 12728 cat >conftest.$ac_ext <<_ACEOF
7601#line 7602 "configure" 12729/* confdefs.h. */
7602#include "confdefs.h" 12730_ACEOF
12731cat confdefs.h >>conftest.$ac_ext
12732cat >>conftest.$ac_ext <<_ACEOF
12733/* end confdefs.h. */
12734$ac_includes_default
12735int
12736main ()
12737{
12738if ((long *) 0)
12739 return 0;
12740if (sizeof (long))
12741 return 0;
12742 ;
12743 return 0;
12744}
12745_ACEOF
12746rm -f conftest.$ac_objext
12747if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12748 (eval $ac_compile) 2>conftest.er1
12749 ac_status=$?
12750 grep -v '^ *+' conftest.er1 >conftest.err
12751 rm -f conftest.er1
12752 cat conftest.err >&5
12753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754 (exit $ac_status); } &&
12755 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12757 (eval $ac_try) 2>&5
12758 ac_status=$?
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); }; } &&
12761 { ac_try='test -s conftest.$ac_objext'
12762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12763 (eval $ac_try) 2>&5
12764 ac_status=$?
12765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766 (exit $ac_status); }; }; then
12767 ac_cv_type_long=yes
12768else
12769 echo "$as_me: failed program was:" >&5
12770sed 's/^/| /' conftest.$ac_ext >&5
12771
12772ac_cv_type_long=no
12773fi
12774rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12775fi
12776echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12777echo "${ECHO_T}$ac_cv_type_long" >&6
12778
12779echo "$as_me:$LINENO: checking size of long" >&5
12780echo $ECHO_N "checking size of long... $ECHO_C" >&6
12781if test "${ac_cv_sizeof_long+set}" = set; then
12782 echo $ECHO_N "(cached) $ECHO_C" >&6
12783else
12784 if test "$ac_cv_type_long" = yes; then
12785 # The cast to unsigned long works around a bug in the HP C Compiler
12786 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12787 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12788 # This bug is HP SR number 8606223364.
12789 if test "$cross_compiling" = yes; then
12790 # Depending upon the size, compute the lo and hi bounds.
12791cat >conftest.$ac_ext <<_ACEOF
12792/* confdefs.h. */
12793_ACEOF
12794cat confdefs.h >>conftest.$ac_ext
12795cat >>conftest.$ac_ext <<_ACEOF
12796/* end confdefs.h. */
12797$ac_includes_default
12798int
12799main ()
12800{
12801static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12802test_array [0] = 0
12803
12804 ;
12805 return 0;
12806}
12807_ACEOF
12808rm -f conftest.$ac_objext
12809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12810 (eval $ac_compile) 2>conftest.er1
12811 ac_status=$?
12812 grep -v '^ *+' conftest.er1 >conftest.err
12813 rm -f conftest.er1
12814 cat conftest.err >&5
12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); } &&
12817 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12819 (eval $ac_try) 2>&5
12820 ac_status=$?
12821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822 (exit $ac_status); }; } &&
12823 { ac_try='test -s conftest.$ac_objext'
12824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12825 (eval $ac_try) 2>&5
12826 ac_status=$?
12827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828 (exit $ac_status); }; }; then
12829 ac_lo=0 ac_mid=0
12830 while :; do
12831 cat >conftest.$ac_ext <<_ACEOF
12832/* confdefs.h. */
12833_ACEOF
12834cat confdefs.h >>conftest.$ac_ext
12835cat >>conftest.$ac_ext <<_ACEOF
12836/* end confdefs.h. */
12837$ac_includes_default
12838int
12839main ()
12840{
12841static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12842test_array [0] = 0
12843
12844 ;
12845 return 0;
12846}
12847_ACEOF
12848rm -f conftest.$ac_objext
12849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12850 (eval $ac_compile) 2>conftest.er1
12851 ac_status=$?
12852 grep -v '^ *+' conftest.er1 >conftest.err
12853 rm -f conftest.er1
12854 cat conftest.err >&5
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); } &&
12857 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12859 (eval $ac_try) 2>&5
12860 ac_status=$?
12861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12862 (exit $ac_status); }; } &&
12863 { ac_try='test -s conftest.$ac_objext'
12864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12865 (eval $ac_try) 2>&5
12866 ac_status=$?
12867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868 (exit $ac_status); }; }; then
12869 ac_hi=$ac_mid; break
12870else
12871 echo "$as_me: failed program was:" >&5
12872sed 's/^/| /' conftest.$ac_ext >&5
12873
12874ac_lo=`expr $ac_mid + 1`
12875 if test $ac_lo -le $ac_mid; then
12876 ac_lo= ac_hi=
12877 break
12878 fi
12879 ac_mid=`expr 2 '*' $ac_mid + 1`
12880fi
12881rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12882 done
12883else
12884 echo "$as_me: failed program was:" >&5
12885sed 's/^/| /' conftest.$ac_ext >&5
12886
12887cat >conftest.$ac_ext <<_ACEOF
12888/* confdefs.h. */
12889_ACEOF
12890cat confdefs.h >>conftest.$ac_ext
12891cat >>conftest.$ac_ext <<_ACEOF
12892/* end confdefs.h. */
12893$ac_includes_default
12894int
12895main ()
12896{
12897static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12898test_array [0] = 0
12899
12900 ;
12901 return 0;
12902}
12903_ACEOF
12904rm -f conftest.$ac_objext
12905if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12906 (eval $ac_compile) 2>conftest.er1
12907 ac_status=$?
12908 grep -v '^ *+' conftest.er1 >conftest.err
12909 rm -f conftest.er1
12910 cat conftest.err >&5
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); } &&
12913 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12915 (eval $ac_try) 2>&5
12916 ac_status=$?
12917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918 (exit $ac_status); }; } &&
12919 { ac_try='test -s conftest.$ac_objext'
12920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12921 (eval $ac_try) 2>&5
12922 ac_status=$?
12923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924 (exit $ac_status); }; }; then
12925 ac_hi=-1 ac_mid=-1
12926 while :; do
12927 cat >conftest.$ac_ext <<_ACEOF
12928/* confdefs.h. */
12929_ACEOF
12930cat confdefs.h >>conftest.$ac_ext
12931cat >>conftest.$ac_ext <<_ACEOF
12932/* end confdefs.h. */
12933$ac_includes_default
12934int
12935main ()
12936{
12937static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12938test_array [0] = 0
12939
12940 ;
12941 return 0;
12942}
12943_ACEOF
12944rm -f conftest.$ac_objext
12945if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12946 (eval $ac_compile) 2>conftest.er1
12947 ac_status=$?
12948 grep -v '^ *+' conftest.er1 >conftest.err
12949 rm -f conftest.er1
12950 cat conftest.err >&5
12951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952 (exit $ac_status); } &&
12953 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12955 (eval $ac_try) 2>&5
12956 ac_status=$?
12957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958 (exit $ac_status); }; } &&
12959 { ac_try='test -s conftest.$ac_objext'
12960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12961 (eval $ac_try) 2>&5
12962 ac_status=$?
12963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964 (exit $ac_status); }; }; then
12965 ac_lo=$ac_mid; break
12966else
12967 echo "$as_me: failed program was:" >&5
12968sed 's/^/| /' conftest.$ac_ext >&5
12969
12970ac_hi=`expr '(' $ac_mid ')' - 1`
12971 if test $ac_mid -le $ac_hi; then
12972 ac_lo= ac_hi=
12973 break
12974 fi
12975 ac_mid=`expr 2 '*' $ac_mid`
12976fi
12977rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12978 done
12979else
12980 echo "$as_me: failed program was:" >&5
12981sed 's/^/| /' conftest.$ac_ext >&5
12982
12983ac_lo= ac_hi=
12984fi
12985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12986fi
12987rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12988# Binary search between lo and hi bounds.
12989while test "x$ac_lo" != "x$ac_hi"; do
12990 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12991 cat >conftest.$ac_ext <<_ACEOF
12992/* confdefs.h. */
12993_ACEOF
12994cat confdefs.h >>conftest.$ac_ext
12995cat >>conftest.$ac_ext <<_ACEOF
12996/* end confdefs.h. */
12997$ac_includes_default
12998int
12999main ()
13000{
13001static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13002test_array [0] = 0
13003
13004 ;
13005 return 0;
13006}
13007_ACEOF
13008rm -f conftest.$ac_objext
13009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13010 (eval $ac_compile) 2>conftest.er1
13011 ac_status=$?
13012 grep -v '^ *+' conftest.er1 >conftest.err
13013 rm -f conftest.er1
13014 cat conftest.err >&5
13015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016 (exit $ac_status); } &&
13017 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13019 (eval $ac_try) 2>&5
13020 ac_status=$?
13021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022 (exit $ac_status); }; } &&
13023 { ac_try='test -s conftest.$ac_objext'
13024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13025 (eval $ac_try) 2>&5
13026 ac_status=$?
13027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028 (exit $ac_status); }; }; then
13029 ac_hi=$ac_mid
13030else
13031 echo "$as_me: failed program was:" >&5
13032sed 's/^/| /' conftest.$ac_ext >&5
13033
13034ac_lo=`expr '(' $ac_mid ')' + 1`
13035fi
13036rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13037done
13038case $ac_lo in
13039?*) ac_cv_sizeof_long=$ac_lo;;
13040'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13041See \`config.log' for more details." >&5
13042echo "$as_me: error: cannot compute sizeof (long), 77
13043See \`config.log' for more details." >&2;}
13044 { (exit 1); exit 1; }; } ;;
13045esac
13046else
13047 if test "$cross_compiling" = yes; then
13048 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
13049echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
13050 { (exit 1); exit 1; }; }
13051else
13052 cat >conftest.$ac_ext <<_ACEOF
13053/* confdefs.h. */
13054_ACEOF
13055cat confdefs.h >>conftest.$ac_ext
13056cat >>conftest.$ac_ext <<_ACEOF
13057/* end confdefs.h. */
13058$ac_includes_default
13059long longval () { return (long) (sizeof (long)); }
13060unsigned long ulongval () { return (long) (sizeof (long)); }
7603#include <sys/types.h> 13061#include <stdio.h>
7604#if STDC_HEADERS
7605#include <stdlib.h> 13062#include <stdlib.h>
7606#include <stddef.h> 13063int
7607#endif 13064main ()
7608EOF 13065{
7609if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13066
7610 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 13067 FILE *f = fopen ("conftest.val", "w");
7611 rm -rf conftest* 13068 if (! f)
7612 ac_cv_type_pid_t=yes 13069 exit (1);
13070 if (((long) (sizeof (long))) < 0)
13071 {
13072 long i = longval ();
13073 if (i != ((long) (sizeof (long))))
13074 exit (1);
13075 fprintf (f, "%ld\n", i);
13076 }
7613else 13077 else
7614 rm -rf conftest* 13078 {
7615 ac_cv_type_pid_t=no 13079 unsigned long i = ulongval ();
13080 if (i != ((long) (sizeof (long))))
13081 exit (1);
13082 fprintf (f, "%lu\n", i);
13083 }
13084 exit (ferror (f) || fclose (f) != 0);
13085
13086 ;
13087 return 0;
13088}
13089_ACEOF
13090rm -f conftest$ac_exeext
13091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13092 (eval $ac_link) 2>&5
13093 ac_status=$?
13094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13097 (eval $ac_try) 2>&5
13098 ac_status=$?
13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); }; }; then
13101 ac_cv_sizeof_long=`cat conftest.val`
13102else
13103 echo "$as_me: program exited with status $ac_status" >&5
13104echo "$as_me: failed program was:" >&5
13105sed 's/^/| /' conftest.$ac_ext >&5
13106
13107( exit $ac_status )
13108{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13109See \`config.log' for more details." >&5
13110echo "$as_me: error: cannot compute sizeof (long), 77
13111See \`config.log' for more details." >&2;}
13112 { (exit 1); exit 1; }; }
7616fi 13113fi
13114rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13115fi
13116fi
7617rm -f conftest* 13117rm -f conftest.val
7618 13118else
13119 ac_cv_sizeof_long=0
7619fi 13120fi
7620echo "$ac_t""$ac_cv_type_pid_t" 1>&6 13121fi
7621if test $ac_cv_type_pid_t = no; then 13122echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13123echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7622 cat >> confdefs.h <<\EOF 13124cat >>confdefs.h <<_ACEOF
7623#define pid_t int 13125#define SIZEOF_LONG $ac_cv_sizeof_long
7624EOF 13126_ACEOF
7625 13127
7626fi
7627 13128
7628echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 13129echo "$as_me:$LINENO: checking for long long" >&5
7629echo "configure:7630: checking for uid_t in sys/types.h" >&5 13130echo $ECHO_N "checking for long long... $ECHO_C" >&6
7630if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then 13131if test "${ac_cv_type_long_long+set}" = set; then
7631 echo $ac_n "(cached) $ac_c" 1>&6 13132 echo $ECHO_N "(cached) $ECHO_C" >&6
7632else 13133else
7633 cat > conftest.$ac_ext <<EOF 13134 cat >conftest.$ac_ext <<_ACEOF
7634#line 7635 "configure" 13135/* confdefs.h. */
7635#include "confdefs.h" 13136_ACEOF
7636#include <sys/types.h> 13137cat confdefs.h >>conftest.$ac_ext
7637EOF 13138cat >>conftest.$ac_ext <<_ACEOF
7638if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13139/* end confdefs.h. */
7639 egrep "uid_t" >/dev/null 2>&1; then 13140$ac_includes_default
13141int
13142main ()
13143{
13144if ((long long *) 0)
13145 return 0;
13146if (sizeof (long long))
13147 return 0;
13148 ;
13149 return 0;
13150}
13151_ACEOF
13152rm -f conftest.$ac_objext
13153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13154 (eval $ac_compile) 2>conftest.er1
13155 ac_status=$?
13156 grep -v '^ *+' conftest.er1 >conftest.err
7640 rm -rf conftest* 13157 rm -f conftest.er1
13158 cat conftest.err >&5
13159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160 (exit $ac_status); } &&
13161 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13163 (eval $ac_try) 2>&5
13164 ac_status=$?
13165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166 (exit $ac_status); }; } &&
13167 { ac_try='test -s conftest.$ac_objext'
13168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13169 (eval $ac_try) 2>&5
13170 ac_status=$?
13171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172 (exit $ac_status); }; }; then
7641 ac_cv_type_uid_t=yes 13173 ac_cv_type_long_long=yes
7642else 13174else
7643 rm -rf conftest* 13175 echo "$as_me: failed program was:" >&5
7644 ac_cv_type_uid_t=no 13176sed 's/^/| /' conftest.$ac_ext >&5
7645fi
7646rm -f conftest*
7647 13177
13178ac_cv_type_long_long=no
7648fi 13179fi
7649 13180rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7650echo "$ac_t""$ac_cv_type_uid_t" 1>&6
7651if test $ac_cv_type_uid_t = no; then
7652 cat >> confdefs.h <<\EOF
7653#define uid_t int
7654EOF
7655
7656 cat >> confdefs.h <<\EOF
7657#define gid_t int
7658EOF
7659
7660fi 13181fi
13182echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13183echo "${ECHO_T}$ac_cv_type_long_long" >&6
7661 13184
7662 13185echo "$as_me:$LINENO: checking size of long long" >&5
7663 13186echo $ECHO_N "checking size of long long... $ECHO_C" >&6
7664echo $ac_n "checking size of char""... $ac_c" 1>&6 13187if test "${ac_cv_sizeof_long_long+set}" = set; then
7665echo "configure:7666: checking size of char" >&5
7666if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
7667 echo $ac_n "(cached) $ac_c" 1>&6 13188 echo $ECHO_N "(cached) $ECHO_C" >&6
7668else 13189else
13190 if test "$ac_cv_type_long_long" = yes; then
13191 # The cast to unsigned long works around a bug in the HP C Compiler
13192 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13193 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13194 # This bug is HP SR number 8606223364.
7669 if test "$cross_compiling" = yes; then 13195 if test "$cross_compiling" = yes; then
7670 ac_cv_sizeof_char=1 13196 # Depending upon the size, compute the lo and hi bounds.
13197cat >conftest.$ac_ext <<_ACEOF
13198/* confdefs.h. */
13199_ACEOF
13200cat confdefs.h >>conftest.$ac_ext
13201cat >>conftest.$ac_ext <<_ACEOF
13202/* end confdefs.h. */
13203$ac_includes_default
13204int
13205main ()
13206{
13207static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
13208test_array [0] = 0
13209
13210 ;
13211 return 0;
13212}
13213_ACEOF
13214rm -f conftest.$ac_objext
13215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13216 (eval $ac_compile) 2>conftest.er1
13217 ac_status=$?
13218 grep -v '^ *+' conftest.er1 >conftest.err
13219 rm -f conftest.er1
13220 cat conftest.err >&5
13221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13222 (exit $ac_status); } &&
13223 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13225 (eval $ac_try) 2>&5
13226 ac_status=$?
13227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228 (exit $ac_status); }; } &&
13229 { ac_try='test -s conftest.$ac_objext'
13230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13231 (eval $ac_try) 2>&5
13232 ac_status=$?
13233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13234 (exit $ac_status); }; }; then
13235 ac_lo=0 ac_mid=0
13236 while :; do
13237 cat >conftest.$ac_ext <<_ACEOF
13238/* confdefs.h. */
13239_ACEOF
13240cat confdefs.h >>conftest.$ac_ext
13241cat >>conftest.$ac_ext <<_ACEOF
13242/* end confdefs.h. */
13243$ac_includes_default
13244int
13245main ()
13246{
13247static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
13248test_array [0] = 0
13249
13250 ;
13251 return 0;
13252}
13253_ACEOF
13254rm -f conftest.$ac_objext
13255if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13256 (eval $ac_compile) 2>conftest.er1
13257 ac_status=$?
13258 grep -v '^ *+' conftest.er1 >conftest.err
13259 rm -f conftest.er1
13260 cat conftest.err >&5
13261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262 (exit $ac_status); } &&
13263 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13265 (eval $ac_try) 2>&5
13266 ac_status=$?
13267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268 (exit $ac_status); }; } &&
13269 { ac_try='test -s conftest.$ac_objext'
13270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13271 (eval $ac_try) 2>&5
13272 ac_status=$?
13273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); }; }; then
13275 ac_hi=$ac_mid; break
7671else 13276else
13277 echo "$as_me: failed program was:" >&5
13278sed 's/^/| /' conftest.$ac_ext >&5
13279
13280ac_lo=`expr $ac_mid + 1`
13281 if test $ac_lo -le $ac_mid; then
13282 ac_lo= ac_hi=
13283 break
13284 fi
13285 ac_mid=`expr 2 '*' $ac_mid + 1`
13286fi
13287rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13288 done
13289else
13290 echo "$as_me: failed program was:" >&5
13291sed 's/^/| /' conftest.$ac_ext >&5
13292
13293cat >conftest.$ac_ext <<_ACEOF
13294/* confdefs.h. */
13295_ACEOF
13296cat confdefs.h >>conftest.$ac_ext
13297cat >>conftest.$ac_ext <<_ACEOF
13298/* end confdefs.h. */
13299$ac_includes_default
13300int
13301main ()
13302{
13303static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
13304test_array [0] = 0
13305
13306 ;
13307 return 0;
13308}
13309_ACEOF
13310rm -f conftest.$ac_objext
13311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13312 (eval $ac_compile) 2>conftest.er1
13313 ac_status=$?
13314 grep -v '^ *+' conftest.er1 >conftest.err
13315 rm -f conftest.er1
13316 cat conftest.err >&5
13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); } &&
13319 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13321 (eval $ac_try) 2>&5
13322 ac_status=$?
13323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324 (exit $ac_status); }; } &&
13325 { ac_try='test -s conftest.$ac_objext'
13326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13327 (eval $ac_try) 2>&5
13328 ac_status=$?
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); }; }; then
13331 ac_hi=-1 ac_mid=-1
13332 while :; do
13333 cat >conftest.$ac_ext <<_ACEOF
13334/* confdefs.h. */
13335_ACEOF
13336cat confdefs.h >>conftest.$ac_ext
13337cat >>conftest.$ac_ext <<_ACEOF
13338/* end confdefs.h. */
13339$ac_includes_default
13340int
13341main ()
13342{
13343static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
13344test_array [0] = 0
13345
13346 ;
13347 return 0;
13348}
13349_ACEOF
13350rm -f conftest.$ac_objext
13351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13352 (eval $ac_compile) 2>conftest.er1
13353 ac_status=$?
13354 grep -v '^ *+' conftest.er1 >conftest.err
13355 rm -f conftest.er1
13356 cat conftest.err >&5
13357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13358 (exit $ac_status); } &&
13359 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13361 (eval $ac_try) 2>&5
13362 ac_status=$?
13363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364 (exit $ac_status); }; } &&
13365 { ac_try='test -s conftest.$ac_objext'
13366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13367 (eval $ac_try) 2>&5
13368 ac_status=$?
13369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370 (exit $ac_status); }; }; then
13371 ac_lo=$ac_mid; break
13372else
13373 echo "$as_me: failed program was:" >&5
13374sed 's/^/| /' conftest.$ac_ext >&5
13375
13376ac_hi=`expr '(' $ac_mid ')' - 1`
13377 if test $ac_mid -le $ac_hi; then
13378 ac_lo= ac_hi=
13379 break
13380 fi
13381 ac_mid=`expr 2 '*' $ac_mid`
13382fi
13383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13384 done
13385else
13386 echo "$as_me: failed program was:" >&5
13387sed 's/^/| /' conftest.$ac_ext >&5
13388
13389ac_lo= ac_hi=
13390fi
13391rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13392fi
13393rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13394# Binary search between lo and hi bounds.
13395while test "x$ac_lo" != "x$ac_hi"; do
13396 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7672 cat > conftest.$ac_ext <<EOF 13397 cat >conftest.$ac_ext <<_ACEOF
7673#line 7674 "configure" 13398/* confdefs.h. */
7674#include "confdefs.h" 13399_ACEOF
13400cat confdefs.h >>conftest.$ac_ext
13401cat >>conftest.$ac_ext <<_ACEOF
13402/* end confdefs.h. */
13403$ac_includes_default
13404int
13405main ()
13406{
13407static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
13408test_array [0] = 0
13409
13410 ;
13411 return 0;
13412}
13413_ACEOF
13414rm -f conftest.$ac_objext
13415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13416 (eval $ac_compile) 2>conftest.er1
13417 ac_status=$?
13418 grep -v '^ *+' conftest.er1 >conftest.err
13419 rm -f conftest.er1
13420 cat conftest.err >&5
13421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422 (exit $ac_status); } &&
13423 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13425 (eval $ac_try) 2>&5
13426 ac_status=$?
13427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428 (exit $ac_status); }; } &&
13429 { ac_try='test -s conftest.$ac_objext'
13430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13431 (eval $ac_try) 2>&5
13432 ac_status=$?
13433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434 (exit $ac_status); }; }; then
13435 ac_hi=$ac_mid
13436else
13437 echo "$as_me: failed program was:" >&5
13438sed 's/^/| /' conftest.$ac_ext >&5
13439
13440ac_lo=`expr '(' $ac_mid ')' + 1`
13441fi
13442rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13443done
13444case $ac_lo in
13445?*) ac_cv_sizeof_long_long=$ac_lo;;
13446'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
13447See \`config.log' for more details." >&5
13448echo "$as_me: error: cannot compute sizeof (long long), 77
13449See \`config.log' for more details." >&2;}
13450 { (exit 1); exit 1; }; } ;;
13451esac
13452else
13453 if test "$cross_compiling" = yes; then
13454 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
13455echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
13456 { (exit 1); exit 1; }; }
13457else
13458 cat >conftest.$ac_ext <<_ACEOF
13459/* confdefs.h. */
13460_ACEOF
13461cat confdefs.h >>conftest.$ac_ext
13462cat >>conftest.$ac_ext <<_ACEOF
13463/* end confdefs.h. */
13464$ac_includes_default
13465long longval () { return (long) (sizeof (long long)); }
13466unsigned long ulongval () { return (long) (sizeof (long long)); }
7675#include <stdio.h> 13467#include <stdio.h>
7676#include <sys/types.h> 13468#include <stdlib.h>
13469int
7677main() 13470main ()
7678{ 13471{
13472
7679 FILE *f=fopen("conftestval", "w"); 13473 FILE *f = fopen ("conftest.val", "w");
7680 if (!f) exit(1); 13474 if (! f)
7681 fprintf(f, "%d\n", sizeof(char));
7682 exit(0); 13475 exit (1);
13476 if (((long) (sizeof (long long))) < 0)
13477 {
13478 long i = longval ();
13479 if (i != ((long) (sizeof (long long))))
13480 exit (1);
13481 fprintf (f, "%ld\n", i);
13482 }
13483 else
13484 {
13485 unsigned long i = ulongval ();
13486 if (i != ((long) (sizeof (long long))))
13487 exit (1);
13488 fprintf (f, "%lu\n", i);
13489 }
13490 exit (ferror (f) || fclose (f) != 0);
13491
13492 ;
13493 return 0;
7683} 13494}
7684EOF 13495_ACEOF
7685if { (eval echo configure:7686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 13496rm -f conftest$ac_exeext
7686then 13497if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13498 (eval $ac_link) 2>&5
13499 ac_status=$?
13500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13503 (eval $ac_try) 2>&5
13504 ac_status=$?
13505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506 (exit $ac_status); }; }; then
7687 ac_cv_sizeof_char=`cat conftestval` 13507 ac_cv_sizeof_long_long=`cat conftest.val`
7688else 13508else
13509 echo "$as_me: program exited with status $ac_status" >&5
7689 echo "configure: failed program was:" >&5 13510echo "$as_me: failed program was:" >&5
7690 cat conftest.$ac_ext >&5 13511sed 's/^/| /' conftest.$ac_ext >&5
7691 rm -fr conftest* 13512
7692 ac_cv_sizeof_char=0 13513( exit $ac_status )
13514{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
13515See \`config.log' for more details." >&5
13516echo "$as_me: error: cannot compute sizeof (long long), 77
13517See \`config.log' for more details." >&2;}
13518 { (exit 1); exit 1; }; }
7693fi 13519fi
13520rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13521fi
13522fi
7694rm -fr conftest* 13523rm -f conftest.val
13524else
13525 ac_cv_sizeof_long_long=0
7695fi 13526fi
7696
7697fi 13527fi
7698echo "$ac_t""$ac_cv_sizeof_char" 1>&6 13528echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
13529echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
7699cat >> confdefs.h <<EOF 13530cat >>confdefs.h <<_ACEOF
7700#define SIZEOF_CHAR $ac_cv_sizeof_char 13531#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7701EOF 13532_ACEOF
7702 13533
7703 13534
7704echo $ac_n "checking size of short""... $ac_c" 1>&6 13535echo "$as_me:$LINENO: checking for int *" >&5
7705echo "configure:7706: checking size of short" >&5 13536echo $ECHO_N "checking for int *... $ECHO_C" >&6
7706if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then 13537if test "${ac_cv_type_int_p+set}" = set; then
7707 echo $ac_n "(cached) $ac_c" 1>&6 13538 echo $ECHO_N "(cached) $ECHO_C" >&6
7708else 13539else
13540 cat >conftest.$ac_ext <<_ACEOF
13541/* confdefs.h. */
13542_ACEOF
13543cat confdefs.h >>conftest.$ac_ext
13544cat >>conftest.$ac_ext <<_ACEOF
13545/* end confdefs.h. */
13546$ac_includes_default
13547int
13548main ()
13549{
13550if ((int * *) 0)
13551 return 0;
13552if (sizeof (int *))
13553 return 0;
13554 ;
13555 return 0;
13556}
13557_ACEOF
13558rm -f conftest.$ac_objext
13559if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13560 (eval $ac_compile) 2>conftest.er1
13561 ac_status=$?
13562 grep -v '^ *+' conftest.er1 >conftest.err
13563 rm -f conftest.er1
13564 cat conftest.err >&5
13565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 (exit $ac_status); } &&
13567 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13569 (eval $ac_try) 2>&5
13570 ac_status=$?
13571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572 (exit $ac_status); }; } &&
13573 { ac_try='test -s conftest.$ac_objext'
13574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13575 (eval $ac_try) 2>&5
13576 ac_status=$?
13577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578 (exit $ac_status); }; }; then
13579 ac_cv_type_int_p=yes
13580else
13581 echo "$as_me: failed program was:" >&5
13582sed 's/^/| /' conftest.$ac_ext >&5
13583
13584ac_cv_type_int_p=no
13585fi
13586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13587fi
13588echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
13589echo "${ECHO_T}$ac_cv_type_int_p" >&6
13590
13591echo "$as_me:$LINENO: checking size of int *" >&5
13592echo $ECHO_N "checking size of int *... $ECHO_C" >&6
13593if test "${ac_cv_sizeof_int_p+set}" = set; then
13594 echo $ECHO_N "(cached) $ECHO_C" >&6
13595else
13596 if test "$ac_cv_type_int_p" = yes; then
13597 # The cast to unsigned long works around a bug in the HP C Compiler
13598 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13599 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13600 # This bug is HP SR number 8606223364.
7709 if test "$cross_compiling" = yes; then 13601 if test "$cross_compiling" = yes; then
7710 ac_cv_sizeof_short=2 13602 # Depending upon the size, compute the lo and hi bounds.
13603cat >conftest.$ac_ext <<_ACEOF
13604/* confdefs.h. */
13605_ACEOF
13606cat confdefs.h >>conftest.$ac_ext
13607cat >>conftest.$ac_ext <<_ACEOF
13608/* end confdefs.h. */
13609$ac_includes_default
13610int
13611main ()
13612{
13613static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
13614test_array [0] = 0
13615
13616 ;
13617 return 0;
13618}
13619_ACEOF
13620rm -f conftest.$ac_objext
13621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13622 (eval $ac_compile) 2>conftest.er1
13623 ac_status=$?
13624 grep -v '^ *+' conftest.er1 >conftest.err
13625 rm -f conftest.er1
13626 cat conftest.err >&5
13627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628 (exit $ac_status); } &&
13629 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13631 (eval $ac_try) 2>&5
13632 ac_status=$?
13633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634 (exit $ac_status); }; } &&
13635 { ac_try='test -s conftest.$ac_objext'
13636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13637 (eval $ac_try) 2>&5
13638 ac_status=$?
13639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640 (exit $ac_status); }; }; then
13641 ac_lo=0 ac_mid=0
13642 while :; do
13643 cat >conftest.$ac_ext <<_ACEOF
13644/* confdefs.h. */
13645_ACEOF
13646cat confdefs.h >>conftest.$ac_ext
13647cat >>conftest.$ac_ext <<_ACEOF
13648/* end confdefs.h. */
13649$ac_includes_default
13650int
13651main ()
13652{
13653static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
13654test_array [0] = 0
13655
13656 ;
13657 return 0;
13658}
13659_ACEOF
13660rm -f conftest.$ac_objext
13661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13662 (eval $ac_compile) 2>conftest.er1
13663 ac_status=$?
13664 grep -v '^ *+' conftest.er1 >conftest.err
13665 rm -f conftest.er1
13666 cat conftest.err >&5
13667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13668 (exit $ac_status); } &&
13669 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13671 (eval $ac_try) 2>&5
13672 ac_status=$?
13673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 (exit $ac_status); }; } &&
13675 { ac_try='test -s conftest.$ac_objext'
13676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13677 (eval $ac_try) 2>&5
13678 ac_status=$?
13679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680 (exit $ac_status); }; }; then
13681 ac_hi=$ac_mid; break
7711else 13682else
13683 echo "$as_me: failed program was:" >&5
13684sed 's/^/| /' conftest.$ac_ext >&5
13685
13686ac_lo=`expr $ac_mid + 1`
13687 if test $ac_lo -le $ac_mid; then
13688 ac_lo= ac_hi=
13689 break
13690 fi
13691 ac_mid=`expr 2 '*' $ac_mid + 1`
13692fi
13693rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13694 done
13695else
13696 echo "$as_me: failed program was:" >&5
13697sed 's/^/| /' conftest.$ac_ext >&5
13698
13699cat >conftest.$ac_ext <<_ACEOF
13700/* confdefs.h. */
13701_ACEOF
13702cat confdefs.h >>conftest.$ac_ext
13703cat >>conftest.$ac_ext <<_ACEOF
13704/* end confdefs.h. */
13705$ac_includes_default
13706int
13707main ()
13708{
13709static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
13710test_array [0] = 0
13711
13712 ;
13713 return 0;
13714}
13715_ACEOF
13716rm -f conftest.$ac_objext
13717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13718 (eval $ac_compile) 2>conftest.er1
13719 ac_status=$?
13720 grep -v '^ *+' conftest.er1 >conftest.err
13721 rm -f conftest.er1
13722 cat conftest.err >&5
13723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724 (exit $ac_status); } &&
13725 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13727 (eval $ac_try) 2>&5
13728 ac_status=$?
13729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730 (exit $ac_status); }; } &&
13731 { ac_try='test -s conftest.$ac_objext'
13732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13733 (eval $ac_try) 2>&5
13734 ac_status=$?
13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); }; }; then
13737 ac_hi=-1 ac_mid=-1
13738 while :; do
13739 cat >conftest.$ac_ext <<_ACEOF
13740/* confdefs.h. */
13741_ACEOF
13742cat confdefs.h >>conftest.$ac_ext
13743cat >>conftest.$ac_ext <<_ACEOF
13744/* end confdefs.h. */
13745$ac_includes_default
13746int
13747main ()
13748{
13749static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
13750test_array [0] = 0
13751
13752 ;
13753 return 0;
13754}
13755_ACEOF
13756rm -f conftest.$ac_objext
13757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13758 (eval $ac_compile) 2>conftest.er1
13759 ac_status=$?
13760 grep -v '^ *+' conftest.er1 >conftest.err
13761 rm -f conftest.er1
13762 cat conftest.err >&5
13763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764 (exit $ac_status); } &&
13765 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13767 (eval $ac_try) 2>&5
13768 ac_status=$?
13769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770 (exit $ac_status); }; } &&
13771 { ac_try='test -s conftest.$ac_objext'
13772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13773 (eval $ac_try) 2>&5
13774 ac_status=$?
13775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); }; }; then
13777 ac_lo=$ac_mid; break
13778else
13779 echo "$as_me: failed program was:" >&5
13780sed 's/^/| /' conftest.$ac_ext >&5
13781
13782ac_hi=`expr '(' $ac_mid ')' - 1`
13783 if test $ac_mid -le $ac_hi; then
13784 ac_lo= ac_hi=
13785 break
13786 fi
13787 ac_mid=`expr 2 '*' $ac_mid`
13788fi
13789rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13790 done
13791else
13792 echo "$as_me: failed program was:" >&5
13793sed 's/^/| /' conftest.$ac_ext >&5
13794
13795ac_lo= ac_hi=
13796fi
13797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13798fi
13799rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13800# Binary search between lo and hi bounds.
13801while test "x$ac_lo" != "x$ac_hi"; do
13802 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7712 cat > conftest.$ac_ext <<EOF 13803 cat >conftest.$ac_ext <<_ACEOF
7713#line 7714 "configure" 13804/* confdefs.h. */
7714#include "confdefs.h" 13805_ACEOF
13806cat confdefs.h >>conftest.$ac_ext
13807cat >>conftest.$ac_ext <<_ACEOF
13808/* end confdefs.h. */
13809$ac_includes_default
13810int
13811main ()
13812{
13813static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
13814test_array [0] = 0
13815
13816 ;
13817 return 0;
13818}
13819_ACEOF
13820rm -f conftest.$ac_objext
13821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13822 (eval $ac_compile) 2>conftest.er1
13823 ac_status=$?
13824 grep -v '^ *+' conftest.er1 >conftest.err
13825 rm -f conftest.er1
13826 cat conftest.err >&5
13827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828 (exit $ac_status); } &&
13829 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13831 (eval $ac_try) 2>&5
13832 ac_status=$?
13833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834 (exit $ac_status); }; } &&
13835 { ac_try='test -s conftest.$ac_objext'
13836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13837 (eval $ac_try) 2>&5
13838 ac_status=$?
13839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840 (exit $ac_status); }; }; then
13841 ac_hi=$ac_mid
13842else
13843 echo "$as_me: failed program was:" >&5
13844sed 's/^/| /' conftest.$ac_ext >&5
13845
13846ac_lo=`expr '(' $ac_mid ')' + 1`
13847fi
13848rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13849done
13850case $ac_lo in
13851?*) ac_cv_sizeof_int_p=$ac_lo;;
13852'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
13853See \`config.log' for more details." >&5
13854echo "$as_me: error: cannot compute sizeof (int *), 77
13855See \`config.log' for more details." >&2;}
13856 { (exit 1); exit 1; }; } ;;
13857esac
13858else
13859 if test "$cross_compiling" = yes; then
13860 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
13861echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
13862 { (exit 1); exit 1; }; }
13863else
13864 cat >conftest.$ac_ext <<_ACEOF
13865/* confdefs.h. */
13866_ACEOF
13867cat confdefs.h >>conftest.$ac_ext
13868cat >>conftest.$ac_ext <<_ACEOF
13869/* end confdefs.h. */
13870$ac_includes_default
13871long longval () { return (long) (sizeof (int *)); }
13872unsigned long ulongval () { return (long) (sizeof (int *)); }
7715#include <stdio.h> 13873#include <stdio.h>
7716#include <sys/types.h> 13874#include <stdlib.h>
13875int
7717main() 13876main ()
7718{ 13877{
13878
7719 FILE *f=fopen("conftestval", "w"); 13879 FILE *f = fopen ("conftest.val", "w");
7720 if (!f) exit(1); 13880 if (! f)
7721 fprintf(f, "%d\n", sizeof(short));
7722 exit(0); 13881 exit (1);
13882 if (((long) (sizeof (int *))) < 0)
13883 {
13884 long i = longval ();
13885 if (i != ((long) (sizeof (int *))))
13886 exit (1);
13887 fprintf (f, "%ld\n", i);
13888 }
13889 else
13890 {
13891 unsigned long i = ulongval ();
13892 if (i != ((long) (sizeof (int *))))
13893 exit (1);
13894 fprintf (f, "%lu\n", i);
13895 }
13896 exit (ferror (f) || fclose (f) != 0);
13897
13898 ;
13899 return 0;
7723} 13900}
7724EOF 13901_ACEOF
7725if { (eval echo configure:7726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 13902rm -f conftest$ac_exeext
7726then 13903if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13904 (eval $ac_link) 2>&5
13905 ac_status=$?
13906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13909 (eval $ac_try) 2>&5
13910 ac_status=$?
13911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912 (exit $ac_status); }; }; then
7727 ac_cv_sizeof_short=`cat conftestval` 13913 ac_cv_sizeof_int_p=`cat conftest.val`
7728else 13914else
13915 echo "$as_me: program exited with status $ac_status" >&5
7729 echo "configure: failed program was:" >&5 13916echo "$as_me: failed program was:" >&5
7730 cat conftest.$ac_ext >&5 13917sed 's/^/| /' conftest.$ac_ext >&5
7731 rm -fr conftest* 13918
7732 ac_cv_sizeof_short=0 13919( exit $ac_status )
13920{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
13921See \`config.log' for more details." >&5
13922echo "$as_me: error: cannot compute sizeof (int *), 77
13923See \`config.log' for more details." >&2;}
13924 { (exit 1); exit 1; }; }
7733fi 13925fi
13926rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13927fi
13928fi
7734rm -fr conftest* 13929rm -f conftest.val
13930else
13931 ac_cv_sizeof_int_p=0
7735fi 13932fi
7736
7737fi 13933fi
7738echo "$ac_t""$ac_cv_sizeof_short" 1>&6 13934echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
13935echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
7739cat >> confdefs.h <<EOF 13936cat >>confdefs.h <<_ACEOF
7740#define SIZEOF_SHORT $ac_cv_sizeof_short 13937#define SIZEOF_INT_P $ac_cv_sizeof_int_p
7741EOF 13938_ACEOF
7742 13939
7743 13940
7744echo $ac_n "checking size of int""... $ac_c" 1>&6 13941
7745echo "configure:7746: checking size of int" >&5 13942
7746if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then 13943echo "$as_me:$LINENO: checking for int16_t" >&5
13944echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
13945if test "${rxvt_cv_int16_t+set}" = set; then
7747 echo $ac_n "(cached) $ac_c" 1>&6 13946 echo $ECHO_N "(cached) $ECHO_C" >&6
7748else 13947else
7749 if test "$cross_compiling" = yes; then
7750 ac_cv_sizeof_int=4
7751else
7752 cat > conftest.$ac_ext <<EOF 13948 cat >conftest.$ac_ext <<_ACEOF
7753#line 7754 "configure" 13949/* confdefs.h. */
7754#include "confdefs.h" 13950_ACEOF
13951cat confdefs.h >>conftest.$ac_ext
13952cat >>conftest.$ac_ext <<_ACEOF
13953/* end confdefs.h. */
7755#include <stdio.h> 13954#include <stdint.h>
7756#include <sys/types.h> 13955int
7757main() 13956main ()
7758{ 13957{
7759 FILE *f=fopen("conftestval", "w"); 13958int16_t dummy;
7760 if (!f) exit(1); 13959 ;
7761 fprintf(f, "%d\n", sizeof(int)); 13960 return 0;
7762 exit(0);
7763} 13961}
7764EOF 13962_ACEOF
7765if { (eval echo configure:7766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 13963rm -f conftest.$ac_objext
7766then 13964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7767 ac_cv_sizeof_int=`cat conftestval` 13965 (eval $ac_compile) 2>conftest.er1
7768else 13966 ac_status=$?
7769 echo "configure: failed program was:" >&5 13967 grep -v '^ *+' conftest.er1 >conftest.err
7770 cat conftest.$ac_ext >&5
7771 rm -fr conftest* 13968 rm -f conftest.er1
7772 ac_cv_sizeof_int=0
7773fi
7774rm -fr conftest*
7775fi
7776
7777fi
7778echo "$ac_t""$ac_cv_sizeof_int" 1>&6
7779cat >> confdefs.h <<EOF
7780#define SIZEOF_INT $ac_cv_sizeof_int
7781EOF
7782
7783
7784echo $ac_n "checking size of long""... $ac_c" 1>&6
7785echo "configure:7786: checking size of long" >&5
7786if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
7787 echo $ac_n "(cached) $ac_c" 1>&6
7788else
7789 if test "$cross_compiling" = yes; then
7790 ac_cv_sizeof_long=4
7791else
7792 cat > conftest.$ac_ext <<EOF
7793#line 7794 "configure"
7794#include "confdefs.h"
7795#include <stdio.h>
7796#include <sys/types.h>
7797main()
7798{
7799 FILE *f=fopen("conftestval", "w");
7800 if (!f) exit(1);
7801 fprintf(f, "%d\n", sizeof(long));
7802 exit(0);
7803}
7804EOF
7805if { (eval echo configure:7806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7806then
7807 ac_cv_sizeof_long=`cat conftestval`
7808else
7809 echo "configure: failed program was:" >&5
7810 cat conftest.$ac_ext >&5 13969 cat conftest.err >&5
7811 rm -fr conftest* 13970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812 ac_cv_sizeof_long=0 13971 (exit $ac_status); } &&
7813fi 13972 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7814rm -fr conftest* 13973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7815fi 13974 (eval $ac_try) 2>&5
7816 13975 ac_status=$?
7817fi 13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818echo "$ac_t""$ac_cv_sizeof_long" 1>&6 13977 (exit $ac_status); }; } &&
7819cat >> confdefs.h <<EOF 13978 { ac_try='test -s conftest.$ac_objext'
7820#define SIZEOF_LONG $ac_cv_sizeof_long 13979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7821EOF 13980 (eval $ac_try) 2>&5
7822 13981 ac_status=$?
7823 13982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824echo $ac_n "checking size of long long""... $ac_c" 1>&6 13983 (exit $ac_status); }; }; then
7825echo "configure:7826: checking size of long long" >&5
7826if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
7827 echo $ac_n "(cached) $ac_c" 1>&6
7828else
7829 if test "$cross_compiling" = yes; then
7830 ac_cv_sizeof_long_long=8
7831else
7832 cat > conftest.$ac_ext <<EOF
7833#line 7834 "configure"
7834#include "confdefs.h"
7835#include <stdio.h>
7836#include <sys/types.h>
7837main()
7838{
7839 FILE *f=fopen("conftestval", "w");
7840 if (!f) exit(1);
7841 fprintf(f, "%d\n", sizeof(long long));
7842 exit(0);
7843}
7844EOF
7845if { (eval echo configure:7846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7846then
7847 ac_cv_sizeof_long_long=`cat conftestval`
7848else
7849 echo "configure: failed program was:" >&5
7850 cat conftest.$ac_ext >&5
7851 rm -fr conftest*
7852 ac_cv_sizeof_long_long=0
7853fi
7854rm -fr conftest*
7855fi
7856
7857fi
7858echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
7859cat >> confdefs.h <<EOF
7860#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7861EOF
7862
7863
7864echo $ac_n "checking size of int *""... $ac_c" 1>&6
7865echo "configure:7866: checking size of int *" >&5
7866if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
7867 echo $ac_n "(cached) $ac_c" 1>&6
7868else
7869 if test "$cross_compiling" = yes; then
7870 ac_cv_sizeof_int_p=4
7871else
7872 cat > conftest.$ac_ext <<EOF
7873#line 7874 "configure"
7874#include "confdefs.h"
7875#include <stdio.h>
7876#include <sys/types.h>
7877main()
7878{
7879 FILE *f=fopen("conftestval", "w");
7880 if (!f) exit(1);
7881 fprintf(f, "%d\n", sizeof(int *));
7882 exit(0);
7883}
7884EOF
7885if { (eval echo configure:7886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7886then
7887 ac_cv_sizeof_int_p=`cat conftestval`
7888else
7889 echo "configure: failed program was:" >&5
7890 cat conftest.$ac_ext >&5
7891 rm -fr conftest*
7892 ac_cv_sizeof_int_p=0
7893fi
7894rm -fr conftest*
7895fi
7896
7897fi
7898echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
7899cat >> confdefs.h <<EOF
7900#define SIZEOF_INT_P $ac_cv_sizeof_int_p
7901EOF
7902
7903
7904
7905
7906echo $ac_n "checking for int16_t""... $ac_c" 1>&6
7907echo "configure:7908: checking for int16_t" >&5
7908if eval "test \"`echo '$''{'rxvt_cv_int16_t'+set}'`\" = set"; then
7909 echo $ac_n "(cached) $ac_c" 1>&6
7910else
7911 cat > conftest.$ac_ext <<EOF
7912#line 7913 "configure"
7913#include "confdefs.h"
7914#include <stdint.h>
7915int main() {
7916int16_t dummy;
7917; return 0; }
7918EOF
7919if { (eval echo configure:7920: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7920 rm -rf conftest*
7921 rxvt_cv_int16_t=yes 13984 rxvt_cv_int16_t=yes
7922else 13985else
7923 echo "configure: failed program was:" >&5 13986 echo "$as_me: failed program was:" >&5
7924 cat conftest.$ac_ext >&5 13987sed 's/^/| /' conftest.$ac_ext >&5
7925 rm -rf conftest* 13988
7926 if test $ac_cv_sizeof_char -ge 2; then 13989if test $ac_cv_sizeof_char -ge 2; then
7927 rxvt_cv_int16_t=" char" 13990 rxvt_cv_int16_t=" char"
7928else 13991else
7929 if test $ac_cv_sizeof_short -ge 2; then 13992 if test $ac_cv_sizeof_short -ge 2; then
7930 rxvt_cv_int16_t=" short" 13993 rxvt_cv_int16_t=" short"
7931 else 13994 else
7943 fi 14006 fi
7944 fi 14007 fi
7945 fi 14008 fi
7946fi 14009fi
7947fi 14010fi
7948rm -f conftest* 14011rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7949fi 14012fi
7950 14013echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5
7951echo "$ac_t""$rxvt_cv_int16_t" 1>&6 14014echo "${ECHO_T}$rxvt_cv_int16_t" >&6
7952if test x"$rxvt_cv_int16_t" != xyes; then 14015if test x"$rxvt_cv_int16_t" != xyes; then
7953 rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;" 14016 rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;"
7954else 14017else
7955 if test x"" = x; then 14018 if test x"" = x; then
7956 rxvt_int16_typedef="/* typedef short int16_t; */" 14019 rxvt_int16_typedef="/* typedef short int16_t; */"
7957 else 14020 else
7958 rxvt_int16_typedef="/* typedef short int16_t; */" 14021 rxvt_int16_typedef="/* typedef short int16_t; */"
7959 fi 14022 fi
7960fi 14023fi
7961 14024
14025echo "$as_me:$LINENO: checking for uint16_t" >&5
7962echo $ac_n "checking for uint16_t""... $ac_c" 1>&6 14026echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
7963echo "configure:7964: checking for uint16_t" >&5
7964if eval "test \"`echo '$''{'rxvt_cv_uint16_t'+set}'`\" = set"; then 14027if test "${rxvt_cv_uint16_t+set}" = set; then
7965 echo $ac_n "(cached) $ac_c" 1>&6 14028 echo $ECHO_N "(cached) $ECHO_C" >&6
7966else 14029else
7967 cat > conftest.$ac_ext <<EOF 14030 cat >conftest.$ac_ext <<_ACEOF
7968#line 7969 "configure" 14031/* confdefs.h. */
7969#include "confdefs.h" 14032_ACEOF
14033cat confdefs.h >>conftest.$ac_ext
14034cat >>conftest.$ac_ext <<_ACEOF
14035/* end confdefs.h. */
7970#include <stdint.h> 14036#include <stdint.h>
7971int main() { 14037int
14038main ()
14039{
7972uint16_t dummy; 14040uint16_t dummy;
14041 ;
7973; return 0; } 14042 return 0;
7974EOF 14043}
7975if { (eval echo configure:7976: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14044_ACEOF
14045rm -f conftest.$ac_objext
14046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14047 (eval $ac_compile) 2>conftest.er1
14048 ac_status=$?
14049 grep -v '^ *+' conftest.er1 >conftest.err
7976 rm -rf conftest* 14050 rm -f conftest.er1
14051 cat conftest.err >&5
14052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053 (exit $ac_status); } &&
14054 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14056 (eval $ac_try) 2>&5
14057 ac_status=$?
14058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059 (exit $ac_status); }; } &&
14060 { ac_try='test -s conftest.$ac_objext'
14061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14062 (eval $ac_try) 2>&5
14063 ac_status=$?
14064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065 (exit $ac_status); }; }; then
7977 rxvt_cv_uint16_t=yes 14066 rxvt_cv_uint16_t=yes
7978else 14067else
7979 echo "configure: failed program was:" >&5 14068 echo "$as_me: failed program was:" >&5
7980 cat conftest.$ac_ext >&5 14069sed 's/^/| /' conftest.$ac_ext >&5
7981 rm -rf conftest* 14070
7982 if test $ac_cv_sizeof_char -ge 2; then 14071if test $ac_cv_sizeof_char -ge 2; then
7983 rxvt_cv_uint16_t="unsigned char" 14072 rxvt_cv_uint16_t="unsigned char"
7984else 14073else
7985 if test $ac_cv_sizeof_short -ge 2; then 14074 if test $ac_cv_sizeof_short -ge 2; then
7986 rxvt_cv_uint16_t="unsigned short" 14075 rxvt_cv_uint16_t="unsigned short"
7987 else 14076 else
7999 fi 14088 fi
8000 fi 14089 fi
8001 fi 14090 fi
8002fi 14091fi
8003fi 14092fi
8004rm -f conftest* 14093rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8005fi 14094fi
8006 14095echo "$as_me:$LINENO: result: $rxvt_cv_uint16_t" >&5
8007echo "$ac_t""$rxvt_cv_uint16_t" 1>&6 14096echo "${ECHO_T}$rxvt_cv_uint16_t" >&6
8008if test x"$rxvt_cv_uint16_t" != xyes; then 14097if test x"$rxvt_cv_uint16_t" != xyes; then
8009 rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;" 14098 rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;"
8010else 14099else
8011 if test x"unsigned" = x; then 14100 if test x"unsigned" = x; then
8012 rxvt_uint16_typedef="/* typedef short uint16_t; */" 14101 rxvt_uint16_typedef="/* typedef short uint16_t; */"
8013 else 14102 else
8014 rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */" 14103 rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */"
8015 fi 14104 fi
8016fi 14105fi
8017 14106
14107echo "$as_me:$LINENO: checking for int32_t" >&5
8018echo $ac_n "checking for int32_t""... $ac_c" 1>&6 14108echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
8019echo "configure:8020: checking for int32_t" >&5
8020if eval "test \"`echo '$''{'rxvt_cv_int32_t'+set}'`\" = set"; then 14109if test "${rxvt_cv_int32_t+set}" = set; then
8021 echo $ac_n "(cached) $ac_c" 1>&6 14110 echo $ECHO_N "(cached) $ECHO_C" >&6
8022else 14111else
8023 cat > conftest.$ac_ext <<EOF 14112 cat >conftest.$ac_ext <<_ACEOF
8024#line 8025 "configure" 14113/* confdefs.h. */
8025#include "confdefs.h" 14114_ACEOF
14115cat confdefs.h >>conftest.$ac_ext
14116cat >>conftest.$ac_ext <<_ACEOF
14117/* end confdefs.h. */
8026#include <stdint.h> 14118#include <stdint.h>
8027int main() { 14119int
14120main ()
14121{
8028int32_t dummy; 14122int32_t dummy;
14123 ;
8029; return 0; } 14124 return 0;
8030EOF 14125}
8031if { (eval echo configure:8032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14126_ACEOF
14127rm -f conftest.$ac_objext
14128if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14129 (eval $ac_compile) 2>conftest.er1
14130 ac_status=$?
14131 grep -v '^ *+' conftest.er1 >conftest.err
8032 rm -rf conftest* 14132 rm -f conftest.er1
14133 cat conftest.err >&5
14134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135 (exit $ac_status); } &&
14136 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14138 (eval $ac_try) 2>&5
14139 ac_status=$?
14140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141 (exit $ac_status); }; } &&
14142 { ac_try='test -s conftest.$ac_objext'
14143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14144 (eval $ac_try) 2>&5
14145 ac_status=$?
14146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147 (exit $ac_status); }; }; then
8033 rxvt_cv_int32_t=yes 14148 rxvt_cv_int32_t=yes
8034else 14149else
8035 echo "configure: failed program was:" >&5 14150 echo "$as_me: failed program was:" >&5
8036 cat conftest.$ac_ext >&5 14151sed 's/^/| /' conftest.$ac_ext >&5
8037 rm -rf conftest* 14152
8038 if test $ac_cv_sizeof_char -ge 4; then 14153if test $ac_cv_sizeof_char -ge 4; then
8039 rxvt_cv_int32_t=" char" 14154 rxvt_cv_int32_t=" char"
8040else 14155else
8041 if test $ac_cv_sizeof_short -ge 4; then 14156 if test $ac_cv_sizeof_short -ge 4; then
8042 rxvt_cv_int32_t=" short" 14157 rxvt_cv_int32_t=" short"
8043 else 14158 else
8055 fi 14170 fi
8056 fi 14171 fi
8057 fi 14172 fi
8058fi 14173fi
8059fi 14174fi
8060rm -f conftest* 14175rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8061fi 14176fi
8062 14177echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5
8063echo "$ac_t""$rxvt_cv_int32_t" 1>&6 14178echo "${ECHO_T}$rxvt_cv_int32_t" >&6
8064if test x"$rxvt_cv_int32_t" != xyes; then 14179if test x"$rxvt_cv_int32_t" != xyes; then
8065 rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;" 14180 rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;"
8066else 14181else
8067 if test x"" = x; then 14182 if test x"" = x; then
8068 rxvt_int32_typedef="/* typedef int int32_t; */" 14183 rxvt_int32_typedef="/* typedef int int32_t; */"
8069 else 14184 else
8070 rxvt_int32_typedef="/* typedef int int32_t; */" 14185 rxvt_int32_typedef="/* typedef int int32_t; */"
8071 fi 14186 fi
8072fi 14187fi
8073 14188
14189echo "$as_me:$LINENO: checking for uint32_t" >&5
8074echo $ac_n "checking for uint32_t""... $ac_c" 1>&6 14190echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
8075echo "configure:8076: checking for uint32_t" >&5
8076if eval "test \"`echo '$''{'rxvt_cv_uint32_t'+set}'`\" = set"; then 14191if test "${rxvt_cv_uint32_t+set}" = set; then
8077 echo $ac_n "(cached) $ac_c" 1>&6 14192 echo $ECHO_N "(cached) $ECHO_C" >&6
8078else 14193else
8079 cat > conftest.$ac_ext <<EOF 14194 cat >conftest.$ac_ext <<_ACEOF
8080#line 8081 "configure" 14195/* confdefs.h. */
8081#include "confdefs.h" 14196_ACEOF
14197cat confdefs.h >>conftest.$ac_ext
14198cat >>conftest.$ac_ext <<_ACEOF
14199/* end confdefs.h. */
8082#include <stdint.h> 14200#include <stdint.h>
8083int main() { 14201int
14202main ()
14203{
8084uint32_t dummy; 14204uint32_t dummy;
14205 ;
8085; return 0; } 14206 return 0;
8086EOF 14207}
8087if { (eval echo configure:8088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14208_ACEOF
14209rm -f conftest.$ac_objext
14210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14211 (eval $ac_compile) 2>conftest.er1
14212 ac_status=$?
14213 grep -v '^ *+' conftest.er1 >conftest.err
8088 rm -rf conftest* 14214 rm -f conftest.er1
14215 cat conftest.err >&5
14216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217 (exit $ac_status); } &&
14218 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14220 (eval $ac_try) 2>&5
14221 ac_status=$?
14222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223 (exit $ac_status); }; } &&
14224 { ac_try='test -s conftest.$ac_objext'
14225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14226 (eval $ac_try) 2>&5
14227 ac_status=$?
14228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229 (exit $ac_status); }; }; then
8089 rxvt_cv_uint32_t=yes 14230 rxvt_cv_uint32_t=yes
8090else 14231else
8091 echo "configure: failed program was:" >&5 14232 echo "$as_me: failed program was:" >&5
8092 cat conftest.$ac_ext >&5 14233sed 's/^/| /' conftest.$ac_ext >&5
8093 rm -rf conftest* 14234
8094 if test $ac_cv_sizeof_char -ge 4; then 14235if test $ac_cv_sizeof_char -ge 4; then
8095 rxvt_cv_uint32_t="unsigned char" 14236 rxvt_cv_uint32_t="unsigned char"
8096else 14237else
8097 if test $ac_cv_sizeof_short -ge 4; then 14238 if test $ac_cv_sizeof_short -ge 4; then
8098 rxvt_cv_uint32_t="unsigned short" 14239 rxvt_cv_uint32_t="unsigned short"
8099 else 14240 else
8111 fi 14252 fi
8112 fi 14253 fi
8113 fi 14254 fi
8114fi 14255fi
8115fi 14256fi
8116rm -f conftest* 14257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8117fi 14258fi
8118 14259echo "$as_me:$LINENO: result: $rxvt_cv_uint32_t" >&5
8119echo "$ac_t""$rxvt_cv_uint32_t" 1>&6 14260echo "${ECHO_T}$rxvt_cv_uint32_t" >&6
8120if test x"$rxvt_cv_uint32_t" != xyes; then 14261if test x"$rxvt_cv_uint32_t" != xyes; then
8121 rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;" 14262 rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;"
8122else 14263else
8123 if test x"unsigned" = x; then 14264 if test x"unsigned" = x; then
8124 rxvt_uint32_typedef="/* typedef int uint32_t; */" 14265 rxvt_uint32_typedef="/* typedef int uint32_t; */"
8125 else 14266 else
8126 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */" 14267 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
8127 fi 14268 fi
8128fi 14269fi
8129 14270
8130if test $ac_cv_sizeof_int_p -eq 8; then 14271if test $ac_cv_sizeof_int_p -eq 8; then
8131 rxvt_intp_define="#define intp_t int64_t" 14272 rxvt_intp_define="#define intp_t int64_t"
8132 rxvt_u_intp_define="#define u_intp_t u_int64_t" 14273 rxvt_u_intp_define="#define u_intp_t u_int64_t"
8133else 14274else
8145 fi 14286 fi
8146fi 14287fi
8147 14288
8148 14289
8149 14290
14291echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8150echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 14292echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
8151echo "configure:8152: checking return type of signal handlers" >&5
8152if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then 14293if test "${ac_cv_type_signal+set}" = set; then
8153 echo $ac_n "(cached) $ac_c" 1>&6 14294 echo $ECHO_N "(cached) $ECHO_C" >&6
8154else 14295else
8155 cat > conftest.$ac_ext <<EOF 14296 cat >conftest.$ac_ext <<_ACEOF
8156#line 8157 "configure" 14297/* confdefs.h. */
8157#include "confdefs.h" 14298_ACEOF
14299cat confdefs.h >>conftest.$ac_ext
14300cat >>conftest.$ac_ext <<_ACEOF
14301/* end confdefs.h. */
8158#include <sys/types.h> 14302#include <sys/types.h>
8159#include <signal.h> 14303#include <signal.h>
8160#ifdef signal 14304#ifdef signal
8161#undef signal 14305# undef signal
8162#endif 14306#endif
8163#ifdef __cplusplus 14307#ifdef __cplusplus
8164extern "C" void (*signal (int, void (*)(int)))(int); 14308extern "C" void (*signal (int, void (*)(int)))(int);
8165#else 14309#else
8166void (*signal ()) (); 14310void (*signal ()) ();
8167#endif 14311#endif
8168 14312
8169int main() { 14313int
14314main ()
14315{
8170int i; 14316int i;
14317 ;
8171; return 0; } 14318 return 0;
8172EOF 14319}
8173if { (eval echo configure:8174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14320_ACEOF
14321rm -f conftest.$ac_objext
14322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14323 (eval $ac_compile) 2>conftest.er1
14324 ac_status=$?
14325 grep -v '^ *+' conftest.er1 >conftest.err
8174 rm -rf conftest* 14326 rm -f conftest.er1
14327 cat conftest.err >&5
14328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329 (exit $ac_status); } &&
14330 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14332 (eval $ac_try) 2>&5
14333 ac_status=$?
14334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335 (exit $ac_status); }; } &&
14336 { ac_try='test -s conftest.$ac_objext'
14337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14338 (eval $ac_try) 2>&5
14339 ac_status=$?
14340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341 (exit $ac_status); }; }; then
8175 ac_cv_type_signal=void 14342 ac_cv_type_signal=void
8176else 14343else
8177 echo "configure: failed program was:" >&5 14344 echo "$as_me: failed program was:" >&5
8178 cat conftest.$ac_ext >&5 14345sed 's/^/| /' conftest.$ac_ext >&5
8179 rm -rf conftest* 14346
8180 ac_cv_type_signal=int 14347ac_cv_type_signal=int
8181fi 14348fi
8182rm -f conftest* 14349rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8183fi 14350fi
8184 14351echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8185echo "$ac_t""$ac_cv_type_signal" 1>&6 14352echo "${ECHO_T}$ac_cv_type_signal" >&6
14353
8186cat >> confdefs.h <<EOF 14354cat >>confdefs.h <<_ACEOF
8187#define RETSIGTYPE $ac_cv_type_signal 14355#define RETSIGTYPE $ac_cv_type_signal
8188EOF 14356_ACEOF
8189 14357
8190 14358
8191 14359
8192case "$host_alias" in 14360case "$host_alias" in
8193 *ultrix) ac_cv_func_setsid='no' ;; 14361 *ultrix) ac_cv_func_setsid='no' ;;
8194 *) break;; 14362 *) break;;
8195esac 14363esac
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
8196 14382
8197for ac_func in \ 14383for ac_func in \
8198 atexit \ 14384 atexit \
8199 revoke \ 14385 revoke \
8200 unsetenv \ 14386 unsetenv \
8213 nanosleep \ 14399 nanosleep \
8214 updwtmp \ 14400 updwtmp \
8215 ttyslot \ 14401 ttyslot \
8216 14402
8217do 14403do
14404as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14405echo "$as_me:$LINENO: checking for $ac_func" >&5
8218echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 14406echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8219echo "configure:8220: checking for $ac_func" >&5 14407if eval "test \"\${$as_ac_var+set}\" = set"; then
8220if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8221 echo $ac_n "(cached) $ac_c" 1>&6 14408 echo $ECHO_N "(cached) $ECHO_C" >&6
8222else 14409else
8223 cat > conftest.$ac_ext <<EOF 14410 cat >conftest.$ac_ext <<_ACEOF
8224#line 8225 "configure" 14411/* confdefs.h. */
8225#include "confdefs.h" 14412_ACEOF
14413cat confdefs.h >>conftest.$ac_ext
14414cat >>conftest.$ac_ext <<_ACEOF
14415/* end confdefs.h. */
14416/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14417 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14418#define $ac_func innocuous_$ac_func
14419
8226/* System header to define __stub macros and hopefully few prototypes, 14420/* System header to define __stub macros and hopefully few prototypes,
8227 which can conflict with char $ac_func(); below. */ 14421 which can conflict with char $ac_func (); below.
14422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14423 <limits.h> exists even on freestanding compilers. */
14424
14425#ifdef __STDC__
14426# include <limits.h>
14427#else
8228#include <assert.h> 14428# include <assert.h>
14429#endif
14430
14431#undef $ac_func
14432
8229/* Override any gcc2 internal prototype to avoid an error. */ 14433/* Override any gcc2 internal prototype to avoid an error. */
14434#ifdef __cplusplus
14435extern "C"
14436{
14437#endif
8230/* We use char because int might match the return type of a gcc2 14438/* We use char because int might match the return type of a gcc2
8231 builtin and then its argument prototype would still apply. */ 14439 builtin and then its argument prototype would still apply. */
8232char $ac_func(); 14440char $ac_func ();
8233
8234int main() {
8235
8236/* The GNU C library defines this for functions which it implements 14441/* The GNU C library defines this for functions which it implements
8237 to always fail with ENOSYS. Some functions are actually named 14442 to always fail with ENOSYS. Some functions are actually named
8238 something starting with __ and the normal name is an alias. */ 14443 something starting with __ and the normal name is an alias. */
8239#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 14444#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8240choke me 14445choke me
8241#else 14446#else
8242$ac_func(); 14447char (*f) () = $ac_func;
8243#endif 14448#endif
14449#ifdef __cplusplus
14450}
14451#endif
8244 14452
14453int
14454main ()
14455{
14456return f != $ac_func;
14457 ;
8245; return 0; } 14458 return 0;
8246EOF 14459}
8247if { (eval echo configure:8248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14460_ACEOF
14461rm -f conftest.$ac_objext conftest$ac_exeext
14462if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14463 (eval $ac_link) 2>conftest.er1
14464 ac_status=$?
14465 grep -v '^ *+' conftest.er1 >conftest.err
8248 rm -rf conftest* 14466 rm -f conftest.er1
8249 eval "ac_cv_func_$ac_func=yes" 14467 cat conftest.err >&5
14468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14469 (exit $ac_status); } &&
14470 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14472 (eval $ac_try) 2>&5
14473 ac_status=$?
14474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475 (exit $ac_status); }; } &&
14476 { ac_try='test -s conftest$ac_exeext'
14477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14478 (eval $ac_try) 2>&5
14479 ac_status=$?
14480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481 (exit $ac_status); }; }; then
14482 eval "$as_ac_var=yes"
8250else 14483else
8251 echo "configure: failed program was:" >&5 14484 echo "$as_me: failed program was:" >&5
8252 cat conftest.$ac_ext >&5 14485sed 's/^/| /' conftest.$ac_ext >&5
8253 rm -rf conftest*
8254 eval "ac_cv_func_$ac_func=no"
8255fi
8256rm -f conftest*
8257fi
8258 14486
8259if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 14487eval "$as_ac_var=no"
8260 echo "$ac_t""yes" 1>&6 14488fi
8261 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 14489rm -f conftest.err conftest.$ac_objext \
14490 conftest$ac_exeext conftest.$ac_ext
14491fi
14492echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14493echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14494if test `eval echo '${'$as_ac_var'}'` = yes; then
8262 cat >> confdefs.h <<EOF 14495 cat >>confdefs.h <<_ACEOF
8263#define $ac_tr_func 1 14496#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8264EOF 14497_ACEOF
8265 14498
8266else
8267 echo "$ac_t""no" 1>&6
8268fi 14499fi
8269done 14500done
8270 14501
8271 14502
8272 14503
8273ac_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` 14504if test "${ac_cv_header_utmp_h+set}" = set; then
14505 echo "$as_me:$LINENO: checking for utmp.h" >&5
8274echo $ac_n "checking for utmp.h""... $ac_c" 1>&6 14506echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
8275echo "configure:8276: checking for utmp.h" >&5 14507if test "${ac_cv_header_utmp_h+set}" = set; then
8276if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8277 echo $ac_n "(cached) $ac_c" 1>&6 14508 echo $ECHO_N "(cached) $ECHO_C" >&6
14509fi
14510echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
14511echo "${ECHO_T}$ac_cv_header_utmp_h" >&6
8278else 14512else
14513 # Is the header compilable?
14514echo "$as_me:$LINENO: checking utmp.h usability" >&5
14515echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6
8279 cat > conftest.$ac_ext <<EOF 14516cat >conftest.$ac_ext <<_ACEOF
8280#line 8281 "configure" 14517/* confdefs.h. */
8281#include "confdefs.h" 14518_ACEOF
14519cat confdefs.h >>conftest.$ac_ext
14520cat >>conftest.$ac_ext <<_ACEOF
14521/* end confdefs.h. */
14522$ac_includes_default
8282#include <utmp.h> 14523#include <utmp.h>
8283EOF 14524_ACEOF
8284ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14525rm -f conftest.$ac_objext
8285{ (eval echo configure:8286: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8286ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14527 (eval $ac_compile) 2>conftest.er1
14528 ac_status=$?
14529 grep -v '^ *+' conftest.er1 >conftest.err
14530 rm -f conftest.er1
14531 cat conftest.err >&5
14532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533 (exit $ac_status); } &&
14534 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14536 (eval $ac_try) 2>&5
14537 ac_status=$?
14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 (exit $ac_status); }; } &&
14540 { ac_try='test -s conftest.$ac_objext'
14541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14542 (eval $ac_try) 2>&5
14543 ac_status=$?
14544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545 (exit $ac_status); }; }; then
14546 ac_header_compiler=yes
14547else
14548 echo "$as_me: failed program was:" >&5
14549sed 's/^/| /' conftest.$ac_ext >&5
14550
14551ac_header_compiler=no
14552fi
14553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14554echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14555echo "${ECHO_T}$ac_header_compiler" >&6
14556
14557# Is the header present?
14558echo "$as_me:$LINENO: checking utmp.h presence" >&5
14559echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6
14560cat >conftest.$ac_ext <<_ACEOF
14561/* confdefs.h. */
14562_ACEOF
14563cat confdefs.h >>conftest.$ac_ext
14564cat >>conftest.$ac_ext <<_ACEOF
14565/* end confdefs.h. */
14566#include <utmp.h>
14567_ACEOF
14568if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14569 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14570 ac_status=$?
14571 grep -v '^ *+' conftest.er1 >conftest.err
14572 rm -f conftest.er1
14573 cat conftest.err >&5
14574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14575 (exit $ac_status); } >/dev/null; then
14576 if test -s conftest.err; then
14577 ac_cpp_err=$ac_cxx_preproc_warn_flag
14578 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14579 else
14580 ac_cpp_err=
14581 fi
14582else
14583 ac_cpp_err=yes
14584fi
8287if test -z "$ac_err"; then 14585if test -z "$ac_cpp_err"; then
8288 rm -rf conftest* 14586 ac_header_preproc=yes
8289 eval "ac_cv_header_$ac_safe=yes"
8290else 14587else
8291 echo "$ac_err" >&5
8292 echo "configure: failed program was:" >&5 14588 echo "$as_me: failed program was:" >&5
8293 cat conftest.$ac_ext >&5 14589sed 's/^/| /' conftest.$ac_ext >&5
8294 rm -rf conftest* 14590
8295 eval "ac_cv_header_$ac_safe=no" 14591 ac_header_preproc=no
8296fi 14592fi
8297rm -f conftest* 14593rm -f conftest.err conftest.$ac_ext
14594echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14595echo "${ECHO_T}$ac_header_preproc" >&6
14596
14597# So? What about this header?
14598case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
14599 yes:no: )
14600 { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
14601echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14602 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5
14603echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;}
14604 ac_header_preproc=yes
14605 ;;
14606 no:yes:* )
14607 { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5
14608echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;}
14609 { echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5
14610echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;}
14611 { echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5
14612echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;}
14613 { echo "$as_me:$LINENO: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&5
14614echo "$as_me: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&2;}
14615 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5
14616echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;}
14617 { echo "$as_me:$LINENO: WARNING: utmp.h: in the future, the compiler will take precedence" >&5
14618echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;}
14619 (
14620 cat <<\_ASBOX
14621## ------------------------------------------ ##
14622## Report this to the AC_PACKAGE_NAME lists. ##
14623## ------------------------------------------ ##
14624_ASBOX
14625 ) |
14626 sed "s/^/$as_me: WARNING: /" >&2
14627 ;;
14628esac
14629echo "$as_me:$LINENO: checking for utmp.h" >&5
14630echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
14631if test "${ac_cv_header_utmp_h+set}" = set; then
14632 echo $ECHO_N "(cached) $ECHO_C" >&6
14633else
14634 ac_cv_header_utmp_h=$ac_header_preproc
8298fi 14635fi
8299if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 14636echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
8300 echo "$ac_t""yes" 1>&6 14637echo "${ECHO_T}$ac_cv_header_utmp_h" >&6
14638
14639fi
14640if test $ac_cv_header_utmp_h = yes; then
14641 echo "$as_me:$LINENO: checking for struct utmp" >&5
8301 echo $ac_n "checking for struct utmp""... $ac_c" 1>&6 14642echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6
8302echo "configure:8303: checking for struct utmp" >&5
8303if eval "test \"`echo '$''{'rxvt_cv_struct_utmp'+set}'`\" = set"; then 14643if test "${rxvt_cv_struct_utmp+set}" = set; then
8304 echo $ac_n "(cached) $ac_c" 1>&6 14644 echo $ECHO_N "(cached) $ECHO_C" >&6
8305else 14645else
8306 cat > conftest.$ac_ext <<EOF 14646 cat >conftest.$ac_ext <<_ACEOF
8307#line 8308 "configure" 14647/* confdefs.h. */
8308#include "confdefs.h" 14648_ACEOF
14649cat confdefs.h >>conftest.$ac_ext
14650cat >>conftest.$ac_ext <<_ACEOF
14651/* end confdefs.h. */
8309#include <sys/types.h> 14652#include <sys/types.h>
8310#include <stdint.h> 14653#include <stdint.h>
8311#include <utmp.h> 14654#include <utmp.h>
8312int main() { 14655int
14656main ()
14657{
8313struct utmp ut; 14658struct utmp ut;
14659 ;
8314; return 0; } 14660 return 0;
8315EOF 14661}
8316if { (eval echo configure:8317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14662_ACEOF
14663rm -f conftest.$ac_objext
14664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14665 (eval $ac_compile) 2>conftest.er1
14666 ac_status=$?
14667 grep -v '^ *+' conftest.er1 >conftest.err
8317 rm -rf conftest* 14668 rm -f conftest.er1
14669 cat conftest.err >&5
14670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671 (exit $ac_status); } &&
14672 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14674 (eval $ac_try) 2>&5
14675 ac_status=$?
14676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677 (exit $ac_status); }; } &&
14678 { ac_try='test -s conftest.$ac_objext'
14679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14680 (eval $ac_try) 2>&5
14681 ac_status=$?
14682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683 (exit $ac_status); }; }; then
8318 rxvt_cv_struct_utmp=yes 14684 rxvt_cv_struct_utmp=yes
8319else 14685else
8320 echo "configure: failed program was:" >&5 14686 echo "$as_me: failed program was:" >&5
8321 cat conftest.$ac_ext >&5 14687sed 's/^/| /' conftest.$ac_ext >&5
8322 rm -rf conftest* 14688
8323 rxvt_cv_struct_utmp=no 14689rxvt_cv_struct_utmp=no
8324fi 14690fi
8325rm -f conftest* 14691rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8326fi 14692fi
8327 14693echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp" >&5
8328echo "$ac_t""$rxvt_cv_struct_utmp" 1>&6 14694echo "${ECHO_T}$rxvt_cv_struct_utmp" >&6
8329if test x$rxvt_cv_struct_utmp = xyes; then 14695if test x$rxvt_cv_struct_utmp = xyes; then
14696
8330 cat >> confdefs.h <<\EOF 14697cat >>confdefs.h <<\_ACEOF
8331#define HAVE_STRUCT_UTMP 1 14698#define HAVE_STRUCT_UTMP 1
8332EOF 14699_ACEOF
8333 14700
8334fi 14701fi
8335 14702
8336 14703
14704echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5
8337echo $ac_n "checking for ut_host in utmp struct""... $ac_c" 1>&6 14705echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6
8338echo "configure:8339: checking for ut_host in utmp struct" >&5
8339if eval "test \"`echo '$''{'rxvt_cv_struct_utmp_host'+set}'`\" = set"; then 14706if test "${rxvt_cv_struct_utmp_host+set}" = set; then
8340 echo $ac_n "(cached) $ac_c" 1>&6 14707 echo $ECHO_N "(cached) $ECHO_C" >&6
8341else 14708else
8342 cat > conftest.$ac_ext <<EOF 14709 cat >conftest.$ac_ext <<_ACEOF
8343#line 8344 "configure" 14710/* confdefs.h. */
8344#include "confdefs.h" 14711_ACEOF
14712cat confdefs.h >>conftest.$ac_ext
14713cat >>conftest.$ac_ext <<_ACEOF
14714/* end confdefs.h. */
8345#include <sys/types.h> 14715#include <sys/types.h>
8346#include <utmp.h> 14716#include <utmp.h>
8347int main() { 14717int
14718main ()
14719{
8348struct utmp ut; ut.ut_host; 14720struct utmp ut; ut.ut_host;
14721 ;
8349; return 0; } 14722 return 0;
8350EOF 14723}
8351if { (eval echo configure:8352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14724_ACEOF
14725rm -f conftest.$ac_objext
14726if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14727 (eval $ac_compile) 2>conftest.er1
14728 ac_status=$?
14729 grep -v '^ *+' conftest.er1 >conftest.err
8352 rm -rf conftest* 14730 rm -f conftest.er1
14731 cat conftest.err >&5
14732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14733 (exit $ac_status); } &&
14734 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14736 (eval $ac_try) 2>&5
14737 ac_status=$?
14738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739 (exit $ac_status); }; } &&
14740 { ac_try='test -s conftest.$ac_objext'
14741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14742 (eval $ac_try) 2>&5
14743 ac_status=$?
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); }; }; then
8353 rxvt_cv_struct_utmp_host=yes 14746 rxvt_cv_struct_utmp_host=yes
8354else 14747else
8355 echo "configure: failed program was:" >&5 14748 echo "$as_me: failed program was:" >&5
8356 cat conftest.$ac_ext >&5 14749sed 's/^/| /' conftest.$ac_ext >&5
8357 rm -rf conftest* 14750
8358 rxvt_cv_struct_utmp_host=no 14751rxvt_cv_struct_utmp_host=no
8359fi 14752fi
8360rm -f conftest* 14753rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8361fi 14754fi
8362 14755echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_host" >&5
8363echo "$ac_t""$rxvt_cv_struct_utmp_host" 1>&6 14756echo "${ECHO_T}$rxvt_cv_struct_utmp_host" >&6
8364if test x$rxvt_cv_struct_utmp_host = xyes; then 14757if test x$rxvt_cv_struct_utmp_host = xyes; then
14758
8365 cat >> confdefs.h <<\EOF 14759cat >>confdefs.h <<\_ACEOF
8366#define HAVE_UTMP_HOST 1 14760#define HAVE_UTMP_HOST 1
8367EOF 14761_ACEOF
8368 14762
8369fi 14763fi
8370 14764
14765echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5
8371echo $ac_n "checking for ut_pid in utmp struct""... $ac_c" 1>&6 14766echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6
8372echo "configure:8373: checking for ut_pid in utmp struct" >&5
8373if eval "test \"`echo '$''{'rxvt_cv_struct_utmp_pid'+set}'`\" = set"; then 14767if test "${rxvt_cv_struct_utmp_pid+set}" = set; then
8374 echo $ac_n "(cached) $ac_c" 1>&6 14768 echo $ECHO_N "(cached) $ECHO_C" >&6
8375else 14769else
8376 cat > conftest.$ac_ext <<EOF 14770 cat >conftest.$ac_ext <<_ACEOF
8377#line 8378 "configure" 14771/* confdefs.h. */
8378#include "confdefs.h" 14772_ACEOF
14773cat confdefs.h >>conftest.$ac_ext
14774cat >>conftest.$ac_ext <<_ACEOF
14775/* end confdefs.h. */
8379#include <sys/types.h> 14776#include <sys/types.h>
8380#include <utmp.h> 14777#include <utmp.h>
8381int main() { 14778int
14779main ()
14780{
8382struct utmp ut; ut.ut_pid; 14781struct utmp ut; ut.ut_pid;
14782 ;
8383; return 0; } 14783 return 0;
8384EOF 14784}
8385if { (eval echo configure:8386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14785_ACEOF
14786rm -f conftest.$ac_objext
14787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14788 (eval $ac_compile) 2>conftest.er1
14789 ac_status=$?
14790 grep -v '^ *+' conftest.er1 >conftest.err
8386 rm -rf conftest* 14791 rm -f conftest.er1
14792 cat conftest.err >&5
14793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794 (exit $ac_status); } &&
14795 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14797 (eval $ac_try) 2>&5
14798 ac_status=$?
14799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800 (exit $ac_status); }; } &&
14801 { ac_try='test -s conftest.$ac_objext'
14802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14803 (eval $ac_try) 2>&5
14804 ac_status=$?
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); }; }; then
8387 rxvt_cv_struct_utmp_pid=yes 14807 rxvt_cv_struct_utmp_pid=yes
8388else 14808else
8389 echo "configure: failed program was:" >&5 14809 echo "$as_me: failed program was:" >&5
8390 cat conftest.$ac_ext >&5 14810sed 's/^/| /' conftest.$ac_ext >&5
8391 rm -rf conftest* 14811
8392 rxvt_cv_struct_utmp_pid=no 14812rxvt_cv_struct_utmp_pid=no
8393fi 14813fi
8394rm -f conftest* 14814rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8395fi 14815fi
8396 14816echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_pid" >&5
8397echo "$ac_t""$rxvt_cv_struct_utmp_pid" 1>&6 14817echo "${ECHO_T}$rxvt_cv_struct_utmp_pid" >&6
8398if test x$rxvt_cv_struct_utmp_pid = xyes; then 14818if test x$rxvt_cv_struct_utmp_pid = xyes; then
14819
8399 cat >> confdefs.h <<\EOF 14820cat >>confdefs.h <<\_ACEOF
8400#define HAVE_UTMP_PID 1 14821#define HAVE_UTMP_PID 1
8401EOF 14822_ACEOF
8402 14823
8403fi 14824fi
8404 14825
8405else
8406 echo "$ac_t""no" 1>&6
8407fi 14826fi
8408
8409 14827
8410ac_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` 14828
14829
14830if test "${ac_cv_header_utmpx_h+set}" = set; then
14831 echo "$as_me:$LINENO: checking for utmpx.h" >&5
8411echo $ac_n "checking for utmpx.h""... $ac_c" 1>&6 14832echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6
8412echo "configure:8413: checking for utmpx.h" >&5 14833if test "${ac_cv_header_utmpx_h+set}" = set; then
8413if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8414 echo $ac_n "(cached) $ac_c" 1>&6 14834 echo $ECHO_N "(cached) $ECHO_C" >&6
14835fi
14836echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
14837echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6
8415else 14838else
14839 # Is the header compilable?
14840echo "$as_me:$LINENO: checking utmpx.h usability" >&5
14841echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6
8416 cat > conftest.$ac_ext <<EOF 14842cat >conftest.$ac_ext <<_ACEOF
8417#line 8418 "configure" 14843/* confdefs.h. */
8418#include "confdefs.h" 14844_ACEOF
14845cat confdefs.h >>conftest.$ac_ext
14846cat >>conftest.$ac_ext <<_ACEOF
14847/* end confdefs.h. */
14848$ac_includes_default
8419#include <utmpx.h> 14849#include <utmpx.h>
8420EOF 14850_ACEOF
8421ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14851rm -f conftest.$ac_objext
8422{ (eval echo configure:8423: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8423ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14853 (eval $ac_compile) 2>conftest.er1
14854 ac_status=$?
14855 grep -v '^ *+' conftest.er1 >conftest.err
14856 rm -f conftest.er1
14857 cat conftest.err >&5
14858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859 (exit $ac_status); } &&
14860 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14862 (eval $ac_try) 2>&5
14863 ac_status=$?
14864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865 (exit $ac_status); }; } &&
14866 { ac_try='test -s conftest.$ac_objext'
14867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14868 (eval $ac_try) 2>&5
14869 ac_status=$?
14870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871 (exit $ac_status); }; }; then
14872 ac_header_compiler=yes
14873else
14874 echo "$as_me: failed program was:" >&5
14875sed 's/^/| /' conftest.$ac_ext >&5
14876
14877ac_header_compiler=no
14878fi
14879rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14880echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14881echo "${ECHO_T}$ac_header_compiler" >&6
14882
14883# Is the header present?
14884echo "$as_me:$LINENO: checking utmpx.h presence" >&5
14885echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6
14886cat >conftest.$ac_ext <<_ACEOF
14887/* confdefs.h. */
14888_ACEOF
14889cat confdefs.h >>conftest.$ac_ext
14890cat >>conftest.$ac_ext <<_ACEOF
14891/* end confdefs.h. */
14892#include <utmpx.h>
14893_ACEOF
14894if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14895 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14896 ac_status=$?
14897 grep -v '^ *+' conftest.er1 >conftest.err
14898 rm -f conftest.er1
14899 cat conftest.err >&5
14900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901 (exit $ac_status); } >/dev/null; then
14902 if test -s conftest.err; then
14903 ac_cpp_err=$ac_cxx_preproc_warn_flag
14904 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14905 else
14906 ac_cpp_err=
14907 fi
14908else
14909 ac_cpp_err=yes
14910fi
8424if test -z "$ac_err"; then 14911if test -z "$ac_cpp_err"; then
8425 rm -rf conftest* 14912 ac_header_preproc=yes
8426 eval "ac_cv_header_$ac_safe=yes"
8427else 14913else
8428 echo "$ac_err" >&5
8429 echo "configure: failed program was:" >&5 14914 echo "$as_me: failed program was:" >&5
8430 cat conftest.$ac_ext >&5 14915sed 's/^/| /' conftest.$ac_ext >&5
8431 rm -rf conftest* 14916
8432 eval "ac_cv_header_$ac_safe=no" 14917 ac_header_preproc=no
8433fi 14918fi
8434rm -f conftest* 14919rm -f conftest.err conftest.$ac_ext
14920echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14921echo "${ECHO_T}$ac_header_preproc" >&6
14922
14923# So? What about this header?
14924case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
14925 yes:no: )
14926 { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5
14927echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14928 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5
14929echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;}
14930 ac_header_preproc=yes
14931 ;;
14932 no:yes:* )
14933 { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5
14934echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;}
14935 { echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5
14936echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;}
14937 { echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5
14938echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;}
14939 { echo "$as_me:$LINENO: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&5
14940echo "$as_me: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&2;}
14941 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5
14942echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;}
14943 { echo "$as_me:$LINENO: WARNING: utmpx.h: in the future, the compiler will take precedence" >&5
14944echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;}
14945 (
14946 cat <<\_ASBOX
14947## ------------------------------------------ ##
14948## Report this to the AC_PACKAGE_NAME lists. ##
14949## ------------------------------------------ ##
14950_ASBOX
14951 ) |
14952 sed "s/^/$as_me: WARNING: /" >&2
14953 ;;
14954esac
14955echo "$as_me:$LINENO: checking for utmpx.h" >&5
14956echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6
14957if test "${ac_cv_header_utmpx_h+set}" = set; then
14958 echo $ECHO_N "(cached) $ECHO_C" >&6
14959else
14960 ac_cv_header_utmpx_h=$ac_header_preproc
8435fi 14961fi
8436if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 14962echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
8437 echo "$ac_t""yes" 1>&6 14963echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6
14964
14965fi
14966if test $ac_cv_header_utmpx_h = yes; then
14967 echo "$as_me:$LINENO: checking for struct utmpx" >&5
8438 echo $ac_n "checking for struct utmpx""... $ac_c" 1>&6 14968echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6
8439echo "configure:8440: checking for struct utmpx" >&5
8440if eval "test \"`echo '$''{'rxvt_cv_struct_utmpx'+set}'`\" = set"; then 14969if test "${rxvt_cv_struct_utmpx+set}" = set; then
8441 echo $ac_n "(cached) $ac_c" 1>&6 14970 echo $ECHO_N "(cached) $ECHO_C" >&6
8442else 14971else
8443 cat > conftest.$ac_ext <<EOF 14972 cat >conftest.$ac_ext <<_ACEOF
8444#line 8445 "configure" 14973/* confdefs.h. */
8445#include "confdefs.h" 14974_ACEOF
14975cat confdefs.h >>conftest.$ac_ext
14976cat >>conftest.$ac_ext <<_ACEOF
14977/* end confdefs.h. */
8446#include <sys/types.h> 14978#include <sys/types.h>
8447#include <utmpx.h> 14979#include <utmpx.h>
8448int main() { 14980int
14981main ()
14982{
8449struct utmpx ut; 14983struct utmpx ut;
14984 ;
8450; return 0; } 14985 return 0;
8451EOF 14986}
8452if { (eval echo configure:8453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14987_ACEOF
14988rm -f conftest.$ac_objext
14989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14990 (eval $ac_compile) 2>conftest.er1
14991 ac_status=$?
14992 grep -v '^ *+' conftest.er1 >conftest.err
8453 rm -rf conftest* 14993 rm -f conftest.er1
14994 cat conftest.err >&5
14995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996 (exit $ac_status); } &&
14997 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
15003 { ac_try='test -s conftest.$ac_objext'
15004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15005 (eval $ac_try) 2>&5
15006 ac_status=$?
15007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008 (exit $ac_status); }; }; then
8454 rxvt_cv_struct_utmpx=yes 15009 rxvt_cv_struct_utmpx=yes
8455else 15010else
8456 echo "configure: failed program was:" >&5 15011 echo "$as_me: failed program was:" >&5
8457 cat conftest.$ac_ext >&5 15012sed 's/^/| /' conftest.$ac_ext >&5
8458 rm -rf conftest* 15013
8459 rxvt_cv_struct_utmpx=no 15014rxvt_cv_struct_utmpx=no
8460fi 15015fi
8461rm -f conftest* 15016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8462fi 15017fi
8463 15018echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx" >&5
8464echo "$ac_t""$rxvt_cv_struct_utmpx" 1>&6 15019echo "${ECHO_T}$rxvt_cv_struct_utmpx" >&6
8465if test x$rxvt_cv_struct_utmpx = xyes; then 15020if test x$rxvt_cv_struct_utmpx = xyes; then
15021
8466 cat >> confdefs.h <<\EOF 15022cat >>confdefs.h <<\_ACEOF
8467#define HAVE_STRUCT_UTMPX 1 15023#define HAVE_STRUCT_UTMPX 1
8468EOF 15024_ACEOF
8469 15025
8470fi 15026fi
8471 15027
8472 15028
15029echo "$as_me:$LINENO: checking for host in utmpx struct" >&5
8473echo $ac_n "checking for host in utmpx struct""... $ac_c" 1>&6 15030echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6
8474echo "configure:8475: checking for host in utmpx struct" >&5
8475if eval "test \"`echo '$''{'rxvt_cv_struct_utmpx_host'+set}'`\" = set"; then 15031if test "${rxvt_cv_struct_utmpx_host+set}" = set; then
8476 echo $ac_n "(cached) $ac_c" 1>&6 15032 echo $ECHO_N "(cached) $ECHO_C" >&6
8477else 15033else
8478 cat > conftest.$ac_ext <<EOF 15034 cat >conftest.$ac_ext <<_ACEOF
8479#line 8480 "configure" 15035/* confdefs.h. */
8480#include "confdefs.h" 15036_ACEOF
15037cat confdefs.h >>conftest.$ac_ext
15038cat >>conftest.$ac_ext <<_ACEOF
15039/* end confdefs.h. */
8481#include <sys/types.h> 15040#include <sys/types.h>
8482#include <utmpx.h> 15041#include <utmpx.h>
8483int main() { 15042int
15043main ()
15044{
8484struct utmpx utx; utx.ut_host; 15045struct utmpx utx; utx.ut_host;
15046 ;
8485; return 0; } 15047 return 0;
8486EOF 15048}
8487if { (eval echo configure:8488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 15049_ACEOF
15050rm -f conftest.$ac_objext
15051if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15052 (eval $ac_compile) 2>conftest.er1
15053 ac_status=$?
15054 grep -v '^ *+' conftest.er1 >conftest.err
8488 rm -rf conftest* 15055 rm -f conftest.er1
15056 cat conftest.err >&5
15057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058 (exit $ac_status); } &&
15059 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15061 (eval $ac_try) 2>&5
15062 ac_status=$?
15063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064 (exit $ac_status); }; } &&
15065 { ac_try='test -s conftest.$ac_objext'
15066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15067 (eval $ac_try) 2>&5
15068 ac_status=$?
15069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070 (exit $ac_status); }; }; then
8489 rxvt_cv_struct_utmpx_host=yes 15071 rxvt_cv_struct_utmpx_host=yes
8490else 15072else
8491 echo "configure: failed program was:" >&5 15073 echo "$as_me: failed program was:" >&5
8492 cat conftest.$ac_ext >&5 15074sed 's/^/| /' conftest.$ac_ext >&5
8493 rm -rf conftest* 15075
8494 rxvt_cv_struct_utmpx_host=no 15076rxvt_cv_struct_utmpx_host=no
8495fi 15077fi
8496rm -f conftest* 15078rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8497fi 15079fi
8498 15080echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_host" >&5
8499echo "$ac_t""$rxvt_cv_struct_utmpx_host" 1>&6 15081echo "${ECHO_T}$rxvt_cv_struct_utmpx_host" >&6
8500if test x$rxvt_cv_struct_utmpx_host = xyes; then 15082if test x$rxvt_cv_struct_utmpx_host = xyes; then
15083
8501 cat >> confdefs.h <<\EOF 15084cat >>confdefs.h <<\_ACEOF
8502#define HAVE_UTMPX_HOST 1 15085#define HAVE_UTMPX_HOST 1
8503EOF 15086_ACEOF
8504 15087
8505fi 15088fi
8506 15089
8507else
8508 echo "$ac_t""no" 1>&6
8509fi 15090fi
8510
8511 15091
15092
15093
15094echo "$as_me:$LINENO: checking for struct lastlog" >&5
8512echo $ac_n "checking for struct lastlog""... $ac_c" 1>&6 15095echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6
8513echo "configure:8514: checking for struct lastlog" >&5
8514if eval "test \"`echo '$''{'rxvt_cv_struct_lastlog'+set}'`\" = set"; then 15096if test "${rxvt_cv_struct_lastlog+set}" = set; then
8515 echo $ac_n "(cached) $ac_c" 1>&6 15097 echo $ECHO_N "(cached) $ECHO_C" >&6
8516else 15098else
8517 cat > conftest.$ac_ext <<EOF 15099 cat >conftest.$ac_ext <<_ACEOF
8518#line 8519 "configure" 15100/* confdefs.h. */
8519#include "confdefs.h" 15101_ACEOF
15102cat confdefs.h >>conftest.$ac_ext
15103cat >>conftest.$ac_ext <<_ACEOF
15104/* end confdefs.h. */
8520#include <sys/types.h> 15105#include <sys/types.h>
8521#include <utmp.h> 15106#include <utmp.h>
8522#ifdef HAVE_LASTLOG_H 15107#ifdef HAVE_LASTLOG_H
8523#include <lastlog.h> 15108#include <lastlog.h>
8524#endif 15109#endif
8525 15110
8526int main() { 15111int
15112main ()
15113{
8527struct lastlog ll; 15114struct lastlog ll;
15115 ;
8528; return 0; } 15116 return 0;
8529EOF 15117}
8530if { (eval echo configure:8531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 15118_ACEOF
15119rm -f conftest.$ac_objext
15120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15121 (eval $ac_compile) 2>conftest.er1
15122 ac_status=$?
15123 grep -v '^ *+' conftest.er1 >conftest.err
8531 rm -rf conftest* 15124 rm -f conftest.er1
15125 cat conftest.err >&5
15126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127 (exit $ac_status); } &&
15128 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15130 (eval $ac_try) 2>&5
15131 ac_status=$?
15132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15133 (exit $ac_status); }; } &&
15134 { ac_try='test -s conftest.$ac_objext'
15135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15136 (eval $ac_try) 2>&5
15137 ac_status=$?
15138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139 (exit $ac_status); }; }; then
8532 rxvt_cv_struct_lastlog=yes 15140 rxvt_cv_struct_lastlog=yes
8533else 15141else
8534 echo "configure: failed program was:" >&5 15142 echo "$as_me: failed program was:" >&5
8535 cat conftest.$ac_ext >&5 15143sed 's/^/| /' conftest.$ac_ext >&5
8536 rm -rf conftest* 15144
8537 rxvt_cv_struct_lastlog=no 15145rxvt_cv_struct_lastlog=no
8538fi 15146fi
8539rm -f conftest* 15147rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8540fi 15148fi
8541 15149echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlog" >&5
8542echo "$ac_t""$rxvt_cv_struct_lastlog" 1>&6 15150echo "${ECHO_T}$rxvt_cv_struct_lastlog" >&6
8543if test x$rxvt_cv_struct_lastlog = xyes; then 15151if test x$rxvt_cv_struct_lastlog = xyes; then
15152
8544 cat >> confdefs.h <<\EOF 15153cat >>confdefs.h <<\_ACEOF
8545#define HAVE_STRUCT_LASTLOG 1 15154#define HAVE_STRUCT_LASTLOG 1
8546EOF 15155_ACEOF
8547 15156
8548fi 15157fi
8549 15158
15159echo "$as_me:$LINENO: checking for struct lastlogx" >&5
8550echo $ac_n "checking for struct lastlogx""... $ac_c" 1>&6 15160echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6
8551echo "configure:8552: checking for struct lastlogx" >&5
8552if eval "test \"`echo '$''{'rxvt_cv_struct_lastlogx'+set}'`\" = set"; then 15161if test "${rxvt_cv_struct_lastlogx+set}" = set; then
8553 echo $ac_n "(cached) $ac_c" 1>&6 15162 echo $ECHO_N "(cached) $ECHO_C" >&6
8554else 15163else
8555 cat > conftest.$ac_ext <<EOF 15164 cat >conftest.$ac_ext <<_ACEOF
8556#line 8557 "configure" 15165/* confdefs.h. */
8557#include "confdefs.h" 15166_ACEOF
15167cat confdefs.h >>conftest.$ac_ext
15168cat >>conftest.$ac_ext <<_ACEOF
15169/* end confdefs.h. */
8558#include <sys/types.h> 15170#include <sys/types.h>
8559#include <utmpx.h> 15171#include <utmpx.h>
8560#ifdef HAVE_LASTLOG_H 15172#ifdef HAVE_LASTLOG_H
8561#include <lastlog.h> 15173#include <lastlog.h>
8562#endif 15174#endif
8563 15175
8564int main() { 15176int
15177main ()
15178{
8565struct lastlogx ll; 15179struct lastlogx ll;
15180 ;
8566; return 0; } 15181 return 0;
8567EOF 15182}
8568if { (eval echo configure:8569: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 15183_ACEOF
15184rm -f conftest.$ac_objext
15185if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15186 (eval $ac_compile) 2>conftest.er1
15187 ac_status=$?
15188 grep -v '^ *+' conftest.er1 >conftest.err
8569 rm -rf conftest* 15189 rm -f conftest.er1
15190 cat conftest.err >&5
15191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192 (exit $ac_status); } &&
15193 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15195 (eval $ac_try) 2>&5
15196 ac_status=$?
15197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15198 (exit $ac_status); }; } &&
15199 { ac_try='test -s conftest.$ac_objext'
15200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15201 (eval $ac_try) 2>&5
15202 ac_status=$?
15203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15204 (exit $ac_status); }; }; then
8570 rxvt_cv_struct_lastlogx=yes 15205 rxvt_cv_struct_lastlogx=yes
8571else 15206else
8572 echo "configure: failed program was:" >&5 15207 echo "$as_me: failed program was:" >&5
8573 cat conftest.$ac_ext >&5 15208sed 's/^/| /' conftest.$ac_ext >&5
8574 rm -rf conftest* 15209
8575 rxvt_cv_struct_lastlogx=no 15210rxvt_cv_struct_lastlogx=no
8576fi 15211fi
8577rm -f conftest* 15212rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8578fi 15213fi
8579 15214echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlogx" >&5
8580echo "$ac_t""$rxvt_cv_struct_lastlogx" 1>&6 15215echo "${ECHO_T}$rxvt_cv_struct_lastlogx" >&6
8581if test x$rxvt_cv_struct_lastlogx = xyes; then 15216if test x$rxvt_cv_struct_lastlogx = xyes; then
15217
8582 cat >> confdefs.h <<\EOF 15218cat >>confdefs.h <<\_ACEOF
8583#define HAVE_STRUCT_LASTLOGX 1 15219#define HAVE_STRUCT_LASTLOGX 1
8584EOF 15220_ACEOF
8585 15221
8586fi 15222fi
8587 15223
8588 15224
15225echo "$as_me:$LINENO: checking where utmp is located" >&5
8589echo $ac_n "checking where utmp is located""... $ac_c" 1>&6 15226echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6
8590echo "configure:8591: checking where utmp is located" >&5
8591if eval "test \"`echo '$''{'rxvt_cv_path_utmp'+set}'`\" = set"; then 15227if test "${rxvt_cv_path_utmp+set}" = set; then
8592 echo $ac_n "(cached) $ac_c" 1>&6 15228 echo $ECHO_N "(cached) $ECHO_C" >&6
8593else 15229else
8594 if test "$cross_compiling" = yes; then 15230 if test "$cross_compiling" = yes; then
15231 { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&5
8595 echo "configure: warning: Define RXVT_UTMP_FILE in config.h manually" 1>&2 15232echo "$as_me: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&2;}
8596else 15233else
8597 cat > conftest.$ac_ext <<EOF 15234 cat >conftest.$ac_ext <<_ACEOF
8598#line 8599 "configure" 15235/* confdefs.h. */
8599#include "confdefs.h" 15236_ACEOF
15237cat confdefs.h >>conftest.$ac_ext
15238cat >>conftest.$ac_ext <<_ACEOF
15239/* end confdefs.h. */
8600#include <stdio.h> 15240#include <stdio.h>
8601#include <sys/types.h> 15241#include <sys/types.h>
8602#include <utmp.h> 15242#include <utmp.h>
8603#include <errno.h> 15243#include <errno.h>
8604main() 15244main()
8621 exit(0); 15261 exit(0);
8622 } 15262 }
8623 } 15263 }
8624 exit(0); 15264 exit(0);
8625} 15265}
8626EOF 15266_ACEOF
8627if { (eval echo configure:8628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 15267rm -f conftest$ac_exeext
8628then 15268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15269 (eval $ac_link) 2>&5
15270 ac_status=$?
15271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15272 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15274 (eval $ac_try) 2>&5
15275 ac_status=$?
15276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277 (exit $ac_status); }; }; then
8629 rxvt_cv_path_utmp=`cat conftestval` 15278 rxvt_cv_path_utmp=`cat conftestval`
8630else 15279else
15280 echo "$as_me: program exited with status $ac_status" >&5
8631 echo "configure: failed program was:" >&5 15281echo "$as_me: failed program was:" >&5
8632 cat conftest.$ac_ext >&5 15282sed 's/^/| /' conftest.$ac_ext >&5
8633 rm -fr conftest* 15283
15284( exit $ac_status )
8634 rxvt_cv_path_utmp= 15285rxvt_cv_path_utmp=
8635fi 15286fi
8636rm -fr conftest* 15287rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8637fi 15288fi
8638
8639fi 15289fi
8640 15290echo "$as_me:$LINENO: result: $rxvt_cv_path_utmp" >&5
8641echo "$ac_t""$rxvt_cv_path_utmp" 1>&6 15291echo "${ECHO_T}$rxvt_cv_path_utmp" >&6
8642if test x$rxvt_cv_path_utmp != x; then 15292if test x$rxvt_cv_path_utmp != x; then
15293
8643 cat >> confdefs.h <<EOF 15294cat >>confdefs.h <<_ACEOF
8644#define RXVT_UTMP_FILE "$rxvt_cv_path_utmp" 15295#define RXVT_UTMP_FILE "$rxvt_cv_path_utmp"
8645EOF 15296_ACEOF
8646 15297
8647fi 15298fi
8648 15299
8649 15300
15301echo "$as_me:$LINENO: checking where utmpx is located" >&5
8650echo $ac_n "checking where utmpx is located""... $ac_c" 1>&6 15302echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6
8651echo "configure:8652: checking where utmpx is located" >&5
8652if eval "test \"`echo '$''{'rxvt_cv_path_utmpx'+set}'`\" = set"; then 15303if test "${rxvt_cv_path_utmpx+set}" = set; then
8653 echo $ac_n "(cached) $ac_c" 1>&6 15304 echo $ECHO_N "(cached) $ECHO_C" >&6
8654else 15305else
8655 if test "$cross_compiling" = yes; then 15306 if test "$cross_compiling" = yes; then
15307 { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&5
8656 echo "configure: warning: Define RXVT_UTMPX_FILE in config.h manually" 1>&2 15308echo "$as_me: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&2;}
8657else 15309else
8658 cat > conftest.$ac_ext <<EOF 15310 cat >conftest.$ac_ext <<_ACEOF
8659#line 8660 "configure" 15311/* confdefs.h. */
8660#include "confdefs.h" 15312_ACEOF
15313cat confdefs.h >>conftest.$ac_ext
15314cat >>conftest.$ac_ext <<_ACEOF
15315/* end confdefs.h. */
8661#include <stdio.h> 15316#include <stdio.h>
8662#include <sys/types.h> 15317#include <sys/types.h>
8663#include <utmpx.h> 15318#include <utmpx.h>
8664#include <errno.h> 15319#include <errno.h>
8665#include <sys/stat.h> 15320#include <sys/stat.h>
8692 exit(0); 15347 exit(0);
8693 } 15348 }
8694 } 15349 }
8695 exit(0); 15350 exit(0);
8696} 15351}
8697EOF 15352_ACEOF
8698if { (eval echo configure:8699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 15353rm -f conftest$ac_exeext
8699then 15354if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15355 (eval $ac_link) 2>&5
15356 ac_status=$?
15357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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
8700 rxvt_cv_path_utmpx=`cat conftestval` 15364 rxvt_cv_path_utmpx=`cat conftestval`
8701else 15365else
15366 echo "$as_me: program exited with status $ac_status" >&5
8702 echo "configure: failed program was:" >&5 15367echo "$as_me: failed program was:" >&5
8703 cat conftest.$ac_ext >&5 15368sed 's/^/| /' conftest.$ac_ext >&5
8704 rm -fr conftest* 15369
15370( exit $ac_status )
8705 rxvt_cv_path_utmpx= 15371rxvt_cv_path_utmpx=
8706fi 15372fi
8707rm -fr conftest* 15373rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8708fi 15374fi
8709
8710fi 15375fi
8711 15376echo "$as_me:$LINENO: result: $rxvt_cv_path_utmpx" >&5
8712echo "$ac_t""$rxvt_cv_path_utmpx" 1>&6 15377echo "${ECHO_T}$rxvt_cv_path_utmpx" >&6
8713if test x$rxvt_cv_path_utmpx != x; then 15378if test x$rxvt_cv_path_utmpx != x; then
15379
8714 cat >> confdefs.h <<EOF 15380cat >>confdefs.h <<_ACEOF
8715#define RXVT_UTMPX_FILE "$rxvt_cv_path_utmpx" 15381#define RXVT_UTMPX_FILE "$rxvt_cv_path_utmpx"
8716EOF 15382_ACEOF
8717 15383
8718fi 15384fi
8719 15385
8720 15386
15387echo "$as_me:$LINENO: checking where wtmp is located" >&5
8721echo $ac_n "checking where wtmp is located""... $ac_c" 1>&6 15388echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6
8722echo "configure:8723: checking where wtmp is located" >&5
8723if eval "test \"`echo '$''{'rxvt_cv_path_wtmp'+set}'`\" = set"; then 15389if test "${rxvt_cv_path_wtmp+set}" = set; then
8724 echo $ac_n "(cached) $ac_c" 1>&6 15390 echo $ECHO_N "(cached) $ECHO_C" >&6
8725else 15391else
8726 if test "$cross_compiling" = yes; then 15392 if test "$cross_compiling" = yes; then
15393 { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&5
8727 echo "configure: warning: Define RXVT_WTMP_FILE in config.h manually" 1>&2 15394echo "$as_me: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&2;}
8728else 15395else
8729 cat > conftest.$ac_ext <<EOF 15396 cat >conftest.$ac_ext <<_ACEOF
8730#line 8731 "configure" 15397/* confdefs.h. */
8731#include "confdefs.h" 15398_ACEOF
15399cat confdefs.h >>conftest.$ac_ext
15400cat >>conftest.$ac_ext <<_ACEOF
15401/* end confdefs.h. */
8732#include <stdio.h> 15402#include <stdio.h>
8733#include <sys/types.h> 15403#include <sys/types.h>
8734#ifdef HAVE_UTMP_H 15404#ifdef HAVE_UTMP_H
8735#include <utmp.h> 15405#include <utmp.h>
8736#endif 15406#endif
8737#include <errno.h> 15407#include <errno.h>
8738main() 15408main()
8739{ 15409{
8740 char **w, *wtmplist[] = { 15410 char **w, *wtmplist[] = {
8741 "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL }; 15411 "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL };
8742 FILE *a, *f=fopen("conftestval", "w"); 15412 FILE *a, *f=fopen("conftestval", "w");
8743 if (!f) exit(1); 15413 if (!f) exit(1);
8744#ifdef WTMP_FILE 15414#ifdef WTMP_FILE
8745 fprintf(f, "%s\n", WTMP_FILE); 15415 fprintf(f, "%s\n", WTMP_FILE);
8746 exit(0); 15416 exit(0);
8755 exit(0); 15425 exit(0);
8756 } 15426 }
8757 } 15427 }
8758 exit(0); 15428 exit(0);
8759} 15429}
8760EOF 15430_ACEOF
8761if { (eval echo configure:8762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 15431rm -f conftest$ac_exeext
8762then 15432if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15433 (eval $ac_link) 2>&5
15434 ac_status=$?
15435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15438 (eval $ac_try) 2>&5
15439 ac_status=$?
15440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15441 (exit $ac_status); }; }; then
8763 rxvt_cv_path_wtmp=`cat conftestval` 15442 rxvt_cv_path_wtmp=`cat conftestval`
8764else 15443else
15444 echo "$as_me: program exited with status $ac_status" >&5
8765 echo "configure: failed program was:" >&5 15445echo "$as_me: failed program was:" >&5
8766 cat conftest.$ac_ext >&5 15446sed 's/^/| /' conftest.$ac_ext >&5
8767 rm -fr conftest* 15447
15448( exit $ac_status )
8768 rxvt_cv_path_wtmp= 15449rxvt_cv_path_wtmp=
8769fi 15450fi
8770rm -fr conftest* 15451rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8771fi 15452fi
8772
8773fi 15453fi
8774 15454echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmp" >&5
8775echo "$ac_t""$rxvt_cv_path_wtmp" 1>&6 15455echo "${ECHO_T}$rxvt_cv_path_wtmp" >&6
8776if test x$rxvt_cv_path_wtmp != x; then 15456if test x$rxvt_cv_path_wtmp != x; then
15457
8777 cat >> confdefs.h <<EOF 15458cat >>confdefs.h <<_ACEOF
8778#define RXVT_WTMP_FILE "$rxvt_cv_path_wtmp" 15459#define RXVT_WTMP_FILE "$rxvt_cv_path_wtmp"
8779EOF 15460_ACEOF
8780 15461
8781fi 15462fi
8782 15463
15464echo "$as_me:$LINENO: checking where wtmpx is located" >&5
8783echo $ac_n "checking where wtmpx is located""... $ac_c" 1>&6 15465echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6
8784echo "configure:8785: checking where wtmpx is located" >&5
8785if eval "test \"`echo '$''{'rxvt_cv_path_wtmpx'+set}'`\" = set"; then 15466if test "${rxvt_cv_path_wtmpx+set}" = set; then
8786 echo $ac_n "(cached) $ac_c" 1>&6 15467 echo $ECHO_N "(cached) $ECHO_C" >&6
8787else 15468else
8788 if test "$cross_compiling" = yes; then 15469 if test "$cross_compiling" = yes; then
15470 { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&5
8789 echo "configure: warning: Define RXVT_WTMPX_FILE in config.h manually" 1>&2 15471echo "$as_me: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&2;}
8790else 15472else
8791 cat > conftest.$ac_ext <<EOF 15473 cat >conftest.$ac_ext <<_ACEOF
8792#line 8793 "configure" 15474/* confdefs.h. */
8793#include "confdefs.h" 15475_ACEOF
15476cat confdefs.h >>conftest.$ac_ext
15477cat >>conftest.$ac_ext <<_ACEOF
15478/* end confdefs.h. */
8794#include <stdio.h> 15479#include <stdio.h>
8795#ifdef HAVE_UTMPX_H 15480#ifdef HAVE_UTMPX_H
8796#include <utmpx.h> 15481#include <utmpx.h>
8797#endif 15482#endif
8798#include <errno.h> 15483#include <errno.h>
8799main() 15484main()
8800{ 15485{
8801 char **w, *wtmplist[] = { 15486 char **w, *wtmplist[] = {
8802 "/var/log/wtmpx", "/var/adm/wtmpx", NULL }; 15487 "/var/log/wtmpx", "/var/adm/wtmpx", NULL };
8803 FILE *a, *f=fopen("conftestval", "w"); 15488 FILE *a, *f=fopen("conftestval", "w");
8804 if (!f) exit(1); 15489 if (!f) exit(1);
8805#ifdef WTMPX_FILE 15490#ifdef WTMPX_FILE
8806 fprintf(f, "%s\n", WTMPX_FILE); 15491 fprintf(f, "%s\n", WTMPX_FILE);
8807 exit(0); 15492 exit(0);
8816 exit(0); 15501 exit(0);
8817 } 15502 }
8818 } 15503 }
8819 exit(0); 15504 exit(0);
8820} 15505}
8821EOF 15506_ACEOF
8822if { (eval echo configure:8823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 15507rm -f conftest$ac_exeext
8823then 15508if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15509 (eval $ac_link) 2>&5
15510 ac_status=$?
15511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15514 (eval $ac_try) 2>&5
15515 ac_status=$?
15516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517 (exit $ac_status); }; }; then
8824 rxvt_cv_path_wtmpx=`cat conftestval` 15518 rxvt_cv_path_wtmpx=`cat conftestval`
8825else 15519else
15520 echo "$as_me: program exited with status $ac_status" >&5
8826 echo "configure: failed program was:" >&5 15521echo "$as_me: failed program was:" >&5
8827 cat conftest.$ac_ext >&5 15522sed 's/^/| /' conftest.$ac_ext >&5
8828 rm -fr conftest* 15523
15524( exit $ac_status )
8829 rxvt_cv_path_wtmpx= 15525rxvt_cv_path_wtmpx=
8830fi 15526fi
8831rm -fr conftest* 15527rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8832fi 15528fi
8833
8834fi 15529fi
8835 15530echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmpx" >&5
8836echo "$ac_t""$rxvt_cv_path_wtmpx" 1>&6 15531echo "${ECHO_T}$rxvt_cv_path_wtmpx" >&6
8837if test x$rxvt_cv_path_wtmpx != x; then 15532if test x$rxvt_cv_path_wtmpx != x; then
15533
8838 cat >> confdefs.h <<EOF 15534cat >>confdefs.h <<_ACEOF
8839#define RXVT_WTMPX_FILE "$rxvt_cv_path_wtmpx" 15535#define RXVT_WTMPX_FILE "$rxvt_cv_path_wtmpx"
8840EOF 15536_ACEOF
8841 15537
8842fi 15538fi
8843 15539
15540echo "$as_me:$LINENO: checking where lastlog is located" >&5
8844echo $ac_n "checking where lastlog is located""... $ac_c" 1>&6 15541echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6
8845echo "configure:8846: checking where lastlog is located" >&5
8846if eval "test \"`echo '$''{'rxvt_cv_path_lastlog'+set}'`\" = set"; then 15542if test "${rxvt_cv_path_lastlog+set}" = set; then
8847 echo $ac_n "(cached) $ac_c" 1>&6 15543 echo $ECHO_N "(cached) $ECHO_C" >&6
8848else 15544else
8849 if test "$cross_compiling" = yes; then 15545 if test "$cross_compiling" = yes; then
15546 { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&5
8850 echo "configure: warning: Define RXVT_LASTLOG_FILE in config.h manually" 1>&2 15547echo "$as_me: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&2;}
8851else 15548else
8852 cat > conftest.$ac_ext <<EOF 15549 cat >conftest.$ac_ext <<_ACEOF
8853#line 8854 "configure" 15550/* confdefs.h. */
8854#include "confdefs.h" 15551_ACEOF
15552cat confdefs.h >>conftest.$ac_ext
15553cat >>conftest.$ac_ext <<_ACEOF
15554/* end confdefs.h. */
8855#include <stdio.h> 15555#include <stdio.h>
8856#include <sys/types.h> 15556#include <sys/types.h>
8857#ifdef HAVE_UTMPX_H 15557#ifdef HAVE_UTMPX_H
8858#include <utmpx.h> 15558#include <utmpx.h>
8859#elif defined(HAVE_UTMP_H) 15559#elif defined(HAVE_UTMP_H)
8882 exit(0); 15582 exit(0);
8883 } 15583 }
8884 } 15584 }
8885 exit(0); 15585 exit(0);
8886} 15586}
8887EOF 15587_ACEOF
8888if { (eval echo configure:8889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 15588rm -f conftest$ac_exeext
8889then 15589if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15590 (eval $ac_link) 2>&5
15591 ac_status=$?
15592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15593 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15595 (eval $ac_try) 2>&5
15596 ac_status=$?
15597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598 (exit $ac_status); }; }; then
8890 rxvt_cv_path_lastlog=`cat conftestval` 15599 rxvt_cv_path_lastlog=`cat conftestval`
8891else 15600else
15601 echo "$as_me: program exited with status $ac_status" >&5
8892 echo "configure: failed program was:" >&5 15602echo "$as_me: failed program was:" >&5
8893 cat conftest.$ac_ext >&5 15603sed 's/^/| /' conftest.$ac_ext >&5
8894 rm -fr conftest* 15604
15605( exit $ac_status )
8895 rxvt_cv_path_lastlog= 15606rxvt_cv_path_lastlog=
8896fi 15607fi
8897rm -fr conftest* 15608rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8898fi 15609fi
8899
8900fi 15610fi
8901 15611echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlog" >&5
8902echo "$ac_t""$rxvt_cv_path_lastlog" 1>&6 15612echo "${ECHO_T}$rxvt_cv_path_lastlog" >&6
8903if test x$rxvt_cv_path_lastlog != x; then 15613if test x$rxvt_cv_path_lastlog != x; then
15614
8904 cat >> confdefs.h <<EOF 15615cat >>confdefs.h <<_ACEOF
8905#define RXVT_LASTLOG_FILE "$rxvt_cv_path_lastlog" 15616#define RXVT_LASTLOG_FILE "$rxvt_cv_path_lastlog"
8906EOF 15617_ACEOF
8907 15618
8908 if test -d "$rxvt_cv_path_lastlog"; then 15619 if test -d "$rxvt_cv_path_lastlog"; then
15620
8909 cat >> confdefs.h <<\EOF 15621cat >>confdefs.h <<\_ACEOF
8910#define LASTLOG_IS_DIR 1 15622#define LASTLOG_IS_DIR 1
8911EOF 15623_ACEOF
8912 15624
8913 fi 15625 fi
8914fi 15626fi
8915 15627
15628echo "$as_me:$LINENO: checking where lastlogx is located" >&5
8916echo $ac_n "checking where lastlogx is located""... $ac_c" 1>&6 15629echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6
8917echo "configure:8918: checking where lastlogx is located" >&5
8918if eval "test \"`echo '$''{'rxvt_cv_path_lastlogx'+set}'`\" = set"; then 15630if test "${rxvt_cv_path_lastlogx+set}" = set; then
8919 echo $ac_n "(cached) $ac_c" 1>&6 15631 echo $ECHO_N "(cached) $ECHO_C" >&6
8920else 15632else
8921 if test "$cross_compiling" = yes; then 15633 if test "$cross_compiling" = yes; then
15634 { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&5
8922 echo "configure: warning: Define RXVT_LASTLOGX_FILE in config.h manually" 1>&2 15635echo "$as_me: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&2;}
8923else 15636else
8924 cat > conftest.$ac_ext <<EOF 15637 cat >conftest.$ac_ext <<_ACEOF
8925#line 8926 "configure" 15638/* confdefs.h. */
8926#include "confdefs.h" 15639_ACEOF
15640cat confdefs.h >>conftest.$ac_ext
15641cat >>conftest.$ac_ext <<_ACEOF
15642/* end confdefs.h. */
8927#include <stdio.h> 15643#include <stdio.h>
8928#ifdef HAVE_UTMPX_H 15644#ifdef HAVE_UTMPX_H
8929#include <utmpx.h> 15645#include <utmpx.h>
8930#endif 15646#endif
8931#include <errno.h> 15647#include <errno.h>
8948 exit(0); 15664 exit(0);
8949 } 15665 }
8950 } 15666 }
8951 exit(0); 15667 exit(0);
8952} 15668}
8953EOF 15669_ACEOF
8954if { (eval echo configure:8955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 15670rm -f conftest$ac_exeext
8955then 15671if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15672 (eval $ac_link) 2>&5
15673 ac_status=$?
15674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15675 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15677 (eval $ac_try) 2>&5
15678 ac_status=$?
15679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15680 (exit $ac_status); }; }; then
8956 rxvt_cv_path_lastlogx=`cat conftestval` 15681 rxvt_cv_path_lastlogx=`cat conftestval`
8957else 15682else
15683 echo "$as_me: program exited with status $ac_status" >&5
8958 echo "configure: failed program was:" >&5 15684echo "$as_me: failed program was:" >&5
8959 cat conftest.$ac_ext >&5 15685sed 's/^/| /' conftest.$ac_ext >&5
8960 rm -fr conftest* 15686
15687( exit $ac_status )
8961 rxvt_cv_path_lastlogx= 15688rxvt_cv_path_lastlogx=
8962fi 15689fi
8963rm -fr conftest* 15690rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8964fi 15691fi
8965
8966fi 15692fi
8967 15693echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlogx" >&5
8968echo "$ac_t""$rxvt_cv_path_lastlogx" 1>&6 15694echo "${ECHO_T}$rxvt_cv_path_lastlogx" >&6
8969if test x$rxvt_cv_path_lastlogx != x; then 15695if test x$rxvt_cv_path_lastlogx != x; then
15696
8970 cat >> confdefs.h <<EOF 15697cat >>confdefs.h <<_ACEOF
8971#define RXVT_LASTLOGX_FILE "$rxvt_cv_path_lastlogx" 15698#define RXVT_LASTLOGX_FILE "$rxvt_cv_path_lastlogx"
8972EOF 15699_ACEOF
8973 15700
8974fi 15701fi
8975 15702
8976 15703
15704echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
8977echo $ac_n "checking where ttys/ttytab is located""... $ac_c" 1>&6 15705echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6
8978echo "configure:8979: checking where ttys/ttytab is located" >&5
8979if eval "test \"`echo '$''{'rxvt_cv_path_ttytab'+set}'`\" = set"; then 15706if test "${rxvt_cv_path_ttytab+set}" = set; then
8980 echo $ac_n "(cached) $ac_c" 1>&6 15707 echo $ECHO_N "(cached) $ECHO_C" >&6
8981else 15708else
8982 for ttys_file in /etc/ttys /etc/ttytab; 15709 for ttys_file in /etc/ttys /etc/ttytab;
8983do 15710do
8984 if test -f "$ttys_file" ; then 15711 if test -f "$ttys_file" ; then
8985 rxvt_cv_path_ttytab=$ttys_file 15712 rxvt_cv_path_ttytab=$ttys_file
8986 break 15713 break
8987 fi 15714 fi
8988done 15715done
8989 15716
8990fi 15717fi
8991 15718echo "$as_me:$LINENO: result: $rxvt_cv_path_ttytab" >&5
8992echo "$ac_t""$rxvt_cv_path_ttytab" 1>&6 15719echo "${ECHO_T}$rxvt_cv_path_ttytab" >&6
8993if test x$rxvt_cv_path_ttytab != x; then 15720if test x$rxvt_cv_path_ttytab != x; then
15721
8994 cat >> confdefs.h <<EOF 15722cat >>confdefs.h <<_ACEOF
8995#define TTYTAB_FILENAME "$rxvt_cv_path_ttytab" 15723#define TTYTAB_FILENAME "$rxvt_cv_path_ttytab"
8996EOF 15724_ACEOF
8997 15725
8998fi 15726fi
8999 15727
9000 15728
9001ac_save_LIBS=$LIBS 15729ac_save_LIBS=$LIBS
9003CFLAGS="$CFLAGS $X_CFLAGS" 15731CFLAGS="$CFLAGS $X_CFLAGS"
9004LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 15732LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
9005if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then 15733if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
9006 LIBS=`echo $LIBS | sed "$R_TRANSLATE"` 15734 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
9007fi 15735fi
15736echo "$as_me:$LINENO: checking for working Xlocale" >&5
9008echo $ac_n "checking for working Xlocale""... $ac_c" 1>&6 15737echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6
9009echo "configure:9010: checking for working Xlocale" >&5
9010if eval "test \"`echo '$''{'rxvt_cv_func_xlocale'+set}'`\" = set"; then 15738if test "${rxvt_cv_func_xlocale+set}" = set; then
9011 echo $ac_n "(cached) $ac_c" 1>&6 15739 echo $ECHO_N "(cached) $ECHO_C" >&6
9012else 15740else
9013 if test "$cross_compiling" = yes; then 15741 if test "$cross_compiling" = yes; then
15742 { echo "$as_me:$LINENO: WARNING: Define NO_XLOCALE in config.h manually" >&5
9014 echo "configure: warning: Define NO_XLOCALE in config.h manually" 1>&2 15743echo "$as_me: WARNING: Define NO_XLOCALE in config.h manually" >&2;}
9015else 15744else
9016 cat > conftest.$ac_ext <<EOF 15745 cat >conftest.$ac_ext <<_ACEOF
9017#line 9018 "configure" 15746/* confdefs.h. */
9018#include "confdefs.h" 15747_ACEOF
15748cat confdefs.h >>conftest.$ac_ext
15749cat >>conftest.$ac_ext <<_ACEOF
15750/* end confdefs.h. */
9019#include <X11/Xlib.h> 15751#include <X11/Xlib.h>
9020main() { 15752main() {
9021char *p; 15753char *p;
9022if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) 15754if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
9023exit (XSupportsLocale() ? 0 : 1); 15755exit (XSupportsLocale() ? 0 : 1);
9024else 15756else
9025exit (1);} 15757exit (1);}
9026EOF 15758_ACEOF
9027if { (eval echo configure:9028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 15759rm -f conftest$ac_exeext
9028then 15760if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15761 (eval $ac_link) 2>&5
15762 ac_status=$?
15763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15766 (eval $ac_try) 2>&5
15767 ac_status=$?
15768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769 (exit $ac_status); }; }; then
9029 rxvt_cv_func_xlocale=yes 15770 rxvt_cv_func_xlocale=yes
9030else 15771else
15772 echo "$as_me: program exited with status $ac_status" >&5
9031 echo "configure: failed program was:" >&5 15773echo "$as_me: failed program was:" >&5
9032 cat conftest.$ac_ext >&5 15774sed 's/^/| /' conftest.$ac_ext >&5
9033 rm -fr conftest* 15775
15776( exit $ac_status )
9034 rxvt_cv_func_xlocale=no 15777rxvt_cv_func_xlocale=no
9035fi 15778fi
9036rm -fr conftest* 15779rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9037fi 15780fi
9038
9039fi 15781fi
9040 15782echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5
9041echo "$ac_t""$rxvt_cv_func_xlocale" 1>&6 15783echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6
9042if test x$rxvt_cv_func_xlocale = xyes; then 15784if test x$rxvt_cv_func_xlocale = xyes; then
15785
9043 cat >> confdefs.h <<\EOF 15786cat >>confdefs.h <<\_ACEOF
9044#define HAVE_XLOCALE 1 15787#define HAVE_XLOCALE 1
9045EOF 15788_ACEOF
9046 15789
9047fi 15790fi
9048 15791
15792echo "$as_me:$LINENO: checking for working X setlocale" >&5
9049echo $ac_n "checking for working X setlocale""... $ac_c" 1>&6 15793echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6
9050echo "configure:9051: checking for working X setlocale" >&5
9051if eval "test \"`echo '$''{'rxvt_cv_func_xsetlocale'+set}'`\" = set"; then 15794if test "${rxvt_cv_func_xsetlocale+set}" = set; then
9052 echo $ac_n "(cached) $ac_c" 1>&6 15795 echo $ECHO_N "(cached) $ECHO_C" >&6
9053else 15796else
9054 cat > conftest.$ac_ext <<EOF 15797 cat >conftest.$ac_ext <<_ACEOF
9055#line 9056 "configure" 15798/* confdefs.h. */
9056#include "confdefs.h" 15799_ACEOF
15800cat confdefs.h >>conftest.$ac_ext
15801cat >>conftest.$ac_ext <<_ACEOF
15802/* end confdefs.h. */
9057#define X_LOCALE 1 15803#define X_LOCALE 1
9058#include <X11/Xlocale.h> 15804#include <X11/Xlocale.h>
9059int main() { 15805int
15806main ()
15807{
9060setlocale(LC_CTYPE, ""); 15808setlocale(LC_CTYPE, "");
15809 ;
9061; return 0; } 15810 return 0;
9062EOF 15811}
9063if { (eval echo configure:9064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15812_ACEOF
15813rm -f conftest.$ac_objext conftest$ac_exeext
15814if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15815 (eval $ac_link) 2>conftest.er1
15816 ac_status=$?
15817 grep -v '^ *+' conftest.er1 >conftest.err
9064 rm -rf conftest* 15818 rm -f conftest.er1
15819 cat conftest.err >&5
15820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821 (exit $ac_status); } &&
15822 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15824 (eval $ac_try) 2>&5
15825 ac_status=$?
15826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827 (exit $ac_status); }; } &&
15828 { ac_try='test -s conftest$ac_exeext'
15829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15830 (eval $ac_try) 2>&5
15831 ac_status=$?
15832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833 (exit $ac_status); }; }; then
9065 rxvt_cv_func_xsetlocale=yes 15834 rxvt_cv_func_xsetlocale=yes
9066else 15835else
9067 echo "configure: failed program was:" >&5 15836 echo "$as_me: failed program was:" >&5
9068 cat conftest.$ac_ext >&5 15837sed 's/^/| /' conftest.$ac_ext >&5
9069 rm -rf conftest* 15838
9070 rxvt_cv_func_xsetlocale=no 15839rxvt_cv_func_xsetlocale=no
9071fi 15840fi
9072rm -f conftest* 15841rm -f conftest.err conftest.$ac_objext \
15842 conftest$ac_exeext conftest.$ac_ext
9073fi 15843fi
9074 15844echo "$as_me:$LINENO: result: $rxvt_cv_func_xsetlocale" >&5
9075echo "$ac_t""$rxvt_cv_func_xsetlocale" 1>&6 15845echo "${ECHO_T}$rxvt_cv_func_xsetlocale" >&6
9076if test x$rxvt_cv_func_xsetlocale = xyes; then 15846if test x$rxvt_cv_func_xsetlocale = xyes; then
15847
9077 cat >> confdefs.h <<\EOF 15848cat >>confdefs.h <<\_ACEOF
9078#define HAVE_XSETLOCALE 1 15849#define HAVE_XSETLOCALE 1
9079EOF 15850_ACEOF
9080 15851
9081fi 15852fi
9082LIBS=$ac_save_LIBS 15853LIBS=$ac_save_LIBS
9083CFLAGS=$ac_save_CFLAGS 15854CFLAGS=$ac_save_CFLAGS
9084 15855
15856echo "$as_me:$LINENO: checking for working plain setlocale" >&5
9085echo $ac_n "checking for working plain setlocale""... $ac_c" 1>&6 15857echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6
9086echo "configure:9087: checking for working plain setlocale" >&5
9087if eval "test \"`echo '$''{'rxvt_cv_func_setlocale'+set}'`\" = set"; then 15858if test "${rxvt_cv_func_setlocale+set}" = set; then
9088 echo $ac_n "(cached) $ac_c" 1>&6 15859 echo $ECHO_N "(cached) $ECHO_C" >&6
9089else 15860else
9090 cat > conftest.$ac_ext <<EOF 15861 cat >conftest.$ac_ext <<_ACEOF
9091#line 9092 "configure" 15862/* confdefs.h. */
9092#include "confdefs.h" 15863_ACEOF
15864cat confdefs.h >>conftest.$ac_ext
15865cat >>conftest.$ac_ext <<_ACEOF
15866/* end confdefs.h. */
9093#include <locale.h> 15867#include <clocale>
9094int main() { 15868int
15869main ()
15870{
9095setlocale(LC_CTYPE, ""); 15871setlocale(LC_CTYPE, "");
15872 ;
9096; return 0; } 15873 return 0;
9097EOF 15874}
9098if { (eval echo configure:9099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15875_ACEOF
15876rm -f conftest.$ac_objext conftest$ac_exeext
15877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15878 (eval $ac_link) 2>conftest.er1
15879 ac_status=$?
15880 grep -v '^ *+' conftest.er1 >conftest.err
9099 rm -rf conftest* 15881 rm -f conftest.er1
15882 cat conftest.err >&5
15883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884 (exit $ac_status); } &&
15885 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15887 (eval $ac_try) 2>&5
15888 ac_status=$?
15889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15890 (exit $ac_status); }; } &&
15891 { ac_try='test -s conftest$ac_exeext'
15892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15893 (eval $ac_try) 2>&5
15894 ac_status=$?
15895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896 (exit $ac_status); }; }; then
9100 rxvt_cv_func_setlocale=yes 15897 rxvt_cv_func_setlocale=yes
9101else 15898else
9102 echo "configure: failed program was:" >&5 15899 echo "$as_me: failed program was:" >&5
9103 cat conftest.$ac_ext >&5 15900sed 's/^/| /' conftest.$ac_ext >&5
9104 rm -rf conftest* 15901
9105 rxvt_cv_func_setlocale=no 15902rxvt_cv_func_setlocale=no
9106fi 15903fi
9107rm -f conftest* 15904rm -f conftest.err conftest.$ac_objext \
15905 conftest$ac_exeext conftest.$ac_ext
9108fi 15906fi
9109 15907echo "$as_me:$LINENO: result: $rxvt_cv_func_setlocale" >&5
9110echo "$ac_t""$rxvt_cv_func_setlocale" 1>&6 15908echo "${ECHO_T}$rxvt_cv_func_setlocale" >&6
9111if test x$rxvt_cv_func_setlocale = xyes; then 15909if test x$rxvt_cv_func_setlocale = xyes; then
15910
9112 cat >> confdefs.h <<\EOF 15911cat >>confdefs.h <<\_ACEOF
9113#define HAVE_SETLOCALE 1 15912#define HAVE_SETLOCALE 1
9114EOF 15913_ACEOF
9115 15914
9116fi 15915fi
9117 15916
15917echo "$as_me:$LINENO: checking for working nl_langinfo" >&5
9118echo $ac_n "checking for working nl_langinfo""... $ac_c" 1>&6 15918echo $ECHO_N "checking for working nl_langinfo... $ECHO_C" >&6
9119echo "configure:9120: checking for working nl_langinfo" >&5
9120if eval "test \"`echo '$''{'rxvt_cv_func_nl_langinfo'+set}'`\" = set"; then 15919if test "${rxvt_cv_func_nl_langinfo+set}" = set; then
9121 echo $ac_n "(cached) $ac_c" 1>&6 15920 echo $ECHO_N "(cached) $ECHO_C" >&6
9122else 15921else
9123 cat > conftest.$ac_ext <<EOF 15922 cat >conftest.$ac_ext <<_ACEOF
9124#line 9125 "configure" 15923/* confdefs.h. */
9125#include "confdefs.h" 15924_ACEOF
15925cat confdefs.h >>conftest.$ac_ext
15926cat >>conftest.$ac_ext <<_ACEOF
15927/* end confdefs.h. */
9126#include <langinfo.h> 15928#include <langinfo.h>
9127int main() { 15929int
15930main ()
15931{
9128nl_langinfo(CODESET); 15932nl_langinfo(CODESET);
15933 ;
9129; return 0; } 15934 return 0;
9130EOF 15935}
9131if { (eval echo configure:9132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15936_ACEOF
15937rm -f conftest.$ac_objext conftest$ac_exeext
15938if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15939 (eval $ac_link) 2>conftest.er1
15940 ac_status=$?
15941 grep -v '^ *+' conftest.er1 >conftest.err
9132 rm -rf conftest* 15942 rm -f conftest.er1
15943 cat conftest.err >&5
15944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945 (exit $ac_status); } &&
15946 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15948 (eval $ac_try) 2>&5
15949 ac_status=$?
15950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951 (exit $ac_status); }; } &&
15952 { ac_try='test -s conftest$ac_exeext'
15953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15954 (eval $ac_try) 2>&5
15955 ac_status=$?
15956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957 (exit $ac_status); }; }; then
9133 rxvt_cv_func_nl_langinfo=yes 15958 rxvt_cv_func_nl_langinfo=yes
9134else 15959else
9135 echo "configure: failed program was:" >&5 15960 echo "$as_me: failed program was:" >&5
9136 cat conftest.$ac_ext >&5 15961sed 's/^/| /' conftest.$ac_ext >&5
9137 rm -rf conftest* 15962
9138 rxvt_cv_func_nl_langinfo=no 15963rxvt_cv_func_nl_langinfo=no
9139fi 15964fi
9140rm -f conftest* 15965rm -f conftest.err conftest.$ac_objext \
15966 conftest$ac_exeext conftest.$ac_ext
9141fi 15967fi
9142 15968echo "$as_me:$LINENO: result: $rxvt_cv_func_nl_langinfo" >&5
9143echo "$ac_t""$rxvt_cv_func_nl_langinfo" 1>&6 15969echo "${ECHO_T}$rxvt_cv_func_nl_langinfo" >&6
9144if test x$rxvt_cv_func_nl_langinfo = xyes; then 15970if test x$rxvt_cv_func_nl_langinfo = xyes; then
15971
9145 cat >> confdefs.h <<\EOF 15972cat >>confdefs.h <<\_ACEOF
9146#define HAVE_NL_LANGINFO 1 15973#define HAVE_NL_LANGINFO 1
9147EOF 15974_ACEOF
9148 15975
9149fi 15976fi
9150 15977
15978echo "$as_me:$LINENO: checking for getpt" >&5
9151echo $ac_n "checking for getpt""... $ac_c" 1>&6 15979echo $ECHO_N "checking for getpt... $ECHO_C" >&6
9152echo "configure:9153: checking for getpt" >&5
9153if eval "test \"`echo '$''{'rxvt_cv_func_getpt'+set}'`\" = set"; then 15980if test "${rxvt_cv_func_getpt+set}" = set; then
9154 echo $ac_n "(cached) $ac_c" 1>&6 15981 echo $ECHO_N "(cached) $ECHO_C" >&6
9155else 15982else
9156 cat > conftest.$ac_ext <<EOF 15983 cat >conftest.$ac_ext <<_ACEOF
9157#line 9158 "configure" 15984/* confdefs.h. */
9158#include "confdefs.h" 15985_ACEOF
15986cat confdefs.h >>conftest.$ac_ext
15987cat >>conftest.$ac_ext <<_ACEOF
15988/* end confdefs.h. */
9159#define _GNU_SOURCE 15989#define _GNU_SOURCE
9160#ifdef HAVE_STDLIB_H 15990#ifdef HAVE_STDLIB_H
9161# include <stdlib.h> 15991# include <cstdlib>
9162#endif 15992#endif
9163int main() { 15993int
15994main ()
15995{
9164(void)getpt(); 15996(void)getpt();
15997 ;
9165; return 0; } 15998 return 0;
9166EOF 15999}
9167if { (eval echo configure:9168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 16000_ACEOF
16001rm -f conftest.$ac_objext conftest$ac_exeext
16002if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16003 (eval $ac_link) 2>conftest.er1
16004 ac_status=$?
16005 grep -v '^ *+' conftest.er1 >conftest.err
9168 rm -rf conftest* 16006 rm -f conftest.er1
16007 cat conftest.err >&5
16008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009 (exit $ac_status); } &&
16010 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16012 (eval $ac_try) 2>&5
16013 ac_status=$?
16014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16015 (exit $ac_status); }; } &&
16016 { ac_try='test -s conftest$ac_exeext'
16017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16018 (eval $ac_try) 2>&5
16019 ac_status=$?
16020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16021 (exit $ac_status); }; }; then
9169 rxvt_cv_func_getpt=yes 16022 rxvt_cv_func_getpt=yes
9170else 16023else
9171 echo "configure: failed program was:" >&5 16024 echo "$as_me: failed program was:" >&5
9172 cat conftest.$ac_ext >&5 16025sed 's/^/| /' conftest.$ac_ext >&5
9173 rm -rf conftest* 16026
9174 rxvt_cv_func_getpt=no 16027rxvt_cv_func_getpt=no
9175fi 16028fi
9176rm -f conftest* 16029rm -f conftest.err conftest.$ac_objext \
16030 conftest$ac_exeext conftest.$ac_ext
9177fi 16031fi
9178 16032echo "$as_me:$LINENO: result: $rxvt_cv_func_getpt" >&5
9179echo "$ac_t""$rxvt_cv_func_getpt" 1>&6 16033echo "${ECHO_T}$rxvt_cv_func_getpt" >&6
9180if test x$rxvt_cv_func_getpt = xyes; then 16034if test x$rxvt_cv_func_getpt = xyes; then
16035
9181 cat >> confdefs.h <<\EOF 16036cat >>confdefs.h <<\_ACEOF
9182#define HAVE_GETPT 1 16037#define HAVE_GETPT 1
9183EOF 16038_ACEOF
9184 16039
9185fi 16040fi
9186 16041
16042echo "$as_me:$LINENO: checking for pty/tty type" >&5
9187echo $ac_n "checking for pty/tty type""... $ac_c" 1>&6 16043echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6
9188echo "configure:9189: checking for pty/tty type" >&5
9189if eval "test \"`echo '$''{'rxvt_cv_ptys'+set}'`\" = set"; then 16044if test "${rxvt_cv_ptys+set}" = set; then
9190 echo $ac_n "(cached) $ac_c" 1>&6 16045 echo $ECHO_N "(cached) $ECHO_C" >&6
9191else 16046else
9192 if test x$ac_cv_func_openpty = xyes; then 16047 if test x$ac_cv_func_openpty = xyes; then
9193 rxvt_cv_ptys=OPENPTY 16048 rxvt_cv_ptys=OPENPTY
9194 else if test x$ac_cv_func__getpty = xyes; then 16049 else if test x$ac_cv_func__getpty = xyes; then
9195 rxvt_cv_ptys=SGI4 16050 rxvt_cv_ptys=SGI4
9218fi 16073fi
9219fi 16074fi
9220fi 16075fi
9221 16076
9222fi 16077fi
9223 16078echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5
9224echo "$ac_t""$rxvt_cv_ptys" 1>&6 16079echo "${ECHO_T}$rxvt_cv_ptys" >&6
9225 16080
9226if test x$rxvt_cv_ptys = xOPENPTY; then 16081if test x$rxvt_cv_ptys = xOPENPTY; then
16082
9227 cat >> confdefs.h <<\EOF 16083cat >>confdefs.h <<\_ACEOF
9228#define PTYS_ARE_OPENPTY 1 16084#define PTYS_ARE_OPENPTY 1
9229EOF 16085_ACEOF
9230 16086
9231fi 16087fi
9232if test x$rxvt_cv_ptys = xSCO; then 16088if test x$rxvt_cv_ptys = xSCO; then
16089
9233 cat >> confdefs.h <<\EOF 16090cat >>confdefs.h <<\_ACEOF
9234#define PTYS_ARE_NUMERIC 1 16091#define PTYS_ARE_NUMERIC 1
9235EOF 16092_ACEOF
9236 16093
9237fi 16094fi
9238if test x$rxvt_cv_ptys = xSTREAMS; then 16095if test x$rxvt_cv_ptys = xSTREAMS; then
16096
9239 cat >> confdefs.h <<\EOF 16097cat >>confdefs.h <<\_ACEOF
9240#define PTYS_ARE_PTMX 1 16098#define PTYS_ARE_PTMX 1
9241EOF 16099_ACEOF
9242 16100
9243fi 16101fi
9244if test x$rxvt_cv_ptys = xPTC; then 16102if test x$rxvt_cv_ptys = xPTC; then
16103
9245 cat >> confdefs.h <<\EOF 16104cat >>confdefs.h <<\_ACEOF
9246#define PTYS_ARE_PTC 1 16105#define PTYS_ARE_PTC 1
9247EOF 16106_ACEOF
9248 16107
9249fi 16108fi
9250if test x$rxvt_cv_ptys = xSGI4; then 16109if test x$rxvt_cv_ptys = xSGI4; then
16110
9251 cat >> confdefs.h <<\EOF 16111cat >>confdefs.h <<\_ACEOF
9252#define PTYS_ARE__GETPTY 1 16112#define PTYS_ARE__GETPTY 1
9253EOF 16113_ACEOF
9254 16114
9255fi 16115fi
9256if test x$rxvt_cv_ptys = xCONVEX; then 16116if test x$rxvt_cv_ptys = xCONVEX; then
16117
9257 cat >> confdefs.h <<\EOF 16118cat >>confdefs.h <<\_ACEOF
9258#define PTYS_ARE_GETPTY 1 16119#define PTYS_ARE_GETPTY 1
9259EOF 16120_ACEOF
9260 16121
9261fi 16122fi
9262if test x$rxvt_cv_ptys = xGLIBC; then 16123if test x$rxvt_cv_ptys = xGLIBC; then
16124
9263 cat >> confdefs.h <<\EOF 16125cat >>confdefs.h <<\_ACEOF
9264#define PTYS_ARE_GETPT 1 16126#define PTYS_ARE_GETPT 1
9265EOF 16127_ACEOF
9266 16128
9267fi 16129fi
9268if test x$rxvt_cv_ptys = xHPUX; then 16130if test x$rxvt_cv_ptys = xHPUX; then
16131
9269 cat >> confdefs.h <<\EOF 16132cat >>confdefs.h <<\_ACEOF
9270#define PTYS_ARE_CLONE 1 16133#define PTYS_ARE_CLONE 1
9271EOF 16134_ACEOF
9272 16135
9273fi 16136fi
9274if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xGLIBC; then 16137if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xGLIBC; then
16138
9275 cat >> confdefs.h <<\EOF 16139cat >>confdefs.h <<\_ACEOF
9276#define PTYS_ARE_SEARCHED 1 16140#define PTYS_ARE_SEARCHED 1
9277EOF 16141_ACEOF
9278 16142
9279fi 16143fi
9280 16144
9281 16145
16146{ echo "$as_me:$LINENO: checking for pty ranges..." >&5
9282echo "checking for pty ranges" 1>&6 16147echo "$as_me: checking for pty ranges..." >&6;}
9283echo "configure:9284: checking for pty ranges" >&5
9284ptys=`echo /dev/pty??` 16148ptys=`echo /dev/pty??`
9285pch1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'` 16149pch1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
9286pch2=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'` 16150pch2=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
9287if test x$pch1 != x; then 16151if test x$pch1 != x; then
16152
9288 cat >> confdefs.h <<EOF 16153cat >>confdefs.h <<_ACEOF
9289#define PTYCHAR1 "$pch1" 16154#define PTYCHAR1 "$pch1"
9290EOF 16155_ACEOF
9291 16156
9292fi 16157fi
9293if test x$pch2 != x; then 16158if test x$pch2 != x; then
16159
9294 cat >> confdefs.h <<EOF 16160cat >>confdefs.h <<_ACEOF
9295#define PTYCHAR2 "$pch2" 16161#define PTYCHAR2 "$pch2"
9296EOF 16162_ACEOF
9297 16163
9298fi 16164fi
9299 16165
16166echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
9300echo $ac_n "checking for setlocale in -lxpg4""... $ac_c" 1>&6 16167echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
9301echo "configure:9302: checking for setlocale in -lxpg4" >&5 16168if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
9302ac_lib_var=`echo xpg4'_'setlocale | sed 'y%./+-%__p_%'`
9303if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9304 echo $ac_n "(cached) $ac_c" 1>&6 16169 echo $ECHO_N "(cached) $ECHO_C" >&6
9305else 16170else
9306 ac_save_LIBS="$LIBS" 16171 ac_check_lib_save_LIBS=$LIBS
9307LIBS="-lxpg4 $LIBS" 16172LIBS="-lxpg4 $LIBS"
9308cat > conftest.$ac_ext <<EOF 16173cat >conftest.$ac_ext <<_ACEOF
9309#line 9310 "configure" 16174/* confdefs.h. */
9310#include "confdefs.h" 16175_ACEOF
16176cat confdefs.h >>conftest.$ac_ext
16177cat >>conftest.$ac_ext <<_ACEOF
16178/* end confdefs.h. */
16179
9311/* Override any gcc2 internal prototype to avoid an error. */ 16180/* Override any gcc2 internal prototype to avoid an error. */
16181#ifdef __cplusplus
16182extern "C"
16183#endif
9312/* We use char because int might match the return type of a gcc2 16184/* We use char because int might match the return type of a gcc2
9313 builtin and then its argument prototype would still apply. */ 16185 builtin and then its argument prototype would still apply. */
9314char setlocale(); 16186char setlocale ();
9315 16187int
9316int main() { 16188main ()
16189{
9317setlocale() 16190setlocale ();
16191 ;
9318; return 0; } 16192 return 0;
9319EOF 16193}
9320if { (eval echo configure:9321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 16194_ACEOF
16195rm -f conftest.$ac_objext conftest$ac_exeext
16196if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16197 (eval $ac_link) 2>conftest.er1
16198 ac_status=$?
16199 grep -v '^ *+' conftest.er1 >conftest.err
9321 rm -rf conftest* 16200 rm -f conftest.er1
9322 eval "ac_cv_lib_$ac_lib_var=yes" 16201 cat conftest.err >&5
16202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16203 (exit $ac_status); } &&
16204 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16206 (eval $ac_try) 2>&5
16207 ac_status=$?
16208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209 (exit $ac_status); }; } &&
16210 { ac_try='test -s conftest$ac_exeext'
16211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16212 (eval $ac_try) 2>&5
16213 ac_status=$?
16214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215 (exit $ac_status); }; }; then
16216 ac_cv_lib_xpg4_setlocale=yes
9323else 16217else
9324 echo "configure: failed program was:" >&5 16218 echo "$as_me: failed program was:" >&5
9325 cat conftest.$ac_ext >&5 16219sed 's/^/| /' conftest.$ac_ext >&5
9326 rm -rf conftest* 16220
9327 eval "ac_cv_lib_$ac_lib_var=no" 16221ac_cv_lib_xpg4_setlocale=no
9328fi 16222fi
9329rm -f conftest* 16223rm -f conftest.err conftest.$ac_objext \
16224 conftest$ac_exeext conftest.$ac_ext
9330LIBS="$ac_save_LIBS" 16225LIBS=$ac_check_lib_save_LIBS
9331
9332fi 16226fi
9333if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 16227echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
9334 echo "$ac_t""yes" 1>&6 16228echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
16229if test $ac_cv_lib_xpg4_setlocale = yes; then
9335 LIBS="$LIBS -lxpg4" 16230 LIBS="$LIBS -lxpg4"
9336else
9337 echo "$ac_t""no" 1>&6
9338fi 16231fi
9339 16232
9340 16233
9341if test x$support_graphics = xyes; then 16234if test x$support_tinting = xyes; then
16235
9342 cat >> confdefs.h <<\EOF 16236cat >>confdefs.h <<\_ACEOF
9343#define RXVT_GRAPHICS 1 16237#define TINTING 1
9344EOF 16238_ACEOF
9345 16239
9346fi 16240fi
9347if test x$support_inheritpixmap = xyes; then 16241if test x$support_inheritpixmap = xyes; then
16242
9348 cat >> confdefs.h <<\EOF 16243cat >>confdefs.h <<\_ACEOF
9349#define TRANSPARENT 1 16244#define TRANSPARENT 1
9350EOF 16245_ACEOF
9351 16246
9352fi 16247fi
9353if test x$support_keepscrolling = xno; then 16248if test x$support_keepscrolling = xno; then
16249
9354 cat >> confdefs.h <<\EOF 16250cat >>confdefs.h <<\_ACEOF
9355#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1 16251#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
9356EOF 16252_ACEOF
9357 16253
9358fi 16254fi
9359if test x$support_selectionscrolling = xyes; then 16255if test x$support_selectionscrolling = xyes; then
16256
9360 cat >> confdefs.h <<\EOF 16257cat >>confdefs.h <<\_ACEOF
9361#define SELECTION_SCROLLING 1 16258#define SELECTION_SCROLLING 1
9362EOF 16259_ACEOF
9363 16260
9364fi 16261fi
9365if test x$support_menubar = xyes; then 16262if test x$support_menubar = xyes; then
16263
9366 cat >> confdefs.h <<\EOF 16264cat >>confdefs.h <<\_ACEOF
9367#define MENUBAR 1 16265#define MENUBAR 1
9368EOF 16266_ACEOF
9369 16267
9370fi 16268fi
9371if test x$support_frills = xno; then 16269if test x$support_frills = xno; then
16270
9372 cat >> confdefs.h <<\EOF 16271cat >>confdefs.h <<\_ACEOF
9373#define NO_FRILLS 1 16272#define NO_FRILLS 1
9374EOF 16273_ACEOF
9375 16274
9376fi 16275fi
9377if test x$support_linespace = xno; then 16276if test x$support_linespace = xno; then
16277
9378 cat >> confdefs.h <<\EOF 16278cat >>confdefs.h <<\_ACEOF
9379#define NO_LINESPACE 1 16279#define NO_LINESPACE 1
9380EOF 16280_ACEOF
9381 16281
9382fi 16282fi
9383if test x$support_24bit = xyes; then 16283if test x$support_24bit = xyes; then
16284
9384 cat >> confdefs.h <<\EOF 16285cat >>confdefs.h <<\_ACEOF
9385#define PREFER_24BIT 1 16286#define PREFER_24BIT 1
9386EOF 16287_ACEOF
9387 16288
9388fi 16289fi
9389if test x$support_mousewheel = xyes; then 16290if test x$support_mousewheel = xyes; then
16291
9390 cat >> confdefs.h <<\EOF 16292cat >>confdefs.h <<\_ACEOF
9391#define MOUSE_WHEEL 1 16293#define MOUSE_WHEEL 1
9392EOF 16294_ACEOF
9393 16295
9394fi 16296fi
9395if test x$support_mouseslipwheel = xyes; then 16297if test x$support_mouseslipwheel = xyes; then
16298
9396 cat >> confdefs.h <<\EOF 16299cat >>confdefs.h <<\_ACEOF
9397#define MOUSE_SLIP_WHEELING 1 16300#define MOUSE_SLIP_WHEELING 1
9398EOF 16301_ACEOF
9399
9400fi
9401if test x$support_oldselection = xno; then
9402 cat >> confdefs.h <<\EOF
9403#define NO_OLD_SELECTION 1
9404EOF
9405 16302
9406fi 16303fi
9407if test x$support_utmp = xyes; then 16304if test x$support_utmp = xyes; then
16305
9408 cat >> confdefs.h <<\EOF 16306cat >>confdefs.h <<\_ACEOF
9409#define UTMP_SUPPORT 1 16307#define UTMP_SUPPORT 1
9410EOF 16308_ACEOF
9411 16309
9412fi 16310fi
9413if test x$support_wtmp = xyes; then 16311if test x$support_wtmp = xyes; then
16312
9414 cat >> confdefs.h <<\EOF 16313cat >>confdefs.h <<\_ACEOF
9415#define WTMP_SUPPORT 1 16314#define WTMP_SUPPORT 1
9416EOF 16315_ACEOF
9417 16316
9418fi 16317fi
9419if test x$support_lastlog = xyes; then 16318if test x$support_lastlog = xyes; then
16319
9420 cat >> confdefs.h <<\EOF 16320cat >>confdefs.h <<\_ACEOF
9421#define LASTLOG_SUPPORT 1 16321#define LASTLOG_SUPPORT 1
9422EOF 16322_ACEOF
9423 16323
9424fi 16324fi
9425if test x$support_xim = xyes -o x$multichar_set = xyes; then 16325if test x$support_xim = xyes -o x$multichar_set = xyes; then
9426 if test x$rxvt_cv_func_xlocale = xyes; then 16326 if test x$rxvt_cv_func_xlocale = xyes; then
16327
9427 cat >> confdefs.h <<\EOF 16328cat >>confdefs.h <<\_ACEOF
9428#define USE_XIM 1 16329#define USE_XIM 1
9429EOF 16330_ACEOF
9430 16331
9431 fi 16332 fi
9432fi 16333fi
9433if test x$support_xpm = xyes; then 16334if test x$support_xpm = xyes; then
16335
9434 cat >> confdefs.h <<\EOF 16336cat >>confdefs.h <<\_ACEOF
9435#define XPM_BACKGROUND 1 16337#define XPM_BACKGROUND 1
9436EOF 16338_ACEOF
9437 16339
9438fi 16340fi
9439if test x$support_scroll_rxvt = xyes; then 16341if test x$support_scroll_rxvt = xyes; then
16342
9440 cat >> confdefs.h <<\EOF 16343cat >>confdefs.h <<\_ACEOF
9441#define RXVT_SCROLLBAR 1 16344#define RXVT_SCROLLBAR 1
9442EOF 16345_ACEOF
9443 16346
9444 scrolltypes="rxvt" 16347 scrolltypes="rxvt"
9445fi 16348fi
9446if test x$support_scroll_next = xyes; then 16349if test x$support_scroll_next = xyes; then
16350
9447 cat >> confdefs.h <<\EOF 16351cat >>confdefs.h <<\_ACEOF
9448#define NEXT_SCROLLBAR 1 16352#define NEXT_SCROLLBAR 1
9449EOF 16353_ACEOF
9450 16354
9451 scrolltypes="$scrolltypes next" 16355 scrolltypes="$scrolltypes next"
9452fi 16356fi
9453if test x$support_scroll_xterm = xyes; then 16357if test x$support_scroll_xterm = xyes; then
16358
9454 cat >> confdefs.h <<\EOF 16359cat >>confdefs.h <<\_ACEOF
9455#define XTERM_SCROLLBAR 1 16360#define XTERM_SCROLLBAR 1
9456EOF 16361_ACEOF
9457 16362
9458 scrolltypes="$scrolltypes xterm" 16363 scrolltypes="$scrolltypes xterm"
9459fi 16364fi
16365if test x$support_scroll_plain = xyes; then
16366
16367cat >>confdefs.h <<\_ACEOF
16368#define PLAIN_SCROLLBAR 1
16369_ACEOF
16370
16371 scrolltypes="$scrolltypes plain"
16372fi
9460if test x$support_pointer_blank = xyes; then 16373if test x$support_pointer_blank = xyes; then
16374
9461 cat >> confdefs.h <<\EOF 16375cat >>confdefs.h <<\_ACEOF
9462#define POINTER_BLANK 1 16376#define POINTER_BLANK 1
9463EOF 16377_ACEOF
9464 16378
9465fi 16379fi
9466if test x$support_cursor_blink = xyes; then 16380if test x$support_cursor_blink = xyes; then
16381
9467 cat >> confdefs.h <<\EOF 16382cat >>confdefs.h <<\_ACEOF
9468#define CURSOR_BLINK 1 16383#define CURSOR_BLINK 1
9469EOF 16384_ACEOF
16385
16386fi
16387if test x$support_text_blink = xyes; then
16388
16389cat >>confdefs.h <<\_ACEOF
16390#define TEXT_BLINK 1
16391_ACEOF
9470 16392
9471fi 16393fi
9472if test x$support_unicode3 = xyes; then 16394if test x$support_unicode3 = xyes; then
16395
9473 cat >> confdefs.h <<\EOF 16396cat >>confdefs.h <<\_ACEOF
9474#define UNICODE_3 1 16397#define UNICODE_3 1
9475EOF 16398_ACEOF
16399
16400fi
16401if test x$support_combining = xyes; then
16402
16403cat >>confdefs.h <<\_ACEOF
16404#define ENABLE_COMBINING 1
16405_ACEOF
9476 16406
9477fi 16407fi
9478if test x$codesets = xall; then 16408if test x$codesets = xall; then
9479 codesets=jp,jp-ext,kr,cn,cn-ext,vn 16409 codesets=jp,jp-ext,kr,cn,cn-ext
9480fi 16410fi
9481for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do 16411for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
16412
9482 cat >> confdefs.h <<\EOF 16413cat >>confdefs.h <<\_ACEOF
9483#define ENCODING_EU 1 16414#define ENCODING_EU 1
9484EOF 16415_ACEOF
16416
16417
16418cat >>confdefs.h <<\_ACEOF
16419#define ENCODING_VN 1
16420_ACEOF
9485 16421
9486 case "$codeset" in 16422 case "$codeset" in
9487 VN ) cat >> confdefs.h <<\EOF 16423 JP )
16424cat >>confdefs.h <<\_ACEOF
9488#define ENCODING_VN 1 16425#define ENCODING_JP 1
9489EOF 16426_ACEOF
9490 ;; 16427 ;;
9491 JP ) cat >> confdefs.h <<\EOF 16428 JP_EXT )
16429cat >>confdefs.h <<\_ACEOF
9492#define ENCODING_JP 1 16430#define ENCODING_JP_EXT 1
9493EOF 16431_ACEOF
9494 ;; 16432 ;;
9495 JP_EXT ) cat >> confdefs.h <<\EOF 16433 KR )
16434cat >>confdefs.h <<\_ACEOF
9496#define ENCODING_JP_EXT 1 16435#define ENCODING_KR 1
9497EOF 16436_ACEOF
9498 ;; 16437 ;;
9499 KR ) cat >> confdefs.h <<\EOF 16438 CN )
16439cat >>confdefs.h <<\_ACEOF
9500#define ENCODING_KR 1 16440#define ENCODING_CN 1
9501EOF 16441_ACEOF
9502 ;; 16442 ;;
9503 CN ) cat >> confdefs.h <<\EOF 16443 CN_EXT )
9504#define ENCODING_CN 1 16444cat >>confdefs.h <<\_ACEOF
9505EOF
9506 ;;
9507 CN_EXT ) cat >> confdefs.h <<\EOF
9508#define ENCODING_CN_EXT 1 16445#define ENCODING_CN_EXT 1
9509EOF 16446_ACEOF
9510 ;; 16447 ;;
9511 esac 16448 esac
9512done 16449done
9513 16450
9514 16451
9534 16471
9535 16472
9536 16473
9537 16474
9538if test x$support_addstrings = xno; then 16475if test x$support_addstrings = xno; then
16476
9539 cat >> confdefs.h <<\EOF 16477cat >>confdefs.h <<\_ACEOF
9540#define NO_STRINGS 1 16478#define NO_STRINGS 1
9541EOF 16479_ACEOF
9542 16480
9543fi 16481fi
9544 16482
9545MCOMMON=./autoconf/Make.common 16483MCOMMON=./autoconf/Make.common
9546 16484
9547 16485
9548if test "$program_transform_name" = s,x,x,; then
9549 program_transform_name=
9550else
9551 # Double any \ or $. echo might interpret backslashes.
9552 cat <<\EOF_SED > conftestsed
9553s,\\,\\\\,g; s,\$,$$,g
9554EOF_SED
9555 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
9556 rm -f conftestsed
9557fi
9558test "$program_prefix" != NONE && 16486test "$program_prefix" != NONE &&
9559 program_transform_name="s,^,${program_prefix},; $program_transform_name" 16487 program_transform_name="s,^,$program_prefix,;$program_transform_name"
9560# Use a double $ so make ignores it. 16488# Use a double $ so make ignores it.
9561test "$program_suffix" != NONE && 16489test "$program_suffix" != NONE &&
9562 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" 16490 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
9563 16491# Double any \ or $. echo might interpret backslashes.
9564# sed with no file args requires a program. 16492# By default was `s,x,x', remove it if useless.
9565test "$program_transform_name" = "" && program_transform_name="s,x,x," 16493cat <<\_ACEOF >conftest.sed
9566 16494s/[\\$]/&&/g;s/;s,x,x,$//
9567 16495_ACEOF
9568RXVTNAME=`echo rxvt|sed "$program_transform_name"` 16496program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
16497rm conftest.sed
9569 16498
9570 16499
9571 16500
9572 16501
9573 16502
9574if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then 16503if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
9575 include_stdint_h="#include <stdint.h>" 16504 include_stdint_h="#include <stdint.h>"
9576else 16505else
9577 include_stdint_h="/* #include <stdint.h> */" 16506 include_stdint_h="/* #include <stdint.h> */"
9578fi 16507fi
9579if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then 16508if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
9580 include_stdarg_h="#include <stdarg.h>" 16509 include_stdarg_h="#include <cstdarg>"
9581else 16510else
9582 include_stdarg_h="/* #include <stdarg.h> */" 16511 include_stdarg_h="/* #include <cstdarg> */"
9583fi 16512fi
9584if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then 16513if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
9585 include_stdlib_h="#include <stdlib.h>" 16514 include_stdlib_h="#include <cstdlib>"
9586else 16515else
9587 include_stdlib_h="/* #include <stdlib.h> */" 16516 include_stdlib_h="/* #include <cstdlib> */"
9588fi 16517fi
9589if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then 16518if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
9590 include_unistd_h="#include <unistd.h>" 16519 include_unistd_h="#include <unistd.h>"
9591else 16520else
9592 include_unistd_h="/* #include <unistd.h> */" 16521 include_unistd_h="/* #include <unistd.h> */"
9593fi 16522fi
9594if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then 16523if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
9595 include_string_h="#include <string.h>" 16524 include_string_h="#include <cstring>"
9596else 16525else
9597 include_string_h="/* #include <string.h> */" 16526 include_string_h="/* #include <cstring> */"
9598fi 16527fi
9599if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then 16528if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
9600 include_fcntl_h="#include <fcntl.h>" 16529 include_fcntl_h="#include <fcntl.h>"
9601else 16530else
9602 include_fcntl_h="/* #include <fcntl.h> */" 16531 include_fcntl_h="/* #include <fcntl.h> */"
9603fi 16532fi
9604if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then 16533if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
9605 include_util_h="#include <util.h>" 16534 include_util_h="#include <util.h>"
9606else 16535else
9607 include_util_h="/* #include <util.h> */" 16536 include_util_h="/* #include <util.h> */"
9608fi 16537fi
9609if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then 16538if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
9610 include_assert_h="#include <assert.h>" 16539 include_assert_h="#include <assert.h>"
9611else 16540else
9612 include_assert_h="/* #include <assert.h> */" 16541 include_assert_h="/* #include <assert.h> */"
9613fi 16542fi
9614if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then 16543if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
9615 include_sys_ioctl_h="#include <sys/ioctl.h>" 16544 include_sys_ioctl_h="#include <sys/ioctl.h>"
9616else 16545else
9617 include_sys_ioctl_h="/* #include <sys/ioctl.h> */" 16546 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
9618fi 16547fi
9619if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then 16548if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
9620 include_sys_select_h="#include <sys/select.h>" 16549 include_sys_select_h="#include <sys/select.h>"
9621else 16550else
9622 include_sys_select_h="/* #include <sys/select.h> */" 16551 include_sys_select_h="/* #include <sys/select.h> */"
9623fi 16552fi
9624if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then 16553if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
9625 include_sys_strredir_h="#include <sys/strredir.h>" 16554 include_sys_strredir_h="#include <sys/strredir.h>"
9626else 16555else
9627 include_sys_strredir_h="/* #include <sys/strredir.h> */" 16556 include_sys_strredir_h="/* #include <sys/strredir.h> */"
9628fi 16557fi
9629if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then 16558if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
9630 include_sys_time_h="#include <sys/time.h>" 16559 include_sys_time_h="#include <sys/time.h>"
9631else 16560else
9632 include_sys_time_h="/* #include <sys/time.h> */" 16561 include_sys_time_h="/* #include <sys/time.h> */"
9633fi 16562fi
9634if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then 16563if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
9635 include_time_h="#include <time.h>" 16564 include_time_h="#include <time.h>"
9636else 16565else
9637 include_time_h="/* #include <time.h> */" 16566 include_time_h="/* #include <time.h> */"
9638fi 16567fi
9639 16568
9640if test x$support_xft = xyes; then 16569if test x$support_xft = xyes; then
9641 LIBS="$LIBS `pkg-config xft --libs`" 16570 LIBS="$LIBS `pkg-config xft --libs`"
9642 CFLAGS="$CFLAGS `pkg-config xft --cflags`" 16571 CFLAGS="$CFLAGS `pkg-config xft --cflags`"
9643 CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`" 16572 CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`"
9644 16573
16574
9645 for ac_hdr in X11/Xft/Xft.h 16575for ac_header in X11/Xft/Xft.h
9646do 16576do
9647ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 16577as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16578if eval "test \"\${$as_ac_Header+set}\" = set"; then
16579 echo "$as_me:$LINENO: checking for $ac_header" >&5
9648echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 16580echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9649echo "configure:9650: checking for $ac_hdr" >&5 16581if eval "test \"\${$as_ac_Header+set}\" = set"; then
9650if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9651 echo $ac_n "(cached) $ac_c" 1>&6 16582 echo $ECHO_N "(cached) $ECHO_C" >&6
16583fi
16584echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16585echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9652else 16586else
16587 # Is the header compilable?
16588echo "$as_me:$LINENO: checking $ac_header usability" >&5
16589echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9653 cat > conftest.$ac_ext <<EOF 16590cat >conftest.$ac_ext <<_ACEOF
9654#line 9655 "configure" 16591/* confdefs.h. */
9655#include "confdefs.h" 16592_ACEOF
16593cat confdefs.h >>conftest.$ac_ext
16594cat >>conftest.$ac_ext <<_ACEOF
16595/* end confdefs.h. */
16596$ac_includes_default
9656#include <$ac_hdr> 16597#include <$ac_header>
9657EOF 16598_ACEOF
9658ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 16599rm -f conftest.$ac_objext
9659{ (eval echo configure:9660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 16600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9660ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 16601 (eval $ac_compile) 2>conftest.er1
16602 ac_status=$?
16603 grep -v '^ *+' conftest.er1 >conftest.err
16604 rm -f conftest.er1
16605 cat conftest.err >&5
16606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607 (exit $ac_status); } &&
16608 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16610 (eval $ac_try) 2>&5
16611 ac_status=$?
16612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16613 (exit $ac_status); }; } &&
16614 { ac_try='test -s conftest.$ac_objext'
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_header_compiler=yes
16621else
16622 echo "$as_me: failed program was:" >&5
16623sed 's/^/| /' conftest.$ac_ext >&5
16624
16625ac_header_compiler=no
16626fi
16627rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16628echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16629echo "${ECHO_T}$ac_header_compiler" >&6
16630
16631# Is the header present?
16632echo "$as_me:$LINENO: checking $ac_header presence" >&5
16633echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16634cat >conftest.$ac_ext <<_ACEOF
16635/* confdefs.h. */
16636_ACEOF
16637cat confdefs.h >>conftest.$ac_ext
16638cat >>conftest.$ac_ext <<_ACEOF
16639/* end confdefs.h. */
16640#include <$ac_header>
16641_ACEOF
16642if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16643 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16644 ac_status=$?
16645 grep -v '^ *+' conftest.er1 >conftest.err
16646 rm -f conftest.er1
16647 cat conftest.err >&5
16648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16649 (exit $ac_status); } >/dev/null; then
16650 if test -s conftest.err; then
16651 ac_cpp_err=$ac_cxx_preproc_warn_flag
16652 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16653 else
16654 ac_cpp_err=
16655 fi
16656else
16657 ac_cpp_err=yes
16658fi
9661if test -z "$ac_err"; then 16659if test -z "$ac_cpp_err"; then
9662 rm -rf conftest* 16660 ac_header_preproc=yes
9663 eval "ac_cv_header_$ac_safe=yes"
9664else 16661else
9665 echo "$ac_err" >&5
9666 echo "configure: failed program was:" >&5 16662 echo "$as_me: failed program was:" >&5
9667 cat conftest.$ac_ext >&5 16663sed 's/^/| /' conftest.$ac_ext >&5
9668 rm -rf conftest* 16664
9669 eval "ac_cv_header_$ac_safe=no" 16665 ac_header_preproc=no
9670fi 16666fi
9671rm -f conftest* 16667rm -f conftest.err conftest.$ac_ext
16668echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16669echo "${ECHO_T}$ac_header_preproc" >&6
16670
16671# So? What about this header?
16672case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
16673 yes:no: )
16674 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16675echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16676 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16677echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16678 ac_header_preproc=yes
16679 ;;
16680 no:yes:* )
16681 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16682echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16683 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16684echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16685 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16686echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16687 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16688echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16689 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16690echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16691 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16692echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16693 (
16694 cat <<\_ASBOX
16695## ------------------------------------------ ##
16696## Report this to the AC_PACKAGE_NAME lists. ##
16697## ------------------------------------------ ##
16698_ASBOX
16699 ) |
16700 sed "s/^/$as_me: WARNING: /" >&2
16701 ;;
16702esac
16703echo "$as_me:$LINENO: checking for $ac_header" >&5
16704echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16705if eval "test \"\${$as_ac_Header+set}\" = set"; then
16706 echo $ECHO_N "(cached) $ECHO_C" >&6
16707else
16708 eval "$as_ac_Header=\$ac_header_preproc"
9672fi 16709fi
9673if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 16710echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9674 echo "$ac_t""yes" 1>&6 16711echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9675 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 16712
16713fi
16714if test `eval echo '${'$as_ac_Header'}'` = yes; then
9676 cat >> confdefs.h <<EOF 16715 cat >>confdefs.h <<_ACEOF
9677#define $ac_tr_hdr 1 16716#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9678EOF 16717_ACEOF
9679 16718
9680else 16719else
9681 echo "$ac_t""no" 1>&6
9682support_xft=no 16720 support_xft=no
9683fi 16721fi
16722
9684done 16723done
9685 16724
16725
16726echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5
9686 echo $ac_n "checking for XftDrawString32 in -lXft""... $ac_c" 1>&6 16727echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6
9687echo "configure:9688: checking for XftDrawString32 in -lXft" >&5 16728if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then
9688ac_lib_var=`echo Xft'_'XftDrawString32 | sed 'y%./+-%__p_%'`
9689if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9690 echo $ac_n "(cached) $ac_c" 1>&6 16729 echo $ECHO_N "(cached) $ECHO_C" >&6
9691else 16730else
9692 ac_save_LIBS="$LIBS" 16731 ac_check_lib_save_LIBS=$LIBS
9693LIBS="-lXft $LIBS" 16732LIBS="-lXft $LIBS"
9694cat > conftest.$ac_ext <<EOF 16733cat >conftest.$ac_ext <<_ACEOF
9695#line 9696 "configure" 16734/* confdefs.h. */
9696#include "confdefs.h" 16735_ACEOF
16736cat confdefs.h >>conftest.$ac_ext
16737cat >>conftest.$ac_ext <<_ACEOF
16738/* end confdefs.h. */
16739
9697/* Override any gcc2 internal prototype to avoid an error. */ 16740/* Override any gcc2 internal prototype to avoid an error. */
16741#ifdef __cplusplus
16742extern "C"
16743#endif
9698/* We use char because int might match the return type of a gcc2 16744/* We use char because int might match the return type of a gcc2
9699 builtin and then its argument prototype would still apply. */ 16745 builtin and then its argument prototype would still apply. */
9700char XftDrawString32(); 16746char XftDrawString32 ();
9701 16747int
9702int main() { 16748main ()
16749{
9703XftDrawString32() 16750XftDrawString32 ();
16751 ;
9704; return 0; } 16752 return 0;
9705EOF 16753}
9706if { (eval echo configure:9707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 16754_ACEOF
16755rm -f conftest.$ac_objext conftest$ac_exeext
16756if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16757 (eval $ac_link) 2>conftest.er1
16758 ac_status=$?
16759 grep -v '^ *+' conftest.er1 >conftest.err
9707 rm -rf conftest* 16760 rm -f conftest.er1
9708 eval "ac_cv_lib_$ac_lib_var=yes" 16761 cat conftest.err >&5
16762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763 (exit $ac_status); } &&
16764 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16766 (eval $ac_try) 2>&5
16767 ac_status=$?
16768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769 (exit $ac_status); }; } &&
16770 { ac_try='test -s conftest$ac_exeext'
16771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16772 (eval $ac_try) 2>&5
16773 ac_status=$?
16774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775 (exit $ac_status); }; }; then
16776 ac_cv_lib_Xft_XftDrawString32=yes
9709else 16777else
9710 echo "configure: failed program was:" >&5 16778 echo "$as_me: failed program was:" >&5
9711 cat conftest.$ac_ext >&5 16779sed 's/^/| /' conftest.$ac_ext >&5
9712 rm -rf conftest* 16780
9713 eval "ac_cv_lib_$ac_lib_var=no" 16781ac_cv_lib_Xft_XftDrawString32=no
9714fi 16782fi
9715rm -f conftest* 16783rm -f conftest.err conftest.$ac_objext \
16784 conftest$ac_exeext conftest.$ac_ext
9716LIBS="$ac_save_LIBS" 16785LIBS=$ac_check_lib_save_LIBS
9717
9718fi 16786fi
9719if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 16787echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5
9720 echo "$ac_t""yes" 1>&6 16788echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6
9721 ac_tr_lib=HAVE_LIB`echo Xft | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 16789if test $ac_cv_lib_Xft_XftDrawString32 = yes; then
9722 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9723 cat >> confdefs.h <<EOF 16790 cat >>confdefs.h <<_ACEOF
9724#define $ac_tr_lib 1 16791#define HAVE_LIBXFT 1
9725EOF 16792_ACEOF
9726 16793
9727 LIBS="-lXft $LIBS" 16794 LIBS="-lXft $LIBS"
9728 16795
9729else 16796else
9730 echo "$ac_t""no" 1>&6
9731support_xft=no 16797 support_xft=no
9732fi 16798fi
9733 16799
16800
16801 if test x$support_xft = xyes; then
16802
9734 cat >> confdefs.h <<\EOF 16803cat >>confdefs.h <<\_ACEOF
9735#define XFT 1 16804#define XFT 1
9736EOF 16805_ACEOF
9737 16806
16807 fi
9738fi 16808fi
9739 16809
9740trap '' 1 2 15 16810 ac_config_files="$ac_config_files autoconf/Make.common Makefile doc/Makefile src/Makefile src/test/Makefile src/rxvtlib.h W11/Makefile"
9741cat > confcache <<\EOF 16811cat >confcache <<\_ACEOF
9742# This file is a shell script that caches the results of configure 16812# This file is a shell script that caches the results of configure
9743# tests run on this system so they can be shared between configure 16813# tests run on this system so they can be shared between configure
9744# scripts and configure runs. It is not useful on other systems. 16814# scripts and configure runs, see configure's option --config-cache.
9745# If it contains results you don't want to keep, you may remove or edit it. 16815# It is not useful on other systems. If it contains results you don't
16816# want to keep, you may remove or edit it.
9746# 16817#
9747# By default, configure uses ./config.cache as the cache file,
9748# creating it if it does not exist already. You can give configure
9749# the --cache-file=FILE option to use a different cache file; that is
9750# what configure does when it calls configure scripts in
9751# subdirectories, so they share the cache.
9752# Giving --cache-file=/dev/null disables caching, for debugging configure.
9753# config.status only pays attention to the cache file if you give it the 16818# config.status only pays attention to the cache file if you give it
9754# --recheck option to rerun configure. 16819# the --recheck option to rerun configure.
9755# 16820#
9756EOF 16821# `ac_cv_env_foo' variables (set or unset) will be overridden when
16822# loading this file, other *unset* `ac_cv_foo' will be assigned the
16823# following values.
16824
16825_ACEOF
16826
9757# The following way of writing the cache mishandles newlines in values, 16827# The following way of writing the cache mishandles newlines in values,
9758# but we know of no workaround that is simple, portable, and efficient. 16828# but we know of no workaround that is simple, portable, and efficient.
9759# So, don't put newlines in cache variables' values. 16829# So, don't put newlines in cache variables' values.
9760# Ultrix sh set writes to stderr and can't be redirected directly, 16830# Ultrix sh set writes to stderr and can't be redirected directly,
9761# and sets the high bit in the cache file unless we assign to the vars. 16831# and sets the high bit in the cache file unless we assign to the vars.
16832{
9762(set) 2>&1 | 16833 (set) 2>&1 |
9763 case `(ac_space=' '; set | grep ac_space) 2>&1` in 16834 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9764 *ac_space=\ *) 16835 *ac_space=\ *)
9765 # `set' does not quote correctly, so add quotes (double-quote substitution 16836 # `set' does not quote correctly, so add quotes (double-quote
9766 # turns \\\\ into \\, and sed turns \\ into \). 16837 # substitution turns \\\\ into \\, and sed turns \\ into \).
9767 sed -n \ 16838 sed -n \
9768 -e "s/'/'\\\\''/g" \ 16839 "s/'/'\\\\''/g;
9769 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 16840 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9770 ;; 16841 ;;
9771 *) 16842 *)
9772 # `set' quotes correctly as required by POSIX, so do not add quotes. 16843 # `set' quotes correctly as required by POSIX, so do not add quotes.
9773 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 16844 sed -n \
16845 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9774 ;; 16846 ;;
9775 esac >> confcache 16847 esac;
9776if cmp -s $cache_file confcache; then 16848} |
9777 : 16849 sed '
9778else 16850 t clear
16851 : clear
16852 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16853 t end
16854 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16855 : end' >>confcache
16856if diff $cache_file confcache >/dev/null 2>&1; then :; else
9779 if test -w $cache_file; then 16857 if test -w $cache_file; then
9780 echo "updating cache $cache_file" 16858 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9781 cat confcache > $cache_file 16859 cat confcache >$cache_file
9782 else 16860 else
9783 echo "not updating unwritable cache $cache_file" 16861 echo "not updating unwritable cache $cache_file"
9784 fi 16862 fi
9785fi 16863fi
9786rm -f confcache 16864rm -f confcache
9787 16865
9788trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9789
9790test "x$prefix" = xNONE && prefix=$ac_default_prefix 16866test "x$prefix" = xNONE && prefix=$ac_default_prefix
9791# Let make expand exec_prefix. 16867# Let make expand exec_prefix.
9792test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 16868test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9793 16869
9794# Any assignment to VPATH causes Sun make to only execute 16870# VPATH may cause trouble with some makes, so we remove $(srcdir),
9795# the first set of double-colon rules, so remove it if not needed. 16871# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9796# If there is a colon in the path, we need to keep it. 16872# trailing colons and then remove the whole line if VPATH becomes empty
16873# (actually we leave an empty line to preserve line numbers).
9797if test "x$srcdir" = x.; then 16874if test "x$srcdir" = x.; then
9798 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 16875 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16876s/:*\$(srcdir):*/:/;
16877s/:*\${srcdir}:*/:/;
16878s/:*@srcdir@:*/:/;
16879s/^\([^=]*=[ ]*\):*/\1/;
16880s/:*$//;
16881s/^[^=]*=[ ]*$//;
16882}'
9799fi 16883fi
9800
9801trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9802 16884
9803DEFS=-DHAVE_CONFIG_H 16885DEFS=-DHAVE_CONFIG_H
9804 16886
9805# Without the "./", some shells look in PATH for config.status. 16887ac_libobjs=
16888ac_ltlibobjs=
16889for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16890 # 1. Remove the extension, and $U if already installed.
16891 ac_i=`echo "$ac_i" |
16892 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16893 # 2. Add them.
16894 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16895 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16896done
16897LIBOBJS=$ac_libobjs
16898
16899LTLIBOBJS=$ac_ltlibobjs
16900
16901
16902
9806: ${CONFIG_STATUS=./config.status} 16903: ${CONFIG_STATUS=./config.status}
9807 16904ac_clean_files_save=$ac_clean_files
16905ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16906{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9808echo creating $CONFIG_STATUS 16907echo "$as_me: creating $CONFIG_STATUS" >&6;}
9809rm -f $CONFIG_STATUS
9810cat > $CONFIG_STATUS <<EOF 16908cat >$CONFIG_STATUS <<_ACEOF
9811#! /bin/sh 16909#! $SHELL
9812# Generated automatically by configure. 16910# Generated by $as_me.
9813# Run this file to recreate the current configuration. 16911# Run this file to recreate the current configuration.
9814# This directory was configured as follows,
9815# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9816#
9817# $0 $ac_configure_args
9818#
9819# Compiler output produced by configure, useful for debugging 16912# Compiler output produced by configure, useful for debugging
9820# configure, is in ./config.log if it exists. 16913# configure, is in config.log if it exists.
9821 16914
9822ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 16915debug=false
9823for ac_option 16916ac_cs_recheck=false
16917ac_cs_silent=false
16918SHELL=\${CONFIG_SHELL-$SHELL}
16919_ACEOF
16920
16921cat >>$CONFIG_STATUS <<\_ACEOF
16922## --------------------- ##
16923## M4sh Initialization. ##
16924## --------------------- ##
16925
16926# Be Bourne compatible
16927if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16928 emulate sh
16929 NULLCMD=:
16930 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16931 # is contrary to our usage. Disable this feature.
16932 alias -g '${1+"$@"}'='"$@"'
16933elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16934 set -o posix
16935fi
16936DUALCASE=1; export DUALCASE # for MKS sh
16937
16938# Support unset when possible.
16939if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16940 as_unset=unset
16941else
16942 as_unset=false
16943fi
16944
16945
16946# Work around bugs in pre-3.0 UWIN ksh.
16947$as_unset ENV MAIL MAILPATH
16948PS1='$ '
16949PS2='> '
16950PS4='+ '
16951
16952# NLS nuisances.
16953for as_var in \
16954 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16955 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16956 LC_TELEPHONE LC_TIME
9824do 16957do
16958 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16959 eval $as_var=C; export $as_var
16960 else
16961 $as_unset $as_var
16962 fi
16963done
16964
16965# Required to use basename.
16966if expr a : '\(a\)' >/dev/null 2>&1; then
16967 as_expr=expr
16968else
16969 as_expr=false
16970fi
16971
16972if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16973 as_basename=basename
16974else
16975 as_basename=false
16976fi
16977
16978
16979# Name of the executable.
16980as_me=`$as_basename "$0" ||
16981$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16982 X"$0" : 'X\(//\)$' \| \
16983 X"$0" : 'X\(/\)$' \| \
16984 . : '\(.\)' 2>/dev/null ||
16985echo X/"$0" |
16986 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16987 /^X\/\(\/\/\)$/{ s//\1/; q; }
16988 /^X\/\(\/\).*/{ s//\1/; q; }
16989 s/.*/./; q'`
16990
16991
16992# PATH needs CR, and LINENO needs CR and PATH.
16993# Avoid depending upon Character Ranges.
16994as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16995as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16996as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16997as_cr_digits='0123456789'
16998as_cr_alnum=$as_cr_Letters$as_cr_digits
16999
17000# The user is always right.
17001if test "${PATH_SEPARATOR+set}" != set; then
17002 echo "#! /bin/sh" >conf$$.sh
17003 echo "exit 0" >>conf$$.sh
17004 chmod +x conf$$.sh
17005 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17006 PATH_SEPARATOR=';'
17007 else
17008 PATH_SEPARATOR=:
17009 fi
17010 rm -f conf$$.sh
17011fi
17012
17013
17014 as_lineno_1=$LINENO
17015 as_lineno_2=$LINENO
17016 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17017 test "x$as_lineno_1" != "x$as_lineno_2" &&
17018 test "x$as_lineno_3" = "x$as_lineno_2" || {
17019 # Find who we are. Look in the path if we contain no path at all
17020 # relative or not.
17021 case $0 in
17022 *[\\/]* ) as_myself=$0 ;;
17023 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17024for as_dir in $PATH
17025do
17026 IFS=$as_save_IFS
17027 test -z "$as_dir" && as_dir=.
17028 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17029done
17030
17031 ;;
17032 esac
17033 # We did not find ourselves, most probably we were run as `sh COMMAND'
17034 # in which case we are not to be found in the path.
17035 if test "x$as_myself" = x; then
17036 as_myself=$0
17037 fi
17038 if test ! -f "$as_myself"; then
17039 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17040echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17041 { (exit 1); exit 1; }; }
17042 fi
17043 case $CONFIG_SHELL in
17044 '')
17045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17046for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17047do
17048 IFS=$as_save_IFS
17049 test -z "$as_dir" && as_dir=.
17050 for as_base in sh bash ksh sh5; do
17051 case $as_dir in
17052 /*)
17053 if ("$as_dir/$as_base" -c '
17054 as_lineno_1=$LINENO
17055 as_lineno_2=$LINENO
17056 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17057 test "x$as_lineno_1" != "x$as_lineno_2" &&
17058 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17059 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17060 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17061 CONFIG_SHELL=$as_dir/$as_base
17062 export CONFIG_SHELL
17063 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17064 fi;;
17065 esac
17066 done
17067done
17068;;
17069 esac
17070
17071 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17072 # uniformly replaced by the line number. The first 'sed' inserts a
17073 # line-number line before each line; the second 'sed' does the real
17074 # work. The second script uses 'N' to pair each line-number line
17075 # with the numbered line, and appends trailing '-' during
17076 # substitution so that $LINENO is not a special case at line end.
17077 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17078 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17079 sed '=' <$as_myself |
17080 sed '
17081 N
17082 s,$,-,
17083 : loop
17084 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17085 t loop
17086 s,-$,,
17087 s,^['$as_cr_digits']*\n,,
17088 ' >$as_me.lineno &&
17089 chmod +x $as_me.lineno ||
17090 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17091echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17092 { (exit 1); exit 1; }; }
17093
17094 # Don't try to exec as it changes $[0], causing all sort of problems
17095 # (the dirname of $[0] is not the place where we might find the
17096 # original and so on. Autoconf is especially sensible to this).
17097 . ./$as_me.lineno
17098 # Exit status is that of the last command.
17099 exit
17100}
17101
17102
17103case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17104 *c*,-n*) ECHO_N= ECHO_C='
17105' ECHO_T=' ' ;;
17106 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17107 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17108esac
17109
17110if expr a : '\(a\)' >/dev/null 2>&1; then
17111 as_expr=expr
17112else
17113 as_expr=false
17114fi
17115
17116rm -f conf$$ conf$$.exe conf$$.file
17117echo >conf$$.file
17118if ln -s conf$$.file conf$$ 2>/dev/null; then
17119 # We could just check for DJGPP; but this test a) works b) is more generic
17120 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17121 if test -f conf$$.exe; then
17122 # Don't use ln at all; we don't have any links
17123 as_ln_s='cp -p'
17124 else
17125 as_ln_s='ln -s'
17126 fi
17127elif ln conf$$.file conf$$ 2>/dev/null; then
17128 as_ln_s=ln
17129else
17130 as_ln_s='cp -p'
17131fi
17132rm -f conf$$ conf$$.exe conf$$.file
17133
17134if mkdir -p . 2>/dev/null; then
17135 as_mkdir_p=:
17136else
17137 test -d ./-p && rmdir ./-p
17138 as_mkdir_p=false
17139fi
17140
17141as_executable_p="test -f"
17142
17143# Sed expression to map a string onto a valid CPP name.
17144as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17145
17146# Sed expression to map a string onto a valid variable name.
17147as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17148
17149
17150# IFS
17151# We need space, tab and new line, in precisely that order.
17152as_nl='
17153'
17154IFS=" $as_nl"
17155
17156# CDPATH.
17157$as_unset CDPATH
17158
17159exec 6>&1
17160
17161# Open the log real soon, to keep \$[0] and so on meaningful, and to
17162# report actual input values of CONFIG_FILES etc. instead of their
17163# values after options handling. Logging --version etc. is OK.
17164exec 5>>config.log
17165{
17166 echo
17167 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17168## Running $as_me. ##
17169_ASBOX
17170} >&5
17171cat >&5 <<_CSEOF
17172
17173This file was extended by $as_me, which was
17174generated by GNU Autoconf 2.59. Invocation command line was
17175
17176 CONFIG_FILES = $CONFIG_FILES
17177 CONFIG_HEADERS = $CONFIG_HEADERS
17178 CONFIG_LINKS = $CONFIG_LINKS
17179 CONFIG_COMMANDS = $CONFIG_COMMANDS
17180 $ $0 $@
17181
17182_CSEOF
17183echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17184echo >&5
17185_ACEOF
17186
17187# Files that config.status was made for.
17188if test -n "$ac_config_files"; then
17189 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17190fi
17191
17192if test -n "$ac_config_headers"; then
17193 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17194fi
17195
17196if test -n "$ac_config_links"; then
17197 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17198fi
17199
17200if test -n "$ac_config_commands"; then
17201 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17202fi
17203
17204cat >>$CONFIG_STATUS <<\_ACEOF
17205
17206ac_cs_usage="\
17207\`$as_me' instantiates files from templates according to the
17208current configuration.
17209
17210Usage: $0 [OPTIONS] [FILE]...
17211
17212 -h, --help print this help, then exit
17213 -V, --version print version number, then exit
17214 -q, --quiet do not print progress messages
17215 -d, --debug don't remove temporary files
17216 --recheck update $as_me by reconfiguring in the same conditions
17217 --file=FILE[:TEMPLATE]
17218 instantiate the configuration file FILE
17219 --header=FILE[:TEMPLATE]
17220 instantiate the configuration header FILE
17221
17222Configuration files:
17223$config_files
17224
17225Configuration headers:
17226$config_headers
17227
17228Report bugs to <bug-autoconf@gnu.org>."
17229_ACEOF
17230
17231cat >>$CONFIG_STATUS <<_ACEOF
17232ac_cs_version="\\
17233config.status
17234configured by $0, generated by GNU Autoconf 2.59,
17235 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17236
17237Copyright (C) 2003 Free Software Foundation, Inc.
17238This config.status script is free software; the Free Software Foundation
17239gives unlimited permission to copy, distribute and modify it."
17240srcdir=$srcdir
17241INSTALL="$INSTALL"
17242_ACEOF
17243
17244cat >>$CONFIG_STATUS <<\_ACEOF
17245# If no file are specified by the user, then we need to provide default
17246# value. By we need to know if files were specified by the user.
17247ac_need_defaults=:
17248while test $# != 0
17249do
17250 case $1 in
17251 --*=*)
17252 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17253 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17254 ac_shift=:
17255 ;;
17256 -*)
17257 ac_option=$1
17258 ac_optarg=$2
17259 ac_shift=shift
17260 ;;
17261 *) # This is not an option, so the user has probably given explicit
17262 # arguments.
17263 ac_option=$1
17264 ac_need_defaults=false;;
17265 esac
17266
9825 case "\$ac_option" in 17267 case $ac_option in
17268 # Handling of the options.
17269_ACEOF
17270cat >>$CONFIG_STATUS <<\_ACEOF
9826 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 17271 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9827 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 17272 ac_cs_recheck=: ;;
9828 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 17273 --version | --vers* | -V )
9829 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 17274 echo "$ac_cs_version"; exit 0 ;;
9830 echo "$CONFIG_STATUS generated by autoconf version 2.13" 17275 --he | --h)
9831 exit 0 ;; 17276 # Conflict between --help and --header
9832 -help | --help | --hel | --he | --h) 17277 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17278Try \`$0 --help' for more information." >&5
17279echo "$as_me: error: ambiguous option: $1
17280Try \`$0 --help' for more information." >&2;}
17281 { (exit 1); exit 1; }; };;
17282 --help | --hel | -h )
9833 echo "\$ac_cs_usage"; exit 0 ;; 17283 echo "$ac_cs_usage"; exit 0 ;;
9834 *) echo "\$ac_cs_usage"; exit 1 ;; 17284 --debug | --d* | -d )
17285 debug=: ;;
17286 --file | --fil | --fi | --f )
17287 $ac_shift
17288 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17289 ac_need_defaults=false;;
17290 --header | --heade | --head | --hea )
17291 $ac_shift
17292 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17293 ac_need_defaults=false;;
17294 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17295 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17296 ac_cs_silent=: ;;
17297
17298 # This is an error.
17299 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17300Try \`$0 --help' for more information." >&5
17301echo "$as_me: error: unrecognized option: $1
17302Try \`$0 --help' for more information." >&2;}
17303 { (exit 1); exit 1; }; } ;;
17304
17305 *) ac_config_targets="$ac_config_targets $1" ;;
17306
17307 esac
17308 shift
17309done
17310
17311ac_configure_extra_args=
17312
17313if $ac_cs_silent; then
17314 exec 6>/dev/null
17315 ac_configure_extra_args="$ac_configure_extra_args --silent"
17316fi
17317
17318_ACEOF
17319cat >>$CONFIG_STATUS <<_ACEOF
17320if \$ac_cs_recheck; then
17321 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17322 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17323fi
17324
17325_ACEOF
17326
17327
17328
17329
17330
17331cat >>$CONFIG_STATUS <<\_ACEOF
17332for ac_config_target in $ac_config_targets
17333do
17334 case "$ac_config_target" in
17335 # Handling of arguments.
17336 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
17337 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17338 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17339 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17340 "src/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
17341 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;;
17342 "W11/Makefile" ) CONFIG_FILES="$CONFIG_FILES W11/Makefile" ;;
17343 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:autoconf/config.h.in" ;;
17344 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17345echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17346 { (exit 1); exit 1; }; };;
9835 esac 17347 esac
9836done 17348done
9837 17349
9838ac_given_srcdir=$srcdir 17350# If the user did not use the arguments to specify the items to instantiate,
9839ac_given_INSTALL="$INSTALL" 17351# then the envvar interface is used. Set only those that are not.
17352# We use the long form for the default assignment because of an extremely
17353# bizarre bug on SunOS 4.1.3.
17354if $ac_need_defaults; then
17355 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17356 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17357fi
9840 17358
9841trap 'rm -fr `echo "autoconf/Make.common \ 17359# Have a temporary directory for convenience. Make it in the build tree
9842Makefile \ 17360# simply because there is no reason to put it here, and in addition,
9843doc/Makefile \ 17361# creating and moving files from /tmp can sometimes cause problems.
9844src/Makefile \ 17362# Create a temporary directory, and hook for its removal unless debugging.
9845src/graphics/Makefile \ 17363$debug ||
9846src/test/Makefile \ 17364{
9847src/rxvtlib.h \ 17365 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9848W11/Makefile \ 17366 trap '{ (exit 1); exit 1; }' 1 2 13 15
9849 config.h:autoconf/config.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 17367}
9850EOF 17368
17369# Create a (secure) tmp directory for tmp files.
17370
17371{
17372 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17373 test -n "$tmp" && test -d "$tmp"
17374} ||
17375{
17376 tmp=./confstat$$-$RANDOM
17377 (umask 077 && mkdir $tmp)
17378} ||
17379{
17380 echo "$me: cannot create a temporary directory in ." >&2
17381 { (exit 1); exit 1; }
17382}
17383
17384_ACEOF
17385
9851cat >> $CONFIG_STATUS <<EOF 17386cat >>$CONFIG_STATUS <<_ACEOF
9852 17387
17388#
17389# CONFIG_FILES section.
17390#
17391
17392# No need to generate the scripts if there are no CONFIG_FILES.
17393# This happens for instance when ./config.status config.h
17394if test -n "\$CONFIG_FILES"; then
9853# Protect against being on the right side of a sed subst in config.status. 17395 # Protect against being on the right side of a sed subst in config.status.
9854sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 17396 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9855 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 17397 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9856$ac_vpsub 17398s,@SHELL@,$SHELL,;t t
17399s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17400s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17401s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17402s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17403s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17404s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17405s,@exec_prefix@,$exec_prefix,;t t
17406s,@prefix@,$prefix,;t t
17407s,@program_transform_name@,$program_transform_name,;t t
17408s,@bindir@,$bindir,;t t
17409s,@sbindir@,$sbindir,;t t
17410s,@libexecdir@,$libexecdir,;t t
17411s,@datadir@,$datadir,;t t
17412s,@sysconfdir@,$sysconfdir,;t t
17413s,@sharedstatedir@,$sharedstatedir,;t t
17414s,@localstatedir@,$localstatedir,;t t
17415s,@libdir@,$libdir,;t t
17416s,@includedir@,$includedir,;t t
17417s,@oldincludedir@,$oldincludedir,;t t
17418s,@infodir@,$infodir,;t t
17419s,@mandir@,$mandir,;t t
17420s,@build_alias@,$build_alias,;t t
17421s,@host_alias@,$host_alias,;t t
17422s,@target_alias@,$target_alias,;t t
17423s,@DEFS@,$DEFS,;t t
17424s,@ECHO_C@,$ECHO_C,;t t
17425s,@ECHO_N@,$ECHO_N,;t t
17426s,@ECHO_T@,$ECHO_T,;t t
17427s,@LIBS@,$LIBS,;t t
17428s,@VERSION@,$VERSION,;t t
17429s,@DATE@,$DATE,;t t
17430s,@LSMDATE@,$LSMDATE,;t t
17431s,@LIBVERSION@,$LIBVERSION,;t t
17432s,@CC@,$CC,;t t
17433s,@CFLAGS@,$CFLAGS,;t t
17434s,@LDFLAGS@,$LDFLAGS,;t t
17435s,@CPPFLAGS@,$CPPFLAGS,;t t
17436s,@ac_ct_CC@,$ac_ct_CC,;t t
17437s,@EXEEXT@,$EXEEXT,;t t
17438s,@OBJEXT@,$OBJEXT,;t t
17439s,@CXX@,$CXX,;t t
17440s,@CXXFLAGS@,$CXXFLAGS,;t t
17441s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17442s,@CPP@,$CPP,;t t
17443s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17444s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17445s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17446s,@AWK@,$AWK,;t t
17447s,@LINKER@,$LINKER,;t t
17448s,@CXXCPP@,$CXXCPP,;t t
17449s,@EGREP@,$EGREP,;t t
17450s,@build@,$build,;t t
17451s,@build_cpu@,$build_cpu,;t t
17452s,@build_vendor@,$build_vendor,;t t
17453s,@build_os@,$build_os,;t t
17454s,@host@,$host,;t t
17455s,@host_cpu@,$host_cpu,;t t
17456s,@host_vendor@,$host_vendor,;t t
17457s,@host_os@,$host_os,;t t
17458s,@LN_S@,$LN_S,;t t
17459s,@ECHO@,$ECHO,;t t
17460s,@RANLIB@,$RANLIB,;t t
17461s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17462s,@STRIP@,$STRIP,;t t
17463s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17464s,@LIBTOOL@,$LIBTOOL,;t t
17465s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t
17466s,@RXVTNAME@,$RXVTNAME,;t t
17467s,@MV@,$MV,;t t
17468s,@RM@,$RM,;t t
17469s,@CP@,$CP,;t t
17470s,@LN@,$LN,;t t
17471s,@SED@,$SED,;t t
17472s,@CMP@,$CMP,;t t
17473s,@TBL@,$TBL,;t t
17474s,@X_CFLAGS@,$X_CFLAGS,;t t
17475s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17476s,@X_LIBS@,$X_LIBS,;t t
17477s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17478s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t
17479s,@XPM_CFLAGS@,$XPM_CFLAGS,;t t
17480s,@XPM_LIBS@,$XPM_LIBS,;t t
17481s,@rxvt_int16_typedef@,$rxvt_int16_typedef,;t t
17482s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t
17483s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t
17484s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t
17485s,@rxvt_intp_define@,$rxvt_intp_define,;t t
17486s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t
17487s,@DEBUG@,$DEBUG,;t t
17488s,@DINCLUDE@,$DINCLUDE,;t t
17489s,@DLIB@,$DLIB,;t t
17490s,@include_stdint_h@,$include_stdint_h,;t t
17491s,@include_stdarg_h@,$include_stdarg_h,;t t
17492s,@include_stdlib_h@,$include_stdlib_h,;t t
17493s,@include_unistd_h@,$include_unistd_h,;t t
17494s,@include_string_h@,$include_string_h,;t t
17495s,@include_fcntl_h@,$include_fcntl_h,;t t
17496s,@include_util_h@,$include_util_h,;t t
17497s,@include_assert_h@,$include_assert_h,;t t
17498s,@include_sys_ioctl_h@,$include_sys_ioctl_h,;t t
17499s,@include_sys_select_h@,$include_sys_select_h,;t t
17500s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t
17501s,@include_sys_time_h@,$include_sys_time_h,;t t
17502s,@include_time_h@,$include_time_h,;t t
17503s,@LIBOBJS@,$LIBOBJS,;t t
17504s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17505/@MCOMMON@/r $MCOMMON
17506s,@MCOMMON@,,;t t
17507CEOF
17508
17509_ACEOF
17510
17511 cat >>$CONFIG_STATUS <<\_ACEOF
17512 # Split the substitutions into bite-sized pieces for seds with
17513 # small command number limits, like on Digital OSF/1 and HP-UX.
17514 ac_max_sed_lines=48
17515 ac_sed_frag=1 # Number of current file.
17516 ac_beg=1 # First line for current file.
17517 ac_end=$ac_max_sed_lines # Line after last line for current file.
17518 ac_more_lines=:
17519 ac_sed_cmds=
17520 while $ac_more_lines; do
17521 if test $ac_beg -gt 1; then
17522 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17523 else
17524 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17525 fi
17526 if test ! -s $tmp/subs.frag; then
17527 ac_more_lines=false
17528 else
17529 # The purpose of the label and of the branching condition is to
17530 # speed up the sed processing (if there are no `@' at all, there
17531 # is no need to browse any of the substitutions).
17532 # These are the two extra sed commands mentioned above.
17533 (echo ':t
17534 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17535 if test -z "$ac_sed_cmds"; then
17536 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17537 else
17538 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17539 fi
17540 ac_sed_frag=`expr $ac_sed_frag + 1`
17541 ac_beg=$ac_end
17542 ac_end=`expr $ac_end + $ac_max_sed_lines`
17543 fi
17544 done
17545 if test -z "$ac_sed_cmds"; then
17546 ac_sed_cmds=cat
17547 fi
17548fi # test -n "$CONFIG_FILES"
17549
17550_ACEOF
17551cat >>$CONFIG_STATUS <<\_ACEOF
17552for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17553 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17554 case $ac_file in
17555 - | *:- | *:-:* ) # input from stdin
17556 cat >$tmp/stdin
17557 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17558 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17559 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17560 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17561 * ) ac_file_in=$ac_file.in ;;
17562 esac
17563
17564 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17565 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17566$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17567 X"$ac_file" : 'X\(//\)[^/]' \| \
17568 X"$ac_file" : 'X\(//\)$' \| \
17569 X"$ac_file" : 'X\(/\)' \| \
17570 . : '\(.\)' 2>/dev/null ||
17571echo X"$ac_file" |
17572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17573 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17574 /^X\(\/\/\)$/{ s//\1/; q; }
17575 /^X\(\/\).*/{ s//\1/; q; }
17576 s/.*/./; q'`
17577 { if $as_mkdir_p; then
17578 mkdir -p "$ac_dir"
17579 else
17580 as_dir="$ac_dir"
17581 as_dirs=
17582 while test ! -d "$as_dir"; do
17583 as_dirs="$as_dir $as_dirs"
17584 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17585$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17586 X"$as_dir" : 'X\(//\)[^/]' \| \
17587 X"$as_dir" : 'X\(//\)$' \| \
17588 X"$as_dir" : 'X\(/\)' \| \
17589 . : '\(.\)' 2>/dev/null ||
17590echo X"$as_dir" |
17591 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17592 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17593 /^X\(\/\/\)$/{ s//\1/; q; }
17594 /^X\(\/\).*/{ s//\1/; q; }
17595 s/.*/./; q'`
17596 done
17597 test ! -n "$as_dirs" || mkdir $as_dirs
17598 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17599echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17600 { (exit 1); exit 1; }; }; }
17601
17602 ac_builddir=.
17603
17604if test "$ac_dir" != .; then
17605 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17606 # A "../" for each directory in $ac_dir_suffix.
17607 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17608else
17609 ac_dir_suffix= ac_top_builddir=
17610fi
17611
17612case $srcdir in
17613 .) # No --srcdir option. We are building in place.
17614 ac_srcdir=.
17615 if test -z "$ac_top_builddir"; then
17616 ac_top_srcdir=.
17617 else
17618 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17619 fi ;;
17620 [\\/]* | ?:[\\/]* ) # Absolute path.
17621 ac_srcdir=$srcdir$ac_dir_suffix;
17622 ac_top_srcdir=$srcdir ;;
17623 *) # Relative path.
17624 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17625 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17626esac
17627
17628# Do not use `cd foo && pwd` to compute absolute paths, because
17629# the directories may not exist.
17630case `pwd` in
17631.) ac_abs_builddir="$ac_dir";;
17632*)
17633 case "$ac_dir" in
17634 .) ac_abs_builddir=`pwd`;;
17635 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17636 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17637 esac;;
17638esac
17639case $ac_abs_builddir in
17640.) ac_abs_top_builddir=${ac_top_builddir}.;;
17641*)
17642 case ${ac_top_builddir}. in
17643 .) ac_abs_top_builddir=$ac_abs_builddir;;
17644 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17645 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17646 esac;;
17647esac
17648case $ac_abs_builddir in
17649.) ac_abs_srcdir=$ac_srcdir;;
17650*)
17651 case $ac_srcdir in
17652 .) ac_abs_srcdir=$ac_abs_builddir;;
17653 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17654 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17655 esac;;
17656esac
17657case $ac_abs_builddir in
17658.) ac_abs_top_srcdir=$ac_top_srcdir;;
17659*)
17660 case $ac_top_srcdir in
17661 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17662 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17663 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17664 esac;;
17665esac
17666
17667
17668 case $INSTALL in
17669 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17670 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17671 esac
17672
17673 # Let's still pretend it is `configure' which instantiates (i.e., don't
17674 # use $as_me), people would be surprised to read:
17675 # /* config.h. Generated by config.status. */
17676 if test x"$ac_file" = x-; then
17677 configure_input=
17678 else
17679 configure_input="$ac_file. "
17680 fi
17681 configure_input=$configure_input"Generated from `echo $ac_file_in |
17682 sed 's,.*/,,'` by configure."
17683
17684 # First look for the input files in the build tree, otherwise in the
17685 # src tree.
17686 ac_file_inputs=`IFS=:
17687 for f in $ac_file_in; do
17688 case $f in
17689 -) echo $tmp/stdin ;;
17690 [\\/$]*)
17691 # Absolute (can't be DOS-style, as IFS=:)
17692 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17693echo "$as_me: error: cannot find input file: $f" >&2;}
17694 { (exit 1); exit 1; }; }
17695 echo "$f";;
17696 *) # Relative
17697 if test -f "$f"; then
17698 # Build tree
17699 echo "$f"
17700 elif test -f "$srcdir/$f"; then
17701 # Source tree
17702 echo "$srcdir/$f"
17703 else
17704 # /dev/null tree
17705 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17706echo "$as_me: error: cannot find input file: $f" >&2;}
17707 { (exit 1); exit 1; }; }
17708 fi;;
17709 esac
17710 done` || { (exit 1); exit 1; }
17711
17712 if test x"$ac_file" != x-; then
17713 { echo "$as_me:$LINENO: creating $ac_file" >&5
17714echo "$as_me: creating $ac_file" >&6;}
17715 rm -f "$ac_file"
17716 fi
17717_ACEOF
17718cat >>$CONFIG_STATUS <<_ACEOF
17719 sed "$ac_vpsub
9857$extrasub 17720$extrasub
9858s%@SHELL@%$SHELL%g
9859s%@CFLAGS@%$CFLAGS%g
9860s%@CPPFLAGS@%$CPPFLAGS%g
9861s%@CXXFLAGS@%$CXXFLAGS%g
9862s%@FFLAGS@%$FFLAGS%g
9863s%@DEFS@%$DEFS%g
9864s%@LDFLAGS@%$LDFLAGS%g
9865s%@LIBS@%$LIBS%g
9866s%@exec_prefix@%$exec_prefix%g
9867s%@prefix@%$prefix%g
9868s%@program_transform_name@%$program_transform_name%g
9869s%@bindir@%$bindir%g
9870s%@sbindir@%$sbindir%g
9871s%@libexecdir@%$libexecdir%g
9872s%@datadir@%$datadir%g
9873s%@sysconfdir@%$sysconfdir%g
9874s%@sharedstatedir@%$sharedstatedir%g
9875s%@localstatedir@%$localstatedir%g
9876s%@libdir@%$libdir%g
9877s%@includedir@%$includedir%g
9878s%@oldincludedir@%$oldincludedir%g
9879s%@infodir@%$infodir%g
9880s%@mandir@%$mandir%g
9881s%@VERSION@%$VERSION%g
9882s%@DATE@%$DATE%g
9883s%@LSMDATE@%$LSMDATE%g
9884s%@LIBVERSION@%$LIBVERSION%g
9885s%@CC@%$CC%g
9886s%@CXX@%$CXX%g
9887s%@CPP@%$CPP%g
9888s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9889s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
9890s%@INSTALL_DATA@%$INSTALL_DATA%g
9891s%@AWK@%$AWK%g
9892s%@host@%$host%g
9893s%@host_alias@%$host_alias%g
9894s%@host_cpu@%$host_cpu%g
9895s%@host_vendor@%$host_vendor%g
9896s%@host_os@%$host_os%g
9897s%@build@%$build%g
9898s%@build_alias@%$build_alias%g
9899s%@build_cpu@%$build_cpu%g
9900s%@build_vendor@%$build_vendor%g
9901s%@build_os@%$build_os%g
9902s%@LN_S@%$LN_S%g
9903s%@OBJEXT@%$OBJEXT%g
9904s%@EXEEXT@%$EXEEXT%g
9905s%@ECHO@%$ECHO%g
9906s%@RANLIB@%$RANLIB%g
9907s%@STRIP@%$STRIP%g
9908s%@LIBTOOL@%$LIBTOOL%g
9909s%@INSTALL_LIBRXVT@%$INSTALL_LIBRXVT%g
9910s%@MV@%$MV%g
9911s%@RM@%$RM%g
9912s%@CP@%$CP%g
9913s%@LN@%$LN%g
9914s%@SED@%$SED%g
9915s%@CMP@%$CMP%g
9916s%@TBL@%$TBL%g
9917s%@X_CFLAGS@%$X_CFLAGS%g
9918s%@X_PRE_LIBS@%$X_PRE_LIBS%g
9919s%@X_LIBS@%$X_LIBS%g
9920s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
9921s%@XPM_CPPFLAGS@%$XPM_CPPFLAGS%g
9922s%@XPM_CFLAGS@%$XPM_CFLAGS%g
9923s%@XPM_LIBS@%$XPM_LIBS%g
9924s%@rxvt_int16_typedef@%$rxvt_int16_typedef%g
9925s%@rxvt_uint16_typedef@%$rxvt_uint16_typedef%g
9926s%@rxvt_int32_typedef@%$rxvt_int32_typedef%g
9927s%@rxvt_uint32_typedef@%$rxvt_uint32_typedef%g
9928s%@rxvt_intp_define@%$rxvt_intp_define%g
9929s%@rxvt_u_intp_define@%$rxvt_u_intp_define%g
9930s%@DEBUG@%$DEBUG%g
9931s%@DINCLUDE@%$DINCLUDE%g
9932s%@DLIB@%$DLIB%g
9933/@MCOMMON@/r $MCOMMON
9934s%@MCOMMON@%%g
9935s%@RXVTNAME@%$RXVTNAME%g
9936s%@include_stdint_h@%$include_stdint_h%g
9937s%@include_stdarg_h@%$include_stdarg_h%g
9938s%@include_stdlib_h@%$include_stdlib_h%g
9939s%@include_unistd_h@%$include_unistd_h%g
9940s%@include_string_h@%$include_string_h%g
9941s%@include_fcntl_h@%$include_fcntl_h%g
9942s%@include_util_h@%$include_util_h%g
9943s%@include_assert_h@%$include_assert_h%g
9944s%@include_sys_ioctl_h@%$include_sys_ioctl_h%g
9945s%@include_sys_select_h@%$include_sys_select_h%g
9946s%@include_sys_strredir_h@%$include_sys_strredir_h%g
9947s%@include_sys_time_h@%$include_sys_time_h%g
9948s%@include_time_h@%$include_time_h%g
9949
9950CEOF 17721_ACEOF
9951EOF
9952
9953cat >> $CONFIG_STATUS <<\EOF 17722cat >>$CONFIG_STATUS <<\_ACEOF
9954 17723:t
9955# Split the substitutions into bite-sized pieces for seds with 17724/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9956# small command number limits, like on Digital OSF/1 and HP-UX. 17725s,@configure_input@,$configure_input,;t t
9957ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 17726s,@srcdir@,$ac_srcdir,;t t
9958ac_file=1 # Number of current file. 17727s,@abs_srcdir@,$ac_abs_srcdir,;t t
9959ac_beg=1 # First line for current file. 17728s,@top_srcdir@,$ac_top_srcdir,;t t
9960ac_end=$ac_max_sed_cmds # Line after last line for current file. 17729s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9961ac_more_lines=: 17730s,@builddir@,$ac_builddir,;t t
9962ac_sed_cmds="" 17731s,@abs_builddir@,$ac_abs_builddir,;t t
9963while $ac_more_lines; do 17732s,@top_builddir@,$ac_top_builddir,;t t
9964 if test $ac_beg -gt 1; then 17733s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9965 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 17734s,@INSTALL@,$ac_INSTALL,;t t
17735" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17736 rm -f $tmp/stdin
17737 if test x"$ac_file" != x-; then
17738 mv $tmp/out $ac_file
9966 else 17739 else
9967 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 17740 cat $tmp/out
17741 rm -f $tmp/out
9968 fi 17742 fi
9969 if test ! -s conftest.s$ac_file; then 17743
9970 ac_more_lines=false
9971 rm -f conftest.s$ac_file
9972 else
9973 if test -z "$ac_sed_cmds"; then
9974 ac_sed_cmds="sed -f conftest.s$ac_file"
9975 else
9976 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9977 fi
9978 ac_file=`expr $ac_file + 1`
9979 ac_beg=$ac_end
9980 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9981 fi
9982done 17744done
9983if test -z "$ac_sed_cmds"; then 17745_ACEOF
9984 ac_sed_cmds=cat
9985fi
9986EOF
9987
9988cat >> $CONFIG_STATUS <<EOF
9989
9990CONFIG_FILES=\${CONFIG_FILES-"autoconf/Make.common \
9991Makefile \
9992doc/Makefile \
9993src/Makefile \
9994src/graphics/Makefile \
9995src/test/Makefile \
9996src/rxvtlib.h \
9997W11/Makefile \
9998"}
9999EOF
10000cat >> $CONFIG_STATUS <<\EOF 17746cat >>$CONFIG_STATUS <<\_ACEOF
10001for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10002 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10003 case "$ac_file" in
10004 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
10005 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10006 *) ac_file_in="${ac_file}.in" ;;
10007 esac
10008 17747
10009 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 17748#
10010 17749# CONFIG_HEADER section.
10011 # Remove last slash and all that follows it. Not all systems have dirname. 17750#
10012 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10013 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10014 # The file is in a subdirectory.
10015 test ! -d "$ac_dir" && mkdir "$ac_dir"
10016 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10017 # A "../" for each directory in $ac_dir_suffix.
10018 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10019 else
10020 ac_dir_suffix= ac_dots=
10021 fi
10022
10023 case "$ac_given_srcdir" in
10024 .) srcdir=.
10025 if test -z "$ac_dots"; then top_srcdir=.
10026 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
10027 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10028 *) # Relative path.
10029 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
10030 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10031 esac
10032
10033 case "$ac_given_INSTALL" in
10034 [/$]*) INSTALL="$ac_given_INSTALL" ;;
10035 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10036 esac
10037
10038 echo creating "$ac_file"
10039 rm -f "$ac_file"
10040 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
10041 case "$ac_file" in
10042 *Makefile*) ac_comsub="1i\\
10043# $configure_input" ;;
10044 *) ac_comsub= ;;
10045 esac
10046
10047 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10048 sed -e "$ac_comsub
10049s%@configure_input@%$configure_input%g
10050s%@srcdir@%$srcdir%g
10051s%@top_srcdir@%$top_srcdir%g
10052s%@INSTALL@%$INSTALL%g
10053" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
10054fi; done
10055rm -f conftest.s*
10056 17751
10057# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 17752# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10058# NAME is the cpp macro being defined and VALUE is the value it is being given. 17753# NAME is the cpp macro being defined and VALUE is the value it is being given.
10059# 17754#
10060# ac_d sets the value in "#define NAME VALUE" lines. 17755# ac_d sets the value in "#define NAME VALUE" lines.
10061ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' 17756ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10062ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' 17757ac_dB='[ ].*$,\1#\2'
10063ac_dC='\3' 17758ac_dC=' '
10064ac_dD='%g' 17759ac_dD=',;t'
10065# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 17760# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10066ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 17761ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10067ac_uB='\([ ]\)%\1#\2define\3' 17762ac_uB='$,\1#\2define\3'
10068ac_uC=' ' 17763ac_uC=' '
10069ac_uD='\4%g' 17764ac_uD=',;t'
10070# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10071ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10072ac_eB='$%\1#\2define\3'
10073ac_eC=' '
10074ac_eD='%g'
10075 17765
10076if test "${CONFIG_HEADERS+set}" != set; then
10077EOF
10078cat >> $CONFIG_STATUS <<EOF
10079 CONFIG_HEADERS="config.h:autoconf/config.h.in"
10080EOF
10081cat >> $CONFIG_STATUS <<\EOF
10082fi
10083for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then 17766for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10084 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 17767 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10085 case "$ac_file" in 17768 case $ac_file in
17769 - | *:- | *:-:* ) # input from stdin
17770 cat >$tmp/stdin
17771 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17772 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10086 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 17773 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10087 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 17774 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10088 *) ac_file_in="${ac_file}.in" ;; 17775 * ) ac_file_in=$ac_file.in ;;
10089 esac 17776 esac
10090 17777
10091 echo creating $ac_file 17778 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17779echo "$as_me: creating $ac_file" >&6;}
10092 17780
10093 rm -f conftest.frag conftest.in conftest.out 17781 # First look for the input files in the build tree, otherwise in the
10094 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 17782 # src tree.
10095 cat $ac_file_inputs > conftest.in 17783 ac_file_inputs=`IFS=:
17784 for f in $ac_file_in; do
17785 case $f in
17786 -) echo $tmp/stdin ;;
17787 [\\/$]*)
17788 # Absolute (can't be DOS-style, as IFS=:)
17789 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17790echo "$as_me: error: cannot find input file: $f" >&2;}
17791 { (exit 1); exit 1; }; }
17792 # Do quote $f, to prevent DOS paths from being IFS'd.
17793 echo "$f";;
17794 *) # Relative
17795 if test -f "$f"; then
17796 # Build tree
17797 echo "$f"
17798 elif test -f "$srcdir/$f"; then
17799 # Source tree
17800 echo "$srcdir/$f"
17801 else
17802 # /dev/null tree
17803 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17804echo "$as_me: error: cannot find input file: $f" >&2;}
17805 { (exit 1); exit 1; }; }
17806 fi;;
17807 esac
17808 done` || { (exit 1); exit 1; }
17809 # Remove the trailing spaces.
17810 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10096 17811
10097EOF 17812_ACEOF
10098 17813
10099# Transform confdefs.h into a sed script conftest.vals that substitutes 17814# Transform confdefs.h into two sed scripts, `conftest.defines' and
10100# the proper values into config.h.in to produce config.h. And first: 17815# `conftest.undefs', that substitutes the proper values into
17816# config.h.in to produce config.h. The first handles `#define'
17817# templates, and the second `#undef' templates.
10101# Protect against being on the right side of a sed subst in config.status. 17818# And first: Protect against being on the right side of a sed subst in
10102# Protect against being in an unquoted here document in config.status. 17819# config.status. Protect against being in an unquoted here document
10103rm -f conftest.vals 17820# in config.status.
10104cat > conftest.hdr <<\EOF 17821rm -f conftest.defines conftest.undefs
17822# Using a here document instead of a string reduces the quoting nightmare.
17823# Putting comments in sed scripts is not portable.
17824#
17825# `end' is used to avoid that the second main sed command (meant for
17826# 0-ary CPP macros) applies to n-ary macro definitions.
17827# See the Autoconf documentation for `clear'.
17828cat >confdef2sed.sed <<\_ACEOF
10105s/[\\&%]/\\&/g 17829s/[\\&,]/\\&/g
10106s%[\\$`]%\\&%g 17830s,[\\$`],\\&,g
10107s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 17831t clear
10108s%ac_d%ac_u%gp 17832: clear
10109s%ac_u%ac_e%gp 17833s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10110EOF 17834t end
10111sed -n -f conftest.hdr confdefs.h > conftest.vals 17835s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10112rm -f conftest.hdr 17836: end
17837_ACEOF
17838# If some macros were called several times there might be several times
17839# the same #defines, which is useless. Nevertheless, we may not want to
17840# sort them, since we want the *last* AC-DEFINE to be honored.
17841uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17842sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17843rm -f confdef2sed.sed
10113 17844
10114# This sed command replaces #undef with comments. This is necessary, for 17845# This sed command replaces #undef with comments. This is necessary, for
10115# example, in the case of _POSIX_SOURCE, which is predefined and required 17846# example, in the case of _POSIX_SOURCE, which is predefined and required
10116# on some systems where configure will not decide to define it. 17847# on some systems where configure will not decide to define it.
10117cat >> conftest.vals <<\EOF 17848cat >>conftest.undefs <<\_ACEOF
10118s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 17849s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10119EOF 17850_ACEOF
10120 17851
10121# Break up conftest.vals because some shells have a limit on 17852# Break up conftest.defines because some shells have a limit on the size
10122# the size of here documents, and old seds have small limits too. 17853# of here documents, and old seds have small limits too (100 cmds).
10123 17854echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17855echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17856echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17857echo ' :' >>$CONFIG_STATUS
10124rm -f conftest.tail 17858rm -f conftest.tail
10125while : 17859while grep . conftest.defines >/dev/null
10126do 17860do
10127 ac_lines=`grep -c . conftest.vals`
10128 # grep -c gives empty output for an empty file on some AIX systems.
10129 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
10130 # Write a limited-size here document to conftest.frag. 17861 # Write a limited-size here document to $tmp/defines.sed.
10131 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS 17862 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17863 # Speed up: don't consider the non `#define' lines.
17864 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17865 # Work around the forget-to-reset-the-flag bug.
17866 echo 't clr' >>$CONFIG_STATUS
17867 echo ': clr' >>$CONFIG_STATUS
10132 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 17868 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10133 echo 'CEOF 17869 echo 'CEOF
10134 sed -f conftest.frag conftest.in > conftest.out 17870 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10135 rm -f conftest.in 17871 rm -f $tmp/in
10136 mv conftest.out conftest.in 17872 mv $tmp/out $tmp/in
10137' >> $CONFIG_STATUS 17873' >>$CONFIG_STATUS
10138 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 17874 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10139 rm -f conftest.vals 17875 rm -f conftest.defines
10140 mv conftest.tail conftest.vals 17876 mv conftest.tail conftest.defines
10141done 17877done
17878rm -f conftest.defines
17879echo ' fi # grep' >>$CONFIG_STATUS
17880echo >>$CONFIG_STATUS
17881
17882# Break up conftest.undefs because some shells have a limit on the size
17883# of here documents, and old seds have small limits too (100 cmds).
17884echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10142rm -f conftest.vals 17885rm -f conftest.tail
17886while grep . conftest.undefs >/dev/null
17887do
17888 # Write a limited-size here document to $tmp/undefs.sed.
17889 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17890 # Speed up: don't consider the non `#undef'
17891 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17892 # Work around the forget-to-reset-the-flag bug.
17893 echo 't clr' >>$CONFIG_STATUS
17894 echo ': clr' >>$CONFIG_STATUS
17895 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17896 echo 'CEOF
17897 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17898 rm -f $tmp/in
17899 mv $tmp/out $tmp/in
17900' >>$CONFIG_STATUS
17901 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17902 rm -f conftest.undefs
17903 mv conftest.tail conftest.undefs
17904done
17905rm -f conftest.undefs
10143 17906
10144cat >> $CONFIG_STATUS <<\EOF 17907cat >>$CONFIG_STATUS <<\_ACEOF
10145 rm -f conftest.frag conftest.h 17908 # Let's still pretend it is `configure' which instantiates (i.e., don't
10146 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 17909 # use $as_me), people would be surprised to read:
10147 cat conftest.in >> conftest.h 17910 # /* config.h. Generated by config.status. */
10148 rm -f conftest.in 17911 if test x"$ac_file" = x-; then
10149 if cmp -s $ac_file conftest.h 2>/dev/null; then 17912 echo "/* Generated by configure. */" >$tmp/config.h
10150 echo "$ac_file is unchanged"
10151 rm -f conftest.h
10152 else 17913 else
10153 # Remove last slash and all that follows it. Not all systems have dirname. 17914 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10154 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 17915 fi
10155 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 17916 cat $tmp/in >>$tmp/config.h
10156 # The file is in a subdirectory. 17917 rm -f $tmp/in
17918 if test x"$ac_file" != x-; then
17919 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17920 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17921echo "$as_me: $ac_file is unchanged" >&6;}
17922 else
17923 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17924$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17925 X"$ac_file" : 'X\(//\)[^/]' \| \
17926 X"$ac_file" : 'X\(//\)$' \| \
17927 X"$ac_file" : 'X\(/\)' \| \
17928 . : '\(.\)' 2>/dev/null ||
17929echo X"$ac_file" |
17930 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17931 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17932 /^X\(\/\/\)$/{ s//\1/; q; }
17933 /^X\(\/\).*/{ s//\1/; q; }
17934 s/.*/./; q'`
17935 { if $as_mkdir_p; then
17936 mkdir -p "$ac_dir"
17937 else
17938 as_dir="$ac_dir"
17939 as_dirs=
17940 while test ! -d "$as_dir"; do
17941 as_dirs="$as_dir $as_dirs"
17942 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17943$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17944 X"$as_dir" : 'X\(//\)[^/]' \| \
17945 X"$as_dir" : 'X\(//\)$' \| \
17946 X"$as_dir" : 'X\(/\)' \| \
17947 . : '\(.\)' 2>/dev/null ||
17948echo X"$as_dir" |
17949 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17950 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17951 /^X\(\/\/\)$/{ s//\1/; q; }
17952 /^X\(\/\).*/{ s//\1/; q; }
17953 s/.*/./; q'`
17954 done
10157 test ! -d "$ac_dir" && mkdir "$ac_dir" 17955 test ! -n "$as_dirs" || mkdir $as_dirs
17956 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17957echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17958 { (exit 1); exit 1; }; }; }
17959
17960 rm -f $ac_file
17961 mv $tmp/config.h $ac_file
10158 fi 17962 fi
10159 rm -f $ac_file 17963 else
10160 mv conftest.h $ac_file 17964 cat $tmp/config.h
17965 rm -f $tmp/config.h
10161 fi 17966 fi
10162fi; done 17967done
17968_ACEOF
10163 17969
10164EOF
10165cat >> $CONFIG_STATUS <<EOF
10166
10167EOF
10168cat >> $CONFIG_STATUS <<\EOF 17970cat >>$CONFIG_STATUS <<\_ACEOF
10169 17971
10170exit 0 17972{ (exit 0); exit 0; }
10171EOF 17973_ACEOF
10172chmod +x $CONFIG_STATUS 17974chmod +x $CONFIG_STATUS
10173rm -fr confdefs* $ac_clean_files 17975ac_clean_files=$ac_clean_files_save
10174test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 17976
17977
17978# configure is writing to config.log, and then calls config.status.
17979# config.status does its own redirection, appending to config.log.
17980# Unfortunately, on DOS this fails, as config.log is still kept open
17981# by configure, so config.status won't be able to write to it; its
17982# output is simply discarded. So we exec the FD to /dev/null,
17983# effectively closing config.log, so it can be properly (re)opened and
17984# appended to by config.status. When coming back to configure, we
17985# need to make the FD available again.
17986if test "$no_create" != yes; then
17987 ac_cs_success=:
17988 ac_config_status_args=
17989 test "$silent" = yes &&
17990 ac_config_status_args="$ac_config_status_args --quiet"
17991 exec 5>/dev/null
17992 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17993 exec 5>>config.log
17994 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17995 # would make configure fail if this is the last instruction.
17996 $ac_cs_success || { (exit 1); exit 1; }
17997fi
10175 17998
10176 17999
10177echo "Configuration: 18000echo "Configuration:
10178 18001
10179 Rxvt version: $VERSION : $DATE 18002 Rxvt version: $VERSION : $DATE
10180 Source code location: $srcdir 18003 Source code location: $srcdir
10181 Install path: ${prefix}/bin 18004 Install path: ${prefix}/bin
10182 Compiler: $CC 18005 Compiler: $CXX
10183 Compiler flags: $CFLAGS" 18006 Compiler flags: $CFLAGS
18007 Linker: $LINKER"
10184 18008
10185if test "$MALLOC_TYPE" = S; then 18009if test "$MALLOC_TYPE" = S; then
10186 echo " malloc support: system default" 18010 echo " malloc support: system default"
10187fi 18011fi
10188if test "$MALLOC_TYPE" = G; then 18012if test "$MALLOC_TYPE" = G; then
10199echo " 18023echo "
10200The following are set in config.h 18024The following are set in config.h
10201" 18025"
10202echo " pty/tty type: "$rxvt_cv_ptys 18026echo " pty/tty type: "$rxvt_cv_ptys
10203if test x$support_utmp != xyes; then 18027if test x$support_utmp != xyes; then
10204 echo " utmp support: disabled 18028 echo " utmp support: disabled"
10205" 18029 echo
10206else 18030else
10207 echo " utmp support: enabled 18031 echo " utmp support: enabled
10208 utmp file: $rxvt_cv_path_utmp 18032 utmp file: $rxvt_cv_path_utmp
10209 utmpx file: $rxvt_cv_path_utmpx 18033 utmpx file: $rxvt_cv_path_utmpx
10210 wtmp file: $rxvt_cv_path_wtmp 18034 wtmp file: $rxvt_cv_path_wtmp
10211 wtmpx file: $rxvt_cv_path_wtmpx 18035 wtmpx file: $rxvt_cv_path_wtmpx
10212 lastlog file: $rxvt_cv_path_lastlog 18036 lastlog file: $rxvt_cv_path_lastlog
10213 ttys/ttytab file: $rxvt_cv_path_ttytab 18037 ttys/ttytab file: $rxvt_cv_path_ttytab"
10214" 18038 echo
10215fi 18039fi
10216if test x$term != x; then 18040if test x$term != x; then
10217 echo " set TERM to: $term 18041 echo " set TERM to: $term"
10218"
10219fi 18042fi
10220if test x$terminfo != x; then 18043if test x$terminfo != x; then
10221 echo " set TERMINFO to: $terminfo 18044 echo " set TERMINFO to: $terminfo"
10222"
10223fi 18045fi
18046echo " default resource name: $RESNAME"
18047echo " resource class: $RESCLASS"
18048if test x$RESFALLBACK != x; then
18049 echo " resource class fallback: $RESFALLBACK"
18050fi
18051echo
10224if test x$rxvt_cv_ptys = xUNKNOWN; then 18052if test x$rxvt_cv_ptys = xUNKNOWN; then
10225 echo ".----------------------------------------------------------------." 18053 echo ".----------------------------------------------------------------."
10226 echo ". WARNING: could not determine pty/tty type. Do not build until ." 18054 echo ". WARNING: could not determine pty/tty type. Do not build until ."
10227 echo ". the appropriate PTYS_ARE_* is defined in config.h ." 18055 echo ". the appropriate PTYS_ARE_* is defined in config.h ."
10228 echo ".----------------------------------------------------------------." 18056 echo ".----------------------------------------------------------------."
10242 echo ". WARNING: --enable-xim was specified however the locale support ." 18070 echo ". WARNING: --enable-xim was specified however the locale support ."
10243 echo ". functions could not be found. ." 18071 echo ". functions could not be found. ."
10244 echo ". XIM is now being DISABLED! ." 18072 echo ". XIM is now being DISABLED! ."
10245 echo ".----------------------------------------------------------------." 18073 echo ".----------------------------------------------------------------."
10246fi 18074fi
18075
10247echo " *** Please check src/feature.h for further options *** 18076echo " *** Please check src/feature.h for further options ***"
10248" 18077echo
18078
18079echo ".----------------------------------------------------------------."
18080echo ". NOTE: most features are disabled by default, try ."
18081echo ". configure --help to get an idea of the optional features ."
18082echo ".----------------------------------------------------------------."
18083echo
18084

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines