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

Comparing rxvt-unicode/configure (file contents):
Revision 1.4 by pcg, Thu Dec 18 02:07:12 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
5199echo
5200if test x$support_inheritpixmap = xyes; then
5201 support_inheritpixmap=no
5202 echo "******* transparency support disabled, does not work"
5203fi
5204if test x$support_xpm = xyes; then
5205 support_xpm=no
5206 echo "******* pixmap support disabled, does not work"
5207fi
5208if test x$support_graphics = xyes; then
5209 support_graphics=no
5210 echo "******* graphics support disabled, does not work"
5211fi
5212if test x$support_menubar = xyes; then
5213 support_menubar=no
5214 echo "******* menubar support disabled, does not work"
5215fi
5216echo
5217 8100
5218# Check whether --enable-unicode3 or --disable-unicode3 was given. 8101# Check whether --enable-unicode3 or --disable-unicode3 was given.
5219if test "${enable_unicode3+set}" = set; then 8102if test "${enable_unicode3+set}" = set; then
5220 enableval="$enable_unicode3" 8103 enableval="$enable_unicode3"
5221 if test x$enableval = xyes; then 8104 if test x$enableval = xyes -o x$enableval = xno; then
5222 support_unicode3=yes 8105 support_unicode3=yes
5223 fi 8106 fi
5224fi 8107fi;
5225 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;
5226 8116
5227# Check whether --enable-xft or --disable-xft was given. 8117# Check whether --enable-xft or --disable-xft was given.
5228if test "${enable_xft+set}" = set; then 8118if test "${enable_xft+set}" = set; then
5229 enableval="$enable_xft" 8119 enableval="$enable_xft"
5230 if test x$enableval = xyes; then 8120 if test x$enableval = xyes -o x$enableval = xno; then
5231 support_xft=yes 8121 support_xft=yes
5232 fi 8122 fi
5233fi 8123fi;
5234
5235
5236# Check whether --with-codesets or --without-codesets was given.
5237if test "${with_codesets+set}" = set; then
5238 withval="$with_codesets"
5239 if test x$enableval = xyes; then
5240 codesets="$withval"
5241 fi
5242fi
5243
5244
5245# Check whether --with-encoding or --without-encoding was given.
5246if test "${with_encoding+set}" = set; then
5247 withval="$with_encoding"
5248 if test x$enableval = xyes; then
5249 withval=`echo $withval | tr 'a-z' 'A-Z'`
5250 cat >> confdefs.h <<EOF
5251#define MULTICHAR_ENCODING $withval
5252EOF
5253
5254 fi
5255fi
5256
5257 8124
5258# Check whether --enable-utmp or --disable-utmp was given. 8125# Check whether --enable-utmp or --disable-utmp was given.
5259if test "${enable_utmp+set}" = set; then 8126if test "${enable_utmp+set}" = set; then
5260 enableval="$enable_utmp" 8127 enableval="$enable_utmp"
5261 if test x$enableval = xyes -o x$enableval = xno; then 8128 if test x$enableval = xyes -o x$enableval = xno; then
5262 support_utmp=$enableval 8129 support_utmp=$enableval
5263 fi 8130 fi
5264fi 8131fi;
5265
5266 8132
5267# Check whether --enable-wtmp or --disable-wtmp was given. 8133# Check whether --enable-wtmp or --disable-wtmp was given.
5268if test "${enable_wtmp+set}" = set; then 8134if test "${enable_wtmp+set}" = set; then
5269 enableval="$enable_wtmp" 8135 enableval="$enable_wtmp"
5270 if test x$enableval = xyes -o x$enableval = xno; then 8136 if test x$enableval = xyes -o x$enableval = xno; then
5271 support_wtmp=$enableval 8137 support_wtmp=$enableval
5272 fi 8138 fi
5273fi 8139fi;
5274
5275 8140
5276# Check whether --enable-lastlog or --disable-lastlog was given. 8141# Check whether --enable-lastlog or --disable-lastlog was given.
5277if test "${enable_lastlog+set}" = set; then 8142if test "${enable_lastlog+set}" = set; then
5278 enableval="$enable_lastlog" 8143 enableval="$enable_lastlog"
5279 if test x$enableval = xyes -o x$enableval = xno; then 8144 if test x$enableval = xyes -o x$enableval = xno; then
5280 support_lastlog=$enableval 8145 support_lastlog=$enableval
5281 fi 8146 fi
5282fi 8147fi;
5283
5284 8148
5285# Check whether --enable-xpm-background or --disable-xpm-background was given. 8149# Check whether --enable-xpm-background or --disable-xpm-background was given.
5286if test "${enable_xpm_background+set}" = set; then 8150if test "${enable_xpm_background+set}" = set; then
5287 enableval="$enable_xpm_background" 8151 enableval="$enable_xpm_background"
5288 if test x$enableval = xyes -o x$enableval = xno; then 8152 if test x$enableval = xyes -o x$enableval = xno; then
5289 support_xpm=$enableval 8153 support_xpm=$enableval
5290 fi 8154 fi
5291fi 8155fi;
5292
5293 8156
5294# Check whether --enable-transparency or --disable-transparency was given. 8157# Check whether --enable-transparency or --disable-transparency was given.
5295if test "${enable_transparency+set}" = set; then 8158if test "${enable_transparency+set}" = set; then
5296 enableval="$enable_transparency" 8159 enableval="$enable_transparency"
5297 if test x$enableval = xyes -o x$enableval = xno; then 8160 if test x$enableval = xyes -o x$enableval = xno; then
5298 support_inheritpixmap=$enableval 8161 support_inheritpixmap=$enableval
5299 fi 8162 fi
5300fi 8163fi;
5301 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;
5302 8172
5303# Check whether --enable-menubar or --disable-menubar was given. 8173# Check whether --enable-menubar or --disable-menubar was given.
5304if test "${enable_menubar+set}" = set; then 8174if test "${enable_menubar+set}" = set; then
5305 enableval="$enable_menubar" 8175 enableval="$enable_menubar"
5306 if test x$enableval = xyes -o x$enableval = xno; then 8176 if test x$enableval = xyes -o x$enableval = xno; then
5307 support_menubar=$enableval 8177 support_menubar=$enableval
5308 fi 8178 fi
5309fi 8179fi;
5310
5311
5312# Check whether --enable-graphics or --disable-graphics was given.
5313if test "${enable_graphics+set}" = set; then
5314 enableval="$enable_graphics"
5315 if test x$enableval = xyes -o x$enableval = xno; then
5316 support_graphics=$enableval
5317 fi
5318fi
5319
5320 8180
5321# Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given. 8181# Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given.
5322if test "${enable_rxvt_scroll+set}" = set; then 8182if test "${enable_rxvt_scroll+set}" = set; then
5323 enableval="$enable_rxvt_scroll" 8183 enableval="$enable_rxvt_scroll"
5324 if test x$enableval = xyes -o x$enableval = xno; then 8184 if test x$enableval = xyes -o x$enableval = xno; then
5325 support_scroll_rxvt=$enableval 8185 support_scroll_rxvt=$enableval
5326 fi 8186 fi
5327fi 8187fi;
5328
5329 8188
5330# Check whether --enable-next-scroll or --disable-next-scroll was given. 8189# Check whether --enable-next-scroll or --disable-next-scroll was given.
5331if test "${enable_next_scroll+set}" = set; then 8190if test "${enable_next_scroll+set}" = set; then
5332 enableval="$enable_next_scroll" 8191 enableval="$enable_next_scroll"
5333 if test x$enableval = xyes -o x$enableval = xno; then 8192 if test x$enableval = xyes -o x$enableval = xno; then
5334 support_scroll_next=$enableval 8193 support_scroll_next=$enableval
5335 fi 8194 fi
5336fi 8195fi;
5337
5338 8196
5339# Check whether --enable-xterm-scroll or --disable-xterm-scroll was given. 8197# Check whether --enable-xterm-scroll or --disable-xterm-scroll was given.
5340if test "${enable_xterm_scroll+set}" = set; then 8198if test "${enable_xterm_scroll+set}" = set; then
5341 enableval="$enable_xterm_scroll" 8199 enableval="$enable_xterm_scroll"
5342 if test x$enableval = xyes -o x$enableval = xno; then 8200 if test x$enableval = xyes -o x$enableval = xno; then
5343 support_scroll_xterm=$enableval 8201 support_scroll_xterm=$enableval
5344 fi 8202 fi
5345fi 8203fi;
5346 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;
5347 8212
5348# Check whether --enable-half-shadow or --disable-half-shadow was given. 8213# Check whether --enable-half-shadow or --disable-half-shadow was given.
5349if test "${enable_half_shadow+set}" = set; then 8214if test "${enable_half_shadow+set}" = set; then
5350 enableval="$enable_half_shadow" 8215 enableval="$enable_half_shadow"
5351 if test x$enableval = xyes; then 8216 if test x$enableval = xyes; then
8217
5352 cat >> confdefs.h <<\EOF 8218cat >>confdefs.h <<\_ACEOF
5353#define HALFSHADOW 1 8219#define HALFSHADOW 1
5354EOF 8220_ACEOF
5355 8221
5356 fi 8222 fi
5357fi 8223fi;
5358 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;
5359 8231
5360# Check whether --enable-xim or --disable-xim was given. 8232# Check whether --enable-xim or --disable-xim was given.
5361if test "${enable_xim+set}" = set; then 8233if test "${enable_xim+set}" = set; then
5362 enableval="$enable_xim" 8234 enableval="$enable_xim"
5363 if test x$enableval = xyes -o x$enableval = xno; then 8235 if test x$enableval = xyes -o x$enableval = xno; then
5364 support_xim=$enableval 8236 support_xim=$enableval
5365 fi 8237 fi
5366fi 8238fi;
5367
5368
5369# Check whether --enable-greek or --disable-greek was given.
5370if test "${enable_greek+set}" = set; then
5371 enableval="$enable_greek"
5372 if test x$enableval = xyes; then
5373 cat >> confdefs.h <<\EOF
5374#define GREEK_SUPPORT 1
5375EOF
5376
5377 fi
5378fi
5379
5380 8239
5381# Check whether --enable-ttygid or --disable-ttygid was given. 8240# Check whether --enable-ttygid or --disable-ttygid was given.
5382if test "${enable_ttygid+set}" = set; then 8241if test "${enable_ttygid+set}" = set; then
5383 enableval="$enable_ttygid" 8242 enableval="$enable_ttygid"
5384 if test x$enableval = xyes; then 8243 if test x$enableval = xyes; then
8244
5385 cat >> confdefs.h <<\EOF 8245cat >>confdefs.h <<\_ACEOF
5386#define TTY_GID_SUPPORT 1 8246#define TTY_GID_SUPPORT 1
5387EOF 8247_ACEOF
5388 8248
5389 fi 8249 fi
5390fi 8250fi;
5391
5392 8251
5393# Check whether --enable-backspace-key or --disable-backspace-key was given. 8252# Check whether --enable-backspace-key or --disable-backspace-key was given.
5394if test "${enable_backspace_key+set}" = set; then 8253if test "${enable_backspace_key+set}" = set; then
5395 enableval="$enable_backspace_key" 8254 enableval="$enable_backspace_key"
5396 if test x$enableval = xno; then 8255 if test x$enableval = xno; then
8256
5397 cat >> confdefs.h <<\EOF 8257cat >>confdefs.h <<\_ACEOF
5398#define NO_BACKSPACE_KEY 1 8258#define NO_BACKSPACE_KEY 1
5399EOF 8259_ACEOF
5400 8260
5401 fi 8261 fi
5402fi 8262fi;
5403
5404 8263
5405# Check whether --enable-delete-key or --disable-delete-key was given. 8264# Check whether --enable-delete-key or --disable-delete-key was given.
5406if test "${enable_delete_key+set}" = set; then 8265if test "${enable_delete_key+set}" = set; then
5407 enableval="$enable_delete_key" 8266 enableval="$enable_delete_key"
5408 if test x$enableval = xno; then 8267 if test x$enableval = xno; then
8268
5409 cat >> confdefs.h <<\EOF 8269cat >>confdefs.h <<\_ACEOF
5410#define NO_DELETE_KEY 1 8270#define NO_DELETE_KEY 1
5411EOF 8271_ACEOF
5412 8272
5413 fi 8273 fi
5414fi 8274fi;
5415
5416 8275
5417# Check whether --enable-resources or --disable-resources was given. 8276# Check whether --enable-resources or --disable-resources was given.
5418if test "${enable_resources+set}" = set; then 8277if test "${enable_resources+set}" = set; then
5419 enableval="$enable_resources" 8278 enableval="$enable_resources"
5420 if test x$enableval = xno; then 8279 if test x$enableval = xno; then
8280
5421 cat >> confdefs.h <<\EOF 8281cat >>confdefs.h <<\_ACEOF
5422#define NO_RESOURCES 1 8282#define NO_RESOURCES 1
5423EOF 8283_ACEOF
5424 8284
5425 fi 8285 fi
5426fi 8286fi;
5427
5428 8287
5429# Check whether --enable-xgetdefault or --disable-xgetdefault was given. 8288# Check whether --enable-xgetdefault or --disable-xgetdefault was given.
5430if test "${enable_xgetdefault+set}" = set; then 8289if test "${enable_xgetdefault+set}" = set; then
5431 enableval="$enable_xgetdefault" 8290 enableval="$enable_xgetdefault"
5432 if test x$enableval = xyes; then 8291 if test x$enableval = xyes; then
8292
5433 cat >> confdefs.h <<\EOF 8293cat >>confdefs.h <<\_ACEOF
5434#define USE_XGETDEFAULT 1 8294#define USE_XGETDEFAULT 1
5435EOF 8295_ACEOF
5436 8296
5437 fi 8297 fi
5438fi 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"`
5439 8354
5440 8355
5441# Check whether --enable-strings or --disable-strings was given. 8356# Check whether --enable-strings or --disable-strings was given.
5442if test "${enable_strings+set}" = set; then 8357if test "${enable_strings+set}" = set; then
5443 enableval="$enable_strings" 8358 enableval="$enable_strings"
5444 if test x$enableval = xyes -o x$enableval = xno; then 8359 if test x$enableval = xyes -o x$enableval = xno; then
5445 support_addstrings=$enableval 8360 support_addstrings=$enableval
5446 fi 8361 fi
5447fi 8362fi;
5448
5449 8363
5450# Check whether --enable-swapscreen or --disable-swapscreen was given. 8364# Check whether --enable-swapscreen or --disable-swapscreen was given.
5451if test "${enable_swapscreen+set}" = set; then 8365if test "${enable_swapscreen+set}" = set; then
5452 enableval="$enable_swapscreen" 8366 enableval="$enable_swapscreen"
5453 if test x$enableval = xno; then 8367 if test x$enableval = xno; then
8368
5454 cat >> confdefs.h <<\EOF 8369cat >>confdefs.h <<\_ACEOF
5455#define NO_SECONDARY_SCREEN 1 8370#define NO_SECONDARY_SCREEN 1
5456EOF 8371_ACEOF
5457 8372
5458 fi 8373 fi
5459fi 8374fi;
5460
5461 8375
5462# Check whether --enable-frills or --disable-frills was given. 8376# Check whether --enable-frills or --disable-frills was given.
5463if test "${enable_frills+set}" = set; then 8377if test "${enable_frills+set}" = set; then
5464 enableval="$enable_frills" 8378 enableval="$enable_frills"
5465 if test x$enableval = xyes -o x$enableval = xno; then 8379 if test x$enableval = xyes -o x$enableval = xno; then
5466 support_frills=$enableval 8380 support_frills=$enableval
5467 fi 8381 fi
5468fi 8382fi;
5469
5470 8383
5471# Check whether --enable-linespace or --disable-linespace was given. 8384# Check whether --enable-linespace or --disable-linespace was given.
5472if test "${enable_linespace+set}" = set; then 8385if test "${enable_linespace+set}" = set; then
5473 enableval="$enable_linespace" 8386 enableval="$enable_linespace"
5474 if test x$enableval = xyes -o x$enableval = xno; then 8387 if test x$enableval = xyes -o x$enableval = xno; then
5475 support_linespace=$enableval 8388 support_linespace=$enableval
5476 fi 8389 fi
5477fi 8390fi;
5478
5479 8391
5480# Check whether --enable-24bit or --disable-24bit was given. 8392# Check whether --enable-24bit or --disable-24bit was given.
5481if test "${enable_24bit+set}" = set; then 8393if test "${enable_24bit+set}" = set; then
5482 enableval="$enable_24bit" 8394 enableval="$enable_24bit"
5483 if test x$enableval = xyes -o x$enableval = xno; then 8395 if test x$enableval = xyes -o x$enableval = xno; then
5484 support_24bit=$enableval 8396 support_24bit=$enableval
5485 fi 8397 fi
5486fi 8398fi;
5487
5488 8399
5489# Check whether --enable-keepscrolling or --disable-keepscrolling was given. 8400# Check whether --enable-keepscrolling or --disable-keepscrolling was given.
5490if test "${enable_keepscrolling+set}" = set; then 8401if test "${enable_keepscrolling+set}" = set; then
5491 enableval="$enable_keepscrolling" 8402 enableval="$enable_keepscrolling"
5492 if test x$enableval = xyes -o x$enableval = xno; then 8403 if test x$enableval = xyes -o x$enableval = xno; then
5493 support_keepscrolling=$enableval 8404 support_keepscrolling=$enableval
5494 fi 8405 fi
5495fi 8406fi;
5496
5497 8407
5498# Check whether --enable-selectionscrolling or --disable-selectionscrolling was given. 8408# Check whether --enable-selectionscrolling or --disable-selectionscrolling was given.
5499if test "${enable_selectionscrolling+set}" = set; then 8409if test "${enable_selectionscrolling+set}" = set; then
5500 enableval="$enable_selectionscrolling" 8410 enableval="$enable_selectionscrolling"
5501 if test x$enableval = xyes -o x$enableval = xno; then 8411 if test x$enableval = xyes -o x$enableval = xno; then
5502 support_selectionscrolling=$enableval 8412 support_selectionscrolling=$enableval
5503 fi 8413 fi
5504fi 8414fi;
5505
5506 8415
5507# Check whether --enable-mousewheel or --disable-mousewheel was given. 8416# Check whether --enable-mousewheel or --disable-mousewheel was given.
5508if test "${enable_mousewheel+set}" = set; then 8417if test "${enable_mousewheel+set}" = set; then
5509 enableval="$enable_mousewheel" 8418 enableval="$enable_mousewheel"
5510 if test x$enableval = xyes -o x$enableval = xno; then 8419 if test x$enableval = xyes -o x$enableval = xno; then
5511 support_mousewheel=$enableval 8420 support_mousewheel=$enableval
5512 fi 8421 fi
5513fi 8422fi;
5514
5515 8423
5516# Check whether --enable-slipwheeling or --disable-slipwheeling was given. 8424# Check whether --enable-slipwheeling or --disable-slipwheeling was given.
5517if test "${enable_slipwheeling+set}" = set; then 8425if test "${enable_slipwheeling+set}" = set; then
5518 enableval="$enable_slipwheeling" 8426 enableval="$enable_slipwheeling"
5519 if test x$enableval = xyes -o x$enableval = xno; then 8427 if test x$enableval = xyes -o x$enableval = xno; then
5520 support_mouseslipwheel=$enableval 8428 support_mouseslipwheel=$enableval
5521 fi 8429 fi
5522fi 8430fi;
5523
5524
5525# Check whether --enable-old-selection or --disable-old-selection was given.
5526if test "${enable_old_selection+set}" = set; then
5527 enableval="$enable_old_selection"
5528 if test x$enableval = xyes -o x$enableval = xno; then
5529 support_oldselection=$enableval
5530 fi
5531fi
5532
5533
5534# Check whether --enable-new-selection or --disable-new-selection was given.
5535if test "${enable_new_selection+set}" = set; then
5536 enableval="$enable_new_selection"
5537 if test x$enableval = xno; then
5538 cat >> confdefs.h <<\EOF
5539#define NO_NEW_SELECTION 1
5540EOF
5541
5542 fi
5543fi
5544
5545 8431
5546# Check whether --enable-dmalloc or --disable-dmalloc was given. 8432# Check whether --enable-dmalloc or --disable-dmalloc was given.
5547if test "${enable_dmalloc+set}" = set; then 8433if test "${enable_dmalloc+set}" = set; then
5548 enableval="$enable_dmalloc" 8434 enableval="$enable_dmalloc"
5549 if test x$enableval = xyes; then 8435 if test x$enableval = xyes; then
5550 MALLOC_TYPE=G 8436 MALLOC_TYPE=G
5551 DEBUG=-DDEBUG_MALLOC 8437 DEBUG=-DDEBUG_MALLOC
5552 DLIB="-L/usr/local/lib -ldmalloc" 8438 DLIB="-L/usr/local/lib -ldmalloc"
5553 DINCLUDE=-I/usr/local/include 8439 DINCLUDE=-I/usr/local/include
5554 fi 8440 fi
5555fi 8441fi;
5556
5557 8442
5558# Check whether --enable-dlmalloc or --disable-dlmalloc was given. 8443# Check whether --enable-dlmalloc or --disable-dlmalloc was given.
5559if test "${enable_dlmalloc+set}" = set; then 8444if test "${enable_dlmalloc+set}" = set; then
5560 enableval="$enable_dlmalloc" 8445 enableval="$enable_dlmalloc"
5561 if test x$enableval = xyes; then 8446 if test x$enableval = xyes; then
5562 MALLOC_TYPE=D 8447 MALLOC_TYPE=D
5563 DEBUG= 8448 DEBUG=
5564 DLIB="-L/usr/local/lib -ldlmalloc" 8449 DLIB="-L/usr/local/lib -ldlmalloc"
5565 DINCLUDE= 8450 DINCLUDE=
5566 fi 8451 fi
5567fi 8452fi;
5568
5569 8453
5570# Check whether --enable-smart-resize or --disable-smart-resize was given. 8454# Check whether --enable-smart-resize or --disable-smart-resize was given.
5571if test "${enable_smart_resize+set}" = set; then 8455if test "${enable_smart_resize+set}" = set; then
5572 enableval="$enable_smart_resize" 8456 enableval="$enable_smart_resize"
5573 if test x$enableval = xyes; then 8457 if test x$enableval = xyes; then
8458
5574 cat >> confdefs.h <<\EOF 8459cat >>confdefs.h <<\_ACEOF
5575#define SMART_RESIZE 1 8460#define SMART_RESIZE 1
5576EOF 8461_ACEOF
5577 8462
5578 fi 8463 fi
5579fi 8464fi;
5580
5581 8465
5582# Check whether --enable-256-color or --disable-256-color was given. 8466# Check whether --enable-256-color or --disable-256-color was given.
5583if test "${enable_256_color+set}" = set; then 8467if test "${enable_256_color+set}" = set; then
5584 enableval="$enable_256_color" 8468 enableval="$enable_256_color"
5585 if test x$enableval = xyes; then 8469 if test x$enableval = xyes; then
8470
5586 cat >> confdefs.h <<\EOF 8471cat >>confdefs.h <<\_ACEOF
5587#define TTY_256COLOR 1 8472#define TTY_256COLOR 1
5588EOF 8473_ACEOF
5589 8474
5590 fi 8475 fi
5591fi 8476fi;
5592
5593 8477
5594# Check whether --enable-cursor-blink or --disable-cursor-blink was given. 8478# Check whether --enable-cursor-blink or --disable-cursor-blink was given.
5595if test "${enable_cursor_blink+set}" = set; then 8479if test "${enable_cursor_blink+set}" = set; then
5596 enableval="$enable_cursor_blink" 8480 enableval="$enable_cursor_blink"
5597 if test x$enableval = xyes -o x$enableval = xno; then 8481 if test x$enableval = xyes -o x$enableval = xno; then
5598 support_cursor_blink=$enableval 8482 support_cursor_blink=$enableval
5599 fi 8483 fi
5600fi 8484fi;
5601 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;
5602 8493
5603# Check whether --enable-pointer-blank or --disable-pointer-blank was given. 8494# Check whether --enable-pointer-blank or --disable-pointer-blank was given.
5604if test "${enable_pointer_blank+set}" = set; then 8495if test "${enable_pointer_blank+set}" = set; then
5605 enableval="$enable_pointer_blank" 8496 enableval="$enable_pointer_blank"
5606 if test x$enableval = xyes -o x$enableval = xno; then 8497 if test x$enableval = xyes -o x$enableval = xno; then
5607 support_pointer_blank=$enableval 8498 support_pointer_blank=$enableval
5608 fi 8499 fi
5609fi 8500fi;
5610 8501
5611 8502
5612# Check whether --with-term or --without-term was given. 8503# Check whether --with-term or --without-term was given.
5613if test "${with_term+set}" = set; then 8504if test "${with_term+set}" = set; then
5614 withval="$with_term" 8505 withval="$with_term"
5615 if test x$withval != x; then 8506 if test x$withval != x; then
8507
5616 cat >> confdefs.h <<EOF 8508cat >>confdefs.h <<_ACEOF
5617#define TERMENV "$withval" 8509#define TERMENV "$withval"
5618EOF 8510_ACEOF
5619 term="$withval" 8511 term="$withval"
5620 fi 8512 fi
5621fi 8513fi;
5622 8514
5623 8515
5624# Check whether --with-terminfo or --without-terminfo was given. 8516# Check whether --with-terminfo or --without-terminfo was given.
5625if test "${with_terminfo+set}" = set; then 8517if test "${with_terminfo+set}" = set; then
5626 withval="$with_terminfo" 8518 withval="$with_terminfo"
5627 if test x$withval != x; then 8519 if test x$withval != x; then
8520
5628 cat >> confdefs.h <<EOF 8521cat >>confdefs.h <<_ACEOF
5629#define RXVT_TERMINFO "$withval" 8522#define RXVT_TERMINFO "$withval"
5630EOF 8523_ACEOF
5631 terminfo="$withval" 8524 terminfo="$withval"
5632 fi 8525 fi
5633fi 8526fi;
5634 8527
5635 8528
5636 8529
5637cat >> confdefs.h <<\EOF 8530cat >>confdefs.h <<\_ACEOF
5638#define PROTOTYPES 1 8531#define PROTOTYPES 1
5639EOF 8532_ACEOF
5640 8533
5641 8534
5642if test -z "$CFLAGS"; then 8535if test -z "$CFLAGS"; then
5643 if test -z "$CCOPTS"; then 8536 if test -z "$CCOPTS"; then
5644 CCOPTS='-O' 8537 CCOPTS='-O'
5646 CFLAGS="$CCOPTS" 8539 CFLAGS="$CCOPTS"
5647fi 8540fi
5648 8541
5649# 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.
5650set dummy mv; ac_word=$2 8543set dummy mv; ac_word=$2
8544echo "$as_me:$LINENO: checking for $ac_word" >&5
5651echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5652echo "configure:5653: checking for $ac_word" >&5
5653if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then 8546if test "${ac_cv_path_MV+set}" = set; then
5654 echo $ac_n "(cached) $ac_c" 1>&6 8547 echo $ECHO_N "(cached) $ECHO_C" >&6
5655else 8548else
5656 case "$MV" in 8549 case $MV in
5657 /*) 8550 [\\/]* | ?:[\\/]*)
5658 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.
5659 ;; 8552 ;;
5660 ?:/*)
5661 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
5662 ;;
5663 *) 8553 *)
5664 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5665 ac_dummy="$PATH" 8555for as_dir in $PATH
5666 for ac_dir in $ac_dummy; do 8556do
8557 IFS=$as_save_IFS
5667 test -z "$ac_dir" && ac_dir=. 8558 test -z "$as_dir" && as_dir=.
5668 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
5669 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
5670 break 8563 break 2
5671 fi 8564 fi
5672 done 8565done
5673 IFS="$ac_save_ifs" 8566done
8567
5674 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" 8568 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5675 ;; 8569 ;;
5676esac 8570esac
5677fi 8571fi
5678MV="$ac_cv_path_MV" 8572MV=$ac_cv_path_MV
8573
5679if test -n "$MV"; then 8574if test -n "$MV"; then
5680 echo "$ac_t""$MV" 1>&6 8575 echo "$as_me:$LINENO: result: $MV" >&5
8576echo "${ECHO_T}$MV" >&6
5681else 8577else
5682 echo "$ac_t""no" 1>&6 8578 echo "$as_me:$LINENO: result: no" >&5
8579echo "${ECHO_T}no" >&6
5683fi 8580fi
5684 8581
5685# 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.
5686set dummy rm; ac_word=$2 8583set dummy rm; ac_word=$2
8584echo "$as_me:$LINENO: checking for $ac_word" >&5
5687echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8585echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5688echo "configure:5689: checking for $ac_word" >&5
5689if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then 8586if test "${ac_cv_path_RM+set}" = set; then
5690 echo $ac_n "(cached) $ac_c" 1>&6 8587 echo $ECHO_N "(cached) $ECHO_C" >&6
5691else 8588else
5692 case "$RM" in 8589 case $RM in
5693 /*) 8590 [\\/]* | ?:[\\/]*)
5694 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.
5695 ;; 8592 ;;
5696 ?:/*)
5697 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
5698 ;;
5699 *) 8593 *)
5700 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5701 ac_dummy="$PATH" 8595for as_dir in $PATH
5702 for ac_dir in $ac_dummy; do 8596do
8597 IFS=$as_save_IFS
5703 test -z "$ac_dir" && ac_dir=. 8598 test -z "$as_dir" && as_dir=.
5704 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
5705 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
5706 break 8603 break 2
5707 fi 8604 fi
5708 done 8605done
5709 IFS="$ac_save_ifs" 8606done
8607
5710 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" 8608 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
5711 ;; 8609 ;;
5712esac 8610esac
5713fi 8611fi
5714RM="$ac_cv_path_RM" 8612RM=$ac_cv_path_RM
8613
5715if test -n "$RM"; then 8614if test -n "$RM"; then
5716 echo "$ac_t""$RM" 1>&6 8615 echo "$as_me:$LINENO: result: $RM" >&5
8616echo "${ECHO_T}$RM" >&6
5717else 8617else
5718 echo "$ac_t""no" 1>&6 8618 echo "$as_me:$LINENO: result: no" >&5
8619echo "${ECHO_T}no" >&6
5719fi 8620fi
5720 8621
5721# 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.
5722set dummy cp; ac_word=$2 8623set dummy cp; ac_word=$2
8624echo "$as_me:$LINENO: checking for $ac_word" >&5
5723echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8625echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5724echo "configure:5725: checking for $ac_word" >&5
5725if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then 8626if test "${ac_cv_path_CP+set}" = set; then
5726 echo $ac_n "(cached) $ac_c" 1>&6 8627 echo $ECHO_N "(cached) $ECHO_C" >&6
5727else 8628else
5728 case "$CP" in 8629 case $CP in
5729 /*) 8630 [\\/]* | ?:[\\/]*)
5730 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.
5731 ;; 8632 ;;
5732 ?:/*)
5733 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
5734 ;;
5735 *) 8633 *)
5736 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737 ac_dummy="$PATH" 8635for as_dir in $PATH
5738 for ac_dir in $ac_dummy; do 8636do
8637 IFS=$as_save_IFS
5739 test -z "$ac_dir" && ac_dir=. 8638 test -z "$as_dir" && as_dir=.
5740 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
5741 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
5742 break 8643 break 2
5743 fi 8644 fi
5744 done 8645done
5745 IFS="$ac_save_ifs" 8646done
8647
5746 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" 8648 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5747 ;; 8649 ;;
5748esac 8650esac
5749fi 8651fi
5750CP="$ac_cv_path_CP" 8652CP=$ac_cv_path_CP
8653
5751if test -n "$CP"; then 8654if test -n "$CP"; then
5752 echo "$ac_t""$CP" 1>&6 8655 echo "$as_me:$LINENO: result: $CP" >&5
8656echo "${ECHO_T}$CP" >&6
5753else 8657else
5754 echo "$ac_t""no" 1>&6 8658 echo "$as_me:$LINENO: result: no" >&5
8659echo "${ECHO_T}no" >&6
5755fi 8660fi
5756 8661
5757# 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.
5758set dummy ln; ac_word=$2 8663set dummy ln; ac_word=$2
8664echo "$as_me:$LINENO: checking for $ac_word" >&5
5759echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5760echo "configure:5761: checking for $ac_word" >&5
5761if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then 8666if test "${ac_cv_path_LN+set}" = set; then
5762 echo $ac_n "(cached) $ac_c" 1>&6 8667 echo $ECHO_N "(cached) $ECHO_C" >&6
5763else 8668else
5764 case "$LN" in 8669 case $LN in
5765 /*) 8670 [\\/]* | ?:[\\/]*)
5766 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.
5767 ;; 8672 ;;
5768 ?:/*)
5769 ac_cv_path_LN="$LN" # Let the user override the test with a dos path.
5770 ;;
5771 *) 8673 *)
5772 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5773 ac_dummy="$PATH" 8675for as_dir in $PATH
5774 for ac_dir in $ac_dummy; do 8676do
8677 IFS=$as_save_IFS
5775 test -z "$ac_dir" && ac_dir=. 8678 test -z "$as_dir" && as_dir=.
5776 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
5777 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
5778 break 8683 break 2
5779 fi 8684 fi
5780 done 8685done
5781 IFS="$ac_save_ifs" 8686done
8687
5782 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" 8688 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
5783 ;; 8689 ;;
5784esac 8690esac
5785fi 8691fi
5786LN="$ac_cv_path_LN" 8692LN=$ac_cv_path_LN
8693
5787if test -n "$LN"; then 8694if test -n "$LN"; then
5788 echo "$ac_t""$LN" 1>&6 8695 echo "$as_me:$LINENO: result: $LN" >&5
8696echo "${ECHO_T}$LN" >&6
5789else 8697else
5790 echo "$ac_t""no" 1>&6 8698 echo "$as_me:$LINENO: result: no" >&5
8699echo "${ECHO_T}no" >&6
5791fi 8700fi
5792 8701
5793# 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.
5794set dummy sed; ac_word=$2 8703set dummy sed; ac_word=$2
8704echo "$as_me:$LINENO: checking for $ac_word" >&5
5795echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5796echo "configure:5797: checking for $ac_word" >&5
5797if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then 8706if test "${ac_cv_path_SED+set}" = set; then
5798 echo $ac_n "(cached) $ac_c" 1>&6 8707 echo $ECHO_N "(cached) $ECHO_C" >&6
5799else 8708else
5800 case "$SED" in 8709 case $SED in
5801 /*) 8710 [\\/]* | ?:[\\/]*)
5802 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.
5803 ;; 8712 ;;
5804 ?:/*)
5805 ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
5806 ;;
5807 *) 8713 *)
5808 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5809 ac_dummy="$PATH" 8715for as_dir in $PATH
5810 for ac_dir in $ac_dummy; do 8716do
8717 IFS=$as_save_IFS
5811 test -z "$ac_dir" && ac_dir=. 8718 test -z "$as_dir" && as_dir=.
5812 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
5813 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
5814 break 8723 break 2
5815 fi 8724 fi
5816 done 8725done
5817 IFS="$ac_save_ifs" 8726done
8727
5818 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" 8728 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5819 ;; 8729 ;;
5820esac 8730esac
5821fi 8731fi
5822SED="$ac_cv_path_SED" 8732SED=$ac_cv_path_SED
8733
5823if test -n "$SED"; then 8734if test -n "$SED"; then
5824 echo "$ac_t""$SED" 1>&6 8735 echo "$as_me:$LINENO: result: $SED" >&5
8736echo "${ECHO_T}$SED" >&6
5825else 8737else
5826 echo "$ac_t""no" 1>&6 8738 echo "$as_me:$LINENO: result: no" >&5
8739echo "${ECHO_T}no" >&6
5827fi 8740fi
5828 8741
5829# 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.
5830set dummy echo; ac_word=$2 8743set dummy echo; ac_word=$2
8744echo "$as_me:$LINENO: checking for $ac_word" >&5
5831echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8745echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5832echo "configure:5833: checking for $ac_word" >&5
5833if eval "test \"`echo '$''{'ac_cv_path_ECHO'+set}'`\" = set"; then 8746if test "${ac_cv_path_ECHO+set}" = set; then
5834 echo $ac_n "(cached) $ac_c" 1>&6 8747 echo $ECHO_N "(cached) $ECHO_C" >&6
5835else 8748else
5836 case "$ECHO" in 8749 case $ECHO in
5837 /*) 8750 [\\/]* | ?:[\\/]*)
5838 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.
5839 ;; 8752 ;;
5840 ?:/*)
5841 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a dos path.
5842 ;;
5843 *) 8753 *)
5844 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5845 ac_dummy="$PATH" 8755for as_dir in $PATH
5846 for ac_dir in $ac_dummy; do 8756do
8757 IFS=$as_save_IFS
5847 test -z "$ac_dir" && ac_dir=. 8758 test -z "$as_dir" && as_dir=.
5848 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
5849 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
5850 break 8763 break 2
5851 fi 8764 fi
5852 done 8765done
5853 IFS="$ac_save_ifs" 8766done
8767
5854 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo" 8768 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5855 ;; 8769 ;;
5856esac 8770esac
5857fi 8771fi
5858ECHO="$ac_cv_path_ECHO" 8772ECHO=$ac_cv_path_ECHO
8773
5859if test -n "$ECHO"; then 8774if test -n "$ECHO"; then
5860 echo "$ac_t""$ECHO" 1>&6 8775 echo "$as_me:$LINENO: result: $ECHO" >&5
8776echo "${ECHO_T}$ECHO" >&6
5861else 8777else
5862 echo "$ac_t""no" 1>&6 8778 echo "$as_me:$LINENO: result: no" >&5
8779echo "${ECHO_T}no" >&6
5863fi 8780fi
5864 8781
5865# 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.
5866set dummy cmp; ac_word=$2 8783set dummy cmp; ac_word=$2
8784echo "$as_me:$LINENO: checking for $ac_word" >&5
5867echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8785echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5868echo "configure:5869: checking for $ac_word" >&5
5869if eval "test \"`echo '$''{'ac_cv_path_CMP'+set}'`\" = set"; then 8786if test "${ac_cv_path_CMP+set}" = set; then
5870 echo $ac_n "(cached) $ac_c" 1>&6 8787 echo $ECHO_N "(cached) $ECHO_C" >&6
5871else 8788else
5872 case "$CMP" in 8789 case $CMP in
5873 /*) 8790 [\\/]* | ?:[\\/]*)
5874 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.
5875 ;; 8792 ;;
5876 ?:/*)
5877 ac_cv_path_CMP="$CMP" # Let the user override the test with a dos path.
5878 ;;
5879 *) 8793 *)
5880 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5881 ac_dummy="$PATH" 8795for as_dir in $PATH
5882 for ac_dir in $ac_dummy; do 8796do
8797 IFS=$as_save_IFS
5883 test -z "$ac_dir" && ac_dir=. 8798 test -z "$as_dir" && as_dir=.
5884 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
5885 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
5886 break 8803 break 2
5887 fi 8804 fi
5888 done 8805done
5889 IFS="$ac_save_ifs" 8806done
8807
5890 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" 8808 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5891 ;; 8809 ;;
5892esac 8810esac
5893fi 8811fi
5894CMP="$ac_cv_path_CMP" 8812CMP=$ac_cv_path_CMP
8813
5895if test -n "$CMP"; then 8814if test -n "$CMP"; then
5896 echo "$ac_t""$CMP" 1>&6 8815 echo "$as_me:$LINENO: result: $CMP" >&5
8816echo "${ECHO_T}$CMP" >&6
5897else 8817else
5898 echo "$ac_t""no" 1>&6 8818 echo "$as_me:$LINENO: result: no" >&5
8819echo "${ECHO_T}no" >&6
5899fi 8820fi
5900 8821
5901# 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.
5902set dummy tbl; ac_word=$2 8823set dummy tbl; ac_word=$2
8824echo "$as_me:$LINENO: checking for $ac_word" >&5
5903echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5904echo "configure:5905: checking for $ac_word" >&5
5905if eval "test \"`echo '$''{'ac_cv_path_TBL'+set}'`\" = set"; then 8826if test "${ac_cv_path_TBL+set}" = set; then
5906 echo $ac_n "(cached) $ac_c" 1>&6 8827 echo $ECHO_N "(cached) $ECHO_C" >&6
5907else 8828else
5908 case "$TBL" in 8829 case $TBL in
5909 /*) 8830 [\\/]* | ?:[\\/]*)
5910 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.
5911 ;; 8832 ;;
5912 ?:/*)
5913 ac_cv_path_TBL="$TBL" # Let the user override the test with a dos path.
5914 ;;
5915 *) 8833 *)
5916 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5917 ac_dummy="$PATH" 8835for as_dir in $PATH
5918 for ac_dir in $ac_dummy; do 8836do
8837 IFS=$as_save_IFS
5919 test -z "$ac_dir" && ac_dir=. 8838 test -z "$as_dir" && as_dir=.
5920 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
5921 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
5922 break 8843 break 2
5923 fi 8844 fi
5924 done 8845done
5925 IFS="$ac_save_ifs" 8846done
8847
5926 ;; 8848 ;;
5927esac 8849esac
5928fi 8850fi
5929TBL="$ac_cv_path_TBL" 8851TBL=$ac_cv_path_TBL
8852
5930if test -n "$TBL"; then 8853if test -n "$TBL"; then
5931 echo "$ac_t""$TBL" 1>&6 8854 echo "$as_me:$LINENO: result: $TBL" >&5
8855echo "${ECHO_T}$TBL" >&6
5932else 8856else
5933 echo "$ac_t""no" 1>&6 8857 echo "$as_me:$LINENO: result: no" >&5
8858echo "${ECHO_T}no" >&6
5934fi 8859fi
5935 8860
5936 8861
5937 8862
5938 8863
5939# If we find X, set shell vars x_includes and x_libraries to the 8864
5940# paths, otherwise set no_x=yes. 8865if test "x$ac_path_x_has_been_run" != xyes; then
5941# Uses ac_ vars as temps to allow command line to override cache and checks. 8866 echo "$as_me:$LINENO: checking for X" >&5
5942# --without-x overrides everything else, but does not touch the cache.
5943echo $ac_n "checking for X""... $ac_c" 1>&6 8867echo $ECHO_N "checking for X... $ECHO_C" >&6
5944echo "configure:5945: checking for X" >&5 8868
8869ac_path_x_has_been_run=yes
5945 8870
5946# Check whether --with-x or --without-x was given. 8871# Check whether --with-x or --without-x was given.
5947if test "${with_x+set}" = set; then 8872if test "${with_x+set}" = set; then
5948 withval="$with_x" 8873 withval="$with_x"
5949 : 8874
5950fi 8875fi;
5951
5952# $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.
5953if test "x$with_x" = xno; then 8877if test "x$with_x" = xno; then
5954 # The user explicitly disabled X. 8878 # The user explicitly disabled X.
5955 have_x=disabled 8879 have_x=disabled
5956else 8880else
5957 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
5958 # Both variables are already set. 8882 # Both variables are already set.
5959 have_x=yes 8883 have_x=yes
5960 else 8884 else
5961if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then 8885 if test "${ac_cv_have_x+set}" = set; then
5962 echo $ac_n "(cached) $ac_c" 1>&6 8886 echo $ECHO_N "(cached) $ECHO_C" >&6
5963else 8887else
5964 # 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.
5965ac_x_includes=NO ac_x_libraries=NO 8889ac_x_includes=no ac_x_libraries=no
5966rm -fr conftestdir 8890rm -fr conftest.dir
5967if mkdir conftestdir; then 8891if mkdir conftest.dir; then
5968 cd conftestdir 8892 cd conftest.dir
5969 # 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.
5970 cat > Imakefile <<'EOF' 8894 cat >Imakefile <<'_ACEOF'
5971acfindx: 8895acfindx:
5972 @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}"'
5973EOF 8897_ACEOF
5974 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 8898 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5975 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 8899 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5976 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 8900 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5977 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 8901 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5978 for ac_extension in a so sl; do 8902 for ac_extension in a so sl; do
5979 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && 8903 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5980 test -f $ac_im_libdir/libX11.$ac_extension; then 8904 test -f $ac_im_libdir/libX11.$ac_extension; then
5981 ac_im_usrlibdir=$ac_im_libdir; break 8905 ac_im_usrlibdir=$ac_im_libdir; break
5982 fi 8906 fi
5983 done 8907 done
5984 # Screen out bogus values from the imake configuration. They are 8908 # Screen out bogus values from the imake configuration. They are
5985 # bogus both because they are the default anyway, and because 8909 # bogus both because they are the default anyway, and because
5986 # 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.
5987 case "$ac_im_incroot" in 8911 case $ac_im_incroot in
5988 /usr/include) ;; 8912 /usr/include) ;;
5989 *) 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;;
5990 esac 8914 esac
5991 case "$ac_im_usrlibdir" in 8915 case $ac_im_usrlibdir in
5992 /usr/lib | /lib) ;; 8916 /usr/lib | /lib) ;;
5993 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; 8917 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5994 esac 8918 esac
5995 fi 8919 fi
5996 cd .. 8920 cd ..
5997 rm -fr conftestdir 8921 rm -fr conftest.dir
5998fi 8922fi
5999 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
6000if test "$ac_x_includes" = NO; then 8961if test "$ac_x_includes" = no; then
6001 # 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.
6002 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
6003
6004 # 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
6005cat > conftest.$ac_ext <<EOF 8968cat >>conftest.$ac_ext <<_ACEOF
6006#line 6007 "configure" 8969/* end confdefs.h. */
6007#include "confdefs.h" 8970#include <X11/Intrinsic.h>
6008#include <$x_direct_test_include> 8971_ACEOF
6009EOF 8972if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6010ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8973 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6011{ (eval echo configure:6012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8974 ac_status=$?
6012ac_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
6013if test -z "$ac_err"; then 8989if test -z "$ac_cpp_err"; then
6014 rm -rf conftest*
6015 # We can compile using X headers with no special include directory. 8990 # We can compile using X headers with no special include directory.
6016ac_x_includes= 8991ac_x_includes=
6017else 8992else
6018 echo "$ac_err" >&5
6019 echo "configure: failed program was:" >&5 8993 echo "$as_me: failed program was:" >&5
6020 cat conftest.$ac_ext >&5 8994sed 's/^/| /' conftest.$ac_ext >&5
6021 rm -rf conftest* 8995
6022 # Look for the header file in a standard set of common directories. 8996 for ac_dir in $ac_x_header_dirs; do
6023# Check X11 before X11Rn because it is often a symlink to the current release. 8997 if test -r "$ac_dir/X11/Intrinsic.h"; then
6024 for ac_dir in \
6025 /usr/X11/include \
6026 /usr/X11R6/include \
6027 /usr/X11R5/include \
6028 /usr/X11R4/include \
6029 \
6030 /usr/include/X11 \
6031 /usr/include/X11R6 \
6032 /usr/include/X11R5 \
6033 /usr/include/X11R4 \
6034 \
6035 /usr/local/X11/include \
6036 /usr/local/X11R6/include \
6037 /usr/local/X11R5/include \
6038 /usr/local/X11R4/include \
6039 \
6040 /usr/local/include/X11 \
6041 /usr/local/include/X11R6 \
6042 /usr/local/include/X11R5 \
6043 /usr/local/include/X11R4 \
6044 \
6045 /usr/X386/include \
6046 /usr/x386/include \
6047 /usr/XFree86/include/X11 \
6048 \
6049 /usr/include \
6050 /usr/local/include \
6051 /usr/unsupported/include \
6052 /usr/athena/include \
6053 /usr/local/x11r5/include \
6054 /usr/lpp/Xamples/include \
6055 \
6056 /usr/openwin/include \
6057 /usr/openwin/share/include \
6058 ; \
6059 do
6060 if test -r "$ac_dir/$x_direct_test_include"; then
6061 ac_x_includes=$ac_dir 8998 ac_x_includes=$ac_dir
6062 break 8999 break
6063 fi 9000 fi
6064 done 9001done
6065fi 9002fi
6066rm -f conftest* 9003rm -f conftest.err conftest.$ac_ext
6067fi # $ac_x_includes = NO 9004fi # $ac_x_includes = no
6068 9005
6069if test "$ac_x_libraries" = NO; then 9006if test "$ac_x_libraries" = no; then
6070 # Check for the libraries. 9007 # Check for the libraries.
6071
6072 test -z "$x_direct_test_library" && x_direct_test_library=Xt
6073 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
6074
6075 # See if we find them without any special options. 9008 # See if we find them without any special options.
6076 # Don't add to $LIBS permanently. 9009 # Don't add to $LIBS permanently.
6077 ac_save_LIBS="$LIBS" 9010 ac_save_LIBS=$LIBS
6078 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
6079cat > conftest.$ac_ext <<EOF 9016cat >>conftest.$ac_ext <<_ACEOF
6080#line 6081 "configure" 9017/* end confdefs.h. */
6081#include "confdefs.h" 9018#include <X11/Intrinsic.h>
6082 9019int
6083int main() { 9020main ()
6084${x_direct_test_function}() 9021{
9022XtMalloc (0)
9023 ;
6085; return 0; } 9024 return 0;
6086EOF 9025}
6087if { (eval echo configure:6088: \"$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
6088 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
6089 LIBS="$ac_save_LIBS" 9048 LIBS=$ac_save_LIBS
6090# We can link X programs with no special library path. 9049# We can link X programs with no special library path.
6091ac_x_libraries= 9050ac_x_libraries=
6092else 9051else
6093 echo "configure: failed program was:" >&5 9052 echo "$as_me: failed program was:" >&5
6094 cat conftest.$ac_ext >&5 9053sed 's/^/| /' conftest.$ac_ext >&5
6095 rm -rf conftest* 9054
6096 LIBS="$ac_save_LIBS" 9055LIBS=$ac_save_LIBS
6097# First see if replacing the include by lib works.
6098# Check X11 before X11Rn because it is often a symlink to the current release.
6099for 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`
6100 /usr/X11/lib \
6101 /usr/X11R6/lib \
6102 /usr/X11R5/lib \
6103 /usr/X11R4/lib \
6104 \
6105 /usr/lib/X11 \
6106 /usr/lib/X11R6 \
6107 /usr/lib/X11R5 \
6108 /usr/lib/X11R4 \
6109 \
6110 /usr/local/X11/lib \
6111 /usr/local/X11R6/lib \
6112 /usr/local/X11R5/lib \
6113 /usr/local/X11R4/lib \
6114 \
6115 /usr/local/lib/X11 \
6116 /usr/local/lib/X11R6 \
6117 /usr/local/lib/X11R5 \
6118 /usr/local/lib/X11R4 \
6119 \
6120 /usr/X386/lib \
6121 /usr/x386/lib \
6122 /usr/XFree86/lib/X11 \
6123 \
6124 /usr/lib \
6125 /usr/local/lib \
6126 /usr/unsupported/lib \
6127 /usr/athena/lib \
6128 /usr/local/x11r5/lib \
6129 /usr/lpp/Xamples/lib \
6130 /lib/usr/lib/X11 \
6131 \
6132 /usr/openwin/lib \
6133 /usr/openwin/share/lib \
6134 ; \
6135do 9057do
9058 # Don't even attempt the hair of trying to link an X program!
6136 for ac_extension in a so sl; do 9059 for ac_extension in a so sl; do
6137 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then 9060 if test -r $ac_dir/libXt.$ac_extension; then
6138 ac_x_libraries=$ac_dir 9061 ac_x_libraries=$ac_dir
6139 break 2 9062 break 2
6140 fi 9063 fi
6141 done 9064 done
6142done 9065done
6143fi 9066fi
6144rm -f conftest* 9067rm -f conftest.err conftest.$ac_objext \
9068 conftest$ac_exeext conftest.$ac_ext
6145fi # $ac_x_libraries = NO 9069fi # $ac_x_libraries = no
6146 9070
6147if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then 9071if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6148 # Didn't find X anywhere. Cache the known absence of X. 9072 # Didn't find X anywhere. Cache the known absence of X.
6149 ac_cv_have_x="have_x=no" 9073 ac_cv_have_x="have_x=no"
6150else 9074else
6151 # Record where we found X for the cache. 9075 # Record where we found X for the cache.
6152 ac_cv_have_x="have_x=yes \ 9076 ac_cv_have_x="have_x=yes \
6153 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"
6154fi 9078fi
6155fi 9079fi
9080
6156 fi 9081 fi
6157 eval "$ac_cv_have_x" 9082 eval "$ac_cv_have_x"
6158fi # $with_x != no 9083fi # $with_x != no
6159 9084
6160if test "$have_x" != yes; then 9085if test "$have_x" != yes; then
6161 echo "$ac_t""$have_x" 1>&6 9086 echo "$as_me:$LINENO: result: $have_x" >&5
9087echo "${ECHO_T}$have_x" >&6
6162 no_x=yes 9088 no_x=yes
6163else 9089else
6164 # 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.
6165 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 9091 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6166 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 9092 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6167 # Update the cache value to reflect the command line values. 9093 # Update the cache value to reflect the command line values.
6168 ac_cv_have_x="have_x=yes \ 9094 ac_cv_have_x="have_x=yes \
6169 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
6170 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 9101echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
6171fi 9102fi
6172 9103
9104fi
6173if test "$no_x" = yes; then 9105if test "$no_x" = yes; then
6174 # 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
6175 cat >> confdefs.h <<\EOF 9108cat >>confdefs.h <<\_ACEOF
6176#define X_DISPLAY_MISSING 1 9109#define X_DISPLAY_MISSING 1
6177EOF 9110_ACEOF
6178 9111
6179 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 9112 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6180else 9113else
6181 if test -n "$x_includes"; then 9114 if test -n "$x_includes"; then
6182 X_CFLAGS="$X_CFLAGS -I$x_includes" 9115 X_CFLAGS="$X_CFLAGS -I$x_includes"
6185 # 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.
6186 if test -n "$x_libraries"; then 9119 if test -n "$x_libraries"; then
6187 X_LIBS="$X_LIBS -L$x_libraries" 9120 X_LIBS="$X_LIBS -L$x_libraries"
6188 # 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
6189 # others require no space. Words are not sufficient . . . . 9122 # others require no space. Words are not sufficient . . . .
6190 case "`(uname -sr) 2>/dev/null`" in 9123 case `(uname -sr) 2>/dev/null` in
6191 "SunOS 5"*) 9124 "SunOS 5"*)
9125 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6192 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
6193echo "configure:6194: checking whether -R must be followed by a space" >&5
6194 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" 9127 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6195 cat > conftest.$ac_ext <<EOF 9128 cat >conftest.$ac_ext <<_ACEOF
6196#line 6197 "configure" 9129/* confdefs.h. */
6197#include "confdefs.h" 9130_ACEOF
9131cat confdefs.h >>conftest.$ac_ext
9132cat >>conftest.$ac_ext <<_ACEOF
9133/* end confdefs.h. */
6198 9134
6199int main() { 9135int
9136main ()
9137{
6200 9138
9139 ;
6201; return 0; } 9140 return 0;
6202EOF 9141}
6203if { (eval echo configure:6204: \"$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
6204 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
6205 ac_R_nospace=yes 9164 ac_R_nospace=yes
6206else 9165else
6207 echo "configure: failed program was:" >&5 9166 echo "$as_me: failed program was:" >&5
6208 cat conftest.$ac_ext >&5 9167sed 's/^/| /' conftest.$ac_ext >&5
6209 rm -rf conftest* 9168
6210 ac_R_nospace=no 9169ac_R_nospace=no
6211fi 9170fi
6212rm -f conftest* 9171rm -f conftest.err conftest.$ac_objext \
9172 conftest$ac_exeext conftest.$ac_ext
6213 if test $ac_R_nospace = yes; then 9173 if test $ac_R_nospace = yes; then
6214 echo "$ac_t""no" 1>&6 9174 echo "$as_me:$LINENO: result: no" >&5
9175echo "${ECHO_T}no" >&6
6215 X_LIBS="$X_LIBS -R$x_libraries" 9176 X_LIBS="$X_LIBS -R$x_libraries"
6216 else 9177 else
6217 LIBS="$ac_xsave_LIBS -R $x_libraries" 9178 LIBS="$ac_xsave_LIBS -R $x_libraries"
6218 cat > conftest.$ac_ext <<EOF 9179 cat >conftest.$ac_ext <<_ACEOF
6219#line 6220 "configure" 9180/* confdefs.h. */
6220#include "confdefs.h" 9181_ACEOF
9182cat confdefs.h >>conftest.$ac_ext
9183cat >>conftest.$ac_ext <<_ACEOF
9184/* end confdefs.h. */
6221 9185
6222int main() { 9186int
9187main ()
9188{
6223 9189
9190 ;
6224; return 0; } 9191 return 0;
6225EOF 9192}
6226if { (eval echo configure:6227: \"$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
6227 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
6228 ac_R_space=yes 9215 ac_R_space=yes
6229else 9216else
6230 echo "configure: failed program was:" >&5 9217 echo "$as_me: failed program was:" >&5
6231 cat conftest.$ac_ext >&5 9218sed 's/^/| /' conftest.$ac_ext >&5
6232 rm -rf conftest* 9219
6233 ac_R_space=no 9220ac_R_space=no
6234fi 9221fi
6235rm -f conftest* 9222rm -f conftest.err conftest.$ac_objext \
9223 conftest$ac_exeext conftest.$ac_ext
6236 if test $ac_R_space = yes; then 9224 if test $ac_R_space = yes; then
6237 echo "$ac_t""yes" 1>&6 9225 echo "$as_me:$LINENO: result: yes" >&5
9226echo "${ECHO_T}yes" >&6
6238 X_LIBS="$X_LIBS -R $x_libraries" 9227 X_LIBS="$X_LIBS -R $x_libraries"
6239 else 9228 else
9229 echo "$as_me:$LINENO: result: neither works" >&5
6240 echo "$ac_t""neither works" 1>&6 9230echo "${ECHO_T}neither works" >&6
6241 fi 9231 fi
6242 fi 9232 fi
6243 LIBS="$ac_xsave_LIBS" 9233 LIBS=$ac_xsave_LIBS
6244 esac 9234 esac
6245 fi 9235 fi
6246 9236
6247 # Check for system-dependent libraries X programs must link with. 9237 # Check for system-dependent libraries X programs must link with.
6248 # Do this before checking for the system-independent R6 libraries 9238 # Do this before checking for the system-independent R6 libraries
6249 # (-lICE), since we may need -lsocket or whatever for X linking. 9239 # (-lICE), since we may need -lsocket or whatever for X linking.
6250 9240
6251 if test "$ISC" = yes; then 9241 if test "$ISC" = yes; then
6252 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 9242 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6253 else 9243 else
6254 # 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
6255 # libraries were built with DECnet support. And karl@cs.umb.edu says 9245 # libraries were built with DECnet support. And Karl Berry says
6256 # 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
6257 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
6258echo "configure:6259: checking for dnet_ntoa in -ldnet" >&5 9298if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6259ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6260if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6261 echo $ac_n "(cached) $ac_c" 1>&6 9299 echo $ECHO_N "(cached) $ECHO_C" >&6
6262else 9300else
6263 ac_save_LIBS="$LIBS" 9301 ac_check_lib_save_LIBS=$LIBS
6264LIBS="-ldnet $LIBS" 9302LIBS="-ldnet $LIBS"
6265cat > conftest.$ac_ext <<EOF 9303cat >conftest.$ac_ext <<_ACEOF
6266#line 6267 "configure" 9304/* confdefs.h. */
6267#include "confdefs.h" 9305_ACEOF
9306cat confdefs.h >>conftest.$ac_ext
9307cat >>conftest.$ac_ext <<_ACEOF
9308/* end confdefs.h. */
9309
6268/* 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
6269/* 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
6270 builtin and then its argument prototype would still apply. */ 9315 builtin and then its argument prototype would still apply. */
6271char dnet_ntoa(); 9316char dnet_ntoa ();
6272 9317int
6273int main() { 9318main ()
9319{
6274dnet_ntoa() 9320dnet_ntoa ();
9321 ;
6275; return 0; } 9322 return 0;
6276EOF 9323}
6277if { (eval echo configure:6278: \"$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
6278 rm -rf conftest* 9330 rm -f conftest.er1
6279 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
6280else 9347else
6281 echo "configure: failed program was:" >&5 9348 echo "$as_me: failed program was:" >&5
6282 cat conftest.$ac_ext >&5 9349sed 's/^/| /' conftest.$ac_ext >&5
6283 rm -rf conftest* 9350
6284 eval "ac_cv_lib_$ac_lib_var=no" 9351ac_cv_lib_dnet_dnet_ntoa=no
6285fi 9352fi
6286rm -f conftest* 9353rm -f conftest.err conftest.$ac_objext \
9354 conftest$ac_exeext conftest.$ac_ext
6287LIBS="$ac_save_LIBS" 9355LIBS=$ac_check_lib_save_LIBS
6288
6289fi 9356fi
6290if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 9357echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6291 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
6292 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 9360 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6293else
6294 echo "$ac_t""no" 1>&6
6295fi 9361fi
6296 9362
6297 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
6298 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
6299echo "configure:6300: checking for dnet_ntoa in -ldnet_stub" >&5 9366if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6300ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6301if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6302 echo $ac_n "(cached) $ac_c" 1>&6 9367 echo $ECHO_N "(cached) $ECHO_C" >&6
6303else 9368else
6304 ac_save_LIBS="$LIBS" 9369 ac_check_lib_save_LIBS=$LIBS
6305LIBS="-ldnet_stub $LIBS" 9370LIBS="-ldnet_stub $LIBS"
6306cat > conftest.$ac_ext <<EOF 9371cat >conftest.$ac_ext <<_ACEOF
6307#line 6308 "configure" 9372/* confdefs.h. */
6308#include "confdefs.h" 9373_ACEOF
9374cat confdefs.h >>conftest.$ac_ext
9375cat >>conftest.$ac_ext <<_ACEOF
9376/* end confdefs.h. */
9377
6309/* 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
6310/* 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
6311 builtin and then its argument prototype would still apply. */ 9383 builtin and then its argument prototype would still apply. */
6312char dnet_ntoa(); 9384char dnet_ntoa ();
6313 9385int
6314int main() { 9386main ()
9387{
6315dnet_ntoa() 9388dnet_ntoa ();
9389 ;
6316; return 0; } 9390 return 0;
6317EOF 9391}
6318if { (eval echo configure:6319: \"$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
6319 rm -rf conftest* 9398 rm -f conftest.er1
6320 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
6321else 9415else
6322 echo "configure: failed program was:" >&5 9416 echo "$as_me: failed program was:" >&5
6323 cat conftest.$ac_ext >&5 9417sed 's/^/| /' conftest.$ac_ext >&5
6324 rm -rf conftest* 9418
6325 eval "ac_cv_lib_$ac_lib_var=no" 9419ac_cv_lib_dnet_stub_dnet_ntoa=no
6326fi 9420fi
6327rm -f conftest* 9421rm -f conftest.err conftest.$ac_objext \
9422 conftest$ac_exeext conftest.$ac_ext
6328LIBS="$ac_save_LIBS" 9423LIBS=$ac_check_lib_save_LIBS
6329
6330fi 9424fi
6331if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 9425echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6332 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
6333 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 9428 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6334else
6335 echo "$ac_t""no" 1>&6
6336fi 9429fi
6337 9430
6338 fi 9431 fi
9432fi
9433rm -f conftest.err conftest.$ac_objext \
9434 conftest$ac_exeext conftest.$ac_ext
9435 LIBS="$ac_xsave_LIBS"
6339 9436
6340 # 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,
6341 # to get the SysV transport functions. 9438 # to get the SysV transport functions.
6342 # 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)
6343 # needs -lnsl. 9440 # needs -lnsl.
6344 # The nsl library prevents programs from opening the X display 9441 # The nsl library prevents programs from opening the X display
6345 # 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
6346 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 9446echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
6347echo "configure:6348: checking for gethostbyname" >&5
6348if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then 9447if test "${ac_cv_func_gethostbyname+set}" = set; then
6349 echo $ac_n "(cached) $ac_c" 1>&6 9448 echo $ECHO_N "(cached) $ECHO_C" >&6
6350else 9449else
6351 cat > conftest.$ac_ext <<EOF 9450 cat >conftest.$ac_ext <<_ACEOF
6352#line 6353 "configure" 9451/* confdefs.h. */
6353#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
6354/* System header to define __stub macros and hopefully few prototypes, 9460/* System header to define __stub macros and hopefully few prototypes,
6355 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
6356#include <assert.h> 9468# include <assert.h>
9469#endif
9470
9471#undef gethostbyname
9472
6357/* 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
6358/* 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
6359 builtin and then its argument prototype would still apply. */ 9479 builtin and then its argument prototype would still apply. */
6360char gethostbyname(); 9480char gethostbyname ();
6361
6362int main() {
6363
6364/* The GNU C library defines this for functions which it implements 9481/* The GNU C library defines this for functions which it implements
6365 to always fail with ENOSYS. Some functions are actually named 9482 to always fail with ENOSYS. Some functions are actually named
6366 something starting with __ and the normal name is an alias. */ 9483 something starting with __ and the normal name is an alias. */
6367#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) 9484#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6368choke me 9485choke me
6369#else 9486#else
6370gethostbyname(); 9487char (*f) () = gethostbyname;
6371#endif 9488#endif
9489#ifdef __cplusplus
9490}
9491#endif
6372 9492
9493int
9494main ()
9495{
9496return f != gethostbyname;
9497 ;
6373; return 0; } 9498 return 0;
6374EOF 9499}
6375if { (eval echo configure:6376: \"$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
6376 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
6377 eval "ac_cv_func_gethostbyname=yes" 9522 ac_cv_func_gethostbyname=yes
6378else 9523else
6379 echo "configure: failed program was:" >&5 9524 echo "$as_me: failed program was:" >&5
6380 cat conftest.$ac_ext >&5 9525sed 's/^/| /' conftest.$ac_ext >&5
6381 rm -rf conftest* 9526
6382 eval "ac_cv_func_gethostbyname=no" 9527ac_cv_func_gethostbyname=no
6383fi 9528fi
6384rm -f conftest* 9529rm -f conftest.err conftest.$ac_objext \
9530 conftest$ac_exeext conftest.$ac_ext
6385fi 9531fi
6386 9532echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6387if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then 9533echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
6388 echo "$ac_t""yes" 1>&6
6389 :
6390else
6391 echo "$ac_t""no" 1>&6
6392fi
6393 9534
6394 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
6395 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 9537echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6396echo "configure:6397: checking for gethostbyname in -lnsl" >&5 9538if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6397ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
6398if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6399 echo $ac_n "(cached) $ac_c" 1>&6 9539 echo $ECHO_N "(cached) $ECHO_C" >&6
6400else 9540else
6401 ac_save_LIBS="$LIBS" 9541 ac_check_lib_save_LIBS=$LIBS
6402LIBS="-lnsl $LIBS" 9542LIBS="-lnsl $LIBS"
6403cat > conftest.$ac_ext <<EOF 9543cat >conftest.$ac_ext <<_ACEOF
6404#line 6405 "configure" 9544/* confdefs.h. */
6405#include "confdefs.h" 9545_ACEOF
9546cat confdefs.h >>conftest.$ac_ext
9547cat >>conftest.$ac_ext <<_ACEOF
9548/* end confdefs.h. */
9549
6406/* 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
6407/* 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
6408 builtin and then its argument prototype would still apply. */ 9555 builtin and then its argument prototype would still apply. */
6409char gethostbyname(); 9556char gethostbyname ();
6410 9557int
6411int main() { 9558main ()
9559{
6412gethostbyname() 9560gethostbyname ();
9561 ;
6413; return 0; } 9562 return 0;
6414EOF 9563}
6415if { (eval echo configure:6416: \"$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
6416 rm -rf conftest* 9570 rm -f conftest.er1
6417 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
6418else 9587else
6419 echo "configure: failed program was:" >&5 9588 echo "$as_me: failed program was:" >&5
6420 cat conftest.$ac_ext >&5 9589sed 's/^/| /' conftest.$ac_ext >&5
6421 rm -rf conftest* 9590
6422 eval "ac_cv_lib_$ac_lib_var=no" 9591ac_cv_lib_nsl_gethostbyname=no
6423fi 9592fi
6424rm -f conftest* 9593rm -f conftest.err conftest.$ac_objext \
9594 conftest$ac_exeext conftest.$ac_ext
6425LIBS="$ac_save_LIBS" 9595LIBS=$ac_check_lib_save_LIBS
6426
6427fi 9596fi
6428if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 9597echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6429 echo "$ac_t""yes" 1>&6 9598echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9599if test $ac_cv_lib_nsl_gethostbyname = yes; then
6430 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 9600 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6431else
6432 echo "$ac_t""no" 1>&6
6433fi 9601fi
6434 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
6435 fi 9672 fi
6436 9673
6437 # lieder@skyler.mavd.honeywell.com says without -lsocket, 9674 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6438 # socket/setsockopt and other routines are undefined under SCO ODT 9675 # socket/setsockopt and other routines are undefined under SCO ODT
6439 # 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
6440 # on later versions), says simon@lia.di.epfl.ch: it contains 9677 # on later versions), says Simon Leinen: it contains gethostby*
6441 # gethostby* variants that don't use the nameserver (or something). 9678 # variants that don't use the name server (or something). -lsocket
6442 # -lsocket must be given before -lnsl if both are needed. 9679 # must be given before -lnsl if both are needed. We assume that
6443 # 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
6444 echo $ac_n "checking for connect""... $ac_c" 1>&6 9682echo $ECHO_N "checking for connect... $ECHO_C" >&6
6445echo "configure:6446: checking for connect" >&5
6446if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then 9683if test "${ac_cv_func_connect+set}" = set; then
6447 echo $ac_n "(cached) $ac_c" 1>&6 9684 echo $ECHO_N "(cached) $ECHO_C" >&6
6448else 9685else
6449 cat > conftest.$ac_ext <<EOF 9686 cat >conftest.$ac_ext <<_ACEOF
6450#line 6451 "configure" 9687/* confdefs.h. */
6451#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
6452/* System header to define __stub macros and hopefully few prototypes, 9696/* System header to define __stub macros and hopefully few prototypes,
6453 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
6454#include <assert.h> 9704# include <assert.h>
9705#endif
9706
9707#undef connect
9708
6455/* 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
6456/* 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
6457 builtin and then its argument prototype would still apply. */ 9715 builtin and then its argument prototype would still apply. */
6458char connect(); 9716char connect ();
6459
6460int main() {
6461
6462/* The GNU C library defines this for functions which it implements 9717/* The GNU C library defines this for functions which it implements
6463 to always fail with ENOSYS. Some functions are actually named 9718 to always fail with ENOSYS. Some functions are actually named
6464 something starting with __ and the normal name is an alias. */ 9719 something starting with __ and the normal name is an alias. */
6465#if defined (__stub_connect) || defined (__stub___connect) 9720#if defined (__stub_connect) || defined (__stub___connect)
6466choke me 9721choke me
6467#else 9722#else
6468connect(); 9723char (*f) () = connect;
6469#endif 9724#endif
9725#ifdef __cplusplus
9726}
9727#endif
6470 9728
9729int
9730main ()
9731{
9732return f != connect;
9733 ;
6471; return 0; } 9734 return 0;
6472EOF 9735}
6473if { (eval echo configure:6474: \"$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
6474 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
6475 eval "ac_cv_func_connect=yes" 9758 ac_cv_func_connect=yes
6476else 9759else
6477 echo "configure: failed program was:" >&5 9760 echo "$as_me: failed program was:" >&5
6478 cat conftest.$ac_ext >&5 9761sed 's/^/| /' conftest.$ac_ext >&5
6479 rm -rf conftest* 9762
6480 eval "ac_cv_func_connect=no" 9763ac_cv_func_connect=no
6481fi 9764fi
6482rm -f conftest* 9765rm -f conftest.err conftest.$ac_objext \
9766 conftest$ac_exeext conftest.$ac_ext
6483fi 9767fi
6484 9768echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6485if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then 9769echo "${ECHO_T}$ac_cv_func_connect" >&6
6486 echo "$ac_t""yes" 1>&6
6487 :
6488else
6489 echo "$ac_t""no" 1>&6
6490fi
6491 9770
6492 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
6493 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 9773echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6494echo "configure:6495: checking for connect in -lsocket" >&5 9774if test "${ac_cv_lib_socket_connect+set}" = set; then
6495ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
6496if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6497 echo $ac_n "(cached) $ac_c" 1>&6 9775 echo $ECHO_N "(cached) $ECHO_C" >&6
6498else 9776else
6499 ac_save_LIBS="$LIBS" 9777 ac_check_lib_save_LIBS=$LIBS
6500LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 9778LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6501cat > conftest.$ac_ext <<EOF 9779cat >conftest.$ac_ext <<_ACEOF
6502#line 6503 "configure" 9780/* confdefs.h. */
6503#include "confdefs.h" 9781_ACEOF
9782cat confdefs.h >>conftest.$ac_ext
9783cat >>conftest.$ac_ext <<_ACEOF
9784/* end confdefs.h. */
9785
6504/* 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
6505/* 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
6506 builtin and then its argument prototype would still apply. */ 9791 builtin and then its argument prototype would still apply. */
6507char connect(); 9792char connect ();
6508 9793int
6509int main() { 9794main ()
9795{
6510connect() 9796connect ();
9797 ;
6511; return 0; } 9798 return 0;
6512EOF 9799}
6513if { (eval echo configure:6514: \"$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
6514 rm -rf conftest* 9806 rm -f conftest.er1
6515 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
6516else 9823else
6517 echo "configure: failed program was:" >&5 9824 echo "$as_me: failed program was:" >&5
6518 cat conftest.$ac_ext >&5 9825sed 's/^/| /' conftest.$ac_ext >&5
6519 rm -rf conftest* 9826
6520 eval "ac_cv_lib_$ac_lib_var=no" 9827ac_cv_lib_socket_connect=no
6521fi 9828fi
6522rm -f conftest* 9829rm -f conftest.err conftest.$ac_objext \
9830 conftest$ac_exeext conftest.$ac_ext
6523LIBS="$ac_save_LIBS" 9831LIBS=$ac_check_lib_save_LIBS
6524
6525fi 9832fi
6526if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 9833echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6527 echo "$ac_t""yes" 1>&6 9834echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
9835if test $ac_cv_lib_socket_connect = yes; then
6528 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 9836 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6529else
6530 echo "$ac_t""no" 1>&6
6531fi 9837fi
6532 9838
6533 fi 9839 fi
6534 9840
6535 # 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
6536 echo $ac_n "checking for remove""... $ac_c" 1>&6 9843echo $ECHO_N "checking for remove... $ECHO_C" >&6
6537echo "configure:6538: checking for remove" >&5
6538if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then 9844if test "${ac_cv_func_remove+set}" = set; then
6539 echo $ac_n "(cached) $ac_c" 1>&6 9845 echo $ECHO_N "(cached) $ECHO_C" >&6
6540else 9846else
6541 cat > conftest.$ac_ext <<EOF 9847 cat >conftest.$ac_ext <<_ACEOF
6542#line 6543 "configure" 9848/* confdefs.h. */
6543#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
6544/* System header to define __stub macros and hopefully few prototypes, 9857/* System header to define __stub macros and hopefully few prototypes,
6545 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
6546#include <assert.h> 9865# include <assert.h>
9866#endif
9867
9868#undef remove
9869
6547/* 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
6548/* 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
6549 builtin and then its argument prototype would still apply. */ 9876 builtin and then its argument prototype would still apply. */
6550char remove(); 9877char remove ();
6551
6552int main() {
6553
6554/* The GNU C library defines this for functions which it implements 9878/* The GNU C library defines this for functions which it implements
6555 to always fail with ENOSYS. Some functions are actually named 9879 to always fail with ENOSYS. Some functions are actually named
6556 something starting with __ and the normal name is an alias. */ 9880 something starting with __ and the normal name is an alias. */
6557#if defined (__stub_remove) || defined (__stub___remove) 9881#if defined (__stub_remove) || defined (__stub___remove)
6558choke me 9882choke me
6559#else 9883#else
6560remove(); 9884char (*f) () = remove;
6561#endif 9885#endif
9886#ifdef __cplusplus
9887}
9888#endif
6562 9889
9890int
9891main ()
9892{
9893return f != remove;
9894 ;
6563; return 0; } 9895 return 0;
6564EOF 9896}
6565if { (eval echo configure:6566: \"$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
6566 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
6567 eval "ac_cv_func_remove=yes" 9919 ac_cv_func_remove=yes
6568else 9920else
6569 echo "configure: failed program was:" >&5 9921 echo "$as_me: failed program was:" >&5
6570 cat conftest.$ac_ext >&5 9922sed 's/^/| /' conftest.$ac_ext >&5
6571 rm -rf conftest* 9923
6572 eval "ac_cv_func_remove=no" 9924ac_cv_func_remove=no
6573fi 9925fi
6574rm -f conftest* 9926rm -f conftest.err conftest.$ac_objext \
9927 conftest$ac_exeext conftest.$ac_ext
6575fi 9928fi
6576 9929echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6577if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then 9930echo "${ECHO_T}$ac_cv_func_remove" >&6
6578 echo "$ac_t""yes" 1>&6
6579 :
6580else
6581 echo "$ac_t""no" 1>&6
6582fi
6583 9931
6584 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
6585 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 9934echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
6586echo "configure:6587: checking for remove in -lposix" >&5 9935if test "${ac_cv_lib_posix_remove+set}" = set; then
6587ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
6588if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6589 echo $ac_n "(cached) $ac_c" 1>&6 9936 echo $ECHO_N "(cached) $ECHO_C" >&6
6590else 9937else
6591 ac_save_LIBS="$LIBS" 9938 ac_check_lib_save_LIBS=$LIBS
6592LIBS="-lposix $LIBS" 9939LIBS="-lposix $LIBS"
6593cat > conftest.$ac_ext <<EOF 9940cat >conftest.$ac_ext <<_ACEOF
6594#line 6595 "configure" 9941/* confdefs.h. */
6595#include "confdefs.h" 9942_ACEOF
9943cat confdefs.h >>conftest.$ac_ext
9944cat >>conftest.$ac_ext <<_ACEOF
9945/* end confdefs.h. */
9946
6596/* 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
6597/* 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
6598 builtin and then its argument prototype would still apply. */ 9952 builtin and then its argument prototype would still apply. */
6599char remove(); 9953char remove ();
6600 9954int
6601int main() { 9955main ()
9956{
6602remove() 9957remove ();
9958 ;
6603; return 0; } 9959 return 0;
6604EOF 9960}
6605if { (eval echo configure:6606: \"$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
6606 rm -rf conftest* 9967 rm -f conftest.er1
6607 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
6608else 9984else
6609 echo "configure: failed program was:" >&5 9985 echo "$as_me: failed program was:" >&5
6610 cat conftest.$ac_ext >&5 9986sed 's/^/| /' conftest.$ac_ext >&5
6611 rm -rf conftest* 9987
6612 eval "ac_cv_lib_$ac_lib_var=no" 9988ac_cv_lib_posix_remove=no
6613fi 9989fi
6614rm -f conftest* 9990rm -f conftest.err conftest.$ac_objext \
9991 conftest$ac_exeext conftest.$ac_ext
6615LIBS="$ac_save_LIBS" 9992LIBS=$ac_check_lib_save_LIBS
6616
6617fi 9993fi
6618if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 9994echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6619 echo "$ac_t""yes" 1>&6 9995echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
9996if test $ac_cv_lib_posix_remove = yes; then
6620 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 9997 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6621else
6622 echo "$ac_t""no" 1>&6
6623fi 9998fi
6624 9999
6625 fi 10000 fi
6626 10001
6627 # 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
6628 echo $ac_n "checking for shmat""... $ac_c" 1>&6 10004echo $ECHO_N "checking for shmat... $ECHO_C" >&6
6629echo "configure:6630: checking for shmat" >&5
6630if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then 10005if test "${ac_cv_func_shmat+set}" = set; then
6631 echo $ac_n "(cached) $ac_c" 1>&6 10006 echo $ECHO_N "(cached) $ECHO_C" >&6
6632else 10007else
6633 cat > conftest.$ac_ext <<EOF 10008 cat >conftest.$ac_ext <<_ACEOF
6634#line 6635 "configure" 10009/* confdefs.h. */
6635#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
6636/* System header to define __stub macros and hopefully few prototypes, 10018/* System header to define __stub macros and hopefully few prototypes,
6637 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
6638#include <assert.h> 10026# include <assert.h>
10027#endif
10028
10029#undef shmat
10030
6639/* 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
6640/* 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
6641 builtin and then its argument prototype would still apply. */ 10037 builtin and then its argument prototype would still apply. */
6642char shmat(); 10038char shmat ();
6643
6644int main() {
6645
6646/* The GNU C library defines this for functions which it implements 10039/* The GNU C library defines this for functions which it implements
6647 to always fail with ENOSYS. Some functions are actually named 10040 to always fail with ENOSYS. Some functions are actually named
6648 something starting with __ and the normal name is an alias. */ 10041 something starting with __ and the normal name is an alias. */
6649#if defined (__stub_shmat) || defined (__stub___shmat) 10042#if defined (__stub_shmat) || defined (__stub___shmat)
6650choke me 10043choke me
6651#else 10044#else
6652shmat(); 10045char (*f) () = shmat;
6653#endif 10046#endif
10047#ifdef __cplusplus
10048}
10049#endif
6654 10050
10051int
10052main ()
10053{
10054return f != shmat;
10055 ;
6655; return 0; } 10056 return 0;
6656EOF 10057}
6657if { (eval echo configure:6658: \"$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
6658 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
6659 eval "ac_cv_func_shmat=yes" 10080 ac_cv_func_shmat=yes
6660else 10081else
6661 echo "configure: failed program was:" >&5 10082 echo "$as_me: failed program was:" >&5
6662 cat conftest.$ac_ext >&5 10083sed 's/^/| /' conftest.$ac_ext >&5
6663 rm -rf conftest* 10084
6664 eval "ac_cv_func_shmat=no" 10085ac_cv_func_shmat=no
6665fi 10086fi
6666rm -f conftest* 10087rm -f conftest.err conftest.$ac_objext \
10088 conftest$ac_exeext conftest.$ac_ext
6667fi 10089fi
6668 10090echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6669if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then 10091echo "${ECHO_T}$ac_cv_func_shmat" >&6
6670 echo "$ac_t""yes" 1>&6
6671 :
6672else
6673 echo "$ac_t""no" 1>&6
6674fi
6675 10092
6676 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
6677 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 10095echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
6678echo "configure:6679: checking for shmat in -lipc" >&5 10096if test "${ac_cv_lib_ipc_shmat+set}" = set; then
6679ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
6680if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6681 echo $ac_n "(cached) $ac_c" 1>&6 10097 echo $ECHO_N "(cached) $ECHO_C" >&6
6682else 10098else
6683 ac_save_LIBS="$LIBS" 10099 ac_check_lib_save_LIBS=$LIBS
6684LIBS="-lipc $LIBS" 10100LIBS="-lipc $LIBS"
6685cat > conftest.$ac_ext <<EOF 10101cat >conftest.$ac_ext <<_ACEOF
6686#line 6687 "configure" 10102/* confdefs.h. */
6687#include "confdefs.h" 10103_ACEOF
10104cat confdefs.h >>conftest.$ac_ext
10105cat >>conftest.$ac_ext <<_ACEOF
10106/* end confdefs.h. */
10107
6688/* 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
6689/* 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
6690 builtin and then its argument prototype would still apply. */ 10113 builtin and then its argument prototype would still apply. */
6691char shmat(); 10114char shmat ();
6692 10115int
6693int main() { 10116main ()
10117{
6694shmat() 10118shmat ();
10119 ;
6695; return 0; } 10120 return 0;
6696EOF 10121}
6697if { (eval echo configure:6698: \"$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
6698 rm -rf conftest* 10128 rm -f conftest.er1
6699 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
6700else 10145else
6701 echo "configure: failed program was:" >&5 10146 echo "$as_me: failed program was:" >&5
6702 cat conftest.$ac_ext >&5 10147sed 's/^/| /' conftest.$ac_ext >&5
6703 rm -rf conftest* 10148
6704 eval "ac_cv_lib_$ac_lib_var=no" 10149ac_cv_lib_ipc_shmat=no
6705fi 10150fi
6706rm -f conftest* 10151rm -f conftest.err conftest.$ac_objext \
10152 conftest$ac_exeext conftest.$ac_ext
6707LIBS="$ac_save_LIBS" 10153LIBS=$ac_check_lib_save_LIBS
6708
6709fi 10154fi
6710if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 10155echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6711 echo "$ac_t""yes" 1>&6 10156echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
10157if test $ac_cv_lib_ipc_shmat = yes; then
6712 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 10158 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6713else
6714 echo "$ac_t""no" 1>&6
6715fi 10159fi
6716 10160
6717 fi 10161 fi
6718 fi 10162 fi
6719 10163
6720 # Check for libraries that X11R6 Xt/Xaw programs need. 10164 # Check for libraries that X11R6 Xt/Xaw programs need.
6721 ac_save_LDFLAGS="$LDFLAGS" 10165 ac_save_LDFLAGS=$LDFLAGS
6722 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 10166 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6723 # 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
6724 # 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
6725 # 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.
6726 # These have to be linked with before -lX11, unlike the other 10170 # These have to be linked with before -lX11, unlike the other
6727 # libraries we check for below, so use a different variable. 10171 # libraries we check for below, so use a different variable.
6728 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. 10172 # John Interrante, Karl Berry
10173 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6729 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 10174echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6730echo "configure:6731: checking for IceConnectionNumber in -lICE" >&5 10175if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6731ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
6732if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6733 echo $ac_n "(cached) $ac_c" 1>&6 10176 echo $ECHO_N "(cached) $ECHO_C" >&6
6734else 10177else
6735 ac_save_LIBS="$LIBS" 10178 ac_check_lib_save_LIBS=$LIBS
6736LIBS="-lICE $X_EXTRA_LIBS $LIBS" 10179LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6737cat > conftest.$ac_ext <<EOF 10180cat >conftest.$ac_ext <<_ACEOF
6738#line 6739 "configure" 10181/* confdefs.h. */
6739#include "confdefs.h" 10182_ACEOF
10183cat confdefs.h >>conftest.$ac_ext
10184cat >>conftest.$ac_ext <<_ACEOF
10185/* end confdefs.h. */
10186
6740/* 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
6741/* 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
6742 builtin and then its argument prototype would still apply. */ 10192 builtin and then its argument prototype would still apply. */
6743char IceConnectionNumber(); 10193char IceConnectionNumber ();
6744 10194int
6745int main() { 10195main ()
10196{
6746IceConnectionNumber() 10197IceConnectionNumber ();
10198 ;
6747; return 0; } 10199 return 0;
6748EOF 10200}
6749if { (eval echo configure:6750: \"$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
6750 rm -rf conftest* 10207 rm -f conftest.er1
6751 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
6752else 10224else
6753 echo "configure: failed program was:" >&5 10225 echo "$as_me: failed program was:" >&5
6754 cat conftest.$ac_ext >&5 10226sed 's/^/| /' conftest.$ac_ext >&5
6755 rm -rf conftest* 10227
6756 eval "ac_cv_lib_$ac_lib_var=no" 10228ac_cv_lib_ICE_IceConnectionNumber=no
6757fi 10229fi
6758rm -f conftest* 10230rm -f conftest.err conftest.$ac_objext \
10231 conftest$ac_exeext conftest.$ac_ext
6759LIBS="$ac_save_LIBS" 10232LIBS=$ac_check_lib_save_LIBS
6760
6761fi 10233fi
6762if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 10234echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6763 echo "$ac_t""yes" 1>&6 10235echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
10236if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6764 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 10237 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6765else
6766 echo "$ac_t""no" 1>&6
6767fi 10238fi
6768 10239
6769 LDFLAGS="$ac_save_LDFLAGS" 10240 LDFLAGS=$ac_save_LDFLAGS
6770 10241
6771fi 10242fi
6772 10243
6773 10244
6774 10245
6775if test x$support_xpm = xyes; then 10246if test x$support_xpm = xyes; then
6776 10247
6777 10248
6778 10249
6779# Initialize some more variables set by options. 10250# Initialize some more variables set by options.
6780# The variables have the same names as the options, with 10251# The variables have the same names as the options, with
6781# dashes changed to underlines. 10252# dashes changed to underlines.
6782 10253
6783# 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
6784# paths, otherwise set no_xpm=yes. 10255# paths, otherwise set no_xpm=yes.
6785# 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
6786echo $ac_n "checking for libXpm""... $ac_c" 1>&6 10258echo $ECHO_N "checking for libXpm... $ECHO_C" >&6
6787echo "configure:6788: checking for libXpm" >&5 10259
6788 10260
6789# Check whether --with-xpm_includes or --without-xpm_includes was given. 10261# Check whether --with-xpm_includes or --without-xpm_includes was given.
6790if test "${with_xpm_includes+set}" = set; then 10262if test "${with_xpm_includes+set}" = set; then
6791 withval="$with_xpm_includes" 10263 withval="$with_xpm_includes"
6792 xpm_includes="$withval" 10264 xpm_includes="$withval"
6793else 10265else
6794 xpm_includes=NO 10266 xpm_includes=NO
6795fi 10267fi;
6796 10268
6797# Check whether --with-xpm_library or --without-xpm_library was given. 10269# Check whether --with-xpm_library or --without-xpm_library was given.
6798if test "${with_xpm_library+set}" = set; then 10270if test "${with_xpm_library+set}" = set; then
6799 withval="$with_xpm_library" 10271 withval="$with_xpm_library"
6800 xpm_libraries="$withval" 10272 xpm_libraries="$withval"
6801else 10273else
6802 xpm_libraries=NO 10274 xpm_libraries=NO
6803fi 10275fi;
6804
6805 10276
6806# --without-xpm overrides everything else, but does not touch the cache. 10277# --without-xpm overrides everything else, but does not touch the cache.
10278
6807# Check whether --with-xpm or --without-xpm was given. 10279# Check whether --with-xpm or --without-xpm was given.
6808if test "${with_xpm+set}" = set; then 10280if test "${with_xpm+set}" = set; then
6809 withval="$with_xpm" 10281 withval="$with_xpm"
6810 : 10282
6811fi 10283fi;
6812
6813if test "$with_xpm" = no; then 10284if test "$with_xpm" = no; then
6814 have_xpm=disabled 10285 have_xpm=disabled
6815else 10286else
6816 if eval "test \"`echo '$''{'ac_cv_have_xpm'+set}'`\" = set"; then 10287 if test "${ac_cv_have_xpm+set}" = set; then
6817 echo $ac_n "(cached) $ac_c" 1>&6 10288 echo $ECHO_N "(cached) $ECHO_C" >&6
6818else 10289else
6819 10290
6820 vt_xpm_include_X11=no 10291 vt_xpm_include_X11=no
6821 if test -n "$xpm_includes"; then 10292 if test -n "$xpm_includes"; then
6822 vt_xpm_includes=$xpm_includes 10293 vt_xpm_includes=$xpm_includes
6823 else 10294 else
6824 vt_xpm_includes=NO 10295 vt_xpm_includes=NO
6834 10305
6835ac_save_CPPFLAGS="$CPPFLAGS" 10306ac_save_CPPFLAGS="$CPPFLAGS"
6836CPPFLAGS="$CPPFLAGS $X_CFLAGS" 10307CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6837 10308
6838 # First, try using that file with no special directory specified. 10309 # First, try using that file with no special directory specified.
6839cat > conftest.$ac_ext <<EOF 10310cat >conftest.$ac_ext <<_ACEOF
6840#line 6841 "configure" 10311/* confdefs.h. */
6841#include "confdefs.h" 10312_ACEOF
10313cat confdefs.h >>conftest.$ac_ext
10314cat >>conftest.$ac_ext <<_ACEOF
10315/* end confdefs.h. */
6842#include <X11/xpm.h> 10316#include <X11/xpm.h>
6843EOF 10317_ACEOF
6844ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10318if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6845{ (eval echo configure:6846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10319 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6846ac_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
6847if test -z "$ac_err"; then 10335if test -z "$ac_cpp_err"; then
6848 rm -rf conftest*
6849 # We can compile using X headers with no special include directory. 10336 # We can compile using X headers with no special include directory.
6850vt_xpm_includes= 10337vt_xpm_includes=
6851vt_xpm_include_X11=yes 10338vt_xpm_include_X11=yes
6852else 10339else
6853 echo "$ac_err" >&5
6854 echo "configure: failed program was:" >&5 10340 echo "$as_me: failed program was:" >&5
6855 cat conftest.$ac_ext >&5 10341sed 's/^/| /' conftest.$ac_ext >&5
6856 rm -rf conftest* 10342
6857 CPPFLAGS="$ac_save_CPPFLAGS" 10343 CPPFLAGS="$ac_save_CPPFLAGS"
6858# 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.
6859 for ac_dir in \ 10345 for ac_dir in \
6860 /usr/X11/include \ 10346 /usr/X11/include \
6861 /usr/X11R6/include \ 10347 /usr/X11R6/include \
6902 break 10388 break
6903 fi 10389 fi
6904 fi 10390 fi
6905 done 10391 done
6906fi 10392fi
6907rm -f conftest* 10393rm -f conftest.err conftest.$ac_ext
6908fi 10394fi
6909 10395
6910if test "$vt_xpm_libraries" = NO; then 10396if test "$vt_xpm_libraries" = NO; then
6911 # Check for the libraries. 10397 # Check for the libraries.
6912 10398
6913 # See if we find them without any special options. 10399 # See if we find them without any special options.
6914 # Don't add to $LIBS permanently. 10400 # Don't add to $LIBS permanently.
6915 ac_save_LIBS="$LIBS" 10401 ac_save_LIBS="$LIBS"
6916 LIBS="$LIBS $X_LIBS -lXpm -lX11" 10402 LIBS="$LIBS $X_LIBS -lXpm -lX11"
6917cat > conftest.$ac_ext <<EOF 10403cat >conftest.$ac_ext <<_ACEOF
6918#line 6919 "configure" 10404/* confdefs.h. */
6919#include "confdefs.h" 10405_ACEOF
10406cat confdefs.h >>conftest.$ac_ext
10407cat >>conftest.$ac_ext <<_ACEOF
10408/* end confdefs.h. */
6920 10409
6921int main() { 10410int
10411main ()
10412{
6922XpmReadFileToPixmap() 10413XpmReadFileToPixmap()
10414 ;
6923; return 0; } 10415 return 0;
6924EOF 10416}
6925if { (eval echo configure:6926: \"$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
6926 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
6927 LIBS="$ac_save_LIBS" 10439 LIBS="$ac_save_LIBS"
6928# We can link libXpm with no special library path. 10440# We can link libXpm with no special library path.
6929vt_xpm_libraries= 10441vt_xpm_libraries=
6930else 10442else
6931 echo "configure: failed program was:" >&5 10443 echo "$as_me: failed program was:" >&5
6932 cat conftest.$ac_ext >&5 10444sed 's/^/| /' conftest.$ac_ext >&5
6933 rm -rf conftest* 10445
6934 LIBS="$ac_save_LIBS" 10446LIBS="$ac_save_LIBS"
6935# First see if replacing the include by lib works. 10447# First see if replacing the include by lib works.
6936for ac_dir in \ 10448for ac_dir in \
6937 `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,'` \
6938 /usr/X11/lib \ 10450 /usr/X11/lib \
6939 /usr/X11R6/lib \ 10451 /usr/X11R6/lib \
6976 break 2 10488 break 2
6977 fi 10489 fi
6978 done 10490 done
6979done 10491done
6980fi 10492fi
6981rm -f conftest* 10493rm -f conftest.err conftest.$ac_objext \
10494 conftest$ac_exeext conftest.$ac_ext
6982fi 10495fi
6983 10496
6984 10497
6985 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
6986 ac_cv_have_xpm="have_xpm=no" 10499 ac_cv_have_xpm="have_xpm=no"
6992fi 10505fi
6993 eval "$ac_cv_have_xpm" 10506 eval "$ac_cv_have_xpm"
6994fi 10507fi
6995 10508
6996if test "$have_xpm" != yes; then 10509if test "$have_xpm" != yes; then
6997 echo "$ac_t""$have_xpm" 1>&6 10510 echo "$as_me:$LINENO: result: $have_xpm" >&5
10511echo "${ECHO_T}$have_xpm" >&6
6998 no_xpm=yes 10512 no_xpm=yes
6999else 10513else
7000 if test "$xpm_includes" != NO; then 10514 if test "$xpm_includes" != NO; then
7001 if test "$xpm_includes" = "$vt_xpm_includes"; then 10515 if test "$xpm_includes" = "$vt_xpm_includes"; then
7002 if test -r "$xpm_includes/X11/xpm.h"; then 10516 if test -r "$xpm_includes/X11/xpm.h"; then
7003 vt_xpm_include_X11=yes 10517 vt_xpm_include_X11=yes
7004 fi 10518 fi
7005 else 10519 else
7006 vt_xpm_include_X11=no 10520 vt_xpm_include_X11=no
7007 if test -z "$xpm_includes"; then 10521 if test -z "$xpm_includes"; then
7008 cat > conftest.$ac_ext <<EOF 10522 cat >conftest.$ac_ext <<_ACEOF
7009#line 7010 "configure" 10523/* confdefs.h. */
7010#include "confdefs.h" 10524_ACEOF
10525cat confdefs.h >>conftest.$ac_ext
10526cat >>conftest.$ac_ext <<_ACEOF
10527/* end confdefs.h. */
7011#include <X11/xpm.h> 10528#include <X11/xpm.h>
7012EOF 10529_ACEOF
7013ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10530if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7014{ (eval echo configure:7015: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10531 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7015ac_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
7016if test -z "$ac_err"; then 10547if test -z "$ac_cpp_err"; then
7017 rm -rf conftest*
7018 vt_xpm_include_X11=yes 10548 vt_xpm_include_X11=yes
7019else 10549else
7020 echo "$ac_err" >&5
7021 echo "configure: failed program was:" >&5 10550 echo "$as_me: failed program was:" >&5
7022 cat conftest.$ac_ext >&5 10551sed 's/^/| /' conftest.$ac_ext >&5
10552
10553
7023fi 10554fi
7024rm -f conftest* 10555rm -f conftest.err conftest.$ac_ext
7025 else 10556 else
7026 if test -r "$xpm_includes/X11/xpm.h"; then 10557 if test -r "$xpm_includes/X11/xpm.h"; then
7027 vt_xpm_include_X11=yes 10558 vt_xpm_include_X11=yes
7028 fi 10559 fi
7029 fi 10560 fi
7036 # Update the cache value to reflect the command line values. 10567 # Update the cache value to reflect the command line values.
7037 ac_cv_have_xpm="have_xpm=yes \ 10568 ac_cv_have_xpm="have_xpm=yes \
7038 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 \
7039 vt_xpm_include_X11=$vt_xpm_include_X11" 10570 vt_xpm_include_X11=$vt_xpm_include_X11"
7040 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
7041 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
7042 if test -n "$vt_xpm_includes"; then 10574 if test -n "$vt_xpm_includes"; then
7043 XPM_CPPFLAGS="-DHAVE_LIBXPM" 10575 XPM_CPPFLAGS="-DHAVE_LIBXPM"
7044 fi 10576 fi
7045 if test -n "$vt_xpm_includes"; then 10577 if test -n "$vt_xpm_includes"; then
7046 XPM_CFLAGS="-I$vt_xpm_includes" 10578 XPM_CFLAGS="-I$vt_xpm_includes"
7048 XPM_LIBS="-lXpm" 10580 XPM_LIBS="-lXpm"
7049 if test -n "$vt_xpm_libraries"; then 10581 if test -n "$vt_xpm_libraries"; then
7050 XPM_LIBS="-L$vt_xpm_libraries $XPM_LIBS" 10582 XPM_LIBS="-L$vt_xpm_libraries $XPM_LIBS"
7051 fi 10583 fi
7052 if test "x$vt_xpm_include_X11" = xyes; then 10584 if test "x$vt_xpm_include_X11" = xyes; then
10585
7053 cat >> confdefs.h <<\EOF 10586cat >>confdefs.h <<\_ACEOF
7054#define XPM_INC_X11 1 10587#define XPM_INC_X11 1
7055EOF 10588_ACEOF
7056 10589
7057 fi 10590 fi
7058fi 10591fi
7059 10592
7060 10593
7064 if test x$no_xpm = xyes; then 10597 if test x$no_xpm = xyes; then
7065 support_xpm=needsmanualspecification 10598 support_xpm=needsmanualspecification
7066 fi 10599 fi
7067fi 10600fi
7068 10601
10602echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7069echo $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
7070echo "configure:7071: checking for sys/wait.h that is POSIX.1 compatible" >&5
7071if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then 10604if test "${ac_cv_header_sys_wait_h+set}" = set; then
7072 echo $ac_n "(cached) $ac_c" 1>&6 10605 echo $ECHO_N "(cached) $ECHO_C" >&6
7073else 10606else
7074 cat > conftest.$ac_ext <<EOF 10607 cat >conftest.$ac_ext <<_ACEOF
7075#line 7076 "configure" 10608/* confdefs.h. */
7076#include "confdefs.h" 10609_ACEOF
10610cat confdefs.h >>conftest.$ac_ext
10611cat >>conftest.$ac_ext <<_ACEOF
10612/* end confdefs.h. */
7077#include <sys/types.h> 10613#include <sys/types.h>
7078#include <sys/wait.h> 10614#include <sys/wait.h>
7079#ifndef WEXITSTATUS 10615#ifndef WEXITSTATUS
7080#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 10616# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7081#endif 10617#endif
7082#ifndef WIFEXITED 10618#ifndef WIFEXITED
7083#define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 10619# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7084#endif 10620#endif
7085int main() { 10621
10622int
10623main ()
10624{
7086int s; 10625 int s;
7087wait (&s); 10626 wait (&s);
7088s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 10627 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10628 ;
7089; return 0; } 10629 return 0;
7090EOF 10630}
7091if { (eval echo configure:7092: \"$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
7092 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
7093 ac_cv_header_sys_wait_h=yes 10653 ac_cv_header_sys_wait_h=yes
7094else 10654else
7095 echo "configure: failed program was:" >&5 10655 echo "$as_me: failed program was:" >&5
7096 cat conftest.$ac_ext >&5 10656sed 's/^/| /' conftest.$ac_ext >&5
7097 rm -rf conftest* 10657
7098 ac_cv_header_sys_wait_h=no 10658ac_cv_header_sys_wait_h=no
7099fi 10659fi
7100rm -f conftest* 10660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7101fi 10661fi
7102 10662echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7103echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6 10663echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
7104if test $ac_cv_header_sys_wait_h = yes; then 10664if test $ac_cv_header_sys_wait_h = yes; then
10665
7105 cat >> confdefs.h <<\EOF 10666cat >>confdefs.h <<\_ACEOF
7106#define HAVE_SYS_WAIT_H 1 10667#define HAVE_SYS_WAIT_H 1
7107EOF 10668_ACEOF
7108 10669
7109fi 10670fi
7110 10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
7111for ac_hdr in \ 10691for ac_header in \
7112 assert.h \ 10692 assert.h \
7113 fcntl.h \ 10693 fcntl.h \
7114 grp.h \ 10694 grp.h \
7115 libc.h \ 10695 libc.h \
7116 lastlog.h \ 10696 lastlog.h \
7128 utmp.h \ 10708 utmp.h \
7129 utmpx.h \ 10709 utmpx.h \
7130 stdint.h \ 10710 stdint.h \
7131 10711
7132do 10712do
7133ac_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
7134echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 10716echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7135echo "configure:7136: checking for $ac_hdr" >&5 10717if eval "test \"\${$as_ac_Header+set}\" = set"; then
7136if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7137 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
7138else 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
7139 cat > conftest.$ac_ext <<EOF 10726cat >conftest.$ac_ext <<_ACEOF
7140#line 7141 "configure" 10727/* confdefs.h. */
7141#include "confdefs.h" 10728_ACEOF
10729cat confdefs.h >>conftest.$ac_ext
10730cat >>conftest.$ac_ext <<_ACEOF
10731/* end confdefs.h. */
10732$ac_includes_default
7142#include <$ac_hdr> 10733#include <$ac_header>
7143EOF 10734_ACEOF
7144ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10735rm -f conftest.$ac_objext
7145{ (eval echo configure:7146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7146ac_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
7147if test -z "$ac_err"; then 10795if test -z "$ac_cpp_err"; then
7148 rm -rf conftest* 10796 ac_header_preproc=yes
7149 eval "ac_cv_header_$ac_safe=yes"
7150else 10797else
7151 echo "$ac_err" >&5
7152 echo "configure: failed program was:" >&5 10798 echo "$as_me: failed program was:" >&5
7153 cat conftest.$ac_ext >&5 10799sed 's/^/| /' conftest.$ac_ext >&5
7154 rm -rf conftest* 10800
7155 eval "ac_cv_header_$ac_safe=no" 10801 ac_header_preproc=no
7156fi 10802fi
7157rm -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"
7158fi 10845fi
7159if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 10846echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7160 echo "$ac_t""yes" 1>&6 10847echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7161 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 10848
10849fi
10850if test `eval echo '${'$as_ac_Header'}'` = yes; then
7162 cat >> confdefs.h <<EOF 10851 cat >>confdefs.h <<_ACEOF
7163#define $ac_tr_hdr 1 10852#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7164EOF 10853_ACEOF
7165 10854
7166else
7167 echo "$ac_t""no" 1>&6
7168fi 10855fi
10856
7169done 10857done
7170 10858
7171 10859
10860echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7172echo $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
7173echo "configure:7174: checking whether time.h and sys/time.h may both be included" >&5
7174if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 10862if test "${ac_cv_header_time+set}" = set; then
7175 echo $ac_n "(cached) $ac_c" 1>&6 10863 echo $ECHO_N "(cached) $ECHO_C" >&6
7176else 10864else
7177 cat > conftest.$ac_ext <<EOF 10865 cat >conftest.$ac_ext <<_ACEOF
7178#line 7179 "configure" 10866/* confdefs.h. */
7179#include "confdefs.h" 10867_ACEOF
10868cat confdefs.h >>conftest.$ac_ext
10869cat >>conftest.$ac_ext <<_ACEOF
10870/* end confdefs.h. */
7180#include <sys/types.h> 10871#include <sys/types.h>
7181#include <sys/time.h> 10872#include <sys/time.h>
7182#include <time.h> 10873#include <time.h>
7183int main() { 10874
7184struct tm *tp; 10875int
10876main ()
10877{
10878if ((struct tm *) 0)
10879return 0;
10880 ;
7185; return 0; } 10881 return 0;
7186EOF 10882}
7187if { (eval echo configure:7188: \"$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
7188 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
7189 ac_cv_header_time=yes 10905 ac_cv_header_time=yes
7190else 10906else
7191 echo "configure: failed program was:" >&5 10907 echo "$as_me: failed program was:" >&5
7192 cat conftest.$ac_ext >&5 10908sed 's/^/| /' conftest.$ac_ext >&5
7193 rm -rf conftest* 10909
7194 ac_cv_header_time=no 10910ac_cv_header_time=no
7195fi 10911fi
7196rm -f conftest* 10912rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7197fi 10913fi
7198 10914echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7199echo "$ac_t""$ac_cv_header_time" 1>&6 10915echo "${ECHO_T}$ac_cv_header_time" >&6
7200if test $ac_cv_header_time = yes; then 10916if test $ac_cv_header_time = yes; then
10917
7201 cat >> confdefs.h <<\EOF 10918cat >>confdefs.h <<\_ACEOF
7202#define TIME_WITH_SYS_TIME 1 10919#define TIME_WITH_SYS_TIME 1
7203EOF 10920_ACEOF
7204 10921
7205fi 10922fi
7206 10923
7207 10924
10925echo "$as_me:$LINENO: checking whether termios.h and sys/ioctl.h may both be included" >&5
7208echo $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
7209echo "configure:7210: checking whether termios.h and sys/ioctl.h may both be included" >&5
7210if eval "test \"`echo '$''{'rxvt_cv_header_sysioctl'+set}'`\" = set"; then 10927if test "${rxvt_cv_header_sysioctl+set}" = set; then
7211 echo $ac_n "(cached) $ac_c" 1>&6 10928 echo $ECHO_N "(cached) $ECHO_C" >&6
7212else 10929else
7213 cat > conftest.$ac_ext <<EOF 10930 cat >conftest.$ac_ext <<_ACEOF
7214#line 7215 "configure" 10931/* confdefs.h. */
7215#include "confdefs.h" 10932_ACEOF
10933cat confdefs.h >>conftest.$ac_ext
10934cat >>conftest.$ac_ext <<_ACEOF
10935/* end confdefs.h. */
7216#include <stdio.h> 10936#include <stdio.h>
7217#include <sys/ioctl.h> 10937#include <sys/ioctl.h>
7218#ifdef HAVE_TERMIOS_H 10938#ifdef HAVE_TERMIOS_H
7219#include <termios.h> 10939#include <termios.h>
7220#endif 10940#endif
7221int main() { 10941int
10942main ()
10943{
7222int a = ECHO; 10944int a = ECHO;
10945 ;
7223; return 0; } 10946 return 0;
7224EOF 10947}
7225if { (eval echo configure:7226: \"$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
7226 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
7227 rxvt_cv_header_sysioctl=yes 10970 rxvt_cv_header_sysioctl=yes
7228else 10971else
7229 echo "configure: failed program was:" >&5 10972 echo "$as_me: failed program was:" >&5
7230 cat conftest.$ac_ext >&5 10973sed 's/^/| /' conftest.$ac_ext >&5
7231 rm -rf conftest* 10974
7232 rxvt_cv_header_sysioctl=no 10975rxvt_cv_header_sysioctl=no
7233fi 10976fi
7234rm -f conftest* 10977rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7235fi 10978fi
7236 10979echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5
7237echo "$ac_t""$rxvt_cv_header_sysioctl" 1>&6 10980echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6
7238 10981
7239if test -n "$GCC"; then 10982if test -n "$GCC"; then
7240 LDARG="-Wl," 10983 LDARG="-Wl,"
7241else 10984else
7242 LDARG="" 10985 LDARG=""
7245 10988
7246ac_save_CFLAGS=$CFLAGS 10989ac_save_CFLAGS=$CFLAGS
7247ac_save_LIBS=$LIBS 10990ac_save_LIBS=$LIBS
7248CFLAGS="$CFLAGS $X_CFLAGS" 10991CFLAGS="$CFLAGS $X_CFLAGS"
7249LIBS=`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
7250echo $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
7251echo "configure:7252: checking for -rpath dynamic library path recording" >&5
7252if eval "test \"`echo '$''{'rxvt_cv_rpath'+set}'`\" = set"; then 10995if test "${rxvt_cv_rpath+set}" = set; then
7253 echo $ac_n "(cached) $ac_c" 1>&6 10996 echo $ECHO_N "(cached) $ECHO_C" >&6
7254else 10997else
7255 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
7256 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;}
7257else 11001else
7258 cat > conftest.$ac_ext <<EOF 11002 cat >conftest.$ac_ext <<_ACEOF
7259#line 7260 "configure" 11003/* confdefs.h. */
7260#include "confdefs.h" 11004_ACEOF
11005cat confdefs.h >>conftest.$ac_ext
11006cat >>conftest.$ac_ext <<_ACEOF
11007/* end confdefs.h. */
7261 11008
7262main() 11009main()
7263{ 11010{
7264 exit(0); 11011 exit(0);
7265 (void) XOpenDisplay("foobar"); 11012 (void) XOpenDisplay("foobar");
7266} 11013}
7267EOF 11014_ACEOF
7268if { (eval echo configure:7269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 11015rm -f conftest$ac_exeext
7269then 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
7270 rxvt_cv_rpath=yes 11026 rxvt_cv_rpath=yes
7271else 11027else
11028 echo "$as_me: program exited with status $ac_status" >&5
7272 echo "configure: failed program was:" >&5 11029echo "$as_me: failed program was:" >&5
7273 cat conftest.$ac_ext >&5 11030sed 's/^/| /' conftest.$ac_ext >&5
7274 rm -fr conftest* 11031
11032( exit $ac_status )
7275 rxvt_cv_rpath=no 11033rxvt_cv_rpath=no
7276fi 11034fi
7277rm -fr conftest* 11035rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7278fi 11036fi
7279
7280fi 11037fi
7281 11038echo "$as_me:$LINENO: result: $rxvt_cv_rpath" >&5
7282echo "$ac_t""$rxvt_cv_rpath" 1>&6 11039echo "${ECHO_T}$rxvt_cv_rpath" >&6
7283if test x$rxvt_cv_rpath != xyes; then 11040if test x$rxvt_cv_rpath != xyes; then
7284 R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-R\1/g' 11041 R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-R\1/g'
7285 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
7286 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
7287echo "configure:7288: checking for -R dynamic library path recording" >&5
7288if eval "test \"`echo '$''{'rxvt_cv_R'+set}'`\" = set"; then 11045if test "${rxvt_cv_R+set}" = set; then
7289 echo $ac_n "(cached) $ac_c" 1>&6 11046 echo $ECHO_N "(cached) $ECHO_C" >&6
7290else 11047else
7291 if test "$cross_compiling" = yes; then 11048 if test "$cross_compiling" = yes; then
7292 rxvt_cv_R=no 11049 rxvt_cv_R=no
7293else 11050else
7294 cat > conftest.$ac_ext <<EOF 11051 cat >conftest.$ac_ext <<_ACEOF
7295#line 7296 "configure" 11052/* confdefs.h. */
7296#include "confdefs.h" 11053_ACEOF
11054cat confdefs.h >>conftest.$ac_ext
11055cat >>conftest.$ac_ext <<_ACEOF
11056/* end confdefs.h. */
7297 11057
7298main() 11058main()
7299{ 11059{
7300 exit(0); 11060 exit(0);
7301 (void) XOpenDisplay("foobar"); 11061 (void) XOpenDisplay("foobar");
7302} 11062}
7303EOF 11063_ACEOF
7304if { (eval echo configure:7305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 11064rm -f conftest$ac_exeext
7305then 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
7306 rxvt_cv_R=yes 11075 rxvt_cv_R=yes
7307else 11076else
11077 echo "$as_me: program exited with status $ac_status" >&5
7308 echo "configure: failed program was:" >&5 11078echo "$as_me: failed program was:" >&5
7309 cat conftest.$ac_ext >&5 11079sed 's/^/| /' conftest.$ac_ext >&5
7310 rm -fr conftest* 11080
11081( exit $ac_status )
7311 rxvt_cv_R=no 11082rxvt_cv_R=no
7312fi 11083fi
7313rm -fr conftest* 11084rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7314fi 11085fi
7315
7316fi 11086fi
7317 11087echo "$as_me:$LINENO: result: $rxvt_cv_R" >&5
7318echo "$ac_t""$rxvt_cv_R" 1>&6 11088echo "${ECHO_T}$rxvt_cv_R" >&6
7319 if test x$rxvt_cv_R != xyes; then 11089 if test x$rxvt_cv_R != xyes; then
7320 LIBS="$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 11090 LIBS="$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
7321 fi 11091 fi
7322fi 11092fi
7323 11093
11094echo "$as_me:$LINENO: checking for XPointer" >&5
7324echo $ac_n "checking for XPointer""... $ac_c" 1>&6 11095echo $ECHO_N "checking for XPointer... $ECHO_C" >&6
7325echo "configure:7326: checking for XPointer" >&5
7326if eval "test \"`echo '$''{'rxvt_cv_xpointer'+set}'`\" = set"; then 11096if test "${rxvt_cv_xpointer+set}" = set; then
7327 echo $ac_n "(cached) $ac_c" 1>&6 11097 echo $ECHO_N "(cached) $ECHO_C" >&6
7328else 11098else
7329 cat > conftest.$ac_ext <<EOF 11099 cat >conftest.$ac_ext <<_ACEOF
7330#line 7331 "configure" 11100/* confdefs.h. */
7331#include "confdefs.h" 11101_ACEOF
11102cat confdefs.h >>conftest.$ac_ext
11103cat >>conftest.$ac_ext <<_ACEOF
11104/* end confdefs.h. */
7332#include <X11/Xlib.h> 11105#include <X11/Xlib.h>
7333int main() { 11106int
11107main ()
11108{
7334XPointer dummy; 11109XPointer dummy;
11110 ;
7335; return 0; } 11111 return 0;
7336EOF 11112}
7337if { (eval echo configure:7338: \"$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
7338 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
7339 rxvt_cv_xpointer=yes 11135 rxvt_cv_xpointer=yes
7340else 11136else
7341 echo "configure: failed program was:" >&5 11137 echo "$as_me: failed program was:" >&5
7342 cat conftest.$ac_ext >&5 11138sed 's/^/| /' conftest.$ac_ext >&5
7343 rm -rf conftest* 11139
7344 rxvt_cv_xpointer=no 11140rxvt_cv_xpointer=no
7345fi 11141fi
7346rm -f conftest* 11142rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7347fi 11143fi
7348 11144echo "$as_me:$LINENO: result: $rxvt_cv_xpointer" >&5
7349echo "$ac_t""$rxvt_cv_xpointer" 1>&6 11145echo "${ECHO_T}$rxvt_cv_xpointer" >&6
7350if test x$rxvt_cv_xpointer = xyes; then 11146if test x$rxvt_cv_xpointer = xyes; then
11147
7351 cat >> confdefs.h <<\EOF 11148cat >>confdefs.h <<\_ACEOF
7352#define HAVE_XPOINTER 1 11149#define HAVE_XPOINTER 1
7353EOF 11150_ACEOF
7354 11151
7355fi 11152fi
7356LIBS=$ac_save_LIBS 11153LIBS=$ac_save_LIBS
7357CFLAGS=$ac_save_CFLAGS 11154CFLAGS=$ac_save_CFLAGS
7358 11155
7359 11156
7360echo $ac_n "checking for working const""... $ac_c" 1>&6 11157echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7361echo "configure:7362: checking for working const" >&5 11158echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7362if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 11159if test "${ac_cv_c_const+set}" = set; then
7363 echo $ac_n "(cached) $ac_c" 1>&6 11160 echo $ECHO_N "(cached) $ECHO_C" >&6
7364else 11161else
7365 cat > conftest.$ac_ext <<EOF 11162 cat >conftest.$ac_ext <<_ACEOF
7366#line 7367 "configure" 11163/* confdefs.h. */
7367#include "confdefs.h" 11164_ACEOF
11165cat confdefs.h >>conftest.$ac_ext
11166cat >>conftest.$ac_ext <<_ACEOF
11167/* end confdefs.h. */
7368 11168
7369int main() { 11169int
7370 11170main ()
11171{
11172/* FIXME: Include the comments suggested by Paul. */
11173#ifndef __cplusplus
7371/* Ultrix mips cc rejects this. */ 11174 /* Ultrix mips cc rejects this. */
7372typedef int charset[2]; const charset x; 11175 typedef int charset[2];
11176 const charset x;
7373/* SunOS 4.1.1 cc rejects this. */ 11177 /* SunOS 4.1.1 cc rejects this. */
7374char const *const *ccp; 11178 char const *const *ccp;
7375char **p; 11179 char **p;
7376/* NEC SVR4.0.2 mips cc rejects this. */ 11180 /* NEC SVR4.0.2 mips cc rejects this. */
7377struct point {int x, y;}; 11181 struct point {int x, y;};
7378static struct point const zero = {0,0}; 11182 static struct point const zero = {0,0};
7379/* AIX XL C 1.02.0.0 rejects this. 11183 /* AIX XL C 1.02.0.0 rejects this.
7380 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
7381 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 */
7382const char *g = "string"; 11187 const char *g = "string";
7383ccp = &g + (g ? g-g : 0); 11188 ccp = &g + (g ? g-g : 0);
7384/* HPUX 7.0 cc rejects these. */ 11189 /* HPUX 7.0 cc rejects these. */
7385++ccp; 11190 ++ccp;
7386p = (char**) ccp; 11191 p = (char**) ccp;
7387ccp = (char const *const *) p; 11192 ccp = (char const *const *) p;
7388{ /* SCO 3.2v4 cc rejects this. */ 11193 { /* SCO 3.2v4 cc rejects this. */
7389 char *t; 11194 char *t;
7390 char const *s = 0 ? (char *) 0 : (char const *) 0; 11195 char const *s = 0 ? (char *) 0 : (char const *) 0;
7391 11196
7392 *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;
7393} 11221}
7394{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 11222_ACEOF
7395 int x[] = {25, 17}; 11223rm -f conftest.$ac_objext
7396 const int *foo = &x[0]; 11224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7397 ++foo; 11225 (eval $ac_compile) 2>conftest.er1
7398} 11226 ac_status=$?
7399{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 11227 grep -v '^ *+' conftest.er1 >conftest.err
7400 typedef const int *iptr;
7401 iptr p = 0;
7402 ++p;
7403}
7404{ /* AIX XL C 1.02.0.0 rejects this saying
7405 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7406 struct s { int j; const int *ap[3]; };
7407 struct s *b; b->j = 5;
7408}
7409{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7410 const int foo = 10;
7411}
7412
7413; return 0; }
7414EOF
7415if { (eval echo configure:7416: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7416 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
7417 ac_cv_c_const=yes 11244 ac_cv_c_const=yes
7418else 11245else
7419 echo "configure: failed program was:" >&5 11246 echo "$as_me: failed program was:" >&5
7420 cat conftest.$ac_ext >&5 11247sed 's/^/| /' conftest.$ac_ext >&5
7421 rm -rf conftest* 11248
7422 ac_cv_c_const=no 11249ac_cv_c_const=no
7423fi 11250fi
7424rm -f conftest* 11251rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7425fi 11252fi
7426 11253echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7427echo "$ac_t""$ac_cv_c_const" 1>&6 11254echo "${ECHO_T}$ac_cv_c_const" >&6
7428if test $ac_cv_c_const = no; then 11255if test $ac_cv_c_const = no; then
11256
7429 cat >> confdefs.h <<\EOF 11257cat >>confdefs.h <<\_ACEOF
7430#define const 11258#define const
7431EOF 11259_ACEOF
7432 11260
7433fi 11261fi
7434 11262
11263echo "$as_me:$LINENO: checking for inline" >&5
7435echo $ac_n "checking for inline""... $ac_c" 1>&6 11264echo $ECHO_N "checking for inline... $ECHO_C" >&6
7436echo "configure:7437: checking for inline" >&5
7437if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then 11265if test "${ac_cv_c_inline+set}" = set; then
7438 echo $ac_n "(cached) $ac_c" 1>&6 11266 echo $ECHO_N "(cached) $ECHO_C" >&6
7439else 11267else
7440 ac_cv_c_inline=no 11268 ac_cv_c_inline=no
7441for ac_kw in inline __inline__ __inline; do 11269for ac_kw in inline __inline__ __inline; do
7442 cat > conftest.$ac_ext <<EOF 11270 cat >conftest.$ac_ext <<_ACEOF
7443#line 7444 "configure" 11271/* confdefs.h. */
7444#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
7445 11281
7446int main() { 11282_ACEOF
7447} $ac_kw foo() { 11283rm -f conftest.$ac_objext
7448; return 0; } 11284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7449EOF 11285 (eval $ac_compile) 2>conftest.er1
7450if { (eval echo configure:7451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 11286 ac_status=$?
11287 grep -v '^ *+' conftest.er1 >conftest.err
7451 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
7452 ac_cv_c_inline=$ac_kw; break 11304 ac_cv_c_inline=$ac_kw; break
7453else 11305else
7454 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
7455 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
7456fi 11484fi
7457rm -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
7458done 11819done
7459 11820case $ac_lo in
7460fi 11821?*) ac_cv_sizeof_char=$ac_lo;;
7461 11822'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
7462echo "$ac_t""$ac_cv_c_inline" 1>&6 11823See \`config.log' for more details." >&5
7463case "$ac_cv_c_inline" in 11824echo "$as_me: error: cannot compute sizeof (char), 77
7464 inline | yes) ;; 11825See \`config.log' for more details." >&2;}
7465 no) cat >> confdefs.h <<\EOF 11826 { (exit 1); exit 1; }; } ;;
7466#define inline
7467EOF
7468 ;;
7469 *) cat >> confdefs.h <<EOF
7470#define inline $ac_cv_c_inline
7471EOF
7472 ;;
7473esac 11827esac
7474
7475
7476
7477echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
7478echo "configure:7479: checking for ANSI C header files" >&5
7479if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
7480 echo $ac_n "(cached) $ac_c" 1>&6
7481else 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
7482 cat > conftest.$ac_ext <<EOF 11834 cat >conftest.$ac_ext <<_ACEOF
7483#line 7484 "configure" 11835/* confdefs.h. */
7484#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>
7485#include <stdlib.h> 11844#include <stdlib.h>
7486#include <stdarg.h> 11845int
7487#include <string.h> 11846main ()
7488#include <float.h> 11847{
7489EOF 11848
7490ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11849 FILE *f = fopen ("conftest.val", "w");
7491{ (eval echo configure:7492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11850 if (! f)
7492ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11851 exit (1);
7493if test -z "$ac_err"; then 11852 if (((long) (sizeof (char))) < 0)
7494 rm -rf conftest* 11853 {
7495 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 }
7496else 11859 else
7497 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
7498 echo "configure: failed program was:" >&5 11886echo "$as_me: failed program was:" >&5
7499 cat conftest.$ac_ext >&5 11887sed 's/^/| /' conftest.$ac_ext >&5
7500 rm -rf conftest* 11888
7501 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; }; }
7502fi 11895fi
11896rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11897fi
11898fi
7503rm -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
7504 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
7505if test $ac_cv_header_stdc = yes; then 11972 if test "$ac_cv_type_short" = yes; then
7506 # 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.
7507cat > conftest.$ac_ext <<EOF 11979cat >conftest.$ac_ext <<_ACEOF
7508#line 7509 "configure" 11980/* confdefs.h. */
7509#include "confdefs.h" 11981_ACEOF
7510#include <string.h> 11982cat confdefs.h >>conftest.$ac_ext
7511EOF 11983cat >>conftest.$ac_ext <<_ACEOF
7512if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11984/* end confdefs.h. */
7513 egrep "memchr" >/dev/null 2>&1; then 11985$ac_includes_default
7514 : 11986int
7515else 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
7516 rm -rf conftest* 12001 rm -f conftest.er1
7517 ac_cv_header_stdc=no 12002 cat conftest.err >&5
7518fi 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
7519rm -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
7520 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`
7521fi 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
7522 12074
7523if test $ac_cv_header_stdc = yes; then
7524 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7525cat > conftest.$ac_ext <<EOF 12075cat >conftest.$ac_ext <<_ACEOF
7526#line 7527 "configure" 12076/* confdefs.h. */
7527#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>
7528#include <stdlib.h> 12250#include <stdlib.h>
7529EOF 12251int
7530if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12252main ()
7531 egrep "free" >/dev/null 2>&1; then 12253{
7532 : 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 }
7533else 12265 else
7534 rm -rf conftest* 12266 {
7535 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; }; }
7536fi 12301fi
12302rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12303fi
12304fi
7537rm -f conftest* 12305rm -f conftest.val
7538 12306else
12307 ac_cv_sizeof_short=0
7539fi 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
7540 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
7541if test $ac_cv_header_stdc = yes; then 12378 if test "$ac_cv_type_int" = yes; then
7542 # /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.
7543if test "$cross_compiling" = yes; then 12383 if test "$cross_compiling" = yes; then
7544 : 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
7545else 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`
7546 cat > conftest.$ac_ext <<EOF 12585 cat >conftest.$ac_ext <<_ACEOF
7547#line 7548 "configure" 12586/* confdefs.h. */
7548#include "confdefs.h" 12587_ACEOF
7549#include <ctype.h> 12588cat confdefs.h >>conftest.$ac_ext
7550#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 12589cat >>conftest.$ac_ext <<_ACEOF
7551#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 12590/* end confdefs.h. */
7552#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 12591$ac_includes_default
7553int main () { int i; for (i = 0; i < 256; i++) 12592int
7554if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 12593main ()
7555exit (0); } 12594{
12595static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12596test_array [0] = 0
7556 12597
7557EOF 12598 ;
7558if { (eval echo configure:7559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 12599 return 0;
7559then 12600}
7560 : 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
7561else 12624else
7562 echo "configure: failed program was:" >&5 12625 echo "$as_me: failed program was:" >&5
7563 cat conftest.$ac_ext >&5 12626sed 's/^/| /' conftest.$ac_ext >&5
7564 rm -fr conftest*
7565 ac_cv_header_stdc=no
7566fi
7567rm -fr conftest*
7568fi
7569 12627
12628ac_lo=`expr '(' $ac_mid ')' + 1`
7570fi 12629fi
7571fi 12630rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7572 12631done
7573echo "$ac_t""$ac_cv_header_stdc" 1>&6 12632case $ac_lo in
7574if test $ac_cv_header_stdc = yes; then 12633?*) ac_cv_sizeof_int=$ac_lo;;
7575 cat >> confdefs.h <<\EOF 12634'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7576#define STDC_HEADERS 1 12635See \`config.log' for more details." >&5
7577EOF 12636echo "$as_me: error: cannot compute sizeof (int), 77
7578 12637See \`config.log' for more details." >&2;}
7579fi 12638 { (exit 1); exit 1; }; } ;;
7580 12639esac
7581echo $ac_n "checking for mode_t""... $ac_c" 1>&6
7582echo "configure:7583: checking for mode_t" >&5
7583if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
7584 echo $ac_n "(cached) $ac_c" 1>&6
7585else 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
7586 cat > conftest.$ac_ext <<EOF 12646 cat >conftest.$ac_ext <<_ACEOF
7587#line 7588 "configure" 12647/* confdefs.h. */
7588#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)); }
7589#include <sys/types.h> 12655#include <stdio.h>
7590#if STDC_HEADERS
7591#include <stdlib.h> 12656#include <stdlib.h>
7592#include <stddef.h> 12657int
7593#endif 12658main ()
7594EOF 12659{
7595if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12660
7596 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");
7597 rm -rf conftest* 12662 if (! f)
7598 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 }
7599else 12671 else
7600 rm -rf conftest* 12672 {
7601 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; }; }
7602fi 12707fi
12708rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12709fi
12710fi
7603rm -f conftest* 12711rm -f conftest.val
7604 12712else
12713 ac_cv_sizeof_int=0
7605fi 12714fi
7606echo "$ac_t""$ac_cv_type_mode_t" 1>&6 12715fi
7607if 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
7608 cat >> confdefs.h <<\EOF 12718cat >>confdefs.h <<_ACEOF
7609#define mode_t int 12719#define SIZEOF_INT $ac_cv_sizeof_int
7610EOF 12720_ACEOF
7611 12721
7612fi
7613 12722
7614echo $ac_n "checking for pid_t""... $ac_c" 1>&6 12723echo "$as_me:$LINENO: checking for long" >&5
7615echo "configure:7616: checking for pid_t" >&5 12724echo $ECHO_N "checking for long... $ECHO_C" >&6
7616if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then 12725if test "${ac_cv_type_long+set}" = set; then
7617 echo $ac_n "(cached) $ac_c" 1>&6 12726 echo $ECHO_N "(cached) $ECHO_C" >&6
7618else 12727else
7619 cat > conftest.$ac_ext <<EOF 12728 cat >conftest.$ac_ext <<_ACEOF
7620#line 7621 "configure" 12729/* confdefs.h. */
7621#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)); }
7622#include <sys/types.h> 13061#include <stdio.h>
7623#if STDC_HEADERS
7624#include <stdlib.h> 13062#include <stdlib.h>
7625#include <stddef.h> 13063int
7626#endif 13064main ()
7627EOF 13065{
7628if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13066
7629 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");
7630 rm -rf conftest* 13068 if (! f)
7631 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 }
7632else 13077 else
7633 rm -rf conftest* 13078 {
7634 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; }; }
7635fi 13113fi
13114rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13115fi
13116fi
7636rm -f conftest* 13117rm -f conftest.val
7637 13118else
13119 ac_cv_sizeof_long=0
7638fi 13120fi
7639echo "$ac_t""$ac_cv_type_pid_t" 1>&6 13121fi
7640if 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
7641 cat >> confdefs.h <<\EOF 13124cat >>confdefs.h <<_ACEOF
7642#define pid_t int 13125#define SIZEOF_LONG $ac_cv_sizeof_long
7643EOF 13126_ACEOF
7644 13127
7645fi
7646 13128
7647echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 13129echo "$as_me:$LINENO: checking for long long" >&5
7648echo "configure:7649: checking for uid_t in sys/types.h" >&5 13130echo $ECHO_N "checking for long long... $ECHO_C" >&6
7649if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then 13131if test "${ac_cv_type_long_long+set}" = set; then
7650 echo $ac_n "(cached) $ac_c" 1>&6 13132 echo $ECHO_N "(cached) $ECHO_C" >&6
7651else 13133else
7652 cat > conftest.$ac_ext <<EOF 13134 cat >conftest.$ac_ext <<_ACEOF
7653#line 7654 "configure" 13135/* confdefs.h. */
7654#include "confdefs.h" 13136_ACEOF
7655#include <sys/types.h> 13137cat confdefs.h >>conftest.$ac_ext
7656EOF 13138cat >>conftest.$ac_ext <<_ACEOF
7657if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13139/* end confdefs.h. */
7658 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
7659 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
7660 ac_cv_type_uid_t=yes 13173 ac_cv_type_long_long=yes
7661else 13174else
7662 rm -rf conftest* 13175 echo "$as_me: failed program was:" >&5
7663 ac_cv_type_uid_t=no 13176sed 's/^/| /' conftest.$ac_ext >&5
7664fi
7665rm -f conftest*
7666 13177
13178ac_cv_type_long_long=no
7667fi 13179fi
7668 13180rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7669echo "$ac_t""$ac_cv_type_uid_t" 1>&6
7670if test $ac_cv_type_uid_t = no; then
7671 cat >> confdefs.h <<\EOF
7672#define uid_t int
7673EOF
7674
7675 cat >> confdefs.h <<\EOF
7676#define gid_t int
7677EOF
7678
7679fi 13181fi
13182echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13183echo "${ECHO_T}$ac_cv_type_long_long" >&6
7680 13184
7681 13185echo "$as_me:$LINENO: checking size of long long" >&5
7682 13186echo $ECHO_N "checking size of long long... $ECHO_C" >&6
7683echo $ac_n "checking size of char""... $ac_c" 1>&6 13187if test "${ac_cv_sizeof_long_long+set}" = set; then
7684echo "configure:7685: checking size of char" >&5
7685if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
7686 echo $ac_n "(cached) $ac_c" 1>&6 13188 echo $ECHO_N "(cached) $ECHO_C" >&6
7687else 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.
7688 if test "$cross_compiling" = yes; then 13195 if test "$cross_compiling" = yes; then
7689 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
7690else 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`
7691 cat > conftest.$ac_ext <<EOF 13397 cat >conftest.$ac_ext <<_ACEOF
7692#line 7693 "configure" 13398/* confdefs.h. */
7693#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)); }
7694#include <stdio.h> 13467#include <stdio.h>
7695#include <sys/types.h> 13468#include <stdlib.h>
13469int
7696main() 13470main ()
7697{ 13471{
13472
7698 FILE *f=fopen("conftestval", "w"); 13473 FILE *f = fopen ("conftest.val", "w");
7699 if (!f) exit(1); 13474 if (! f)
7700 fprintf(f, "%d\n", sizeof(char));
7701 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;
7702} 13494}
7703EOF 13495_ACEOF
7704if { (eval echo configure:7705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 13496rm -f conftest$ac_exeext
7705then 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
7706 ac_cv_sizeof_char=`cat conftestval` 13507 ac_cv_sizeof_long_long=`cat conftest.val`
7707else 13508else
13509 echo "$as_me: program exited with status $ac_status" >&5
7708 echo "configure: failed program was:" >&5 13510echo "$as_me: failed program was:" >&5
7709 cat conftest.$ac_ext >&5 13511sed 's/^/| /' conftest.$ac_ext >&5
7710 rm -fr conftest* 13512
7711 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; }; }
7712fi 13519fi
13520rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13521fi
13522fi
7713rm -fr conftest* 13523rm -f conftest.val
13524else
13525 ac_cv_sizeof_long_long=0
7714fi 13526fi
7715
7716fi 13527fi
7717echo "$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
7718cat >> confdefs.h <<EOF 13530cat >>confdefs.h <<_ACEOF
7719#define SIZEOF_CHAR $ac_cv_sizeof_char 13531#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7720EOF 13532_ACEOF
7721 13533
7722 13534
7723echo $ac_n "checking size of short""... $ac_c" 1>&6 13535echo "$as_me:$LINENO: checking for int *" >&5
7724echo "configure:7725: checking size of short" >&5 13536echo $ECHO_N "checking for int *... $ECHO_C" >&6
7725if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then 13537if test "${ac_cv_type_int_p+set}" = set; then
7726 echo $ac_n "(cached) $ac_c" 1>&6 13538 echo $ECHO_N "(cached) $ECHO_C" >&6
7727else 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.
7728 if test "$cross_compiling" = yes; then 13601 if test "$cross_compiling" = yes; then
7729 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
7730else 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`
7731 cat > conftest.$ac_ext <<EOF 13803 cat >conftest.$ac_ext <<_ACEOF
7732#line 7733 "configure" 13804/* confdefs.h. */
7733#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 *)); }
7734#include <stdio.h> 13873#include <stdio.h>
7735#include <sys/types.h> 13874#include <stdlib.h>
13875int
7736main() 13876main ()
7737{ 13877{
13878
7738 FILE *f=fopen("conftestval", "w"); 13879 FILE *f = fopen ("conftest.val", "w");
7739 if (!f) exit(1); 13880 if (! f)
7740 fprintf(f, "%d\n", sizeof(short));
7741 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;
7742} 13900}
7743EOF 13901_ACEOF
7744if { (eval echo configure:7745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 13902rm -f conftest$ac_exeext
7745then 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
7746 ac_cv_sizeof_short=`cat conftestval` 13913 ac_cv_sizeof_int_p=`cat conftest.val`
7747else 13914else
13915 echo "$as_me: program exited with status $ac_status" >&5
7748 echo "configure: failed program was:" >&5 13916echo "$as_me: failed program was:" >&5
7749 cat conftest.$ac_ext >&5 13917sed 's/^/| /' conftest.$ac_ext >&5
7750 rm -fr conftest* 13918
7751 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; }; }
7752fi 13925fi
13926rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13927fi
13928fi
7753rm -fr conftest* 13929rm -f conftest.val
13930else
13931 ac_cv_sizeof_int_p=0
7754fi 13932fi
7755
7756fi 13933fi
7757echo "$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
7758cat >> confdefs.h <<EOF 13936cat >>confdefs.h <<_ACEOF
7759#define SIZEOF_SHORT $ac_cv_sizeof_short 13937#define SIZEOF_INT_P $ac_cv_sizeof_int_p
7760EOF 13938_ACEOF
7761 13939
7762 13940
7763echo $ac_n "checking size of int""... $ac_c" 1>&6 13941
7764echo "configure:7765: checking size of int" >&5 13942
7765if 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
7766 echo $ac_n "(cached) $ac_c" 1>&6 13946 echo $ECHO_N "(cached) $ECHO_C" >&6
7767else 13947else
7768 if test "$cross_compiling" = yes; then
7769 ac_cv_sizeof_int=4
7770else
7771 cat > conftest.$ac_ext <<EOF 13948 cat >conftest.$ac_ext <<_ACEOF
7772#line 7773 "configure" 13949/* confdefs.h. */
7773#include "confdefs.h" 13950_ACEOF
13951cat confdefs.h >>conftest.$ac_ext
13952cat >>conftest.$ac_ext <<_ACEOF
13953/* end confdefs.h. */
7774#include <stdio.h> 13954#include <stdint.h>
7775#include <sys/types.h> 13955int
7776main() 13956main ()
7777{ 13957{
7778 FILE *f=fopen("conftestval", "w"); 13958int16_t dummy;
7779 if (!f) exit(1); 13959 ;
7780 fprintf(f, "%d\n", sizeof(int)); 13960 return 0;
7781 exit(0);
7782} 13961}
7783EOF 13962_ACEOF
7784if { (eval echo configure:7785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 13963rm -f conftest.$ac_objext
7785then 13964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7786 ac_cv_sizeof_int=`cat conftestval` 13965 (eval $ac_compile) 2>conftest.er1
7787else 13966 ac_status=$?
7788 echo "configure: failed program was:" >&5 13967 grep -v '^ *+' conftest.er1 >conftest.err
7789 cat conftest.$ac_ext >&5
7790 rm -fr conftest* 13968 rm -f conftest.er1
7791 ac_cv_sizeof_int=0
7792fi
7793rm -fr conftest*
7794fi
7795
7796fi
7797echo "$ac_t""$ac_cv_sizeof_int" 1>&6
7798cat >> confdefs.h <<EOF
7799#define SIZEOF_INT $ac_cv_sizeof_int
7800EOF
7801
7802
7803echo $ac_n "checking size of long""... $ac_c" 1>&6
7804echo "configure:7805: checking size of long" >&5
7805if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
7806 echo $ac_n "(cached) $ac_c" 1>&6
7807else
7808 if test "$cross_compiling" = yes; then
7809 ac_cv_sizeof_long=4
7810else
7811 cat > conftest.$ac_ext <<EOF
7812#line 7813 "configure"
7813#include "confdefs.h"
7814#include <stdio.h>
7815#include <sys/types.h>
7816main()
7817{
7818 FILE *f=fopen("conftestval", "w");
7819 if (!f) exit(1);
7820 fprintf(f, "%d\n", sizeof(long));
7821 exit(0);
7822}
7823EOF
7824if { (eval echo configure:7825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7825then
7826 ac_cv_sizeof_long=`cat conftestval`
7827else
7828 echo "configure: failed program was:" >&5
7829 cat conftest.$ac_ext >&5 13969 cat conftest.err >&5
7830 rm -fr conftest* 13970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 ac_cv_sizeof_long=0 13971 (exit $ac_status); } &&
7832fi 13972 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7833rm -fr conftest* 13973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7834fi 13974 (eval $ac_try) 2>&5
7835 13975 ac_status=$?
7836fi 13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837echo "$ac_t""$ac_cv_sizeof_long" 1>&6 13977 (exit $ac_status); }; } &&
7838cat >> confdefs.h <<EOF 13978 { ac_try='test -s conftest.$ac_objext'
7839#define SIZEOF_LONG $ac_cv_sizeof_long 13979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7840EOF 13980 (eval $ac_try) 2>&5
7841 13981 ac_status=$?
7842 13982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843echo $ac_n "checking size of long long""... $ac_c" 1>&6 13983 (exit $ac_status); }; }; then
7844echo "configure:7845: checking size of long long" >&5
7845if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
7846 echo $ac_n "(cached) $ac_c" 1>&6
7847else
7848 if test "$cross_compiling" = yes; then
7849 ac_cv_sizeof_long_long=8
7850else
7851 cat > conftest.$ac_ext <<EOF
7852#line 7853 "configure"
7853#include "confdefs.h"
7854#include <stdio.h>
7855#include <sys/types.h>
7856main()
7857{
7858 FILE *f=fopen("conftestval", "w");
7859 if (!f) exit(1);
7860 fprintf(f, "%d\n", sizeof(long long));
7861 exit(0);
7862}
7863EOF
7864if { (eval echo configure:7865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7865then
7866 ac_cv_sizeof_long_long=`cat conftestval`
7867else
7868 echo "configure: failed program was:" >&5
7869 cat conftest.$ac_ext >&5
7870 rm -fr conftest*
7871 ac_cv_sizeof_long_long=0
7872fi
7873rm -fr conftest*
7874fi
7875
7876fi
7877echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
7878cat >> confdefs.h <<EOF
7879#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7880EOF
7881
7882
7883echo $ac_n "checking size of int *""... $ac_c" 1>&6
7884echo "configure:7885: checking size of int *" >&5
7885if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
7886 echo $ac_n "(cached) $ac_c" 1>&6
7887else
7888 if test "$cross_compiling" = yes; then
7889 ac_cv_sizeof_int_p=4
7890else
7891 cat > conftest.$ac_ext <<EOF
7892#line 7893 "configure"
7893#include "confdefs.h"
7894#include <stdio.h>
7895#include <sys/types.h>
7896main()
7897{
7898 FILE *f=fopen("conftestval", "w");
7899 if (!f) exit(1);
7900 fprintf(f, "%d\n", sizeof(int *));
7901 exit(0);
7902}
7903EOF
7904if { (eval echo configure:7905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7905then
7906 ac_cv_sizeof_int_p=`cat conftestval`
7907else
7908 echo "configure: failed program was:" >&5
7909 cat conftest.$ac_ext >&5
7910 rm -fr conftest*
7911 ac_cv_sizeof_int_p=0
7912fi
7913rm -fr conftest*
7914fi
7915
7916fi
7917echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
7918cat >> confdefs.h <<EOF
7919#define SIZEOF_INT_P $ac_cv_sizeof_int_p
7920EOF
7921
7922
7923
7924
7925echo $ac_n "checking for int16_t""... $ac_c" 1>&6
7926echo "configure:7927: checking for int16_t" >&5
7927if eval "test \"`echo '$''{'rxvt_cv_int16_t'+set}'`\" = set"; then
7928 echo $ac_n "(cached) $ac_c" 1>&6
7929else
7930 cat > conftest.$ac_ext <<EOF
7931#line 7932 "configure"
7932#include "confdefs.h"
7933#include <stdint.h>
7934int main() {
7935int16_t dummy;
7936; return 0; }
7937EOF
7938if { (eval echo configure:7939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7939 rm -rf conftest*
7940 rxvt_cv_int16_t=yes 13984 rxvt_cv_int16_t=yes
7941else 13985else
7942 echo "configure: failed program was:" >&5 13986 echo "$as_me: failed program was:" >&5
7943 cat conftest.$ac_ext >&5 13987sed 's/^/| /' conftest.$ac_ext >&5
7944 rm -rf conftest* 13988
7945 if test $ac_cv_sizeof_char -ge 2; then 13989if test $ac_cv_sizeof_char -ge 2; then
7946 rxvt_cv_int16_t=" char" 13990 rxvt_cv_int16_t=" char"
7947else 13991else
7948 if test $ac_cv_sizeof_short -ge 2; then 13992 if test $ac_cv_sizeof_short -ge 2; then
7949 rxvt_cv_int16_t=" short" 13993 rxvt_cv_int16_t=" short"
7950 else 13994 else
7962 fi 14006 fi
7963 fi 14007 fi
7964 fi 14008 fi
7965fi 14009fi
7966fi 14010fi
7967rm -f conftest* 14011rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7968fi 14012fi
7969 14013echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5
7970echo "$ac_t""$rxvt_cv_int16_t" 1>&6 14014echo "${ECHO_T}$rxvt_cv_int16_t" >&6
7971if test x"$rxvt_cv_int16_t" != xyes; then 14015if test x"$rxvt_cv_int16_t" != xyes; then
7972 rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;" 14016 rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;"
7973else 14017else
7974 if test x"" = x; then 14018 if test x"" = x; then
7975 rxvt_int16_typedef="/* typedef short int16_t; */" 14019 rxvt_int16_typedef="/* typedef short int16_t; */"
7976 else 14020 else
7977 rxvt_int16_typedef="/* typedef short int16_t; */" 14021 rxvt_int16_typedef="/* typedef short int16_t; */"
7978 fi 14022 fi
7979fi 14023fi
7980 14024
14025echo "$as_me:$LINENO: checking for uint16_t" >&5
7981echo $ac_n "checking for uint16_t""... $ac_c" 1>&6 14026echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
7982echo "configure:7983: checking for uint16_t" >&5
7983if eval "test \"`echo '$''{'rxvt_cv_uint16_t'+set}'`\" = set"; then 14027if test "${rxvt_cv_uint16_t+set}" = set; then
7984 echo $ac_n "(cached) $ac_c" 1>&6 14028 echo $ECHO_N "(cached) $ECHO_C" >&6
7985else 14029else
7986 cat > conftest.$ac_ext <<EOF 14030 cat >conftest.$ac_ext <<_ACEOF
7987#line 7988 "configure" 14031/* confdefs.h. */
7988#include "confdefs.h" 14032_ACEOF
14033cat confdefs.h >>conftest.$ac_ext
14034cat >>conftest.$ac_ext <<_ACEOF
14035/* end confdefs.h. */
7989#include <stdint.h> 14036#include <stdint.h>
7990int main() { 14037int
14038main ()
14039{
7991uint16_t dummy; 14040uint16_t dummy;
14041 ;
7992; return 0; } 14042 return 0;
7993EOF 14043}
7994if { (eval echo configure:7995: \"$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
7995 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
7996 rxvt_cv_uint16_t=yes 14066 rxvt_cv_uint16_t=yes
7997else 14067else
7998 echo "configure: failed program was:" >&5 14068 echo "$as_me: failed program was:" >&5
7999 cat conftest.$ac_ext >&5 14069sed 's/^/| /' conftest.$ac_ext >&5
8000 rm -rf conftest* 14070
8001 if test $ac_cv_sizeof_char -ge 2; then 14071if test $ac_cv_sizeof_char -ge 2; then
8002 rxvt_cv_uint16_t="unsigned char" 14072 rxvt_cv_uint16_t="unsigned char"
8003else 14073else
8004 if test $ac_cv_sizeof_short -ge 2; then 14074 if test $ac_cv_sizeof_short -ge 2; then
8005 rxvt_cv_uint16_t="unsigned short" 14075 rxvt_cv_uint16_t="unsigned short"
8006 else 14076 else
8018 fi 14088 fi
8019 fi 14089 fi
8020 fi 14090 fi
8021fi 14091fi
8022fi 14092fi
8023rm -f conftest* 14093rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8024fi 14094fi
8025 14095echo "$as_me:$LINENO: result: $rxvt_cv_uint16_t" >&5
8026echo "$ac_t""$rxvt_cv_uint16_t" 1>&6 14096echo "${ECHO_T}$rxvt_cv_uint16_t" >&6
8027if test x"$rxvt_cv_uint16_t" != xyes; then 14097if test x"$rxvt_cv_uint16_t" != xyes; then
8028 rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;" 14098 rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;"
8029else 14099else
8030 if test x"unsigned" = x; then 14100 if test x"unsigned" = x; then
8031 rxvt_uint16_typedef="/* typedef short uint16_t; */" 14101 rxvt_uint16_typedef="/* typedef short uint16_t; */"
8032 else 14102 else
8033 rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */" 14103 rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */"
8034 fi 14104 fi
8035fi 14105fi
8036 14106
14107echo "$as_me:$LINENO: checking for int32_t" >&5
8037echo $ac_n "checking for int32_t""... $ac_c" 1>&6 14108echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
8038echo "configure:8039: checking for int32_t" >&5
8039if eval "test \"`echo '$''{'rxvt_cv_int32_t'+set}'`\" = set"; then 14109if test "${rxvt_cv_int32_t+set}" = set; then
8040 echo $ac_n "(cached) $ac_c" 1>&6 14110 echo $ECHO_N "(cached) $ECHO_C" >&6
8041else 14111else
8042 cat > conftest.$ac_ext <<EOF 14112 cat >conftest.$ac_ext <<_ACEOF
8043#line 8044 "configure" 14113/* confdefs.h. */
8044#include "confdefs.h" 14114_ACEOF
14115cat confdefs.h >>conftest.$ac_ext
14116cat >>conftest.$ac_ext <<_ACEOF
14117/* end confdefs.h. */
8045#include <stdint.h> 14118#include <stdint.h>
8046int main() { 14119int
14120main ()
14121{
8047int32_t dummy; 14122int32_t dummy;
14123 ;
8048; return 0; } 14124 return 0;
8049EOF 14125}
8050if { (eval echo configure:8051: \"$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
8051 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
8052 rxvt_cv_int32_t=yes 14148 rxvt_cv_int32_t=yes
8053else 14149else
8054 echo "configure: failed program was:" >&5 14150 echo "$as_me: failed program was:" >&5
8055 cat conftest.$ac_ext >&5 14151sed 's/^/| /' conftest.$ac_ext >&5
8056 rm -rf conftest* 14152
8057 if test $ac_cv_sizeof_char -ge 4; then 14153if test $ac_cv_sizeof_char -ge 4; then
8058 rxvt_cv_int32_t=" char" 14154 rxvt_cv_int32_t=" char"
8059else 14155else
8060 if test $ac_cv_sizeof_short -ge 4; then 14156 if test $ac_cv_sizeof_short -ge 4; then
8061 rxvt_cv_int32_t=" short" 14157 rxvt_cv_int32_t=" short"
8062 else 14158 else
8074 fi 14170 fi
8075 fi 14171 fi
8076 fi 14172 fi
8077fi 14173fi
8078fi 14174fi
8079rm -f conftest* 14175rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8080fi 14176fi
8081 14177echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5
8082echo "$ac_t""$rxvt_cv_int32_t" 1>&6 14178echo "${ECHO_T}$rxvt_cv_int32_t" >&6
8083if test x"$rxvt_cv_int32_t" != xyes; then 14179if test x"$rxvt_cv_int32_t" != xyes; then
8084 rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;" 14180 rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;"
8085else 14181else
8086 if test x"" = x; then 14182 if test x"" = x; then
8087 rxvt_int32_typedef="/* typedef int int32_t; */" 14183 rxvt_int32_typedef="/* typedef int int32_t; */"
8088 else 14184 else
8089 rxvt_int32_typedef="/* typedef int int32_t; */" 14185 rxvt_int32_typedef="/* typedef int int32_t; */"
8090 fi 14186 fi
8091fi 14187fi
8092 14188
14189echo "$as_me:$LINENO: checking for uint32_t" >&5
8093echo $ac_n "checking for uint32_t""... $ac_c" 1>&6 14190echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
8094echo "configure:8095: checking for uint32_t" >&5
8095if eval "test \"`echo '$''{'rxvt_cv_uint32_t'+set}'`\" = set"; then 14191if test "${rxvt_cv_uint32_t+set}" = set; then
8096 echo $ac_n "(cached) $ac_c" 1>&6 14192 echo $ECHO_N "(cached) $ECHO_C" >&6
8097else 14193else
8098 cat > conftest.$ac_ext <<EOF 14194 cat >conftest.$ac_ext <<_ACEOF
8099#line 8100 "configure" 14195/* confdefs.h. */
8100#include "confdefs.h" 14196_ACEOF
14197cat confdefs.h >>conftest.$ac_ext
14198cat >>conftest.$ac_ext <<_ACEOF
14199/* end confdefs.h. */
8101#include <stdint.h> 14200#include <stdint.h>
8102int main() { 14201int
14202main ()
14203{
8103uint32_t dummy; 14204uint32_t dummy;
14205 ;
8104; return 0; } 14206 return 0;
8105EOF 14207}
8106if { (eval echo configure:8107: \"$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
8107 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
8108 rxvt_cv_uint32_t=yes 14230 rxvt_cv_uint32_t=yes
8109else 14231else
8110 echo "configure: failed program was:" >&5 14232 echo "$as_me: failed program was:" >&5
8111 cat conftest.$ac_ext >&5 14233sed 's/^/| /' conftest.$ac_ext >&5
8112 rm -rf conftest* 14234
8113 if test $ac_cv_sizeof_char -ge 4; then 14235if test $ac_cv_sizeof_char -ge 4; then
8114 rxvt_cv_uint32_t="unsigned char" 14236 rxvt_cv_uint32_t="unsigned char"
8115else 14237else
8116 if test $ac_cv_sizeof_short -ge 4; then 14238 if test $ac_cv_sizeof_short -ge 4; then
8117 rxvt_cv_uint32_t="unsigned short" 14239 rxvt_cv_uint32_t="unsigned short"
8118 else 14240 else
8130 fi 14252 fi
8131 fi 14253 fi
8132 fi 14254 fi
8133fi 14255fi
8134fi 14256fi
8135rm -f conftest* 14257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8136fi 14258fi
8137 14259echo "$as_me:$LINENO: result: $rxvt_cv_uint32_t" >&5
8138echo "$ac_t""$rxvt_cv_uint32_t" 1>&6 14260echo "${ECHO_T}$rxvt_cv_uint32_t" >&6
8139if test x"$rxvt_cv_uint32_t" != xyes; then 14261if test x"$rxvt_cv_uint32_t" != xyes; then
8140 rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;" 14262 rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;"
8141else 14263else
8142 if test x"unsigned" = x; then 14264 if test x"unsigned" = x; then
8143 rxvt_uint32_typedef="/* typedef int uint32_t; */" 14265 rxvt_uint32_typedef="/* typedef int uint32_t; */"
8144 else 14266 else
8145 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */" 14267 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
8146 fi 14268 fi
8147fi 14269fi
8148 14270
8149if test $ac_cv_sizeof_int_p -eq 8; then 14271if test $ac_cv_sizeof_int_p -eq 8; then
8150 rxvt_intp_define="#define intp_t int64_t" 14272 rxvt_intp_define="#define intp_t int64_t"
8151 rxvt_u_intp_define="#define u_intp_t u_int64_t" 14273 rxvt_u_intp_define="#define u_intp_t u_int64_t"
8152else 14274else
8164 fi 14286 fi
8165fi 14287fi
8166 14288
8167 14289
8168 14290
14291echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8169echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 14292echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
8170echo "configure:8171: checking return type of signal handlers" >&5
8171if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then 14293if test "${ac_cv_type_signal+set}" = set; then
8172 echo $ac_n "(cached) $ac_c" 1>&6 14294 echo $ECHO_N "(cached) $ECHO_C" >&6
8173else 14295else
8174 cat > conftest.$ac_ext <<EOF 14296 cat >conftest.$ac_ext <<_ACEOF
8175#line 8176 "configure" 14297/* confdefs.h. */
8176#include "confdefs.h" 14298_ACEOF
14299cat confdefs.h >>conftest.$ac_ext
14300cat >>conftest.$ac_ext <<_ACEOF
14301/* end confdefs.h. */
8177#include <sys/types.h> 14302#include <sys/types.h>
8178#include <signal.h> 14303#include <signal.h>
8179#ifdef signal 14304#ifdef signal
8180#undef signal 14305# undef signal
8181#endif 14306#endif
8182#ifdef __cplusplus 14307#ifdef __cplusplus
8183extern "C" void (*signal (int, void (*)(int)))(int); 14308extern "C" void (*signal (int, void (*)(int)))(int);
8184#else 14309#else
8185void (*signal ()) (); 14310void (*signal ()) ();
8186#endif 14311#endif
8187 14312
8188int main() { 14313int
14314main ()
14315{
8189int i; 14316int i;
14317 ;
8190; return 0; } 14318 return 0;
8191EOF 14319}
8192if { (eval echo configure:8193: \"$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
8193 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
8194 ac_cv_type_signal=void 14342 ac_cv_type_signal=void
8195else 14343else
8196 echo "configure: failed program was:" >&5 14344 echo "$as_me: failed program was:" >&5
8197 cat conftest.$ac_ext >&5 14345sed 's/^/| /' conftest.$ac_ext >&5
8198 rm -rf conftest* 14346
8199 ac_cv_type_signal=int 14347ac_cv_type_signal=int
8200fi 14348fi
8201rm -f conftest* 14349rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8202fi 14350fi
8203 14351echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8204echo "$ac_t""$ac_cv_type_signal" 1>&6 14352echo "${ECHO_T}$ac_cv_type_signal" >&6
14353
8205cat >> confdefs.h <<EOF 14354cat >>confdefs.h <<_ACEOF
8206#define RETSIGTYPE $ac_cv_type_signal 14355#define RETSIGTYPE $ac_cv_type_signal
8207EOF 14356_ACEOF
8208 14357
8209 14358
8210 14359
8211case "$host_alias" in 14360case "$host_alias" in
8212 *ultrix) ac_cv_func_setsid='no' ;; 14361 *ultrix) ac_cv_func_setsid='no' ;;
8213 *) break;; 14362 *) break;;
8214esac 14363esac
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
8215 14382
8216for ac_func in \ 14383for ac_func in \
8217 atexit \ 14384 atexit \
8218 revoke \ 14385 revoke \
8219 unsetenv \ 14386 unsetenv \
8232 nanosleep \ 14399 nanosleep \
8233 updwtmp \ 14400 updwtmp \
8234 ttyslot \ 14401 ttyslot \
8235 14402
8236do 14403do
14404as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14405echo "$as_me:$LINENO: checking for $ac_func" >&5
8237echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 14406echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8238echo "configure:8239: checking for $ac_func" >&5 14407if eval "test \"\${$as_ac_var+set}\" = set"; then
8239if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8240 echo $ac_n "(cached) $ac_c" 1>&6 14408 echo $ECHO_N "(cached) $ECHO_C" >&6
8241else 14409else
8242 cat > conftest.$ac_ext <<EOF 14410 cat >conftest.$ac_ext <<_ACEOF
8243#line 8244 "configure" 14411/* confdefs.h. */
8244#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
8245/* System header to define __stub macros and hopefully few prototypes, 14420/* System header to define __stub macros and hopefully few prototypes,
8246 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
8247#include <assert.h> 14428# include <assert.h>
14429#endif
14430
14431#undef $ac_func
14432
8248/* 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
8249/* 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
8250 builtin and then its argument prototype would still apply. */ 14439 builtin and then its argument prototype would still apply. */
8251char $ac_func(); 14440char $ac_func ();
8252
8253int main() {
8254
8255/* The GNU C library defines this for functions which it implements 14441/* The GNU C library defines this for functions which it implements
8256 to always fail with ENOSYS. Some functions are actually named 14442 to always fail with ENOSYS. Some functions are actually named
8257 something starting with __ and the normal name is an alias. */ 14443 something starting with __ and the normal name is an alias. */
8258#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 14444#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8259choke me 14445choke me
8260#else 14446#else
8261$ac_func(); 14447char (*f) () = $ac_func;
8262#endif 14448#endif
14449#ifdef __cplusplus
14450}
14451#endif
8263 14452
14453int
14454main ()
14455{
14456return f != $ac_func;
14457 ;
8264; return 0; } 14458 return 0;
8265EOF 14459}
8266if { (eval echo configure:8267: \"$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
8267 rm -rf conftest* 14466 rm -f conftest.er1
8268 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"
8269else 14483else
8270 echo "configure: failed program was:" >&5 14484 echo "$as_me: failed program was:" >&5
8271 cat conftest.$ac_ext >&5 14485sed 's/^/| /' conftest.$ac_ext >&5
8272 rm -rf conftest*
8273 eval "ac_cv_func_$ac_func=no"
8274fi
8275rm -f conftest*
8276fi
8277 14486
8278if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 14487eval "$as_ac_var=no"
8279 echo "$ac_t""yes" 1>&6 14488fi
8280 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
8281 cat >> confdefs.h <<EOF 14495 cat >>confdefs.h <<_ACEOF
8282#define $ac_tr_func 1 14496#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8283EOF 14497_ACEOF
8284 14498
8285else
8286 echo "$ac_t""no" 1>&6
8287fi 14499fi
8288done 14500done
8289 14501
8290 14502
8291 14503
8292ac_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
8293echo $ac_n "checking for utmp.h""... $ac_c" 1>&6 14506echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
8294echo "configure:8295: checking for utmp.h" >&5 14507if test "${ac_cv_header_utmp_h+set}" = set; then
8295if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8296 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
8297else 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
8298 cat > conftest.$ac_ext <<EOF 14516cat >conftest.$ac_ext <<_ACEOF
8299#line 8300 "configure" 14517/* confdefs.h. */
8300#include "confdefs.h" 14518_ACEOF
14519cat confdefs.h >>conftest.$ac_ext
14520cat >>conftest.$ac_ext <<_ACEOF
14521/* end confdefs.h. */
14522$ac_includes_default
8301#include <utmp.h> 14523#include <utmp.h>
8302EOF 14524_ACEOF
8303ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14525rm -f conftest.$ac_objext
8304{ (eval echo configure:8305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8305ac_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
8306if test -z "$ac_err"; then 14585if test -z "$ac_cpp_err"; then
8307 rm -rf conftest* 14586 ac_header_preproc=yes
8308 eval "ac_cv_header_$ac_safe=yes"
8309else 14587else
8310 echo "$ac_err" >&5
8311 echo "configure: failed program was:" >&5 14588 echo "$as_me: failed program was:" >&5
8312 cat conftest.$ac_ext >&5 14589sed 's/^/| /' conftest.$ac_ext >&5
8313 rm -rf conftest* 14590
8314 eval "ac_cv_header_$ac_safe=no" 14591 ac_header_preproc=no
8315fi 14592fi
8316rm -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
8317fi 14635fi
8318if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 14636echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
8319 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
8320 echo $ac_n "checking for struct utmp""... $ac_c" 1>&6 14642echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6
8321echo "configure:8322: checking for struct utmp" >&5
8322if eval "test \"`echo '$''{'rxvt_cv_struct_utmp'+set}'`\" = set"; then 14643if test "${rxvt_cv_struct_utmp+set}" = set; then
8323 echo $ac_n "(cached) $ac_c" 1>&6 14644 echo $ECHO_N "(cached) $ECHO_C" >&6
8324else 14645else
8325 cat > conftest.$ac_ext <<EOF 14646 cat >conftest.$ac_ext <<_ACEOF
8326#line 8327 "configure" 14647/* confdefs.h. */
8327#include "confdefs.h" 14648_ACEOF
14649cat confdefs.h >>conftest.$ac_ext
14650cat >>conftest.$ac_ext <<_ACEOF
14651/* end confdefs.h. */
8328#include <sys/types.h> 14652#include <sys/types.h>
8329#include <stdint.h> 14653#include <stdint.h>
8330#include <utmp.h> 14654#include <utmp.h>
8331int main() { 14655int
14656main ()
14657{
8332struct utmp ut; 14658struct utmp ut;
14659 ;
8333; return 0; } 14660 return 0;
8334EOF 14661}
8335if { (eval echo configure:8336: \"$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
8336 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
8337 rxvt_cv_struct_utmp=yes 14684 rxvt_cv_struct_utmp=yes
8338else 14685else
8339 echo "configure: failed program was:" >&5 14686 echo "$as_me: failed program was:" >&5
8340 cat conftest.$ac_ext >&5 14687sed 's/^/| /' conftest.$ac_ext >&5
8341 rm -rf conftest* 14688
8342 rxvt_cv_struct_utmp=no 14689rxvt_cv_struct_utmp=no
8343fi 14690fi
8344rm -f conftest* 14691rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8345fi 14692fi
8346 14693echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp" >&5
8347echo "$ac_t""$rxvt_cv_struct_utmp" 1>&6 14694echo "${ECHO_T}$rxvt_cv_struct_utmp" >&6
8348if test x$rxvt_cv_struct_utmp = xyes; then 14695if test x$rxvt_cv_struct_utmp = xyes; then
14696
8349 cat >> confdefs.h <<\EOF 14697cat >>confdefs.h <<\_ACEOF
8350#define HAVE_STRUCT_UTMP 1 14698#define HAVE_STRUCT_UTMP 1
8351EOF 14699_ACEOF
8352 14700
8353fi 14701fi
8354 14702
8355 14703
14704echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5
8356echo $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
8357echo "configure:8358: checking for ut_host in utmp struct" >&5
8358if eval "test \"`echo '$''{'rxvt_cv_struct_utmp_host'+set}'`\" = set"; then 14706if test "${rxvt_cv_struct_utmp_host+set}" = set; then
8359 echo $ac_n "(cached) $ac_c" 1>&6 14707 echo $ECHO_N "(cached) $ECHO_C" >&6
8360else 14708else
8361 cat > conftest.$ac_ext <<EOF 14709 cat >conftest.$ac_ext <<_ACEOF
8362#line 8363 "configure" 14710/* confdefs.h. */
8363#include "confdefs.h" 14711_ACEOF
14712cat confdefs.h >>conftest.$ac_ext
14713cat >>conftest.$ac_ext <<_ACEOF
14714/* end confdefs.h. */
8364#include <sys/types.h> 14715#include <sys/types.h>
8365#include <utmp.h> 14716#include <utmp.h>
8366int main() { 14717int
14718main ()
14719{
8367struct utmp ut; ut.ut_host; 14720struct utmp ut; ut.ut_host;
14721 ;
8368; return 0; } 14722 return 0;
8369EOF 14723}
8370if { (eval echo configure:8371: \"$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
8371 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
8372 rxvt_cv_struct_utmp_host=yes 14746 rxvt_cv_struct_utmp_host=yes
8373else 14747else
8374 echo "configure: failed program was:" >&5 14748 echo "$as_me: failed program was:" >&5
8375 cat conftest.$ac_ext >&5 14749sed 's/^/| /' conftest.$ac_ext >&5
8376 rm -rf conftest* 14750
8377 rxvt_cv_struct_utmp_host=no 14751rxvt_cv_struct_utmp_host=no
8378fi 14752fi
8379rm -f conftest* 14753rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8380fi 14754fi
8381 14755echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_host" >&5
8382echo "$ac_t""$rxvt_cv_struct_utmp_host" 1>&6 14756echo "${ECHO_T}$rxvt_cv_struct_utmp_host" >&6
8383if test x$rxvt_cv_struct_utmp_host = xyes; then 14757if test x$rxvt_cv_struct_utmp_host = xyes; then
14758
8384 cat >> confdefs.h <<\EOF 14759cat >>confdefs.h <<\_ACEOF
8385#define HAVE_UTMP_HOST 1 14760#define HAVE_UTMP_HOST 1
8386EOF 14761_ACEOF
8387 14762
8388fi 14763fi
8389 14764
14765echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5
8390echo $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
8391echo "configure:8392: checking for ut_pid in utmp struct" >&5
8392if eval "test \"`echo '$''{'rxvt_cv_struct_utmp_pid'+set}'`\" = set"; then 14767if test "${rxvt_cv_struct_utmp_pid+set}" = set; then
8393 echo $ac_n "(cached) $ac_c" 1>&6 14768 echo $ECHO_N "(cached) $ECHO_C" >&6
8394else 14769else
8395 cat > conftest.$ac_ext <<EOF 14770 cat >conftest.$ac_ext <<_ACEOF
8396#line 8397 "configure" 14771/* confdefs.h. */
8397#include "confdefs.h" 14772_ACEOF
14773cat confdefs.h >>conftest.$ac_ext
14774cat >>conftest.$ac_ext <<_ACEOF
14775/* end confdefs.h. */
8398#include <sys/types.h> 14776#include <sys/types.h>
8399#include <utmp.h> 14777#include <utmp.h>
8400int main() { 14778int
14779main ()
14780{
8401struct utmp ut; ut.ut_pid; 14781struct utmp ut; ut.ut_pid;
14782 ;
8402; return 0; } 14783 return 0;
8403EOF 14784}
8404if { (eval echo configure:8405: \"$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
8405 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
8406 rxvt_cv_struct_utmp_pid=yes 14807 rxvt_cv_struct_utmp_pid=yes
8407else 14808else
8408 echo "configure: failed program was:" >&5 14809 echo "$as_me: failed program was:" >&5
8409 cat conftest.$ac_ext >&5 14810sed 's/^/| /' conftest.$ac_ext >&5
8410 rm -rf conftest* 14811
8411 rxvt_cv_struct_utmp_pid=no 14812rxvt_cv_struct_utmp_pid=no
8412fi 14813fi
8413rm -f conftest* 14814rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8414fi 14815fi
8415 14816echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_pid" >&5
8416echo "$ac_t""$rxvt_cv_struct_utmp_pid" 1>&6 14817echo "${ECHO_T}$rxvt_cv_struct_utmp_pid" >&6
8417if test x$rxvt_cv_struct_utmp_pid = xyes; then 14818if test x$rxvt_cv_struct_utmp_pid = xyes; then
14819
8418 cat >> confdefs.h <<\EOF 14820cat >>confdefs.h <<\_ACEOF
8419#define HAVE_UTMP_PID 1 14821#define HAVE_UTMP_PID 1
8420EOF 14822_ACEOF
8421 14823
8422fi 14824fi
8423 14825
8424else
8425 echo "$ac_t""no" 1>&6
8426fi 14826fi
8427
8428 14827
8429ac_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
8430echo $ac_n "checking for utmpx.h""... $ac_c" 1>&6 14832echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6
8431echo "configure:8432: checking for utmpx.h" >&5 14833if test "${ac_cv_header_utmpx_h+set}" = set; then
8432if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8433 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
8434else 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
8435 cat > conftest.$ac_ext <<EOF 14842cat >conftest.$ac_ext <<_ACEOF
8436#line 8437 "configure" 14843/* confdefs.h. */
8437#include "confdefs.h" 14844_ACEOF
14845cat confdefs.h >>conftest.$ac_ext
14846cat >>conftest.$ac_ext <<_ACEOF
14847/* end confdefs.h. */
14848$ac_includes_default
8438#include <utmpx.h> 14849#include <utmpx.h>
8439EOF 14850_ACEOF
8440ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14851rm -f conftest.$ac_objext
8441{ (eval echo configure:8442: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8442ac_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
8443if test -z "$ac_err"; then 14911if test -z "$ac_cpp_err"; then
8444 rm -rf conftest* 14912 ac_header_preproc=yes
8445 eval "ac_cv_header_$ac_safe=yes"
8446else 14913else
8447 echo "$ac_err" >&5
8448 echo "configure: failed program was:" >&5 14914 echo "$as_me: failed program was:" >&5
8449 cat conftest.$ac_ext >&5 14915sed 's/^/| /' conftest.$ac_ext >&5
8450 rm -rf conftest* 14916
8451 eval "ac_cv_header_$ac_safe=no" 14917 ac_header_preproc=no
8452fi 14918fi
8453rm -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
8454fi 14961fi
8455if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 14962echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
8456 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
8457 echo $ac_n "checking for struct utmpx""... $ac_c" 1>&6 14968echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6
8458echo "configure:8459: checking for struct utmpx" >&5
8459if eval "test \"`echo '$''{'rxvt_cv_struct_utmpx'+set}'`\" = set"; then 14969if test "${rxvt_cv_struct_utmpx+set}" = set; then
8460 echo $ac_n "(cached) $ac_c" 1>&6 14970 echo $ECHO_N "(cached) $ECHO_C" >&6
8461else 14971else
8462 cat > conftest.$ac_ext <<EOF 14972 cat >conftest.$ac_ext <<_ACEOF
8463#line 8464 "configure" 14973/* confdefs.h. */
8464#include "confdefs.h" 14974_ACEOF
14975cat confdefs.h >>conftest.$ac_ext
14976cat >>conftest.$ac_ext <<_ACEOF
14977/* end confdefs.h. */
8465#include <sys/types.h> 14978#include <sys/types.h>
8466#include <utmpx.h> 14979#include <utmpx.h>
8467int main() { 14980int
14981main ()
14982{
8468struct utmpx ut; 14983struct utmpx ut;
14984 ;
8469; return 0; } 14985 return 0;
8470EOF 14986}
8471if { (eval echo configure:8472: \"$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
8472 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
8473 rxvt_cv_struct_utmpx=yes 15009 rxvt_cv_struct_utmpx=yes
8474else 15010else
8475 echo "configure: failed program was:" >&5 15011 echo "$as_me: failed program was:" >&5
8476 cat conftest.$ac_ext >&5 15012sed 's/^/| /' conftest.$ac_ext >&5
8477 rm -rf conftest* 15013
8478 rxvt_cv_struct_utmpx=no 15014rxvt_cv_struct_utmpx=no
8479fi 15015fi
8480rm -f conftest* 15016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8481fi 15017fi
8482 15018echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx" >&5
8483echo "$ac_t""$rxvt_cv_struct_utmpx" 1>&6 15019echo "${ECHO_T}$rxvt_cv_struct_utmpx" >&6
8484if test x$rxvt_cv_struct_utmpx = xyes; then 15020if test x$rxvt_cv_struct_utmpx = xyes; then
15021
8485 cat >> confdefs.h <<\EOF 15022cat >>confdefs.h <<\_ACEOF
8486#define HAVE_STRUCT_UTMPX 1 15023#define HAVE_STRUCT_UTMPX 1
8487EOF 15024_ACEOF
8488 15025
8489fi 15026fi
8490 15027
8491 15028
15029echo "$as_me:$LINENO: checking for host in utmpx struct" >&5
8492echo $ac_n "checking for host in utmpx struct""... $ac_c" 1>&6 15030echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6
8493echo "configure:8494: checking for host in utmpx struct" >&5
8494if eval "test \"`echo '$''{'rxvt_cv_struct_utmpx_host'+set}'`\" = set"; then 15031if test "${rxvt_cv_struct_utmpx_host+set}" = set; then
8495 echo $ac_n "(cached) $ac_c" 1>&6 15032 echo $ECHO_N "(cached) $ECHO_C" >&6
8496else 15033else
8497 cat > conftest.$ac_ext <<EOF 15034 cat >conftest.$ac_ext <<_ACEOF
8498#line 8499 "configure" 15035/* confdefs.h. */
8499#include "confdefs.h" 15036_ACEOF
15037cat confdefs.h >>conftest.$ac_ext
15038cat >>conftest.$ac_ext <<_ACEOF
15039/* end confdefs.h. */
8500#include <sys/types.h> 15040#include <sys/types.h>
8501#include <utmpx.h> 15041#include <utmpx.h>
8502int main() { 15042int
15043main ()
15044{
8503struct utmpx utx; utx.ut_host; 15045struct utmpx utx; utx.ut_host;
15046 ;
8504; return 0; } 15047 return 0;
8505EOF 15048}
8506if { (eval echo configure:8507: \"$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
8507 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
8508 rxvt_cv_struct_utmpx_host=yes 15071 rxvt_cv_struct_utmpx_host=yes
8509else 15072else
8510 echo "configure: failed program was:" >&5 15073 echo "$as_me: failed program was:" >&5
8511 cat conftest.$ac_ext >&5 15074sed 's/^/| /' conftest.$ac_ext >&5
8512 rm -rf conftest* 15075
8513 rxvt_cv_struct_utmpx_host=no 15076rxvt_cv_struct_utmpx_host=no
8514fi 15077fi
8515rm -f conftest* 15078rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8516fi 15079fi
8517 15080echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_host" >&5
8518echo "$ac_t""$rxvt_cv_struct_utmpx_host" 1>&6 15081echo "${ECHO_T}$rxvt_cv_struct_utmpx_host" >&6
8519if test x$rxvt_cv_struct_utmpx_host = xyes; then 15082if test x$rxvt_cv_struct_utmpx_host = xyes; then
15083
8520 cat >> confdefs.h <<\EOF 15084cat >>confdefs.h <<\_ACEOF
8521#define HAVE_UTMPX_HOST 1 15085#define HAVE_UTMPX_HOST 1
8522EOF 15086_ACEOF
8523 15087
8524fi 15088fi
8525 15089
8526else
8527 echo "$ac_t""no" 1>&6
8528fi 15090fi
8529
8530 15091
15092
15093
15094echo "$as_me:$LINENO: checking for struct lastlog" >&5
8531echo $ac_n "checking for struct lastlog""... $ac_c" 1>&6 15095echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6
8532echo "configure:8533: checking for struct lastlog" >&5
8533if eval "test \"`echo '$''{'rxvt_cv_struct_lastlog'+set}'`\" = set"; then 15096if test "${rxvt_cv_struct_lastlog+set}" = set; then
8534 echo $ac_n "(cached) $ac_c" 1>&6 15097 echo $ECHO_N "(cached) $ECHO_C" >&6
8535else 15098else
8536 cat > conftest.$ac_ext <<EOF 15099 cat >conftest.$ac_ext <<_ACEOF
8537#line 8538 "configure" 15100/* confdefs.h. */
8538#include "confdefs.h" 15101_ACEOF
15102cat confdefs.h >>conftest.$ac_ext
15103cat >>conftest.$ac_ext <<_ACEOF
15104/* end confdefs.h. */
8539#include <sys/types.h> 15105#include <sys/types.h>
8540#include <utmp.h> 15106#include <utmp.h>
8541#ifdef HAVE_LASTLOG_H 15107#ifdef HAVE_LASTLOG_H
8542#include <lastlog.h> 15108#include <lastlog.h>
8543#endif 15109#endif
8544 15110
8545int main() { 15111int
15112main ()
15113{
8546struct lastlog ll; 15114struct lastlog ll;
15115 ;
8547; return 0; } 15116 return 0;
8548EOF 15117}
8549if { (eval echo configure:8550: \"$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
8550 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
8551 rxvt_cv_struct_lastlog=yes 15140 rxvt_cv_struct_lastlog=yes
8552else 15141else
8553 echo "configure: failed program was:" >&5 15142 echo "$as_me: failed program was:" >&5
8554 cat conftest.$ac_ext >&5 15143sed 's/^/| /' conftest.$ac_ext >&5
8555 rm -rf conftest* 15144
8556 rxvt_cv_struct_lastlog=no 15145rxvt_cv_struct_lastlog=no
8557fi 15146fi
8558rm -f conftest* 15147rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8559fi 15148fi
8560 15149echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlog" >&5
8561echo "$ac_t""$rxvt_cv_struct_lastlog" 1>&6 15150echo "${ECHO_T}$rxvt_cv_struct_lastlog" >&6
8562if test x$rxvt_cv_struct_lastlog = xyes; then 15151if test x$rxvt_cv_struct_lastlog = xyes; then
15152
8563 cat >> confdefs.h <<\EOF 15153cat >>confdefs.h <<\_ACEOF
8564#define HAVE_STRUCT_LASTLOG 1 15154#define HAVE_STRUCT_LASTLOG 1
8565EOF 15155_ACEOF
8566 15156
8567fi 15157fi
8568 15158
15159echo "$as_me:$LINENO: checking for struct lastlogx" >&5
8569echo $ac_n "checking for struct lastlogx""... $ac_c" 1>&6 15160echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6
8570echo "configure:8571: checking for struct lastlogx" >&5
8571if eval "test \"`echo '$''{'rxvt_cv_struct_lastlogx'+set}'`\" = set"; then 15161if test "${rxvt_cv_struct_lastlogx+set}" = set; then
8572 echo $ac_n "(cached) $ac_c" 1>&6 15162 echo $ECHO_N "(cached) $ECHO_C" >&6
8573else 15163else
8574 cat > conftest.$ac_ext <<EOF 15164 cat >conftest.$ac_ext <<_ACEOF
8575#line 8576 "configure" 15165/* confdefs.h. */
8576#include "confdefs.h" 15166_ACEOF
15167cat confdefs.h >>conftest.$ac_ext
15168cat >>conftest.$ac_ext <<_ACEOF
15169/* end confdefs.h. */
8577#include <sys/types.h> 15170#include <sys/types.h>
8578#include <utmpx.h> 15171#include <utmpx.h>
8579#ifdef HAVE_LASTLOG_H 15172#ifdef HAVE_LASTLOG_H
8580#include <lastlog.h> 15173#include <lastlog.h>
8581#endif 15174#endif
8582 15175
8583int main() { 15176int
15177main ()
15178{
8584struct lastlogx ll; 15179struct lastlogx ll;
15180 ;
8585; return 0; } 15181 return 0;
8586EOF 15182}
8587if { (eval echo configure:8588: \"$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
8588 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
8589 rxvt_cv_struct_lastlogx=yes 15205 rxvt_cv_struct_lastlogx=yes
8590else 15206else
8591 echo "configure: failed program was:" >&5 15207 echo "$as_me: failed program was:" >&5
8592 cat conftest.$ac_ext >&5 15208sed 's/^/| /' conftest.$ac_ext >&5
8593 rm -rf conftest* 15209
8594 rxvt_cv_struct_lastlogx=no 15210rxvt_cv_struct_lastlogx=no
8595fi 15211fi
8596rm -f conftest* 15212rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8597fi 15213fi
8598 15214echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlogx" >&5
8599echo "$ac_t""$rxvt_cv_struct_lastlogx" 1>&6 15215echo "${ECHO_T}$rxvt_cv_struct_lastlogx" >&6
8600if test x$rxvt_cv_struct_lastlogx = xyes; then 15216if test x$rxvt_cv_struct_lastlogx = xyes; then
15217
8601 cat >> confdefs.h <<\EOF 15218cat >>confdefs.h <<\_ACEOF
8602#define HAVE_STRUCT_LASTLOGX 1 15219#define HAVE_STRUCT_LASTLOGX 1
8603EOF 15220_ACEOF
8604 15221
8605fi 15222fi
8606 15223
8607 15224
15225echo "$as_me:$LINENO: checking where utmp is located" >&5
8608echo $ac_n "checking where utmp is located""... $ac_c" 1>&6 15226echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6
8609echo "configure:8610: checking where utmp is located" >&5
8610if eval "test \"`echo '$''{'rxvt_cv_path_utmp'+set}'`\" = set"; then 15227if test "${rxvt_cv_path_utmp+set}" = set; then
8611 echo $ac_n "(cached) $ac_c" 1>&6 15228 echo $ECHO_N "(cached) $ECHO_C" >&6
8612else 15229else
8613 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
8614 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;}
8615else 15233else
8616 cat > conftest.$ac_ext <<EOF 15234 cat >conftest.$ac_ext <<_ACEOF
8617#line 8618 "configure" 15235/* confdefs.h. */
8618#include "confdefs.h" 15236_ACEOF
15237cat confdefs.h >>conftest.$ac_ext
15238cat >>conftest.$ac_ext <<_ACEOF
15239/* end confdefs.h. */
8619#include <stdio.h> 15240#include <stdio.h>
8620#include <sys/types.h> 15241#include <sys/types.h>
8621#include <utmp.h> 15242#include <utmp.h>
8622#include <errno.h> 15243#include <errno.h>
8623main() 15244main()
8640 exit(0); 15261 exit(0);
8641 } 15262 }
8642 } 15263 }
8643 exit(0); 15264 exit(0);
8644} 15265}
8645EOF 15266_ACEOF
8646if { (eval echo configure:8647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 15267rm -f conftest$ac_exeext
8647then 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
8648 rxvt_cv_path_utmp=`cat conftestval` 15278 rxvt_cv_path_utmp=`cat conftestval`
8649else 15279else
15280 echo "$as_me: program exited with status $ac_status" >&5
8650 echo "configure: failed program was:" >&5 15281echo "$as_me: failed program was:" >&5
8651 cat conftest.$ac_ext >&5 15282sed 's/^/| /' conftest.$ac_ext >&5
8652 rm -fr conftest* 15283
15284( exit $ac_status )
8653 rxvt_cv_path_utmp= 15285rxvt_cv_path_utmp=
8654fi 15286fi
8655rm -fr conftest* 15287rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8656fi 15288fi
8657
8658fi 15289fi
8659 15290echo "$as_me:$LINENO: result: $rxvt_cv_path_utmp" >&5
8660echo "$ac_t""$rxvt_cv_path_utmp" 1>&6 15291echo "${ECHO_T}$rxvt_cv_path_utmp" >&6
8661if test x$rxvt_cv_path_utmp != x; then 15292if test x$rxvt_cv_path_utmp != x; then
15293
8662 cat >> confdefs.h <<EOF 15294cat >>confdefs.h <<_ACEOF
8663#define RXVT_UTMP_FILE "$rxvt_cv_path_utmp" 15295#define RXVT_UTMP_FILE "$rxvt_cv_path_utmp"
8664EOF 15296_ACEOF
8665 15297
8666fi 15298fi
8667 15299
8668 15300
15301echo "$as_me:$LINENO: checking where utmpx is located" >&5
8669echo $ac_n "checking where utmpx is located""... $ac_c" 1>&6 15302echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6
8670echo "configure:8671: checking where utmpx is located" >&5
8671if eval "test \"`echo '$''{'rxvt_cv_path_utmpx'+set}'`\" = set"; then 15303if test "${rxvt_cv_path_utmpx+set}" = set; then
8672 echo $ac_n "(cached) $ac_c" 1>&6 15304 echo $ECHO_N "(cached) $ECHO_C" >&6
8673else 15305else
8674 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
8675 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;}
8676else 15309else
8677 cat > conftest.$ac_ext <<EOF 15310 cat >conftest.$ac_ext <<_ACEOF
8678#line 8679 "configure" 15311/* confdefs.h. */
8679#include "confdefs.h" 15312_ACEOF
15313cat confdefs.h >>conftest.$ac_ext
15314cat >>conftest.$ac_ext <<_ACEOF
15315/* end confdefs.h. */
8680#include <stdio.h> 15316#include <stdio.h>
8681#include <sys/types.h> 15317#include <sys/types.h>
8682#include <utmpx.h> 15318#include <utmpx.h>
8683#include <errno.h> 15319#include <errno.h>
8684#include <sys/stat.h> 15320#include <sys/stat.h>
8711 exit(0); 15347 exit(0);
8712 } 15348 }
8713 } 15349 }
8714 exit(0); 15350 exit(0);
8715} 15351}
8716EOF 15352_ACEOF
8717if { (eval echo configure:8718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 15353rm -f conftest$ac_exeext
8718then 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
8719 rxvt_cv_path_utmpx=`cat conftestval` 15364 rxvt_cv_path_utmpx=`cat conftestval`
8720else 15365else
15366 echo "$as_me: program exited with status $ac_status" >&5
8721 echo "configure: failed program was:" >&5 15367echo "$as_me: failed program was:" >&5
8722 cat conftest.$ac_ext >&5 15368sed 's/^/| /' conftest.$ac_ext >&5
8723 rm -fr conftest* 15369
15370( exit $ac_status )
8724 rxvt_cv_path_utmpx= 15371rxvt_cv_path_utmpx=
8725fi 15372fi
8726rm -fr conftest* 15373rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8727fi 15374fi
8728
8729fi 15375fi
8730 15376echo "$as_me:$LINENO: result: $rxvt_cv_path_utmpx" >&5
8731echo "$ac_t""$rxvt_cv_path_utmpx" 1>&6 15377echo "${ECHO_T}$rxvt_cv_path_utmpx" >&6
8732if test x$rxvt_cv_path_utmpx != x; then 15378if test x$rxvt_cv_path_utmpx != x; then
15379
8733 cat >> confdefs.h <<EOF 15380cat >>confdefs.h <<_ACEOF
8734#define RXVT_UTMPX_FILE "$rxvt_cv_path_utmpx" 15381#define RXVT_UTMPX_FILE "$rxvt_cv_path_utmpx"
8735EOF 15382_ACEOF
8736 15383
8737fi 15384fi
8738 15385
8739 15386
15387echo "$as_me:$LINENO: checking where wtmp is located" >&5
8740echo $ac_n "checking where wtmp is located""... $ac_c" 1>&6 15388echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6
8741echo "configure:8742: checking where wtmp is located" >&5
8742if eval "test \"`echo '$''{'rxvt_cv_path_wtmp'+set}'`\" = set"; then 15389if test "${rxvt_cv_path_wtmp+set}" = set; then
8743 echo $ac_n "(cached) $ac_c" 1>&6 15390 echo $ECHO_N "(cached) $ECHO_C" >&6
8744else 15391else
8745 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
8746 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;}
8747else 15395else
8748 cat > conftest.$ac_ext <<EOF 15396 cat >conftest.$ac_ext <<_ACEOF
8749#line 8750 "configure" 15397/* confdefs.h. */
8750#include "confdefs.h" 15398_ACEOF
15399cat confdefs.h >>conftest.$ac_ext
15400cat >>conftest.$ac_ext <<_ACEOF
15401/* end confdefs.h. */
8751#include <stdio.h> 15402#include <stdio.h>
8752#include <sys/types.h> 15403#include <sys/types.h>
8753#ifdef HAVE_UTMP_H 15404#ifdef HAVE_UTMP_H
8754#include <utmp.h> 15405#include <utmp.h>
8755#endif 15406#endif
8756#include <errno.h> 15407#include <errno.h>
8757main() 15408main()
8758{ 15409{
8759 char **w, *wtmplist[] = { 15410 char **w, *wtmplist[] = {
8760 "/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 };
8761 FILE *a, *f=fopen("conftestval", "w"); 15412 FILE *a, *f=fopen("conftestval", "w");
8762 if (!f) exit(1); 15413 if (!f) exit(1);
8763#ifdef WTMP_FILE 15414#ifdef WTMP_FILE
8764 fprintf(f, "%s\n", WTMP_FILE); 15415 fprintf(f, "%s\n", WTMP_FILE);
8765 exit(0); 15416 exit(0);
8774 exit(0); 15425 exit(0);
8775 } 15426 }
8776 } 15427 }
8777 exit(0); 15428 exit(0);
8778} 15429}
8779EOF 15430_ACEOF
8780if { (eval echo configure:8781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 15431rm -f conftest$ac_exeext
8781then 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
8782 rxvt_cv_path_wtmp=`cat conftestval` 15442 rxvt_cv_path_wtmp=`cat conftestval`
8783else 15443else
15444 echo "$as_me: program exited with status $ac_status" >&5
8784 echo "configure: failed program was:" >&5 15445echo "$as_me: failed program was:" >&5
8785 cat conftest.$ac_ext >&5 15446sed 's/^/| /' conftest.$ac_ext >&5
8786 rm -fr conftest* 15447
15448( exit $ac_status )
8787 rxvt_cv_path_wtmp= 15449rxvt_cv_path_wtmp=
8788fi 15450fi
8789rm -fr conftest* 15451rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8790fi 15452fi
8791
8792fi 15453fi
8793 15454echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmp" >&5
8794echo "$ac_t""$rxvt_cv_path_wtmp" 1>&6 15455echo "${ECHO_T}$rxvt_cv_path_wtmp" >&6
8795if test x$rxvt_cv_path_wtmp != x; then 15456if test x$rxvt_cv_path_wtmp != x; then
15457
8796 cat >> confdefs.h <<EOF 15458cat >>confdefs.h <<_ACEOF
8797#define RXVT_WTMP_FILE "$rxvt_cv_path_wtmp" 15459#define RXVT_WTMP_FILE "$rxvt_cv_path_wtmp"
8798EOF 15460_ACEOF
8799 15461
8800fi 15462fi
8801 15463
15464echo "$as_me:$LINENO: checking where wtmpx is located" >&5
8802echo $ac_n "checking where wtmpx is located""... $ac_c" 1>&6 15465echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6
8803echo "configure:8804: checking where wtmpx is located" >&5
8804if eval "test \"`echo '$''{'rxvt_cv_path_wtmpx'+set}'`\" = set"; then 15466if test "${rxvt_cv_path_wtmpx+set}" = set; then
8805 echo $ac_n "(cached) $ac_c" 1>&6 15467 echo $ECHO_N "(cached) $ECHO_C" >&6
8806else 15468else
8807 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
8808 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;}
8809else 15472else
8810 cat > conftest.$ac_ext <<EOF 15473 cat >conftest.$ac_ext <<_ACEOF
8811#line 8812 "configure" 15474/* confdefs.h. */
8812#include "confdefs.h" 15475_ACEOF
15476cat confdefs.h >>conftest.$ac_ext
15477cat >>conftest.$ac_ext <<_ACEOF
15478/* end confdefs.h. */
8813#include <stdio.h> 15479#include <stdio.h>
8814#ifdef HAVE_UTMPX_H 15480#ifdef HAVE_UTMPX_H
8815#include <utmpx.h> 15481#include <utmpx.h>
8816#endif 15482#endif
8817#include <errno.h> 15483#include <errno.h>
8818main() 15484main()
8819{ 15485{
8820 char **w, *wtmplist[] = { 15486 char **w, *wtmplist[] = {
8821 "/var/log/wtmpx", "/var/adm/wtmpx", NULL }; 15487 "/var/log/wtmpx", "/var/adm/wtmpx", NULL };
8822 FILE *a, *f=fopen("conftestval", "w"); 15488 FILE *a, *f=fopen("conftestval", "w");
8823 if (!f) exit(1); 15489 if (!f) exit(1);
8824#ifdef WTMPX_FILE 15490#ifdef WTMPX_FILE
8825 fprintf(f, "%s\n", WTMPX_FILE); 15491 fprintf(f, "%s\n", WTMPX_FILE);
8826 exit(0); 15492 exit(0);
8835 exit(0); 15501 exit(0);
8836 } 15502 }
8837 } 15503 }
8838 exit(0); 15504 exit(0);
8839} 15505}
8840EOF 15506_ACEOF
8841if { (eval echo configure:8842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 15507rm -f conftest$ac_exeext
8842then 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
8843 rxvt_cv_path_wtmpx=`cat conftestval` 15518 rxvt_cv_path_wtmpx=`cat conftestval`
8844else 15519else
15520 echo "$as_me: program exited with status $ac_status" >&5
8845 echo "configure: failed program was:" >&5 15521echo "$as_me: failed program was:" >&5
8846 cat conftest.$ac_ext >&5 15522sed 's/^/| /' conftest.$ac_ext >&5
8847 rm -fr conftest* 15523
15524( exit $ac_status )
8848 rxvt_cv_path_wtmpx= 15525rxvt_cv_path_wtmpx=
8849fi 15526fi
8850rm -fr conftest* 15527rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8851fi 15528fi
8852
8853fi 15529fi
8854 15530echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmpx" >&5
8855echo "$ac_t""$rxvt_cv_path_wtmpx" 1>&6 15531echo "${ECHO_T}$rxvt_cv_path_wtmpx" >&6
8856if test x$rxvt_cv_path_wtmpx != x; then 15532if test x$rxvt_cv_path_wtmpx != x; then
15533
8857 cat >> confdefs.h <<EOF 15534cat >>confdefs.h <<_ACEOF
8858#define RXVT_WTMPX_FILE "$rxvt_cv_path_wtmpx" 15535#define RXVT_WTMPX_FILE "$rxvt_cv_path_wtmpx"
8859EOF 15536_ACEOF
8860 15537
8861fi 15538fi
8862 15539
15540echo "$as_me:$LINENO: checking where lastlog is located" >&5
8863echo $ac_n "checking where lastlog is located""... $ac_c" 1>&6 15541echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6
8864echo "configure:8865: checking where lastlog is located" >&5
8865if eval "test \"`echo '$''{'rxvt_cv_path_lastlog'+set}'`\" = set"; then 15542if test "${rxvt_cv_path_lastlog+set}" = set; then
8866 echo $ac_n "(cached) $ac_c" 1>&6 15543 echo $ECHO_N "(cached) $ECHO_C" >&6
8867else 15544else
8868 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
8869 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;}
8870else 15548else
8871 cat > conftest.$ac_ext <<EOF 15549 cat >conftest.$ac_ext <<_ACEOF
8872#line 8873 "configure" 15550/* confdefs.h. */
8873#include "confdefs.h" 15551_ACEOF
15552cat confdefs.h >>conftest.$ac_ext
15553cat >>conftest.$ac_ext <<_ACEOF
15554/* end confdefs.h. */
8874#include <stdio.h> 15555#include <stdio.h>
8875#include <sys/types.h> 15556#include <sys/types.h>
8876#ifdef HAVE_UTMPX_H 15557#ifdef HAVE_UTMPX_H
8877#include <utmpx.h> 15558#include <utmpx.h>
8878#elif defined(HAVE_UTMP_H) 15559#elif defined(HAVE_UTMP_H)
8901 exit(0); 15582 exit(0);
8902 } 15583 }
8903 } 15584 }
8904 exit(0); 15585 exit(0);
8905} 15586}
8906EOF 15587_ACEOF
8907if { (eval echo configure:8908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 15588rm -f conftest$ac_exeext
8908then 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
8909 rxvt_cv_path_lastlog=`cat conftestval` 15599 rxvt_cv_path_lastlog=`cat conftestval`
8910else 15600else
15601 echo "$as_me: program exited with status $ac_status" >&5
8911 echo "configure: failed program was:" >&5 15602echo "$as_me: failed program was:" >&5
8912 cat conftest.$ac_ext >&5 15603sed 's/^/| /' conftest.$ac_ext >&5
8913 rm -fr conftest* 15604
15605( exit $ac_status )
8914 rxvt_cv_path_lastlog= 15606rxvt_cv_path_lastlog=
8915fi 15607fi
8916rm -fr conftest* 15608rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8917fi 15609fi
8918
8919fi 15610fi
8920 15611echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlog" >&5
8921echo "$ac_t""$rxvt_cv_path_lastlog" 1>&6 15612echo "${ECHO_T}$rxvt_cv_path_lastlog" >&6
8922if test x$rxvt_cv_path_lastlog != x; then 15613if test x$rxvt_cv_path_lastlog != x; then
15614
8923 cat >> confdefs.h <<EOF 15615cat >>confdefs.h <<_ACEOF
8924#define RXVT_LASTLOG_FILE "$rxvt_cv_path_lastlog" 15616#define RXVT_LASTLOG_FILE "$rxvt_cv_path_lastlog"
8925EOF 15617_ACEOF
8926 15618
8927 if test -d "$rxvt_cv_path_lastlog"; then 15619 if test -d "$rxvt_cv_path_lastlog"; then
15620
8928 cat >> confdefs.h <<\EOF 15621cat >>confdefs.h <<\_ACEOF
8929#define LASTLOG_IS_DIR 1 15622#define LASTLOG_IS_DIR 1
8930EOF 15623_ACEOF
8931 15624
8932 fi 15625 fi
8933fi 15626fi
8934 15627
15628echo "$as_me:$LINENO: checking where lastlogx is located" >&5
8935echo $ac_n "checking where lastlogx is located""... $ac_c" 1>&6 15629echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6
8936echo "configure:8937: checking where lastlogx is located" >&5
8937if eval "test \"`echo '$''{'rxvt_cv_path_lastlogx'+set}'`\" = set"; then 15630if test "${rxvt_cv_path_lastlogx+set}" = set; then
8938 echo $ac_n "(cached) $ac_c" 1>&6 15631 echo $ECHO_N "(cached) $ECHO_C" >&6
8939else 15632else
8940 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
8941 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;}
8942else 15636else
8943 cat > conftest.$ac_ext <<EOF 15637 cat >conftest.$ac_ext <<_ACEOF
8944#line 8945 "configure" 15638/* confdefs.h. */
8945#include "confdefs.h" 15639_ACEOF
15640cat confdefs.h >>conftest.$ac_ext
15641cat >>conftest.$ac_ext <<_ACEOF
15642/* end confdefs.h. */
8946#include <stdio.h> 15643#include <stdio.h>
8947#ifdef HAVE_UTMPX_H 15644#ifdef HAVE_UTMPX_H
8948#include <utmpx.h> 15645#include <utmpx.h>
8949#endif 15646#endif
8950#include <errno.h> 15647#include <errno.h>
8967 exit(0); 15664 exit(0);
8968 } 15665 }
8969 } 15666 }
8970 exit(0); 15667 exit(0);
8971} 15668}
8972EOF 15669_ACEOF
8973if { (eval echo configure:8974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 15670rm -f conftest$ac_exeext
8974then 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
8975 rxvt_cv_path_lastlogx=`cat conftestval` 15681 rxvt_cv_path_lastlogx=`cat conftestval`
8976else 15682else
15683 echo "$as_me: program exited with status $ac_status" >&5
8977 echo "configure: failed program was:" >&5 15684echo "$as_me: failed program was:" >&5
8978 cat conftest.$ac_ext >&5 15685sed 's/^/| /' conftest.$ac_ext >&5
8979 rm -fr conftest* 15686
15687( exit $ac_status )
8980 rxvt_cv_path_lastlogx= 15688rxvt_cv_path_lastlogx=
8981fi 15689fi
8982rm -fr conftest* 15690rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8983fi 15691fi
8984
8985fi 15692fi
8986 15693echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlogx" >&5
8987echo "$ac_t""$rxvt_cv_path_lastlogx" 1>&6 15694echo "${ECHO_T}$rxvt_cv_path_lastlogx" >&6
8988if test x$rxvt_cv_path_lastlogx != x; then 15695if test x$rxvt_cv_path_lastlogx != x; then
15696
8989 cat >> confdefs.h <<EOF 15697cat >>confdefs.h <<_ACEOF
8990#define RXVT_LASTLOGX_FILE "$rxvt_cv_path_lastlogx" 15698#define RXVT_LASTLOGX_FILE "$rxvt_cv_path_lastlogx"
8991EOF 15699_ACEOF
8992 15700
8993fi 15701fi
8994 15702
8995 15703
15704echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
8996echo $ac_n "checking where ttys/ttytab is located""... $ac_c" 1>&6 15705echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6
8997echo "configure:8998: checking where ttys/ttytab is located" >&5
8998if eval "test \"`echo '$''{'rxvt_cv_path_ttytab'+set}'`\" = set"; then 15706if test "${rxvt_cv_path_ttytab+set}" = set; then
8999 echo $ac_n "(cached) $ac_c" 1>&6 15707 echo $ECHO_N "(cached) $ECHO_C" >&6
9000else 15708else
9001 for ttys_file in /etc/ttys /etc/ttytab; 15709 for ttys_file in /etc/ttys /etc/ttytab;
9002do 15710do
9003 if test -f "$ttys_file" ; then 15711 if test -f "$ttys_file" ; then
9004 rxvt_cv_path_ttytab=$ttys_file 15712 rxvt_cv_path_ttytab=$ttys_file
9005 break 15713 break
9006 fi 15714 fi
9007done 15715done
9008 15716
9009fi 15717fi
9010 15718echo "$as_me:$LINENO: result: $rxvt_cv_path_ttytab" >&5
9011echo "$ac_t""$rxvt_cv_path_ttytab" 1>&6 15719echo "${ECHO_T}$rxvt_cv_path_ttytab" >&6
9012if test x$rxvt_cv_path_ttytab != x; then 15720if test x$rxvt_cv_path_ttytab != x; then
15721
9013 cat >> confdefs.h <<EOF 15722cat >>confdefs.h <<_ACEOF
9014#define TTYTAB_FILENAME "$rxvt_cv_path_ttytab" 15723#define TTYTAB_FILENAME "$rxvt_cv_path_ttytab"
9015EOF 15724_ACEOF
9016 15725
9017fi 15726fi
9018 15727
9019 15728
9020ac_save_LIBS=$LIBS 15729ac_save_LIBS=$LIBS
9022CFLAGS="$CFLAGS $X_CFLAGS" 15731CFLAGS="$CFLAGS $X_CFLAGS"
9023LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 15732LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
9024if 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
9025 LIBS=`echo $LIBS | sed "$R_TRANSLATE"` 15734 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
9026fi 15735fi
15736echo "$as_me:$LINENO: checking for working Xlocale" >&5
9027echo $ac_n "checking for working Xlocale""... $ac_c" 1>&6 15737echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6
9028echo "configure:9029: checking for working Xlocale" >&5
9029if eval "test \"`echo '$''{'rxvt_cv_func_xlocale'+set}'`\" = set"; then 15738if test "${rxvt_cv_func_xlocale+set}" = set; then
9030 echo $ac_n "(cached) $ac_c" 1>&6 15739 echo $ECHO_N "(cached) $ECHO_C" >&6
9031else 15740else
9032 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
9033 echo "configure: warning: Define NO_XLOCALE in config.h manually" 1>&2 15743echo "$as_me: WARNING: Define NO_XLOCALE in config.h manually" >&2;}
9034else 15744else
9035 cat > conftest.$ac_ext <<EOF 15745 cat >conftest.$ac_ext <<_ACEOF
9036#line 9037 "configure" 15746/* confdefs.h. */
9037#include "confdefs.h" 15747_ACEOF
15748cat confdefs.h >>conftest.$ac_ext
15749cat >>conftest.$ac_ext <<_ACEOF
15750/* end confdefs.h. */
9038#include <X11/Xlib.h> 15751#include <X11/Xlib.h>
9039main() { 15752main() {
9040char *p; 15753char *p;
9041if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) 15754if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
9042exit (XSupportsLocale() ? 0 : 1); 15755exit (XSupportsLocale() ? 0 : 1);
9043else 15756else
9044exit (1);} 15757exit (1);}
9045EOF 15758_ACEOF
9046if { (eval echo configure:9047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 15759rm -f conftest$ac_exeext
9047then 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
9048 rxvt_cv_func_xlocale=yes 15770 rxvt_cv_func_xlocale=yes
9049else 15771else
15772 echo "$as_me: program exited with status $ac_status" >&5
9050 echo "configure: failed program was:" >&5 15773echo "$as_me: failed program was:" >&5
9051 cat conftest.$ac_ext >&5 15774sed 's/^/| /' conftest.$ac_ext >&5
9052 rm -fr conftest* 15775
15776( exit $ac_status )
9053 rxvt_cv_func_xlocale=no 15777rxvt_cv_func_xlocale=no
9054fi 15778fi
9055rm -fr conftest* 15779rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9056fi 15780fi
9057
9058fi 15781fi
9059 15782echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5
9060echo "$ac_t""$rxvt_cv_func_xlocale" 1>&6 15783echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6
9061if test x$rxvt_cv_func_xlocale = xyes; then 15784if test x$rxvt_cv_func_xlocale = xyes; then
15785
9062 cat >> confdefs.h <<\EOF 15786cat >>confdefs.h <<\_ACEOF
9063#define HAVE_XLOCALE 1 15787#define HAVE_XLOCALE 1
9064EOF 15788_ACEOF
9065 15789
9066fi 15790fi
9067 15791
15792echo "$as_me:$LINENO: checking for working X setlocale" >&5
9068echo $ac_n "checking for working X setlocale""... $ac_c" 1>&6 15793echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6
9069echo "configure:9070: checking for working X setlocale" >&5
9070if eval "test \"`echo '$''{'rxvt_cv_func_xsetlocale'+set}'`\" = set"; then 15794if test "${rxvt_cv_func_xsetlocale+set}" = set; then
9071 echo $ac_n "(cached) $ac_c" 1>&6 15795 echo $ECHO_N "(cached) $ECHO_C" >&6
9072else 15796else
9073 cat > conftest.$ac_ext <<EOF 15797 cat >conftest.$ac_ext <<_ACEOF
9074#line 9075 "configure" 15798/* confdefs.h. */
9075#include "confdefs.h" 15799_ACEOF
15800cat confdefs.h >>conftest.$ac_ext
15801cat >>conftest.$ac_ext <<_ACEOF
15802/* end confdefs.h. */
9076#define X_LOCALE 1 15803#define X_LOCALE 1
9077#include <X11/Xlocale.h> 15804#include <X11/Xlocale.h>
9078int main() { 15805int
15806main ()
15807{
9079setlocale(LC_CTYPE, ""); 15808setlocale(LC_CTYPE, "");
15809 ;
9080; return 0; } 15810 return 0;
9081EOF 15811}
9082if { (eval echo configure:9083: \"$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
9083 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
9084 rxvt_cv_func_xsetlocale=yes 15834 rxvt_cv_func_xsetlocale=yes
9085else 15835else
9086 echo "configure: failed program was:" >&5 15836 echo "$as_me: failed program was:" >&5
9087 cat conftest.$ac_ext >&5 15837sed 's/^/| /' conftest.$ac_ext >&5
9088 rm -rf conftest* 15838
9089 rxvt_cv_func_xsetlocale=no 15839rxvt_cv_func_xsetlocale=no
9090fi 15840fi
9091rm -f conftest* 15841rm -f conftest.err conftest.$ac_objext \
15842 conftest$ac_exeext conftest.$ac_ext
9092fi 15843fi
9093 15844echo "$as_me:$LINENO: result: $rxvt_cv_func_xsetlocale" >&5
9094echo "$ac_t""$rxvt_cv_func_xsetlocale" 1>&6 15845echo "${ECHO_T}$rxvt_cv_func_xsetlocale" >&6
9095if test x$rxvt_cv_func_xsetlocale = xyes; then 15846if test x$rxvt_cv_func_xsetlocale = xyes; then
15847
9096 cat >> confdefs.h <<\EOF 15848cat >>confdefs.h <<\_ACEOF
9097#define HAVE_XSETLOCALE 1 15849#define HAVE_XSETLOCALE 1
9098EOF 15850_ACEOF
9099 15851
9100fi 15852fi
9101LIBS=$ac_save_LIBS 15853LIBS=$ac_save_LIBS
9102CFLAGS=$ac_save_CFLAGS 15854CFLAGS=$ac_save_CFLAGS
9103 15855
15856echo "$as_me:$LINENO: checking for working plain setlocale" >&5
9104echo $ac_n "checking for working plain setlocale""... $ac_c" 1>&6 15857echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6
9105echo "configure:9106: checking for working plain setlocale" >&5
9106if eval "test \"`echo '$''{'rxvt_cv_func_setlocale'+set}'`\" = set"; then 15858if test "${rxvt_cv_func_setlocale+set}" = set; then
9107 echo $ac_n "(cached) $ac_c" 1>&6 15859 echo $ECHO_N "(cached) $ECHO_C" >&6
9108else 15860else
9109 cat > conftest.$ac_ext <<EOF 15861 cat >conftest.$ac_ext <<_ACEOF
9110#line 9111 "configure" 15862/* confdefs.h. */
9111#include "confdefs.h" 15863_ACEOF
15864cat confdefs.h >>conftest.$ac_ext
15865cat >>conftest.$ac_ext <<_ACEOF
15866/* end confdefs.h. */
9112#include <locale.h> 15867#include <clocale>
9113int main() { 15868int
15869main ()
15870{
9114setlocale(LC_CTYPE, ""); 15871setlocale(LC_CTYPE, "");
15872 ;
9115; return 0; } 15873 return 0;
9116EOF 15874}
9117if { (eval echo configure:9118: \"$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
9118 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
9119 rxvt_cv_func_setlocale=yes 15897 rxvt_cv_func_setlocale=yes
9120else 15898else
9121 echo "configure: failed program was:" >&5 15899 echo "$as_me: failed program was:" >&5
9122 cat conftest.$ac_ext >&5 15900sed 's/^/| /' conftest.$ac_ext >&5
9123 rm -rf conftest* 15901
9124 rxvt_cv_func_setlocale=no 15902rxvt_cv_func_setlocale=no
9125fi 15903fi
9126rm -f conftest* 15904rm -f conftest.err conftest.$ac_objext \
15905 conftest$ac_exeext conftest.$ac_ext
9127fi 15906fi
9128 15907echo "$as_me:$LINENO: result: $rxvt_cv_func_setlocale" >&5
9129echo "$ac_t""$rxvt_cv_func_setlocale" 1>&6 15908echo "${ECHO_T}$rxvt_cv_func_setlocale" >&6
9130if test x$rxvt_cv_func_setlocale = xyes; then 15909if test x$rxvt_cv_func_setlocale = xyes; then
15910
9131 cat >> confdefs.h <<\EOF 15911cat >>confdefs.h <<\_ACEOF
9132#define HAVE_SETLOCALE 1 15912#define HAVE_SETLOCALE 1
9133EOF 15913_ACEOF
9134 15914
9135fi 15915fi
9136 15916
15917echo "$as_me:$LINENO: checking for working nl_langinfo" >&5
9137echo $ac_n "checking for working nl_langinfo""... $ac_c" 1>&6 15918echo $ECHO_N "checking for working nl_langinfo... $ECHO_C" >&6
9138echo "configure:9139: checking for working nl_langinfo" >&5
9139if eval "test \"`echo '$''{'rxvt_cv_func_nl_langinfo'+set}'`\" = set"; then 15919if test "${rxvt_cv_func_nl_langinfo+set}" = set; then
9140 echo $ac_n "(cached) $ac_c" 1>&6 15920 echo $ECHO_N "(cached) $ECHO_C" >&6
9141else 15921else
9142 cat > conftest.$ac_ext <<EOF 15922 cat >conftest.$ac_ext <<_ACEOF
9143#line 9144 "configure" 15923/* confdefs.h. */
9144#include "confdefs.h" 15924_ACEOF
15925cat confdefs.h >>conftest.$ac_ext
15926cat >>conftest.$ac_ext <<_ACEOF
15927/* end confdefs.h. */
9145#include <langinfo.h> 15928#include <langinfo.h>
9146int main() { 15929int
15930main ()
15931{
9147nl_langinfo(CODESET); 15932nl_langinfo(CODESET);
15933 ;
9148; return 0; } 15934 return 0;
9149EOF 15935}
9150if { (eval echo configure:9151: \"$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
9151 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
9152 rxvt_cv_func_nl_langinfo=yes 15958 rxvt_cv_func_nl_langinfo=yes
9153else 15959else
9154 echo "configure: failed program was:" >&5 15960 echo "$as_me: failed program was:" >&5
9155 cat conftest.$ac_ext >&5 15961sed 's/^/| /' conftest.$ac_ext >&5
9156 rm -rf conftest* 15962
9157 rxvt_cv_func_nl_langinfo=no 15963rxvt_cv_func_nl_langinfo=no
9158fi 15964fi
9159rm -f conftest* 15965rm -f conftest.err conftest.$ac_objext \
15966 conftest$ac_exeext conftest.$ac_ext
9160fi 15967fi
9161 15968echo "$as_me:$LINENO: result: $rxvt_cv_func_nl_langinfo" >&5
9162echo "$ac_t""$rxvt_cv_func_nl_langinfo" 1>&6 15969echo "${ECHO_T}$rxvt_cv_func_nl_langinfo" >&6
9163if test x$rxvt_cv_func_nl_langinfo = xyes; then 15970if test x$rxvt_cv_func_nl_langinfo = xyes; then
15971
9164 cat >> confdefs.h <<\EOF 15972cat >>confdefs.h <<\_ACEOF
9165#define HAVE_NL_LANGINFO 1 15973#define HAVE_NL_LANGINFO 1
9166EOF 15974_ACEOF
9167 15975
9168fi 15976fi
9169 15977
15978echo "$as_me:$LINENO: checking for getpt" >&5
9170echo $ac_n "checking for getpt""... $ac_c" 1>&6 15979echo $ECHO_N "checking for getpt... $ECHO_C" >&6
9171echo "configure:9172: checking for getpt" >&5
9172if eval "test \"`echo '$''{'rxvt_cv_func_getpt'+set}'`\" = set"; then 15980if test "${rxvt_cv_func_getpt+set}" = set; then
9173 echo $ac_n "(cached) $ac_c" 1>&6 15981 echo $ECHO_N "(cached) $ECHO_C" >&6
9174else 15982else
9175 cat > conftest.$ac_ext <<EOF 15983 cat >conftest.$ac_ext <<_ACEOF
9176#line 9177 "configure" 15984/* confdefs.h. */
9177#include "confdefs.h" 15985_ACEOF
15986cat confdefs.h >>conftest.$ac_ext
15987cat >>conftest.$ac_ext <<_ACEOF
15988/* end confdefs.h. */
9178#define _GNU_SOURCE 15989#define _GNU_SOURCE
9179#ifdef HAVE_STDLIB_H 15990#ifdef HAVE_STDLIB_H
9180# include <stdlib.h> 15991# include <cstdlib>
9181#endif 15992#endif
9182int main() { 15993int
15994main ()
15995{
9183(void)getpt(); 15996(void)getpt();
15997 ;
9184; return 0; } 15998 return 0;
9185EOF 15999}
9186if { (eval echo configure:9187: \"$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
9187 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
9188 rxvt_cv_func_getpt=yes 16022 rxvt_cv_func_getpt=yes
9189else 16023else
9190 echo "configure: failed program was:" >&5 16024 echo "$as_me: failed program was:" >&5
9191 cat conftest.$ac_ext >&5 16025sed 's/^/| /' conftest.$ac_ext >&5
9192 rm -rf conftest* 16026
9193 rxvt_cv_func_getpt=no 16027rxvt_cv_func_getpt=no
9194fi 16028fi
9195rm -f conftest* 16029rm -f conftest.err conftest.$ac_objext \
16030 conftest$ac_exeext conftest.$ac_ext
9196fi 16031fi
9197 16032echo "$as_me:$LINENO: result: $rxvt_cv_func_getpt" >&5
9198echo "$ac_t""$rxvt_cv_func_getpt" 1>&6 16033echo "${ECHO_T}$rxvt_cv_func_getpt" >&6
9199if test x$rxvt_cv_func_getpt = xyes; then 16034if test x$rxvt_cv_func_getpt = xyes; then
16035
9200 cat >> confdefs.h <<\EOF 16036cat >>confdefs.h <<\_ACEOF
9201#define HAVE_GETPT 1 16037#define HAVE_GETPT 1
9202EOF 16038_ACEOF
9203 16039
9204fi 16040fi
9205 16041
16042echo "$as_me:$LINENO: checking for pty/tty type" >&5
9206echo $ac_n "checking for pty/tty type""... $ac_c" 1>&6 16043echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6
9207echo "configure:9208: checking for pty/tty type" >&5
9208if eval "test \"`echo '$''{'rxvt_cv_ptys'+set}'`\" = set"; then 16044if test "${rxvt_cv_ptys+set}" = set; then
9209 echo $ac_n "(cached) $ac_c" 1>&6 16045 echo $ECHO_N "(cached) $ECHO_C" >&6
9210else 16046else
9211 if test x$ac_cv_func_openpty = xyes; then 16047 if test x$ac_cv_func_openpty = xyes; then
9212 rxvt_cv_ptys=OPENPTY 16048 rxvt_cv_ptys=OPENPTY
9213 else if test x$ac_cv_func__getpty = xyes; then 16049 else if test x$ac_cv_func__getpty = xyes; then
9214 rxvt_cv_ptys=SGI4 16050 rxvt_cv_ptys=SGI4
9237fi 16073fi
9238fi 16074fi
9239fi 16075fi
9240 16076
9241fi 16077fi
9242 16078echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5
9243echo "$ac_t""$rxvt_cv_ptys" 1>&6 16079echo "${ECHO_T}$rxvt_cv_ptys" >&6
9244 16080
9245if test x$rxvt_cv_ptys = xOPENPTY; then 16081if test x$rxvt_cv_ptys = xOPENPTY; then
16082
9246 cat >> confdefs.h <<\EOF 16083cat >>confdefs.h <<\_ACEOF
9247#define PTYS_ARE_OPENPTY 1 16084#define PTYS_ARE_OPENPTY 1
9248EOF 16085_ACEOF
9249 16086
9250fi 16087fi
9251if test x$rxvt_cv_ptys = xSCO; then 16088if test x$rxvt_cv_ptys = xSCO; then
16089
9252 cat >> confdefs.h <<\EOF 16090cat >>confdefs.h <<\_ACEOF
9253#define PTYS_ARE_NUMERIC 1 16091#define PTYS_ARE_NUMERIC 1
9254EOF 16092_ACEOF
9255 16093
9256fi 16094fi
9257if test x$rxvt_cv_ptys = xSTREAMS; then 16095if test x$rxvt_cv_ptys = xSTREAMS; then
16096
9258 cat >> confdefs.h <<\EOF 16097cat >>confdefs.h <<\_ACEOF
9259#define PTYS_ARE_PTMX 1 16098#define PTYS_ARE_PTMX 1
9260EOF 16099_ACEOF
9261 16100
9262fi 16101fi
9263if test x$rxvt_cv_ptys = xPTC; then 16102if test x$rxvt_cv_ptys = xPTC; then
16103
9264 cat >> confdefs.h <<\EOF 16104cat >>confdefs.h <<\_ACEOF
9265#define PTYS_ARE_PTC 1 16105#define PTYS_ARE_PTC 1
9266EOF 16106_ACEOF
9267 16107
9268fi 16108fi
9269if test x$rxvt_cv_ptys = xSGI4; then 16109if test x$rxvt_cv_ptys = xSGI4; then
16110
9270 cat >> confdefs.h <<\EOF 16111cat >>confdefs.h <<\_ACEOF
9271#define PTYS_ARE__GETPTY 1 16112#define PTYS_ARE__GETPTY 1
9272EOF 16113_ACEOF
9273 16114
9274fi 16115fi
9275if test x$rxvt_cv_ptys = xCONVEX; then 16116if test x$rxvt_cv_ptys = xCONVEX; then
16117
9276 cat >> confdefs.h <<\EOF 16118cat >>confdefs.h <<\_ACEOF
9277#define PTYS_ARE_GETPTY 1 16119#define PTYS_ARE_GETPTY 1
9278EOF 16120_ACEOF
9279 16121
9280fi 16122fi
9281if test x$rxvt_cv_ptys = xGLIBC; then 16123if test x$rxvt_cv_ptys = xGLIBC; then
16124
9282 cat >> confdefs.h <<\EOF 16125cat >>confdefs.h <<\_ACEOF
9283#define PTYS_ARE_GETPT 1 16126#define PTYS_ARE_GETPT 1
9284EOF 16127_ACEOF
9285 16128
9286fi 16129fi
9287if test x$rxvt_cv_ptys = xHPUX; then 16130if test x$rxvt_cv_ptys = xHPUX; then
16131
9288 cat >> confdefs.h <<\EOF 16132cat >>confdefs.h <<\_ACEOF
9289#define PTYS_ARE_CLONE 1 16133#define PTYS_ARE_CLONE 1
9290EOF 16134_ACEOF
9291 16135
9292fi 16136fi
9293if 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
9294 cat >> confdefs.h <<\EOF 16139cat >>confdefs.h <<\_ACEOF
9295#define PTYS_ARE_SEARCHED 1 16140#define PTYS_ARE_SEARCHED 1
9296EOF 16141_ACEOF
9297 16142
9298fi 16143fi
9299 16144
9300 16145
16146{ echo "$as_me:$LINENO: checking for pty ranges..." >&5
9301echo "checking for pty ranges" 1>&6 16147echo "$as_me: checking for pty ranges..." >&6;}
9302echo "configure:9303: checking for pty ranges" >&5
9303ptys=`echo /dev/pty??` 16148ptys=`echo /dev/pty??`
9304pch1=`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'`
9305pch2=`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'`
9306if test x$pch1 != x; then 16151if test x$pch1 != x; then
16152
9307 cat >> confdefs.h <<EOF 16153cat >>confdefs.h <<_ACEOF
9308#define PTYCHAR1 "$pch1" 16154#define PTYCHAR1 "$pch1"
9309EOF 16155_ACEOF
9310 16156
9311fi 16157fi
9312if test x$pch2 != x; then 16158if test x$pch2 != x; then
16159
9313 cat >> confdefs.h <<EOF 16160cat >>confdefs.h <<_ACEOF
9314#define PTYCHAR2 "$pch2" 16161#define PTYCHAR2 "$pch2"
9315EOF 16162_ACEOF
9316 16163
9317fi 16164fi
9318 16165
16166echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
9319echo $ac_n "checking for setlocale in -lxpg4""... $ac_c" 1>&6 16167echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
9320echo "configure:9321: checking for setlocale in -lxpg4" >&5 16168if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
9321ac_lib_var=`echo xpg4'_'setlocale | sed 'y%./+-%__p_%'`
9322if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9323 echo $ac_n "(cached) $ac_c" 1>&6 16169 echo $ECHO_N "(cached) $ECHO_C" >&6
9324else 16170else
9325 ac_save_LIBS="$LIBS" 16171 ac_check_lib_save_LIBS=$LIBS
9326LIBS="-lxpg4 $LIBS" 16172LIBS="-lxpg4 $LIBS"
9327cat > conftest.$ac_ext <<EOF 16173cat >conftest.$ac_ext <<_ACEOF
9328#line 9329 "configure" 16174/* confdefs.h. */
9329#include "confdefs.h" 16175_ACEOF
16176cat confdefs.h >>conftest.$ac_ext
16177cat >>conftest.$ac_ext <<_ACEOF
16178/* end confdefs.h. */
16179
9330/* 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
9331/* 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
9332 builtin and then its argument prototype would still apply. */ 16185 builtin and then its argument prototype would still apply. */
9333char setlocale(); 16186char setlocale ();
9334 16187int
9335int main() { 16188main ()
16189{
9336setlocale() 16190setlocale ();
16191 ;
9337; return 0; } 16192 return 0;
9338EOF 16193}
9339if { (eval echo configure:9340: \"$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
9340 rm -rf conftest* 16200 rm -f conftest.er1
9341 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
9342else 16217else
9343 echo "configure: failed program was:" >&5 16218 echo "$as_me: failed program was:" >&5
9344 cat conftest.$ac_ext >&5 16219sed 's/^/| /' conftest.$ac_ext >&5
9345 rm -rf conftest* 16220
9346 eval "ac_cv_lib_$ac_lib_var=no" 16221ac_cv_lib_xpg4_setlocale=no
9347fi 16222fi
9348rm -f conftest* 16223rm -f conftest.err conftest.$ac_objext \
16224 conftest$ac_exeext conftest.$ac_ext
9349LIBS="$ac_save_LIBS" 16225LIBS=$ac_check_lib_save_LIBS
9350
9351fi 16226fi
9352if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 16227echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
9353 echo "$ac_t""yes" 1>&6 16228echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
16229if test $ac_cv_lib_xpg4_setlocale = yes; then
9354 LIBS="$LIBS -lxpg4" 16230 LIBS="$LIBS -lxpg4"
9355else
9356 echo "$ac_t""no" 1>&6
9357fi 16231fi
9358 16232
9359 16233
9360if test x$support_graphics = xyes; then 16234if test x$support_tinting = xyes; then
16235
9361 cat >> confdefs.h <<\EOF 16236cat >>confdefs.h <<\_ACEOF
9362#define RXVT_GRAPHICS 1 16237#define TINTING 1
9363EOF 16238_ACEOF
9364 16239
9365fi 16240fi
9366if test x$support_inheritpixmap = xyes; then 16241if test x$support_inheritpixmap = xyes; then
16242
9367 cat >> confdefs.h <<\EOF 16243cat >>confdefs.h <<\_ACEOF
9368#define TRANSPARENT 1 16244#define TRANSPARENT 1
9369EOF 16245_ACEOF
9370 16246
9371fi 16247fi
9372if test x$support_keepscrolling = xno; then 16248if test x$support_keepscrolling = xno; then
16249
9373 cat >> confdefs.h <<\EOF 16250cat >>confdefs.h <<\_ACEOF
9374#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1 16251#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
9375EOF 16252_ACEOF
9376 16253
9377fi 16254fi
9378if test x$support_selectionscrolling = xyes; then 16255if test x$support_selectionscrolling = xyes; then
16256
9379 cat >> confdefs.h <<\EOF 16257cat >>confdefs.h <<\_ACEOF
9380#define SELECTION_SCROLLING 1 16258#define SELECTION_SCROLLING 1
9381EOF 16259_ACEOF
9382 16260
9383fi 16261fi
9384if test x$support_menubar = xyes; then 16262if test x$support_menubar = xyes; then
16263
9385 cat >> confdefs.h <<\EOF 16264cat >>confdefs.h <<\_ACEOF
9386#define MENUBAR 1 16265#define MENUBAR 1
9387EOF 16266_ACEOF
9388 16267
9389fi 16268fi
9390if test x$support_frills = xno; then 16269if test x$support_frills = xno; then
16270
9391 cat >> confdefs.h <<\EOF 16271cat >>confdefs.h <<\_ACEOF
9392#define NO_FRILLS 1 16272#define NO_FRILLS 1
9393EOF 16273_ACEOF
9394 16274
9395fi 16275fi
9396if test x$support_linespace = xno; then 16276if test x$support_linespace = xno; then
16277
9397 cat >> confdefs.h <<\EOF 16278cat >>confdefs.h <<\_ACEOF
9398#define NO_LINESPACE 1 16279#define NO_LINESPACE 1
9399EOF 16280_ACEOF
9400 16281
9401fi 16282fi
9402if test x$support_24bit = xyes; then 16283if test x$support_24bit = xyes; then
16284
9403 cat >> confdefs.h <<\EOF 16285cat >>confdefs.h <<\_ACEOF
9404#define PREFER_24BIT 1 16286#define PREFER_24BIT 1
9405EOF 16287_ACEOF
9406 16288
9407fi 16289fi
9408if test x$support_mousewheel = xyes; then 16290if test x$support_mousewheel = xyes; then
16291
9409 cat >> confdefs.h <<\EOF 16292cat >>confdefs.h <<\_ACEOF
9410#define MOUSE_WHEEL 1 16293#define MOUSE_WHEEL 1
9411EOF 16294_ACEOF
9412 16295
9413fi 16296fi
9414if test x$support_mouseslipwheel = xyes; then 16297if test x$support_mouseslipwheel = xyes; then
16298
9415 cat >> confdefs.h <<\EOF 16299cat >>confdefs.h <<\_ACEOF
9416#define MOUSE_SLIP_WHEELING 1 16300#define MOUSE_SLIP_WHEELING 1
9417EOF 16301_ACEOF
9418
9419fi
9420if test x$support_oldselection = xno; then
9421 cat >> confdefs.h <<\EOF
9422#define NO_OLD_SELECTION 1
9423EOF
9424 16302
9425fi 16303fi
9426if test x$support_utmp = xyes; then 16304if test x$support_utmp = xyes; then
16305
9427 cat >> confdefs.h <<\EOF 16306cat >>confdefs.h <<\_ACEOF
9428#define UTMP_SUPPORT 1 16307#define UTMP_SUPPORT 1
9429EOF 16308_ACEOF
9430 16309
9431fi 16310fi
9432if test x$support_wtmp = xyes; then 16311if test x$support_wtmp = xyes; then
16312
9433 cat >> confdefs.h <<\EOF 16313cat >>confdefs.h <<\_ACEOF
9434#define WTMP_SUPPORT 1 16314#define WTMP_SUPPORT 1
9435EOF 16315_ACEOF
9436 16316
9437fi 16317fi
9438if test x$support_lastlog = xyes; then 16318if test x$support_lastlog = xyes; then
16319
9439 cat >> confdefs.h <<\EOF 16320cat >>confdefs.h <<\_ACEOF
9440#define LASTLOG_SUPPORT 1 16321#define LASTLOG_SUPPORT 1
9441EOF 16322_ACEOF
9442 16323
9443fi 16324fi
9444if test x$support_xim = xyes -o x$multichar_set = xyes; then 16325if test x$support_xim = xyes -o x$multichar_set = xyes; then
9445 if test x$rxvt_cv_func_xlocale = xyes; then 16326 if test x$rxvt_cv_func_xlocale = xyes; then
16327
9446 cat >> confdefs.h <<\EOF 16328cat >>confdefs.h <<\_ACEOF
9447#define USE_XIM 1 16329#define USE_XIM 1
9448EOF 16330_ACEOF
9449 16331
9450 fi 16332 fi
9451fi 16333fi
9452if test x$support_xpm = xyes; then 16334if test x$support_xpm = xyes; then
16335
9453 cat >> confdefs.h <<\EOF 16336cat >>confdefs.h <<\_ACEOF
9454#define XPM_BACKGROUND 1 16337#define XPM_BACKGROUND 1
9455EOF 16338_ACEOF
9456 16339
9457fi 16340fi
9458if test x$support_scroll_rxvt = xyes; then 16341if test x$support_scroll_rxvt = xyes; then
16342
9459 cat >> confdefs.h <<\EOF 16343cat >>confdefs.h <<\_ACEOF
9460#define RXVT_SCROLLBAR 1 16344#define RXVT_SCROLLBAR 1
9461EOF 16345_ACEOF
9462 16346
9463 scrolltypes="rxvt" 16347 scrolltypes="rxvt"
9464fi 16348fi
9465if test x$support_scroll_next = xyes; then 16349if test x$support_scroll_next = xyes; then
16350
9466 cat >> confdefs.h <<\EOF 16351cat >>confdefs.h <<\_ACEOF
9467#define NEXT_SCROLLBAR 1 16352#define NEXT_SCROLLBAR 1
9468EOF 16353_ACEOF
9469 16354
9470 scrolltypes="$scrolltypes next" 16355 scrolltypes="$scrolltypes next"
9471fi 16356fi
9472if test x$support_scroll_xterm = xyes; then 16357if test x$support_scroll_xterm = xyes; then
16358
9473 cat >> confdefs.h <<\EOF 16359cat >>confdefs.h <<\_ACEOF
9474#define XTERM_SCROLLBAR 1 16360#define XTERM_SCROLLBAR 1
9475EOF 16361_ACEOF
9476 16362
9477 scrolltypes="$scrolltypes xterm" 16363 scrolltypes="$scrolltypes xterm"
9478fi 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
9479if test x$support_pointer_blank = xyes; then 16373if test x$support_pointer_blank = xyes; then
16374
9480 cat >> confdefs.h <<\EOF 16375cat >>confdefs.h <<\_ACEOF
9481#define POINTER_BLANK 1 16376#define POINTER_BLANK 1
9482EOF 16377_ACEOF
9483 16378
9484fi 16379fi
9485if test x$support_cursor_blink = xyes; then 16380if test x$support_cursor_blink = xyes; then
16381
9486 cat >> confdefs.h <<\EOF 16382cat >>confdefs.h <<\_ACEOF
9487#define CURSOR_BLINK 1 16383#define CURSOR_BLINK 1
9488EOF 16384_ACEOF
16385
16386fi
16387if test x$support_text_blink = xyes; then
16388
16389cat >>confdefs.h <<\_ACEOF
16390#define TEXT_BLINK 1
16391_ACEOF
9489 16392
9490fi 16393fi
9491if test x$support_unicode3 = xyes; then 16394if test x$support_unicode3 = xyes; then
16395
9492 cat >> confdefs.h <<\EOF 16396cat >>confdefs.h <<\_ACEOF
9493#define UNICODE_3 1 16397#define UNICODE_3 1
9494EOF 16398_ACEOF
16399
16400fi
16401if test x$support_combining = xyes; then
16402
16403cat >>confdefs.h <<\_ACEOF
16404#define ENABLE_COMBINING 1
16405_ACEOF
9495 16406
9496fi 16407fi
9497if test x$codesets = xall; then 16408if test x$codesets = xall; then
9498 codesets=jp,jp-ext,kr,cn,cn-ext,vn 16409 codesets=jp,jp-ext,kr,cn,cn-ext
9499fi 16410fi
9500for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do 16411for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
16412
9501 cat >> confdefs.h <<\EOF 16413cat >>confdefs.h <<\_ACEOF
9502#define ENCODING_EU 1 16414#define ENCODING_EU 1
9503EOF 16415_ACEOF
16416
16417
16418cat >>confdefs.h <<\_ACEOF
16419#define ENCODING_VN 1
16420_ACEOF
9504 16421
9505 case "$codeset" in 16422 case "$codeset" in
9506 VN ) cat >> confdefs.h <<\EOF 16423 JP )
16424cat >>confdefs.h <<\_ACEOF
9507#define ENCODING_VN 1 16425#define ENCODING_JP 1
9508EOF 16426_ACEOF
9509 ;; 16427 ;;
9510 JP ) cat >> confdefs.h <<\EOF 16428 JP_EXT )
16429cat >>confdefs.h <<\_ACEOF
9511#define ENCODING_JP 1 16430#define ENCODING_JP_EXT 1
9512EOF 16431_ACEOF
9513 ;; 16432 ;;
9514 JP_EXT ) cat >> confdefs.h <<\EOF 16433 KR )
16434cat >>confdefs.h <<\_ACEOF
9515#define ENCODING_JP_EXT 1 16435#define ENCODING_KR 1
9516EOF 16436_ACEOF
9517 ;; 16437 ;;
9518 KR ) cat >> confdefs.h <<\EOF 16438 CN )
16439cat >>confdefs.h <<\_ACEOF
9519#define ENCODING_KR 1 16440#define ENCODING_CN 1
9520EOF 16441_ACEOF
9521 ;; 16442 ;;
9522 CN ) cat >> confdefs.h <<\EOF 16443 CN_EXT )
9523#define ENCODING_CN 1 16444cat >>confdefs.h <<\_ACEOF
9524EOF
9525 ;;
9526 CN_EXT ) cat >> confdefs.h <<\EOF
9527#define ENCODING_CN_EXT 1 16445#define ENCODING_CN_EXT 1
9528EOF 16446_ACEOF
9529 ;; 16447 ;;
9530 esac 16448 esac
9531done 16449done
9532 16450
9533 16451
9553 16471
9554 16472
9555 16473
9556 16474
9557if test x$support_addstrings = xno; then 16475if test x$support_addstrings = xno; then
16476
9558 cat >> confdefs.h <<\EOF 16477cat >>confdefs.h <<\_ACEOF
9559#define NO_STRINGS 1 16478#define NO_STRINGS 1
9560EOF 16479_ACEOF
9561 16480
9562fi 16481fi
9563 16482
9564MCOMMON=./autoconf/Make.common 16483MCOMMON=./autoconf/Make.common
9565 16484
9566 16485
9567if test "$program_transform_name" = s,x,x,; then
9568 program_transform_name=
9569else
9570 # Double any \ or $. echo might interpret backslashes.
9571 cat <<\EOF_SED > conftestsed
9572s,\\,\\\\,g; s,\$,$$,g
9573EOF_SED
9574 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
9575 rm -f conftestsed
9576fi
9577test "$program_prefix" != NONE && 16486test "$program_prefix" != NONE &&
9578 program_transform_name="s,^,${program_prefix},; $program_transform_name" 16487 program_transform_name="s,^,$program_prefix,;$program_transform_name"
9579# Use a double $ so make ignores it. 16488# Use a double $ so make ignores it.
9580test "$program_suffix" != NONE && 16489test "$program_suffix" != NONE &&
9581 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" 16490 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
9582 16491# Double any \ or $. echo might interpret backslashes.
9583# sed with no file args requires a program. 16492# By default was `s,x,x', remove it if useless.
9584test "$program_transform_name" = "" && program_transform_name="s,x,x," 16493cat <<\_ACEOF >conftest.sed
9585 16494s/[\\$]/&&/g;s/;s,x,x,$//
9586 16495_ACEOF
9587RXVTNAME=`echo rxvt|sed "$program_transform_name"` 16496program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
16497rm conftest.sed
9588 16498
9589 16499
9590 16500
9591 16501
9592 16502
9593if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then 16503if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
9594 include_stdint_h="#include <stdint.h>" 16504 include_stdint_h="#include <stdint.h>"
9595else 16505else
9596 include_stdint_h="/* #include <stdint.h> */" 16506 include_stdint_h="/* #include <stdint.h> */"
9597fi 16507fi
9598if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then 16508if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
9599 include_stdarg_h="#include <stdarg.h>" 16509 include_stdarg_h="#include <cstdarg>"
9600else 16510else
9601 include_stdarg_h="/* #include <stdarg.h> */" 16511 include_stdarg_h="/* #include <cstdarg> */"
9602fi 16512fi
9603if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then 16513if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
9604 include_stdlib_h="#include <stdlib.h>" 16514 include_stdlib_h="#include <cstdlib>"
9605else 16515else
9606 include_stdlib_h="/* #include <stdlib.h> */" 16516 include_stdlib_h="/* #include <cstdlib> */"
9607fi 16517fi
9608if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then 16518if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
9609 include_unistd_h="#include <unistd.h>" 16519 include_unistd_h="#include <unistd.h>"
9610else 16520else
9611 include_unistd_h="/* #include <unistd.h> */" 16521 include_unistd_h="/* #include <unistd.h> */"
9612fi 16522fi
9613if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then 16523if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
9614 include_string_h="#include <string.h>" 16524 include_string_h="#include <cstring>"
9615else 16525else
9616 include_string_h="/* #include <string.h> */" 16526 include_string_h="/* #include <cstring> */"
9617fi 16527fi
9618if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then 16528if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
9619 include_fcntl_h="#include <fcntl.h>" 16529 include_fcntl_h="#include <fcntl.h>"
9620else 16530else
9621 include_fcntl_h="/* #include <fcntl.h> */" 16531 include_fcntl_h="/* #include <fcntl.h> */"
9622fi 16532fi
9623if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then 16533if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
9624 include_util_h="#include <util.h>" 16534 include_util_h="#include <util.h>"
9625else 16535else
9626 include_util_h="/* #include <util.h> */" 16536 include_util_h="/* #include <util.h> */"
9627fi 16537fi
9628if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then 16538if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
9629 include_assert_h="#include <assert.h>" 16539 include_assert_h="#include <assert.h>"
9630else 16540else
9631 include_assert_h="/* #include <assert.h> */" 16541 include_assert_h="/* #include <assert.h> */"
9632fi 16542fi
9633if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then 16543if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
9634 include_sys_ioctl_h="#include <sys/ioctl.h>" 16544 include_sys_ioctl_h="#include <sys/ioctl.h>"
9635else 16545else
9636 include_sys_ioctl_h="/* #include <sys/ioctl.h> */" 16546 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
9637fi 16547fi
9638if 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
9639 include_sys_select_h="#include <sys/select.h>" 16549 include_sys_select_h="#include <sys/select.h>"
9640else 16550else
9641 include_sys_select_h="/* #include <sys/select.h> */" 16551 include_sys_select_h="/* #include <sys/select.h> */"
9642fi 16552fi
9643if 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
9644 include_sys_strredir_h="#include <sys/strredir.h>" 16554 include_sys_strredir_h="#include <sys/strredir.h>"
9645else 16555else
9646 include_sys_strredir_h="/* #include <sys/strredir.h> */" 16556 include_sys_strredir_h="/* #include <sys/strredir.h> */"
9647fi 16557fi
9648if 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
9649 include_sys_time_h="#include <sys/time.h>" 16559 include_sys_time_h="#include <sys/time.h>"
9650else 16560else
9651 include_sys_time_h="/* #include <sys/time.h> */" 16561 include_sys_time_h="/* #include <sys/time.h> */"
9652fi 16562fi
9653if 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
9654 include_time_h="#include <time.h>" 16564 include_time_h="#include <time.h>"
9655else 16565else
9656 include_time_h="/* #include <time.h> */" 16566 include_time_h="/* #include <time.h> */"
9657fi 16567fi
9658 16568
9659if test x$support_xft = xyes; then 16569if test x$support_xft = xyes; then
9660 LIBS="$LIBS `pkg-config xft --libs`" 16570 LIBS="$LIBS `pkg-config xft --libs`"
9661 CFLAGS="$CFLAGS `pkg-config xft --cflags`" 16571 CFLAGS="$CFLAGS `pkg-config xft --cflags`"
9662 CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`" 16572 CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`"
9663 16573
16574
9664 for ac_hdr in X11/Xft/Xft.h 16575for ac_header in X11/Xft/Xft.h
9665do 16576do
9666ac_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
9667echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 16580echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9668echo "configure:9669: checking for $ac_hdr" >&5 16581if eval "test \"\${$as_ac_Header+set}\" = set"; then
9669if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9670 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
9671else 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
9672 cat > conftest.$ac_ext <<EOF 16590cat >conftest.$ac_ext <<_ACEOF
9673#line 9674 "configure" 16591/* confdefs.h. */
9674#include "confdefs.h" 16592_ACEOF
16593cat confdefs.h >>conftest.$ac_ext
16594cat >>conftest.$ac_ext <<_ACEOF
16595/* end confdefs.h. */
16596$ac_includes_default
9675#include <$ac_hdr> 16597#include <$ac_header>
9676EOF 16598_ACEOF
9677ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 16599rm -f conftest.$ac_objext
9678{ (eval echo configure:9679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 16600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9679ac_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
9680if test -z "$ac_err"; then 16659if test -z "$ac_cpp_err"; then
9681 rm -rf conftest* 16660 ac_header_preproc=yes
9682 eval "ac_cv_header_$ac_safe=yes"
9683else 16661else
9684 echo "$ac_err" >&5
9685 echo "configure: failed program was:" >&5 16662 echo "$as_me: failed program was:" >&5
9686 cat conftest.$ac_ext >&5 16663sed 's/^/| /' conftest.$ac_ext >&5
9687 rm -rf conftest* 16664
9688 eval "ac_cv_header_$ac_safe=no" 16665 ac_header_preproc=no
9689fi 16666fi
9690rm -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"
9691fi 16709fi
9692if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 16710echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9693 echo "$ac_t""yes" 1>&6 16711echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9694 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 16712
16713fi
16714if test `eval echo '${'$as_ac_Header'}'` = yes; then
9695 cat >> confdefs.h <<EOF 16715 cat >>confdefs.h <<_ACEOF
9696#define $ac_tr_hdr 1 16716#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9697EOF 16717_ACEOF
9698 16718
9699else 16719else
9700 echo "$ac_t""no" 1>&6
9701support_xft=no 16720 support_xft=no
9702fi 16721fi
16722
9703done 16723done
9704 16724
16725
16726echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5
9705 echo $ac_n "checking for XftDrawString32 in -lXft""... $ac_c" 1>&6 16727echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6
9706echo "configure:9707: checking for XftDrawString32 in -lXft" >&5 16728if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then
9707ac_lib_var=`echo Xft'_'XftDrawString32 | sed 'y%./+-%__p_%'`
9708if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9709 echo $ac_n "(cached) $ac_c" 1>&6 16729 echo $ECHO_N "(cached) $ECHO_C" >&6
9710else 16730else
9711 ac_save_LIBS="$LIBS" 16731 ac_check_lib_save_LIBS=$LIBS
9712LIBS="-lXft $LIBS" 16732LIBS="-lXft $LIBS"
9713cat > conftest.$ac_ext <<EOF 16733cat >conftest.$ac_ext <<_ACEOF
9714#line 9715 "configure" 16734/* confdefs.h. */
9715#include "confdefs.h" 16735_ACEOF
16736cat confdefs.h >>conftest.$ac_ext
16737cat >>conftest.$ac_ext <<_ACEOF
16738/* end confdefs.h. */
16739
9716/* 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
9717/* 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
9718 builtin and then its argument prototype would still apply. */ 16745 builtin and then its argument prototype would still apply. */
9719char XftDrawString32(); 16746char XftDrawString32 ();
9720 16747int
9721int main() { 16748main ()
16749{
9722XftDrawString32() 16750XftDrawString32 ();
16751 ;
9723; return 0; } 16752 return 0;
9724EOF 16753}
9725if { (eval echo configure:9726: \"$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
9726 rm -rf conftest* 16760 rm -f conftest.er1
9727 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
9728else 16777else
9729 echo "configure: failed program was:" >&5 16778 echo "$as_me: failed program was:" >&5
9730 cat conftest.$ac_ext >&5 16779sed 's/^/| /' conftest.$ac_ext >&5
9731 rm -rf conftest* 16780
9732 eval "ac_cv_lib_$ac_lib_var=no" 16781ac_cv_lib_Xft_XftDrawString32=no
9733fi 16782fi
9734rm -f conftest* 16783rm -f conftest.err conftest.$ac_objext \
16784 conftest$ac_exeext conftest.$ac_ext
9735LIBS="$ac_save_LIBS" 16785LIBS=$ac_check_lib_save_LIBS
9736
9737fi 16786fi
9738if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 16787echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5
9739 echo "$ac_t""yes" 1>&6 16788echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6
9740 ac_tr_lib=HAVE_LIB`echo Xft | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 16789if test $ac_cv_lib_Xft_XftDrawString32 = yes; then
9741 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9742 cat >> confdefs.h <<EOF 16790 cat >>confdefs.h <<_ACEOF
9743#define $ac_tr_lib 1 16791#define HAVE_LIBXFT 1
9744EOF 16792_ACEOF
9745 16793
9746 LIBS="-lXft $LIBS" 16794 LIBS="-lXft $LIBS"
9747 16795
9748else 16796else
9749 echo "$ac_t""no" 1>&6
9750support_xft=no 16797 support_xft=no
9751fi 16798fi
9752 16799
9753 16800
9754 if test x$support_xft = xyes; then 16801 if test x$support_xft = xyes; then
16802
9755 cat >> confdefs.h <<\EOF 16803cat >>confdefs.h <<\_ACEOF
9756#define XFT 1 16804#define XFT 1
9757EOF 16805_ACEOF
9758 16806
9759 fi 16807 fi
9760fi 16808fi
9761 16809
9762trap '' 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"
9763cat > confcache <<\EOF 16811cat >confcache <<\_ACEOF
9764# 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
9765# 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
9766# scripts and configure runs. It is not useful on other systems. 16814# scripts and configure runs, see configure's option --config-cache.
9767# 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.
9768# 16817#
9769# By default, configure uses ./config.cache as the cache file,
9770# creating it if it does not exist already. You can give configure
9771# the --cache-file=FILE option to use a different cache file; that is
9772# what configure does when it calls configure scripts in
9773# subdirectories, so they share the cache.
9774# Giving --cache-file=/dev/null disables caching, for debugging configure.
9775# 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
9776# --recheck option to rerun configure. 16819# the --recheck option to rerun configure.
9777# 16820#
9778EOF 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
9779# The following way of writing the cache mishandles newlines in values, 16827# The following way of writing the cache mishandles newlines in values,
9780# 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.
9781# So, don't put newlines in cache variables' values. 16829# So, don't put newlines in cache variables' values.
9782# 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,
9783# 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{
9784(set) 2>&1 | 16833 (set) 2>&1 |
9785 case `(ac_space=' '; set | grep ac_space) 2>&1` in 16834 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9786 *ac_space=\ *) 16835 *ac_space=\ *)
9787 # `set' does not quote correctly, so add quotes (double-quote substitution 16836 # `set' does not quote correctly, so add quotes (double-quote
9788 # turns \\\\ into \\, and sed turns \\ into \). 16837 # substitution turns \\\\ into \\, and sed turns \\ into \).
9789 sed -n \ 16838 sed -n \
9790 -e "s/'/'\\\\''/g" \ 16839 "s/'/'\\\\''/g;
9791 -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"
9792 ;; 16841 ;;
9793 *) 16842 *)
9794 # `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.
9795 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"
9796 ;; 16846 ;;
9797 esac >> confcache 16847 esac;
9798if cmp -s $cache_file confcache; then 16848} |
9799 : 16849 sed '
9800else 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
9801 if test -w $cache_file; then 16857 if test -w $cache_file; then
9802 echo "updating cache $cache_file" 16858 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9803 cat confcache > $cache_file 16859 cat confcache >$cache_file
9804 else 16860 else
9805 echo "not updating unwritable cache $cache_file" 16861 echo "not updating unwritable cache $cache_file"
9806 fi 16862 fi
9807fi 16863fi
9808rm -f confcache 16864rm -f confcache
9809 16865
9810trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9811
9812test "x$prefix" = xNONE && prefix=$ac_default_prefix 16866test "x$prefix" = xNONE && prefix=$ac_default_prefix
9813# Let make expand exec_prefix. 16867# Let make expand exec_prefix.
9814test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 16868test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9815 16869
9816# Any assignment to VPATH causes Sun make to only execute 16870# VPATH may cause trouble with some makes, so we remove $(srcdir),
9817# 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
9818# 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).
9819if test "x$srcdir" = x.; then 16874if test "x$srcdir" = x.; then
9820 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 16875 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16876s/:*\$(srcdir):*/:/;
16877s/:*\${srcdir}:*/:/;
16878s/:*@srcdir@:*/:/;
16879s/^\([^=]*=[ ]*\):*/\1/;
16880s/:*$//;
16881s/^[^=]*=[ ]*$//;
16882}'
9821fi 16883fi
9822
9823trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9824 16884
9825DEFS=-DHAVE_CONFIG_H 16885DEFS=-DHAVE_CONFIG_H
9826 16886
9827# 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
9828: ${CONFIG_STATUS=./config.status} 16903: ${CONFIG_STATUS=./config.status}
9829 16904ac_clean_files_save=$ac_clean_files
16905ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16906{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9830echo creating $CONFIG_STATUS 16907echo "$as_me: creating $CONFIG_STATUS" >&6;}
9831rm -f $CONFIG_STATUS
9832cat > $CONFIG_STATUS <<EOF 16908cat >$CONFIG_STATUS <<_ACEOF
9833#! /bin/sh 16909#! $SHELL
9834# Generated automatically by configure. 16910# Generated by $as_me.
9835# Run this file to recreate the current configuration. 16911# Run this file to recreate the current configuration.
9836# This directory was configured as follows,
9837# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9838#
9839# $0 $ac_configure_args
9840#
9841# Compiler output produced by configure, useful for debugging 16912# Compiler output produced by configure, useful for debugging
9842# configure, is in ./config.log if it exists. 16913# configure, is in config.log if it exists.
9843 16914
9844ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 16915debug=false
9845for 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
9846do 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
9847 case "\$ac_option" in 17267 case $ac_option in
17268 # Handling of the options.
17269_ACEOF
17270cat >>$CONFIG_STATUS <<\_ACEOF
9848 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 17271 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9849 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 17272 ac_cs_recheck=: ;;
9850 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 17273 --version | --vers* | -V )
9851 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 17274 echo "$ac_cs_version"; exit 0 ;;
9852 echo "$CONFIG_STATUS generated by autoconf version 2.13" 17275 --he | --h)
9853 exit 0 ;; 17276 # Conflict between --help and --header
9854 -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 )
9855 echo "\$ac_cs_usage"; exit 0 ;; 17283 echo "$ac_cs_usage"; exit 0 ;;
9856 *) 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; }; };;
9857 esac 17347 esac
9858done 17348done
9859 17349
9860ac_given_srcdir=$srcdir 17350# If the user did not use the arguments to specify the items to instantiate,
9861ac_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
9862 17358
9863trap 'rm -fr `echo "autoconf/Make.common \ 17359# Have a temporary directory for convenience. Make it in the build tree
9864Makefile \ 17360# simply because there is no reason to put it here, and in addition,
9865doc/Makefile \ 17361# creating and moving files from /tmp can sometimes cause problems.
9866src/Makefile \ 17362# Create a temporary directory, and hook for its removal unless debugging.
9867src/graphics/Makefile \ 17363$debug ||
9868src/test/Makefile \ 17364{
9869src/rxvtlib.h \ 17365 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9870W11/Makefile \ 17366 trap '{ (exit 1); exit 1; }' 1 2 13 15
9871 config.h:autoconf/config.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 17367}
9872EOF 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
9873cat >> $CONFIG_STATUS <<EOF 17386cat >>$CONFIG_STATUS <<_ACEOF
9874 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
9875# 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.
9876sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 17396 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9877 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 17397 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9878$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
9879$extrasub 17720$extrasub
9880s%@SHELL@%$SHELL%g
9881s%@CFLAGS@%$CFLAGS%g
9882s%@CPPFLAGS@%$CPPFLAGS%g
9883s%@CXXFLAGS@%$CXXFLAGS%g
9884s%@FFLAGS@%$FFLAGS%g
9885s%@DEFS@%$DEFS%g
9886s%@LDFLAGS@%$LDFLAGS%g
9887s%@LIBS@%$LIBS%g
9888s%@exec_prefix@%$exec_prefix%g
9889s%@prefix@%$prefix%g
9890s%@program_transform_name@%$program_transform_name%g
9891s%@bindir@%$bindir%g
9892s%@sbindir@%$sbindir%g
9893s%@libexecdir@%$libexecdir%g
9894s%@datadir@%$datadir%g
9895s%@sysconfdir@%$sysconfdir%g
9896s%@sharedstatedir@%$sharedstatedir%g
9897s%@localstatedir@%$localstatedir%g
9898s%@libdir@%$libdir%g
9899s%@includedir@%$includedir%g
9900s%@oldincludedir@%$oldincludedir%g
9901s%@infodir@%$infodir%g
9902s%@mandir@%$mandir%g
9903s%@VERSION@%$VERSION%g
9904s%@DATE@%$DATE%g
9905s%@LSMDATE@%$LSMDATE%g
9906s%@LIBVERSION@%$LIBVERSION%g
9907s%@CC@%$CC%g
9908s%@CXX@%$CXX%g
9909s%@CPP@%$CPP%g
9910s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9911s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
9912s%@INSTALL_DATA@%$INSTALL_DATA%g
9913s%@AWK@%$AWK%g
9914s%@host@%$host%g
9915s%@host_alias@%$host_alias%g
9916s%@host_cpu@%$host_cpu%g
9917s%@host_vendor@%$host_vendor%g
9918s%@host_os@%$host_os%g
9919s%@build@%$build%g
9920s%@build_alias@%$build_alias%g
9921s%@build_cpu@%$build_cpu%g
9922s%@build_vendor@%$build_vendor%g
9923s%@build_os@%$build_os%g
9924s%@LN_S@%$LN_S%g
9925s%@OBJEXT@%$OBJEXT%g
9926s%@EXEEXT@%$EXEEXT%g
9927s%@ECHO@%$ECHO%g
9928s%@RANLIB@%$RANLIB%g
9929s%@STRIP@%$STRIP%g
9930s%@LIBTOOL@%$LIBTOOL%g
9931s%@INSTALL_LIBRXVT@%$INSTALL_LIBRXVT%g
9932s%@MV@%$MV%g
9933s%@RM@%$RM%g
9934s%@CP@%$CP%g
9935s%@LN@%$LN%g
9936s%@SED@%$SED%g
9937s%@CMP@%$CMP%g
9938s%@TBL@%$TBL%g
9939s%@X_CFLAGS@%$X_CFLAGS%g
9940s%@X_PRE_LIBS@%$X_PRE_LIBS%g
9941s%@X_LIBS@%$X_LIBS%g
9942s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
9943s%@XPM_CPPFLAGS@%$XPM_CPPFLAGS%g
9944s%@XPM_CFLAGS@%$XPM_CFLAGS%g
9945s%@XPM_LIBS@%$XPM_LIBS%g
9946s%@rxvt_int16_typedef@%$rxvt_int16_typedef%g
9947s%@rxvt_uint16_typedef@%$rxvt_uint16_typedef%g
9948s%@rxvt_int32_typedef@%$rxvt_int32_typedef%g
9949s%@rxvt_uint32_typedef@%$rxvt_uint32_typedef%g
9950s%@rxvt_intp_define@%$rxvt_intp_define%g
9951s%@rxvt_u_intp_define@%$rxvt_u_intp_define%g
9952s%@DEBUG@%$DEBUG%g
9953s%@DINCLUDE@%$DINCLUDE%g
9954s%@DLIB@%$DLIB%g
9955/@MCOMMON@/r $MCOMMON
9956s%@MCOMMON@%%g
9957s%@RXVTNAME@%$RXVTNAME%g
9958s%@include_stdint_h@%$include_stdint_h%g
9959s%@include_stdarg_h@%$include_stdarg_h%g
9960s%@include_stdlib_h@%$include_stdlib_h%g
9961s%@include_unistd_h@%$include_unistd_h%g
9962s%@include_string_h@%$include_string_h%g
9963s%@include_fcntl_h@%$include_fcntl_h%g
9964s%@include_util_h@%$include_util_h%g
9965s%@include_assert_h@%$include_assert_h%g
9966s%@include_sys_ioctl_h@%$include_sys_ioctl_h%g
9967s%@include_sys_select_h@%$include_sys_select_h%g
9968s%@include_sys_strredir_h@%$include_sys_strredir_h%g
9969s%@include_sys_time_h@%$include_sys_time_h%g
9970s%@include_time_h@%$include_time_h%g
9971
9972CEOF 17721_ACEOF
9973EOF
9974
9975cat >> $CONFIG_STATUS <<\EOF 17722cat >>$CONFIG_STATUS <<\_ACEOF
9976 17723:t
9977# Split the substitutions into bite-sized pieces for seds with 17724/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9978# small command number limits, like on Digital OSF/1 and HP-UX. 17725s,@configure_input@,$configure_input,;t t
9979ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 17726s,@srcdir@,$ac_srcdir,;t t
9980ac_file=1 # Number of current file. 17727s,@abs_srcdir@,$ac_abs_srcdir,;t t
9981ac_beg=1 # First line for current file. 17728s,@top_srcdir@,$ac_top_srcdir,;t t
9982ac_end=$ac_max_sed_cmds # Line after last line for current file. 17729s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9983ac_more_lines=: 17730s,@builddir@,$ac_builddir,;t t
9984ac_sed_cmds="" 17731s,@abs_builddir@,$ac_abs_builddir,;t t
9985while $ac_more_lines; do 17732s,@top_builddir@,$ac_top_builddir,;t t
9986 if test $ac_beg -gt 1; then 17733s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9987 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
9988 else 17739 else
9989 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 17740 cat $tmp/out
17741 rm -f $tmp/out
9990 fi 17742 fi
9991 if test ! -s conftest.s$ac_file; then 17743
9992 ac_more_lines=false
9993 rm -f conftest.s$ac_file
9994 else
9995 if test -z "$ac_sed_cmds"; then
9996 ac_sed_cmds="sed -f conftest.s$ac_file"
9997 else
9998 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9999 fi
10000 ac_file=`expr $ac_file + 1`
10001 ac_beg=$ac_end
10002 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10003 fi
10004done 17744done
10005if test -z "$ac_sed_cmds"; then 17745_ACEOF
10006 ac_sed_cmds=cat
10007fi
10008EOF
10009
10010cat >> $CONFIG_STATUS <<EOF
10011
10012CONFIG_FILES=\${CONFIG_FILES-"autoconf/Make.common \
10013Makefile \
10014doc/Makefile \
10015src/Makefile \
10016src/graphics/Makefile \
10017src/test/Makefile \
10018src/rxvtlib.h \
10019W11/Makefile \
10020"}
10021EOF
10022cat >> $CONFIG_STATUS <<\EOF 17746cat >>$CONFIG_STATUS <<\_ACEOF
10023for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10024 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10025 case "$ac_file" in
10026 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
10027 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10028 *) ac_file_in="${ac_file}.in" ;;
10029 esac
10030 17747
10031 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 17748#
10032 17749# CONFIG_HEADER section.
10033 # Remove last slash and all that follows it. Not all systems have dirname. 17750#
10034 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10035 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10036 # The file is in a subdirectory.
10037 test ! -d "$ac_dir" && mkdir "$ac_dir"
10038 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10039 # A "../" for each directory in $ac_dir_suffix.
10040 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10041 else
10042 ac_dir_suffix= ac_dots=
10043 fi
10044
10045 case "$ac_given_srcdir" in
10046 .) srcdir=.
10047 if test -z "$ac_dots"; then top_srcdir=.
10048 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
10049 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10050 *) # Relative path.
10051 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
10052 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10053 esac
10054
10055 case "$ac_given_INSTALL" in
10056 [/$]*) INSTALL="$ac_given_INSTALL" ;;
10057 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10058 esac
10059
10060 echo creating "$ac_file"
10061 rm -f "$ac_file"
10062 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
10063 case "$ac_file" in
10064 *Makefile*) ac_comsub="1i\\
10065# $configure_input" ;;
10066 *) ac_comsub= ;;
10067 esac
10068
10069 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10070 sed -e "$ac_comsub
10071s%@configure_input@%$configure_input%g
10072s%@srcdir@%$srcdir%g
10073s%@top_srcdir@%$top_srcdir%g
10074s%@INSTALL@%$INSTALL%g
10075" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
10076fi; done
10077rm -f conftest.s*
10078 17751
10079# 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
10080# 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.
10081# 17754#
10082# ac_d sets the value in "#define NAME VALUE" lines. 17755# ac_d sets the value in "#define NAME VALUE" lines.
10083ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' 17756ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10084ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' 17757ac_dB='[ ].*$,\1#\2'
10085ac_dC='\3' 17758ac_dC=' '
10086ac_dD='%g' 17759ac_dD=',;t'
10087# 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".
10088ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 17761ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10089ac_uB='\([ ]\)%\1#\2define\3' 17762ac_uB='$,\1#\2define\3'
10090ac_uC=' ' 17763ac_uC=' '
10091ac_uD='\4%g' 17764ac_uD=',;t'
10092# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10093ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10094ac_eB='$%\1#\2define\3'
10095ac_eC=' '
10096ac_eD='%g'
10097 17765
10098if test "${CONFIG_HEADERS+set}" != set; then
10099EOF
10100cat >> $CONFIG_STATUS <<EOF
10101 CONFIG_HEADERS="config.h:autoconf/config.h.in"
10102EOF
10103cat >> $CONFIG_STATUS <<\EOF
10104fi
10105for 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
10106 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 17767 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10107 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,:.*,,'` ;;
10108 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 17773 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10109 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 17774 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10110 *) ac_file_in="${ac_file}.in" ;; 17775 * ) ac_file_in=$ac_file.in ;;
10111 esac 17776 esac
10112 17777
10113 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;}
10114 17780
10115 rm -f conftest.frag conftest.in conftest.out 17781 # First look for the input files in the build tree, otherwise in the
10116 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 17782 # src tree.
10117 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
10118 17811
10119EOF 17812_ACEOF
10120 17813
10121# Transform confdefs.h into a sed script conftest.vals that substitutes 17814# Transform confdefs.h into two sed scripts, `conftest.defines' and
10122# 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.
10123# 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
10124# Protect against being in an unquoted here document in config.status. 17819# config.status. Protect against being in an unquoted here document
10125rm -f conftest.vals 17820# in config.status.
10126cat > 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
10127s/[\\&%]/\\&/g 17829s/[\\&,]/\\&/g
10128s%[\\$`]%\\&%g 17830s,[\\$`],\\&,g
10129s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 17831t clear
10130s%ac_d%ac_u%gp 17832: clear
10131s%ac_u%ac_e%gp 17833s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10132EOF 17834t end
10133sed -n -f conftest.hdr confdefs.h > conftest.vals 17835s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10134rm -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
10135 17844
10136# This sed command replaces #undef with comments. This is necessary, for 17845# This sed command replaces #undef with comments. This is necessary, for
10137# 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
10138# on some systems where configure will not decide to define it. 17847# on some systems where configure will not decide to define it.
10139cat >> conftest.vals <<\EOF 17848cat >>conftest.undefs <<\_ACEOF
10140s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 17849s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10141EOF 17850_ACEOF
10142 17851
10143# 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
10144# 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).
10145 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
10146rm -f conftest.tail 17858rm -f conftest.tail
10147while : 17859while grep . conftest.defines >/dev/null
10148do 17860do
10149 ac_lines=`grep -c . conftest.vals`
10150 # grep -c gives empty output for an empty file on some AIX systems.
10151 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
10152 # Write a limited-size here document to conftest.frag. 17861 # Write a limited-size here document to $tmp/defines.sed.
10153 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
10154 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 17868 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10155 echo 'CEOF 17869 echo 'CEOF
10156 sed -f conftest.frag conftest.in > conftest.out 17870 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10157 rm -f conftest.in 17871 rm -f $tmp/in
10158 mv conftest.out conftest.in 17872 mv $tmp/out $tmp/in
10159' >> $CONFIG_STATUS 17873' >>$CONFIG_STATUS
10160 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 17874 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10161 rm -f conftest.vals 17875 rm -f conftest.defines
10162 mv conftest.tail conftest.vals 17876 mv conftest.tail conftest.defines
10163done 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
10164rm -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
10165 17906
10166cat >> $CONFIG_STATUS <<\EOF 17907cat >>$CONFIG_STATUS <<\_ACEOF
10167 rm -f conftest.frag conftest.h 17908 # Let's still pretend it is `configure' which instantiates (i.e., don't
10168 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 17909 # use $as_me), people would be surprised to read:
10169 cat conftest.in >> conftest.h 17910 # /* config.h. Generated by config.status. */
10170 rm -f conftest.in 17911 if test x"$ac_file" = x-; then
10171 if cmp -s $ac_file conftest.h 2>/dev/null; then 17912 echo "/* Generated by configure. */" >$tmp/config.h
10172 echo "$ac_file is unchanged"
10173 rm -f conftest.h
10174 else 17913 else
10175 # Remove last slash and all that follows it. Not all systems have dirname. 17914 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10176 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 17915 fi
10177 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 17916 cat $tmp/in >>$tmp/config.h
10178 # 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
10179 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
10180 fi 17962 fi
10181 rm -f $ac_file 17963 else
10182 mv conftest.h $ac_file 17964 cat $tmp/config.h
17965 rm -f $tmp/config.h
10183 fi 17966 fi
10184fi; done 17967done
17968_ACEOF
10185 17969
10186EOF
10187cat >> $CONFIG_STATUS <<EOF
10188
10189EOF
10190cat >> $CONFIG_STATUS <<\EOF 17970cat >>$CONFIG_STATUS <<\_ACEOF
10191 17971
10192exit 0 17972{ (exit 0); exit 0; }
10193EOF 17973_ACEOF
10194chmod +x $CONFIG_STATUS 17974chmod +x $CONFIG_STATUS
10195rm -fr confdefs* $ac_clean_files 17975ac_clean_files=$ac_clean_files_save
10196test "$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
10197 17998
10198 17999
10199echo "Configuration: 18000echo "Configuration:
10200 18001
10201 Rxvt version: $VERSION : $DATE 18002 Rxvt version: $VERSION : $DATE
10202 Source code location: $srcdir 18003 Source code location: $srcdir
10203 Install path: ${prefix}/bin 18004 Install path: ${prefix}/bin
10204 Compiler: $CC 18005 Compiler: $CXX
10205 Compiler flags: $CFLAGS" 18006 Compiler flags: $CFLAGS
18007 Linker: $LINKER"
10206 18008
10207if test "$MALLOC_TYPE" = S; then 18009if test "$MALLOC_TYPE" = S; then
10208 echo " malloc support: system default" 18010 echo " malloc support: system default"
10209fi 18011fi
10210if test "$MALLOC_TYPE" = G; then 18012if test "$MALLOC_TYPE" = G; then
10221echo " 18023echo "
10222The following are set in config.h 18024The following are set in config.h
10223" 18025"
10224echo " pty/tty type: "$rxvt_cv_ptys 18026echo " pty/tty type: "$rxvt_cv_ptys
10225if test x$support_utmp != xyes; then 18027if test x$support_utmp != xyes; then
10226 echo " utmp support: disabled 18028 echo " utmp support: disabled"
10227" 18029 echo
10228else 18030else
10229 echo " utmp support: enabled 18031 echo " utmp support: enabled
10230 utmp file: $rxvt_cv_path_utmp 18032 utmp file: $rxvt_cv_path_utmp
10231 utmpx file: $rxvt_cv_path_utmpx 18033 utmpx file: $rxvt_cv_path_utmpx
10232 wtmp file: $rxvt_cv_path_wtmp 18034 wtmp file: $rxvt_cv_path_wtmp
10233 wtmpx file: $rxvt_cv_path_wtmpx 18035 wtmpx file: $rxvt_cv_path_wtmpx
10234 lastlog file: $rxvt_cv_path_lastlog 18036 lastlog file: $rxvt_cv_path_lastlog
10235 ttys/ttytab file: $rxvt_cv_path_ttytab 18037 ttys/ttytab file: $rxvt_cv_path_ttytab"
10236" 18038 echo
10237fi 18039fi
10238if test x$term != x; then 18040if test x$term != x; then
10239 echo " set TERM to: $term 18041 echo " set TERM to: $term"
10240"
10241fi 18042fi
10242if test x$terminfo != x; then 18043if test x$terminfo != x; then
10243 echo " set TERMINFO to: $terminfo 18044 echo " set TERMINFO to: $terminfo"
10244"
10245fi 18045fi
18046echo " default resource name: $RESNAME"
18047echo " resource class: $RESCLASS"
18048if test x$RESFALLBACK != x; then
18049 echo " resource class fallback: $RESFALLBACK"
18050fi
18051echo
10246if test x$rxvt_cv_ptys = xUNKNOWN; then 18052if test x$rxvt_cv_ptys = xUNKNOWN; then
10247 echo ".----------------------------------------------------------------." 18053 echo ".----------------------------------------------------------------."
10248 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 ."
10249 echo ". the appropriate PTYS_ARE_* is defined in config.h ." 18055 echo ". the appropriate PTYS_ARE_* is defined in config.h ."
10250 echo ".----------------------------------------------------------------." 18056 echo ".----------------------------------------------------------------."
10264 echo ". WARNING: --enable-xim was specified however the locale support ." 18070 echo ". WARNING: --enable-xim was specified however the locale support ."
10265 echo ". functions could not be found. ." 18071 echo ". functions could not be found. ."
10266 echo ". XIM is now being DISABLED! ." 18072 echo ". XIM is now being DISABLED! ."
10267 echo ".----------------------------------------------------------------." 18073 echo ".----------------------------------------------------------------."
10268fi 18074fi
18075
10269echo " *** Please check src/feature.h for further options *** 18076echo " *** Please check src/feature.h for further options ***"
10270" 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