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

Comparing rxvt-unicode/configure (file contents):
Revision 1.2 by pcg, Thu Dec 18 00:38:07 2003 UTC vs.
Revision 1.15 by pcg, Wed Mar 3 04:07:45 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-xft enable xft support on systems that have it
1035 --enable-utmp enable utmp (utmpx) support
1036 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
1037 --enable-lastlog enable lastlog support (requires --enable-utmp)
1038 --enable-xpm-background enable XPM background pixmaps
1039 --enable-transparency enable transparent backgrounds
1040 --enable-menubar enable menubar
1041 --enable-rxvt-scroll enable rxvt style scrollbar
1042 --enable-next-scroll enable NeXT style scrollbar
1043 --enable-xterm-scroll enable Xterm style scrollbar
1044 --enable-plain-scroll enable plain style scrollbar
1045 --enable-half-shadow use half width/height shadow on rxvt scrollbar
1046 --enable-xim XIM (X Input Method) protocol support
1047 --enable-ttygid enable tty setting to group named "tty"
1048 --disable-backspace-key disable handling of the backspace key
1049 --disable-delete-key disable handling of the delete key
1050 --disable-resources disable all resource checking
1051 --enable-xgetdefault enable resources via X instead of our small version
1052 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt)
1053 --enable-strings enable some replacement system functions
1054 --disable-swapscreen disable swap screen support
1055 --enable-frills enable support for rarely used features
1056 --enable-linespace enable support for linespace
1057 --enable-24bit enable support for using 24bit visuals if available
1058 --enable-keepscrolling enable continual scrolling on scrollbar arrow press
1059 --enable-selectionscrolling enable scrolling during selections
1060 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
1061 --enable-slipwheeling enable slip wheel scrolling (requires previous)
1062 --enable-old-selection enable v2.20 (& prior) mouse selection style support
1063 --disable-new-selection disable new mouse (xterm) selection style support
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=NAME 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
3285if test x$GXX = xyes; then
3286 CXXFLAGS="$CXXFLAGS -fno-exceptions"
3287fi
3288
3289ac_ext=cc
3290ac_cpp='$CXXCPP $CPPFLAGS'
3291ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3292ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3293ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3294
3295
3296
3297ac_ext=cc
3298ac_cpp='$CXXCPP $CPPFLAGS'
3299ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3300ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3301ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3302echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3303echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3304if test -z "$CXXCPP"; then
3305 if test "${ac_cv_prog_CXXCPP+set}" = set; then
3306 echo $ECHO_N "(cached) $ECHO_C" >&6
3307else
3308 # Double quotes because CXXCPP needs to be expanded
3309 for CXXCPP in "$CXX -E" "/lib/cpp"
3310 do
3311 ac_preproc_ok=false
3312for ac_cxx_preproc_warn_flag in '' yes
3313do
3314 # Use a header file that comes with gcc, so configuring glibc
3315 # with a fresh cross-compiler works.
3316 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3317 # <limits.h> exists even on freestanding compilers.
3318 # On the NeXT, cc -E runs the code through the compiler's parser,
3319 # not just through cpp. "Syntax error" is here to catch this case.
3320 cat >conftest.$ac_ext <<_ACEOF
3321/* confdefs.h. */
3322_ACEOF
3323cat confdefs.h >>conftest.$ac_ext
3324cat >>conftest.$ac_ext <<_ACEOF
3325/* end confdefs.h. */
3326#ifdef __STDC__
3327# include <limits.h>
3328#else
3329# include <assert.h>
3330#endif
3331 Syntax error
3332_ACEOF
3333if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3334 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3335 ac_status=$?
3336 grep -v '^ *+' conftest.er1 >conftest.err
3337 rm -f conftest.er1
3338 cat conftest.err >&5
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); } >/dev/null; then
3341 if test -s conftest.err; then
3342 ac_cpp_err=$ac_cxx_preproc_warn_flag
3343 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3344 else
3345 ac_cpp_err=
3346 fi
3347else
3348 ac_cpp_err=yes
3349fi
3350if test -z "$ac_cpp_err"; then
3351 :
3352else
3353 echo "$as_me: failed program was:" >&5
3354sed 's/^/| /' conftest.$ac_ext >&5
3355
3356 # Broken: fails on valid input.
3357continue
3358fi
3359rm -f conftest.err conftest.$ac_ext
3360
3361 # OK, works on sane cases. Now check whether non-existent headers
3362 # can be detected and how.
3363 cat >conftest.$ac_ext <<_ACEOF
3364/* confdefs.h. */
3365_ACEOF
3366cat confdefs.h >>conftest.$ac_ext
3367cat >>conftest.$ac_ext <<_ACEOF
3368/* end confdefs.h. */
3369#include <ac_nonexistent.h>
3370_ACEOF
3371if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3372 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3373 ac_status=$?
3374 grep -v '^ *+' conftest.er1 >conftest.err
3375 rm -f conftest.er1
3376 cat conftest.err >&5
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); } >/dev/null; then
3379 if test -s conftest.err; then
3380 ac_cpp_err=$ac_cxx_preproc_warn_flag
3381 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3382 else
3383 ac_cpp_err=
3384 fi
3385else
3386 ac_cpp_err=yes
3387fi
3388if test -z "$ac_cpp_err"; then
3389 # Broken: success on invalid input.
3390continue
3391else
3392 echo "$as_me: failed program was:" >&5
3393sed 's/^/| /' conftest.$ac_ext >&5
3394
3395 # Passes both tests.
3396ac_preproc_ok=:
3397break
3398fi
3399rm -f conftest.err conftest.$ac_ext
3400
3401done
3402# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3403rm -f conftest.err conftest.$ac_ext
3404if $ac_preproc_ok; then
3405 break
3406fi
3407
3408 done
3409 ac_cv_prog_CXXCPP=$CXXCPP
3410
3411fi
3412 CXXCPP=$ac_cv_prog_CXXCPP
3413else
3414 ac_cv_prog_CXXCPP=$CXXCPP
3415fi
3416echo "$as_me:$LINENO: result: $CXXCPP" >&5
3417echo "${ECHO_T}$CXXCPP" >&6
3418ac_preproc_ok=false
3419for ac_cxx_preproc_warn_flag in '' yes
3420do
3421 # Use a header file that comes with gcc, so configuring glibc
3422 # with a fresh cross-compiler works.
3423 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3424 # <limits.h> exists even on freestanding compilers.
3425 # On the NeXT, cc -E runs the code through the compiler's parser,
3426 # not just through cpp. "Syntax error" is here to catch this case.
3427 cat >conftest.$ac_ext <<_ACEOF
3428/* confdefs.h. */
3429_ACEOF
3430cat confdefs.h >>conftest.$ac_ext
3431cat >>conftest.$ac_ext <<_ACEOF
3432/* end confdefs.h. */
3433#ifdef __STDC__
3434# include <limits.h>
3435#else
3436# include <assert.h>
3437#endif
3438 Syntax error
3439_ACEOF
3440if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3441 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3442 ac_status=$?
3443 grep -v '^ *+' conftest.er1 >conftest.err
3444 rm -f conftest.er1
3445 cat conftest.err >&5
3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); } >/dev/null; then
3448 if test -s conftest.err; then
3449 ac_cpp_err=$ac_cxx_preproc_warn_flag
3450 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3451 else
3452 ac_cpp_err=
3453 fi
3454else
3455 ac_cpp_err=yes
3456fi
3457if test -z "$ac_cpp_err"; then
3458 :
3459else
3460 echo "$as_me: failed program was:" >&5
3461sed 's/^/| /' conftest.$ac_ext >&5
3462
3463 # Broken: fails on valid input.
3464continue
3465fi
3466rm -f conftest.err conftest.$ac_ext
3467
3468 # OK, works on sane cases. Now check whether non-existent headers
3469 # can be detected and how.
3470 cat >conftest.$ac_ext <<_ACEOF
3471/* confdefs.h. */
3472_ACEOF
3473cat confdefs.h >>conftest.$ac_ext
3474cat >>conftest.$ac_ext <<_ACEOF
3475/* end confdefs.h. */
3476#include <ac_nonexistent.h>
3477_ACEOF
3478if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3479 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3480 ac_status=$?
3481 grep -v '^ *+' conftest.er1 >conftest.err
3482 rm -f conftest.er1
3483 cat conftest.err >&5
3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); } >/dev/null; then
3486 if test -s conftest.err; then
3487 ac_cpp_err=$ac_cxx_preproc_warn_flag
3488 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3489 else
3490 ac_cpp_err=
3491 fi
3492else
3493 ac_cpp_err=yes
3494fi
3495if test -z "$ac_cpp_err"; then
3496 # Broken: success on invalid input.
3497continue
3498else
3499 echo "$as_me: failed program was:" >&5
3500sed 's/^/| /' conftest.$ac_ext >&5
3501
3502 # Passes both tests.
3503ac_preproc_ok=:
3504break
3505fi
3506rm -f conftest.err conftest.$ac_ext
3507
3508done
3509# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3510rm -f conftest.err conftest.$ac_ext
3511if $ac_preproc_ok; then
3512 :
3513else
3514 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3515See \`config.log' for more details." >&5
3516echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3517See \`config.log' for more details." >&2;}
3518 { (exit 1); exit 1; }; }
3519fi
3520
3521ac_ext=cc
3522ac_cpp='$CXXCPP $CPPFLAGS'
3523ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3524ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3525ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3526
3527
3528echo "$as_me:$LINENO: checking for egrep" >&5
3529echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3530if test "${ac_cv_prog_egrep+set}" = set; then
3531 echo $ECHO_N "(cached) $ECHO_C" >&6
3532else
3533 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3534 then ac_cv_prog_egrep='grep -E'
3535 else ac_cv_prog_egrep='egrep'
1349 fi 3536 fi
1350 done
1351 IFS="$ac_save_ifs"
1352fi 3537fi
1353fi 3538echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
1354AWK="$ac_cv_prog_AWK" 3539echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1355if test -n "$AWK"; then 3540 EGREP=$ac_cv_prog_egrep
1356 echo "$ac_t""$AWK" 1>&6
1357else
1358 echo "$ac_t""no" 1>&6
1359fi
1360 3541
1361test -n "$AWK" && break
1362done
1363 3542
1364 3543
3544echo "$as_me:$LINENO: checking for AIX" >&5
1365echo $ac_n "checking for AIX""... $ac_c" 1>&6 3545echo $ECHO_N "checking for AIX... $ECHO_C" >&6
1366echo "configure:1367: checking for AIX" >&5
1367cat > conftest.$ac_ext <<EOF 3546cat >conftest.$ac_ext <<_ACEOF
1368#line 1369 "configure" 3547/* confdefs.h. */
1369#include "confdefs.h" 3548_ACEOF
3549cat confdefs.h >>conftest.$ac_ext
3550cat >>conftest.$ac_ext <<_ACEOF
3551/* end confdefs.h. */
1370#ifdef _AIX 3552#ifdef _AIX
1371 yes 3553 yes
1372#endif 3554#endif
1373 3555
1374EOF 3556_ACEOF
1375if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3557if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1376 egrep "yes" >/dev/null 2>&1; then 3558 $EGREP "yes" >/dev/null 2>&1; then
1377 rm -rf conftest* 3559 echo "$as_me:$LINENO: result: yes" >&5
1378 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF 3560echo "${ECHO_T}yes" >&6
3561cat >>confdefs.h <<\_ACEOF
1379#define _ALL_SOURCE 1 3562#define _ALL_SOURCE 1
1380EOF 3563_ACEOF
1381 3564
1382else 3565else
1383 rm -rf conftest* 3566 echo "$as_me:$LINENO: result: no" >&5
1384 echo "$ac_t""no" 1>&6 3567echo "${ECHO_T}no" >&6
1385fi 3568fi
1386rm -f conftest* 3569rm -f conftest*
1387 3570
1388 3571
1389echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 3572echo "$as_me:$LINENO: checking for library containing strerror" >&5
1390echo "configure:1391: checking for POSIXized ISC" >&5 3573echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
1391if test -d /etc/conf/kconfig.d && 3574if test "${ac_cv_search_strerror+set}" = set; then
1392 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 3575 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 3576else
1403 CC="$CC -Xp" 3577 ac_func_search_save_LIBS=$LIBS
1404 fi 3578ac_cv_search_strerror=no
3579cat >conftest.$ac_ext <<_ACEOF
3580/* confdefs.h. */
3581_ACEOF
3582cat confdefs.h >>conftest.$ac_ext
3583cat >>conftest.$ac_ext <<_ACEOF
3584/* end confdefs.h. */
3585
3586/* Override any gcc2 internal prototype to avoid an error. */
3587#ifdef __cplusplus
3588extern "C"
3589#endif
3590/* We use char because int might match the return type of a gcc2
3591 builtin and then its argument prototype would still apply. */
3592char strerror ();
3593int
3594main ()
3595{
3596strerror ();
3597 ;
3598 return 0;
3599}
3600_ACEOF
3601rm -f conftest.$ac_objext conftest$ac_exeext
3602if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3603 (eval $ac_link) 2>conftest.er1
3604 ac_status=$?
3605 grep -v '^ *+' conftest.er1 >conftest.err
3606 rm -f conftest.er1
3607 cat conftest.err >&5
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); } &&
3610 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3612 (eval $ac_try) 2>&5
3613 ac_status=$?
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); }; } &&
3616 { ac_try='test -s conftest$ac_exeext'
3617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3618 (eval $ac_try) 2>&5
3619 ac_status=$?
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); }; }; then
3622 ac_cv_search_strerror="none required"
1405else 3623else
1406 echo "$ac_t""no" 1>&6 3624 echo "$as_me: failed program was:" >&5
1407 ISC= 3625sed 's/^/| /' conftest.$ac_ext >&5
3626
3627fi
3628rm -f conftest.err conftest.$ac_objext \
3629 conftest$ac_exeext conftest.$ac_ext
3630if test "$ac_cv_search_strerror" = no; then
3631 for ac_lib in cposix; do
3632 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3633 cat >conftest.$ac_ext <<_ACEOF
3634/* confdefs.h. */
3635_ACEOF
3636cat confdefs.h >>conftest.$ac_ext
3637cat >>conftest.$ac_ext <<_ACEOF
3638/* end confdefs.h. */
3639
3640/* Override any gcc2 internal prototype to avoid an error. */
3641#ifdef __cplusplus
3642extern "C"
3643#endif
3644/* We use char because int might match the return type of a gcc2
3645 builtin and then its argument prototype would still apply. */
3646char strerror ();
3647int
3648main ()
3649{
3650strerror ();
3651 ;
3652 return 0;
3653}
3654_ACEOF
3655rm -f conftest.$ac_objext conftest$ac_exeext
3656if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3657 (eval $ac_link) 2>conftest.er1
3658 ac_status=$?
3659 grep -v '^ *+' conftest.er1 >conftest.err
3660 rm -f conftest.er1
3661 cat conftest.err >&5
3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); } &&
3664 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3666 (eval $ac_try) 2>&5
3667 ac_status=$?
3668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669 (exit $ac_status); }; } &&
3670 { ac_try='test -s conftest$ac_exeext'
3671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3672 (eval $ac_try) 2>&5
3673 ac_status=$?
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); }; }; then
3676 ac_cv_search_strerror="-l$ac_lib"
3677break
3678else
3679 echo "$as_me: failed program was:" >&5
3680sed 's/^/| /' conftest.$ac_ext >&5
3681
3682fi
3683rm -f conftest.err conftest.$ac_objext \
3684 conftest$ac_exeext conftest.$ac_ext
3685 done
3686fi
3687LIBS=$ac_func_search_save_LIBS
3688fi
3689echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3690echo "${ECHO_T}$ac_cv_search_strerror" >&6
3691if test "$ac_cv_search_strerror" != no; then
3692 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3693
1408fi 3694fi
1409 3695
1410 3696
1411# Check whether --enable-shared or --disable-shared was given. 3697# Check whether --enable-shared or --disable-shared was given.
1412if test "${enable_shared+set}" = set; then 3698if test "${enable_shared+set}" = set; then
1427 IFS="$ac_save_ifs" 3713 IFS="$ac_save_ifs"
1428 ;; 3714 ;;
1429esac 3715esac
1430else 3716else
1431 enable_shared=no 3717 enable_shared=no
1432fi
1433# Check whether --enable-static or --disable-static was given. 3718fi; # Check whether --enable-static or --disable-static was given.
1434if test "${enable_static+set}" = set; then 3719if test "${enable_static+set}" = set; then
1435 enableval="$enable_static" 3720 enableval="$enable_static"
1436 p=${PACKAGE-default} 3721 p=${PACKAGE-default}
1437case "$enableval" in 3722case "$enableval" in
1438yes) enable_static=yes ;; 3723yes) enable_static=yes ;;
1449 IFS="$ac_save_ifs" 3734 IFS="$ac_save_ifs"
1450 ;; 3735 ;;
1451esac 3736esac
1452else 3737else
1453 enable_static=yes 3738 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. 3739fi; # Check whether --enable-fast-install or --disable-fast-install was given.
1518if test "${enable_fast_install+set}" = set; then 3740if test "${enable_fast_install+set}" = set; then
1519 enableval="$enable_fast_install" 3741 enableval="$enable_fast_install"
1520 p=${PACKAGE-default} 3742 p=${PACKAGE-default}
1521case "$enableval" in 3743case "$enableval" in
1522yes) enable_fast_install=yes ;; 3744yes) enable_fast_install=yes ;;
1533 IFS="$ac_save_ifs" 3755 IFS="$ac_save_ifs"
1534 ;; 3756 ;;
1535esac 3757esac
1536else 3758else
1537 enable_fast_install=yes 3759 enable_fast_install=yes
1538fi 3760fi;
1539
1540
1541# Make sure we can run config.sub. 3761# Make sure we can run config.sub.
1542if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : 3762$ac_config_sub sun4 >/dev/null 2>&1 ||
3763 { { 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; } 3764echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1544fi 3765 { (exit 1); exit 1; }; }
1545 3766
1546echo $ac_n "checking host system type""... $ac_c" 1>&6 3767echo "$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 3768echo $ECHO_N "checking build system type... $ECHO_C" >&6
1568echo "configure:1569: checking build system type" >&5 3769if test "${ac_cv_build+set}" = set; then
3770 echo $ECHO_N "(cached) $ECHO_C" >&6
3771else
3772 ac_cv_build_alias=$build_alias
3773test -z "$ac_cv_build_alias" &&
3774 ac_cv_build_alias=`$ac_config_guess`
3775test -z "$ac_cv_build_alias" &&
3776 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3777echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3778 { (exit 1); exit 1; }; }
3779ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3780 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3781echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3782 { (exit 1); exit 1; }; }
1569 3783
1570build_alias=$build 3784fi
1571case "$build_alias" in 3785echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1572NONE) 3786echo "${ECHO_T}$ac_cv_build" >&6
1573 case $nonopt in 3787build=$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/'` 3788build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1581build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 3789build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1582build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 3790build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1583echo "$ac_t""$build" 1>&6 3791
3792
3793echo "$as_me:$LINENO: checking host system type" >&5
3794echo $ECHO_N "checking host system type... $ECHO_C" >&6
3795if test "${ac_cv_host+set}" = set; then
3796 echo $ECHO_N "(cached) $ECHO_C" >&6
3797else
3798 ac_cv_host_alias=$host_alias
3799test -z "$ac_cv_host_alias" &&
3800 ac_cv_host_alias=$ac_cv_build_alias
3801ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3802 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3803echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3804 { (exit 1); exit 1; }; }
3805
3806fi
3807echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3808echo "${ECHO_T}$ac_cv_host" >&6
3809host=$ac_cv_host
3810host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3811host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3812host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3813
3814
1584 3815
1585# Check whether --with-gnu-ld or --without-gnu-ld was given. 3816# Check whether --with-gnu-ld or --without-gnu-ld was given.
1586if test "${with_gnu_ld+set}" = set; then 3817if test "${with_gnu_ld+set}" = set; then
1587 withval="$with_gnu_ld" 3818 withval="$with_gnu_ld"
1588 test "$withval" = no || with_gnu_ld=yes 3819 test "$withval" = no || with_gnu_ld=yes
1589else 3820else
1590 with_gnu_ld=no 3821 with_gnu_ld=no
1591fi 3822fi;
1592
1593ac_prog=ld 3823ac_prog=ld
1594if test "$GCC" = yes; then 3824if test "$GCC" = yes; then
1595 # Check if gcc -print-prog-name=ld gives a path. 3825 # Check if gcc -print-prog-name=ld gives a path.
3826 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 3827echo $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 3828 case $host in
1599 *-*-mingw*) 3829 *-*-mingw*)
1600 # gcc leaves a trailing carriage return which upsets mingw 3830 # gcc leaves a trailing carriage return which upsets mingw
1601 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3831 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1602 *) 3832 *)
1621 # If it is relative, then search for the first ld in PATH. 3851 # If it is relative, then search for the first ld in PATH.
1622 with_gnu_ld=unknown 3852 with_gnu_ld=unknown
1623 ;; 3853 ;;
1624 esac 3854 esac
1625elif test "$with_gnu_ld" = yes; then 3855elif test "$with_gnu_ld" = yes; then
3856 echo "$as_me:$LINENO: checking for GNU ld" >&5
1626 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 3857echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
1627echo "configure:1628: checking for GNU ld" >&5
1628else 3858else
3859 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
1629 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 3860echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
1630echo "configure:1631: checking for non-GNU ld" >&5
1631fi 3861fi
1632if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then 3862if test "${lt_cv_path_LD+set}" = set; then
1633 echo $ac_n "(cached) $ac_c" 1>&6 3863 echo $ECHO_N "(cached) $ECHO_C" >&6
1634else 3864else
1635 if test -z "$LD"; then 3865 if test -z "$LD"; then
1636 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 3866 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1637 for ac_dir in $PATH; do 3867 for ac_dir in $PATH; do
1638 test -z "$ac_dir" && ac_dir=. 3868 test -z "$ac_dir" && ac_dir=.
1654fi 3884fi
1655fi 3885fi
1656 3886
1657LD="$lt_cv_path_LD" 3887LD="$lt_cv_path_LD"
1658if test -n "$LD"; then 3888if test -n "$LD"; then
1659 echo "$ac_t""$LD" 1>&6 3889 echo "$as_me:$LINENO: result: $LD" >&5
3890echo "${ECHO_T}$LD" >&6
1660else 3891else
1661 echo "$ac_t""no" 1>&6 3892 echo "$as_me:$LINENO: result: no" >&5
3893echo "${ECHO_T}no" >&6
1662fi 3894fi
1663test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } 3895test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3896echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3897 { (exit 1); exit 1; }; }
3898echo "$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 3899echo $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 3900if test "${lt_cv_prog_gnu_ld+set}" = set; then
1667 echo $ac_n "(cached) $ac_c" 1>&6 3901 echo $ECHO_N "(cached) $ECHO_C" >&6
1668else 3902else
1669 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 3903 # 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 3904if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1671 lt_cv_prog_gnu_ld=yes 3905 lt_cv_prog_gnu_ld=yes
1672else 3906else
1673 lt_cv_prog_gnu_ld=no 3907 lt_cv_prog_gnu_ld=no
1674fi 3908fi
1675fi 3909fi
1676 3910echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
1677echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6 3911echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
1678with_gnu_ld=$lt_cv_prog_gnu_ld 3912with_gnu_ld=$lt_cv_prog_gnu_ld
1679 3913
1680 3914
3915echo "$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 3916echo $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 3917if test "${lt_cv_ld_reload_flag+set}" = set; then
1684 echo $ac_n "(cached) $ac_c" 1>&6 3918 echo $ECHO_N "(cached) $ECHO_C" >&6
1685else 3919else
1686 lt_cv_ld_reload_flag='-r' 3920 lt_cv_ld_reload_flag='-r'
1687fi 3921fi
1688 3922echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
1689echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6 3923echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
1690reload_flag=$lt_cv_ld_reload_flag 3924reload_flag=$lt_cv_ld_reload_flag
1691test -n "$reload_flag" && reload_flag=" $reload_flag" 3925test -n "$reload_flag" && reload_flag=" $reload_flag"
1692 3926
3927echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
1693echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 3928echo $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 3929if test "${lt_cv_path_NM+set}" = set; then
1696 echo $ac_n "(cached) $ac_c" 1>&6 3930 echo $ECHO_N "(cached) $ECHO_C" >&6
1697else 3931else
1698 if test -n "$NM"; then 3932 if test -n "$NM"; then
1699 # Let the user override the test. 3933 # Let the user override the test.
1700 lt_cv_path_NM="$NM" 3934 lt_cv_path_NM="$NM"
1701else 3935else
1724 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 3958 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1725fi 3959fi
1726fi 3960fi
1727 3961
1728NM="$lt_cv_path_NM" 3962NM="$lt_cv_path_NM"
1729echo "$ac_t""$NM" 1>&6 3963echo "$as_me:$LINENO: result: $NM" >&5
3964echo "${ECHO_T}$NM" >&6
1730 3965
3966echo "$as_me:$LINENO: checking whether ln -s works" >&5
1731echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 3967echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1732echo "configure:1733: checking whether ln -s works" >&5 3968LN_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 3969if test "$LN_S" = "ln -s"; then
1747 echo "$ac_t""yes" 1>&6 3970 echo "$as_me:$LINENO: result: yes" >&5
3971echo "${ECHO_T}yes" >&6
1748else 3972else
1749 echo "$ac_t""no" 1>&6 3973 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3974echo "${ECHO_T}no, using $LN_S" >&6
1750fi 3975fi
1751 3976
3977echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
1752echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6 3978echo $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 3979if test "${lt_cv_deplibs_check_method+set}" = set; then
1755 echo $ac_n "(cached) $ac_c" 1>&6 3980 echo $ECHO_N "(cached) $ECHO_C" >&6
1756else 3981else
1757 lt_cv_file_magic_cmd='$MAGIC_CMD' 3982 lt_cv_file_magic_cmd='$MAGIC_CMD'
1758lt_cv_file_magic_test_file= 3983lt_cv_file_magic_test_file=
1759lt_cv_deplibs_check_method='unknown' 3984lt_cv_deplibs_check_method='unknown'
1760# Need to set the preceding variable on all platforms that support 3985# Need to set the preceding variable on all platforms that support
1906 esac 4131 esac
1907 ;; 4132 ;;
1908esac 4133esac
1909 4134
1910fi 4135fi
1911 4136echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
1912echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6 4137echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
1913file_magic_cmd=$lt_cv_file_magic_cmd 4138file_magic_cmd=$lt_cv_file_magic_cmd
1914deplibs_check_method=$lt_cv_deplibs_check_method 4139deplibs_check_method=$lt_cv_deplibs_check_method
1915 4140
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 4141
1936echo "$ac_t""$ac_cv_objext" 1>&6
1937OBJEXT=$ac_cv_objext
1938ac_objext=$ac_cv_objext
1939 4142
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 4143
1979 4144
1980 4145
1981 4146
1982# Check for command to grab the raw symbol name followed by C symbol from nm. 4147# Check for command to grab the raw symbol name followed by C symbol from nm.
4148echo "$as_me:$LINENO: checking command to parse $NM output" >&5
1983echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6 4149echo $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 4150if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
1986 echo $ac_n "(cached) $ac_c" 1>&6 4151 echo $ECHO_N "(cached) $ECHO_C" >&6
1987else 4152else
1988 4153
1989# These are sane defaults that work on at least a few old systems. 4154# These are sane defaults that work on at least a few old systems.
1990# [They come from Ultrix. What could be older than Ultrix?!! ;)] 4155# [They come from Ultrix. What could be older than Ultrix?!! ;)]
1991 4156
1992# Character class describing NM global symbol codes. 4157# Character class describing NM global symbol codes.
1993symcode='[BCDEGRST]' 4158symcode='[BCDEGRST]'
2055} 4220}
2056#endif 4221#endif
2057main(){nm_test_var='a';nm_test_func();return(0);} 4222main(){nm_test_var='a';nm_test_func();return(0);}
2058EOF 4223EOF
2059 4224
2060 if { (eval echo configure:2061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4226 (eval $ac_compile) 2>&5
4227 ac_status=$?
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); }; then
2061 # Now try to grab the symbols. 4230 # Now try to grab the symbols.
2062 nlist=conftest.nm 4231 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 4232 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4233 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4234 ac_status=$?
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); } && test -s "$nlist"; then
2064 # Try sorting and uniquifying the output. 4237 # Try sorting and uniquifying the output.
2065 if sort "$nlist" | uniq > "$nlist"T; then 4238 if sort "$nlist" | uniq > "$nlist"T; then
2066 mv -f "$nlist"T "$nlist" 4239 mv -f "$nlist"T "$nlist"
2067 else 4240 else
2068 rm -f "$nlist"T 4241 rm -f "$nlist"T
2109 mv conftest.$ac_objext conftstm.$ac_objext 4282 mv conftest.$ac_objext conftstm.$ac_objext
2110 save_LIBS="$LIBS" 4283 save_LIBS="$LIBS"
2111 save_CFLAGS="$CFLAGS" 4284 save_CFLAGS="$CFLAGS"
2112 LIBS="conftstm.$ac_objext" 4285 LIBS="conftstm.$ac_objext"
2113 CFLAGS="$CFLAGS$no_builtin_flag" 4286 CFLAGS="$CFLAGS$no_builtin_flag"
2114 if { (eval echo configure:2115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4288 (eval $ac_link) 2>&5
4289 ac_status=$?
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); } && test -s conftest; then
2115 pipe_works=yes 4292 pipe_works=yes
2116 fi 4293 fi
2117 LIBS="$save_LIBS" 4294 LIBS="$save_LIBS"
2118 CFLAGS="$save_CFLAGS" 4295 CFLAGS="$save_CFLAGS"
2119 else 4296 else
2146 global_symbol_to_cdecl= 4323 global_symbol_to_cdecl=
2147else 4324else
2148 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl" 4325 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
2149fi 4326fi
2150if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then 4327if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then
2151 echo "$ac_t""failed" 1>&6 4328 echo "$as_me:$LINENO: result: failed" >&5
4329echo "${ECHO_T}failed" >&6
4330else
4331 echo "$as_me:$LINENO: result: ok" >&5
4332echo "${ECHO_T}ok" >&6
4333fi
4334
4335echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4336echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4337if test "${ac_cv_header_stdc+set}" = set; then
4338 echo $ECHO_N "(cached) $ECHO_C" >&6
4339else
4340 cat >conftest.$ac_ext <<_ACEOF
4341/* confdefs.h. */
4342_ACEOF
4343cat confdefs.h >>conftest.$ac_ext
4344cat >>conftest.$ac_ext <<_ACEOF
4345/* end confdefs.h. */
4346#include <stdlib.h>
4347#include <stdarg.h>
4348#include <string.h>
4349#include <float.h>
4350
4351int
4352main ()
4353{
4354
4355 ;
4356 return 0;
4357}
4358_ACEOF
4359rm -f conftest.$ac_objext
4360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4361 (eval $ac_compile) 2>conftest.er1
4362 ac_status=$?
4363 grep -v '^ *+' conftest.er1 >conftest.err
4364 rm -f conftest.er1
4365 cat conftest.err >&5
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); } &&
4368 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4370 (eval $ac_try) 2>&5
4371 ac_status=$?
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); }; } &&
4374 { ac_try='test -s conftest.$ac_objext'
4375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4376 (eval $ac_try) 2>&5
4377 ac_status=$?
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); }; }; then
4380 ac_cv_header_stdc=yes
4381else
4382 echo "$as_me: failed program was:" >&5
4383sed 's/^/| /' conftest.$ac_ext >&5
4384
4385ac_cv_header_stdc=no
4386fi
4387rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4388
4389if test $ac_cv_header_stdc = yes; then
4390 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4391 cat >conftest.$ac_ext <<_ACEOF
4392/* confdefs.h. */
4393_ACEOF
4394cat confdefs.h >>conftest.$ac_ext
4395cat >>conftest.$ac_ext <<_ACEOF
4396/* end confdefs.h. */
4397#include <string.h>
4398
4399_ACEOF
4400if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4401 $EGREP "memchr" >/dev/null 2>&1; then
4402 :
4403else
4404 ac_cv_header_stdc=no
4405fi
4406rm -f conftest*
4407
4408fi
4409
4410if test $ac_cv_header_stdc = yes; then
4411 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4412 cat >conftest.$ac_ext <<_ACEOF
4413/* confdefs.h. */
4414_ACEOF
4415cat confdefs.h >>conftest.$ac_ext
4416cat >>conftest.$ac_ext <<_ACEOF
4417/* end confdefs.h. */
4418#include <stdlib.h>
4419
4420_ACEOF
4421if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4422 $EGREP "free" >/dev/null 2>&1; then
4423 :
4424else
4425 ac_cv_header_stdc=no
4426fi
4427rm -f conftest*
4428
4429fi
4430
4431if test $ac_cv_header_stdc = yes; then
4432 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4433 if test "$cross_compiling" = yes; then
4434 :
4435else
4436 cat >conftest.$ac_ext <<_ACEOF
4437/* confdefs.h. */
4438_ACEOF
4439cat confdefs.h >>conftest.$ac_ext
4440cat >>conftest.$ac_ext <<_ACEOF
4441/* end confdefs.h. */
4442#include <ctype.h>
4443#if ((' ' & 0x0FF) == 0x020)
4444# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4445# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2152else 4446#else
2153 echo "$ac_t""ok" 1>&6 4447# define ISLOWER(c) \
2154fi 4448 (('a' <= (c) && (c) <= 'i') \
4449 || ('j' <= (c) && (c) <= 'r') \
4450 || ('s' <= (c) && (c) <= 'z'))
4451# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4452#endif
2155 4453
2156for ac_hdr in dlfcn.h 4454#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4455int
4456main ()
4457{
4458 int i;
4459 for (i = 0; i < 256; i++)
4460 if (XOR (islower (i), ISLOWER (i))
4461 || toupper (i) != TOUPPER (i))
4462 exit(2);
4463 exit (0);
4464}
4465_ACEOF
4466rm -f conftest$ac_exeext
4467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4468 (eval $ac_link) 2>&5
4469 ac_status=$?
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4473 (eval $ac_try) 2>&5
4474 ac_status=$?
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); }; }; then
4477 :
4478else
4479 echo "$as_me: program exited with status $ac_status" >&5
4480echo "$as_me: failed program was:" >&5
4481sed 's/^/| /' conftest.$ac_ext >&5
4482
4483( exit $ac_status )
4484ac_cv_header_stdc=no
4485fi
4486rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4487fi
4488fi
4489fi
4490echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4491echo "${ECHO_T}$ac_cv_header_stdc" >&6
4492if test $ac_cv_header_stdc = yes; then
4493
4494cat >>confdefs.h <<\_ACEOF
4495#define STDC_HEADERS 1
4496_ACEOF
4497
4498fi
4499
4500# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4511 inttypes.h stdint.h unistd.h
2157do 4512do
2158ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 4513as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4514echo "$as_me:$LINENO: checking for $ac_header" >&5
2159echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 4515echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2160echo "configure:2161: checking for $ac_hdr" >&5 4516if 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 4517 echo $ECHO_N "(cached) $ECHO_C" >&6
2163else 4518else
2164 cat > conftest.$ac_ext <<EOF 4519 cat >conftest.$ac_ext <<_ACEOF
2165#line 2166 "configure" 4520/* confdefs.h. */
2166#include "confdefs.h" 4521_ACEOF
4522cat confdefs.h >>conftest.$ac_ext
4523cat >>conftest.$ac_ext <<_ACEOF
4524/* end confdefs.h. */
4525$ac_includes_default
4526
2167#include <$ac_hdr> 4527#include <$ac_header>
2168EOF 4528_ACEOF
2169ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4529rm -f conftest.$ac_objext
2170{ (eval echo configure:2171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2171ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4531 (eval $ac_compile) 2>conftest.er1
4532 ac_status=$?
4533 grep -v '^ *+' conftest.er1 >conftest.err
4534 rm -f conftest.er1
4535 cat conftest.err >&5
4536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537 (exit $ac_status); } &&
4538 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4540 (eval $ac_try) 2>&5
4541 ac_status=$?
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); }; } &&
4544 { ac_try='test -s conftest.$ac_objext'
4545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4546 (eval $ac_try) 2>&5
4547 ac_status=$?
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); }; }; then
4550 eval "$as_ac_Header=yes"
4551else
4552 echo "$as_me: failed program was:" >&5
4553sed 's/^/| /' conftest.$ac_ext >&5
4554
4555eval "$as_ac_Header=no"
4556fi
4557rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4558fi
4559echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4560echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4561if test `eval echo '${'$as_ac_Header'}'` = yes; then
4562 cat >>confdefs.h <<_ACEOF
4563#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4564_ACEOF
4565
4566fi
4567
4568done
4569
4570
4571
4572for ac_header in dlfcn.h
4573do
4574as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4575if eval "test \"\${$as_ac_Header+set}\" = set"; then
4576 echo "$as_me:$LINENO: checking for $ac_header" >&5
4577echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4578if eval "test \"\${$as_ac_Header+set}\" = set"; then
4579 echo $ECHO_N "(cached) $ECHO_C" >&6
4580fi
4581echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4582echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4583else
4584 # Is the header compilable?
4585echo "$as_me:$LINENO: checking $ac_header usability" >&5
4586echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4587cat >conftest.$ac_ext <<_ACEOF
4588/* confdefs.h. */
4589_ACEOF
4590cat confdefs.h >>conftest.$ac_ext
4591cat >>conftest.$ac_ext <<_ACEOF
4592/* end confdefs.h. */
4593$ac_includes_default
4594#include <$ac_header>
4595_ACEOF
4596rm -f conftest.$ac_objext
4597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4598 (eval $ac_compile) 2>conftest.er1
4599 ac_status=$?
4600 grep -v '^ *+' conftest.er1 >conftest.err
4601 rm -f conftest.er1
4602 cat conftest.err >&5
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); } &&
4605 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4607 (eval $ac_try) 2>&5
4608 ac_status=$?
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); }; } &&
4611 { ac_try='test -s conftest.$ac_objext'
4612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4613 (eval $ac_try) 2>&5
4614 ac_status=$?
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); }; }; then
4617 ac_header_compiler=yes
4618else
4619 echo "$as_me: failed program was:" >&5
4620sed 's/^/| /' conftest.$ac_ext >&5
4621
4622ac_header_compiler=no
4623fi
4624rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4625echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4626echo "${ECHO_T}$ac_header_compiler" >&6
4627
4628# Is the header present?
4629echo "$as_me:$LINENO: checking $ac_header presence" >&5
4630echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4631cat >conftest.$ac_ext <<_ACEOF
4632/* confdefs.h. */
4633_ACEOF
4634cat confdefs.h >>conftest.$ac_ext
4635cat >>conftest.$ac_ext <<_ACEOF
4636/* end confdefs.h. */
4637#include <$ac_header>
4638_ACEOF
4639if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4640 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4641 ac_status=$?
4642 grep -v '^ *+' conftest.er1 >conftest.err
4643 rm -f conftest.er1
4644 cat conftest.err >&5
4645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646 (exit $ac_status); } >/dev/null; then
4647 if test -s conftest.err; then
4648 ac_cpp_err=$ac_cxx_preproc_warn_flag
4649 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4650 else
4651 ac_cpp_err=
4652 fi
4653else
4654 ac_cpp_err=yes
4655fi
2172if test -z "$ac_err"; then 4656if test -z "$ac_cpp_err"; then
2173 rm -rf conftest* 4657 ac_header_preproc=yes
2174 eval "ac_cv_header_$ac_safe=yes"
2175else 4658else
2176 echo "$ac_err" >&5
2177 echo "configure: failed program was:" >&5 4659 echo "$as_me: failed program was:" >&5
2178 cat conftest.$ac_ext >&5 4660sed 's/^/| /' conftest.$ac_ext >&5
2179 rm -rf conftest* 4661
2180 eval "ac_cv_header_$ac_safe=no" 4662 ac_header_preproc=no
2181fi 4663fi
2182rm -f conftest* 4664rm -f conftest.err conftest.$ac_ext
4665echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4666echo "${ECHO_T}$ac_header_preproc" >&6
4667
4668# So? What about this header?
4669case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
4670 yes:no: )
4671 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4672echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4674echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4675 ac_header_preproc=yes
4676 ;;
4677 no:yes:* )
4678 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4679echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4680 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4681echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4682 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4683echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4684 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4685echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4686 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4687echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4688 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4689echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4690 (
4691 cat <<\_ASBOX
4692## ------------------------------------------ ##
4693## Report this to the AC_PACKAGE_NAME lists. ##
4694## ------------------------------------------ ##
4695_ASBOX
4696 ) |
4697 sed "s/^/$as_me: WARNING: /" >&2
4698 ;;
4699esac
4700echo "$as_me:$LINENO: checking for $ac_header" >&5
4701echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4702if eval "test \"\${$as_ac_Header+set}\" = set"; then
4703 echo $ECHO_N "(cached) $ECHO_C" >&6
4704else
4705 eval "$as_ac_Header=\$ac_header_preproc"
2183fi 4706fi
2184if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4707echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2185 echo "$ac_t""yes" 1>&6 4708echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2186 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 4709
4710fi
4711if test `eval echo '${'$as_ac_Header'}'` = yes; then
2187 cat >> confdefs.h <<EOF 4712 cat >>confdefs.h <<_ACEOF
2188#define $ac_tr_hdr 1 4713#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2189EOF 4714_ACEOF
2190 4715
2191else
2192 echo "$ac_t""no" 1>&6
2193fi 4716fi
4717
2194done 4718done
2195 4719
2196 4720
2197 4721
2198 4722
2199 4723
2200# Only perform the check for file, if the check method requires it 4724# Only perform the check for file, if the check method requires it
2201case "$deplibs_check_method" in 4725case "$deplibs_check_method" in
2202file_magic*) 4726file_magic*)
2203 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 4727 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4728 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 4729echo $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 4730if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
2207 echo $ac_n "(cached) $ac_c" 1>&6 4731 echo $ECHO_N "(cached) $ECHO_C" >&6
2208else 4732else
2209 case "$MAGIC_CMD" in 4733 case "$MAGIC_CMD" in
2210 /*) 4734 /*)
2211 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 4735 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2212 ;; 4736 ;;
2254esac 4778esac
2255fi 4779fi
2256 4780
2257MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 4781MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2258if test -n "$MAGIC_CMD"; then 4782if test -n "$MAGIC_CMD"; then
4783 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
2259 echo "$ac_t""$MAGIC_CMD" 1>&6 4784echo "${ECHO_T}$MAGIC_CMD" >&6
2260else 4785else
2261 echo "$ac_t""no" 1>&6 4786 echo "$as_me:$LINENO: result: no" >&5
4787echo "${ECHO_T}no" >&6
2262fi 4788fi
2263 4789
2264if test -z "$lt_cv_path_MAGIC_CMD"; then 4790if test -z "$lt_cv_path_MAGIC_CMD"; then
2265 if test -n "$ac_tool_prefix"; then 4791 if test -n "$ac_tool_prefix"; then
4792 echo "$as_me:$LINENO: checking for file" >&5
2266 echo $ac_n "checking for file""... $ac_c" 1>&6 4793echo $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 4794if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
2269 echo $ac_n "(cached) $ac_c" 1>&6 4795 echo $ECHO_N "(cached) $ECHO_C" >&6
2270else 4796else
2271 case "$MAGIC_CMD" in 4797 case "$MAGIC_CMD" in
2272 /*) 4798 /*)
2273 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 4799 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2274 ;; 4800 ;;
2316esac 4842esac
2317fi 4843fi
2318 4844
2319MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 4845MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2320if test -n "$MAGIC_CMD"; then 4846if test -n "$MAGIC_CMD"; then
4847 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
2321 echo "$ac_t""$MAGIC_CMD" 1>&6 4848echo "${ECHO_T}$MAGIC_CMD" >&6
2322else 4849else
2323 echo "$ac_t""no" 1>&6 4850 echo "$as_me:$LINENO: result: no" >&5
4851echo "${ECHO_T}no" >&6
2324fi 4852fi
2325 4853
2326 else 4854 else
2327 MAGIC_CMD=: 4855 MAGIC_CMD=:
2328 fi 4856 fi
2330 4858
2331 fi 4859 fi
2332 ;; 4860 ;;
2333esac 4861esac
2334 4862
4863if 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. 4864 # 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 4865set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4866echo "$as_me:$LINENO: checking for $ac_word" >&5
2337echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 4867echo $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 4868if test "${ac_cv_prog_RANLIB+set}" = set; then
2340 echo $ac_n "(cached) $ac_c" 1>&6 4869 echo $ECHO_N "(cached) $ECHO_C" >&6
2341else 4870else
2342 if test -n "$RANLIB"; then 4871 if test -n "$RANLIB"; then
2343 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4872 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2344else 4873else
2345 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346 ac_dummy="$PATH" 4875for as_dir in $PATH
2347 for ac_dir in $ac_dummy; do 4876do
4877 IFS=$as_save_IFS
2348 test -z "$ac_dir" && ac_dir=. 4878 test -z "$as_dir" && as_dir=.
2349 if test -f $ac_dir/$ac_word; then 4879 for ac_exec_ext in '' $ac_executable_extensions; do
4880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2350 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4881 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2351 break 4883 break 2
2352 fi 4884 fi
2353 done 4885done
2354 IFS="$ac_save_ifs" 4886done
4887
2355fi 4888fi
2356fi 4889fi
2357RANLIB="$ac_cv_prog_RANLIB" 4890RANLIB=$ac_cv_prog_RANLIB
2358if test -n "$RANLIB"; then 4891if test -n "$RANLIB"; then
2359 echo "$ac_t""$RANLIB" 1>&6 4892 echo "$as_me:$LINENO: result: $RANLIB" >&5
4893echo "${ECHO_T}$RANLIB" >&6
2360else 4894else
2361 echo "$ac_t""no" 1>&6 4895 echo "$as_me:$LINENO: result: no" >&5
4896echo "${ECHO_T}no" >&6
2362fi 4897fi
2363 4898
2364 4899fi
2365if test -z "$ac_cv_prog_RANLIB"; then 4900if test -z "$ac_cv_prog_RANLIB"; then
2366if test -n "$ac_tool_prefix"; then 4901 ac_ct_RANLIB=$RANLIB
2367 # Extract the first word of "ranlib", so it can be a program name with args. 4902 # Extract the first word of "ranlib", so it can be a program name with args.
2368set dummy ranlib; ac_word=$2 4903set dummy ranlib; ac_word=$2
4904echo "$as_me:$LINENO: checking for $ac_word" >&5
2369echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 4905echo $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 4906if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2372 echo $ac_n "(cached) $ac_c" 1>&6 4907 echo $ECHO_N "(cached) $ECHO_C" >&6
2373else 4908else
2374 if test -n "$RANLIB"; then 4909 if test -n "$ac_ct_RANLIB"; then
2375 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4910 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2376else 4911else
2377 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2378 ac_dummy="$PATH" 4913for as_dir in $PATH
2379 for ac_dir in $ac_dummy; do 4914do
4915 IFS=$as_save_IFS
2380 test -z "$ac_dir" && ac_dir=. 4916 test -z "$as_dir" && as_dir=.
2381 if test -f $ac_dir/$ac_word; then 4917 for ac_exec_ext in '' $ac_executable_extensions; do
4918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2382 ac_cv_prog_RANLIB="ranlib" 4919 ac_cv_prog_ac_ct_RANLIB="ranlib"
4920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2383 break 4921 break 2
2384 fi 4922 fi
2385 done 4923done
2386 IFS="$ac_save_ifs" 4924done
4925
2387 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" 4926 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2388fi 4927fi
2389fi 4928fi
4929ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4930if test -n "$ac_ct_RANLIB"; then
4931 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4932echo "${ECHO_T}$ac_ct_RANLIB" >&6
4933else
4934 echo "$as_me:$LINENO: result: no" >&5
4935echo "${ECHO_T}no" >&6
4936fi
4937
4938 RANLIB=$ac_ct_RANLIB
4939else
2390RANLIB="$ac_cv_prog_RANLIB" 4940 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 4941fi
2396 4942
2397else 4943if 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. 4944 # 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 4945set dummy ${ac_tool_prefix}strip; ac_word=$2
4946echo "$as_me:$LINENO: checking for $ac_word" >&5
2404echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 4947echo $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 4948if test "${ac_cv_prog_STRIP+set}" = set; then
2407 echo $ac_n "(cached) $ac_c" 1>&6 4949 echo $ECHO_N "(cached) $ECHO_C" >&6
2408else 4950else
2409 if test -n "$STRIP"; then 4951 if test -n "$STRIP"; then
2410 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4952 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2411else 4953else
2412 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413 ac_dummy="$PATH" 4955for as_dir in $PATH
2414 for ac_dir in $ac_dummy; do 4956do
4957 IFS=$as_save_IFS
2415 test -z "$ac_dir" && ac_dir=. 4958 test -z "$as_dir" && as_dir=.
2416 if test -f $ac_dir/$ac_word; then 4959 for ac_exec_ext in '' $ac_executable_extensions; do
4960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2417 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4961 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2418 break 4963 break 2
2419 fi 4964 fi
2420 done 4965done
2421 IFS="$ac_save_ifs" 4966done
4967
2422fi 4968fi
2423fi 4969fi
2424STRIP="$ac_cv_prog_STRIP" 4970STRIP=$ac_cv_prog_STRIP
2425if test -n "$STRIP"; then 4971if test -n "$STRIP"; then
2426 echo "$ac_t""$STRIP" 1>&6 4972 echo "$as_me:$LINENO: result: $STRIP" >&5
4973echo "${ECHO_T}$STRIP" >&6
2427else 4974else
2428 echo "$ac_t""no" 1>&6 4975 echo "$as_me:$LINENO: result: no" >&5
4976echo "${ECHO_T}no" >&6
2429fi 4977fi
2430 4978
2431 4979fi
2432if test -z "$ac_cv_prog_STRIP"; then 4980if test -z "$ac_cv_prog_STRIP"; then
2433if test -n "$ac_tool_prefix"; then 4981 ac_ct_STRIP=$STRIP
2434 # Extract the first word of "strip", so it can be a program name with args. 4982 # Extract the first word of "strip", so it can be a program name with args.
2435set dummy strip; ac_word=$2 4983set dummy strip; ac_word=$2
4984echo "$as_me:$LINENO: checking for $ac_word" >&5
2436echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 4985echo $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 4986if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2439 echo $ac_n "(cached) $ac_c" 1>&6 4987 echo $ECHO_N "(cached) $ECHO_C" >&6
2440else 4988else
2441 if test -n "$STRIP"; then 4989 if test -n "$ac_ct_STRIP"; then
2442 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4990 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2443else 4991else
2444 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2445 ac_dummy="$PATH" 4993for as_dir in $PATH
2446 for ac_dir in $ac_dummy; do 4994do
4995 IFS=$as_save_IFS
2447 test -z "$ac_dir" && ac_dir=. 4996 test -z "$as_dir" && as_dir=.
2448 if test -f $ac_dir/$ac_word; then 4997 for ac_exec_ext in '' $ac_executable_extensions; do
4998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2449 ac_cv_prog_STRIP="strip" 4999 ac_cv_prog_ac_ct_STRIP="strip"
5000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2450 break 5001 break 2
2451 fi 5002 fi
2452 done 5003done
2453 IFS="$ac_save_ifs" 5004done
5005
2454 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" 5006 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2455fi 5007fi
2456fi 5008fi
5009ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5010if test -n "$ac_ct_STRIP"; then
5011 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5012echo "${ECHO_T}$ac_ct_STRIP" >&6
5013else
5014 echo "$as_me:$LINENO: result: no" >&5
5015echo "${ECHO_T}no" >&6
5016fi
5017
5018 STRIP=$ac_ct_STRIP
5019else
2457STRIP="$ac_cv_prog_STRIP" 5020 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 5021fi
2468 5022
2469 5023
2470enable_dlopen=no 5024enable_dlopen=no
2471enable_win32_dll=no 5025enable_win32_dll=no
2472 5026
2473# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 5027# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2474if test "${enable_libtool_lock+set}" = set; then 5028if test "${enable_libtool_lock+set}" = set; then
2475 enableval="$enable_libtool_lock" 5029 enableval="$enable_libtool_lock"
2476 : 5030
2477fi 5031fi;
2478
2479test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5032test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2480 5033
2481# Some flags need to be propagated to the compiler or linker for good 5034# Some flags need to be propagated to the compiler or linker for good
2482# libtool support. 5035# libtool support.
2483case "$host" in 5036case "$host" in
2484*-*-irix6*) 5037*-*-irix6*)
2485 # Find out which ABI we are using. 5038 # Find out which ABI we are using.
2486 echo '#line 2487 "configure"' > conftest.$ac_ext 5039 echo '#line 5039 "configure"' > conftest.$ac_ext
2487 if { (eval echo configure:2488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5041 (eval $ac_compile) 2>&5
5042 ac_status=$?
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); }; then
2488 case "`/usr/bin/file conftest.$ac_objext`" in 5045 case "`/usr/bin/file conftest.$ac_objext`" in
2489 *32-bit*) 5046 *32-bit*)
2490 LD="${LD-ld} -32" 5047 LD="${LD-ld} -32"
2491 ;; 5048 ;;
2492 *N32*) 5049 *N32*)
2502 5059
2503*-*-sco3.2v5*) 5060*-*-sco3.2v5*)
2504 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5061 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2505 SAVE_CFLAGS="$CFLAGS" 5062 SAVE_CFLAGS="$CFLAGS"
2506 CFLAGS="$CFLAGS -belf" 5063 CFLAGS="$CFLAGS -belf"
5064 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 5065echo $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 5066if test "${lt_cv_cc_needs_belf+set}" = set; then
2510 echo $ac_n "(cached) $ac_c" 1>&6 5067 echo $ECHO_N "(cached) $ECHO_C" >&6
2511else 5068else
2512 5069
5070
2513 ac_ext=c 5071 ac_ext=c
2514# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2515ac_cpp='$CPP $CPPFLAGS' 5072ac_cpp='$CPP $CPPFLAGS'
2516ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 5073ac_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' 5074ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2518cross_compiling=$ac_cv_prog_cc_cross 5075ac_compiler_gnu=$ac_cv_c_compiler_gnu
2519 5076
2520 cat > conftest.$ac_ext <<EOF 5077 cat >conftest.$ac_ext <<_ACEOF
2521#line 2522 "configure" 5078/* confdefs.h. */
2522#include "confdefs.h" 5079_ACEOF
5080cat confdefs.h >>conftest.$ac_ext
5081cat >>conftest.$ac_ext <<_ACEOF
5082/* end confdefs.h. */
2523 5083
2524int main() { 5084int
5085main ()
5086{
2525 5087
5088 ;
2526; return 0; } 5089 return 0;
2527EOF 5090}
2528if { (eval echo configure:2529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5091_ACEOF
5092rm -f conftest.$ac_objext conftest$ac_exeext
5093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5094 (eval $ac_link) 2>conftest.er1
5095 ac_status=$?
5096 grep -v '^ *+' conftest.er1 >conftest.err
2529 rm -rf conftest* 5097 rm -f conftest.er1
5098 cat conftest.err >&5
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); } &&
5101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5103 (eval $ac_try) 2>&5
5104 ac_status=$?
5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); }; } &&
5107 { ac_try='test -s conftest$ac_exeext'
5108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5109 (eval $ac_try) 2>&5
5110 ac_status=$?
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); }; }; then
2530 lt_cv_cc_needs_belf=yes 5113 lt_cv_cc_needs_belf=yes
2531else 5114else
2532 echo "configure: failed program was:" >&5 5115 echo "$as_me: failed program was:" >&5
2533 cat conftest.$ac_ext >&5 5116sed 's/^/| /' conftest.$ac_ext >&5
2534 rm -rf conftest* 5117
2535 lt_cv_cc_needs_belf=no 5118lt_cv_cc_needs_belf=no
2536fi 5119fi
2537rm -f conftest* 5120rm -f conftest.err conftest.$ac_objext \
5121 conftest$ac_exeext conftest.$ac_ext
2538 ac_ext=c 5122 ac_ext=cc
2539# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2540ac_cpp='$CPP $CPPFLAGS' 5123ac_cpp='$CXXCPP $CPPFLAGS'
2541ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 5124ac_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' 5125ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2543cross_compiling=$ac_cv_prog_cc_cross 5126ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2544 5127
2545fi 5128fi
2546 5129echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
2547echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6 5130echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
2548 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5131 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 5132 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2550 CFLAGS="$SAVE_CFLAGS" 5133 CFLAGS="$SAVE_CFLAGS"
2551 fi 5134 fi
2552 ;; 5135 ;;
2637set dummy $CC 5220set dummy $CC
2638compiler="$2" 5221compiler="$2"
2639 5222
2640## FIXME: this should be a separate macro 5223## FIXME: this should be a separate macro
2641## 5224##
5225echo "$as_me:$LINENO: checking for objdir" >&5
2642echo $ac_n "checking for objdir""... $ac_c" 1>&6 5226echo $ECHO_N "checking for objdir... $ECHO_C" >&6
2643echo "configure:2644: checking for objdir" >&5
2644rm -f .libs 2>/dev/null 5227rm -f .libs 2>/dev/null
2645mkdir .libs 2>/dev/null 5228mkdir .libs 2>/dev/null
2646if test -d .libs; then 5229if test -d .libs; then
2647 objdir=.libs 5230 objdir=.libs
2648else 5231else
2649 # MS-DOS does not allow filenames that begin with a dot. 5232 # MS-DOS does not allow filenames that begin with a dot.
2650 objdir=_libs 5233 objdir=_libs
2651fi 5234fi
2652rmdir .libs 2>/dev/null 5235rmdir .libs 2>/dev/null
5236echo "$as_me:$LINENO: result: $objdir" >&5
2653echo "$ac_t""$objdir" 1>&6 5237echo "${ECHO_T}$objdir" >&6
2654## 5238##
2655## END FIXME 5239## END FIXME
2656 5240
2657 5241
2658## FIXME: this should be a separate macro 5242## FIXME: this should be a separate macro
2659## 5243##
5244
2660# Check whether --with-pic or --without-pic was given. 5245# Check whether --with-pic or --without-pic was given.
2661if test "${with_pic+set}" = set; then 5246if test "${with_pic+set}" = set; then
2662 withval="$with_pic" 5247 withval="$with_pic"
2663 pic_mode="$withval" 5248 pic_mode="$withval"
2664else 5249else
2665 pic_mode=default 5250 pic_mode=default
2666fi 5251fi;
2667
2668test -z "$pic_mode" && pic_mode=default 5252test -z "$pic_mode" && pic_mode=default
2669 5253
2670# We assume here that the value for lt_cv_prog_cc_pic will not be cached 5254# 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 5255# in isolation, and that seeing it set (from the cache) indicates that
2672# the associated values are set (in the cache) correctly too. 5256# the associated values are set (in the cache) correctly too.
5257echo "$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 5258echo $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 5259if test "${lt_cv_prog_cc_pic+set}" = set; then
2676 echo $ac_n "(cached) $ac_c" 1>&6 5260 echo $ECHO_N "(cached) $ECHO_C" >&6
2677else 5261else
2678 lt_cv_prog_cc_pic= 5262 lt_cv_prog_cc_pic=
2679 lt_cv_prog_cc_shlib= 5263 lt_cv_prog_cc_shlib=
2680 lt_cv_prog_cc_wl= 5264 lt_cv_prog_cc_wl=
2681 lt_cv_prog_cc_static= 5265 lt_cv_prog_cc_static=
2804 fi 5388 fi
2805 5389
2806fi 5390fi
2807 5391
2808if test -z "$lt_cv_prog_cc_pic"; then 5392if test -z "$lt_cv_prog_cc_pic"; then
2809 echo "$ac_t""none" 1>&6 5393 echo "$as_me:$LINENO: result: none" >&5
5394echo "${ECHO_T}none" >&6
2810else 5395else
5396 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
2811 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6 5397echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
2812 5398
2813 # Check to make sure the pic_flag actually works. 5399 # Check to make sure the pic_flag actually works.
5400 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 5401echo $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 5402 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
2817 echo $ac_n "(cached) $ac_c" 1>&6 5403 echo $ECHO_N "(cached) $ECHO_C" >&6
2818else 5404else
2819 save_CFLAGS="$CFLAGS" 5405 save_CFLAGS="$CFLAGS"
2820 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC" 5406 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
2821 cat > conftest.$ac_ext <<EOF 5407 cat >conftest.$ac_ext <<_ACEOF
2822#line 2823 "configure" 5408/* confdefs.h. */
2823#include "confdefs.h" 5409_ACEOF
5410cat confdefs.h >>conftest.$ac_ext
5411cat >>conftest.$ac_ext <<_ACEOF
5412/* end confdefs.h. */
2824 5413
2825int main() { 5414int
5415main ()
5416{
2826 5417
5418 ;
2827; return 0; } 5419 return 0;
2828EOF 5420}
2829if { (eval echo configure:2830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5421_ACEOF
5422rm -f conftest.$ac_objext
5423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5424 (eval $ac_compile) 2>conftest.er1
5425 ac_status=$?
5426 grep -v '^ *+' conftest.er1 >conftest.err
2830 rm -rf conftest* 5427 rm -f conftest.er1
5428 cat conftest.err >&5
5429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430 (exit $ac_status); } &&
5431 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5433 (eval $ac_try) 2>&5
5434 ac_status=$?
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); }; } &&
5437 { ac_try='test -s conftest.$ac_objext'
5438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5439 (eval $ac_try) 2>&5
5440 ac_status=$?
5441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442 (exit $ac_status); }; }; then
2831 case "$host_os" in 5443 case "$host_os" in
2832 hpux9* | hpux10* | hpux11*) 5444 hpux9* | hpux10* | hpux11*)
2833 # On HP-UX, both CC and GCC only warn that PIC is supported... then 5445 # 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 5446 # they create non-PIC objects. So, if there were any warnings, we
2835 # assume that PIC is not supported. 5447 # assume that PIC is not supported.
2841 ;; 5453 ;;
2842 *) 5454 *)
2843 lt_cv_prog_cc_pic_works=yes 5455 lt_cv_prog_cc_pic_works=yes
2844 ;; 5456 ;;
2845 esac 5457 esac
2846 5458
2847else 5459else
2848 echo "configure: failed program was:" >&5 5460 echo "$as_me: failed program was:" >&5
2849 cat conftest.$ac_ext >&5 5461sed 's/^/| /' conftest.$ac_ext >&5
2850 rm -rf conftest* 5462
2851 lt_cv_prog_cc_pic_works=no 5463 lt_cv_prog_cc_pic_works=no
2852 5464
2853fi 5465fi
2854rm -f conftest* 5466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2855 CFLAGS="$save_CFLAGS" 5467 CFLAGS="$save_CFLAGS"
2856 5468
2857fi 5469fi
2858 5470
2859 5471
2860 if test "X$lt_cv_prog_cc_pic_works" = Xno; then 5472 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
2861 lt_cv_prog_cc_pic= 5473 lt_cv_prog_cc_pic=
2862 lt_cv_prog_cc_can_build_shared=no 5474 lt_cv_prog_cc_can_build_shared=no
2863 else 5475 else
2864 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic" 5476 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
2865 fi 5477 fi
2866 5478
5479 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
2867 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6 5480echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
2868fi 5481fi
2869## 5482##
2870## END FIXME 5483## END FIXME
2871 5484
2872# Check for any special shared library compilation flags. 5485# Check for any special shared library compilation flags.
2873if test -n "$lt_cv_prog_cc_shlib"; then 5486if test -n "$lt_cv_prog_cc_shlib"; then
5487 { 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 5488echo "$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 : 5489 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
2876 else 5490 else
5491 { 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 5492echo "$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 5493 lt_cv_prog_cc_can_build_shared=no
2879 fi 5494 fi
2880fi 5495fi
2881 5496
2882## FIXME: this should be a separate macro 5497## FIXME: this should be a separate macro
2883## 5498##
5499echo "$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 5500echo $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 5501if test "${lt_cv_prog_cc_static_works+set}" = set; then
2887 echo $ac_n "(cached) $ac_c" 1>&6 5502 echo $ECHO_N "(cached) $ECHO_C" >&6
2888else 5503else
2889 lt_cv_prog_cc_static_works=no 5504 lt_cv_prog_cc_static_works=no
2890 save_LDFLAGS="$LDFLAGS" 5505 save_LDFLAGS="$LDFLAGS"
2891 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static" 5506 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
2892 cat > conftest.$ac_ext <<EOF 5507 cat >conftest.$ac_ext <<_ACEOF
2893#line 2894 "configure" 5508/* confdefs.h. */
2894#include "confdefs.h" 5509_ACEOF
5510cat confdefs.h >>conftest.$ac_ext
5511cat >>conftest.$ac_ext <<_ACEOF
5512/* end confdefs.h. */
2895 5513
2896int main() { 5514int
5515main ()
5516{
2897 5517
5518 ;
2898; return 0; } 5519 return 0;
2899EOF 5520}
2900if { (eval echo configure:2901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5521_ACEOF
5522rm -f conftest.$ac_objext conftest$ac_exeext
5523if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5524 (eval $ac_link) 2>conftest.er1
5525 ac_status=$?
5526 grep -v '^ *+' conftest.er1 >conftest.err
2901 rm -rf conftest* 5527 rm -f conftest.er1
5528 cat conftest.err >&5
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); } &&
5531 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5533 (eval $ac_try) 2>&5
5534 ac_status=$?
5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); }; } &&
5537 { ac_try='test -s conftest$ac_exeext'
5538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5539 (eval $ac_try) 2>&5
5540 ac_status=$?
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); }; }; then
2902 lt_cv_prog_cc_static_works=yes 5543 lt_cv_prog_cc_static_works=yes
2903else 5544else
2904 echo "configure: failed program was:" >&5 5545 echo "$as_me: failed program was:" >&5
2905 cat conftest.$ac_ext >&5 5546sed 's/^/| /' conftest.$ac_ext >&5
5547
2906fi 5548fi
2907rm -f conftest* 5549rm -f conftest.err conftest.$ac_objext \
5550 conftest$ac_exeext conftest.$ac_ext
2908 LDFLAGS="$save_LDFLAGS" 5551 LDFLAGS="$save_LDFLAGS"
2909 5552
2910fi 5553fi
2911 5554
2912 5555
2913# Belt *and* braces to stop my trousers falling down: 5556# Belt *and* braces to stop my trousers falling down:
2914test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static= 5557test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5558echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
2915echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6 5559echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
2916 5560
2917pic_flag="$lt_cv_prog_cc_pic" 5561pic_flag="$lt_cv_prog_cc_pic"
2918special_shlib_compile_flags="$lt_cv_prog_cc_shlib" 5562special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
2919wl="$lt_cv_prog_cc_wl" 5563wl="$lt_cv_prog_cc_wl"
2920link_static_flag="$lt_cv_prog_cc_static" 5564link_static_flag="$lt_cv_prog_cc_static"
2925 5569
2926 5570
2927## FIXME: this should be a separate macro 5571## FIXME: this should be a separate macro
2928## 5572##
2929# Check to see if options -o and -c are simultaneously supported by compiler 5573# Check to see if options -o and -c are simultaneously supported by compiler
5574echo "$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 5575echo $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 5576$rm -r conftest 2>/dev/null
2933mkdir conftest 5577mkdir conftest
2934cd conftest 5578cd conftest
2935echo "int some_variable = 0;" > conftest.$ac_ext 5579echo "int some_variable = 0;" > conftest.$ac_ext
2936mkdir out 5580mkdir out
2941# builds. 5585# builds.
2942chmod -w . 5586chmod -w .
2943save_CFLAGS="$CFLAGS" 5587save_CFLAGS="$CFLAGS"
2944CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" 5588CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
2945compiler_c_o=no 5589compiler_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 5590if { (eval echo configure:5590: \"$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 5591 # The compiler can only warn and ignore the option if not recognized
2948 # So say no if there are warnings 5592 # So say no if there are warnings
2949 if test -s out/conftest.err; then 5593 if test -s out/conftest.err; then
2950 compiler_c_o=no 5594 compiler_c_o=no
2951 else 5595 else
2954else 5598else
2955 # Append any errors to the config.log. 5599 # Append any errors to the config.log.
2956 cat out/conftest.err 1>&5 5600 cat out/conftest.err 1>&5
2957 compiler_c_o=no 5601 compiler_c_o=no
2958fi 5602fi
5603echo "$as_me:$LINENO: result: $compiler_c_o" >&5
2959echo "$ac_t""$compiler_c_o" 1>&6 5604echo "${ECHO_T}$compiler_c_o" >&6
2960CFLAGS="$save_CFLAGS" 5605CFLAGS="$save_CFLAGS"
2961chmod u+w . 5606chmod u+w .
2962$rm conftest* out/* 5607$rm conftest* out/*
2963rmdir out 5608rmdir out
2964cd .. 5609cd ..
2965rmdir conftest 5610rmdir conftest
2966$rm -r conftest 2>/dev/null 5611$rm -r conftest 2>/dev/null
2967 5612
2968if test x"$compiler_c_o" = x"yes"; then 5613if test x"$compiler_c_o" = x"yes"; then
2969 # Check to see if we can write to a .lo 5614 # Check to see if we can write to a .lo
5615 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 5616echo $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 5617 compiler_o_lo=no
2973 save_CFLAGS="$CFLAGS" 5618 save_CFLAGS="$CFLAGS"
2974 CFLAGS="$CFLAGS -c -o conftest.lo" 5619 CFLAGS="$CFLAGS -c -o conftest.lo"
2975 cat > conftest.$ac_ext <<EOF 5620 cat >conftest.$ac_ext <<_ACEOF
2976#line 2977 "configure" 5621/* confdefs.h. */
2977#include "confdefs.h" 5622_ACEOF
5623cat confdefs.h >>conftest.$ac_ext
5624cat >>conftest.$ac_ext <<_ACEOF
5625/* end confdefs.h. */
2978 5626
2979int main() { 5627int
5628main ()
5629{
2980int some_variable = 0; 5630int some_variable = 0;
5631 ;
2981; return 0; } 5632 return 0;
2982EOF 5633}
2983if { (eval echo configure:2984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5634_ACEOF
5635rm -f conftest.$ac_objext
5636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5637 (eval $ac_compile) 2>conftest.er1
5638 ac_status=$?
5639 grep -v '^ *+' conftest.er1 >conftest.err
2984 rm -rf conftest* 5640 rm -f conftest.er1
5641 cat conftest.err >&5
5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); } &&
5644 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5646 (eval $ac_try) 2>&5
5647 ac_status=$?
5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); }; } &&
5650 { ac_try='test -s conftest.$ac_objext'
5651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5652 (eval $ac_try) 2>&5
5653 ac_status=$?
5654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655 (exit $ac_status); }; }; then
2985 # The compiler can only warn and ignore the option if not recognized 5656 # The compiler can only warn and ignore the option if not recognized
2986 # So say no if there are warnings 5657 # So say no if there are warnings
2987 if test -s conftest.err; then 5658 if test -s conftest.err; then
2988 compiler_o_lo=no 5659 compiler_o_lo=no
2989 else 5660 else
2990 compiler_o_lo=yes 5661 compiler_o_lo=yes
2991 fi 5662 fi
2992 5663
2993else 5664else
2994 echo "configure: failed program was:" >&5 5665 echo "$as_me: failed program was:" >&5
2995 cat conftest.$ac_ext >&5 5666sed 's/^/| /' conftest.$ac_ext >&5
5667
2996fi 5668fi
2997rm -f conftest* 5669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5670 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
2998 echo "$ac_t""$compiler_c_o" 1>&6 5671echo "${ECHO_T}$compiler_c_o" >&6
2999 CFLAGS="$save_CFLAGS" 5672 CFLAGS="$save_CFLAGS"
3000else 5673else
3001 compiler_o_lo=no 5674 compiler_o_lo=no
3002fi 5675fi
3003## 5676##
3007## 5680##
3008# Check to see if we can do hard links to lock some files if needed 5681# Check to see if we can do hard links to lock some files if needed
3009hard_links="nottested" 5682hard_links="nottested"
3010if test "$compiler_c_o" = no && test "$need_locks" != no; then 5683if test "$compiler_c_o" = no && test "$need_locks" != no; then
3011 # do not overwrite the value of need_locks provided by the user 5684 # do not overwrite the value of need_locks provided by the user
5685 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 5686echo $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 5687 hard_links=yes
3015 $rm conftest* 5688 $rm conftest*
3016 ln conftest.a conftest.b 2>/dev/null && hard_links=no 5689 ln conftest.a conftest.b 2>/dev/null && hard_links=no
3017 touch conftest.a 5690 touch conftest.a
3018 ln conftest.a conftest.b 2>&5 || hard_links=no 5691 ln conftest.a conftest.b 2>&5 || hard_links=no
3019 ln conftest.a conftest.b 2>/dev/null && hard_links=no 5692 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5693 echo "$as_me:$LINENO: result: $hard_links" >&5
3020 echo "$ac_t""$hard_links" 1>&6 5694echo "${ECHO_T}$hard_links" >&6
3021 if test "$hard_links" = no; then 5695 if test "$hard_links" = no; then
5696 { 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 5697echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
3023 need_locks=warn 5698 need_locks=warn
3024 fi 5699 fi
3025else 5700else
3026 need_locks=no 5701 need_locks=no
3027fi 5702fi
3030 5705
3031## FIXME: this should be a separate macro 5706## FIXME: this should be a separate macro
3032## 5707##
3033if test "$GCC" = yes; then 5708if test "$GCC" = yes; then
3034 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler 5709 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5710 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 5711echo $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 5712 echo "int some_variable = 0;" > conftest.$ac_ext
3038 save_CFLAGS="$CFLAGS" 5713 save_CFLAGS="$CFLAGS"
3039 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" 5714 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
3040 compiler_rtti_exceptions=no 5715 compiler_rtti_exceptions=no
3041 cat > conftest.$ac_ext <<EOF 5716 cat >conftest.$ac_ext <<_ACEOF
3042#line 3043 "configure" 5717/* confdefs.h. */
3043#include "confdefs.h" 5718_ACEOF
5719cat confdefs.h >>conftest.$ac_ext
5720cat >>conftest.$ac_ext <<_ACEOF
5721/* end confdefs.h. */
3044 5722
3045int main() { 5723int
5724main ()
5725{
3046int some_variable = 0; 5726int some_variable = 0;
5727 ;
3047; return 0; } 5728 return 0;
3048EOF 5729}
3049if { (eval echo configure:3050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5730_ACEOF
5731rm -f conftest.$ac_objext
5732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5733 (eval $ac_compile) 2>conftest.er1
5734 ac_status=$?
5735 grep -v '^ *+' conftest.er1 >conftest.err
3050 rm -rf conftest* 5736 rm -f conftest.er1
5737 cat conftest.err >&5
5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739 (exit $ac_status); } &&
5740 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5742 (eval $ac_try) 2>&5
5743 ac_status=$?
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); }; } &&
5746 { ac_try='test -s conftest.$ac_objext'
5747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5748 (eval $ac_try) 2>&5
5749 ac_status=$?
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); }; }; then
3051 # The compiler can only warn and ignore the option if not recognized 5752 # The compiler can only warn and ignore the option if not recognized
3052 # So say no if there are warnings 5753 # So say no if there are warnings
3053 if test -s conftest.err; then 5754 if test -s conftest.err; then
3054 compiler_rtti_exceptions=no 5755 compiler_rtti_exceptions=no
3055 else 5756 else
3056 compiler_rtti_exceptions=yes 5757 compiler_rtti_exceptions=yes
3057 fi 5758 fi
3058 5759
3059else 5760else
3060 echo "configure: failed program was:" >&5 5761 echo "$as_me: failed program was:" >&5
3061 cat conftest.$ac_ext >&5 5762sed 's/^/| /' conftest.$ac_ext >&5
5763
3062fi 5764fi
3063rm -f conftest* 5765rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3064 CFLAGS="$save_CFLAGS" 5766 CFLAGS="$save_CFLAGS"
5767 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
3065 echo "$ac_t""$compiler_rtti_exceptions" 1>&6 5768echo "${ECHO_T}$compiler_rtti_exceptions" >&6
3066 5769
3067 if test "$compiler_rtti_exceptions" = "yes"; then 5770 if test "$compiler_rtti_exceptions" = "yes"; then
3068 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions' 5771 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
3069 else 5772 else
3070 no_builtin_flag=' -fno-builtin' 5773 no_builtin_flag=' -fno-builtin'
3074## END FIXME 5777## END FIXME
3075 5778
3076## FIXME: this should be a separate macro 5779## FIXME: this should be a separate macro
3077## 5780##
3078# See if the linker supports building shared libraries. 5781# See if the linker supports building shared libraries.
5782echo "$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 5783echo $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 5784
3082allow_undefined_flag= 5785allow_undefined_flag=
3083no_undefined_flag= 5786no_undefined_flag=
3084need_lib_prefix=unknown 5787need_lib_prefix=unknown
3085need_version=unknown 5788need_version=unknown
3632 *) 6335 *)
3633 ld_shlibs=no 6336 ld_shlibs=no
3634 ;; 6337 ;;
3635 esac 6338 esac
3636fi 6339fi
6340echo "$as_me:$LINENO: result: $ld_shlibs" >&5
3637echo "$ac_t""$ld_shlibs" 1>&6 6341echo "${ECHO_T}$ld_shlibs" >&6
3638test "$ld_shlibs" = no && can_build_shared=no 6342test "$ld_shlibs" = no && can_build_shared=no
3639## 6343##
3640## END FIXME 6344## END FIXME
3641 6345
3642## FIXME: this should be a separate macro 6346## FIXME: this should be a separate macro
3643## 6347##
3644# Check hardcoding attributes. 6348# Check hardcoding attributes.
6349echo "$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 6350echo $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= 6351hardcode_action=
3648if test -n "$hardcode_libdir_flag_spec" || \ 6352if test -n "$hardcode_libdir_flag_spec" || \
3649 test -n "$runpath_var"; then 6353 test -n "$runpath_var"; then
3650 6354
3651 # We can hardcode non-existant directories. 6355 # We can hardcode non-existant directories.
3664else 6368else
3665 # We cannot hardcode anything, or else we can only hardcode existing 6369 # We cannot hardcode anything, or else we can only hardcode existing
3666 # directories. 6370 # directories.
3667 hardcode_action=unsupported 6371 hardcode_action=unsupported
3668fi 6372fi
6373echo "$as_me:$LINENO: result: $hardcode_action" >&5
3669echo "$ac_t""$hardcode_action" 1>&6 6374echo "${ECHO_T}$hardcode_action" >&6
3670## 6375##
3671## END FIXME 6376## END FIXME
3672 6377
3673## FIXME: this should be a separate macro 6378## FIXME: this should be a separate macro
3674## 6379##
3675striplib= 6380striplib=
3676old_striplib= 6381old_striplib=
6382echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
3677echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6 6383echo $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 6384if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
3680 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 6385 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
3681 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 6386 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
3682 echo "$ac_t""yes" 1>&6 6387 echo "$as_me:$LINENO: result: yes" >&5
6388echo "${ECHO_T}yes" >&6
3683else 6389else
3684 echo "$ac_t""no" 1>&6 6390 echo "$as_me:$LINENO: result: no" >&5
6391echo "${ECHO_T}no" >&6
3685fi 6392fi
3686## 6393##
3687## END FIXME 6394## END FIXME
3688 6395
3689reload_cmds='$LD$reload_flag -o $output$reload_objs' 6396reload_cmds='$LD$reload_flag -o $output$reload_objs'
3690test -z "$deplibs_check_method" && deplibs_check_method=unknown 6397test -z "$deplibs_check_method" && deplibs_check_method=unknown
3691 6398
3692## FIXME: this should be a separate macro 6399## FIXME: this should be a separate macro
3693## 6400##
3694# PORTME Fill in your ld.so characteristics 6401# PORTME Fill in your ld.so characteristics
6402echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
3695echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6 6403echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
3696echo "configure:3697: checking dynamic linker characteristics" >&5
3697library_names_spec= 6404library_names_spec=
3698libname_spec='lib$name' 6405libname_spec='lib$name'
3699soname_spec= 6406soname_spec=
3700postinstall_cmds= 6407postinstall_cmds=
3701postuninstall_cmds= 6408postuninstall_cmds=
4017 6724
4018*) 6725*)
4019 dynamic_linker=no 6726 dynamic_linker=no
4020 ;; 6727 ;;
4021esac 6728esac
6729echo "$as_me:$LINENO: result: $dynamic_linker" >&5
4022echo "$ac_t""$dynamic_linker" 1>&6 6730echo "${ECHO_T}$dynamic_linker" >&6
4023test "$dynamic_linker" = no && can_build_shared=no 6731test "$dynamic_linker" = no && can_build_shared=no
4024## 6732##
4025## END FIXME 6733## END FIXME
4026 6734
4027## FIXME: this should be a separate macro 6735## FIXME: this should be a separate macro
4028## 6736##
4029# Report the final consequences. 6737# Report the final consequences.
6738echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
4030echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6 6739echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
4031echo "configure:4032: checking if libtool supports shared libraries" >&5 6740echo "$as_me:$LINENO: result: $can_build_shared" >&5
4032echo "$ac_t""$can_build_shared" 1>&6 6741echo "${ECHO_T}$can_build_shared" >&6
4033## 6742##
4034## END FIXME 6743## END FIXME
4035 6744
4036if test "$hardcode_action" = relink; then 6745if test "$hardcode_action" = relink; then
4037 # Fast installation is not supported 6746 # Fast installation is not supported
4066 lt_cv_dlopen="LoadLibrary" 6775 lt_cv_dlopen="LoadLibrary"
4067 lt_cv_dlopen_libs= 6776 lt_cv_dlopen_libs=
4068 ;; 6777 ;;
4069 6778
4070 *) 6779 *)
6780 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
4071 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 6781echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
4072echo "configure:4073: checking for dlopen in -ldl" >&5 6782if 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 6783 echo $ECHO_N "(cached) $ECHO_C" >&6
4076else 6784else
4077 ac_save_LIBS="$LIBS" 6785 ac_check_lib_save_LIBS=$LIBS
4078LIBS="-ldl $LIBS" 6786LIBS="-ldl $LIBS"
4079cat > conftest.$ac_ext <<EOF 6787cat >conftest.$ac_ext <<_ACEOF
4080#line 4081 "configure" 6788/* confdefs.h. */
4081#include "confdefs.h" 6789_ACEOF
6790cat confdefs.h >>conftest.$ac_ext
6791cat >>conftest.$ac_ext <<_ACEOF
6792/* end confdefs.h. */
6793
4082/* Override any gcc2 internal prototype to avoid an error. */ 6794/* Override any gcc2 internal prototype to avoid an error. */
6795#ifdef __cplusplus
6796extern "C"
6797#endif
4083/* We use char because int might match the return type of a gcc2 6798/* We use char because int might match the return type of a gcc2
4084 builtin and then its argument prototype would still apply. */ 6799 builtin and then its argument prototype would still apply. */
4085char dlopen(); 6800char dlopen ();
4086 6801int
4087int main() { 6802main ()
6803{
4088dlopen() 6804dlopen ();
6805 ;
4089; return 0; } 6806 return 0;
4090EOF 6807}
4091if { (eval echo configure:4092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6808_ACEOF
6809rm -f conftest.$ac_objext conftest$ac_exeext
6810if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6811 (eval $ac_link) 2>conftest.er1
6812 ac_status=$?
6813 grep -v '^ *+' conftest.er1 >conftest.err
4092 rm -rf conftest* 6814 rm -f conftest.er1
4093 eval "ac_cv_lib_$ac_lib_var=yes" 6815 cat conftest.err >&5
6816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817 (exit $ac_status); } &&
6818 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6820 (eval $ac_try) 2>&5
6821 ac_status=$?
6822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823 (exit $ac_status); }; } &&
6824 { ac_try='test -s conftest$ac_exeext'
6825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6826 (eval $ac_try) 2>&5
6827 ac_status=$?
6828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829 (exit $ac_status); }; }; then
6830 ac_cv_lib_dl_dlopen=yes
4094else 6831else
4095 echo "configure: failed program was:" >&5 6832 echo "$as_me: failed program was:" >&5
4096 cat conftest.$ac_ext >&5 6833sed 's/^/| /' conftest.$ac_ext >&5
4097 rm -rf conftest* 6834
4098 eval "ac_cv_lib_$ac_lib_var=no" 6835ac_cv_lib_dl_dlopen=no
4099fi 6836fi
4100rm -f conftest* 6837rm -f conftest.err conftest.$ac_objext \
6838 conftest$ac_exeext conftest.$ac_ext
4101LIBS="$ac_save_LIBS" 6839LIBS=$ac_check_lib_save_LIBS
4102
4103fi 6840fi
4104if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 6841echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
4105 echo "$ac_t""yes" 1>&6 6842echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6843if test $ac_cv_lib_dl_dlopen = yes; then
4106 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 6844 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
4107else 6845else
4108 echo "$ac_t""no" 1>&6 6846 echo "$as_me:$LINENO: checking for dlopen" >&5
4109echo $ac_n "checking for dlopen""... $ac_c" 1>&6 6847echo $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 6848if test "${ac_cv_func_dlopen+set}" = set; then
4112 echo $ac_n "(cached) $ac_c" 1>&6 6849 echo $ECHO_N "(cached) $ECHO_C" >&6
4113else 6850else
4114 cat > conftest.$ac_ext <<EOF 6851 cat >conftest.$ac_ext <<_ACEOF
4115#line 4116 "configure" 6852/* confdefs.h. */
4116#include "confdefs.h" 6853_ACEOF
6854cat confdefs.h >>conftest.$ac_ext
6855cat >>conftest.$ac_ext <<_ACEOF
6856/* end confdefs.h. */
6857/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
6858 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6859#define dlopen innocuous_dlopen
6860
4117/* System header to define __stub macros and hopefully few prototypes, 6861/* System header to define __stub macros and hopefully few prototypes,
4118 which can conflict with char dlopen(); below. */ 6862 which can conflict with char dlopen (); below.
6863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6864 <limits.h> exists even on freestanding compilers. */
6865
6866#ifdef __STDC__
6867# include <limits.h>
6868#else
4119#include <assert.h> 6869# include <assert.h>
6870#endif
6871
6872#undef dlopen
6873
4120/* Override any gcc2 internal prototype to avoid an error. */ 6874/* Override any gcc2 internal prototype to avoid an error. */
6875#ifdef __cplusplus
6876extern "C"
6877{
6878#endif
4121/* We use char because int might match the return type of a gcc2 6879/* We use char because int might match the return type of a gcc2
4122 builtin and then its argument prototype would still apply. */ 6880 builtin and then its argument prototype would still apply. */
4123char dlopen(); 6881char dlopen ();
4124
4125int main() {
4126
4127/* The GNU C library defines this for functions which it implements 6882/* The GNU C library defines this for functions which it implements
4128 to always fail with ENOSYS. Some functions are actually named 6883 to always fail with ENOSYS. Some functions are actually named
4129 something starting with __ and the normal name is an alias. */ 6884 something starting with __ and the normal name is an alias. */
4130#if defined (__stub_dlopen) || defined (__stub___dlopen) 6885#if defined (__stub_dlopen) || defined (__stub___dlopen)
4131choke me 6886choke me
4132#else 6887#else
4133dlopen(); 6888char (*f) () = dlopen;
4134#endif 6889#endif
6890#ifdef __cplusplus
6891}
6892#endif
4135 6893
6894int
6895main ()
6896{
6897return f != dlopen;
6898 ;
4136; return 0; } 6899 return 0;
4137EOF 6900}
4138if { (eval echo configure:4139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6901_ACEOF
6902rm -f conftest.$ac_objext conftest$ac_exeext
6903if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6904 (eval $ac_link) 2>conftest.er1
6905 ac_status=$?
6906 grep -v '^ *+' conftest.er1 >conftest.err
4139 rm -rf conftest* 6907 rm -f conftest.er1
6908 cat conftest.err >&5
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); } &&
6911 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6913 (eval $ac_try) 2>&5
6914 ac_status=$?
6915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916 (exit $ac_status); }; } &&
6917 { ac_try='test -s conftest$ac_exeext'
6918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6919 (eval $ac_try) 2>&5
6920 ac_status=$?
6921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922 (exit $ac_status); }; }; then
4140 eval "ac_cv_func_dlopen=yes" 6923 ac_cv_func_dlopen=yes
4141else 6924else
4142 echo "configure: failed program was:" >&5 6925 echo "$as_me: failed program was:" >&5
4143 cat conftest.$ac_ext >&5 6926sed 's/^/| /' conftest.$ac_ext >&5
4144 rm -rf conftest* 6927
4145 eval "ac_cv_func_dlopen=no" 6928ac_cv_func_dlopen=no
4146fi 6929fi
4147rm -f conftest* 6930rm -f conftest.err conftest.$ac_objext \
6931 conftest$ac_exeext conftest.$ac_ext
4148fi 6932fi
4149 6933echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6934echo "${ECHO_T}$ac_cv_func_dlopen" >&6
4150if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then 6935if test $ac_cv_func_dlopen = yes; then
4151 echo "$ac_t""yes" 1>&6
4152 lt_cv_dlopen="dlopen" 6936 lt_cv_dlopen="dlopen"
4153else 6937else
4154 echo "$ac_t""no" 1>&6 6938 echo "$as_me:$LINENO: checking for shl_load" >&5
4155echo $ac_n "checking for shl_load""... $ac_c" 1>&6 6939echo $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 6940if test "${ac_cv_func_shl_load+set}" = set; then
4158 echo $ac_n "(cached) $ac_c" 1>&6 6941 echo $ECHO_N "(cached) $ECHO_C" >&6
4159else 6942else
4160 cat > conftest.$ac_ext <<EOF 6943 cat >conftest.$ac_ext <<_ACEOF
4161#line 4162 "configure" 6944/* confdefs.h. */
4162#include "confdefs.h" 6945_ACEOF
6946cat confdefs.h >>conftest.$ac_ext
6947cat >>conftest.$ac_ext <<_ACEOF
6948/* end confdefs.h. */
6949/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
6950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6951#define shl_load innocuous_shl_load
6952
4163/* System header to define __stub macros and hopefully few prototypes, 6953/* System header to define __stub macros and hopefully few prototypes,
4164 which can conflict with char shl_load(); below. */ 6954 which can conflict with char shl_load (); below.
6955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6956 <limits.h> exists even on freestanding compilers. */
6957
6958#ifdef __STDC__
6959# include <limits.h>
6960#else
4165#include <assert.h> 6961# include <assert.h>
6962#endif
6963
6964#undef shl_load
6965
4166/* Override any gcc2 internal prototype to avoid an error. */ 6966/* Override any gcc2 internal prototype to avoid an error. */
6967#ifdef __cplusplus
6968extern "C"
6969{
6970#endif
4167/* We use char because int might match the return type of a gcc2 6971/* We use char because int might match the return type of a gcc2
4168 builtin and then its argument prototype would still apply. */ 6972 builtin and then its argument prototype would still apply. */
4169char shl_load(); 6973char shl_load ();
4170
4171int main() {
4172
4173/* The GNU C library defines this for functions which it implements 6974/* The GNU C library defines this for functions which it implements
4174 to always fail with ENOSYS. Some functions are actually named 6975 to always fail with ENOSYS. Some functions are actually named
4175 something starting with __ and the normal name is an alias. */ 6976 something starting with __ and the normal name is an alias. */
4176#if defined (__stub_shl_load) || defined (__stub___shl_load) 6977#if defined (__stub_shl_load) || defined (__stub___shl_load)
4177choke me 6978choke me
4178#else 6979#else
4179shl_load(); 6980char (*f) () = shl_load;
4180#endif 6981#endif
6982#ifdef __cplusplus
6983}
6984#endif
4181 6985
6986int
6987main ()
6988{
6989return f != shl_load;
6990 ;
4182; return 0; } 6991 return 0;
4183EOF 6992}
4184if { (eval echo configure:4185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6993_ACEOF
6994rm -f conftest.$ac_objext conftest$ac_exeext
6995if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6996 (eval $ac_link) 2>conftest.er1
6997 ac_status=$?
6998 grep -v '^ *+' conftest.er1 >conftest.err
4185 rm -rf conftest* 6999 rm -f conftest.er1
7000 cat conftest.err >&5
7001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002 (exit $ac_status); } &&
7003 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7005 (eval $ac_try) 2>&5
7006 ac_status=$?
7007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008 (exit $ac_status); }; } &&
7009 { ac_try='test -s conftest$ac_exeext'
7010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7011 (eval $ac_try) 2>&5
7012 ac_status=$?
7013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014 (exit $ac_status); }; }; then
4186 eval "ac_cv_func_shl_load=yes" 7015 ac_cv_func_shl_load=yes
4187else 7016else
4188 echo "configure: failed program was:" >&5 7017 echo "$as_me: failed program was:" >&5
4189 cat conftest.$ac_ext >&5 7018sed 's/^/| /' conftest.$ac_ext >&5
4190 rm -rf conftest* 7019
4191 eval "ac_cv_func_shl_load=no" 7020ac_cv_func_shl_load=no
4192fi 7021fi
4193rm -f conftest* 7022rm -f conftest.err conftest.$ac_objext \
7023 conftest$ac_exeext conftest.$ac_ext
4194fi 7024fi
4195 7025echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7026echo "${ECHO_T}$ac_cv_func_shl_load" >&6
4196if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then 7027if test $ac_cv_func_shl_load = yes; then
4197 echo "$ac_t""yes" 1>&6
4198 lt_cv_dlopen="shl_load" 7028 lt_cv_dlopen="shl_load"
4199else 7029else
4200 echo "$ac_t""no" 1>&6 7030 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
4201echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6 7031echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
4202echo "configure:4203: checking for dlopen in -lsvld" >&5 7032if 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 7033 echo $ECHO_N "(cached) $ECHO_C" >&6
4206else 7034else
4207 ac_save_LIBS="$LIBS" 7035 ac_check_lib_save_LIBS=$LIBS
4208LIBS="-lsvld $LIBS" 7036LIBS="-lsvld $LIBS"
4209cat > conftest.$ac_ext <<EOF 7037cat >conftest.$ac_ext <<_ACEOF
4210#line 4211 "configure" 7038/* confdefs.h. */
4211#include "confdefs.h" 7039_ACEOF
7040cat confdefs.h >>conftest.$ac_ext
7041cat >>conftest.$ac_ext <<_ACEOF
7042/* end confdefs.h. */
7043
4212/* Override any gcc2 internal prototype to avoid an error. */ 7044/* Override any gcc2 internal prototype to avoid an error. */
7045#ifdef __cplusplus
7046extern "C"
7047#endif
4213/* We use char because int might match the return type of a gcc2 7048/* We use char because int might match the return type of a gcc2
4214 builtin and then its argument prototype would still apply. */ 7049 builtin and then its argument prototype would still apply. */
4215char dlopen(); 7050char dlopen ();
4216 7051int
4217int main() { 7052main ()
7053{
4218dlopen() 7054dlopen ();
7055 ;
4219; return 0; } 7056 return 0;
4220EOF 7057}
4221if { (eval echo configure:4222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7058_ACEOF
7059rm -f conftest.$ac_objext conftest$ac_exeext
7060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7061 (eval $ac_link) 2>conftest.er1
7062 ac_status=$?
7063 grep -v '^ *+' conftest.er1 >conftest.err
4222 rm -rf conftest* 7064 rm -f conftest.er1
4223 eval "ac_cv_lib_$ac_lib_var=yes" 7065 cat conftest.err >&5
7066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067 (exit $ac_status); } &&
7068 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7070 (eval $ac_try) 2>&5
7071 ac_status=$?
7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); }; } &&
7074 { ac_try='test -s conftest$ac_exeext'
7075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7076 (eval $ac_try) 2>&5
7077 ac_status=$?
7078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079 (exit $ac_status); }; }; then
7080 ac_cv_lib_svld_dlopen=yes
4224else 7081else
4225 echo "configure: failed program was:" >&5 7082 echo "$as_me: failed program was:" >&5
4226 cat conftest.$ac_ext >&5 7083sed 's/^/| /' conftest.$ac_ext >&5
4227 rm -rf conftest* 7084
4228 eval "ac_cv_lib_$ac_lib_var=no" 7085ac_cv_lib_svld_dlopen=no
4229fi 7086fi
4230rm -f conftest* 7087rm -f conftest.err conftest.$ac_objext \
7088 conftest$ac_exeext conftest.$ac_ext
4231LIBS="$ac_save_LIBS" 7089LIBS=$ac_check_lib_save_LIBS
4232
4233fi 7090fi
4234if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 7091echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
4235 echo "$ac_t""yes" 1>&6 7092echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7093if test $ac_cv_lib_svld_dlopen = yes; then
4236 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 7094 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
4237else 7095else
4238 echo "$ac_t""no" 1>&6 7096 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
4239echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 7097echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
4240echo "configure:4241: checking for shl_load in -ldld" >&5 7098if 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 7099 echo $ECHO_N "(cached) $ECHO_C" >&6
4244else 7100else
4245 ac_save_LIBS="$LIBS" 7101 ac_check_lib_save_LIBS=$LIBS
4246LIBS="-ldld $LIBS" 7102LIBS="-ldld $LIBS"
4247cat > conftest.$ac_ext <<EOF 7103cat >conftest.$ac_ext <<_ACEOF
4248#line 4249 "configure" 7104/* confdefs.h. */
4249#include "confdefs.h" 7105_ACEOF
7106cat confdefs.h >>conftest.$ac_ext
7107cat >>conftest.$ac_ext <<_ACEOF
7108/* end confdefs.h. */
7109
4250/* Override any gcc2 internal prototype to avoid an error. */ 7110/* Override any gcc2 internal prototype to avoid an error. */
7111#ifdef __cplusplus
7112extern "C"
7113#endif
4251/* We use char because int might match the return type of a gcc2 7114/* We use char because int might match the return type of a gcc2
4252 builtin and then its argument prototype would still apply. */ 7115 builtin and then its argument prototype would still apply. */
4253char shl_load(); 7116char shl_load ();
4254 7117int
4255int main() { 7118main ()
7119{
4256shl_load() 7120shl_load ();
7121 ;
4257; return 0; } 7122 return 0;
4258EOF 7123}
4259if { (eval echo configure:4260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7124_ACEOF
7125rm -f conftest.$ac_objext conftest$ac_exeext
7126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7127 (eval $ac_link) 2>conftest.er1
7128 ac_status=$?
7129 grep -v '^ *+' conftest.er1 >conftest.err
4260 rm -rf conftest* 7130 rm -f conftest.er1
4261 eval "ac_cv_lib_$ac_lib_var=yes" 7131 cat conftest.err >&5
7132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133 (exit $ac_status); } &&
7134 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7136 (eval $ac_try) 2>&5
7137 ac_status=$?
7138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139 (exit $ac_status); }; } &&
7140 { ac_try='test -s conftest$ac_exeext'
7141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7142 (eval $ac_try) 2>&5
7143 ac_status=$?
7144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145 (exit $ac_status); }; }; then
7146 ac_cv_lib_dld_shl_load=yes
4262else 7147else
4263 echo "configure: failed program was:" >&5 7148 echo "$as_me: failed program was:" >&5
4264 cat conftest.$ac_ext >&5 7149sed 's/^/| /' conftest.$ac_ext >&5
4265 rm -rf conftest* 7150
4266 eval "ac_cv_lib_$ac_lib_var=no" 7151ac_cv_lib_dld_shl_load=no
4267fi 7152fi
4268rm -f conftest* 7153rm -f conftest.err conftest.$ac_objext \
7154 conftest$ac_exeext conftest.$ac_ext
4269LIBS="$ac_save_LIBS" 7155LIBS=$ac_check_lib_save_LIBS
4270
4271fi 7156fi
4272if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 7157echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
4273 echo "$ac_t""yes" 1>&6 7158echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7159if test $ac_cv_lib_dld_shl_load = yes; then
4274 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 7160 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
4275else
4276 echo "$ac_t""no" 1>&6
4277fi 7161fi
4278 7162
4279
4280fi
4281 7163
4282
4283fi 7164fi
4284 7165
4285
4286fi
4287 7166
4288 7167fi
7168
7169
7170fi
7171
7172
4289fi 7173fi
4290 7174
4291 ;; 7175 ;;
4292 esac 7176 esac
4293 7177
4306 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 7190 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
4307 7191
4308 save_LIBS="$LIBS" 7192 save_LIBS="$LIBS"
4309 LIBS="$lt_cv_dlopen_libs $LIBS" 7193 LIBS="$lt_cv_dlopen_libs $LIBS"
4310 7194
7195 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 7196echo $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 7197if test "${lt_cv_dlopen_self+set}" = set; then
4314 echo $ac_n "(cached) $ac_c" 1>&6 7198 echo $ECHO_N "(cached) $ECHO_C" >&6
4315else 7199else
4316 if test "$cross_compiling" = yes; then : 7200 if test "$cross_compiling" = yes; then :
4317 lt_cv_dlopen_self=cross 7201 lt_cv_dlopen_self=cross
4318else 7202else
4319 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 7203 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4320 lt_status=$lt_dlunknown 7204 lt_status=$lt_dlunknown
4321 cat > conftest.$ac_ext <<EOF 7205 cat > conftest.$ac_ext <<EOF
4322#line 4323 "configure" 7206#line 7206 "configure"
4323#include "confdefs.h" 7207#include "confdefs.h"
4324 7208
4325#if HAVE_DLFCN_H 7209#if HAVE_DLFCN_H
4326#include <dlfcn.h> 7210#include <dlfcn.h>
4327#endif 7211#endif
4378 } 7262 }
4379 7263
4380 exit (status); 7264 exit (status);
4381} 7265}
4382EOF 7266EOF
4383 if { (eval echo configure:4384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then 7267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7268 (eval $ac_link) 2>&5
7269 ac_status=$?
7270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
4384 (./conftest; exit; ) 2>/dev/null 7272 (./conftest; exit; ) 2>/dev/null
4385 lt_status=$? 7273 lt_status=$?
4386 case x$lt_status in 7274 case x$lt_status in
4387 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 7275 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
4388 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 7276 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
4393 lt_cv_dlopen_self=no 7281 lt_cv_dlopen_self=no
4394 fi 7282 fi
4395fi 7283fi
4396rm -fr conftest* 7284rm -fr conftest*
4397 7285
4398
4399fi
4400 7286
7287fi
7288echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
4401echo "$ac_t""$lt_cv_dlopen_self" 1>&6 7289echo "${ECHO_T}$lt_cv_dlopen_self" >&6
4402 7290
4403 if test "x$lt_cv_dlopen_self" = xyes; then 7291 if test "x$lt_cv_dlopen_self" = xyes; then
4404 LDFLAGS="$LDFLAGS $link_static_flag" 7292 LDFLAGS="$LDFLAGS $link_static_flag"
7293 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 7294echo $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 7295if test "${lt_cv_dlopen_self_static+set}" = set; then
4408 echo $ac_n "(cached) $ac_c" 1>&6 7296 echo $ECHO_N "(cached) $ECHO_C" >&6
4409else 7297else
4410 if test "$cross_compiling" = yes; then : 7298 if test "$cross_compiling" = yes; then :
4411 lt_cv_dlopen_self_static=cross 7299 lt_cv_dlopen_self_static=cross
4412else 7300else
4413 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 7301 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4414 lt_status=$lt_dlunknown 7302 lt_status=$lt_dlunknown
4415 cat > conftest.$ac_ext <<EOF 7303 cat > conftest.$ac_ext <<EOF
4416#line 4417 "configure" 7304#line 7304 "configure"
4417#include "confdefs.h" 7305#include "confdefs.h"
4418 7306
4419#if HAVE_DLFCN_H 7307#if HAVE_DLFCN_H
4420#include <dlfcn.h> 7308#include <dlfcn.h>
4421#endif 7309#endif
4472 } 7360 }
4473 7361
4474 exit (status); 7362 exit (status);
4475} 7363}
4476EOF 7364EOF
4477 if { (eval echo configure:4478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then 7365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7366 (eval $ac_link) 2>&5
7367 ac_status=$?
7368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
4478 (./conftest; exit; ) 2>/dev/null 7370 (./conftest; exit; ) 2>/dev/null
4479 lt_status=$? 7371 lt_status=$?
4480 case x$lt_status in 7372 case x$lt_status in
4481 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 7373 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
4482 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 7374 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
4487 lt_cv_dlopen_self_static=no 7379 lt_cv_dlopen_self_static=no
4488 fi 7380 fi
4489fi 7381fi
4490rm -fr conftest* 7382rm -fr conftest*
4491 7383
4492
4493fi
4494 7384
7385fi
7386echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
4495echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6 7387echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
4496 fi 7388 fi
4497 7389
4498 CPPFLAGS="$save_CPPFLAGS" 7390 CPPFLAGS="$save_CPPFLAGS"
4499 LDFLAGS="$save_LDFLAGS" 7391 LDFLAGS="$save_LDFLAGS"
4500 LIBS="$save_LIBS" 7392 LIBS="$save_LIBS"
4522 ;; 7414 ;;
4523 '$CC '*) 7415 '$CC '*)
4524 # Test whether the compiler implicitly links with -lc since on some 7416 # Test whether the compiler implicitly links with -lc since on some
4525 # systems, -lgcc has to come before -lc. If gcc already passes -lc 7417 # systems, -lgcc has to come before -lc. If gcc already passes -lc
4526 # to ld, don't add -lc before -lgcc. 7418 # to ld, don't add -lc before -lgcc.
7419 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 7420echo $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 7421 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
4530 echo $ac_n "(cached) $ac_c" 1>&6 7422 echo $ECHO_N "(cached) $ECHO_C" >&6
4531else 7423else
4532 $rm conftest* 7424 $rm conftest*
4533 echo 'static int dummy;' > conftest.$ac_ext 7425 echo 'static int dummy;' > conftest.$ac_ext
4534 7426
4535 if { (eval echo configure:4536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7428 (eval $ac_compile) 2>&5
7429 ac_status=$?
7430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431 (exit $ac_status); }; then
4536 soname=conftest 7432 soname=conftest
4537 lib=conftest 7433 lib=conftest
4538 libobjs=conftest.$ac_objext 7434 libobjs=conftest.$ac_objext
4539 deplibs= 7435 deplibs=
4540 wl=$lt_cv_prog_cc_wl 7436 wl=$lt_cv_prog_cc_wl
4543 verstring= 7439 verstring=
4544 output_objdir=. 7440 output_objdir=.
4545 libname=conftest 7441 libname=conftest
4546 save_allow_undefined_flag=$allow_undefined_flag 7442 save_allow_undefined_flag=$allow_undefined_flag
4547 allow_undefined_flag= 7443 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; } 7444 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7445 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7446 ac_status=$?
7447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448 (exit $ac_status); }
4549 then 7449 then
4550 lt_cv_archive_cmds_need_lc=no 7450 lt_cv_archive_cmds_need_lc=no
4551 else 7451 else
4552 lt_cv_archive_cmds_need_lc=yes 7452 lt_cv_archive_cmds_need_lc=yes
4553 fi 7453 fi
4555 else 7455 else
4556 cat conftest.err 1>&5 7456 cat conftest.err 1>&5
4557 fi 7457 fi
4558fi 7458fi
4559 7459
7460 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
4560 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6 7461echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
4561 ;; 7462 ;;
4562 esac 7463 esac
4563fi 7464fi
4564need_lc=${lt_cv_archive_cmds_need_lc-yes} 7465need_lc=${lt_cv_archive_cmds_need_lc-yes}
4565## 7466##
5130 8031
5131MALLOC_TYPE=S 8032MALLOC_TYPE=S
5132support_addstrings=no 8033support_addstrings=no
5133support_frills=no 8034support_frills=no
5134support_linespace=no 8035support_linespace=no
5135support_graphics=no
5136support_inheritpixmap=no 8036support_inheritpixmap=no
5137support_keepscrolling=no 8037support_keepscrolling=no
5138support_selectionscrolling=no 8038support_selectionscrolling=no
5139support_menubar=no 8039support_menubar=no
5140support_mousewheel=no 8040support_mousewheel=no
5141support_mouseslipwheel=no 8041support_mouseslipwheel=no
5142support_oldselection=no 8042support_oldselection=no
5143support_utmp=no 8043support_utmp=no
5144support_wtmp=no 8044support_wtmp=no
5145support_lastlog=no 8045support_lastlog=no
5146support_cursor_blink=no 8046support_cursor_blink=no
8047support_text_blink=no
5147support_pointer_blank=no 8048support_pointer_blank=no
5148support_scroll_rxvt=no 8049support_scroll_rxvt=no
5149support_scroll_next=no 8050support_scroll_next=no
5150support_scroll_xterm=no 8051support_scroll_xterm=no
8052support_scroll_plain=no
5151support_xim=no 8053support_xim=no
5152support_xpm=no 8054support_xpm=no
5153support_xft=no 8055support_xft=no
5154support_unicode3=no 8056support_unicode3=no
5155codesets= 8057codesets=
5156 8058
5157 8059
5158if test "x$enable_shared" = xyes; then 8060if test "x$enable_shared" = xyes; then
8061
5159 cat >> confdefs.h <<\EOF 8062cat >>confdefs.h <<\_ACEOF
5160#define LIBRXVT 1 8063#define LIBRXVT 1
5161EOF 8064_ACEOF
5162 8065
5163 INSTALL_LIBRXVT=yes 8066 INSTALL_LIBRXVT=yes
5164fi 8067fi
5165 8068
5166 8069
5169 enableval="$enable_everything" 8072 enableval="$enable_everything"
5170 if test x$enableval = xyes; then 8073 if test x$enableval = xyes; then
5171 support_24bit=yes 8074 support_24bit=yes
5172 support_frills=yes 8075 support_frills=yes
5173 support_linespace=yes 8076 support_linespace=yes
5174 support_graphics=yes
5175 support_inheritpixmap=yes 8077 support_inheritpixmap=yes
5176 support_keepscrolling=yes 8078 support_keepscrolling=yes
5177 support_selectionscrolling=yes 8079 support_selectionscrolling=yes
5178 support_lastlog=yes 8080 support_lastlog=yes
5179 support_menubar=yes 8081 support_menubar=yes
5180 support_mousewheel=yes 8082 support_mousewheel=yes
5181 support_mouseslipwheel=yes 8083 support_mouseslipwheel=yes
5182 support_oldselection=yes 8084 support_oldselection=yes
5183 support_cursor_blink=yes 8085 support_cursor_blink=yes
8086 support_text_blink=yes
5184 support_pointer_blank=yes 8087 support_pointer_blank=yes
5185 support_scroll_rxvt=yes 8088 support_scroll_rxvt=yes
5186 support_scroll_next=yes 8089 support_scroll_next=yes
5187 support_scroll_xterm=yes 8090 support_scroll_xterm=yes
8091 support_scroll_plain=yes
5188 support_utmp=yes 8092 support_utmp=yes
5189 support_wtmp=yes 8093 support_wtmp=yes
5190 support_xim=yes 8094 support_xim=yes
5191 support_xpm=yes 8095 support_xpm=yes
5192 support_xft=yes 8096 support_xft=yes
5193 support_unicode3=yes 8097 support_unicode3=yes
5194 codesets=all 8098 codesets=all
5195 fi 8099 fi
5196fi 8100fi;
5197
5198 8101
5199# Check whether --enable-unicode3 or --disable-unicode3 was given. 8102# Check whether --enable-unicode3 or --disable-unicode3 was given.
5200if test "${enable_unicode3+set}" = set; then 8103if test "${enable_unicode3+set}" = set; then
5201 enableval="$enable_unicode3" 8104 enableval="$enable_unicode3"
5202 if test x$enableval = xyes; then 8105 if test x$enableval = xyes -o x$enableval = xno; then
5203 support_unicode3=yes 8106 support_unicode3=yes
5204 fi 8107 fi
5205fi 8108fi;
5206
5207 8109
5208# Check whether --enable-xft or --disable-xft was given. 8110# Check whether --enable-xft or --disable-xft was given.
5209if test "${enable_xft+set}" = set; then 8111if test "${enable_xft+set}" = set; then
5210 enableval="$enable_xft" 8112 enableval="$enable_xft"
5211 if test x$enableval = xyes; then 8113 if test x$enableval = xyes -o x$enableval = xno; then
5212 support_xft=yes 8114 support_xft=yes
5213 fi 8115 fi
5214fi 8116fi;
5215
5216
5217# Check whether --with-codesets or --without-codesets was given.
5218if test "${with_codesets+set}" = set; then
5219 withval="$with_codesets"
5220 if test x$enableval = xyes; then
5221 codesets="$withval"
5222 fi
5223fi
5224
5225
5226# Check whether --with-encoding or --without-encoding was given.
5227if test "${with_encoding+set}" = set; then
5228 withval="$with_encoding"
5229 if test x$enableval = xyes; then
5230 withval=`echo $withval | tr 'a-z' 'A-Z'`
5231 cat >> confdefs.h <<EOF
5232#define MULTICHAR_ENCODING $withval
5233EOF
5234
5235 fi
5236fi
5237
5238 8117
5239# Check whether --enable-utmp or --disable-utmp was given. 8118# Check whether --enable-utmp or --disable-utmp was given.
5240if test "${enable_utmp+set}" = set; then 8119if test "${enable_utmp+set}" = set; then
5241 enableval="$enable_utmp" 8120 enableval="$enable_utmp"
5242 if test x$enableval = xyes -o x$enableval = xno; then 8121 if test x$enableval = xyes -o x$enableval = xno; then
5243 support_utmp=$enableval 8122 support_utmp=$enableval
5244 fi 8123 fi
5245fi 8124fi;
5246
5247 8125
5248# Check whether --enable-wtmp or --disable-wtmp was given. 8126# Check whether --enable-wtmp or --disable-wtmp was given.
5249if test "${enable_wtmp+set}" = set; then 8127if test "${enable_wtmp+set}" = set; then
5250 enableval="$enable_wtmp" 8128 enableval="$enable_wtmp"
5251 if test x$enableval = xyes -o x$enableval = xno; then 8129 if test x$enableval = xyes -o x$enableval = xno; then
5252 support_wtmp=$enableval 8130 support_wtmp=$enableval
5253 fi 8131 fi
5254fi 8132fi;
5255
5256 8133
5257# Check whether --enable-lastlog or --disable-lastlog was given. 8134# Check whether --enable-lastlog or --disable-lastlog was given.
5258if test "${enable_lastlog+set}" = set; then 8135if test "${enable_lastlog+set}" = set; then
5259 enableval="$enable_lastlog" 8136 enableval="$enable_lastlog"
5260 if test x$enableval = xyes -o x$enableval = xno; then 8137 if test x$enableval = xyes -o x$enableval = xno; then
5261 support_lastlog=$enableval 8138 support_lastlog=$enableval
5262 fi 8139 fi
5263fi 8140fi;
5264
5265 8141
5266# Check whether --enable-xpm-background or --disable-xpm-background was given. 8142# Check whether --enable-xpm-background or --disable-xpm-background was given.
5267if test "${enable_xpm_background+set}" = set; then 8143if test "${enable_xpm_background+set}" = set; then
5268 enableval="$enable_xpm_background" 8144 enableval="$enable_xpm_background"
5269 if test x$enableval = xyes -o x$enableval = xno; then 8145 if test x$enableval = xyes -o x$enableval = xno; then
5270 support_xpm=$enableval 8146 support_xpm=$enableval
5271 fi 8147 fi
5272fi 8148fi;
5273
5274 8149
5275# Check whether --enable-transparency or --disable-transparency was given. 8150# Check whether --enable-transparency or --disable-transparency was given.
5276if test "${enable_transparency+set}" = set; then 8151if test "${enable_transparency+set}" = set; then
5277 enableval="$enable_transparency" 8152 enableval="$enable_transparency"
5278 if test x$enableval = xyes -o x$enableval = xno; then 8153 if test x$enableval = xyes -o x$enableval = xno; then
5279 support_inheritpixmap=$enableval 8154 support_inheritpixmap=$enableval
5280 fi 8155 fi
5281fi 8156fi;
5282
5283 8157
5284# Check whether --enable-menubar or --disable-menubar was given. 8158# Check whether --enable-menubar or --disable-menubar was given.
5285if test "${enable_menubar+set}" = set; then 8159if test "${enable_menubar+set}" = set; then
5286 enableval="$enable_menubar" 8160 enableval="$enable_menubar"
5287 if test x$enableval = xyes -o x$enableval = xno; then 8161 if test x$enableval = xyes -o x$enableval = xno; then
5288 support_menubar=$enableval 8162 support_menubar=$enableval
5289 fi 8163 fi
5290fi 8164fi;
5291
5292
5293# Check whether --enable-graphics or --disable-graphics was given.
5294if test "${enable_graphics+set}" = set; then
5295 enableval="$enable_graphics"
5296 if test x$enableval = xyes -o x$enableval = xno; then
5297 support_graphics=$enableval
5298 fi
5299fi
5300
5301 8165
5302# Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given. 8166# Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given.
5303if test "${enable_rxvt_scroll+set}" = set; then 8167if test "${enable_rxvt_scroll+set}" = set; then
5304 enableval="$enable_rxvt_scroll" 8168 enableval="$enable_rxvt_scroll"
5305 if test x$enableval = xyes -o x$enableval = xno; then 8169 if test x$enableval = xyes -o x$enableval = xno; then
5306 support_scroll_rxvt=$enableval 8170 support_scroll_rxvt=$enableval
5307 fi 8171 fi
5308fi 8172fi;
5309
5310 8173
5311# Check whether --enable-next-scroll or --disable-next-scroll was given. 8174# Check whether --enable-next-scroll or --disable-next-scroll was given.
5312if test "${enable_next_scroll+set}" = set; then 8175if test "${enable_next_scroll+set}" = set; then
5313 enableval="$enable_next_scroll" 8176 enableval="$enable_next_scroll"
5314 if test x$enableval = xyes -o x$enableval = xno; then 8177 if test x$enableval = xyes -o x$enableval = xno; then
5315 support_scroll_next=$enableval 8178 support_scroll_next=$enableval
5316 fi 8179 fi
5317fi 8180fi;
5318
5319 8181
5320# Check whether --enable-xterm-scroll or --disable-xterm-scroll was given. 8182# Check whether --enable-xterm-scroll or --disable-xterm-scroll was given.
5321if test "${enable_xterm_scroll+set}" = set; then 8183if test "${enable_xterm_scroll+set}" = set; then
5322 enableval="$enable_xterm_scroll" 8184 enableval="$enable_xterm_scroll"
5323 if test x$enableval = xyes -o x$enableval = xno; then 8185 if test x$enableval = xyes -o x$enableval = xno; then
5324 support_scroll_xterm=$enableval 8186 support_scroll_xterm=$enableval
5325 fi 8187 fi
5326fi 8188fi;
5327 8189
8190# Check whether --enable-plain-scroll or --disable-plain-scroll was given.
8191if test "${enable_plain_scroll+set}" = set; then
8192 enableval="$enable_plain_scroll"
8193 if test x$enableval = xyes -o x$enableval = xno; then
8194 support_scroll_plain=$enableval
8195 fi
8196fi;
5328 8197
5329# Check whether --enable-half-shadow or --disable-half-shadow was given. 8198# Check whether --enable-half-shadow or --disable-half-shadow was given.
5330if test "${enable_half_shadow+set}" = set; then 8199if test "${enable_half_shadow+set}" = set; then
5331 enableval="$enable_half_shadow" 8200 enableval="$enable_half_shadow"
5332 if test x$enableval = xyes; then 8201 if test x$enableval = xyes; then
8202
5333 cat >> confdefs.h <<\EOF 8203cat >>confdefs.h <<\_ACEOF
5334#define HALFSHADOW 1 8204#define HALFSHADOW 1
5335EOF 8205_ACEOF
5336 8206
5337 fi 8207 fi
5338fi 8208fi;
5339 8209
8210
8211# Check whether --with-codesets or --without-codesets was given.
8212if test "${with_codesets+set}" = set; then
8213 withval="$with_codesets"
8214 codesets="$withval"
8215fi;
5340 8216
5341# Check whether --enable-xim or --disable-xim was given. 8217# Check whether --enable-xim or --disable-xim was given.
5342if test "${enable_xim+set}" = set; then 8218if test "${enable_xim+set}" = set; then
5343 enableval="$enable_xim" 8219 enableval="$enable_xim"
5344 if test x$enableval = xyes -o x$enableval = xno; then 8220 if test x$enableval = xyes -o x$enableval = xno; then
5345 support_xim=$enableval 8221 support_xim=$enableval
5346 fi 8222 fi
5347fi 8223fi;
5348
5349
5350# Check whether --enable-greek or --disable-greek was given.
5351if test "${enable_greek+set}" = set; then
5352 enableval="$enable_greek"
5353 if test x$enableval = xyes; then
5354 cat >> confdefs.h <<\EOF
5355#define GREEK_SUPPORT 1
5356EOF
5357
5358 fi
5359fi
5360
5361 8224
5362# Check whether --enable-ttygid or --disable-ttygid was given. 8225# Check whether --enable-ttygid or --disable-ttygid was given.
5363if test "${enable_ttygid+set}" = set; then 8226if test "${enable_ttygid+set}" = set; then
5364 enableval="$enable_ttygid" 8227 enableval="$enable_ttygid"
5365 if test x$enableval = xyes; then 8228 if test x$enableval = xyes; then
8229
5366 cat >> confdefs.h <<\EOF 8230cat >>confdefs.h <<\_ACEOF
5367#define TTY_GID_SUPPORT 1 8231#define TTY_GID_SUPPORT 1
5368EOF 8232_ACEOF
5369 8233
5370 fi 8234 fi
5371fi 8235fi;
5372
5373 8236
5374# Check whether --enable-backspace-key or --disable-backspace-key was given. 8237# Check whether --enable-backspace-key or --disable-backspace-key was given.
5375if test "${enable_backspace_key+set}" = set; then 8238if test "${enable_backspace_key+set}" = set; then
5376 enableval="$enable_backspace_key" 8239 enableval="$enable_backspace_key"
5377 if test x$enableval = xno; then 8240 if test x$enableval = xno; then
8241
5378 cat >> confdefs.h <<\EOF 8242cat >>confdefs.h <<\_ACEOF
5379#define NO_BACKSPACE_KEY 1 8243#define NO_BACKSPACE_KEY 1
5380EOF 8244_ACEOF
5381 8245
5382 fi 8246 fi
5383fi 8247fi;
5384
5385 8248
5386# Check whether --enable-delete-key or --disable-delete-key was given. 8249# Check whether --enable-delete-key or --disable-delete-key was given.
5387if test "${enable_delete_key+set}" = set; then 8250if test "${enable_delete_key+set}" = set; then
5388 enableval="$enable_delete_key" 8251 enableval="$enable_delete_key"
5389 if test x$enableval = xno; then 8252 if test x$enableval = xno; then
8253
5390 cat >> confdefs.h <<\EOF 8254cat >>confdefs.h <<\_ACEOF
5391#define NO_DELETE_KEY 1 8255#define NO_DELETE_KEY 1
5392EOF 8256_ACEOF
5393 8257
5394 fi 8258 fi
5395fi 8259fi;
5396
5397 8260
5398# Check whether --enable-resources or --disable-resources was given. 8261# Check whether --enable-resources or --disable-resources was given.
5399if test "${enable_resources+set}" = set; then 8262if test "${enable_resources+set}" = set; then
5400 enableval="$enable_resources" 8263 enableval="$enable_resources"
5401 if test x$enableval = xno; then 8264 if test x$enableval = xno; then
8265
5402 cat >> confdefs.h <<\EOF 8266cat >>confdefs.h <<\_ACEOF
5403#define NO_RESOURCES 1 8267#define NO_RESOURCES 1
5404EOF 8268_ACEOF
5405 8269
5406 fi 8270 fi
5407fi 8271fi;
5408
5409 8272
5410# Check whether --enable-xgetdefault or --disable-xgetdefault was given. 8273# Check whether --enable-xgetdefault or --disable-xgetdefault was given.
5411if test "${enable_xgetdefault+set}" = set; then 8274if test "${enable_xgetdefault+set}" = set; then
5412 enableval="$enable_xgetdefault" 8275 enableval="$enable_xgetdefault"
5413 if test x$enableval = xyes; then 8276 if test x$enableval = xyes; then
8277
5414 cat >> confdefs.h <<\EOF 8278cat >>confdefs.h <<\_ACEOF
5415#define USE_XGETDEFAULT 1 8279#define USE_XGETDEFAULT 1
5416EOF 8280_ACEOF
5417 8281
5418 fi 8282 fi
5419fi 8283fi;
8284
8285RESFALLBACK=Rxvt
8286# Check whether --enable-fallback or --disable-fallback was given.
8287if test "${enable_fallback+set}" = set; then
8288 enableval="$enable_fallback"
8289
8290 test x$enableval = xyes && enableval=Rxvt
8291 test x$enableval = xno && enableval=
8292 RESFALLBACK="$enableval"
8293
8294fi;
8295
8296if test x$RESFALLBACK != x; then
8297
8298cat >>confdefs.h <<_ACEOF
8299#define RESFALLBACK "$RESFALLBACK"
8300_ACEOF
8301
8302fi
8303
8304RESNAME=urxvt
8305
8306# Check whether --with-res-name or --without-res-name was given.
8307if test "${with_res_name+set}" = set; then
8308 withval="$with_res_name"
8309 RESNAME="$withval"
8310fi;
8311
8312cat >>confdefs.h <<_ACEOF
8313#define RESNAME "$RESNAME"
8314_ACEOF
8315
8316
8317RESCLASS=URxvt
8318
8319# Check whether --with-res-class or --without-res-class was given.
8320if test "${with_res_class+set}" = set; then
8321 withval="$with_res_class"
8322 RESCLASS="$withval"
8323fi;
8324
8325cat >>confdefs.h <<_ACEOF
8326#define RESCLASS "$RESCLASS"
8327_ACEOF
8328
8329
8330RXVTNAME=urxvt
8331
8332# Check whether --with-name or --without-name was given.
8333if test "${with_name+set}" = set; then
8334 withval="$with_name"
8335 RXVTNAME="$withval"
8336fi;
8337
8338RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
5420 8339
5421 8340
5422# Check whether --enable-strings or --disable-strings was given. 8341# Check whether --enable-strings or --disable-strings was given.
5423if test "${enable_strings+set}" = set; then 8342if test "${enable_strings+set}" = set; then
5424 enableval="$enable_strings" 8343 enableval="$enable_strings"
5425 if test x$enableval = xyes -o x$enableval = xno; then 8344 if test x$enableval = xyes -o x$enableval = xno; then
5426 support_addstrings=$enableval 8345 support_addstrings=$enableval
5427 fi 8346 fi
5428fi 8347fi;
5429
5430 8348
5431# Check whether --enable-swapscreen or --disable-swapscreen was given. 8349# Check whether --enable-swapscreen or --disable-swapscreen was given.
5432if test "${enable_swapscreen+set}" = set; then 8350if test "${enable_swapscreen+set}" = set; then
5433 enableval="$enable_swapscreen" 8351 enableval="$enable_swapscreen"
5434 if test x$enableval = xno; then 8352 if test x$enableval = xno; then
8353
5435 cat >> confdefs.h <<\EOF 8354cat >>confdefs.h <<\_ACEOF
5436#define NO_SECONDARY_SCREEN 1 8355#define NO_SECONDARY_SCREEN 1
5437EOF 8356_ACEOF
5438 8357
5439 fi 8358 fi
5440fi 8359fi;
5441
5442 8360
5443# Check whether --enable-frills or --disable-frills was given. 8361# Check whether --enable-frills or --disable-frills was given.
5444if test "${enable_frills+set}" = set; then 8362if test "${enable_frills+set}" = set; then
5445 enableval="$enable_frills" 8363 enableval="$enable_frills"
5446 if test x$enableval = xyes -o x$enableval = xno; then 8364 if test x$enableval = xyes -o x$enableval = xno; then
5447 support_frills=$enableval 8365 support_frills=$enableval
5448 fi 8366 fi
5449fi 8367fi;
5450
5451 8368
5452# Check whether --enable-linespace or --disable-linespace was given. 8369# Check whether --enable-linespace or --disable-linespace was given.
5453if test "${enable_linespace+set}" = set; then 8370if test "${enable_linespace+set}" = set; then
5454 enableval="$enable_linespace" 8371 enableval="$enable_linespace"
5455 if test x$enableval = xyes -o x$enableval = xno; then 8372 if test x$enableval = xyes -o x$enableval = xno; then
5456 support_linespace=$enableval 8373 support_linespace=$enableval
5457 fi 8374 fi
5458fi 8375fi;
5459
5460 8376
5461# Check whether --enable-24bit or --disable-24bit was given. 8377# Check whether --enable-24bit or --disable-24bit was given.
5462if test "${enable_24bit+set}" = set; then 8378if test "${enable_24bit+set}" = set; then
5463 enableval="$enable_24bit" 8379 enableval="$enable_24bit"
5464 if test x$enableval = xyes -o x$enableval = xno; then 8380 if test x$enableval = xyes -o x$enableval = xno; then
5465 support_24bit=$enableval 8381 support_24bit=$enableval
5466 fi 8382 fi
5467fi 8383fi;
5468
5469 8384
5470# Check whether --enable-keepscrolling or --disable-keepscrolling was given. 8385# Check whether --enable-keepscrolling or --disable-keepscrolling was given.
5471if test "${enable_keepscrolling+set}" = set; then 8386if test "${enable_keepscrolling+set}" = set; then
5472 enableval="$enable_keepscrolling" 8387 enableval="$enable_keepscrolling"
5473 if test x$enableval = xyes -o x$enableval = xno; then 8388 if test x$enableval = xyes -o x$enableval = xno; then
5474 support_keepscrolling=$enableval 8389 support_keepscrolling=$enableval
5475 fi 8390 fi
5476fi 8391fi;
5477
5478 8392
5479# Check whether --enable-selectionscrolling or --disable-selectionscrolling was given. 8393# Check whether --enable-selectionscrolling or --disable-selectionscrolling was given.
5480if test "${enable_selectionscrolling+set}" = set; then 8394if test "${enable_selectionscrolling+set}" = set; then
5481 enableval="$enable_selectionscrolling" 8395 enableval="$enable_selectionscrolling"
5482 if test x$enableval = xyes -o x$enableval = xno; then 8396 if test x$enableval = xyes -o x$enableval = xno; then
5483 support_selectionscrolling=$enableval 8397 support_selectionscrolling=$enableval
5484 fi 8398 fi
5485fi 8399fi;
5486
5487 8400
5488# Check whether --enable-mousewheel or --disable-mousewheel was given. 8401# Check whether --enable-mousewheel or --disable-mousewheel was given.
5489if test "${enable_mousewheel+set}" = set; then 8402if test "${enable_mousewheel+set}" = set; then
5490 enableval="$enable_mousewheel" 8403 enableval="$enable_mousewheel"
5491 if test x$enableval = xyes -o x$enableval = xno; then 8404 if test x$enableval = xyes -o x$enableval = xno; then
5492 support_mousewheel=$enableval 8405 support_mousewheel=$enableval
5493 fi 8406 fi
5494fi 8407fi;
5495
5496 8408
5497# Check whether --enable-slipwheeling or --disable-slipwheeling was given. 8409# Check whether --enable-slipwheeling or --disable-slipwheeling was given.
5498if test "${enable_slipwheeling+set}" = set; then 8410if test "${enable_slipwheeling+set}" = set; then
5499 enableval="$enable_slipwheeling" 8411 enableval="$enable_slipwheeling"
5500 if test x$enableval = xyes -o x$enableval = xno; then 8412 if test x$enableval = xyes -o x$enableval = xno; then
5501 support_mouseslipwheel=$enableval 8413 support_mouseslipwheel=$enableval
5502 fi 8414 fi
5503fi 8415fi;
5504
5505 8416
5506# Check whether --enable-old-selection or --disable-old-selection was given. 8417# Check whether --enable-old-selection or --disable-old-selection was given.
5507if test "${enable_old_selection+set}" = set; then 8418if test "${enable_old_selection+set}" = set; then
5508 enableval="$enable_old_selection" 8419 enableval="$enable_old_selection"
5509 if test x$enableval = xyes -o x$enableval = xno; then 8420 if test x$enableval = xyes -o x$enableval = xno; then
5510 support_oldselection=$enableval 8421 support_oldselection=$enableval
5511 fi 8422 fi
5512fi 8423fi;
5513
5514 8424
5515# Check whether --enable-new-selection or --disable-new-selection was given. 8425# Check whether --enable-new-selection or --disable-new-selection was given.
5516if test "${enable_new_selection+set}" = set; then 8426if test "${enable_new_selection+set}" = set; then
5517 enableval="$enable_new_selection" 8427 enableval="$enable_new_selection"
5518 if test x$enableval = xno; then 8428 if test x$enableval = xno; then
8429
5519 cat >> confdefs.h <<\EOF 8430cat >>confdefs.h <<\_ACEOF
5520#define NO_NEW_SELECTION 1 8431#define NO_NEW_SELECTION 1
5521EOF 8432_ACEOF
5522 8433
5523 fi 8434 fi
5524fi 8435fi;
5525
5526 8436
5527# Check whether --enable-dmalloc or --disable-dmalloc was given. 8437# Check whether --enable-dmalloc or --disable-dmalloc was given.
5528if test "${enable_dmalloc+set}" = set; then 8438if test "${enable_dmalloc+set}" = set; then
5529 enableval="$enable_dmalloc" 8439 enableval="$enable_dmalloc"
5530 if test x$enableval = xyes; then 8440 if test x$enableval = xyes; then
5531 MALLOC_TYPE=G 8441 MALLOC_TYPE=G
5532 DEBUG=-DDEBUG_MALLOC 8442 DEBUG=-DDEBUG_MALLOC
5533 DLIB="-L/usr/local/lib -ldmalloc" 8443 DLIB="-L/usr/local/lib -ldmalloc"
5534 DINCLUDE=-I/usr/local/include 8444 DINCLUDE=-I/usr/local/include
5535 fi 8445 fi
5536fi 8446fi;
5537
5538 8447
5539# Check whether --enable-dlmalloc or --disable-dlmalloc was given. 8448# Check whether --enable-dlmalloc or --disable-dlmalloc was given.
5540if test "${enable_dlmalloc+set}" = set; then 8449if test "${enable_dlmalloc+set}" = set; then
5541 enableval="$enable_dlmalloc" 8450 enableval="$enable_dlmalloc"
5542 if test x$enableval = xyes; then 8451 if test x$enableval = xyes; then
5543 MALLOC_TYPE=D 8452 MALLOC_TYPE=D
5544 DEBUG= 8453 DEBUG=
5545 DLIB="-L/usr/local/lib -ldlmalloc" 8454 DLIB="-L/usr/local/lib -ldlmalloc"
5546 DINCLUDE= 8455 DINCLUDE=
5547 fi 8456 fi
5548fi 8457fi;
5549
5550 8458
5551# Check whether --enable-smart-resize or --disable-smart-resize was given. 8459# Check whether --enable-smart-resize or --disable-smart-resize was given.
5552if test "${enable_smart_resize+set}" = set; then 8460if test "${enable_smart_resize+set}" = set; then
5553 enableval="$enable_smart_resize" 8461 enableval="$enable_smart_resize"
5554 if test x$enableval = xyes; then 8462 if test x$enableval = xyes; then
8463
5555 cat >> confdefs.h <<\EOF 8464cat >>confdefs.h <<\_ACEOF
5556#define SMART_RESIZE 1 8465#define SMART_RESIZE 1
5557EOF 8466_ACEOF
5558 8467
5559 fi 8468 fi
5560fi 8469fi;
5561
5562 8470
5563# Check whether --enable-256-color or --disable-256-color was given. 8471# Check whether --enable-256-color or --disable-256-color was given.
5564if test "${enable_256_color+set}" = set; then 8472if test "${enable_256_color+set}" = set; then
5565 enableval="$enable_256_color" 8473 enableval="$enable_256_color"
5566 if test x$enableval = xyes; then 8474 if test x$enableval = xyes; then
8475
5567 cat >> confdefs.h <<\EOF 8476cat >>confdefs.h <<\_ACEOF
5568#define TTY_256COLOR 1 8477#define TTY_256COLOR 1
5569EOF 8478_ACEOF
5570 8479
5571 fi 8480 fi
5572fi 8481fi;
5573
5574 8482
5575# Check whether --enable-cursor-blink or --disable-cursor-blink was given. 8483# Check whether --enable-cursor-blink or --disable-cursor-blink was given.
5576if test "${enable_cursor_blink+set}" = set; then 8484if test "${enable_cursor_blink+set}" = set; then
5577 enableval="$enable_cursor_blink" 8485 enableval="$enable_cursor_blink"
5578 if test x$enableval = xyes -o x$enableval = xno; then 8486 if test x$enableval = xyes -o x$enableval = xno; then
5579 support_cursor_blink=$enableval 8487 support_cursor_blink=$enableval
5580 fi 8488 fi
5581fi 8489fi;
5582 8490
8491# Check whether --enable-text-blink or --disable-text-blink was given.
8492if test "${enable_text_blink+set}" = set; then
8493 enableval="$enable_text_blink"
8494 if test x$enableval = xyes -o x$enableval = xno; then
8495 support_text_blink=$enableval
8496 fi
8497fi;
5583 8498
5584# Check whether --enable-pointer-blank or --disable-pointer-blank was given. 8499# Check whether --enable-pointer-blank or --disable-pointer-blank was given.
5585if test "${enable_pointer_blank+set}" = set; then 8500if test "${enable_pointer_blank+set}" = set; then
5586 enableval="$enable_pointer_blank" 8501 enableval="$enable_pointer_blank"
5587 if test x$enableval = xyes -o x$enableval = xno; then 8502 if test x$enableval = xyes -o x$enableval = xno; then
5588 support_pointer_blank=$enableval 8503 support_pointer_blank=$enableval
5589 fi 8504 fi
5590fi 8505fi;
5591 8506
5592 8507
5593# Check whether --with-term or --without-term was given. 8508# Check whether --with-term or --without-term was given.
5594if test "${with_term+set}" = set; then 8509if test "${with_term+set}" = set; then
5595 withval="$with_term" 8510 withval="$with_term"
5596 if test x$withval != x; then 8511 if test x$withval != x; then
8512
5597 cat >> confdefs.h <<EOF 8513cat >>confdefs.h <<_ACEOF
5598#define TERMENV "$withval" 8514#define TERMENV "$withval"
5599EOF 8515_ACEOF
5600 term="$withval" 8516 term="$withval"
5601 fi 8517 fi
5602fi 8518fi;
5603 8519
5604 8520
5605# Check whether --with-terminfo or --without-terminfo was given. 8521# Check whether --with-terminfo or --without-terminfo was given.
5606if test "${with_terminfo+set}" = set; then 8522if test "${with_terminfo+set}" = set; then
5607 withval="$with_terminfo" 8523 withval="$with_terminfo"
5608 if test x$withval != x; then 8524 if test x$withval != x; then
8525
5609 cat >> confdefs.h <<EOF 8526cat >>confdefs.h <<_ACEOF
5610#define RXVT_TERMINFO "$withval" 8527#define RXVT_TERMINFO "$withval"
5611EOF 8528_ACEOF
5612 terminfo="$withval" 8529 terminfo="$withval"
5613 fi 8530 fi
5614fi 8531fi;
5615 8532
5616 8533
5617 8534
5618cat >> confdefs.h <<\EOF 8535cat >>confdefs.h <<\_ACEOF
5619#define PROTOTYPES 1 8536#define PROTOTYPES 1
5620EOF 8537_ACEOF
5621 8538
5622 8539
5623if test -z "$CFLAGS"; then 8540if test -z "$CFLAGS"; then
5624 if test -z "$CCOPTS"; then 8541 if test -z "$CCOPTS"; then
5625 CCOPTS='-O' 8542 CCOPTS='-O'
5627 CFLAGS="$CCOPTS" 8544 CFLAGS="$CCOPTS"
5628fi 8545fi
5629 8546
5630# Extract the first word of "mv", so it can be a program name with args. 8547# Extract the first word of "mv", so it can be a program name with args.
5631set dummy mv; ac_word=$2 8548set dummy mv; ac_word=$2
8549echo "$as_me:$LINENO: checking for $ac_word" >&5
5632echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8550echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5633echo "configure:5634: checking for $ac_word" >&5
5634if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then 8551if test "${ac_cv_path_MV+set}" = set; then
5635 echo $ac_n "(cached) $ac_c" 1>&6 8552 echo $ECHO_N "(cached) $ECHO_C" >&6
5636else 8553else
5637 case "$MV" in 8554 case $MV in
5638 /*) 8555 [\\/]* | ?:[\\/]*)
5639 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8556 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5640 ;; 8557 ;;
5641 ?:/*)
5642 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
5643 ;;
5644 *) 8558 *)
5645 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5646 ac_dummy="$PATH" 8560for as_dir in $PATH
5647 for ac_dir in $ac_dummy; do 8561do
8562 IFS=$as_save_IFS
5648 test -z "$ac_dir" && ac_dir=. 8563 test -z "$as_dir" && as_dir=.
5649 if test -f $ac_dir/$ac_word; then 8564 for ac_exec_ext in '' $ac_executable_extensions; do
8565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5650 ac_cv_path_MV="$ac_dir/$ac_word" 8566 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5651 break 8568 break 2
5652 fi 8569 fi
5653 done 8570done
5654 IFS="$ac_save_ifs" 8571done
8572
5655 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" 8573 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5656 ;; 8574 ;;
5657esac 8575esac
5658fi 8576fi
5659MV="$ac_cv_path_MV" 8577MV=$ac_cv_path_MV
8578
5660if test -n "$MV"; then 8579if test -n "$MV"; then
5661 echo "$ac_t""$MV" 1>&6 8580 echo "$as_me:$LINENO: result: $MV" >&5
8581echo "${ECHO_T}$MV" >&6
5662else 8582else
5663 echo "$ac_t""no" 1>&6 8583 echo "$as_me:$LINENO: result: no" >&5
8584echo "${ECHO_T}no" >&6
5664fi 8585fi
5665 8586
5666# Extract the first word of "rm", so it can be a program name with args. 8587# Extract the first word of "rm", so it can be a program name with args.
5667set dummy rm; ac_word=$2 8588set dummy rm; ac_word=$2
8589echo "$as_me:$LINENO: checking for $ac_word" >&5
5668echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8590echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5669echo "configure:5670: checking for $ac_word" >&5
5670if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then 8591if test "${ac_cv_path_RM+set}" = set; then
5671 echo $ac_n "(cached) $ac_c" 1>&6 8592 echo $ECHO_N "(cached) $ECHO_C" >&6
5672else 8593else
5673 case "$RM" in 8594 case $RM in
5674 /*) 8595 [\\/]* | ?:[\\/]*)
5675 ac_cv_path_RM="$RM" # Let the user override the test with a path. 8596 ac_cv_path_RM="$RM" # Let the user override the test with a path.
5676 ;; 8597 ;;
5677 ?:/*)
5678 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
5679 ;;
5680 *) 8598 *)
5681 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5682 ac_dummy="$PATH" 8600for as_dir in $PATH
5683 for ac_dir in $ac_dummy; do 8601do
8602 IFS=$as_save_IFS
5684 test -z "$ac_dir" && ac_dir=. 8603 test -z "$as_dir" && as_dir=.
5685 if test -f $ac_dir/$ac_word; then 8604 for ac_exec_ext in '' $ac_executable_extensions; do
8605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5686 ac_cv_path_RM="$ac_dir/$ac_word" 8606 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5687 break 8608 break 2
5688 fi 8609 fi
5689 done 8610done
5690 IFS="$ac_save_ifs" 8611done
8612
5691 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" 8613 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
5692 ;; 8614 ;;
5693esac 8615esac
5694fi 8616fi
5695RM="$ac_cv_path_RM" 8617RM=$ac_cv_path_RM
8618
5696if test -n "$RM"; then 8619if test -n "$RM"; then
5697 echo "$ac_t""$RM" 1>&6 8620 echo "$as_me:$LINENO: result: $RM" >&5
8621echo "${ECHO_T}$RM" >&6
5698else 8622else
5699 echo "$ac_t""no" 1>&6 8623 echo "$as_me:$LINENO: result: no" >&5
8624echo "${ECHO_T}no" >&6
5700fi 8625fi
5701 8626
5702# Extract the first word of "cp", so it can be a program name with args. 8627# Extract the first word of "cp", so it can be a program name with args.
5703set dummy cp; ac_word=$2 8628set dummy cp; ac_word=$2
8629echo "$as_me:$LINENO: checking for $ac_word" >&5
5704echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5705echo "configure:5706: checking for $ac_word" >&5
5706if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then 8631if test "${ac_cv_path_CP+set}" = set; then
5707 echo $ac_n "(cached) $ac_c" 1>&6 8632 echo $ECHO_N "(cached) $ECHO_C" >&6
5708else 8633else
5709 case "$CP" in 8634 case $CP in
5710 /*) 8635 [\\/]* | ?:[\\/]*)
5711 ac_cv_path_CP="$CP" # Let the user override the test with a path. 8636 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5712 ;; 8637 ;;
5713 ?:/*)
5714 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
5715 ;;
5716 *) 8638 *)
5717 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5718 ac_dummy="$PATH" 8640for as_dir in $PATH
5719 for ac_dir in $ac_dummy; do 8641do
8642 IFS=$as_save_IFS
5720 test -z "$ac_dir" && ac_dir=. 8643 test -z "$as_dir" && as_dir=.
5721 if test -f $ac_dir/$ac_word; then 8644 for ac_exec_ext in '' $ac_executable_extensions; do
8645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5722 ac_cv_path_CP="$ac_dir/$ac_word" 8646 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
8647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5723 break 8648 break 2
5724 fi 8649 fi
5725 done 8650done
5726 IFS="$ac_save_ifs" 8651done
8652
5727 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" 8653 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5728 ;; 8654 ;;
5729esac 8655esac
5730fi 8656fi
5731CP="$ac_cv_path_CP" 8657CP=$ac_cv_path_CP
8658
5732if test -n "$CP"; then 8659if test -n "$CP"; then
5733 echo "$ac_t""$CP" 1>&6 8660 echo "$as_me:$LINENO: result: $CP" >&5
8661echo "${ECHO_T}$CP" >&6
5734else 8662else
5735 echo "$ac_t""no" 1>&6 8663 echo "$as_me:$LINENO: result: no" >&5
8664echo "${ECHO_T}no" >&6
5736fi 8665fi
5737 8666
5738# Extract the first word of "ln", so it can be a program name with args. 8667# Extract the first word of "ln", so it can be a program name with args.
5739set dummy ln; ac_word=$2 8668set dummy ln; ac_word=$2
8669echo "$as_me:$LINENO: checking for $ac_word" >&5
5740echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5741echo "configure:5742: checking for $ac_word" >&5
5742if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then 8671if test "${ac_cv_path_LN+set}" = set; then
5743 echo $ac_n "(cached) $ac_c" 1>&6 8672 echo $ECHO_N "(cached) $ECHO_C" >&6
5744else 8673else
5745 case "$LN" in 8674 case $LN in
5746 /*) 8675 [\\/]* | ?:[\\/]*)
5747 ac_cv_path_LN="$LN" # Let the user override the test with a path. 8676 ac_cv_path_LN="$LN" # Let the user override the test with a path.
5748 ;; 8677 ;;
5749 ?:/*)
5750 ac_cv_path_LN="$LN" # Let the user override the test with a dos path.
5751 ;;
5752 *) 8678 *)
5753 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5754 ac_dummy="$PATH" 8680for as_dir in $PATH
5755 for ac_dir in $ac_dummy; do 8681do
8682 IFS=$as_save_IFS
5756 test -z "$ac_dir" && ac_dir=. 8683 test -z "$as_dir" && as_dir=.
5757 if test -f $ac_dir/$ac_word; then 8684 for ac_exec_ext in '' $ac_executable_extensions; do
8685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5758 ac_cv_path_LN="$ac_dir/$ac_word" 8686 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5759 break 8688 break 2
5760 fi 8689 fi
5761 done 8690done
5762 IFS="$ac_save_ifs" 8691done
8692
5763 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" 8693 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
5764 ;; 8694 ;;
5765esac 8695esac
5766fi 8696fi
5767LN="$ac_cv_path_LN" 8697LN=$ac_cv_path_LN
8698
5768if test -n "$LN"; then 8699if test -n "$LN"; then
5769 echo "$ac_t""$LN" 1>&6 8700 echo "$as_me:$LINENO: result: $LN" >&5
8701echo "${ECHO_T}$LN" >&6
5770else 8702else
5771 echo "$ac_t""no" 1>&6 8703 echo "$as_me:$LINENO: result: no" >&5
8704echo "${ECHO_T}no" >&6
5772fi 8705fi
5773 8706
5774# Extract the first word of "sed", so it can be a program name with args. 8707# Extract the first word of "sed", so it can be a program name with args.
5775set dummy sed; ac_word=$2 8708set dummy sed; ac_word=$2
8709echo "$as_me:$LINENO: checking for $ac_word" >&5
5776echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8710echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5777echo "configure:5778: checking for $ac_word" >&5
5778if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then 8711if test "${ac_cv_path_SED+set}" = set; then
5779 echo $ac_n "(cached) $ac_c" 1>&6 8712 echo $ECHO_N "(cached) $ECHO_C" >&6
5780else 8713else
5781 case "$SED" in 8714 case $SED in
5782 /*) 8715 [\\/]* | ?:[\\/]*)
5783 ac_cv_path_SED="$SED" # Let the user override the test with a path. 8716 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5784 ;; 8717 ;;
5785 ?:/*)
5786 ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
5787 ;;
5788 *) 8718 *)
5789 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5790 ac_dummy="$PATH" 8720for as_dir in $PATH
5791 for ac_dir in $ac_dummy; do 8721do
8722 IFS=$as_save_IFS
5792 test -z "$ac_dir" && ac_dir=. 8723 test -z "$as_dir" && as_dir=.
5793 if test -f $ac_dir/$ac_word; then 8724 for ac_exec_ext in '' $ac_executable_extensions; do
8725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5794 ac_cv_path_SED="$ac_dir/$ac_word" 8726 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
8727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5795 break 8728 break 2
5796 fi 8729 fi
5797 done 8730done
5798 IFS="$ac_save_ifs" 8731done
8732
5799 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" 8733 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5800 ;; 8734 ;;
5801esac 8735esac
5802fi 8736fi
5803SED="$ac_cv_path_SED" 8737SED=$ac_cv_path_SED
8738
5804if test -n "$SED"; then 8739if test -n "$SED"; then
5805 echo "$ac_t""$SED" 1>&6 8740 echo "$as_me:$LINENO: result: $SED" >&5
8741echo "${ECHO_T}$SED" >&6
5806else 8742else
5807 echo "$ac_t""no" 1>&6 8743 echo "$as_me:$LINENO: result: no" >&5
8744echo "${ECHO_T}no" >&6
5808fi 8745fi
5809 8746
5810# Extract the first word of "echo", so it can be a program name with args. 8747# Extract the first word of "echo", so it can be a program name with args.
5811set dummy echo; ac_word=$2 8748set dummy echo; ac_word=$2
8749echo "$as_me:$LINENO: checking for $ac_word" >&5
5812echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8750echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5813echo "configure:5814: checking for $ac_word" >&5
5814if eval "test \"`echo '$''{'ac_cv_path_ECHO'+set}'`\" = set"; then 8751if test "${ac_cv_path_ECHO+set}" = set; then
5815 echo $ac_n "(cached) $ac_c" 1>&6 8752 echo $ECHO_N "(cached) $ECHO_C" >&6
5816else 8753else
5817 case "$ECHO" in 8754 case $ECHO in
5818 /*) 8755 [\\/]* | ?:[\\/]*)
5819 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 8756 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5820 ;; 8757 ;;
5821 ?:/*)
5822 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a dos path.
5823 ;;
5824 *) 8758 *)
5825 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5826 ac_dummy="$PATH" 8760for as_dir in $PATH
5827 for ac_dir in $ac_dummy; do 8761do
8762 IFS=$as_save_IFS
5828 test -z "$ac_dir" && ac_dir=. 8763 test -z "$as_dir" && as_dir=.
5829 if test -f $ac_dir/$ac_word; then 8764 for ac_exec_ext in '' $ac_executable_extensions; do
8765 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5830 ac_cv_path_ECHO="$ac_dir/$ac_word" 8766 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
8767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5831 break 8768 break 2
5832 fi 8769 fi
5833 done 8770done
5834 IFS="$ac_save_ifs" 8771done
8772
5835 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo" 8773 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5836 ;; 8774 ;;
5837esac 8775esac
5838fi 8776fi
5839ECHO="$ac_cv_path_ECHO" 8777ECHO=$ac_cv_path_ECHO
8778
5840if test -n "$ECHO"; then 8779if test -n "$ECHO"; then
5841 echo "$ac_t""$ECHO" 1>&6 8780 echo "$as_me:$LINENO: result: $ECHO" >&5
8781echo "${ECHO_T}$ECHO" >&6
5842else 8782else
5843 echo "$ac_t""no" 1>&6 8783 echo "$as_me:$LINENO: result: no" >&5
8784echo "${ECHO_T}no" >&6
5844fi 8785fi
5845 8786
5846# Extract the first word of "cmp", so it can be a program name with args. 8787# Extract the first word of "cmp", so it can be a program name with args.
5847set dummy cmp; ac_word=$2 8788set dummy cmp; ac_word=$2
8789echo "$as_me:$LINENO: checking for $ac_word" >&5
5848echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8790echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5849echo "configure:5850: checking for $ac_word" >&5
5850if eval "test \"`echo '$''{'ac_cv_path_CMP'+set}'`\" = set"; then 8791if test "${ac_cv_path_CMP+set}" = set; then
5851 echo $ac_n "(cached) $ac_c" 1>&6 8792 echo $ECHO_N "(cached) $ECHO_C" >&6
5852else 8793else
5853 case "$CMP" in 8794 case $CMP in
5854 /*) 8795 [\\/]* | ?:[\\/]*)
5855 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 8796 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5856 ;; 8797 ;;
5857 ?:/*)
5858 ac_cv_path_CMP="$CMP" # Let the user override the test with a dos path.
5859 ;;
5860 *) 8798 *)
5861 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5862 ac_dummy="$PATH" 8800for as_dir in $PATH
5863 for ac_dir in $ac_dummy; do 8801do
8802 IFS=$as_save_IFS
5864 test -z "$ac_dir" && ac_dir=. 8803 test -z "$as_dir" && as_dir=.
5865 if test -f $ac_dir/$ac_word; then 8804 for ac_exec_ext in '' $ac_executable_extensions; do
8805 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5866 ac_cv_path_CMP="$ac_dir/$ac_word" 8806 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
8807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5867 break 8808 break 2
5868 fi 8809 fi
5869 done 8810done
5870 IFS="$ac_save_ifs" 8811done
8812
5871 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" 8813 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5872 ;; 8814 ;;
5873esac 8815esac
5874fi 8816fi
5875CMP="$ac_cv_path_CMP" 8817CMP=$ac_cv_path_CMP
8818
5876if test -n "$CMP"; then 8819if test -n "$CMP"; then
5877 echo "$ac_t""$CMP" 1>&6 8820 echo "$as_me:$LINENO: result: $CMP" >&5
8821echo "${ECHO_T}$CMP" >&6
5878else 8822else
5879 echo "$ac_t""no" 1>&6 8823 echo "$as_me:$LINENO: result: no" >&5
8824echo "${ECHO_T}no" >&6
5880fi 8825fi
5881 8826
5882# Extract the first word of "tbl", so it can be a program name with args. 8827# Extract the first word of "tbl", so it can be a program name with args.
5883set dummy tbl; ac_word=$2 8828set dummy tbl; ac_word=$2
8829echo "$as_me:$LINENO: checking for $ac_word" >&5
5884echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5885echo "configure:5886: checking for $ac_word" >&5
5886if eval "test \"`echo '$''{'ac_cv_path_TBL'+set}'`\" = set"; then 8831if test "${ac_cv_path_TBL+set}" = set; then
5887 echo $ac_n "(cached) $ac_c" 1>&6 8832 echo $ECHO_N "(cached) $ECHO_C" >&6
5888else 8833else
5889 case "$TBL" in 8834 case $TBL in
5890 /*) 8835 [\\/]* | ?:[\\/]*)
5891 ac_cv_path_TBL="$TBL" # Let the user override the test with a path. 8836 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5892 ;; 8837 ;;
5893 ?:/*)
5894 ac_cv_path_TBL="$TBL" # Let the user override the test with a dos path.
5895 ;;
5896 *) 8838 *)
5897 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898 ac_dummy="$PATH" 8840for as_dir in $PATH
5899 for ac_dir in $ac_dummy; do 8841do
8842 IFS=$as_save_IFS
5900 test -z "$ac_dir" && ac_dir=. 8843 test -z "$as_dir" && as_dir=.
5901 if test -f $ac_dir/$ac_word; then 8844 for ac_exec_ext in '' $ac_executable_extensions; do
8845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5902 ac_cv_path_TBL="$ac_dir/$ac_word" 8846 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
8847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5903 break 8848 break 2
5904 fi 8849 fi
5905 done 8850done
5906 IFS="$ac_save_ifs" 8851done
8852
5907 ;; 8853 ;;
5908esac 8854esac
5909fi 8855fi
5910TBL="$ac_cv_path_TBL" 8856TBL=$ac_cv_path_TBL
8857
5911if test -n "$TBL"; then 8858if test -n "$TBL"; then
5912 echo "$ac_t""$TBL" 1>&6 8859 echo "$as_me:$LINENO: result: $TBL" >&5
8860echo "${ECHO_T}$TBL" >&6
5913else 8861else
5914 echo "$ac_t""no" 1>&6 8862 echo "$as_me:$LINENO: result: no" >&5
8863echo "${ECHO_T}no" >&6
5915fi 8864fi
5916 8865
5917 8866
5918 8867
5919 8868
5920# If we find X, set shell vars x_includes and x_libraries to the 8869echo "$as_me:$LINENO: checking for X" >&5
5921# paths, otherwise set no_x=yes.
5922# Uses ac_ vars as temps to allow command line to override cache and checks.
5923# --without-x overrides everything else, but does not touch the cache.
5924echo $ac_n "checking for X""... $ac_c" 1>&6 8870echo $ECHO_N "checking for X... $ECHO_C" >&6
5925echo "configure:5926: checking for X" >&5 8871
5926 8872
5927# Check whether --with-x or --without-x was given. 8873# Check whether --with-x or --without-x was given.
5928if test "${with_x+set}" = set; then 8874if test "${with_x+set}" = set; then
5929 withval="$with_x" 8875 withval="$with_x"
5930 : 8876
5931fi 8877fi;
5932
5933# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 8878# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5934if test "x$with_x" = xno; then 8879if test "x$with_x" = xno; then
5935 # The user explicitly disabled X. 8880 # The user explicitly disabled X.
5936 have_x=disabled 8881 have_x=disabled
5937else 8882else
5938 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then 8883 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5939 # Both variables are already set. 8884 # Both variables are already set.
5940 have_x=yes 8885 have_x=yes
5941 else 8886 else
5942if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then 8887 if test "${ac_cv_have_x+set}" = set; then
5943 echo $ac_n "(cached) $ac_c" 1>&6 8888 echo $ECHO_N "(cached) $ECHO_C" >&6
5944else 8889else
5945 # One or both of the vars are not set, and there is no cached value. 8890 # One or both of the vars are not set, and there is no cached value.
5946ac_x_includes=NO ac_x_libraries=NO 8891ac_x_includes=no ac_x_libraries=no
5947rm -fr conftestdir 8892rm -fr conftest.dir
5948if mkdir conftestdir; then 8893if mkdir conftest.dir; then
5949 cd conftestdir 8894 cd conftest.dir
5950 # Make sure to not put "make" in the Imakefile rules, since we grep it out. 8895 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5951 cat > Imakefile <<'EOF' 8896 cat >Imakefile <<'_ACEOF'
5952acfindx: 8897acfindx:
5953 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' 8898 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5954EOF 8899_ACEOF
5955 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 8900 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5956 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 8901 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5957 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 8902 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5958 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 8903 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5959 for ac_extension in a so sl; do 8904 for ac_extension in a so sl; do
5960 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && 8905 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5961 test -f $ac_im_libdir/libX11.$ac_extension; then 8906 test -f $ac_im_libdir/libX11.$ac_extension; then
5962 ac_im_usrlibdir=$ac_im_libdir; break 8907 ac_im_usrlibdir=$ac_im_libdir; break
5963 fi 8908 fi
5964 done 8909 done
5965 # Screen out bogus values from the imake configuration. They are 8910 # Screen out bogus values from the imake configuration. They are
5966 # bogus both because they are the default anyway, and because 8911 # bogus both because they are the default anyway, and because
5967 # using them would break gcc on systems where it needs fixed includes. 8912 # using them would break gcc on systems where it needs fixed includes.
5968 case "$ac_im_incroot" in 8913 case $ac_im_incroot in
5969 /usr/include) ;; 8914 /usr/include) ;;
5970 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; 8915 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5971 esac 8916 esac
5972 case "$ac_im_usrlibdir" in 8917 case $ac_im_usrlibdir in
5973 /usr/lib | /lib) ;; 8918 /usr/lib | /lib) ;;
5974 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; 8919 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5975 esac 8920 esac
5976 fi 8921 fi
5977 cd .. 8922 cd ..
5978 rm -fr conftestdir 8923 rm -fr conftest.dir
5979fi 8924fi
5980 8925
8926# Standard set of common directories for X headers.
8927# Check X11 before X11Rn because it is often a symlink to the current release.
8928ac_x_header_dirs='
8929/usr/X11/include
8930/usr/X11R6/include
8931/usr/X11R5/include
8932/usr/X11R4/include
8933
8934/usr/include/X11
8935/usr/include/X11R6
8936/usr/include/X11R5
8937/usr/include/X11R4
8938
8939/usr/local/X11/include
8940/usr/local/X11R6/include
8941/usr/local/X11R5/include
8942/usr/local/X11R4/include
8943
8944/usr/local/include/X11
8945/usr/local/include/X11R6
8946/usr/local/include/X11R5
8947/usr/local/include/X11R4
8948
8949/usr/X386/include
8950/usr/x386/include
8951/usr/XFree86/include/X11
8952
8953/usr/include
8954/usr/local/include
8955/usr/unsupported/include
8956/usr/athena/include
8957/usr/local/x11r5/include
8958/usr/lpp/Xamples/include
8959
8960/usr/openwin/include
8961/usr/openwin/share/include'
8962
5981if test "$ac_x_includes" = NO; then 8963if test "$ac_x_includes" = no; then
5982 # Guess where to find include files, by looking for this one X11 .h file. 8964 # Guess where to find include files, by looking for Intrinsic.h.
5983 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
5984
5985 # First, try using that file with no special directory specified. 8965 # First, try using that file with no special directory specified.
8966 cat >conftest.$ac_ext <<_ACEOF
8967/* confdefs.h. */
8968_ACEOF
8969cat confdefs.h >>conftest.$ac_ext
5986cat > conftest.$ac_ext <<EOF 8970cat >>conftest.$ac_ext <<_ACEOF
5987#line 5988 "configure" 8971/* end confdefs.h. */
5988#include "confdefs.h" 8972#include <X11/Intrinsic.h>
5989#include <$x_direct_test_include> 8973_ACEOF
5990EOF 8974if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5991ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8975 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5992{ (eval echo configure:5993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8976 ac_status=$?
5993ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8977 grep -v '^ *+' conftest.er1 >conftest.err
8978 rm -f conftest.er1
8979 cat conftest.err >&5
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); } >/dev/null; then
8982 if test -s conftest.err; then
8983 ac_cpp_err=$ac_cxx_preproc_warn_flag
8984 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8985 else
8986 ac_cpp_err=
8987 fi
8988else
8989 ac_cpp_err=yes
8990fi
5994if test -z "$ac_err"; then 8991if test -z "$ac_cpp_err"; then
5995 rm -rf conftest*
5996 # We can compile using X headers with no special include directory. 8992 # We can compile using X headers with no special include directory.
5997ac_x_includes= 8993ac_x_includes=
5998else 8994else
5999 echo "$ac_err" >&5
6000 echo "configure: failed program was:" >&5 8995 echo "$as_me: failed program was:" >&5
6001 cat conftest.$ac_ext >&5 8996sed 's/^/| /' conftest.$ac_ext >&5
6002 rm -rf conftest* 8997
6003 # Look for the header file in a standard set of common directories. 8998 for ac_dir in $ac_x_header_dirs; do
6004# Check X11 before X11Rn because it is often a symlink to the current release. 8999 if test -r "$ac_dir/X11/Intrinsic.h"; then
6005 for ac_dir in \
6006 /usr/X11/include \
6007 /usr/X11R6/include \
6008 /usr/X11R5/include \
6009 /usr/X11R4/include \
6010 \
6011 /usr/include/X11 \
6012 /usr/include/X11R6 \
6013 /usr/include/X11R5 \
6014 /usr/include/X11R4 \
6015 \
6016 /usr/local/X11/include \
6017 /usr/local/X11R6/include \
6018 /usr/local/X11R5/include \
6019 /usr/local/X11R4/include \
6020 \
6021 /usr/local/include/X11 \
6022 /usr/local/include/X11R6 \
6023 /usr/local/include/X11R5 \
6024 /usr/local/include/X11R4 \
6025 \
6026 /usr/X386/include \
6027 /usr/x386/include \
6028 /usr/XFree86/include/X11 \
6029 \
6030 /usr/include \
6031 /usr/local/include \
6032 /usr/unsupported/include \
6033 /usr/athena/include \
6034 /usr/local/x11r5/include \
6035 /usr/lpp/Xamples/include \
6036 \
6037 /usr/openwin/include \
6038 /usr/openwin/share/include \
6039 ; \
6040 do
6041 if test -r "$ac_dir/$x_direct_test_include"; then
6042 ac_x_includes=$ac_dir 9000 ac_x_includes=$ac_dir
6043 break 9001 break
6044 fi 9002 fi
6045 done 9003done
6046fi 9004fi
6047rm -f conftest* 9005rm -f conftest.err conftest.$ac_ext
6048fi # $ac_x_includes = NO 9006fi # $ac_x_includes = no
6049 9007
6050if test "$ac_x_libraries" = NO; then 9008if test "$ac_x_libraries" = no; then
6051 # Check for the libraries. 9009 # Check for the libraries.
6052
6053 test -z "$x_direct_test_library" && x_direct_test_library=Xt
6054 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
6055
6056 # See if we find them without any special options. 9010 # See if we find them without any special options.
6057 # Don't add to $LIBS permanently. 9011 # Don't add to $LIBS permanently.
6058 ac_save_LIBS="$LIBS" 9012 ac_save_LIBS=$LIBS
6059 LIBS="-l$x_direct_test_library $LIBS" 9013 LIBS="-lXt $LIBS"
9014 cat >conftest.$ac_ext <<_ACEOF
9015/* confdefs.h. */
9016_ACEOF
9017cat confdefs.h >>conftest.$ac_ext
6060cat > conftest.$ac_ext <<EOF 9018cat >>conftest.$ac_ext <<_ACEOF
6061#line 6062 "configure" 9019/* end confdefs.h. */
6062#include "confdefs.h" 9020#include <X11/Intrinsic.h>
6063 9021int
6064int main() { 9022main ()
6065${x_direct_test_function}() 9023{
9024XtMalloc (0)
9025 ;
6066; return 0; } 9026 return 0;
6067EOF 9027}
6068if { (eval echo configure:6069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9028_ACEOF
9029rm -f conftest.$ac_objext conftest$ac_exeext
9030if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9031 (eval $ac_link) 2>conftest.er1
9032 ac_status=$?
9033 grep -v '^ *+' conftest.er1 >conftest.err
6069 rm -rf conftest* 9034 rm -f conftest.er1
9035 cat conftest.err >&5
9036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037 (exit $ac_status); } &&
9038 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9040 (eval $ac_try) 2>&5
9041 ac_status=$?
9042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043 (exit $ac_status); }; } &&
9044 { ac_try='test -s conftest$ac_exeext'
9045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9046 (eval $ac_try) 2>&5
9047 ac_status=$?
9048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049 (exit $ac_status); }; }; then
6070 LIBS="$ac_save_LIBS" 9050 LIBS=$ac_save_LIBS
6071# We can link X programs with no special library path. 9051# We can link X programs with no special library path.
6072ac_x_libraries= 9052ac_x_libraries=
6073else 9053else
6074 echo "configure: failed program was:" >&5 9054 echo "$as_me: failed program was:" >&5
6075 cat conftest.$ac_ext >&5 9055sed 's/^/| /' conftest.$ac_ext >&5
6076 rm -rf conftest* 9056
6077 LIBS="$ac_save_LIBS" 9057LIBS=$ac_save_LIBS
6078# First see if replacing the include by lib works.
6079# Check X11 before X11Rn because it is often a symlink to the current release.
6080for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ 9058for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6081 /usr/X11/lib \
6082 /usr/X11R6/lib \
6083 /usr/X11R5/lib \
6084 /usr/X11R4/lib \
6085 \
6086 /usr/lib/X11 \
6087 /usr/lib/X11R6 \
6088 /usr/lib/X11R5 \
6089 /usr/lib/X11R4 \
6090 \
6091 /usr/local/X11/lib \
6092 /usr/local/X11R6/lib \
6093 /usr/local/X11R5/lib \
6094 /usr/local/X11R4/lib \
6095 \
6096 /usr/local/lib/X11 \
6097 /usr/local/lib/X11R6 \
6098 /usr/local/lib/X11R5 \
6099 /usr/local/lib/X11R4 \
6100 \
6101 /usr/X386/lib \
6102 /usr/x386/lib \
6103 /usr/XFree86/lib/X11 \
6104 \
6105 /usr/lib \
6106 /usr/local/lib \
6107 /usr/unsupported/lib \
6108 /usr/athena/lib \
6109 /usr/local/x11r5/lib \
6110 /usr/lpp/Xamples/lib \
6111 /lib/usr/lib/X11 \
6112 \
6113 /usr/openwin/lib \
6114 /usr/openwin/share/lib \
6115 ; \
6116do 9059do
9060 # Don't even attempt the hair of trying to link an X program!
6117 for ac_extension in a so sl; do 9061 for ac_extension in a so sl; do
6118 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then 9062 if test -r $ac_dir/libXt.$ac_extension; then
6119 ac_x_libraries=$ac_dir 9063 ac_x_libraries=$ac_dir
6120 break 2 9064 break 2
6121 fi 9065 fi
6122 done 9066 done
6123done 9067done
6124fi 9068fi
6125rm -f conftest* 9069rm -f conftest.err conftest.$ac_objext \
9070 conftest$ac_exeext conftest.$ac_ext
6126fi # $ac_x_libraries = NO 9071fi # $ac_x_libraries = no
6127 9072
6128if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then 9073if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6129 # Didn't find X anywhere. Cache the known absence of X. 9074 # Didn't find X anywhere. Cache the known absence of X.
6130 ac_cv_have_x="have_x=no" 9075 ac_cv_have_x="have_x=no"
6131else 9076else
6132 # Record where we found X for the cache. 9077 # Record where we found X for the cache.
6133 ac_cv_have_x="have_x=yes \ 9078 ac_cv_have_x="have_x=yes \
6134 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" 9079 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6135fi 9080fi
6136fi 9081fi
9082
6137 fi 9083 fi
6138 eval "$ac_cv_have_x" 9084 eval "$ac_cv_have_x"
6139fi # $with_x != no 9085fi # $with_x != no
6140 9086
6141if test "$have_x" != yes; then 9087if test "$have_x" != yes; then
6142 echo "$ac_t""$have_x" 1>&6 9088 echo "$as_me:$LINENO: result: $have_x" >&5
9089echo "${ECHO_T}$have_x" >&6
6143 no_x=yes 9090 no_x=yes
6144else 9091else
6145 # If each of the values was on the command line, it overrides each guess. 9092 # If each of the values was on the command line, it overrides each guess.
6146 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 9093 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6147 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 9094 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6148 # Update the cache value to reflect the command line values. 9095 # Update the cache value to reflect the command line values.
6149 ac_cv_have_x="have_x=yes \ 9096 ac_cv_have_x="have_x=yes \
6150 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" 9097 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9098 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6151 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 9099echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6152fi 9100fi
6153 9101
6154if test "$no_x" = yes; then 9102if test "$no_x" = yes; then
6155 # Not all programs may use this symbol, but it does not hurt to define it. 9103 # Not all programs may use this symbol, but it does not hurt to define it.
9104
6156 cat >> confdefs.h <<\EOF 9105cat >>confdefs.h <<\_ACEOF
6157#define X_DISPLAY_MISSING 1 9106#define X_DISPLAY_MISSING 1
6158EOF 9107_ACEOF
6159 9108
6160 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 9109 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6161else 9110else
6162 if test -n "$x_includes"; then 9111 if test -n "$x_includes"; then
6163 X_CFLAGS="$X_CFLAGS -I$x_includes" 9112 X_CFLAGS="$X_CFLAGS -I$x_includes"
6166 # It would also be nice to do this for all -L options, not just this one. 9115 # It would also be nice to do this for all -L options, not just this one.
6167 if test -n "$x_libraries"; then 9116 if test -n "$x_libraries"; then
6168 X_LIBS="$X_LIBS -L$x_libraries" 9117 X_LIBS="$X_LIBS -L$x_libraries"
6169 # For Solaris; some versions of Sun CC require a space after -R and 9118 # For Solaris; some versions of Sun CC require a space after -R and
6170 # others require no space. Words are not sufficient . . . . 9119 # others require no space. Words are not sufficient . . . .
6171 case "`(uname -sr) 2>/dev/null`" in 9120 case `(uname -sr) 2>/dev/null` in
6172 "SunOS 5"*) 9121 "SunOS 5"*)
9122 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6173 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 9123echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
6174echo "configure:6175: checking whether -R must be followed by a space" >&5
6175 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" 9124 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6176 cat > conftest.$ac_ext <<EOF 9125 cat >conftest.$ac_ext <<_ACEOF
6177#line 6178 "configure" 9126/* confdefs.h. */
6178#include "confdefs.h" 9127_ACEOF
9128cat confdefs.h >>conftest.$ac_ext
9129cat >>conftest.$ac_ext <<_ACEOF
9130/* end confdefs.h. */
6179 9131
6180int main() { 9132int
9133main ()
9134{
6181 9135
9136 ;
6182; return 0; } 9137 return 0;
6183EOF 9138}
6184if { (eval echo configure:6185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9139_ACEOF
9140rm -f conftest.$ac_objext conftest$ac_exeext
9141if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9142 (eval $ac_link) 2>conftest.er1
9143 ac_status=$?
9144 grep -v '^ *+' conftest.er1 >conftest.err
6185 rm -rf conftest* 9145 rm -f conftest.er1
9146 cat conftest.err >&5
9147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148 (exit $ac_status); } &&
9149 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9151 (eval $ac_try) 2>&5
9152 ac_status=$?
9153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9154 (exit $ac_status); }; } &&
9155 { ac_try='test -s conftest$ac_exeext'
9156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9157 (eval $ac_try) 2>&5
9158 ac_status=$?
9159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160 (exit $ac_status); }; }; then
6186 ac_R_nospace=yes 9161 ac_R_nospace=yes
6187else 9162else
6188 echo "configure: failed program was:" >&5 9163 echo "$as_me: failed program was:" >&5
6189 cat conftest.$ac_ext >&5 9164sed 's/^/| /' conftest.$ac_ext >&5
6190 rm -rf conftest* 9165
6191 ac_R_nospace=no 9166ac_R_nospace=no
6192fi 9167fi
6193rm -f conftest* 9168rm -f conftest.err conftest.$ac_objext \
9169 conftest$ac_exeext conftest.$ac_ext
6194 if test $ac_R_nospace = yes; then 9170 if test $ac_R_nospace = yes; then
6195 echo "$ac_t""no" 1>&6 9171 echo "$as_me:$LINENO: result: no" >&5
9172echo "${ECHO_T}no" >&6
6196 X_LIBS="$X_LIBS -R$x_libraries" 9173 X_LIBS="$X_LIBS -R$x_libraries"
6197 else 9174 else
6198 LIBS="$ac_xsave_LIBS -R $x_libraries" 9175 LIBS="$ac_xsave_LIBS -R $x_libraries"
6199 cat > conftest.$ac_ext <<EOF 9176 cat >conftest.$ac_ext <<_ACEOF
6200#line 6201 "configure" 9177/* confdefs.h. */
6201#include "confdefs.h" 9178_ACEOF
9179cat confdefs.h >>conftest.$ac_ext
9180cat >>conftest.$ac_ext <<_ACEOF
9181/* end confdefs.h. */
6202 9182
6203int main() { 9183int
9184main ()
9185{
6204 9186
9187 ;
6205; return 0; } 9188 return 0;
6206EOF 9189}
6207if { (eval echo configure:6208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9190_ACEOF
9191rm -f conftest.$ac_objext conftest$ac_exeext
9192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9193 (eval $ac_link) 2>conftest.er1
9194 ac_status=$?
9195 grep -v '^ *+' conftest.er1 >conftest.err
6208 rm -rf conftest* 9196 rm -f conftest.er1
9197 cat conftest.err >&5
9198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9199 (exit $ac_status); } &&
9200 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9202 (eval $ac_try) 2>&5
9203 ac_status=$?
9204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205 (exit $ac_status); }; } &&
9206 { ac_try='test -s conftest$ac_exeext'
9207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9208 (eval $ac_try) 2>&5
9209 ac_status=$?
9210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9211 (exit $ac_status); }; }; then
6209 ac_R_space=yes 9212 ac_R_space=yes
6210else 9213else
6211 echo "configure: failed program was:" >&5 9214 echo "$as_me: failed program was:" >&5
6212 cat conftest.$ac_ext >&5 9215sed 's/^/| /' conftest.$ac_ext >&5
6213 rm -rf conftest* 9216
6214 ac_R_space=no 9217ac_R_space=no
6215fi 9218fi
6216rm -f conftest* 9219rm -f conftest.err conftest.$ac_objext \
9220 conftest$ac_exeext conftest.$ac_ext
6217 if test $ac_R_space = yes; then 9221 if test $ac_R_space = yes; then
6218 echo "$ac_t""yes" 1>&6 9222 echo "$as_me:$LINENO: result: yes" >&5
9223echo "${ECHO_T}yes" >&6
6219 X_LIBS="$X_LIBS -R $x_libraries" 9224 X_LIBS="$X_LIBS -R $x_libraries"
6220 else 9225 else
9226 echo "$as_me:$LINENO: result: neither works" >&5
6221 echo "$ac_t""neither works" 1>&6 9227echo "${ECHO_T}neither works" >&6
6222 fi 9228 fi
6223 fi 9229 fi
6224 LIBS="$ac_xsave_LIBS" 9230 LIBS=$ac_xsave_LIBS
6225 esac 9231 esac
6226 fi 9232 fi
6227 9233
6228 # Check for system-dependent libraries X programs must link with. 9234 # Check for system-dependent libraries X programs must link with.
6229 # Do this before checking for the system-independent R6 libraries 9235 # Do this before checking for the system-independent R6 libraries
6230 # (-lICE), since we may need -lsocket or whatever for X linking. 9236 # (-lICE), since we may need -lsocket or whatever for X linking.
6231 9237
6232 if test "$ISC" = yes; then 9238 if test "$ISC" = yes; then
6233 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 9239 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6234 else 9240 else
6235 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X 9241 # Martyn Johnson says this is needed for Ultrix, if the X
6236 # libraries were built with DECnet support. And karl@cs.umb.edu says 9242 # libraries were built with DECnet support. And Karl Berry says
6237 # the Alpha needs dnet_stub (dnet does not exist). 9243 # the Alpha needs dnet_stub (dnet does not exist).
9244 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9245 cat >conftest.$ac_ext <<_ACEOF
9246/* confdefs.h. */
9247_ACEOF
9248cat confdefs.h >>conftest.$ac_ext
9249cat >>conftest.$ac_ext <<_ACEOF
9250/* end confdefs.h. */
9251
9252/* Override any gcc2 internal prototype to avoid an error. */
9253#ifdef __cplusplus
9254extern "C"
9255#endif
9256/* We use char because int might match the return type of a gcc2
9257 builtin and then its argument prototype would still apply. */
9258char XOpenDisplay ();
9259int
9260main ()
9261{
9262XOpenDisplay ();
9263 ;
9264 return 0;
9265}
9266_ACEOF
9267rm -f conftest.$ac_objext conftest$ac_exeext
9268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9269 (eval $ac_link) 2>conftest.er1
9270 ac_status=$?
9271 grep -v '^ *+' conftest.er1 >conftest.err
9272 rm -f conftest.er1
9273 cat conftest.err >&5
9274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9275 (exit $ac_status); } &&
9276 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9278 (eval $ac_try) 2>&5
9279 ac_status=$?
9280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281 (exit $ac_status); }; } &&
9282 { ac_try='test -s conftest$ac_exeext'
9283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9284 (eval $ac_try) 2>&5
9285 ac_status=$?
9286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287 (exit $ac_status); }; }; then
9288 :
9289else
9290 echo "$as_me: failed program was:" >&5
9291sed 's/^/| /' conftest.$ac_ext >&5
9292
9293echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6238 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 9294echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6239echo "configure:6240: checking for dnet_ntoa in -ldnet" >&5 9295if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6240ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6241if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6242 echo $ac_n "(cached) $ac_c" 1>&6 9296 echo $ECHO_N "(cached) $ECHO_C" >&6
6243else 9297else
6244 ac_save_LIBS="$LIBS" 9298 ac_check_lib_save_LIBS=$LIBS
6245LIBS="-ldnet $LIBS" 9299LIBS="-ldnet $LIBS"
6246cat > conftest.$ac_ext <<EOF 9300cat >conftest.$ac_ext <<_ACEOF
6247#line 6248 "configure" 9301/* confdefs.h. */
6248#include "confdefs.h" 9302_ACEOF
9303cat confdefs.h >>conftest.$ac_ext
9304cat >>conftest.$ac_ext <<_ACEOF
9305/* end confdefs.h. */
9306
6249/* Override any gcc2 internal prototype to avoid an error. */ 9307/* Override any gcc2 internal prototype to avoid an error. */
9308#ifdef __cplusplus
9309extern "C"
9310#endif
6250/* We use char because int might match the return type of a gcc2 9311/* We use char because int might match the return type of a gcc2
6251 builtin and then its argument prototype would still apply. */ 9312 builtin and then its argument prototype would still apply. */
6252char dnet_ntoa(); 9313char dnet_ntoa ();
6253 9314int
6254int main() { 9315main ()
9316{
6255dnet_ntoa() 9317dnet_ntoa ();
9318 ;
6256; return 0; } 9319 return 0;
6257EOF 9320}
6258if { (eval echo configure:6259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9321_ACEOF
9322rm -f conftest.$ac_objext conftest$ac_exeext
9323if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9324 (eval $ac_link) 2>conftest.er1
9325 ac_status=$?
9326 grep -v '^ *+' conftest.er1 >conftest.err
6259 rm -rf conftest* 9327 rm -f conftest.er1
6260 eval "ac_cv_lib_$ac_lib_var=yes" 9328 cat conftest.err >&5
9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330 (exit $ac_status); } &&
9331 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9333 (eval $ac_try) 2>&5
9334 ac_status=$?
9335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336 (exit $ac_status); }; } &&
9337 { ac_try='test -s conftest$ac_exeext'
9338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9339 (eval $ac_try) 2>&5
9340 ac_status=$?
9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342 (exit $ac_status); }; }; then
9343 ac_cv_lib_dnet_dnet_ntoa=yes
6261else 9344else
6262 echo "configure: failed program was:" >&5 9345 echo "$as_me: failed program was:" >&5
6263 cat conftest.$ac_ext >&5 9346sed 's/^/| /' conftest.$ac_ext >&5
6264 rm -rf conftest* 9347
6265 eval "ac_cv_lib_$ac_lib_var=no" 9348ac_cv_lib_dnet_dnet_ntoa=no
6266fi 9349fi
6267rm -f conftest* 9350rm -f conftest.err conftest.$ac_objext \
9351 conftest$ac_exeext conftest.$ac_ext
6268LIBS="$ac_save_LIBS" 9352LIBS=$ac_check_lib_save_LIBS
6269
6270fi 9353fi
6271if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 9354echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6272 echo "$ac_t""yes" 1>&6 9355echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9356if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6273 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 9357 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6274else
6275 echo "$ac_t""no" 1>&6
6276fi 9358fi
6277 9359
6278 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 9360 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9361 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6279 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 9362echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
6280echo "configure:6281: checking for dnet_ntoa in -ldnet_stub" >&5 9363if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6281ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6282if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6283 echo $ac_n "(cached) $ac_c" 1>&6 9364 echo $ECHO_N "(cached) $ECHO_C" >&6
6284else 9365else
6285 ac_save_LIBS="$LIBS" 9366 ac_check_lib_save_LIBS=$LIBS
6286LIBS="-ldnet_stub $LIBS" 9367LIBS="-ldnet_stub $LIBS"
6287cat > conftest.$ac_ext <<EOF 9368cat >conftest.$ac_ext <<_ACEOF
6288#line 6289 "configure" 9369/* confdefs.h. */
6289#include "confdefs.h" 9370_ACEOF
9371cat confdefs.h >>conftest.$ac_ext
9372cat >>conftest.$ac_ext <<_ACEOF
9373/* end confdefs.h. */
9374
6290/* Override any gcc2 internal prototype to avoid an error. */ 9375/* Override any gcc2 internal prototype to avoid an error. */
9376#ifdef __cplusplus
9377extern "C"
9378#endif
6291/* We use char because int might match the return type of a gcc2 9379/* We use char because int might match the return type of a gcc2
6292 builtin and then its argument prototype would still apply. */ 9380 builtin and then its argument prototype would still apply. */
6293char dnet_ntoa(); 9381char dnet_ntoa ();
6294 9382int
6295int main() { 9383main ()
9384{
6296dnet_ntoa() 9385dnet_ntoa ();
9386 ;
6297; return 0; } 9387 return 0;
6298EOF 9388}
6299if { (eval echo configure:6300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9389_ACEOF
9390rm -f conftest.$ac_objext conftest$ac_exeext
9391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9392 (eval $ac_link) 2>conftest.er1
9393 ac_status=$?
9394 grep -v '^ *+' conftest.er1 >conftest.err
6300 rm -rf conftest* 9395 rm -f conftest.er1
6301 eval "ac_cv_lib_$ac_lib_var=yes" 9396 cat conftest.err >&5
9397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398 (exit $ac_status); } &&
9399 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9401 (eval $ac_try) 2>&5
9402 ac_status=$?
9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); }; } &&
9405 { ac_try='test -s conftest$ac_exeext'
9406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9407 (eval $ac_try) 2>&5
9408 ac_status=$?
9409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410 (exit $ac_status); }; }; then
9411 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6302else 9412else
6303 echo "configure: failed program was:" >&5 9413 echo "$as_me: failed program was:" >&5
6304 cat conftest.$ac_ext >&5 9414sed 's/^/| /' conftest.$ac_ext >&5
6305 rm -rf conftest* 9415
6306 eval "ac_cv_lib_$ac_lib_var=no" 9416ac_cv_lib_dnet_stub_dnet_ntoa=no
6307fi 9417fi
6308rm -f conftest* 9418rm -f conftest.err conftest.$ac_objext \
9419 conftest$ac_exeext conftest.$ac_ext
6309LIBS="$ac_save_LIBS" 9420LIBS=$ac_check_lib_save_LIBS
6310
6311fi 9421fi
6312if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 9422echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6313 echo "$ac_t""yes" 1>&6 9423echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
9424if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
6314 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 9425 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6315else
6316 echo "$ac_t""no" 1>&6
6317fi 9426fi
6318 9427
6319 fi 9428 fi
9429fi
9430rm -f conftest.err conftest.$ac_objext \
9431 conftest$ac_exeext conftest.$ac_ext
9432 LIBS="$ac_xsave_LIBS"
6320 9433
6321 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 9434 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6322 # to get the SysV transport functions. 9435 # to get the SysV transport functions.
6323 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) 9436 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6324 # needs -lnsl. 9437 # needs -lnsl.
6325 # The nsl library prevents programs from opening the X display 9438 # The nsl library prevents programs from opening the X display
6326 # on Irix 5.2, according to dickey@clark.net. 9439 # on Irix 5.2, according to T.E. Dickey.
9440 # The functions gethostbyname, getservbyname, and inet_addr are
9441 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
9442 echo "$as_me:$LINENO: checking for gethostbyname" >&5
6327 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 9443echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
6328echo "configure:6329: checking for gethostbyname" >&5
6329if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then 9444if test "${ac_cv_func_gethostbyname+set}" = set; then
6330 echo $ac_n "(cached) $ac_c" 1>&6 9445 echo $ECHO_N "(cached) $ECHO_C" >&6
6331else 9446else
6332 cat > conftest.$ac_ext <<EOF 9447 cat >conftest.$ac_ext <<_ACEOF
6333#line 6334 "configure" 9448/* confdefs.h. */
6334#include "confdefs.h" 9449_ACEOF
9450cat confdefs.h >>conftest.$ac_ext
9451cat >>conftest.$ac_ext <<_ACEOF
9452/* end confdefs.h. */
9453/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
9454 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9455#define gethostbyname innocuous_gethostbyname
9456
6335/* System header to define __stub macros and hopefully few prototypes, 9457/* System header to define __stub macros and hopefully few prototypes,
6336 which can conflict with char gethostbyname(); below. */ 9458 which can conflict with char gethostbyname (); below.
9459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9460 <limits.h> exists even on freestanding compilers. */
9461
9462#ifdef __STDC__
9463# include <limits.h>
9464#else
6337#include <assert.h> 9465# include <assert.h>
9466#endif
9467
9468#undef gethostbyname
9469
6338/* Override any gcc2 internal prototype to avoid an error. */ 9470/* Override any gcc2 internal prototype to avoid an error. */
9471#ifdef __cplusplus
9472extern "C"
9473{
9474#endif
6339/* We use char because int might match the return type of a gcc2 9475/* We use char because int might match the return type of a gcc2
6340 builtin and then its argument prototype would still apply. */ 9476 builtin and then its argument prototype would still apply. */
6341char gethostbyname(); 9477char gethostbyname ();
6342
6343int main() {
6344
6345/* The GNU C library defines this for functions which it implements 9478/* The GNU C library defines this for functions which it implements
6346 to always fail with ENOSYS. Some functions are actually named 9479 to always fail with ENOSYS. Some functions are actually named
6347 something starting with __ and the normal name is an alias. */ 9480 something starting with __ and the normal name is an alias. */
6348#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) 9481#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6349choke me 9482choke me
6350#else 9483#else
6351gethostbyname(); 9484char (*f) () = gethostbyname;
6352#endif 9485#endif
9486#ifdef __cplusplus
9487}
9488#endif
6353 9489
9490int
9491main ()
9492{
9493return f != gethostbyname;
9494 ;
6354; return 0; } 9495 return 0;
6355EOF 9496}
6356if { (eval echo configure:6357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9497_ACEOF
9498rm -f conftest.$ac_objext conftest$ac_exeext
9499if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9500 (eval $ac_link) 2>conftest.er1
9501 ac_status=$?
9502 grep -v '^ *+' conftest.er1 >conftest.err
6357 rm -rf conftest* 9503 rm -f conftest.er1
9504 cat conftest.err >&5
9505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506 (exit $ac_status); } &&
9507 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9509 (eval $ac_try) 2>&5
9510 ac_status=$?
9511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512 (exit $ac_status); }; } &&
9513 { ac_try='test -s conftest$ac_exeext'
9514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9515 (eval $ac_try) 2>&5
9516 ac_status=$?
9517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518 (exit $ac_status); }; }; then
6358 eval "ac_cv_func_gethostbyname=yes" 9519 ac_cv_func_gethostbyname=yes
6359else 9520else
6360 echo "configure: failed program was:" >&5 9521 echo "$as_me: failed program was:" >&5
6361 cat conftest.$ac_ext >&5 9522sed 's/^/| /' conftest.$ac_ext >&5
6362 rm -rf conftest* 9523
6363 eval "ac_cv_func_gethostbyname=no" 9524ac_cv_func_gethostbyname=no
6364fi 9525fi
6365rm -f conftest* 9526rm -f conftest.err conftest.$ac_objext \
9527 conftest$ac_exeext conftest.$ac_ext
6366fi 9528fi
6367 9529echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6368if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then 9530echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
6369 echo "$ac_t""yes" 1>&6
6370 :
6371else
6372 echo "$ac_t""no" 1>&6
6373fi
6374 9531
6375 if test $ac_cv_func_gethostbyname = no; then 9532 if test $ac_cv_func_gethostbyname = no; then
9533 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6376 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 9534echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6377echo "configure:6378: checking for gethostbyname in -lnsl" >&5 9535if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6378ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
6379if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6380 echo $ac_n "(cached) $ac_c" 1>&6 9536 echo $ECHO_N "(cached) $ECHO_C" >&6
6381else 9537else
6382 ac_save_LIBS="$LIBS" 9538 ac_check_lib_save_LIBS=$LIBS
6383LIBS="-lnsl $LIBS" 9539LIBS="-lnsl $LIBS"
6384cat > conftest.$ac_ext <<EOF 9540cat >conftest.$ac_ext <<_ACEOF
6385#line 6386 "configure" 9541/* confdefs.h. */
6386#include "confdefs.h" 9542_ACEOF
9543cat confdefs.h >>conftest.$ac_ext
9544cat >>conftest.$ac_ext <<_ACEOF
9545/* end confdefs.h. */
9546
6387/* Override any gcc2 internal prototype to avoid an error. */ 9547/* Override any gcc2 internal prototype to avoid an error. */
9548#ifdef __cplusplus
9549extern "C"
9550#endif
6388/* We use char because int might match the return type of a gcc2 9551/* We use char because int might match the return type of a gcc2
6389 builtin and then its argument prototype would still apply. */ 9552 builtin and then its argument prototype would still apply. */
6390char gethostbyname(); 9553char gethostbyname ();
6391 9554int
6392int main() { 9555main ()
9556{
6393gethostbyname() 9557gethostbyname ();
9558 ;
6394; return 0; } 9559 return 0;
6395EOF 9560}
6396if { (eval echo configure:6397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9561_ACEOF
9562rm -f conftest.$ac_objext conftest$ac_exeext
9563if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9564 (eval $ac_link) 2>conftest.er1
9565 ac_status=$?
9566 grep -v '^ *+' conftest.er1 >conftest.err
6397 rm -rf conftest* 9567 rm -f conftest.er1
6398 eval "ac_cv_lib_$ac_lib_var=yes" 9568 cat conftest.err >&5
9569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570 (exit $ac_status); } &&
9571 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9573 (eval $ac_try) 2>&5
9574 ac_status=$?
9575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576 (exit $ac_status); }; } &&
9577 { ac_try='test -s conftest$ac_exeext'
9578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9579 (eval $ac_try) 2>&5
9580 ac_status=$?
9581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582 (exit $ac_status); }; }; then
9583 ac_cv_lib_nsl_gethostbyname=yes
6399else 9584else
6400 echo "configure: failed program was:" >&5 9585 echo "$as_me: failed program was:" >&5
6401 cat conftest.$ac_ext >&5 9586sed 's/^/| /' conftest.$ac_ext >&5
6402 rm -rf conftest* 9587
6403 eval "ac_cv_lib_$ac_lib_var=no" 9588ac_cv_lib_nsl_gethostbyname=no
6404fi 9589fi
6405rm -f conftest* 9590rm -f conftest.err conftest.$ac_objext \
9591 conftest$ac_exeext conftest.$ac_ext
6406LIBS="$ac_save_LIBS" 9592LIBS=$ac_check_lib_save_LIBS
6407
6408fi 9593fi
6409if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 9594echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6410 echo "$ac_t""yes" 1>&6 9595echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9596if test $ac_cv_lib_nsl_gethostbyname = yes; then
6411 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 9597 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6412else
6413 echo "$ac_t""no" 1>&6
6414fi 9598fi
6415 9599
9600 if test $ac_cv_lib_nsl_gethostbyname = no; then
9601 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
9602echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9603if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9604 echo $ECHO_N "(cached) $ECHO_C" >&6
9605else
9606 ac_check_lib_save_LIBS=$LIBS
9607LIBS="-lbsd $LIBS"
9608cat >conftest.$ac_ext <<_ACEOF
9609/* confdefs.h. */
9610_ACEOF
9611cat confdefs.h >>conftest.$ac_ext
9612cat >>conftest.$ac_ext <<_ACEOF
9613/* end confdefs.h. */
9614
9615/* Override any gcc2 internal prototype to avoid an error. */
9616#ifdef __cplusplus
9617extern "C"
9618#endif
9619/* We use char because int might match the return type of a gcc2
9620 builtin and then its argument prototype would still apply. */
9621char gethostbyname ();
9622int
9623main ()
9624{
9625gethostbyname ();
9626 ;
9627 return 0;
9628}
9629_ACEOF
9630rm -f conftest.$ac_objext conftest$ac_exeext
9631if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9632 (eval $ac_link) 2>conftest.er1
9633 ac_status=$?
9634 grep -v '^ *+' conftest.er1 >conftest.err
9635 rm -f conftest.er1
9636 cat conftest.err >&5
9637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638 (exit $ac_status); } &&
9639 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9641 (eval $ac_try) 2>&5
9642 ac_status=$?
9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 (exit $ac_status); }; } &&
9645 { ac_try='test -s conftest$ac_exeext'
9646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9647 (eval $ac_try) 2>&5
9648 ac_status=$?
9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650 (exit $ac_status); }; }; then
9651 ac_cv_lib_bsd_gethostbyname=yes
9652else
9653 echo "$as_me: failed program was:" >&5
9654sed 's/^/| /' conftest.$ac_ext >&5
9655
9656ac_cv_lib_bsd_gethostbyname=no
9657fi
9658rm -f conftest.err conftest.$ac_objext \
9659 conftest$ac_exeext conftest.$ac_ext
9660LIBS=$ac_check_lib_save_LIBS
9661fi
9662echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
9663echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
9664if test $ac_cv_lib_bsd_gethostbyname = yes; then
9665 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9666fi
9667
9668 fi
6416 fi 9669 fi
6417 9670
6418 # lieder@skyler.mavd.honeywell.com says without -lsocket, 9671 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6419 # socket/setsockopt and other routines are undefined under SCO ODT 9672 # socket/setsockopt and other routines are undefined under SCO ODT
6420 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 9673 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6421 # on later versions), says simon@lia.di.epfl.ch: it contains 9674 # on later versions), says Simon Leinen: it contains gethostby*
6422 # gethostby* variants that don't use the nameserver (or something). 9675 # variants that don't use the name server (or something). -lsocket
6423 # -lsocket must be given before -lnsl if both are needed. 9676 # must be given before -lnsl if both are needed. We assume that
6424 # We assume that if connect needs -lnsl, so does gethostbyname. 9677 # if connect needs -lnsl, so does gethostbyname.
9678 echo "$as_me:$LINENO: checking for connect" >&5
6425 echo $ac_n "checking for connect""... $ac_c" 1>&6 9679echo $ECHO_N "checking for connect... $ECHO_C" >&6
6426echo "configure:6427: checking for connect" >&5
6427if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then 9680if test "${ac_cv_func_connect+set}" = set; then
6428 echo $ac_n "(cached) $ac_c" 1>&6 9681 echo $ECHO_N "(cached) $ECHO_C" >&6
6429else 9682else
6430 cat > conftest.$ac_ext <<EOF 9683 cat >conftest.$ac_ext <<_ACEOF
6431#line 6432 "configure" 9684/* confdefs.h. */
6432#include "confdefs.h" 9685_ACEOF
9686cat confdefs.h >>conftest.$ac_ext
9687cat >>conftest.$ac_ext <<_ACEOF
9688/* end confdefs.h. */
9689/* Define connect to an innocuous variant, in case <limits.h> declares connect.
9690 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9691#define connect innocuous_connect
9692
6433/* System header to define __stub macros and hopefully few prototypes, 9693/* System header to define __stub macros and hopefully few prototypes,
6434 which can conflict with char connect(); below. */ 9694 which can conflict with char connect (); below.
9695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9696 <limits.h> exists even on freestanding compilers. */
9697
9698#ifdef __STDC__
9699# include <limits.h>
9700#else
6435#include <assert.h> 9701# include <assert.h>
9702#endif
9703
9704#undef connect
9705
6436/* Override any gcc2 internal prototype to avoid an error. */ 9706/* Override any gcc2 internal prototype to avoid an error. */
9707#ifdef __cplusplus
9708extern "C"
9709{
9710#endif
6437/* We use char because int might match the return type of a gcc2 9711/* We use char because int might match the return type of a gcc2
6438 builtin and then its argument prototype would still apply. */ 9712 builtin and then its argument prototype would still apply. */
6439char connect(); 9713char connect ();
6440
6441int main() {
6442
6443/* The GNU C library defines this for functions which it implements 9714/* The GNU C library defines this for functions which it implements
6444 to always fail with ENOSYS. Some functions are actually named 9715 to always fail with ENOSYS. Some functions are actually named
6445 something starting with __ and the normal name is an alias. */ 9716 something starting with __ and the normal name is an alias. */
6446#if defined (__stub_connect) || defined (__stub___connect) 9717#if defined (__stub_connect) || defined (__stub___connect)
6447choke me 9718choke me
6448#else 9719#else
6449connect(); 9720char (*f) () = connect;
6450#endif 9721#endif
9722#ifdef __cplusplus
9723}
9724#endif
6451 9725
9726int
9727main ()
9728{
9729return f != connect;
9730 ;
6452; return 0; } 9731 return 0;
6453EOF 9732}
6454if { (eval echo configure:6455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9733_ACEOF
9734rm -f conftest.$ac_objext conftest$ac_exeext
9735if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9736 (eval $ac_link) 2>conftest.er1
9737 ac_status=$?
9738 grep -v '^ *+' conftest.er1 >conftest.err
6455 rm -rf conftest* 9739 rm -f conftest.er1
9740 cat conftest.err >&5
9741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742 (exit $ac_status); } &&
9743 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9745 (eval $ac_try) 2>&5
9746 ac_status=$?
9747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748 (exit $ac_status); }; } &&
9749 { ac_try='test -s conftest$ac_exeext'
9750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9751 (eval $ac_try) 2>&5
9752 ac_status=$?
9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754 (exit $ac_status); }; }; then
6456 eval "ac_cv_func_connect=yes" 9755 ac_cv_func_connect=yes
6457else 9756else
6458 echo "configure: failed program was:" >&5 9757 echo "$as_me: failed program was:" >&5
6459 cat conftest.$ac_ext >&5 9758sed 's/^/| /' conftest.$ac_ext >&5
6460 rm -rf conftest* 9759
6461 eval "ac_cv_func_connect=no" 9760ac_cv_func_connect=no
6462fi 9761fi
6463rm -f conftest* 9762rm -f conftest.err conftest.$ac_objext \
9763 conftest$ac_exeext conftest.$ac_ext
6464fi 9764fi
6465 9765echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6466if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then 9766echo "${ECHO_T}$ac_cv_func_connect" >&6
6467 echo "$ac_t""yes" 1>&6
6468 :
6469else
6470 echo "$ac_t""no" 1>&6
6471fi
6472 9767
6473 if test $ac_cv_func_connect = no; then 9768 if test $ac_cv_func_connect = no; then
9769 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6474 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 9770echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6475echo "configure:6476: checking for connect in -lsocket" >&5 9771if test "${ac_cv_lib_socket_connect+set}" = set; then
6476ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
6477if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6478 echo $ac_n "(cached) $ac_c" 1>&6 9772 echo $ECHO_N "(cached) $ECHO_C" >&6
6479else 9773else
6480 ac_save_LIBS="$LIBS" 9774 ac_check_lib_save_LIBS=$LIBS
6481LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 9775LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6482cat > conftest.$ac_ext <<EOF 9776cat >conftest.$ac_ext <<_ACEOF
6483#line 6484 "configure" 9777/* confdefs.h. */
6484#include "confdefs.h" 9778_ACEOF
9779cat confdefs.h >>conftest.$ac_ext
9780cat >>conftest.$ac_ext <<_ACEOF
9781/* end confdefs.h. */
9782
6485/* Override any gcc2 internal prototype to avoid an error. */ 9783/* Override any gcc2 internal prototype to avoid an error. */
9784#ifdef __cplusplus
9785extern "C"
9786#endif
6486/* We use char because int might match the return type of a gcc2 9787/* We use char because int might match the return type of a gcc2
6487 builtin and then its argument prototype would still apply. */ 9788 builtin and then its argument prototype would still apply. */
6488char connect(); 9789char connect ();
6489 9790int
6490int main() { 9791main ()
9792{
6491connect() 9793connect ();
9794 ;
6492; return 0; } 9795 return 0;
6493EOF 9796}
6494if { (eval echo configure:6495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9797_ACEOF
9798rm -f conftest.$ac_objext conftest$ac_exeext
9799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9800 (eval $ac_link) 2>conftest.er1
9801 ac_status=$?
9802 grep -v '^ *+' conftest.er1 >conftest.err
6495 rm -rf conftest* 9803 rm -f conftest.er1
6496 eval "ac_cv_lib_$ac_lib_var=yes" 9804 cat conftest.err >&5
9805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806 (exit $ac_status); } &&
9807 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9809 (eval $ac_try) 2>&5
9810 ac_status=$?
9811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812 (exit $ac_status); }; } &&
9813 { ac_try='test -s conftest$ac_exeext'
9814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9815 (eval $ac_try) 2>&5
9816 ac_status=$?
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); }; }; then
9819 ac_cv_lib_socket_connect=yes
6497else 9820else
6498 echo "configure: failed program was:" >&5 9821 echo "$as_me: failed program was:" >&5
6499 cat conftest.$ac_ext >&5 9822sed 's/^/| /' conftest.$ac_ext >&5
6500 rm -rf conftest* 9823
6501 eval "ac_cv_lib_$ac_lib_var=no" 9824ac_cv_lib_socket_connect=no
6502fi 9825fi
6503rm -f conftest* 9826rm -f conftest.err conftest.$ac_objext \
9827 conftest$ac_exeext conftest.$ac_ext
6504LIBS="$ac_save_LIBS" 9828LIBS=$ac_check_lib_save_LIBS
6505
6506fi 9829fi
6507if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 9830echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6508 echo "$ac_t""yes" 1>&6 9831echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
9832if test $ac_cv_lib_socket_connect = yes; then
6509 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 9833 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6510else
6511 echo "$ac_t""no" 1>&6
6512fi 9834fi
6513 9835
6514 fi 9836 fi
6515 9837
6516 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. 9838 # Guillermo Gomez says -lposix is necessary on A/UX.
9839 echo "$as_me:$LINENO: checking for remove" >&5
6517 echo $ac_n "checking for remove""... $ac_c" 1>&6 9840echo $ECHO_N "checking for remove... $ECHO_C" >&6
6518echo "configure:6519: checking for remove" >&5
6519if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then 9841if test "${ac_cv_func_remove+set}" = set; then
6520 echo $ac_n "(cached) $ac_c" 1>&6 9842 echo $ECHO_N "(cached) $ECHO_C" >&6
6521else 9843else
6522 cat > conftest.$ac_ext <<EOF 9844 cat >conftest.$ac_ext <<_ACEOF
6523#line 6524 "configure" 9845/* confdefs.h. */
6524#include "confdefs.h" 9846_ACEOF
9847cat confdefs.h >>conftest.$ac_ext
9848cat >>conftest.$ac_ext <<_ACEOF
9849/* end confdefs.h. */
9850/* Define remove to an innocuous variant, in case <limits.h> declares remove.
9851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9852#define remove innocuous_remove
9853
6525/* System header to define __stub macros and hopefully few prototypes, 9854/* System header to define __stub macros and hopefully few prototypes,
6526 which can conflict with char remove(); below. */ 9855 which can conflict with char remove (); below.
9856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9857 <limits.h> exists even on freestanding compilers. */
9858
9859#ifdef __STDC__
9860# include <limits.h>
9861#else
6527#include <assert.h> 9862# include <assert.h>
9863#endif
9864
9865#undef remove
9866
6528/* Override any gcc2 internal prototype to avoid an error. */ 9867/* Override any gcc2 internal prototype to avoid an error. */
9868#ifdef __cplusplus
9869extern "C"
9870{
9871#endif
6529/* We use char because int might match the return type of a gcc2 9872/* We use char because int might match the return type of a gcc2
6530 builtin and then its argument prototype would still apply. */ 9873 builtin and then its argument prototype would still apply. */
6531char remove(); 9874char remove ();
6532
6533int main() {
6534
6535/* The GNU C library defines this for functions which it implements 9875/* The GNU C library defines this for functions which it implements
6536 to always fail with ENOSYS. Some functions are actually named 9876 to always fail with ENOSYS. Some functions are actually named
6537 something starting with __ and the normal name is an alias. */ 9877 something starting with __ and the normal name is an alias. */
6538#if defined (__stub_remove) || defined (__stub___remove) 9878#if defined (__stub_remove) || defined (__stub___remove)
6539choke me 9879choke me
6540#else 9880#else
6541remove(); 9881char (*f) () = remove;
6542#endif 9882#endif
9883#ifdef __cplusplus
9884}
9885#endif
6543 9886
9887int
9888main ()
9889{
9890return f != remove;
9891 ;
6544; return 0; } 9892 return 0;
6545EOF 9893}
6546if { (eval echo configure:6547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9894_ACEOF
9895rm -f conftest.$ac_objext conftest$ac_exeext
9896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9897 (eval $ac_link) 2>conftest.er1
9898 ac_status=$?
9899 grep -v '^ *+' conftest.er1 >conftest.err
6547 rm -rf conftest* 9900 rm -f conftest.er1
9901 cat conftest.err >&5
9902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903 (exit $ac_status); } &&
9904 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9906 (eval $ac_try) 2>&5
9907 ac_status=$?
9908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909 (exit $ac_status); }; } &&
9910 { ac_try='test -s conftest$ac_exeext'
9911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9912 (eval $ac_try) 2>&5
9913 ac_status=$?
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); }; }; then
6548 eval "ac_cv_func_remove=yes" 9916 ac_cv_func_remove=yes
6549else 9917else
6550 echo "configure: failed program was:" >&5 9918 echo "$as_me: failed program was:" >&5
6551 cat conftest.$ac_ext >&5 9919sed 's/^/| /' conftest.$ac_ext >&5
6552 rm -rf conftest* 9920
6553 eval "ac_cv_func_remove=no" 9921ac_cv_func_remove=no
6554fi 9922fi
6555rm -f conftest* 9923rm -f conftest.err conftest.$ac_objext \
9924 conftest$ac_exeext conftest.$ac_ext
6556fi 9925fi
6557 9926echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6558if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then 9927echo "${ECHO_T}$ac_cv_func_remove" >&6
6559 echo "$ac_t""yes" 1>&6
6560 :
6561else
6562 echo "$ac_t""no" 1>&6
6563fi
6564 9928
6565 if test $ac_cv_func_remove = no; then 9929 if test $ac_cv_func_remove = no; then
9930 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6566 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 9931echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
6567echo "configure:6568: checking for remove in -lposix" >&5 9932if test "${ac_cv_lib_posix_remove+set}" = set; then
6568ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
6569if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6570 echo $ac_n "(cached) $ac_c" 1>&6 9933 echo $ECHO_N "(cached) $ECHO_C" >&6
6571else 9934else
6572 ac_save_LIBS="$LIBS" 9935 ac_check_lib_save_LIBS=$LIBS
6573LIBS="-lposix $LIBS" 9936LIBS="-lposix $LIBS"
6574cat > conftest.$ac_ext <<EOF 9937cat >conftest.$ac_ext <<_ACEOF
6575#line 6576 "configure" 9938/* confdefs.h. */
6576#include "confdefs.h" 9939_ACEOF
9940cat confdefs.h >>conftest.$ac_ext
9941cat >>conftest.$ac_ext <<_ACEOF
9942/* end confdefs.h. */
9943
6577/* Override any gcc2 internal prototype to avoid an error. */ 9944/* Override any gcc2 internal prototype to avoid an error. */
9945#ifdef __cplusplus
9946extern "C"
9947#endif
6578/* We use char because int might match the return type of a gcc2 9948/* We use char because int might match the return type of a gcc2
6579 builtin and then its argument prototype would still apply. */ 9949 builtin and then its argument prototype would still apply. */
6580char remove(); 9950char remove ();
6581 9951int
6582int main() { 9952main ()
9953{
6583remove() 9954remove ();
9955 ;
6584; return 0; } 9956 return 0;
6585EOF 9957}
6586if { (eval echo configure:6587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9958_ACEOF
9959rm -f conftest.$ac_objext conftest$ac_exeext
9960if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9961 (eval $ac_link) 2>conftest.er1
9962 ac_status=$?
9963 grep -v '^ *+' conftest.er1 >conftest.err
6587 rm -rf conftest* 9964 rm -f conftest.er1
6588 eval "ac_cv_lib_$ac_lib_var=yes" 9965 cat conftest.err >&5
9966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967 (exit $ac_status); } &&
9968 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9970 (eval $ac_try) 2>&5
9971 ac_status=$?
9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); }; } &&
9974 { ac_try='test -s conftest$ac_exeext'
9975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9976 (eval $ac_try) 2>&5
9977 ac_status=$?
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); }; }; then
9980 ac_cv_lib_posix_remove=yes
6589else 9981else
6590 echo "configure: failed program was:" >&5 9982 echo "$as_me: failed program was:" >&5
6591 cat conftest.$ac_ext >&5 9983sed 's/^/| /' conftest.$ac_ext >&5
6592 rm -rf conftest* 9984
6593 eval "ac_cv_lib_$ac_lib_var=no" 9985ac_cv_lib_posix_remove=no
6594fi 9986fi
6595rm -f conftest* 9987rm -f conftest.err conftest.$ac_objext \
9988 conftest$ac_exeext conftest.$ac_ext
6596LIBS="$ac_save_LIBS" 9989LIBS=$ac_check_lib_save_LIBS
6597
6598fi 9990fi
6599if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 9991echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6600 echo "$ac_t""yes" 1>&6 9992echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
9993if test $ac_cv_lib_posix_remove = yes; then
6601 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 9994 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6602else
6603 echo "$ac_t""no" 1>&6
6604fi 9995fi
6605 9996
6606 fi 9997 fi
6607 9998
6608 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 9999 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10000 echo "$as_me:$LINENO: checking for shmat" >&5
6609 echo $ac_n "checking for shmat""... $ac_c" 1>&6 10001echo $ECHO_N "checking for shmat... $ECHO_C" >&6
6610echo "configure:6611: checking for shmat" >&5
6611if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then 10002if test "${ac_cv_func_shmat+set}" = set; then
6612 echo $ac_n "(cached) $ac_c" 1>&6 10003 echo $ECHO_N "(cached) $ECHO_C" >&6
6613else 10004else
6614 cat > conftest.$ac_ext <<EOF 10005 cat >conftest.$ac_ext <<_ACEOF
6615#line 6616 "configure" 10006/* confdefs.h. */
6616#include "confdefs.h" 10007_ACEOF
10008cat confdefs.h >>conftest.$ac_ext
10009cat >>conftest.$ac_ext <<_ACEOF
10010/* end confdefs.h. */
10011/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
10012 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10013#define shmat innocuous_shmat
10014
6617/* System header to define __stub macros and hopefully few prototypes, 10015/* System header to define __stub macros and hopefully few prototypes,
6618 which can conflict with char shmat(); below. */ 10016 which can conflict with char shmat (); below.
10017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10018 <limits.h> exists even on freestanding compilers. */
10019
10020#ifdef __STDC__
10021# include <limits.h>
10022#else
6619#include <assert.h> 10023# include <assert.h>
10024#endif
10025
10026#undef shmat
10027
6620/* Override any gcc2 internal prototype to avoid an error. */ 10028/* Override any gcc2 internal prototype to avoid an error. */
10029#ifdef __cplusplus
10030extern "C"
10031{
10032#endif
6621/* We use char because int might match the return type of a gcc2 10033/* We use char because int might match the return type of a gcc2
6622 builtin and then its argument prototype would still apply. */ 10034 builtin and then its argument prototype would still apply. */
6623char shmat(); 10035char shmat ();
6624
6625int main() {
6626
6627/* The GNU C library defines this for functions which it implements 10036/* The GNU C library defines this for functions which it implements
6628 to always fail with ENOSYS. Some functions are actually named 10037 to always fail with ENOSYS. Some functions are actually named
6629 something starting with __ and the normal name is an alias. */ 10038 something starting with __ and the normal name is an alias. */
6630#if defined (__stub_shmat) || defined (__stub___shmat) 10039#if defined (__stub_shmat) || defined (__stub___shmat)
6631choke me 10040choke me
6632#else 10041#else
6633shmat(); 10042char (*f) () = shmat;
6634#endif 10043#endif
10044#ifdef __cplusplus
10045}
10046#endif
6635 10047
10048int
10049main ()
10050{
10051return f != shmat;
10052 ;
6636; return 0; } 10053 return 0;
6637EOF 10054}
6638if { (eval echo configure:6639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10055_ACEOF
10056rm -f conftest.$ac_objext conftest$ac_exeext
10057if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10058 (eval $ac_link) 2>conftest.er1
10059 ac_status=$?
10060 grep -v '^ *+' conftest.er1 >conftest.err
6639 rm -rf conftest* 10061 rm -f conftest.er1
10062 cat conftest.err >&5
10063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064 (exit $ac_status); } &&
10065 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10067 (eval $ac_try) 2>&5
10068 ac_status=$?
10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 (exit $ac_status); }; } &&
10071 { ac_try='test -s conftest$ac_exeext'
10072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10073 (eval $ac_try) 2>&5
10074 ac_status=$?
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); }; }; then
6640 eval "ac_cv_func_shmat=yes" 10077 ac_cv_func_shmat=yes
6641else 10078else
6642 echo "configure: failed program was:" >&5 10079 echo "$as_me: failed program was:" >&5
6643 cat conftest.$ac_ext >&5 10080sed 's/^/| /' conftest.$ac_ext >&5
6644 rm -rf conftest* 10081
6645 eval "ac_cv_func_shmat=no" 10082ac_cv_func_shmat=no
6646fi 10083fi
6647rm -f conftest* 10084rm -f conftest.err conftest.$ac_objext \
10085 conftest$ac_exeext conftest.$ac_ext
6648fi 10086fi
6649 10087echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6650if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then 10088echo "${ECHO_T}$ac_cv_func_shmat" >&6
6651 echo "$ac_t""yes" 1>&6
6652 :
6653else
6654 echo "$ac_t""no" 1>&6
6655fi
6656 10089
6657 if test $ac_cv_func_shmat = no; then 10090 if test $ac_cv_func_shmat = no; then
10091 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6658 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 10092echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
6659echo "configure:6660: checking for shmat in -lipc" >&5 10093if test "${ac_cv_lib_ipc_shmat+set}" = set; then
6660ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
6661if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6662 echo $ac_n "(cached) $ac_c" 1>&6 10094 echo $ECHO_N "(cached) $ECHO_C" >&6
6663else 10095else
6664 ac_save_LIBS="$LIBS" 10096 ac_check_lib_save_LIBS=$LIBS
6665LIBS="-lipc $LIBS" 10097LIBS="-lipc $LIBS"
6666cat > conftest.$ac_ext <<EOF 10098cat >conftest.$ac_ext <<_ACEOF
6667#line 6668 "configure" 10099/* confdefs.h. */
6668#include "confdefs.h" 10100_ACEOF
10101cat confdefs.h >>conftest.$ac_ext
10102cat >>conftest.$ac_ext <<_ACEOF
10103/* end confdefs.h. */
10104
6669/* Override any gcc2 internal prototype to avoid an error. */ 10105/* Override any gcc2 internal prototype to avoid an error. */
10106#ifdef __cplusplus
10107extern "C"
10108#endif
6670/* We use char because int might match the return type of a gcc2 10109/* We use char because int might match the return type of a gcc2
6671 builtin and then its argument prototype would still apply. */ 10110 builtin and then its argument prototype would still apply. */
6672char shmat(); 10111char shmat ();
6673 10112int
6674int main() { 10113main ()
10114{
6675shmat() 10115shmat ();
10116 ;
6676; return 0; } 10117 return 0;
6677EOF 10118}
6678if { (eval echo configure:6679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10119_ACEOF
10120rm -f conftest.$ac_objext conftest$ac_exeext
10121if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10122 (eval $ac_link) 2>conftest.er1
10123 ac_status=$?
10124 grep -v '^ *+' conftest.er1 >conftest.err
6679 rm -rf conftest* 10125 rm -f conftest.er1
6680 eval "ac_cv_lib_$ac_lib_var=yes" 10126 cat conftest.err >&5
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 (exit $ac_status); } &&
10129 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10131 (eval $ac_try) 2>&5
10132 ac_status=$?
10133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134 (exit $ac_status); }; } &&
10135 { ac_try='test -s conftest$ac_exeext'
10136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10137 (eval $ac_try) 2>&5
10138 ac_status=$?
10139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140 (exit $ac_status); }; }; then
10141 ac_cv_lib_ipc_shmat=yes
6681else 10142else
6682 echo "configure: failed program was:" >&5 10143 echo "$as_me: failed program was:" >&5
6683 cat conftest.$ac_ext >&5 10144sed 's/^/| /' conftest.$ac_ext >&5
6684 rm -rf conftest* 10145
6685 eval "ac_cv_lib_$ac_lib_var=no" 10146ac_cv_lib_ipc_shmat=no
6686fi 10147fi
6687rm -f conftest* 10148rm -f conftest.err conftest.$ac_objext \
10149 conftest$ac_exeext conftest.$ac_ext
6688LIBS="$ac_save_LIBS" 10150LIBS=$ac_check_lib_save_LIBS
6689
6690fi 10151fi
6691if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 10152echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6692 echo "$ac_t""yes" 1>&6 10153echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
10154if test $ac_cv_lib_ipc_shmat = yes; then
6693 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 10155 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6694else
6695 echo "$ac_t""no" 1>&6
6696fi 10156fi
6697 10157
6698 fi 10158 fi
6699 fi 10159 fi
6700 10160
6701 # Check for libraries that X11R6 Xt/Xaw programs need. 10161 # Check for libraries that X11R6 Xt/Xaw programs need.
6702 ac_save_LDFLAGS="$LDFLAGS" 10162 ac_save_LDFLAGS=$LDFLAGS
6703 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 10163 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6704 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 10164 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6705 # check for ICE first), but we must link in the order -lSM -lICE or 10165 # check for ICE first), but we must link in the order -lSM -lICE or
6706 # we get undefined symbols. So assume we have SM if we have ICE. 10166 # we get undefined symbols. So assume we have SM if we have ICE.
6707 # These have to be linked with before -lX11, unlike the other 10167 # These have to be linked with before -lX11, unlike the other
6708 # libraries we check for below, so use a different variable. 10168 # libraries we check for below, so use a different variable.
6709 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. 10169 # John Interrante, Karl Berry
10170 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6710 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 10171echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6711echo "configure:6712: checking for IceConnectionNumber in -lICE" >&5 10172if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6712ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
6713if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6714 echo $ac_n "(cached) $ac_c" 1>&6 10173 echo $ECHO_N "(cached) $ECHO_C" >&6
6715else 10174else
6716 ac_save_LIBS="$LIBS" 10175 ac_check_lib_save_LIBS=$LIBS
6717LIBS="-lICE $X_EXTRA_LIBS $LIBS" 10176LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6718cat > conftest.$ac_ext <<EOF 10177cat >conftest.$ac_ext <<_ACEOF
6719#line 6720 "configure" 10178/* confdefs.h. */
6720#include "confdefs.h" 10179_ACEOF
10180cat confdefs.h >>conftest.$ac_ext
10181cat >>conftest.$ac_ext <<_ACEOF
10182/* end confdefs.h. */
10183
6721/* Override any gcc2 internal prototype to avoid an error. */ 10184/* Override any gcc2 internal prototype to avoid an error. */
10185#ifdef __cplusplus
10186extern "C"
10187#endif
6722/* We use char because int might match the return type of a gcc2 10188/* We use char because int might match the return type of a gcc2
6723 builtin and then its argument prototype would still apply. */ 10189 builtin and then its argument prototype would still apply. */
6724char IceConnectionNumber(); 10190char IceConnectionNumber ();
6725 10191int
6726int main() { 10192main ()
10193{
6727IceConnectionNumber() 10194IceConnectionNumber ();
10195 ;
6728; return 0; } 10196 return 0;
6729EOF 10197}
6730if { (eval echo configure:6731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10198_ACEOF
10199rm -f conftest.$ac_objext conftest$ac_exeext
10200if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10201 (eval $ac_link) 2>conftest.er1
10202 ac_status=$?
10203 grep -v '^ *+' conftest.er1 >conftest.err
6731 rm -rf conftest* 10204 rm -f conftest.er1
6732 eval "ac_cv_lib_$ac_lib_var=yes" 10205 cat conftest.err >&5
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); } &&
10208 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10210 (eval $ac_try) 2>&5
10211 ac_status=$?
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); }; } &&
10214 { ac_try='test -s conftest$ac_exeext'
10215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10216 (eval $ac_try) 2>&5
10217 ac_status=$?
10218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219 (exit $ac_status); }; }; then
10220 ac_cv_lib_ICE_IceConnectionNumber=yes
6733else 10221else
6734 echo "configure: failed program was:" >&5 10222 echo "$as_me: failed program was:" >&5
6735 cat conftest.$ac_ext >&5 10223sed 's/^/| /' conftest.$ac_ext >&5
6736 rm -rf conftest* 10224
6737 eval "ac_cv_lib_$ac_lib_var=no" 10225ac_cv_lib_ICE_IceConnectionNumber=no
6738fi 10226fi
6739rm -f conftest* 10227rm -f conftest.err conftest.$ac_objext \
10228 conftest$ac_exeext conftest.$ac_ext
6740LIBS="$ac_save_LIBS" 10229LIBS=$ac_check_lib_save_LIBS
6741
6742fi 10230fi
6743if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 10231echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6744 echo "$ac_t""yes" 1>&6 10232echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
10233if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6745 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 10234 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6746else
6747 echo "$ac_t""no" 1>&6
6748fi 10235fi
6749 10236
6750 LDFLAGS="$ac_save_LDFLAGS" 10237 LDFLAGS=$ac_save_LDFLAGS
6751 10238
6752fi 10239fi
6753 10240
6754 10241
6755 10242
6756if test x$support_xpm = xyes; then 10243if test x$support_xpm = xyes; then
6757 10244
6758 10245
6759 10246
6760# Initialize some more variables set by options. 10247# Initialize some more variables set by options.
6761# The variables have the same names as the options, with 10248# The variables have the same names as the options, with
6762# dashes changed to underlines. 10249# dashes changed to underlines.
6763 10250
6764# If we find XPM, set shell vars xpm_includes and xpm_libraries to the 10251# If we find XPM, set shell vars xpm_includes and xpm_libraries to the
6765# paths, otherwise set no_xpm=yes. 10252# paths, otherwise set no_xpm=yes.
6766# Uses ac_ vars as temps to allow command line to override cache and checks. 10253# Uses ac_ vars as temps to allow command line to override cache and checks.
10254echo "$as_me:$LINENO: checking for libXpm" >&5
6767echo $ac_n "checking for libXpm""... $ac_c" 1>&6 10255echo $ECHO_N "checking for libXpm... $ECHO_C" >&6
6768echo "configure:6769: checking for libXpm" >&5 10256
6769 10257
6770# Check whether --with-xpm_includes or --without-xpm_includes was given. 10258# Check whether --with-xpm_includes or --without-xpm_includes was given.
6771if test "${with_xpm_includes+set}" = set; then 10259if test "${with_xpm_includes+set}" = set; then
6772 withval="$with_xpm_includes" 10260 withval="$with_xpm_includes"
6773 xpm_includes="$withval" 10261 xpm_includes="$withval"
6774else 10262else
6775 xpm_includes=NO 10263 xpm_includes=NO
6776fi 10264fi;
6777 10265
6778# Check whether --with-xpm_library or --without-xpm_library was given. 10266# Check whether --with-xpm_library or --without-xpm_library was given.
6779if test "${with_xpm_library+set}" = set; then 10267if test "${with_xpm_library+set}" = set; then
6780 withval="$with_xpm_library" 10268 withval="$with_xpm_library"
6781 xpm_libraries="$withval" 10269 xpm_libraries="$withval"
6782else 10270else
6783 xpm_libraries=NO 10271 xpm_libraries=NO
6784fi 10272fi;
6785
6786 10273
6787# --without-xpm overrides everything else, but does not touch the cache. 10274# --without-xpm overrides everything else, but does not touch the cache.
10275
6788# Check whether --with-xpm or --without-xpm was given. 10276# Check whether --with-xpm or --without-xpm was given.
6789if test "${with_xpm+set}" = set; then 10277if test "${with_xpm+set}" = set; then
6790 withval="$with_xpm" 10278 withval="$with_xpm"
6791 : 10279
6792fi 10280fi;
6793
6794if test "$with_xpm" = no; then 10281if test "$with_xpm" = no; then
6795 have_xpm=disabled 10282 have_xpm=disabled
6796else 10283else
6797 if eval "test \"`echo '$''{'ac_cv_have_xpm'+set}'`\" = set"; then 10284 if test "${ac_cv_have_xpm+set}" = set; then
6798 echo $ac_n "(cached) $ac_c" 1>&6 10285 echo $ECHO_N "(cached) $ECHO_C" >&6
6799else 10286else
6800 10287
6801 vt_xpm_include_X11=no 10288 vt_xpm_include_X11=no
6802 if test -n "$xpm_includes"; then 10289 if test -n "$xpm_includes"; then
6803 vt_xpm_includes=$xpm_includes 10290 vt_xpm_includes=$xpm_includes
6804 else 10291 else
6805 vt_xpm_includes=NO 10292 vt_xpm_includes=NO
6815 10302
6816ac_save_CPPFLAGS="$CPPFLAGS" 10303ac_save_CPPFLAGS="$CPPFLAGS"
6817CPPFLAGS="$CPPFLAGS $X_CFLAGS" 10304CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6818 10305
6819 # First, try using that file with no special directory specified. 10306 # First, try using that file with no special directory specified.
6820cat > conftest.$ac_ext <<EOF 10307cat >conftest.$ac_ext <<_ACEOF
6821#line 6822 "configure" 10308/* confdefs.h. */
6822#include "confdefs.h" 10309_ACEOF
10310cat confdefs.h >>conftest.$ac_ext
10311cat >>conftest.$ac_ext <<_ACEOF
10312/* end confdefs.h. */
6823#include <X11/xpm.h> 10313#include <X11/xpm.h>
6824EOF 10314_ACEOF
6825ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10315if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6826{ (eval echo configure:6827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10316 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6827ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10317 ac_status=$?
10318 grep -v '^ *+' conftest.er1 >conftest.err
10319 rm -f conftest.er1
10320 cat conftest.err >&5
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); } >/dev/null; then
10323 if test -s conftest.err; then
10324 ac_cpp_err=$ac_cxx_preproc_warn_flag
10325 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10326 else
10327 ac_cpp_err=
10328 fi
10329else
10330 ac_cpp_err=yes
10331fi
6828if test -z "$ac_err"; then 10332if test -z "$ac_cpp_err"; then
6829 rm -rf conftest*
6830 # We can compile using X headers with no special include directory. 10333 # We can compile using X headers with no special include directory.
6831vt_xpm_includes= 10334vt_xpm_includes=
6832vt_xpm_include_X11=yes 10335vt_xpm_include_X11=yes
6833else 10336else
6834 echo "$ac_err" >&5
6835 echo "configure: failed program was:" >&5 10337 echo "$as_me: failed program was:" >&5
6836 cat conftest.$ac_ext >&5 10338sed 's/^/| /' conftest.$ac_ext >&5
6837 rm -rf conftest* 10339
6838 CPPFLAGS="$ac_save_CPPFLAGS" 10340 CPPFLAGS="$ac_save_CPPFLAGS"
6839# Look for the header file in a standard set of common directories. 10341# Look for the header file in a standard set of common directories.
6840 for ac_dir in \ 10342 for ac_dir in \
6841 /usr/X11/include \ 10343 /usr/X11/include \
6842 /usr/X11R6/include \ 10344 /usr/X11R6/include \
6883 break 10385 break
6884 fi 10386 fi
6885 fi 10387 fi
6886 done 10388 done
6887fi 10389fi
6888rm -f conftest* 10390rm -f conftest.err conftest.$ac_ext
6889fi 10391fi
6890 10392
6891if test "$vt_xpm_libraries" = NO; then 10393if test "$vt_xpm_libraries" = NO; then
6892 # Check for the libraries. 10394 # Check for the libraries.
6893 10395
6894 # See if we find them without any special options. 10396 # See if we find them without any special options.
6895 # Don't add to $LIBS permanently. 10397 # Don't add to $LIBS permanently.
6896 ac_save_LIBS="$LIBS" 10398 ac_save_LIBS="$LIBS"
6897 LIBS="$LIBS $X_LIBS -lXpm -lX11" 10399 LIBS="$LIBS $X_LIBS -lXpm -lX11"
6898cat > conftest.$ac_ext <<EOF 10400cat >conftest.$ac_ext <<_ACEOF
6899#line 6900 "configure" 10401/* confdefs.h. */
6900#include "confdefs.h" 10402_ACEOF
10403cat confdefs.h >>conftest.$ac_ext
10404cat >>conftest.$ac_ext <<_ACEOF
10405/* end confdefs.h. */
6901 10406
6902int main() { 10407int
10408main ()
10409{
6903XpmReadFileToPixmap() 10410XpmReadFileToPixmap()
10411 ;
6904; return 0; } 10412 return 0;
6905EOF 10413}
6906if { (eval echo configure:6907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10414_ACEOF
10415rm -f conftest.$ac_objext conftest$ac_exeext
10416if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10417 (eval $ac_link) 2>conftest.er1
10418 ac_status=$?
10419 grep -v '^ *+' conftest.er1 >conftest.err
6907 rm -rf conftest* 10420 rm -f conftest.er1
10421 cat conftest.err >&5
10422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423 (exit $ac_status); } &&
10424 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10426 (eval $ac_try) 2>&5
10427 ac_status=$?
10428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429 (exit $ac_status); }; } &&
10430 { ac_try='test -s conftest$ac_exeext'
10431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10432 (eval $ac_try) 2>&5
10433 ac_status=$?
10434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435 (exit $ac_status); }; }; then
6908 LIBS="$ac_save_LIBS" 10436 LIBS="$ac_save_LIBS"
6909# We can link libXpm with no special library path. 10437# We can link libXpm with no special library path.
6910vt_xpm_libraries= 10438vt_xpm_libraries=
6911else 10439else
6912 echo "configure: failed program was:" >&5 10440 echo "$as_me: failed program was:" >&5
6913 cat conftest.$ac_ext >&5 10441sed 's/^/| /' conftest.$ac_ext >&5
6914 rm -rf conftest* 10442
6915 LIBS="$ac_save_LIBS" 10443LIBS="$ac_save_LIBS"
6916# First see if replacing the include by lib works. 10444# First see if replacing the include by lib works.
6917for ac_dir in \ 10445for ac_dir in \
6918 `echo "$vt_xpm_includes" | sed 's,include/X11,lib,;s,include,lib,'` \ 10446 `echo "$vt_xpm_includes" | sed 's,include/X11,lib,;s,include,lib,'` \
6919 /usr/X11/lib \ 10447 /usr/X11/lib \
6920 /usr/X11R6/lib \ 10448 /usr/X11R6/lib \
6957 break 2 10485 break 2
6958 fi 10486 fi
6959 done 10487 done
6960done 10488done
6961fi 10489fi
6962rm -f conftest* 10490rm -f conftest.err conftest.$ac_objext \
10491 conftest$ac_exeext conftest.$ac_ext
6963fi 10492fi
6964 10493
6965 10494
6966 if test "$vt_xpm_includes" = NO -o "$vt_xpm_libraries" = NO; then 10495 if test "$vt_xpm_includes" = NO -o "$vt_xpm_libraries" = NO; then
6967 ac_cv_have_xpm="have_xpm=no" 10496 ac_cv_have_xpm="have_xpm=no"
6973fi 10502fi
6974 eval "$ac_cv_have_xpm" 10503 eval "$ac_cv_have_xpm"
6975fi 10504fi
6976 10505
6977if test "$have_xpm" != yes; then 10506if test "$have_xpm" != yes; then
6978 echo "$ac_t""$have_xpm" 1>&6 10507 echo "$as_me:$LINENO: result: $have_xpm" >&5
10508echo "${ECHO_T}$have_xpm" >&6
6979 no_xpm=yes 10509 no_xpm=yes
6980else 10510else
6981 if test "$xpm_includes" != NO; then 10511 if test "$xpm_includes" != NO; then
6982 if test "$xpm_includes" = "$vt_xpm_includes"; then 10512 if test "$xpm_includes" = "$vt_xpm_includes"; then
6983 if test -r "$xpm_includes/X11/xpm.h"; then 10513 if test -r "$xpm_includes/X11/xpm.h"; then
6984 vt_xpm_include_X11=yes 10514 vt_xpm_include_X11=yes
6985 fi 10515 fi
6986 else 10516 else
6987 vt_xpm_include_X11=no 10517 vt_xpm_include_X11=no
6988 if test -z "$xpm_includes"; then 10518 if test -z "$xpm_includes"; then
6989 cat > conftest.$ac_ext <<EOF 10519 cat >conftest.$ac_ext <<_ACEOF
6990#line 6991 "configure" 10520/* confdefs.h. */
6991#include "confdefs.h" 10521_ACEOF
10522cat confdefs.h >>conftest.$ac_ext
10523cat >>conftest.$ac_ext <<_ACEOF
10524/* end confdefs.h. */
6992#include <X11/xpm.h> 10525#include <X11/xpm.h>
6993EOF 10526_ACEOF
6994ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10527if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6995{ (eval echo configure:6996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10528 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6996ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10529 ac_status=$?
10530 grep -v '^ *+' conftest.er1 >conftest.err
10531 rm -f conftest.er1
10532 cat conftest.err >&5
10533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534 (exit $ac_status); } >/dev/null; then
10535 if test -s conftest.err; then
10536 ac_cpp_err=$ac_cxx_preproc_warn_flag
10537 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10538 else
10539 ac_cpp_err=
10540 fi
10541else
10542 ac_cpp_err=yes
10543fi
6997if test -z "$ac_err"; then 10544if test -z "$ac_cpp_err"; then
6998 rm -rf conftest*
6999 vt_xpm_include_X11=yes 10545 vt_xpm_include_X11=yes
7000else 10546else
7001 echo "$ac_err" >&5
7002 echo "configure: failed program was:" >&5 10547 echo "$as_me: failed program was:" >&5
7003 cat conftest.$ac_ext >&5 10548sed 's/^/| /' conftest.$ac_ext >&5
10549
10550
7004fi 10551fi
7005rm -f conftest* 10552rm -f conftest.err conftest.$ac_ext
7006 else 10553 else
7007 if test -r "$xpm_includes/X11/xpm.h"; then 10554 if test -r "$xpm_includes/X11/xpm.h"; then
7008 vt_xpm_include_X11=yes 10555 vt_xpm_include_X11=yes
7009 fi 10556 fi
7010 fi 10557 fi
7017 # Update the cache value to reflect the command line values. 10564 # Update the cache value to reflect the command line values.
7018 ac_cv_have_xpm="have_xpm=yes \ 10565 ac_cv_have_xpm="have_xpm=yes \
7019 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \ 10566 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
7020 vt_xpm_include_X11=$vt_xpm_include_X11" 10567 vt_xpm_include_X11=$vt_xpm_include_X11"
7021 eval "$ac_cv_have_xpm" 10568 eval "$ac_cv_have_xpm"
10569 echo "$as_me:$LINENO: result: -I$vt_xpm_includes, -L$vt_xpm_libraries" >&5
7022 echo "$ac_t""-I$vt_xpm_includes, -L$vt_xpm_libraries" 1>&6 10570echo "${ECHO_T}-I$vt_xpm_includes, -L$vt_xpm_libraries" >&6
7023 if test -n "$vt_xpm_includes"; then 10571 if test -n "$vt_xpm_includes"; then
7024 XPM_CPPFLAGS="-DHAVE_LIBXPM" 10572 XPM_CPPFLAGS="-DHAVE_LIBXPM"
7025 fi 10573 fi
7026 if test -n "$vt_xpm_includes"; then 10574 if test -n "$vt_xpm_includes"; then
7027 XPM_CFLAGS="-I$vt_xpm_includes" 10575 XPM_CFLAGS="-I$vt_xpm_includes"
7029 XPM_LIBS="-lXpm" 10577 XPM_LIBS="-lXpm"
7030 if test -n "$vt_xpm_libraries"; then 10578 if test -n "$vt_xpm_libraries"; then
7031 XPM_LIBS="-L$vt_xpm_libraries $XPM_LIBS" 10579 XPM_LIBS="-L$vt_xpm_libraries $XPM_LIBS"
7032 fi 10580 fi
7033 if test "x$vt_xpm_include_X11" = xyes; then 10581 if test "x$vt_xpm_include_X11" = xyes; then
10582
7034 cat >> confdefs.h <<\EOF 10583cat >>confdefs.h <<\_ACEOF
7035#define XPM_INC_X11 1 10584#define XPM_INC_X11 1
7036EOF 10585_ACEOF
7037 10586
7038 fi 10587 fi
7039fi 10588fi
7040 10589
7041 10590
7045 if test x$no_xpm = xyes; then 10594 if test x$no_xpm = xyes; then
7046 support_xpm=needsmanualspecification 10595 support_xpm=needsmanualspecification
7047 fi 10596 fi
7048fi 10597fi
7049 10598
10599echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7050echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 10600echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7051echo "configure:7052: checking for sys/wait.h that is POSIX.1 compatible" >&5
7052if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then 10601if test "${ac_cv_header_sys_wait_h+set}" = set; then
7053 echo $ac_n "(cached) $ac_c" 1>&6 10602 echo $ECHO_N "(cached) $ECHO_C" >&6
7054else 10603else
7055 cat > conftest.$ac_ext <<EOF 10604 cat >conftest.$ac_ext <<_ACEOF
7056#line 7057 "configure" 10605/* confdefs.h. */
7057#include "confdefs.h" 10606_ACEOF
10607cat confdefs.h >>conftest.$ac_ext
10608cat >>conftest.$ac_ext <<_ACEOF
10609/* end confdefs.h. */
7058#include <sys/types.h> 10610#include <sys/types.h>
7059#include <sys/wait.h> 10611#include <sys/wait.h>
7060#ifndef WEXITSTATUS 10612#ifndef WEXITSTATUS
7061#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 10613# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7062#endif 10614#endif
7063#ifndef WIFEXITED 10615#ifndef WIFEXITED
7064#define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 10616# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7065#endif 10617#endif
7066int main() { 10618
10619int
10620main ()
10621{
7067int s; 10622 int s;
7068wait (&s); 10623 wait (&s);
7069s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 10624 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10625 ;
7070; return 0; } 10626 return 0;
7071EOF 10627}
7072if { (eval echo configure:7073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 10628_ACEOF
10629rm -f conftest.$ac_objext
10630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10631 (eval $ac_compile) 2>conftest.er1
10632 ac_status=$?
10633 grep -v '^ *+' conftest.er1 >conftest.err
7073 rm -rf conftest* 10634 rm -f conftest.er1
10635 cat conftest.err >&5
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); } &&
10638 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10640 (eval $ac_try) 2>&5
10641 ac_status=$?
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); }; } &&
10644 { ac_try='test -s conftest.$ac_objext'
10645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10646 (eval $ac_try) 2>&5
10647 ac_status=$?
10648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649 (exit $ac_status); }; }; then
7074 ac_cv_header_sys_wait_h=yes 10650 ac_cv_header_sys_wait_h=yes
7075else 10651else
7076 echo "configure: failed program was:" >&5 10652 echo "$as_me: failed program was:" >&5
7077 cat conftest.$ac_ext >&5 10653sed 's/^/| /' conftest.$ac_ext >&5
7078 rm -rf conftest* 10654
7079 ac_cv_header_sys_wait_h=no 10655ac_cv_header_sys_wait_h=no
7080fi 10656fi
7081rm -f conftest* 10657rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7082fi 10658fi
7083 10659echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7084echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6 10660echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
7085if test $ac_cv_header_sys_wait_h = yes; then 10661if test $ac_cv_header_sys_wait_h = yes; then
10662
7086 cat >> confdefs.h <<\EOF 10663cat >>confdefs.h <<\_ACEOF
7087#define HAVE_SYS_WAIT_H 1 10664#define HAVE_SYS_WAIT_H 1
7088EOF 10665_ACEOF
7089 10666
7090fi 10667fi
7091 10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
7092for ac_hdr in \ 10688for ac_header in \
7093 assert.h \ 10689 assert.h \
7094 fcntl.h \ 10690 fcntl.h \
7095 grp.h \ 10691 grp.h \
7096 libc.h \ 10692 libc.h \
7097 lastlog.h \ 10693 lastlog.h \
7109 utmp.h \ 10705 utmp.h \
7110 utmpx.h \ 10706 utmpx.h \
7111 stdint.h \ 10707 stdint.h \
7112 10708
7113do 10709do
7114ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 10710as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10711if eval "test \"\${$as_ac_Header+set}\" = set"; then
10712 echo "$as_me:$LINENO: checking for $ac_header" >&5
7115echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 10713echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7116echo "configure:7117: checking for $ac_hdr" >&5 10714if eval "test \"\${$as_ac_Header+set}\" = set"; then
7117if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7118 echo $ac_n "(cached) $ac_c" 1>&6 10715 echo $ECHO_N "(cached) $ECHO_C" >&6
10716fi
10717echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10718echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7119else 10719else
10720 # Is the header compilable?
10721echo "$as_me:$LINENO: checking $ac_header usability" >&5
10722echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7120 cat > conftest.$ac_ext <<EOF 10723cat >conftest.$ac_ext <<_ACEOF
7121#line 7122 "configure" 10724/* confdefs.h. */
7122#include "confdefs.h" 10725_ACEOF
10726cat confdefs.h >>conftest.$ac_ext
10727cat >>conftest.$ac_ext <<_ACEOF
10728/* end confdefs.h. */
10729$ac_includes_default
7123#include <$ac_hdr> 10730#include <$ac_header>
7124EOF 10731_ACEOF
7125ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10732rm -f conftest.$ac_objext
7126{ (eval echo configure:7127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7127ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10734 (eval $ac_compile) 2>conftest.er1
10735 ac_status=$?
10736 grep -v '^ *+' conftest.er1 >conftest.err
10737 rm -f conftest.er1
10738 cat conftest.err >&5
10739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740 (exit $ac_status); } &&
10741 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10743 (eval $ac_try) 2>&5
10744 ac_status=$?
10745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746 (exit $ac_status); }; } &&
10747 { ac_try='test -s conftest.$ac_objext'
10748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10749 (eval $ac_try) 2>&5
10750 ac_status=$?
10751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752 (exit $ac_status); }; }; then
10753 ac_header_compiler=yes
10754else
10755 echo "$as_me: failed program was:" >&5
10756sed 's/^/| /' conftest.$ac_ext >&5
10757
10758ac_header_compiler=no
10759fi
10760rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10761echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10762echo "${ECHO_T}$ac_header_compiler" >&6
10763
10764# Is the header present?
10765echo "$as_me:$LINENO: checking $ac_header presence" >&5
10766echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10767cat >conftest.$ac_ext <<_ACEOF
10768/* confdefs.h. */
10769_ACEOF
10770cat confdefs.h >>conftest.$ac_ext
10771cat >>conftest.$ac_ext <<_ACEOF
10772/* end confdefs.h. */
10773#include <$ac_header>
10774_ACEOF
10775if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10776 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10777 ac_status=$?
10778 grep -v '^ *+' conftest.er1 >conftest.err
10779 rm -f conftest.er1
10780 cat conftest.err >&5
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); } >/dev/null; then
10783 if test -s conftest.err; then
10784 ac_cpp_err=$ac_cxx_preproc_warn_flag
10785 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10786 else
10787 ac_cpp_err=
10788 fi
10789else
10790 ac_cpp_err=yes
10791fi
7128if test -z "$ac_err"; then 10792if test -z "$ac_cpp_err"; then
7129 rm -rf conftest* 10793 ac_header_preproc=yes
7130 eval "ac_cv_header_$ac_safe=yes"
7131else 10794else
7132 echo "$ac_err" >&5
7133 echo "configure: failed program was:" >&5 10795 echo "$as_me: failed program was:" >&5
7134 cat conftest.$ac_ext >&5 10796sed 's/^/| /' conftest.$ac_ext >&5
7135 rm -rf conftest* 10797
7136 eval "ac_cv_header_$ac_safe=no" 10798 ac_header_preproc=no
7137fi 10799fi
7138rm -f conftest* 10800rm -f conftest.err conftest.$ac_ext
10801echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10802echo "${ECHO_T}$ac_header_preproc" >&6
10803
10804# So? What about this header?
10805case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10806 yes:no: )
10807 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10808echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10810echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10811 ac_header_preproc=yes
10812 ;;
10813 no:yes:* )
10814 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10815echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10816 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10817echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10818 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10819echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10820 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10821echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10823echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10824 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10825echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10826 (
10827 cat <<\_ASBOX
10828## ------------------------------------------ ##
10829## Report this to the AC_PACKAGE_NAME lists. ##
10830## ------------------------------------------ ##
10831_ASBOX
10832 ) |
10833 sed "s/^/$as_me: WARNING: /" >&2
10834 ;;
10835esac
10836echo "$as_me:$LINENO: checking for $ac_header" >&5
10837echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10838if eval "test \"\${$as_ac_Header+set}\" = set"; then
10839 echo $ECHO_N "(cached) $ECHO_C" >&6
10840else
10841 eval "$as_ac_Header=\$ac_header_preproc"
7139fi 10842fi
7140if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 10843echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7141 echo "$ac_t""yes" 1>&6 10844echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7142 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 10845
10846fi
10847if test `eval echo '${'$as_ac_Header'}'` = yes; then
7143 cat >> confdefs.h <<EOF 10848 cat >>confdefs.h <<_ACEOF
7144#define $ac_tr_hdr 1 10849#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7145EOF 10850_ACEOF
7146 10851
7147else
7148 echo "$ac_t""no" 1>&6
7149fi 10852fi
10853
7150done 10854done
7151 10855
7152 10856
10857echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7153echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 10858echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7154echo "configure:7155: checking whether time.h and sys/time.h may both be included" >&5
7155if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 10859if test "${ac_cv_header_time+set}" = set; then
7156 echo $ac_n "(cached) $ac_c" 1>&6 10860 echo $ECHO_N "(cached) $ECHO_C" >&6
7157else 10861else
7158 cat > conftest.$ac_ext <<EOF 10862 cat >conftest.$ac_ext <<_ACEOF
7159#line 7160 "configure" 10863/* confdefs.h. */
7160#include "confdefs.h" 10864_ACEOF
10865cat confdefs.h >>conftest.$ac_ext
10866cat >>conftest.$ac_ext <<_ACEOF
10867/* end confdefs.h. */
7161#include <sys/types.h> 10868#include <sys/types.h>
7162#include <sys/time.h> 10869#include <sys/time.h>
7163#include <time.h> 10870#include <time.h>
7164int main() { 10871
7165struct tm *tp; 10872int
10873main ()
10874{
10875if ((struct tm *) 0)
10876return 0;
10877 ;
7166; return 0; } 10878 return 0;
7167EOF 10879}
7168if { (eval echo configure:7169: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 10880_ACEOF
10881rm -f conftest.$ac_objext
10882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10883 (eval $ac_compile) 2>conftest.er1
10884 ac_status=$?
10885 grep -v '^ *+' conftest.er1 >conftest.err
7169 rm -rf conftest* 10886 rm -f conftest.er1
10887 cat conftest.err >&5
10888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889 (exit $ac_status); } &&
10890 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10892 (eval $ac_try) 2>&5
10893 ac_status=$?
10894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895 (exit $ac_status); }; } &&
10896 { ac_try='test -s conftest.$ac_objext'
10897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10898 (eval $ac_try) 2>&5
10899 ac_status=$?
10900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901 (exit $ac_status); }; }; then
7170 ac_cv_header_time=yes 10902 ac_cv_header_time=yes
7171else 10903else
7172 echo "configure: failed program was:" >&5 10904 echo "$as_me: failed program was:" >&5
7173 cat conftest.$ac_ext >&5 10905sed 's/^/| /' conftest.$ac_ext >&5
7174 rm -rf conftest* 10906
7175 ac_cv_header_time=no 10907ac_cv_header_time=no
7176fi 10908fi
7177rm -f conftest* 10909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7178fi 10910fi
7179 10911echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7180echo "$ac_t""$ac_cv_header_time" 1>&6 10912echo "${ECHO_T}$ac_cv_header_time" >&6
7181if test $ac_cv_header_time = yes; then 10913if test $ac_cv_header_time = yes; then
10914
7182 cat >> confdefs.h <<\EOF 10915cat >>confdefs.h <<\_ACEOF
7183#define TIME_WITH_SYS_TIME 1 10916#define TIME_WITH_SYS_TIME 1
7184EOF 10917_ACEOF
7185 10918
7186fi 10919fi
7187 10920
7188 10921
10922echo "$as_me:$LINENO: checking whether termios.h and sys/ioctl.h may both be included" >&5
7189echo $ac_n "checking whether termios.h and sys/ioctl.h may both be included""... $ac_c" 1>&6 10923echo $ECHO_N "checking whether termios.h and sys/ioctl.h may both be included... $ECHO_C" >&6
7190echo "configure:7191: checking whether termios.h and sys/ioctl.h may both be included" >&5
7191if eval "test \"`echo '$''{'rxvt_cv_header_sysioctl'+set}'`\" = set"; then 10924if test "${rxvt_cv_header_sysioctl+set}" = set; then
7192 echo $ac_n "(cached) $ac_c" 1>&6 10925 echo $ECHO_N "(cached) $ECHO_C" >&6
7193else 10926else
7194 cat > conftest.$ac_ext <<EOF 10927 cat >conftest.$ac_ext <<_ACEOF
7195#line 7196 "configure" 10928/* confdefs.h. */
7196#include "confdefs.h" 10929_ACEOF
10930cat confdefs.h >>conftest.$ac_ext
10931cat >>conftest.$ac_ext <<_ACEOF
10932/* end confdefs.h. */
7197#include <stdio.h> 10933#include <stdio.h>
7198#include <sys/ioctl.h> 10934#include <sys/ioctl.h>
7199#ifdef HAVE_TERMIOS_H 10935#ifdef HAVE_TERMIOS_H
7200#include <termios.h> 10936#include <termios.h>
7201#endif 10937#endif
7202int main() { 10938int
10939main ()
10940{
7203int a = ECHO; 10941int a = ECHO;
10942 ;
7204; return 0; } 10943 return 0;
7205EOF 10944}
7206if { (eval echo configure:7207: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 10945_ACEOF
10946rm -f conftest.$ac_objext
10947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10948 (eval $ac_compile) 2>conftest.er1
10949 ac_status=$?
10950 grep -v '^ *+' conftest.er1 >conftest.err
7207 rm -rf conftest* 10951 rm -f conftest.er1
10952 cat conftest.err >&5
10953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954 (exit $ac_status); } &&
10955 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10957 (eval $ac_try) 2>&5
10958 ac_status=$?
10959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960 (exit $ac_status); }; } &&
10961 { ac_try='test -s conftest.$ac_objext'
10962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10963 (eval $ac_try) 2>&5
10964 ac_status=$?
10965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); }; }; then
7208 rxvt_cv_header_sysioctl=yes 10967 rxvt_cv_header_sysioctl=yes
7209else 10968else
7210 echo "configure: failed program was:" >&5 10969 echo "$as_me: failed program was:" >&5
7211 cat conftest.$ac_ext >&5 10970sed 's/^/| /' conftest.$ac_ext >&5
7212 rm -rf conftest* 10971
7213 rxvt_cv_header_sysioctl=no 10972rxvt_cv_header_sysioctl=no
7214fi 10973fi
7215rm -f conftest* 10974rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7216fi 10975fi
7217 10976echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5
7218echo "$ac_t""$rxvt_cv_header_sysioctl" 1>&6 10977echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6
7219 10978
7220if test -n "$GCC"; then 10979if test -n "$GCC"; then
7221 LDARG="-Wl," 10980 LDARG="-Wl,"
7222else 10981else
7223 LDARG="" 10982 LDARG=""
7226 10985
7227ac_save_CFLAGS=$CFLAGS 10986ac_save_CFLAGS=$CFLAGS
7228ac_save_LIBS=$LIBS 10987ac_save_LIBS=$LIBS
7229CFLAGS="$CFLAGS $X_CFLAGS" 10988CFLAGS="$CFLAGS $X_CFLAGS"
7230LIBS=`echo "$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"` 10989LIBS=`echo "$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
10990echo "$as_me:$LINENO: checking for -rpath dynamic library path recording" >&5
7231echo $ac_n "checking for -rpath dynamic library path recording""... $ac_c" 1>&6 10991echo $ECHO_N "checking for -rpath dynamic library path recording... $ECHO_C" >&6
7232echo "configure:7233: checking for -rpath dynamic library path recording" >&5
7233if eval "test \"`echo '$''{'rxvt_cv_rpath'+set}'`\" = set"; then 10992if test "${rxvt_cv_rpath+set}" = set; then
7234 echo $ac_n "(cached) $ac_c" 1>&6 10993 echo $ECHO_N "(cached) $ECHO_C" >&6
7235else 10994else
7236 if test "$cross_compiling" = yes; then 10995 if test "$cross_compiling" = yes; then
10996 { echo "$as_me:$LINENO: WARNING: You may need to check the LIBS line" >&5
7237 echo "configure: warning: You may need to check the LIBS line" 1>&2 10997echo "$as_me: WARNING: You may need to check the LIBS line" >&2;}
7238else 10998else
7239 cat > conftest.$ac_ext <<EOF 10999 cat >conftest.$ac_ext <<_ACEOF
7240#line 7241 "configure" 11000/* confdefs.h. */
7241#include "confdefs.h" 11001_ACEOF
11002cat confdefs.h >>conftest.$ac_ext
11003cat >>conftest.$ac_ext <<_ACEOF
11004/* end confdefs.h. */
7242 11005
7243main() 11006main()
7244{ 11007{
7245 exit(0); 11008 exit(0);
7246 (void) XOpenDisplay("foobar"); 11009 (void) XOpenDisplay("foobar");
7247} 11010}
7248EOF 11011_ACEOF
7249if { (eval echo configure:7250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 11012rm -f conftest$ac_exeext
7250then 11013if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11014 (eval $ac_link) 2>&5
11015 ac_status=$?
11016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11019 (eval $ac_try) 2>&5
11020 ac_status=$?
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); }; }; then
7251 rxvt_cv_rpath=yes 11023 rxvt_cv_rpath=yes
7252else 11024else
11025 echo "$as_me: program exited with status $ac_status" >&5
7253 echo "configure: failed program was:" >&5 11026echo "$as_me: failed program was:" >&5
7254 cat conftest.$ac_ext >&5 11027sed 's/^/| /' conftest.$ac_ext >&5
7255 rm -fr conftest* 11028
11029( exit $ac_status )
7256 rxvt_cv_rpath=no 11030rxvt_cv_rpath=no
7257fi 11031fi
7258rm -fr conftest* 11032rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7259fi 11033fi
7260
7261fi 11034fi
7262 11035echo "$as_me:$LINENO: result: $rxvt_cv_rpath" >&5
7263echo "$ac_t""$rxvt_cv_rpath" 1>&6 11036echo "${ECHO_T}$rxvt_cv_rpath" >&6
7264if test x$rxvt_cv_rpath != xyes; then 11037if test x$rxvt_cv_rpath != xyes; then
7265 R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-R\1/g' 11038 R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-R\1/g'
7266 LIBS=`echo "$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"` 11039 LIBS=`echo "$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
11040 echo "$as_me:$LINENO: checking for -R dynamic library path recording" >&5
7267 echo $ac_n "checking for -R dynamic library path recording""... $ac_c" 1>&6 11041echo $ECHO_N "checking for -R dynamic library path recording... $ECHO_C" >&6
7268echo "configure:7269: checking for -R dynamic library path recording" >&5
7269if eval "test \"`echo '$''{'rxvt_cv_R'+set}'`\" = set"; then 11042if test "${rxvt_cv_R+set}" = set; then
7270 echo $ac_n "(cached) $ac_c" 1>&6 11043 echo $ECHO_N "(cached) $ECHO_C" >&6
7271else 11044else
7272 if test "$cross_compiling" = yes; then 11045 if test "$cross_compiling" = yes; then
7273 rxvt_cv_R=no 11046 rxvt_cv_R=no
7274else 11047else
7275 cat > conftest.$ac_ext <<EOF 11048 cat >conftest.$ac_ext <<_ACEOF
7276#line 7277 "configure" 11049/* confdefs.h. */
7277#include "confdefs.h" 11050_ACEOF
11051cat confdefs.h >>conftest.$ac_ext
11052cat >>conftest.$ac_ext <<_ACEOF
11053/* end confdefs.h. */
7278 11054
7279main() 11055main()
7280{ 11056{
7281 exit(0); 11057 exit(0);
7282 (void) XOpenDisplay("foobar"); 11058 (void) XOpenDisplay("foobar");
7283} 11059}
7284EOF 11060_ACEOF
7285if { (eval echo configure:7286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 11061rm -f conftest$ac_exeext
7286then 11062if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11063 (eval $ac_link) 2>&5
11064 ac_status=$?
11065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11068 (eval $ac_try) 2>&5
11069 ac_status=$?
11070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071 (exit $ac_status); }; }; then
7287 rxvt_cv_R=yes 11072 rxvt_cv_R=yes
7288else 11073else
11074 echo "$as_me: program exited with status $ac_status" >&5
7289 echo "configure: failed program was:" >&5 11075echo "$as_me: failed program was:" >&5
7290 cat conftest.$ac_ext >&5 11076sed 's/^/| /' conftest.$ac_ext >&5
7291 rm -fr conftest* 11077
11078( exit $ac_status )
7292 rxvt_cv_R=no 11079rxvt_cv_R=no
7293fi 11080fi
7294rm -fr conftest* 11081rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7295fi 11082fi
7296
7297fi 11083fi
7298 11084echo "$as_me:$LINENO: result: $rxvt_cv_R" >&5
7299echo "$ac_t""$rxvt_cv_R" 1>&6 11085echo "${ECHO_T}$rxvt_cv_R" >&6
7300 if test x$rxvt_cv_R != xyes; then 11086 if test x$rxvt_cv_R != xyes; then
7301 LIBS="$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 11087 LIBS="$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
7302 fi 11088 fi
7303fi 11089fi
7304 11090
11091echo "$as_me:$LINENO: checking for XPointer" >&5
7305echo $ac_n "checking for XPointer""... $ac_c" 1>&6 11092echo $ECHO_N "checking for XPointer... $ECHO_C" >&6
7306echo "configure:7307: checking for XPointer" >&5
7307if eval "test \"`echo '$''{'rxvt_cv_xpointer'+set}'`\" = set"; then 11093if test "${rxvt_cv_xpointer+set}" = set; then
7308 echo $ac_n "(cached) $ac_c" 1>&6 11094 echo $ECHO_N "(cached) $ECHO_C" >&6
7309else 11095else
7310 cat > conftest.$ac_ext <<EOF 11096 cat >conftest.$ac_ext <<_ACEOF
7311#line 7312 "configure" 11097/* confdefs.h. */
7312#include "confdefs.h" 11098_ACEOF
11099cat confdefs.h >>conftest.$ac_ext
11100cat >>conftest.$ac_ext <<_ACEOF
11101/* end confdefs.h. */
7313#include <X11/Xlib.h> 11102#include <X11/Xlib.h>
7314int main() { 11103int
11104main ()
11105{
7315XPointer dummy; 11106XPointer dummy;
11107 ;
7316; return 0; } 11108 return 0;
7317EOF 11109}
7318if { (eval echo configure:7319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 11110_ACEOF
11111rm -f conftest.$ac_objext
11112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11113 (eval $ac_compile) 2>conftest.er1
11114 ac_status=$?
11115 grep -v '^ *+' conftest.er1 >conftest.err
7319 rm -rf conftest* 11116 rm -f conftest.er1
11117 cat conftest.err >&5
11118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11119 (exit $ac_status); } &&
11120 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11122 (eval $ac_try) 2>&5
11123 ac_status=$?
11124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11125 (exit $ac_status); }; } &&
11126 { ac_try='test -s conftest.$ac_objext'
11127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11128 (eval $ac_try) 2>&5
11129 ac_status=$?
11130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131 (exit $ac_status); }; }; then
7320 rxvt_cv_xpointer=yes 11132 rxvt_cv_xpointer=yes
7321else 11133else
7322 echo "configure: failed program was:" >&5 11134 echo "$as_me: failed program was:" >&5
7323 cat conftest.$ac_ext >&5 11135sed 's/^/| /' conftest.$ac_ext >&5
7324 rm -rf conftest* 11136
7325 rxvt_cv_xpointer=no 11137rxvt_cv_xpointer=no
7326fi 11138fi
7327rm -f conftest* 11139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7328fi 11140fi
7329 11141echo "$as_me:$LINENO: result: $rxvt_cv_xpointer" >&5
7330echo "$ac_t""$rxvt_cv_xpointer" 1>&6 11142echo "${ECHO_T}$rxvt_cv_xpointer" >&6
7331if test x$rxvt_cv_xpointer = xyes; then 11143if test x$rxvt_cv_xpointer = xyes; then
11144
7332 cat >> confdefs.h <<\EOF 11145cat >>confdefs.h <<\_ACEOF
7333#define HAVE_XPOINTER 1 11146#define HAVE_XPOINTER 1
7334EOF 11147_ACEOF
7335 11148
7336fi 11149fi
7337LIBS=$ac_save_LIBS 11150LIBS=$ac_save_LIBS
7338CFLAGS=$ac_save_CFLAGS 11151CFLAGS=$ac_save_CFLAGS
7339 11152
7340 11153
7341echo $ac_n "checking for working const""... $ac_c" 1>&6 11154echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7342echo "configure:7343: checking for working const" >&5 11155echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7343if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 11156if test "${ac_cv_c_const+set}" = set; then
7344 echo $ac_n "(cached) $ac_c" 1>&6 11157 echo $ECHO_N "(cached) $ECHO_C" >&6
7345else 11158else
7346 cat > conftest.$ac_ext <<EOF 11159 cat >conftest.$ac_ext <<_ACEOF
7347#line 7348 "configure" 11160/* confdefs.h. */
7348#include "confdefs.h" 11161_ACEOF
11162cat confdefs.h >>conftest.$ac_ext
11163cat >>conftest.$ac_ext <<_ACEOF
11164/* end confdefs.h. */
7349 11165
7350int main() { 11166int
7351 11167main ()
11168{
11169/* FIXME: Include the comments suggested by Paul. */
11170#ifndef __cplusplus
7352/* Ultrix mips cc rejects this. */ 11171 /* Ultrix mips cc rejects this. */
7353typedef int charset[2]; const charset x; 11172 typedef int charset[2];
11173 const charset x;
7354/* SunOS 4.1.1 cc rejects this. */ 11174 /* SunOS 4.1.1 cc rejects this. */
7355char const *const *ccp; 11175 char const *const *ccp;
7356char **p; 11176 char **p;
7357/* NEC SVR4.0.2 mips cc rejects this. */ 11177 /* NEC SVR4.0.2 mips cc rejects this. */
7358struct point {int x, y;}; 11178 struct point {int x, y;};
7359static struct point const zero = {0,0}; 11179 static struct point const zero = {0,0};
7360/* AIX XL C 1.02.0.0 rejects this. 11180 /* AIX XL C 1.02.0.0 rejects this.
7361 It does not let you subtract one const X* pointer from another in an arm 11181 It does not let you subtract one const X* pointer from another in
7362 of an if-expression whose if-part is not a constant expression */ 11182 an arm of an if-expression whose if-part is not a constant
11183 expression */
7363const char *g = "string"; 11184 const char *g = "string";
7364ccp = &g + (g ? g-g : 0); 11185 ccp = &g + (g ? g-g : 0);
7365/* HPUX 7.0 cc rejects these. */ 11186 /* HPUX 7.0 cc rejects these. */
7366++ccp; 11187 ++ccp;
7367p = (char**) ccp; 11188 p = (char**) ccp;
7368ccp = (char const *const *) p; 11189 ccp = (char const *const *) p;
7369{ /* SCO 3.2v4 cc rejects this. */ 11190 { /* SCO 3.2v4 cc rejects this. */
7370 char *t; 11191 char *t;
7371 char const *s = 0 ? (char *) 0 : (char const *) 0; 11192 char const *s = 0 ? (char *) 0 : (char const *) 0;
7372 11193
7373 *t++ = 0; 11194 *t++ = 0;
11195 }
11196 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11197 int x[] = {25, 17};
11198 const int *foo = &x[0];
11199 ++foo;
11200 }
11201 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11202 typedef const int *iptr;
11203 iptr p = 0;
11204 ++p;
11205 }
11206 { /* AIX XL C 1.02.0.0 rejects this saying
11207 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11208 struct s { int j; const int *ap[3]; };
11209 struct s *b; b->j = 5;
11210 }
11211 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11212 const int foo = 10;
11213 }
11214#endif
11215
11216 ;
11217 return 0;
7374} 11218}
7375{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 11219_ACEOF
7376 int x[] = {25, 17}; 11220rm -f conftest.$ac_objext
7377 const int *foo = &x[0]; 11221if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7378 ++foo; 11222 (eval $ac_compile) 2>conftest.er1
7379} 11223 ac_status=$?
7380{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 11224 grep -v '^ *+' conftest.er1 >conftest.err
7381 typedef const int *iptr;
7382 iptr p = 0;
7383 ++p;
7384}
7385{ /* AIX XL C 1.02.0.0 rejects this saying
7386 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7387 struct s { int j; const int *ap[3]; };
7388 struct s *b; b->j = 5;
7389}
7390{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7391 const int foo = 10;
7392}
7393
7394; return 0; }
7395EOF
7396if { (eval echo configure:7397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7397 rm -rf conftest* 11225 rm -f conftest.er1
11226 cat conftest.err >&5
11227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228 (exit $ac_status); } &&
11229 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11231 (eval $ac_try) 2>&5
11232 ac_status=$?
11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); }; } &&
11235 { ac_try='test -s conftest.$ac_objext'
11236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11237 (eval $ac_try) 2>&5
11238 ac_status=$?
11239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240 (exit $ac_status); }; }; then
7398 ac_cv_c_const=yes 11241 ac_cv_c_const=yes
7399else 11242else
7400 echo "configure: failed program was:" >&5 11243 echo "$as_me: failed program was:" >&5
7401 cat conftest.$ac_ext >&5 11244sed 's/^/| /' conftest.$ac_ext >&5
7402 rm -rf conftest* 11245
7403 ac_cv_c_const=no 11246ac_cv_c_const=no
7404fi 11247fi
7405rm -f conftest* 11248rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7406fi 11249fi
7407 11250echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7408echo "$ac_t""$ac_cv_c_const" 1>&6 11251echo "${ECHO_T}$ac_cv_c_const" >&6
7409if test $ac_cv_c_const = no; then 11252if test $ac_cv_c_const = no; then
11253
7410 cat >> confdefs.h <<\EOF 11254cat >>confdefs.h <<\_ACEOF
7411#define const 11255#define const
7412EOF 11256_ACEOF
7413 11257
7414fi 11258fi
7415 11259
11260echo "$as_me:$LINENO: checking for inline" >&5
7416echo $ac_n "checking for inline""... $ac_c" 1>&6 11261echo $ECHO_N "checking for inline... $ECHO_C" >&6
7417echo "configure:7418: checking for inline" >&5
7418if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then 11262if test "${ac_cv_c_inline+set}" = set; then
7419 echo $ac_n "(cached) $ac_c" 1>&6 11263 echo $ECHO_N "(cached) $ECHO_C" >&6
7420else 11264else
7421 ac_cv_c_inline=no 11265 ac_cv_c_inline=no
7422for ac_kw in inline __inline__ __inline; do 11266for ac_kw in inline __inline__ __inline; do
7423 cat > conftest.$ac_ext <<EOF 11267 cat >conftest.$ac_ext <<_ACEOF
7424#line 7425 "configure" 11268/* confdefs.h. */
7425#include "confdefs.h" 11269_ACEOF
11270cat confdefs.h >>conftest.$ac_ext
11271cat >>conftest.$ac_ext <<_ACEOF
11272/* end confdefs.h. */
11273#ifndef __cplusplus
11274typedef int foo_t;
11275static $ac_kw foo_t static_foo () {return 0; }
11276$ac_kw foo_t foo () {return 0; }
11277#endif
7426 11278
7427int main() { 11279_ACEOF
7428} $ac_kw foo() { 11280rm -f conftest.$ac_objext
7429; return 0; } 11281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7430EOF 11282 (eval $ac_compile) 2>conftest.er1
7431if { (eval echo configure:7432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 11283 ac_status=$?
11284 grep -v '^ *+' conftest.er1 >conftest.err
7432 rm -rf conftest* 11285 rm -f conftest.er1
11286 cat conftest.err >&5
11287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11288 (exit $ac_status); } &&
11289 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11291 (eval $ac_try) 2>&5
11292 ac_status=$?
11293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11294 (exit $ac_status); }; } &&
11295 { ac_try='test -s conftest.$ac_objext'
11296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11297 (eval $ac_try) 2>&5
11298 ac_status=$?
11299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11300 (exit $ac_status); }; }; then
7433 ac_cv_c_inline=$ac_kw; break 11301 ac_cv_c_inline=$ac_kw; break
7434else 11302else
7435 echo "configure: failed program was:" >&5 11303 echo "$as_me: failed program was:" >&5
11304sed 's/^/| /' conftest.$ac_ext >&5
11305
11306fi
11307rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11308done
11309
11310fi
11311echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
11312echo "${ECHO_T}$ac_cv_c_inline" >&6
11313
11314
11315case $ac_cv_c_inline in
11316 inline | yes) ;;
11317 *)
11318 case $ac_cv_c_inline in
11319 no) ac_val=;;
11320 *) ac_val=$ac_cv_c_inline;;
11321 esac
11322 cat >>confdefs.h <<_ACEOF
11323#ifndef __cplusplus
11324#define inline $ac_val
11325#endif
11326_ACEOF
11327 ;;
11328esac
11329
11330
11331
11332echo "$as_me:$LINENO: checking for mode_t" >&5
11333echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11334if test "${ac_cv_type_mode_t+set}" = set; then
11335 echo $ECHO_N "(cached) $ECHO_C" >&6
11336else
11337 cat >conftest.$ac_ext <<_ACEOF
11338/* confdefs.h. */
11339_ACEOF
11340cat confdefs.h >>conftest.$ac_ext
11341cat >>conftest.$ac_ext <<_ACEOF
11342/* end confdefs.h. */
11343$ac_includes_default
11344int
11345main ()
11346{
11347if ((mode_t *) 0)
11348 return 0;
11349if (sizeof (mode_t))
11350 return 0;
11351 ;
11352 return 0;
11353}
11354_ACEOF
11355rm -f conftest.$ac_objext
11356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11357 (eval $ac_compile) 2>conftest.er1
11358 ac_status=$?
11359 grep -v '^ *+' conftest.er1 >conftest.err
11360 rm -f conftest.er1
7436 cat conftest.$ac_ext >&5 11361 cat conftest.err >&5
11362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11363 (exit $ac_status); } &&
11364 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11366 (eval $ac_try) 2>&5
11367 ac_status=$?
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); }; } &&
11370 { ac_try='test -s conftest.$ac_objext'
11371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11372 (eval $ac_try) 2>&5
11373 ac_status=$?
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); }; }; then
11376 ac_cv_type_mode_t=yes
11377else
11378 echo "$as_me: failed program was:" >&5
11379sed 's/^/| /' conftest.$ac_ext >&5
11380
11381ac_cv_type_mode_t=no
11382fi
11383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11384fi
11385echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11386echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11387if test $ac_cv_type_mode_t = yes; then
11388 :
11389else
11390
11391cat >>confdefs.h <<_ACEOF
11392#define mode_t int
11393_ACEOF
11394
11395fi
11396
11397echo "$as_me:$LINENO: checking for pid_t" >&5
11398echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11399if test "${ac_cv_type_pid_t+set}" = set; then
11400 echo $ECHO_N "(cached) $ECHO_C" >&6
11401else
11402 cat >conftest.$ac_ext <<_ACEOF
11403/* confdefs.h. */
11404_ACEOF
11405cat confdefs.h >>conftest.$ac_ext
11406cat >>conftest.$ac_ext <<_ACEOF
11407/* end confdefs.h. */
11408$ac_includes_default
11409int
11410main ()
11411{
11412if ((pid_t *) 0)
11413 return 0;
11414if (sizeof (pid_t))
11415 return 0;
11416 ;
11417 return 0;
11418}
11419_ACEOF
11420rm -f conftest.$ac_objext
11421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11422 (eval $ac_compile) 2>conftest.er1
11423 ac_status=$?
11424 grep -v '^ *+' conftest.er1 >conftest.err
11425 rm -f conftest.er1
11426 cat conftest.err >&5
11427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428 (exit $ac_status); } &&
11429 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11431 (eval $ac_try) 2>&5
11432 ac_status=$?
11433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434 (exit $ac_status); }; } &&
11435 { ac_try='test -s conftest.$ac_objext'
11436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11437 (eval $ac_try) 2>&5
11438 ac_status=$?
11439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11440 (exit $ac_status); }; }; then
11441 ac_cv_type_pid_t=yes
11442else
11443 echo "$as_me: failed program was:" >&5
11444sed 's/^/| /' conftest.$ac_ext >&5
11445
11446ac_cv_type_pid_t=no
11447fi
11448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11449fi
11450echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11451echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11452if test $ac_cv_type_pid_t = yes; then
11453 :
11454else
11455
11456cat >>confdefs.h <<_ACEOF
11457#define pid_t int
11458_ACEOF
11459
11460fi
11461
11462echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11463echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11464if test "${ac_cv_type_uid_t+set}" = set; then
11465 echo $ECHO_N "(cached) $ECHO_C" >&6
11466else
11467 cat >conftest.$ac_ext <<_ACEOF
11468/* confdefs.h. */
11469_ACEOF
11470cat confdefs.h >>conftest.$ac_ext
11471cat >>conftest.$ac_ext <<_ACEOF
11472/* end confdefs.h. */
11473#include <sys/types.h>
11474
11475_ACEOF
11476if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11477 $EGREP "uid_t" >/dev/null 2>&1; then
11478 ac_cv_type_uid_t=yes
11479else
11480 ac_cv_type_uid_t=no
7437fi 11481fi
7438rm -f conftest* 11482rm -f conftest*
11483
11484fi
11485echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11486echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11487if test $ac_cv_type_uid_t = no; then
11488
11489cat >>confdefs.h <<\_ACEOF
11490#define uid_t int
11491_ACEOF
11492
11493
11494cat >>confdefs.h <<\_ACEOF
11495#define gid_t int
11496_ACEOF
11497
11498fi
11499
11500
11501
11502echo "$as_me:$LINENO: checking for char" >&5
11503echo $ECHO_N "checking for char... $ECHO_C" >&6
11504if test "${ac_cv_type_char+set}" = set; then
11505 echo $ECHO_N "(cached) $ECHO_C" >&6
11506else
11507 cat >conftest.$ac_ext <<_ACEOF
11508/* confdefs.h. */
11509_ACEOF
11510cat confdefs.h >>conftest.$ac_ext
11511cat >>conftest.$ac_ext <<_ACEOF
11512/* end confdefs.h. */
11513$ac_includes_default
11514int
11515main ()
11516{
11517if ((char *) 0)
11518 return 0;
11519if (sizeof (char))
11520 return 0;
11521 ;
11522 return 0;
11523}
11524_ACEOF
11525rm -f conftest.$ac_objext
11526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11527 (eval $ac_compile) 2>conftest.er1
11528 ac_status=$?
11529 grep -v '^ *+' conftest.er1 >conftest.err
11530 rm -f conftest.er1
11531 cat conftest.err >&5
11532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533 (exit $ac_status); } &&
11534 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11536 (eval $ac_try) 2>&5
11537 ac_status=$?
11538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539 (exit $ac_status); }; } &&
11540 { ac_try='test -s conftest.$ac_objext'
11541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11542 (eval $ac_try) 2>&5
11543 ac_status=$?
11544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545 (exit $ac_status); }; }; then
11546 ac_cv_type_char=yes
11547else
11548 echo "$as_me: failed program was:" >&5
11549sed 's/^/| /' conftest.$ac_ext >&5
11550
11551ac_cv_type_char=no
11552fi
11553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11554fi
11555echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
11556echo "${ECHO_T}$ac_cv_type_char" >&6
11557
11558echo "$as_me:$LINENO: checking size of char" >&5
11559echo $ECHO_N "checking size of char... $ECHO_C" >&6
11560if test "${ac_cv_sizeof_char+set}" = set; then
11561 echo $ECHO_N "(cached) $ECHO_C" >&6
11562else
11563 if test "$ac_cv_type_char" = yes; then
11564 # The cast to unsigned long works around a bug in the HP C Compiler
11565 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11566 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11567 # This bug is HP SR number 8606223364.
11568 if test "$cross_compiling" = yes; then
11569 # Depending upon the size, compute the lo and hi bounds.
11570cat >conftest.$ac_ext <<_ACEOF
11571/* confdefs.h. */
11572_ACEOF
11573cat confdefs.h >>conftest.$ac_ext
11574cat >>conftest.$ac_ext <<_ACEOF
11575/* end confdefs.h. */
11576$ac_includes_default
11577int
11578main ()
11579{
11580static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
11581test_array [0] = 0
11582
11583 ;
11584 return 0;
11585}
11586_ACEOF
11587rm -f conftest.$ac_objext
11588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11589 (eval $ac_compile) 2>conftest.er1
11590 ac_status=$?
11591 grep -v '^ *+' conftest.er1 >conftest.err
11592 rm -f conftest.er1
11593 cat conftest.err >&5
11594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595 (exit $ac_status); } &&
11596 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11598 (eval $ac_try) 2>&5
11599 ac_status=$?
11600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601 (exit $ac_status); }; } &&
11602 { ac_try='test -s conftest.$ac_objext'
11603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11604 (eval $ac_try) 2>&5
11605 ac_status=$?
11606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607 (exit $ac_status); }; }; then
11608 ac_lo=0 ac_mid=0
11609 while :; do
11610 cat >conftest.$ac_ext <<_ACEOF
11611/* confdefs.h. */
11612_ACEOF
11613cat confdefs.h >>conftest.$ac_ext
11614cat >>conftest.$ac_ext <<_ACEOF
11615/* end confdefs.h. */
11616$ac_includes_default
11617int
11618main ()
11619{
11620static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11621test_array [0] = 0
11622
11623 ;
11624 return 0;
11625}
11626_ACEOF
11627rm -f conftest.$ac_objext
11628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11629 (eval $ac_compile) 2>conftest.er1
11630 ac_status=$?
11631 grep -v '^ *+' conftest.er1 >conftest.err
11632 rm -f conftest.er1
11633 cat conftest.err >&5
11634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635 (exit $ac_status); } &&
11636 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11638 (eval $ac_try) 2>&5
11639 ac_status=$?
11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641 (exit $ac_status); }; } &&
11642 { ac_try='test -s conftest.$ac_objext'
11643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11644 (eval $ac_try) 2>&5
11645 ac_status=$?
11646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 (exit $ac_status); }; }; then
11648 ac_hi=$ac_mid; break
11649else
11650 echo "$as_me: failed program was:" >&5
11651sed 's/^/| /' conftest.$ac_ext >&5
11652
11653ac_lo=`expr $ac_mid + 1`
11654 if test $ac_lo -le $ac_mid; then
11655 ac_lo= ac_hi=
11656 break
11657 fi
11658 ac_mid=`expr 2 '*' $ac_mid + 1`
11659fi
11660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11661 done
11662else
11663 echo "$as_me: failed program was:" >&5
11664sed 's/^/| /' conftest.$ac_ext >&5
11665
11666cat >conftest.$ac_ext <<_ACEOF
11667/* confdefs.h. */
11668_ACEOF
11669cat confdefs.h >>conftest.$ac_ext
11670cat >>conftest.$ac_ext <<_ACEOF
11671/* end confdefs.h. */
11672$ac_includes_default
11673int
11674main ()
11675{
11676static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
11677test_array [0] = 0
11678
11679 ;
11680 return 0;
11681}
11682_ACEOF
11683rm -f conftest.$ac_objext
11684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11685 (eval $ac_compile) 2>conftest.er1
11686 ac_status=$?
11687 grep -v '^ *+' conftest.er1 >conftest.err
11688 rm -f conftest.er1
11689 cat conftest.err >&5
11690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11691 (exit $ac_status); } &&
11692 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11694 (eval $ac_try) 2>&5
11695 ac_status=$?
11696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697 (exit $ac_status); }; } &&
11698 { ac_try='test -s conftest.$ac_objext'
11699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11700 (eval $ac_try) 2>&5
11701 ac_status=$?
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); }; }; then
11704 ac_hi=-1 ac_mid=-1
11705 while :; do
11706 cat >conftest.$ac_ext <<_ACEOF
11707/* confdefs.h. */
11708_ACEOF
11709cat confdefs.h >>conftest.$ac_ext
11710cat >>conftest.$ac_ext <<_ACEOF
11711/* end confdefs.h. */
11712$ac_includes_default
11713int
11714main ()
11715{
11716static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
11717test_array [0] = 0
11718
11719 ;
11720 return 0;
11721}
11722_ACEOF
11723rm -f conftest.$ac_objext
11724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11725 (eval $ac_compile) 2>conftest.er1
11726 ac_status=$?
11727 grep -v '^ *+' conftest.er1 >conftest.err
11728 rm -f conftest.er1
11729 cat conftest.err >&5
11730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731 (exit $ac_status); } &&
11732 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11734 (eval $ac_try) 2>&5
11735 ac_status=$?
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); }; } &&
11738 { ac_try='test -s conftest.$ac_objext'
11739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11740 (eval $ac_try) 2>&5
11741 ac_status=$?
11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743 (exit $ac_status); }; }; then
11744 ac_lo=$ac_mid; break
11745else
11746 echo "$as_me: failed program was:" >&5
11747sed 's/^/| /' conftest.$ac_ext >&5
11748
11749ac_hi=`expr '(' $ac_mid ')' - 1`
11750 if test $ac_mid -le $ac_hi; then
11751 ac_lo= ac_hi=
11752 break
11753 fi
11754 ac_mid=`expr 2 '*' $ac_mid`
11755fi
11756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11757 done
11758else
11759 echo "$as_me: failed program was:" >&5
11760sed 's/^/| /' conftest.$ac_ext >&5
11761
11762ac_lo= ac_hi=
11763fi
11764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11765fi
11766rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11767# Binary search between lo and hi bounds.
11768while test "x$ac_lo" != "x$ac_hi"; do
11769 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11770 cat >conftest.$ac_ext <<_ACEOF
11771/* confdefs.h. */
11772_ACEOF
11773cat confdefs.h >>conftest.$ac_ext
11774cat >>conftest.$ac_ext <<_ACEOF
11775/* end confdefs.h. */
11776$ac_includes_default
11777int
11778main ()
11779{
11780static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11781test_array [0] = 0
11782
11783 ;
11784 return 0;
11785}
11786_ACEOF
11787rm -f conftest.$ac_objext
11788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11789 (eval $ac_compile) 2>conftest.er1
11790 ac_status=$?
11791 grep -v '^ *+' conftest.er1 >conftest.err
11792 rm -f conftest.er1
11793 cat conftest.err >&5
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); } &&
11796 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11798 (eval $ac_try) 2>&5
11799 ac_status=$?
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); }; } &&
11802 { ac_try='test -s conftest.$ac_objext'
11803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11804 (eval $ac_try) 2>&5
11805 ac_status=$?
11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807 (exit $ac_status); }; }; then
11808 ac_hi=$ac_mid
11809else
11810 echo "$as_me: failed program was:" >&5
11811sed 's/^/| /' conftest.$ac_ext >&5
11812
11813ac_lo=`expr '(' $ac_mid ')' + 1`
11814fi
11815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7439done 11816done
7440 11817case $ac_lo in
7441fi 11818?*) ac_cv_sizeof_char=$ac_lo;;
7442 11819'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
7443echo "$ac_t""$ac_cv_c_inline" 1>&6 11820See \`config.log' for more details." >&5
7444case "$ac_cv_c_inline" in 11821echo "$as_me: error: cannot compute sizeof (char), 77
7445 inline | yes) ;; 11822See \`config.log' for more details." >&2;}
7446 no) cat >> confdefs.h <<\EOF 11823 { (exit 1); exit 1; }; } ;;
7447#define inline
7448EOF
7449 ;;
7450 *) cat >> confdefs.h <<EOF
7451#define inline $ac_cv_c_inline
7452EOF
7453 ;;
7454esac 11824esac
7455
7456
7457
7458echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
7459echo "configure:7460: checking for ANSI C header files" >&5
7460if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
7461 echo $ac_n "(cached) $ac_c" 1>&6
7462else 11825else
11826 if test "$cross_compiling" = yes; then
11827 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
11828echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
11829 { (exit 1); exit 1; }; }
11830else
7463 cat > conftest.$ac_ext <<EOF 11831 cat >conftest.$ac_ext <<_ACEOF
7464#line 7465 "configure" 11832/* confdefs.h. */
7465#include "confdefs.h" 11833_ACEOF
11834cat confdefs.h >>conftest.$ac_ext
11835cat >>conftest.$ac_ext <<_ACEOF
11836/* end confdefs.h. */
11837$ac_includes_default
11838long longval () { return (long) (sizeof (char)); }
11839unsigned long ulongval () { return (long) (sizeof (char)); }
11840#include <stdio.h>
7466#include <stdlib.h> 11841#include <stdlib.h>
7467#include <stdarg.h> 11842int
7468#include <string.h> 11843main ()
7469#include <float.h> 11844{
7470EOF 11845
7471ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11846 FILE *f = fopen ("conftest.val", "w");
7472{ (eval echo configure:7473: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11847 if (! f)
7473ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11848 exit (1);
7474if test -z "$ac_err"; then 11849 if (((long) (sizeof (char))) < 0)
7475 rm -rf conftest* 11850 {
7476 ac_cv_header_stdc=yes 11851 long i = longval ();
11852 if (i != ((long) (sizeof (char))))
11853 exit (1);
11854 fprintf (f, "%ld\n", i);
11855 }
7477else 11856 else
7478 echo "$ac_err" >&5 11857 {
11858 unsigned long i = ulongval ();
11859 if (i != ((long) (sizeof (char))))
11860 exit (1);
11861 fprintf (f, "%lu\n", i);
11862 }
11863 exit (ferror (f) || fclose (f) != 0);
11864
11865 ;
11866 return 0;
11867}
11868_ACEOF
11869rm -f conftest$ac_exeext
11870if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11871 (eval $ac_link) 2>&5
11872 ac_status=$?
11873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11876 (eval $ac_try) 2>&5
11877 ac_status=$?
11878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879 (exit $ac_status); }; }; then
11880 ac_cv_sizeof_char=`cat conftest.val`
11881else
11882 echo "$as_me: program exited with status $ac_status" >&5
7479 echo "configure: failed program was:" >&5 11883echo "$as_me: failed program was:" >&5
7480 cat conftest.$ac_ext >&5 11884sed 's/^/| /' conftest.$ac_ext >&5
7481 rm -rf conftest* 11885
7482 ac_cv_header_stdc=no 11886( exit $ac_status )
11887{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
11888See \`config.log' for more details." >&5
11889echo "$as_me: error: cannot compute sizeof (char), 77
11890See \`config.log' for more details." >&2;}
11891 { (exit 1); exit 1; }; }
7483fi 11892fi
11893rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11894fi
11895fi
7484rm -f conftest* 11896rm -f conftest.val
11897else
11898 ac_cv_sizeof_char=0
11899fi
11900fi
11901echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
11902echo "${ECHO_T}$ac_cv_sizeof_char" >&6
11903cat >>confdefs.h <<_ACEOF
11904#define SIZEOF_CHAR $ac_cv_sizeof_char
11905_ACEOF
7485 11906
11907
11908echo "$as_me:$LINENO: checking for short" >&5
11909echo $ECHO_N "checking for short... $ECHO_C" >&6
11910if test "${ac_cv_type_short+set}" = set; then
11911 echo $ECHO_N "(cached) $ECHO_C" >&6
11912else
11913 cat >conftest.$ac_ext <<_ACEOF
11914/* confdefs.h. */
11915_ACEOF
11916cat confdefs.h >>conftest.$ac_ext
11917cat >>conftest.$ac_ext <<_ACEOF
11918/* end confdefs.h. */
11919$ac_includes_default
11920int
11921main ()
11922{
11923if ((short *) 0)
11924 return 0;
11925if (sizeof (short))
11926 return 0;
11927 ;
11928 return 0;
11929}
11930_ACEOF
11931rm -f conftest.$ac_objext
11932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11933 (eval $ac_compile) 2>conftest.er1
11934 ac_status=$?
11935 grep -v '^ *+' conftest.er1 >conftest.err
11936 rm -f conftest.er1
11937 cat conftest.err >&5
11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939 (exit $ac_status); } &&
11940 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11942 (eval $ac_try) 2>&5
11943 ac_status=$?
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); }; } &&
11946 { ac_try='test -s conftest.$ac_objext'
11947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11948 (eval $ac_try) 2>&5
11949 ac_status=$?
11950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951 (exit $ac_status); }; }; then
11952 ac_cv_type_short=yes
11953else
11954 echo "$as_me: failed program was:" >&5
11955sed 's/^/| /' conftest.$ac_ext >&5
11956
11957ac_cv_type_short=no
11958fi
11959rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11960fi
11961echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
11962echo "${ECHO_T}$ac_cv_type_short" >&6
11963
11964echo "$as_me:$LINENO: checking size of short" >&5
11965echo $ECHO_N "checking size of short... $ECHO_C" >&6
11966if test "${ac_cv_sizeof_short+set}" = set; then
11967 echo $ECHO_N "(cached) $ECHO_C" >&6
11968else
7486if test $ac_cv_header_stdc = yes; then 11969 if test "$ac_cv_type_short" = yes; then
7487 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 11970 # The cast to unsigned long works around a bug in the HP C Compiler
11971 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11972 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11973 # This bug is HP SR number 8606223364.
11974 if test "$cross_compiling" = yes; then
11975 # Depending upon the size, compute the lo and hi bounds.
7488cat > conftest.$ac_ext <<EOF 11976cat >conftest.$ac_ext <<_ACEOF
7489#line 7490 "configure" 11977/* confdefs.h. */
7490#include "confdefs.h" 11978_ACEOF
7491#include <string.h> 11979cat confdefs.h >>conftest.$ac_ext
7492EOF 11980cat >>conftest.$ac_ext <<_ACEOF
7493if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11981/* end confdefs.h. */
7494 egrep "memchr" >/dev/null 2>&1; then 11982$ac_includes_default
7495 : 11983int
7496else 11984main ()
11985{
11986static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
11987test_array [0] = 0
11988
11989 ;
11990 return 0;
11991}
11992_ACEOF
11993rm -f conftest.$ac_objext
11994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11995 (eval $ac_compile) 2>conftest.er1
11996 ac_status=$?
11997 grep -v '^ *+' conftest.er1 >conftest.err
7497 rm -rf conftest* 11998 rm -f conftest.er1
7498 ac_cv_header_stdc=no 11999 cat conftest.err >&5
7499fi 12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); } &&
12002 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12004 (eval $ac_try) 2>&5
12005 ac_status=$?
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); }; } &&
12008 { ac_try='test -s conftest.$ac_objext'
12009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12010 (eval $ac_try) 2>&5
12011 ac_status=$?
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); }; }; then
12014 ac_lo=0 ac_mid=0
12015 while :; do
12016 cat >conftest.$ac_ext <<_ACEOF
12017/* confdefs.h. */
12018_ACEOF
12019cat confdefs.h >>conftest.$ac_ext
12020cat >>conftest.$ac_ext <<_ACEOF
12021/* end confdefs.h. */
12022$ac_includes_default
12023int
12024main ()
12025{
12026static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
12027test_array [0] = 0
12028
12029 ;
12030 return 0;
12031}
12032_ACEOF
12033rm -f conftest.$ac_objext
12034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12035 (eval $ac_compile) 2>conftest.er1
12036 ac_status=$?
12037 grep -v '^ *+' conftest.er1 >conftest.err
7500rm -f conftest* 12038 rm -f conftest.er1
12039 cat conftest.err >&5
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); } &&
12042 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12044 (eval $ac_try) 2>&5
12045 ac_status=$?
12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 (exit $ac_status); }; } &&
12048 { ac_try='test -s conftest.$ac_objext'
12049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12050 (eval $ac_try) 2>&5
12051 ac_status=$?
12052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053 (exit $ac_status); }; }; then
12054 ac_hi=$ac_mid; break
12055else
12056 echo "$as_me: failed program was:" >&5
12057sed 's/^/| /' conftest.$ac_ext >&5
7501 12058
12059ac_lo=`expr $ac_mid + 1`
12060 if test $ac_lo -le $ac_mid; then
12061 ac_lo= ac_hi=
12062 break
12063 fi
12064 ac_mid=`expr 2 '*' $ac_mid + 1`
7502fi 12065fi
12066rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12067 done
12068else
12069 echo "$as_me: failed program was:" >&5
12070sed 's/^/| /' conftest.$ac_ext >&5
7503 12071
7504if test $ac_cv_header_stdc = yes; then
7505 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7506cat > conftest.$ac_ext <<EOF 12072cat >conftest.$ac_ext <<_ACEOF
7507#line 7508 "configure" 12073/* confdefs.h. */
7508#include "confdefs.h" 12074_ACEOF
12075cat confdefs.h >>conftest.$ac_ext
12076cat >>conftest.$ac_ext <<_ACEOF
12077/* end confdefs.h. */
12078$ac_includes_default
12079int
12080main ()
12081{
12082static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
12083test_array [0] = 0
12084
12085 ;
12086 return 0;
12087}
12088_ACEOF
12089rm -f conftest.$ac_objext
12090if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12091 (eval $ac_compile) 2>conftest.er1
12092 ac_status=$?
12093 grep -v '^ *+' conftest.er1 >conftest.err
12094 rm -f conftest.er1
12095 cat conftest.err >&5
12096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097 (exit $ac_status); } &&
12098 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12100 (eval $ac_try) 2>&5
12101 ac_status=$?
12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); }; } &&
12104 { ac_try='test -s conftest.$ac_objext'
12105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12106 (eval $ac_try) 2>&5
12107 ac_status=$?
12108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109 (exit $ac_status); }; }; then
12110 ac_hi=-1 ac_mid=-1
12111 while :; do
12112 cat >conftest.$ac_ext <<_ACEOF
12113/* confdefs.h. */
12114_ACEOF
12115cat confdefs.h >>conftest.$ac_ext
12116cat >>conftest.$ac_ext <<_ACEOF
12117/* end confdefs.h. */
12118$ac_includes_default
12119int
12120main ()
12121{
12122static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
12123test_array [0] = 0
12124
12125 ;
12126 return 0;
12127}
12128_ACEOF
12129rm -f conftest.$ac_objext
12130if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12131 (eval $ac_compile) 2>conftest.er1
12132 ac_status=$?
12133 grep -v '^ *+' conftest.er1 >conftest.err
12134 rm -f conftest.er1
12135 cat conftest.err >&5
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 (exit $ac_status); } &&
12138 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12140 (eval $ac_try) 2>&5
12141 ac_status=$?
12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143 (exit $ac_status); }; } &&
12144 { ac_try='test -s conftest.$ac_objext'
12145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12146 (eval $ac_try) 2>&5
12147 ac_status=$?
12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149 (exit $ac_status); }; }; then
12150 ac_lo=$ac_mid; break
12151else
12152 echo "$as_me: failed program was:" >&5
12153sed 's/^/| /' conftest.$ac_ext >&5
12154
12155ac_hi=`expr '(' $ac_mid ')' - 1`
12156 if test $ac_mid -le $ac_hi; then
12157 ac_lo= ac_hi=
12158 break
12159 fi
12160 ac_mid=`expr 2 '*' $ac_mid`
12161fi
12162rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12163 done
12164else
12165 echo "$as_me: failed program was:" >&5
12166sed 's/^/| /' conftest.$ac_ext >&5
12167
12168ac_lo= ac_hi=
12169fi
12170rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12171fi
12172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12173# Binary search between lo and hi bounds.
12174while test "x$ac_lo" != "x$ac_hi"; do
12175 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12176 cat >conftest.$ac_ext <<_ACEOF
12177/* confdefs.h. */
12178_ACEOF
12179cat confdefs.h >>conftest.$ac_ext
12180cat >>conftest.$ac_ext <<_ACEOF
12181/* end confdefs.h. */
12182$ac_includes_default
12183int
12184main ()
12185{
12186static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
12187test_array [0] = 0
12188
12189 ;
12190 return 0;
12191}
12192_ACEOF
12193rm -f conftest.$ac_objext
12194if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12195 (eval $ac_compile) 2>conftest.er1
12196 ac_status=$?
12197 grep -v '^ *+' conftest.er1 >conftest.err
12198 rm -f conftest.er1
12199 cat conftest.err >&5
12200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201 (exit $ac_status); } &&
12202 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12204 (eval $ac_try) 2>&5
12205 ac_status=$?
12206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207 (exit $ac_status); }; } &&
12208 { ac_try='test -s conftest.$ac_objext'
12209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12210 (eval $ac_try) 2>&5
12211 ac_status=$?
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); }; }; then
12214 ac_hi=$ac_mid
12215else
12216 echo "$as_me: failed program was:" >&5
12217sed 's/^/| /' conftest.$ac_ext >&5
12218
12219ac_lo=`expr '(' $ac_mid ')' + 1`
12220fi
12221rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12222done
12223case $ac_lo in
12224?*) ac_cv_sizeof_short=$ac_lo;;
12225'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
12226See \`config.log' for more details." >&5
12227echo "$as_me: error: cannot compute sizeof (short), 77
12228See \`config.log' for more details." >&2;}
12229 { (exit 1); exit 1; }; } ;;
12230esac
12231else
12232 if test "$cross_compiling" = yes; then
12233 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
12234echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
12235 { (exit 1); exit 1; }; }
12236else
12237 cat >conftest.$ac_ext <<_ACEOF
12238/* confdefs.h. */
12239_ACEOF
12240cat confdefs.h >>conftest.$ac_ext
12241cat >>conftest.$ac_ext <<_ACEOF
12242/* end confdefs.h. */
12243$ac_includes_default
12244long longval () { return (long) (sizeof (short)); }
12245unsigned long ulongval () { return (long) (sizeof (short)); }
12246#include <stdio.h>
7509#include <stdlib.h> 12247#include <stdlib.h>
7510EOF 12248int
7511if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12249main ()
7512 egrep "free" >/dev/null 2>&1; then 12250{
7513 : 12251
12252 FILE *f = fopen ("conftest.val", "w");
12253 if (! f)
12254 exit (1);
12255 if (((long) (sizeof (short))) < 0)
12256 {
12257 long i = longval ();
12258 if (i != ((long) (sizeof (short))))
12259 exit (1);
12260 fprintf (f, "%ld\n", i);
12261 }
7514else 12262 else
7515 rm -rf conftest* 12263 {
7516 ac_cv_header_stdc=no 12264 unsigned long i = ulongval ();
12265 if (i != ((long) (sizeof (short))))
12266 exit (1);
12267 fprintf (f, "%lu\n", i);
12268 }
12269 exit (ferror (f) || fclose (f) != 0);
12270
12271 ;
12272 return 0;
12273}
12274_ACEOF
12275rm -f conftest$ac_exeext
12276if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12277 (eval $ac_link) 2>&5
12278 ac_status=$?
12279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12282 (eval $ac_try) 2>&5
12283 ac_status=$?
12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285 (exit $ac_status); }; }; then
12286 ac_cv_sizeof_short=`cat conftest.val`
12287else
12288 echo "$as_me: program exited with status $ac_status" >&5
12289echo "$as_me: failed program was:" >&5
12290sed 's/^/| /' conftest.$ac_ext >&5
12291
12292( exit $ac_status )
12293{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
12294See \`config.log' for more details." >&5
12295echo "$as_me: error: cannot compute sizeof (short), 77
12296See \`config.log' for more details." >&2;}
12297 { (exit 1); exit 1; }; }
7517fi 12298fi
12299rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12300fi
12301fi
7518rm -f conftest* 12302rm -f conftest.val
7519 12303else
12304 ac_cv_sizeof_short=0
7520fi 12305fi
12306fi
12307echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
12308echo "${ECHO_T}$ac_cv_sizeof_short" >&6
12309cat >>confdefs.h <<_ACEOF
12310#define SIZEOF_SHORT $ac_cv_sizeof_short
12311_ACEOF
7521 12312
12313
12314echo "$as_me:$LINENO: checking for int" >&5
12315echo $ECHO_N "checking for int... $ECHO_C" >&6
12316if test "${ac_cv_type_int+set}" = set; then
12317 echo $ECHO_N "(cached) $ECHO_C" >&6
12318else
12319 cat >conftest.$ac_ext <<_ACEOF
12320/* confdefs.h. */
12321_ACEOF
12322cat confdefs.h >>conftest.$ac_ext
12323cat >>conftest.$ac_ext <<_ACEOF
12324/* end confdefs.h. */
12325$ac_includes_default
12326int
12327main ()
12328{
12329if ((int *) 0)
12330 return 0;
12331if (sizeof (int))
12332 return 0;
12333 ;
12334 return 0;
12335}
12336_ACEOF
12337rm -f conftest.$ac_objext
12338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12339 (eval $ac_compile) 2>conftest.er1
12340 ac_status=$?
12341 grep -v '^ *+' conftest.er1 >conftest.err
12342 rm -f conftest.er1
12343 cat conftest.err >&5
12344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345 (exit $ac_status); } &&
12346 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12348 (eval $ac_try) 2>&5
12349 ac_status=$?
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); }; } &&
12352 { ac_try='test -s conftest.$ac_objext'
12353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12354 (eval $ac_try) 2>&5
12355 ac_status=$?
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); }; }; then
12358 ac_cv_type_int=yes
12359else
12360 echo "$as_me: failed program was:" >&5
12361sed 's/^/| /' conftest.$ac_ext >&5
12362
12363ac_cv_type_int=no
12364fi
12365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12366fi
12367echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12368echo "${ECHO_T}$ac_cv_type_int" >&6
12369
12370echo "$as_me:$LINENO: checking size of int" >&5
12371echo $ECHO_N "checking size of int... $ECHO_C" >&6
12372if test "${ac_cv_sizeof_int+set}" = set; then
12373 echo $ECHO_N "(cached) $ECHO_C" >&6
12374else
7522if test $ac_cv_header_stdc = yes; then 12375 if test "$ac_cv_type_int" = yes; then
7523 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 12376 # The cast to unsigned long works around a bug in the HP C Compiler
12377 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12378 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12379 # This bug is HP SR number 8606223364.
7524if test "$cross_compiling" = yes; then 12380 if test "$cross_compiling" = yes; then
7525 : 12381 # Depending upon the size, compute the lo and hi bounds.
12382cat >conftest.$ac_ext <<_ACEOF
12383/* confdefs.h. */
12384_ACEOF
12385cat confdefs.h >>conftest.$ac_ext
12386cat >>conftest.$ac_ext <<_ACEOF
12387/* end confdefs.h. */
12388$ac_includes_default
12389int
12390main ()
12391{
12392static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
12393test_array [0] = 0
12394
12395 ;
12396 return 0;
12397}
12398_ACEOF
12399rm -f conftest.$ac_objext
12400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12401 (eval $ac_compile) 2>conftest.er1
12402 ac_status=$?
12403 grep -v '^ *+' conftest.er1 >conftest.err
12404 rm -f conftest.er1
12405 cat conftest.err >&5
12406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 (exit $ac_status); } &&
12408 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12410 (eval $ac_try) 2>&5
12411 ac_status=$?
12412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413 (exit $ac_status); }; } &&
12414 { ac_try='test -s conftest.$ac_objext'
12415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12416 (eval $ac_try) 2>&5
12417 ac_status=$?
12418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419 (exit $ac_status); }; }; then
12420 ac_lo=0 ac_mid=0
12421 while :; do
12422 cat >conftest.$ac_ext <<_ACEOF
12423/* confdefs.h. */
12424_ACEOF
12425cat confdefs.h >>conftest.$ac_ext
12426cat >>conftest.$ac_ext <<_ACEOF
12427/* end confdefs.h. */
12428$ac_includes_default
12429int
12430main ()
12431{
12432static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12433test_array [0] = 0
12434
12435 ;
12436 return 0;
12437}
12438_ACEOF
12439rm -f conftest.$ac_objext
12440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12441 (eval $ac_compile) 2>conftest.er1
12442 ac_status=$?
12443 grep -v '^ *+' conftest.er1 >conftest.err
12444 rm -f conftest.er1
12445 cat conftest.err >&5
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); } &&
12448 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12450 (eval $ac_try) 2>&5
12451 ac_status=$?
12452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); }; } &&
12454 { ac_try='test -s conftest.$ac_objext'
12455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12456 (eval $ac_try) 2>&5
12457 ac_status=$?
12458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459 (exit $ac_status); }; }; then
12460 ac_hi=$ac_mid; break
7526else 12461else
12462 echo "$as_me: failed program was:" >&5
12463sed 's/^/| /' conftest.$ac_ext >&5
12464
12465ac_lo=`expr $ac_mid + 1`
12466 if test $ac_lo -le $ac_mid; then
12467 ac_lo= ac_hi=
12468 break
12469 fi
12470 ac_mid=`expr 2 '*' $ac_mid + 1`
12471fi
12472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12473 done
12474else
12475 echo "$as_me: failed program was:" >&5
12476sed 's/^/| /' conftest.$ac_ext >&5
12477
12478cat >conftest.$ac_ext <<_ACEOF
12479/* confdefs.h. */
12480_ACEOF
12481cat confdefs.h >>conftest.$ac_ext
12482cat >>conftest.$ac_ext <<_ACEOF
12483/* end confdefs.h. */
12484$ac_includes_default
12485int
12486main ()
12487{
12488static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
12489test_array [0] = 0
12490
12491 ;
12492 return 0;
12493}
12494_ACEOF
12495rm -f conftest.$ac_objext
12496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12497 (eval $ac_compile) 2>conftest.er1
12498 ac_status=$?
12499 grep -v '^ *+' conftest.er1 >conftest.err
12500 rm -f conftest.er1
12501 cat conftest.err >&5
12502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503 (exit $ac_status); } &&
12504 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12506 (eval $ac_try) 2>&5
12507 ac_status=$?
12508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509 (exit $ac_status); }; } &&
12510 { ac_try='test -s conftest.$ac_objext'
12511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12512 (eval $ac_try) 2>&5
12513 ac_status=$?
12514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515 (exit $ac_status); }; }; then
12516 ac_hi=-1 ac_mid=-1
12517 while :; do
12518 cat >conftest.$ac_ext <<_ACEOF
12519/* confdefs.h. */
12520_ACEOF
12521cat confdefs.h >>conftest.$ac_ext
12522cat >>conftest.$ac_ext <<_ACEOF
12523/* end confdefs.h. */
12524$ac_includes_default
12525int
12526main ()
12527{
12528static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
12529test_array [0] = 0
12530
12531 ;
12532 return 0;
12533}
12534_ACEOF
12535rm -f conftest.$ac_objext
12536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12537 (eval $ac_compile) 2>conftest.er1
12538 ac_status=$?
12539 grep -v '^ *+' conftest.er1 >conftest.err
12540 rm -f conftest.er1
12541 cat conftest.err >&5
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); } &&
12544 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12546 (eval $ac_try) 2>&5
12547 ac_status=$?
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); }; } &&
12550 { ac_try='test -s conftest.$ac_objext'
12551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12552 (eval $ac_try) 2>&5
12553 ac_status=$?
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); }; }; then
12556 ac_lo=$ac_mid; break
12557else
12558 echo "$as_me: failed program was:" >&5
12559sed 's/^/| /' conftest.$ac_ext >&5
12560
12561ac_hi=`expr '(' $ac_mid ')' - 1`
12562 if test $ac_mid -le $ac_hi; then
12563 ac_lo= ac_hi=
12564 break
12565 fi
12566 ac_mid=`expr 2 '*' $ac_mid`
12567fi
12568rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12569 done
12570else
12571 echo "$as_me: failed program was:" >&5
12572sed 's/^/| /' conftest.$ac_ext >&5
12573
12574ac_lo= ac_hi=
12575fi
12576rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12577fi
12578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12579# Binary search between lo and hi bounds.
12580while test "x$ac_lo" != "x$ac_hi"; do
12581 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7527 cat > conftest.$ac_ext <<EOF 12582 cat >conftest.$ac_ext <<_ACEOF
7528#line 7529 "configure" 12583/* confdefs.h. */
7529#include "confdefs.h" 12584_ACEOF
7530#include <ctype.h> 12585cat confdefs.h >>conftest.$ac_ext
7531#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 12586cat >>conftest.$ac_ext <<_ACEOF
7532#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 12587/* end confdefs.h. */
7533#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 12588$ac_includes_default
7534int main () { int i; for (i = 0; i < 256; i++) 12589int
7535if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 12590main ()
7536exit (0); } 12591{
12592static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12593test_array [0] = 0
7537 12594
7538EOF 12595 ;
7539if { (eval echo configure:7540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 12596 return 0;
7540then 12597}
7541 : 12598_ACEOF
12599rm -f conftest.$ac_objext
12600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12601 (eval $ac_compile) 2>conftest.er1
12602 ac_status=$?
12603 grep -v '^ *+' conftest.er1 >conftest.err
12604 rm -f conftest.er1
12605 cat conftest.err >&5
12606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607 (exit $ac_status); } &&
12608 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12610 (eval $ac_try) 2>&5
12611 ac_status=$?
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); }; } &&
12614 { ac_try='test -s conftest.$ac_objext'
12615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12616 (eval $ac_try) 2>&5
12617 ac_status=$?
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); }; }; then
12620 ac_hi=$ac_mid
7542else 12621else
7543 echo "configure: failed program was:" >&5 12622 echo "$as_me: failed program was:" >&5
7544 cat conftest.$ac_ext >&5 12623sed 's/^/| /' conftest.$ac_ext >&5
7545 rm -fr conftest*
7546 ac_cv_header_stdc=no
7547fi
7548rm -fr conftest*
7549fi
7550 12624
12625ac_lo=`expr '(' $ac_mid ')' + 1`
7551fi 12626fi
7552fi 12627rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7553 12628done
7554echo "$ac_t""$ac_cv_header_stdc" 1>&6 12629case $ac_lo in
7555if test $ac_cv_header_stdc = yes; then 12630?*) ac_cv_sizeof_int=$ac_lo;;
7556 cat >> confdefs.h <<\EOF 12631'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7557#define STDC_HEADERS 1 12632See \`config.log' for more details." >&5
7558EOF 12633echo "$as_me: error: cannot compute sizeof (int), 77
7559 12634See \`config.log' for more details." >&2;}
7560fi 12635 { (exit 1); exit 1; }; } ;;
7561 12636esac
7562echo $ac_n "checking for mode_t""... $ac_c" 1>&6
7563echo "configure:7564: checking for mode_t" >&5
7564if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
7565 echo $ac_n "(cached) $ac_c" 1>&6
7566else 12637else
12638 if test "$cross_compiling" = yes; then
12639 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
12640echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
12641 { (exit 1); exit 1; }; }
12642else
7567 cat > conftest.$ac_ext <<EOF 12643 cat >conftest.$ac_ext <<_ACEOF
7568#line 7569 "configure" 12644/* confdefs.h. */
7569#include "confdefs.h" 12645_ACEOF
12646cat confdefs.h >>conftest.$ac_ext
12647cat >>conftest.$ac_ext <<_ACEOF
12648/* end confdefs.h. */
12649$ac_includes_default
12650long longval () { return (long) (sizeof (int)); }
12651unsigned long ulongval () { return (long) (sizeof (int)); }
7570#include <sys/types.h> 12652#include <stdio.h>
7571#if STDC_HEADERS
7572#include <stdlib.h> 12653#include <stdlib.h>
7573#include <stddef.h> 12654int
7574#endif 12655main ()
7575EOF 12656{
7576if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12657
7577 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 12658 FILE *f = fopen ("conftest.val", "w");
7578 rm -rf conftest* 12659 if (! f)
7579 ac_cv_type_mode_t=yes 12660 exit (1);
12661 if (((long) (sizeof (int))) < 0)
12662 {
12663 long i = longval ();
12664 if (i != ((long) (sizeof (int))))
12665 exit (1);
12666 fprintf (f, "%ld\n", i);
12667 }
7580else 12668 else
7581 rm -rf conftest* 12669 {
7582 ac_cv_type_mode_t=no 12670 unsigned long i = ulongval ();
12671 if (i != ((long) (sizeof (int))))
12672 exit (1);
12673 fprintf (f, "%lu\n", i);
12674 }
12675 exit (ferror (f) || fclose (f) != 0);
12676
12677 ;
12678 return 0;
12679}
12680_ACEOF
12681rm -f conftest$ac_exeext
12682if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12683 (eval $ac_link) 2>&5
12684 ac_status=$?
12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12688 (eval $ac_try) 2>&5
12689 ac_status=$?
12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); }; }; then
12692 ac_cv_sizeof_int=`cat conftest.val`
12693else
12694 echo "$as_me: program exited with status $ac_status" >&5
12695echo "$as_me: failed program was:" >&5
12696sed 's/^/| /' conftest.$ac_ext >&5
12697
12698( exit $ac_status )
12699{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12700See \`config.log' for more details." >&5
12701echo "$as_me: error: cannot compute sizeof (int), 77
12702See \`config.log' for more details." >&2;}
12703 { (exit 1); exit 1; }; }
7583fi 12704fi
12705rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12706fi
12707fi
7584rm -f conftest* 12708rm -f conftest.val
7585 12709else
12710 ac_cv_sizeof_int=0
7586fi 12711fi
7587echo "$ac_t""$ac_cv_type_mode_t" 1>&6 12712fi
7588if test $ac_cv_type_mode_t = no; then 12713echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
12714echo "${ECHO_T}$ac_cv_sizeof_int" >&6
7589 cat >> confdefs.h <<\EOF 12715cat >>confdefs.h <<_ACEOF
7590#define mode_t int 12716#define SIZEOF_INT $ac_cv_sizeof_int
7591EOF 12717_ACEOF
7592 12718
7593fi
7594 12719
7595echo $ac_n "checking for pid_t""... $ac_c" 1>&6 12720echo "$as_me:$LINENO: checking for long" >&5
7596echo "configure:7597: checking for pid_t" >&5 12721echo $ECHO_N "checking for long... $ECHO_C" >&6
7597if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then 12722if test "${ac_cv_type_long+set}" = set; then
7598 echo $ac_n "(cached) $ac_c" 1>&6 12723 echo $ECHO_N "(cached) $ECHO_C" >&6
7599else 12724else
7600 cat > conftest.$ac_ext <<EOF 12725 cat >conftest.$ac_ext <<_ACEOF
7601#line 7602 "configure" 12726/* confdefs.h. */
7602#include "confdefs.h" 12727_ACEOF
12728cat confdefs.h >>conftest.$ac_ext
12729cat >>conftest.$ac_ext <<_ACEOF
12730/* end confdefs.h. */
12731$ac_includes_default
12732int
12733main ()
12734{
12735if ((long *) 0)
12736 return 0;
12737if (sizeof (long))
12738 return 0;
12739 ;
12740 return 0;
12741}
12742_ACEOF
12743rm -f conftest.$ac_objext
12744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12745 (eval $ac_compile) 2>conftest.er1
12746 ac_status=$?
12747 grep -v '^ *+' conftest.er1 >conftest.err
12748 rm -f conftest.er1
12749 cat conftest.err >&5
12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); } &&
12752 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12754 (eval $ac_try) 2>&5
12755 ac_status=$?
12756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757 (exit $ac_status); }; } &&
12758 { ac_try='test -s conftest.$ac_objext'
12759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12760 (eval $ac_try) 2>&5
12761 ac_status=$?
12762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763 (exit $ac_status); }; }; then
12764 ac_cv_type_long=yes
12765else
12766 echo "$as_me: failed program was:" >&5
12767sed 's/^/| /' conftest.$ac_ext >&5
12768
12769ac_cv_type_long=no
12770fi
12771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12772fi
12773echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12774echo "${ECHO_T}$ac_cv_type_long" >&6
12775
12776echo "$as_me:$LINENO: checking size of long" >&5
12777echo $ECHO_N "checking size of long... $ECHO_C" >&6
12778if test "${ac_cv_sizeof_long+set}" = set; then
12779 echo $ECHO_N "(cached) $ECHO_C" >&6
12780else
12781 if test "$ac_cv_type_long" = yes; then
12782 # The cast to unsigned long works around a bug in the HP C Compiler
12783 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12784 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12785 # This bug is HP SR number 8606223364.
12786 if test "$cross_compiling" = yes; then
12787 # Depending upon the size, compute the lo and hi bounds.
12788cat >conftest.$ac_ext <<_ACEOF
12789/* confdefs.h. */
12790_ACEOF
12791cat confdefs.h >>conftest.$ac_ext
12792cat >>conftest.$ac_ext <<_ACEOF
12793/* end confdefs.h. */
12794$ac_includes_default
12795int
12796main ()
12797{
12798static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12799test_array [0] = 0
12800
12801 ;
12802 return 0;
12803}
12804_ACEOF
12805rm -f conftest.$ac_objext
12806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12807 (eval $ac_compile) 2>conftest.er1
12808 ac_status=$?
12809 grep -v '^ *+' conftest.er1 >conftest.err
12810 rm -f conftest.er1
12811 cat conftest.err >&5
12812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813 (exit $ac_status); } &&
12814 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12816 (eval $ac_try) 2>&5
12817 ac_status=$?
12818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819 (exit $ac_status); }; } &&
12820 { ac_try='test -s conftest.$ac_objext'
12821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12822 (eval $ac_try) 2>&5
12823 ac_status=$?
12824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825 (exit $ac_status); }; }; then
12826 ac_lo=0 ac_mid=0
12827 while :; do
12828 cat >conftest.$ac_ext <<_ACEOF
12829/* confdefs.h. */
12830_ACEOF
12831cat confdefs.h >>conftest.$ac_ext
12832cat >>conftest.$ac_ext <<_ACEOF
12833/* end confdefs.h. */
12834$ac_includes_default
12835int
12836main ()
12837{
12838static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12839test_array [0] = 0
12840
12841 ;
12842 return 0;
12843}
12844_ACEOF
12845rm -f conftest.$ac_objext
12846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12847 (eval $ac_compile) 2>conftest.er1
12848 ac_status=$?
12849 grep -v '^ *+' conftest.er1 >conftest.err
12850 rm -f conftest.er1
12851 cat conftest.err >&5
12852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853 (exit $ac_status); } &&
12854 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12856 (eval $ac_try) 2>&5
12857 ac_status=$?
12858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); }; } &&
12860 { ac_try='test -s conftest.$ac_objext'
12861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12862 (eval $ac_try) 2>&5
12863 ac_status=$?
12864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865 (exit $ac_status); }; }; then
12866 ac_hi=$ac_mid; break
12867else
12868 echo "$as_me: failed program was:" >&5
12869sed 's/^/| /' conftest.$ac_ext >&5
12870
12871ac_lo=`expr $ac_mid + 1`
12872 if test $ac_lo -le $ac_mid; then
12873 ac_lo= ac_hi=
12874 break
12875 fi
12876 ac_mid=`expr 2 '*' $ac_mid + 1`
12877fi
12878rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12879 done
12880else
12881 echo "$as_me: failed program was:" >&5
12882sed 's/^/| /' conftest.$ac_ext >&5
12883
12884cat >conftest.$ac_ext <<_ACEOF
12885/* confdefs.h. */
12886_ACEOF
12887cat confdefs.h >>conftest.$ac_ext
12888cat >>conftest.$ac_ext <<_ACEOF
12889/* end confdefs.h. */
12890$ac_includes_default
12891int
12892main ()
12893{
12894static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12895test_array [0] = 0
12896
12897 ;
12898 return 0;
12899}
12900_ACEOF
12901rm -f conftest.$ac_objext
12902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12903 (eval $ac_compile) 2>conftest.er1
12904 ac_status=$?
12905 grep -v '^ *+' conftest.er1 >conftest.err
12906 rm -f conftest.er1
12907 cat conftest.err >&5
12908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909 (exit $ac_status); } &&
12910 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12912 (eval $ac_try) 2>&5
12913 ac_status=$?
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); }; } &&
12916 { ac_try='test -s conftest.$ac_objext'
12917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12918 (eval $ac_try) 2>&5
12919 ac_status=$?
12920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921 (exit $ac_status); }; }; then
12922 ac_hi=-1 ac_mid=-1
12923 while :; do
12924 cat >conftest.$ac_ext <<_ACEOF
12925/* confdefs.h. */
12926_ACEOF
12927cat confdefs.h >>conftest.$ac_ext
12928cat >>conftest.$ac_ext <<_ACEOF
12929/* end confdefs.h. */
12930$ac_includes_default
12931int
12932main ()
12933{
12934static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12935test_array [0] = 0
12936
12937 ;
12938 return 0;
12939}
12940_ACEOF
12941rm -f conftest.$ac_objext
12942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12943 (eval $ac_compile) 2>conftest.er1
12944 ac_status=$?
12945 grep -v '^ *+' conftest.er1 >conftest.err
12946 rm -f conftest.er1
12947 cat conftest.err >&5
12948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); } &&
12950 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12952 (eval $ac_try) 2>&5
12953 ac_status=$?
12954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955 (exit $ac_status); }; } &&
12956 { ac_try='test -s conftest.$ac_objext'
12957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12958 (eval $ac_try) 2>&5
12959 ac_status=$?
12960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12961 (exit $ac_status); }; }; then
12962 ac_lo=$ac_mid; break
12963else
12964 echo "$as_me: failed program was:" >&5
12965sed 's/^/| /' conftest.$ac_ext >&5
12966
12967ac_hi=`expr '(' $ac_mid ')' - 1`
12968 if test $ac_mid -le $ac_hi; then
12969 ac_lo= ac_hi=
12970 break
12971 fi
12972 ac_mid=`expr 2 '*' $ac_mid`
12973fi
12974rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12975 done
12976else
12977 echo "$as_me: failed program was:" >&5
12978sed 's/^/| /' conftest.$ac_ext >&5
12979
12980ac_lo= ac_hi=
12981fi
12982rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12983fi
12984rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12985# Binary search between lo and hi bounds.
12986while test "x$ac_lo" != "x$ac_hi"; do
12987 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12988 cat >conftest.$ac_ext <<_ACEOF
12989/* confdefs.h. */
12990_ACEOF
12991cat confdefs.h >>conftest.$ac_ext
12992cat >>conftest.$ac_ext <<_ACEOF
12993/* end confdefs.h. */
12994$ac_includes_default
12995int
12996main ()
12997{
12998static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12999test_array [0] = 0
13000
13001 ;
13002 return 0;
13003}
13004_ACEOF
13005rm -f conftest.$ac_objext
13006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13007 (eval $ac_compile) 2>conftest.er1
13008 ac_status=$?
13009 grep -v '^ *+' conftest.er1 >conftest.err
13010 rm -f conftest.er1
13011 cat conftest.err >&5
13012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013 (exit $ac_status); } &&
13014 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13016 (eval $ac_try) 2>&5
13017 ac_status=$?
13018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019 (exit $ac_status); }; } &&
13020 { ac_try='test -s conftest.$ac_objext'
13021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13022 (eval $ac_try) 2>&5
13023 ac_status=$?
13024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025 (exit $ac_status); }; }; then
13026 ac_hi=$ac_mid
13027else
13028 echo "$as_me: failed program was:" >&5
13029sed 's/^/| /' conftest.$ac_ext >&5
13030
13031ac_lo=`expr '(' $ac_mid ')' + 1`
13032fi
13033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13034done
13035case $ac_lo in
13036?*) ac_cv_sizeof_long=$ac_lo;;
13037'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13038See \`config.log' for more details." >&5
13039echo "$as_me: error: cannot compute sizeof (long), 77
13040See \`config.log' for more details." >&2;}
13041 { (exit 1); exit 1; }; } ;;
13042esac
13043else
13044 if test "$cross_compiling" = yes; then
13045 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
13046echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
13047 { (exit 1); exit 1; }; }
13048else
13049 cat >conftest.$ac_ext <<_ACEOF
13050/* confdefs.h. */
13051_ACEOF
13052cat confdefs.h >>conftest.$ac_ext
13053cat >>conftest.$ac_ext <<_ACEOF
13054/* end confdefs.h. */
13055$ac_includes_default
13056long longval () { return (long) (sizeof (long)); }
13057unsigned long ulongval () { return (long) (sizeof (long)); }
7603#include <sys/types.h> 13058#include <stdio.h>
7604#if STDC_HEADERS
7605#include <stdlib.h> 13059#include <stdlib.h>
7606#include <stddef.h> 13060int
7607#endif 13061main ()
7608EOF 13062{
7609if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13063
7610 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 13064 FILE *f = fopen ("conftest.val", "w");
7611 rm -rf conftest* 13065 if (! f)
7612 ac_cv_type_pid_t=yes 13066 exit (1);
13067 if (((long) (sizeof (long))) < 0)
13068 {
13069 long i = longval ();
13070 if (i != ((long) (sizeof (long))))
13071 exit (1);
13072 fprintf (f, "%ld\n", i);
13073 }
7613else 13074 else
7614 rm -rf conftest* 13075 {
7615 ac_cv_type_pid_t=no 13076 unsigned long i = ulongval ();
13077 if (i != ((long) (sizeof (long))))
13078 exit (1);
13079 fprintf (f, "%lu\n", i);
13080 }
13081 exit (ferror (f) || fclose (f) != 0);
13082
13083 ;
13084 return 0;
13085}
13086_ACEOF
13087rm -f conftest$ac_exeext
13088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13089 (eval $ac_link) 2>&5
13090 ac_status=$?
13091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13094 (eval $ac_try) 2>&5
13095 ac_status=$?
13096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097 (exit $ac_status); }; }; then
13098 ac_cv_sizeof_long=`cat conftest.val`
13099else
13100 echo "$as_me: program exited with status $ac_status" >&5
13101echo "$as_me: failed program was:" >&5
13102sed 's/^/| /' conftest.$ac_ext >&5
13103
13104( exit $ac_status )
13105{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13106See \`config.log' for more details." >&5
13107echo "$as_me: error: cannot compute sizeof (long), 77
13108See \`config.log' for more details." >&2;}
13109 { (exit 1); exit 1; }; }
7616fi 13110fi
13111rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13112fi
13113fi
7617rm -f conftest* 13114rm -f conftest.val
7618 13115else
13116 ac_cv_sizeof_long=0
7619fi 13117fi
7620echo "$ac_t""$ac_cv_type_pid_t" 1>&6 13118fi
7621if test $ac_cv_type_pid_t = no; then 13119echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13120echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7622 cat >> confdefs.h <<\EOF 13121cat >>confdefs.h <<_ACEOF
7623#define pid_t int 13122#define SIZEOF_LONG $ac_cv_sizeof_long
7624EOF 13123_ACEOF
7625 13124
7626fi
7627 13125
7628echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 13126echo "$as_me:$LINENO: checking for long long" >&5
7629echo "configure:7630: checking for uid_t in sys/types.h" >&5 13127echo $ECHO_N "checking for long long... $ECHO_C" >&6
7630if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then 13128if test "${ac_cv_type_long_long+set}" = set; then
7631 echo $ac_n "(cached) $ac_c" 1>&6 13129 echo $ECHO_N "(cached) $ECHO_C" >&6
7632else 13130else
7633 cat > conftest.$ac_ext <<EOF 13131 cat >conftest.$ac_ext <<_ACEOF
7634#line 7635 "configure" 13132/* confdefs.h. */
7635#include "confdefs.h" 13133_ACEOF
7636#include <sys/types.h> 13134cat confdefs.h >>conftest.$ac_ext
7637EOF 13135cat >>conftest.$ac_ext <<_ACEOF
7638if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13136/* end confdefs.h. */
7639 egrep "uid_t" >/dev/null 2>&1; then 13137$ac_includes_default
13138int
13139main ()
13140{
13141if ((long long *) 0)
13142 return 0;
13143if (sizeof (long long))
13144 return 0;
13145 ;
13146 return 0;
13147}
13148_ACEOF
13149rm -f conftest.$ac_objext
13150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13151 (eval $ac_compile) 2>conftest.er1
13152 ac_status=$?
13153 grep -v '^ *+' conftest.er1 >conftest.err
7640 rm -rf conftest* 13154 rm -f conftest.er1
13155 cat conftest.err >&5
13156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157 (exit $ac_status); } &&
13158 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13160 (eval $ac_try) 2>&5
13161 ac_status=$?
13162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163 (exit $ac_status); }; } &&
13164 { ac_try='test -s conftest.$ac_objext'
13165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13166 (eval $ac_try) 2>&5
13167 ac_status=$?
13168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169 (exit $ac_status); }; }; then
7641 ac_cv_type_uid_t=yes 13170 ac_cv_type_long_long=yes
7642else 13171else
7643 rm -rf conftest* 13172 echo "$as_me: failed program was:" >&5
7644 ac_cv_type_uid_t=no 13173sed 's/^/| /' conftest.$ac_ext >&5
7645fi
7646rm -f conftest*
7647 13174
13175ac_cv_type_long_long=no
7648fi 13176fi
7649 13177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7650echo "$ac_t""$ac_cv_type_uid_t" 1>&6
7651if test $ac_cv_type_uid_t = no; then
7652 cat >> confdefs.h <<\EOF
7653#define uid_t int
7654EOF
7655
7656 cat >> confdefs.h <<\EOF
7657#define gid_t int
7658EOF
7659
7660fi 13178fi
13179echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13180echo "${ECHO_T}$ac_cv_type_long_long" >&6
7661 13181
7662 13182echo "$as_me:$LINENO: checking size of long long" >&5
7663 13183echo $ECHO_N "checking size of long long... $ECHO_C" >&6
7664echo $ac_n "checking size of char""... $ac_c" 1>&6 13184if test "${ac_cv_sizeof_long_long+set}" = set; then
7665echo "configure:7666: checking size of char" >&5
7666if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
7667 echo $ac_n "(cached) $ac_c" 1>&6 13185 echo $ECHO_N "(cached) $ECHO_C" >&6
7668else 13186else
13187 if test "$ac_cv_type_long_long" = yes; then
13188 # The cast to unsigned long works around a bug in the HP C Compiler
13189 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13190 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13191 # This bug is HP SR number 8606223364.
7669 if test "$cross_compiling" = yes; then 13192 if test "$cross_compiling" = yes; then
7670 ac_cv_sizeof_char=1 13193 # Depending upon the size, compute the lo and hi bounds.
13194cat >conftest.$ac_ext <<_ACEOF
13195/* confdefs.h. */
13196_ACEOF
13197cat confdefs.h >>conftest.$ac_ext
13198cat >>conftest.$ac_ext <<_ACEOF
13199/* end confdefs.h. */
13200$ac_includes_default
13201int
13202main ()
13203{
13204static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
13205test_array [0] = 0
13206
13207 ;
13208 return 0;
13209}
13210_ACEOF
13211rm -f conftest.$ac_objext
13212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13213 (eval $ac_compile) 2>conftest.er1
13214 ac_status=$?
13215 grep -v '^ *+' conftest.er1 >conftest.err
13216 rm -f conftest.er1
13217 cat conftest.err >&5
13218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219 (exit $ac_status); } &&
13220 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13222 (eval $ac_try) 2>&5
13223 ac_status=$?
13224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225 (exit $ac_status); }; } &&
13226 { ac_try='test -s conftest.$ac_objext'
13227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13228 (eval $ac_try) 2>&5
13229 ac_status=$?
13230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231 (exit $ac_status); }; }; then
13232 ac_lo=0 ac_mid=0
13233 while :; do
13234 cat >conftest.$ac_ext <<_ACEOF
13235/* confdefs.h. */
13236_ACEOF
13237cat confdefs.h >>conftest.$ac_ext
13238cat >>conftest.$ac_ext <<_ACEOF
13239/* end confdefs.h. */
13240$ac_includes_default
13241int
13242main ()
13243{
13244static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
13245test_array [0] = 0
13246
13247 ;
13248 return 0;
13249}
13250_ACEOF
13251rm -f conftest.$ac_objext
13252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13253 (eval $ac_compile) 2>conftest.er1
13254 ac_status=$?
13255 grep -v '^ *+' conftest.er1 >conftest.err
13256 rm -f conftest.er1
13257 cat conftest.err >&5
13258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259 (exit $ac_status); } &&
13260 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13262 (eval $ac_try) 2>&5
13263 ac_status=$?
13264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265 (exit $ac_status); }; } &&
13266 { ac_try='test -s conftest.$ac_objext'
13267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13268 (eval $ac_try) 2>&5
13269 ac_status=$?
13270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271 (exit $ac_status); }; }; then
13272 ac_hi=$ac_mid; break
7671else 13273else
13274 echo "$as_me: failed program was:" >&5
13275sed 's/^/| /' conftest.$ac_ext >&5
13276
13277ac_lo=`expr $ac_mid + 1`
13278 if test $ac_lo -le $ac_mid; then
13279 ac_lo= ac_hi=
13280 break
13281 fi
13282 ac_mid=`expr 2 '*' $ac_mid + 1`
13283fi
13284rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13285 done
13286else
13287 echo "$as_me: failed program was:" >&5
13288sed 's/^/| /' conftest.$ac_ext >&5
13289
13290cat >conftest.$ac_ext <<_ACEOF
13291/* confdefs.h. */
13292_ACEOF
13293cat confdefs.h >>conftest.$ac_ext
13294cat >>conftest.$ac_ext <<_ACEOF
13295/* end confdefs.h. */
13296$ac_includes_default
13297int
13298main ()
13299{
13300static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
13301test_array [0] = 0
13302
13303 ;
13304 return 0;
13305}
13306_ACEOF
13307rm -f conftest.$ac_objext
13308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13309 (eval $ac_compile) 2>conftest.er1
13310 ac_status=$?
13311 grep -v '^ *+' conftest.er1 >conftest.err
13312 rm -f conftest.er1
13313 cat conftest.err >&5
13314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315 (exit $ac_status); } &&
13316 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13318 (eval $ac_try) 2>&5
13319 ac_status=$?
13320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13321 (exit $ac_status); }; } &&
13322 { ac_try='test -s conftest.$ac_objext'
13323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13324 (eval $ac_try) 2>&5
13325 ac_status=$?
13326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13327 (exit $ac_status); }; }; then
13328 ac_hi=-1 ac_mid=-1
13329 while :; do
13330 cat >conftest.$ac_ext <<_ACEOF
13331/* confdefs.h. */
13332_ACEOF
13333cat confdefs.h >>conftest.$ac_ext
13334cat >>conftest.$ac_ext <<_ACEOF
13335/* end confdefs.h. */
13336$ac_includes_default
13337int
13338main ()
13339{
13340static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
13341test_array [0] = 0
13342
13343 ;
13344 return 0;
13345}
13346_ACEOF
13347rm -f conftest.$ac_objext
13348if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13349 (eval $ac_compile) 2>conftest.er1
13350 ac_status=$?
13351 grep -v '^ *+' conftest.er1 >conftest.err
13352 rm -f conftest.er1
13353 cat conftest.err >&5
13354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13355 (exit $ac_status); } &&
13356 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13358 (eval $ac_try) 2>&5
13359 ac_status=$?
13360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361 (exit $ac_status); }; } &&
13362 { ac_try='test -s conftest.$ac_objext'
13363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13364 (eval $ac_try) 2>&5
13365 ac_status=$?
13366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367 (exit $ac_status); }; }; then
13368 ac_lo=$ac_mid; break
13369else
13370 echo "$as_me: failed program was:" >&5
13371sed 's/^/| /' conftest.$ac_ext >&5
13372
13373ac_hi=`expr '(' $ac_mid ')' - 1`
13374 if test $ac_mid -le $ac_hi; then
13375 ac_lo= ac_hi=
13376 break
13377 fi
13378 ac_mid=`expr 2 '*' $ac_mid`
13379fi
13380rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13381 done
13382else
13383 echo "$as_me: failed program was:" >&5
13384sed 's/^/| /' conftest.$ac_ext >&5
13385
13386ac_lo= ac_hi=
13387fi
13388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13389fi
13390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13391# Binary search between lo and hi bounds.
13392while test "x$ac_lo" != "x$ac_hi"; do
13393 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7672 cat > conftest.$ac_ext <<EOF 13394 cat >conftest.$ac_ext <<_ACEOF
7673#line 7674 "configure" 13395/* confdefs.h. */
7674#include "confdefs.h" 13396_ACEOF
13397cat confdefs.h >>conftest.$ac_ext
13398cat >>conftest.$ac_ext <<_ACEOF
13399/* end confdefs.h. */
13400$ac_includes_default
13401int
13402main ()
13403{
13404static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
13405test_array [0] = 0
13406
13407 ;
13408 return 0;
13409}
13410_ACEOF
13411rm -f conftest.$ac_objext
13412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13413 (eval $ac_compile) 2>conftest.er1
13414 ac_status=$?
13415 grep -v '^ *+' conftest.er1 >conftest.err
13416 rm -f conftest.er1
13417 cat conftest.err >&5
13418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419 (exit $ac_status); } &&
13420 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13422 (eval $ac_try) 2>&5
13423 ac_status=$?
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); }; } &&
13426 { ac_try='test -s conftest.$ac_objext'
13427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13428 (eval $ac_try) 2>&5
13429 ac_status=$?
13430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431 (exit $ac_status); }; }; then
13432 ac_hi=$ac_mid
13433else
13434 echo "$as_me: failed program was:" >&5
13435sed 's/^/| /' conftest.$ac_ext >&5
13436
13437ac_lo=`expr '(' $ac_mid ')' + 1`
13438fi
13439rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13440done
13441case $ac_lo in
13442?*) ac_cv_sizeof_long_long=$ac_lo;;
13443'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
13444See \`config.log' for more details." >&5
13445echo "$as_me: error: cannot compute sizeof (long long), 77
13446See \`config.log' for more details." >&2;}
13447 { (exit 1); exit 1; }; } ;;
13448esac
13449else
13450 if test "$cross_compiling" = yes; then
13451 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
13452echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
13453 { (exit 1); exit 1; }; }
13454else
13455 cat >conftest.$ac_ext <<_ACEOF
13456/* confdefs.h. */
13457_ACEOF
13458cat confdefs.h >>conftest.$ac_ext
13459cat >>conftest.$ac_ext <<_ACEOF
13460/* end confdefs.h. */
13461$ac_includes_default
13462long longval () { return (long) (sizeof (long long)); }
13463unsigned long ulongval () { return (long) (sizeof (long long)); }
7675#include <stdio.h> 13464#include <stdio.h>
7676#include <sys/types.h> 13465#include <stdlib.h>
13466int
7677main() 13467main ()
7678{ 13468{
13469
7679 FILE *f=fopen("conftestval", "w"); 13470 FILE *f = fopen ("conftest.val", "w");
7680 if (!f) exit(1); 13471 if (! f)
7681 fprintf(f, "%d\n", sizeof(char));
7682 exit(0); 13472 exit (1);
13473 if (((long) (sizeof (long long))) < 0)
13474 {
13475 long i = longval ();
13476 if (i != ((long) (sizeof (long long))))
13477 exit (1);
13478 fprintf (f, "%ld\n", i);
13479 }
13480 else
13481 {
13482 unsigned long i = ulongval ();
13483 if (i != ((long) (sizeof (long long))))
13484 exit (1);
13485 fprintf (f, "%lu\n", i);
13486 }
13487 exit (ferror (f) || fclose (f) != 0);
13488
13489 ;
13490 return 0;
7683} 13491}
7684EOF 13492_ACEOF
7685if { (eval echo configure:7686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 13493rm -f conftest$ac_exeext
7686then 13494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13495 (eval $ac_link) 2>&5
13496 ac_status=$?
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13500 (eval $ac_try) 2>&5
13501 ac_status=$?
13502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503 (exit $ac_status); }; }; then
7687 ac_cv_sizeof_char=`cat conftestval` 13504 ac_cv_sizeof_long_long=`cat conftest.val`
7688else 13505else
13506 echo "$as_me: program exited with status $ac_status" >&5
7689 echo "configure: failed program was:" >&5 13507echo "$as_me: failed program was:" >&5
7690 cat conftest.$ac_ext >&5 13508sed 's/^/| /' conftest.$ac_ext >&5
7691 rm -fr conftest* 13509
7692 ac_cv_sizeof_char=0 13510( exit $ac_status )
13511{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
13512See \`config.log' for more details." >&5
13513echo "$as_me: error: cannot compute sizeof (long long), 77
13514See \`config.log' for more details." >&2;}
13515 { (exit 1); exit 1; }; }
7693fi 13516fi
13517rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13518fi
13519fi
7694rm -fr conftest* 13520rm -f conftest.val
13521else
13522 ac_cv_sizeof_long_long=0
7695fi 13523fi
7696
7697fi 13524fi
7698echo "$ac_t""$ac_cv_sizeof_char" 1>&6 13525echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
13526echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
7699cat >> confdefs.h <<EOF 13527cat >>confdefs.h <<_ACEOF
7700#define SIZEOF_CHAR $ac_cv_sizeof_char 13528#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7701EOF 13529_ACEOF
7702 13530
7703 13531
7704echo $ac_n "checking size of short""... $ac_c" 1>&6 13532echo "$as_me:$LINENO: checking for int *" >&5
7705echo "configure:7706: checking size of short" >&5 13533echo $ECHO_N "checking for int *... $ECHO_C" >&6
7706if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then 13534if test "${ac_cv_type_int_p+set}" = set; then
7707 echo $ac_n "(cached) $ac_c" 1>&6 13535 echo $ECHO_N "(cached) $ECHO_C" >&6
7708else 13536else
13537 cat >conftest.$ac_ext <<_ACEOF
13538/* confdefs.h. */
13539_ACEOF
13540cat confdefs.h >>conftest.$ac_ext
13541cat >>conftest.$ac_ext <<_ACEOF
13542/* end confdefs.h. */
13543$ac_includes_default
13544int
13545main ()
13546{
13547if ((int * *) 0)
13548 return 0;
13549if (sizeof (int *))
13550 return 0;
13551 ;
13552 return 0;
13553}
13554_ACEOF
13555rm -f conftest.$ac_objext
13556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13557 (eval $ac_compile) 2>conftest.er1
13558 ac_status=$?
13559 grep -v '^ *+' conftest.er1 >conftest.err
13560 rm -f conftest.er1
13561 cat conftest.err >&5
13562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563 (exit $ac_status); } &&
13564 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13566 (eval $ac_try) 2>&5
13567 ac_status=$?
13568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569 (exit $ac_status); }; } &&
13570 { ac_try='test -s conftest.$ac_objext'
13571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13572 (eval $ac_try) 2>&5
13573 ac_status=$?
13574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575 (exit $ac_status); }; }; then
13576 ac_cv_type_int_p=yes
13577else
13578 echo "$as_me: failed program was:" >&5
13579sed 's/^/| /' conftest.$ac_ext >&5
13580
13581ac_cv_type_int_p=no
13582fi
13583rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13584fi
13585echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
13586echo "${ECHO_T}$ac_cv_type_int_p" >&6
13587
13588echo "$as_me:$LINENO: checking size of int *" >&5
13589echo $ECHO_N "checking size of int *... $ECHO_C" >&6
13590if test "${ac_cv_sizeof_int_p+set}" = set; then
13591 echo $ECHO_N "(cached) $ECHO_C" >&6
13592else
13593 if test "$ac_cv_type_int_p" = yes; then
13594 # The cast to unsigned long works around a bug in the HP C Compiler
13595 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13596 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13597 # This bug is HP SR number 8606223364.
7709 if test "$cross_compiling" = yes; then 13598 if test "$cross_compiling" = yes; then
7710 ac_cv_sizeof_short=2 13599 # Depending upon the size, compute the lo and hi bounds.
13600cat >conftest.$ac_ext <<_ACEOF
13601/* confdefs.h. */
13602_ACEOF
13603cat confdefs.h >>conftest.$ac_ext
13604cat >>conftest.$ac_ext <<_ACEOF
13605/* end confdefs.h. */
13606$ac_includes_default
13607int
13608main ()
13609{
13610static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
13611test_array [0] = 0
13612
13613 ;
13614 return 0;
13615}
13616_ACEOF
13617rm -f conftest.$ac_objext
13618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13619 (eval $ac_compile) 2>conftest.er1
13620 ac_status=$?
13621 grep -v '^ *+' conftest.er1 >conftest.err
13622 rm -f conftest.er1
13623 cat conftest.err >&5
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); } &&
13626 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13628 (eval $ac_try) 2>&5
13629 ac_status=$?
13630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13631 (exit $ac_status); }; } &&
13632 { ac_try='test -s conftest.$ac_objext'
13633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13634 (eval $ac_try) 2>&5
13635 ac_status=$?
13636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); }; }; then
13638 ac_lo=0 ac_mid=0
13639 while :; do
13640 cat >conftest.$ac_ext <<_ACEOF
13641/* confdefs.h. */
13642_ACEOF
13643cat confdefs.h >>conftest.$ac_ext
13644cat >>conftest.$ac_ext <<_ACEOF
13645/* end confdefs.h. */
13646$ac_includes_default
13647int
13648main ()
13649{
13650static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
13651test_array [0] = 0
13652
13653 ;
13654 return 0;
13655}
13656_ACEOF
13657rm -f conftest.$ac_objext
13658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13659 (eval $ac_compile) 2>conftest.er1
13660 ac_status=$?
13661 grep -v '^ *+' conftest.er1 >conftest.err
13662 rm -f conftest.er1
13663 cat conftest.err >&5
13664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665 (exit $ac_status); } &&
13666 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13668 (eval $ac_try) 2>&5
13669 ac_status=$?
13670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671 (exit $ac_status); }; } &&
13672 { ac_try='test -s conftest.$ac_objext'
13673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13674 (eval $ac_try) 2>&5
13675 ac_status=$?
13676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677 (exit $ac_status); }; }; then
13678 ac_hi=$ac_mid; break
7711else 13679else
13680 echo "$as_me: failed program was:" >&5
13681sed 's/^/| /' conftest.$ac_ext >&5
13682
13683ac_lo=`expr $ac_mid + 1`
13684 if test $ac_lo -le $ac_mid; then
13685 ac_lo= ac_hi=
13686 break
13687 fi
13688 ac_mid=`expr 2 '*' $ac_mid + 1`
13689fi
13690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13691 done
13692else
13693 echo "$as_me: failed program was:" >&5
13694sed 's/^/| /' conftest.$ac_ext >&5
13695
13696cat >conftest.$ac_ext <<_ACEOF
13697/* confdefs.h. */
13698_ACEOF
13699cat confdefs.h >>conftest.$ac_ext
13700cat >>conftest.$ac_ext <<_ACEOF
13701/* end confdefs.h. */
13702$ac_includes_default
13703int
13704main ()
13705{
13706static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
13707test_array [0] = 0
13708
13709 ;
13710 return 0;
13711}
13712_ACEOF
13713rm -f conftest.$ac_objext
13714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13715 (eval $ac_compile) 2>conftest.er1
13716 ac_status=$?
13717 grep -v '^ *+' conftest.er1 >conftest.err
13718 rm -f conftest.er1
13719 cat conftest.err >&5
13720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721 (exit $ac_status); } &&
13722 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13724 (eval $ac_try) 2>&5
13725 ac_status=$?
13726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727 (exit $ac_status); }; } &&
13728 { ac_try='test -s conftest.$ac_objext'
13729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13730 (eval $ac_try) 2>&5
13731 ac_status=$?
13732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733 (exit $ac_status); }; }; then
13734 ac_hi=-1 ac_mid=-1
13735 while :; do
13736 cat >conftest.$ac_ext <<_ACEOF
13737/* confdefs.h. */
13738_ACEOF
13739cat confdefs.h >>conftest.$ac_ext
13740cat >>conftest.$ac_ext <<_ACEOF
13741/* end confdefs.h. */
13742$ac_includes_default
13743int
13744main ()
13745{
13746static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
13747test_array [0] = 0
13748
13749 ;
13750 return 0;
13751}
13752_ACEOF
13753rm -f conftest.$ac_objext
13754if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13755 (eval $ac_compile) 2>conftest.er1
13756 ac_status=$?
13757 grep -v '^ *+' conftest.er1 >conftest.err
13758 rm -f conftest.er1
13759 cat conftest.err >&5
13760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761 (exit $ac_status); } &&
13762 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13764 (eval $ac_try) 2>&5
13765 ac_status=$?
13766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767 (exit $ac_status); }; } &&
13768 { ac_try='test -s conftest.$ac_objext'
13769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13770 (eval $ac_try) 2>&5
13771 ac_status=$?
13772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773 (exit $ac_status); }; }; then
13774 ac_lo=$ac_mid; break
13775else
13776 echo "$as_me: failed program was:" >&5
13777sed 's/^/| /' conftest.$ac_ext >&5
13778
13779ac_hi=`expr '(' $ac_mid ')' - 1`
13780 if test $ac_mid -le $ac_hi; then
13781 ac_lo= ac_hi=
13782 break
13783 fi
13784 ac_mid=`expr 2 '*' $ac_mid`
13785fi
13786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13787 done
13788else
13789 echo "$as_me: failed program was:" >&5
13790sed 's/^/| /' conftest.$ac_ext >&5
13791
13792ac_lo= ac_hi=
13793fi
13794rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13795fi
13796rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13797# Binary search between lo and hi bounds.
13798while test "x$ac_lo" != "x$ac_hi"; do
13799 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7712 cat > conftest.$ac_ext <<EOF 13800 cat >conftest.$ac_ext <<_ACEOF
7713#line 7714 "configure" 13801/* confdefs.h. */
7714#include "confdefs.h" 13802_ACEOF
13803cat confdefs.h >>conftest.$ac_ext
13804cat >>conftest.$ac_ext <<_ACEOF
13805/* end confdefs.h. */
13806$ac_includes_default
13807int
13808main ()
13809{
13810static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
13811test_array [0] = 0
13812
13813 ;
13814 return 0;
13815}
13816_ACEOF
13817rm -f conftest.$ac_objext
13818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13819 (eval $ac_compile) 2>conftest.er1
13820 ac_status=$?
13821 grep -v '^ *+' conftest.er1 >conftest.err
13822 rm -f conftest.er1
13823 cat conftest.err >&5
13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825 (exit $ac_status); } &&
13826 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13828 (eval $ac_try) 2>&5
13829 ac_status=$?
13830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13831 (exit $ac_status); }; } &&
13832 { ac_try='test -s conftest.$ac_objext'
13833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13834 (eval $ac_try) 2>&5
13835 ac_status=$?
13836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837 (exit $ac_status); }; }; then
13838 ac_hi=$ac_mid
13839else
13840 echo "$as_me: failed program was:" >&5
13841sed 's/^/| /' conftest.$ac_ext >&5
13842
13843ac_lo=`expr '(' $ac_mid ')' + 1`
13844fi
13845rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13846done
13847case $ac_lo in
13848?*) ac_cv_sizeof_int_p=$ac_lo;;
13849'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
13850See \`config.log' for more details." >&5
13851echo "$as_me: error: cannot compute sizeof (int *), 77
13852See \`config.log' for more details." >&2;}
13853 { (exit 1); exit 1; }; } ;;
13854esac
13855else
13856 if test "$cross_compiling" = yes; then
13857 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
13858echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
13859 { (exit 1); exit 1; }; }
13860else
13861 cat >conftest.$ac_ext <<_ACEOF
13862/* confdefs.h. */
13863_ACEOF
13864cat confdefs.h >>conftest.$ac_ext
13865cat >>conftest.$ac_ext <<_ACEOF
13866/* end confdefs.h. */
13867$ac_includes_default
13868long longval () { return (long) (sizeof (int *)); }
13869unsigned long ulongval () { return (long) (sizeof (int *)); }
7715#include <stdio.h> 13870#include <stdio.h>
7716#include <sys/types.h> 13871#include <stdlib.h>
13872int
7717main() 13873main ()
7718{ 13874{
13875
7719 FILE *f=fopen("conftestval", "w"); 13876 FILE *f = fopen ("conftest.val", "w");
7720 if (!f) exit(1); 13877 if (! f)
7721 fprintf(f, "%d\n", sizeof(short));
7722 exit(0); 13878 exit (1);
13879 if (((long) (sizeof (int *))) < 0)
13880 {
13881 long i = longval ();
13882 if (i != ((long) (sizeof (int *))))
13883 exit (1);
13884 fprintf (f, "%ld\n", i);
13885 }
13886 else
13887 {
13888 unsigned long i = ulongval ();
13889 if (i != ((long) (sizeof (int *))))
13890 exit (1);
13891 fprintf (f, "%lu\n", i);
13892 }
13893 exit (ferror (f) || fclose (f) != 0);
13894
13895 ;
13896 return 0;
7723} 13897}
7724EOF 13898_ACEOF
7725if { (eval echo configure:7726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 13899rm -f conftest$ac_exeext
7726then 13900if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13901 (eval $ac_link) 2>&5
13902 ac_status=$?
13903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13906 (eval $ac_try) 2>&5
13907 ac_status=$?
13908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13909 (exit $ac_status); }; }; then
7727 ac_cv_sizeof_short=`cat conftestval` 13910 ac_cv_sizeof_int_p=`cat conftest.val`
7728else 13911else
13912 echo "$as_me: program exited with status $ac_status" >&5
7729 echo "configure: failed program was:" >&5 13913echo "$as_me: failed program was:" >&5
7730 cat conftest.$ac_ext >&5 13914sed 's/^/| /' conftest.$ac_ext >&5
7731 rm -fr conftest* 13915
7732 ac_cv_sizeof_short=0 13916( exit $ac_status )
13917{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
13918See \`config.log' for more details." >&5
13919echo "$as_me: error: cannot compute sizeof (int *), 77
13920See \`config.log' for more details." >&2;}
13921 { (exit 1); exit 1; }; }
7733fi 13922fi
13923rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13924fi
13925fi
7734rm -fr conftest* 13926rm -f conftest.val
13927else
13928 ac_cv_sizeof_int_p=0
7735fi 13929fi
7736
7737fi 13930fi
7738echo "$ac_t""$ac_cv_sizeof_short" 1>&6 13931echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
13932echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
7739cat >> confdefs.h <<EOF 13933cat >>confdefs.h <<_ACEOF
7740#define SIZEOF_SHORT $ac_cv_sizeof_short 13934#define SIZEOF_INT_P $ac_cv_sizeof_int_p
7741EOF 13935_ACEOF
7742 13936
7743 13937
7744echo $ac_n "checking size of int""... $ac_c" 1>&6 13938
7745echo "configure:7746: checking size of int" >&5 13939
7746if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then 13940echo "$as_me:$LINENO: checking for int16_t" >&5
13941echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
13942if test "${rxvt_cv_int16_t+set}" = set; then
7747 echo $ac_n "(cached) $ac_c" 1>&6 13943 echo $ECHO_N "(cached) $ECHO_C" >&6
7748else 13944else
7749 if test "$cross_compiling" = yes; then
7750 ac_cv_sizeof_int=4
7751else
7752 cat > conftest.$ac_ext <<EOF 13945 cat >conftest.$ac_ext <<_ACEOF
7753#line 7754 "configure" 13946/* confdefs.h. */
7754#include "confdefs.h" 13947_ACEOF
13948cat confdefs.h >>conftest.$ac_ext
13949cat >>conftest.$ac_ext <<_ACEOF
13950/* end confdefs.h. */
7755#include <stdio.h> 13951#include <stdint.h>
7756#include <sys/types.h> 13952int
7757main() 13953main ()
7758{ 13954{
7759 FILE *f=fopen("conftestval", "w"); 13955int16_t dummy;
7760 if (!f) exit(1); 13956 ;
7761 fprintf(f, "%d\n", sizeof(int)); 13957 return 0;
7762 exit(0);
7763} 13958}
7764EOF 13959_ACEOF
7765if { (eval echo configure:7766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 13960rm -f conftest.$ac_objext
7766then 13961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7767 ac_cv_sizeof_int=`cat conftestval` 13962 (eval $ac_compile) 2>conftest.er1
7768else 13963 ac_status=$?
7769 echo "configure: failed program was:" >&5 13964 grep -v '^ *+' conftest.er1 >conftest.err
7770 cat conftest.$ac_ext >&5
7771 rm -fr conftest* 13965 rm -f conftest.er1
7772 ac_cv_sizeof_int=0
7773fi
7774rm -fr conftest*
7775fi
7776
7777fi
7778echo "$ac_t""$ac_cv_sizeof_int" 1>&6
7779cat >> confdefs.h <<EOF
7780#define SIZEOF_INT $ac_cv_sizeof_int
7781EOF
7782
7783
7784echo $ac_n "checking size of long""... $ac_c" 1>&6
7785echo "configure:7786: checking size of long" >&5
7786if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
7787 echo $ac_n "(cached) $ac_c" 1>&6
7788else
7789 if test "$cross_compiling" = yes; then
7790 ac_cv_sizeof_long=4
7791else
7792 cat > conftest.$ac_ext <<EOF
7793#line 7794 "configure"
7794#include "confdefs.h"
7795#include <stdio.h>
7796#include <sys/types.h>
7797main()
7798{
7799 FILE *f=fopen("conftestval", "w");
7800 if (!f) exit(1);
7801 fprintf(f, "%d\n", sizeof(long));
7802 exit(0);
7803}
7804EOF
7805if { (eval echo configure:7806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7806then
7807 ac_cv_sizeof_long=`cat conftestval`
7808else
7809 echo "configure: failed program was:" >&5
7810 cat conftest.$ac_ext >&5 13966 cat conftest.err >&5
7811 rm -fr conftest* 13967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812 ac_cv_sizeof_long=0 13968 (exit $ac_status); } &&
7813fi 13969 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7814rm -fr conftest* 13970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7815fi 13971 (eval $ac_try) 2>&5
7816 13972 ac_status=$?
7817fi 13973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818echo "$ac_t""$ac_cv_sizeof_long" 1>&6 13974 (exit $ac_status); }; } &&
7819cat >> confdefs.h <<EOF 13975 { ac_try='test -s conftest.$ac_objext'
7820#define SIZEOF_LONG $ac_cv_sizeof_long 13976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7821EOF 13977 (eval $ac_try) 2>&5
7822 13978 ac_status=$?
7823 13979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824echo $ac_n "checking size of long long""... $ac_c" 1>&6 13980 (exit $ac_status); }; }; then
7825echo "configure:7826: checking size of long long" >&5
7826if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
7827 echo $ac_n "(cached) $ac_c" 1>&6
7828else
7829 if test "$cross_compiling" = yes; then
7830 ac_cv_sizeof_long_long=8
7831else
7832 cat > conftest.$ac_ext <<EOF
7833#line 7834 "configure"
7834#include "confdefs.h"
7835#include <stdio.h>
7836#include <sys/types.h>
7837main()
7838{
7839 FILE *f=fopen("conftestval", "w");
7840 if (!f) exit(1);
7841 fprintf(f, "%d\n", sizeof(long long));
7842 exit(0);
7843}
7844EOF
7845if { (eval echo configure:7846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7846then
7847 ac_cv_sizeof_long_long=`cat conftestval`
7848else
7849 echo "configure: failed program was:" >&5
7850 cat conftest.$ac_ext >&5
7851 rm -fr conftest*
7852 ac_cv_sizeof_long_long=0
7853fi
7854rm -fr conftest*
7855fi
7856
7857fi
7858echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
7859cat >> confdefs.h <<EOF
7860#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7861EOF
7862
7863
7864echo $ac_n "checking size of int *""... $ac_c" 1>&6
7865echo "configure:7866: checking size of int *" >&5
7866if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
7867 echo $ac_n "(cached) $ac_c" 1>&6
7868else
7869 if test "$cross_compiling" = yes; then
7870 ac_cv_sizeof_int_p=4
7871else
7872 cat > conftest.$ac_ext <<EOF
7873#line 7874 "configure"
7874#include "confdefs.h"
7875#include <stdio.h>
7876#include <sys/types.h>
7877main()
7878{
7879 FILE *f=fopen("conftestval", "w");
7880 if (!f) exit(1);
7881 fprintf(f, "%d\n", sizeof(int *));
7882 exit(0);
7883}
7884EOF
7885if { (eval echo configure:7886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7886then
7887 ac_cv_sizeof_int_p=`cat conftestval`
7888else
7889 echo "configure: failed program was:" >&5
7890 cat conftest.$ac_ext >&5
7891 rm -fr conftest*
7892 ac_cv_sizeof_int_p=0
7893fi
7894rm -fr conftest*
7895fi
7896
7897fi
7898echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
7899cat >> confdefs.h <<EOF
7900#define SIZEOF_INT_P $ac_cv_sizeof_int_p
7901EOF
7902
7903
7904
7905
7906echo $ac_n "checking for int16_t""... $ac_c" 1>&6
7907echo "configure:7908: checking for int16_t" >&5
7908if eval "test \"`echo '$''{'rxvt_cv_int16_t'+set}'`\" = set"; then
7909 echo $ac_n "(cached) $ac_c" 1>&6
7910else
7911 cat > conftest.$ac_ext <<EOF
7912#line 7913 "configure"
7913#include "confdefs.h"
7914#include <stdint.h>
7915int main() {
7916int16_t dummy;
7917; return 0; }
7918EOF
7919if { (eval echo configure:7920: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7920 rm -rf conftest*
7921 rxvt_cv_int16_t=yes 13981 rxvt_cv_int16_t=yes
7922else 13982else
7923 echo "configure: failed program was:" >&5 13983 echo "$as_me: failed program was:" >&5
7924 cat conftest.$ac_ext >&5 13984sed 's/^/| /' conftest.$ac_ext >&5
7925 rm -rf conftest* 13985
7926 if test $ac_cv_sizeof_char -ge 2; then 13986if test $ac_cv_sizeof_char -ge 2; then
7927 rxvt_cv_int16_t=" char" 13987 rxvt_cv_int16_t=" char"
7928else 13988else
7929 if test $ac_cv_sizeof_short -ge 2; then 13989 if test $ac_cv_sizeof_short -ge 2; then
7930 rxvt_cv_int16_t=" short" 13990 rxvt_cv_int16_t=" short"
7931 else 13991 else
7943 fi 14003 fi
7944 fi 14004 fi
7945 fi 14005 fi
7946fi 14006fi
7947fi 14007fi
7948rm -f conftest* 14008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7949fi 14009fi
7950 14010echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5
7951echo "$ac_t""$rxvt_cv_int16_t" 1>&6 14011echo "${ECHO_T}$rxvt_cv_int16_t" >&6
7952if test x"$rxvt_cv_int16_t" != xyes; then 14012if test x"$rxvt_cv_int16_t" != xyes; then
7953 rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;" 14013 rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;"
7954else 14014else
7955 if test x"" = x; then 14015 if test x"" = x; then
7956 rxvt_int16_typedef="/* typedef short int16_t; */" 14016 rxvt_int16_typedef="/* typedef short int16_t; */"
7957 else 14017 else
7958 rxvt_int16_typedef="/* typedef short int16_t; */" 14018 rxvt_int16_typedef="/* typedef short int16_t; */"
7959 fi 14019 fi
7960fi 14020fi
7961 14021
14022echo "$as_me:$LINENO: checking for uint16_t" >&5
7962echo $ac_n "checking for uint16_t""... $ac_c" 1>&6 14023echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
7963echo "configure:7964: checking for uint16_t" >&5
7964if eval "test \"`echo '$''{'rxvt_cv_uint16_t'+set}'`\" = set"; then 14024if test "${rxvt_cv_uint16_t+set}" = set; then
7965 echo $ac_n "(cached) $ac_c" 1>&6 14025 echo $ECHO_N "(cached) $ECHO_C" >&6
7966else 14026else
7967 cat > conftest.$ac_ext <<EOF 14027 cat >conftest.$ac_ext <<_ACEOF
7968#line 7969 "configure" 14028/* confdefs.h. */
7969#include "confdefs.h" 14029_ACEOF
14030cat confdefs.h >>conftest.$ac_ext
14031cat >>conftest.$ac_ext <<_ACEOF
14032/* end confdefs.h. */
7970#include <stdint.h> 14033#include <stdint.h>
7971int main() { 14034int
14035main ()
14036{
7972uint16_t dummy; 14037uint16_t dummy;
14038 ;
7973; return 0; } 14039 return 0;
7974EOF 14040}
7975if { (eval echo configure:7976: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14041_ACEOF
14042rm -f conftest.$ac_objext
14043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14044 (eval $ac_compile) 2>conftest.er1
14045 ac_status=$?
14046 grep -v '^ *+' conftest.er1 >conftest.err
7976 rm -rf conftest* 14047 rm -f conftest.er1
14048 cat conftest.err >&5
14049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); } &&
14051 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14053 (eval $ac_try) 2>&5
14054 ac_status=$?
14055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056 (exit $ac_status); }; } &&
14057 { ac_try='test -s conftest.$ac_objext'
14058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14059 (eval $ac_try) 2>&5
14060 ac_status=$?
14061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062 (exit $ac_status); }; }; then
7977 rxvt_cv_uint16_t=yes 14063 rxvt_cv_uint16_t=yes
7978else 14064else
7979 echo "configure: failed program was:" >&5 14065 echo "$as_me: failed program was:" >&5
7980 cat conftest.$ac_ext >&5 14066sed 's/^/| /' conftest.$ac_ext >&5
7981 rm -rf conftest* 14067
7982 if test $ac_cv_sizeof_char -ge 2; then 14068if test $ac_cv_sizeof_char -ge 2; then
7983 rxvt_cv_uint16_t="unsigned char" 14069 rxvt_cv_uint16_t="unsigned char"
7984else 14070else
7985 if test $ac_cv_sizeof_short -ge 2; then 14071 if test $ac_cv_sizeof_short -ge 2; then
7986 rxvt_cv_uint16_t="unsigned short" 14072 rxvt_cv_uint16_t="unsigned short"
7987 else 14073 else
7999 fi 14085 fi
8000 fi 14086 fi
8001 fi 14087 fi
8002fi 14088fi
8003fi 14089fi
8004rm -f conftest* 14090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8005fi 14091fi
8006 14092echo "$as_me:$LINENO: result: $rxvt_cv_uint16_t" >&5
8007echo "$ac_t""$rxvt_cv_uint16_t" 1>&6 14093echo "${ECHO_T}$rxvt_cv_uint16_t" >&6
8008if test x"$rxvt_cv_uint16_t" != xyes; then 14094if test x"$rxvt_cv_uint16_t" != xyes; then
8009 rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;" 14095 rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;"
8010else 14096else
8011 if test x"unsigned" = x; then 14097 if test x"unsigned" = x; then
8012 rxvt_uint16_typedef="/* typedef short uint16_t; */" 14098 rxvt_uint16_typedef="/* typedef short uint16_t; */"
8013 else 14099 else
8014 rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */" 14100 rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */"
8015 fi 14101 fi
8016fi 14102fi
8017 14103
14104echo "$as_me:$LINENO: checking for int32_t" >&5
8018echo $ac_n "checking for int32_t""... $ac_c" 1>&6 14105echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
8019echo "configure:8020: checking for int32_t" >&5
8020if eval "test \"`echo '$''{'rxvt_cv_int32_t'+set}'`\" = set"; then 14106if test "${rxvt_cv_int32_t+set}" = set; then
8021 echo $ac_n "(cached) $ac_c" 1>&6 14107 echo $ECHO_N "(cached) $ECHO_C" >&6
8022else 14108else
8023 cat > conftest.$ac_ext <<EOF 14109 cat >conftest.$ac_ext <<_ACEOF
8024#line 8025 "configure" 14110/* confdefs.h. */
8025#include "confdefs.h" 14111_ACEOF
14112cat confdefs.h >>conftest.$ac_ext
14113cat >>conftest.$ac_ext <<_ACEOF
14114/* end confdefs.h. */
8026#include <stdint.h> 14115#include <stdint.h>
8027int main() { 14116int
14117main ()
14118{
8028int32_t dummy; 14119int32_t dummy;
14120 ;
8029; return 0; } 14121 return 0;
8030EOF 14122}
8031if { (eval echo configure:8032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14123_ACEOF
14124rm -f conftest.$ac_objext
14125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14126 (eval $ac_compile) 2>conftest.er1
14127 ac_status=$?
14128 grep -v '^ *+' conftest.er1 >conftest.err
8032 rm -rf conftest* 14129 rm -f conftest.er1
14130 cat conftest.err >&5
14131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14132 (exit $ac_status); } &&
14133 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14135 (eval $ac_try) 2>&5
14136 ac_status=$?
14137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14138 (exit $ac_status); }; } &&
14139 { ac_try='test -s conftest.$ac_objext'
14140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14141 (eval $ac_try) 2>&5
14142 ac_status=$?
14143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14144 (exit $ac_status); }; }; then
8033 rxvt_cv_int32_t=yes 14145 rxvt_cv_int32_t=yes
8034else 14146else
8035 echo "configure: failed program was:" >&5 14147 echo "$as_me: failed program was:" >&5
8036 cat conftest.$ac_ext >&5 14148sed 's/^/| /' conftest.$ac_ext >&5
8037 rm -rf conftest* 14149
8038 if test $ac_cv_sizeof_char -ge 4; then 14150if test $ac_cv_sizeof_char -ge 4; then
8039 rxvt_cv_int32_t=" char" 14151 rxvt_cv_int32_t=" char"
8040else 14152else
8041 if test $ac_cv_sizeof_short -ge 4; then 14153 if test $ac_cv_sizeof_short -ge 4; then
8042 rxvt_cv_int32_t=" short" 14154 rxvt_cv_int32_t=" short"
8043 else 14155 else
8055 fi 14167 fi
8056 fi 14168 fi
8057 fi 14169 fi
8058fi 14170fi
8059fi 14171fi
8060rm -f conftest* 14172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8061fi 14173fi
8062 14174echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5
8063echo "$ac_t""$rxvt_cv_int32_t" 1>&6 14175echo "${ECHO_T}$rxvt_cv_int32_t" >&6
8064if test x"$rxvt_cv_int32_t" != xyes; then 14176if test x"$rxvt_cv_int32_t" != xyes; then
8065 rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;" 14177 rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;"
8066else 14178else
8067 if test x"" = x; then 14179 if test x"" = x; then
8068 rxvt_int32_typedef="/* typedef int int32_t; */" 14180 rxvt_int32_typedef="/* typedef int int32_t; */"
8069 else 14181 else
8070 rxvt_int32_typedef="/* typedef int int32_t; */" 14182 rxvt_int32_typedef="/* typedef int int32_t; */"
8071 fi 14183 fi
8072fi 14184fi
8073 14185
14186echo "$as_me:$LINENO: checking for uint32_t" >&5
8074echo $ac_n "checking for uint32_t""... $ac_c" 1>&6 14187echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
8075echo "configure:8076: checking for uint32_t" >&5
8076if eval "test \"`echo '$''{'rxvt_cv_uint32_t'+set}'`\" = set"; then 14188if test "${rxvt_cv_uint32_t+set}" = set; then
8077 echo $ac_n "(cached) $ac_c" 1>&6 14189 echo $ECHO_N "(cached) $ECHO_C" >&6
8078else 14190else
8079 cat > conftest.$ac_ext <<EOF 14191 cat >conftest.$ac_ext <<_ACEOF
8080#line 8081 "configure" 14192/* confdefs.h. */
8081#include "confdefs.h" 14193_ACEOF
14194cat confdefs.h >>conftest.$ac_ext
14195cat >>conftest.$ac_ext <<_ACEOF
14196/* end confdefs.h. */
8082#include <stdint.h> 14197#include <stdint.h>
8083int main() { 14198int
14199main ()
14200{
8084uint32_t dummy; 14201uint32_t dummy;
14202 ;
8085; return 0; } 14203 return 0;
8086EOF 14204}
8087if { (eval echo configure:8088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14205_ACEOF
14206rm -f conftest.$ac_objext
14207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14208 (eval $ac_compile) 2>conftest.er1
14209 ac_status=$?
14210 grep -v '^ *+' conftest.er1 >conftest.err
8088 rm -rf conftest* 14211 rm -f conftest.er1
14212 cat conftest.err >&5
14213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214 (exit $ac_status); } &&
14215 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14217 (eval $ac_try) 2>&5
14218 ac_status=$?
14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220 (exit $ac_status); }; } &&
14221 { ac_try='test -s conftest.$ac_objext'
14222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14223 (eval $ac_try) 2>&5
14224 ac_status=$?
14225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226 (exit $ac_status); }; }; then
8089 rxvt_cv_uint32_t=yes 14227 rxvt_cv_uint32_t=yes
8090else 14228else
8091 echo "configure: failed program was:" >&5 14229 echo "$as_me: failed program was:" >&5
8092 cat conftest.$ac_ext >&5 14230sed 's/^/| /' conftest.$ac_ext >&5
8093 rm -rf conftest* 14231
8094 if test $ac_cv_sizeof_char -ge 4; then 14232if test $ac_cv_sizeof_char -ge 4; then
8095 rxvt_cv_uint32_t="unsigned char" 14233 rxvt_cv_uint32_t="unsigned char"
8096else 14234else
8097 if test $ac_cv_sizeof_short -ge 4; then 14235 if test $ac_cv_sizeof_short -ge 4; then
8098 rxvt_cv_uint32_t="unsigned short" 14236 rxvt_cv_uint32_t="unsigned short"
8099 else 14237 else
8111 fi 14249 fi
8112 fi 14250 fi
8113 fi 14251 fi
8114fi 14252fi
8115fi 14253fi
8116rm -f conftest* 14254rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8117fi 14255fi
8118 14256echo "$as_me:$LINENO: result: $rxvt_cv_uint32_t" >&5
8119echo "$ac_t""$rxvt_cv_uint32_t" 1>&6 14257echo "${ECHO_T}$rxvt_cv_uint32_t" >&6
8120if test x"$rxvt_cv_uint32_t" != xyes; then 14258if test x"$rxvt_cv_uint32_t" != xyes; then
8121 rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;" 14259 rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;"
8122else 14260else
8123 if test x"unsigned" = x; then 14261 if test x"unsigned" = x; then
8124 rxvt_uint32_typedef="/* typedef int uint32_t; */" 14262 rxvt_uint32_typedef="/* typedef int uint32_t; */"
8125 else 14263 else
8126 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */" 14264 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
8127 fi 14265 fi
8128fi 14266fi
8129 14267
8130if test $ac_cv_sizeof_int_p -eq 8; then 14268if test $ac_cv_sizeof_int_p -eq 8; then
8131 rxvt_intp_define="#define intp_t int64_t" 14269 rxvt_intp_define="#define intp_t int64_t"
8132 rxvt_u_intp_define="#define u_intp_t u_int64_t" 14270 rxvt_u_intp_define="#define u_intp_t u_int64_t"
8133else 14271else
8145 fi 14283 fi
8146fi 14284fi
8147 14285
8148 14286
8149 14287
14288echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8150echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 14289echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
8151echo "configure:8152: checking return type of signal handlers" >&5
8152if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then 14290if test "${ac_cv_type_signal+set}" = set; then
8153 echo $ac_n "(cached) $ac_c" 1>&6 14291 echo $ECHO_N "(cached) $ECHO_C" >&6
8154else 14292else
8155 cat > conftest.$ac_ext <<EOF 14293 cat >conftest.$ac_ext <<_ACEOF
8156#line 8157 "configure" 14294/* confdefs.h. */
8157#include "confdefs.h" 14295_ACEOF
14296cat confdefs.h >>conftest.$ac_ext
14297cat >>conftest.$ac_ext <<_ACEOF
14298/* end confdefs.h. */
8158#include <sys/types.h> 14299#include <sys/types.h>
8159#include <signal.h> 14300#include <signal.h>
8160#ifdef signal 14301#ifdef signal
8161#undef signal 14302# undef signal
8162#endif 14303#endif
8163#ifdef __cplusplus 14304#ifdef __cplusplus
8164extern "C" void (*signal (int, void (*)(int)))(int); 14305extern "C" void (*signal (int, void (*)(int)))(int);
8165#else 14306#else
8166void (*signal ()) (); 14307void (*signal ()) ();
8167#endif 14308#endif
8168 14309
8169int main() { 14310int
14311main ()
14312{
8170int i; 14313int i;
14314 ;
8171; return 0; } 14315 return 0;
8172EOF 14316}
8173if { (eval echo configure:8174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14317_ACEOF
14318rm -f conftest.$ac_objext
14319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14320 (eval $ac_compile) 2>conftest.er1
14321 ac_status=$?
14322 grep -v '^ *+' conftest.er1 >conftest.err
8174 rm -rf conftest* 14323 rm -f conftest.er1
14324 cat conftest.err >&5
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); } &&
14327 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14329 (eval $ac_try) 2>&5
14330 ac_status=$?
14331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332 (exit $ac_status); }; } &&
14333 { ac_try='test -s conftest.$ac_objext'
14334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14335 (eval $ac_try) 2>&5
14336 ac_status=$?
14337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338 (exit $ac_status); }; }; then
8175 ac_cv_type_signal=void 14339 ac_cv_type_signal=void
8176else 14340else
8177 echo "configure: failed program was:" >&5 14341 echo "$as_me: failed program was:" >&5
8178 cat conftest.$ac_ext >&5 14342sed 's/^/| /' conftest.$ac_ext >&5
8179 rm -rf conftest* 14343
8180 ac_cv_type_signal=int 14344ac_cv_type_signal=int
8181fi 14345fi
8182rm -f conftest* 14346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8183fi 14347fi
8184 14348echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8185echo "$ac_t""$ac_cv_type_signal" 1>&6 14349echo "${ECHO_T}$ac_cv_type_signal" >&6
14350
8186cat >> confdefs.h <<EOF 14351cat >>confdefs.h <<_ACEOF
8187#define RETSIGTYPE $ac_cv_type_signal 14352#define RETSIGTYPE $ac_cv_type_signal
8188EOF 14353_ACEOF
8189 14354
8190 14355
8191 14356
8192case "$host_alias" in 14357case "$host_alias" in
8193 *ultrix) ac_cv_func_setsid='no' ;; 14358 *ultrix) ac_cv_func_setsid='no' ;;
8194 *) break;; 14359 *) break;;
8195esac 14360esac
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
8196 14379
8197for ac_func in \ 14380for ac_func in \
8198 atexit \ 14381 atexit \
8199 revoke \ 14382 revoke \
8200 unsetenv \ 14383 unsetenv \
8213 nanosleep \ 14396 nanosleep \
8214 updwtmp \ 14397 updwtmp \
8215 ttyslot \ 14398 ttyslot \
8216 14399
8217do 14400do
14401as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14402echo "$as_me:$LINENO: checking for $ac_func" >&5
8218echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 14403echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8219echo "configure:8220: checking for $ac_func" >&5 14404if eval "test \"\${$as_ac_var+set}\" = set"; then
8220if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8221 echo $ac_n "(cached) $ac_c" 1>&6 14405 echo $ECHO_N "(cached) $ECHO_C" >&6
8222else 14406else
8223 cat > conftest.$ac_ext <<EOF 14407 cat >conftest.$ac_ext <<_ACEOF
8224#line 8225 "configure" 14408/* confdefs.h. */
8225#include "confdefs.h" 14409_ACEOF
14410cat confdefs.h >>conftest.$ac_ext
14411cat >>conftest.$ac_ext <<_ACEOF
14412/* end confdefs.h. */
14413/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14414 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14415#define $ac_func innocuous_$ac_func
14416
8226/* System header to define __stub macros and hopefully few prototypes, 14417/* System header to define __stub macros and hopefully few prototypes,
8227 which can conflict with char $ac_func(); below. */ 14418 which can conflict with char $ac_func (); below.
14419 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14420 <limits.h> exists even on freestanding compilers. */
14421
14422#ifdef __STDC__
14423# include <limits.h>
14424#else
8228#include <assert.h> 14425# include <assert.h>
14426#endif
14427
14428#undef $ac_func
14429
8229/* Override any gcc2 internal prototype to avoid an error. */ 14430/* Override any gcc2 internal prototype to avoid an error. */
14431#ifdef __cplusplus
14432extern "C"
14433{
14434#endif
8230/* We use char because int might match the return type of a gcc2 14435/* We use char because int might match the return type of a gcc2
8231 builtin and then its argument prototype would still apply. */ 14436 builtin and then its argument prototype would still apply. */
8232char $ac_func(); 14437char $ac_func ();
8233
8234int main() {
8235
8236/* The GNU C library defines this for functions which it implements 14438/* The GNU C library defines this for functions which it implements
8237 to always fail with ENOSYS. Some functions are actually named 14439 to always fail with ENOSYS. Some functions are actually named
8238 something starting with __ and the normal name is an alias. */ 14440 something starting with __ and the normal name is an alias. */
8239#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 14441#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8240choke me 14442choke me
8241#else 14443#else
8242$ac_func(); 14444char (*f) () = $ac_func;
8243#endif 14445#endif
14446#ifdef __cplusplus
14447}
14448#endif
8244 14449
14450int
14451main ()
14452{
14453return f != $ac_func;
14454 ;
8245; return 0; } 14455 return 0;
8246EOF 14456}
8247if { (eval echo configure:8248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14457_ACEOF
14458rm -f conftest.$ac_objext conftest$ac_exeext
14459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14460 (eval $ac_link) 2>conftest.er1
14461 ac_status=$?
14462 grep -v '^ *+' conftest.er1 >conftest.err
8248 rm -rf conftest* 14463 rm -f conftest.er1
8249 eval "ac_cv_func_$ac_func=yes" 14464 cat conftest.err >&5
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); } &&
14467 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14469 (eval $ac_try) 2>&5
14470 ac_status=$?
14471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472 (exit $ac_status); }; } &&
14473 { ac_try='test -s conftest$ac_exeext'
14474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14475 (eval $ac_try) 2>&5
14476 ac_status=$?
14477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478 (exit $ac_status); }; }; then
14479 eval "$as_ac_var=yes"
8250else 14480else
8251 echo "configure: failed program was:" >&5 14481 echo "$as_me: failed program was:" >&5
8252 cat conftest.$ac_ext >&5 14482sed 's/^/| /' conftest.$ac_ext >&5
8253 rm -rf conftest*
8254 eval "ac_cv_func_$ac_func=no"
8255fi
8256rm -f conftest*
8257fi
8258 14483
8259if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 14484eval "$as_ac_var=no"
8260 echo "$ac_t""yes" 1>&6 14485fi
8261 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 14486rm -f conftest.err conftest.$ac_objext \
14487 conftest$ac_exeext conftest.$ac_ext
14488fi
14489echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14490echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14491if test `eval echo '${'$as_ac_var'}'` = yes; then
8262 cat >> confdefs.h <<EOF 14492 cat >>confdefs.h <<_ACEOF
8263#define $ac_tr_func 1 14493#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8264EOF 14494_ACEOF
8265 14495
8266else
8267 echo "$ac_t""no" 1>&6
8268fi 14496fi
8269done 14497done
8270 14498
8271 14499
8272 14500
8273ac_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` 14501if test "${ac_cv_header_utmp_h+set}" = set; then
14502 echo "$as_me:$LINENO: checking for utmp.h" >&5
8274echo $ac_n "checking for utmp.h""... $ac_c" 1>&6 14503echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
8275echo "configure:8276: checking for utmp.h" >&5 14504if test "${ac_cv_header_utmp_h+set}" = set; then
8276if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8277 echo $ac_n "(cached) $ac_c" 1>&6 14505 echo $ECHO_N "(cached) $ECHO_C" >&6
14506fi
14507echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
14508echo "${ECHO_T}$ac_cv_header_utmp_h" >&6
8278else 14509else
14510 # Is the header compilable?
14511echo "$as_me:$LINENO: checking utmp.h usability" >&5
14512echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6
8279 cat > conftest.$ac_ext <<EOF 14513cat >conftest.$ac_ext <<_ACEOF
8280#line 8281 "configure" 14514/* confdefs.h. */
8281#include "confdefs.h" 14515_ACEOF
14516cat confdefs.h >>conftest.$ac_ext
14517cat >>conftest.$ac_ext <<_ACEOF
14518/* end confdefs.h. */
14519$ac_includes_default
8282#include <utmp.h> 14520#include <utmp.h>
8283EOF 14521_ACEOF
8284ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14522rm -f conftest.$ac_objext
8285{ (eval echo configure:8286: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8286ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14524 (eval $ac_compile) 2>conftest.er1
14525 ac_status=$?
14526 grep -v '^ *+' conftest.er1 >conftest.err
14527 rm -f conftest.er1
14528 cat conftest.err >&5
14529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530 (exit $ac_status); } &&
14531 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14533 (eval $ac_try) 2>&5
14534 ac_status=$?
14535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14536 (exit $ac_status); }; } &&
14537 { ac_try='test -s conftest.$ac_objext'
14538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14539 (eval $ac_try) 2>&5
14540 ac_status=$?
14541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542 (exit $ac_status); }; }; then
14543 ac_header_compiler=yes
14544else
14545 echo "$as_me: failed program was:" >&5
14546sed 's/^/| /' conftest.$ac_ext >&5
14547
14548ac_header_compiler=no
14549fi
14550rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14551echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14552echo "${ECHO_T}$ac_header_compiler" >&6
14553
14554# Is the header present?
14555echo "$as_me:$LINENO: checking utmp.h presence" >&5
14556echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6
14557cat >conftest.$ac_ext <<_ACEOF
14558/* confdefs.h. */
14559_ACEOF
14560cat confdefs.h >>conftest.$ac_ext
14561cat >>conftest.$ac_ext <<_ACEOF
14562/* end confdefs.h. */
14563#include <utmp.h>
14564_ACEOF
14565if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14566 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14567 ac_status=$?
14568 grep -v '^ *+' conftest.er1 >conftest.err
14569 rm -f conftest.er1
14570 cat conftest.err >&5
14571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572 (exit $ac_status); } >/dev/null; then
14573 if test -s conftest.err; then
14574 ac_cpp_err=$ac_cxx_preproc_warn_flag
14575 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14576 else
14577 ac_cpp_err=
14578 fi
14579else
14580 ac_cpp_err=yes
14581fi
8287if test -z "$ac_err"; then 14582if test -z "$ac_cpp_err"; then
8288 rm -rf conftest* 14583 ac_header_preproc=yes
8289 eval "ac_cv_header_$ac_safe=yes"
8290else 14584else
8291 echo "$ac_err" >&5
8292 echo "configure: failed program was:" >&5 14585 echo "$as_me: failed program was:" >&5
8293 cat conftest.$ac_ext >&5 14586sed 's/^/| /' conftest.$ac_ext >&5
8294 rm -rf conftest* 14587
8295 eval "ac_cv_header_$ac_safe=no" 14588 ac_header_preproc=no
8296fi 14589fi
8297rm -f conftest* 14590rm -f conftest.err conftest.$ac_ext
14591echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14592echo "${ECHO_T}$ac_header_preproc" >&6
14593
14594# So? What about this header?
14595case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
14596 yes:no: )
14597 { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
14598echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14599 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5
14600echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;}
14601 ac_header_preproc=yes
14602 ;;
14603 no:yes:* )
14604 { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5
14605echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;}
14606 { echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5
14607echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;}
14608 { echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5
14609echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;}
14610 { echo "$as_me:$LINENO: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&5
14611echo "$as_me: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&2;}
14612 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5
14613echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;}
14614 { echo "$as_me:$LINENO: WARNING: utmp.h: in the future, the compiler will take precedence" >&5
14615echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;}
14616 (
14617 cat <<\_ASBOX
14618## ------------------------------------------ ##
14619## Report this to the AC_PACKAGE_NAME lists. ##
14620## ------------------------------------------ ##
14621_ASBOX
14622 ) |
14623 sed "s/^/$as_me: WARNING: /" >&2
14624 ;;
14625esac
14626echo "$as_me:$LINENO: checking for utmp.h" >&5
14627echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
14628if test "${ac_cv_header_utmp_h+set}" = set; then
14629 echo $ECHO_N "(cached) $ECHO_C" >&6
14630else
14631 ac_cv_header_utmp_h=$ac_header_preproc
8298fi 14632fi
8299if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 14633echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
8300 echo "$ac_t""yes" 1>&6 14634echo "${ECHO_T}$ac_cv_header_utmp_h" >&6
14635
14636fi
14637if test $ac_cv_header_utmp_h = yes; then
14638 echo "$as_me:$LINENO: checking for struct utmp" >&5
8301 echo $ac_n "checking for struct utmp""... $ac_c" 1>&6 14639echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6
8302echo "configure:8303: checking for struct utmp" >&5
8303if eval "test \"`echo '$''{'rxvt_cv_struct_utmp'+set}'`\" = set"; then 14640if test "${rxvt_cv_struct_utmp+set}" = set; then
8304 echo $ac_n "(cached) $ac_c" 1>&6 14641 echo $ECHO_N "(cached) $ECHO_C" >&6
8305else 14642else
8306 cat > conftest.$ac_ext <<EOF 14643 cat >conftest.$ac_ext <<_ACEOF
8307#line 8308 "configure" 14644/* confdefs.h. */
8308#include "confdefs.h" 14645_ACEOF
14646cat confdefs.h >>conftest.$ac_ext
14647cat >>conftest.$ac_ext <<_ACEOF
14648/* end confdefs.h. */
8309#include <sys/types.h> 14649#include <sys/types.h>
8310#include <stdint.h> 14650#include <stdint.h>
8311#include <utmp.h> 14651#include <utmp.h>
8312int main() { 14652int
14653main ()
14654{
8313struct utmp ut; 14655struct utmp ut;
14656 ;
8314; return 0; } 14657 return 0;
8315EOF 14658}
8316if { (eval echo configure:8317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14659_ACEOF
14660rm -f conftest.$ac_objext
14661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14662 (eval $ac_compile) 2>conftest.er1
14663 ac_status=$?
14664 grep -v '^ *+' conftest.er1 >conftest.err
8317 rm -rf conftest* 14665 rm -f conftest.er1
14666 cat conftest.err >&5
14667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668 (exit $ac_status); } &&
14669 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14671 (eval $ac_try) 2>&5
14672 ac_status=$?
14673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674 (exit $ac_status); }; } &&
14675 { ac_try='test -s conftest.$ac_objext'
14676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14677 (eval $ac_try) 2>&5
14678 ac_status=$?
14679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680 (exit $ac_status); }; }; then
8318 rxvt_cv_struct_utmp=yes 14681 rxvt_cv_struct_utmp=yes
8319else 14682else
8320 echo "configure: failed program was:" >&5 14683 echo "$as_me: failed program was:" >&5
8321 cat conftest.$ac_ext >&5 14684sed 's/^/| /' conftest.$ac_ext >&5
8322 rm -rf conftest* 14685
8323 rxvt_cv_struct_utmp=no 14686rxvt_cv_struct_utmp=no
8324fi 14687fi
8325rm -f conftest* 14688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8326fi 14689fi
8327 14690echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp" >&5
8328echo "$ac_t""$rxvt_cv_struct_utmp" 1>&6 14691echo "${ECHO_T}$rxvt_cv_struct_utmp" >&6
8329if test x$rxvt_cv_struct_utmp = xyes; then 14692if test x$rxvt_cv_struct_utmp = xyes; then
14693
8330 cat >> confdefs.h <<\EOF 14694cat >>confdefs.h <<\_ACEOF
8331#define HAVE_STRUCT_UTMP 1 14695#define HAVE_STRUCT_UTMP 1
8332EOF 14696_ACEOF
8333 14697
8334fi 14698fi
8335 14699
8336 14700
14701echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5
8337echo $ac_n "checking for ut_host in utmp struct""... $ac_c" 1>&6 14702echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6
8338echo "configure:8339: checking for ut_host in utmp struct" >&5
8339if eval "test \"`echo '$''{'rxvt_cv_struct_utmp_host'+set}'`\" = set"; then 14703if test "${rxvt_cv_struct_utmp_host+set}" = set; then
8340 echo $ac_n "(cached) $ac_c" 1>&6 14704 echo $ECHO_N "(cached) $ECHO_C" >&6
8341else 14705else
8342 cat > conftest.$ac_ext <<EOF 14706 cat >conftest.$ac_ext <<_ACEOF
8343#line 8344 "configure" 14707/* confdefs.h. */
8344#include "confdefs.h" 14708_ACEOF
14709cat confdefs.h >>conftest.$ac_ext
14710cat >>conftest.$ac_ext <<_ACEOF
14711/* end confdefs.h. */
8345#include <sys/types.h> 14712#include <sys/types.h>
8346#include <utmp.h> 14713#include <utmp.h>
8347int main() { 14714int
14715main ()
14716{
8348struct utmp ut; ut.ut_host; 14717struct utmp ut; ut.ut_host;
14718 ;
8349; return 0; } 14719 return 0;
8350EOF 14720}
8351if { (eval echo configure:8352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14721_ACEOF
14722rm -f conftest.$ac_objext
14723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14724 (eval $ac_compile) 2>conftest.er1
14725 ac_status=$?
14726 grep -v '^ *+' conftest.er1 >conftest.err
8352 rm -rf conftest* 14727 rm -f conftest.er1
14728 cat conftest.err >&5
14729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730 (exit $ac_status); } &&
14731 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14733 (eval $ac_try) 2>&5
14734 ac_status=$?
14735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736 (exit $ac_status); }; } &&
14737 { ac_try='test -s conftest.$ac_objext'
14738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14739 (eval $ac_try) 2>&5
14740 ac_status=$?
14741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742 (exit $ac_status); }; }; then
8353 rxvt_cv_struct_utmp_host=yes 14743 rxvt_cv_struct_utmp_host=yes
8354else 14744else
8355 echo "configure: failed program was:" >&5 14745 echo "$as_me: failed program was:" >&5
8356 cat conftest.$ac_ext >&5 14746sed 's/^/| /' conftest.$ac_ext >&5
8357 rm -rf conftest* 14747
8358 rxvt_cv_struct_utmp_host=no 14748rxvt_cv_struct_utmp_host=no
8359fi 14749fi
8360rm -f conftest* 14750rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8361fi 14751fi
8362 14752echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_host" >&5
8363echo "$ac_t""$rxvt_cv_struct_utmp_host" 1>&6 14753echo "${ECHO_T}$rxvt_cv_struct_utmp_host" >&6
8364if test x$rxvt_cv_struct_utmp_host = xyes; then 14754if test x$rxvt_cv_struct_utmp_host = xyes; then
14755
8365 cat >> confdefs.h <<\EOF 14756cat >>confdefs.h <<\_ACEOF
8366#define HAVE_UTMP_HOST 1 14757#define HAVE_UTMP_HOST 1
8367EOF 14758_ACEOF
8368 14759
8369fi 14760fi
8370 14761
14762echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5
8371echo $ac_n "checking for ut_pid in utmp struct""... $ac_c" 1>&6 14763echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6
8372echo "configure:8373: checking for ut_pid in utmp struct" >&5
8373if eval "test \"`echo '$''{'rxvt_cv_struct_utmp_pid'+set}'`\" = set"; then 14764if test "${rxvt_cv_struct_utmp_pid+set}" = set; then
8374 echo $ac_n "(cached) $ac_c" 1>&6 14765 echo $ECHO_N "(cached) $ECHO_C" >&6
8375else 14766else
8376 cat > conftest.$ac_ext <<EOF 14767 cat >conftest.$ac_ext <<_ACEOF
8377#line 8378 "configure" 14768/* confdefs.h. */
8378#include "confdefs.h" 14769_ACEOF
14770cat confdefs.h >>conftest.$ac_ext
14771cat >>conftest.$ac_ext <<_ACEOF
14772/* end confdefs.h. */
8379#include <sys/types.h> 14773#include <sys/types.h>
8380#include <utmp.h> 14774#include <utmp.h>
8381int main() { 14775int
14776main ()
14777{
8382struct utmp ut; ut.ut_pid; 14778struct utmp ut; ut.ut_pid;
14779 ;
8383; return 0; } 14780 return 0;
8384EOF 14781}
8385if { (eval echo configure:8386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14782_ACEOF
14783rm -f conftest.$ac_objext
14784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14785 (eval $ac_compile) 2>conftest.er1
14786 ac_status=$?
14787 grep -v '^ *+' conftest.er1 >conftest.err
8386 rm -rf conftest* 14788 rm -f conftest.er1
14789 cat conftest.err >&5
14790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791 (exit $ac_status); } &&
14792 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14794 (eval $ac_try) 2>&5
14795 ac_status=$?
14796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797 (exit $ac_status); }; } &&
14798 { ac_try='test -s conftest.$ac_objext'
14799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14800 (eval $ac_try) 2>&5
14801 ac_status=$?
14802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); }; }; then
8387 rxvt_cv_struct_utmp_pid=yes 14804 rxvt_cv_struct_utmp_pid=yes
8388else 14805else
8389 echo "configure: failed program was:" >&5 14806 echo "$as_me: failed program was:" >&5
8390 cat conftest.$ac_ext >&5 14807sed 's/^/| /' conftest.$ac_ext >&5
8391 rm -rf conftest* 14808
8392 rxvt_cv_struct_utmp_pid=no 14809rxvt_cv_struct_utmp_pid=no
8393fi 14810fi
8394rm -f conftest* 14811rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8395fi 14812fi
8396 14813echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_pid" >&5
8397echo "$ac_t""$rxvt_cv_struct_utmp_pid" 1>&6 14814echo "${ECHO_T}$rxvt_cv_struct_utmp_pid" >&6
8398if test x$rxvt_cv_struct_utmp_pid = xyes; then 14815if test x$rxvt_cv_struct_utmp_pid = xyes; then
14816
8399 cat >> confdefs.h <<\EOF 14817cat >>confdefs.h <<\_ACEOF
8400#define HAVE_UTMP_PID 1 14818#define HAVE_UTMP_PID 1
8401EOF 14819_ACEOF
8402 14820
8403fi 14821fi
8404 14822
8405else
8406 echo "$ac_t""no" 1>&6
8407fi 14823fi
8408
8409 14824
8410ac_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` 14825
14826
14827if test "${ac_cv_header_utmpx_h+set}" = set; then
14828 echo "$as_me:$LINENO: checking for utmpx.h" >&5
8411echo $ac_n "checking for utmpx.h""... $ac_c" 1>&6 14829echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6
8412echo "configure:8413: checking for utmpx.h" >&5 14830if test "${ac_cv_header_utmpx_h+set}" = set; then
8413if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8414 echo $ac_n "(cached) $ac_c" 1>&6 14831 echo $ECHO_N "(cached) $ECHO_C" >&6
14832fi
14833echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
14834echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6
8415else 14835else
14836 # Is the header compilable?
14837echo "$as_me:$LINENO: checking utmpx.h usability" >&5
14838echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6
8416 cat > conftest.$ac_ext <<EOF 14839cat >conftest.$ac_ext <<_ACEOF
8417#line 8418 "configure" 14840/* confdefs.h. */
8418#include "confdefs.h" 14841_ACEOF
14842cat confdefs.h >>conftest.$ac_ext
14843cat >>conftest.$ac_ext <<_ACEOF
14844/* end confdefs.h. */
14845$ac_includes_default
8419#include <utmpx.h> 14846#include <utmpx.h>
8420EOF 14847_ACEOF
8421ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14848rm -f conftest.$ac_objext
8422{ (eval echo configure:8423: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8423ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14850 (eval $ac_compile) 2>conftest.er1
14851 ac_status=$?
14852 grep -v '^ *+' conftest.er1 >conftest.err
14853 rm -f conftest.er1
14854 cat conftest.err >&5
14855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14856 (exit $ac_status); } &&
14857 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14859 (eval $ac_try) 2>&5
14860 ac_status=$?
14861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14862 (exit $ac_status); }; } &&
14863 { ac_try='test -s conftest.$ac_objext'
14864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14865 (eval $ac_try) 2>&5
14866 ac_status=$?
14867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14868 (exit $ac_status); }; }; then
14869 ac_header_compiler=yes
14870else
14871 echo "$as_me: failed program was:" >&5
14872sed 's/^/| /' conftest.$ac_ext >&5
14873
14874ac_header_compiler=no
14875fi
14876rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14877echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14878echo "${ECHO_T}$ac_header_compiler" >&6
14879
14880# Is the header present?
14881echo "$as_me:$LINENO: checking utmpx.h presence" >&5
14882echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6
14883cat >conftest.$ac_ext <<_ACEOF
14884/* confdefs.h. */
14885_ACEOF
14886cat confdefs.h >>conftest.$ac_ext
14887cat >>conftest.$ac_ext <<_ACEOF
14888/* end confdefs.h. */
14889#include <utmpx.h>
14890_ACEOF
14891if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14892 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14893 ac_status=$?
14894 grep -v '^ *+' conftest.er1 >conftest.err
14895 rm -f conftest.er1
14896 cat conftest.err >&5
14897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898 (exit $ac_status); } >/dev/null; then
14899 if test -s conftest.err; then
14900 ac_cpp_err=$ac_cxx_preproc_warn_flag
14901 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14902 else
14903 ac_cpp_err=
14904 fi
14905else
14906 ac_cpp_err=yes
14907fi
8424if test -z "$ac_err"; then 14908if test -z "$ac_cpp_err"; then
8425 rm -rf conftest* 14909 ac_header_preproc=yes
8426 eval "ac_cv_header_$ac_safe=yes"
8427else 14910else
8428 echo "$ac_err" >&5
8429 echo "configure: failed program was:" >&5 14911 echo "$as_me: failed program was:" >&5
8430 cat conftest.$ac_ext >&5 14912sed 's/^/| /' conftest.$ac_ext >&5
8431 rm -rf conftest* 14913
8432 eval "ac_cv_header_$ac_safe=no" 14914 ac_header_preproc=no
8433fi 14915fi
8434rm -f conftest* 14916rm -f conftest.err conftest.$ac_ext
14917echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14918echo "${ECHO_T}$ac_header_preproc" >&6
14919
14920# So? What about this header?
14921case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
14922 yes:no: )
14923 { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5
14924echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14925 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5
14926echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;}
14927 ac_header_preproc=yes
14928 ;;
14929 no:yes:* )
14930 { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5
14931echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;}
14932 { echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5
14933echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;}
14934 { echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5
14935echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;}
14936 { echo "$as_me:$LINENO: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&5
14937echo "$as_me: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&2;}
14938 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5
14939echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;}
14940 { echo "$as_me:$LINENO: WARNING: utmpx.h: in the future, the compiler will take precedence" >&5
14941echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;}
14942 (
14943 cat <<\_ASBOX
14944## ------------------------------------------ ##
14945## Report this to the AC_PACKAGE_NAME lists. ##
14946## ------------------------------------------ ##
14947_ASBOX
14948 ) |
14949 sed "s/^/$as_me: WARNING: /" >&2
14950 ;;
14951esac
14952echo "$as_me:$LINENO: checking for utmpx.h" >&5
14953echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6
14954if test "${ac_cv_header_utmpx_h+set}" = set; then
14955 echo $ECHO_N "(cached) $ECHO_C" >&6
14956else
14957 ac_cv_header_utmpx_h=$ac_header_preproc
8435fi 14958fi
8436if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 14959echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
8437 echo "$ac_t""yes" 1>&6 14960echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6
14961
14962fi
14963if test $ac_cv_header_utmpx_h = yes; then
14964 echo "$as_me:$LINENO: checking for struct utmpx" >&5
8438 echo $ac_n "checking for struct utmpx""... $ac_c" 1>&6 14965echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6
8439echo "configure:8440: checking for struct utmpx" >&5
8440if eval "test \"`echo '$''{'rxvt_cv_struct_utmpx'+set}'`\" = set"; then 14966if test "${rxvt_cv_struct_utmpx+set}" = set; then
8441 echo $ac_n "(cached) $ac_c" 1>&6 14967 echo $ECHO_N "(cached) $ECHO_C" >&6
8442else 14968else
8443 cat > conftest.$ac_ext <<EOF 14969 cat >conftest.$ac_ext <<_ACEOF
8444#line 8445 "configure" 14970/* confdefs.h. */
8445#include "confdefs.h" 14971_ACEOF
14972cat confdefs.h >>conftest.$ac_ext
14973cat >>conftest.$ac_ext <<_ACEOF
14974/* end confdefs.h. */
8446#include <sys/types.h> 14975#include <sys/types.h>
8447#include <utmpx.h> 14976#include <utmpx.h>
8448int main() { 14977int
14978main ()
14979{
8449struct utmpx ut; 14980struct utmpx ut;
14981 ;
8450; return 0; } 14982 return 0;
8451EOF 14983}
8452if { (eval echo configure:8453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14984_ACEOF
14985rm -f conftest.$ac_objext
14986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14987 (eval $ac_compile) 2>conftest.er1
14988 ac_status=$?
14989 grep -v '^ *+' conftest.er1 >conftest.err
8453 rm -rf conftest* 14990 rm -f conftest.er1
14991 cat conftest.err >&5
14992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14993 (exit $ac_status); } &&
14994 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14996 (eval $ac_try) 2>&5
14997 ac_status=$?
14998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999 (exit $ac_status); }; } &&
15000 { ac_try='test -s conftest.$ac_objext'
15001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15002 (eval $ac_try) 2>&5
15003 ac_status=$?
15004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005 (exit $ac_status); }; }; then
8454 rxvt_cv_struct_utmpx=yes 15006 rxvt_cv_struct_utmpx=yes
8455else 15007else
8456 echo "configure: failed program was:" >&5 15008 echo "$as_me: failed program was:" >&5
8457 cat conftest.$ac_ext >&5 15009sed 's/^/| /' conftest.$ac_ext >&5
8458 rm -rf conftest* 15010
8459 rxvt_cv_struct_utmpx=no 15011rxvt_cv_struct_utmpx=no
8460fi 15012fi
8461rm -f conftest* 15013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8462fi 15014fi
8463 15015echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx" >&5
8464echo "$ac_t""$rxvt_cv_struct_utmpx" 1>&6 15016echo "${ECHO_T}$rxvt_cv_struct_utmpx" >&6
8465if test x$rxvt_cv_struct_utmpx = xyes; then 15017if test x$rxvt_cv_struct_utmpx = xyes; then
15018
8466 cat >> confdefs.h <<\EOF 15019cat >>confdefs.h <<\_ACEOF
8467#define HAVE_STRUCT_UTMPX 1 15020#define HAVE_STRUCT_UTMPX 1
8468EOF 15021_ACEOF
8469 15022
8470fi 15023fi
8471 15024
8472 15025
15026echo "$as_me:$LINENO: checking for host in utmpx struct" >&5
8473echo $ac_n "checking for host in utmpx struct""... $ac_c" 1>&6 15027echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6
8474echo "configure:8475: checking for host in utmpx struct" >&5
8475if eval "test \"`echo '$''{'rxvt_cv_struct_utmpx_host'+set}'`\" = set"; then 15028if test "${rxvt_cv_struct_utmpx_host+set}" = set; then
8476 echo $ac_n "(cached) $ac_c" 1>&6 15029 echo $ECHO_N "(cached) $ECHO_C" >&6
8477else 15030else
8478 cat > conftest.$ac_ext <<EOF 15031 cat >conftest.$ac_ext <<_ACEOF
8479#line 8480 "configure" 15032/* confdefs.h. */
8480#include "confdefs.h" 15033_ACEOF
15034cat confdefs.h >>conftest.$ac_ext
15035cat >>conftest.$ac_ext <<_ACEOF
15036/* end confdefs.h. */
8481#include <sys/types.h> 15037#include <sys/types.h>
8482#include <utmpx.h> 15038#include <utmpx.h>
8483int main() { 15039int
15040main ()
15041{
8484struct utmpx utx; utx.ut_host; 15042struct utmpx utx; utx.ut_host;
15043 ;
8485; return 0; } 15044 return 0;
8486EOF 15045}
8487if { (eval echo configure:8488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 15046_ACEOF
15047rm -f conftest.$ac_objext
15048if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15049 (eval $ac_compile) 2>conftest.er1
15050 ac_status=$?
15051 grep -v '^ *+' conftest.er1 >conftest.err
8488 rm -rf conftest* 15052 rm -f conftest.er1
15053 cat conftest.err >&5
15054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15055 (exit $ac_status); } &&
15056 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15058 (eval $ac_try) 2>&5
15059 ac_status=$?
15060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061 (exit $ac_status); }; } &&
15062 { ac_try='test -s conftest.$ac_objext'
15063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15064 (eval $ac_try) 2>&5
15065 ac_status=$?
15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); }; }; then
8489 rxvt_cv_struct_utmpx_host=yes 15068 rxvt_cv_struct_utmpx_host=yes
8490else 15069else
8491 echo "configure: failed program was:" >&5 15070 echo "$as_me: failed program was:" >&5
8492 cat conftest.$ac_ext >&5 15071sed 's/^/| /' conftest.$ac_ext >&5
8493 rm -rf conftest* 15072
8494 rxvt_cv_struct_utmpx_host=no 15073rxvt_cv_struct_utmpx_host=no
8495fi 15074fi
8496rm -f conftest* 15075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8497fi 15076fi
8498 15077echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_host" >&5
8499echo "$ac_t""$rxvt_cv_struct_utmpx_host" 1>&6 15078echo "${ECHO_T}$rxvt_cv_struct_utmpx_host" >&6
8500if test x$rxvt_cv_struct_utmpx_host = xyes; then 15079if test x$rxvt_cv_struct_utmpx_host = xyes; then
15080
8501 cat >> confdefs.h <<\EOF 15081cat >>confdefs.h <<\_ACEOF
8502#define HAVE_UTMPX_HOST 1 15082#define HAVE_UTMPX_HOST 1
8503EOF 15083_ACEOF
8504 15084
8505fi 15085fi
8506 15086
8507else
8508 echo "$ac_t""no" 1>&6
8509fi 15087fi
8510
8511 15088
15089
15090
15091echo "$as_me:$LINENO: checking for struct lastlog" >&5
8512echo $ac_n "checking for struct lastlog""... $ac_c" 1>&6 15092echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6
8513echo "configure:8514: checking for struct lastlog" >&5
8514if eval "test \"`echo '$''{'rxvt_cv_struct_lastlog'+set}'`\" = set"; then 15093if test "${rxvt_cv_struct_lastlog+set}" = set; then
8515 echo $ac_n "(cached) $ac_c" 1>&6 15094 echo $ECHO_N "(cached) $ECHO_C" >&6
8516else 15095else
8517 cat > conftest.$ac_ext <<EOF 15096 cat >conftest.$ac_ext <<_ACEOF
8518#line 8519 "configure" 15097/* confdefs.h. */
8519#include "confdefs.h" 15098_ACEOF
15099cat confdefs.h >>conftest.$ac_ext
15100cat >>conftest.$ac_ext <<_ACEOF
15101/* end confdefs.h. */
8520#include <sys/types.h> 15102#include <sys/types.h>
8521#include <utmp.h> 15103#include <utmp.h>
8522#ifdef HAVE_LASTLOG_H 15104#ifdef HAVE_LASTLOG_H
8523#include <lastlog.h> 15105#include <lastlog.h>
8524#endif 15106#endif
8525 15107
8526int main() { 15108int
15109main ()
15110{
8527struct lastlog ll; 15111struct lastlog ll;
15112 ;
8528; return 0; } 15113 return 0;
8529EOF 15114}
8530if { (eval echo configure:8531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 15115_ACEOF
15116rm -f conftest.$ac_objext
15117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15118 (eval $ac_compile) 2>conftest.er1
15119 ac_status=$?
15120 grep -v '^ *+' conftest.er1 >conftest.err
8531 rm -rf conftest* 15121 rm -f conftest.er1
15122 cat conftest.err >&5
15123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124 (exit $ac_status); } &&
15125 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15127 (eval $ac_try) 2>&5
15128 ac_status=$?
15129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130 (exit $ac_status); }; } &&
15131 { ac_try='test -s conftest.$ac_objext'
15132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15133 (eval $ac_try) 2>&5
15134 ac_status=$?
15135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 (exit $ac_status); }; }; then
8532 rxvt_cv_struct_lastlog=yes 15137 rxvt_cv_struct_lastlog=yes
8533else 15138else
8534 echo "configure: failed program was:" >&5 15139 echo "$as_me: failed program was:" >&5
8535 cat conftest.$ac_ext >&5 15140sed 's/^/| /' conftest.$ac_ext >&5
8536 rm -rf conftest* 15141
8537 rxvt_cv_struct_lastlog=no 15142rxvt_cv_struct_lastlog=no
8538fi 15143fi
8539rm -f conftest* 15144rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8540fi 15145fi
8541 15146echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlog" >&5
8542echo "$ac_t""$rxvt_cv_struct_lastlog" 1>&6 15147echo "${ECHO_T}$rxvt_cv_struct_lastlog" >&6
8543if test x$rxvt_cv_struct_lastlog = xyes; then 15148if test x$rxvt_cv_struct_lastlog = xyes; then
15149
8544 cat >> confdefs.h <<\EOF 15150cat >>confdefs.h <<\_ACEOF
8545#define HAVE_STRUCT_LASTLOG 1 15151#define HAVE_STRUCT_LASTLOG 1
8546EOF 15152_ACEOF
8547 15153
8548fi 15154fi
8549 15155
15156echo "$as_me:$LINENO: checking for struct lastlogx" >&5
8550echo $ac_n "checking for struct lastlogx""... $ac_c" 1>&6 15157echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6
8551echo "configure:8552: checking for struct lastlogx" >&5
8552if eval "test \"`echo '$''{'rxvt_cv_struct_lastlogx'+set}'`\" = set"; then 15158if test "${rxvt_cv_struct_lastlogx+set}" = set; then
8553 echo $ac_n "(cached) $ac_c" 1>&6 15159 echo $ECHO_N "(cached) $ECHO_C" >&6
8554else 15160else
8555 cat > conftest.$ac_ext <<EOF 15161 cat >conftest.$ac_ext <<_ACEOF
8556#line 8557 "configure" 15162/* confdefs.h. */
8557#include "confdefs.h" 15163_ACEOF
15164cat confdefs.h >>conftest.$ac_ext
15165cat >>conftest.$ac_ext <<_ACEOF
15166/* end confdefs.h. */
8558#include <sys/types.h> 15167#include <sys/types.h>
8559#include <utmpx.h> 15168#include <utmpx.h>
8560#ifdef HAVE_LASTLOG_H 15169#ifdef HAVE_LASTLOG_H
8561#include <lastlog.h> 15170#include <lastlog.h>
8562#endif 15171#endif
8563 15172
8564int main() { 15173int
15174main ()
15175{
8565struct lastlogx ll; 15176struct lastlogx ll;
15177 ;
8566; return 0; } 15178 return 0;
8567EOF 15179}
8568if { (eval echo configure:8569: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 15180_ACEOF
15181rm -f conftest.$ac_objext
15182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15183 (eval $ac_compile) 2>conftest.er1
15184 ac_status=$?
15185 grep -v '^ *+' conftest.er1 >conftest.err
8569 rm -rf conftest* 15186 rm -f conftest.er1
15187 cat conftest.err >&5
15188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15189 (exit $ac_status); } &&
15190 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15192 (eval $ac_try) 2>&5
15193 ac_status=$?
15194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15195 (exit $ac_status); }; } &&
15196 { ac_try='test -s conftest.$ac_objext'
15197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15198 (eval $ac_try) 2>&5
15199 ac_status=$?
15200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15201 (exit $ac_status); }; }; then
8570 rxvt_cv_struct_lastlogx=yes 15202 rxvt_cv_struct_lastlogx=yes
8571else 15203else
8572 echo "configure: failed program was:" >&5 15204 echo "$as_me: failed program was:" >&5
8573 cat conftest.$ac_ext >&5 15205sed 's/^/| /' conftest.$ac_ext >&5
8574 rm -rf conftest* 15206
8575 rxvt_cv_struct_lastlogx=no 15207rxvt_cv_struct_lastlogx=no
8576fi 15208fi
8577rm -f conftest* 15209rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8578fi 15210fi
8579 15211echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlogx" >&5
8580echo "$ac_t""$rxvt_cv_struct_lastlogx" 1>&6 15212echo "${ECHO_T}$rxvt_cv_struct_lastlogx" >&6
8581if test x$rxvt_cv_struct_lastlogx = xyes; then 15213if test x$rxvt_cv_struct_lastlogx = xyes; then
15214
8582 cat >> confdefs.h <<\EOF 15215cat >>confdefs.h <<\_ACEOF
8583#define HAVE_STRUCT_LASTLOGX 1 15216#define HAVE_STRUCT_LASTLOGX 1
8584EOF 15217_ACEOF
8585 15218
8586fi 15219fi
8587 15220
8588 15221
15222echo "$as_me:$LINENO: checking where utmp is located" >&5
8589echo $ac_n "checking where utmp is located""... $ac_c" 1>&6 15223echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6
8590echo "configure:8591: checking where utmp is located" >&5
8591if eval "test \"`echo '$''{'rxvt_cv_path_utmp'+set}'`\" = set"; then 15224if test "${rxvt_cv_path_utmp+set}" = set; then
8592 echo $ac_n "(cached) $ac_c" 1>&6 15225 echo $ECHO_N "(cached) $ECHO_C" >&6
8593else 15226else
8594 if test "$cross_compiling" = yes; then 15227 if test "$cross_compiling" = yes; then
15228 { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&5
8595 echo "configure: warning: Define RXVT_UTMP_FILE in config.h manually" 1>&2 15229echo "$as_me: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&2;}
8596else 15230else
8597 cat > conftest.$ac_ext <<EOF 15231 cat >conftest.$ac_ext <<_ACEOF
8598#line 8599 "configure" 15232/* confdefs.h. */
8599#include "confdefs.h" 15233_ACEOF
15234cat confdefs.h >>conftest.$ac_ext
15235cat >>conftest.$ac_ext <<_ACEOF
15236/* end confdefs.h. */
8600#include <stdio.h> 15237#include <stdio.h>
8601#include <sys/types.h> 15238#include <sys/types.h>
8602#include <utmp.h> 15239#include <utmp.h>
8603#include <errno.h> 15240#include <errno.h>
8604main() 15241main()
8621 exit(0); 15258 exit(0);
8622 } 15259 }
8623 } 15260 }
8624 exit(0); 15261 exit(0);
8625} 15262}
8626EOF 15263_ACEOF
8627if { (eval echo configure:8628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 15264rm -f conftest$ac_exeext
8628then 15265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15266 (eval $ac_link) 2>&5
15267 ac_status=$?
15268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15269 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15271 (eval $ac_try) 2>&5
15272 ac_status=$?
15273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); }; }; then
8629 rxvt_cv_path_utmp=`cat conftestval` 15275 rxvt_cv_path_utmp=`cat conftestval`
8630else 15276else
15277 echo "$as_me: program exited with status $ac_status" >&5
8631 echo "configure: failed program was:" >&5 15278echo "$as_me: failed program was:" >&5
8632 cat conftest.$ac_ext >&5 15279sed 's/^/| /' conftest.$ac_ext >&5
8633 rm -fr conftest* 15280
15281( exit $ac_status )
8634 rxvt_cv_path_utmp= 15282rxvt_cv_path_utmp=
8635fi 15283fi
8636rm -fr conftest* 15284rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8637fi 15285fi
8638
8639fi 15286fi
8640 15287echo "$as_me:$LINENO: result: $rxvt_cv_path_utmp" >&5
8641echo "$ac_t""$rxvt_cv_path_utmp" 1>&6 15288echo "${ECHO_T}$rxvt_cv_path_utmp" >&6
8642if test x$rxvt_cv_path_utmp != x; then 15289if test x$rxvt_cv_path_utmp != x; then
15290
8643 cat >> confdefs.h <<EOF 15291cat >>confdefs.h <<_ACEOF
8644#define RXVT_UTMP_FILE "$rxvt_cv_path_utmp" 15292#define RXVT_UTMP_FILE "$rxvt_cv_path_utmp"
8645EOF 15293_ACEOF
8646 15294
8647fi 15295fi
8648 15296
8649 15297
15298echo "$as_me:$LINENO: checking where utmpx is located" >&5
8650echo $ac_n "checking where utmpx is located""... $ac_c" 1>&6 15299echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6
8651echo "configure:8652: checking where utmpx is located" >&5
8652if eval "test \"`echo '$''{'rxvt_cv_path_utmpx'+set}'`\" = set"; then 15300if test "${rxvt_cv_path_utmpx+set}" = set; then
8653 echo $ac_n "(cached) $ac_c" 1>&6 15301 echo $ECHO_N "(cached) $ECHO_C" >&6
8654else 15302else
8655 if test "$cross_compiling" = yes; then 15303 if test "$cross_compiling" = yes; then
15304 { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&5
8656 echo "configure: warning: Define RXVT_UTMPX_FILE in config.h manually" 1>&2 15305echo "$as_me: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&2;}
8657else 15306else
8658 cat > conftest.$ac_ext <<EOF 15307 cat >conftest.$ac_ext <<_ACEOF
8659#line 8660 "configure" 15308/* confdefs.h. */
8660#include "confdefs.h" 15309_ACEOF
15310cat confdefs.h >>conftest.$ac_ext
15311cat >>conftest.$ac_ext <<_ACEOF
15312/* end confdefs.h. */
8661#include <stdio.h> 15313#include <stdio.h>
8662#include <sys/types.h> 15314#include <sys/types.h>
8663#include <utmpx.h> 15315#include <utmpx.h>
8664#include <errno.h> 15316#include <errno.h>
8665#include <sys/stat.h> 15317#include <sys/stat.h>
8692 exit(0); 15344 exit(0);
8693 } 15345 }
8694 } 15346 }
8695 exit(0); 15347 exit(0);
8696} 15348}
8697EOF 15349_ACEOF
8698if { (eval echo configure:8699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 15350rm -f conftest$ac_exeext
8699then 15351if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15352 (eval $ac_link) 2>&5
15353 ac_status=$?
15354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15357 (eval $ac_try) 2>&5
15358 ac_status=$?
15359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360 (exit $ac_status); }; }; then
8700 rxvt_cv_path_utmpx=`cat conftestval` 15361 rxvt_cv_path_utmpx=`cat conftestval`
8701else 15362else
15363 echo "$as_me: program exited with status $ac_status" >&5
8702 echo "configure: failed program was:" >&5 15364echo "$as_me: failed program was:" >&5
8703 cat conftest.$ac_ext >&5 15365sed 's/^/| /' conftest.$ac_ext >&5
8704 rm -fr conftest* 15366
15367( exit $ac_status )
8705 rxvt_cv_path_utmpx= 15368rxvt_cv_path_utmpx=
8706fi 15369fi
8707rm -fr conftest* 15370rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8708fi 15371fi
8709
8710fi 15372fi
8711 15373echo "$as_me:$LINENO: result: $rxvt_cv_path_utmpx" >&5
8712echo "$ac_t""$rxvt_cv_path_utmpx" 1>&6 15374echo "${ECHO_T}$rxvt_cv_path_utmpx" >&6
8713if test x$rxvt_cv_path_utmpx != x; then 15375if test x$rxvt_cv_path_utmpx != x; then
15376
8714 cat >> confdefs.h <<EOF 15377cat >>confdefs.h <<_ACEOF
8715#define RXVT_UTMPX_FILE "$rxvt_cv_path_utmpx" 15378#define RXVT_UTMPX_FILE "$rxvt_cv_path_utmpx"
8716EOF 15379_ACEOF
8717 15380
8718fi 15381fi
8719 15382
8720 15383
15384echo "$as_me:$LINENO: checking where wtmp is located" >&5
8721echo $ac_n "checking where wtmp is located""... $ac_c" 1>&6 15385echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6
8722echo "configure:8723: checking where wtmp is located" >&5
8723if eval "test \"`echo '$''{'rxvt_cv_path_wtmp'+set}'`\" = set"; then 15386if test "${rxvt_cv_path_wtmp+set}" = set; then
8724 echo $ac_n "(cached) $ac_c" 1>&6 15387 echo $ECHO_N "(cached) $ECHO_C" >&6
8725else 15388else
8726 if test "$cross_compiling" = yes; then 15389 if test "$cross_compiling" = yes; then
15390 { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&5
8727 echo "configure: warning: Define RXVT_WTMP_FILE in config.h manually" 1>&2 15391echo "$as_me: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&2;}
8728else 15392else
8729 cat > conftest.$ac_ext <<EOF 15393 cat >conftest.$ac_ext <<_ACEOF
8730#line 8731 "configure" 15394/* confdefs.h. */
8731#include "confdefs.h" 15395_ACEOF
15396cat confdefs.h >>conftest.$ac_ext
15397cat >>conftest.$ac_ext <<_ACEOF
15398/* end confdefs.h. */
8732#include <stdio.h> 15399#include <stdio.h>
8733#include <sys/types.h> 15400#include <sys/types.h>
8734#ifdef HAVE_UTMP_H 15401#ifdef HAVE_UTMP_H
8735#include <utmp.h> 15402#include <utmp.h>
8736#endif 15403#endif
8737#include <errno.h> 15404#include <errno.h>
8738main() 15405main()
8739{ 15406{
8740 char **w, *wtmplist[] = { 15407 char **w, *wtmplist[] = {
8741 "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL }; 15408 "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL };
8742 FILE *a, *f=fopen("conftestval", "w"); 15409 FILE *a, *f=fopen("conftestval", "w");
8743 if (!f) exit(1); 15410 if (!f) exit(1);
8744#ifdef WTMP_FILE 15411#ifdef WTMP_FILE
8745 fprintf(f, "%s\n", WTMP_FILE); 15412 fprintf(f, "%s\n", WTMP_FILE);
8746 exit(0); 15413 exit(0);
8755 exit(0); 15422 exit(0);
8756 } 15423 }
8757 } 15424 }
8758 exit(0); 15425 exit(0);
8759} 15426}
8760EOF 15427_ACEOF
8761if { (eval echo configure:8762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 15428rm -f conftest$ac_exeext
8762then 15429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15430 (eval $ac_link) 2>&5
15431 ac_status=$?
15432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15435 (eval $ac_try) 2>&5
15436 ac_status=$?
15437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438 (exit $ac_status); }; }; then
8763 rxvt_cv_path_wtmp=`cat conftestval` 15439 rxvt_cv_path_wtmp=`cat conftestval`
8764else 15440else
15441 echo "$as_me: program exited with status $ac_status" >&5
8765 echo "configure: failed program was:" >&5 15442echo "$as_me: failed program was:" >&5
8766 cat conftest.$ac_ext >&5 15443sed 's/^/| /' conftest.$ac_ext >&5
8767 rm -fr conftest* 15444
15445( exit $ac_status )
8768 rxvt_cv_path_wtmp= 15446rxvt_cv_path_wtmp=
8769fi 15447fi
8770rm -fr conftest* 15448rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8771fi 15449fi
8772
8773fi 15450fi
8774 15451echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmp" >&5
8775echo "$ac_t""$rxvt_cv_path_wtmp" 1>&6 15452echo "${ECHO_T}$rxvt_cv_path_wtmp" >&6
8776if test x$rxvt_cv_path_wtmp != x; then 15453if test x$rxvt_cv_path_wtmp != x; then
15454
8777 cat >> confdefs.h <<EOF 15455cat >>confdefs.h <<_ACEOF
8778#define RXVT_WTMP_FILE "$rxvt_cv_path_wtmp" 15456#define RXVT_WTMP_FILE "$rxvt_cv_path_wtmp"
8779EOF 15457_ACEOF
8780 15458
8781fi 15459fi
8782 15460
15461echo "$as_me:$LINENO: checking where wtmpx is located" >&5
8783echo $ac_n "checking where wtmpx is located""... $ac_c" 1>&6 15462echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6
8784echo "configure:8785: checking where wtmpx is located" >&5
8785if eval "test \"`echo '$''{'rxvt_cv_path_wtmpx'+set}'`\" = set"; then 15463if test "${rxvt_cv_path_wtmpx+set}" = set; then
8786 echo $ac_n "(cached) $ac_c" 1>&6 15464 echo $ECHO_N "(cached) $ECHO_C" >&6
8787else 15465else
8788 if test "$cross_compiling" = yes; then 15466 if test "$cross_compiling" = yes; then
15467 { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&5
8789 echo "configure: warning: Define RXVT_WTMPX_FILE in config.h manually" 1>&2 15468echo "$as_me: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&2;}
8790else 15469else
8791 cat > conftest.$ac_ext <<EOF 15470 cat >conftest.$ac_ext <<_ACEOF
8792#line 8793 "configure" 15471/* confdefs.h. */
8793#include "confdefs.h" 15472_ACEOF
15473cat confdefs.h >>conftest.$ac_ext
15474cat >>conftest.$ac_ext <<_ACEOF
15475/* end confdefs.h. */
8794#include <stdio.h> 15476#include <stdio.h>
8795#ifdef HAVE_UTMPX_H 15477#ifdef HAVE_UTMPX_H
8796#include <utmpx.h> 15478#include <utmpx.h>
8797#endif 15479#endif
8798#include <errno.h> 15480#include <errno.h>
8799main() 15481main()
8800{ 15482{
8801 char **w, *wtmplist[] = { 15483 char **w, *wtmplist[] = {
8802 "/var/log/wtmpx", "/var/adm/wtmpx", NULL }; 15484 "/var/log/wtmpx", "/var/adm/wtmpx", NULL };
8803 FILE *a, *f=fopen("conftestval", "w"); 15485 FILE *a, *f=fopen("conftestval", "w");
8804 if (!f) exit(1); 15486 if (!f) exit(1);
8805#ifdef WTMPX_FILE 15487#ifdef WTMPX_FILE
8806 fprintf(f, "%s\n", WTMPX_FILE); 15488 fprintf(f, "%s\n", WTMPX_FILE);
8807 exit(0); 15489 exit(0);
8816 exit(0); 15498 exit(0);
8817 } 15499 }
8818 } 15500 }
8819 exit(0); 15501 exit(0);
8820} 15502}
8821EOF 15503_ACEOF
8822if { (eval echo configure:8823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 15504rm -f conftest$ac_exeext
8823then 15505if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15506 (eval $ac_link) 2>&5
15507 ac_status=$?
15508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15511 (eval $ac_try) 2>&5
15512 ac_status=$?
15513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514 (exit $ac_status); }; }; then
8824 rxvt_cv_path_wtmpx=`cat conftestval` 15515 rxvt_cv_path_wtmpx=`cat conftestval`
8825else 15516else
15517 echo "$as_me: program exited with status $ac_status" >&5
8826 echo "configure: failed program was:" >&5 15518echo "$as_me: failed program was:" >&5
8827 cat conftest.$ac_ext >&5 15519sed 's/^/| /' conftest.$ac_ext >&5
8828 rm -fr conftest* 15520
15521( exit $ac_status )
8829 rxvt_cv_path_wtmpx= 15522rxvt_cv_path_wtmpx=
8830fi 15523fi
8831rm -fr conftest* 15524rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8832fi 15525fi
8833
8834fi 15526fi
8835 15527echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmpx" >&5
8836echo "$ac_t""$rxvt_cv_path_wtmpx" 1>&6 15528echo "${ECHO_T}$rxvt_cv_path_wtmpx" >&6
8837if test x$rxvt_cv_path_wtmpx != x; then 15529if test x$rxvt_cv_path_wtmpx != x; then
15530
8838 cat >> confdefs.h <<EOF 15531cat >>confdefs.h <<_ACEOF
8839#define RXVT_WTMPX_FILE "$rxvt_cv_path_wtmpx" 15532#define RXVT_WTMPX_FILE "$rxvt_cv_path_wtmpx"
8840EOF 15533_ACEOF
8841 15534
8842fi 15535fi
8843 15536
15537echo "$as_me:$LINENO: checking where lastlog is located" >&5
8844echo $ac_n "checking where lastlog is located""... $ac_c" 1>&6 15538echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6
8845echo "configure:8846: checking where lastlog is located" >&5
8846if eval "test \"`echo '$''{'rxvt_cv_path_lastlog'+set}'`\" = set"; then 15539if test "${rxvt_cv_path_lastlog+set}" = set; then
8847 echo $ac_n "(cached) $ac_c" 1>&6 15540 echo $ECHO_N "(cached) $ECHO_C" >&6
8848else 15541else
8849 if test "$cross_compiling" = yes; then 15542 if test "$cross_compiling" = yes; then
15543 { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&5
8850 echo "configure: warning: Define RXVT_LASTLOG_FILE in config.h manually" 1>&2 15544echo "$as_me: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&2;}
8851else 15545else
8852 cat > conftest.$ac_ext <<EOF 15546 cat >conftest.$ac_ext <<_ACEOF
8853#line 8854 "configure" 15547/* confdefs.h. */
8854#include "confdefs.h" 15548_ACEOF
15549cat confdefs.h >>conftest.$ac_ext
15550cat >>conftest.$ac_ext <<_ACEOF
15551/* end confdefs.h. */
8855#include <stdio.h> 15552#include <stdio.h>
8856#include <sys/types.h> 15553#include <sys/types.h>
8857#ifdef HAVE_UTMPX_H 15554#ifdef HAVE_UTMPX_H
8858#include <utmpx.h> 15555#include <utmpx.h>
8859#elif defined(HAVE_UTMP_H) 15556#elif defined(HAVE_UTMP_H)
8882 exit(0); 15579 exit(0);
8883 } 15580 }
8884 } 15581 }
8885 exit(0); 15582 exit(0);
8886} 15583}
8887EOF 15584_ACEOF
8888if { (eval echo configure:8889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 15585rm -f conftest$ac_exeext
8889then 15586if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15587 (eval $ac_link) 2>&5
15588 ac_status=$?
15589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15592 (eval $ac_try) 2>&5
15593 ac_status=$?
15594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595 (exit $ac_status); }; }; then
8890 rxvt_cv_path_lastlog=`cat conftestval` 15596 rxvt_cv_path_lastlog=`cat conftestval`
8891else 15597else
15598 echo "$as_me: program exited with status $ac_status" >&5
8892 echo "configure: failed program was:" >&5 15599echo "$as_me: failed program was:" >&5
8893 cat conftest.$ac_ext >&5 15600sed 's/^/| /' conftest.$ac_ext >&5
8894 rm -fr conftest* 15601
15602( exit $ac_status )
8895 rxvt_cv_path_lastlog= 15603rxvt_cv_path_lastlog=
8896fi 15604fi
8897rm -fr conftest* 15605rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8898fi 15606fi
8899
8900fi 15607fi
8901 15608echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlog" >&5
8902echo "$ac_t""$rxvt_cv_path_lastlog" 1>&6 15609echo "${ECHO_T}$rxvt_cv_path_lastlog" >&6
8903if test x$rxvt_cv_path_lastlog != x; then 15610if test x$rxvt_cv_path_lastlog != x; then
15611
8904 cat >> confdefs.h <<EOF 15612cat >>confdefs.h <<_ACEOF
8905#define RXVT_LASTLOG_FILE "$rxvt_cv_path_lastlog" 15613#define RXVT_LASTLOG_FILE "$rxvt_cv_path_lastlog"
8906EOF 15614_ACEOF
8907 15615
8908 if test -d "$rxvt_cv_path_lastlog"; then 15616 if test -d "$rxvt_cv_path_lastlog"; then
15617
8909 cat >> confdefs.h <<\EOF 15618cat >>confdefs.h <<\_ACEOF
8910#define LASTLOG_IS_DIR 1 15619#define LASTLOG_IS_DIR 1
8911EOF 15620_ACEOF
8912 15621
8913 fi 15622 fi
8914fi 15623fi
8915 15624
15625echo "$as_me:$LINENO: checking where lastlogx is located" >&5
8916echo $ac_n "checking where lastlogx is located""... $ac_c" 1>&6 15626echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6
8917echo "configure:8918: checking where lastlogx is located" >&5
8918if eval "test \"`echo '$''{'rxvt_cv_path_lastlogx'+set}'`\" = set"; then 15627if test "${rxvt_cv_path_lastlogx+set}" = set; then
8919 echo $ac_n "(cached) $ac_c" 1>&6 15628 echo $ECHO_N "(cached) $ECHO_C" >&6
8920else 15629else
8921 if test "$cross_compiling" = yes; then 15630 if test "$cross_compiling" = yes; then
15631 { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&5
8922 echo "configure: warning: Define RXVT_LASTLOGX_FILE in config.h manually" 1>&2 15632echo "$as_me: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&2;}
8923else 15633else
8924 cat > conftest.$ac_ext <<EOF 15634 cat >conftest.$ac_ext <<_ACEOF
8925#line 8926 "configure" 15635/* confdefs.h. */
8926#include "confdefs.h" 15636_ACEOF
15637cat confdefs.h >>conftest.$ac_ext
15638cat >>conftest.$ac_ext <<_ACEOF
15639/* end confdefs.h. */
8927#include <stdio.h> 15640#include <stdio.h>
8928#ifdef HAVE_UTMPX_H 15641#ifdef HAVE_UTMPX_H
8929#include <utmpx.h> 15642#include <utmpx.h>
8930#endif 15643#endif
8931#include <errno.h> 15644#include <errno.h>
8948 exit(0); 15661 exit(0);
8949 } 15662 }
8950 } 15663 }
8951 exit(0); 15664 exit(0);
8952} 15665}
8953EOF 15666_ACEOF
8954if { (eval echo configure:8955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 15667rm -f conftest$ac_exeext
8955then 15668if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15669 (eval $ac_link) 2>&5
15670 ac_status=$?
15671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15674 (eval $ac_try) 2>&5
15675 ac_status=$?
15676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15677 (exit $ac_status); }; }; then
8956 rxvt_cv_path_lastlogx=`cat conftestval` 15678 rxvt_cv_path_lastlogx=`cat conftestval`
8957else 15679else
15680 echo "$as_me: program exited with status $ac_status" >&5
8958 echo "configure: failed program was:" >&5 15681echo "$as_me: failed program was:" >&5
8959 cat conftest.$ac_ext >&5 15682sed 's/^/| /' conftest.$ac_ext >&5
8960 rm -fr conftest* 15683
15684( exit $ac_status )
8961 rxvt_cv_path_lastlogx= 15685rxvt_cv_path_lastlogx=
8962fi 15686fi
8963rm -fr conftest* 15687rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8964fi 15688fi
8965
8966fi 15689fi
8967 15690echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlogx" >&5
8968echo "$ac_t""$rxvt_cv_path_lastlogx" 1>&6 15691echo "${ECHO_T}$rxvt_cv_path_lastlogx" >&6
8969if test x$rxvt_cv_path_lastlogx != x; then 15692if test x$rxvt_cv_path_lastlogx != x; then
15693
8970 cat >> confdefs.h <<EOF 15694cat >>confdefs.h <<_ACEOF
8971#define RXVT_LASTLOGX_FILE "$rxvt_cv_path_lastlogx" 15695#define RXVT_LASTLOGX_FILE "$rxvt_cv_path_lastlogx"
8972EOF 15696_ACEOF
8973 15697
8974fi 15698fi
8975 15699
8976 15700
15701echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
8977echo $ac_n "checking where ttys/ttytab is located""... $ac_c" 1>&6 15702echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6
8978echo "configure:8979: checking where ttys/ttytab is located" >&5
8979if eval "test \"`echo '$''{'rxvt_cv_path_ttytab'+set}'`\" = set"; then 15703if test "${rxvt_cv_path_ttytab+set}" = set; then
8980 echo $ac_n "(cached) $ac_c" 1>&6 15704 echo $ECHO_N "(cached) $ECHO_C" >&6
8981else 15705else
8982 for ttys_file in /etc/ttys /etc/ttytab; 15706 for ttys_file in /etc/ttys /etc/ttytab;
8983do 15707do
8984 if test -f "$ttys_file" ; then 15708 if test -f "$ttys_file" ; then
8985 rxvt_cv_path_ttytab=$ttys_file 15709 rxvt_cv_path_ttytab=$ttys_file
8986 break 15710 break
8987 fi 15711 fi
8988done 15712done
8989 15713
8990fi 15714fi
8991 15715echo "$as_me:$LINENO: result: $rxvt_cv_path_ttytab" >&5
8992echo "$ac_t""$rxvt_cv_path_ttytab" 1>&6 15716echo "${ECHO_T}$rxvt_cv_path_ttytab" >&6
8993if test x$rxvt_cv_path_ttytab != x; then 15717if test x$rxvt_cv_path_ttytab != x; then
15718
8994 cat >> confdefs.h <<EOF 15719cat >>confdefs.h <<_ACEOF
8995#define TTYTAB_FILENAME "$rxvt_cv_path_ttytab" 15720#define TTYTAB_FILENAME "$rxvt_cv_path_ttytab"
8996EOF 15721_ACEOF
8997 15722
8998fi 15723fi
8999 15724
9000 15725
9001ac_save_LIBS=$LIBS 15726ac_save_LIBS=$LIBS
9003CFLAGS="$CFLAGS $X_CFLAGS" 15728CFLAGS="$CFLAGS $X_CFLAGS"
9004LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 15729LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
9005if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then 15730if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
9006 LIBS=`echo $LIBS | sed "$R_TRANSLATE"` 15731 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
9007fi 15732fi
15733echo "$as_me:$LINENO: checking for working Xlocale" >&5
9008echo $ac_n "checking for working Xlocale""... $ac_c" 1>&6 15734echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6
9009echo "configure:9010: checking for working Xlocale" >&5
9010if eval "test \"`echo '$''{'rxvt_cv_func_xlocale'+set}'`\" = set"; then 15735if test "${rxvt_cv_func_xlocale+set}" = set; then
9011 echo $ac_n "(cached) $ac_c" 1>&6 15736 echo $ECHO_N "(cached) $ECHO_C" >&6
9012else 15737else
9013 if test "$cross_compiling" = yes; then 15738 if test "$cross_compiling" = yes; then
15739 { echo "$as_me:$LINENO: WARNING: Define NO_XLOCALE in config.h manually" >&5
9014 echo "configure: warning: Define NO_XLOCALE in config.h manually" 1>&2 15740echo "$as_me: WARNING: Define NO_XLOCALE in config.h manually" >&2;}
9015else 15741else
9016 cat > conftest.$ac_ext <<EOF 15742 cat >conftest.$ac_ext <<_ACEOF
9017#line 9018 "configure" 15743/* confdefs.h. */
9018#include "confdefs.h" 15744_ACEOF
15745cat confdefs.h >>conftest.$ac_ext
15746cat >>conftest.$ac_ext <<_ACEOF
15747/* end confdefs.h. */
9019#include <X11/Xlib.h> 15748#include <X11/Xlib.h>
9020main() { 15749main() {
9021char *p; 15750char *p;
9022if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) 15751if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
9023exit (XSupportsLocale() ? 0 : 1); 15752exit (XSupportsLocale() ? 0 : 1);
9024else 15753else
9025exit (1);} 15754exit (1);}
9026EOF 15755_ACEOF
9027if { (eval echo configure:9028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 15756rm -f conftest$ac_exeext
9028then 15757if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15758 (eval $ac_link) 2>&5
15759 ac_status=$?
15760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15761 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15763 (eval $ac_try) 2>&5
15764 ac_status=$?
15765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766 (exit $ac_status); }; }; then
9029 rxvt_cv_func_xlocale=yes 15767 rxvt_cv_func_xlocale=yes
9030else 15768else
15769 echo "$as_me: program exited with status $ac_status" >&5
9031 echo "configure: failed program was:" >&5 15770echo "$as_me: failed program was:" >&5
9032 cat conftest.$ac_ext >&5 15771sed 's/^/| /' conftest.$ac_ext >&5
9033 rm -fr conftest* 15772
15773( exit $ac_status )
9034 rxvt_cv_func_xlocale=no 15774rxvt_cv_func_xlocale=no
9035fi 15775fi
9036rm -fr conftest* 15776rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9037fi 15777fi
9038
9039fi 15778fi
9040 15779echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5
9041echo "$ac_t""$rxvt_cv_func_xlocale" 1>&6 15780echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6
9042if test x$rxvt_cv_func_xlocale = xyes; then 15781if test x$rxvt_cv_func_xlocale = xyes; then
15782
9043 cat >> confdefs.h <<\EOF 15783cat >>confdefs.h <<\_ACEOF
9044#define HAVE_XLOCALE 1 15784#define HAVE_XLOCALE 1
9045EOF 15785_ACEOF
9046 15786
9047fi 15787fi
9048 15788
15789echo "$as_me:$LINENO: checking for working X setlocale" >&5
9049echo $ac_n "checking for working X setlocale""... $ac_c" 1>&6 15790echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6
9050echo "configure:9051: checking for working X setlocale" >&5
9051if eval "test \"`echo '$''{'rxvt_cv_func_xsetlocale'+set}'`\" = set"; then 15791if test "${rxvt_cv_func_xsetlocale+set}" = set; then
9052 echo $ac_n "(cached) $ac_c" 1>&6 15792 echo $ECHO_N "(cached) $ECHO_C" >&6
9053else 15793else
9054 cat > conftest.$ac_ext <<EOF 15794 cat >conftest.$ac_ext <<_ACEOF
9055#line 9056 "configure" 15795/* confdefs.h. */
9056#include "confdefs.h" 15796_ACEOF
15797cat confdefs.h >>conftest.$ac_ext
15798cat >>conftest.$ac_ext <<_ACEOF
15799/* end confdefs.h. */
9057#define X_LOCALE 1 15800#define X_LOCALE 1
9058#include <X11/Xlocale.h> 15801#include <X11/Xlocale.h>
9059int main() { 15802int
15803main ()
15804{
9060setlocale(LC_CTYPE, ""); 15805setlocale(LC_CTYPE, "");
15806 ;
9061; return 0; } 15807 return 0;
9062EOF 15808}
9063if { (eval echo configure:9064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15809_ACEOF
15810rm -f conftest.$ac_objext conftest$ac_exeext
15811if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15812 (eval $ac_link) 2>conftest.er1
15813 ac_status=$?
15814 grep -v '^ *+' conftest.er1 >conftest.err
9064 rm -rf conftest* 15815 rm -f conftest.er1
15816 cat conftest.err >&5
15817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15818 (exit $ac_status); } &&
15819 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15821 (eval $ac_try) 2>&5
15822 ac_status=$?
15823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824 (exit $ac_status); }; } &&
15825 { ac_try='test -s conftest$ac_exeext'
15826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15827 (eval $ac_try) 2>&5
15828 ac_status=$?
15829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830 (exit $ac_status); }; }; then
9065 rxvt_cv_func_xsetlocale=yes 15831 rxvt_cv_func_xsetlocale=yes
9066else 15832else
9067 echo "configure: failed program was:" >&5 15833 echo "$as_me: failed program was:" >&5
9068 cat conftest.$ac_ext >&5 15834sed 's/^/| /' conftest.$ac_ext >&5
9069 rm -rf conftest* 15835
9070 rxvt_cv_func_xsetlocale=no 15836rxvt_cv_func_xsetlocale=no
9071fi 15837fi
9072rm -f conftest* 15838rm -f conftest.err conftest.$ac_objext \
15839 conftest$ac_exeext conftest.$ac_ext
9073fi 15840fi
9074 15841echo "$as_me:$LINENO: result: $rxvt_cv_func_xsetlocale" >&5
9075echo "$ac_t""$rxvt_cv_func_xsetlocale" 1>&6 15842echo "${ECHO_T}$rxvt_cv_func_xsetlocale" >&6
9076if test x$rxvt_cv_func_xsetlocale = xyes; then 15843if test x$rxvt_cv_func_xsetlocale = xyes; then
15844
9077 cat >> confdefs.h <<\EOF 15845cat >>confdefs.h <<\_ACEOF
9078#define HAVE_XSETLOCALE 1 15846#define HAVE_XSETLOCALE 1
9079EOF 15847_ACEOF
9080 15848
9081fi 15849fi
9082LIBS=$ac_save_LIBS 15850LIBS=$ac_save_LIBS
9083CFLAGS=$ac_save_CFLAGS 15851CFLAGS=$ac_save_CFLAGS
9084 15852
15853echo "$as_me:$LINENO: checking for working plain setlocale" >&5
9085echo $ac_n "checking for working plain setlocale""... $ac_c" 1>&6 15854echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6
9086echo "configure:9087: checking for working plain setlocale" >&5
9087if eval "test \"`echo '$''{'rxvt_cv_func_setlocale'+set}'`\" = set"; then 15855if test "${rxvt_cv_func_setlocale+set}" = set; then
9088 echo $ac_n "(cached) $ac_c" 1>&6 15856 echo $ECHO_N "(cached) $ECHO_C" >&6
9089else 15857else
9090 cat > conftest.$ac_ext <<EOF 15858 cat >conftest.$ac_ext <<_ACEOF
9091#line 9092 "configure" 15859/* confdefs.h. */
9092#include "confdefs.h" 15860_ACEOF
15861cat confdefs.h >>conftest.$ac_ext
15862cat >>conftest.$ac_ext <<_ACEOF
15863/* end confdefs.h. */
9093#include <locale.h> 15864#include <locale.h>
9094int main() { 15865int
15866main ()
15867{
9095setlocale(LC_CTYPE, ""); 15868setlocale(LC_CTYPE, "");
15869 ;
9096; return 0; } 15870 return 0;
9097EOF 15871}
9098if { (eval echo configure:9099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15872_ACEOF
15873rm -f conftest.$ac_objext conftest$ac_exeext
15874if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15875 (eval $ac_link) 2>conftest.er1
15876 ac_status=$?
15877 grep -v '^ *+' conftest.er1 >conftest.err
9099 rm -rf conftest* 15878 rm -f conftest.er1
15879 cat conftest.err >&5
15880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15881 (exit $ac_status); } &&
15882 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15884 (eval $ac_try) 2>&5
15885 ac_status=$?
15886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15887 (exit $ac_status); }; } &&
15888 { ac_try='test -s conftest$ac_exeext'
15889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15890 (eval $ac_try) 2>&5
15891 ac_status=$?
15892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893 (exit $ac_status); }; }; then
9100 rxvt_cv_func_setlocale=yes 15894 rxvt_cv_func_setlocale=yes
9101else 15895else
9102 echo "configure: failed program was:" >&5 15896 echo "$as_me: failed program was:" >&5
9103 cat conftest.$ac_ext >&5 15897sed 's/^/| /' conftest.$ac_ext >&5
9104 rm -rf conftest* 15898
9105 rxvt_cv_func_setlocale=no 15899rxvt_cv_func_setlocale=no
9106fi 15900fi
9107rm -f conftest* 15901rm -f conftest.err conftest.$ac_objext \
15902 conftest$ac_exeext conftest.$ac_ext
9108fi 15903fi
9109 15904echo "$as_me:$LINENO: result: $rxvt_cv_func_setlocale" >&5
9110echo "$ac_t""$rxvt_cv_func_setlocale" 1>&6 15905echo "${ECHO_T}$rxvt_cv_func_setlocale" >&6
9111if test x$rxvt_cv_func_setlocale = xyes; then 15906if test x$rxvt_cv_func_setlocale = xyes; then
15907
9112 cat >> confdefs.h <<\EOF 15908cat >>confdefs.h <<\_ACEOF
9113#define HAVE_SETLOCALE 1 15909#define HAVE_SETLOCALE 1
9114EOF 15910_ACEOF
9115 15911
9116fi 15912fi
9117 15913
15914echo "$as_me:$LINENO: checking for working nl_langinfo" >&5
9118echo $ac_n "checking for working nl_langinfo""... $ac_c" 1>&6 15915echo $ECHO_N "checking for working nl_langinfo... $ECHO_C" >&6
9119echo "configure:9120: checking for working nl_langinfo" >&5
9120if eval "test \"`echo '$''{'rxvt_cv_func_nl_langinfo'+set}'`\" = set"; then 15916if test "${rxvt_cv_func_nl_langinfo+set}" = set; then
9121 echo $ac_n "(cached) $ac_c" 1>&6 15917 echo $ECHO_N "(cached) $ECHO_C" >&6
9122else 15918else
9123 cat > conftest.$ac_ext <<EOF 15919 cat >conftest.$ac_ext <<_ACEOF
9124#line 9125 "configure" 15920/* confdefs.h. */
9125#include "confdefs.h" 15921_ACEOF
15922cat confdefs.h >>conftest.$ac_ext
15923cat >>conftest.$ac_ext <<_ACEOF
15924/* end confdefs.h. */
9126#include <langinfo.h> 15925#include <langinfo.h>
9127int main() { 15926int
15927main ()
15928{
9128nl_langinfo(CODESET); 15929nl_langinfo(CODESET);
15930 ;
9129; return 0; } 15931 return 0;
9130EOF 15932}
9131if { (eval echo configure:9132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15933_ACEOF
15934rm -f conftest.$ac_objext conftest$ac_exeext
15935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15936 (eval $ac_link) 2>conftest.er1
15937 ac_status=$?
15938 grep -v '^ *+' conftest.er1 >conftest.err
9132 rm -rf conftest* 15939 rm -f conftest.er1
15940 cat conftest.err >&5
15941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942 (exit $ac_status); } &&
15943 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15945 (eval $ac_try) 2>&5
15946 ac_status=$?
15947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15948 (exit $ac_status); }; } &&
15949 { ac_try='test -s conftest$ac_exeext'
15950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15951 (eval $ac_try) 2>&5
15952 ac_status=$?
15953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954 (exit $ac_status); }; }; then
9133 rxvt_cv_func_nl_langinfo=yes 15955 rxvt_cv_func_nl_langinfo=yes
9134else 15956else
9135 echo "configure: failed program was:" >&5 15957 echo "$as_me: failed program was:" >&5
9136 cat conftest.$ac_ext >&5 15958sed 's/^/| /' conftest.$ac_ext >&5
9137 rm -rf conftest* 15959
9138 rxvt_cv_func_nl_langinfo=no 15960rxvt_cv_func_nl_langinfo=no
9139fi 15961fi
9140rm -f conftest* 15962rm -f conftest.err conftest.$ac_objext \
15963 conftest$ac_exeext conftest.$ac_ext
9141fi 15964fi
9142 15965echo "$as_me:$LINENO: result: $rxvt_cv_func_nl_langinfo" >&5
9143echo "$ac_t""$rxvt_cv_func_nl_langinfo" 1>&6 15966echo "${ECHO_T}$rxvt_cv_func_nl_langinfo" >&6
9144if test x$rxvt_cv_func_nl_langinfo = xyes; then 15967if test x$rxvt_cv_func_nl_langinfo = xyes; then
15968
9145 cat >> confdefs.h <<\EOF 15969cat >>confdefs.h <<\_ACEOF
9146#define HAVE_NL_LANGINFO 1 15970#define HAVE_NL_LANGINFO 1
9147EOF 15971_ACEOF
9148 15972
9149fi 15973fi
9150 15974
15975echo "$as_me:$LINENO: checking for getpt" >&5
9151echo $ac_n "checking for getpt""... $ac_c" 1>&6 15976echo $ECHO_N "checking for getpt... $ECHO_C" >&6
9152echo "configure:9153: checking for getpt" >&5
9153if eval "test \"`echo '$''{'rxvt_cv_func_getpt'+set}'`\" = set"; then 15977if test "${rxvt_cv_func_getpt+set}" = set; then
9154 echo $ac_n "(cached) $ac_c" 1>&6 15978 echo $ECHO_N "(cached) $ECHO_C" >&6
9155else 15979else
9156 cat > conftest.$ac_ext <<EOF 15980 cat >conftest.$ac_ext <<_ACEOF
9157#line 9158 "configure" 15981/* confdefs.h. */
9158#include "confdefs.h" 15982_ACEOF
15983cat confdefs.h >>conftest.$ac_ext
15984cat >>conftest.$ac_ext <<_ACEOF
15985/* end confdefs.h. */
9159#define _GNU_SOURCE 15986#define _GNU_SOURCE
9160#ifdef HAVE_STDLIB_H 15987#ifdef HAVE_STDLIB_H
9161# include <stdlib.h> 15988# include <stdlib.h>
9162#endif 15989#endif
9163int main() { 15990int
15991main ()
15992{
9164(void)getpt(); 15993(void)getpt();
15994 ;
9165; return 0; } 15995 return 0;
9166EOF 15996}
9167if { (eval echo configure:9168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15997_ACEOF
15998rm -f conftest.$ac_objext conftest$ac_exeext
15999if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16000 (eval $ac_link) 2>conftest.er1
16001 ac_status=$?
16002 grep -v '^ *+' conftest.er1 >conftest.err
9168 rm -rf conftest* 16003 rm -f conftest.er1
16004 cat conftest.err >&5
16005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006 (exit $ac_status); } &&
16007 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16009 (eval $ac_try) 2>&5
16010 ac_status=$?
16011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012 (exit $ac_status); }; } &&
16013 { ac_try='test -s conftest$ac_exeext'
16014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16015 (eval $ac_try) 2>&5
16016 ac_status=$?
16017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018 (exit $ac_status); }; }; then
9169 rxvt_cv_func_getpt=yes 16019 rxvt_cv_func_getpt=yes
9170else 16020else
9171 echo "configure: failed program was:" >&5 16021 echo "$as_me: failed program was:" >&5
9172 cat conftest.$ac_ext >&5 16022sed 's/^/| /' conftest.$ac_ext >&5
9173 rm -rf conftest* 16023
9174 rxvt_cv_func_getpt=no 16024rxvt_cv_func_getpt=no
9175fi 16025fi
9176rm -f conftest* 16026rm -f conftest.err conftest.$ac_objext \
16027 conftest$ac_exeext conftest.$ac_ext
9177fi 16028fi
9178 16029echo "$as_me:$LINENO: result: $rxvt_cv_func_getpt" >&5
9179echo "$ac_t""$rxvt_cv_func_getpt" 1>&6 16030echo "${ECHO_T}$rxvt_cv_func_getpt" >&6
9180if test x$rxvt_cv_func_getpt = xyes; then 16031if test x$rxvt_cv_func_getpt = xyes; then
16032
9181 cat >> confdefs.h <<\EOF 16033cat >>confdefs.h <<\_ACEOF
9182#define HAVE_GETPT 1 16034#define HAVE_GETPT 1
9183EOF 16035_ACEOF
9184 16036
9185fi 16037fi
9186 16038
16039echo "$as_me:$LINENO: checking for pty/tty type" >&5
9187echo $ac_n "checking for pty/tty type""... $ac_c" 1>&6 16040echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6
9188echo "configure:9189: checking for pty/tty type" >&5
9189if eval "test \"`echo '$''{'rxvt_cv_ptys'+set}'`\" = set"; then 16041if test "${rxvt_cv_ptys+set}" = set; then
9190 echo $ac_n "(cached) $ac_c" 1>&6 16042 echo $ECHO_N "(cached) $ECHO_C" >&6
9191else 16043else
9192 if test x$ac_cv_func_openpty = xyes; then 16044 if test x$ac_cv_func_openpty = xyes; then
9193 rxvt_cv_ptys=OPENPTY 16045 rxvt_cv_ptys=OPENPTY
9194 else if test x$ac_cv_func__getpty = xyes; then 16046 else if test x$ac_cv_func__getpty = xyes; then
9195 rxvt_cv_ptys=SGI4 16047 rxvt_cv_ptys=SGI4
9218fi 16070fi
9219fi 16071fi
9220fi 16072fi
9221 16073
9222fi 16074fi
9223 16075echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5
9224echo "$ac_t""$rxvt_cv_ptys" 1>&6 16076echo "${ECHO_T}$rxvt_cv_ptys" >&6
9225 16077
9226if test x$rxvt_cv_ptys = xOPENPTY; then 16078if test x$rxvt_cv_ptys = xOPENPTY; then
16079
9227 cat >> confdefs.h <<\EOF 16080cat >>confdefs.h <<\_ACEOF
9228#define PTYS_ARE_OPENPTY 1 16081#define PTYS_ARE_OPENPTY 1
9229EOF 16082_ACEOF
9230 16083
9231fi 16084fi
9232if test x$rxvt_cv_ptys = xSCO; then 16085if test x$rxvt_cv_ptys = xSCO; then
16086
9233 cat >> confdefs.h <<\EOF 16087cat >>confdefs.h <<\_ACEOF
9234#define PTYS_ARE_NUMERIC 1 16088#define PTYS_ARE_NUMERIC 1
9235EOF 16089_ACEOF
9236 16090
9237fi 16091fi
9238if test x$rxvt_cv_ptys = xSTREAMS; then 16092if test x$rxvt_cv_ptys = xSTREAMS; then
16093
9239 cat >> confdefs.h <<\EOF 16094cat >>confdefs.h <<\_ACEOF
9240#define PTYS_ARE_PTMX 1 16095#define PTYS_ARE_PTMX 1
9241EOF 16096_ACEOF
9242 16097
9243fi 16098fi
9244if test x$rxvt_cv_ptys = xPTC; then 16099if test x$rxvt_cv_ptys = xPTC; then
16100
9245 cat >> confdefs.h <<\EOF 16101cat >>confdefs.h <<\_ACEOF
9246#define PTYS_ARE_PTC 1 16102#define PTYS_ARE_PTC 1
9247EOF 16103_ACEOF
9248 16104
9249fi 16105fi
9250if test x$rxvt_cv_ptys = xSGI4; then 16106if test x$rxvt_cv_ptys = xSGI4; then
16107
9251 cat >> confdefs.h <<\EOF 16108cat >>confdefs.h <<\_ACEOF
9252#define PTYS_ARE__GETPTY 1 16109#define PTYS_ARE__GETPTY 1
9253EOF 16110_ACEOF
9254 16111
9255fi 16112fi
9256if test x$rxvt_cv_ptys = xCONVEX; then 16113if test x$rxvt_cv_ptys = xCONVEX; then
16114
9257 cat >> confdefs.h <<\EOF 16115cat >>confdefs.h <<\_ACEOF
9258#define PTYS_ARE_GETPTY 1 16116#define PTYS_ARE_GETPTY 1
9259EOF 16117_ACEOF
9260 16118
9261fi 16119fi
9262if test x$rxvt_cv_ptys = xGLIBC; then 16120if test x$rxvt_cv_ptys = xGLIBC; then
16121
9263 cat >> confdefs.h <<\EOF 16122cat >>confdefs.h <<\_ACEOF
9264#define PTYS_ARE_GETPT 1 16123#define PTYS_ARE_GETPT 1
9265EOF 16124_ACEOF
9266 16125
9267fi 16126fi
9268if test x$rxvt_cv_ptys = xHPUX; then 16127if test x$rxvt_cv_ptys = xHPUX; then
16128
9269 cat >> confdefs.h <<\EOF 16129cat >>confdefs.h <<\_ACEOF
9270#define PTYS_ARE_CLONE 1 16130#define PTYS_ARE_CLONE 1
9271EOF 16131_ACEOF
9272 16132
9273fi 16133fi
9274if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xGLIBC; then 16134if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xGLIBC; then
16135
9275 cat >> confdefs.h <<\EOF 16136cat >>confdefs.h <<\_ACEOF
9276#define PTYS_ARE_SEARCHED 1 16137#define PTYS_ARE_SEARCHED 1
9277EOF 16138_ACEOF
9278 16139
9279fi 16140fi
9280 16141
9281 16142
16143{ echo "$as_me:$LINENO: checking for pty ranges..." >&5
9282echo "checking for pty ranges" 1>&6 16144echo "$as_me: checking for pty ranges..." >&6;}
9283echo "configure:9284: checking for pty ranges" >&5
9284ptys=`echo /dev/pty??` 16145ptys=`echo /dev/pty??`
9285pch1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'` 16146pch1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
9286pch2=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'` 16147pch2=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
9287if test x$pch1 != x; then 16148if test x$pch1 != x; then
16149
9288 cat >> confdefs.h <<EOF 16150cat >>confdefs.h <<_ACEOF
9289#define PTYCHAR1 "$pch1" 16151#define PTYCHAR1 "$pch1"
9290EOF 16152_ACEOF
9291 16153
9292fi 16154fi
9293if test x$pch2 != x; then 16155if test x$pch2 != x; then
16156
9294 cat >> confdefs.h <<EOF 16157cat >>confdefs.h <<_ACEOF
9295#define PTYCHAR2 "$pch2" 16158#define PTYCHAR2 "$pch2"
9296EOF 16159_ACEOF
9297 16160
9298fi 16161fi
9299 16162
16163echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
9300echo $ac_n "checking for setlocale in -lxpg4""... $ac_c" 1>&6 16164echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
9301echo "configure:9302: checking for setlocale in -lxpg4" >&5 16165if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
9302ac_lib_var=`echo xpg4'_'setlocale | sed 'y%./+-%__p_%'`
9303if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9304 echo $ac_n "(cached) $ac_c" 1>&6 16166 echo $ECHO_N "(cached) $ECHO_C" >&6
9305else 16167else
9306 ac_save_LIBS="$LIBS" 16168 ac_check_lib_save_LIBS=$LIBS
9307LIBS="-lxpg4 $LIBS" 16169LIBS="-lxpg4 $LIBS"
9308cat > conftest.$ac_ext <<EOF 16170cat >conftest.$ac_ext <<_ACEOF
9309#line 9310 "configure" 16171/* confdefs.h. */
9310#include "confdefs.h" 16172_ACEOF
16173cat confdefs.h >>conftest.$ac_ext
16174cat >>conftest.$ac_ext <<_ACEOF
16175/* end confdefs.h. */
16176
9311/* Override any gcc2 internal prototype to avoid an error. */ 16177/* Override any gcc2 internal prototype to avoid an error. */
16178#ifdef __cplusplus
16179extern "C"
16180#endif
9312/* We use char because int might match the return type of a gcc2 16181/* We use char because int might match the return type of a gcc2
9313 builtin and then its argument prototype would still apply. */ 16182 builtin and then its argument prototype would still apply. */
9314char setlocale(); 16183char setlocale ();
9315 16184int
9316int main() { 16185main ()
16186{
9317setlocale() 16187setlocale ();
16188 ;
9318; return 0; } 16189 return 0;
9319EOF 16190}
9320if { (eval echo configure:9321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 16191_ACEOF
16192rm -f conftest.$ac_objext conftest$ac_exeext
16193if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16194 (eval $ac_link) 2>conftest.er1
16195 ac_status=$?
16196 grep -v '^ *+' conftest.er1 >conftest.err
9321 rm -rf conftest* 16197 rm -f conftest.er1
9322 eval "ac_cv_lib_$ac_lib_var=yes" 16198 cat conftest.err >&5
16199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200 (exit $ac_status); } &&
16201 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16203 (eval $ac_try) 2>&5
16204 ac_status=$?
16205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206 (exit $ac_status); }; } &&
16207 { ac_try='test -s conftest$ac_exeext'
16208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16209 (eval $ac_try) 2>&5
16210 ac_status=$?
16211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212 (exit $ac_status); }; }; then
16213 ac_cv_lib_xpg4_setlocale=yes
9323else 16214else
9324 echo "configure: failed program was:" >&5 16215 echo "$as_me: failed program was:" >&5
9325 cat conftest.$ac_ext >&5 16216sed 's/^/| /' conftest.$ac_ext >&5
9326 rm -rf conftest* 16217
9327 eval "ac_cv_lib_$ac_lib_var=no" 16218ac_cv_lib_xpg4_setlocale=no
9328fi 16219fi
9329rm -f conftest* 16220rm -f conftest.err conftest.$ac_objext \
16221 conftest$ac_exeext conftest.$ac_ext
9330LIBS="$ac_save_LIBS" 16222LIBS=$ac_check_lib_save_LIBS
9331
9332fi 16223fi
9333if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 16224echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
9334 echo "$ac_t""yes" 1>&6 16225echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
16226if test $ac_cv_lib_xpg4_setlocale = yes; then
9335 LIBS="$LIBS -lxpg4" 16227 LIBS="$LIBS -lxpg4"
9336else
9337 echo "$ac_t""no" 1>&6
9338fi 16228fi
9339 16229
9340 16230
9341if test x$support_graphics = xyes; then
9342 cat >> confdefs.h <<\EOF
9343#define RXVT_GRAPHICS 1
9344EOF
9345
9346fi
9347if test x$support_inheritpixmap = xyes; then 16231if test x$support_inheritpixmap = xyes; then
16232
9348 cat >> confdefs.h <<\EOF 16233cat >>confdefs.h <<\_ACEOF
9349#define TRANSPARENT 1 16234#define TRANSPARENT 1
9350EOF 16235_ACEOF
9351 16236
9352fi 16237fi
9353if test x$support_keepscrolling = xno; then 16238if test x$support_keepscrolling = xno; then
16239
9354 cat >> confdefs.h <<\EOF 16240cat >>confdefs.h <<\_ACEOF
9355#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1 16241#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
9356EOF 16242_ACEOF
9357 16243
9358fi 16244fi
9359if test x$support_selectionscrolling = xyes; then 16245if test x$support_selectionscrolling = xyes; then
16246
9360 cat >> confdefs.h <<\EOF 16247cat >>confdefs.h <<\_ACEOF
9361#define SELECTION_SCROLLING 1 16248#define SELECTION_SCROLLING 1
9362EOF 16249_ACEOF
9363 16250
9364fi 16251fi
9365if test x$support_menubar = xyes; then 16252if test x$support_menubar = xyes; then
16253
9366 cat >> confdefs.h <<\EOF 16254cat >>confdefs.h <<\_ACEOF
9367#define MENUBAR 1 16255#define MENUBAR 1
9368EOF 16256_ACEOF
9369 16257
9370fi 16258fi
9371if test x$support_frills = xno; then 16259if test x$support_frills = xno; then
16260
9372 cat >> confdefs.h <<\EOF 16261cat >>confdefs.h <<\_ACEOF
9373#define NO_FRILLS 1 16262#define NO_FRILLS 1
9374EOF 16263_ACEOF
9375 16264
9376fi 16265fi
9377if test x$support_linespace = xno; then 16266if test x$support_linespace = xno; then
16267
9378 cat >> confdefs.h <<\EOF 16268cat >>confdefs.h <<\_ACEOF
9379#define NO_LINESPACE 1 16269#define NO_LINESPACE 1
9380EOF 16270_ACEOF
9381 16271
9382fi 16272fi
9383if test x$support_24bit = xyes; then 16273if test x$support_24bit = xyes; then
16274
9384 cat >> confdefs.h <<\EOF 16275cat >>confdefs.h <<\_ACEOF
9385#define PREFER_24BIT 1 16276#define PREFER_24BIT 1
9386EOF 16277_ACEOF
9387 16278
9388fi 16279fi
9389if test x$support_mousewheel = xyes; then 16280if test x$support_mousewheel = xyes; then
16281
9390 cat >> confdefs.h <<\EOF 16282cat >>confdefs.h <<\_ACEOF
9391#define MOUSE_WHEEL 1 16283#define MOUSE_WHEEL 1
9392EOF 16284_ACEOF
9393 16285
9394fi 16286fi
9395if test x$support_mouseslipwheel = xyes; then 16287if test x$support_mouseslipwheel = xyes; then
16288
9396 cat >> confdefs.h <<\EOF 16289cat >>confdefs.h <<\_ACEOF
9397#define MOUSE_SLIP_WHEELING 1 16290#define MOUSE_SLIP_WHEELING 1
9398EOF 16291_ACEOF
9399 16292
9400fi 16293fi
9401if test x$support_oldselection = xno; then 16294if test x$support_oldselection = xno; then
16295
9402 cat >> confdefs.h <<\EOF 16296cat >>confdefs.h <<\_ACEOF
9403#define NO_OLD_SELECTION 1 16297#define NO_OLD_SELECTION 1
9404EOF 16298_ACEOF
9405 16299
9406fi 16300fi
9407if test x$support_utmp = xyes; then 16301if test x$support_utmp = xyes; then
16302
9408 cat >> confdefs.h <<\EOF 16303cat >>confdefs.h <<\_ACEOF
9409#define UTMP_SUPPORT 1 16304#define UTMP_SUPPORT 1
9410EOF 16305_ACEOF
9411 16306
9412fi 16307fi
9413if test x$support_wtmp = xyes; then 16308if test x$support_wtmp = xyes; then
16309
9414 cat >> confdefs.h <<\EOF 16310cat >>confdefs.h <<\_ACEOF
9415#define WTMP_SUPPORT 1 16311#define WTMP_SUPPORT 1
9416EOF 16312_ACEOF
9417 16313
9418fi 16314fi
9419if test x$support_lastlog = xyes; then 16315if test x$support_lastlog = xyes; then
16316
9420 cat >> confdefs.h <<\EOF 16317cat >>confdefs.h <<\_ACEOF
9421#define LASTLOG_SUPPORT 1 16318#define LASTLOG_SUPPORT 1
9422EOF 16319_ACEOF
9423 16320
9424fi 16321fi
9425if test x$support_xim = xyes -o x$multichar_set = xyes; then 16322if test x$support_xim = xyes -o x$multichar_set = xyes; then
9426 if test x$rxvt_cv_func_xlocale = xyes; then 16323 if test x$rxvt_cv_func_xlocale = xyes; then
16324
9427 cat >> confdefs.h <<\EOF 16325cat >>confdefs.h <<\_ACEOF
9428#define USE_XIM 1 16326#define USE_XIM 1
9429EOF 16327_ACEOF
9430 16328
9431 fi 16329 fi
9432fi 16330fi
9433if test x$support_xpm = xyes; then 16331if test x$support_xpm = xyes; then
16332
9434 cat >> confdefs.h <<\EOF 16333cat >>confdefs.h <<\_ACEOF
9435#define XPM_BACKGROUND 1 16334#define XPM_BACKGROUND 1
9436EOF 16335_ACEOF
9437 16336
9438fi 16337fi
9439if test x$support_scroll_rxvt = xyes; then 16338if test x$support_scroll_rxvt = xyes; then
16339
9440 cat >> confdefs.h <<\EOF 16340cat >>confdefs.h <<\_ACEOF
9441#define RXVT_SCROLLBAR 1 16341#define RXVT_SCROLLBAR 1
9442EOF 16342_ACEOF
9443 16343
9444 scrolltypes="rxvt" 16344 scrolltypes="rxvt"
9445fi 16345fi
9446if test x$support_scroll_next = xyes; then 16346if test x$support_scroll_next = xyes; then
16347
9447 cat >> confdefs.h <<\EOF 16348cat >>confdefs.h <<\_ACEOF
9448#define NEXT_SCROLLBAR 1 16349#define NEXT_SCROLLBAR 1
9449EOF 16350_ACEOF
9450 16351
9451 scrolltypes="$scrolltypes next" 16352 scrolltypes="$scrolltypes next"
9452fi 16353fi
9453if test x$support_scroll_xterm = xyes; then 16354if test x$support_scroll_xterm = xyes; then
16355
9454 cat >> confdefs.h <<\EOF 16356cat >>confdefs.h <<\_ACEOF
9455#define XTERM_SCROLLBAR 1 16357#define XTERM_SCROLLBAR 1
9456EOF 16358_ACEOF
9457 16359
9458 scrolltypes="$scrolltypes xterm" 16360 scrolltypes="$scrolltypes xterm"
9459fi 16361fi
16362if test x$support_scroll_plain = xyes; then
16363
16364cat >>confdefs.h <<\_ACEOF
16365#define PLAIN_SCROLLBAR 1
16366_ACEOF
16367
16368 scrolltypes="$scrolltypes plain"
16369fi
9460if test x$support_pointer_blank = xyes; then 16370if test x$support_pointer_blank = xyes; then
16371
9461 cat >> confdefs.h <<\EOF 16372cat >>confdefs.h <<\_ACEOF
9462#define POINTER_BLANK 1 16373#define POINTER_BLANK 1
9463EOF 16374_ACEOF
9464 16375
9465fi 16376fi
9466if test x$support_cursor_blink = xyes; then 16377if test x$support_cursor_blink = xyes; then
16378
9467 cat >> confdefs.h <<\EOF 16379cat >>confdefs.h <<\_ACEOF
9468#define CURSOR_BLINK 1 16380#define CURSOR_BLINK 1
9469EOF 16381_ACEOF
16382
16383fi
16384if test x$support_text_blink = xyes; then
16385
16386cat >>confdefs.h <<\_ACEOF
16387#define TEXT_BLINK 1
16388_ACEOF
9470 16389
9471fi 16390fi
9472if test x$support_unicode3 = xyes; then 16391if test x$support_unicode3 = xyes; then
16392
9473 cat >> confdefs.h <<\EOF 16393cat >>confdefs.h <<\_ACEOF
9474#define UNICODE_3 1 16394#define UNICODE_3 1
9475EOF 16395_ACEOF
9476 16396
9477fi 16397fi
9478if test x$codesets = xall; then 16398if test x$codesets = xall; then
9479 codesets=jp,jp-ext,kr,cn,cn-ext,vn 16399 codesets=jp,jp-ext,kr,cn,cn-ext,vn
9480fi 16400fi
9481for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do 16401for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
16402
9482 cat >> confdefs.h <<\EOF 16403cat >>confdefs.h <<\_ACEOF
9483#define ENCODING_EU 1 16404#define ENCODING_EU 1
9484EOF 16405_ACEOF
16406
16407
16408cat >>confdefs.h <<\_ACEOF
16409#define ENCODING_VN 1
16410_ACEOF
9485 16411
9486 case "$codeset" in 16412 case "$codeset" in
9487 VN ) cat >> confdefs.h <<\EOF 16413 JP )
16414cat >>confdefs.h <<\_ACEOF
9488#define ENCODING_VN 1 16415#define ENCODING_JP 1
9489EOF 16416_ACEOF
9490 ;; 16417 ;;
9491 JP ) cat >> confdefs.h <<\EOF 16418 JP_EXT )
16419cat >>confdefs.h <<\_ACEOF
9492#define ENCODING_JP 1 16420#define ENCODING_JP_EXT 1
9493EOF 16421_ACEOF
9494 ;; 16422 ;;
9495 JP_EXT ) cat >> confdefs.h <<\EOF 16423 KR )
16424cat >>confdefs.h <<\_ACEOF
9496#define ENCODING_JP_EXT 1 16425#define ENCODING_KR 1
9497EOF 16426_ACEOF
9498 ;; 16427 ;;
9499 KR ) cat >> confdefs.h <<\EOF 16428 CN )
16429cat >>confdefs.h <<\_ACEOF
9500#define ENCODING_KR 1 16430#define ENCODING_CN 1
9501EOF 16431_ACEOF
9502 ;; 16432 ;;
9503 CN ) cat >> confdefs.h <<\EOF 16433 CN_EXT )
9504#define ENCODING_CN 1 16434cat >>confdefs.h <<\_ACEOF
9505EOF
9506 ;;
9507 CN_EXT ) cat >> confdefs.h <<\EOF
9508#define ENCODING_CN_EXT 1 16435#define ENCODING_CN_EXT 1
9509EOF 16436_ACEOF
9510 ;; 16437 ;;
9511 esac 16438 esac
9512done 16439done
9513 16440
9514 16441
9534 16461
9535 16462
9536 16463
9537 16464
9538if test x$support_addstrings = xno; then 16465if test x$support_addstrings = xno; then
16466
9539 cat >> confdefs.h <<\EOF 16467cat >>confdefs.h <<\_ACEOF
9540#define NO_STRINGS 1 16468#define NO_STRINGS 1
9541EOF 16469_ACEOF
9542 16470
9543fi 16471fi
9544 16472
9545MCOMMON=./autoconf/Make.common 16473MCOMMON=./autoconf/Make.common
9546 16474
9547 16475
9548if test "$program_transform_name" = s,x,x,; then
9549 program_transform_name=
9550else
9551 # Double any \ or $. echo might interpret backslashes.
9552 cat <<\EOF_SED > conftestsed
9553s,\\,\\\\,g; s,\$,$$,g
9554EOF_SED
9555 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
9556 rm -f conftestsed
9557fi
9558test "$program_prefix" != NONE && 16476test "$program_prefix" != NONE &&
9559 program_transform_name="s,^,${program_prefix},; $program_transform_name" 16477 program_transform_name="s,^,$program_prefix,;$program_transform_name"
9560# Use a double $ so make ignores it. 16478# Use a double $ so make ignores it.
9561test "$program_suffix" != NONE && 16479test "$program_suffix" != NONE &&
9562 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" 16480 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
9563 16481# Double any \ or $. echo might interpret backslashes.
9564# sed with no file args requires a program. 16482# By default was `s,x,x', remove it if useless.
9565test "$program_transform_name" = "" && program_transform_name="s,x,x," 16483cat <<\_ACEOF >conftest.sed
9566 16484s/[\\$]/&&/g;s/;s,x,x,$//
9567 16485_ACEOF
9568RXVTNAME=`echo rxvt|sed "$program_transform_name"` 16486program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
16487rm conftest.sed
9569 16488
9570 16489
9571 16490
9572 16491
9573 16492
9574if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then 16493if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
9575 include_stdint_h="#include <stdint.h>" 16494 include_stdint_h="#include <stdint.h>"
9576else 16495else
9577 include_stdint_h="/* #include <stdint.h> */" 16496 include_stdint_h="/* #include <stdint.h> */"
9578fi 16497fi
9579if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then 16498if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
9580 include_stdarg_h="#include <stdarg.h>" 16499 include_stdarg_h="#include <stdarg.h>"
9581else 16500else
9582 include_stdarg_h="/* #include <stdarg.h> */" 16501 include_stdarg_h="/* #include <stdarg.h> */"
9583fi 16502fi
9584if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then 16503if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
9585 include_stdlib_h="#include <stdlib.h>" 16504 include_stdlib_h="#include <stdlib.h>"
9586else 16505else
9587 include_stdlib_h="/* #include <stdlib.h> */" 16506 include_stdlib_h="/* #include <stdlib.h> */"
9588fi 16507fi
9589if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then 16508if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
9590 include_unistd_h="#include <unistd.h>" 16509 include_unistd_h="#include <unistd.h>"
9591else 16510else
9592 include_unistd_h="/* #include <unistd.h> */" 16511 include_unistd_h="/* #include <unistd.h> */"
9593fi 16512fi
9594if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then 16513if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
9595 include_string_h="#include <string.h>" 16514 include_string_h="#include <string.h>"
9596else 16515else
9597 include_string_h="/* #include <string.h> */" 16516 include_string_h="/* #include <string.h> */"
9598fi 16517fi
9599if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then 16518if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
9600 include_fcntl_h="#include <fcntl.h>" 16519 include_fcntl_h="#include <fcntl.h>"
9601else 16520else
9602 include_fcntl_h="/* #include <fcntl.h> */" 16521 include_fcntl_h="/* #include <fcntl.h> */"
9603fi 16522fi
9604if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then 16523if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
9605 include_util_h="#include <util.h>" 16524 include_util_h="#include <util.h>"
9606else 16525else
9607 include_util_h="/* #include <util.h> */" 16526 include_util_h="/* #include <util.h> */"
9608fi 16527fi
9609if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then 16528if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
9610 include_assert_h="#include <assert.h>" 16529 include_assert_h="#include <assert.h>"
9611else 16530else
9612 include_assert_h="/* #include <assert.h> */" 16531 include_assert_h="/* #include <assert.h> */"
9613fi 16532fi
9614if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then 16533if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
9615 include_sys_ioctl_h="#include <sys/ioctl.h>" 16534 include_sys_ioctl_h="#include <sys/ioctl.h>"
9616else 16535else
9617 include_sys_ioctl_h="/* #include <sys/ioctl.h> */" 16536 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
9618fi 16537fi
9619if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then 16538if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
9620 include_sys_select_h="#include <sys/select.h>" 16539 include_sys_select_h="#include <sys/select.h>"
9621else 16540else
9622 include_sys_select_h="/* #include <sys/select.h> */" 16541 include_sys_select_h="/* #include <sys/select.h> */"
9623fi 16542fi
9624if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then 16543if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
9625 include_sys_strredir_h="#include <sys/strredir.h>" 16544 include_sys_strredir_h="#include <sys/strredir.h>"
9626else 16545else
9627 include_sys_strredir_h="/* #include <sys/strredir.h> */" 16546 include_sys_strredir_h="/* #include <sys/strredir.h> */"
9628fi 16547fi
9629if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then 16548if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
9630 include_sys_time_h="#include <sys/time.h>" 16549 include_sys_time_h="#include <sys/time.h>"
9631else 16550else
9632 include_sys_time_h="/* #include <sys/time.h> */" 16551 include_sys_time_h="/* #include <sys/time.h> */"
9633fi 16552fi
9634if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then 16553if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
9635 include_time_h="#include <time.h>" 16554 include_time_h="#include <time.h>"
9636else 16555else
9637 include_time_h="/* #include <time.h> */" 16556 include_time_h="/* #include <time.h> */"
9638fi 16557fi
9639 16558
9640if test x$support_xft = xyes; then 16559if test x$support_xft = xyes; then
9641 LIBS="$LIBS `pkg-config xft --libs`" 16560 LIBS="$LIBS `pkg-config xft --libs`"
9642 CFLAGS="$CFLAGS `pkg-config xft --cflags`" 16561 CFLAGS="$CFLAGS `pkg-config xft --cflags`"
9643 CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`" 16562 CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`"
9644 16563
16564
9645 for ac_hdr in X11/Xft/Xft.h 16565for ac_header in X11/Xft/Xft.h
9646do 16566do
9647ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 16567as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16568if eval "test \"\${$as_ac_Header+set}\" = set"; then
16569 echo "$as_me:$LINENO: checking for $ac_header" >&5
9648echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 16570echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9649echo "configure:9650: checking for $ac_hdr" >&5 16571if eval "test \"\${$as_ac_Header+set}\" = set"; then
9650if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9651 echo $ac_n "(cached) $ac_c" 1>&6 16572 echo $ECHO_N "(cached) $ECHO_C" >&6
16573fi
16574echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16575echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9652else 16576else
16577 # Is the header compilable?
16578echo "$as_me:$LINENO: checking $ac_header usability" >&5
16579echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9653 cat > conftest.$ac_ext <<EOF 16580cat >conftest.$ac_ext <<_ACEOF
9654#line 9655 "configure" 16581/* confdefs.h. */
9655#include "confdefs.h" 16582_ACEOF
16583cat confdefs.h >>conftest.$ac_ext
16584cat >>conftest.$ac_ext <<_ACEOF
16585/* end confdefs.h. */
16586$ac_includes_default
9656#include <$ac_hdr> 16587#include <$ac_header>
9657EOF 16588_ACEOF
9658ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 16589rm -f conftest.$ac_objext
9659{ (eval echo configure:9660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 16590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9660ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 16591 (eval $ac_compile) 2>conftest.er1
16592 ac_status=$?
16593 grep -v '^ *+' conftest.er1 >conftest.err
16594 rm -f conftest.er1
16595 cat conftest.err >&5
16596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16597 (exit $ac_status); } &&
16598 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16600 (eval $ac_try) 2>&5
16601 ac_status=$?
16602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603 (exit $ac_status); }; } &&
16604 { ac_try='test -s conftest.$ac_objext'
16605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16606 (eval $ac_try) 2>&5
16607 ac_status=$?
16608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609 (exit $ac_status); }; }; then
16610 ac_header_compiler=yes
16611else
16612 echo "$as_me: failed program was:" >&5
16613sed 's/^/| /' conftest.$ac_ext >&5
16614
16615ac_header_compiler=no
16616fi
16617rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16618echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16619echo "${ECHO_T}$ac_header_compiler" >&6
16620
16621# Is the header present?
16622echo "$as_me:$LINENO: checking $ac_header presence" >&5
16623echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16624cat >conftest.$ac_ext <<_ACEOF
16625/* confdefs.h. */
16626_ACEOF
16627cat confdefs.h >>conftest.$ac_ext
16628cat >>conftest.$ac_ext <<_ACEOF
16629/* end confdefs.h. */
16630#include <$ac_header>
16631_ACEOF
16632if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16633 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16634 ac_status=$?
16635 grep -v '^ *+' conftest.er1 >conftest.err
16636 rm -f conftest.er1
16637 cat conftest.err >&5
16638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639 (exit $ac_status); } >/dev/null; then
16640 if test -s conftest.err; then
16641 ac_cpp_err=$ac_cxx_preproc_warn_flag
16642 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16643 else
16644 ac_cpp_err=
16645 fi
16646else
16647 ac_cpp_err=yes
16648fi
9661if test -z "$ac_err"; then 16649if test -z "$ac_cpp_err"; then
9662 rm -rf conftest* 16650 ac_header_preproc=yes
9663 eval "ac_cv_header_$ac_safe=yes"
9664else 16651else
9665 echo "$ac_err" >&5
9666 echo "configure: failed program was:" >&5 16652 echo "$as_me: failed program was:" >&5
9667 cat conftest.$ac_ext >&5 16653sed 's/^/| /' conftest.$ac_ext >&5
9668 rm -rf conftest* 16654
9669 eval "ac_cv_header_$ac_safe=no" 16655 ac_header_preproc=no
9670fi 16656fi
9671rm -f conftest* 16657rm -f conftest.err conftest.$ac_ext
16658echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16659echo "${ECHO_T}$ac_header_preproc" >&6
16660
16661# So? What about this header?
16662case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
16663 yes:no: )
16664 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16665echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16667echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16668 ac_header_preproc=yes
16669 ;;
16670 no:yes:* )
16671 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16672echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16673 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16674echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16675 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16676echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16677 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16678echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16679 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16680echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16681 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16682echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16683 (
16684 cat <<\_ASBOX
16685## ------------------------------------------ ##
16686## Report this to the AC_PACKAGE_NAME lists. ##
16687## ------------------------------------------ ##
16688_ASBOX
16689 ) |
16690 sed "s/^/$as_me: WARNING: /" >&2
16691 ;;
16692esac
16693echo "$as_me:$LINENO: checking for $ac_header" >&5
16694echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16695if eval "test \"\${$as_ac_Header+set}\" = set"; then
16696 echo $ECHO_N "(cached) $ECHO_C" >&6
16697else
16698 eval "$as_ac_Header=\$ac_header_preproc"
9672fi 16699fi
9673if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 16700echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9674 echo "$ac_t""yes" 1>&6 16701echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9675 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 16702
16703fi
16704if test `eval echo '${'$as_ac_Header'}'` = yes; then
9676 cat >> confdefs.h <<EOF 16705 cat >>confdefs.h <<_ACEOF
9677#define $ac_tr_hdr 1 16706#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9678EOF 16707_ACEOF
9679 16708
9680else 16709else
9681 echo "$ac_t""no" 1>&6
9682support_xft=no 16710 support_xft=no
9683fi 16711fi
16712
9684done 16713done
9685 16714
16715
16716echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5
9686 echo $ac_n "checking for XftDrawString32 in -lXft""... $ac_c" 1>&6 16717echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6
9687echo "configure:9688: checking for XftDrawString32 in -lXft" >&5 16718if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then
9688ac_lib_var=`echo Xft'_'XftDrawString32 | sed 'y%./+-%__p_%'`
9689if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9690 echo $ac_n "(cached) $ac_c" 1>&6 16719 echo $ECHO_N "(cached) $ECHO_C" >&6
9691else 16720else
9692 ac_save_LIBS="$LIBS" 16721 ac_check_lib_save_LIBS=$LIBS
9693LIBS="-lXft $LIBS" 16722LIBS="-lXft $LIBS"
9694cat > conftest.$ac_ext <<EOF 16723cat >conftest.$ac_ext <<_ACEOF
9695#line 9696 "configure" 16724/* confdefs.h. */
9696#include "confdefs.h" 16725_ACEOF
16726cat confdefs.h >>conftest.$ac_ext
16727cat >>conftest.$ac_ext <<_ACEOF
16728/* end confdefs.h. */
16729
9697/* Override any gcc2 internal prototype to avoid an error. */ 16730/* Override any gcc2 internal prototype to avoid an error. */
16731#ifdef __cplusplus
16732extern "C"
16733#endif
9698/* We use char because int might match the return type of a gcc2 16734/* We use char because int might match the return type of a gcc2
9699 builtin and then its argument prototype would still apply. */ 16735 builtin and then its argument prototype would still apply. */
9700char XftDrawString32(); 16736char XftDrawString32 ();
9701 16737int
9702int main() { 16738main ()
16739{
9703XftDrawString32() 16740XftDrawString32 ();
16741 ;
9704; return 0; } 16742 return 0;
9705EOF 16743}
9706if { (eval echo configure:9707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 16744_ACEOF
16745rm -f conftest.$ac_objext conftest$ac_exeext
16746if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16747 (eval $ac_link) 2>conftest.er1
16748 ac_status=$?
16749 grep -v '^ *+' conftest.er1 >conftest.err
9707 rm -rf conftest* 16750 rm -f conftest.er1
9708 eval "ac_cv_lib_$ac_lib_var=yes" 16751 cat conftest.err >&5
16752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753 (exit $ac_status); } &&
16754 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16756 (eval $ac_try) 2>&5
16757 ac_status=$?
16758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759 (exit $ac_status); }; } &&
16760 { ac_try='test -s conftest$ac_exeext'
16761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16762 (eval $ac_try) 2>&5
16763 ac_status=$?
16764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765 (exit $ac_status); }; }; then
16766 ac_cv_lib_Xft_XftDrawString32=yes
9709else 16767else
9710 echo "configure: failed program was:" >&5 16768 echo "$as_me: failed program was:" >&5
9711 cat conftest.$ac_ext >&5 16769sed 's/^/| /' conftest.$ac_ext >&5
9712 rm -rf conftest* 16770
9713 eval "ac_cv_lib_$ac_lib_var=no" 16771ac_cv_lib_Xft_XftDrawString32=no
9714fi 16772fi
9715rm -f conftest* 16773rm -f conftest.err conftest.$ac_objext \
16774 conftest$ac_exeext conftest.$ac_ext
9716LIBS="$ac_save_LIBS" 16775LIBS=$ac_check_lib_save_LIBS
9717
9718fi 16776fi
9719if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 16777echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5
9720 echo "$ac_t""yes" 1>&6 16778echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6
9721 ac_tr_lib=HAVE_LIB`echo Xft | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 16779if test $ac_cv_lib_Xft_XftDrawString32 = yes; then
9722 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9723 cat >> confdefs.h <<EOF 16780 cat >>confdefs.h <<_ACEOF
9724#define $ac_tr_lib 1 16781#define HAVE_LIBXFT 1
9725EOF 16782_ACEOF
9726 16783
9727 LIBS="-lXft $LIBS" 16784 LIBS="-lXft $LIBS"
9728 16785
9729else 16786else
9730 echo "$ac_t""no" 1>&6
9731support_xft=no 16787 support_xft=no
9732fi 16788fi
9733 16789
16790
16791 if test x$support_xft = xyes; then
16792
9734 cat >> confdefs.h <<\EOF 16793cat >>confdefs.h <<\_ACEOF
9735#define XFT 1 16794#define XFT 1
9736EOF 16795_ACEOF
9737 16796
16797 fi
9738fi 16798fi
9739 16799
9740trap '' 1 2 15 16800 ac_config_files="$ac_config_files autoconf/Make.common Makefile doc/Makefile src/Makefile src/test/Makefile src/rxvtlib.h W11/Makefile"
9741cat > confcache <<\EOF 16801cat >confcache <<\_ACEOF
9742# This file is a shell script that caches the results of configure 16802# This file is a shell script that caches the results of configure
9743# tests run on this system so they can be shared between configure 16803# tests run on this system so they can be shared between configure
9744# scripts and configure runs. It is not useful on other systems. 16804# scripts and configure runs, see configure's option --config-cache.
9745# If it contains results you don't want to keep, you may remove or edit it. 16805# It is not useful on other systems. If it contains results you don't
16806# want to keep, you may remove or edit it.
9746# 16807#
9747# By default, configure uses ./config.cache as the cache file,
9748# creating it if it does not exist already. You can give configure
9749# the --cache-file=FILE option to use a different cache file; that is
9750# what configure does when it calls configure scripts in
9751# subdirectories, so they share the cache.
9752# Giving --cache-file=/dev/null disables caching, for debugging configure.
9753# config.status only pays attention to the cache file if you give it the 16808# config.status only pays attention to the cache file if you give it
9754# --recheck option to rerun configure. 16809# the --recheck option to rerun configure.
9755# 16810#
9756EOF 16811# `ac_cv_env_foo' variables (set or unset) will be overridden when
16812# loading this file, other *unset* `ac_cv_foo' will be assigned the
16813# following values.
16814
16815_ACEOF
16816
9757# The following way of writing the cache mishandles newlines in values, 16817# The following way of writing the cache mishandles newlines in values,
9758# but we know of no workaround that is simple, portable, and efficient. 16818# but we know of no workaround that is simple, portable, and efficient.
9759# So, don't put newlines in cache variables' values. 16819# So, don't put newlines in cache variables' values.
9760# Ultrix sh set writes to stderr and can't be redirected directly, 16820# Ultrix sh set writes to stderr and can't be redirected directly,
9761# and sets the high bit in the cache file unless we assign to the vars. 16821# and sets the high bit in the cache file unless we assign to the vars.
16822{
9762(set) 2>&1 | 16823 (set) 2>&1 |
9763 case `(ac_space=' '; set | grep ac_space) 2>&1` in 16824 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9764 *ac_space=\ *) 16825 *ac_space=\ *)
9765 # `set' does not quote correctly, so add quotes (double-quote substitution 16826 # `set' does not quote correctly, so add quotes (double-quote
9766 # turns \\\\ into \\, and sed turns \\ into \). 16827 # substitution turns \\\\ into \\, and sed turns \\ into \).
9767 sed -n \ 16828 sed -n \
9768 -e "s/'/'\\\\''/g" \ 16829 "s/'/'\\\\''/g;
9769 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 16830 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9770 ;; 16831 ;;
9771 *) 16832 *)
9772 # `set' quotes correctly as required by POSIX, so do not add quotes. 16833 # `set' quotes correctly as required by POSIX, so do not add quotes.
9773 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 16834 sed -n \
16835 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9774 ;; 16836 ;;
9775 esac >> confcache 16837 esac;
9776if cmp -s $cache_file confcache; then 16838} |
9777 : 16839 sed '
9778else 16840 t clear
16841 : clear
16842 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16843 t end
16844 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16845 : end' >>confcache
16846if diff $cache_file confcache >/dev/null 2>&1; then :; else
9779 if test -w $cache_file; then 16847 if test -w $cache_file; then
9780 echo "updating cache $cache_file" 16848 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9781 cat confcache > $cache_file 16849 cat confcache >$cache_file
9782 else 16850 else
9783 echo "not updating unwritable cache $cache_file" 16851 echo "not updating unwritable cache $cache_file"
9784 fi 16852 fi
9785fi 16853fi
9786rm -f confcache 16854rm -f confcache
9787 16855
9788trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9789
9790test "x$prefix" = xNONE && prefix=$ac_default_prefix 16856test "x$prefix" = xNONE && prefix=$ac_default_prefix
9791# Let make expand exec_prefix. 16857# Let make expand exec_prefix.
9792test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 16858test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9793 16859
9794# Any assignment to VPATH causes Sun make to only execute 16860# VPATH may cause trouble with some makes, so we remove $(srcdir),
9795# the first set of double-colon rules, so remove it if not needed. 16861# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9796# If there is a colon in the path, we need to keep it. 16862# trailing colons and then remove the whole line if VPATH becomes empty
16863# (actually we leave an empty line to preserve line numbers).
9797if test "x$srcdir" = x.; then 16864if test "x$srcdir" = x.; then
9798 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 16865 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16866s/:*\$(srcdir):*/:/;
16867s/:*\${srcdir}:*/:/;
16868s/:*@srcdir@:*/:/;
16869s/^\([^=]*=[ ]*\):*/\1/;
16870s/:*$//;
16871s/^[^=]*=[ ]*$//;
16872}'
9799fi 16873fi
9800
9801trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9802 16874
9803DEFS=-DHAVE_CONFIG_H 16875DEFS=-DHAVE_CONFIG_H
9804 16876
9805# Without the "./", some shells look in PATH for config.status. 16877ac_libobjs=
16878ac_ltlibobjs=
16879for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16880 # 1. Remove the extension, and $U if already installed.
16881 ac_i=`echo "$ac_i" |
16882 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16883 # 2. Add them.
16884 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16885 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16886done
16887LIBOBJS=$ac_libobjs
16888
16889LTLIBOBJS=$ac_ltlibobjs
16890
16891
16892
9806: ${CONFIG_STATUS=./config.status} 16893: ${CONFIG_STATUS=./config.status}
9807 16894ac_clean_files_save=$ac_clean_files
16895ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16896{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9808echo creating $CONFIG_STATUS 16897echo "$as_me: creating $CONFIG_STATUS" >&6;}
9809rm -f $CONFIG_STATUS
9810cat > $CONFIG_STATUS <<EOF 16898cat >$CONFIG_STATUS <<_ACEOF
9811#! /bin/sh 16899#! $SHELL
9812# Generated automatically by configure. 16900# Generated by $as_me.
9813# Run this file to recreate the current configuration. 16901# Run this file to recreate the current configuration.
9814# This directory was configured as follows,
9815# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9816#
9817# $0 $ac_configure_args
9818#
9819# Compiler output produced by configure, useful for debugging 16902# Compiler output produced by configure, useful for debugging
9820# configure, is in ./config.log if it exists. 16903# configure, is in config.log if it exists.
9821 16904
9822ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 16905debug=false
9823for ac_option 16906ac_cs_recheck=false
16907ac_cs_silent=false
16908SHELL=\${CONFIG_SHELL-$SHELL}
16909_ACEOF
16910
16911cat >>$CONFIG_STATUS <<\_ACEOF
16912## --------------------- ##
16913## M4sh Initialization. ##
16914## --------------------- ##
16915
16916# Be Bourne compatible
16917if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16918 emulate sh
16919 NULLCMD=:
16920 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16921 # is contrary to our usage. Disable this feature.
16922 alias -g '${1+"$@"}'='"$@"'
16923elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16924 set -o posix
16925fi
16926DUALCASE=1; export DUALCASE # for MKS sh
16927
16928# Support unset when possible.
16929if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16930 as_unset=unset
16931else
16932 as_unset=false
16933fi
16934
16935
16936# Work around bugs in pre-3.0 UWIN ksh.
16937$as_unset ENV MAIL MAILPATH
16938PS1='$ '
16939PS2='> '
16940PS4='+ '
16941
16942# NLS nuisances.
16943for as_var in \
16944 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16945 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16946 LC_TELEPHONE LC_TIME
9824do 16947do
16948 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16949 eval $as_var=C; export $as_var
16950 else
16951 $as_unset $as_var
16952 fi
16953done
16954
16955# Required to use basename.
16956if expr a : '\(a\)' >/dev/null 2>&1; then
16957 as_expr=expr
16958else
16959 as_expr=false
16960fi
16961
16962if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16963 as_basename=basename
16964else
16965 as_basename=false
16966fi
16967
16968
16969# Name of the executable.
16970as_me=`$as_basename "$0" ||
16971$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16972 X"$0" : 'X\(//\)$' \| \
16973 X"$0" : 'X\(/\)$' \| \
16974 . : '\(.\)' 2>/dev/null ||
16975echo X/"$0" |
16976 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16977 /^X\/\(\/\/\)$/{ s//\1/; q; }
16978 /^X\/\(\/\).*/{ s//\1/; q; }
16979 s/.*/./; q'`
16980
16981
16982# PATH needs CR, and LINENO needs CR and PATH.
16983# Avoid depending upon Character Ranges.
16984as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16985as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16986as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16987as_cr_digits='0123456789'
16988as_cr_alnum=$as_cr_Letters$as_cr_digits
16989
16990# The user is always right.
16991if test "${PATH_SEPARATOR+set}" != set; then
16992 echo "#! /bin/sh" >conf$$.sh
16993 echo "exit 0" >>conf$$.sh
16994 chmod +x conf$$.sh
16995 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16996 PATH_SEPARATOR=';'
16997 else
16998 PATH_SEPARATOR=:
16999 fi
17000 rm -f conf$$.sh
17001fi
17002
17003
17004 as_lineno_1=$LINENO
17005 as_lineno_2=$LINENO
17006 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17007 test "x$as_lineno_1" != "x$as_lineno_2" &&
17008 test "x$as_lineno_3" = "x$as_lineno_2" || {
17009 # Find who we are. Look in the path if we contain no path at all
17010 # relative or not.
17011 case $0 in
17012 *[\\/]* ) as_myself=$0 ;;
17013 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17014for as_dir in $PATH
17015do
17016 IFS=$as_save_IFS
17017 test -z "$as_dir" && as_dir=.
17018 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17019done
17020
17021 ;;
17022 esac
17023 # We did not find ourselves, most probably we were run as `sh COMMAND'
17024 # in which case we are not to be found in the path.
17025 if test "x$as_myself" = x; then
17026 as_myself=$0
17027 fi
17028 if test ! -f "$as_myself"; then
17029 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17030echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17031 { (exit 1); exit 1; }; }
17032 fi
17033 case $CONFIG_SHELL in
17034 '')
17035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17036for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17037do
17038 IFS=$as_save_IFS
17039 test -z "$as_dir" && as_dir=.
17040 for as_base in sh bash ksh sh5; do
17041 case $as_dir in
17042 /*)
17043 if ("$as_dir/$as_base" -c '
17044 as_lineno_1=$LINENO
17045 as_lineno_2=$LINENO
17046 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17047 test "x$as_lineno_1" != "x$as_lineno_2" &&
17048 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17049 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17050 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17051 CONFIG_SHELL=$as_dir/$as_base
17052 export CONFIG_SHELL
17053 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17054 fi;;
17055 esac
17056 done
17057done
17058;;
17059 esac
17060
17061 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17062 # uniformly replaced by the line number. The first 'sed' inserts a
17063 # line-number line before each line; the second 'sed' does the real
17064 # work. The second script uses 'N' to pair each line-number line
17065 # with the numbered line, and appends trailing '-' during
17066 # substitution so that $LINENO is not a special case at line end.
17067 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17068 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17069 sed '=' <$as_myself |
17070 sed '
17071 N
17072 s,$,-,
17073 : loop
17074 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17075 t loop
17076 s,-$,,
17077 s,^['$as_cr_digits']*\n,,
17078 ' >$as_me.lineno &&
17079 chmod +x $as_me.lineno ||
17080 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17081echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17082 { (exit 1); exit 1; }; }
17083
17084 # Don't try to exec as it changes $[0], causing all sort of problems
17085 # (the dirname of $[0] is not the place where we might find the
17086 # original and so on. Autoconf is especially sensible to this).
17087 . ./$as_me.lineno
17088 # Exit status is that of the last command.
17089 exit
17090}
17091
17092
17093case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17094 *c*,-n*) ECHO_N= ECHO_C='
17095' ECHO_T=' ' ;;
17096 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17097 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17098esac
17099
17100if expr a : '\(a\)' >/dev/null 2>&1; then
17101 as_expr=expr
17102else
17103 as_expr=false
17104fi
17105
17106rm -f conf$$ conf$$.exe conf$$.file
17107echo >conf$$.file
17108if ln -s conf$$.file conf$$ 2>/dev/null; then
17109 # We could just check for DJGPP; but this test a) works b) is more generic
17110 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17111 if test -f conf$$.exe; then
17112 # Don't use ln at all; we don't have any links
17113 as_ln_s='cp -p'
17114 else
17115 as_ln_s='ln -s'
17116 fi
17117elif ln conf$$.file conf$$ 2>/dev/null; then
17118 as_ln_s=ln
17119else
17120 as_ln_s='cp -p'
17121fi
17122rm -f conf$$ conf$$.exe conf$$.file
17123
17124if mkdir -p . 2>/dev/null; then
17125 as_mkdir_p=:
17126else
17127 test -d ./-p && rmdir ./-p
17128 as_mkdir_p=false
17129fi
17130
17131as_executable_p="test -f"
17132
17133# Sed expression to map a string onto a valid CPP name.
17134as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17135
17136# Sed expression to map a string onto a valid variable name.
17137as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17138
17139
17140# IFS
17141# We need space, tab and new line, in precisely that order.
17142as_nl='
17143'
17144IFS=" $as_nl"
17145
17146# CDPATH.
17147$as_unset CDPATH
17148
17149exec 6>&1
17150
17151# Open the log real soon, to keep \$[0] and so on meaningful, and to
17152# report actual input values of CONFIG_FILES etc. instead of their
17153# values after options handling. Logging --version etc. is OK.
17154exec 5>>config.log
17155{
17156 echo
17157 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17158## Running $as_me. ##
17159_ASBOX
17160} >&5
17161cat >&5 <<_CSEOF
17162
17163This file was extended by $as_me, which was
17164generated by GNU Autoconf 2.59. Invocation command line was
17165
17166 CONFIG_FILES = $CONFIG_FILES
17167 CONFIG_HEADERS = $CONFIG_HEADERS
17168 CONFIG_LINKS = $CONFIG_LINKS
17169 CONFIG_COMMANDS = $CONFIG_COMMANDS
17170 $ $0 $@
17171
17172_CSEOF
17173echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17174echo >&5
17175_ACEOF
17176
17177# Files that config.status was made for.
17178if test -n "$ac_config_files"; then
17179 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17180fi
17181
17182if test -n "$ac_config_headers"; then
17183 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17184fi
17185
17186if test -n "$ac_config_links"; then
17187 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17188fi
17189
17190if test -n "$ac_config_commands"; then
17191 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17192fi
17193
17194cat >>$CONFIG_STATUS <<\_ACEOF
17195
17196ac_cs_usage="\
17197\`$as_me' instantiates files from templates according to the
17198current configuration.
17199
17200Usage: $0 [OPTIONS] [FILE]...
17201
17202 -h, --help print this help, then exit
17203 -V, --version print version number, then exit
17204 -q, --quiet do not print progress messages
17205 -d, --debug don't remove temporary files
17206 --recheck update $as_me by reconfiguring in the same conditions
17207 --file=FILE[:TEMPLATE]
17208 instantiate the configuration file FILE
17209 --header=FILE[:TEMPLATE]
17210 instantiate the configuration header FILE
17211
17212Configuration files:
17213$config_files
17214
17215Configuration headers:
17216$config_headers
17217
17218Report bugs to <bug-autoconf@gnu.org>."
17219_ACEOF
17220
17221cat >>$CONFIG_STATUS <<_ACEOF
17222ac_cs_version="\\
17223config.status
17224configured by $0, generated by GNU Autoconf 2.59,
17225 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17226
17227Copyright (C) 2003 Free Software Foundation, Inc.
17228This config.status script is free software; the Free Software Foundation
17229gives unlimited permission to copy, distribute and modify it."
17230srcdir=$srcdir
17231INSTALL="$INSTALL"
17232_ACEOF
17233
17234cat >>$CONFIG_STATUS <<\_ACEOF
17235# If no file are specified by the user, then we need to provide default
17236# value. By we need to know if files were specified by the user.
17237ac_need_defaults=:
17238while test $# != 0
17239do
17240 case $1 in
17241 --*=*)
17242 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17243 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17244 ac_shift=:
17245 ;;
17246 -*)
17247 ac_option=$1
17248 ac_optarg=$2
17249 ac_shift=shift
17250 ;;
17251 *) # This is not an option, so the user has probably given explicit
17252 # arguments.
17253 ac_option=$1
17254 ac_need_defaults=false;;
17255 esac
17256
9825 case "\$ac_option" in 17257 case $ac_option in
17258 # Handling of the options.
17259_ACEOF
17260cat >>$CONFIG_STATUS <<\_ACEOF
9826 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 17261 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9827 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 17262 ac_cs_recheck=: ;;
9828 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 17263 --version | --vers* | -V )
9829 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 17264 echo "$ac_cs_version"; exit 0 ;;
9830 echo "$CONFIG_STATUS generated by autoconf version 2.13" 17265 --he | --h)
9831 exit 0 ;; 17266 # Conflict between --help and --header
9832 -help | --help | --hel | --he | --h) 17267 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17268Try \`$0 --help' for more information." >&5
17269echo "$as_me: error: ambiguous option: $1
17270Try \`$0 --help' for more information." >&2;}
17271 { (exit 1); exit 1; }; };;
17272 --help | --hel | -h )
9833 echo "\$ac_cs_usage"; exit 0 ;; 17273 echo "$ac_cs_usage"; exit 0 ;;
9834 *) echo "\$ac_cs_usage"; exit 1 ;; 17274 --debug | --d* | -d )
17275 debug=: ;;
17276 --file | --fil | --fi | --f )
17277 $ac_shift
17278 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17279 ac_need_defaults=false;;
17280 --header | --heade | --head | --hea )
17281 $ac_shift
17282 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17283 ac_need_defaults=false;;
17284 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17285 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17286 ac_cs_silent=: ;;
17287
17288 # This is an error.
17289 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17290Try \`$0 --help' for more information." >&5
17291echo "$as_me: error: unrecognized option: $1
17292Try \`$0 --help' for more information." >&2;}
17293 { (exit 1); exit 1; }; } ;;
17294
17295 *) ac_config_targets="$ac_config_targets $1" ;;
17296
17297 esac
17298 shift
17299done
17300
17301ac_configure_extra_args=
17302
17303if $ac_cs_silent; then
17304 exec 6>/dev/null
17305 ac_configure_extra_args="$ac_configure_extra_args --silent"
17306fi
17307
17308_ACEOF
17309cat >>$CONFIG_STATUS <<_ACEOF
17310if \$ac_cs_recheck; then
17311 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17312 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17313fi
17314
17315_ACEOF
17316
17317
17318
17319
17320
17321cat >>$CONFIG_STATUS <<\_ACEOF
17322for ac_config_target in $ac_config_targets
17323do
17324 case "$ac_config_target" in
17325 # Handling of arguments.
17326 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
17327 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17328 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17329 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17330 "src/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
17331 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;;
17332 "W11/Makefile" ) CONFIG_FILES="$CONFIG_FILES W11/Makefile" ;;
17333 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:autoconf/config.h.in" ;;
17334 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17335echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17336 { (exit 1); exit 1; }; };;
9835 esac 17337 esac
9836done 17338done
9837 17339
9838ac_given_srcdir=$srcdir 17340# If the user did not use the arguments to specify the items to instantiate,
9839ac_given_INSTALL="$INSTALL" 17341# then the envvar interface is used. Set only those that are not.
17342# We use the long form for the default assignment because of an extremely
17343# bizarre bug on SunOS 4.1.3.
17344if $ac_need_defaults; then
17345 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17346 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17347fi
9840 17348
9841trap 'rm -fr `echo "autoconf/Make.common \ 17349# Have a temporary directory for convenience. Make it in the build tree
9842Makefile \ 17350# simply because there is no reason to put it here, and in addition,
9843doc/Makefile \ 17351# creating and moving files from /tmp can sometimes cause problems.
9844src/Makefile \ 17352# Create a temporary directory, and hook for its removal unless debugging.
9845src/graphics/Makefile \ 17353$debug ||
9846src/test/Makefile \ 17354{
9847src/rxvtlib.h \ 17355 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9848W11/Makefile \ 17356 trap '{ (exit 1); exit 1; }' 1 2 13 15
9849 config.h:autoconf/config.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 17357}
9850EOF 17358
17359# Create a (secure) tmp directory for tmp files.
17360
17361{
17362 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17363 test -n "$tmp" && test -d "$tmp"
17364} ||
17365{
17366 tmp=./confstat$$-$RANDOM
17367 (umask 077 && mkdir $tmp)
17368} ||
17369{
17370 echo "$me: cannot create a temporary directory in ." >&2
17371 { (exit 1); exit 1; }
17372}
17373
17374_ACEOF
17375
9851cat >> $CONFIG_STATUS <<EOF 17376cat >>$CONFIG_STATUS <<_ACEOF
9852 17377
17378#
17379# CONFIG_FILES section.
17380#
17381
17382# No need to generate the scripts if there are no CONFIG_FILES.
17383# This happens for instance when ./config.status config.h
17384if test -n "\$CONFIG_FILES"; then
9853# Protect against being on the right side of a sed subst in config.status. 17385 # Protect against being on the right side of a sed subst in config.status.
9854sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 17386 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9855 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 17387 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9856$ac_vpsub 17388s,@SHELL@,$SHELL,;t t
17389s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17390s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17391s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17392s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17393s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17394s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17395s,@exec_prefix@,$exec_prefix,;t t
17396s,@prefix@,$prefix,;t t
17397s,@program_transform_name@,$program_transform_name,;t t
17398s,@bindir@,$bindir,;t t
17399s,@sbindir@,$sbindir,;t t
17400s,@libexecdir@,$libexecdir,;t t
17401s,@datadir@,$datadir,;t t
17402s,@sysconfdir@,$sysconfdir,;t t
17403s,@sharedstatedir@,$sharedstatedir,;t t
17404s,@localstatedir@,$localstatedir,;t t
17405s,@libdir@,$libdir,;t t
17406s,@includedir@,$includedir,;t t
17407s,@oldincludedir@,$oldincludedir,;t t
17408s,@infodir@,$infodir,;t t
17409s,@mandir@,$mandir,;t t
17410s,@build_alias@,$build_alias,;t t
17411s,@host_alias@,$host_alias,;t t
17412s,@target_alias@,$target_alias,;t t
17413s,@DEFS@,$DEFS,;t t
17414s,@ECHO_C@,$ECHO_C,;t t
17415s,@ECHO_N@,$ECHO_N,;t t
17416s,@ECHO_T@,$ECHO_T,;t t
17417s,@LIBS@,$LIBS,;t t
17418s,@VERSION@,$VERSION,;t t
17419s,@DATE@,$DATE,;t t
17420s,@LSMDATE@,$LSMDATE,;t t
17421s,@LIBVERSION@,$LIBVERSION,;t t
17422s,@CC@,$CC,;t t
17423s,@CFLAGS@,$CFLAGS,;t t
17424s,@LDFLAGS@,$LDFLAGS,;t t
17425s,@CPPFLAGS@,$CPPFLAGS,;t t
17426s,@ac_ct_CC@,$ac_ct_CC,;t t
17427s,@EXEEXT@,$EXEEXT,;t t
17428s,@OBJEXT@,$OBJEXT,;t t
17429s,@CXX@,$CXX,;t t
17430s,@CXXFLAGS@,$CXXFLAGS,;t t
17431s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17432s,@CPP@,$CPP,;t t
17433s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17434s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17435s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17436s,@AWK@,$AWK,;t t
17437s,@LINKER@,$LINKER,;t t
17438s,@CXXCPP@,$CXXCPP,;t t
17439s,@EGREP@,$EGREP,;t t
17440s,@build@,$build,;t t
17441s,@build_cpu@,$build_cpu,;t t
17442s,@build_vendor@,$build_vendor,;t t
17443s,@build_os@,$build_os,;t t
17444s,@host@,$host,;t t
17445s,@host_cpu@,$host_cpu,;t t
17446s,@host_vendor@,$host_vendor,;t t
17447s,@host_os@,$host_os,;t t
17448s,@LN_S@,$LN_S,;t t
17449s,@ECHO@,$ECHO,;t t
17450s,@RANLIB@,$RANLIB,;t t
17451s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17452s,@STRIP@,$STRIP,;t t
17453s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17454s,@LIBTOOL@,$LIBTOOL,;t t
17455s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t
17456s,@RXVTNAME@,$RXVTNAME,;t t
17457s,@MV@,$MV,;t t
17458s,@RM@,$RM,;t t
17459s,@CP@,$CP,;t t
17460s,@LN@,$LN,;t t
17461s,@SED@,$SED,;t t
17462s,@CMP@,$CMP,;t t
17463s,@TBL@,$TBL,;t t
17464s,@X_CFLAGS@,$X_CFLAGS,;t t
17465s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17466s,@X_LIBS@,$X_LIBS,;t t
17467s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17468s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t
17469s,@XPM_CFLAGS@,$XPM_CFLAGS,;t t
17470s,@XPM_LIBS@,$XPM_LIBS,;t t
17471s,@rxvt_int16_typedef@,$rxvt_int16_typedef,;t t
17472s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t
17473s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t
17474s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t
17475s,@rxvt_intp_define@,$rxvt_intp_define,;t t
17476s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t
17477s,@DEBUG@,$DEBUG,;t t
17478s,@DINCLUDE@,$DINCLUDE,;t t
17479s,@DLIB@,$DLIB,;t t
17480s,@include_stdint_h@,$include_stdint_h,;t t
17481s,@include_stdarg_h@,$include_stdarg_h,;t t
17482s,@include_stdlib_h@,$include_stdlib_h,;t t
17483s,@include_unistd_h@,$include_unistd_h,;t t
17484s,@include_string_h@,$include_string_h,;t t
17485s,@include_fcntl_h@,$include_fcntl_h,;t t
17486s,@include_util_h@,$include_util_h,;t t
17487s,@include_assert_h@,$include_assert_h,;t t
17488s,@include_sys_ioctl_h@,$include_sys_ioctl_h,;t t
17489s,@include_sys_select_h@,$include_sys_select_h,;t t
17490s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t
17491s,@include_sys_time_h@,$include_sys_time_h,;t t
17492s,@include_time_h@,$include_time_h,;t t
17493s,@LIBOBJS@,$LIBOBJS,;t t
17494s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17495/@MCOMMON@/r $MCOMMON
17496s,@MCOMMON@,,;t t
17497CEOF
17498
17499_ACEOF
17500
17501 cat >>$CONFIG_STATUS <<\_ACEOF
17502 # Split the substitutions into bite-sized pieces for seds with
17503 # small command number limits, like on Digital OSF/1 and HP-UX.
17504 ac_max_sed_lines=48
17505 ac_sed_frag=1 # Number of current file.
17506 ac_beg=1 # First line for current file.
17507 ac_end=$ac_max_sed_lines # Line after last line for current file.
17508 ac_more_lines=:
17509 ac_sed_cmds=
17510 while $ac_more_lines; do
17511 if test $ac_beg -gt 1; then
17512 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17513 else
17514 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17515 fi
17516 if test ! -s $tmp/subs.frag; then
17517 ac_more_lines=false
17518 else
17519 # The purpose of the label and of the branching condition is to
17520 # speed up the sed processing (if there are no `@' at all, there
17521 # is no need to browse any of the substitutions).
17522 # These are the two extra sed commands mentioned above.
17523 (echo ':t
17524 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17525 if test -z "$ac_sed_cmds"; then
17526 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17527 else
17528 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17529 fi
17530 ac_sed_frag=`expr $ac_sed_frag + 1`
17531 ac_beg=$ac_end
17532 ac_end=`expr $ac_end + $ac_max_sed_lines`
17533 fi
17534 done
17535 if test -z "$ac_sed_cmds"; then
17536 ac_sed_cmds=cat
17537 fi
17538fi # test -n "$CONFIG_FILES"
17539
17540_ACEOF
17541cat >>$CONFIG_STATUS <<\_ACEOF
17542for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17543 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17544 case $ac_file in
17545 - | *:- | *:-:* ) # input from stdin
17546 cat >$tmp/stdin
17547 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17548 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17549 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17550 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17551 * ) ac_file_in=$ac_file.in ;;
17552 esac
17553
17554 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17555 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17556$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17557 X"$ac_file" : 'X\(//\)[^/]' \| \
17558 X"$ac_file" : 'X\(//\)$' \| \
17559 X"$ac_file" : 'X\(/\)' \| \
17560 . : '\(.\)' 2>/dev/null ||
17561echo X"$ac_file" |
17562 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17563 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17564 /^X\(\/\/\)$/{ s//\1/; q; }
17565 /^X\(\/\).*/{ s//\1/; q; }
17566 s/.*/./; q'`
17567 { if $as_mkdir_p; then
17568 mkdir -p "$ac_dir"
17569 else
17570 as_dir="$ac_dir"
17571 as_dirs=
17572 while test ! -d "$as_dir"; do
17573 as_dirs="$as_dir $as_dirs"
17574 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17575$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17576 X"$as_dir" : 'X\(//\)[^/]' \| \
17577 X"$as_dir" : 'X\(//\)$' \| \
17578 X"$as_dir" : 'X\(/\)' \| \
17579 . : '\(.\)' 2>/dev/null ||
17580echo X"$as_dir" |
17581 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17582 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17583 /^X\(\/\/\)$/{ s//\1/; q; }
17584 /^X\(\/\).*/{ s//\1/; q; }
17585 s/.*/./; q'`
17586 done
17587 test ! -n "$as_dirs" || mkdir $as_dirs
17588 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17589echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17590 { (exit 1); exit 1; }; }; }
17591
17592 ac_builddir=.
17593
17594if test "$ac_dir" != .; then
17595 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17596 # A "../" for each directory in $ac_dir_suffix.
17597 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17598else
17599 ac_dir_suffix= ac_top_builddir=
17600fi
17601
17602case $srcdir in
17603 .) # No --srcdir option. We are building in place.
17604 ac_srcdir=.
17605 if test -z "$ac_top_builddir"; then
17606 ac_top_srcdir=.
17607 else
17608 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17609 fi ;;
17610 [\\/]* | ?:[\\/]* ) # Absolute path.
17611 ac_srcdir=$srcdir$ac_dir_suffix;
17612 ac_top_srcdir=$srcdir ;;
17613 *) # Relative path.
17614 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17615 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17616esac
17617
17618# Do not use `cd foo && pwd` to compute absolute paths, because
17619# the directories may not exist.
17620case `pwd` in
17621.) ac_abs_builddir="$ac_dir";;
17622*)
17623 case "$ac_dir" in
17624 .) ac_abs_builddir=`pwd`;;
17625 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17626 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17627 esac;;
17628esac
17629case $ac_abs_builddir in
17630.) ac_abs_top_builddir=${ac_top_builddir}.;;
17631*)
17632 case ${ac_top_builddir}. in
17633 .) ac_abs_top_builddir=$ac_abs_builddir;;
17634 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17635 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17636 esac;;
17637esac
17638case $ac_abs_builddir in
17639.) ac_abs_srcdir=$ac_srcdir;;
17640*)
17641 case $ac_srcdir in
17642 .) ac_abs_srcdir=$ac_abs_builddir;;
17643 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17644 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17645 esac;;
17646esac
17647case $ac_abs_builddir in
17648.) ac_abs_top_srcdir=$ac_top_srcdir;;
17649*)
17650 case $ac_top_srcdir in
17651 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17652 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17653 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17654 esac;;
17655esac
17656
17657
17658 case $INSTALL in
17659 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17660 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17661 esac
17662
17663 # Let's still pretend it is `configure' which instantiates (i.e., don't
17664 # use $as_me), people would be surprised to read:
17665 # /* config.h. Generated by config.status. */
17666 if test x"$ac_file" = x-; then
17667 configure_input=
17668 else
17669 configure_input="$ac_file. "
17670 fi
17671 configure_input=$configure_input"Generated from `echo $ac_file_in |
17672 sed 's,.*/,,'` by configure."
17673
17674 # First look for the input files in the build tree, otherwise in the
17675 # src tree.
17676 ac_file_inputs=`IFS=:
17677 for f in $ac_file_in; do
17678 case $f in
17679 -) echo $tmp/stdin ;;
17680 [\\/$]*)
17681 # Absolute (can't be DOS-style, as IFS=:)
17682 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17683echo "$as_me: error: cannot find input file: $f" >&2;}
17684 { (exit 1); exit 1; }; }
17685 echo "$f";;
17686 *) # Relative
17687 if test -f "$f"; then
17688 # Build tree
17689 echo "$f"
17690 elif test -f "$srcdir/$f"; then
17691 # Source tree
17692 echo "$srcdir/$f"
17693 else
17694 # /dev/null tree
17695 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17696echo "$as_me: error: cannot find input file: $f" >&2;}
17697 { (exit 1); exit 1; }; }
17698 fi;;
17699 esac
17700 done` || { (exit 1); exit 1; }
17701
17702 if test x"$ac_file" != x-; then
17703 { echo "$as_me:$LINENO: creating $ac_file" >&5
17704echo "$as_me: creating $ac_file" >&6;}
17705 rm -f "$ac_file"
17706 fi
17707_ACEOF
17708cat >>$CONFIG_STATUS <<_ACEOF
17709 sed "$ac_vpsub
9857$extrasub 17710$extrasub
9858s%@SHELL@%$SHELL%g
9859s%@CFLAGS@%$CFLAGS%g
9860s%@CPPFLAGS@%$CPPFLAGS%g
9861s%@CXXFLAGS@%$CXXFLAGS%g
9862s%@FFLAGS@%$FFLAGS%g
9863s%@DEFS@%$DEFS%g
9864s%@LDFLAGS@%$LDFLAGS%g
9865s%@LIBS@%$LIBS%g
9866s%@exec_prefix@%$exec_prefix%g
9867s%@prefix@%$prefix%g
9868s%@program_transform_name@%$program_transform_name%g
9869s%@bindir@%$bindir%g
9870s%@sbindir@%$sbindir%g
9871s%@libexecdir@%$libexecdir%g
9872s%@datadir@%$datadir%g
9873s%@sysconfdir@%$sysconfdir%g
9874s%@sharedstatedir@%$sharedstatedir%g
9875s%@localstatedir@%$localstatedir%g
9876s%@libdir@%$libdir%g
9877s%@includedir@%$includedir%g
9878s%@oldincludedir@%$oldincludedir%g
9879s%@infodir@%$infodir%g
9880s%@mandir@%$mandir%g
9881s%@VERSION@%$VERSION%g
9882s%@DATE@%$DATE%g
9883s%@LSMDATE@%$LSMDATE%g
9884s%@LIBVERSION@%$LIBVERSION%g
9885s%@CC@%$CC%g
9886s%@CXX@%$CXX%g
9887s%@CPP@%$CPP%g
9888s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9889s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
9890s%@INSTALL_DATA@%$INSTALL_DATA%g
9891s%@AWK@%$AWK%g
9892s%@host@%$host%g
9893s%@host_alias@%$host_alias%g
9894s%@host_cpu@%$host_cpu%g
9895s%@host_vendor@%$host_vendor%g
9896s%@host_os@%$host_os%g
9897s%@build@%$build%g
9898s%@build_alias@%$build_alias%g
9899s%@build_cpu@%$build_cpu%g
9900s%@build_vendor@%$build_vendor%g
9901s%@build_os@%$build_os%g
9902s%@LN_S@%$LN_S%g
9903s%@OBJEXT@%$OBJEXT%g
9904s%@EXEEXT@%$EXEEXT%g
9905s%@ECHO@%$ECHO%g
9906s%@RANLIB@%$RANLIB%g
9907s%@STRIP@%$STRIP%g
9908s%@LIBTOOL@%$LIBTOOL%g
9909s%@INSTALL_LIBRXVT@%$INSTALL_LIBRXVT%g
9910s%@MV@%$MV%g
9911s%@RM@%$RM%g
9912s%@CP@%$CP%g
9913s%@LN@%$LN%g
9914s%@SED@%$SED%g
9915s%@CMP@%$CMP%g
9916s%@TBL@%$TBL%g
9917s%@X_CFLAGS@%$X_CFLAGS%g
9918s%@X_PRE_LIBS@%$X_PRE_LIBS%g
9919s%@X_LIBS@%$X_LIBS%g
9920s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
9921s%@XPM_CPPFLAGS@%$XPM_CPPFLAGS%g
9922s%@XPM_CFLAGS@%$XPM_CFLAGS%g
9923s%@XPM_LIBS@%$XPM_LIBS%g
9924s%@rxvt_int16_typedef@%$rxvt_int16_typedef%g
9925s%@rxvt_uint16_typedef@%$rxvt_uint16_typedef%g
9926s%@rxvt_int32_typedef@%$rxvt_int32_typedef%g
9927s%@rxvt_uint32_typedef@%$rxvt_uint32_typedef%g
9928s%@rxvt_intp_define@%$rxvt_intp_define%g
9929s%@rxvt_u_intp_define@%$rxvt_u_intp_define%g
9930s%@DEBUG@%$DEBUG%g
9931s%@DINCLUDE@%$DINCLUDE%g
9932s%@DLIB@%$DLIB%g
9933/@MCOMMON@/r $MCOMMON
9934s%@MCOMMON@%%g
9935s%@RXVTNAME@%$RXVTNAME%g
9936s%@include_stdint_h@%$include_stdint_h%g
9937s%@include_stdarg_h@%$include_stdarg_h%g
9938s%@include_stdlib_h@%$include_stdlib_h%g
9939s%@include_unistd_h@%$include_unistd_h%g
9940s%@include_string_h@%$include_string_h%g
9941s%@include_fcntl_h@%$include_fcntl_h%g
9942s%@include_util_h@%$include_util_h%g
9943s%@include_assert_h@%$include_assert_h%g
9944s%@include_sys_ioctl_h@%$include_sys_ioctl_h%g
9945s%@include_sys_select_h@%$include_sys_select_h%g
9946s%@include_sys_strredir_h@%$include_sys_strredir_h%g
9947s%@include_sys_time_h@%$include_sys_time_h%g
9948s%@include_time_h@%$include_time_h%g
9949
9950CEOF 17711_ACEOF
9951EOF
9952
9953cat >> $CONFIG_STATUS <<\EOF 17712cat >>$CONFIG_STATUS <<\_ACEOF
9954 17713:t
9955# Split the substitutions into bite-sized pieces for seds with 17714/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9956# small command number limits, like on Digital OSF/1 and HP-UX. 17715s,@configure_input@,$configure_input,;t t
9957ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 17716s,@srcdir@,$ac_srcdir,;t t
9958ac_file=1 # Number of current file. 17717s,@abs_srcdir@,$ac_abs_srcdir,;t t
9959ac_beg=1 # First line for current file. 17718s,@top_srcdir@,$ac_top_srcdir,;t t
9960ac_end=$ac_max_sed_cmds # Line after last line for current file. 17719s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9961ac_more_lines=: 17720s,@builddir@,$ac_builddir,;t t
9962ac_sed_cmds="" 17721s,@abs_builddir@,$ac_abs_builddir,;t t
9963while $ac_more_lines; do 17722s,@top_builddir@,$ac_top_builddir,;t t
9964 if test $ac_beg -gt 1; then 17723s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9965 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 17724s,@INSTALL@,$ac_INSTALL,;t t
17725" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17726 rm -f $tmp/stdin
17727 if test x"$ac_file" != x-; then
17728 mv $tmp/out $ac_file
9966 else 17729 else
9967 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 17730 cat $tmp/out
17731 rm -f $tmp/out
9968 fi 17732 fi
9969 if test ! -s conftest.s$ac_file; then 17733
9970 ac_more_lines=false
9971 rm -f conftest.s$ac_file
9972 else
9973 if test -z "$ac_sed_cmds"; then
9974 ac_sed_cmds="sed -f conftest.s$ac_file"
9975 else
9976 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9977 fi
9978 ac_file=`expr $ac_file + 1`
9979 ac_beg=$ac_end
9980 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9981 fi
9982done 17734done
9983if test -z "$ac_sed_cmds"; then 17735_ACEOF
9984 ac_sed_cmds=cat
9985fi
9986EOF
9987
9988cat >> $CONFIG_STATUS <<EOF
9989
9990CONFIG_FILES=\${CONFIG_FILES-"autoconf/Make.common \
9991Makefile \
9992doc/Makefile \
9993src/Makefile \
9994src/graphics/Makefile \
9995src/test/Makefile \
9996src/rxvtlib.h \
9997W11/Makefile \
9998"}
9999EOF
10000cat >> $CONFIG_STATUS <<\EOF 17736cat >>$CONFIG_STATUS <<\_ACEOF
10001for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10002 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10003 case "$ac_file" in
10004 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
10005 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10006 *) ac_file_in="${ac_file}.in" ;;
10007 esac
10008 17737
10009 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 17738#
10010 17739# CONFIG_HEADER section.
10011 # Remove last slash and all that follows it. Not all systems have dirname. 17740#
10012 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10013 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10014 # The file is in a subdirectory.
10015 test ! -d "$ac_dir" && mkdir "$ac_dir"
10016 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10017 # A "../" for each directory in $ac_dir_suffix.
10018 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10019 else
10020 ac_dir_suffix= ac_dots=
10021 fi
10022
10023 case "$ac_given_srcdir" in
10024 .) srcdir=.
10025 if test -z "$ac_dots"; then top_srcdir=.
10026 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
10027 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10028 *) # Relative path.
10029 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
10030 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10031 esac
10032
10033 case "$ac_given_INSTALL" in
10034 [/$]*) INSTALL="$ac_given_INSTALL" ;;
10035 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10036 esac
10037
10038 echo creating "$ac_file"
10039 rm -f "$ac_file"
10040 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
10041 case "$ac_file" in
10042 *Makefile*) ac_comsub="1i\\
10043# $configure_input" ;;
10044 *) ac_comsub= ;;
10045 esac
10046
10047 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10048 sed -e "$ac_comsub
10049s%@configure_input@%$configure_input%g
10050s%@srcdir@%$srcdir%g
10051s%@top_srcdir@%$top_srcdir%g
10052s%@INSTALL@%$INSTALL%g
10053" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
10054fi; done
10055rm -f conftest.s*
10056 17741
10057# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 17742# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10058# NAME is the cpp macro being defined and VALUE is the value it is being given. 17743# NAME is the cpp macro being defined and VALUE is the value it is being given.
10059# 17744#
10060# ac_d sets the value in "#define NAME VALUE" lines. 17745# ac_d sets the value in "#define NAME VALUE" lines.
10061ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' 17746ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10062ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' 17747ac_dB='[ ].*$,\1#\2'
10063ac_dC='\3' 17748ac_dC=' '
10064ac_dD='%g' 17749ac_dD=',;t'
10065# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 17750# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10066ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 17751ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10067ac_uB='\([ ]\)%\1#\2define\3' 17752ac_uB='$,\1#\2define\3'
10068ac_uC=' ' 17753ac_uC=' '
10069ac_uD='\4%g' 17754ac_uD=',;t'
10070# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10071ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10072ac_eB='$%\1#\2define\3'
10073ac_eC=' '
10074ac_eD='%g'
10075 17755
10076if test "${CONFIG_HEADERS+set}" != set; then
10077EOF
10078cat >> $CONFIG_STATUS <<EOF
10079 CONFIG_HEADERS="config.h:autoconf/config.h.in"
10080EOF
10081cat >> $CONFIG_STATUS <<\EOF
10082fi
10083for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then 17756for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10084 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 17757 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10085 case "$ac_file" in 17758 case $ac_file in
17759 - | *:- | *:-:* ) # input from stdin
17760 cat >$tmp/stdin
17761 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17762 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10086 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 17763 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10087 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 17764 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10088 *) ac_file_in="${ac_file}.in" ;; 17765 * ) ac_file_in=$ac_file.in ;;
10089 esac 17766 esac
10090 17767
10091 echo creating $ac_file 17768 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17769echo "$as_me: creating $ac_file" >&6;}
10092 17770
10093 rm -f conftest.frag conftest.in conftest.out 17771 # First look for the input files in the build tree, otherwise in the
10094 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 17772 # src tree.
10095 cat $ac_file_inputs > conftest.in 17773 ac_file_inputs=`IFS=:
17774 for f in $ac_file_in; do
17775 case $f in
17776 -) echo $tmp/stdin ;;
17777 [\\/$]*)
17778 # Absolute (can't be DOS-style, as IFS=:)
17779 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17780echo "$as_me: error: cannot find input file: $f" >&2;}
17781 { (exit 1); exit 1; }; }
17782 # Do quote $f, to prevent DOS paths from being IFS'd.
17783 echo "$f";;
17784 *) # Relative
17785 if test -f "$f"; then
17786 # Build tree
17787 echo "$f"
17788 elif test -f "$srcdir/$f"; then
17789 # Source tree
17790 echo "$srcdir/$f"
17791 else
17792 # /dev/null tree
17793 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17794echo "$as_me: error: cannot find input file: $f" >&2;}
17795 { (exit 1); exit 1; }; }
17796 fi;;
17797 esac
17798 done` || { (exit 1); exit 1; }
17799 # Remove the trailing spaces.
17800 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10096 17801
10097EOF 17802_ACEOF
10098 17803
10099# Transform confdefs.h into a sed script conftest.vals that substitutes 17804# Transform confdefs.h into two sed scripts, `conftest.defines' and
10100# the proper values into config.h.in to produce config.h. And first: 17805# `conftest.undefs', that substitutes the proper values into
17806# config.h.in to produce config.h. The first handles `#define'
17807# templates, and the second `#undef' templates.
10101# Protect against being on the right side of a sed subst in config.status. 17808# And first: Protect against being on the right side of a sed subst in
10102# Protect against being in an unquoted here document in config.status. 17809# config.status. Protect against being in an unquoted here document
10103rm -f conftest.vals 17810# in config.status.
10104cat > conftest.hdr <<\EOF 17811rm -f conftest.defines conftest.undefs
17812# Using a here document instead of a string reduces the quoting nightmare.
17813# Putting comments in sed scripts is not portable.
17814#
17815# `end' is used to avoid that the second main sed command (meant for
17816# 0-ary CPP macros) applies to n-ary macro definitions.
17817# See the Autoconf documentation for `clear'.
17818cat >confdef2sed.sed <<\_ACEOF
10105s/[\\&%]/\\&/g 17819s/[\\&,]/\\&/g
10106s%[\\$`]%\\&%g 17820s,[\\$`],\\&,g
10107s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 17821t clear
10108s%ac_d%ac_u%gp 17822: clear
10109s%ac_u%ac_e%gp 17823s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10110EOF 17824t end
10111sed -n -f conftest.hdr confdefs.h > conftest.vals 17825s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10112rm -f conftest.hdr 17826: end
17827_ACEOF
17828# If some macros were called several times there might be several times
17829# the same #defines, which is useless. Nevertheless, we may not want to
17830# sort them, since we want the *last* AC-DEFINE to be honored.
17831uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17832sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17833rm -f confdef2sed.sed
10113 17834
10114# This sed command replaces #undef with comments. This is necessary, for 17835# This sed command replaces #undef with comments. This is necessary, for
10115# example, in the case of _POSIX_SOURCE, which is predefined and required 17836# example, in the case of _POSIX_SOURCE, which is predefined and required
10116# on some systems where configure will not decide to define it. 17837# on some systems where configure will not decide to define it.
10117cat >> conftest.vals <<\EOF 17838cat >>conftest.undefs <<\_ACEOF
10118s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 17839s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10119EOF 17840_ACEOF
10120 17841
10121# Break up conftest.vals because some shells have a limit on 17842# Break up conftest.defines because some shells have a limit on the size
10122# the size of here documents, and old seds have small limits too. 17843# of here documents, and old seds have small limits too (100 cmds).
10123 17844echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17845echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17846echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17847echo ' :' >>$CONFIG_STATUS
10124rm -f conftest.tail 17848rm -f conftest.tail
10125while : 17849while grep . conftest.defines >/dev/null
10126do 17850do
10127 ac_lines=`grep -c . conftest.vals`
10128 # grep -c gives empty output for an empty file on some AIX systems.
10129 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
10130 # Write a limited-size here document to conftest.frag. 17851 # Write a limited-size here document to $tmp/defines.sed.
10131 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS 17852 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17853 # Speed up: don't consider the non `#define' lines.
17854 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17855 # Work around the forget-to-reset-the-flag bug.
17856 echo 't clr' >>$CONFIG_STATUS
17857 echo ': clr' >>$CONFIG_STATUS
10132 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 17858 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10133 echo 'CEOF 17859 echo 'CEOF
10134 sed -f conftest.frag conftest.in > conftest.out 17860 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10135 rm -f conftest.in 17861 rm -f $tmp/in
10136 mv conftest.out conftest.in 17862 mv $tmp/out $tmp/in
10137' >> $CONFIG_STATUS 17863' >>$CONFIG_STATUS
10138 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 17864 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10139 rm -f conftest.vals 17865 rm -f conftest.defines
10140 mv conftest.tail conftest.vals 17866 mv conftest.tail conftest.defines
10141done 17867done
17868rm -f conftest.defines
17869echo ' fi # grep' >>$CONFIG_STATUS
17870echo >>$CONFIG_STATUS
17871
17872# Break up conftest.undefs because some shells have a limit on the size
17873# of here documents, and old seds have small limits too (100 cmds).
17874echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10142rm -f conftest.vals 17875rm -f conftest.tail
17876while grep . conftest.undefs >/dev/null
17877do
17878 # Write a limited-size here document to $tmp/undefs.sed.
17879 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17880 # Speed up: don't consider the non `#undef'
17881 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17882 # Work around the forget-to-reset-the-flag bug.
17883 echo 't clr' >>$CONFIG_STATUS
17884 echo ': clr' >>$CONFIG_STATUS
17885 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17886 echo 'CEOF
17887 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17888 rm -f $tmp/in
17889 mv $tmp/out $tmp/in
17890' >>$CONFIG_STATUS
17891 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17892 rm -f conftest.undefs
17893 mv conftest.tail conftest.undefs
17894done
17895rm -f conftest.undefs
10143 17896
10144cat >> $CONFIG_STATUS <<\EOF 17897cat >>$CONFIG_STATUS <<\_ACEOF
10145 rm -f conftest.frag conftest.h 17898 # Let's still pretend it is `configure' which instantiates (i.e., don't
10146 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 17899 # use $as_me), people would be surprised to read:
10147 cat conftest.in >> conftest.h 17900 # /* config.h. Generated by config.status. */
10148 rm -f conftest.in 17901 if test x"$ac_file" = x-; then
10149 if cmp -s $ac_file conftest.h 2>/dev/null; then 17902 echo "/* Generated by configure. */" >$tmp/config.h
10150 echo "$ac_file is unchanged"
10151 rm -f conftest.h
10152 else 17903 else
10153 # Remove last slash and all that follows it. Not all systems have dirname. 17904 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10154 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 17905 fi
10155 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 17906 cat $tmp/in >>$tmp/config.h
10156 # The file is in a subdirectory. 17907 rm -f $tmp/in
17908 if test x"$ac_file" != x-; then
17909 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17910 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17911echo "$as_me: $ac_file is unchanged" >&6;}
17912 else
17913 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17914$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17915 X"$ac_file" : 'X\(//\)[^/]' \| \
17916 X"$ac_file" : 'X\(//\)$' \| \
17917 X"$ac_file" : 'X\(/\)' \| \
17918 . : '\(.\)' 2>/dev/null ||
17919echo X"$ac_file" |
17920 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17921 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17922 /^X\(\/\/\)$/{ s//\1/; q; }
17923 /^X\(\/\).*/{ s//\1/; q; }
17924 s/.*/./; q'`
17925 { if $as_mkdir_p; then
17926 mkdir -p "$ac_dir"
17927 else
17928 as_dir="$ac_dir"
17929 as_dirs=
17930 while test ! -d "$as_dir"; do
17931 as_dirs="$as_dir $as_dirs"
17932 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17933$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17934 X"$as_dir" : 'X\(//\)[^/]' \| \
17935 X"$as_dir" : 'X\(//\)$' \| \
17936 X"$as_dir" : 'X\(/\)' \| \
17937 . : '\(.\)' 2>/dev/null ||
17938echo X"$as_dir" |
17939 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17940 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17941 /^X\(\/\/\)$/{ s//\1/; q; }
17942 /^X\(\/\).*/{ s//\1/; q; }
17943 s/.*/./; q'`
17944 done
10157 test ! -d "$ac_dir" && mkdir "$ac_dir" 17945 test ! -n "$as_dirs" || mkdir $as_dirs
17946 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17947echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17948 { (exit 1); exit 1; }; }; }
17949
17950 rm -f $ac_file
17951 mv $tmp/config.h $ac_file
10158 fi 17952 fi
10159 rm -f $ac_file 17953 else
10160 mv conftest.h $ac_file 17954 cat $tmp/config.h
17955 rm -f $tmp/config.h
10161 fi 17956 fi
10162fi; done 17957done
17958_ACEOF
10163 17959
10164EOF
10165cat >> $CONFIG_STATUS <<EOF
10166
10167EOF
10168cat >> $CONFIG_STATUS <<\EOF 17960cat >>$CONFIG_STATUS <<\_ACEOF
10169 17961
10170exit 0 17962{ (exit 0); exit 0; }
10171EOF 17963_ACEOF
10172chmod +x $CONFIG_STATUS 17964chmod +x $CONFIG_STATUS
10173rm -fr confdefs* $ac_clean_files 17965ac_clean_files=$ac_clean_files_save
10174test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 17966
17967
17968# configure is writing to config.log, and then calls config.status.
17969# config.status does its own redirection, appending to config.log.
17970# Unfortunately, on DOS this fails, as config.log is still kept open
17971# by configure, so config.status won't be able to write to it; its
17972# output is simply discarded. So we exec the FD to /dev/null,
17973# effectively closing config.log, so it can be properly (re)opened and
17974# appended to by config.status. When coming back to configure, we
17975# need to make the FD available again.
17976if test "$no_create" != yes; then
17977 ac_cs_success=:
17978 ac_config_status_args=
17979 test "$silent" = yes &&
17980 ac_config_status_args="$ac_config_status_args --quiet"
17981 exec 5>/dev/null
17982 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17983 exec 5>>config.log
17984 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17985 # would make configure fail if this is the last instruction.
17986 $ac_cs_success || { (exit 1); exit 1; }
17987fi
10175 17988
10176 17989
10177echo "Configuration: 17990echo "Configuration:
10178 17991
10179 Rxvt version: $VERSION : $DATE 17992 Rxvt version: $VERSION : $DATE
10180 Source code location: $srcdir 17993 Source code location: $srcdir
10181 Install path: ${prefix}/bin 17994 Install path: ${prefix}/bin
10182 Compiler: $CC 17995 Compiler: $CXX
10183 Compiler flags: $CFLAGS" 17996 Compiler flags: $CFLAGS
17997 Linker: $LINKER"
10184 17998
10185if test "$MALLOC_TYPE" = S; then 17999if test "$MALLOC_TYPE" = S; then
10186 echo " malloc support: system default" 18000 echo " malloc support: system default"
10187fi 18001fi
10188if test "$MALLOC_TYPE" = G; then 18002if test "$MALLOC_TYPE" = G; then

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines